x86
stringlengths 335
106k
| risc
stringlengths 139
103k
| source
stringclasses 1
value |
---|---|---|
.file "extr_zstd_v04.c_ZBUFF_decompressInit.c"
.intel_syntax noprefix
.text
.globl ZBUFFds_readHeader
.bss
.align 4
.type ZBUFFds_readHeader, @object
.size ZBUFFds_readHeader, 4
ZBUFFds_readHeader:
.zero 4
.text
.type ZBUFF_decompressInit, @function
ZBUFF_decompressInit:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov edx, DWORD PTR ZBUFFds_readHeader[rip]
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR 48[rax], edx
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 8[rax], 0
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 8[rax]
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 16[rax], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 16[rax]
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 24[rax], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 24[rax]
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 32[rax], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 32[rax]
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 40[rax], rdx
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
mov edi, eax
call ZSTD_resetDCtx@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFF_decompressInit, .-ZBUFF_decompressInit
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZBUFF_decompressInit.c"
.option pic
.text
.comm ZBUFFds_readHeader,4,4
.align 1
.type ZBUFF_decompressInit, @function
ZBUFF_decompressInit:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
la a5,ZBUFFds_readHeader
lw a4,0(a5)
ld a5,-24(s0)
sw a4,48(a5)
ld a5,-24(s0)
sd zero,8(a5)
ld a5,-24(s0)
ld a4,8(a5)
ld a5,-24(s0)
sd a4,16(a5)
ld a5,-24(s0)
ld a4,16(a5)
ld a5,-24(s0)
sd a4,24(a5)
ld a5,-24(s0)
ld a4,24(a5)
ld a5,-24(s0)
sd a4,32(a5)
ld a5,-24(s0)
ld a4,32(a5)
ld a5,-24(s0)
sd a4,40(a5)
ld a5,-24(s0)
lw a5,0(a5)
mv a0,a5
call ZSTD_resetDCtx@plt
mv a5,a0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZBUFF_decompressInit, .-ZBUFF_decompressInit
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZBUFF_decompressWithDictionary.c"
.intel_syntax noprefix
.text
.type ZBUFF_decompressWithDictionary, @function
ZBUFF_decompressWithDictionary:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR -16[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR -24[rbp]
mov QWORD PTR 8[rax], rdx
mov eax, 0
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFF_decompressWithDictionary, .-ZBUFF_decompressWithDictionary
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZBUFF_decompressWithDictionary.c"
.option pic
.text
.align 1
.type ZBUFF_decompressWithDictionary, @function
ZBUFF_decompressWithDictionary:
addi sp,sp,-48
sd s0,40(sp)
addi s0,sp,48
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
ld a5,-24(s0)
ld a4,-32(s0)
sd a4,0(a5)
ld a5,-24(s0)
ld a4,-40(s0)
sd a4,8(a5)
li a5,0
mv a0,a5
ld s0,40(sp)
addi sp,sp,48
jr ra
.size ZBUFF_decompressWithDictionary, .-ZBUFF_decompressWithDictionary
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZBUFF_freeDCtx.c"
.intel_syntax noprefix
.text
.type ZBUFF_freeDCtx, @function
ZBUFF_freeDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
cmp QWORD PTR -8[rbp], 0
jne .L2
mov eax, 0
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 16[rax]
mov edi, eax
call ZSTD_freeDCtx@PLT
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
mov rdi, rax
call free@PLT
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR [rax]
mov rdi, rax
call free@PLT
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call free@PLT
mov eax, 0
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFF_freeDCtx, .-ZBUFF_freeDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZBUFF_freeDCtx.c"
.option pic
.text
.align 1
.type ZBUFF_freeDCtx, @function
ZBUFF_freeDCtx:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a5,-24(s0)
bnez a5,.L2
li a5,0
j .L3
.L2:
ld a5,-24(s0)
lw a5,16(a5)
mv a0,a5
call ZSTD_freeDCtx@plt
ld a5,-24(s0)
ld a5,8(a5)
mv a0,a5
call free@plt
ld a5,-24(s0)
ld a5,0(a5)
mv a0,a5
call free@plt
ld a0,-24(s0)
call free@plt
li a5,0
.L3:
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZBUFF_freeDCtx, .-ZBUFF_freeDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZBUFF_limitCopy.c"
.intel_syntax noprefix
.text
.type ZBUFF_limitCopy, @function
ZBUFF_limitCopy:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov QWORD PTR -48[rbp], rcx
mov rdx, QWORD PTR -48[rbp]
mov rax, QWORD PTR -32[rbp]
mov rsi, rdx
mov rdi, rax
call MIN@PLT
mov QWORD PTR -8[rbp], rax
mov rdx, QWORD PTR -8[rbp]
mov rcx, QWORD PTR -40[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFF_limitCopy, .-ZBUFF_limitCopy
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZBUFF_limitCopy.c"
.option pic
.text
.align 1
.type ZBUFF_limitCopy, @function
ZBUFF_limitCopy:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
sd a3,-64(s0)
ld a1,-64(s0)
ld a0,-48(s0)
call MIN@plt
sd a0,-24(s0)
ld a2,-24(s0)
ld a1,-56(s0)
ld a0,-40(s0)
call memcpy@plt
ld a5,-24(s0)
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZBUFF_limitCopy, .-ZBUFF_limitCopy
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZBUFFv04_createDCtx.c"
.intel_syntax noprefix
.text
.globl ZBUFFv04_createDCtx
.type ZBUFFv04_createDCtx, @function
ZBUFFv04_createDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov eax, 0
call ZBUFF_createDCtx@PLT
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv04_createDCtx, .-ZBUFFv04_createDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZBUFFv04_createDCtx.c"
.option pic
.text
.align 1
.globl ZBUFFv04_createDCtx
.type ZBUFFv04_createDCtx, @function
ZBUFFv04_createDCtx:
addi sp,sp,-16
sd ra,8(sp)
sd s0,0(sp)
addi s0,sp,16
call ZBUFF_createDCtx@plt
mv a5,a0
mv a0,a5
ld ra,8(sp)
ld s0,0(sp)
addi sp,sp,16
jr ra
.size ZBUFFv04_createDCtx, .-ZBUFFv04_createDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZBUFFv04_decompressContinue.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "ZBUFFv04_decompressContinue"
.text
.globl ZBUFFv04_decompressContinue
.type ZBUFFv04_decompressContinue, @function
ZBUFFv04_decompressContinue:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov QWORD PTR -32[rbp], rcx
mov QWORD PTR -40[rbp], r8
lea rsi, .LC0[rip]
mov edi, 5
call DEBUGLOG@PLT
mov rdi, QWORD PTR -40[rbp]
mov rcx, QWORD PTR -32[rbp]
mov rdx, QWORD PTR -24[rbp]
mov rsi, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
mov r8, rdi
mov rdi, rax
call ZBUFF_decompressContinue@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv04_decompressContinue, .-ZBUFFv04_decompressContinue
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZBUFFv04_decompressContinue.c"
.option pic
.text
.section .rodata
.align 3
.LC0:
.string "ZBUFFv04_decompressContinue"
.text
.align 1
.globl ZBUFFv04_decompressContinue
.type ZBUFFv04_decompressContinue, @function
ZBUFFv04_decompressContinue:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
sd a3,-48(s0)
sd a4,-56(s0)
lla a1,.LC0
li a0,5
call DEBUGLOG@plt
ld a4,-56(s0)
ld a3,-48(s0)
ld a2,-40(s0)
ld a1,-32(s0)
ld a0,-24(s0)
call ZBUFF_decompressContinue@plt
mv a5,a0
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZBUFFv04_decompressContinue, .-ZBUFFv04_decompressContinue
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZBUFFv04_decompressInit.c"
.intel_syntax noprefix
.text
.globl ZBUFFv04_decompressInit
.type ZBUFFv04_decompressInit, @function
ZBUFFv04_decompressInit:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ZBUFF_decompressInit@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv04_decompressInit, .-ZBUFFv04_decompressInit
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZBUFFv04_decompressInit.c"
.option pic
.text
.align 1
.globl ZBUFFv04_decompressInit
.type ZBUFFv04_decompressInit, @function
ZBUFFv04_decompressInit:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call ZBUFF_decompressInit@plt
mv a5,a0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZBUFFv04_decompressInit, .-ZBUFFv04_decompressInit
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZBUFFv04_decompressWithDictionary.c"
.intel_syntax noprefix
.text
.globl ZBUFFv04_decompressWithDictionary
.type ZBUFFv04_decompressWithDictionary, @function
ZBUFFv04_decompressWithDictionary:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov rdx, QWORD PTR -24[rbp]
mov rcx, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
mov rsi, rcx
mov rdi, rax
call ZBUFF_decompressWithDictionary@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv04_decompressWithDictionary, .-ZBUFFv04_decompressWithDictionary
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZBUFFv04_decompressWithDictionary.c"
.option pic
.text
.align 1
.globl ZBUFFv04_decompressWithDictionary
.type ZBUFFv04_decompressWithDictionary, @function
ZBUFFv04_decompressWithDictionary:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
ld a2,-40(s0)
ld a1,-32(s0)
ld a0,-24(s0)
call ZBUFF_decompressWithDictionary@plt
mv a5,a0
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size ZBUFFv04_decompressWithDictionary, .-ZBUFFv04_decompressWithDictionary
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZBUFFv04_freeDCtx.c"
.intel_syntax noprefix
.text
.globl ZBUFFv04_freeDCtx
.type ZBUFFv04_freeDCtx, @function
ZBUFFv04_freeDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ZBUFF_freeDCtx@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv04_freeDCtx, .-ZBUFFv04_freeDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZBUFFv04_freeDCtx.c"
.option pic
.text
.align 1
.globl ZBUFFv04_freeDCtx
.type ZBUFFv04_freeDCtx, @function
ZBUFFv04_freeDCtx:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call ZBUFF_freeDCtx@plt
mv a5,a0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZBUFFv04_freeDCtx, .-ZBUFFv04_freeDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZBUFFv04_getErrorName.c"
.intel_syntax noprefix
.text
.globl ZBUFFv04_getErrorName
.type ZBUFFv04_getErrorName, @function
ZBUFFv04_getErrorName:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ERR_getErrorName@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv04_getErrorName, .-ZBUFFv04_getErrorName
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZBUFFv04_getErrorName.c"
.option pic
.text
.align 1
.globl ZBUFFv04_getErrorName
.type ZBUFFv04_getErrorName, @function
ZBUFFv04_getErrorName:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call ERR_getErrorName@plt
mv a5,a0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZBUFFv04_getErrorName, .-ZBUFFv04_getErrorName
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZBUFFv04_isError.c"
.intel_syntax noprefix
.text
.globl ZBUFFv04_isError
.type ZBUFFv04_isError, @function
ZBUFFv04_isError:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ERR_isError@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv04_isError, .-ZBUFFv04_isError
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZBUFFv04_isError.c"
.option pic
.text
.align 1
.globl ZBUFFv04_isError
.type ZBUFFv04_isError, @function
ZBUFFv04_isError:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call ERR_isError@plt
mv a5,a0
sext.w a5,a5
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZBUFFv04_isError, .-ZBUFFv04_isError
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZBUFFv04_recommendedDInSize.c"
.intel_syntax noprefix
.text
.globl BLOCKSIZE
.bss
.align 8
.type BLOCKSIZE, @object
.size BLOCKSIZE, 8
BLOCKSIZE:
.zero 8
.text
.globl ZBUFFv04_recommendedDInSize
.type ZBUFFv04_recommendedDInSize, @function
ZBUFFv04_recommendedDInSize:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov rax, QWORD PTR BLOCKSIZE[rip]
add rax, 3
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv04_recommendedDInSize, .-ZBUFFv04_recommendedDInSize
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZBUFFv04_recommendedDInSize.c"
.option pic
.text
.comm BLOCKSIZE,8,8
.align 1
.globl ZBUFFv04_recommendedDInSize
.type ZBUFFv04_recommendedDInSize, @function
ZBUFFv04_recommendedDInSize:
addi sp,sp,-16
sd s0,8(sp)
addi s0,sp,16
la a5,BLOCKSIZE
ld a5,0(a5)
addi a5,a5,3
mv a0,a5
ld s0,8(sp)
addi sp,sp,16
jr ra
.size ZBUFFv04_recommendedDInSize, .-ZBUFFv04_recommendedDInSize
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZBUFFv04_recommendedDOutSize.c"
.intel_syntax noprefix
.text
.globl BLOCKSIZE
.bss
.align 8
.type BLOCKSIZE, @object
.size BLOCKSIZE, 8
BLOCKSIZE:
.zero 8
.text
.globl ZBUFFv04_recommendedDOutSize
.type ZBUFFv04_recommendedDOutSize, @function
ZBUFFv04_recommendedDOutSize:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov rax, QWORD PTR BLOCKSIZE[rip]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv04_recommendedDOutSize, .-ZBUFFv04_recommendedDOutSize
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZBUFFv04_recommendedDOutSize.c"
.option pic
.text
.comm BLOCKSIZE,8,8
.align 1
.globl ZBUFFv04_recommendedDOutSize
.type ZBUFFv04_recommendedDOutSize, @function
ZBUFFv04_recommendedDOutSize:
addi sp,sp,-16
sd s0,8(sp)
addi s0,sp,16
la a5,BLOCKSIZE
ld a5,0(a5)
mv a0,a5
ld s0,8(sp)
addi sp,sp,16
jr ra
.size ZBUFFv04_recommendedDOutSize, .-ZBUFFv04_recommendedDOutSize
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_checkContinuity.c"
.intel_syntax noprefix
.text
.type ZSTD_checkContinuity, @function
ZSTD_checkContinuity:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR [rax]
cmp QWORD PTR -16[rbp], rax
je .L3
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 8[rax], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR -8[rbp]
mov rcx, QWORD PTR 24[rax]
mov rax, rdx
sub rax, rcx
neg rax
mov rdx, rax
mov rax, QWORD PTR -16[rbp]
add rdx, rax
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 16[rax], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR -16[rbp]
mov QWORD PTR 24[rax], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR -16[rbp]
mov QWORD PTR [rax], rdx
.L3:
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_checkContinuity, .-ZSTD_checkContinuity
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_checkContinuity.c"
.option pic
.text
.align 1
.type ZSTD_checkContinuity, @function
ZSTD_checkContinuity:
addi sp,sp,-32
sd s0,24(sp)
addi s0,sp,32
sd a0,-24(s0)
sd a1,-32(s0)
ld a5,-24(s0)
ld a5,0(a5)
ld a4,-32(s0)
beq a4,a5,.L3
ld a5,-24(s0)
ld a4,0(a5)
ld a5,-24(s0)
sd a4,8(a5)
ld a5,-24(s0)
ld a4,0(a5)
ld a5,-24(s0)
ld a5,24(a5)
sub a5,a4,a5
neg a5,a5
ld a4,-32(s0)
add a4,a4,a5
ld a5,-24(s0)
sd a4,16(a5)
ld a5,-24(s0)
ld a4,-32(s0)
sd a4,24(a5)
ld a5,-24(s0)
ld a4,-32(s0)
sd a4,0(a5)
.L3:
nop
ld s0,24(sp)
addi sp,sp,32
jr ra
.size ZSTD_checkContinuity, .-ZSTD_checkContinuity
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_copy4.c"
.intel_syntax noprefix
.text
.type ZSTD_copy4, @function
ZSTD_copy4:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov rcx, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
mov edx, 4
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_copy4, .-ZSTD_copy4
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_copy4.c"
.option pic
.text
.align 1
.type ZSTD_copy4, @function
ZSTD_copy4:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
sd a1,-32(s0)
li a2,4
ld a1,-32(s0)
ld a0,-24(s0)
call memcpy@plt
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZSTD_copy4, .-ZSTD_copy4
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_copy8.c"
.intel_syntax noprefix
.text
.type ZSTD_copy8, @function
ZSTD_copy8:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov rcx, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
mov edx, 8
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_copy8, .-ZSTD_copy8
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_copy8.c"
.option pic
.text
.align 1
.type ZSTD_copy8, @function
ZSTD_copy8:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
sd a1,-32(s0)
li a2,8
ld a1,-32(s0)
ld a0,-24(s0)
call memcpy@plt
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZSTD_copy8, .-ZSTD_copy8
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_copyRawBlock.c"
.intel_syntax noprefix
.text
.globl dstSize_tooSmall
.bss
.align 4
.type dstSize_tooSmall, @object
.size dstSize_tooSmall, 4
dstSize_tooSmall:
.zero 4
.text
.type ZSTD_copyRawBlock, @function
ZSTD_copyRawBlock:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov QWORD PTR -32[rbp], rcx
mov rax, QWORD PTR -32[rbp]
cmp rax, QWORD PTR -16[rbp]
jbe .L2
mov eax, DWORD PTR dstSize_tooSmall[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L2:
mov rdx, QWORD PTR -32[rbp]
mov rcx, QWORD PTR -24[rbp]
mov rax, QWORD PTR -8[rbp]
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
mov rax, QWORD PTR -32[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_copyRawBlock, .-ZSTD_copyRawBlock
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_copyRawBlock.c"
.option pic
.text
.comm dstSize_tooSmall,4,4
.align 1
.type ZSTD_copyRawBlock, @function
ZSTD_copyRawBlock:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
sd a3,-48(s0)
ld a4,-48(s0)
ld a5,-32(s0)
bleu a4,a5,.L2
la a5,dstSize_tooSmall
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
ld a2,-48(s0)
ld a1,-40(s0)
ld a0,-24(s0)
call memcpy@plt
ld a5,-48(s0)
.L3:
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size ZSTD_copyRawBlock, .-ZSTD_copyRawBlock
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_createDCtx.c"
.intel_syntax noprefix
.text
.type ZSTD_createDCtx, @function
ZSTD_createDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov edi, 4
call malloc@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
jne .L2
mov eax, 0
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ZSTD_resetDCtx@PLT
mov rax, QWORD PTR -8[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_createDCtx, .-ZSTD_createDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_createDCtx.c"
.option pic
.text
.align 1
.type ZSTD_createDCtx, @function
ZSTD_createDCtx:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
li a0,4
call malloc@plt
mv a5,a0
sd a5,-24(s0)
ld a5,-24(s0)
bnez a5,.L2
li a5,0
j .L3
.L2:
ld a0,-24(s0)
call ZSTD_resetDCtx@plt
ld a5,-24(s0)
.L3:
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZSTD_createDCtx, .-ZSTD_createDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_decodeFrameHeader_Part1.c"
.intel_syntax noprefix
.text
.globl ZSTD_MAGICNUMBER
.bss
.align 8
.type ZSTD_MAGICNUMBER, @object
.size ZSTD_MAGICNUMBER, 8
ZSTD_MAGICNUMBER:
.zero 8
.globl ZSTD_frameHeaderSize_min
.align 8
.type ZSTD_frameHeaderSize_min, @object
.size ZSTD_frameHeaderSize_min, 8
ZSTD_frameHeaderSize_min:
.zero 8
.globl prefix_unknown
.align 4
.type prefix_unknown, @object
.size prefix_unknown, 4
prefix_unknown:
.zero 4
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.type ZSTD_decodeFrameHeader_Part1, @function
ZSTD_decodeFrameHeader_Part1:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov rax, QWORD PTR ZSTD_frameHeaderSize_min[rip]
cmp QWORD PTR -40[rbp], rax
je .L2
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L2:
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call MEM_readLE32@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR ZSTD_MAGICNUMBER[rip]
cmp QWORD PTR -8[rbp], rax
je .L4
mov eax, DWORD PTR prefix_unknown[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
mov rdx, QWORD PTR ZSTD_frameHeaderSize_min[rip]
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR [rax]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_decodeFrameHeader_Part1, .-ZSTD_decodeFrameHeader_Part1
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_decodeFrameHeader_Part1.c"
.option pic
.text
.comm ZSTD_MAGICNUMBER,8,8
.comm ZSTD_frameHeaderSize_min,8,8
.comm prefix_unknown,4,4
.comm srcSize_wrong,4,4
.align 1
.type ZSTD_decodeFrameHeader_Part1, @function
ZSTD_decodeFrameHeader_Part1:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
la a5,ZSTD_frameHeaderSize_min
ld a5,0(a5)
ld a4,-56(s0)
beq a4,a5,.L2
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
ld a0,-48(s0)
call MEM_readLE32@plt
sd a0,-24(s0)
la a5,ZSTD_MAGICNUMBER
ld a5,0(a5)
ld a4,-24(s0)
beq a4,a5,.L4
la a5,prefix_unknown
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
la a5,ZSTD_frameHeaderSize_min
ld a4,0(a5)
ld a5,-40(s0)
sd a4,0(a5)
ld a5,-40(s0)
ld a5,0(a5)
.L3:
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZSTD_decodeFrameHeader_Part1, .-ZSTD_decodeFrameHeader_Part1
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_decodeFrameHeader_Part2.c"
.intel_syntax noprefix
.text
.globl frameParameter_unsupported
.bss
.align 4
.type frameParameter_unsupported, @object
.size frameParameter_unsupported, 4
frameParameter_unsupported:
.zero 4
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.type ZSTD_decodeFrameHeader_Part2, @function
ZSTD_decodeFrameHeader_Part2:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR [rax]
cmp QWORD PTR -40[rbp], rax
je .L2
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L2:
mov rax, QWORD PTR -24[rbp]
lea rcx, 8[rax]
mov rdx, QWORD PTR -40[rbp]
mov rax, QWORD PTR -32[rbp]
mov rsi, rax
mov rdi, rcx
call ZSTD_getFrameParams@PLT
mov QWORD PTR -8[rbp], rax
mov eax, 0
call MEM_32bits@PLT
test rax, rax
je .L4
mov rax, QWORD PTR -24[rbp]
mov eax, DWORD PTR 8[rax]
cmp eax, 25
jle .L4
mov eax, DWORD PTR frameParameter_unsupported[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
mov rax, QWORD PTR -8[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_decodeFrameHeader_Part2, .-ZSTD_decodeFrameHeader_Part2
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_decodeFrameHeader_Part2.c"
.option pic
.text
.comm frameParameter_unsupported,4,4
.comm srcSize_wrong,4,4
.align 1
.type ZSTD_decodeFrameHeader_Part2, @function
ZSTD_decodeFrameHeader_Part2:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
ld a5,-40(s0)
ld a5,0(a5)
ld a4,-56(s0)
beq a4,a5,.L2
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
ld a5,-40(s0)
addi a5,a5,8
ld a2,-56(s0)
ld a1,-48(s0)
mv a0,a5
call ZSTD_getFrameParams@plt
sd a0,-24(s0)
call MEM_32bits@plt
mv a5,a0
beqz a5,.L4
ld a5,-40(s0)
lw a5,8(a5)
mv a4,a5
li a5,25
ble a4,a5,.L4
la a5,frameParameter_unsupported
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
ld a5,-24(s0)
.L3:
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZSTD_decodeFrameHeader_Part2, .-ZSTD_decodeFrameHeader_Part2
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_decodeSeqHeaders.c"
.intel_syntax noprefix
.text
.globl GENERIC
.bss
.align 4
.type GENERIC, @object
.size GENERIC, 4
GENERIC:
.zero 4
.globl LLFSELog
.align 4
.type LLFSELog, @object
.size LLFSELog, 4
LLFSELog:
.zero 4
.globl LLbits
.align 4
.type LLbits, @object
.size LLbits, 4
LLbits:
.zero 4
.globl MLFSELog
.align 4
.type MLFSELog, @object
.size MLFSELog, 4
MLFSELog:
.zero 4
.globl MLbits
.align 4
.type MLbits, @object
.size MLbits, 4
MLbits:
.zero 4
.globl MaxLL
.align 4
.type MaxLL, @object
.size MaxLL, 4
MaxLL:
.zero 4
.globl MaxML
.align 4
.type MaxML, @object
.size MaxML, 4
MaxML:
.zero 4
.globl MaxOff
.align 4
.type MaxOff, @object
.size MaxOff, 4
MaxOff:
.zero 4
.globl OffFSELog
.align 4
.type OffFSELog, @object
.size OffFSELog, 4
OffFSELog:
.zero 4
.globl Offbits
.align 4
.type Offbits, @object
.size Offbits, 4
Offbits:
.zero 4
.globl corruption_detected
.align 4
.type corruption_detected, @object
.size corruption_detected, 4
corruption_detected:
.zero 4
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.type ZSTD_decodeSeqHeaders, @function
ZSTD_decodeSeqHeaders:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push r15
push r14
push r13
push r12
push rbx
sub rsp, 168
.cfi_offset 15, -24
.cfi_offset 14, -32
.cfi_offset 13, -40
.cfi_offset 12, -48
.cfi_offset 3, -56
mov QWORD PTR -152[rbp], rdi
mov QWORD PTR -160[rbp], rsi
mov QWORD PTR -168[rbp], rdx
mov QWORD PTR -176[rbp], rcx
mov QWORD PTR -184[rbp], r8
mov QWORD PTR -192[rbp], r9
mov rax, QWORD PTR 16[rbp]
mov QWORD PTR -200[rbp], rax
mov rax, QWORD PTR fs:40
mov QWORD PTR -56[rbp], rax
xor eax, eax
mov rax, QWORD PTR -200[rbp]
mov QWORD PTR -96[rbp], rax
mov rax, QWORD PTR -96[rbp]
mov QWORD PTR -104[rbp], rax
mov rax, QWORD PTR 24[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -96[rbp]
add rax, rdx
mov QWORD PTR -88[rbp], rax
cmp QWORD PTR 24[rbp], 4
ja .L2
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L35
.L2:
mov rax, QWORD PTR -104[rbp]
mov rdi, rax
call MEM_readLE16@PLT
mov rdx, QWORD PTR -152[rbp]
mov DWORD PTR [rdx], eax
add QWORD PTR -104[rbp], 8
mov rax, QWORD PTR -104[rbp]
mov eax, DWORD PTR [rax]
sar eax, 6
mov DWORD PTR -124[rbp], eax
mov rax, QWORD PTR -104[rbp]
mov eax, DWORD PTR [rax]
sar eax, 4
and eax, 3
mov DWORD PTR -120[rbp], eax
mov rax, QWORD PTR -104[rbp]
mov eax, DWORD PTR [rax]
sar eax, 2
and eax, 3
mov DWORD PTR -116[rbp], eax
mov rax, QWORD PTR -104[rbp]
mov eax, DWORD PTR [rax]
and eax, 2
test eax, eax
je .L4
mov rax, QWORD PTR -104[rbp]
add rax, 8
mov eax, DWORD PTR [rax]
cdqe
mov QWORD PTR -112[rbp], rax
mov rax, QWORD PTR -104[rbp]
add rax, 4
mov eax, DWORD PTR [rax]
sal eax, 8
cdqe
add QWORD PTR -112[rbp], rax
add QWORD PTR -104[rbp], 12
jmp .L5
.L4:
mov rax, QWORD PTR -104[rbp]
add rax, 4
mov eax, DWORD PTR [rax]
cdqe
mov QWORD PTR -112[rbp], rax
mov rax, QWORD PTR -104[rbp]
mov eax, DWORD PTR [rax]
sal eax, 8
cdqe
and eax, 256
add QWORD PTR -112[rbp], rax
add QWORD PTR -104[rbp], 8
.L5:
mov rax, QWORD PTR -160[rbp]
mov rdx, QWORD PTR -104[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -112[rbp]
sal rax, 2
add QWORD PTR -104[rbp], rax
mov rax, QWORD PTR -168[rbp]
mov rdx, QWORD PTR -112[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -88[rbp]
sub rax, 12
cmp QWORD PTR -104[rbp], rax
jbe .L6
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L35
.L6:
mov rax, rsp
mov rbx, rax
mov eax, DWORD PTR MaxML[rip]
add eax, 1
movsx rdx, eax
sub rdx, 1
mov QWORD PTR -80[rbp], rdx
movsx rdx, eax
mov r14, rdx
mov r15d, 0
movsx rdx, eax
mov r12, rdx
mov r13d, 0
cdqe
lea rdx, 0[0+rax*4]
mov eax, 16
sub rax, 1
add rax, rdx
mov ecx, 16
mov edx, 0
div rcx
imul rax, rax, 16
mov rcx, rax
and rcx, -4096
mov rdx, rsp
sub rdx, rcx
.L7:
cmp rsp, rdx
je .L8
sub rsp, 4096
or QWORD PTR 4088[rsp], 0
jmp .L7
.L8:
mov rdx, rax
and edx, 4095
sub rsp, rdx
mov rdx, rax
and edx, 4095
test rdx, rdx
je .L9
and eax, 4095
sub rax, 8
add rax, rsp
or QWORD PTR [rax], 0
.L9:
mov rax, rsp
add rax, 3
shr rax, 2
sal rax, 2
mov QWORD PTR -72[rbp], rax
cmp DWORD PTR -124[rbp], 128
je .L10
cmp DWORD PTR -124[rbp], 129
je .L11
jmp .L37
.L10:
mov DWORD PTR -140[rbp], 0
mov rax, QWORD PTR -104[rbp]
lea rdx, 4[rax]
mov QWORD PTR -104[rbp], rdx
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -176[rbp]
mov esi, edx
mov rdi, rax
call FSE_buildDTable_rle@PLT
jmp .L13
.L11:
mov eax, DWORD PTR LLbits[rip]
mov DWORD PTR -140[rbp], eax
mov edx, DWORD PTR LLbits[rip]
mov rax, QWORD PTR -176[rbp]
mov esi, edx
mov rdi, rax
call FSE_buildDTable_raw@PLT
jmp .L13
.L37:
mov eax, DWORD PTR MaxLL[rip]
mov DWORD PTR -128[rbp], eax
mov rax, QWORD PTR -88[rbp]
sub rax, QWORD PTR -104[rbp]
sar rax, 2
mov edi, eax
mov rcx, QWORD PTR -104[rbp]
lea rdx, -140[rbp]
lea rsi, -128[rbp]
mov rax, QWORD PTR -72[rbp]
mov r8d, edi
mov rdi, rax
call FSE_readNCount@PLT
mov QWORD PTR -64[rbp], rax
mov rax, QWORD PTR -64[rbp]
mov rdi, rax
call FSE_isError@PLT
test eax, eax
je .L14
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
jmp .L17
.L14:
mov edx, DWORD PTR -140[rbp]
mov eax, DWORD PTR LLFSELog[rip]
cmp edx, eax
jle .L16
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L17
.L16:
mov rax, QWORD PTR -64[rbp]
sal rax, 2
add QWORD PTR -104[rbp], rax
mov ecx, DWORD PTR -140[rbp]
mov edx, DWORD PTR -128[rbp]
mov rsi, QWORD PTR -72[rbp]
mov rax, QWORD PTR -176[rbp]
mov rdi, rax
call FSE_buildDTable@PLT
.L13:
cmp DWORD PTR -120[rbp], 128
je .L18
cmp DWORD PTR -120[rbp], 129
je .L19
jmp .L38
.L18:
mov DWORD PTR -136[rbp], 0
mov rax, QWORD PTR -88[rbp]
sub rax, 8
cmp QWORD PTR -104[rbp], rax
jbe .L21
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L17
.L21:
mov rax, QWORD PTR -104[rbp]
lea rdx, 4[rax]
mov QWORD PTR -104[rbp], rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR MaxOff[rip]
and edx, eax
mov rax, QWORD PTR -192[rbp]
mov esi, edx
mov rdi, rax
call FSE_buildDTable_rle@PLT
jmp .L22
.L19:
mov eax, DWORD PTR Offbits[rip]
mov DWORD PTR -136[rbp], eax
mov edx, DWORD PTR Offbits[rip]
mov rax, QWORD PTR -192[rbp]
mov esi, edx
mov rdi, rax
call FSE_buildDTable_raw@PLT
jmp .L22
.L38:
mov eax, DWORD PTR MaxOff[rip]
mov DWORD PTR -128[rbp], eax
mov rax, QWORD PTR -88[rbp]
sub rax, QWORD PTR -104[rbp]
sar rax, 2
mov edi, eax
mov rcx, QWORD PTR -104[rbp]
lea rdx, -136[rbp]
lea rsi, -128[rbp]
mov rax, QWORD PTR -72[rbp]
mov r8d, edi
mov rdi, rax
call FSE_readNCount@PLT
mov QWORD PTR -64[rbp], rax
mov rax, QWORD PTR -64[rbp]
mov rdi, rax
call FSE_isError@PLT
test eax, eax
je .L23
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
jmp .L17
.L23:
mov edx, DWORD PTR -136[rbp]
mov eax, DWORD PTR OffFSELog[rip]
cmp edx, eax
jle .L25
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L17
.L25:
mov rax, QWORD PTR -64[rbp]
sal rax, 2
add QWORD PTR -104[rbp], rax
mov ecx, DWORD PTR -136[rbp]
mov edx, DWORD PTR -128[rbp]
mov rsi, QWORD PTR -72[rbp]
mov rax, QWORD PTR -192[rbp]
mov rdi, rax
call FSE_buildDTable@PLT
.L22:
cmp DWORD PTR -116[rbp], 128
je .L26
cmp DWORD PTR -116[rbp], 129
je .L27
jmp .L39
.L26:
mov DWORD PTR -132[rbp], 0
mov rax, QWORD PTR -88[rbp]
sub rax, 8
cmp QWORD PTR -104[rbp], rax
jbe .L29
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L17
.L29:
mov rax, QWORD PTR -104[rbp]
lea rdx, 4[rax]
mov QWORD PTR -104[rbp], rdx
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -184[rbp]
mov esi, edx
mov rdi, rax
call FSE_buildDTable_rle@PLT
jmp .L30
.L27:
mov eax, DWORD PTR MLbits[rip]
mov DWORD PTR -132[rbp], eax
mov edx, DWORD PTR MLbits[rip]
mov rax, QWORD PTR -184[rbp]
mov esi, edx
mov rdi, rax
call FSE_buildDTable_raw@PLT
jmp .L30
.L39:
mov eax, DWORD PTR MaxML[rip]
mov DWORD PTR -128[rbp], eax
mov rax, QWORD PTR -88[rbp]
sub rax, QWORD PTR -104[rbp]
sar rax, 2
mov edi, eax
mov rcx, QWORD PTR -104[rbp]
lea rdx, -132[rbp]
lea rsi, -128[rbp]
mov rax, QWORD PTR -72[rbp]
mov r8d, edi
mov rdi, rax
call FSE_readNCount@PLT
mov QWORD PTR -64[rbp], rax
mov rax, QWORD PTR -64[rbp]
mov rdi, rax
call FSE_isError@PLT
test eax, eax
je .L31
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
jmp .L17
.L31:
mov edx, DWORD PTR -132[rbp]
mov eax, DWORD PTR MLFSELog[rip]
cmp edx, eax
jle .L33
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L17
.L33:
mov rax, QWORD PTR -64[rbp]
sal rax, 2
add QWORD PTR -104[rbp], rax
mov ecx, DWORD PTR -132[rbp]
mov edx, DWORD PTR -128[rbp]
mov rsi, QWORD PTR -72[rbp]
mov rax, QWORD PTR -184[rbp]
mov rdi, rax
call FSE_buildDTable@PLT
.L30:
mov rsp, rbx
mov rax, QWORD PTR -104[rbp]
sub rax, QWORD PTR -96[rbp]
sar rax, 2
jmp .L35
.L17:
mov rsp, rbx
.L35:
mov rbx, QWORD PTR -56[rbp]
sub rbx, QWORD PTR fs:40
je .L36
call __stack_chk_fail@PLT
.L36:
lea rsp, -40[rbp]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_decodeSeqHeaders, .-ZSTD_decodeSeqHeaders
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_decodeSeqHeaders.c"
.option pic
.text
.comm GENERIC,4,4
.comm LLFSELog,4,4
.comm LLbits,4,4
.comm MLFSELog,4,4
.comm MLbits,4,4
.comm MaxLL,4,4
.comm MaxML,4,4
.comm MaxOff,4,4
.comm OffFSELog,4,4
.comm Offbits,4,4
.comm corruption_detected,4,4
.comm srcSize_wrong,4,4
.align 1
.type ZSTD_decodeSeqHeaders, @function
ZSTD_decodeSeqHeaders:
addi sp,sp,-256
sd ra,248(sp)
sd s0,240(sp)
sd s1,232(sp)
sd s2,224(sp)
sd s3,216(sp)
sd s4,208(sp)
sd s5,200(sp)
sd s6,192(sp)
sd s7,184(sp)
sd s8,176(sp)
sd s9,168(sp)
addi s0,sp,256
sd a0,-200(s0)
sd a1,-208(s0)
sd a2,-216(s0)
sd a3,-224(s0)
sd a4,-232(s0)
sd a5,-240(s0)
sd a6,-248(s0)
sd a7,-256(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-104(s0)
ld a5,-248(s0)
sd a5,-144(s0)
ld a5,-144(s0)
sd a5,-152(s0)
ld a5,-256(s0)
slli a5,a5,2
ld a4,-144(s0)
add a5,a4,a5
sd a5,-136(s0)
ld a4,-256(s0)
li a5,4
bgtu a4,a5,.L2
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L32
.L2:
ld a0,-152(s0)
call MEM_readLE16@plt
mv a5,a0
mv a4,a5
ld a5,-200(s0)
sw a4,0(a5)
ld a5,-152(s0)
addi a5,a5,8
sd a5,-152(s0)
ld a5,-152(s0)
lw a5,0(a5)
sraiw a5,a5,6
sw a5,-172(s0)
ld a5,-152(s0)
lw a5,0(a5)
sraiw a5,a5,4
sext.w a5,a5
andi a5,a5,3
sw a5,-168(s0)
ld a5,-152(s0)
lw a5,0(a5)
sraiw a5,a5,2
sext.w a5,a5
andi a5,a5,3
sw a5,-164(s0)
ld a5,-152(s0)
lw a5,0(a5)
andi a5,a5,2
sext.w a5,a5
beqz a5,.L4
ld a5,-152(s0)
addi a5,a5,8
lw a5,0(a5)
sd a5,-160(s0)
ld a5,-152(s0)
addi a5,a5,4
lw a5,0(a5)
slliw a5,a5,8
sext.w a5,a5
mv a4,a5
ld a5,-160(s0)
add a5,a5,a4
sd a5,-160(s0)
ld a5,-152(s0)
addi a5,a5,12
sd a5,-152(s0)
j .L5
.L4:
ld a5,-152(s0)
addi a5,a5,4
lw a5,0(a5)
sd a5,-160(s0)
ld a5,-152(s0)
lw a5,0(a5)
slliw a5,a5,8
sext.w a5,a5
andi a5,a5,256
ld a4,-160(s0)
add a5,a4,a5
sd a5,-160(s0)
ld a5,-152(s0)
addi a5,a5,8
sd a5,-152(s0)
.L5:
ld a5,-208(s0)
ld a4,-152(s0)
sd a4,0(a5)
ld a5,-160(s0)
slli a5,a5,2
ld a4,-152(s0)
add a5,a4,a5
sd a5,-152(s0)
ld a5,-216(s0)
ld a4,-160(s0)
sd a4,0(a5)
ld a5,-136(s0)
addi a5,a5,-12
ld a4,-152(s0)
bleu a4,a5,.L6
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L32
.L6:
mv a5,sp
mv s1,a5
la a5,MaxML
lw a5,0(a5)
addiw a5,a5,1
sext.w a5,a5
mv a4,a5
addi a4,a4,-1
sd a4,-128(s0)
mv a4,a5
mv s8,a4
li s9,0
srli a4,s8,59
slli s5,s9,5
or s5,a4,s5
slli s4,s8,5
mv a4,a5
mv s6,a4
li s7,0
srli a4,s6,59
slli s3,s7,5
or s3,a4,s3
slli s2,s6,5
slli a5,a5,2
addi a5,a5,15
srli a5,a5,4
slli a5,a5,4
sub sp,sp,a5
mv a5,sp
addi a5,a5,3
srli a5,a5,2
slli a5,a5,2
sd a5,-120(s0)
lw a5,-172(s0)
sext.w a4,a5
li a5,128
beq a4,a5,.L7
lw a5,-172(s0)
sext.w a4,a5
li a5,129
beq a4,a5,.L8
j .L34
.L7:
sw zero,-188(s0)
ld a5,-152(s0)
addi a4,a5,4
sd a4,-152(s0)
lw a5,0(a5)
mv a1,a5
ld a0,-224(s0)
call FSE_buildDTable_rle@plt
j .L10
.L8:
la a5,LLbits
lw a5,0(a5)
sw a5,-188(s0)
la a5,LLbits
lw a5,0(a5)
mv a1,a5
ld a0,-224(s0)
call FSE_buildDTable_raw@plt
j .L10
.L34:
la a5,MaxLL
lw a5,0(a5)
sw a5,-176(s0)
ld a4,-136(s0)
ld a5,-152(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a4,a5
addi a2,s0,-188
addi a5,s0,-176
ld a3,-152(s0)
mv a1,a5
ld a0,-120(s0)
call FSE_readNCount@plt
sd a0,-112(s0)
ld a0,-112(s0)
call FSE_isError@plt
mv a5,a0
beqz a5,.L11
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L11:
lw a4,-188(s0)
la a5,LLFSELog
lw a5,0(a5)
ble a4,a5,.L13
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L13:
ld a5,-112(s0)
slli a5,a5,2
ld a4,-152(s0)
add a5,a4,a5
sd a5,-152(s0)
lw a5,-176(s0)
lw a4,-188(s0)
mv a3,a4
mv a2,a5
ld a1,-120(s0)
ld a0,-224(s0)
call FSE_buildDTable@plt
.L10:
lw a5,-168(s0)
sext.w a4,a5
li a5,128
beq a4,a5,.L15
lw a5,-168(s0)
sext.w a4,a5
li a5,129
beq a4,a5,.L16
j .L35
.L15:
sw zero,-184(s0)
ld a5,-136(s0)
addi a5,a5,-8
ld a4,-152(s0)
bleu a4,a5,.L18
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L18:
ld a5,-152(s0)
addi a4,a5,4
sd a4,-152(s0)
lw a4,0(a5)
la a5,MaxOff
lw a5,0(a5)
and a5,a4,a5
sext.w a5,a5
mv a1,a5
ld a0,-240(s0)
call FSE_buildDTable_rle@plt
j .L19
.L16:
la a5,Offbits
lw a5,0(a5)
sw a5,-184(s0)
la a5,Offbits
lw a5,0(a5)
mv a1,a5
ld a0,-240(s0)
call FSE_buildDTable_raw@plt
j .L19
.L35:
la a5,MaxOff
lw a5,0(a5)
sw a5,-176(s0)
ld a4,-136(s0)
ld a5,-152(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a4,a5
addi a2,s0,-184
addi a5,s0,-176
ld a3,-152(s0)
mv a1,a5
ld a0,-120(s0)
call FSE_readNCount@plt
sd a0,-112(s0)
ld a0,-112(s0)
call FSE_isError@plt
mv a5,a0
beqz a5,.L20
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L20:
lw a4,-184(s0)
la a5,OffFSELog
lw a5,0(a5)
ble a4,a5,.L22
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L22:
ld a5,-112(s0)
slli a5,a5,2
ld a4,-152(s0)
add a5,a4,a5
sd a5,-152(s0)
lw a5,-176(s0)
lw a4,-184(s0)
mv a3,a4
mv a2,a5
ld a1,-120(s0)
ld a0,-240(s0)
call FSE_buildDTable@plt
.L19:
lw a5,-164(s0)
sext.w a4,a5
li a5,128
beq a4,a5,.L23
lw a5,-164(s0)
sext.w a4,a5
li a5,129
beq a4,a5,.L24
j .L36
.L23:
sw zero,-180(s0)
ld a5,-136(s0)
addi a5,a5,-8
ld a4,-152(s0)
bleu a4,a5,.L26
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L26:
ld a5,-152(s0)
addi a4,a5,4
sd a4,-152(s0)
lw a5,0(a5)
mv a1,a5
ld a0,-232(s0)
call FSE_buildDTable_rle@plt
j .L27
.L24:
la a5,MLbits
lw a5,0(a5)
sw a5,-180(s0)
la a5,MLbits
lw a5,0(a5)
mv a1,a5
ld a0,-232(s0)
call FSE_buildDTable_raw@plt
j .L27
.L36:
la a5,MaxML
lw a5,0(a5)
sw a5,-176(s0)
ld a4,-136(s0)
ld a5,-152(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a4,a5
addi a2,s0,-180
addi a5,s0,-176
ld a3,-152(s0)
mv a1,a5
ld a0,-120(s0)
call FSE_readNCount@plt
sd a0,-112(s0)
ld a0,-112(s0)
call FSE_isError@plt
mv a5,a0
beqz a5,.L28
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L28:
lw a4,-180(s0)
la a5,MLFSELog
lw a5,0(a5)
ble a4,a5,.L30
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L30:
ld a5,-112(s0)
slli a5,a5,2
ld a4,-152(s0)
add a5,a4,a5
sd a5,-152(s0)
lw a5,-176(s0)
lw a4,-180(s0)
mv a3,a4
mv a2,a5
ld a1,-120(s0)
ld a0,-232(s0)
call FSE_buildDTable@plt
.L27:
mv sp,s1
ld a4,-152(s0)
ld a5,-144(s0)
sub a5,a4,a5
srai a5,a5,2
j .L32
.L14:
mv sp,s1
.L32:
mv a3,a5
la a5,__stack_chk_guard
ld a4,-104(s0)
ld a5,0(a5)
beq a4,a5,.L33
call __stack_chk_fail@plt
.L33:
mv a0,a3
addi sp,s0,-256
ld ra,248(sp)
ld s0,240(sp)
ld s1,232(sp)
ld s2,224(sp)
ld s3,216(sp)
ld s4,208(sp)
ld s5,200(sp)
ld s6,192(sp)
ld s7,184(sp)
ld s8,176(sp)
ld s9,168(sp)
addi sp,sp,256
jr ra
.size ZSTD_decodeSeqHeaders, .-ZSTD_decodeSeqHeaders
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_decompressBlock_internal.c"
.intel_syntax noprefix
.text
.globl BLOCKSIZE
.bss
.align 8
.type BLOCKSIZE, @object
.size BLOCKSIZE, 8
BLOCKSIZE:
.zero 8
.globl corruption_detected
.align 4
.type corruption_detected, @object
.size corruption_detected, 4
corruption_detected:
.zero 4
.text
.type ZSTD_decompressBlock_internal, @function
ZSTD_decompressBlock_internal:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov QWORD PTR -48[rbp], rcx
mov QWORD PTR -56[rbp], r8
mov rax, QWORD PTR -48[rbp]
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR BLOCKSIZE[rip]
cmp QWORD PTR -56[rbp], rax
jbe .L2
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L2:
mov rdx, QWORD PTR -56[rbp]
mov rcx, QWORD PTR -48[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTD_decodeLiteralsBlock@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ZSTD_isError@PLT
test rax, rax
je .L4
mov rax, QWORD PTR -8[rbp]
jmp .L3
.L4:
mov rax, QWORD PTR -8[rbp]
sal rax, 2
add QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -8[rbp]
sub QWORD PTR -56[rbp], rax
mov rdi, QWORD PTR -56[rbp]
mov rcx, QWORD PTR -16[rbp]
mov rdx, QWORD PTR -40[rbp]
mov rsi, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov r8, rdi
mov rdi, rax
call ZSTD_decompressSequences@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_decompressBlock_internal, .-ZSTD_decompressBlock_internal
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_decompressBlock_internal.c"
.option pic
.text
.comm BLOCKSIZE,8,8
.comm corruption_detected,4,4
.align 1
.type ZSTD_decompressBlock_internal, @function
ZSTD_decompressBlock_internal:
addi sp,sp,-80
sd ra,72(sp)
sd s0,64(sp)
addi s0,sp,80
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
sd a3,-64(s0)
sd a4,-72(s0)
ld a5,-64(s0)
sd a5,-32(s0)
la a5,BLOCKSIZE
ld a5,0(a5)
ld a4,-72(s0)
bleu a4,a5,.L2
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
ld a2,-72(s0)
ld a1,-64(s0)
ld a0,-40(s0)
call ZSTD_decodeLiteralsBlock@plt
sd a0,-24(s0)
ld a0,-24(s0)
call ZSTD_isError@plt
mv a5,a0
beqz a5,.L4
ld a5,-24(s0)
j .L3
.L4:
ld a5,-24(s0)
slli a5,a5,2
ld a4,-32(s0)
add a5,a4,a5
sd a5,-32(s0)
ld a4,-72(s0)
ld a5,-24(s0)
sub a5,a4,a5
sd a5,-72(s0)
ld a4,-72(s0)
ld a3,-32(s0)
ld a2,-56(s0)
ld a1,-48(s0)
ld a0,-40(s0)
call ZSTD_decompressSequences@plt
mv a5,a0
.L3:
mv a0,a5
ld ra,72(sp)
ld s0,64(sp)
addi sp,sp,80
jr ra
.size ZSTD_decompressBlock_internal, .-ZSTD_decompressBlock_internal
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_decompressLiterals.c"
.intel_syntax noprefix
.text
.globl corruption_detected
.bss
.align 4
.type corruption_detected, @object
.size corruption_detected, 4
corruption_detected:
.zero 4
.text
.type ZSTD_decompressLiterals, @function
ZSTD_decompressLiterals:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov QWORD PTR -40[rbp], rdi
mov QWORD PTR -48[rbp], rsi
mov QWORD PTR -56[rbp], rdx
mov QWORD PTR -64[rbp], rcx
mov rax, QWORD PTR -56[rbp]
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -56[rbp]
mov rdi, rax
call MEM_readLE32@PLT
sar eax, 2
cdqe
and eax, 524287
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -24[rbp]
add rax, 2
mov rdi, rax
call MEM_readLE32@PLT
sar eax, 5
cdqe
and eax, 524287
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -48[rbp]
mov rax, QWORD PTR [rax]
cmp QWORD PTR -16[rbp], rax
jbe .L2
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
add rax, 5
cmp QWORD PTR -64[rbp], rax
jnb .L4
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
mov rax, QWORD PTR -24[rbp]
lea rdi, 5[rax]
mov rdx, QWORD PTR -8[rbp]
mov rsi, QWORD PTR -16[rbp]
mov rax, QWORD PTR -40[rbp]
mov rcx, rdx
mov rdx, rdi
mov rdi, rax
call HUF_decompress@PLT
mov edi, eax
call HUF_isError@PLT
test rax, rax
je .L5
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L5:
mov rax, QWORD PTR -48[rbp]
mov rdx, QWORD PTR -16[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -8[rbp]
add rax, 5
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_decompressLiterals, .-ZSTD_decompressLiterals
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_decompressLiterals.c"
.option pic
.text
.comm corruption_detected,4,4
.align 1
.type ZSTD_decompressLiterals, @function
ZSTD_decompressLiterals:
addi sp,sp,-80
sd ra,72(sp)
sd s0,64(sp)
addi s0,sp,80
sd a0,-56(s0)
sd a1,-64(s0)
sd a2,-72(s0)
sd a3,-80(s0)
ld a5,-72(s0)
sd a5,-40(s0)
ld a0,-72(s0)
call MEM_readLE32@plt
mv a5,a0
sraiw a5,a5,2
sext.w a5,a5
mv a4,a5
li a5,524288
addi a5,a5,-1
and a5,a4,a5
sd a5,-32(s0)
ld a5,-40(s0)
addi a5,a5,2
mv a0,a5
call MEM_readLE32@plt
mv a5,a0
sraiw a5,a5,5
sext.w a5,a5
mv a4,a5
li a5,524288
addi a5,a5,-1
and a5,a4,a5
sd a5,-24(s0)
ld a5,-64(s0)
ld a5,0(a5)
ld a4,-32(s0)
bleu a4,a5,.L2
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
ld a5,-24(s0)
addi a5,a5,5
ld a4,-80(s0)
bgeu a4,a5,.L4
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
ld a5,-40(s0)
addi a5,a5,5
ld a3,-24(s0)
mv a2,a5
ld a1,-32(s0)
ld a0,-56(s0)
call HUF_decompress@plt
mv a5,a0
mv a0,a5
call HUF_isError@plt
mv a5,a0
beqz a5,.L5
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L5:
ld a5,-64(s0)
ld a4,-32(s0)
sd a4,0(a5)
ld a5,-24(s0)
addi a5,a5,5
.L3:
mv a0,a5
ld ra,72(sp)
ld s0,64(sp)
addi sp,sp,80
jr ra
.size ZSTD_decompressLiterals, .-ZSTD_decompressLiterals
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_decompressSequences.c"
.intel_syntax noprefix
.text
.globl BIT_DStream_completed
.bss
.align 8
.type BIT_DStream_completed, @object
.size BIT_DStream_completed, 8
BIT_DStream_completed:
.zero 8
.globl corruption_detected
.align 4
.type corruption_detected, @object
.size corruption_detected, 4
corruption_detected:
.zero 4
.globl dstSize_tooSmall
.align 4
.type dstSize_tooSmall, @object
.size dstSize_tooSmall, 4
dstSize_tooSmall:
.zero 4
.text
.type ZSTD_decompressSequences, @function
ZSTD_decompressSequences:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 256
mov QWORD PTR -216[rbp], rdi
mov QWORD PTR -224[rbp], rsi
mov QWORD PTR -232[rbp], rdx
mov QWORD PTR -240[rbp], rcx
mov QWORD PTR -248[rbp], r8
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov rax, QWORD PTR -240[rbp]
mov QWORD PTR -160[rbp], rax
mov rax, QWORD PTR -248[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -160[rbp]
add rax, rdx
mov QWORD PTR -152[rbp], rax
mov rax, QWORD PTR -224[rbp]
mov QWORD PTR -144[rbp], rax
mov rax, QWORD PTR -144[rbp]
mov QWORD PTR -168[rbp], rax
mov rax, QWORD PTR -232[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -144[rbp]
add rax, rdx
mov QWORD PTR -136[rbp], rax
mov rax, QWORD PTR -216[rbp]
mov rax, QWORD PTR 56[rax]
mov QWORD PTR -184[rbp], rax
mov rdx, QWORD PTR -184[rbp]
mov rax, QWORD PTR -216[rbp]
mov eax, DWORD PTR [rax]
cdqe
sal rax, 2
add rax, rdx
mov QWORD PTR -128[rbp], rax
mov rax, QWORD PTR -216[rbp]
mov rax, QWORD PTR 48[rax]
mov QWORD PTR -120[rbp], rax
mov rax, QWORD PTR -216[rbp]
mov rax, QWORD PTR 40[rax]
mov QWORD PTR -112[rbp], rax
mov rax, QWORD PTR -216[rbp]
mov rax, QWORD PTR 32[rax]
mov QWORD PTR -104[rbp], rax
mov rax, QWORD PTR -216[rbp]
mov rax, QWORD PTR 24[rax]
mov QWORD PTR -96[rbp], rax
mov rax, QWORD PTR -216[rbp]
mov rax, QWORD PTR 16[rax]
mov QWORD PTR -88[rbp], rax
mov rax, QWORD PTR -216[rbp]
mov rax, QWORD PTR 8[rax]
mov QWORD PTR -80[rbp], rax
mov rax, QWORD PTR -152[rbp]
sub rax, QWORD PTR -160[rbp]
sar rax, 2
mov r9d, eax
mov r8, QWORD PTR -104[rbp]
mov rdi, QWORD PTR -112[rbp]
mov rcx, QWORD PTR -120[rbp]
lea rdx, -192[rbp]
lea rsi, -176[rbp]
lea rax, -200[rbp]
push r9
push QWORD PTR -160[rbp]
mov r9, r8
mov r8, rdi
mov rdi, rax
call ZSTD_decodeSeqHeaders@PLT
add rsp, 16
mov QWORD PTR -72[rbp], rax
mov rax, QWORD PTR -72[rbp]
mov rdi, rax
call ZSTD_isError@PLT
test rax, rax
je .L2
mov rax, QWORD PTR -72[rbp]
jmp .L14
.L2:
mov rax, QWORD PTR -72[rbp]
sal rax, 2
add QWORD PTR -160[rbp], rax
lea rax, -196[rbp]
mov edx, 4
mov esi, 0
mov rdi, rax
call memset@PLT
mov DWORD PTR -196[rbp], 4
mov rax, QWORD PTR -176[rbp]
mov QWORD PTR -16[rbp], rax
mov rdx, QWORD PTR -176[rbp]
mov rax, QWORD PTR -192[rbp]
sal rax, 2
add rax, rdx
mov QWORD PTR -24[rbp], rax
mov DWORD PTR -48[rbp], 4
mov rax, QWORD PTR -152[rbp]
sub rax, QWORD PTR -160[rbp]
sar rax, 2
mov esi, eax
mov rax, QWORD PTR -160[rbp]
lea rdx, -48[rbp]
lea rcx, 4[rdx]
mov edx, esi
mov rsi, rax
mov rdi, rcx
call BIT_initDStream@PLT
mov QWORD PTR -72[rbp], rax
mov rax, QWORD PTR -72[rbp]
mov rdi, rax
call ERR_isError@PLT
test rax, rax
je .L4
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L14
.L4:
mov rax, QWORD PTR -120[rbp]
lea rdx, -48[rbp]
lea rsi, 4[rdx]
lea rdx, -48[rbp]
lea rcx, 16[rdx]
mov rdx, rax
mov rdi, rcx
call FSE_initDState@PLT
mov rax, QWORD PTR -104[rbp]
lea rdx, -48[rbp]
lea rsi, 4[rdx]
lea rdx, -48[rbp]
lea rcx, 12[rdx]
mov rdx, rax
mov rdi, rcx
call FSE_initDState@PLT
mov rax, QWORD PTR -112[rbp]
lea rdx, -48[rbp]
lea rsi, 4[rdx]
lea rdx, -48[rbp]
lea rcx, 8[rdx]
mov rdx, rax
mov rdi, rcx
call FSE_initDState@PLT
jmp .L6
.L9:
mov eax, DWORD PTR -200[rbp]
sub eax, 1
mov DWORD PTR -200[rbp], eax
lea rdx, -48[rbp]
lea rax, -196[rbp]
mov rsi, rdx
mov rdi, rax
call ZSTD_decodeSequence@PLT
mov r8, QWORD PTR -96[rbp]
mov rdi, QWORD PTR -128[rbp]
lea rcx, -184[rbp]
mov edx, DWORD PTR -196[rbp]
mov rsi, QWORD PTR -136[rbp]
mov rax, QWORD PTR -168[rbp]
push QWORD PTR -80[rbp]
push QWORD PTR -88[rbp]
mov r9, r8
mov r8, rdi
mov rdi, rax
call ZSTD_execSequence@PLT
add rsp, 16
mov QWORD PTR -64[rbp], rax
mov rax, QWORD PTR -64[rbp]
mov rdi, rax
call ZSTD_isError@PLT
test rax, rax
je .L7
mov rax, QWORD PTR -64[rbp]
jmp .L14
.L7:
mov rax, QWORD PTR -64[rbp]
sal rax, 2
add QWORD PTR -168[rbp], rax
.L6:
lea rax, -48[rbp]
add rax, 4
mov rdi, rax
call BIT_reloadDStream@PLT
mov rdx, QWORD PTR BIT_DStream_completed[rip]
cmp rax, rdx
jg .L8
mov eax, DWORD PTR -200[rbp]
test eax, eax
jne .L9
.L8:
lea rax, -48[rbp]
add rax, 4
mov rdi, rax
call BIT_endOfDStream@PLT
test eax, eax
jne .L10
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L14
.L10:
mov rdx, QWORD PTR -184[rbp]
mov rax, QWORD PTR -128[rbp]
sub rax, rdx
sar rax, 2
mov QWORD PTR -56[rbp], rax
mov rax, QWORD PTR -184[rbp]
cmp QWORD PTR -128[rbp], rax
jnb .L11
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L14
.L11:
mov rax, QWORD PTR -56[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -168[rbp]
add rax, rdx
cmp QWORD PTR -136[rbp], rax
jnb .L12
mov eax, DWORD PTR dstSize_tooSmall[rip]
mov edi, eax
call ERROR@PLT
jmp .L14
.L12:
mov rax, QWORD PTR -184[rbp]
cmp QWORD PTR -168[rbp], rax
je .L13
mov rcx, QWORD PTR -184[rbp]
mov rdx, QWORD PTR -56[rbp]
mov rax, QWORD PTR -168[rbp]
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
.L13:
mov rax, QWORD PTR -56[rbp]
sal rax, 2
add QWORD PTR -168[rbp], rax
mov rax, QWORD PTR -168[rbp]
sub rax, QWORD PTR -144[rbp]
sar rax, 2
.L14:
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L15
call __stack_chk_fail@PLT
.L15:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_decompressSequences, .-ZSTD_decompressSequences
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_decompressSequences.c"
.option pic
.text
.comm BIT_DStream_completed,8,8
.comm corruption_detected,4,4
.comm dstSize_tooSmall,4,4
.align 1
.type ZSTD_decompressSequences, @function
ZSTD_decompressSequences:
addi sp,sp,-272
sd ra,264(sp)
sd s0,256(sp)
addi s0,sp,272
sd a0,-232(s0)
sd a1,-240(s0)
sd a2,-248(s0)
sd a3,-256(s0)
sd a4,-264(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-24(s0)
ld a5,-256(s0)
sd a5,-176(s0)
ld a5,-264(s0)
slli a5,a5,2
ld a4,-176(s0)
add a5,a4,a5
sd a5,-168(s0)
ld a5,-240(s0)
sd a5,-160(s0)
ld a5,-160(s0)
sd a5,-184(s0)
ld a5,-248(s0)
slli a5,a5,2
ld a4,-160(s0)
add a5,a4,a5
sd a5,-152(s0)
ld a5,-232(s0)
ld a5,56(a5)
sd a5,-200(s0)
ld a4,-200(s0)
ld a5,-232(s0)
lw a5,0(a5)
slli a5,a5,2
add a5,a4,a5
sd a5,-144(s0)
ld a5,-232(s0)
ld a5,48(a5)
sd a5,-136(s0)
ld a5,-232(s0)
ld a5,40(a5)
sd a5,-128(s0)
ld a5,-232(s0)
ld a5,32(a5)
sd a5,-120(s0)
ld a5,-232(s0)
ld a5,24(a5)
sd a5,-112(s0)
ld a5,-232(s0)
ld a5,16(a5)
sd a5,-104(s0)
ld a5,-232(s0)
ld a5,8(a5)
sd a5,-96(s0)
ld a4,-168(s0)
ld a5,-176(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a5,a5
addi a2,s0,-208
addi a1,s0,-192
addi a0,s0,-212
mv a7,a5
ld a6,-176(s0)
ld a5,-120(s0)
ld a4,-128(s0)
ld a3,-136(s0)
call ZSTD_decodeSeqHeaders@plt
sd a0,-88(s0)
ld a0,-88(s0)
call ZSTD_isError@plt
mv a5,a0
beqz a5,.L2
ld a5,-88(s0)
j .L14
.L2:
ld a5,-88(s0)
slli a5,a5,2
ld a4,-176(s0)
add a5,a4,a5
sd a5,-176(s0)
addi a5,s0,-216
li a2,4
li a1,0
mv a0,a5
call memset@plt
li a5,4
sw a5,-216(s0)
ld a5,-192(s0)
sd a5,-32(s0)
ld a4,-192(s0)
ld a5,-208(s0)
slli a5,a5,2
add a5,a4,a5
sd a5,-40(s0)
li a5,4
sw a5,-64(s0)
ld a4,-168(s0)
ld a5,-176(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a4,a5
addi a5,s0,-64
addi a5,a5,4
mv a2,a4
ld a1,-176(s0)
mv a0,a5
call BIT_initDStream@plt
sd a0,-88(s0)
ld a0,-88(s0)
call ERR_isError@plt
mv a5,a0
beqz a5,.L4
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L4:
addi a5,s0,-64
addi a4,a5,4
addi a5,s0,-64
addi a5,a5,16
ld a2,-136(s0)
mv a1,a4
mv a0,a5
call FSE_initDState@plt
addi a5,s0,-64
addi a4,a5,4
addi a5,s0,-64
addi a5,a5,12
ld a2,-120(s0)
mv a1,a4
mv a0,a5
call FSE_initDState@plt
addi a5,s0,-64
addi a4,a5,4
addi a5,s0,-64
addi a5,a5,8
ld a2,-128(s0)
mv a1,a4
mv a0,a5
call FSE_initDState@plt
j .L6
.L9:
lw a5,-212(s0)
addiw a5,a5,-1
sext.w a5,a5
sw a5,-212(s0)
addi a4,s0,-64
addi a5,s0,-216
mv a1,a4
mv a0,a5
call ZSTD_decodeSequence@plt
addi a3,s0,-200
ld a7,-96(s0)
ld a6,-104(s0)
ld a5,-112(s0)
ld a4,-144(s0)
lw a2,-216(s0)
ld a1,-152(s0)
ld a0,-184(s0)
call ZSTD_execSequence@plt
sd a0,-80(s0)
ld a0,-80(s0)
call ZSTD_isError@plt
mv a5,a0
beqz a5,.L7
ld a5,-80(s0)
j .L14
.L7:
ld a5,-80(s0)
slli a5,a5,2
ld a4,-184(s0)
add a5,a4,a5
sd a5,-184(s0)
.L6:
addi a5,s0,-64
addi a5,a5,4
mv a0,a5
call BIT_reloadDStream@plt
mv a4,a0
la a5,BIT_DStream_completed
ld a5,0(a5)
bgt a4,a5,.L8
lw a5,-212(s0)
bnez a5,.L9
.L8:
addi a5,s0,-64
addi a5,a5,4
mv a0,a5
call BIT_endOfDStream@plt
mv a5,a0
bnez a5,.L10
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L10:
ld a5,-200(s0)
ld a4,-144(s0)
sub a5,a4,a5
srai a5,a5,2
sd a5,-72(s0)
ld a5,-200(s0)
ld a4,-144(s0)
bgeu a4,a5,.L11
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L11:
ld a5,-72(s0)
slli a5,a5,2
ld a4,-184(s0)
add a5,a4,a5
ld a4,-152(s0)
bgeu a4,a5,.L12
la a5,dstSize_tooSmall
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L12:
ld a5,-200(s0)
ld a4,-184(s0)
beq a4,a5,.L13
ld a5,-200(s0)
ld a2,-72(s0)
mv a1,a5
ld a0,-184(s0)
call memcpy@plt
.L13:
ld a5,-72(s0)
slli a5,a5,2
ld a4,-184(s0)
add a5,a4,a5
sd a5,-184(s0)
ld a4,-184(s0)
ld a5,-160(s0)
sub a5,a4,a5
srai a5,a5,2
.L14:
mv a3,a5
la a5,__stack_chk_guard
ld a4,-24(s0)
ld a5,0(a5)
beq a4,a5,.L15
call __stack_chk_fail@plt
.L15:
mv a0,a3
ld ra,264(sp)
ld s0,256(sp)
addi sp,sp,272
jr ra
.size ZSTD_decompressSequences, .-ZSTD_decompressSequences
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_decompress_insertDictionary.c"
.intel_syntax noprefix
.text
.type ZSTD_decompress_insertDictionary, @function
ZSTD_decompress_insertDictionary:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 8[rax]
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 8[rax]
mov rax, QWORD PTR -8[rbp]
mov rcx, QWORD PTR 24[rax]
mov rax, rdx
sub rax, rcx
neg rax
mov rdx, rax
mov rax, QWORD PTR -16[rbp]
add rdx, rax
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 16[rax], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR -16[rbp]
mov QWORD PTR 24[rax], rdx
mov rdx, QWORD PTR -16[rbp]
mov rax, QWORD PTR -24[rbp]
add rdx, rax
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 8[rax], rdx
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_decompress_insertDictionary, .-ZSTD_decompress_insertDictionary
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_decompress_insertDictionary.c"
.option pic
.text
.align 1
.type ZSTD_decompress_insertDictionary, @function
ZSTD_decompress_insertDictionary:
addi sp,sp,-48
sd s0,40(sp)
addi s0,sp,48
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
ld a5,-24(s0)
ld a4,8(a5)
ld a5,-24(s0)
sd a4,0(a5)
ld a5,-24(s0)
ld a4,8(a5)
ld a5,-24(s0)
ld a5,24(a5)
sub a5,a4,a5
neg a5,a5
ld a4,-32(s0)
add a4,a4,a5
ld a5,-24(s0)
sd a4,16(a5)
ld a5,-24(s0)
ld a4,-32(s0)
sd a4,24(a5)
ld a4,-32(s0)
ld a5,-40(s0)
add a4,a4,a5
ld a5,-24(s0)
sd a4,8(a5)
nop
ld s0,40(sp)
addi sp,sp,48
jr ra
.size ZSTD_decompress_insertDictionary, .-ZSTD_decompress_insertDictionary
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_decompress_usingDict.c"
.intel_syntax noprefix
.text
.globl GENERIC
.bss
.align 4
.type GENERIC, @object
.size GENERIC, 4
GENERIC:
.zero 4
.globl ZSTD_blockHeaderSize
.align 8
.type ZSTD_blockHeaderSize, @object
.size ZSTD_blockHeaderSize, 8
ZSTD_blockHeaderSize:
.zero 8
.globl ZSTD_frameHeaderSize_min
.align 8
.type ZSTD_frameHeaderSize_min, @object
.size ZSTD_frameHeaderSize_min, 8
ZSTD_frameHeaderSize_min:
.zero 8
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.type ZSTD_decompress_usingDict, @function
ZSTD_decompress_usingDict:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 144
mov QWORD PTR -104[rbp], rdi
mov QWORD PTR -112[rbp], rsi
mov QWORD PTR -120[rbp], rdx
mov QWORD PTR -128[rbp], rcx
mov QWORD PTR -136[rbp], r8
mov QWORD PTR -144[rbp], r9
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov rax, QWORD PTR -128[rbp]
mov QWORD PTR -80[rbp], rax
mov rax, QWORD PTR -136[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -80[rbp]
add rax, rdx
mov QWORD PTR -48[rbp], rax
mov rax, QWORD PTR -112[rbp]
mov QWORD PTR -40[rbp], rax
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR -72[rbp], rax
mov rax, QWORD PTR -120[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -136[rbp]
mov QWORD PTR -64[rbp], rax
mov rax, QWORD PTR -104[rbp]
mov rdi, rax
call ZSTD_resetDCtx@PLT
cmp QWORD PTR -144[rbp], 0
je .L2
mov rcx, QWORD PTR -144[rbp]
mov rax, QWORD PTR -104[rbp]
mov rdx, QWORD PTR 16[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTD_decompress_insertDictionary@PLT
mov rax, QWORD PTR -104[rbp]
mov rdx, QWORD PTR 8[rax]
mov rax, QWORD PTR -104[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -104[rbp]
mov rdx, QWORD PTR 8[rax]
mov rax, QWORD PTR -104[rbp]
mov rcx, QWORD PTR 24[rax]
mov rax, rdx
sub rax, rcx
neg rax
mov rdx, rax
mov rax, QWORD PTR -112[rbp]
add rdx, rax
mov rax, QWORD PTR -104[rbp]
mov QWORD PTR 16[rax], rdx
mov rax, QWORD PTR -104[rbp]
mov rdx, QWORD PTR -112[rbp]
mov QWORD PTR 24[rax], rdx
jmp .L3
.L2:
mov rax, QWORD PTR -104[rbp]
mov rdx, QWORD PTR -112[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -104[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR -104[rbp]
mov QWORD PTR 24[rax], rdx
mov rax, QWORD PTR -104[rbp]
mov rdx, QWORD PTR 24[rax]
mov rax, QWORD PTR -104[rbp]
mov QWORD PTR 16[rax], rdx
.L3:
mov rdx, QWORD PTR ZSTD_frameHeaderSize_min[rip]
mov rax, QWORD PTR ZSTD_blockHeaderSize[rip]
add rax, rdx
cmp QWORD PTR -136[rbp], rax
jnb .L4
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L4:
mov rdx, QWORD PTR ZSTD_frameHeaderSize_min[rip]
mov rcx, QWORD PTR -128[rbp]
mov rax, QWORD PTR -104[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTD_decodeFrameHeader_Part1@PLT
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call ZSTD_isError@PLT
test rax, rax
je .L6
mov rax, QWORD PTR -24[rbp]
jmp .L21
.L6:
mov rdx, QWORD PTR ZSTD_blockHeaderSize[rip]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
cmp QWORD PTR -136[rbp], rax
jnb .L7
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L7:
mov rax, QWORD PTR -24[rbp]
sal rax, 2
add QWORD PTR -80[rbp], rax
mov rax, QWORD PTR -24[rbp]
sub QWORD PTR -64[rbp], rax
mov rdx, QWORD PTR -24[rbp]
mov rcx, QWORD PTR -128[rbp]
mov rax, QWORD PTR -104[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTD_decodeFrameHeader_Part2@PLT
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call ZSTD_isError@PLT
test rax, rax
je .L8
mov rax, QWORD PTR -24[rbp]
jmp .L21
.L8:
mov QWORD PTR -56[rbp], 0
mov rax, QWORD PTR -48[rbp]
sub rax, QWORD PTR -80[rbp]
sar rax, 2
mov ecx, eax
lea rdx, -84[rbp]
mov rax, QWORD PTR -80[rbp]
mov esi, ecx
mov rdi, rax
call ZSTD_getcBlockSize@PLT
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call ZSTD_isError@PLT
test rax, rax
je .L9
mov rax, QWORD PTR -16[rbp]
jmp .L21
.L9:
mov rax, QWORD PTR ZSTD_blockHeaderSize[rip]
sal rax, 2
add QWORD PTR -80[rbp], rax
mov rax, QWORD PTR ZSTD_blockHeaderSize[rip]
sub QWORD PTR -64[rbp], rax
mov rax, QWORD PTR -16[rbp]
cmp rax, QWORD PTR -64[rbp]
jbe .L10
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L10:
mov eax, DWORD PTR -84[rbp]
cmp eax, 131
je .L11
cmp eax, 131
jg .L12
cmp eax, 130
je .L13
cmp eax, 130
jg .L12
cmp eax, 128
je .L14
cmp eax, 129
je .L15
jmp .L12
.L11:
mov rax, QWORD PTR -32[rbp]
sub rax, QWORD PTR -72[rbp]
sar rax, 2
mov edi, eax
mov rcx, QWORD PTR -16[rbp]
mov rdx, QWORD PTR -80[rbp]
mov rsi, QWORD PTR -72[rbp]
mov rax, QWORD PTR -104[rbp]
mov r8, rcx
mov rcx, rdx
mov edx, edi
mov rdi, rax
call ZSTD_decompressBlock_internal@PLT
mov QWORD PTR -56[rbp], rax
jmp .L16
.L15:
mov rax, QWORD PTR -32[rbp]
sub rax, QWORD PTR -72[rbp]
sar rax, 2
mov esi, eax
mov rcx, QWORD PTR -16[rbp]
mov rdx, QWORD PTR -80[rbp]
mov rax, QWORD PTR -72[rbp]
mov rdi, rax
call ZSTD_copyRawBlock@PLT
mov QWORD PTR -56[rbp], rax
jmp .L16
.L14:
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L13:
cmp QWORD PTR -64[rbp], 0
je .L24
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L12:
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L24:
nop
.L16:
cmp QWORD PTR -16[rbp], 0
je .L25
mov rax, QWORD PTR -56[rbp]
mov rdi, rax
call ZSTD_isError@PLT
test rax, rax
je .L20
mov rax, QWORD PTR -56[rbp]
jmp .L21
.L20:
mov rax, QWORD PTR -56[rbp]
sal rax, 2
add QWORD PTR -72[rbp], rax
mov rax, QWORD PTR -16[rbp]
sal rax, 2
add QWORD PTR -80[rbp], rax
mov rax, QWORD PTR -16[rbp]
sub QWORD PTR -64[rbp], rax
jmp .L8
.L25:
nop
mov rax, QWORD PTR -72[rbp]
sub rax, QWORD PTR -40[rbp]
sar rax, 2
.L21:
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L22
call __stack_chk_fail@PLT
.L22:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_decompress_usingDict, .-ZSTD_decompress_usingDict
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_decompress_usingDict.c"
.option pic
.text
.comm GENERIC,4,4
.comm ZSTD_blockHeaderSize,8,8
.comm ZSTD_frameHeaderSize_min,8,8
.comm srcSize_wrong,4,4
.align 1
.type ZSTD_decompress_usingDict, @function
ZSTD_decompress_usingDict:
addi sp,sp,-176
sd ra,168(sp)
sd s0,160(sp)
addi s0,sp,176
sd a0,-120(s0)
sd a1,-128(s0)
sd a2,-136(s0)
sd a3,-144(s0)
sd a4,-152(s0)
sd a5,-160(s0)
sd a6,-168(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-24(s0)
ld a5,-144(s0)
sd a5,-96(s0)
ld a5,-152(s0)
slli a5,a5,2
ld a4,-96(s0)
add a5,a4,a5
sd a5,-64(s0)
ld a5,-128(s0)
sd a5,-56(s0)
ld a5,-56(s0)
sd a5,-88(s0)
ld a5,-136(s0)
slli a5,a5,2
ld a4,-56(s0)
add a5,a4,a5
sd a5,-48(s0)
ld a5,-152(s0)
sd a5,-80(s0)
ld a0,-120(s0)
call ZSTD_resetDCtx@plt
ld a5,-160(s0)
beqz a5,.L2
ld a2,-168(s0)
ld a1,-160(s0)
ld a0,-120(s0)
call ZSTD_decompress_insertDictionary@plt
ld a5,-120(s0)
ld a4,8(a5)
ld a5,-120(s0)
sd a4,0(a5)
ld a5,-120(s0)
ld a4,8(a5)
ld a5,-120(s0)
ld a5,24(a5)
sub a5,a4,a5
neg a5,a5
ld a4,-128(s0)
add a4,a4,a5
ld a5,-120(s0)
sd a4,16(a5)
ld a5,-120(s0)
ld a4,-128(s0)
sd a4,24(a5)
j .L3
.L2:
ld a5,-120(s0)
ld a4,-128(s0)
sd a4,0(a5)
ld a5,-120(s0)
ld a4,0(a5)
ld a5,-120(s0)
sd a4,24(a5)
ld a5,-120(s0)
ld a4,24(a5)
ld a5,-120(s0)
sd a4,16(a5)
.L3:
la a5,ZSTD_frameHeaderSize_min
ld a4,0(a5)
la a5,ZSTD_blockHeaderSize
ld a5,0(a5)
add a5,a4,a5
ld a4,-152(s0)
bgeu a4,a5,.L4
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L21
.L4:
la a5,ZSTD_frameHeaderSize_min
ld a5,0(a5)
mv a2,a5
ld a1,-144(s0)
ld a0,-120(s0)
call ZSTD_decodeFrameHeader_Part1@plt
sd a0,-40(s0)
ld a0,-40(s0)
call ZSTD_isError@plt
mv a5,a0
beqz a5,.L6
ld a5,-40(s0)
j .L21
.L6:
la a5,ZSTD_blockHeaderSize
ld a4,0(a5)
ld a5,-40(s0)
add a5,a4,a5
ld a4,-152(s0)
bgeu a4,a5,.L7
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L21
.L7:
ld a5,-40(s0)
slli a5,a5,2
ld a4,-96(s0)
add a5,a4,a5
sd a5,-96(s0)
ld a4,-80(s0)
ld a5,-40(s0)
sub a5,a4,a5
sd a5,-80(s0)
ld a2,-40(s0)
ld a1,-144(s0)
ld a0,-120(s0)
call ZSTD_decodeFrameHeader_Part2@plt
sd a0,-40(s0)
ld a0,-40(s0)
call ZSTD_isError@plt
mv a5,a0
beqz a5,.L8
ld a5,-40(s0)
j .L21
.L8:
sd zero,-72(s0)
ld a4,-64(s0)
ld a5,-96(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a5,a5
addi a4,s0,-104
mv a2,a4
mv a1,a5
ld a0,-96(s0)
call ZSTD_getcBlockSize@plt
sd a0,-32(s0)
ld a0,-32(s0)
call ZSTD_isError@plt
mv a5,a0
beqz a5,.L9
ld a5,-32(s0)
j .L21
.L9:
la a5,ZSTD_blockHeaderSize
ld a5,0(a5)
slli a5,a5,2
ld a4,-96(s0)
add a5,a4,a5
sd a5,-96(s0)
la a5,ZSTD_blockHeaderSize
ld a5,0(a5)
ld a4,-80(s0)
sub a5,a4,a5
sd a5,-80(s0)
ld a4,-32(s0)
ld a5,-80(s0)
bleu a4,a5,.L10
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L21
.L10:
lw a5,-104(s0)
mv a3,a5
li a4,131
beq a3,a4,.L11
mv a3,a5
li a4,131
bgt a3,a4,.L12
mv a3,a5
li a4,130
beq a3,a4,.L13
mv a3,a5
li a4,130
bgt a3,a4,.L12
mv a3,a5
li a4,128
beq a3,a4,.L14
mv a4,a5
li a5,129
beq a4,a5,.L15
j .L12
.L11:
ld a4,-48(s0)
ld a5,-88(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a5,a5
ld a4,-32(s0)
ld a3,-96(s0)
mv a2,a5
ld a1,-88(s0)
ld a0,-120(s0)
call ZSTD_decompressBlock_internal@plt
sd a0,-72(s0)
j .L16
.L15:
ld a4,-48(s0)
ld a5,-88(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a5,a5
ld a3,-32(s0)
ld a2,-96(s0)
mv a1,a5
ld a0,-88(s0)
call ZSTD_copyRawBlock@plt
sd a0,-72(s0)
j .L16
.L14:
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L21
.L13:
ld a5,-80(s0)
beqz a5,.L24
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L21
.L12:
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L21
.L24:
nop
.L16:
ld a5,-32(s0)
beqz a5,.L25
ld a0,-72(s0)
call ZSTD_isError@plt
mv a5,a0
beqz a5,.L20
ld a5,-72(s0)
j .L21
.L20:
ld a5,-72(s0)
slli a5,a5,2
ld a4,-88(s0)
add a5,a4,a5
sd a5,-88(s0)
ld a5,-32(s0)
slli a5,a5,2
ld a4,-96(s0)
add a5,a4,a5
sd a5,-96(s0)
ld a4,-80(s0)
ld a5,-32(s0)
sub a5,a4,a5
sd a5,-80(s0)
j .L8
.L25:
nop
ld a4,-88(s0)
ld a5,-56(s0)
sub a5,a4,a5
srai a5,a5,2
.L21:
mv a3,a5
la a5,__stack_chk_guard
ld a4,-24(s0)
ld a5,0(a5)
beq a4,a5,.L22
call __stack_chk_fail@plt
.L22:
mv a0,a3
ld ra,168(sp)
ld s0,160(sp)
addi sp,sp,176
jr ra
.size ZSTD_decompress_usingDict, .-ZSTD_decompress_usingDict
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_errorFrameSizeInfoLegacy.c"
.intel_syntax noprefix
.text
.globl ZSTD_CONTENTSIZE_ERROR
.bss
.align 8
.type ZSTD_CONTENTSIZE_ERROR, @object
.size ZSTD_CONTENTSIZE_ERROR, 8
ZSTD_CONTENTSIZE_ERROR:
.zero 8
.text
.type ZSTD_errorFrameSizeInfoLegacy, @function
ZSTD_errorFrameSizeInfoLegacy:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR -24[rbp]
mov QWORD PTR [rax], rdx
mov rdx, QWORD PTR ZSTD_CONTENTSIZE_ERROR[rip]
mov rax, QWORD PTR -16[rbp]
mov QWORD PTR [rax], rdx
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_errorFrameSizeInfoLegacy, .-ZSTD_errorFrameSizeInfoLegacy
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_errorFrameSizeInfoLegacy.c"
.option pic
.text
.comm ZSTD_CONTENTSIZE_ERROR,8,8
.align 1
.type ZSTD_errorFrameSizeInfoLegacy, @function
ZSTD_errorFrameSizeInfoLegacy:
addi sp,sp,-48
sd s0,40(sp)
addi s0,sp,48
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
ld a5,-24(s0)
ld a4,-40(s0)
sd a4,0(a5)
la a5,ZSTD_CONTENTSIZE_ERROR
ld a4,0(a5)
ld a5,-32(s0)
sd a4,0(a5)
nop
ld s0,40(sp)
addi sp,sp,48
jr ra
.size ZSTD_errorFrameSizeInfoLegacy, .-ZSTD_errorFrameSizeInfoLegacy
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_freeDCtx.c"
.intel_syntax noprefix
.text
.type ZSTD_freeDCtx, @function
ZSTD_freeDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call free@PLT
mov eax, 0
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_freeDCtx, .-ZSTD_freeDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_freeDCtx.c"
.option pic
.text
.align 1
.type ZSTD_freeDCtx, @function
ZSTD_freeDCtx:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call free@plt
li a5,0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZSTD_freeDCtx, .-ZSTD_freeDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_getFrameParams.c"
.intel_syntax noprefix
.text
.globl ZSTD_MAGICNUMBER
.bss
.align 8
.type ZSTD_MAGICNUMBER, @object
.size ZSTD_MAGICNUMBER, 8
ZSTD_MAGICNUMBER:
.zero 8
.globl ZSTD_WINDOWLOG_ABSOLUTEMIN
.align 8
.type ZSTD_WINDOWLOG_ABSOLUTEMIN, @object
.size ZSTD_WINDOWLOG_ABSOLUTEMIN, 8
ZSTD_WINDOWLOG_ABSOLUTEMIN:
.zero 8
.globl ZSTD_frameHeaderSize_max
.align 8
.type ZSTD_frameHeaderSize_max, @object
.size ZSTD_frameHeaderSize_max, 8
ZSTD_frameHeaderSize_max:
.zero 8
.globl ZSTD_frameHeaderSize_min
.align 8
.type ZSTD_frameHeaderSize_min, @object
.size ZSTD_frameHeaderSize_min, 8
ZSTD_frameHeaderSize_min:
.zero 8
.globl frameParameter_unsupported
.align 4
.type frameParameter_unsupported, @object
.size frameParameter_unsupported, 4
frameParameter_unsupported:
.zero 4
.globl prefix_unknown
.align 4
.type prefix_unknown, @object
.size prefix_unknown, 4
prefix_unknown:
.zero 4
.text
.type ZSTD_getFrameParams, @function
ZSTD_getFrameParams:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov rax, QWORD PTR ZSTD_frameHeaderSize_min[rip]
cmp QWORD PTR -40[rbp], rax
jnb .L2
mov rax, QWORD PTR ZSTD_frameHeaderSize_max[rip]
jmp .L3
.L2:
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call MEM_readLE32@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR ZSTD_MAGICNUMBER[rip]
cmp QWORD PTR -8[rbp], rax
je .L4
mov eax, DWORD PTR prefix_unknown[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
mov rax, QWORD PTR -24[rbp]
mov edx, 8
mov esi, 0
mov rdi, rax
call memset@PLT
mov rax, QWORD PTR -32[rbp]
add rax, 16
mov eax, DWORD PTR [rax]
cdqe
and eax, 15
mov rdx, rax
mov rax, QWORD PTR ZSTD_WINDOWLOG_ABSOLUTEMIN[rip]
add rdx, rax
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -32[rbp]
add rax, 16
mov eax, DWORD PTR [rax]
sar eax, 4
test eax, eax
je .L5
mov eax, DWORD PTR frameParameter_unsupported[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L5:
mov eax, 0
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_getFrameParams, .-ZSTD_getFrameParams
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_getFrameParams.c"
.option pic
.text
.comm ZSTD_MAGICNUMBER,8,8
.comm ZSTD_WINDOWLOG_ABSOLUTEMIN,8,8
.comm ZSTD_frameHeaderSize_max,8,8
.comm ZSTD_frameHeaderSize_min,8,8
.comm frameParameter_unsupported,4,4
.comm prefix_unknown,4,4
.align 1
.type ZSTD_getFrameParams, @function
ZSTD_getFrameParams:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
la a5,ZSTD_frameHeaderSize_min
ld a5,0(a5)
ld a4,-56(s0)
bgeu a4,a5,.L2
la a5,ZSTD_frameHeaderSize_max
ld a5,0(a5)
j .L3
.L2:
ld a0,-48(s0)
call MEM_readLE32@plt
sd a0,-24(s0)
la a5,ZSTD_MAGICNUMBER
ld a5,0(a5)
ld a4,-24(s0)
beq a4,a5,.L4
la a5,prefix_unknown
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
li a2,8
li a1,0
ld a0,-40(s0)
call memset@plt
ld a5,-48(s0)
addi a5,a5,16
lw a5,0(a5)
andi a4,a5,15
la a5,ZSTD_WINDOWLOG_ABSOLUTEMIN
ld a5,0(a5)
add a4,a4,a5
ld a5,-40(s0)
sd a4,0(a5)
ld a5,-48(s0)
addi a5,a5,16
lw a5,0(a5)
sraiw a5,a5,4
sext.w a5,a5
beqz a5,.L5
la a5,frameParameter_unsupported
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L5:
li a5,0
.L3:
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZSTD_getFrameParams, .-ZSTD_getFrameParams
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_getcBlockSize.c"
.intel_syntax noprefix
.text
.globl bt_end
.bss
.align 8
.type bt_end, @object
.size bt_end, 8
bt_end:
.zero 8
.globl bt_rle
.align 8
.type bt_rle, @object
.size bt_rle, 8
bt_rle:
.zero 8
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.type ZSTD_getcBlockSize, @function
ZSTD_getcBlockSize:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov QWORD PTR -40[rbp], rdi
mov QWORD PTR -48[rbp], rsi
mov QWORD PTR -56[rbp], rdx
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR -16[rbp], rax
cmp QWORD PTR -48[rbp], 2
ja .L2
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L2:
mov rax, QWORD PTR -16[rbp]
mov eax, DWORD PTR [rax]
mov DWORD PTR -20[rbp], eax
mov rax, QWORD PTR -16[rbp]
add rax, 8
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -16[rbp]
add rax, 4
mov eax, DWORD PTR [rax]
sal eax, 8
add edx, eax
mov rax, QWORD PTR -16[rbp]
mov eax, DWORD PTR [rax]
sal eax, 16
and eax, 458752
add eax, edx
cdqe
mov QWORD PTR -8[rbp], rax
mov eax, DWORD PTR -20[rbp]
sar eax, 6
movsx rdx, eax
mov rax, QWORD PTR -56[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -56[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR bt_rle[rip]
cmp rdx, rax
jne .L4
mov rax, QWORD PTR -8[rbp]
jmp .L5
.L4:
mov eax, 0
.L5:
mov rdx, QWORD PTR -56[rbp]
mov QWORD PTR 8[rdx], rax
mov rax, QWORD PTR -56[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR bt_end[rip]
cmp rdx, rax
jne .L6
mov eax, 0
jmp .L3
.L6:
mov rax, QWORD PTR -56[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR bt_rle[rip]
cmp rdx, rax
jne .L7
mov eax, 1
jmp .L3
.L7:
mov rax, QWORD PTR -8[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_getcBlockSize, .-ZSTD_getcBlockSize
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_getcBlockSize.c"
.option pic
.text
.comm bt_end,8,8
.comm bt_rle,8,8
.comm srcSize_wrong,4,4
.align 1
.type ZSTD_getcBlockSize, @function
ZSTD_getcBlockSize:
addi sp,sp,-80
sd ra,72(sp)
sd s0,64(sp)
addi s0,sp,80
sd a0,-56(s0)
sd a1,-64(s0)
sd a2,-72(s0)
ld a5,-56(s0)
sd a5,-32(s0)
ld a4,-64(s0)
li a5,2
bgtu a4,a5,.L2
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
ld a5,-32(s0)
lw a5,0(a5)
sw a5,-36(s0)
ld a5,-32(s0)
addi a5,a5,8
lw a4,0(a5)
ld a5,-32(s0)
addi a5,a5,4
lw a5,0(a5)
slliw a5,a5,8
sext.w a5,a5
addw a5,a4,a5
sext.w a4,a5
ld a5,-32(s0)
lw a5,0(a5)
slliw a5,a5,16
sext.w a3,a5
li a5,458752
and a5,a3,a5
sext.w a5,a5
addw a5,a4,a5
sext.w a5,a5
sd a5,-24(s0)
lw a5,-36(s0)
sraiw a5,a5,6
sext.w a5,a5
mv a4,a5
ld a5,-72(s0)
sd a4,0(a5)
ld a5,-72(s0)
ld a4,0(a5)
la a5,bt_rle
ld a5,0(a5)
bne a4,a5,.L4
ld a5,-24(s0)
j .L5
.L4:
li a5,0
.L5:
ld a4,-72(s0)
sd a5,8(a4)
ld a5,-72(s0)
ld a4,0(a5)
la a5,bt_end
ld a5,0(a5)
bne a4,a5,.L6
li a5,0
j .L3
.L6:
ld a5,-72(s0)
ld a4,0(a5)
la a5,bt_rle
ld a5,0(a5)
bne a4,a5,.L7
li a5,1
j .L3
.L7:
ld a5,-24(s0)
.L3:
mv a0,a5
ld ra,72(sp)
ld s0,64(sp)
addi sp,sp,80
jr ra
.size ZSTD_getcBlockSize, .-ZSTD_getcBlockSize
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_isError.c"
.intel_syntax noprefix
.text
.type ZSTD_isError, @function
ZSTD_isError:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ERR_isError@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_isError, .-ZSTD_isError
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_isError.c"
.option pic
.text
.align 1
.type ZSTD_isError, @function
ZSTD_isError:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call ERR_isError@plt
mv a5,a0
sext.w a5,a5
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZSTD_isError, .-ZSTD_isError
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_nextSrcSizeToDecompress.c"
.intel_syntax noprefix
.text
.type ZSTD_nextSrcSizeToDecompress, @function
ZSTD_nextSrcSizeToDecompress:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR [rax]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_nextSrcSizeToDecompress, .-ZSTD_nextSrcSizeToDecompress
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_nextSrcSizeToDecompress.c"
.option pic
.text
.align 1
.type ZSTD_nextSrcSizeToDecompress, @function
ZSTD_nextSrcSizeToDecompress:
addi sp,sp,-32
sd s0,24(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a5,-24(s0)
ld a5,0(a5)
mv a0,a5
ld s0,24(sp)
addi sp,sp,32
jr ra
.size ZSTD_nextSrcSizeToDecompress, .-ZSTD_nextSrcSizeToDecompress
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTD_resetDCtx.c"
.intel_syntax noprefix
.text
.globl ZSTD_frameHeaderSize_min
.bss
.align 4
.type ZSTD_frameHeaderSize_min, @object
.size ZSTD_frameHeaderSize_min, 4
ZSTD_frameHeaderSize_min:
.zero 4
.globl ZSTDds_getFrameHeaderSize
.align 4
.type ZSTDds_getFrameHeaderSize, @object
.size ZSTDds_getFrameHeaderSize, 4
ZSTDds_getFrameHeaderSize:
.zero 4
.text
.type ZSTD_resetDCtx, @function
ZSTD_resetDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov edx, DWORD PTR ZSTD_frameHeaderSize_min[rip]
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR 36[rax], edx
mov edx, DWORD PTR ZSTDds_getFrameHeaderSize[rip]
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR 32[rax], edx
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 24[rax], 0
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 16[rax], 0
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 8[rax], 0
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR [rax], 0
mov eax, 0
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_resetDCtx, .-ZSTD_resetDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTD_resetDCtx.c"
.option pic
.text
.comm ZSTD_frameHeaderSize_min,4,4
.comm ZSTDds_getFrameHeaderSize,4,4
.align 1
.type ZSTD_resetDCtx, @function
ZSTD_resetDCtx:
addi sp,sp,-32
sd s0,24(sp)
addi s0,sp,32
sd a0,-24(s0)
la a5,ZSTD_frameHeaderSize_min
lw a4,0(a5)
ld a5,-24(s0)
sw a4,36(a5)
la a5,ZSTDds_getFrameHeaderSize
lw a4,0(a5)
ld a5,-24(s0)
sw a4,32(a5)
ld a5,-24(s0)
sd zero,24(a5)
ld a5,-24(s0)
sd zero,16(a5)
ld a5,-24(s0)
sd zero,8(a5)
ld a5,-24(s0)
sd zero,0(a5)
li a5,0
mv a0,a5
ld s0,24(sp)
addi sp,sp,32
jr ra
.size ZSTD_resetDCtx, .-ZSTD_resetDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTDv04_createDCtx.c"
.intel_syntax noprefix
.text
.globl ZSTDv04_createDCtx
.type ZSTDv04_createDCtx, @function
ZSTDv04_createDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov eax, 0
call ZSTD_createDCtx@PLT
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv04_createDCtx, .-ZSTDv04_createDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTDv04_createDCtx.c"
.option pic
.text
.align 1
.globl ZSTDv04_createDCtx
.type ZSTDv04_createDCtx, @function
ZSTDv04_createDCtx:
addi sp,sp,-16
sd ra,8(sp)
sd s0,0(sp)
addi s0,sp,16
call ZSTD_createDCtx@plt
mv a5,a0
mv a0,a5
ld ra,8(sp)
ld s0,0(sp)
addi sp,sp,16
jr ra
.size ZSTDv04_createDCtx, .-ZSTDv04_createDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTDv04_decompress.c"
.intel_syntax noprefix
.text
.globl memory_allocation
.bss
.align 4
.type memory_allocation, @object
.size memory_allocation, 4
memory_allocation:
.zero 4
.text
.globl ZSTDv04_decompress
.type ZSTDv04_decompress, @function
ZSTDv04_decompress:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov QWORD PTR -48[rbp], rcx
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov rdi, QWORD PTR -48[rbp]
mov rcx, QWORD PTR -40[rbp]
mov rdx, QWORD PTR -32[rbp]
mov rsi, QWORD PTR -24[rbp]
lea rax, -12[rbp]
mov r8, rdi
mov rdi, rax
call ZSTDv04_decompressDCtx@PLT
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L3
call __stack_chk_fail@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv04_decompress, .-ZSTDv04_decompress
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTDv04_decompress.c"
.option pic
.text
.comm memory_allocation,4,4
.align 1
.globl ZSTDv04_decompress
.type ZSTDv04_decompress, @function
ZSTDv04_decompress:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
sd a3,-64(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-24(s0)
addi a5,s0,-28
ld a4,-64(s0)
ld a3,-56(s0)
ld a2,-48(s0)
ld a1,-40(s0)
mv a0,a5
call ZSTDv04_decompressDCtx@plt
mv a5,a0
mv a3,a5
la a5,__stack_chk_guard
ld a4,-24(s0)
ld a5,0(a5)
beq a4,a5,.L3
call __stack_chk_fail@plt
.L3:
mv a0,a3
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZSTDv04_decompress, .-ZSTDv04_decompress
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTDv04_decompressContinue.c"
.intel_syntax noprefix
.text
.globl ZSTDv04_decompressContinue
.type ZSTDv04_decompressContinue, @function
ZSTDv04_decompressContinue:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov QWORD PTR -32[rbp], rcx
mov QWORD PTR -40[rbp], r8
mov rdi, QWORD PTR -40[rbp]
mov rcx, QWORD PTR -32[rbp]
mov rdx, QWORD PTR -24[rbp]
mov rsi, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
mov r8, rdi
mov rdi, rax
call ZSTD_decompressContinue@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv04_decompressContinue, .-ZSTDv04_decompressContinue
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTDv04_decompressContinue.c"
.option pic
.text
.align 1
.globl ZSTDv04_decompressContinue
.type ZSTDv04_decompressContinue, @function
ZSTDv04_decompressContinue:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
sd a3,-48(s0)
sd a4,-56(s0)
ld a4,-56(s0)
ld a3,-48(s0)
ld a2,-40(s0)
ld a1,-32(s0)
ld a0,-24(s0)
call ZSTD_decompressContinue@plt
mv a5,a0
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZSTDv04_decompressContinue, .-ZSTDv04_decompressContinue
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTDv04_decompressDCtx.c"
.intel_syntax noprefix
.text
.globl ZSTDv04_decompressDCtx
.type ZSTDv04_decompressDCtx, @function
ZSTDv04_decompressDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov QWORD PTR -32[rbp], rcx
mov QWORD PTR -40[rbp], r8
mov rdi, QWORD PTR -40[rbp]
mov rcx, QWORD PTR -32[rbp]
mov rdx, QWORD PTR -24[rbp]
mov rsi, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
sub rsp, 8
push 0
mov r9d, 0
mov r8, rdi
mov rdi, rax
call ZSTD_decompress_usingDict@PLT
add rsp, 16
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv04_decompressDCtx, .-ZSTDv04_decompressDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTDv04_decompressDCtx.c"
.option pic
.text
.align 1
.globl ZSTDv04_decompressDCtx
.type ZSTDv04_decompressDCtx, @function
ZSTDv04_decompressDCtx:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
sd a3,-48(s0)
sd a4,-56(s0)
li a6,0
li a5,0
ld a4,-56(s0)
ld a3,-48(s0)
ld a2,-40(s0)
ld a1,-32(s0)
ld a0,-24(s0)
call ZSTD_decompress_usingDict@plt
mv a5,a0
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZSTDv04_decompressDCtx, .-ZSTDv04_decompressDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTDv04_findFrameSizeInfoLegacy.c"
.intel_syntax noprefix
.text
.globl BLOCKSIZE
.bss
.align 8
.type BLOCKSIZE, @object
.size BLOCKSIZE, 8
BLOCKSIZE:
.zero 8
.globl ZSTD_MAGICNUMBER
.align 8
.type ZSTD_MAGICNUMBER, @object
.size ZSTD_MAGICNUMBER, 8
ZSTD_MAGICNUMBER:
.zero 8
.globl ZSTD_blockHeaderSize
.align 8
.type ZSTD_blockHeaderSize, @object
.size ZSTD_blockHeaderSize, 8
ZSTD_blockHeaderSize:
.zero 8
.globl ZSTD_frameHeaderSize_min
.align 8
.type ZSTD_frameHeaderSize_min, @object
.size ZSTD_frameHeaderSize_min, 8
ZSTD_frameHeaderSize_min:
.zero 8
.globl prefix_unknown
.align 4
.type prefix_unknown, @object
.size prefix_unknown, 4
prefix_unknown:
.zero 4
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.globl ZSTDv04_findFrameSizeInfoLegacy
.type ZSTDv04_findFrameSizeInfoLegacy, @function
ZSTDv04_findFrameSizeInfoLegacy:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 80
mov QWORD PTR -56[rbp], rdi
mov QWORD PTR -64[rbp], rsi
mov QWORD PTR -72[rbp], rdx
mov QWORD PTR -80[rbp], rcx
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov rax, QWORD PTR -56[rbp]
mov QWORD PTR -40[rbp], rax
mov rax, QWORD PTR -64[rbp]
mov QWORD PTR -32[rbp], rax
mov QWORD PTR -24[rbp], 0
mov rax, QWORD PTR ZSTD_frameHeaderSize_min[rip]
cmp QWORD PTR -64[rbp], rax
jnb .L2
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
mov rdx, rax
mov rcx, QWORD PTR -80[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTD_errorFrameSizeInfoLegacy@PLT
jmp .L1
.L2:
mov rax, QWORD PTR -56[rbp]
mov rdi, rax
call MEM_readLE32@PLT
mov rdx, QWORD PTR ZSTD_MAGICNUMBER[rip]
cmp rax, rdx
je .L4
mov eax, DWORD PTR prefix_unknown[rip]
mov edi, eax
call ERROR@PLT
mov rdx, rax
mov rcx, QWORD PTR -80[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTD_errorFrameSizeInfoLegacy@PLT
jmp .L1
.L4:
mov rax, QWORD PTR ZSTD_frameHeaderSize_min[rip]
sal rax, 2
add QWORD PTR -40[rbp], rax
mov rax, QWORD PTR ZSTD_frameHeaderSize_min[rip]
sub QWORD PTR -32[rbp], rax
.L9:
lea rdx, -44[rbp]
mov rcx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -40[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTD_getcBlockSize@PLT
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call ZSTD_isError@PLT
test rax, rax
je .L5
mov rdx, QWORD PTR -16[rbp]
mov rcx, QWORD PTR -80[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTD_errorFrameSizeInfoLegacy@PLT
jmp .L1
.L5:
mov rax, QWORD PTR ZSTD_blockHeaderSize[rip]
sal rax, 2
add QWORD PTR -40[rbp], rax
mov rax, QWORD PTR ZSTD_blockHeaderSize[rip]
sub QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -16[rbp]
cmp rax, QWORD PTR -32[rbp]
jbe .L6
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
mov rdx, rax
mov rcx, QWORD PTR -80[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTD_errorFrameSizeInfoLegacy@PLT
jmp .L1
.L6:
cmp QWORD PTR -16[rbp], 0
je .L13
mov rax, QWORD PTR -16[rbp]
sal rax, 2
add QWORD PTR -40[rbp], rax
mov rax, QWORD PTR -16[rbp]
sub QWORD PTR -32[rbp], rax
add QWORD PTR -24[rbp], 1
jmp .L9
.L13:
nop
mov rax, QWORD PTR -40[rbp]
sub rax, QWORD PTR -56[rbp]
sar rax, 2
mov rdx, rax
mov rax, QWORD PTR -72[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR BLOCKSIZE[rip]
imul rax, QWORD PTR -24[rbp]
mov rdx, rax
mov rax, QWORD PTR -80[rbp]
mov QWORD PTR [rax], rdx
.L1:
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L11
call __stack_chk_fail@PLT
.L11:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv04_findFrameSizeInfoLegacy, .-ZSTDv04_findFrameSizeInfoLegacy
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTDv04_findFrameSizeInfoLegacy.c"
.option pic
.text
.comm BLOCKSIZE,8,8
.comm ZSTD_MAGICNUMBER,8,8
.comm ZSTD_blockHeaderSize,8,8
.comm ZSTD_frameHeaderSize_min,8,8
.comm prefix_unknown,4,4
.comm srcSize_wrong,4,4
.align 1
.globl ZSTDv04_findFrameSizeInfoLegacy
.type ZSTDv04_findFrameSizeInfoLegacy, @function
ZSTDv04_findFrameSizeInfoLegacy:
addi sp,sp,-96
sd ra,88(sp)
sd s0,80(sp)
addi s0,sp,96
sd a0,-72(s0)
sd a1,-80(s0)
sd a2,-88(s0)
sd a3,-96(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-24(s0)
ld a5,-72(s0)
sd a5,-56(s0)
ld a5,-80(s0)
sd a5,-48(s0)
sd zero,-40(s0)
la a5,ZSTD_frameHeaderSize_min
ld a5,0(a5)
ld a4,-80(s0)
bgeu a4,a5,.L2
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
mv a2,a5
ld a1,-96(s0)
ld a0,-88(s0)
call ZSTD_errorFrameSizeInfoLegacy@plt
j .L1
.L2:
ld a0,-72(s0)
call MEM_readLE32@plt
mv a4,a0
la a5,ZSTD_MAGICNUMBER
ld a5,0(a5)
beq a4,a5,.L4
la a5,prefix_unknown
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
mv a2,a5
ld a1,-96(s0)
ld a0,-88(s0)
call ZSTD_errorFrameSizeInfoLegacy@plt
j .L1
.L4:
la a5,ZSTD_frameHeaderSize_min
ld a5,0(a5)
slli a5,a5,2
ld a4,-56(s0)
add a5,a4,a5
sd a5,-56(s0)
la a5,ZSTD_frameHeaderSize_min
ld a5,0(a5)
ld a4,-48(s0)
sub a5,a4,a5
sd a5,-48(s0)
.L9:
addi a5,s0,-60
mv a2,a5
ld a1,-48(s0)
ld a0,-56(s0)
call ZSTD_getcBlockSize@plt
sd a0,-32(s0)
ld a0,-32(s0)
call ZSTD_isError@plt
mv a5,a0
beqz a5,.L5
ld a2,-32(s0)
ld a1,-96(s0)
ld a0,-88(s0)
call ZSTD_errorFrameSizeInfoLegacy@plt
j .L1
.L5:
la a5,ZSTD_blockHeaderSize
ld a5,0(a5)
slli a5,a5,2
ld a4,-56(s0)
add a5,a4,a5
sd a5,-56(s0)
la a5,ZSTD_blockHeaderSize
ld a5,0(a5)
mv a4,a5
ld a5,-48(s0)
sub a5,a5,a4
sd a5,-48(s0)
ld a4,-32(s0)
ld a5,-48(s0)
bleu a4,a5,.L6
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
mv a2,a5
ld a1,-96(s0)
ld a0,-88(s0)
call ZSTD_errorFrameSizeInfoLegacy@plt
j .L1
.L6:
ld a5,-32(s0)
beqz a5,.L13
ld a5,-32(s0)
slli a5,a5,2
ld a4,-56(s0)
add a5,a4,a5
sd a5,-56(s0)
ld a4,-48(s0)
ld a5,-32(s0)
sub a5,a4,a5
sd a5,-48(s0)
ld a5,-40(s0)
addi a5,a5,1
sd a5,-40(s0)
j .L9
.L13:
nop
ld a4,-56(s0)
ld a5,-72(s0)
sub a5,a4,a5
srai a5,a5,2
mv a4,a5
ld a5,-88(s0)
sd a4,0(a5)
la a5,BLOCKSIZE
ld a4,0(a5)
ld a5,-40(s0)
mul a4,a4,a5
ld a5,-96(s0)
sd a4,0(a5)
.L1:
la a5,__stack_chk_guard
ld a4,-24(s0)
ld a5,0(a5)
beq a4,a5,.L11
call __stack_chk_fail@plt
.L11:
ld ra,88(sp)
ld s0,80(sp)
addi sp,sp,96
jr ra
.size ZSTDv04_findFrameSizeInfoLegacy, .-ZSTDv04_findFrameSizeInfoLegacy
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTDv04_freeDCtx.c"
.intel_syntax noprefix
.text
.globl ZSTDv04_freeDCtx
.type ZSTDv04_freeDCtx, @function
ZSTDv04_freeDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ZSTD_freeDCtx@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv04_freeDCtx, .-ZSTDv04_freeDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTDv04_freeDCtx.c"
.option pic
.text
.align 1
.globl ZSTDv04_freeDCtx
.type ZSTDv04_freeDCtx, @function
ZSTDv04_freeDCtx:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call ZSTD_freeDCtx@plt
mv a5,a0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZSTDv04_freeDCtx, .-ZSTDv04_freeDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTDv04_nextSrcSizeToDecompress.c"
.intel_syntax noprefix
.text
.globl ZSTDv04_nextSrcSizeToDecompress
.type ZSTDv04_nextSrcSizeToDecompress, @function
ZSTDv04_nextSrcSizeToDecompress:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ZSTD_nextSrcSizeToDecompress@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv04_nextSrcSizeToDecompress, .-ZSTDv04_nextSrcSizeToDecompress
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTDv04_nextSrcSizeToDecompress.c"
.option pic
.text
.align 1
.globl ZSTDv04_nextSrcSizeToDecompress
.type ZSTDv04_nextSrcSizeToDecompress, @function
ZSTDv04_nextSrcSizeToDecompress:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call ZSTD_nextSrcSizeToDecompress@plt
mv a5,a0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZSTDv04_nextSrcSizeToDecompress, .-ZSTDv04_nextSrcSizeToDecompress
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v04.c_ZSTDv04_resetDCtx.c"
.intel_syntax noprefix
.text
.globl ZSTDv04_resetDCtx
.type ZSTDv04_resetDCtx, @function
ZSTDv04_resetDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ZSTD_resetDCtx@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv04_resetDCtx, .-ZSTDv04_resetDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v04.c_ZSTDv04_resetDCtx.c"
.option pic
.text
.align 1
.globl ZSTDv04_resetDCtx
.type ZSTDv04_resetDCtx, @function
ZSTDv04_resetDCtx:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call ZSTD_resetDCtx@plt
mv a5,a0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZSTDv04_resetDCtx, .-ZSTDv04_resetDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_FSEv05_abs.c"
.intel_syntax noprefix
.text
.type FSEv05_abs, @function
FSEv05_abs:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov eax, edi
mov WORD PTR -4[rbp], ax
movzx eax, WORD PTR -4[rbp]
sar ax, 15
mov edx, eax
mov eax, edx
xor ax, WORD PTR -4[rbp]
sub eax, edx
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size FSEv05_abs, .-FSEv05_abs
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_FSEv05_abs.c"
.option pic
.text
.align 1
.type FSEv05_abs, @function
FSEv05_abs:
addi sp,sp,-32
sd s0,24(sp)
addi s0,sp,32
mv a5,a0
sh a5,-18(s0)
lh a5,-18(s0)
sraiw a4,a5,15
mv a3,a4
lhu a5,-18(s0)
xor a5,a3,a5
mv a3,a5
mv a5,a4
subw a5,a3,a5
slli a5,a5,48
srli a5,a5,48
slliw a5,a5,16
sraiw a5,a5,16
mv a0,a5
ld s0,24(sp)
addi sp,sp,32
jr ra
.size FSEv05_abs, .-FSEv05_abs
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_FSEv05_buildDTable_raw.c"
.intel_syntax noprefix
.text
.globl GENERIC
.bss
.align 4
.type GENERIC, @object
.size GENERIC, 4
GENERIC:
.zero 4
.text
.globl FSEv05_buildDTable_raw
.type FSEv05_buildDTable_raw, @function
FSEv05_buildDTable_raw:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov QWORD PTR -56[rbp], rdi
mov DWORD PTR -60[rbp], esi
mov rax, QWORD PTR -56[rbp]
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -56[rbp]
add rax, 4
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov QWORD PTR -8[rbp], rax
mov eax, DWORD PTR -60[rbp]
mov edx, 1
mov ecx, eax
sal edx, cl
mov eax, edx
mov DWORD PTR -44[rbp], eax
mov eax, DWORD PTR -44[rbp]
sub eax, 1
mov DWORD PTR -40[rbp], eax
mov eax, DWORD PTR -40[rbp]
mov DWORD PTR -36[rbp], eax
cmp DWORD PTR -60[rbp], 0
jne .L2
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L2:
mov edx, DWORD PTR -60[rbp]
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR 8[rax], rdx
mov rax, QWORD PTR -24[rbp]
mov DWORD PTR [rax], 1
mov DWORD PTR -48[rbp], 0
jmp .L4
.L5:
mov edx, DWORD PTR -48[rbp]
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 3
mov rdx, rax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov QWORD PTR 16[rax], 0
mov ecx, DWORD PTR -48[rbp]
mov edx, DWORD PTR -48[rbp]
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 3
mov rdx, rax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov rdx, rcx
mov QWORD PTR 8[rax], rdx
mov ecx, DWORD PTR -60[rbp]
mov edx, DWORD PTR -48[rbp]
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 3
mov rdx, rax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov rdx, rcx
mov QWORD PTR [rax], rdx
add DWORD PTR -48[rbp], 1
.L4:
mov eax, DWORD PTR -48[rbp]
cmp eax, DWORD PTR -36[rbp]
jbe .L5
mov eax, 0
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size FSEv05_buildDTable_raw, .-FSEv05_buildDTable_raw
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_FSEv05_buildDTable_raw.c"
.option pic
.text
.comm GENERIC,4,4
.align 1
.globl FSEv05_buildDTable_raw
.type FSEv05_buildDTable_raw, @function
FSEv05_buildDTable_raw:
addi sp,sp,-80
sd ra,72(sp)
sd s0,64(sp)
addi s0,sp,80
sd a0,-72(s0)
mv a5,a1
sw a5,-76(s0)
ld a5,-72(s0)
sd a5,-48(s0)
ld a5,-48(s0)
sd a5,-40(s0)
ld a5,-72(s0)
addi a5,a5,4
sd a5,-32(s0)
ld a5,-32(s0)
sd a5,-24(s0)
lw a5,-76(s0)
li a4,1
sllw a5,a4,a5
sext.w a5,a5
sw a5,-60(s0)
lw a5,-60(s0)
addiw a5,a5,-1
sw a5,-56(s0)
lw a5,-56(s0)
sw a5,-52(s0)
lw a5,-76(s0)
sext.w a5,a5
bnez a5,.L2
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
lwu a4,-76(s0)
ld a5,-40(s0)
sd a4,8(a5)
ld a5,-40(s0)
li a4,1
sw a4,0(a5)
sw zero,-64(s0)
j .L4
.L5:
lwu a4,-64(s0)
mv a5,a4
slli a5,a5,1
add a5,a5,a4
slli a5,a5,3
mv a4,a5
ld a5,-24(s0)
add a5,a5,a4
sd zero,16(a5)
lwu a3,-64(s0)
lwu a4,-64(s0)
mv a5,a4
slli a5,a5,1
add a5,a5,a4
slli a5,a5,3
mv a4,a5
ld a5,-24(s0)
add a5,a5,a4
mv a4,a3
sd a4,8(a5)
lwu a3,-76(s0)
lwu a4,-64(s0)
mv a5,a4
slli a5,a5,1
add a5,a5,a4
slli a5,a5,3
mv a4,a5
ld a5,-24(s0)
add a5,a5,a4
mv a4,a3
sd a4,0(a5)
lw a5,-64(s0)
addiw a5,a5,1
sw a5,-64(s0)
.L4:
lw a4,-64(s0)
lw a5,-52(s0)
sext.w a4,a4
sext.w a5,a5
bleu a4,a5,.L5
li a5,0
.L3:
mv a0,a5
ld ra,72(sp)
ld s0,64(sp)
addi sp,sp,80
jr ra
.size FSEv05_buildDTable_raw, .-FSEv05_buildDTable_raw
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_FSEv05_buildDTable_rle.c"
.intel_syntax noprefix
.text
.globl FSEv05_buildDTable_rle
.type FSEv05_buildDTable_rle, @function
FSEv05_buildDTable_rle:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -40[rbp], rdi
mov DWORD PTR -44[rbp], esi
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -40[rbp]
add rax, 4
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR 8[rax], 0
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR [rax], 0
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 16[rax], 0
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR -44[rbp]
mov DWORD PTR 8[rax], edx
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR [rax], 0
mov eax, 0
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size FSEv05_buildDTable_rle, .-FSEv05_buildDTable_rle
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_FSEv05_buildDTable_rle.c"
.option pic
.text
.align 1
.globl FSEv05_buildDTable_rle
.type FSEv05_buildDTable_rle, @function
FSEv05_buildDTable_rle:
addi sp,sp,-64
sd s0,56(sp)
addi s0,sp,64
sd a0,-56(s0)
mv a5,a1
sw a5,-60(s0)
ld a5,-56(s0)
sd a5,-48(s0)
ld a5,-48(s0)
sd a5,-40(s0)
ld a5,-56(s0)
addi a5,a5,4
sd a5,-32(s0)
ld a5,-32(s0)
sd a5,-24(s0)
ld a5,-40(s0)
sd zero,8(a5)
ld a5,-40(s0)
sd zero,0(a5)
ld a5,-24(s0)
sd zero,16(a5)
ld a5,-24(s0)
lw a4,-60(s0)
sw a4,8(a5)
ld a5,-24(s0)
sd zero,0(a5)
li a5,0
mv a0,a5
ld s0,56(sp)
addi sp,sp,64
jr ra
.size FSEv05_buildDTable_rle, .-FSEv05_buildDTable_rle
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_FSEv05_createDTable.c"
.intel_syntax noprefix
.text
.globl FSEv05_TABLELOG_ABSOLUTE_MAX
.bss
.align 4
.type FSEv05_TABLELOG_ABSOLUTE_MAX, @object
.size FSEv05_TABLELOG_ABSOLUTE_MAX, 4
FSEv05_TABLELOG_ABSOLUTE_MAX:
.zero 4
.text
.globl FSEv05_createDTable
.type FSEv05_createDTable, @function
FSEv05_createDTable:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -4[rbp], edi
mov eax, DWORD PTR FSEv05_TABLELOG_ABSOLUTE_MAX[rip]
cmp DWORD PTR -4[rbp], eax
jbe .L2
mov eax, DWORD PTR FSEv05_TABLELOG_ABSOLUTE_MAX[rip]
mov DWORD PTR -4[rbp], eax
.L2:
mov eax, DWORD PTR -4[rbp]
mov edi, eax
call FSEv05_DTABLE_SIZE_U32@PLT
cdqe
sal eax, 2
mov edi, eax
call malloc@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size FSEv05_createDTable, .-FSEv05_createDTable
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_FSEv05_createDTable.c"
.option pic
.text
.comm FSEv05_TABLELOG_ABSOLUTE_MAX,4,4
.align 1
.globl FSEv05_createDTable
.type FSEv05_createDTable, @function
FSEv05_createDTable:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
mv a5,a0
sw a5,-20(s0)
la a5,FSEv05_TABLELOG_ABSOLUTE_MAX
lw a4,0(a5)
lw a5,-20(s0)
sext.w a5,a5
bleu a5,a4,.L2
la a5,FSEv05_TABLELOG_ABSOLUTE_MAX
lw a5,0(a5)
sw a5,-20(s0)
.L2:
lw a5,-20(s0)
mv a0,a5
call FSEv05_DTABLE_SIZE_U32@plt
mv a5,a0
sext.w a5,a5
slliw a5,a5,2
sext.w a5,a5
sext.w a5,a5
mv a0,a5
call malloc@plt
mv a5,a0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size FSEv05_createDTable, .-FSEv05_createDTable
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_FSEv05_decompress.c"
.intel_syntax noprefix
.text
.globl FSEv05_MAX_SYMBOL_VALUE
.bss
.align 4
.type FSEv05_MAX_SYMBOL_VALUE, @object
.size FSEv05_MAX_SYMBOL_VALUE, 4
FSEv05_MAX_SYMBOL_VALUE:
.zero 4
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.globl FSEv05_decompress
.type FSEv05_decompress, @function
FSEv05_decompress:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 104
.cfi_offset 3, -24
mov QWORD PTR -88[rbp], rdi
mov QWORD PTR -96[rbp], rsi
mov QWORD PTR -104[rbp], rdx
mov QWORD PTR -112[rbp], rcx
mov rax, QWORD PTR fs:40
mov QWORD PTR -24[rbp], rax
xor eax, eax
mov rax, rsp
mov rbx, rax
mov rax, QWORD PTR -104[rbp]
mov QWORD PTR -64[rbp], rax
mov rax, QWORD PTR -64[rbp]
mov QWORD PTR -56[rbp], rax
mov eax, DWORD PTR FSEv05_MAX_SYMBOL_VALUE[rip]
add eax, 1
movsx rdx, eax
sub rdx, 1
mov QWORD PTR -48[rbp], rdx
movsx rdx, eax
mov r10, rdx
mov r11d, 0
movsx rdx, eax
mov r8, rdx
mov r9d, 0
cdqe
lea rdx, [rax+rax]
mov eax, 16
sub rax, 1
add rax, rdx
mov esi, 16
mov edx, 0
div rsi
imul rax, rax, 16
mov rcx, rax
and rcx, -4096
mov rdx, rsp
sub rdx, rcx
.L2:
cmp rsp, rdx
je .L3
sub rsp, 4096
or QWORD PTR 4088[rsp], 0
jmp .L2
.L3:
mov rdx, rax
and edx, 4095
sub rsp, rdx
mov rdx, rax
and edx, 4095
test rdx, rdx
je .L4
and eax, 4095
sub rax, 8
add rax, rsp
or QWORD PTR [rax], 0
.L4:
mov rax, rsp
add rax, 1
shr rax
add rax, rax
mov QWORD PTR -40[rbp], rax
mov eax, DWORD PTR FSEv05_MAX_SYMBOL_VALUE[rip]
mov DWORD PTR -72[rbp], eax
cmp QWORD PTR -112[rbp], 1
ja .L5
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L6
.L5:
mov rdi, QWORD PTR -112[rbp]
mov rcx, QWORD PTR -64[rbp]
lea rdx, -76[rbp]
lea rsi, -72[rbp]
mov rax, QWORD PTR -40[rbp]
mov r8, rdi
mov rdi, rax
call FSEv05_readNCount@PLT
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call FSEv05_isError@PLT
test rax, rax
je .L7
mov rax, QWORD PTR -32[rbp]
jmp .L6
.L7:
mov rax, QWORD PTR -32[rbp]
cmp rax, QWORD PTR -112[rbp]
jb .L8
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L6
.L8:
mov rax, QWORD PTR -32[rbp]
sal rax, 2
add QWORD PTR -56[rbp], rax
mov rax, QWORD PTR -32[rbp]
sub QWORD PTR -112[rbp], rax
mov ecx, DWORD PTR -76[rbp]
mov edx, DWORD PTR -72[rbp]
mov rsi, QWORD PTR -40[rbp]
mov eax, DWORD PTR -68[rbp]
mov edi, eax
call FSEv05_buildDTable@PLT
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call FSEv05_isError@PLT
test rax, rax
je .L9
mov rax, QWORD PTR -32[rbp]
jmp .L6
.L9:
mov edi, DWORD PTR -68[rbp]
mov rcx, QWORD PTR -112[rbp]
mov rdx, QWORD PTR -56[rbp]
mov rsi, QWORD PTR -96[rbp]
mov rax, QWORD PTR -88[rbp]
mov r8d, edi
mov rdi, rax
call FSEv05_decompress_usingDTable@PLT
.L6:
mov rsp, rbx
mov rbx, QWORD PTR -24[rbp]
sub rbx, QWORD PTR fs:40
je .L11
call __stack_chk_fail@PLT
.L11:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size FSEv05_decompress, .-FSEv05_decompress
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_FSEv05_decompress.c"
.option pic
.text
.comm FSEv05_MAX_SYMBOL_VALUE,4,4
.comm srcSize_wrong,4,4
.align 1
.globl FSEv05_decompress
.type FSEv05_decompress, @function
FSEv05_decompress:
addi sp,sp,-128
sd ra,120(sp)
sd s0,112(sp)
sd s1,104(sp)
addi s0,sp,128
sd a0,-104(s0)
sd a1,-112(s0)
sd a2,-120(s0)
sd a3,-128(s0)
la a3,__stack_chk_guard
ld a3,0(a3)
sd a3,-40(s0)
mv a3,sp
mv s1,a3
ld a3,-120(s0)
sd a3,-80(s0)
ld a3,-80(s0)
sd a3,-72(s0)
la a3,FSEv05_MAX_SYMBOL_VALUE
lw a3,0(a3)
addiw a3,a3,1
sext.w a3,a3
mv a2,a3
addi a2,a2,-1
sd a2,-64(s0)
mv a2,a3
mv t3,a2
li t4,0
srli a2,t3,60
slli a7,t4,4
or a7,a2,a7
slli a6,t3,4
mv a2,a3
mv t1,a2
li t2,0
srli a2,t1,60
slli a5,t2,4
or a5,a2,a5
slli a4,t1,4
mv a5,a3
slli a5,a5,1
addi a5,a5,15
srli a5,a5,4
slli a5,a5,4
sub sp,sp,a5
mv a5,sp
addi a5,a5,1
srli a5,a5,1
slli a5,a5,1
sd a5,-56(s0)
la a5,FSEv05_MAX_SYMBOL_VALUE
lw a5,0(a5)
sext.w a5,a5
sw a5,-88(s0)
ld a4,-128(s0)
li a5,1
bgtu a4,a5,.L2
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
addi a2,s0,-92
addi a5,s0,-88
ld a4,-128(s0)
ld a3,-80(s0)
mv a1,a5
ld a0,-56(s0)
call FSEv05_readNCount@plt
sd a0,-48(s0)
ld a0,-48(s0)
call FSEv05_isError@plt
mv a5,a0
beqz a5,.L4
ld a5,-48(s0)
j .L3
.L4:
ld a4,-48(s0)
ld a5,-128(s0)
bltu a4,a5,.L5
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L5:
ld a5,-48(s0)
slli a5,a5,2
ld a4,-72(s0)
add a5,a4,a5
sd a5,-72(s0)
ld a4,-128(s0)
ld a5,-48(s0)
sub a5,a4,a5
sd a5,-128(s0)
lw a4,-88(s0)
lw a3,-92(s0)
lw a5,-84(s0)
mv a2,a4
ld a1,-56(s0)
mv a0,a5
call FSEv05_buildDTable@plt
sd a0,-48(s0)
ld a0,-48(s0)
call FSEv05_isError@plt
mv a5,a0
beqz a5,.L6
ld a5,-48(s0)
j .L3
.L6:
lw a5,-84(s0)
mv a4,a5
ld a3,-128(s0)
ld a2,-72(s0)
ld a1,-112(s0)
ld a0,-104(s0)
call FSEv05_decompress_usingDTable@plt
mv a5,a0
.L3:
mv sp,s1
mv a3,a5
la a5,__stack_chk_guard
ld a4,-40(s0)
ld a5,0(a5)
beq a4,a5,.L8
call __stack_chk_fail@plt
.L8:
mv a0,a3
addi sp,s0,-128
ld ra,120(sp)
ld s0,112(sp)
ld s1,104(sp)
addi sp,sp,128
jr ra
.size FSEv05_decompress, .-FSEv05_decompress
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_FSEv05_decompress_usingDTable.c"
.intel_syntax noprefix
.text
.globl FSEv05_decompress_usingDTable
.type FSEv05_decompress_usingDTable, @function
FSEv05_decompress_usingDTable:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 80
mov QWORD PTR -40[rbp], rdi
mov QWORD PTR -48[rbp], rsi
mov QWORD PTR -56[rbp], rdx
mov QWORD PTR -64[rbp], rcx
mov QWORD PTR -72[rbp], r8
mov rax, QWORD PTR -72[rbp]
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov rax, QWORD PTR [rax]
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
je .L2
mov rdi, QWORD PTR -72[rbp]
mov rcx, QWORD PTR -64[rbp]
mov rdx, QWORD PTR -56[rbp]
mov rsi, QWORD PTR -48[rbp]
mov rax, QWORD PTR -40[rbp]
mov r9d, 1
mov r8, rdi
mov rdi, rax
call FSEv05_decompress_usingDTable_generic@PLT
jmp .L3
.L2:
mov rdi, QWORD PTR -72[rbp]
mov rcx, QWORD PTR -64[rbp]
mov rdx, QWORD PTR -56[rbp]
mov rsi, QWORD PTR -48[rbp]
mov rax, QWORD PTR -40[rbp]
mov r9d, 0
mov r8, rdi
mov rdi, rax
call FSEv05_decompress_usingDTable_generic@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size FSEv05_decompress_usingDTable, .-FSEv05_decompress_usingDTable
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_FSEv05_decompress_usingDTable.c"
.option pic
.text
.align 1
.globl FSEv05_decompress_usingDTable
.type FSEv05_decompress_usingDTable, @function
FSEv05_decompress_usingDTable:
addi sp,sp,-96
sd ra,88(sp)
sd s0,80(sp)
addi s0,sp,96
sd a0,-56(s0)
sd a1,-64(s0)
sd a2,-72(s0)
sd a3,-80(s0)
sd a4,-88(s0)
ld a5,-88(s0)
sd a5,-40(s0)
ld a5,-40(s0)
sd a5,-32(s0)
ld a5,-32(s0)
ld a5,0(a5)
sd a5,-24(s0)
ld a5,-24(s0)
beqz a5,.L2
li a5,1
ld a4,-88(s0)
ld a3,-80(s0)
ld a2,-72(s0)
ld a1,-64(s0)
ld a0,-56(s0)
call FSEv05_decompress_usingDTable_generic@plt
mv a5,a0
j .L3
.L2:
li a5,0
ld a4,-88(s0)
ld a3,-80(s0)
ld a2,-72(s0)
ld a1,-64(s0)
ld a0,-56(s0)
call FSEv05_decompress_usingDTable_generic@plt
mv a5,a0
.L3:
mv a0,a5
ld ra,88(sp)
ld s0,80(sp)
addi sp,sp,96
jr ra
.size FSEv05_decompress_usingDTable, .-FSEv05_decompress_usingDTable
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_FSEv05_freeDTable.c"
.intel_syntax noprefix
.text
.globl FSEv05_freeDTable
.type FSEv05_freeDTable, @function
FSEv05_freeDTable:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call free@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size FSEv05_freeDTable, .-FSEv05_freeDTable
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_FSEv05_freeDTable.c"
.option pic
.text
.align 1
.globl FSEv05_freeDTable
.type FSEv05_freeDTable, @function
FSEv05_freeDTable:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call free@plt
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size FSEv05_freeDTable, .-FSEv05_freeDTable
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_FSEv05_getErrorName.c"
.intel_syntax noprefix
.text
.globl FSEv05_getErrorName
.type FSEv05_getErrorName, @function
FSEv05_getErrorName:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ERR_getErrorName@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size FSEv05_getErrorName, .-FSEv05_getErrorName
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_FSEv05_getErrorName.c"
.option pic
.text
.align 1
.globl FSEv05_getErrorName
.type FSEv05_getErrorName, @function
FSEv05_getErrorName:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call ERR_getErrorName@plt
mv a5,a0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size FSEv05_getErrorName, .-FSEv05_getErrorName
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_FSEv05_isError.c"
.intel_syntax noprefix
.text
.globl FSEv05_isError
.type FSEv05_isError, @function
FSEv05_isError:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ERR_isError@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size FSEv05_isError, .-FSEv05_isError
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_FSEv05_isError.c"
.option pic
.text
.align 1
.globl FSEv05_isError
.type FSEv05_isError, @function
FSEv05_isError:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call ERR_isError@plt
mv a5,a0
sext.w a5,a5
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size FSEv05_isError, .-FSEv05_isError
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_FSEv05_readNCount.c"
.intel_syntax noprefix
.text
.globl FSEv05_MIN_TABLELOG
.bss
.align 4
.type FSEv05_MIN_TABLELOG, @object
.size FSEv05_MIN_TABLELOG, 4
FSEv05_MIN_TABLELOG:
.zero 4
.globl FSEv05_TABLELOG_ABSOLUTE_MAX
.align 4
.type FSEv05_TABLELOG_ABSOLUTE_MAX, @object
.size FSEv05_TABLELOG_ABSOLUTE_MAX, 4
FSEv05_TABLELOG_ABSOLUTE_MAX:
.zero 4
.globl GENERIC
.align 4
.type GENERIC, @object
.size GENERIC, 4
GENERIC:
.zero 4
.globl maxSymbolValue_tooSmall
.align 4
.type maxSymbolValue_tooSmall, @object
.size maxSymbolValue_tooSmall, 4
maxSymbolValue_tooSmall:
.zero 4
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.globl tableLog_tooLarge
.align 4
.type tableLog_tooLarge, @object
.size tableLog_tooLarge, 4
tableLog_tooLarge:
.zero 4
.text
.globl FSEv05_readNCount
.type FSEv05_readNCount, @function
FSEv05_readNCount:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 112
mov QWORD PTR -72[rbp], rdi
mov QWORD PTR -80[rbp], rsi
mov QWORD PTR -88[rbp], rdx
mov QWORD PTR -96[rbp], rcx
mov QWORD PTR -104[rbp], r8
mov rax, QWORD PTR -96[rbp]
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -104[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -16[rbp]
add rax, rdx
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov QWORD PTR -24[rbp], rax
mov DWORD PTR -36[rbp], 0
mov DWORD PTR -32[rbp], 0
cmp QWORD PTR -104[rbp], 3
ja .L2
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L2:
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call MEM_readLE32@PLT
mov DWORD PTR -44[rbp], eax
mov eax, DWORD PTR -44[rbp]
and eax, 15
mov edx, eax
mov eax, DWORD PTR FSEv05_MIN_TABLELOG[rip]
add eax, edx
mov DWORD PTR -56[rbp], eax
mov eax, DWORD PTR FSEv05_TABLELOG_ABSOLUTE_MAX[rip]
cmp DWORD PTR -56[rbp], eax
jle .L4
mov eax, DWORD PTR tableLog_tooLarge[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
sar DWORD PTR -44[rbp], 4
mov DWORD PTR -40[rbp], 4
mov edx, DWORD PTR -56[rbp]
mov rax, QWORD PTR -88[rbp]
mov DWORD PTR [rax], edx
mov eax, DWORD PTR -56[rbp]
mov edx, 1
mov ecx, eax
sal edx, cl
mov eax, edx
add eax, 1
mov DWORD PTR -52[rbp], eax
mov eax, DWORD PTR -56[rbp]
mov edx, 1
mov ecx, eax
sal edx, cl
mov eax, edx
mov DWORD PTR -48[rbp], eax
add DWORD PTR -56[rbp], 1
jmp .L5
.L26:
cmp DWORD PTR -32[rbp], 0
je .L6
mov eax, DWORD PTR -36[rbp]
mov DWORD PTR -28[rbp], eax
jmp .L7
.L9:
add DWORD PTR -28[rbp], 24
mov rax, QWORD PTR -8[rbp]
sub rax, 20
cmp QWORD PTR -24[rbp], rax
jnb .L8
add QWORD PTR -24[rbp], 8
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call MEM_readLE32@PLT
mov edx, eax
mov eax, DWORD PTR -40[rbp]
mov ecx, eax
sar edx, cl
mov eax, edx
mov DWORD PTR -44[rbp], eax
jmp .L7
.L8:
sar DWORD PTR -44[rbp], 16
add DWORD PTR -40[rbp], 16
.L7:
mov eax, DWORD PTR -44[rbp]
movzx eax, ax
cmp eax, 65535
je .L9
jmp .L10
.L11:
add DWORD PTR -28[rbp], 3
sar DWORD PTR -44[rbp], 2
add DWORD PTR -40[rbp], 2
.L10:
mov eax, DWORD PTR -44[rbp]
and eax, 3
cmp eax, 3
je .L11
mov eax, DWORD PTR -44[rbp]
and eax, 3
add DWORD PTR -28[rbp], eax
add DWORD PTR -40[rbp], 2
mov rax, QWORD PTR -80[rbp]
mov eax, DWORD PTR [rax]
cmp DWORD PTR -28[rbp], eax
jbe .L13
mov eax, DWORD PTR maxSymbolValue_tooSmall[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L14:
mov eax, DWORD PTR -36[rbp]
lea edx, 1[rax]
mov DWORD PTR -36[rbp], edx
mov eax, eax
lea rdx, [rax+rax]
mov rax, QWORD PTR -72[rbp]
add rax, rdx
mov WORD PTR [rax], 0
.L13:
mov eax, DWORD PTR -36[rbp]
cmp eax, DWORD PTR -28[rbp]
jb .L14
mov rax, QWORD PTR -8[rbp]
sub rax, 28
cmp QWORD PTR -24[rbp], rax
jbe .L15
mov eax, DWORD PTR -40[rbp]
sar eax, 3
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rdx, rax
mov rax, QWORD PTR -8[rbp]
sub rax, 16
cmp rdx, rax
ja .L16
.L15:
mov eax, DWORD PTR -40[rbp]
sar eax, 3
cdqe
sal rax, 2
add QWORD PTR -24[rbp], rax
and DWORD PTR -40[rbp], 7
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call MEM_readLE32@PLT
mov edx, eax
mov eax, DWORD PTR -40[rbp]
mov ecx, eax
sar edx, cl
mov eax, edx
mov DWORD PTR -44[rbp], eax
jmp .L6
.L16:
sar DWORD PTR -44[rbp], 2
.L6:
mov eax, DWORD PTR -48[rbp]
lea edx, [rax+rax]
mov eax, DWORD PTR -52[rbp]
mov ecx, eax
mov eax, edx
sub eax, ecx
sub eax, 1
mov WORD PTR -58[rbp], ax
mov eax, DWORD PTR -48[rbp]
sub eax, 1
and eax, DWORD PTR -44[rbp]
mov edx, eax
movsx eax, WORD PTR -58[rbp]
cmp edx, eax
jge .L17
mov eax, DWORD PTR -44[rbp]
mov edx, eax
mov eax, DWORD PTR -48[rbp]
sub eax, 1
and eax, edx
mov WORD PTR -60[rbp], ax
mov eax, DWORD PTR -56[rbp]
sub eax, 1
add DWORD PTR -40[rbp], eax
jmp .L18
.L17:
mov eax, DWORD PTR -44[rbp]
mov edx, eax
mov eax, DWORD PTR -48[rbp]
add eax, eax
sub eax, 1
and eax, edx
mov WORD PTR -60[rbp], ax
movsx eax, WORD PTR -60[rbp]
cmp DWORD PTR -48[rbp], eax
jg .L19
movzx eax, WORD PTR -60[rbp]
movzx edx, WORD PTR -58[rbp]
sub eax, edx
mov WORD PTR -60[rbp], ax
.L19:
mov eax, DWORD PTR -56[rbp]
add DWORD PTR -40[rbp], eax
.L18:
movzx eax, WORD PTR -60[rbp]
sub eax, 1
mov WORD PTR -60[rbp], ax
movsx eax, WORD PTR -60[rbp]
mov edi, eax
call FSEv05_abs@PLT
mov edx, DWORD PTR -52[rbp]
mov ecx, eax
mov eax, edx
sub eax, ecx
mov DWORD PTR -52[rbp], eax
mov eax, DWORD PTR -36[rbp]
lea edx, 1[rax]
mov DWORD PTR -36[rbp], edx
mov eax, eax
lea rdx, [rax+rax]
mov rax, QWORD PTR -72[rbp]
add rdx, rax
movzx eax, WORD PTR -60[rbp]
mov WORD PTR [rdx], ax
cmp WORD PTR -60[rbp], 0
sete al
movzx eax, al
mov DWORD PTR -32[rbp], eax
jmp .L20
.L21:
sub DWORD PTR -56[rbp], 1
sar DWORD PTR -48[rbp]
.L20:
mov eax, DWORD PTR -52[rbp]
cmp eax, DWORD PTR -48[rbp]
jl .L21
mov rax, QWORD PTR -8[rbp]
sub rax, 28
cmp QWORD PTR -24[rbp], rax
jbe .L22
mov eax, DWORD PTR -40[rbp]
sar eax, 3
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rdx, rax
mov rax, QWORD PTR -8[rbp]
sub rax, 16
cmp rdx, rax
ja .L23
.L22:
mov eax, DWORD PTR -40[rbp]
sar eax, 3
cdqe
sal rax, 2
add QWORD PTR -24[rbp], rax
and DWORD PTR -40[rbp], 7
jmp .L24
.L23:
mov rax, QWORD PTR -8[rbp]
sub rax, 16
sub rax, QWORD PTR -24[rbp]
sar rax, 2
sal eax, 3
sub DWORD PTR -40[rbp], eax
mov rax, QWORD PTR -8[rbp]
sub rax, 16
mov QWORD PTR -24[rbp], rax
.L24:
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call MEM_readLE32@PLT
mov edx, DWORD PTR -40[rbp]
and edx, 31
mov ecx, edx
sar eax, cl
mov DWORD PTR -44[rbp], eax
.L5:
cmp DWORD PTR -52[rbp], 1
jle .L25
mov rax, QWORD PTR -80[rbp]
mov eax, DWORD PTR [rax]
cmp DWORD PTR -36[rbp], eax
jbe .L26
.L25:
cmp DWORD PTR -52[rbp], 1
je .L27
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L27:
mov eax, DWORD PTR -36[rbp]
lea edx, -1[rax]
mov rax, QWORD PTR -80[rbp]
mov DWORD PTR [rax], edx
mov eax, DWORD PTR -40[rbp]
add eax, 7
sar eax, 3
cdqe
sal rax, 2
add QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -24[rbp]
sub rax, QWORD PTR -16[rbp]
sar rax, 2
cmp QWORD PTR -104[rbp], rax
jnb .L28
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L28:
mov rax, QWORD PTR -24[rbp]
sub rax, QWORD PTR -16[rbp]
sar rax, 2
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size FSEv05_readNCount, .-FSEv05_readNCount
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_FSEv05_readNCount.c"
.option pic
.text
.comm FSEv05_MIN_TABLELOG,4,4
.comm FSEv05_TABLELOG_ABSOLUTE_MAX,4,4
.comm GENERIC,4,4
.comm maxSymbolValue_tooSmall,4,4
.comm srcSize_wrong,4,4
.comm tableLog_tooLarge,4,4
.align 1
.globl FSEv05_readNCount
.type FSEv05_readNCount, @function
FSEv05_readNCount:
addi sp,sp,-128
sd ra,120(sp)
sd s0,112(sp)
addi s0,sp,128
sd a0,-88(s0)
sd a1,-96(s0)
sd a2,-104(s0)
sd a3,-112(s0)
sd a4,-120(s0)
ld a5,-112(s0)
sd a5,-32(s0)
ld a5,-120(s0)
slli a5,a5,2
ld a4,-32(s0)
add a5,a4,a5
sd a5,-24(s0)
ld a5,-32(s0)
sd a5,-40(s0)
sw zero,-52(s0)
sw zero,-48(s0)
ld a4,-120(s0)
li a5,3
bgtu a4,a5,.L2
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
ld a0,-40(s0)
call MEM_readLE32@plt
mv a5,a0
sw a5,-60(s0)
lw a5,-60(s0)
andi a5,a5,15
sext.w a4,a5
la a5,FSEv05_MIN_TABLELOG
lw a5,0(a5)
addw a5,a4,a5
sw a5,-72(s0)
la a5,FSEv05_TABLELOG_ABSOLUTE_MAX
lw a4,0(a5)
lw a5,-72(s0)
sext.w a5,a5
ble a5,a4,.L4
la a5,tableLog_tooLarge
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
lw a5,-60(s0)
sraiw a5,a5,4
sw a5,-60(s0)
li a5,4
sw a5,-56(s0)
lw a4,-72(s0)
ld a5,-104(s0)
sw a4,0(a5)
lw a5,-72(s0)
li a4,1
sllw a5,a4,a5
sext.w a5,a5
addiw a5,a5,1
sw a5,-68(s0)
lw a5,-72(s0)
li a4,1
sllw a5,a4,a5
sw a5,-64(s0)
lw a5,-72(s0)
addiw a5,a5,1
sw a5,-72(s0)
j .L5
.L26:
lw a5,-48(s0)
sext.w a5,a5
beqz a5,.L6
lw a5,-52(s0)
sw a5,-44(s0)
j .L7
.L9:
lw a5,-44(s0)
addiw a5,a5,24
sw a5,-44(s0)
ld a5,-24(s0)
addi a5,a5,-20
ld a4,-40(s0)
bgeu a4,a5,.L8
ld a5,-40(s0)
addi a5,a5,8
sd a5,-40(s0)
ld a0,-40(s0)
call MEM_readLE32@plt
mv a5,a0
mv a4,a5
lw a5,-56(s0)
sraw a5,a4,a5
sw a5,-60(s0)
j .L7
.L8:
lw a5,-60(s0)
sraiw a5,a5,16
sw a5,-60(s0)
lw a5,-56(s0)
addiw a5,a5,16
sw a5,-56(s0)
.L7:
lw a4,-60(s0)
li a5,65536
addi a5,a5,-1
and a5,a4,a5
sext.w a5,a5
mv a4,a5
li a5,65536
addi a5,a5,-1
beq a4,a5,.L9
j .L10
.L11:
lw a5,-44(s0)
addiw a5,a5,3
sw a5,-44(s0)
lw a5,-60(s0)
sraiw a5,a5,2
sw a5,-60(s0)
lw a5,-56(s0)
addiw a5,a5,2
sw a5,-56(s0)
.L10:
lw a5,-60(s0)
andi a5,a5,3
sext.w a5,a5
mv a4,a5
li a5,3
beq a4,a5,.L11
lw a5,-60(s0)
andi a5,a5,3
sext.w a5,a5
lw a4,-44(s0)
addw a5,a4,a5
sw a5,-44(s0)
lw a5,-56(s0)
addiw a5,a5,2
sw a5,-56(s0)
ld a5,-96(s0)
lw a4,0(a5)
lw a5,-44(s0)
sext.w a5,a5
bleu a5,a4,.L13
la a5,maxSymbolValue_tooSmall
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L14:
lw a5,-52(s0)
addiw a4,a5,1
sw a4,-52(s0)
slli a5,a5,32
srli a5,a5,32
slli a5,a5,1
ld a4,-88(s0)
add a5,a4,a5
sh zero,0(a5)
.L13:
lw a4,-52(s0)
lw a5,-44(s0)
sext.w a4,a4
sext.w a5,a5
bltu a4,a5,.L14
ld a5,-24(s0)
addi a5,a5,-28
ld a4,-40(s0)
bleu a4,a5,.L15
lw a5,-56(s0)
sraiw a5,a5,3
sext.w a5,a5
slli a5,a5,2
ld a4,-40(s0)
add a4,a4,a5
ld a5,-24(s0)
addi a5,a5,-16
bgtu a4,a5,.L16
.L15:
lw a5,-56(s0)
sraiw a5,a5,3
sext.w a5,a5
slli a5,a5,2
ld a4,-40(s0)
add a5,a4,a5
sd a5,-40(s0)
lw a5,-56(s0)
andi a5,a5,7
sw a5,-56(s0)
ld a0,-40(s0)
call MEM_readLE32@plt
mv a5,a0
mv a4,a5
lw a5,-56(s0)
sraw a5,a4,a5
sw a5,-60(s0)
j .L6
.L16:
lw a5,-60(s0)
sraiw a5,a5,2
sw a5,-60(s0)
.L6:
lw a5,-64(s0)
slli a5,a5,48
srli a5,a5,48
slliw a5,a5,1
slli a4,a5,48
srli a4,a4,48
lw a5,-68(s0)
slli a5,a5,48
srli a5,a5,48
subw a5,a4,a5
slli a5,a5,48
srli a5,a5,48
addiw a5,a5,-1
slli a5,a5,48
srli a5,a5,48
sh a5,-74(s0)
lw a5,-64(s0)
addiw a5,a5,-1
sext.w a4,a5
lw a5,-60(s0)
and a5,a4,a5
sext.w a4,a5
lh a5,-74(s0)
sext.w a5,a5
bge a4,a5,.L17
lw a5,-60(s0)
slliw a4,a5,16
sraiw a4,a4,16
lw a5,-64(s0)
slli a5,a5,48
srli a5,a5,48
addiw a5,a5,-1
slli a5,a5,48
srli a5,a5,48
slliw a5,a5,16
sraiw a5,a5,16
and a5,a4,a5
sh a5,-76(s0)
lw a5,-72(s0)
addiw a5,a5,-1
sext.w a5,a5
lw a4,-56(s0)
addw a5,a4,a5
sw a5,-56(s0)
j .L18
.L17:
lw a5,-60(s0)
slliw a4,a5,16
sraiw a4,a4,16
lw a5,-64(s0)
slli a5,a5,48
srli a5,a5,48
slliw a5,a5,1
slli a5,a5,48
srli a5,a5,48
addiw a5,a5,-1
slli a5,a5,48
srli a5,a5,48
slliw a5,a5,16
sraiw a5,a5,16
and a5,a4,a5
sh a5,-76(s0)
lh a5,-76(s0)
sext.w a4,a5
lw a5,-64(s0)
sext.w a5,a5
bgt a5,a4,.L19
lhu a4,-76(s0)
lhu a5,-74(s0)
subw a5,a4,a5
slli a5,a5,48
srli a5,a5,48
sh a5,-76(s0)
.L19:
lw a4,-56(s0)
lw a5,-72(s0)
addw a5,a4,a5
sw a5,-56(s0)
.L18:
lh a5,-76(s0)
slli a5,a5,48
srli a5,a5,48
addiw a5,a5,-1
slli a5,a5,48
srli a5,a5,48
sh a5,-76(s0)
lh a5,-76(s0)
mv a0,a5
call FSEv05_abs@plt
mv a5,a0
lw a4,-68(s0)
sext.w a5,a5
subw a5,a4,a5
sext.w a5,a5
sw a5,-68(s0)
lw a5,-52(s0)
addiw a4,a5,1
sw a4,-52(s0)
slli a5,a5,32
srli a5,a5,32
slli a5,a5,1
ld a4,-88(s0)
add a5,a4,a5
lhu a4,-76(s0)
sh a4,0(a5)
lh a5,-76(s0)
sext.w a5,a5
seqz a5,a5
andi a5,a5,0xff
sw a5,-48(s0)
j .L20
.L21:
lw a5,-72(s0)
addiw a5,a5,-1
sw a5,-72(s0)
lw a5,-64(s0)
sraiw a5,a5,1
sw a5,-64(s0)
.L20:
lw a4,-68(s0)
lw a5,-64(s0)
sext.w a4,a4
sext.w a5,a5
blt a4,a5,.L21
ld a5,-24(s0)
addi a5,a5,-28
ld a4,-40(s0)
bleu a4,a5,.L22
lw a5,-56(s0)
sraiw a5,a5,3
sext.w a5,a5
slli a5,a5,2
ld a4,-40(s0)
add a4,a4,a5
ld a5,-24(s0)
addi a5,a5,-16
bgtu a4,a5,.L23
.L22:
lw a5,-56(s0)
sraiw a5,a5,3
sext.w a5,a5
slli a5,a5,2
ld a4,-40(s0)
add a5,a4,a5
sd a5,-40(s0)
lw a5,-56(s0)
andi a5,a5,7
sw a5,-56(s0)
j .L24
.L23:
ld a5,-24(s0)
addi a4,a5,-16
ld a5,-40(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a5,a5
slliw a5,a5,3
sext.w a5,a5
sext.w a5,a5
lw a4,-56(s0)
subw a5,a4,a5
sw a5,-56(s0)
ld a5,-24(s0)
addi a5,a5,-16
sd a5,-40(s0)
.L24:
ld a0,-40(s0)
call MEM_readLE32@plt
mv a5,a0
mv a4,a5
lw a5,-56(s0)
andi a5,a5,31
sext.w a5,a5
sraw a5,a4,a5
sw a5,-60(s0)
.L5:
lw a5,-68(s0)
sext.w a4,a5
li a5,1
ble a4,a5,.L25
ld a5,-96(s0)
lw a4,0(a5)
lw a5,-52(s0)
sext.w a5,a5
bleu a5,a4,.L26
.L25:
lw a5,-68(s0)
sext.w a4,a5
li a5,1
beq a4,a5,.L27
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L27:
lw a5,-52(s0)
addiw a5,a5,-1
sext.w a4,a5
ld a5,-96(s0)
sw a4,0(a5)
lw a5,-56(s0)
addiw a5,a5,7
sext.w a5,a5
sraiw a5,a5,3
sext.w a5,a5
slli a5,a5,2
ld a4,-40(s0)
add a5,a4,a5
sd a5,-40(s0)
ld a4,-40(s0)
ld a5,-32(s0)
sub a5,a4,a5
srai a5,a5,2
mv a4,a5
ld a5,-120(s0)
bgeu a5,a4,.L28
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L28:
ld a4,-40(s0)
ld a5,-32(s0)
sub a5,a4,a5
srai a5,a5,2
.L3:
mv a0,a5
ld ra,120(sp)
ld s0,112(sp)
addi sp,sp,128
jr ra
.size FSEv05_readNCount, .-FSEv05_readNCount
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_FSEv05_tableStep.c"
.intel_syntax noprefix
.text
.type FSEv05_tableStep, @function
FSEv05_tableStep:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], edi
mov eax, DWORD PTR -4[rbp]
sar eax
mov edx, eax
mov eax, DWORD PTR -4[rbp]
sar eax, 3
add eax, edx
add eax, 3
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size FSEv05_tableStep, .-FSEv05_tableStep
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_FSEv05_tableStep.c"
.option pic
.text
.align 1
.type FSEv05_tableStep, @function
FSEv05_tableStep:
addi sp,sp,-32
sd s0,24(sp)
addi s0,sp,32
mv a5,a0
sw a5,-20(s0)
lw a5,-20(s0)
sraiw a5,a5,1
sext.w a4,a5
lw a5,-20(s0)
sraiw a5,a5,3
sext.w a5,a5
addw a5,a4,a5
sext.w a5,a5
addiw a5,a5,3
sext.w a5,a5
mv a0,a5
ld s0,24(sp)
addi sp,sp,32
jr ra
.size FSEv05_tableStep, .-FSEv05_tableStep
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_decodeStreamX2.c"
.intel_syntax noprefix
.text
.globl BITv05_DStream_unfinished
.bss
.align 8
.type BITv05_DStream_unfinished, @object
.size BITv05_DStream_unfinished, 8
BITv05_DStream_unfinished:
.zero 8
.text
.type HUFv05_decodeStreamX2, @function
HUFv05_decodeStreamX2:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov QWORD PTR -48[rbp], rcx
mov DWORD PTR -52[rbp], r8d
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR -8[rbp], rax
jmp .L2
.L4:
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_2@PLT
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_1@PLT
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_2@PLT
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_0@PLT
.L2:
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
mov rdx, QWORD PTR BITv05_DStream_unfinished[rip]
cmp rax, rdx
jne .L5
mov rax, QWORD PTR -40[rbp]
sub rax, 16
cmp QWORD PTR -24[rbp], rax
jbe .L4
jmp .L5
.L7:
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_0@PLT
.L5:
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
mov rdx, QWORD PTR BITv05_DStream_unfinished[rip]
cmp rax, rdx
jne .L8
mov rax, QWORD PTR -24[rbp]
cmp rax, QWORD PTR -40[rbp]
jb .L7
jmp .L8
.L9:
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_0@PLT
.L8:
mov rax, QWORD PTR -24[rbp]
cmp rax, QWORD PTR -40[rbp]
jb .L9
mov rax, QWORD PTR -40[rbp]
sub rax, QWORD PTR -8[rbp]
sar rax, 2
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_decodeStreamX2, .-HUFv05_decodeStreamX2
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_decodeStreamX2.c"
.option pic
.text
.comm BITv05_DStream_unfinished,8,8
.align 1
.type HUFv05_decodeStreamX2, @function
HUFv05_decodeStreamX2:
addi sp,sp,-80
sd ra,72(sp)
sd s0,64(sp)
addi s0,sp,80
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
sd a3,-64(s0)
mv a5,a4
sw a5,-68(s0)
ld a5,-40(s0)
sd a5,-24(s0)
j .L2
.L4:
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_DECODE_SYMBOLX2_2@plt
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_DECODE_SYMBOLX2_1@plt
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_DECODE_SYMBOLX2_2@plt
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_DECODE_SYMBOLX2_0@plt
.L2:
ld a0,-48(s0)
call BITv05_reloadDStream@plt
mv a4,a0
la a5,BITv05_DStream_unfinished
ld a5,0(a5)
bne a4,a5,.L5
ld a5,-56(s0)
addi a5,a5,-16
ld a4,-40(s0)
bleu a4,a5,.L4
j .L5
.L7:
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_DECODE_SYMBOLX2_0@plt
.L5:
ld a0,-48(s0)
call BITv05_reloadDStream@plt
mv a4,a0
la a5,BITv05_DStream_unfinished
ld a5,0(a5)
bne a4,a5,.L8
ld a4,-40(s0)
ld a5,-56(s0)
bltu a4,a5,.L7
j .L8
.L9:
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_DECODE_SYMBOLX2_0@plt
.L8:
ld a4,-40(s0)
ld a5,-56(s0)
bltu a4,a5,.L9
ld a4,-56(s0)
ld a5,-24(s0)
sub a5,a4,a5
srai a5,a5,2
mv a0,a5
ld ra,72(sp)
ld s0,64(sp)
addi sp,sp,80
jr ra
.size HUFv05_decodeStreamX2, .-HUFv05_decodeStreamX2
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_decodeStreamX4.c"
.intel_syntax noprefix
.text
.globl BITv05_DStream_unfinished
.bss
.align 8
.type BITv05_DStream_unfinished, @object
.size BITv05_DStream_unfinished, 8
BITv05_DStream_unfinished:
.zero 8
.text
.type HUFv05_decodeStreamX4, @function
HUFv05_decodeStreamX4:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov QWORD PTR -48[rbp], rcx
mov DWORD PTR -52[rbp], r8d
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR -8[rbp], rax
jmp .L2
.L4:
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_2@PLT
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_1@PLT
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_2@PLT
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_0@PLT
.L2:
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
mov rdx, QWORD PTR BITv05_DStream_unfinished[rip]
cmp rax, rdx
jne .L5
mov rax, QWORD PTR -40[rbp]
sub rax, 28
cmp QWORD PTR -24[rbp], rax
jb .L4
jmp .L5
.L7:
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_0@PLT
.L5:
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
mov rdx, QWORD PTR BITv05_DStream_unfinished[rip]
cmp rax, rdx
jne .L8
mov rax, QWORD PTR -40[rbp]
sub rax, 8
cmp QWORD PTR -24[rbp], rax
jbe .L7
jmp .L8
.L9:
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_0@PLT
.L8:
mov rax, QWORD PTR -40[rbp]
sub rax, 8
cmp QWORD PTR -24[rbp], rax
jbe .L9
mov rax, QWORD PTR -24[rbp]
cmp rax, QWORD PTR -40[rbp]
jnb .L10
mov ecx, DWORD PTR -52[rbp]
mov rdx, QWORD PTR -48[rbp]
mov rsi, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call HUFv05_decodeLastSymbolX4@PLT
cdqe
sal rax, 2
add QWORD PTR -24[rbp], rax
.L10:
mov rax, QWORD PTR -24[rbp]
sub rax, QWORD PTR -8[rbp]
sar rax, 2
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_decodeStreamX4, .-HUFv05_decodeStreamX4
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_decodeStreamX4.c"
.option pic
.text
.comm BITv05_DStream_unfinished,8,8
.align 1
.type HUFv05_decodeStreamX4, @function
HUFv05_decodeStreamX4:
addi sp,sp,-80
sd ra,72(sp)
sd s0,64(sp)
addi s0,sp,80
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
sd a3,-64(s0)
mv a5,a4
sw a5,-68(s0)
ld a5,-40(s0)
sd a5,-24(s0)
j .L2
.L4:
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_DECODE_SYMBOLX4_2@plt
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_DECODE_SYMBOLX4_1@plt
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_DECODE_SYMBOLX4_2@plt
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_DECODE_SYMBOLX4_0@plt
.L2:
ld a0,-48(s0)
call BITv05_reloadDStream@plt
mv a4,a0
la a5,BITv05_DStream_unfinished
ld a5,0(a5)
bne a4,a5,.L5
ld a5,-56(s0)
addi a5,a5,-28
ld a4,-40(s0)
bltu a4,a5,.L4
j .L5
.L7:
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_DECODE_SYMBOLX4_0@plt
.L5:
ld a0,-48(s0)
call BITv05_reloadDStream@plt
mv a4,a0
la a5,BITv05_DStream_unfinished
ld a5,0(a5)
bne a4,a5,.L8
ld a5,-56(s0)
addi a5,a5,-8
ld a4,-40(s0)
bleu a4,a5,.L7
j .L8
.L9:
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_DECODE_SYMBOLX4_0@plt
.L8:
ld a5,-56(s0)
addi a5,a5,-8
ld a4,-40(s0)
bleu a4,a5,.L9
ld a4,-40(s0)
ld a5,-56(s0)
bgeu a4,a5,.L10
lw a5,-68(s0)
mv a3,a5
ld a2,-64(s0)
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_decodeLastSymbolX4@plt
mv a5,a0
slli a5,a5,2
ld a4,-40(s0)
add a5,a4,a5
sd a5,-40(s0)
.L10:
ld a4,-40(s0)
ld a5,-24(s0)
sub a5,a4,a5
srai a5,a5,2
mv a0,a5
ld ra,72(sp)
ld s0,64(sp)
addi sp,sp,80
jr ra
.size HUFv05_decodeStreamX4, .-HUFv05_decodeStreamX4
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_decodeSymbolX2.c"
.intel_syntax noprefix
.text
.type HUFv05_decodeSymbolX2, @function
HUFv05_decodeSymbolX2:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov DWORD PTR -36[rbp], edx
mov edx, DWORD PTR -36[rbp]
mov rax, QWORD PTR -24[rbp]
mov esi, edx
mov rdi, rax
call BITv05_lookBitsFast@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov eax, DWORD PTR 4[rax]
mov DWORD PTR -12[rbp], eax
mov rax, QWORD PTR -8[rbp]
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -24[rbp]
mov esi, edx
mov rdi, rax
call BITv05_skipBits@PLT
mov eax, DWORD PTR -12[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_decodeSymbolX2, .-HUFv05_decodeSymbolX2
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_decodeSymbolX2.c"
.option pic
.text
.align 1
.type HUFv05_decodeSymbolX2, @function
HUFv05_decodeSymbolX2:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
mv a5,a2
sw a5,-52(s0)
lw a5,-52(s0)
mv a1,a5
ld a0,-40(s0)
call BITv05_lookBitsFast@plt
sd a0,-24(s0)
ld a5,-24(s0)
slli a5,a5,3
ld a4,-48(s0)
add a5,a4,a5
lw a5,4(a5)
sw a5,-28(s0)
ld a5,-24(s0)
slli a5,a5,3
ld a4,-48(s0)
add a5,a4,a5
lw a5,0(a5)
mv a1,a5
ld a0,-40(s0)
call BITv05_skipBits@plt
lw a5,-28(s0)
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size HUFv05_decodeSymbolX2, .-HUFv05_decodeSymbolX2
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_decodeSymbolX4.c"
.intel_syntax noprefix
.text
.type HUFv05_decodeSymbolX4, @function
HUFv05_decodeSymbolX4:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov DWORD PTR -44[rbp], ecx
mov edx, DWORD PTR -44[rbp]
mov rax, QWORD PTR -32[rbp]
mov esi, edx
mov rdi, rax
call BITv05_lookBitsFast@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -40[rbp]
lea rcx, [rdx+rax]
mov rax, QWORD PTR -24[rbp]
mov edx, 2
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
mov rax, QWORD PTR -8[rbp]
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov edx, DWORD PTR 4[rax]
mov rax, QWORD PTR -32[rbp]
mov esi, edx
mov rdi, rax
call BITv05_skipBits@PLT
mov rax, QWORD PTR -8[rbp]
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_decodeSymbolX4, .-HUFv05_decodeSymbolX4
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_decodeSymbolX4.c"
.option pic
.text
.align 1
.type HUFv05_decodeSymbolX4, @function
HUFv05_decodeSymbolX4:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
mv a5,a3
sw a5,-60(s0)
lw a5,-60(s0)
mv a1,a5
ld a0,-48(s0)
call BITv05_lookBitsFast@plt
sd a0,-24(s0)
ld a5,-24(s0)
slli a5,a5,3
ld a4,-56(s0)
add a5,a4,a5
li a2,2
mv a1,a5
ld a0,-40(s0)
call memcpy@plt
ld a5,-24(s0)
slli a5,a5,3
ld a4,-56(s0)
add a5,a4,a5
lw a5,4(a5)
mv a1,a5
ld a0,-48(s0)
call BITv05_skipBits@plt
ld a5,-24(s0)
slli a5,a5,3
ld a4,-56(s0)
add a5,a4,a5
lw a5,0(a5)
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size HUFv05_decodeSymbolX4, .-HUFv05_decodeSymbolX4
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_decompress1X2.c"
.intel_syntax noprefix
.text
.globl DTable
.bss
.align 4
.type DTable, @object
.size DTable, 4
DTable:
.zero 4
.globl HUFv05_MAX_TABLELOG
.align 4
.type HUFv05_MAX_TABLELOG, @object
.size HUFv05_MAX_TABLELOG, 4
HUFv05_MAX_TABLELOG:
.zero 4
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.globl HUFv05_decompress1X2
.type HUFv05_decompress1X2, @function
HUFv05_decompress1X2:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov QWORD PTR -48[rbp], rcx
mov edx, DWORD PTR HUFv05_MAX_TABLELOG[rip]
mov eax, DWORD PTR DTable[rip]
mov esi, edx
mov edi, eax
call HUFv05_CREATE_STATIC_DTABLEX2@PLT
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR -16[rbp], rax
mov eax, DWORD PTR DTable[rip]
mov rdx, QWORD PTR -48[rbp]
mov rcx, QWORD PTR -40[rbp]
mov rsi, rcx
mov edi, eax
call HUFv05_readDTableX2@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call HUFv05_isError@PLT
test rax, rax
je .L2
mov rax, QWORD PTR -8[rbp]
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
cmp rax, QWORD PTR -48[rbp]
jb .L4
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
mov rax, QWORD PTR -8[rbp]
sal rax, 2
add QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -8[rbp]
sub QWORD PTR -48[rbp], rax
mov edi, DWORD PTR DTable[rip]
mov rcx, QWORD PTR -48[rbp]
mov rdx, QWORD PTR -16[rbp]
mov rsi, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov r8d, edi
mov rdi, rax
call HUFv05_decompress1X2_usingDTable@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_decompress1X2, .-HUFv05_decompress1X2
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_decompress1X2.c"
.option pic
.text
.comm DTable,4,4
.comm HUFv05_MAX_TABLELOG,4,4
.comm srcSize_wrong,4,4
.align 1
.globl HUFv05_decompress1X2
.type HUFv05_decompress1X2, @function
HUFv05_decompress1X2:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
sd a3,-64(s0)
la a5,DTable
lw a4,0(a5)
la a5,HUFv05_MAX_TABLELOG
lw a5,0(a5)
mv a1,a5
mv a0,a4
call HUFv05_CREATE_STATIC_DTABLEX2@plt
ld a5,-56(s0)
sd a5,-32(s0)
la a5,DTable
lw a5,0(a5)
ld a2,-64(s0)
ld a1,-56(s0)
mv a0,a5
call HUFv05_readDTableX2@plt
sd a0,-24(s0)
ld a0,-24(s0)
call HUFv05_isError@plt
mv a5,a0
beqz a5,.L2
ld a5,-24(s0)
j .L3
.L2:
ld a4,-24(s0)
ld a5,-64(s0)
bltu a4,a5,.L4
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
ld a5,-24(s0)
slli a5,a5,2
ld a4,-32(s0)
add a5,a4,a5
sd a5,-32(s0)
ld a4,-64(s0)
ld a5,-24(s0)
sub a5,a4,a5
sd a5,-64(s0)
la a5,DTable
lw a5,0(a5)
mv a4,a5
ld a3,-64(s0)
ld a2,-32(s0)
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_decompress1X2_usingDTable@plt
mv a5,a0
.L3:
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size HUFv05_decompress1X2, .-HUFv05_decompress1X2
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_decompress1X2_usingDTable.c"
.intel_syntax noprefix
.text
.globl corruption_detected
.bss
.align 4
.type corruption_detected, @object
.size corruption_detected, 4
corruption_detected:
.zero 4
.globl dstSize_tooSmall
.align 4
.type dstSize_tooSmall, @object
.size dstSize_tooSmall, 4
dstSize_tooSmall:
.zero 4
.text
.globl HUFv05_decompress1X2_usingDTable
.type HUFv05_decompress1X2_usingDTable, @function
HUFv05_decompress1X2_usingDTable:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 112
mov QWORD PTR -72[rbp], rdi
mov QWORD PTR -80[rbp], rsi
mov QWORD PTR -88[rbp], rdx
mov QWORD PTR -96[rbp], rcx
mov QWORD PTR -104[rbp], r8
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov rax, QWORD PTR -72[rbp]
mov QWORD PTR -48[rbp], rax
mov rax, QWORD PTR -80[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov QWORD PTR -40[rbp], rax
mov rax, QWORD PTR -104[rbp]
mov eax, DWORD PTR [rax]
mov DWORD PTR -52[rbp], eax
mov rax, QWORD PTR -104[rbp]
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
add rax, 4
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -80[rbp]
cmp rax, QWORD PTR -96[rbp]
ja .L2
mov eax, DWORD PTR dstSize_tooSmall[rip]
mov edi, eax
call ERROR@PLT
jmp .L6
.L2:
mov rdx, QWORD PTR -96[rbp]
mov rcx, QWORD PTR -88[rbp]
lea rax, -56[rbp]
mov rsi, rcx
mov rdi, rax
call BITv05_initDStream@PLT
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call HUFv05_isError@PLT
test rax, rax
je .L4
mov rax, QWORD PTR -16[rbp]
jmp .L6
.L4:
mov edi, DWORD PTR -52[rbp]
mov rcx, QWORD PTR -24[rbp]
mov rdx, QWORD PTR -40[rbp]
lea rsi, -56[rbp]
mov rax, QWORD PTR -48[rbp]
mov r8d, edi
mov rdi, rax
call HUFv05_decodeStreamX2@PLT
lea rax, -56[rbp]
mov rdi, rax
call BITv05_endOfDStream@PLT
test eax, eax
jne .L5
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L6
.L5:
mov rax, QWORD PTR -80[rbp]
.L6:
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L7
call __stack_chk_fail@PLT
.L7:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_decompress1X2_usingDTable, .-HUFv05_decompress1X2_usingDTable
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_decompress1X2_usingDTable.c"
.option pic
.text
.comm corruption_detected,4,4
.comm dstSize_tooSmall,4,4
.align 1
.globl HUFv05_decompress1X2_usingDTable
.type HUFv05_decompress1X2_usingDTable, @function
HUFv05_decompress1X2_usingDTable:
addi sp,sp,-128
sd ra,120(sp)
sd s0,112(sp)
addi s0,sp,128
sd a0,-88(s0)
sd a1,-96(s0)
sd a2,-104(s0)
sd a3,-112(s0)
sd a4,-120(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-24(s0)
ld a5,-88(s0)
sd a5,-64(s0)
ld a5,-96(s0)
slli a5,a5,2
ld a4,-64(s0)
add a5,a4,a5
sd a5,-56(s0)
ld a5,-120(s0)
lw a5,0(a5)
sw a5,-68(s0)
ld a5,-120(s0)
sd a5,-48(s0)
ld a5,-48(s0)
addi a5,a5,4
sd a5,-40(s0)
ld a4,-96(s0)
ld a5,-112(s0)
bgtu a4,a5,.L2
la a5,dstSize_tooSmall
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L6
.L2:
addi a5,s0,-72
ld a2,-112(s0)
ld a1,-104(s0)
mv a0,a5
call BITv05_initDStream@plt
sd a0,-32(s0)
ld a0,-32(s0)
call HUFv05_isError@plt
mv a5,a0
beqz a5,.L4
ld a5,-32(s0)
j .L6
.L4:
lw a4,-68(s0)
addi a5,s0,-72
ld a3,-40(s0)
ld a2,-56(s0)
mv a1,a5
ld a0,-64(s0)
call HUFv05_decodeStreamX2@plt
addi a5,s0,-72
mv a0,a5
call BITv05_endOfDStream@plt
mv a5,a0
bnez a5,.L5
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L6
.L5:
ld a5,-96(s0)
.L6:
mv a3,a5
la a5,__stack_chk_guard
ld a4,-24(s0)
ld a5,0(a5)
beq a4,a5,.L7
call __stack_chk_fail@plt
.L7:
mv a0,a3
ld ra,120(sp)
ld s0,112(sp)
addi sp,sp,128
jr ra
.size HUFv05_decompress1X2_usingDTable, .-HUFv05_decompress1X2_usingDTable
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_decompress1X4.c"
.intel_syntax noprefix
.text
.globl DTable
.bss
.align 4
.type DTable, @object
.size DTable, 4
DTable:
.zero 4
.globl HUFv05_MAX_TABLELOG
.align 4
.type HUFv05_MAX_TABLELOG, @object
.size HUFv05_MAX_TABLELOG, 4
HUFv05_MAX_TABLELOG:
.zero 4
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.globl HUFv05_decompress1X4
.type HUFv05_decompress1X4, @function
HUFv05_decompress1X4:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov QWORD PTR -48[rbp], rcx
mov edx, DWORD PTR HUFv05_MAX_TABLELOG[rip]
mov eax, DWORD PTR DTable[rip]
mov esi, edx
mov edi, eax
call HUFv05_CREATE_STATIC_DTABLEX4@PLT
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR -16[rbp], rax
mov eax, DWORD PTR DTable[rip]
mov rdx, QWORD PTR -48[rbp]
mov rcx, QWORD PTR -40[rbp]
mov rsi, rcx
mov edi, eax
call HUFv05_readDTableX4@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call HUFv05_isError@PLT
test rax, rax
je .L2
mov rax, QWORD PTR -8[rbp]
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
cmp rax, QWORD PTR -48[rbp]
jb .L4
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
mov rax, QWORD PTR -8[rbp]
sal rax, 2
add QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -8[rbp]
sub QWORD PTR -48[rbp], rax
mov edi, DWORD PTR DTable[rip]
mov rcx, QWORD PTR -48[rbp]
mov rdx, QWORD PTR -16[rbp]
mov rsi, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov r8d, edi
mov rdi, rax
call HUFv05_decompress1X4_usingDTable@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_decompress1X4, .-HUFv05_decompress1X4
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_decompress1X4.c"
.option pic
.text
.comm DTable,4,4
.comm HUFv05_MAX_TABLELOG,4,4
.comm srcSize_wrong,4,4
.align 1
.globl HUFv05_decompress1X4
.type HUFv05_decompress1X4, @function
HUFv05_decompress1X4:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
sd a3,-64(s0)
la a5,DTable
lw a4,0(a5)
la a5,HUFv05_MAX_TABLELOG
lw a5,0(a5)
mv a1,a5
mv a0,a4
call HUFv05_CREATE_STATIC_DTABLEX4@plt
ld a5,-56(s0)
sd a5,-32(s0)
la a5,DTable
lw a5,0(a5)
ld a2,-64(s0)
ld a1,-56(s0)
mv a0,a5
call HUFv05_readDTableX4@plt
sd a0,-24(s0)
ld a0,-24(s0)
call HUFv05_isError@plt
mv a5,a0
beqz a5,.L2
ld a5,-24(s0)
j .L3
.L2:
ld a4,-24(s0)
ld a5,-64(s0)
bltu a4,a5,.L4
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
ld a5,-24(s0)
slli a5,a5,2
ld a4,-32(s0)
add a5,a4,a5
sd a5,-32(s0)
ld a4,-64(s0)
ld a5,-24(s0)
sub a5,a4,a5
sd a5,-64(s0)
la a5,DTable
lw a5,0(a5)
mv a4,a5
ld a3,-64(s0)
ld a2,-32(s0)
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_decompress1X4_usingDTable@plt
mv a5,a0
.L3:
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size HUFv05_decompress1X4, .-HUFv05_decompress1X4
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_decompress1X4_usingDTable.c"
.intel_syntax noprefix
.text
.globl corruption_detected
.bss
.align 4
.type corruption_detected, @object
.size corruption_detected, 4
corruption_detected:
.zero 4
.text
.globl HUFv05_decompress1X4_usingDTable
.type HUFv05_decompress1X4_usingDTable, @function
HUFv05_decompress1X4_usingDTable:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 112
mov QWORD PTR -72[rbp], rdi
mov QWORD PTR -80[rbp], rsi
mov QWORD PTR -88[rbp], rdx
mov QWORD PTR -96[rbp], rcx
mov QWORD PTR -104[rbp], r8
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov rax, QWORD PTR -88[rbp]
mov QWORD PTR -56[rbp], rax
mov rax, QWORD PTR -72[rbp]
mov QWORD PTR -48[rbp], rax
mov rax, QWORD PTR -80[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov QWORD PTR -40[rbp], rax
mov rax, QWORD PTR -104[rbp]
mov eax, DWORD PTR [rax]
mov DWORD PTR -60[rbp], eax
mov rax, QWORD PTR -104[rbp]
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
add rax, 4
mov QWORD PTR -24[rbp], rax
mov rdx, QWORD PTR -96[rbp]
mov rcx, QWORD PTR -56[rbp]
lea rax, -64[rbp]
mov rsi, rcx
mov rdi, rax
call BITv05_initDStream@PLT
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call HUFv05_isError@PLT
test rax, rax
je .L2
mov rax, QWORD PTR -16[rbp]
jmp .L5
.L2:
mov edi, DWORD PTR -60[rbp]
mov rcx, QWORD PTR -24[rbp]
mov rdx, QWORD PTR -40[rbp]
lea rsi, -64[rbp]
mov rax, QWORD PTR -48[rbp]
mov r8d, edi
mov rdi, rax
call HUFv05_decodeStreamX4@PLT
lea rax, -64[rbp]
mov rdi, rax
call BITv05_endOfDStream@PLT
test eax, eax
jne .L4
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L5
.L4:
mov rax, QWORD PTR -80[rbp]
.L5:
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L6
call __stack_chk_fail@PLT
.L6:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_decompress1X4_usingDTable, .-HUFv05_decompress1X4_usingDTable
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_decompress1X4_usingDTable.c"
.option pic
.text
.comm corruption_detected,4,4
.align 1
.globl HUFv05_decompress1X4_usingDTable
.type HUFv05_decompress1X4_usingDTable, @function
HUFv05_decompress1X4_usingDTable:
addi sp,sp,-128
sd ra,120(sp)
sd s0,112(sp)
addi s0,sp,128
sd a0,-88(s0)
sd a1,-96(s0)
sd a2,-104(s0)
sd a3,-112(s0)
sd a4,-120(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-24(s0)
ld a5,-104(s0)
sd a5,-72(s0)
ld a5,-88(s0)
sd a5,-64(s0)
ld a5,-96(s0)
slli a5,a5,2
ld a4,-64(s0)
add a5,a4,a5
sd a5,-56(s0)
ld a5,-120(s0)
lw a5,0(a5)
sw a5,-76(s0)
ld a5,-120(s0)
sd a5,-48(s0)
ld a5,-48(s0)
addi a5,a5,4
sd a5,-40(s0)
addi a5,s0,-80
ld a2,-112(s0)
ld a1,-72(s0)
mv a0,a5
call BITv05_initDStream@plt
sd a0,-32(s0)
ld a0,-32(s0)
call HUFv05_isError@plt
mv a5,a0
beqz a5,.L2
ld a5,-32(s0)
j .L5
.L2:
lw a4,-76(s0)
addi a5,s0,-80
ld a3,-40(s0)
ld a2,-56(s0)
mv a1,a5
ld a0,-64(s0)
call HUFv05_decodeStreamX4@plt
addi a5,s0,-80
mv a0,a5
call BITv05_endOfDStream@plt
mv a5,a0
bnez a5,.L4
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L5
.L4:
ld a5,-96(s0)
.L5:
mv a3,a5
la a5,__stack_chk_guard
ld a4,-24(s0)
ld a5,0(a5)
beq a4,a5,.L6
call __stack_chk_fail@plt
.L6:
mv a0,a3
ld ra,120(sp)
ld s0,112(sp)
addi sp,sp,128
jr ra
.size HUFv05_decompress1X4_usingDTable, .-HUFv05_decompress1X4_usingDTable
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_decompress4X2.c"
.intel_syntax noprefix
.text
.globl DTable
.bss
.align 4
.type DTable, @object
.size DTable, 4
DTable:
.zero 4
.globl HUFv05_MAX_TABLELOG
.align 4
.type HUFv05_MAX_TABLELOG, @object
.size HUFv05_MAX_TABLELOG, 4
HUFv05_MAX_TABLELOG:
.zero 4
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.globl HUFv05_decompress4X2
.type HUFv05_decompress4X2, @function
HUFv05_decompress4X2:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov QWORD PTR -48[rbp], rcx
mov edx, DWORD PTR HUFv05_MAX_TABLELOG[rip]
mov eax, DWORD PTR DTable[rip]
mov esi, edx
mov edi, eax
call HUFv05_CREATE_STATIC_DTABLEX2@PLT
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR -16[rbp], rax
mov eax, DWORD PTR DTable[rip]
mov rdx, QWORD PTR -48[rbp]
mov rcx, QWORD PTR -40[rbp]
mov rsi, rcx
mov edi, eax
call HUFv05_readDTableX2@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call HUFv05_isError@PLT
test rax, rax
je .L2
mov rax, QWORD PTR -8[rbp]
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
cmp rax, QWORD PTR -48[rbp]
jb .L4
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
mov rax, QWORD PTR -8[rbp]
sal rax, 2
add QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -8[rbp]
sub QWORD PTR -48[rbp], rax
mov edi, DWORD PTR DTable[rip]
mov rcx, QWORD PTR -48[rbp]
mov rdx, QWORD PTR -16[rbp]
mov rsi, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov r8d, edi
mov rdi, rax
call HUFv05_decompress4X2_usingDTable@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_decompress4X2, .-HUFv05_decompress4X2
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_decompress4X2.c"
.option pic
.text
.comm DTable,4,4
.comm HUFv05_MAX_TABLELOG,4,4
.comm srcSize_wrong,4,4
.align 1
.globl HUFv05_decompress4X2
.type HUFv05_decompress4X2, @function
HUFv05_decompress4X2:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
sd a3,-64(s0)
la a5,DTable
lw a4,0(a5)
la a5,HUFv05_MAX_TABLELOG
lw a5,0(a5)
mv a1,a5
mv a0,a4
call HUFv05_CREATE_STATIC_DTABLEX2@plt
ld a5,-56(s0)
sd a5,-32(s0)
la a5,DTable
lw a5,0(a5)
ld a2,-64(s0)
ld a1,-56(s0)
mv a0,a5
call HUFv05_readDTableX2@plt
sd a0,-24(s0)
ld a0,-24(s0)
call HUFv05_isError@plt
mv a5,a0
beqz a5,.L2
ld a5,-24(s0)
j .L3
.L2:
ld a4,-24(s0)
ld a5,-64(s0)
bltu a4,a5,.L4
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
ld a5,-24(s0)
slli a5,a5,2
ld a4,-32(s0)
add a5,a4,a5
sd a5,-32(s0)
ld a4,-64(s0)
ld a5,-24(s0)
sub a5,a4,a5
sd a5,-64(s0)
la a5,DTable
lw a5,0(a5)
mv a4,a5
ld a3,-64(s0)
ld a2,-32(s0)
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_decompress4X2_usingDTable@plt
mv a5,a0
.L3:
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size HUFv05_decompress4X2, .-HUFv05_decompress4X2
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_decompress4X2_usingDTable.c"
.intel_syntax noprefix
.text
.globl BITv05_DStream_unfinished
.bss
.align 4
.type BITv05_DStream_unfinished, @object
.size BITv05_DStream_unfinished, 4
BITv05_DStream_unfinished:
.zero 4
.globl corruption_detected
.align 4
.type corruption_detected, @object
.size corruption_detected, 4
corruption_detected:
.zero 4
.text
.globl HUFv05_decompress4X2_usingDTable
.type HUFv05_decompress4X2_usingDTable, @function
HUFv05_decompress4X2_usingDTable:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 264
.cfi_offset 3, -24
mov QWORD PTR -232[rbp], rdi
mov QWORD PTR -240[rbp], rsi
mov QWORD PTR -248[rbp], rdx
mov QWORD PTR -256[rbp], rcx
mov QWORD PTR -264[rbp], r8
mov rax, QWORD PTR fs:40
mov QWORD PTR -24[rbp], rax
xor eax, eax
cmp QWORD PTR -256[rbp], 9
ja .L2
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L2:
mov rax, QWORD PTR -248[rbp]
mov QWORD PTR -200[rbp], rax
mov rax, QWORD PTR -232[rbp]
mov QWORD PTR -192[rbp], rax
mov rax, QWORD PTR -240[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -192[rbp]
add rax, rdx
mov QWORD PTR -184[rbp], rax
mov rax, QWORD PTR -264[rbp]
mov QWORD PTR -176[rbp], rax
mov rax, QWORD PTR -176[rbp]
add rax, 4
mov QWORD PTR -168[rbp], rax
mov rax, QWORD PTR -264[rbp]
mov eax, DWORD PTR [rax]
mov DWORD PTR -204[rbp], eax
mov rax, QWORD PTR -200[rbp]
mov rdi, rax
call MEM_readLE16@PLT
mov QWORD PTR -160[rbp], rax
mov rax, QWORD PTR -200[rbp]
add rax, 8
mov rdi, rax
call MEM_readLE16@PLT
mov QWORD PTR -152[rbp], rax
mov rax, QWORD PTR -200[rbp]
add rax, 16
mov rdi, rax
call MEM_readLE16@PLT
mov QWORD PTR -144[rbp], rax
mov rax, QWORD PTR -200[rbp]
add rax, 24
mov QWORD PTR -136[rbp], rax
mov rax, QWORD PTR -160[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -136[rbp]
add rax, rdx
mov QWORD PTR -128[rbp], rax
mov rax, QWORD PTR -152[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -128[rbp]
add rax, rdx
mov QWORD PTR -120[rbp], rax
mov rax, QWORD PTR -144[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -120[rbp]
add rax, rdx
mov QWORD PTR -112[rbp], rax
mov rax, QWORD PTR -240[rbp]
add rax, 3
shr rax, 2
mov QWORD PTR -104[rbp], rax
mov rax, QWORD PTR -104[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -192[rbp]
add rax, rdx
mov QWORD PTR -96[rbp], rax
mov rax, QWORD PTR -104[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -96[rbp]
add rax, rdx
mov QWORD PTR -88[rbp], rax
mov rax, QWORD PTR -104[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -88[rbp]
add rax, rdx
mov QWORD PTR -80[rbp], rax
mov rax, QWORD PTR -192[rbp]
mov QWORD PTR -72[rbp], rax
mov rax, QWORD PTR -96[rbp]
mov QWORD PTR -64[rbp], rax
mov rax, QWORD PTR -88[rbp]
mov QWORD PTR -56[rbp], rax
mov rax, QWORD PTR -80[rbp]
mov QWORD PTR -48[rbp], rax
mov rdx, QWORD PTR -160[rbp]
mov rax, QWORD PTR -152[rbp]
add rdx, rax
mov rax, QWORD PTR -144[rbp]
add rdx, rax
mov rax, QWORD PTR -256[rbp]
sub rax, rdx
sub rax, 6
mov QWORD PTR -40[rbp], rax
mov rax, QWORD PTR -40[rbp]
cmp rax, QWORD PTR -256[rbp]
jbe .L4
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
mov rdx, QWORD PTR -160[rbp]
mov rcx, QWORD PTR -136[rbp]
lea rax, -224[rbp]
mov rsi, rcx
mov rdi, rax
call BITv05_initDStream@PLT
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call HUFv05_isError@PLT
test rax, rax
je .L6
mov rax, QWORD PTR -32[rbp]
jmp .L3
.L6:
mov rdx, QWORD PTR -152[rbp]
mov rcx, QWORD PTR -128[rbp]
lea rax, -220[rbp]
mov rsi, rcx
mov rdi, rax
call BITv05_initDStream@PLT
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call HUFv05_isError@PLT
test rax, rax
je .L7
mov rax, QWORD PTR -32[rbp]
jmp .L3
.L7:
mov rdx, QWORD PTR -144[rbp]
mov rcx, QWORD PTR -120[rbp]
lea rax, -216[rbp]
mov rsi, rcx
mov rdi, rax
call BITv05_initDStream@PLT
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call HUFv05_isError@PLT
test rax, rax
je .L8
mov rax, QWORD PTR -32[rbp]
jmp .L3
.L8:
mov rdx, QWORD PTR -40[rbp]
mov rcx, QWORD PTR -112[rbp]
lea rax, -212[rbp]
mov rsi, rcx
mov rdi, rax
call BITv05_initDStream@PLT
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call HUFv05_isError@PLT
test rax, rax
je .L9
mov rax, QWORD PTR -32[rbp]
jmp .L3
.L9:
lea rax, -224[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
mov ebx, eax
lea rax, -220[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
or ebx, eax
lea rax, -216[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
or ebx, eax
lea rax, -212[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
or eax, ebx
mov DWORD PTR -208[rbp], eax
jmp .L10
.L12:
lea rdx, -224[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_2@PLT
lea rdx, -220[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_2@PLT
lea rdx, -216[rbp]
mov rax, QWORD PTR -56[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_2@PLT
lea rdx, -212[rbp]
mov rax, QWORD PTR -48[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_2@PLT
lea rdx, -224[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_1@PLT
lea rdx, -220[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_1@PLT
lea rdx, -216[rbp]
mov rax, QWORD PTR -56[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_1@PLT
lea rdx, -212[rbp]
mov rax, QWORD PTR -48[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_1@PLT
lea rdx, -224[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_2@PLT
lea rdx, -220[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_2@PLT
lea rdx, -216[rbp]
mov rax, QWORD PTR -56[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_2@PLT
lea rdx, -212[rbp]
mov rax, QWORD PTR -48[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_2@PLT
lea rdx, -224[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_0@PLT
lea rdx, -220[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_0@PLT
lea rdx, -216[rbp]
mov rax, QWORD PTR -56[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_0@PLT
lea rdx, -212[rbp]
mov rax, QWORD PTR -48[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX2_0@PLT
lea rax, -224[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
mov ebx, eax
lea rax, -220[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
or ebx, eax
lea rax, -216[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
or ebx, eax
lea rax, -212[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
or eax, ebx
mov DWORD PTR -208[rbp], eax
.L10:
mov eax, DWORD PTR BITv05_DStream_unfinished[rip]
cmp DWORD PTR -208[rbp], eax
jne .L11
mov rax, QWORD PTR -184[rbp]
sub rax, 28
cmp QWORD PTR -48[rbp], rax
jb .L12
.L11:
mov rax, QWORD PTR -72[rbp]
cmp rax, QWORD PTR -96[rbp]
jbe .L13
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L13:
mov rax, QWORD PTR -64[rbp]
cmp rax, QWORD PTR -88[rbp]
jbe .L14
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L14:
mov rax, QWORD PTR -56[rbp]
cmp rax, QWORD PTR -80[rbp]
jbe .L15
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L15:
mov edi, DWORD PTR -204[rbp]
mov rcx, QWORD PTR -168[rbp]
mov rdx, QWORD PTR -96[rbp]
lea rsi, -224[rbp]
mov rax, QWORD PTR -72[rbp]
mov r8d, edi
mov rdi, rax
call HUFv05_decodeStreamX2@PLT
mov edi, DWORD PTR -204[rbp]
mov rcx, QWORD PTR -168[rbp]
mov rdx, QWORD PTR -88[rbp]
lea rsi, -220[rbp]
mov rax, QWORD PTR -64[rbp]
mov r8d, edi
mov rdi, rax
call HUFv05_decodeStreamX2@PLT
mov edi, DWORD PTR -204[rbp]
mov rcx, QWORD PTR -168[rbp]
mov rdx, QWORD PTR -80[rbp]
lea rsi, -216[rbp]
mov rax, QWORD PTR -56[rbp]
mov r8d, edi
mov rdi, rax
call HUFv05_decodeStreamX2@PLT
mov edi, DWORD PTR -204[rbp]
mov rcx, QWORD PTR -168[rbp]
mov rdx, QWORD PTR -184[rbp]
lea rsi, -212[rbp]
mov rax, QWORD PTR -48[rbp]
mov r8d, edi
mov rdi, rax
call HUFv05_decodeStreamX2@PLT
lea rax, -224[rbp]
mov rdi, rax
call BITv05_endOfDStream@PLT
mov ebx, eax
lea rax, -220[rbp]
mov rdi, rax
call BITv05_endOfDStream@PLT
and ebx, eax
lea rax, -216[rbp]
mov rdi, rax
call BITv05_endOfDStream@PLT
and ebx, eax
lea rax, -212[rbp]
mov rdi, rax
call BITv05_endOfDStream@PLT
and eax, ebx
mov DWORD PTR -208[rbp], eax
cmp DWORD PTR -208[rbp], 0
jne .L16
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L16:
mov rax, QWORD PTR -240[rbp]
.L3:
mov rbx, QWORD PTR -24[rbp]
sub rbx, QWORD PTR fs:40
je .L17
call __stack_chk_fail@PLT
.L17:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_decompress4X2_usingDTable, .-HUFv05_decompress4X2_usingDTable
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_decompress4X2_usingDTable.c"
.option pic
.text
.comm BITv05_DStream_unfinished,4,4
.comm corruption_detected,4,4
.align 1
.globl HUFv05_decompress4X2_usingDTable
.type HUFv05_decompress4X2_usingDTable, @function
HUFv05_decompress4X2_usingDTable:
addi sp,sp,-288
sd ra,280(sp)
sd s0,272(sp)
sd s1,264(sp)
addi s0,sp,288
sd a0,-248(s0)
sd a1,-256(s0)
sd a2,-264(s0)
sd a3,-272(s0)
sd a4,-280(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-40(s0)
ld a4,-272(s0)
li a5,9
bgtu a4,a5,.L2
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
ld a5,-264(s0)
sd a5,-216(s0)
ld a5,-248(s0)
sd a5,-208(s0)
ld a5,-256(s0)
slli a5,a5,2
ld a4,-208(s0)
add a5,a4,a5
sd a5,-200(s0)
ld a5,-280(s0)
sd a5,-192(s0)
ld a5,-192(s0)
addi a5,a5,4
sd a5,-184(s0)
ld a5,-280(s0)
lw a5,0(a5)
sw a5,-220(s0)
ld a0,-216(s0)
call MEM_readLE16@plt
sd a0,-176(s0)
ld a5,-216(s0)
addi a5,a5,8
mv a0,a5
call MEM_readLE16@plt
sd a0,-168(s0)
ld a5,-216(s0)
addi a5,a5,16
mv a0,a5
call MEM_readLE16@plt
sd a0,-160(s0)
ld a5,-216(s0)
addi a5,a5,24
sd a5,-152(s0)
ld a5,-176(s0)
slli a5,a5,2
ld a4,-152(s0)
add a5,a4,a5
sd a5,-144(s0)
ld a5,-168(s0)
slli a5,a5,2
ld a4,-144(s0)
add a5,a4,a5
sd a5,-136(s0)
ld a5,-160(s0)
slli a5,a5,2
ld a4,-136(s0)
add a5,a4,a5
sd a5,-128(s0)
ld a5,-256(s0)
addi a5,a5,3
srli a5,a5,2
sd a5,-120(s0)
ld a5,-120(s0)
slli a5,a5,2
ld a4,-208(s0)
add a5,a4,a5
sd a5,-112(s0)
ld a5,-120(s0)
slli a5,a5,2
ld a4,-112(s0)
add a5,a4,a5
sd a5,-104(s0)
ld a5,-120(s0)
slli a5,a5,2
ld a4,-104(s0)
add a5,a4,a5
sd a5,-96(s0)
ld a5,-208(s0)
sd a5,-88(s0)
ld a5,-112(s0)
sd a5,-80(s0)
ld a5,-104(s0)
sd a5,-72(s0)
ld a5,-96(s0)
sd a5,-64(s0)
ld a4,-176(s0)
ld a5,-168(s0)
add a4,a4,a5
ld a5,-160(s0)
add a5,a4,a5
ld a4,-272(s0)
sub a5,a4,a5
addi a5,a5,-6
sd a5,-56(s0)
ld a4,-56(s0)
ld a5,-272(s0)
bleu a4,a5,.L4
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
addi a5,s0,-240
ld a2,-176(s0)
ld a1,-152(s0)
mv a0,a5
call BITv05_initDStream@plt
sd a0,-48(s0)
ld a0,-48(s0)
call HUFv05_isError@plt
mv a5,a0
beqz a5,.L6
ld a5,-48(s0)
j .L3
.L6:
addi a5,s0,-236
ld a2,-168(s0)
ld a1,-144(s0)
mv a0,a5
call BITv05_initDStream@plt
sd a0,-48(s0)
ld a0,-48(s0)
call HUFv05_isError@plt
mv a5,a0
beqz a5,.L7
ld a5,-48(s0)
j .L3
.L7:
addi a5,s0,-232
ld a2,-160(s0)
ld a1,-136(s0)
mv a0,a5
call BITv05_initDStream@plt
sd a0,-48(s0)
ld a0,-48(s0)
call HUFv05_isError@plt
mv a5,a0
beqz a5,.L8
ld a5,-48(s0)
j .L3
.L8:
addi a5,s0,-228
ld a2,-56(s0)
ld a1,-128(s0)
mv a0,a5
call BITv05_initDStream@plt
sd a0,-48(s0)
ld a0,-48(s0)
call HUFv05_isError@plt
mv a5,a0
beqz a5,.L9
ld a5,-48(s0)
j .L3
.L9:
addi a5,s0,-240
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
mv s1,a5
addi a5,s0,-236
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
or a5,s1,a5
sext.w s1,a5
addi a5,s0,-232
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
or a5,s1,a5
sext.w s1,a5
addi a5,s0,-228
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
or a5,s1,a5
sw a5,-224(s0)
j .L10
.L12:
addi a5,s0,-240
mv a1,a5
ld a0,-88(s0)
call HUFv05_DECODE_SYMBOLX2_2@plt
addi a5,s0,-236
mv a1,a5
ld a0,-80(s0)
call HUFv05_DECODE_SYMBOLX2_2@plt
addi a5,s0,-232
mv a1,a5
ld a0,-72(s0)
call HUFv05_DECODE_SYMBOLX2_2@plt
addi a5,s0,-228
mv a1,a5
ld a0,-64(s0)
call HUFv05_DECODE_SYMBOLX2_2@plt
addi a5,s0,-240
mv a1,a5
ld a0,-88(s0)
call HUFv05_DECODE_SYMBOLX2_1@plt
addi a5,s0,-236
mv a1,a5
ld a0,-80(s0)
call HUFv05_DECODE_SYMBOLX2_1@plt
addi a5,s0,-232
mv a1,a5
ld a0,-72(s0)
call HUFv05_DECODE_SYMBOLX2_1@plt
addi a5,s0,-228
mv a1,a5
ld a0,-64(s0)
call HUFv05_DECODE_SYMBOLX2_1@plt
addi a5,s0,-240
mv a1,a5
ld a0,-88(s0)
call HUFv05_DECODE_SYMBOLX2_2@plt
addi a5,s0,-236
mv a1,a5
ld a0,-80(s0)
call HUFv05_DECODE_SYMBOLX2_2@plt
addi a5,s0,-232
mv a1,a5
ld a0,-72(s0)
call HUFv05_DECODE_SYMBOLX2_2@plt
addi a5,s0,-228
mv a1,a5
ld a0,-64(s0)
call HUFv05_DECODE_SYMBOLX2_2@plt
addi a5,s0,-240
mv a1,a5
ld a0,-88(s0)
call HUFv05_DECODE_SYMBOLX2_0@plt
addi a5,s0,-236
mv a1,a5
ld a0,-80(s0)
call HUFv05_DECODE_SYMBOLX2_0@plt
addi a5,s0,-232
mv a1,a5
ld a0,-72(s0)
call HUFv05_DECODE_SYMBOLX2_0@plt
addi a5,s0,-228
mv a1,a5
ld a0,-64(s0)
call HUFv05_DECODE_SYMBOLX2_0@plt
addi a5,s0,-240
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
mv s1,a5
addi a5,s0,-236
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
or a5,s1,a5
sext.w s1,a5
addi a5,s0,-232
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
or a5,s1,a5
sext.w s1,a5
addi a5,s0,-228
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
or a5,s1,a5
sw a5,-224(s0)
.L10:
la a5,BITv05_DStream_unfinished
lw a4,0(a5)
lw a5,-224(s0)
sext.w a5,a5
bne a5,a4,.L11
ld a5,-200(s0)
addi a5,a5,-28
ld a4,-64(s0)
bltu a4,a5,.L12
.L11:
ld a4,-88(s0)
ld a5,-112(s0)
bleu a4,a5,.L13
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L13:
ld a4,-80(s0)
ld a5,-104(s0)
bleu a4,a5,.L14
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L14:
ld a4,-72(s0)
ld a5,-96(s0)
bleu a4,a5,.L15
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L15:
lw a4,-220(s0)
addi a5,s0,-240
ld a3,-184(s0)
ld a2,-112(s0)
mv a1,a5
ld a0,-88(s0)
call HUFv05_decodeStreamX2@plt
lw a4,-220(s0)
addi a5,s0,-236
ld a3,-184(s0)
ld a2,-104(s0)
mv a1,a5
ld a0,-80(s0)
call HUFv05_decodeStreamX2@plt
lw a4,-220(s0)
addi a5,s0,-232
ld a3,-184(s0)
ld a2,-96(s0)
mv a1,a5
ld a0,-72(s0)
call HUFv05_decodeStreamX2@plt
lw a4,-220(s0)
addi a5,s0,-228
ld a3,-184(s0)
ld a2,-200(s0)
mv a1,a5
ld a0,-64(s0)
call HUFv05_decodeStreamX2@plt
addi a5,s0,-240
mv a0,a5
call BITv05_endOfDStream@plt
mv a5,a0
mv s1,a5
addi a5,s0,-236
mv a0,a5
call BITv05_endOfDStream@plt
mv a5,a0
and a5,s1,a5
sext.w s1,a5
addi a5,s0,-232
mv a0,a5
call BITv05_endOfDStream@plt
mv a5,a0
and a5,s1,a5
sext.w s1,a5
addi a5,s0,-228
mv a0,a5
call BITv05_endOfDStream@plt
mv a5,a0
and a5,s1,a5
sw a5,-224(s0)
lw a5,-224(s0)
sext.w a5,a5
bnez a5,.L16
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L16:
ld a5,-256(s0)
.L3:
mv a3,a5
la a5,__stack_chk_guard
ld a4,-40(s0)
ld a5,0(a5)
beq a4,a5,.L17
call __stack_chk_fail@plt
.L17:
mv a0,a3
ld ra,280(sp)
ld s0,272(sp)
ld s1,264(sp)
addi sp,sp,288
jr ra
.size HUFv05_decompress4X2_usingDTable, .-HUFv05_decompress4X2_usingDTable
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_decompress4X4.c"
.intel_syntax noprefix
.text
.globl DTable
.bss
.align 4
.type DTable, @object
.size DTable, 4
DTable:
.zero 4
.globl HUFv05_MAX_TABLELOG
.align 4
.type HUFv05_MAX_TABLELOG, @object
.size HUFv05_MAX_TABLELOG, 4
HUFv05_MAX_TABLELOG:
.zero 4
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.globl HUFv05_decompress4X4
.type HUFv05_decompress4X4, @function
HUFv05_decompress4X4:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov QWORD PTR -48[rbp], rcx
mov edx, DWORD PTR HUFv05_MAX_TABLELOG[rip]
mov eax, DWORD PTR DTable[rip]
mov esi, edx
mov edi, eax
call HUFv05_CREATE_STATIC_DTABLEX4@PLT
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR -16[rbp], rax
mov eax, DWORD PTR DTable[rip]
mov rdx, QWORD PTR -48[rbp]
mov rcx, QWORD PTR -40[rbp]
mov rsi, rcx
mov edi, eax
call HUFv05_readDTableX4@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call HUFv05_isError@PLT
test rax, rax
je .L2
mov rax, QWORD PTR -8[rbp]
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
cmp rax, QWORD PTR -48[rbp]
jb .L4
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
mov rax, QWORD PTR -8[rbp]
sal rax, 2
add QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -8[rbp]
sub QWORD PTR -48[rbp], rax
mov edi, DWORD PTR DTable[rip]
mov rcx, QWORD PTR -48[rbp]
mov rdx, QWORD PTR -16[rbp]
mov rsi, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov r8d, edi
mov rdi, rax
call HUFv05_decompress4X4_usingDTable@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_decompress4X4, .-HUFv05_decompress4X4
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_decompress4X4.c"
.option pic
.text
.comm DTable,4,4
.comm HUFv05_MAX_TABLELOG,4,4
.comm srcSize_wrong,4,4
.align 1
.globl HUFv05_decompress4X4
.type HUFv05_decompress4X4, @function
HUFv05_decompress4X4:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
sd a3,-64(s0)
la a5,DTable
lw a4,0(a5)
la a5,HUFv05_MAX_TABLELOG
lw a5,0(a5)
mv a1,a5
mv a0,a4
call HUFv05_CREATE_STATIC_DTABLEX4@plt
ld a5,-56(s0)
sd a5,-32(s0)
la a5,DTable
lw a5,0(a5)
ld a2,-64(s0)
ld a1,-56(s0)
mv a0,a5
call HUFv05_readDTableX4@plt
sd a0,-24(s0)
ld a0,-24(s0)
call HUFv05_isError@plt
mv a5,a0
beqz a5,.L2
ld a5,-24(s0)
j .L3
.L2:
ld a4,-24(s0)
ld a5,-64(s0)
bltu a4,a5,.L4
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
ld a5,-24(s0)
slli a5,a5,2
ld a4,-32(s0)
add a5,a4,a5
sd a5,-32(s0)
ld a4,-64(s0)
ld a5,-24(s0)
sub a5,a4,a5
sd a5,-64(s0)
la a5,DTable
lw a5,0(a5)
mv a4,a5
ld a3,-64(s0)
ld a2,-32(s0)
ld a1,-48(s0)
ld a0,-40(s0)
call HUFv05_decompress4X4_usingDTable@plt
mv a5,a0
.L3:
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size HUFv05_decompress4X4, .-HUFv05_decompress4X4
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_decompress4X4_usingDTable.c"
.intel_syntax noprefix
.text
.globl BITv05_DStream_unfinished
.bss
.align 4
.type BITv05_DStream_unfinished, @object
.size BITv05_DStream_unfinished, 4
BITv05_DStream_unfinished:
.zero 4
.globl corruption_detected
.align 4
.type corruption_detected, @object
.size corruption_detected, 4
corruption_detected:
.zero 4
.text
.globl HUFv05_decompress4X4_usingDTable
.type HUFv05_decompress4X4_usingDTable, @function
HUFv05_decompress4X4_usingDTable:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 264
.cfi_offset 3, -24
mov QWORD PTR -232[rbp], rdi
mov QWORD PTR -240[rbp], rsi
mov QWORD PTR -248[rbp], rdx
mov QWORD PTR -256[rbp], rcx
mov QWORD PTR -264[rbp], r8
mov rax, QWORD PTR fs:40
mov QWORD PTR -24[rbp], rax
xor eax, eax
cmp QWORD PTR -256[rbp], 9
ja .L2
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L2:
mov rax, QWORD PTR -248[rbp]
mov QWORD PTR -200[rbp], rax
mov rax, QWORD PTR -232[rbp]
mov QWORD PTR -192[rbp], rax
mov rax, QWORD PTR -240[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -192[rbp]
add rax, rdx
mov QWORD PTR -184[rbp], rax
mov rax, QWORD PTR -264[rbp]
mov QWORD PTR -176[rbp], rax
mov rax, QWORD PTR -176[rbp]
add rax, 4
mov QWORD PTR -168[rbp], rax
mov rax, QWORD PTR -264[rbp]
mov eax, DWORD PTR [rax]
mov DWORD PTR -204[rbp], eax
mov rax, QWORD PTR -200[rbp]
mov rdi, rax
call MEM_readLE16@PLT
mov QWORD PTR -160[rbp], rax
mov rax, QWORD PTR -200[rbp]
add rax, 8
mov rdi, rax
call MEM_readLE16@PLT
mov QWORD PTR -152[rbp], rax
mov rax, QWORD PTR -200[rbp]
add rax, 16
mov rdi, rax
call MEM_readLE16@PLT
mov QWORD PTR -144[rbp], rax
mov rax, QWORD PTR -200[rbp]
add rax, 24
mov QWORD PTR -136[rbp], rax
mov rax, QWORD PTR -160[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -136[rbp]
add rax, rdx
mov QWORD PTR -128[rbp], rax
mov rax, QWORD PTR -152[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -128[rbp]
add rax, rdx
mov QWORD PTR -120[rbp], rax
mov rax, QWORD PTR -144[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -120[rbp]
add rax, rdx
mov QWORD PTR -112[rbp], rax
mov rax, QWORD PTR -240[rbp]
add rax, 3
shr rax, 2
mov QWORD PTR -104[rbp], rax
mov rax, QWORD PTR -104[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -192[rbp]
add rax, rdx
mov QWORD PTR -96[rbp], rax
mov rax, QWORD PTR -104[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -96[rbp]
add rax, rdx
mov QWORD PTR -88[rbp], rax
mov rax, QWORD PTR -104[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -88[rbp]
add rax, rdx
mov QWORD PTR -80[rbp], rax
mov rax, QWORD PTR -192[rbp]
mov QWORD PTR -72[rbp], rax
mov rax, QWORD PTR -96[rbp]
mov QWORD PTR -64[rbp], rax
mov rax, QWORD PTR -88[rbp]
mov QWORD PTR -56[rbp], rax
mov rax, QWORD PTR -80[rbp]
mov QWORD PTR -48[rbp], rax
mov rdx, QWORD PTR -160[rbp]
mov rax, QWORD PTR -152[rbp]
add rdx, rax
mov rax, QWORD PTR -144[rbp]
add rdx, rax
mov rax, QWORD PTR -256[rbp]
sub rax, rdx
sub rax, 6
mov QWORD PTR -40[rbp], rax
mov rax, QWORD PTR -40[rbp]
cmp rax, QWORD PTR -256[rbp]
jbe .L4
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
mov rdx, QWORD PTR -160[rbp]
mov rcx, QWORD PTR -136[rbp]
lea rax, -224[rbp]
mov rsi, rcx
mov rdi, rax
call BITv05_initDStream@PLT
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call HUFv05_isError@PLT
test rax, rax
je .L6
mov rax, QWORD PTR -32[rbp]
jmp .L3
.L6:
mov rdx, QWORD PTR -152[rbp]
mov rcx, QWORD PTR -128[rbp]
lea rax, -220[rbp]
mov rsi, rcx
mov rdi, rax
call BITv05_initDStream@PLT
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call HUFv05_isError@PLT
test rax, rax
je .L7
mov rax, QWORD PTR -32[rbp]
jmp .L3
.L7:
mov rdx, QWORD PTR -144[rbp]
mov rcx, QWORD PTR -120[rbp]
lea rax, -216[rbp]
mov rsi, rcx
mov rdi, rax
call BITv05_initDStream@PLT
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call HUFv05_isError@PLT
test rax, rax
je .L8
mov rax, QWORD PTR -32[rbp]
jmp .L3
.L8:
mov rdx, QWORD PTR -40[rbp]
mov rcx, QWORD PTR -112[rbp]
lea rax, -212[rbp]
mov rsi, rcx
mov rdi, rax
call BITv05_initDStream@PLT
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call HUFv05_isError@PLT
test rax, rax
je .L9
mov rax, QWORD PTR -32[rbp]
jmp .L3
.L9:
lea rax, -224[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
mov ebx, eax
lea rax, -220[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
or ebx, eax
lea rax, -216[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
or ebx, eax
lea rax, -212[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
or eax, ebx
mov DWORD PTR -208[rbp], eax
jmp .L10
.L12:
lea rdx, -224[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_2@PLT
lea rdx, -220[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_2@PLT
lea rdx, -216[rbp]
mov rax, QWORD PTR -56[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_2@PLT
lea rdx, -212[rbp]
mov rax, QWORD PTR -48[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_2@PLT
lea rdx, -224[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_1@PLT
lea rdx, -220[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_1@PLT
lea rdx, -216[rbp]
mov rax, QWORD PTR -56[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_1@PLT
lea rdx, -212[rbp]
mov rax, QWORD PTR -48[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_1@PLT
lea rdx, -224[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_2@PLT
lea rdx, -220[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_2@PLT
lea rdx, -216[rbp]
mov rax, QWORD PTR -56[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_2@PLT
lea rdx, -212[rbp]
mov rax, QWORD PTR -48[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_2@PLT
lea rdx, -224[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_0@PLT
lea rdx, -220[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_0@PLT
lea rdx, -216[rbp]
mov rax, QWORD PTR -56[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_0@PLT
lea rdx, -212[rbp]
mov rax, QWORD PTR -48[rbp]
mov rsi, rdx
mov rdi, rax
call HUFv05_DECODE_SYMBOLX4_0@PLT
lea rax, -224[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
mov ebx, eax
lea rax, -220[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
or ebx, eax
lea rax, -216[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
or ebx, eax
lea rax, -212[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
or eax, ebx
mov DWORD PTR -208[rbp], eax
.L10:
mov eax, DWORD PTR BITv05_DStream_unfinished[rip]
cmp DWORD PTR -208[rbp], eax
jne .L11
mov rax, QWORD PTR -184[rbp]
sub rax, 28
cmp QWORD PTR -48[rbp], rax
jb .L12
.L11:
mov rax, QWORD PTR -72[rbp]
cmp rax, QWORD PTR -96[rbp]
jbe .L13
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L13:
mov rax, QWORD PTR -64[rbp]
cmp rax, QWORD PTR -88[rbp]
jbe .L14
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L14:
mov rax, QWORD PTR -56[rbp]
cmp rax, QWORD PTR -80[rbp]
jbe .L15
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L15:
mov edi, DWORD PTR -204[rbp]
mov rcx, QWORD PTR -168[rbp]
mov rdx, QWORD PTR -96[rbp]
lea rsi, -224[rbp]
mov rax, QWORD PTR -72[rbp]
mov r8d, edi
mov rdi, rax
call HUFv05_decodeStreamX4@PLT
mov edi, DWORD PTR -204[rbp]
mov rcx, QWORD PTR -168[rbp]
mov rdx, QWORD PTR -88[rbp]
lea rsi, -220[rbp]
mov rax, QWORD PTR -64[rbp]
mov r8d, edi
mov rdi, rax
call HUFv05_decodeStreamX4@PLT
mov edi, DWORD PTR -204[rbp]
mov rcx, QWORD PTR -168[rbp]
mov rdx, QWORD PTR -80[rbp]
lea rsi, -216[rbp]
mov rax, QWORD PTR -56[rbp]
mov r8d, edi
mov rdi, rax
call HUFv05_decodeStreamX4@PLT
mov edi, DWORD PTR -204[rbp]
mov rcx, QWORD PTR -168[rbp]
mov rdx, QWORD PTR -184[rbp]
lea rsi, -212[rbp]
mov rax, QWORD PTR -48[rbp]
mov r8d, edi
mov rdi, rax
call HUFv05_decodeStreamX4@PLT
lea rax, -224[rbp]
mov rdi, rax
call BITv05_endOfDStream@PLT
mov ebx, eax
lea rax, -220[rbp]
mov rdi, rax
call BITv05_endOfDStream@PLT
and ebx, eax
lea rax, -216[rbp]
mov rdi, rax
call BITv05_endOfDStream@PLT
and ebx, eax
lea rax, -212[rbp]
mov rdi, rax
call BITv05_endOfDStream@PLT
and eax, ebx
mov DWORD PTR -208[rbp], eax
cmp DWORD PTR -208[rbp], 0
jne .L16
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L16:
mov rax, QWORD PTR -240[rbp]
.L3:
mov rbx, QWORD PTR -24[rbp]
sub rbx, QWORD PTR fs:40
je .L17
call __stack_chk_fail@PLT
.L17:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_decompress4X4_usingDTable, .-HUFv05_decompress4X4_usingDTable
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_decompress4X4_usingDTable.c"
.option pic
.text
.comm BITv05_DStream_unfinished,4,4
.comm corruption_detected,4,4
.align 1
.globl HUFv05_decompress4X4_usingDTable
.type HUFv05_decompress4X4_usingDTable, @function
HUFv05_decompress4X4_usingDTable:
addi sp,sp,-288
sd ra,280(sp)
sd s0,272(sp)
sd s1,264(sp)
addi s0,sp,288
sd a0,-248(s0)
sd a1,-256(s0)
sd a2,-264(s0)
sd a3,-272(s0)
sd a4,-280(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-40(s0)
ld a4,-272(s0)
li a5,9
bgtu a4,a5,.L2
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
ld a5,-264(s0)
sd a5,-216(s0)
ld a5,-248(s0)
sd a5,-208(s0)
ld a5,-256(s0)
slli a5,a5,2
ld a4,-208(s0)
add a5,a4,a5
sd a5,-200(s0)
ld a5,-280(s0)
sd a5,-192(s0)
ld a5,-192(s0)
addi a5,a5,4
sd a5,-184(s0)
ld a5,-280(s0)
lw a5,0(a5)
sw a5,-220(s0)
ld a0,-216(s0)
call MEM_readLE16@plt
sd a0,-176(s0)
ld a5,-216(s0)
addi a5,a5,8
mv a0,a5
call MEM_readLE16@plt
sd a0,-168(s0)
ld a5,-216(s0)
addi a5,a5,16
mv a0,a5
call MEM_readLE16@plt
sd a0,-160(s0)
ld a5,-216(s0)
addi a5,a5,24
sd a5,-152(s0)
ld a5,-176(s0)
slli a5,a5,2
ld a4,-152(s0)
add a5,a4,a5
sd a5,-144(s0)
ld a5,-168(s0)
slli a5,a5,2
ld a4,-144(s0)
add a5,a4,a5
sd a5,-136(s0)
ld a5,-160(s0)
slli a5,a5,2
ld a4,-136(s0)
add a5,a4,a5
sd a5,-128(s0)
ld a5,-256(s0)
addi a5,a5,3
srli a5,a5,2
sd a5,-120(s0)
ld a5,-120(s0)
slli a5,a5,2
ld a4,-208(s0)
add a5,a4,a5
sd a5,-112(s0)
ld a5,-120(s0)
slli a5,a5,2
ld a4,-112(s0)
add a5,a4,a5
sd a5,-104(s0)
ld a5,-120(s0)
slli a5,a5,2
ld a4,-104(s0)
add a5,a4,a5
sd a5,-96(s0)
ld a5,-208(s0)
sd a5,-88(s0)
ld a5,-112(s0)
sd a5,-80(s0)
ld a5,-104(s0)
sd a5,-72(s0)
ld a5,-96(s0)
sd a5,-64(s0)
ld a4,-176(s0)
ld a5,-168(s0)
add a4,a4,a5
ld a5,-160(s0)
add a5,a4,a5
ld a4,-272(s0)
sub a5,a4,a5
addi a5,a5,-6
sd a5,-56(s0)
ld a4,-56(s0)
ld a5,-272(s0)
bleu a4,a5,.L4
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
addi a5,s0,-240
ld a2,-176(s0)
ld a1,-152(s0)
mv a0,a5
call BITv05_initDStream@plt
sd a0,-48(s0)
ld a0,-48(s0)
call HUFv05_isError@plt
mv a5,a0
beqz a5,.L6
ld a5,-48(s0)
j .L3
.L6:
addi a5,s0,-236
ld a2,-168(s0)
ld a1,-144(s0)
mv a0,a5
call BITv05_initDStream@plt
sd a0,-48(s0)
ld a0,-48(s0)
call HUFv05_isError@plt
mv a5,a0
beqz a5,.L7
ld a5,-48(s0)
j .L3
.L7:
addi a5,s0,-232
ld a2,-160(s0)
ld a1,-136(s0)
mv a0,a5
call BITv05_initDStream@plt
sd a0,-48(s0)
ld a0,-48(s0)
call HUFv05_isError@plt
mv a5,a0
beqz a5,.L8
ld a5,-48(s0)
j .L3
.L8:
addi a5,s0,-228
ld a2,-56(s0)
ld a1,-128(s0)
mv a0,a5
call BITv05_initDStream@plt
sd a0,-48(s0)
ld a0,-48(s0)
call HUFv05_isError@plt
mv a5,a0
beqz a5,.L9
ld a5,-48(s0)
j .L3
.L9:
addi a5,s0,-240
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
mv s1,a5
addi a5,s0,-236
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
or a5,s1,a5
sext.w s1,a5
addi a5,s0,-232
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
or a5,s1,a5
sext.w s1,a5
addi a5,s0,-228
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
or a5,s1,a5
sw a5,-224(s0)
j .L10
.L12:
addi a5,s0,-240
mv a1,a5
ld a0,-88(s0)
call HUFv05_DECODE_SYMBOLX4_2@plt
addi a5,s0,-236
mv a1,a5
ld a0,-80(s0)
call HUFv05_DECODE_SYMBOLX4_2@plt
addi a5,s0,-232
mv a1,a5
ld a0,-72(s0)
call HUFv05_DECODE_SYMBOLX4_2@plt
addi a5,s0,-228
mv a1,a5
ld a0,-64(s0)
call HUFv05_DECODE_SYMBOLX4_2@plt
addi a5,s0,-240
mv a1,a5
ld a0,-88(s0)
call HUFv05_DECODE_SYMBOLX4_1@plt
addi a5,s0,-236
mv a1,a5
ld a0,-80(s0)
call HUFv05_DECODE_SYMBOLX4_1@plt
addi a5,s0,-232
mv a1,a5
ld a0,-72(s0)
call HUFv05_DECODE_SYMBOLX4_1@plt
addi a5,s0,-228
mv a1,a5
ld a0,-64(s0)
call HUFv05_DECODE_SYMBOLX4_1@plt
addi a5,s0,-240
mv a1,a5
ld a0,-88(s0)
call HUFv05_DECODE_SYMBOLX4_2@plt
addi a5,s0,-236
mv a1,a5
ld a0,-80(s0)
call HUFv05_DECODE_SYMBOLX4_2@plt
addi a5,s0,-232
mv a1,a5
ld a0,-72(s0)
call HUFv05_DECODE_SYMBOLX4_2@plt
addi a5,s0,-228
mv a1,a5
ld a0,-64(s0)
call HUFv05_DECODE_SYMBOLX4_2@plt
addi a5,s0,-240
mv a1,a5
ld a0,-88(s0)
call HUFv05_DECODE_SYMBOLX4_0@plt
addi a5,s0,-236
mv a1,a5
ld a0,-80(s0)
call HUFv05_DECODE_SYMBOLX4_0@plt
addi a5,s0,-232
mv a1,a5
ld a0,-72(s0)
call HUFv05_DECODE_SYMBOLX4_0@plt
addi a5,s0,-228
mv a1,a5
ld a0,-64(s0)
call HUFv05_DECODE_SYMBOLX4_0@plt
addi a5,s0,-240
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
mv s1,a5
addi a5,s0,-236
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
or a5,s1,a5
sext.w s1,a5
addi a5,s0,-232
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
or a5,s1,a5
sext.w s1,a5
addi a5,s0,-228
mv a0,a5
call BITv05_reloadDStream@plt
mv a5,a0
or a5,s1,a5
sw a5,-224(s0)
.L10:
la a5,BITv05_DStream_unfinished
lw a4,0(a5)
lw a5,-224(s0)
sext.w a5,a5
bne a5,a4,.L11
ld a5,-200(s0)
addi a5,a5,-28
ld a4,-64(s0)
bltu a4,a5,.L12
.L11:
ld a4,-88(s0)
ld a5,-112(s0)
bleu a4,a5,.L13
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L13:
ld a4,-80(s0)
ld a5,-104(s0)
bleu a4,a5,.L14
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L14:
ld a4,-72(s0)
ld a5,-96(s0)
bleu a4,a5,.L15
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L15:
lw a4,-220(s0)
addi a5,s0,-240
ld a3,-184(s0)
ld a2,-112(s0)
mv a1,a5
ld a0,-88(s0)
call HUFv05_decodeStreamX4@plt
lw a4,-220(s0)
addi a5,s0,-236
ld a3,-184(s0)
ld a2,-104(s0)
mv a1,a5
ld a0,-80(s0)
call HUFv05_decodeStreamX4@plt
lw a4,-220(s0)
addi a5,s0,-232
ld a3,-184(s0)
ld a2,-96(s0)
mv a1,a5
ld a0,-72(s0)
call HUFv05_decodeStreamX4@plt
lw a4,-220(s0)
addi a5,s0,-228
ld a3,-184(s0)
ld a2,-200(s0)
mv a1,a5
ld a0,-64(s0)
call HUFv05_decodeStreamX4@plt
addi a5,s0,-240
mv a0,a5
call BITv05_endOfDStream@plt
mv a5,a0
mv s1,a5
addi a5,s0,-236
mv a0,a5
call BITv05_endOfDStream@plt
mv a5,a0
and a5,s1,a5
sext.w s1,a5
addi a5,s0,-232
mv a0,a5
call BITv05_endOfDStream@plt
mv a5,a0
and a5,s1,a5
sext.w s1,a5
addi a5,s0,-228
mv a0,a5
call BITv05_endOfDStream@plt
mv a5,a0
and a5,s1,a5
sw a5,-224(s0)
lw a5,-224(s0)
sext.w a5,a5
bnez a5,.L16
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L16:
ld a5,-256(s0)
.L3:
mv a3,a5
la a5,__stack_chk_guard
ld a4,-40(s0)
ld a5,0(a5)
beq a4,a5,.L17
call __stack_chk_fail@plt
.L17:
mv a0,a3
ld ra,280(sp)
ld s0,272(sp)
ld s1,264(sp)
addi sp,sp,288
jr ra
.size HUFv05_decompress4X4_usingDTable, .-HUFv05_decompress4X4_usingDTable
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_fillDTableX4Level2.c"
.intel_syntax noprefix
.text
.globl HUFv05_ABSOLUTEMAX_TABLELOG
.bss
.align 4
.type HUFv05_ABSOLUTEMAX_TABLELOG, @object
.size HUFv05_ABSOLUTEMAX_TABLELOG, 4
HUFv05_ABSOLUTEMAX_TABLELOG:
.zero 4
.text
.type HUFv05_fillDTableX4Level2, @function
HUFv05_fillDTableX4Level2:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push r13
push r12
push rbx
sub rsp, 184
.cfi_offset 13, -24
.cfi_offset 12, -32
.cfi_offset 3, -40
mov QWORD PTR -168[rbp], rdi
mov QWORD PTR -176[rbp], rsi
mov QWORD PTR -184[rbp], rdx
mov QWORD PTR -192[rbp], rcx
mov DWORD PTR -196[rbp], r8d
mov QWORD PTR -208[rbp], r9
mov rax, QWORD PTR fs:40
mov QWORD PTR -40[rbp], rax
xor eax, eax
mov rax, rsp
mov rbx, rax
mov eax, DWORD PTR HUFv05_ABSOLUTEMAX_TABLELOG[rip]
lea ecx, 1[rax]
movsx rax, ecx
sub rax, 1
mov QWORD PTR -136[rbp], rax
movsx rax, ecx
mov r12, rax
mov r13d, 0
movsx rax, ecx
mov r10, rax
mov r11d, 0
movsx rax, ecx
lea rdx, 0[0+rax*8]
mov eax, 16
sub rax, 1
add rax, rdx
mov edi, 16
mov edx, 0
div rdi
imul rax, rax, 16
mov rsi, rax
and rsi, -4096
mov rdx, rsp
sub rdx, rsi
.L2:
cmp rsp, rdx
je .L3
sub rsp, 4096
or QWORD PTR 4088[rsp], 0
jmp .L2
.L3:
mov rdx, rax
and edx, 4095
sub rsp, rdx
mov rdx, rax
and edx, 4095
test rdx, rdx
je .L4
and eax, 4095
sub rax, 8
add rax, rsp
or QWORD PTR [rax], 0
.L4:
mov rax, rsp
add rax, 7
shr rax, 3
sal rax, 3
mov QWORD PTR -128[rbp], rax
movsx rax, ecx
sal eax, 3
mov edx, eax
mov rcx, QWORD PTR -192[rbp]
mov rax, QWORD PTR -128[rbp]
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
cmp DWORD PTR -196[rbp], 1
jle .L5
mov rax, QWORD PTR -128[rbp]
mov edx, DWORD PTR -196[rbp]
movsx rdx, edx
mov rax, QWORD PTR [rax+rdx*8]
mov QWORD PTR -120[rbp], rax
mov rax, QWORD PTR 32[rbp]
lea rdx, -64[rbp]
add rdx, 16
mov rsi, rax
mov rdi, rdx
call MEM_writeLE16@PLT
mov rax, QWORD PTR -184[rbp]
mov QWORD PTR -56[rbp], rax
mov DWORD PTR -64[rbp], 1
mov QWORD PTR -152[rbp], 0
jmp .L6
.L7:
mov rdx, QWORD PTR -152[rbp]
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 3
mov rdx, rax
mov rax, QWORD PTR -168[rbp]
lea rcx, [rdx+rax]
mov rax, QWORD PTR -64[rbp]
mov rdx, QWORD PTR -56[rbp]
mov QWORD PTR [rcx], rax
mov QWORD PTR 8[rcx], rdx
mov rax, QWORD PTR -48[rbp]
mov QWORD PTR 16[rcx], rax
add QWORD PTR -152[rbp], 1
.L6:
mov rax, QWORD PTR -152[rbp]
cmp rax, QWORD PTR -120[rbp]
jb .L7
.L5:
mov QWORD PTR -144[rbp], 0
jmp .L8
.L10:
mov rax, QWORD PTR -144[rbp]
sal rax, 4
mov rdx, rax
mov rax, QWORD PTR -208[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov QWORD PTR -112[rbp], rax
mov rax, QWORD PTR -144[rbp]
sal rax, 4
mov rdx, rax
mov rax, QWORD PTR -208[rbp]
add rax, rdx
mov rax, QWORD PTR 8[rax]
mov QWORD PTR -104[rbp], rax
mov rax, QWORD PTR 24[rbp]
sub rax, QWORD PTR -104[rbp]
mov QWORD PTR -96[rbp], rax
mov rax, QWORD PTR -176[rbp]
mov edx, eax
mov rax, QWORD PTR -96[rbp]
mov ecx, eax
mov eax, edx
sub eax, ecx
mov edx, 1
mov ecx, eax
sal edx, cl
mov eax, edx
cdqe
mov QWORD PTR -88[rbp], rax
mov rax, QWORD PTR -128[rbp]
mov rdx, QWORD PTR -104[rbp]
mov rax, QWORD PTR [rax+rdx*8]
mov QWORD PTR -80[rbp], rax
mov rax, QWORD PTR -80[rbp]
mov QWORD PTR -160[rbp], rax
mov rdx, QWORD PTR -80[rbp]
mov rax, QWORD PTR -88[rbp]
add rax, rdx
mov QWORD PTR -72[rbp], rax
mov rax, QWORD PTR -112[rbp]
sal rax, 8
mov rdx, rax
mov rax, QWORD PTR 32[rbp]
add rax, rdx
mov rdx, rax
lea rax, -64[rbp]
add rax, 16
mov rsi, rdx
mov rdi, rax
call MEM_writeLE16@PLT
mov rdx, QWORD PTR -96[rbp]
mov rax, QWORD PTR -184[rbp]
add rax, rdx
mov QWORD PTR -56[rbp], rax
mov DWORD PTR -64[rbp], 2
.L9:
mov rdx, QWORD PTR -160[rbp]
lea rax, 1[rdx]
mov QWORD PTR -160[rbp], rax
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 3
mov rdx, rax
mov rax, QWORD PTR -168[rbp]
lea rcx, [rdx+rax]
mov rax, QWORD PTR -64[rbp]
mov rdx, QWORD PTR -56[rbp]
mov QWORD PTR [rcx], rax
mov QWORD PTR 8[rcx], rdx
mov rax, QWORD PTR -48[rbp]
mov QWORD PTR 16[rcx], rax
mov rax, QWORD PTR -160[rbp]
cmp rax, QWORD PTR -72[rbp]
jb .L9
mov rax, QWORD PTR -128[rbp]
mov rdx, QWORD PTR -104[rbp]
mov rdx, QWORD PTR [rax+rdx*8]
mov rax, QWORD PTR -88[rbp]
lea rcx, [rdx+rax]
mov rax, QWORD PTR -128[rbp]
mov rdx, QWORD PTR -104[rbp]
mov QWORD PTR [rax+rdx*8], rcx
add QWORD PTR -144[rbp], 1
.L8:
mov rax, QWORD PTR -144[rbp]
cmp rax, QWORD PTR 16[rbp]
jb .L10
mov rsp, rbx
nop
mov rax, QWORD PTR -40[rbp]
sub rax, QWORD PTR fs:40
je .L11
call __stack_chk_fail@PLT
.L11:
lea rsp, -24[rbp]
pop rbx
pop r12
pop r13
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_fillDTableX4Level2, .-HUFv05_fillDTableX4Level2
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_fillDTableX4Level2.c"
.option pic
.text
.comm HUFv05_ABSOLUTEMAX_TABLELOG,4,4
.align 1
.type HUFv05_fillDTableX4Level2, @function
HUFv05_fillDTableX4Level2:
addi sp,sp,-240
sd ra,232(sp)
sd s0,224(sp)
sd s1,216(sp)
sd s2,208(sp)
sd s3,200(sp)
addi s0,sp,240
sd a0,-184(s0)
sd a1,-192(s0)
sd a2,-200(s0)
sd a3,-208(s0)
sd a5,-224(s0)
sd a6,-232(s0)
sd a7,-240(s0)
mv a5,a4
sw a5,-212(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-56(s0)
mv a5,sp
mv s1,a5
la a5,HUFv05_ABSOLUTEMAX_TABLELOG
lw a5,0(a5)
addiw a5,a5,1
sext.w a5,a5
mv a4,a5
addi a4,a4,-1
sd a4,-152(s0)
mv a4,a5
mv s2,a4
li s3,0
srli a4,s2,58
slli t4,s3,6
or t4,a4,t4
slli t3,s2,6
mv a4,a5
mv t5,a4
li t6,0
srli a4,t5,58
slli t2,t6,6
or t2,a4,t2
slli t1,t5,6
mv a4,a5
slli a4,a4,3
addi a4,a4,15
srli a4,a4,4
slli a4,a4,4
sub sp,sp,a4
mv a4,sp
addi a4,a4,7
srli a4,a4,3
slli a4,a4,3
sd a4,-144(s0)
sext.w a5,a5
slliw a5,a5,3
sext.w a5,a5
sext.w a5,a5
mv a2,a5
ld a1,-208(s0)
ld a0,-144(s0)
call memcpy@plt
lw a5,-212(s0)
sext.w a4,a5
li a5,1
ble a4,a5,.L2
ld a4,-144(s0)
lw a5,-212(s0)
slli a5,a5,3
add a5,a4,a5
ld a5,0(a5)
sd a5,-136(s0)
addi a5,s0,-80
addi a5,a5,16
ld a1,0(s0)
mv a0,a5
call MEM_writeLE16@plt
ld a5,-200(s0)
sd a5,-72(s0)
li a5,1
sw a5,-80(s0)
sd zero,-168(s0)
j .L3
.L4:
ld a4,-168(s0)
mv a5,a4
slli a5,a5,1
add a5,a5,a4
slli a5,a5,3
mv a4,a5
ld a5,-184(s0)
add a5,a5,a4
ld a4,-80(s0)
sd a4,0(a5)
ld a4,-72(s0)
sd a4,8(a5)
ld a4,-64(s0)
sd a4,16(a5)
ld a5,-168(s0)
addi a5,a5,1
sd a5,-168(s0)
.L3:
ld a4,-168(s0)
ld a5,-136(s0)
bltu a4,a5,.L4
.L2:
sd zero,-160(s0)
j .L5
.L7:
ld a5,-160(s0)
slli a5,a5,4
ld a4,-224(s0)
add a5,a4,a5
ld a5,0(a5)
sd a5,-128(s0)
ld a5,-160(s0)
slli a5,a5,4
ld a4,-224(s0)
add a5,a4,a5
ld a5,8(a5)
sd a5,-120(s0)
ld a4,-240(s0)
ld a5,-120(s0)
sub a5,a4,a5
sd a5,-112(s0)
ld a5,-192(s0)
sext.w a4,a5
ld a5,-112(s0)
sext.w a5,a5
subw a5,a4,a5
sext.w a5,a5
li a4,1
sllw a5,a4,a5
sext.w a5,a5
sd a5,-104(s0)
ld a4,-144(s0)
ld a5,-120(s0)
slli a5,a5,3
add a5,a4,a5
ld a5,0(a5)
sd a5,-96(s0)
ld a5,-96(s0)
sd a5,-176(s0)
ld a4,-96(s0)
ld a5,-104(s0)
add a5,a4,a5
sd a5,-88(s0)
ld a5,-128(s0)
slli a4,a5,8
ld a5,0(s0)
add a5,a4,a5
mv a4,a5
addi a5,s0,-80
addi a5,a5,16
mv a1,a4
mv a0,a5
call MEM_writeLE16@plt
ld a4,-112(s0)
ld a5,-200(s0)
add a5,a4,a5
sd a5,-72(s0)
li a5,2
sw a5,-80(s0)
.L6:
ld a4,-176(s0)
addi a5,a4,1
sd a5,-176(s0)
mv a5,a4
slli a5,a5,1
add a5,a5,a4
slli a5,a5,3
mv a4,a5
ld a5,-184(s0)
add a5,a5,a4
ld a4,-80(s0)
sd a4,0(a5)
ld a4,-72(s0)
sd a4,8(a5)
ld a4,-64(s0)
sd a4,16(a5)
ld a4,-176(s0)
ld a5,-88(s0)
bltu a4,a5,.L6
ld a4,-144(s0)
ld a5,-120(s0)
slli a5,a5,3
add a5,a4,a5
ld a4,0(a5)
ld a5,-104(s0)
add a4,a4,a5
ld a3,-144(s0)
ld a5,-120(s0)
slli a5,a5,3
add a5,a3,a5
sd a4,0(a5)
ld a5,-160(s0)
addi a5,a5,1
sd a5,-160(s0)
.L5:
ld a4,-160(s0)
ld a5,-232(s0)
bltu a4,a5,.L7
mv sp,s1
nop
la a5,__stack_chk_guard
ld a4,-56(s0)
ld a5,0(a5)
beq a4,a5,.L8
call __stack_chk_fail@plt
.L8:
addi sp,s0,-240
ld ra,232(sp)
ld s0,224(sp)
ld s1,216(sp)
ld s2,208(sp)
ld s3,200(sp)
addi sp,sp,240
jr ra
.size HUFv05_fillDTableX4Level2, .-HUFv05_fillDTableX4Level2
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_getErrorName.c"
.intel_syntax noprefix
.text
.globl HUFv05_getErrorName
.type HUFv05_getErrorName, @function
HUFv05_getErrorName:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ERR_getErrorName@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_getErrorName, .-HUFv05_getErrorName
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_getErrorName.c"
.option pic
.text
.align 1
.globl HUFv05_getErrorName
.type HUFv05_getErrorName, @function
HUFv05_getErrorName:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call ERR_getErrorName@plt
mv a5,a0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size HUFv05_getErrorName, .-HUFv05_getErrorName
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_isError.c"
.intel_syntax noprefix
.text
.globl HUFv05_isError
.type HUFv05_isError, @function
HUFv05_isError:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ERR_isError@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_isError, .-HUFv05_isError
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_isError.c"
.option pic
.text
.align 1
.globl HUFv05_isError
.type HUFv05_isError, @function
HUFv05_isError:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call ERR_isError@plt
mv a5,a0
sext.w a5,a5
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size HUFv05_isError, .-HUFv05_isError
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_HUFv05_readDTableX2.c"
.intel_syntax noprefix
.text
.globl HUFv05_ABSOLUTEMAX_TABLELOG
.bss
.align 4
.type HUFv05_ABSOLUTEMAX_TABLELOG, @object
.size HUFv05_ABSOLUTEMAX_TABLELOG, 4
HUFv05_ABSOLUTEMAX_TABLELOG:
.zero 4
.globl HUFv05_MAX_SYMBOL_VALUE
.align 4
.type HUFv05_MAX_SYMBOL_VALUE, @object
.size HUFv05_MAX_SYMBOL_VALUE, 4
HUFv05_MAX_SYMBOL_VALUE:
.zero 4
.globl tableLog_tooLarge
.align 4
.type tableLog_tooLarge, @object
.size tableLog_tooLarge, 4
tableLog_tooLarge:
.zero 4
.text
.globl HUFv05_readDTableX2
.type HUFv05_readDTableX2, @function
HUFv05_readDTableX2:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push r15
push r14
push r13
push r12
push rbx
sub rsp, 200
.cfi_offset 15, -24
.cfi_offset 14, -32
.cfi_offset 13, -40
.cfi_offset 12, -48
.cfi_offset 3, -56
mov QWORD PTR -216[rbp], rdi
mov QWORD PTR -224[rbp], rsi
mov QWORD PTR -232[rbp], rdx
mov rax, QWORD PTR fs:40
mov QWORD PTR -56[rbp], rax
xor eax, eax
mov rax, rsp
mov rbx, rax
mov eax, DWORD PTR HUFv05_MAX_SYMBOL_VALUE[rip]
add eax, 1
movsx rdx, eax
sub rdx, 1
mov QWORD PTR -160[rbp], rdx
movsx rdx, eax
mov r14, rdx
mov r15d, 0
movsx rdx, eax
mov r12, rdx
mov r13d, 0
cdqe
lea rdx, 0[0+rax*8]
mov eax, 16
sub rax, 1
add rax, rdx
mov esi, 16
mov edx, 0
div rsi
imul rax, rax, 16
mov rcx, rax
and rcx, -4096
mov rdx, rsp
sub rdx, rcx
.L2:
cmp rsp, rdx
je .L3
sub rsp, 4096
or QWORD PTR 4088[rsp], 0
jmp .L2
.L3:
mov rdx, rax
and edx, 4095
sub rsp, rdx
mov rdx, rax
and edx, 4095
test rdx, rdx
je .L4
and eax, 4095
sub rax, 8
add rax, rsp
or QWORD PTR [rax], 0
.L4:
mov rax, rsp
add rax, 7
shr rax, 3
sal rax, 3
mov QWORD PTR -152[rbp], rax
mov eax, DWORD PTR HUFv05_ABSOLUTEMAX_TABLELOG[rip]
add eax, 1
movsx rdx, eax
sub rdx, 1
mov QWORD PTR -144[rbp], rdx
movsx rdx, eax
mov r10, rdx
mov r11d, 0
movsx rdx, eax
mov r8, rdx
mov r9d, 0
cdqe
lea rdx, 0[0+rax*8]
mov eax, 16
sub rax, 1
add rax, rdx
mov esi, 16
mov edx, 0
div rsi
imul rax, rax, 16
mov rcx, rax
and rcx, -4096
mov rdx, rsp
sub rdx, rcx
.L5:
cmp rsp, rdx
je .L6
sub rsp, 4096
or QWORD PTR 4088[rsp], 0
jmp .L5
.L6:
mov rdx, rax
and edx, 4095
sub rsp, rdx
mov rdx, rax
and edx, 4095
test rdx, rdx
je .L7
and eax, 4095
sub rax, 8
add rax, rsp
or QWORD PTR [rax], 0
.L7:
mov rax, rsp
add rax, 7
shr rax, 3
sal rax, 3
mov QWORD PTR -136[rbp], rax
mov QWORD PTR -200[rbp], 0
mov QWORD PTR -192[rbp], 0
mov rax, QWORD PTR -216[rbp]
add rax, 8
mov QWORD PTR -128[rbp], rax
mov rax, QWORD PTR -128[rbp]
mov QWORD PTR -120[rbp], rax
mov edi, 0
call HUFv05_STATIC_ASSERT@PLT
mov eax, DWORD PTR HUFv05_MAX_SYMBOL_VALUE[rip]
lea esi, 1[rax]
mov r8, QWORD PTR -224[rbp]
lea rdi, -200[rbp]
lea rcx, -192[rbp]
mov rdx, QWORD PTR -136[rbp]
mov rax, QWORD PTR -152[rbp]
sub rsp, 8
push QWORD PTR -232[rbp]
mov r9, r8
mov r8, rdi
mov rdi, rax
call HUFv05_readStats@PLT
add rsp, 16
mov QWORD PTR -112[rbp], rax
mov rax, QWORD PTR -112[rbp]
mov rdi, rax
call HUFv05_isError@PLT
test rax, rax
je .L8
mov rax, QWORD PTR -112[rbp]
jmp .L9
.L8:
mov rax, QWORD PTR -216[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR -200[rbp]
cmp rdx, rax
jnb .L10
mov eax, DWORD PTR tableLog_tooLarge[rip]
mov edi, eax
call ERROR@PLT
jmp .L9
.L10:
mov rdx, QWORD PTR -200[rbp]
mov rax, QWORD PTR -216[rbp]
mov QWORD PTR [rax], rdx
mov QWORD PTR -176[rbp], 0
mov QWORD PTR -168[rbp], 1
jmp .L11
.L12:
mov rax, QWORD PTR -176[rbp]
mov QWORD PTR -88[rbp], rax
mov rax, QWORD PTR -136[rbp]
mov rdx, QWORD PTR -168[rbp]
mov rdx, QWORD PTR [rax+rdx*8]
mov rax, QWORD PTR -168[rbp]
sub eax, 1
mov ecx, eax
sal rdx, cl
mov rax, rdx
add QWORD PTR -176[rbp], rax
mov rax, QWORD PTR -136[rbp]
mov rdx, QWORD PTR -168[rbp]
mov rcx, QWORD PTR -88[rbp]
mov QWORD PTR [rax+rdx*8], rcx
add QWORD PTR -168[rbp], 1
.L11:
mov rax, QWORD PTR -200[rbp]
cmp QWORD PTR -168[rbp], rax
jbe .L12
mov QWORD PTR -168[rbp], 0
jmp .L13
.L16:
mov rax, QWORD PTR -152[rbp]
mov rdx, QWORD PTR -168[rbp]
mov rax, QWORD PTR [rax+rdx*8]
mov QWORD PTR -104[rbp], rax
mov rax, QWORD PTR -104[rbp]
mov edx, 1
mov ecx, eax
sal edx, cl
mov eax, edx
sar eax
cdqe
mov QWORD PTR -96[rbp], rax
mov rax, QWORD PTR -168[rbp]
mov QWORD PTR -72[rbp], rax
mov rax, QWORD PTR -200[rbp]
sub rax, QWORD PTR -104[rbp]
add rax, 1
mov QWORD PTR -80[rbp], rax
mov rax, QWORD PTR -136[rbp]
mov rdx, QWORD PTR -104[rbp]
mov rax, QWORD PTR [rax+rdx*8]
mov QWORD PTR -184[rbp], rax
jmp .L14
.L15:
mov rax, QWORD PTR -184[rbp]
sal rax, 4
mov rdx, rax
mov rax, QWORD PTR -120[rbp]
lea rcx, [rdx+rax]
mov rax, QWORD PTR -80[rbp]
mov rdx, QWORD PTR -72[rbp]
mov QWORD PTR [rcx], rax
mov QWORD PTR 8[rcx], rdx
add QWORD PTR -184[rbp], 1
.L14:
mov rax, QWORD PTR -136[rbp]
mov rdx, QWORD PTR -104[rbp]
mov rdx, QWORD PTR [rax+rdx*8]
mov rax, QWORD PTR -96[rbp]
add rax, rdx
cmp QWORD PTR -184[rbp], rax
jb .L15
mov rax, QWORD PTR -136[rbp]
mov rdx, QWORD PTR -104[rbp]
mov rdx, QWORD PTR [rax+rdx*8]
mov rax, QWORD PTR -96[rbp]
lea rcx, [rdx+rax]
mov rax, QWORD PTR -136[rbp]
mov rdx, QWORD PTR -104[rbp]
mov QWORD PTR [rax+rdx*8], rcx
add QWORD PTR -168[rbp], 1
.L13:
mov rax, QWORD PTR -192[rbp]
cmp QWORD PTR -168[rbp], rax
jb .L16
mov rax, QWORD PTR -112[rbp]
.L9:
mov rsp, rbx
mov rbx, QWORD PTR -56[rbp]
sub rbx, QWORD PTR fs:40
je .L18
call __stack_chk_fail@PLT
.L18:
lea rsp, -40[rbp]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size HUFv05_readDTableX2, .-HUFv05_readDTableX2
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_HUFv05_readDTableX2.c"
.option pic
.text
.comm HUFv05_ABSOLUTEMAX_TABLELOG,4,4
.comm HUFv05_MAX_SYMBOL_VALUE,4,4
.comm tableLog_tooLarge,4,4
.align 1
.globl HUFv05_readDTableX2
.type HUFv05_readDTableX2, @function
HUFv05_readDTableX2:
addi sp,sp,-256
sd ra,248(sp)
sd s0,240(sp)
sd s1,232(sp)
sd s2,224(sp)
sd s3,216(sp)
sd s4,208(sp)
sd s5,200(sp)
sd s6,192(sp)
sd s7,184(sp)
addi s0,sp,256
sd a0,-232(s0)
sd a1,-240(s0)
sd a2,-248(s0)
la a3,__stack_chk_guard
ld a3,0(a3)
sd a3,-88(s0)
mv a3,sp
mv s1,a3
la a3,HUFv05_MAX_SYMBOL_VALUE
lw a3,0(a3)
addiw a3,a3,1
sext.w a3,a3
mv a2,a3
addi a2,a2,-1
sd a2,-184(s0)
mv a2,a3
mv s6,a2
li s7,0
srli a2,s6,58
slli t4,s7,6
or t4,a2,t4
slli t3,s6,6
mv a2,a3
mv s4,a2
li s5,0
srli a2,s4,58
slli t2,s5,6
or t2,a2,t2
slli t1,s4,6
slli a3,a3,3
addi a3,a3,15
srli a3,a3,4
slli a3,a3,4
sub sp,sp,a3
mv a3,sp
addi a3,a3,7
srli a3,a3,3
slli a3,a3,3
sd a3,-176(s0)
la a3,HUFv05_ABSOLUTEMAX_TABLELOG
lw a3,0(a3)
addiw a3,a3,1
sext.w a3,a3
mv a2,a3
addi a2,a2,-1
sd a2,-168(s0)
mv a2,a3
mv s2,a2
li s3,0
srli a2,s2,58
slli a7,s3,6
or a7,a2,a7
slli a6,s2,6
mv a2,a3
mv t5,a2
li t6,0
srli a2,t5,58
slli a5,t6,6
or a5,a2,a5
slli a4,t5,6
mv a5,a3
slli a5,a5,3
addi a5,a5,15
srli a5,a5,4
slli a5,a5,4
sub sp,sp,a5
mv a5,sp
addi a5,a5,7
srli a5,a5,3
slli a5,a5,3
sd a5,-160(s0)
sd zero,-224(s0)
sd zero,-216(s0)
ld a5,-232(s0)
addi a5,a5,8
sd a5,-152(s0)
ld a5,-152(s0)
sd a5,-144(s0)
li a0,0
call HUFv05_STATIC_ASSERT@plt
la a5,HUFv05_MAX_SYMBOL_VALUE
lw a5,0(a5)
addiw a5,a5,1
sext.w a1,a5
addi a4,s0,-224
addi a3,s0,-216
ld a6,-248(s0)
ld a5,-240(s0)
ld a2,-160(s0)
ld a0,-176(s0)
call HUFv05_readStats@plt
sd a0,-136(s0)
ld a0,-136(s0)
call HUFv05_isError@plt
mv a5,a0
beqz a5,.L2
ld a5,-136(s0)
j .L3
.L2:
ld a5,-232(s0)
ld a4,0(a5)
ld a5,-224(s0)
bgeu a4,a5,.L4
la a5,tableLog_tooLarge
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
ld a4,-224(s0)
ld a5,-232(s0)
sd a4,0(a5)
sd zero,-200(s0)
li a5,1
sd a5,-192(s0)
j .L5
.L6:
ld a5,-200(s0)
sd a5,-112(s0)
ld a4,-160(s0)
ld a5,-192(s0)
slli a5,a5,3
add a5,a4,a5
ld a5,0(a5)
ld a4,-192(s0)
sext.w a4,a4
addiw a4,a4,-1
sext.w a4,a4
sll a5,a5,a4
ld a4,-200(s0)
add a5,a4,a5
sd a5,-200(s0)
ld a4,-160(s0)
ld a5,-192(s0)
slli a5,a5,3
add a5,a4,a5
ld a4,-112(s0)
sd a4,0(a5)
ld a5,-192(s0)
addi a5,a5,1
sd a5,-192(s0)
.L5:
ld a5,-224(s0)
ld a4,-192(s0)
bleu a4,a5,.L6
sd zero,-192(s0)
j .L7
.L10:
ld a4,-176(s0)
ld a5,-192(s0)
slli a5,a5,3
add a5,a4,a5
ld a5,0(a5)
sd a5,-128(s0)
ld a5,-128(s0)
sext.w a5,a5
li a4,1
sllw a5,a4,a5
sext.w a5,a5
sraiw a5,a5,1
sext.w a5,a5
sd a5,-120(s0)
ld a5,-192(s0)
sd a5,-96(s0)
ld a4,-224(s0)
ld a5,-128(s0)
sub a5,a4,a5
addi a5,a5,1
sd a5,-104(s0)
ld a4,-160(s0)
ld a5,-128(s0)
slli a5,a5,3
add a5,a4,a5
ld a5,0(a5)
sd a5,-208(s0)
j .L8
.L9:
ld a5,-208(s0)
slli a5,a5,4
ld a4,-144(s0)
add a5,a4,a5
ld a4,-104(s0)
sd a4,0(a5)
ld a4,-96(s0)
sd a4,8(a5)
ld a5,-208(s0)
addi a5,a5,1
sd a5,-208(s0)
.L8:
ld a4,-160(s0)
ld a5,-128(s0)
slli a5,a5,3
add a5,a4,a5
ld a4,0(a5)
ld a5,-120(s0)
add a5,a4,a5
ld a4,-208(s0)
bltu a4,a5,.L9
ld a4,-160(s0)
ld a5,-128(s0)
slli a5,a5,3
add a5,a4,a5
ld a4,0(a5)
ld a5,-120(s0)
add a4,a4,a5
ld a3,-160(s0)
ld a5,-128(s0)
slli a5,a5,3
add a5,a3,a5
sd a4,0(a5)
ld a5,-192(s0)
addi a5,a5,1
sd a5,-192(s0)
.L7:
ld a5,-216(s0)
ld a4,-192(s0)
bltu a4,a5,.L10
ld a5,-136(s0)
.L3:
mv sp,s1
mv a3,a5
la a5,__stack_chk_guard
ld a4,-88(s0)
ld a5,0(a5)
beq a4,a5,.L12
call __stack_chk_fail@plt
.L12:
mv a0,a3
addi sp,s0,-256
ld ra,248(sp)
ld s0,240(sp)
ld s1,232(sp)
ld s2,224(sp)
ld s3,216(sp)
ld s4,208(sp)
ld s5,200(sp)
ld s6,192(sp)
ld s7,184(sp)
addi sp,sp,256
jr ra
.size HUFv05_readDTableX2, .-HUFv05_readDTableX2
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZBUFFv05_createDCtx.c"
.intel_syntax noprefix
.text
.globl ZBUFFv05ds_init
.bss
.align 4
.type ZBUFFv05ds_init, @object
.size ZBUFFv05ds_init, 4
ZBUFFv05ds_init:
.zero 4
.text
.globl ZBUFFv05_createDCtx
.type ZBUFFv05_createDCtx, @function
ZBUFFv05_createDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov edi, 8
call malloc@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
jne .L2
mov eax, 0
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
mov edx, 8
mov esi, 0
mov rdi, rax
call memset@PLT
mov eax, 0
call ZSTDv05_createDCtx@PLT
mov rdx, QWORD PTR -8[rbp]
mov DWORD PTR 4[rdx], eax
mov edx, DWORD PTR ZBUFFv05ds_init[rip]
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -8[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv05_createDCtx, .-ZBUFFv05_createDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZBUFFv05_createDCtx.c"
.option pic
.text
.comm ZBUFFv05ds_init,4,4
.align 1
.globl ZBUFFv05_createDCtx
.type ZBUFFv05_createDCtx, @function
ZBUFFv05_createDCtx:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
li a0,8
call malloc@plt
mv a5,a0
sd a5,-24(s0)
ld a5,-24(s0)
bnez a5,.L2
li a5,0
j .L3
.L2:
li a2,8
li a1,0
ld a0,-24(s0)
call memset@plt
call ZSTDv05_createDCtx@plt
mv a5,a0
mv a4,a5
ld a5,-24(s0)
sw a4,4(a5)
la a5,ZBUFFv05ds_init
lw a4,0(a5)
ld a5,-24(s0)
sw a4,0(a5)
ld a5,-24(s0)
.L3:
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZBUFFv05_createDCtx, .-ZBUFFv05_createDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZBUFFv05_decompressInit.c"
.intel_syntax noprefix
.text
.globl ZBUFFv05_decompressInit
.type ZBUFFv05_decompressInit, @function
ZBUFFv05_decompressInit:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov edx, 0
mov esi, 0
mov rdi, rax
call ZBUFFv05_decompressInitDictionary@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv05_decompressInit, .-ZBUFFv05_decompressInit
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZBUFFv05_decompressInit.c"
.option pic
.text
.align 1
.globl ZBUFFv05_decompressInit
.type ZBUFFv05_decompressInit, @function
ZBUFFv05_decompressInit:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
li a2,0
li a1,0
ld a0,-24(s0)
call ZBUFFv05_decompressInitDictionary@plt
mv a5,a0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZBUFFv05_decompressInit, .-ZBUFFv05_decompressInit
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZBUFFv05_decompressInitDictionary.c"
.intel_syntax noprefix
.text
.globl ZBUFFv05ds_readHeader
.bss
.align 4
.type ZBUFFv05ds_readHeader, @object
.size ZBUFFv05ds_readHeader, 4
ZBUFFv05ds_readHeader:
.zero 4
.text
.globl ZBUFFv05_decompressInitDictionary
.type ZBUFFv05_decompressInitDictionary, @function
ZBUFFv05_decompressInitDictionary:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov edx, DWORD PTR ZBUFFv05ds_readHeader[rip]
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR 40[rax], edx
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 8[rax], 0
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 8[rax]
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 16[rax], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 16[rax]
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 24[rax], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 24[rax]
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 32[rax], rdx
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
mov rdx, QWORD PTR -24[rbp]
mov rcx, QWORD PTR -16[rbp]
mov rsi, rcx
mov edi, eax
call ZSTDv05_decompressBegin_usingDict@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv05_decompressInitDictionary, .-ZBUFFv05_decompressInitDictionary
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZBUFFv05_decompressInitDictionary.c"
.option pic
.text
.comm ZBUFFv05ds_readHeader,4,4
.align 1
.globl ZBUFFv05_decompressInitDictionary
.type ZBUFFv05_decompressInitDictionary, @function
ZBUFFv05_decompressInitDictionary:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
la a5,ZBUFFv05ds_readHeader
lw a4,0(a5)
ld a5,-24(s0)
sw a4,40(a5)
ld a5,-24(s0)
sd zero,8(a5)
ld a5,-24(s0)
ld a4,8(a5)
ld a5,-24(s0)
sd a4,16(a5)
ld a5,-24(s0)
ld a4,16(a5)
ld a5,-24(s0)
sd a4,24(a5)
ld a5,-24(s0)
ld a4,24(a5)
ld a5,-24(s0)
sd a4,32(a5)
ld a5,-24(s0)
lw a5,0(a5)
ld a2,-40(s0)
ld a1,-32(s0)
mv a0,a5
call ZSTDv05_decompressBegin_usingDict@plt
mv a5,a0
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size ZBUFFv05_decompressInitDictionary, .-ZBUFFv05_decompressInitDictionary
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZBUFFv05_freeDCtx.c"
.intel_syntax noprefix
.text
.globl ZBUFFv05_freeDCtx
.type ZBUFFv05_freeDCtx, @function
ZBUFFv05_freeDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
cmp QWORD PTR -8[rbp], 0
jne .L2
mov eax, 0
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 16[rax]
mov edi, eax
call ZSTDv05_freeDCtx@PLT
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
mov rdi, rax
call free@PLT
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR [rax]
mov rdi, rax
call free@PLT
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call free@PLT
mov eax, 0
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv05_freeDCtx, .-ZBUFFv05_freeDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZBUFFv05_freeDCtx.c"
.option pic
.text
.align 1
.globl ZBUFFv05_freeDCtx
.type ZBUFFv05_freeDCtx, @function
ZBUFFv05_freeDCtx:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a5,-24(s0)
bnez a5,.L2
li a5,0
j .L3
.L2:
ld a5,-24(s0)
lw a5,16(a5)
mv a0,a5
call ZSTDv05_freeDCtx@plt
ld a5,-24(s0)
ld a5,8(a5)
mv a0,a5
call free@plt
ld a5,-24(s0)
ld a5,0(a5)
mv a0,a5
call free@plt
ld a0,-24(s0)
call free@plt
li a5,0
.L3:
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZBUFFv05_freeDCtx, .-ZBUFFv05_freeDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZBUFFv05_getErrorName.c"
.intel_syntax noprefix
.text
.globl ZBUFFv05_getErrorName
.type ZBUFFv05_getErrorName, @function
ZBUFFv05_getErrorName:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ERR_getErrorName@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv05_getErrorName, .-ZBUFFv05_getErrorName
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZBUFFv05_getErrorName.c"
.option pic
.text
.align 1
.globl ZBUFFv05_getErrorName
.type ZBUFFv05_getErrorName, @function
ZBUFFv05_getErrorName:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call ERR_getErrorName@plt
mv a5,a0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZBUFFv05_getErrorName, .-ZBUFFv05_getErrorName
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZBUFFv05_isError.c"
.intel_syntax noprefix
.text
.globl ZBUFFv05_isError
.type ZBUFFv05_isError, @function
ZBUFFv05_isError:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ERR_isError@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv05_isError, .-ZBUFFv05_isError
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZBUFFv05_isError.c"
.option pic
.text
.align 1
.globl ZBUFFv05_isError
.type ZBUFFv05_isError, @function
ZBUFFv05_isError:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a0,-24(s0)
call ERR_isError@plt
mv a5,a0
sext.w a5,a5
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZBUFFv05_isError, .-ZBUFFv05_isError
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZBUFFv05_limitCopy.c"
.intel_syntax noprefix
.text
.type ZBUFFv05_limitCopy, @function
ZBUFFv05_limitCopy:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov QWORD PTR -48[rbp], rcx
mov rdx, QWORD PTR -48[rbp]
mov rax, QWORD PTR -32[rbp]
mov rsi, rdx
mov rdi, rax
call MIN@PLT
mov QWORD PTR -8[rbp], rax
mov rdx, QWORD PTR -8[rbp]
mov rcx, QWORD PTR -40[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv05_limitCopy, .-ZBUFFv05_limitCopy
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZBUFFv05_limitCopy.c"
.option pic
.text
.align 1
.type ZBUFFv05_limitCopy, @function
ZBUFFv05_limitCopy:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
sd a3,-64(s0)
ld a1,-64(s0)
ld a0,-48(s0)
call MIN@plt
sd a0,-24(s0)
ld a2,-24(s0)
ld a1,-56(s0)
ld a0,-40(s0)
call memcpy@plt
ld a5,-24(s0)
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZBUFFv05_limitCopy, .-ZBUFFv05_limitCopy
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZBUFFv05_recommendedDInSize.c"
.intel_syntax noprefix
.text
.globl BLOCKSIZE
.bss
.align 8
.type BLOCKSIZE, @object
.size BLOCKSIZE, 8
BLOCKSIZE:
.zero 8
.globl ZBUFFv05_blockHeaderSize
.align 8
.type ZBUFFv05_blockHeaderSize, @object
.size ZBUFFv05_blockHeaderSize, 8
ZBUFFv05_blockHeaderSize:
.zero 8
.text
.globl ZBUFFv05_recommendedDInSize
.type ZBUFFv05_recommendedDInSize, @function
ZBUFFv05_recommendedDInSize:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov rdx, QWORD PTR BLOCKSIZE[rip]
mov rax, QWORD PTR ZBUFFv05_blockHeaderSize[rip]
add rax, rdx
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv05_recommendedDInSize, .-ZBUFFv05_recommendedDInSize
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZBUFFv05_recommendedDInSize.c"
.option pic
.text
.comm BLOCKSIZE,8,8
.comm ZBUFFv05_blockHeaderSize,8,8
.align 1
.globl ZBUFFv05_recommendedDInSize
.type ZBUFFv05_recommendedDInSize, @function
ZBUFFv05_recommendedDInSize:
addi sp,sp,-16
sd s0,8(sp)
addi s0,sp,16
la a5,BLOCKSIZE
ld a4,0(a5)
la a5,ZBUFFv05_blockHeaderSize
ld a5,0(a5)
add a5,a4,a5
mv a0,a5
ld s0,8(sp)
addi sp,sp,16
jr ra
.size ZBUFFv05_recommendedDInSize, .-ZBUFFv05_recommendedDInSize
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZBUFFv05_recommendedDOutSize.c"
.intel_syntax noprefix
.text
.globl BLOCKSIZE
.bss
.align 8
.type BLOCKSIZE, @object
.size BLOCKSIZE, 8
BLOCKSIZE:
.zero 8
.text
.globl ZBUFFv05_recommendedDOutSize
.type ZBUFFv05_recommendedDOutSize, @function
ZBUFFv05_recommendedDOutSize:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov rax, QWORD PTR BLOCKSIZE[rip]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZBUFFv05_recommendedDOutSize, .-ZBUFFv05_recommendedDOutSize
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZBUFFv05_recommendedDOutSize.c"
.option pic
.text
.comm BLOCKSIZE,8,8
.align 1
.globl ZBUFFv05_recommendedDOutSize
.type ZBUFFv05_recommendedDOutSize, @function
ZBUFFv05_recommendedDOutSize:
addi sp,sp,-16
sd s0,8(sp)
addi s0,sp,16
la a5,BLOCKSIZE
ld a5,0(a5)
mv a0,a5
ld s0,8(sp)
addi sp,sp,16
jr ra
.size ZBUFFv05_recommendedDOutSize, .-ZBUFFv05_recommendedDOutSize
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTD_errorFrameSizeInfoLegacy.c"
.intel_syntax noprefix
.text
.globl ZSTD_CONTENTSIZE_ERROR
.bss
.align 8
.type ZSTD_CONTENTSIZE_ERROR, @object
.size ZSTD_CONTENTSIZE_ERROR, 8
ZSTD_CONTENTSIZE_ERROR:
.zero 8
.text
.type ZSTD_errorFrameSizeInfoLegacy, @function
ZSTD_errorFrameSizeInfoLegacy:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR -24[rbp]
mov QWORD PTR [rax], rdx
mov rdx, QWORD PTR ZSTD_CONTENTSIZE_ERROR[rip]
mov rax, QWORD PTR -16[rbp]
mov QWORD PTR [rax], rdx
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTD_errorFrameSizeInfoLegacy, .-ZSTD_errorFrameSizeInfoLegacy
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTD_errorFrameSizeInfoLegacy.c"
.option pic
.text
.comm ZSTD_CONTENTSIZE_ERROR,8,8
.align 1
.type ZSTD_errorFrameSizeInfoLegacy, @function
ZSTD_errorFrameSizeInfoLegacy:
addi sp,sp,-48
sd s0,40(sp)
addi s0,sp,48
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
ld a5,-24(s0)
ld a4,-40(s0)
sd a4,0(a5)
la a5,ZSTD_CONTENTSIZE_ERROR
ld a4,0(a5)
ld a5,-32(s0)
sd a4,0(a5)
nop
ld s0,40(sp)
addi sp,sp,48
jr ra
.size ZSTD_errorFrameSizeInfoLegacy, .-ZSTD_errorFrameSizeInfoLegacy
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_checkContinuity.c"
.intel_syntax noprefix
.text
.type ZSTDv05_checkContinuity, @function
ZSTDv05_checkContinuity:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR [rax]
cmp QWORD PTR -16[rbp], rax
je .L3
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 8[rax], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR -8[rbp]
mov rcx, QWORD PTR 24[rax]
mov rax, rdx
sub rax, rcx
neg rax
mov rdx, rax
mov rax, QWORD PTR -16[rbp]
add rdx, rax
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 16[rax], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR -16[rbp]
mov QWORD PTR 24[rax], rdx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR -16[rbp]
mov QWORD PTR [rax], rdx
.L3:
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_checkContinuity, .-ZSTDv05_checkContinuity
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_checkContinuity.c"
.option pic
.text
.align 1
.type ZSTDv05_checkContinuity, @function
ZSTDv05_checkContinuity:
addi sp,sp,-32
sd s0,24(sp)
addi s0,sp,32
sd a0,-24(s0)
sd a1,-32(s0)
ld a5,-24(s0)
ld a5,0(a5)
ld a4,-32(s0)
beq a4,a5,.L3
ld a5,-24(s0)
ld a4,0(a5)
ld a5,-24(s0)
sd a4,8(a5)
ld a5,-24(s0)
ld a4,0(a5)
ld a5,-24(s0)
ld a5,24(a5)
sub a5,a4,a5
neg a5,a5
ld a4,-32(s0)
add a4,a4,a5
ld a5,-24(s0)
sd a4,16(a5)
ld a5,-24(s0)
ld a4,-32(s0)
sd a4,24(a5)
ld a5,-24(s0)
ld a4,-32(s0)
sd a4,0(a5)
.L3:
nop
ld s0,24(sp)
addi sp,sp,32
jr ra
.size ZSTDv05_checkContinuity, .-ZSTDv05_checkContinuity
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_copy4.c"
.intel_syntax noprefix
.text
.type ZSTDv05_copy4, @function
ZSTDv05_copy4:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov rcx, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
mov edx, 4
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_copy4, .-ZSTDv05_copy4
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_copy4.c"
.option pic
.text
.align 1
.type ZSTDv05_copy4, @function
ZSTDv05_copy4:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
sd a1,-32(s0)
li a2,4
ld a1,-32(s0)
ld a0,-24(s0)
call memcpy@plt
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZSTDv05_copy4, .-ZSTDv05_copy4
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_copy8.c"
.intel_syntax noprefix
.text
.type ZSTDv05_copy8, @function
ZSTDv05_copy8:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov rcx, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
mov edx, 8
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_copy8, .-ZSTDv05_copy8
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_copy8.c"
.option pic
.text
.align 1
.type ZSTDv05_copy8, @function
ZSTDv05_copy8:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
sd a1,-32(s0)
li a2,8
ld a1,-32(s0)
ld a0,-24(s0)
call memcpy@plt
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZSTDv05_copy8, .-ZSTDv05_copy8
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_copyDCtx.c"
.intel_syntax noprefix
.text
.globl BLOCKSIZE
.bss
.align 8
.type BLOCKSIZE, @object
.size BLOCKSIZE, 8
BLOCKSIZE:
.zero 8
.globl WILDCOPY_OVERLENGTH
.align 8
.type WILDCOPY_OVERLENGTH, @object
.size WILDCOPY_OVERLENGTH, 8
WILDCOPY_OVERLENGTH:
.zero 8
.globl ZSTDv05_frameHeaderSize_max
.align 8
.type ZSTDv05_frameHeaderSize_max, @object
.size ZSTDv05_frameHeaderSize_max, 8
ZSTDv05_frameHeaderSize_max:
.zero 8
.text
.globl ZSTDv05_copyDCtx
.type ZSTDv05_copyDCtx, @function
ZSTDv05_copyDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov rdx, QWORD PTR BLOCKSIZE[rip]
mov rax, QWORD PTR WILDCOPY_OVERLENGTH[rip]
add rdx, rax
mov rax, QWORD PTR ZSTDv05_frameHeaderSize_max[rip]
add rax, rdx
mov rdx, rax
mov eax, 4
sub rax, rdx
mov rdx, rax
mov rcx, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_copyDCtx, .-ZSTDv05_copyDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_copyDCtx.c"
.option pic
.text
.comm BLOCKSIZE,8,8
.comm WILDCOPY_OVERLENGTH,8,8
.comm ZSTDv05_frameHeaderSize_max,8,8
.align 1
.globl ZSTDv05_copyDCtx
.type ZSTDv05_copyDCtx, @function
ZSTDv05_copyDCtx:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
sd a1,-32(s0)
la a5,BLOCKSIZE
ld a4,0(a5)
la a5,WILDCOPY_OVERLENGTH
ld a5,0(a5)
add a4,a4,a5
la a5,ZSTDv05_frameHeaderSize_max
ld a5,0(a5)
add a5,a4,a5
mv a4,a5
li a5,4
sub a5,a5,a4
mv a2,a5
ld a1,-32(s0)
ld a0,-24(s0)
call memcpy@plt
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZSTDv05_copyDCtx, .-ZSTDv05_copyDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_copyRawBlock.c"
.intel_syntax noprefix
.text
.globl dstSize_tooSmall
.bss
.align 4
.type dstSize_tooSmall, @object
.size dstSize_tooSmall, 4
dstSize_tooSmall:
.zero 4
.text
.type ZSTDv05_copyRawBlock, @function
ZSTDv05_copyRawBlock:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov QWORD PTR -32[rbp], rcx
cmp QWORD PTR -8[rbp], 0
jne .L2
mov eax, DWORD PTR dstSize_tooSmall[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L2:
mov rax, QWORD PTR -32[rbp]
cmp rax, QWORD PTR -16[rbp]
jbe .L4
mov eax, DWORD PTR dstSize_tooSmall[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
mov rdx, QWORD PTR -32[rbp]
mov rcx, QWORD PTR -24[rbp]
mov rax, QWORD PTR -8[rbp]
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
mov rax, QWORD PTR -32[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_copyRawBlock, .-ZSTDv05_copyRawBlock
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_copyRawBlock.c"
.option pic
.text
.comm dstSize_tooSmall,4,4
.align 1
.type ZSTDv05_copyRawBlock, @function
ZSTDv05_copyRawBlock:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
sd a3,-48(s0)
ld a5,-24(s0)
bnez a5,.L2
la a5,dstSize_tooSmall
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
ld a4,-48(s0)
ld a5,-32(s0)
bleu a4,a5,.L4
la a5,dstSize_tooSmall
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
ld a2,-48(s0)
ld a1,-40(s0)
ld a0,-24(s0)
call memcpy@plt
ld a5,-48(s0)
.L3:
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size ZSTDv05_copyRawBlock, .-ZSTDv05_copyRawBlock
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_createDCtx.c"
.intel_syntax noprefix
.text
.globl ZSTDv05_createDCtx
.type ZSTDv05_createDCtx, @function
ZSTDv05_createDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov edi, 4
call malloc@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
jne .L2
mov eax, 0
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ZSTDv05_decompressBegin@PLT
mov rax, QWORD PTR -8[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_createDCtx, .-ZSTDv05_createDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_createDCtx.c"
.option pic
.text
.align 1
.globl ZSTDv05_createDCtx
.type ZSTDv05_createDCtx, @function
ZSTDv05_createDCtx:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
li a0,4
call malloc@plt
mv a5,a0
sd a5,-24(s0)
ld a5,-24(s0)
bnez a5,.L2
li a5,0
j .L3
.L2:
ld a0,-24(s0)
call ZSTDv05_decompressBegin@plt
ld a5,-24(s0)
.L3:
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ZSTDv05_createDCtx, .-ZSTDv05_createDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_decodeFrameHeader_Part1.c"
.intel_syntax noprefix
.text
.globl ZSTDv05_MAGICNUMBER
.bss
.align 8
.type ZSTDv05_MAGICNUMBER, @object
.size ZSTDv05_MAGICNUMBER, 8
ZSTDv05_MAGICNUMBER:
.zero 8
.globl ZSTDv05_frameHeaderSize_min
.align 8
.type ZSTDv05_frameHeaderSize_min, @object
.size ZSTDv05_frameHeaderSize_min, 8
ZSTDv05_frameHeaderSize_min:
.zero 8
.globl prefix_unknown
.align 4
.type prefix_unknown, @object
.size prefix_unknown, 4
prefix_unknown:
.zero 4
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.type ZSTDv05_decodeFrameHeader_Part1, @function
ZSTDv05_decodeFrameHeader_Part1:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov rax, QWORD PTR ZSTDv05_frameHeaderSize_min[rip]
cmp QWORD PTR -40[rbp], rax
je .L2
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L2:
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call MEM_readLE32@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR ZSTDv05_MAGICNUMBER[rip]
cmp QWORD PTR -8[rbp], rax
je .L4
mov eax, DWORD PTR prefix_unknown[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
mov rdx, QWORD PTR ZSTDv05_frameHeaderSize_min[rip]
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR [rax]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_decodeFrameHeader_Part1, .-ZSTDv05_decodeFrameHeader_Part1
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_decodeFrameHeader_Part1.c"
.option pic
.text
.comm ZSTDv05_MAGICNUMBER,8,8
.comm ZSTDv05_frameHeaderSize_min,8,8
.comm prefix_unknown,4,4
.comm srcSize_wrong,4,4
.align 1
.type ZSTDv05_decodeFrameHeader_Part1, @function
ZSTDv05_decodeFrameHeader_Part1:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
la a5,ZSTDv05_frameHeaderSize_min
ld a5,0(a5)
ld a4,-56(s0)
beq a4,a5,.L2
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
ld a0,-48(s0)
call MEM_readLE32@plt
sd a0,-24(s0)
la a5,ZSTDv05_MAGICNUMBER
ld a5,0(a5)
ld a4,-24(s0)
beq a4,a5,.L4
la a5,prefix_unknown
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
la a5,ZSTDv05_frameHeaderSize_min
ld a4,0(a5)
ld a5,-40(s0)
sd a4,0(a5)
ld a5,-40(s0)
ld a5,0(a5)
.L3:
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZSTDv05_decodeFrameHeader_Part1, .-ZSTDv05_decodeFrameHeader_Part1
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_decodeFrameHeader_Part2.c"
.intel_syntax noprefix
.text
.globl frameParameter_unsupported
.bss
.align 4
.type frameParameter_unsupported, @object
.size frameParameter_unsupported, 4
frameParameter_unsupported:
.zero 4
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.type ZSTDv05_decodeFrameHeader_Part2, @function
ZSTDv05_decodeFrameHeader_Part2:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR [rax]
cmp QWORD PTR -40[rbp], rax
je .L2
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L2:
mov rax, QWORD PTR -24[rbp]
lea rcx, 8[rax]
mov rdx, QWORD PTR -40[rbp]
mov rax, QWORD PTR -32[rbp]
mov rsi, rax
mov rdi, rcx
call ZSTDv05_getFrameParams@PLT
mov QWORD PTR -8[rbp], rax
mov eax, 0
call MEM_32bits@PLT
test rax, rax
je .L4
mov rax, QWORD PTR -24[rbp]
mov eax, DWORD PTR 8[rax]
cmp eax, 25
jle .L4
mov eax, DWORD PTR frameParameter_unsupported[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
mov rax, QWORD PTR -8[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_decodeFrameHeader_Part2, .-ZSTDv05_decodeFrameHeader_Part2
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_decodeFrameHeader_Part2.c"
.option pic
.text
.comm frameParameter_unsupported,4,4
.comm srcSize_wrong,4,4
.align 1
.type ZSTDv05_decodeFrameHeader_Part2, @function
ZSTDv05_decodeFrameHeader_Part2:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
ld a5,-40(s0)
ld a5,0(a5)
ld a4,-56(s0)
beq a4,a5,.L2
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
ld a5,-40(s0)
addi a5,a5,8
ld a2,-56(s0)
ld a1,-48(s0)
mv a0,a5
call ZSTDv05_getFrameParams@plt
sd a0,-24(s0)
call MEM_32bits@plt
mv a5,a0
beqz a5,.L4
ld a5,-40(s0)
lw a5,8(a5)
mv a4,a5
li a5,25
ble a4,a5,.L4
la a5,frameParameter_unsupported
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
ld a5,-24(s0)
.L3:
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZSTDv05_decodeFrameHeader_Part2, .-ZSTDv05_decodeFrameHeader_Part2
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_decodeSeqHeaders.c"
.intel_syntax noprefix
.text
.globl GENERIC
.bss
.align 4
.type GENERIC, @object
.size GENERIC, 4
GENERIC:
.zero 4
.globl LLFSEv05Log
.align 4
.type LLFSEv05Log, @object
.size LLFSEv05Log, 4
LLFSEv05Log:
.zero 4
.globl LLbits
.align 4
.type LLbits, @object
.size LLbits, 4
LLbits:
.zero 4
.globl MIN_SEQUENCES_SIZE
.align 8
.type MIN_SEQUENCES_SIZE, @object
.size MIN_SEQUENCES_SIZE, 8
MIN_SEQUENCES_SIZE:
.zero 8
.globl MLFSEv05Log
.align 4
.type MLFSEv05Log, @object
.size MLFSEv05Log, 4
MLFSEv05Log:
.zero 4
.globl MLbits
.align 4
.type MLbits, @object
.size MLbits, 4
MLbits:
.zero 4
.globl MaxLL
.align 4
.type MaxLL, @object
.size MaxLL, 4
MaxLL:
.zero 4
.globl MaxML
.align 4
.type MaxML, @object
.size MaxML, 4
MaxML:
.zero 4
.globl MaxOff
.align 4
.type MaxOff, @object
.size MaxOff, 4
MaxOff:
.zero 4
.globl OffFSEv05Log
.align 4
.type OffFSEv05Log, @object
.size OffFSEv05Log, 4
OffFSEv05Log:
.zero 4
.globl Offbits
.align 4
.type Offbits, @object
.size Offbits, 4
Offbits:
.zero 4
.globl corruption_detected
.align 4
.type corruption_detected, @object
.size corruption_detected, 4
corruption_detected:
.zero 4
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.type ZSTDv05_decodeSeqHeaders, @function
ZSTDv05_decodeSeqHeaders:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push r13
push r12
push rbx
sub rsp, 168
.cfi_offset 13, -24
.cfi_offset 12, -32
.cfi_offset 3, -40
mov QWORD PTR -136[rbp], rdi
mov QWORD PTR -144[rbp], rsi
mov QWORD PTR -152[rbp], rdx
mov QWORD PTR -160[rbp], rcx
mov QWORD PTR -168[rbp], r8
mov QWORD PTR -176[rbp], r9
mov rax, QWORD PTR 16[rbp]
mov QWORD PTR -184[rbp], rax
mov rax, QWORD PTR fs:40
mov QWORD PTR -40[rbp], rax
xor eax, eax
mov rax, QWORD PTR -184[rbp]
mov QWORD PTR -80[rbp], rax
mov rax, QWORD PTR -80[rbp]
mov QWORD PTR -96[rbp], rax
mov rax, QWORD PTR 24[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -80[rbp]
add rax, rdx
mov QWORD PTR -72[rbp], rax
mov rax, QWORD PTR MIN_SEQUENCES_SIZE[rip]
cmp QWORD PTR 24[rbp], rax
jnb .L2
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L44
.L2:
mov rax, QWORD PTR -96[rbp]
lea rdx, 4[rax]
mov QWORD PTR -96[rbp], rdx
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -136[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -136[rbp]
mov eax, DWORD PTR [rax]
test eax, eax
jne .L4
mov eax, 1
jmp .L44
.L4:
mov rax, QWORD PTR -136[rbp]
mov eax, DWORD PTR [rax]
cmp eax, 127
jle .L5
mov rax, QWORD PTR -96[rbp]
cmp rax, QWORD PTR -72[rbp]
jb .L6
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L44
.L6:
mov rax, QWORD PTR -136[rbp]
mov eax, DWORD PTR [rax]
add eax, -128
sal eax, 8
mov ecx, eax
mov rax, QWORD PTR -96[rbp]
lea rdx, 4[rax]
mov QWORD PTR -96[rbp], rdx
mov eax, DWORD PTR [rax]
lea edx, [rcx+rax]
mov rax, QWORD PTR -136[rbp]
mov DWORD PTR [rax], edx
.L5:
mov rax, QWORD PTR -96[rbp]
cmp rax, QWORD PTR -72[rbp]
jb .L7
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L44
.L7:
mov rax, QWORD PTR -96[rbp]
mov eax, DWORD PTR [rax]
sar eax, 6
mov DWORD PTR -108[rbp], eax
mov rax, QWORD PTR -96[rbp]
mov eax, DWORD PTR [rax]
sar eax, 4
and eax, 3
mov DWORD PTR -104[rbp], eax
mov rax, QWORD PTR -96[rbp]
mov eax, DWORD PTR [rax]
sar eax, 2
and eax, 3
mov DWORD PTR -100[rbp], eax
mov rax, QWORD PTR -96[rbp]
mov eax, DWORD PTR [rax]
and eax, 2
test eax, eax
je .L8
mov rax, QWORD PTR -96[rbp]
add rax, 12
cmp QWORD PTR -72[rbp], rax
jnb .L9
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L44
.L9:
mov rax, QWORD PTR -96[rbp]
add rax, 8
mov eax, DWORD PTR [rax]
cdqe
mov QWORD PTR -88[rbp], rax
mov rax, QWORD PTR -96[rbp]
add rax, 4
mov eax, DWORD PTR [rax]
sal eax, 8
cdqe
add QWORD PTR -88[rbp], rax
add QWORD PTR -96[rbp], 12
jmp .L10
.L8:
mov rax, QWORD PTR -96[rbp]
add rax, 8
cmp QWORD PTR -72[rbp], rax
jnb .L11
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L44
.L11:
mov rax, QWORD PTR -96[rbp]
add rax, 4
mov eax, DWORD PTR [rax]
cdqe
mov QWORD PTR -88[rbp], rax
mov rax, QWORD PTR -96[rbp]
mov eax, DWORD PTR [rax]
sal eax, 8
cdqe
and eax, 256
add QWORD PTR -88[rbp], rax
add QWORD PTR -96[rbp], 8
.L10:
mov rax, QWORD PTR -144[rbp]
mov rdx, QWORD PTR -96[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -88[rbp]
sal rax, 2
add QWORD PTR -96[rbp], rax
mov rax, QWORD PTR -152[rbp]
mov rdx, QWORD PTR -88[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -72[rbp]
sub rax, 12
cmp QWORD PTR -96[rbp], rax
jbe .L12
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L44
.L12:
mov rax, rsp
mov rbx, rax
mov eax, DWORD PTR MaxML[rip]
add eax, 1
mov edx, eax
sub rdx, 1
mov QWORD PTR -64[rbp], rdx
mov edx, eax
mov r12, rdx
mov r13d, 0
mov edx, eax
mov r10, rdx
mov r11d, 0
mov eax, eax
lea rdx, 0[0+rax*4]
mov eax, 16
sub rax, 1
add rax, rdx
mov esi, 16
mov edx, 0
div rsi
imul rax, rax, 16
mov rcx, rax
and rcx, -4096
mov rdx, rsp
sub rdx, rcx
.L13:
cmp rsp, rdx
je .L14
sub rsp, 4096
or QWORD PTR 4088[rsp], 0
jmp .L13
.L14:
mov rdx, rax
and edx, 4095
sub rsp, rdx
mov rdx, rax
and edx, 4095
test rdx, rdx
je .L15
and eax, 4095
sub rax, 8
add rax, rsp
or QWORD PTR [rax], 0
.L15:
mov rax, rsp
add rax, 3
shr rax, 2
sal rax, 2
mov QWORD PTR -56[rbp], rax
cmp DWORD PTR -108[rbp], 130
je .L16
cmp DWORD PTR -108[rbp], 130
jg .L17
cmp DWORD PTR -108[rbp], 128
je .L18
cmp DWORD PTR -108[rbp], 129
jne .L17
mov DWORD PTR -124[rbp], 0
mov rax, QWORD PTR -96[rbp]
lea rdx, 4[rax]
mov QWORD PTR -96[rbp], rdx
mov eax, DWORD PTR [rax]
mov edx, eax
mov rax, QWORD PTR -160[rbp]
mov esi, edx
mov rdi, rax
call FSEv05_buildDTable_rle@PLT
jmp .L19
.L16:
mov eax, DWORD PTR LLbits[rip]
mov DWORD PTR -124[rbp], eax
mov edx, DWORD PTR LLbits[rip]
mov rax, QWORD PTR -160[rbp]
mov esi, edx
mov rdi, rax
call FSEv05_buildDTable_raw@PLT
jmp .L19
.L18:
cmp DWORD PTR 32[rbp], 0
jne .L46
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L17:
mov eax, DWORD PTR MaxLL[rip]
mov DWORD PTR -112[rbp], eax
mov rax, QWORD PTR -72[rbp]
sub rax, QWORD PTR -96[rbp]
sar rax, 2
mov edi, eax
mov rcx, QWORD PTR -96[rbp]
lea rdx, -124[rbp]
lea rsi, -112[rbp]
mov rax, QWORD PTR -56[rbp]
mov r8d, edi
mov rdi, rax
call FSEv05_readNCount@PLT
mov QWORD PTR -48[rbp], rax
mov rax, QWORD PTR -48[rbp]
mov rdi, rax
call FSEv05_isError@PLT
test eax, eax
je .L22
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L22:
mov edx, DWORD PTR -124[rbp]
mov eax, DWORD PTR LLFSEv05Log[rip]
cmp edx, eax
jbe .L24
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L24:
mov rax, QWORD PTR -48[rbp]
sal rax, 2
add QWORD PTR -96[rbp], rax
mov ecx, DWORD PTR -124[rbp]
mov edx, DWORD PTR -112[rbp]
mov rsi, QWORD PTR -56[rbp]
mov rax, QWORD PTR -160[rbp]
mov rdi, rax
call FSEv05_buildDTable@PLT
jmp .L19
.L46:
nop
.L19:
cmp DWORD PTR -104[rbp], 130
je .L25
cmp DWORD PTR -104[rbp], 130
jg .L26
cmp DWORD PTR -104[rbp], 128
je .L27
cmp DWORD PTR -104[rbp], 129
jne .L26
mov DWORD PTR -120[rbp], 0
mov rax, QWORD PTR -72[rbp]
sub rax, 8
cmp QWORD PTR -96[rbp], rax
jbe .L28
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L28:
mov rax, QWORD PTR -96[rbp]
lea rdx, 4[rax]
mov QWORD PTR -96[rbp], rdx
mov eax, DWORD PTR [rax]
mov edx, eax
mov eax, DWORD PTR MaxOff[rip]
and edx, eax
mov rax, QWORD PTR -176[rbp]
mov esi, edx
mov rdi, rax
call FSEv05_buildDTable_rle@PLT
jmp .L29
.L25:
mov eax, DWORD PTR Offbits[rip]
mov DWORD PTR -120[rbp], eax
mov edx, DWORD PTR Offbits[rip]
mov rax, QWORD PTR -176[rbp]
mov esi, edx
mov rdi, rax
call FSEv05_buildDTable_raw@PLT
jmp .L29
.L27:
cmp DWORD PTR 32[rbp], 0
jne .L47
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L26:
mov eax, DWORD PTR MaxOff[rip]
mov DWORD PTR -112[rbp], eax
mov rax, QWORD PTR -72[rbp]
sub rax, QWORD PTR -96[rbp]
sar rax, 2
mov edi, eax
mov rcx, QWORD PTR -96[rbp]
lea rdx, -120[rbp]
lea rsi, -112[rbp]
mov rax, QWORD PTR -56[rbp]
mov r8d, edi
mov rdi, rax
call FSEv05_readNCount@PLT
mov QWORD PTR -48[rbp], rax
mov rax, QWORD PTR -48[rbp]
mov rdi, rax
call FSEv05_isError@PLT
test eax, eax
je .L31
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L31:
mov edx, DWORD PTR -120[rbp]
mov eax, DWORD PTR OffFSEv05Log[rip]
cmp edx, eax
jbe .L33
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L33:
mov rax, QWORD PTR -48[rbp]
sal rax, 2
add QWORD PTR -96[rbp], rax
mov ecx, DWORD PTR -120[rbp]
mov edx, DWORD PTR -112[rbp]
mov rsi, QWORD PTR -56[rbp]
mov rax, QWORD PTR -176[rbp]
mov rdi, rax
call FSEv05_buildDTable@PLT
jmp .L29
.L47:
nop
.L29:
cmp DWORD PTR -100[rbp], 130
je .L34
cmp DWORD PTR -100[rbp], 130
jg .L35
cmp DWORD PTR -100[rbp], 128
je .L36
cmp DWORD PTR -100[rbp], 129
jne .L35
mov DWORD PTR -116[rbp], 0
mov rax, QWORD PTR -72[rbp]
sub rax, 8
cmp QWORD PTR -96[rbp], rax
jbe .L37
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L37:
mov rax, QWORD PTR -96[rbp]
lea rdx, 4[rax]
mov QWORD PTR -96[rbp], rdx
mov eax, DWORD PTR [rax]
mov edx, eax
mov rax, QWORD PTR -168[rbp]
mov esi, edx
mov rdi, rax
call FSEv05_buildDTable_rle@PLT
jmp .L38
.L34:
mov eax, DWORD PTR MLbits[rip]
mov DWORD PTR -116[rbp], eax
mov edx, DWORD PTR MLbits[rip]
mov rax, QWORD PTR -168[rbp]
mov esi, edx
mov rdi, rax
call FSEv05_buildDTable_raw@PLT
jmp .L38
.L36:
cmp DWORD PTR 32[rbp], 0
jne .L48
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L35:
mov eax, DWORD PTR MaxML[rip]
mov DWORD PTR -112[rbp], eax
mov rax, QWORD PTR -72[rbp]
sub rax, QWORD PTR -96[rbp]
sar rax, 2
mov edi, eax
mov rcx, QWORD PTR -96[rbp]
lea rdx, -116[rbp]
lea rsi, -112[rbp]
mov rax, QWORD PTR -56[rbp]
mov r8d, edi
mov rdi, rax
call FSEv05_readNCount@PLT
mov QWORD PTR -48[rbp], rax
mov rax, QWORD PTR -48[rbp]
mov rdi, rax
call FSEv05_isError@PLT
test eax, eax
je .L40
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L40:
mov edx, DWORD PTR -116[rbp]
mov eax, DWORD PTR MLFSEv05Log[rip]
cmp edx, eax
jbe .L42
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L21
.L42:
mov rax, QWORD PTR -48[rbp]
sal rax, 2
add QWORD PTR -96[rbp], rax
mov ecx, DWORD PTR -116[rbp]
mov edx, DWORD PTR -112[rbp]
mov rsi, QWORD PTR -56[rbp]
mov rax, QWORD PTR -168[rbp]
mov rdi, rax
call FSEv05_buildDTable@PLT
jmp .L38
.L48:
nop
.L38:
mov rsp, rbx
mov rax, QWORD PTR -96[rbp]
sub rax, QWORD PTR -80[rbp]
sar rax, 2
jmp .L44
.L21:
mov rsp, rbx
.L44:
mov rbx, QWORD PTR -40[rbp]
sub rbx, QWORD PTR fs:40
je .L45
call __stack_chk_fail@PLT
.L45:
lea rsp, -24[rbp]
pop rbx
pop r12
pop r13
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_decodeSeqHeaders, .-ZSTDv05_decodeSeqHeaders
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_decodeSeqHeaders.c"
.option pic
.text
.comm GENERIC,4,4
.comm LLFSEv05Log,4,4
.comm LLbits,4,4
.comm MIN_SEQUENCES_SIZE,8,8
.comm MLFSEv05Log,4,4
.comm MLbits,4,4
.comm MaxLL,4,4
.comm MaxML,4,4
.comm MaxOff,4,4
.comm OffFSEv05Log,4,4
.comm Offbits,4,4
.comm corruption_detected,4,4
.comm srcSize_wrong,4,4
.align 1
.type ZSTDv05_decodeSeqHeaders, @function
ZSTDv05_decodeSeqHeaders:
addi sp,sp,-208
sd ra,200(sp)
sd s0,192(sp)
sd s1,184(sp)
sd s2,176(sp)
sd s3,168(sp)
addi s0,sp,208
sd a0,-152(s0)
sd a1,-160(s0)
sd a2,-168(s0)
sd a3,-176(s0)
sd a4,-184(s0)
sd a5,-192(s0)
sd a6,-200(s0)
sd a7,-208(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-56(s0)
ld a5,-200(s0)
sd a5,-96(s0)
ld a5,-96(s0)
sd a5,-112(s0)
ld a5,-208(s0)
slli a5,a5,2
ld a4,-96(s0)
add a5,a4,a5
sd a5,-88(s0)
la a5,MIN_SEQUENCES_SIZE
ld a5,0(a5)
ld a4,-208(s0)
bgeu a4,a5,.L2
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L41
.L2:
ld a5,-112(s0)
addi a4,a5,4
sd a4,-112(s0)
lw a4,0(a5)
ld a5,-152(s0)
sw a4,0(a5)
ld a5,-152(s0)
lw a5,0(a5)
bnez a5,.L4
li a5,1
j .L41
.L4:
ld a5,-152(s0)
lw a5,0(a5)
mv a4,a5
li a5,127
ble a4,a5,.L5
ld a4,-112(s0)
ld a5,-88(s0)
bltu a4,a5,.L6
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L41
.L6:
ld a5,-152(s0)
lw a5,0(a5)
addiw a5,a5,-128
sext.w a5,a5
slliw a5,a5,8
sext.w a4,a5
ld a5,-112(s0)
addi a3,a5,4
sd a3,-112(s0)
lw a5,0(a5)
addw a5,a4,a5
sext.w a4,a5
ld a5,-152(s0)
sw a4,0(a5)
.L5:
ld a4,-112(s0)
ld a5,-88(s0)
bltu a4,a5,.L7
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L41
.L7:
ld a5,-112(s0)
lw a5,0(a5)
sraiw a5,a5,6
sw a5,-124(s0)
ld a5,-112(s0)
lw a5,0(a5)
sraiw a5,a5,4
sext.w a5,a5
andi a5,a5,3
sw a5,-120(s0)
ld a5,-112(s0)
lw a5,0(a5)
sraiw a5,a5,2
sext.w a5,a5
andi a5,a5,3
sw a5,-116(s0)
ld a5,-112(s0)
lw a5,0(a5)
andi a5,a5,2
sext.w a5,a5
beqz a5,.L8
ld a5,-112(s0)
addi a5,a5,12
ld a4,-88(s0)
bgeu a4,a5,.L9
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L41
.L9:
ld a5,-112(s0)
addi a5,a5,8
lw a5,0(a5)
sd a5,-104(s0)
ld a5,-112(s0)
addi a5,a5,4
lw a5,0(a5)
slliw a5,a5,8
sext.w a5,a5
mv a4,a5
ld a5,-104(s0)
add a5,a5,a4
sd a5,-104(s0)
ld a5,-112(s0)
addi a5,a5,12
sd a5,-112(s0)
j .L10
.L8:
ld a5,-112(s0)
addi a5,a5,8
ld a4,-88(s0)
bgeu a4,a5,.L11
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L41
.L11:
ld a5,-112(s0)
addi a5,a5,4
lw a5,0(a5)
sd a5,-104(s0)
ld a5,-112(s0)
lw a5,0(a5)
slliw a5,a5,8
sext.w a5,a5
andi a5,a5,256
ld a4,-104(s0)
add a5,a4,a5
sd a5,-104(s0)
ld a5,-112(s0)
addi a5,a5,8
sd a5,-112(s0)
.L10:
ld a5,-160(s0)
ld a4,-112(s0)
sd a4,0(a5)
ld a5,-104(s0)
slli a5,a5,2
ld a4,-112(s0)
add a5,a4,a5
sd a5,-112(s0)
ld a5,-168(s0)
ld a4,-104(s0)
sd a4,0(a5)
ld a5,-88(s0)
addi a5,a5,-12
ld a4,-112(s0)
bleu a4,a5,.L12
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L41
.L12:
mv a5,sp
mv s1,a5
la a5,MaxML
lw a5,0(a5)
addiw a5,a5,1
sext.w a5,a5
slli a4,a5,32
srli a4,a4,32
addi a4,a4,-1
sd a4,-80(s0)
slli a4,a5,32
srli a4,a4,32
mv s2,a4
li s3,0
srli a4,s2,59
slli t4,s3,5
or t4,a4,t4
slli t3,s2,5
slli a4,a5,32
srli a4,a4,32
mv t5,a4
li t6,0
srli a4,t5,59
slli t2,t6,5
or t2,a4,t2
slli t1,t5,5
slli a5,a5,32
srli a5,a5,32
slli a5,a5,2
addi a5,a5,15
srli a5,a5,4
slli a5,a5,4
sub sp,sp,a5
mv a5,sp
addi a5,a5,3
srli a5,a5,2
slli a5,a5,2
sd a5,-72(s0)
lw a5,-124(s0)
sext.w a4,a5
li a5,130
beq a4,a5,.L13
lw a5,-124(s0)
sext.w a4,a5
li a5,130
bgt a4,a5,.L14
lw a5,-124(s0)
sext.w a4,a5
li a5,128
beq a4,a5,.L15
lw a5,-124(s0)
sext.w a4,a5
li a5,129
bne a4,a5,.L14
sw zero,-140(s0)
ld a5,-112(s0)
addi a4,a5,4
sd a4,-112(s0)
lw a5,0(a5)
sext.w a5,a5
mv a1,a5
ld a0,-176(s0)
call FSEv05_buildDTable_rle@plt
j .L16
.L13:
la a5,LLbits
lw a5,0(a5)
sw a5,-140(s0)
la a5,LLbits
lw a5,0(a5)
mv a1,a5
ld a0,-176(s0)
call FSEv05_buildDTable_raw@plt
j .L16
.L15:
lw a5,0(s0)
sext.w a5,a5
bnez a5,.L43
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L18
.L14:
la a5,MaxLL
lw a5,0(a5)
sw a5,-128(s0)
ld a4,-88(s0)
ld a5,-112(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a4,a5
addi a2,s0,-140
addi a5,s0,-128
ld a3,-112(s0)
mv a1,a5
ld a0,-72(s0)
call FSEv05_readNCount@plt
sd a0,-64(s0)
ld a0,-64(s0)
call FSEv05_isError@plt
mv a5,a0
beqz a5,.L19
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L18
.L19:
lw a4,-140(s0)
la a5,LLFSEv05Log
lw a5,0(a5)
bleu a4,a5,.L21
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L18
.L21:
ld a5,-64(s0)
slli a5,a5,2
ld a4,-112(s0)
add a5,a4,a5
sd a5,-112(s0)
lw a5,-128(s0)
lw a4,-140(s0)
mv a3,a4
mv a2,a5
ld a1,-72(s0)
ld a0,-176(s0)
call FSEv05_buildDTable@plt
j .L16
.L43:
nop
.L16:
lw a5,-120(s0)
sext.w a4,a5
li a5,130
beq a4,a5,.L22
lw a5,-120(s0)
sext.w a4,a5
li a5,130
bgt a4,a5,.L23
lw a5,-120(s0)
sext.w a4,a5
li a5,128
beq a4,a5,.L24
lw a5,-120(s0)
sext.w a4,a5
li a5,129
bne a4,a5,.L23
sw zero,-136(s0)
ld a5,-88(s0)
addi a5,a5,-8
ld a4,-112(s0)
bleu a4,a5,.L25
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L18
.L25:
ld a5,-112(s0)
addi a4,a5,4
sd a4,-112(s0)
lw a5,0(a5)
sext.w a4,a5
la a5,MaxOff
lw a5,0(a5)
and a5,a4,a5
sext.w a5,a5
mv a1,a5
ld a0,-192(s0)
call FSEv05_buildDTable_rle@plt
j .L26
.L22:
la a5,Offbits
lw a5,0(a5)
sw a5,-136(s0)
la a5,Offbits
lw a5,0(a5)
mv a1,a5
ld a0,-192(s0)
call FSEv05_buildDTable_raw@plt
j .L26
.L24:
lw a5,0(s0)
sext.w a5,a5
bnez a5,.L44
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L18
.L23:
la a5,MaxOff
lw a5,0(a5)
sw a5,-128(s0)
ld a4,-88(s0)
ld a5,-112(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a4,a5
addi a2,s0,-136
addi a5,s0,-128
ld a3,-112(s0)
mv a1,a5
ld a0,-72(s0)
call FSEv05_readNCount@plt
sd a0,-64(s0)
ld a0,-64(s0)
call FSEv05_isError@plt
mv a5,a0
beqz a5,.L28
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L18
.L28:
lw a4,-136(s0)
la a5,OffFSEv05Log
lw a5,0(a5)
bleu a4,a5,.L30
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L18
.L30:
ld a5,-64(s0)
slli a5,a5,2
ld a4,-112(s0)
add a5,a4,a5
sd a5,-112(s0)
lw a5,-128(s0)
lw a4,-136(s0)
mv a3,a4
mv a2,a5
ld a1,-72(s0)
ld a0,-192(s0)
call FSEv05_buildDTable@plt
j .L26
.L44:
nop
.L26:
lw a5,-116(s0)
sext.w a4,a5
li a5,130
beq a4,a5,.L31
lw a5,-116(s0)
sext.w a4,a5
li a5,130
bgt a4,a5,.L32
lw a5,-116(s0)
sext.w a4,a5
li a5,128
beq a4,a5,.L33
lw a5,-116(s0)
sext.w a4,a5
li a5,129
bne a4,a5,.L32
sw zero,-132(s0)
ld a5,-88(s0)
addi a5,a5,-8
ld a4,-112(s0)
bleu a4,a5,.L34
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L18
.L34:
ld a5,-112(s0)
addi a4,a5,4
sd a4,-112(s0)
lw a5,0(a5)
sext.w a5,a5
mv a1,a5
ld a0,-184(s0)
call FSEv05_buildDTable_rle@plt
j .L35
.L31:
la a5,MLbits
lw a5,0(a5)
sw a5,-132(s0)
la a5,MLbits
lw a5,0(a5)
mv a1,a5
ld a0,-184(s0)
call FSEv05_buildDTable_raw@plt
j .L35
.L33:
lw a5,0(s0)
sext.w a5,a5
bnez a5,.L45
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L18
.L32:
la a5,MaxML
lw a5,0(a5)
sw a5,-128(s0)
ld a4,-88(s0)
ld a5,-112(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a4,a5
addi a2,s0,-132
addi a5,s0,-128
ld a3,-112(s0)
mv a1,a5
ld a0,-72(s0)
call FSEv05_readNCount@plt
sd a0,-64(s0)
ld a0,-64(s0)
call FSEv05_isError@plt
mv a5,a0
beqz a5,.L37
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L18
.L37:
lw a4,-132(s0)
la a5,MLFSEv05Log
lw a5,0(a5)
bleu a4,a5,.L39
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L18
.L39:
ld a5,-64(s0)
slli a5,a5,2
ld a4,-112(s0)
add a5,a4,a5
sd a5,-112(s0)
lw a5,-128(s0)
lw a4,-132(s0)
mv a3,a4
mv a2,a5
ld a1,-72(s0)
ld a0,-184(s0)
call FSEv05_buildDTable@plt
j .L35
.L45:
nop
.L35:
mv sp,s1
ld a4,-112(s0)
ld a5,-96(s0)
sub a5,a4,a5
srai a5,a5,2
j .L41
.L18:
mv sp,s1
.L41:
mv a3,a5
la a5,__stack_chk_guard
ld a4,-56(s0)
ld a5,0(a5)
beq a4,a5,.L42
call __stack_chk_fail@plt
.L42:
mv a0,a3
addi sp,s0,-208
ld ra,200(sp)
ld s0,192(sp)
ld s1,184(sp)
ld s2,176(sp)
ld s3,168(sp)
addi sp,sp,208
jr ra
.size ZSTDv05_decodeSeqHeaders, .-ZSTDv05_decodeSeqHeaders
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_decompress.c"
.intel_syntax noprefix
.text
.globl memory_allocation
.bss
.align 4
.type memory_allocation, @object
.size memory_allocation, 4
memory_allocation:
.zero 4
.text
.globl ZSTDv05_decompress
.type ZSTDv05_decompress, @function
ZSTDv05_decompress:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov QWORD PTR -48[rbp], rcx
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov rdi, QWORD PTR -48[rbp]
mov rcx, QWORD PTR -40[rbp]
mov rdx, QWORD PTR -32[rbp]
mov rsi, QWORD PTR -24[rbp]
lea rax, -12[rbp]
mov r8, rdi
mov rdi, rax
call ZSTDv05_decompressDCtx@PLT
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L3
call __stack_chk_fail@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_decompress, .-ZSTDv05_decompress
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_decompress.c"
.option pic
.text
.comm memory_allocation,4,4
.align 1
.globl ZSTDv05_decompress
.type ZSTDv05_decompress, @function
ZSTDv05_decompress:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
sd a3,-64(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-24(s0)
addi a5,s0,-28
ld a4,-64(s0)
ld a3,-56(s0)
ld a2,-48(s0)
ld a1,-40(s0)
mv a0,a5
call ZSTDv05_decompressDCtx@plt
mv a5,a0
mv a3,a5
la a5,__stack_chk_guard
ld a4,-24(s0)
ld a5,0(a5)
beq a4,a5,.L3
call __stack_chk_fail@plt
.L3:
mv a0,a3
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZSTDv05_decompress, .-ZSTDv05_decompress
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_decompressBegin.c"
.intel_syntax noprefix
.text
.globl HufLog
.bss
.align 4
.type HufLog, @object
.size HufLog, 4
HufLog:
.zero 4
.globl ZSTDv05_frameHeaderSize_min
.align 4
.type ZSTDv05_frameHeaderSize_min, @object
.size ZSTDv05_frameHeaderSize_min, 4
ZSTDv05_frameHeaderSize_min:
.zero 4
.globl ZSTDv05ds_getFrameHeaderSize
.align 4
.type ZSTDv05ds_getFrameHeaderSize, @object
.size ZSTDv05ds_getFrameHeaderSize, 4
ZSTDv05ds_getFrameHeaderSize:
.zero 4
.text
.globl ZSTDv05_decompressBegin
.type ZSTDv05_decompressBegin, @function
ZSTDv05_decompressBegin:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov edx, DWORD PTR ZSTDv05_frameHeaderSize_min[rip]
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR 52[rax], edx
mov edx, DWORD PTR ZSTDv05ds_getFrameHeaderSize[rip]
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR 48[rax], edx
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 40[rax], 0
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 32[rax], 0
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 24[rax], 0
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 16[rax], 0
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
mov edx, DWORD PTR HufLog[rip]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR [rax], 0
mov eax, 0
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_decompressBegin, .-ZSTDv05_decompressBegin
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_decompressBegin.c"
.option pic
.text
.comm HufLog,4,4
.comm ZSTDv05_frameHeaderSize_min,4,4
.comm ZSTDv05ds_getFrameHeaderSize,4,4
.align 1
.globl ZSTDv05_decompressBegin
.type ZSTDv05_decompressBegin, @function
ZSTDv05_decompressBegin:
addi sp,sp,-32
sd s0,24(sp)
addi s0,sp,32
sd a0,-24(s0)
la a5,ZSTDv05_frameHeaderSize_min
lw a4,0(a5)
ld a5,-24(s0)
sw a4,52(a5)
la a5,ZSTDv05ds_getFrameHeaderSize
lw a4,0(a5)
ld a5,-24(s0)
sw a4,48(a5)
ld a5,-24(s0)
sd zero,40(a5)
ld a5,-24(s0)
sd zero,32(a5)
ld a5,-24(s0)
sd zero,24(a5)
ld a5,-24(s0)
sd zero,16(a5)
ld a5,-24(s0)
ld a5,8(a5)
la a4,HufLog
lw a4,0(a4)
sw a4,0(a5)
ld a5,-24(s0)
sd zero,0(a5)
li a5,0
mv a0,a5
ld s0,24(sp)
addi sp,sp,32
jr ra
.size ZSTDv05_decompressBegin, .-ZSTDv05_decompressBegin
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_decompressBegin_usingDict.c"
.intel_syntax noprefix
.text
.globl dictionary_corrupted
.bss
.align 4
.type dictionary_corrupted, @object
.size dictionary_corrupted, 4
dictionary_corrupted:
.zero 4
.text
.globl ZSTDv05_decompressBegin_usingDict
.type ZSTDv05_decompressBegin_usingDict, @function
ZSTDv05_decompressBegin_usingDict:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call ZSTDv05_decompressBegin@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ZSTDv05_isError@PLT
test rax, rax
je .L2
mov rax, QWORD PTR -8[rbp]
jmp .L3
.L2:
cmp QWORD PTR -32[rbp], 0
je .L4
cmp QWORD PTR -40[rbp], 0
je .L4
mov rdx, QWORD PTR -40[rbp]
mov rcx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTDv05_decompress_insertDictionary@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ZSTDv05_isError@PLT
test rax, rax
je .L4
mov eax, DWORD PTR dictionary_corrupted[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
mov eax, 0
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_decompressBegin_usingDict, .-ZSTDv05_decompressBegin_usingDict
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_decompressBegin_usingDict.c"
.option pic
.text
.comm dictionary_corrupted,4,4
.align 1
.globl ZSTDv05_decompressBegin_usingDict
.type ZSTDv05_decompressBegin_usingDict, @function
ZSTDv05_decompressBegin_usingDict:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
ld a0,-40(s0)
call ZSTDv05_decompressBegin@plt
sd a0,-24(s0)
ld a0,-24(s0)
call ZSTDv05_isError@plt
mv a5,a0
beqz a5,.L2
ld a5,-24(s0)
j .L3
.L2:
ld a5,-48(s0)
beqz a5,.L4
ld a5,-56(s0)
beqz a5,.L4
ld a2,-56(s0)
ld a1,-48(s0)
ld a0,-40(s0)
call ZSTDv05_decompress_insertDictionary@plt
sd a0,-24(s0)
ld a0,-24(s0)
call ZSTDv05_isError@plt
mv a5,a0
beqz a5,.L4
la a5,dictionary_corrupted
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
li a5,0
.L3:
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZSTDv05_decompressBegin_usingDict, .-ZSTDv05_decompressBegin_usingDict
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_decompressBlock.c"
.intel_syntax noprefix
.text
.globl ZSTDv05_decompressBlock
.type ZSTDv05_decompressBlock, @function
ZSTDv05_decompressBlock:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov QWORD PTR -32[rbp], rcx
mov QWORD PTR -40[rbp], r8
mov rdx, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call ZSTDv05_checkContinuity@PLT
mov rdi, QWORD PTR -40[rbp]
mov rcx, QWORD PTR -32[rbp]
mov rdx, QWORD PTR -24[rbp]
mov rsi, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
mov r8, rdi
mov rdi, rax
call ZSTDv05_decompressBlock_internal@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_decompressBlock, .-ZSTDv05_decompressBlock
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_decompressBlock.c"
.option pic
.text
.align 1
.globl ZSTDv05_decompressBlock
.type ZSTDv05_decompressBlock, @function
ZSTDv05_decompressBlock:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
sd a3,-48(s0)
sd a4,-56(s0)
ld a1,-32(s0)
ld a0,-24(s0)
call ZSTDv05_checkContinuity@plt
ld a4,-56(s0)
ld a3,-48(s0)
ld a2,-40(s0)
ld a1,-32(s0)
ld a0,-24(s0)
call ZSTDv05_decompressBlock_internal@plt
mv a5,a0
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZSTDv05_decompressBlock, .-ZSTDv05_decompressBlock
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_decompressBlock_internal.c"
.intel_syntax noprefix
.text
.globl BLOCKSIZE
.bss
.align 8
.type BLOCKSIZE, @object
.size BLOCKSIZE, 8
BLOCKSIZE:
.zero 8
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.type ZSTDv05_decompressBlock_internal, @function
ZSTDv05_decompressBlock_internal:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov QWORD PTR -48[rbp], rcx
mov QWORD PTR -56[rbp], r8
mov rax, QWORD PTR -48[rbp]
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR BLOCKSIZE[rip]
cmp QWORD PTR -56[rbp], rax
jb .L2
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L2:
mov rdx, QWORD PTR -56[rbp]
mov rcx, QWORD PTR -48[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTDv05_decodeLiteralsBlock@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ZSTDv05_isError@PLT
test rax, rax
je .L4
mov rax, QWORD PTR -8[rbp]
jmp .L3
.L4:
mov rax, QWORD PTR -8[rbp]
sal rax, 2
add QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -8[rbp]
sub QWORD PTR -56[rbp], rax
mov rdi, QWORD PTR -56[rbp]
mov rcx, QWORD PTR -16[rbp]
mov rdx, QWORD PTR -40[rbp]
mov rsi, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov r8, rdi
mov rdi, rax
call ZSTDv05_decompressSequences@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_decompressBlock_internal, .-ZSTDv05_decompressBlock_internal
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_decompressBlock_internal.c"
.option pic
.text
.comm BLOCKSIZE,8,8
.comm srcSize_wrong,4,4
.align 1
.type ZSTDv05_decompressBlock_internal, @function
ZSTDv05_decompressBlock_internal:
addi sp,sp,-80
sd ra,72(sp)
sd s0,64(sp)
addi s0,sp,80
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
sd a3,-64(s0)
sd a4,-72(s0)
ld a5,-64(s0)
sd a5,-32(s0)
la a5,BLOCKSIZE
ld a5,0(a5)
ld a4,-72(s0)
bltu a4,a5,.L2
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
ld a2,-72(s0)
ld a1,-64(s0)
ld a0,-40(s0)
call ZSTDv05_decodeLiteralsBlock@plt
sd a0,-24(s0)
ld a0,-24(s0)
call ZSTDv05_isError@plt
mv a5,a0
beqz a5,.L4
ld a5,-24(s0)
j .L3
.L4:
ld a5,-24(s0)
slli a5,a5,2
ld a4,-32(s0)
add a5,a4,a5
sd a5,-32(s0)
ld a4,-72(s0)
ld a5,-24(s0)
sub a5,a4,a5
sd a5,-72(s0)
ld a4,-72(s0)
ld a3,-32(s0)
ld a2,-56(s0)
ld a1,-48(s0)
ld a0,-40(s0)
call ZSTDv05_decompressSequences@plt
mv a5,a0
.L3:
mv a0,a5
ld ra,72(sp)
ld s0,64(sp)
addi sp,sp,80
jr ra
.size ZSTDv05_decompressBlock_internal, .-ZSTDv05_decompressBlock_internal
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_decompressContinue.c"
.intel_syntax noprefix
.text
.globl GENERIC
.bss
.align 4
.type GENERIC, @object
.size GENERIC, 4
GENERIC:
.zero 4
.globl ZSTDv05_blockHeaderSize
.align 8
.type ZSTDv05_blockHeaderSize, @object
.size ZSTDv05_blockHeaderSize, 8
ZSTDv05_blockHeaderSize:
.zero 8
.globl ZSTDv05_frameHeaderSize_min
.align 8
.type ZSTDv05_frameHeaderSize_min, @object
.size ZSTDv05_frameHeaderSize_min, 8
ZSTDv05_frameHeaderSize_min:
.zero 8
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.globl ZSTDv05_decompressContinue
.type ZSTDv05_decompressContinue, @function
ZSTDv05_decompressContinue:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 96
mov QWORD PTR -56[rbp], rdi
mov QWORD PTR -64[rbp], rsi
mov QWORD PTR -72[rbp], rdx
mov QWORD PTR -80[rbp], rcx
mov QWORD PTR -88[rbp], r8
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov rax, QWORD PTR -56[rbp]
mov rax, QWORD PTR [rax]
cmp QWORD PTR -88[rbp], rax
je .L2
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L2:
mov rdx, QWORD PTR -64[rbp]
mov rax, QWORD PTR -56[rbp]
mov rsi, rdx
mov rdi, rax
call ZSTDv05_checkContinuity@PLT
mov rax, QWORD PTR -56[rbp]
mov eax, DWORD PTR 8[rax]
cmp eax, 135
je .L4
cmp eax, 135
jg .L5
cmp eax, 134
je .L6
cmp eax, 134
jg .L5
cmp eax, 132
je .L7
cmp eax, 133
je .L8
jmp .L5
.L7:
mov rax, QWORD PTR ZSTDv05_frameHeaderSize_min[rip]
cmp QWORD PTR -88[rbp], rax
je .L9
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L9:
mov rdx, QWORD PTR ZSTDv05_frameHeaderSize_min[rip]
mov rcx, QWORD PTR -80[rbp]
mov rax, QWORD PTR -56[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTDv05_decodeFrameHeader_Part1@PLT
mov rdx, QWORD PTR -56[rbp]
mov QWORD PTR 16[rdx], rax
mov rax, QWORD PTR -56[rbp]
mov rax, QWORD PTR 16[rax]
mov rdi, rax
call ZSTDv05_isError@PLT
test eax, eax
je .L10
mov rax, QWORD PTR -56[rbp]
mov rax, QWORD PTR 16[rax]
jmp .L3
.L10:
mov rdx, QWORD PTR ZSTDv05_frameHeaderSize_min[rip]
mov rax, QWORD PTR -56[rbp]
mov eax, DWORD PTR 40[rax]
mov rcx, QWORD PTR -80[rbp]
mov rsi, rcx
mov edi, eax
call memcpy@PLT
mov rax, QWORD PTR -56[rbp]
mov rdx, QWORD PTR 16[rax]
mov rax, QWORD PTR ZSTDv05_frameHeaderSize_min[rip]
cmp rdx, rax
jbe .L11
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L11:
mov rax, QWORD PTR -56[rbp]
mov QWORD PTR [rax], 0
.L6:
mov rax, QWORD PTR -56[rbp]
mov rdx, QWORD PTR 16[rax]
mov rax, QWORD PTR -56[rbp]
mov ecx, DWORD PTR 40[rax]
mov rax, QWORD PTR -56[rbp]
mov esi, ecx
mov rdi, rax
call ZSTDv05_decodeFrameHeader_Part2@PLT
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call ZSTDv05_isError@PLT
test eax, eax
je .L12
mov rax, QWORD PTR -16[rbp]
jmp .L3
.L12:
mov rax, QWORD PTR ZSTDv05_blockHeaderSize[rip]
mov rdx, rax
mov rax, QWORD PTR -56[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -56[rbp]
mov DWORD PTR 8[rax], 135
mov eax, 0
jmp .L3
.L4:
mov rcx, QWORD PTR ZSTDv05_blockHeaderSize[rip]
lea rdx, -36[rbp]
mov rax, QWORD PTR -80[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTDv05_getcBlockSize@PLT
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call ZSTDv05_isError@PLT
test eax, eax
je .L13
mov rax, QWORD PTR -24[rbp]
jmp .L3
.L13:
mov eax, DWORD PTR -36[rbp]
cmp eax, 130
jne .L15
mov rax, QWORD PTR -56[rbp]
mov QWORD PTR [rax], 0
mov rax, QWORD PTR -56[rbp]
mov DWORD PTR 8[rax], 132
jmp .L16
.L15:
mov rax, QWORD PTR -56[rbp]
mov rdx, QWORD PTR -24[rbp]
mov QWORD PTR [rax], rdx
mov edx, DWORD PTR -36[rbp]
mov rax, QWORD PTR -56[rbp]
mov DWORD PTR 24[rax], edx
mov rax, QWORD PTR -56[rbp]
mov DWORD PTR 8[rax], 133
.L16:
mov eax, 0
jmp .L3
.L8:
mov rax, QWORD PTR -56[rbp]
mov eax, DWORD PTR 24[rax]
cmp eax, 131
je .L17
cmp eax, 131
jg .L18
cmp eax, 130
je .L19
cmp eax, 130
jg .L18
cmp eax, 128
je .L20
cmp eax, 129
je .L21
jmp .L18
.L17:
mov rdi, QWORD PTR -88[rbp]
mov rcx, QWORD PTR -80[rbp]
mov rdx, QWORD PTR -72[rbp]
mov rsi, QWORD PTR -64[rbp]
mov rax, QWORD PTR -56[rbp]
mov r8, rdi
mov rdi, rax
call ZSTDv05_decompressBlock_internal@PLT
mov QWORD PTR -32[rbp], rax
jmp .L22
.L21:
mov rcx, QWORD PTR -88[rbp]
mov rdx, QWORD PTR -80[rbp]
mov rsi, QWORD PTR -72[rbp]
mov rax, QWORD PTR -64[rbp]
mov rdi, rax
call ZSTDv05_copyRawBlock@PLT
mov QWORD PTR -32[rbp], rax
jmp .L22
.L20:
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L19:
mov QWORD PTR -32[rbp], 0
jmp .L22
.L18:
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L22:
mov rax, QWORD PTR -56[rbp]
mov DWORD PTR 8[rax], 135
mov rax, QWORD PTR ZSTDv05_blockHeaderSize[rip]
mov rdx, rax
mov rax, QWORD PTR -56[rbp]
mov QWORD PTR [rax], rdx
mov rdx, QWORD PTR -64[rbp]
mov rax, QWORD PTR -32[rbp]
add rdx, rax
mov rax, QWORD PTR -56[rbp]
mov QWORD PTR 32[rax], rdx
mov rax, QWORD PTR -32[rbp]
jmp .L3
.L5:
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
.L3:
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L23
call __stack_chk_fail@PLT
.L23:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_decompressContinue, .-ZSTDv05_decompressContinue
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_decompressContinue.c"
.option pic
.text
.comm GENERIC,4,4
.comm ZSTDv05_blockHeaderSize,8,8
.comm ZSTDv05_frameHeaderSize_min,8,8
.comm srcSize_wrong,4,4
.align 1
.globl ZSTDv05_decompressContinue
.type ZSTDv05_decompressContinue, @function
ZSTDv05_decompressContinue:
addi sp,sp,-112
sd ra,104(sp)
sd s0,96(sp)
addi s0,sp,112
sd a0,-72(s0)
sd a1,-80(s0)
sd a2,-88(s0)
sd a3,-96(s0)
sd a4,-104(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-24(s0)
ld a5,-72(s0)
ld a5,0(a5)
ld a4,-104(s0)
beq a4,a5,.L2
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L2:
ld a1,-80(s0)
ld a0,-72(s0)
call ZSTDv05_checkContinuity@plt
ld a5,-72(s0)
lw a5,8(a5)
mv a3,a5
li a4,135
beq a3,a4,.L4
mv a3,a5
li a4,135
bgt a3,a4,.L5
mv a3,a5
li a4,134
beq a3,a4,.L6
mv a3,a5
li a4,134
bgt a3,a4,.L5
mv a3,a5
li a4,132
beq a3,a4,.L7
mv a4,a5
li a5,133
beq a4,a5,.L8
j .L5
.L7:
la a5,ZSTDv05_frameHeaderSize_min
ld a5,0(a5)
ld a4,-104(s0)
beq a4,a5,.L9
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L9:
la a5,ZSTDv05_frameHeaderSize_min
ld a5,0(a5)
mv a2,a5
ld a1,-96(s0)
ld a0,-72(s0)
call ZSTDv05_decodeFrameHeader_Part1@plt
mv a4,a0
ld a5,-72(s0)
sd a4,16(a5)
ld a5,-72(s0)
ld a5,16(a5)
mv a0,a5
call ZSTDv05_isError@plt
mv a5,a0
beqz a5,.L10
ld a5,-72(s0)
ld a5,16(a5)
j .L3
.L10:
ld a5,-72(s0)
lw a4,40(a5)
la a5,ZSTDv05_frameHeaderSize_min
ld a5,0(a5)
mv a2,a5
ld a1,-96(s0)
mv a0,a4
call memcpy@plt
ld a5,-72(s0)
ld a4,16(a5)
la a5,ZSTDv05_frameHeaderSize_min
ld a5,0(a5)
bleu a4,a5,.L11
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L11:
ld a5,-72(s0)
sd zero,0(a5)
.L6:
ld a5,-72(s0)
lw a4,40(a5)
ld a5,-72(s0)
ld a5,16(a5)
mv a2,a5
mv a1,a4
ld a0,-72(s0)
call ZSTDv05_decodeFrameHeader_Part2@plt
sd a0,-32(s0)
ld a0,-32(s0)
call ZSTDv05_isError@plt
mv a5,a0
beqz a5,.L12
ld a5,-32(s0)
j .L3
.L12:
la a5,ZSTDv05_blockHeaderSize
ld a5,0(a5)
mv a4,a5
ld a5,-72(s0)
sd a4,0(a5)
ld a5,-72(s0)
li a4,135
sw a4,8(a5)
li a5,0
j .L3
.L4:
la a5,ZSTDv05_blockHeaderSize
ld a5,0(a5)
addi a4,s0,-56
mv a2,a4
mv a1,a5
ld a0,-96(s0)
call ZSTDv05_getcBlockSize@plt
sd a0,-40(s0)
ld a0,-40(s0)
call ZSTDv05_isError@plt
mv a5,a0
beqz a5,.L13
ld a5,-40(s0)
j .L3
.L13:
lw a5,-56(s0)
mv a4,a5
li a5,130
bne a4,a5,.L15
ld a5,-72(s0)
sd zero,0(a5)
ld a5,-72(s0)
li a4,132
sw a4,8(a5)
j .L16
.L15:
ld a5,-72(s0)
ld a4,-40(s0)
sd a4,0(a5)
lw a4,-56(s0)
ld a5,-72(s0)
sw a4,24(a5)
ld a5,-72(s0)
li a4,133
sw a4,8(a5)
.L16:
li a5,0
j .L3
.L8:
ld a5,-72(s0)
lw a5,24(a5)
mv a3,a5
li a4,131
beq a3,a4,.L17
mv a3,a5
li a4,131
bgt a3,a4,.L18
mv a3,a5
li a4,130
beq a3,a4,.L19
mv a3,a5
li a4,130
bgt a3,a4,.L18
mv a3,a5
li a4,128
beq a3,a4,.L20
mv a4,a5
li a5,129
beq a4,a5,.L21
j .L18
.L17:
ld a4,-104(s0)
ld a3,-96(s0)
ld a2,-88(s0)
ld a1,-80(s0)
ld a0,-72(s0)
call ZSTDv05_decompressBlock_internal@plt
sd a0,-48(s0)
j .L22
.L21:
ld a3,-104(s0)
ld a2,-96(s0)
ld a1,-88(s0)
ld a0,-80(s0)
call ZSTDv05_copyRawBlock@plt
sd a0,-48(s0)
j .L22
.L20:
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L19:
sd zero,-48(s0)
j .L22
.L18:
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L22:
ld a5,-72(s0)
li a4,135
sw a4,8(a5)
la a5,ZSTDv05_blockHeaderSize
ld a5,0(a5)
mv a4,a5
ld a5,-72(s0)
sd a4,0(a5)
ld a4,-80(s0)
ld a5,-48(s0)
add a4,a4,a5
ld a5,-72(s0)
sd a4,32(a5)
ld a5,-48(s0)
j .L3
.L5:
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
.L3:
mv a3,a5
la a5,__stack_chk_guard
ld a4,-24(s0)
ld a5,0(a5)
beq a4,a5,.L23
call __stack_chk_fail@plt
.L23:
mv a0,a3
ld ra,104(sp)
ld s0,96(sp)
addi sp,sp,112
jr ra
.size ZSTDv05_decompressContinue, .-ZSTDv05_decompressContinue
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_decompressDCtx.c"
.intel_syntax noprefix
.text
.globl ZSTDv05_decompressDCtx
.type ZSTDv05_decompressDCtx, @function
ZSTDv05_decompressDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov QWORD PTR -32[rbp], rcx
mov QWORD PTR -40[rbp], r8
mov rdi, QWORD PTR -40[rbp]
mov rcx, QWORD PTR -32[rbp]
mov rdx, QWORD PTR -24[rbp]
mov rsi, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
sub rsp, 8
push 0
mov r9d, 0
mov r8, rdi
mov rdi, rax
call ZSTDv05_decompress_usingDict@PLT
add rsp, 16
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_decompressDCtx, .-ZSTDv05_decompressDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_decompressDCtx.c"
.option pic
.text
.align 1
.globl ZSTDv05_decompressDCtx
.type ZSTDv05_decompressDCtx, @function
ZSTDv05_decompressDCtx:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
sd a3,-48(s0)
sd a4,-56(s0)
li a6,0
li a5,0
ld a4,-56(s0)
ld a3,-48(s0)
ld a2,-40(s0)
ld a1,-32(s0)
ld a0,-24(s0)
call ZSTDv05_decompress_usingDict@plt
mv a5,a0
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZSTDv05_decompressDCtx, .-ZSTDv05_decompressDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_decompressSequences.c"
.intel_syntax noprefix
.text
.globl BITv05_DStream_completed
.bss
.align 8
.type BITv05_DStream_completed, @object
.size BITv05_DStream_completed, 8
BITv05_DStream_completed:
.zero 8
.globl REPCODE_STARTVALUE
.align 8
.type REPCODE_STARTVALUE, @object
.size REPCODE_STARTVALUE, 8
REPCODE_STARTVALUE:
.zero 8
.globl corruption_detected
.align 4
.type corruption_detected, @object
.size corruption_detected, 4
corruption_detected:
.zero 4
.globl dstSize_tooSmall
.align 4
.type dstSize_tooSmall, @object
.size dstSize_tooSmall, 4
dstSize_tooSmall:
.zero 4
.text
.type ZSTDv05_decompressSequences, @function
ZSTDv05_decompressSequences:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 256
mov QWORD PTR -216[rbp], rdi
mov QWORD PTR -224[rbp], rsi
mov QWORD PTR -232[rbp], rdx
mov QWORD PTR -240[rbp], rcx
mov QWORD PTR -248[rbp], r8
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov rax, QWORD PTR -240[rbp]
mov QWORD PTR -160[rbp], rax
mov rax, QWORD PTR -248[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -160[rbp]
add rax, rdx
mov QWORD PTR -152[rbp], rax
mov rax, QWORD PTR -224[rbp]
mov QWORD PTR -144[rbp], rax
mov rax, QWORD PTR -144[rbp]
mov QWORD PTR -168[rbp], rax
mov rax, QWORD PTR -232[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -144[rbp]
add rax, rdx
mov QWORD PTR -136[rbp], rax
mov QWORD PTR -200[rbp], 0
mov rax, QWORD PTR -216[rbp]
mov rax, QWORD PTR 64[rax]
mov QWORD PTR -192[rbp], rax
mov rdx, QWORD PTR -192[rbp]
mov rax, QWORD PTR -216[rbp]
mov eax, DWORD PTR [rax]
cdqe
sal rax, 2
add rax, rdx
mov QWORD PTR -128[rbp], rax
mov DWORD PTR -204[rbp], 0
mov QWORD PTR -184[rbp], 0
mov rax, QWORD PTR -216[rbp]
mov rax, QWORD PTR 8[rax]
mov QWORD PTR -120[rbp], rax
mov rax, QWORD PTR -216[rbp]
mov rax, QWORD PTR 16[rax]
mov QWORD PTR -112[rbp], rax
mov rax, QWORD PTR -216[rbp]
mov rax, QWORD PTR 24[rax]
mov QWORD PTR -104[rbp], rax
mov rax, QWORD PTR -216[rbp]
mov rax, QWORD PTR 56[rax]
mov QWORD PTR -96[rbp], rax
mov rax, QWORD PTR -216[rbp]
mov rax, QWORD PTR 48[rax]
mov QWORD PTR -88[rbp], rax
mov rax, QWORD PTR -216[rbp]
mov rax, QWORD PTR 40[rax]
mov QWORD PTR -80[rbp], rax
mov rax, QWORD PTR -216[rbp]
mov edi, DWORD PTR 32[rax]
mov r9, QWORD PTR -104[rbp]
mov r8, QWORD PTR -112[rbp]
mov rcx, QWORD PTR -120[rbp]
lea rdx, -200[rbp]
lea rsi, -184[rbp]
lea rax, -204[rbp]
sub rsp, 8
push rdi
push QWORD PTR -248[rbp]
push QWORD PTR -160[rbp]
mov rdi, rax
call ZSTDv05_decodeSeqHeaders@PLT
add rsp, 32
mov QWORD PTR -72[rbp], rax
mov rax, QWORD PTR -72[rbp]
mov rdi, rax
call ZSTDv05_isError@PLT
test rax, rax
je .L2
mov rax, QWORD PTR -72[rbp]
jmp .L14
.L2:
mov rax, QWORD PTR -72[rbp]
sal rax, 2
add QWORD PTR -160[rbp], rax
mov eax, DWORD PTR -204[rbp]
test eax, eax
je .L4
lea rax, -176[rbp]
mov edx, 8
mov esi, 0
mov rdi, rax
call memset@PLT
mov rax, QWORD PTR REPCODE_STARTVALUE[rip]
mov QWORD PTR -176[rbp], rax
mov rax, QWORD PTR -184[rbp]
mov QWORD PTR -16[rbp], rax
mov rdx, QWORD PTR -184[rbp]
mov rax, QWORD PTR -200[rbp]
sal rax, 2
add rax, rdx
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR REPCODE_STARTVALUE[rip]
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -152[rbp]
sub rax, QWORD PTR -160[rbp]
sar rax, 2
mov edx, eax
mov rcx, QWORD PTR -160[rbp]
lea rax, -48[rbp]
mov rsi, rcx
mov rdi, rax
call BITv05_initDStream@PLT
mov QWORD PTR -72[rbp], rax
mov rax, QWORD PTR -72[rbp]
mov rdi, rax
call ERR_isError@PLT
test rax, rax
je .L5
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L14
.L5:
mov rdx, QWORD PTR -120[rbp]
lea rax, -48[rbp]
lea rcx, -48[rbp]
add rcx, 12
mov rsi, rax
mov rdi, rcx
call FSEv05_initDState@PLT
mov rdx, QWORD PTR -104[rbp]
lea rax, -48[rbp]
lea rcx, -48[rbp]
add rcx, 8
mov rsi, rax
mov rdi, rcx
call FSEv05_initDState@PLT
mov rdx, QWORD PTR -112[rbp]
lea rax, -48[rbp]
lea rcx, -48[rbp]
add rcx, 4
mov rsi, rax
mov rdi, rcx
call FSEv05_initDState@PLT
jmp .L7
.L10:
mov eax, DWORD PTR -204[rbp]
sub eax, 1
mov DWORD PTR -204[rbp], eax
lea rdx, -48[rbp]
lea rax, -176[rbp]
mov rsi, rdx
mov rdi, rax
call ZSTDv05_decodeSequence@PLT
mov r8, QWORD PTR -96[rbp]
mov rdi, QWORD PTR -128[rbp]
lea rcx, -192[rbp]
mov rdx, QWORD PTR -176[rbp]
mov rsi, QWORD PTR -136[rbp]
mov rax, QWORD PTR -168[rbp]
push QWORD PTR -80[rbp]
push QWORD PTR -88[rbp]
mov r9, r8
mov r8, rdi
mov rdi, rax
call ZSTDv05_execSequence@PLT
add rsp, 16
mov QWORD PTR -64[rbp], rax
mov rax, QWORD PTR -64[rbp]
mov rdi, rax
call ZSTDv05_isError@PLT
test rax, rax
je .L8
mov rax, QWORD PTR -64[rbp]
jmp .L14
.L8:
mov rax, QWORD PTR -64[rbp]
sal rax, 2
add QWORD PTR -168[rbp], rax
.L7:
lea rax, -48[rbp]
mov rdi, rax
call BITv05_reloadDStream@PLT
mov rdx, QWORD PTR BITv05_DStream_completed[rip]
cmp rax, rdx
jg .L9
mov eax, DWORD PTR -204[rbp]
test eax, eax
jne .L10
.L9:
mov eax, DWORD PTR -204[rbp]
test eax, eax
je .L4
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L14
.L4:
mov rdx, QWORD PTR -192[rbp]
mov rax, QWORD PTR -128[rbp]
sub rax, rdx
sar rax, 2
mov QWORD PTR -56[rbp], rax
mov rax, QWORD PTR -192[rbp]
cmp QWORD PTR -128[rbp], rax
jnb .L12
mov eax, DWORD PTR corruption_detected[rip]
mov edi, eax
call ERROR@PLT
jmp .L14
.L12:
mov rax, QWORD PTR -56[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -168[rbp]
add rax, rdx
cmp QWORD PTR -136[rbp], rax
jnb .L13
mov eax, DWORD PTR dstSize_tooSmall[rip]
mov edi, eax
call ERROR@PLT
jmp .L14
.L13:
mov rcx, QWORD PTR -192[rbp]
mov rdx, QWORD PTR -56[rbp]
mov rax, QWORD PTR -168[rbp]
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
mov rax, QWORD PTR -56[rbp]
sal rax, 2
add QWORD PTR -168[rbp], rax
mov rax, QWORD PTR -168[rbp]
sub rax, QWORD PTR -144[rbp]
sar rax, 2
.L14:
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L15
call __stack_chk_fail@PLT
.L15:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_decompressSequences, .-ZSTDv05_decompressSequences
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_decompressSequences.c"
.option pic
.text
.comm BITv05_DStream_completed,8,8
.comm REPCODE_STARTVALUE,8,8
.comm corruption_detected,4,4
.comm dstSize_tooSmall,4,4
.align 1
.type ZSTDv05_decompressSequences, @function
ZSTDv05_decompressSequences:
addi sp,sp,-288
sd ra,280(sp)
sd s0,272(sp)
addi s0,sp,288
sd a0,-232(s0)
sd a1,-240(s0)
sd a2,-248(s0)
sd a3,-256(s0)
sd a4,-264(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-24(s0)
ld a5,-256(s0)
sd a5,-176(s0)
ld a5,-264(s0)
slli a5,a5,2
ld a4,-176(s0)
add a5,a4,a5
sd a5,-168(s0)
ld a5,-240(s0)
sd a5,-160(s0)
ld a5,-160(s0)
sd a5,-184(s0)
ld a5,-248(s0)
slli a5,a5,2
ld a4,-160(s0)
add a5,a4,a5
sd a5,-152(s0)
sd zero,-216(s0)
ld a5,-232(s0)
ld a5,64(a5)
sd a5,-208(s0)
ld a4,-208(s0)
ld a5,-232(s0)
lw a5,0(a5)
slli a5,a5,2
add a5,a4,a5
sd a5,-144(s0)
sw zero,-220(s0)
sd zero,-200(s0)
ld a5,-232(s0)
ld a5,8(a5)
sd a5,-136(s0)
ld a5,-232(s0)
ld a5,16(a5)
sd a5,-128(s0)
ld a5,-232(s0)
ld a5,24(a5)
sd a5,-120(s0)
ld a5,-232(s0)
ld a5,56(a5)
sd a5,-112(s0)
ld a5,-232(s0)
ld a5,48(a5)
sd a5,-104(s0)
ld a5,-232(s0)
ld a5,40(a5)
sd a5,-96(s0)
ld a5,-232(s0)
lw a5,32(a5)
addi a2,s0,-216
addi a1,s0,-200
addi a0,s0,-220
sd a5,0(sp)
ld a7,-264(s0)
ld a6,-176(s0)
ld a5,-120(s0)
ld a4,-128(s0)
ld a3,-136(s0)
call ZSTDv05_decodeSeqHeaders@plt
sd a0,-88(s0)
ld a0,-88(s0)
call ZSTDv05_isError@plt
mv a5,a0
beqz a5,.L2
ld a5,-88(s0)
j .L14
.L2:
ld a5,-88(s0)
slli a5,a5,2
ld a4,-176(s0)
add a5,a4,a5
sd a5,-176(s0)
lw a5,-220(s0)
beqz a5,.L4
addi a5,s0,-192
li a2,8
li a1,0
mv a0,a5
call memset@plt
la a5,REPCODE_STARTVALUE
ld a5,0(a5)
sd a5,-192(s0)
ld a5,-200(s0)
sd a5,-32(s0)
ld a4,-200(s0)
ld a5,-216(s0)
slli a5,a5,2
add a5,a4,a5
sd a5,-40(s0)
la a5,REPCODE_STARTVALUE
ld a5,0(a5)
sd a5,-48(s0)
ld a4,-168(s0)
ld a5,-176(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a4,a5
addi a5,s0,-64
mv a2,a4
ld a1,-176(s0)
mv a0,a5
call BITv05_initDStream@plt
sd a0,-88(s0)
ld a0,-88(s0)
call ERR_isError@plt
mv a5,a0
beqz a5,.L5
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L5:
addi a4,s0,-64
addi a5,s0,-64
addi a5,a5,12
ld a2,-136(s0)
mv a1,a4
mv a0,a5
call FSEv05_initDState@plt
addi a4,s0,-64
addi a5,s0,-64
addi a5,a5,8
ld a2,-120(s0)
mv a1,a4
mv a0,a5
call FSEv05_initDState@plt
addi a4,s0,-64
addi a5,s0,-64
addi a5,a5,4
ld a2,-128(s0)
mv a1,a4
mv a0,a5
call FSEv05_initDState@plt
j .L7
.L10:
lw a5,-220(s0)
addiw a5,a5,-1
sext.w a5,a5
sw a5,-220(s0)
addi a4,s0,-64
addi a5,s0,-192
mv a1,a4
mv a0,a5
call ZSTDv05_decodeSequence@plt
addi a3,s0,-208
ld a7,-96(s0)
ld a6,-104(s0)
ld a5,-112(s0)
ld a4,-144(s0)
ld a2,-192(s0)
ld a1,-152(s0)
ld a0,-184(s0)
call ZSTDv05_execSequence@plt
sd a0,-80(s0)
ld a0,-80(s0)
call ZSTDv05_isError@plt
mv a5,a0
beqz a5,.L8
ld a5,-80(s0)
j .L14
.L8:
ld a5,-80(s0)
slli a5,a5,2
ld a4,-184(s0)
add a5,a4,a5
sd a5,-184(s0)
.L7:
addi a5,s0,-64
mv a0,a5
call BITv05_reloadDStream@plt
mv a4,a0
la a5,BITv05_DStream_completed
ld a5,0(a5)
bgt a4,a5,.L9
lw a5,-220(s0)
bnez a5,.L10
.L9:
lw a5,-220(s0)
beqz a5,.L4
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L4:
ld a5,-208(s0)
ld a4,-144(s0)
sub a5,a4,a5
srai a5,a5,2
sd a5,-72(s0)
ld a5,-208(s0)
ld a4,-144(s0)
bgeu a4,a5,.L12
la a5,corruption_detected
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L12:
ld a5,-72(s0)
slli a5,a5,2
ld a4,-184(s0)
add a5,a4,a5
ld a4,-152(s0)
bgeu a4,a5,.L13
la a5,dstSize_tooSmall
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L14
.L13:
ld a5,-208(s0)
ld a2,-72(s0)
mv a1,a5
ld a0,-184(s0)
call memcpy@plt
ld a5,-72(s0)
slli a5,a5,2
ld a4,-184(s0)
add a5,a4,a5
sd a5,-184(s0)
ld a4,-184(s0)
ld a5,-160(s0)
sub a5,a4,a5
srai a5,a5,2
.L14:
mv a3,a5
la a5,__stack_chk_guard
ld a4,-24(s0)
ld a5,0(a5)
beq a4,a5,.L15
call __stack_chk_fail@plt
.L15:
mv a0,a3
ld ra,280(sp)
ld s0,272(sp)
addi sp,sp,288
jr ra
.size ZSTDv05_decompressSequences, .-ZSTDv05_decompressSequences
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_decompress_continueDCtx.c"
.intel_syntax noprefix
.text
.globl GENERIC
.bss
.align 4
.type GENERIC, @object
.size GENERIC, 4
GENERIC:
.zero 4
.globl ZSTDv05_blockHeaderSize
.align 8
.type ZSTDv05_blockHeaderSize, @object
.size ZSTDv05_blockHeaderSize, 8
ZSTDv05_blockHeaderSize:
.zero 8
.globl ZSTDv05_frameHeaderSize_min
.align 8
.type ZSTDv05_frameHeaderSize_min, @object
.size ZSTDv05_frameHeaderSize_min, 8
ZSTDv05_frameHeaderSize_min:
.zero 8
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.type ZSTDv05_decompress_continueDCtx, @function
ZSTDv05_decompress_continueDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 144
mov QWORD PTR -104[rbp], rdi
mov QWORD PTR -112[rbp], rsi
mov QWORD PTR -120[rbp], rdx
mov QWORD PTR -128[rbp], rcx
mov QWORD PTR -136[rbp], r8
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov rax, QWORD PTR -128[rbp]
mov QWORD PTR -80[rbp], rax
mov rax, QWORD PTR -136[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -80[rbp]
add rax, rdx
mov QWORD PTR -48[rbp], rax
mov rax, QWORD PTR -112[rbp]
mov QWORD PTR -40[rbp], rax
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR -72[rbp], rax
mov rax, QWORD PTR -120[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -136[rbp]
mov QWORD PTR -64[rbp], rax
lea rax, -84[rbp]
mov edx, 4
mov esi, 0
mov rdi, rax
call memset@PLT
mov rdx, QWORD PTR ZSTDv05_frameHeaderSize_min[rip]
mov rax, QWORD PTR ZSTDv05_blockHeaderSize[rip]
add rax, rdx
cmp QWORD PTR -136[rbp], rax
jnb .L2
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L19
.L2:
mov rdx, QWORD PTR ZSTDv05_frameHeaderSize_min[rip]
mov rcx, QWORD PTR -128[rbp]
mov rax, QWORD PTR -104[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTDv05_decodeFrameHeader_Part1@PLT
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call ZSTDv05_isError@PLT
test rax, rax
je .L4
mov rax, QWORD PTR -24[rbp]
jmp .L19
.L4:
mov rdx, QWORD PTR ZSTDv05_blockHeaderSize[rip]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
cmp QWORD PTR -136[rbp], rax
jnb .L5
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L19
.L5:
mov rax, QWORD PTR -24[rbp]
sal rax, 2
add QWORD PTR -80[rbp], rax
mov rax, QWORD PTR -24[rbp]
sub QWORD PTR -64[rbp], rax
mov rdx, QWORD PTR -24[rbp]
mov rcx, QWORD PTR -128[rbp]
mov rax, QWORD PTR -104[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTDv05_decodeFrameHeader_Part2@PLT
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call ZSTDv05_isError@PLT
test rax, rax
je .L6
mov rax, QWORD PTR -24[rbp]
jmp .L19
.L6:
mov QWORD PTR -56[rbp], 0
mov rax, QWORD PTR -48[rbp]
sub rax, QWORD PTR -80[rbp]
sar rax, 2
mov ecx, eax
lea rdx, -84[rbp]
mov rax, QWORD PTR -80[rbp]
mov esi, ecx
mov rdi, rax
call ZSTDv05_getcBlockSize@PLT
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call ZSTDv05_isError@PLT
test rax, rax
je .L7
mov rax, QWORD PTR -16[rbp]
jmp .L19
.L7:
mov rax, QWORD PTR ZSTDv05_blockHeaderSize[rip]
sal rax, 2
add QWORD PTR -80[rbp], rax
mov rax, QWORD PTR ZSTDv05_blockHeaderSize[rip]
sub QWORD PTR -64[rbp], rax
mov rax, QWORD PTR -16[rbp]
cmp rax, QWORD PTR -64[rbp]
jbe .L8
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L19
.L8:
mov eax, DWORD PTR -84[rbp]
cmp eax, 131
je .L9
cmp eax, 131
jg .L10
cmp eax, 130
je .L11
cmp eax, 130
jg .L10
cmp eax, 128
je .L12
cmp eax, 129
je .L13
jmp .L10
.L9:
mov rax, QWORD PTR -32[rbp]
sub rax, QWORD PTR -72[rbp]
sar rax, 2
mov edi, eax
mov rcx, QWORD PTR -16[rbp]
mov rdx, QWORD PTR -80[rbp]
mov rsi, QWORD PTR -72[rbp]
mov rax, QWORD PTR -104[rbp]
mov r8, rcx
mov rcx, rdx
mov edx, edi
mov rdi, rax
call ZSTDv05_decompressBlock_internal@PLT
mov QWORD PTR -56[rbp], rax
jmp .L14
.L13:
mov rax, QWORD PTR -32[rbp]
sub rax, QWORD PTR -72[rbp]
sar rax, 2
mov esi, eax
mov rcx, QWORD PTR -16[rbp]
mov rdx, QWORD PTR -80[rbp]
mov rax, QWORD PTR -72[rbp]
mov rdi, rax
call ZSTDv05_copyRawBlock@PLT
mov QWORD PTR -56[rbp], rax
jmp .L14
.L12:
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
jmp .L19
.L11:
cmp QWORD PTR -64[rbp], 0
je .L22
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
jmp .L19
.L10:
mov eax, DWORD PTR GENERIC[rip]
mov edi, eax
call ERROR@PLT
jmp .L19
.L22:
nop
.L14:
cmp QWORD PTR -16[rbp], 0
je .L23
mov rax, QWORD PTR -56[rbp]
mov rdi, rax
call ZSTDv05_isError@PLT
test rax, rax
je .L18
mov rax, QWORD PTR -56[rbp]
jmp .L19
.L18:
mov rax, QWORD PTR -56[rbp]
sal rax, 2
add QWORD PTR -72[rbp], rax
mov rax, QWORD PTR -16[rbp]
sal rax, 2
add QWORD PTR -80[rbp], rax
mov rax, QWORD PTR -16[rbp]
sub QWORD PTR -64[rbp], rax
jmp .L6
.L23:
nop
mov rax, QWORD PTR -72[rbp]
sub rax, QWORD PTR -40[rbp]
sar rax, 2
.L19:
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L20
call __stack_chk_fail@PLT
.L20:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_decompress_continueDCtx, .-ZSTDv05_decompress_continueDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_decompress_continueDCtx.c"
.option pic
.text
.comm GENERIC,4,4
.comm ZSTDv05_blockHeaderSize,8,8
.comm ZSTDv05_frameHeaderSize_min,8,8
.comm srcSize_wrong,4,4
.align 1
.type ZSTDv05_decompress_continueDCtx, @function
ZSTDv05_decompress_continueDCtx:
addi sp,sp,-160
sd ra,152(sp)
sd s0,144(sp)
addi s0,sp,160
sd a0,-120(s0)
sd a1,-128(s0)
sd a2,-136(s0)
sd a3,-144(s0)
sd a4,-152(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-24(s0)
ld a5,-144(s0)
sd a5,-96(s0)
ld a5,-152(s0)
slli a5,a5,2
ld a4,-96(s0)
add a5,a4,a5
sd a5,-64(s0)
ld a5,-128(s0)
sd a5,-56(s0)
ld a5,-56(s0)
sd a5,-88(s0)
ld a5,-136(s0)
slli a5,a5,2
ld a4,-56(s0)
add a5,a4,a5
sd a5,-48(s0)
ld a5,-152(s0)
sd a5,-80(s0)
addi a5,s0,-104
li a2,4
li a1,0
mv a0,a5
call memset@plt
la a5,ZSTDv05_frameHeaderSize_min
ld a4,0(a5)
la a5,ZSTDv05_blockHeaderSize
ld a5,0(a5)
add a5,a4,a5
ld a4,-152(s0)
bgeu a4,a5,.L2
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L19
.L2:
la a5,ZSTDv05_frameHeaderSize_min
ld a5,0(a5)
mv a2,a5
ld a1,-144(s0)
ld a0,-120(s0)
call ZSTDv05_decodeFrameHeader_Part1@plt
sd a0,-40(s0)
ld a0,-40(s0)
call ZSTDv05_isError@plt
mv a5,a0
beqz a5,.L4
ld a5,-40(s0)
j .L19
.L4:
la a5,ZSTDv05_blockHeaderSize
ld a4,0(a5)
ld a5,-40(s0)
add a5,a4,a5
ld a4,-152(s0)
bgeu a4,a5,.L5
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L19
.L5:
ld a5,-40(s0)
slli a5,a5,2
ld a4,-96(s0)
add a5,a4,a5
sd a5,-96(s0)
ld a4,-80(s0)
ld a5,-40(s0)
sub a5,a4,a5
sd a5,-80(s0)
ld a2,-40(s0)
ld a1,-144(s0)
ld a0,-120(s0)
call ZSTDv05_decodeFrameHeader_Part2@plt
sd a0,-40(s0)
ld a0,-40(s0)
call ZSTDv05_isError@plt
mv a5,a0
beqz a5,.L6
ld a5,-40(s0)
j .L19
.L6:
sd zero,-72(s0)
ld a4,-64(s0)
ld a5,-96(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a5,a5
addi a4,s0,-104
mv a2,a4
mv a1,a5
ld a0,-96(s0)
call ZSTDv05_getcBlockSize@plt
sd a0,-32(s0)
ld a0,-32(s0)
call ZSTDv05_isError@plt
mv a5,a0
beqz a5,.L7
ld a5,-32(s0)
j .L19
.L7:
la a5,ZSTDv05_blockHeaderSize
ld a5,0(a5)
slli a5,a5,2
ld a4,-96(s0)
add a5,a4,a5
sd a5,-96(s0)
la a5,ZSTDv05_blockHeaderSize
ld a5,0(a5)
ld a4,-80(s0)
sub a5,a4,a5
sd a5,-80(s0)
ld a4,-32(s0)
ld a5,-80(s0)
bleu a4,a5,.L8
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L19
.L8:
lw a5,-104(s0)
mv a3,a5
li a4,131
beq a3,a4,.L9
mv a3,a5
li a4,131
bgt a3,a4,.L10
mv a3,a5
li a4,130
beq a3,a4,.L11
mv a3,a5
li a4,130
bgt a3,a4,.L10
mv a3,a5
li a4,128
beq a3,a4,.L12
mv a4,a5
li a5,129
beq a4,a5,.L13
j .L10
.L9:
ld a4,-48(s0)
ld a5,-88(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a5,a5
ld a4,-32(s0)
ld a3,-96(s0)
mv a2,a5
ld a1,-88(s0)
ld a0,-120(s0)
call ZSTDv05_decompressBlock_internal@plt
sd a0,-72(s0)
j .L14
.L13:
ld a4,-48(s0)
ld a5,-88(s0)
sub a5,a4,a5
srai a5,a5,2
sext.w a5,a5
ld a3,-32(s0)
ld a2,-96(s0)
mv a1,a5
ld a0,-88(s0)
call ZSTDv05_copyRawBlock@plt
sd a0,-72(s0)
j .L14
.L12:
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L19
.L11:
ld a5,-80(s0)
beqz a5,.L22
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L19
.L10:
la a5,GENERIC
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L19
.L22:
nop
.L14:
ld a5,-32(s0)
beqz a5,.L23
ld a0,-72(s0)
call ZSTDv05_isError@plt
mv a5,a0
beqz a5,.L18
ld a5,-72(s0)
j .L19
.L18:
ld a5,-72(s0)
slli a5,a5,2
ld a4,-88(s0)
add a5,a4,a5
sd a5,-88(s0)
ld a5,-32(s0)
slli a5,a5,2
ld a4,-96(s0)
add a5,a4,a5
sd a5,-96(s0)
ld a4,-80(s0)
ld a5,-32(s0)
sub a5,a4,a5
sd a5,-80(s0)
j .L6
.L23:
nop
ld a4,-88(s0)
ld a5,-56(s0)
sub a5,a4,a5
srai a5,a5,2
.L19:
mv a3,a5
la a5,__stack_chk_guard
ld a4,-24(s0)
ld a5,0(a5)
beq a4,a5,.L20
call __stack_chk_fail@plt
.L20:
mv a0,a3
ld ra,152(sp)
ld s0,144(sp)
addi sp,sp,160
jr ra
.size ZSTDv05_decompress_continueDCtx, .-ZSTDv05_decompress_continueDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_decompress_insertDictionary.c"
.intel_syntax noprefix
.text
.globl ZSTDv05_DICT_MAGIC
.bss
.align 8
.type ZSTDv05_DICT_MAGIC, @object
.size ZSTDv05_DICT_MAGIC, 8
ZSTDv05_DICT_MAGIC:
.zero 8
.globl dictionary_corrupted
.align 4
.type dictionary_corrupted, @object
.size dictionary_corrupted, 4
dictionary_corrupted:
.zero 4
.text
.type ZSTDv05_decompress_insertDictionary, @function
ZSTDv05_decompress_insertDictionary:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call MEM_readLE32@PLT
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR ZSTDv05_DICT_MAGIC[rip]
cmp QWORD PTR -16[rbp], rax
je .L2
mov rdx, QWORD PTR -40[rbp]
mov rcx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTDv05_refDictContent@PLT
mov eax, 0
jmp .L3
.L2:
add QWORD PTR -32[rbp], 4
sub QWORD PTR -40[rbp], 4
mov rdx, QWORD PTR -40[rbp]
mov rcx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTDv05_loadEntropy@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ZSTDv05_isError@PLT
test rax, rax
je .L4
mov eax, DWORD PTR dictionary_corrupted[rip]
mov edi, eax
call ERROR@PLT
jmp .L3
.L4:
mov rax, QWORD PTR -8[rbp]
add QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -8[rbp]
sub QWORD PTR -40[rbp], rax
mov rdx, QWORD PTR -40[rbp]
mov rcx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTDv05_refDictContent@PLT
mov eax, 0
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_decompress_insertDictionary, .-ZSTDv05_decompress_insertDictionary
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_decompress_insertDictionary.c"
.option pic
.text
.comm ZSTDv05_DICT_MAGIC,8,8
.comm dictionary_corrupted,4,4
.align 1
.type ZSTDv05_decompress_insertDictionary, @function
ZSTDv05_decompress_insertDictionary:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
ld a0,-48(s0)
call MEM_readLE32@plt
sd a0,-32(s0)
la a5,ZSTDv05_DICT_MAGIC
ld a5,0(a5)
ld a4,-32(s0)
beq a4,a5,.L2
ld a2,-56(s0)
ld a1,-48(s0)
ld a0,-40(s0)
call ZSTDv05_refDictContent@plt
li a5,0
j .L3
.L2:
ld a5,-48(s0)
addi a5,a5,4
sd a5,-48(s0)
ld a5,-56(s0)
addi a5,a5,-4
sd a5,-56(s0)
ld a2,-56(s0)
ld a1,-48(s0)
ld a0,-40(s0)
call ZSTDv05_loadEntropy@plt
sd a0,-24(s0)
ld a0,-24(s0)
call ZSTDv05_isError@plt
mv a5,a0
beqz a5,.L4
la a5,dictionary_corrupted
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
j .L3
.L4:
ld a4,-48(s0)
ld a5,-24(s0)
add a5,a4,a5
sd a5,-48(s0)
ld a4,-56(s0)
ld a5,-24(s0)
sub a5,a4,a5
sd a5,-56(s0)
ld a2,-56(s0)
ld a1,-48(s0)
ld a0,-40(s0)
call ZSTDv05_refDictContent@plt
li a5,0
.L3:
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZSTDv05_decompress_insertDictionary, .-ZSTDv05_decompress_insertDictionary
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_decompress_usingDict.c"
.intel_syntax noprefix
.text
.globl ZSTDv05_decompress_usingDict
.type ZSTDv05_decompress_usingDict, @function
ZSTDv05_decompress_usingDict:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov QWORD PTR -32[rbp], rcx
mov QWORD PTR -40[rbp], r8
mov QWORD PTR -48[rbp], r9
mov rcx, QWORD PTR -48[rbp]
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 16[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTDv05_decompressBegin_usingDict@PLT
mov rdx, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call ZSTDv05_checkContinuity@PLT
mov rdi, QWORD PTR -40[rbp]
mov rcx, QWORD PTR -32[rbp]
mov rdx, QWORD PTR -24[rbp]
mov rsi, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
mov r8, rdi
mov rdi, rax
call ZSTDv05_decompress_continueDCtx@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_decompress_usingDict, .-ZSTDv05_decompress_usingDict
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_decompress_usingDict.c"
.option pic
.text
.align 1
.globl ZSTDv05_decompress_usingDict
.type ZSTDv05_decompress_usingDict, @function
ZSTDv05_decompress_usingDict:
addi sp,sp,-80
sd ra,72(sp)
sd s0,64(sp)
addi s0,sp,80
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
sd a3,-48(s0)
sd a4,-56(s0)
sd a5,-64(s0)
sd a6,-72(s0)
ld a2,-72(s0)
ld a1,-64(s0)
ld a0,-24(s0)
call ZSTDv05_decompressBegin_usingDict@plt
ld a1,-32(s0)
ld a0,-24(s0)
call ZSTDv05_checkContinuity@plt
ld a4,-56(s0)
ld a3,-48(s0)
ld a2,-40(s0)
ld a1,-32(s0)
ld a0,-24(s0)
call ZSTDv05_decompress_continueDCtx@plt
mv a5,a0
mv a0,a5
ld ra,72(sp)
ld s0,64(sp)
addi sp,sp,80
jr ra
.size ZSTDv05_decompress_usingDict, .-ZSTDv05_decompress_usingDict
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_decompress_usingPreparedDCtx.c"
.intel_syntax noprefix
.text
.globl ZSTDv05_decompress_usingPreparedDCtx
.type ZSTDv05_decompress_usingPreparedDCtx, @function
ZSTDv05_decompress_usingPreparedDCtx:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov QWORD PTR -32[rbp], rcx
mov QWORD PTR -40[rbp], r8
mov QWORD PTR -48[rbp], r9
mov rdx, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call ZSTDv05_copyDCtx@PLT
mov rdx, QWORD PTR -24[rbp]
mov rax, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call ZSTDv05_checkContinuity@PLT
mov rdi, QWORD PTR -48[rbp]
mov rcx, QWORD PTR -40[rbp]
mov rdx, QWORD PTR -32[rbp]
mov rsi, QWORD PTR -24[rbp]
mov rax, QWORD PTR -8[rbp]
mov r8, rdi
mov rdi, rax
call ZSTDv05_decompress_continueDCtx@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_decompress_usingPreparedDCtx, .-ZSTDv05_decompress_usingPreparedDCtx
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_decompress_usingPreparedDCtx.c"
.option pic
.text
.align 1
.globl ZSTDv05_decompress_usingPreparedDCtx
.type ZSTDv05_decompress_usingPreparedDCtx, @function
ZSTDv05_decompress_usingPreparedDCtx:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
sd a3,-48(s0)
sd a4,-56(s0)
sd a5,-64(s0)
ld a1,-32(s0)
ld a0,-24(s0)
call ZSTDv05_copyDCtx@plt
ld a1,-40(s0)
ld a0,-24(s0)
call ZSTDv05_checkContinuity@plt
ld a4,-64(s0)
ld a3,-56(s0)
ld a2,-48(s0)
ld a1,-40(s0)
ld a0,-24(s0)
call ZSTDv05_decompress_continueDCtx@plt
mv a5,a0
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size ZSTDv05_decompress_usingPreparedDCtx, .-ZSTDv05_decompress_usingPreparedDCtx
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_zstd_v05.c_ZSTDv05_findFrameSizeInfoLegacy.c"
.intel_syntax noprefix
.text
.globl BLOCKSIZE
.bss
.align 8
.type BLOCKSIZE, @object
.size BLOCKSIZE, 8
BLOCKSIZE:
.zero 8
.globl ZSTDv05_MAGICNUMBER
.align 8
.type ZSTDv05_MAGICNUMBER, @object
.size ZSTDv05_MAGICNUMBER, 8
ZSTDv05_MAGICNUMBER:
.zero 8
.globl ZSTDv05_blockHeaderSize
.align 8
.type ZSTDv05_blockHeaderSize, @object
.size ZSTDv05_blockHeaderSize, 8
ZSTDv05_blockHeaderSize:
.zero 8
.globl ZSTDv05_frameHeaderSize_min
.align 8
.type ZSTDv05_frameHeaderSize_min, @object
.size ZSTDv05_frameHeaderSize_min, 8
ZSTDv05_frameHeaderSize_min:
.zero 8
.globl prefix_unknown
.align 4
.type prefix_unknown, @object
.size prefix_unknown, 4
prefix_unknown:
.zero 4
.globl srcSize_wrong
.align 4
.type srcSize_wrong, @object
.size srcSize_wrong, 4
srcSize_wrong:
.zero 4
.text
.globl ZSTDv05_findFrameSizeInfoLegacy
.type ZSTDv05_findFrameSizeInfoLegacy, @function
ZSTDv05_findFrameSizeInfoLegacy:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 80
mov QWORD PTR -56[rbp], rdi
mov QWORD PTR -64[rbp], rsi
mov QWORD PTR -72[rbp], rdx
mov QWORD PTR -80[rbp], rcx
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov rax, QWORD PTR -56[rbp]
mov QWORD PTR -40[rbp], rax
mov rax, QWORD PTR -64[rbp]
mov QWORD PTR -32[rbp], rax
mov QWORD PTR -24[rbp], 0
mov rax, QWORD PTR ZSTDv05_frameHeaderSize_min[rip]
cmp QWORD PTR -64[rbp], rax
jnb .L2
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
mov rdx, rax
mov rcx, QWORD PTR -80[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTD_errorFrameSizeInfoLegacy@PLT
jmp .L1
.L2:
mov rax, QWORD PTR -56[rbp]
mov rdi, rax
call MEM_readLE32@PLT
mov rdx, QWORD PTR ZSTDv05_MAGICNUMBER[rip]
cmp rax, rdx
je .L4
mov eax, DWORD PTR prefix_unknown[rip]
mov edi, eax
call ERROR@PLT
mov rdx, rax
mov rcx, QWORD PTR -80[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTD_errorFrameSizeInfoLegacy@PLT
jmp .L1
.L4:
mov rax, QWORD PTR ZSTDv05_frameHeaderSize_min[rip]
sal rax, 2
add QWORD PTR -40[rbp], rax
mov rax, QWORD PTR ZSTDv05_frameHeaderSize_min[rip]
sub QWORD PTR -32[rbp], rax
.L9:
lea rdx, -44[rbp]
mov rcx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -40[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTDv05_getcBlockSize@PLT
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call ZSTDv05_isError@PLT
test rax, rax
je .L5
mov rdx, QWORD PTR -16[rbp]
mov rcx, QWORD PTR -80[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTD_errorFrameSizeInfoLegacy@PLT
jmp .L1
.L5:
mov rax, QWORD PTR ZSTDv05_blockHeaderSize[rip]
sal rax, 2
add QWORD PTR -40[rbp], rax
mov rax, QWORD PTR ZSTDv05_blockHeaderSize[rip]
sub QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -16[rbp]
cmp rax, QWORD PTR -32[rbp]
jbe .L6
mov eax, DWORD PTR srcSize_wrong[rip]
mov edi, eax
call ERROR@PLT
mov rdx, rax
mov rcx, QWORD PTR -80[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rcx
mov rdi, rax
call ZSTD_errorFrameSizeInfoLegacy@PLT
jmp .L1
.L6:
cmp QWORD PTR -16[rbp], 0
je .L13
mov rax, QWORD PTR -16[rbp]
sal rax, 2
add QWORD PTR -40[rbp], rax
mov rax, QWORD PTR -16[rbp]
sub QWORD PTR -32[rbp], rax
add QWORD PTR -24[rbp], 1
jmp .L9
.L13:
nop
mov rax, QWORD PTR -40[rbp]
sub rax, QWORD PTR -56[rbp]
sar rax, 2
mov rdx, rax
mov rax, QWORD PTR -72[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR BLOCKSIZE[rip]
imul rax, QWORD PTR -24[rbp]
mov rdx, rax
mov rax, QWORD PTR -80[rbp]
mov QWORD PTR [rax], rdx
.L1:
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L11
call __stack_chk_fail@PLT
.L11:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ZSTDv05_findFrameSizeInfoLegacy, .-ZSTDv05_findFrameSizeInfoLegacy
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_zstd_v05.c_ZSTDv05_findFrameSizeInfoLegacy.c"
.option pic
.text
.comm BLOCKSIZE,8,8
.comm ZSTDv05_MAGICNUMBER,8,8
.comm ZSTDv05_blockHeaderSize,8,8
.comm ZSTDv05_frameHeaderSize_min,8,8
.comm prefix_unknown,4,4
.comm srcSize_wrong,4,4
.align 1
.globl ZSTDv05_findFrameSizeInfoLegacy
.type ZSTDv05_findFrameSizeInfoLegacy, @function
ZSTDv05_findFrameSizeInfoLegacy:
addi sp,sp,-96
sd ra,88(sp)
sd s0,80(sp)
addi s0,sp,96
sd a0,-72(s0)
sd a1,-80(s0)
sd a2,-88(s0)
sd a3,-96(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-24(s0)
ld a5,-72(s0)
sd a5,-56(s0)
ld a5,-80(s0)
sd a5,-48(s0)
sd zero,-40(s0)
la a5,ZSTDv05_frameHeaderSize_min
ld a5,0(a5)
ld a4,-80(s0)
bgeu a4,a5,.L2
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
mv a2,a5
ld a1,-96(s0)
ld a0,-88(s0)
call ZSTD_errorFrameSizeInfoLegacy@plt
j .L1
.L2:
ld a0,-72(s0)
call MEM_readLE32@plt
mv a4,a0
la a5,ZSTDv05_MAGICNUMBER
ld a5,0(a5)
beq a4,a5,.L4
la a5,prefix_unknown
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
mv a2,a5
ld a1,-96(s0)
ld a0,-88(s0)
call ZSTD_errorFrameSizeInfoLegacy@plt
j .L1
.L4:
la a5,ZSTDv05_frameHeaderSize_min
ld a5,0(a5)
slli a5,a5,2
ld a4,-56(s0)
add a5,a4,a5
sd a5,-56(s0)
la a5,ZSTDv05_frameHeaderSize_min
ld a5,0(a5)
ld a4,-48(s0)
sub a5,a4,a5
sd a5,-48(s0)
.L9:
addi a5,s0,-60
mv a2,a5
ld a1,-48(s0)
ld a0,-56(s0)
call ZSTDv05_getcBlockSize@plt
sd a0,-32(s0)
ld a0,-32(s0)
call ZSTDv05_isError@plt
mv a5,a0
beqz a5,.L5
ld a2,-32(s0)
ld a1,-96(s0)
ld a0,-88(s0)
call ZSTD_errorFrameSizeInfoLegacy@plt
j .L1
.L5:
la a5,ZSTDv05_blockHeaderSize
ld a5,0(a5)
slli a5,a5,2
ld a4,-56(s0)
add a5,a4,a5
sd a5,-56(s0)
la a5,ZSTDv05_blockHeaderSize
ld a5,0(a5)
mv a4,a5
ld a5,-48(s0)
sub a5,a5,a4
sd a5,-48(s0)
ld a4,-32(s0)
ld a5,-48(s0)
bleu a4,a5,.L6
la a5,srcSize_wrong
lw a5,0(a5)
mv a0,a5
call ERROR@plt
mv a5,a0
mv a2,a5
ld a1,-96(s0)
ld a0,-88(s0)
call ZSTD_errorFrameSizeInfoLegacy@plt
j .L1
.L6:
ld a5,-32(s0)
beqz a5,.L13
ld a5,-32(s0)
slli a5,a5,2
ld a4,-56(s0)
add a5,a4,a5
sd a5,-56(s0)
ld a4,-48(s0)
ld a5,-32(s0)
sub a5,a4,a5
sd a5,-48(s0)
ld a5,-40(s0)
addi a5,a5,1
sd a5,-40(s0)
j .L9
.L13:
nop
ld a4,-56(s0)
ld a5,-72(s0)
sub a5,a4,a5
srai a5,a5,2
mv a4,a5
ld a5,-88(s0)
sd a4,0(a5)
la a5,BLOCKSIZE
ld a4,0(a5)
ld a5,-40(s0)
mul a4,a4,a5
ld a5,-96(s0)
sd a4,0(a5)
.L1:
la a5,__stack_chk_guard
ld a4,-24(s0)
ld a5,0(a5)
beq a4,a5,.L11
call __stack_chk_fail@plt
.L11:
ld ra,88(sp)
ld s0,80(sp)
addi sp,sp,96
jr ra
.size ZSTDv05_findFrameSizeInfoLegacy, .-ZSTDv05_findFrameSizeInfoLegacy
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.