arm
stringlengths 122
113k
| x86
stringlengths 122
93.9k
| filename
stringlengths 33
207
|
---|---|---|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _SEQ_digest ; -- Begin function SEQ_digest
.p2align 2
_SEQ_digest: ; @SEQ_digest
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _XXH64_digest
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _SEQ_digest ## -- Begin function SEQ_digest
.p2align 4, 0x90
_SEQ_digest: ## @SEQ_digest
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
callq _XXH64_digest
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_seqgen.c_SEQ_digest.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _SEQ_gen ; -- Begin function SEQ_gen
.p2align 2
_SEQ_gen: ; @SEQ_gen
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur w1, [x29, #-20]
str w2, [sp, #24]
str x3, [sp, #16]
ldur w8, [x29, #-20]
subs w8, w8, #128
; kill: def $x8 killed $w8
str x8, [sp, #8] ; 8-byte Folded Spill
subs x8, x8, #3
cset w8, hi
tbnz w8, #0, LBB0_6
; %bb.1:
ldr x11, [sp, #8] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_2:
ldur x0, [x29, #-16]
ldr w1, [sp, #24]
ldr x2, [sp, #16]
bl _SEQ_gen_matchLength
stur x0, [x29, #-8]
b LBB0_7
LBB0_3:
ldur x0, [x29, #-16]
ldr w1, [sp, #24]
ldr x2, [sp, #16]
bl _SEQ_gen_litLength
stur x0, [x29, #-8]
b LBB0_7
LBB0_4:
ldur x0, [x29, #-16]
ldr w1, [sp, #24]
ldr x2, [sp, #16]
bl _SEQ_gen_offset
stur x0, [x29, #-8]
b LBB0_7
LBB0_5:
b LBB0_6
LBB0_6:
stur xzr, [x29, #-8]
b LBB0_7
LBB0_7:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_4-Ltmp0
.long LBB0_2-Ltmp0
.long LBB0_5-Ltmp0
.long LBB0_3-Ltmp0
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _SEQ_gen ## -- Begin function SEQ_gen
.p2align 4, 0x90
_SEQ_gen: ## @SEQ_gen
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movl %edx, -24(%rbp)
movq %rcx, -32(%rbp)
movl -20(%rbp), %eax
addl $-128, %eax
movl %eax, %ecx
movq %rcx, -40(%rbp) ## 8-byte Spill
subl $3, %eax
ja LBB0_5
## %bb.7:
movq -40(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_1:
movq -16(%rbp), %rdi
movl -24(%rbp), %esi
movq -32(%rbp), %rdx
callq _SEQ_gen_matchLength
movq %rax, -8(%rbp)
jmp LBB0_6
LBB0_2:
movq -16(%rbp), %rdi
movl -24(%rbp), %esi
movq -32(%rbp), %rdx
callq _SEQ_gen_litLength
movq %rax, -8(%rbp)
jmp LBB0_6
LBB0_3:
movq -16(%rbp), %rdi
movl -24(%rbp), %esi
movq -32(%rbp), %rdx
callq _SEQ_gen_offset
movq %rax, -8(%rbp)
jmp LBB0_6
LBB0_4:
jmp LBB0_5
LBB0_5:
movq $0, -8(%rbp)
LBB0_6:
movq -8(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
.long L0_0_set_3
.long L0_0_set_1
.long L0_0_set_4
.long L0_0_set_2
.end_data_region
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_seqgen.c_SEQ_gen.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function SEQ_gen_litLength
_SEQ_gen_litLength: ; @SEQ_gen_litLength
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _kMatchBytes@GOTPAGE
ldr x8, [x8, _kMatchBytes@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur w1, [x29, #-12]
stur x2, [x29, #-24]
ldur x8, [x29, #-24]
ldr x8, [x8, #8]
stur x8, [x29, #-32]
ldur x8, [x29, #-32]
ldur x9, [x29, #-24]
ldrsw x9, [x9]
add x8, x8, x9, lsl #2
stur x8, [x29, #-40]
ldur x8, [x29, #-32]
ldur x9, [x29, #-24]
ldrsw x9, [x9, #4]
add x8, x8, x9, lsl #2
str x8, [sp, #48]
ldur x8, [x29, #-8]
ldr w8, [x8]
subs w8, w8, #0
; kill: def $x8 killed $w8
str x8, [sp, #40] ; 8-byte Folded Spill
subs x8, x8, #3
cset w8, hi
tbnz w8, #0, LBB0_27
; %bb.1:
ldr x11, [sp, #40] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_2:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldur x10, [x29, #-8]
mov w9, #1
str w9, [x10]
ldur x9, [x29, #-8]
ldr w9, [x9, #16]
ldur x10, [x29, #-8]
str w9, [x10, #12]
ldr w0, [x8]
ldur w1, [x29, #-12]
bl _MIN
ldur x8, [x29, #-8]
str w0, [x8, #4]
b LBB0_3
LBB0_3:
b LBB0_4
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
subs w8, w8, #0
cset w8, ls
mov w9, #0
str w9, [sp, #28] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [sp, #48]
ldur x9, [x29, #-40]
subs x8, x8, x9
cset w8, lo
str w8, [sp, #28] ; 4-byte Folded Spill
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #28] ; 4-byte Folded Reload
tbz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_4 Depth=1
ldur x8, [x29, #-8]
add x0, x8, #16
bl _SEQ_randByte
orr w8, w0, #0x80
ldr x9, [sp, #48]
add x10, x9, #4
str x10, [sp, #48]
str w8, [x9]
ldur x9, [x29, #-8]
ldr w8, [x9, #4]
subs w8, w8, #1
str w8, [x9, #4]
b LBB0_4
LBB0_8:
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
subs w8, w8, #0
cset w8, ls
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
b LBB0_28
LBB0_10:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldur x10, [x29, #-8]
mov w9, #2
str w9, [x10]
ldur w9, [x29, #-12]
str w9, [sp, #24] ; 4-byte Folded Spill
ldr w0, [x8]
ldur w1, [x29, #-12]
bl _MIN
ldr w8, [sp, #24] ; 4-byte Folded Reload
subs w8, w8, w0
ldur x9, [x29, #-8]
str w8, [x9, #4]
b LBB0_11
LBB0_11:
b LBB0_12
LBB0_12: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
subs w8, w8, #0
cset w8, ls
mov w9, #0
str w9, [sp, #20] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_12 Depth=1
ldr x8, [sp, #48]
ldur x9, [x29, #-40]
subs x8, x8, x9
cset w8, lo
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #20] ; 4-byte Folded Reload
tbz w8, #0, LBB0_16
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_12 Depth=1
ldur x8, [x29, #-8]
add x0, x8, #16
bl _SEQ_randByte
and w8, w0, #0x7f
ldr x9, [sp, #48]
add x10, x9, #4
str x10, [sp, #48]
str w8, [x9]
ldur x9, [x29, #-8]
ldr w8, [x9, #4]
subs w8, w8, #1
str w8, [x9, #4]
b LBB0_12
LBB0_16:
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
subs w8, w8, #0
cset w8, ls
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17:
b LBB0_28
LBB0_18:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldur x10, [x29, #-8]
mov w9, #3
str w9, [x10]
ldr w0, [x8]
ldur w1, [x29, #-12]
bl _MIN
ldur x8, [x29, #-8]
str w0, [x8, #4]
b LBB0_19
LBB0_19:
b LBB0_20
LBB0_20: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
subs w8, w8, #0
cset w8, ls
mov w9, #0
str w9, [sp, #16] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_20 Depth=1
ldr x8, [sp, #48]
ldur x9, [x29, #-40]
subs x8, x8, x9
cset w8, lo
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_20 Depth=1
ldr w8, [sp, #16] ; 4-byte Folded Reload
tbz w8, #0, LBB0_24
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_20 Depth=1
ldur x8, [x29, #-8]
add x0, x8, #12
bl _SEQ_randByte
orr w8, w0, #0x80
ldr x9, [sp, #48]
add x10, x9, #4
str x10, [sp, #48]
str w8, [x9]
ldur x9, [x29, #-8]
ldr w8, [x9, #4]
subs w8, w8, #1
str w8, [x9, #4]
b LBB0_20
LBB0_24:
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
subs w8, w8, #0
cset w8, ls
tbnz w8, #0, LBB0_26
b LBB0_25
LBB0_25:
b LBB0_28
LBB0_26:
b LBB0_27
LBB0_27:
ldur x8, [x29, #-8]
str wzr, [x8]
ldur x8, [x29, #-8]
str wzr, [x8, #4]
b LBB0_28
LBB0_28:
ldur x8, [x29, #-8]
add x0, x8, #8
ldur x8, [x29, #-32]
ldur x9, [x29, #-24]
ldrsw x9, [x9, #4]
add x1, x8, x9, lsl #2
ldr x8, [sp, #48]
ldur x9, [x29, #-32]
subs x8, x8, x9
mov x9, #4
str x9, [sp, #8] ; 8-byte Folded Spill
sdiv x8, x8, x9
ldur x9, [x29, #-24]
ldrsw x9, [x9, #4]
subs x8, x8, x9
mov x2, x8
bl _XXH64_update
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [sp, #48]
ldur x10, [x29, #-32]
subs x8, x8, x10
sdiv x8, x8, x9
ldur x9, [x29, #-24]
; kill: def $w8 killed $w8 killed $x8
str w8, [x9, #4]
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
mov x0, x8
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_2-Ltmp0
.long LBB0_3-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_19-Ltmp0
; -- End function
.comm _kMatchBytes,4,2 ; @kMatchBytes
.no_dead_strip _SEQ_gen_litLength
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function SEQ_gen_litLength
_SEQ_gen_litLength: ## @SEQ_gen_litLength
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq %rdx, -24(%rbp)
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
movq -32(%rbp), %rax
movq -24(%rbp), %rcx
movslq (%rcx), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, -40(%rbp)
movq -32(%rbp), %rax
movq -24(%rbp), %rcx
movslq 4(%rcx), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, -48(%rbp)
movq -8(%rbp), %rax
movl (%rax), %eax
## kill: def $rax killed $eax
movq %rax, -56(%rbp) ## 8-byte Spill
subq $3, %rax
ja LBB0_26
## %bb.28:
movq -56(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_1:
movq -8(%rbp), %rax
movl $1, (%rax)
movq -8(%rbp), %rax
movl 16(%rax), %ecx
movq -8(%rbp), %rax
movl %ecx, 12(%rax)
movq _kMatchBytes@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl -12(%rbp), %esi
callq _MIN
movl %eax, %ecx
movq -8(%rbp), %rax
movl %ecx, 4(%rax)
LBB0_2:
jmp LBB0_3
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, 4(%rcx)
movb %al, -57(%rbp) ## 1-byte Spill
jbe LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -48(%rbp), %rax
cmpq -40(%rbp), %rax
setb %al
movb %al, -57(%rbp) ## 1-byte Spill
LBB0_5: ## in Loop: Header=BB0_3 Depth=1
movb -57(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_6
jmp LBB0_7
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
movq -8(%rbp), %rdi
addq $16, %rdi
callq _SEQ_randByte
movl %eax, %ecx
orl $128, %ecx
movq -48(%rbp), %rax
movq %rax, %rdx
addq $4, %rdx
movq %rdx, -48(%rbp)
movl %ecx, (%rax)
movq -8(%rbp), %rax
movl 4(%rax), %ecx
addl $-1, %ecx
movl %ecx, 4(%rax)
jmp LBB0_3
LBB0_7:
movq -8(%rbp), %rax
cmpl $0, 4(%rax)
jbe LBB0_9
## %bb.8:
jmp LBB0_27
LBB0_9:
movq -8(%rbp), %rax
movl $2, (%rax)
movl -12(%rbp), %eax
movl %eax, -64(%rbp) ## 4-byte Spill
movq _kMatchBytes@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl -12(%rbp), %esi
callq _MIN
movl -64(%rbp), %ecx ## 4-byte Reload
subl %eax, %ecx
movq -8(%rbp), %rax
movl %ecx, 4(%rax)
LBB0_10:
jmp LBB0_11
LBB0_11: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, 4(%rcx)
movb %al, -65(%rbp) ## 1-byte Spill
jbe LBB0_13
## %bb.12: ## in Loop: Header=BB0_11 Depth=1
movq -48(%rbp), %rax
cmpq -40(%rbp), %rax
setb %al
movb %al, -65(%rbp) ## 1-byte Spill
LBB0_13: ## in Loop: Header=BB0_11 Depth=1
movb -65(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_14
jmp LBB0_15
LBB0_14: ## in Loop: Header=BB0_11 Depth=1
movq -8(%rbp), %rdi
addq $16, %rdi
callq _SEQ_randByte
movl %eax, %ecx
andl $127, %ecx
movq -48(%rbp), %rax
movq %rax, %rdx
addq $4, %rdx
movq %rdx, -48(%rbp)
movl %ecx, (%rax)
movq -8(%rbp), %rax
movl 4(%rax), %ecx
addl $-1, %ecx
movl %ecx, 4(%rax)
jmp LBB0_11
LBB0_15:
movq -8(%rbp), %rax
cmpl $0, 4(%rax)
jbe LBB0_17
## %bb.16:
jmp LBB0_27
LBB0_17:
movq -8(%rbp), %rax
movl $3, (%rax)
movq _kMatchBytes@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl -12(%rbp), %esi
callq _MIN
movl %eax, %ecx
movq -8(%rbp), %rax
movl %ecx, 4(%rax)
LBB0_18:
jmp LBB0_19
LBB0_19: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, 4(%rcx)
movb %al, -66(%rbp) ## 1-byte Spill
jbe LBB0_21
## %bb.20: ## in Loop: Header=BB0_19 Depth=1
movq -48(%rbp), %rax
cmpq -40(%rbp), %rax
setb %al
movb %al, -66(%rbp) ## 1-byte Spill
LBB0_21: ## in Loop: Header=BB0_19 Depth=1
movb -66(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_22
jmp LBB0_23
LBB0_22: ## in Loop: Header=BB0_19 Depth=1
movq -8(%rbp), %rdi
addq $12, %rdi
callq _SEQ_randByte
movl %eax, %ecx
orl $128, %ecx
movq -48(%rbp), %rax
movq %rax, %rdx
addq $4, %rdx
movq %rdx, -48(%rbp)
movl %ecx, (%rax)
movq -8(%rbp), %rax
movl 4(%rax), %ecx
addl $-1, %ecx
movl %ecx, 4(%rax)
jmp LBB0_19
LBB0_23:
movq -8(%rbp), %rax
cmpl $0, 4(%rax)
jbe LBB0_25
## %bb.24:
jmp LBB0_27
LBB0_25:
jmp LBB0_26
LBB0_26:
movq -8(%rbp), %rax
movl $0, (%rax)
movq -8(%rbp), %rax
movl $0, 4(%rax)
LBB0_27:
movq -8(%rbp), %rdi
addq $8, %rdi
movq -32(%rbp), %rsi
movq -24(%rbp), %rax
movslq 4(%rax), %rax
shlq $2, %rax
addq %rax, %rsi
movq -48(%rbp), %rax
movq -32(%rbp), %rcx
subq %rcx, %rax
sarq $2, %rax
movq -24(%rbp), %rcx
movslq 4(%rcx), %rcx
subq %rcx, %rax
movl %eax, %edx
callq _XXH64_update
movq -48(%rbp), %rax
movq -32(%rbp), %rcx
subq %rcx, %rax
sarq $2, %rax
movl %eax, %ecx
movq -24(%rbp), %rax
movl %ecx, 4(%rax)
movq -8(%rbp), %rax
movl 4(%rax), %eax
## kill: def $rax killed $eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
.long L0_0_set_1
.long L0_0_set_2
.long L0_0_set_10
.long L0_0_set_18
.end_data_region
## -- End function
.comm _kMatchBytes,4,2 ## @kMatchBytes
.no_dead_strip _SEQ_gen_litLength
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_seqgen.c_SEQ_gen_litLength.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function SEQ_gen_matchLength
_SEQ_gen_matchLength: ; @SEQ_gen_matchLength
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
stur x2, [x29, #-24]
ldur x8, [x29, #-24]
ldr x8, [x8, #8]
stur x8, [x29, #-32]
ldur x8, [x29, #-32]
ldur x9, [x29, #-24]
ldrsw x9, [x9]
add x8, x8, x9, lsl #2
str x8, [sp, #40]
ldur x8, [x29, #-32]
ldur x9, [x29, #-24]
ldrsw x9, [x9, #4]
add x8, x8, x9, lsl #2
str x8, [sp, #32]
ldur x8, [x29, #-8]
ldr w8, [x8]
str w8, [sp, #20] ; 4-byte Folded Spill
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
ldr w8, [sp, #20] ; 4-byte Folded Reload
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_2
LBB0_2:
ldr w8, [sp, #20] ; 4-byte Folded Reload
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB0_14
b LBB0_20
LBB0_3:
ldr x8, [sp, #32]
ldr x9, [sp, #40]
subs x8, x8, x9
cset w8, lo
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldur x9, [x29, #-8]
mov w8, #1
str w8, [x9, #4]
b LBB0_21
LBB0_5:
ldur x8, [x29, #-8]
add x0, x8, #16
bl _SEQ_randByte
and w8, w0, #0xff
ldr x9, [sp, #32]
str w8, [x9]
b LBB0_6
LBB0_6: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
add x0, x8, #16
bl _SEQ_randByte
and w8, w0, #0xff
ldur x9, [x29, #-8]
str w8, [x9, #8]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_6 Depth=1
ldr x8, [sp, #32]
ldr w8, [x8]
ldur x9, [x29, #-8]
ldr w9, [x9, #8]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_8
LBB0_8:
ldr x8, [sp, #32]
add x8, x8, #4
str x8, [sp, #32]
ldur x9, [x29, #-8]
mov w8, #1
str w8, [x9]
ldur w8, [x29, #-12]
add w8, w8, #1
ldur x9, [x29, #-8]
str w8, [x9, #4]
b LBB0_9
LBB0_9:
ldur x8, [x29, #-8]
ldr w0, [x8, #4]
ldr x8, [sp, #40]
ldr x9, [sp, #32]
subs x8, x8, x9
mov x9, #4
sdiv x1, x8, x9
bl _MIN
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ls
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldr x0, [sp, #32]
ldur x8, [x29, #-8]
ldr w1, [x8, #8]
ldr x2, [sp, #24]
bl _memset
ldr x9, [sp, #24]
ldr x8, [sp, #32]
add x8, x8, x9, lsl #2
str x8, [sp, #32]
ldr x10, [sp, #24]
ldur x9, [x29, #-8]
ldrsw x8, [x9, #4]
subs x8, x8, x10
; kill: def $w8 killed $w8 killed $x8
str w8, [x9, #4]
b LBB0_11
LBB0_11:
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
b LBB0_21
LBB0_13:
ldur x9, [x29, #-8]
mov w8, #2
str w8, [x9]
b LBB0_14
LBB0_14:
ldr x8, [sp, #32]
ldr x9, [sp, #40]
subs x8, x8, x9
cset w8, lo
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15:
ldur x9, [x29, #-8]
mov w8, #1
str w8, [x9, #4]
b LBB0_21
LBB0_16:
b LBB0_17
LBB0_17: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
add x0, x8, #16
bl _SEQ_randByte
and w8, w0, #0xff
ldr x9, [sp, #32]
str w8, [x9]
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_17 Depth=1
ldr x8, [sp, #32]
ldr w8, [x8]
ldur x9, [x29, #-8]
ldr w9, [x9, #8]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_17
b LBB0_19
LBB0_19:
ldr x8, [sp, #32]
add x8, x8, #4
str x8, [sp, #32]
b LBB0_20
LBB0_20:
ldur x8, [x29, #-8]
str wzr, [x8]
ldur x8, [x29, #-8]
str wzr, [x8, #4]
b LBB0_21
LBB0_21:
ldur x8, [x29, #-8]
add x0, x8, #12
ldur x8, [x29, #-32]
ldur x9, [x29, #-24]
ldrsw x9, [x9, #4]
add x1, x8, x9, lsl #2
ldr x8, [sp, #32]
ldur x9, [x29, #-32]
subs x8, x8, x9
mov x9, #4
str x9, [sp, #8] ; 8-byte Folded Spill
sdiv x8, x8, x9
ldur x9, [x29, #-24]
ldrsw x9, [x9, #4]
subs x8, x8, x9
mov x2, x8
bl _XXH64_update
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [sp, #32]
ldur x10, [x29, #-32]
subs x8, x8, x10
sdiv x8, x8, x9
ldur x9, [x29, #-24]
; kill: def $w8 killed $w8 killed $x8
str w8, [x9, #4]
ldur x8, [x29, #-8]
ldrsw x0, [x8, #4]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.no_dead_strip _SEQ_gen_matchLength
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function SEQ_gen_matchLength
_SEQ_gen_matchLength: ## @SEQ_gen_matchLength
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq %rdx, -24(%rbp)
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
movq -32(%rbp), %rax
movq -24(%rbp), %rcx
movslq (%rcx), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, -40(%rbp)
movq -32(%rbp), %rax
movq -24(%rbp), %rcx
movslq 4(%rcx), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, -48(%rbp)
movq -8(%rbp), %rax
movl (%rax), %eax
movl %eax, -60(%rbp) ## 4-byte Spill
testl %eax, %eax
je LBB0_1
jmp LBB0_20
LBB0_20:
movl -60(%rbp), %eax ## 4-byte Reload
subl $1, %eax
je LBB0_7
jmp LBB0_21
LBB0_21:
movl -60(%rbp), %eax ## 4-byte Reload
subl $2, %eax
je LBB0_12
jmp LBB0_18
LBB0_1:
movq -48(%rbp), %rax
cmpq -40(%rbp), %rax
jb LBB0_3
## %bb.2:
movq -8(%rbp), %rax
movl $1, 4(%rax)
jmp LBB0_19
LBB0_3:
movq -8(%rbp), %rdi
addq $16, %rdi
callq _SEQ_randByte
movl %eax, %ecx
andl $255, %ecx
movq -48(%rbp), %rax
movl %ecx, (%rax)
LBB0_4: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rdi
addq $16, %rdi
callq _SEQ_randByte
movl %eax, %ecx
andl $255, %ecx
movq -8(%rbp), %rax
movl %ecx, 8(%rax)
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movq -48(%rbp), %rax
movl (%rax), %eax
movq -8(%rbp), %rcx
cmpl 8(%rcx), %eax
je LBB0_4
## %bb.6:
movq -48(%rbp), %rax
addq $4, %rax
movq %rax, -48(%rbp)
movq -8(%rbp), %rax
movl $1, (%rax)
movl -12(%rbp), %ecx
addl $1, %ecx
movq -8(%rbp), %rax
movl %ecx, 4(%rax)
LBB0_7:
movq -8(%rbp), %rax
movl 4(%rax), %edi
movq -40(%rbp), %rsi
movq -48(%rbp), %rax
subq %rax, %rsi
sarq $2, %rsi
callq _MIN
movq %rax, -56(%rbp)
cmpq $0, -56(%rbp)
jbe LBB0_9
## %bb.8:
movq -48(%rbp), %rdi
movq -8(%rbp), %rax
movl 8(%rax), %esi
movq -56(%rbp), %rdx
callq _memset
movq -56(%rbp), %rax
shlq $2, %rax
addq -48(%rbp), %rax
movq %rax, -48(%rbp)
movq -56(%rbp), %rdx
movq -8(%rbp), %rax
movslq 4(%rax), %rcx
subq %rdx, %rcx
## kill: def $ecx killed $ecx killed $rcx
movl %ecx, 4(%rax)
LBB0_9:
movq -8(%rbp), %rax
cmpl $0, 4(%rax)
jle LBB0_11
## %bb.10:
jmp LBB0_19
LBB0_11:
movq -8(%rbp), %rax
movl $2, (%rax)
LBB0_12:
movq -48(%rbp), %rax
cmpq -40(%rbp), %rax
jb LBB0_14
## %bb.13:
movq -8(%rbp), %rax
movl $1, 4(%rax)
jmp LBB0_19
LBB0_14:
jmp LBB0_15
LBB0_15: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rdi
addq $16, %rdi
callq _SEQ_randByte
movl %eax, %ecx
andl $255, %ecx
movq -48(%rbp), %rax
movl %ecx, (%rax)
## %bb.16: ## in Loop: Header=BB0_15 Depth=1
movq -48(%rbp), %rax
movl (%rax), %eax
movq -8(%rbp), %rcx
cmpl 8(%rcx), %eax
je LBB0_15
## %bb.17:
movq -48(%rbp), %rax
addq $4, %rax
movq %rax, -48(%rbp)
LBB0_18:
movq -8(%rbp), %rax
movl $0, (%rax)
movq -8(%rbp), %rax
movl $0, 4(%rax)
LBB0_19:
movq -8(%rbp), %rdi
addq $12, %rdi
movq -32(%rbp), %rsi
movq -24(%rbp), %rax
movslq 4(%rax), %rax
shlq $2, %rax
addq %rax, %rsi
movq -48(%rbp), %rax
movq -32(%rbp), %rcx
subq %rcx, %rax
sarq $2, %rax
movq -24(%rbp), %rcx
movslq 4(%rcx), %rcx
subq %rcx, %rax
movl %eax, %edx
callq _XXH64_update
movq -48(%rbp), %rax
movq -32(%rbp), %rcx
subq %rcx, %rax
sarq $2, %rax
movl %eax, %ecx
movq -24(%rbp), %rax
movl %ecx, 4(%rax)
movq -8(%rbp), %rax
movslq 4(%rax), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _SEQ_gen_matchLength
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_seqgen.c_SEQ_gen_matchLength.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function SEQ_gen_offset
_SEQ_gen_offset: ; @SEQ_gen_offset
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _kMatchBytes@GOTPAGE
ldr x8, [x8, _kMatchBytes@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur w1, [x29, #-12]
stur x2, [x29, #-24]
ldur x8, [x29, #-24]
ldr x8, [x8, #8]
stur x8, [x29, #-32]
ldur x8, [x29, #-32]
ldur x9, [x29, #-24]
ldrsw x9, [x9]
add x8, x8, x9, lsl #2
stur x8, [x29, #-40]
ldur x8, [x29, #-32]
ldur x9, [x29, #-24]
ldrsw x9, [x9, #4]
add x8, x8, x9, lsl #2
str x8, [sp, #48]
ldur x8, [x29, #-8]
ldr w8, [x8]
subs w8, w8, #0
; kill: def $x8 killed $w8
str x8, [sp, #32] ; 8-byte Folded Spill
subs x8, x8, #3
cset w8, hi
tbnz w8, #0, LBB0_24
; %bb.1:
ldr x11, [sp, #32] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_2:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x10, [x29, #-8]
mov w9, #1
str w9, [x10]
ldur x9, [x29, #-8]
ldr w9, [x9, #16]
ldur x10, [x29, #-8]
str w9, [x10, #12]
ldur w0, [x29, #-12]
ldr x1, [x8]
bl _MIN
ldur x8, [x29, #-8]
str w0, [x8, #4]
b LBB0_3
LBB0_3:
b LBB0_4
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
subs w8, w8, #0
cset w8, ls
mov w9, #0
str w9, [sp, #20] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [sp, #48]
ldur x9, [x29, #-40]
subs x8, x8, x9
cset w8, lo
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #20] ; 4-byte Folded Reload
tbz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_4 Depth=1
ldur x8, [x29, #-8]
add x0, x8, #16
bl _SEQ_randByte
orr w8, w0, #0x80
ldr x9, [sp, #48]
add x10, x9, #4
str x10, [sp, #48]
str w8, [x9]
ldur x9, [x29, #-8]
ldr w8, [x9, #4]
subs w8, w8, #1
str w8, [x9, #4]
b LBB0_4
LBB0_8:
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
subs w8, w8, #0
cset w8, ls
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
b LBB0_25
LBB0_10:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x10, [x29, #-8]
mov w9, #2
str w9, [x10]
ldur w9, [x29, #-12]
str w9, [sp, #16] ; 4-byte Folded Spill
ldur w0, [x29, #-12]
ldr x1, [x8]
bl _MIN
ldr w8, [sp, #16] ; 4-byte Folded Reload
subs w8, w8, w0
ldur x9, [x29, #-8]
str w8, [x9, #4]
b LBB0_11
LBB0_11:
ldur x8, [x29, #-8]
ldr w0, [x8, #4]
ldur x8, [x29, #-40]
ldr x9, [sp, #48]
subs x8, x8, x9
mov x9, #4
sdiv x1, x8, x9
bl _MIN
mov w8, w0
; kill: def $x8 killed $w8
str x8, [sp, #40]
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, ls
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
ldr x0, [sp, #48]
ldr x2, [sp, #40]
mov w1, #0
bl _memset
ldr x9, [sp, #40]
ldr x8, [sp, #48]
add x8, x8, x9, lsl #2
str x8, [sp, #48]
ldr x10, [sp, #40]
ldur x9, [x29, #-8]
ldr w8, [x9, #4]
; kill: def $x8 killed $w8
subs x8, x8, x10
; kill: def $w8 killed $w8 killed $x8
str w8, [x9, #4]
b LBB0_13
LBB0_13:
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
subs w8, w8, #0
cset w8, ls
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
b LBB0_25
LBB0_15:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x10, [x29, #-8]
mov w9, #3
str w9, [x10]
ldur w0, [x29, #-12]
ldr x1, [x8]
bl _MIN
ldur x8, [x29, #-8]
str w0, [x8, #4]
b LBB0_16
LBB0_16:
b LBB0_17
LBB0_17: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
subs w8, w8, #0
cset w8, ls
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_17 Depth=1
ldr x8, [sp, #48]
ldur x9, [x29, #-40]
subs x8, x8, x9
cset w8, lo
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_17 Depth=1
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB0_21
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_17 Depth=1
ldur x8, [x29, #-8]
add x0, x8, #12
bl _SEQ_randByte
orr w8, w0, #0x80
ldr x9, [sp, #48]
add x10, x9, #4
str x10, [sp, #48]
str w8, [x9]
ldur x9, [x29, #-8]
ldr w8, [x9, #4]
subs w8, w8, #1
str w8, [x9, #4]
b LBB0_17
LBB0_21:
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
subs w8, w8, #0
cset w8, ls
tbnz w8, #0, LBB0_23
b LBB0_22
LBB0_22:
b LBB0_25
LBB0_23:
b LBB0_24
LBB0_24:
ldur x8, [x29, #-8]
str wzr, [x8]
ldur x8, [x29, #-8]
str wzr, [x8, #4]
b LBB0_25
LBB0_25:
ldur x8, [x29, #-8]
add x0, x8, #8
ldur x8, [x29, #-32]
ldur x9, [x29, #-24]
ldrsw x9, [x9, #4]
add x1, x8, x9, lsl #2
ldr x8, [sp, #48]
ldur x9, [x29, #-32]
subs x8, x8, x9
mov x9, #4
str x9, [sp] ; 8-byte Folded Spill
sdiv x8, x8, x9
ldur x9, [x29, #-24]
ldrsw x9, [x9, #4]
subs x8, x8, x9
mov x2, x8
bl _XXH64_update
ldr x9, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #48]
ldur x10, [x29, #-32]
subs x8, x8, x10
sdiv x8, x8, x9
ldur x9, [x29, #-24]
; kill: def $w8 killed $w8 killed $x8
str w8, [x9, #4]
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
mov x0, x8
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_2-Ltmp0
.long LBB0_3-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_16-Ltmp0
; -- End function
.comm _kMatchBytes,8,3 ; @kMatchBytes
.no_dead_strip _SEQ_gen_offset
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function SEQ_gen_offset
_SEQ_gen_offset: ## @SEQ_gen_offset
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq %rdx, -24(%rbp)
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
movq -32(%rbp), %rax
movq -24(%rbp), %rcx
movslq (%rcx), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, -40(%rbp)
movq -32(%rbp), %rax
movq -24(%rbp), %rcx
movslq 4(%rcx), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, -48(%rbp)
movq -8(%rbp), %rax
movl (%rax), %eax
## kill: def $rax killed $eax
movq %rax, -64(%rbp) ## 8-byte Spill
subq $3, %rax
ja LBB0_23
## %bb.25:
movq -64(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_1:
movq -8(%rbp), %rax
movl $1, (%rax)
movq -8(%rbp), %rax
movl 16(%rax), %ecx
movq -8(%rbp), %rax
movl %ecx, 12(%rax)
movl -12(%rbp), %edi
movq _kMatchBytes@GOTPCREL(%rip), %rax
movq (%rax), %rsi
callq _MIN
movl %eax, %ecx
movq -8(%rbp), %rax
movl %ecx, 4(%rax)
LBB0_2:
jmp LBB0_3
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, 4(%rcx)
movb %al, -65(%rbp) ## 1-byte Spill
jbe LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -48(%rbp), %rax
cmpq -40(%rbp), %rax
setb %al
movb %al, -65(%rbp) ## 1-byte Spill
LBB0_5: ## in Loop: Header=BB0_3 Depth=1
movb -65(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_6
jmp LBB0_7
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
movq -8(%rbp), %rdi
addq $16, %rdi
callq _SEQ_randByte
movl %eax, %ecx
orl $128, %ecx
movq -48(%rbp), %rax
movq %rax, %rdx
addq $4, %rdx
movq %rdx, -48(%rbp)
movl %ecx, (%rax)
movq -8(%rbp), %rax
movl 4(%rax), %ecx
addl $-1, %ecx
movl %ecx, 4(%rax)
jmp LBB0_3
LBB0_7:
movq -8(%rbp), %rax
cmpl $0, 4(%rax)
jbe LBB0_9
## %bb.8:
jmp LBB0_24
LBB0_9:
movq -8(%rbp), %rax
movl $2, (%rax)
movl -12(%rbp), %eax
movl %eax, -72(%rbp) ## 4-byte Spill
movl -12(%rbp), %edi
movq _kMatchBytes@GOTPCREL(%rip), %rax
movq (%rax), %rsi
callq _MIN
movl -72(%rbp), %ecx ## 4-byte Reload
subl %eax, %ecx
movq -8(%rbp), %rax
movl %ecx, 4(%rax)
LBB0_10:
movq -8(%rbp), %rax
movl 4(%rax), %edi
movq -40(%rbp), %rsi
movq -48(%rbp), %rax
subq %rax, %rsi
sarq $2, %rsi
callq _MIN
movl %eax, %eax
## kill: def $rax killed $eax
movq %rax, -56(%rbp)
cmpq $0, -56(%rbp)
jbe LBB0_12
## %bb.11:
movq -48(%rbp), %rdi
movq -56(%rbp), %rdx
xorl %esi, %esi
callq _memset
movq -56(%rbp), %rax
shlq $2, %rax
addq -48(%rbp), %rax
movq %rax, -48(%rbp)
movq -56(%rbp), %rdx
movq -8(%rbp), %rax
movl 4(%rax), %ecx
## kill: def $rcx killed $ecx
subq %rdx, %rcx
## kill: def $ecx killed $ecx killed $rcx
movl %ecx, 4(%rax)
LBB0_12:
movq -8(%rbp), %rax
cmpl $0, 4(%rax)
jbe LBB0_14
## %bb.13:
jmp LBB0_24
LBB0_14:
movq -8(%rbp), %rax
movl $3, (%rax)
movl -12(%rbp), %edi
movq _kMatchBytes@GOTPCREL(%rip), %rax
movq (%rax), %rsi
callq _MIN
movl %eax, %ecx
movq -8(%rbp), %rax
movl %ecx, 4(%rax)
LBB0_15:
jmp LBB0_16
LBB0_16: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, 4(%rcx)
movb %al, -73(%rbp) ## 1-byte Spill
jbe LBB0_18
## %bb.17: ## in Loop: Header=BB0_16 Depth=1
movq -48(%rbp), %rax
cmpq -40(%rbp), %rax
setb %al
movb %al, -73(%rbp) ## 1-byte Spill
LBB0_18: ## in Loop: Header=BB0_16 Depth=1
movb -73(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_19
jmp LBB0_20
LBB0_19: ## in Loop: Header=BB0_16 Depth=1
movq -8(%rbp), %rdi
addq $12, %rdi
callq _SEQ_randByte
movl %eax, %ecx
orl $128, %ecx
movq -48(%rbp), %rax
movq %rax, %rdx
addq $4, %rdx
movq %rdx, -48(%rbp)
movl %ecx, (%rax)
movq -8(%rbp), %rax
movl 4(%rax), %ecx
addl $-1, %ecx
movl %ecx, 4(%rax)
jmp LBB0_16
LBB0_20:
movq -8(%rbp), %rax
cmpl $0, 4(%rax)
jbe LBB0_22
## %bb.21:
jmp LBB0_24
LBB0_22:
jmp LBB0_23
LBB0_23:
movq -8(%rbp), %rax
movl $0, (%rax)
movq -8(%rbp), %rax
movl $0, 4(%rax)
LBB0_24:
movq -8(%rbp), %rdi
addq $8, %rdi
movq -32(%rbp), %rsi
movq -24(%rbp), %rax
movslq 4(%rax), %rax
shlq $2, %rax
addq %rax, %rsi
movq -48(%rbp), %rax
movq -32(%rbp), %rcx
subq %rcx, %rax
sarq $2, %rax
movq -24(%rbp), %rcx
movslq 4(%rcx), %rcx
subq %rcx, %rax
movl %eax, %edx
callq _XXH64_update
movq -48(%rbp), %rax
movq -32(%rbp), %rcx
subq %rcx, %rax
sarq $2, %rax
movl %eax, %ecx
movq -24(%rbp), %rax
movl %ecx, 4(%rax)
movq -8(%rbp), %rax
movl 4(%rax), %eax
## kill: def $rax killed $eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
.long L0_0_set_1
.long L0_0_set_2
.long L0_0_set_10
.long L0_0_set_15
.end_data_region
## -- End function
.comm _kMatchBytes,8,3 ## @kMatchBytes
.no_dead_strip _SEQ_gen_offset
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_seqgen.c_SEQ_gen_offset.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _SEQ_initStream ; -- Begin function SEQ_initStream
.p2align 2
_SEQ_initStream: ; @SEQ_initStream
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str w0, [sp, #12]
add x8, sp, #16
str xzr, [sp, #24]
add x0, x8, #4
mov w1, #0
bl _XXH64_reset
ldr w8, [sp, #12]
str w8, [sp, #16]
ldr x0, [sp, #16]
ldr x1, [sp, #24]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _SEQ_initStream ## -- Begin function SEQ_initStream
.p2align 4, 0x90
_SEQ_initStream: ## @SEQ_initStream
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -20(%rbp)
movq $0, -8(%rbp)
leaq -12(%rbp), %rdi
xorl %esi, %esi
callq _XXH64_reset
movl -20(%rbp), %eax
movl %eax, -16(%rbp)
movq -16(%rbp), %rax
movq -8(%rbp), %rdx
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_seqgen.c_SEQ_initStream.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
str x1, [sp, #16]
adrp x8, _symbols@GOTPAGE
ldr x8, [x8, _symbols@GOTPAGEOFF]
ldr x8, [x8]
str x8, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr x1, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #8
str x8, [sp, #8]
b LBB0_1
LBB0_4:
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _symbols,8,3 ; @symbols
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%p\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movq _symbols@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
cmpq $0, (%rax)
je LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movq (%rax), %rsi
leaq L_.str(%rip), %rdi
callq _printf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
addq $8, %rax
movq %rax, -24(%rbp)
jmp LBB0_1
LBB0_4:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _symbols,8,3 ## @symbols
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%p\n"
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_symbols.c_main.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_rand
_FUZ_rand: ; @FUZ_rand
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr w8, [x8]
str w8, [sp, #4]
adrp x8, _prime1@GOTPAGE
ldr x8, [x8, _prime1@GOTPAGEOFF]
ldr w9, [x8]
ldr w8, [sp, #4]
mul w8, w8, w9
str w8, [sp, #4]
adrp x8, _prime2@GOTPAGE
ldr x8, [x8, _prime2@GOTPAGEOFF]
ldr x9, [x8]
ldrsw x8, [sp, #4]
add x8, x8, x9
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #4]
ldr w0, [sp, #4]
mov w1, #13
bl _FUZ_rotl32
str w0, [sp, #4]
ldr w8, [sp, #4]
ldr x9, [sp, #8]
str w8, [x9]
ldr w8, [sp, #4]
asr w0, w8, #5
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _prime1,4,2 ; @prime1
.comm _prime2,8,3 ; @prime2
.no_dead_strip _FUZ_rand
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_rand
_FUZ_rand: ## @FUZ_rand
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movl (%rax), %eax
movl %eax, -12(%rbp)
movq _prime1@GOTPCREL(%rip), %rax
movl (%rax), %eax
imull -12(%rbp), %eax
movl %eax, -12(%rbp)
movq _prime2@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movslq -12(%rbp), %rax
addq %rcx, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -12(%rbp)
movl -12(%rbp), %edi
movl $13, %esi
callq _FUZ_rotl32
movl %eax, -12(%rbp)
movl -12(%rbp), %ecx
movq -8(%rbp), %rax
movl %ecx, (%rax)
movl -12(%rbp), %eax
sarl $5, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _prime1,4,2 ## @prime1
.comm _prime2,8,3 ## @prime2
.no_dead_strip _FUZ_rand
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zbufftest.c_FUZ_rand.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_rLogLength
_FUZ_rLogLength: ; @FUZ_rLogLength
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
ldr x9, [sp, #16]
mov x8, #1
lsl x8, x8, x9
subs x8, x8, #1
str x8, [sp, #8]
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp] ; 8-byte Folded Spill
ldur x0, [x29, #-8]
bl _FUZ_rand
ldr x8, [sp] ; 8-byte Folded Reload
ldr x9, [sp, #8]
and x9, x0, x9
add x0, x8, x9
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _FUZ_rLogLength
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_rLogLength
_FUZ_rLogLength: ## @FUZ_rLogLength
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rcx
movl $1, %eax
## kill: def $cl killed $rcx
shlq %cl, %rax
subq $1, %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq -8(%rbp), %rdi
callq _FUZ_rand
movq %rax, %rcx
movq -32(%rbp), %rax ## 8-byte Reload
andq -24(%rbp), %rcx
addq %rcx, %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _FUZ_rLogLength
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zbufftest.c_FUZ_rLogLength.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_randomLength
_FUZ_randomLength: ; @FUZ_randomLength
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str w1, [sp, #4]
ldr x0, [sp, #8]
bl _FUZ_rand
ldr w9, [sp, #4]
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
str w8, [sp]
ldr x0, [sp, #8]
ldr w1, [sp]
bl _FUZ_rLogLength
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _FUZ_randomLength
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_randomLength
_FUZ_randomLength: ## @FUZ_randomLength
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq -8(%rbp), %rdi
callq _FUZ_rand
cltd
idivl -12(%rbp)
movl %edx, -16(%rbp)
movq -8(%rbp), %rdi
movl -16(%rbp), %esi
callq _FUZ_rLogLength
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _FUZ_randomLength
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zbufftest.c_FUZ_randomLength.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_usage
_FUZ_usage: ; @FUZ_usage
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
ldr x8, [sp, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
adrp x8, _nbTestsDefault@GOTPAGE
ldr x8, [x8, _nbTestsDefault@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _DISPLAY
adrp x8, _FUZ_COMPRESSIBILITY_DEFAULT@GOTPAGE
ldr x8, [x8, _FUZ_COMPRESSIBILITY_DEFAULT@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _DISPLAY
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Usage :\n"
l_.str.1: ; @.str.1
.asciz " %s [args]\n"
l_.str.2: ; @.str.2
.asciz "\n"
l_.str.3: ; @.str.3
.asciz "Arguments :\n"
l_.str.4: ; @.str.4
.asciz " -i# : Nb of tests (default:%u) \n"
.comm _nbTestsDefault,4,2 ; @nbTestsDefault
l_.str.5: ; @.str.5
.asciz " -s# : Select seed (default:prompt user)\n"
l_.str.6: ; @.str.6
.asciz " -t# : Select starting test number (default:0)\n"
l_.str.7: ; @.str.7
.asciz " -P# : Select compressibility in %% (default:%i%%)\n"
.comm _FUZ_COMPRESSIBILITY_DEFAULT,4,2 ; @FUZ_COMPRESSIBILITY_DEFAULT
l_.str.8: ; @.str.8
.asciz " -v : verbose\n"
l_.str.9: ; @.str.9
.asciz " -p : pause at the end\n"
l_.str.10: ; @.str.10
.asciz " -h : display help and exit\n"
.no_dead_strip _FUZ_usage
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_usage
_FUZ_usage: ## @FUZ_usage
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq -8(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _nbTestsDefault@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _FUZ_COMPRESSIBILITY_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _DISPLAY
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage :\n"
L_.str.1: ## @.str.1
.asciz " %s [args]\n"
L_.str.2: ## @.str.2
.asciz "\n"
L_.str.3: ## @.str.3
.asciz "Arguments :\n"
L_.str.4: ## @.str.4
.asciz " -i# : Nb of tests (default:%u) \n"
.comm _nbTestsDefault,4,2 ## @nbTestsDefault
L_.str.5: ## @.str.5
.asciz " -s# : Select seed (default:prompt user)\n"
L_.str.6: ## @.str.6
.asciz " -t# : Select starting test number (default:0)\n"
L_.str.7: ## @.str.7
.asciz " -P# : Select compressibility in %% (default:%i%%)\n"
.comm _FUZ_COMPRESSIBILITY_DEFAULT,4,2 ## @FUZ_COMPRESSIBILITY_DEFAULT
L_.str.8: ## @.str.8
.asciz " -v : verbose\n"
L_.str.9: ## @.str.9
.asciz " -p : pause at the end\n"
L_.str.10: ## @.str.10
.asciz " -h : display help and exit\n"
.no_dead_strip _FUZ_usage
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zbufftest.c_FUZ_usage.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ZBUFF_freeFunction
_ZBUFF_freeFunction: ; @ZBUFF_freeFunction
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str x1, [sp]
ldr x0, [sp]
bl _free
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _ZBUFF_freeFunction
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ZBUFF_freeFunction
_ZBUFF_freeFunction: ## @ZBUFF_freeFunction
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rdi
callq _free
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _ZBUFF_freeFunction
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zbufftest.c_ZBUFF_freeFunction.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ZBUFF_allocFunction
_ZBUFF_allocFunction: ; @ZBUFF_allocFunction
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
ldr x0, [sp, #16]
bl _malloc
str x0, [sp, #8]
ldr x0, [sp, #8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _ZBUFF_allocFunction
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ZBUFF_allocFunction
_ZBUFF_allocFunction: ## @ZBUFF_allocFunction
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rdi
callq _malloc
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _ZBUFF_allocFunction
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zbufftest.c_ZBUFF_allocFunction.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function findDiff
_findDiff: ; @findDiff
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #40]
str x1, [sp, #32]
str x2, [sp, #24]
ldr x8, [sp, #40]
str x8, [sp, #16]
ldr x8, [sp, #32]
str x8, [sp, #8]
str xzr, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldr x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr x9, [sp, #8]
ldr x10, [sp]
ldr x9, [x9, x10, lsl #3]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
b LBB0_6
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB0_1
LBB0_6:
ldr x0, [sp]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _findDiff
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function findDiff
_findDiff: ## @findDiff
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -8(%rbp), %rax
movq %rax, -32(%rbp)
movq -16(%rbp), %rax
movq %rax, -40(%rbp)
movq $0, -48(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -48(%rbp), %rax
cmpq -24(%rbp), %rax
jae LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -40(%rbp), %rcx
movq -48(%rbp), %rdx
cmpq (%rcx,%rdx,8), %rax
je LBB0_4
## %bb.3:
jmp LBB0_6
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -48(%rbp), %rax
addq $1, %rax
movq %rax, -48(%rbp)
jmp LBB0_1
LBB0_6:
movq -48(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _findDiff
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zbufftest.c_findDiff.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_freeDictionary
_FUZ_freeDictionary: ; @FUZ_freeDictionary
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x8, x0
stur w8, [x29, #-4]
ldur w0, [x29, #-4]
bl _free
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _FUZ_freeDictionary
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_freeDictionary
_FUZ_freeDictionary: ## @FUZ_freeDictionary
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -8(%rbp)
movl -8(%rbp), %edi
callq _free
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _FUZ_freeDictionary
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zstreamtest.c_FUZ_freeDictionary.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_createDictionary
_FUZ_createDictionary: ; @FUZ_createDictionary
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x8, [sp] ; 8-byte Folded Spill
adrp x8, _kBuffNull@GOTPAGE
ldr x8, [x8, _kBuffNull@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
ldr q0, [x8]
stur q0, [x29, #-64]
ldr x8, [x8, #16]
stur x8, [x29, #-48]
ldur x8, [x29, #-16]
ldur x9, [x29, #-24]
subs x9, x9, #1
add x8, x8, x9
ldur x9, [x29, #-24]
udiv x8, x8, x9
str x8, [sp, #72]
ldr x8, [sp, #72]
lsl x0, x8, #3
bl _malloc
str x0, [sp, #64]
ldr x8, [sp, #64]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x9, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr q0, [x8]
str q0, [x9]
ldr x8, [x8, #16]
str x8, [x9, #16]
b LBB0_11
LBB0_2:
ldur x0, [x29, #-32]
bl _malloc
stur x0, [x29, #-48]
ldur x8, [x29, #-48]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x0, [sp, #64]
bl _free
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x9, [sp] ; 8-byte Folded Reload
ldr q0, [x8]
str q0, [x9]
ldr x8, [x8, #16]
str x8, [x9, #16]
b LBB0_11
LBB0_4:
str xzr, [sp, #56]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #56]
ldr x9, [sp, #72]
subs x9, x9, #1
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldur x8, [x29, #-24]
ldr x9, [sp, #64]
ldr x10, [sp, #56]
str x8, [x9, x10, lsl #3]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #56]
add x8, x8, #1
str x8, [sp, #56]
b LBB0_5
LBB0_8:
ldur x8, [x29, #-16]
ldur x9, [x29, #-24]
ldr x10, [sp, #72]
subs x10, x10, #1
mul x9, x9, x10
subs x8, x8, x9
ldr x9, [sp, #64]
ldr x10, [sp, #72]
subs x10, x10, #1
str x8, [x9, x10, lsl #3]
ldur x0, [x29, #-48]
ldur x1, [x29, #-32]
ldur x2, [x29, #-8]
ldr x3, [sp, #64]
ldr x8, [sp, #72]
mov x4, x8
bl _ZDICT_trainFromBuffer
str x0, [sp, #48]
ldr x0, [sp, #64]
bl _free
ldr x0, [sp, #48]
bl _ZDICT_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
ldur q0, [x29, #-64]
add x0, sp, #16
str q0, [sp, #16]
ldur x8, [x29, #-48]
str x8, [sp, #32]
bl _FUZ_freeDictionary
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x9, [sp] ; 8-byte Folded Reload
ldr q0, [x8]
str q0, [x9]
ldr x8, [x8, #16]
str x8, [x9, #16]
b LBB0_11
LBB0_10:
ldr x9, [sp] ; 8-byte Folded Reload
ldur x8, [x29, #-32]
stur x8, [x29, #-64]
ldr x8, [sp, #48]
stur x8, [x29, #-56]
ldur q0, [x29, #-64]
str q0, [x9]
ldur x8, [x29, #-48]
str x8, [x9, #16]
b LBB0_11
LBB0_11:
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
add sp, sp, #160
ret
.cfi_endproc
; -- End function
.comm _kBuffNull,24,3 ; @kBuffNull
.no_dead_strip _FUZ_createDictionary
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_createDictionary
_FUZ_createDictionary: ## @FUZ_createDictionary
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
movq %rdi, -104(%rbp) ## 8-byte Spill
movq %rdi, -96(%rbp) ## 8-byte Spill
movq %rsi, -8(%rbp)
movq %rdx, -16(%rbp)
movq %rcx, -24(%rbp)
movq %r8, -32(%rbp)
movq _kBuffNull@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movq %rcx, -56(%rbp)
movq 8(%rax), %rcx
movq %rcx, -48(%rbp)
movq 16(%rax), %rax
movq %rax, -40(%rbp)
movq -16(%rbp), %rax
movq -24(%rbp), %rcx
subq $1, %rcx
addq %rcx, %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -24(%rbp)
movq %rax, -64(%rbp)
movq -64(%rbp), %rdi
shlq $3, %rdi
callq _malloc
movq %rax, -72(%rbp)
cmpq $0, -72(%rbp)
jne LBB0_2
## %bb.1:
movq -104(%rbp), %rax ## 8-byte Reload
movq _kBuffNull@GOTPCREL(%rip), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 8(%rcx), %rdx
movq %rdx, 8(%rax)
movq 16(%rcx), %rcx
movq %rcx, 16(%rax)
jmp LBB0_11
LBB0_2:
movq -32(%rbp), %rdi
callq _malloc
movq %rax, -40(%rbp)
cmpq $0, -40(%rbp)
jne LBB0_4
## %bb.3:
movq -72(%rbp), %rdi
callq _free
## kill: def $ecx killed $eax
movq -104(%rbp), %rax ## 8-byte Reload
movq _kBuffNull@GOTPCREL(%rip), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 8(%rcx), %rdx
movq %rdx, 8(%rax)
movq 16(%rcx), %rcx
movq %rcx, 16(%rax)
jmp LBB0_11
LBB0_4:
movq $0, -80(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movq -80(%rbp), %rax
movq -64(%rbp), %rcx
subq $1, %rcx
cmpq %rcx, %rax
jae LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -24(%rbp), %rdx
movq -72(%rbp), %rax
movq -80(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
jmp LBB0_5
LBB0_8:
movq -16(%rbp), %rdx
movq -24(%rbp), %rax
movq -64(%rbp), %rcx
subq $1, %rcx
imulq %rcx, %rax
subq %rax, %rdx
movq -72(%rbp), %rax
movq -64(%rbp), %rcx
subq $1, %rcx
movq %rdx, (%rax,%rcx,8)
movq -40(%rbp), %rdi
movq -32(%rbp), %rsi
movq -8(%rbp), %rdx
movq -72(%rbp), %rcx
movq -64(%rbp), %rax
movl %eax, %r8d
callq _ZDICT_trainFromBuffer
movq %rax, -88(%rbp)
movq -72(%rbp), %rdi
callq _free
movq -88(%rbp), %rdi
callq _ZDICT_isError
cmpq $0, %rax
je LBB0_10
## %bb.9:
leaq -56(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 8(%rax), %rcx
movq %rcx, 8(%rsp)
movq 16(%rax), %rax
movq %rax, 16(%rsp)
callq _FUZ_freeDictionary
## kill: def $ecx killed $eax
movq -104(%rbp), %rax ## 8-byte Reload
movq _kBuffNull@GOTPCREL(%rip), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 8(%rcx), %rdx
movq %rdx, 8(%rax)
movq 16(%rcx), %rcx
movq %rcx, 16(%rax)
jmp LBB0_11
LBB0_10:
movq -104(%rbp), %rax ## 8-byte Reload
movq -32(%rbp), %rcx
movq %rcx, -56(%rbp)
movq -88(%rbp), %rcx
movq %rcx, -48(%rbp)
movq -56(%rbp), %rcx
movq %rcx, (%rax)
movq -48(%rbp), %rcx
movq %rcx, 8(%rax)
movq -40(%rbp), %rcx
movq %rcx, 16(%rax)
LBB0_11:
movq -96(%rbp), %rax ## 8-byte Reload
addq $128, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _kBuffNull,24,3 ## @kBuffNull
.no_dead_strip _FUZ_createDictionary
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zstreamtest.c_FUZ_createDictionary.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_rLogLength
_FUZ_rLogLength: ; @FUZ_rLogLength
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
ldr x9, [sp, #16]
mov x8, #1
lsl x8, x8, x9
subs x8, x8, #1
str x8, [sp, #8]
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp] ; 8-byte Folded Spill
ldur x0, [x29, #-8]
bl _FUZ_rand
ldr x8, [sp] ; 8-byte Folded Reload
ldr x9, [sp, #8]
and x9, x0, x9
add x0, x8, x9
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _FUZ_rLogLength
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_rLogLength
_FUZ_rLogLength: ## @FUZ_rLogLength
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rcx
movl $1, %eax
## kill: def $cl killed $rcx
shlq %cl, %rax
subq $1, %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq -8(%rbp), %rdi
callq _FUZ_rand
movq %rax, %rcx
movq -32(%rbp), %rax ## 8-byte Reload
andq -24(%rbp), %rcx
addq %rcx, %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _FUZ_rLogLength
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zstreamtest.c_FUZ_rLogLength.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_rand
_FUZ_rand: ; @FUZ_rand
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr w8, [x8]
str w8, [sp, #4]
adrp x8, _prime32@GOTPAGE
ldr x8, [x8, _prime32@GOTPAGEOFF]
ldr w9, [x8]
ldr w8, [sp, #4]
mul w8, w8, w9
str w8, [sp, #4]
ldr w8, [sp, #4]
mov w9, #51831
movk w9, #34283, lsl #16
add w8, w8, w9
str w8, [sp, #4]
ldr w0, [sp, #4]
mov w1, #13
bl _FUZ_rotl32
str w0, [sp, #4]
ldr w8, [sp, #4]
ldr x9, [sp, #8]
str w8, [x9]
ldr w8, [sp, #4]
asr w0, w8, #5
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2 ; @FUZ_rand.prime2
_FUZ_rand.prime2:
.long 2246822519 ; 0x85ebca77
.comm _prime32,4,2 ; @prime32
.no_dead_strip _FUZ_rand
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_rand
_FUZ_rand: ## @FUZ_rand
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movl (%rax), %eax
movl %eax, -12(%rbp)
movq _prime32@GOTPCREL(%rip), %rax
movl (%rax), %eax
imull -12(%rbp), %eax
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
addl $-2048144777, %eax ## imm = 0x85EBCA77
movl %eax, -12(%rbp)
movl -12(%rbp), %edi
movl $13, %esi
callq _FUZ_rotl32
movl %eax, -12(%rbp)
movl -12(%rbp), %ecx
movq -8(%rbp), %rax
movl %ecx, (%rax)
movl -12(%rbp), %eax
sarl $5, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 2 ## @FUZ_rand.prime2
_FUZ_rand.prime2:
.long 2246822519 ## 0x85ebca77
.comm _prime32,4,2 ## @prime32
.no_dead_strip _FUZ_rand
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zstreamtest.c_FUZ_rand.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_randomClampedLength
_FUZ_randomClampedLength: ; @FUZ_randomClampedLength
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
ldr x8, [sp, #24]
ldur x9, [x29, #-16]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov x8, #1
str x8, [sp, #8] ; 8-byte Folded Spill
b LBB0_3
LBB0_2:
ldr x8, [sp, #24]
add x8, x8, #1
ldur x9, [x29, #-16]
subs x8, x8, x9
str x8, [sp, #8] ; 8-byte Folded Spill
b LBB0_3
LBB0_3:
ldr x8, [sp, #8] ; 8-byte Folded Reload
str x8, [sp, #16]
ldur x0, [x29, #-8]
bl _FUZ_rand
ldr x9, [sp, #16]
sdiv x8, x0, x9
mul x8, x8, x9
subs x8, x0, x8
ldur x9, [x29, #-16]
add x0, x8, x9
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.no_dead_strip _FUZ_randomClampedLength
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_randomClampedLength
_FUZ_randomClampedLength: ## @FUZ_randomClampedLength
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -24(%rbp), %rax
cmpq -16(%rbp), %rax
jge LBB0_2
## %bb.1:
movl $1, %eax
movq %rax, -40(%rbp) ## 8-byte Spill
jmp LBB0_3
LBB0_2:
movq -24(%rbp), %rax
addq $1, %rax
subq -16(%rbp), %rax
movq %rax, -40(%rbp) ## 8-byte Spill
LBB0_3:
movq -40(%rbp), %rax ## 8-byte Reload
movq %rax, -32(%rbp)
movq -8(%rbp), %rdi
callq _FUZ_rand
cqto
idivq -32(%rbp)
movq %rdx, %rax
addq -16(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _FUZ_randomClampedLength
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zstreamtest.c_FUZ_randomClampedLength.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_randomLength
_FUZ_randomLength: ; @FUZ_randomLength
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str w1, [sp, #4]
ldr x0, [sp, #8]
bl _FUZ_rand
ldr w9, [sp, #4]
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
str w8, [sp]
ldr x0, [sp, #8]
ldr w1, [sp]
bl _FUZ_rLogLength
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _FUZ_randomLength
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_randomLength
_FUZ_randomLength: ## @FUZ_randomLength
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq -8(%rbp), %rdi
callq _FUZ_rand
cltd
idivl -12(%rbp)
movl %edx, -16(%rbp)
movq -8(%rbp), %rdi
movl -16(%rbp), %esi
callq _FUZ_rLogLength
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _FUZ_randomLength
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zstreamtest.c_FUZ_randomLength.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_usage
_FUZ_usage: ; @FUZ_usage
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
ldr x8, [sp, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
adrp x8, _nbTestsDefault@GOTPAGE
ldr x8, [x8, _nbTestsDefault@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _DISPLAY
adrp x8, _FUZ_COMPRESSIBILITY_DEFAULT@GOTPAGE
ldr x8, [x8, _FUZ_COMPRESSIBILITY_DEFAULT@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _DISPLAY
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Usage :\n"
l_.str.1: ; @.str.1
.asciz " %s [args]\n"
l_.str.2: ; @.str.2
.asciz "\n"
l_.str.3: ; @.str.3
.asciz "Arguments :\n"
l_.str.4: ; @.str.4
.asciz " -i# : Nb of tests (default:%u) \n"
.comm _nbTestsDefault,4,2 ; @nbTestsDefault
l_.str.5: ; @.str.5
.asciz " -s# : Select seed (default:prompt user)\n"
l_.str.6: ; @.str.6
.asciz " -t# : Select starting test number (default:0)\n"
l_.str.7: ; @.str.7
.asciz " -P# : Select compressibility in %% (default:%i%%)\n"
.comm _FUZ_COMPRESSIBILITY_DEFAULT,4,2 ; @FUZ_COMPRESSIBILITY_DEFAULT
l_.str.8: ; @.str.8
.asciz " -v : verbose\n"
l_.str.9: ; @.str.9
.asciz " -p : pause at the end\n"
l_.str.10: ; @.str.10
.asciz " -h : display help and exit\n"
.no_dead_strip _FUZ_usage
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_usage
_FUZ_usage: ## @FUZ_usage
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq -8(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _nbTestsDefault@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _FUZ_COMPRESSIBILITY_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _DISPLAY
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage :\n"
L_.str.1: ## @.str.1
.asciz " %s [args]\n"
L_.str.2: ## @.str.2
.asciz "\n"
L_.str.3: ## @.str.3
.asciz "Arguments :\n"
L_.str.4: ## @.str.4
.asciz " -i# : Nb of tests (default:%u) \n"
.comm _nbTestsDefault,4,2 ## @nbTestsDefault
L_.str.5: ## @.str.5
.asciz " -s# : Select seed (default:prompt user)\n"
L_.str.6: ## @.str.6
.asciz " -t# : Select starting test number (default:0)\n"
L_.str.7: ## @.str.7
.asciz " -P# : Select compressibility in %% (default:%i%%)\n"
.comm _FUZ_COMPRESSIBILITY_DEFAULT,4,2 ## @FUZ_COMPRESSIBILITY_DEFAULT
L_.str.8: ## @.str.8
.asciz " -v : verbose\n"
L_.str.9: ## @.str.9
.asciz " -p : pause at the end\n"
L_.str.10: ## @.str.10
.asciz " -h : display help and exit\n"
.no_dead_strip _FUZ_usage
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zstreamtest.c_FUZ_usage.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function badParameters
_badParameters: ; @badParameters
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x1, [sp] ; 8-byte Folded Spill
stur x0, [x29, #-16]
ldur x0, [x29, #-16]
add x1, sp, #8
bl _getCCtxParams
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #10
stur w8, [x29, #-4]
b LBB0_3
LBB0_2:
ldr x9, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #32]
ldr x9, [x9, #24]
subs x8, x8, x9
cset w8, ne
and w1, w8, #0x1
mov w0, #1
adrp x2, l_.str@PAGE
add x2, x2, l_.str@PAGEOFF
bl _CHECK_RET
ldr x9, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #40]
ldr x9, [x9, #32]
subs x8, x8, x9
cset w8, ne
and w1, w8, #0x1
mov w0, #2
adrp x2, l_.str.1@PAGE
add x2, x2, l_.str.1@PAGEOFF
bl _CHECK_RET
ldr x9, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #48]
ldr x9, [x9, #40]
subs x8, x8, x9
cset w8, ne
and w1, w8, #0x1
mov w0, #3
adrp x2, l_.str.2@PAGE
add x2, x2, l_.str.2@PAGEOFF
bl _CHECK_RET
ldr x9, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #56]
ldr x9, [x9, #48]
subs x8, x8, x9
cset w8, ne
and w1, w8, #0x1
mov w0, #4
adrp x2, l_.str.3@PAGE
add x2, x2, l_.str.3@PAGEOFF
bl _CHECK_RET
ldr x9, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #64]
ldr x9, [x9, #56]
subs x8, x8, x9
cset w8, ne
and w1, w8, #0x1
mov w0, #5
adrp x2, l_.str.4@PAGE
add x2, x2, l_.str.4@PAGEOFF
bl _CHECK_RET
ldr x9, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #72]
ldr x9, [x9, #64]
subs x8, x8, x9
cset w8, ne
and w1, w8, #0x1
mov w0, #6
adrp x2, l_.str.5@PAGE
add x2, x2, l_.str.5@PAGEOFF
bl _CHECK_RET
ldr x9, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #8]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
and w1, w8, #0x1
mov w0, #7
adrp x2, l_.str.6@PAGE
add x2, x2, l_.str.6@PAGEOFF
bl _CHECK_RET
ldr x9, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #16]
ldr x9, [x9, #8]
subs x8, x8, x9
cset w8, ne
and w1, w8, #0x1
mov w0, #8
adrp x2, l_.str.7@PAGE
add x2, x2, l_.str.7@PAGEOFF
bl _CHECK_RET
ldr x9, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #24]
ldr x9, [x9, #16]
subs x8, x8, x9
cset w8, ne
and w1, w8, #0x1
mov w0, #9
adrp x2, l_.str.8@PAGE
add x2, x2, l_.str.8@PAGEOFF
bl _CHECK_RET
stur wzr, [x29, #-4]
b LBB0_3
LBB0_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "windowLog"
l_.str.1: ; @.str.1
.asciz "hashLog"
l_.str.2: ; @.str.2
.asciz "chainLog"
l_.str.3: ; @.str.3
.asciz "searchLog"
l_.str.4: ; @.str.4
.asciz "minMatch"
l_.str.5: ; @.str.5
.asciz "targetLength"
l_.str.6: ; @.str.6
.asciz "checksumFlag"
l_.str.7: ; @.str.7
.asciz "contentSizeFlag"
l_.str.8: ; @.str.8
.asciz "noDictIDFlag"
.no_dead_strip _badParameters
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function badParameters
_badParameters: ## @badParameters
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $96, %rsp
leaq 16(%rbp), %rax
movq %rax, -96(%rbp) ## 8-byte Spill
movq %rdi, -16(%rbp)
movq -16(%rbp), %rdi
leaq -88(%rbp), %rsi
callq _getCCtxParams
movl %eax, %edi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_2
## %bb.1:
movl $10, -4(%rbp)
jmp LBB0_3
LBB0_2:
movq -96(%rbp), %rcx ## 8-byte Reload
movq -64(%rbp), %rax
cmpq 24(%rcx), %rax
setne %al
andb $1, %al
movzbl %al, %esi
movl $1, %edi
leaq L_.str(%rip), %rdx
callq _CHECK_RET
movq -96(%rbp), %rcx ## 8-byte Reload
movq -56(%rbp), %rax
cmpq 32(%rcx), %rax
setne %al
andb $1, %al
movzbl %al, %esi
movl $2, %edi
leaq L_.str.1(%rip), %rdx
callq _CHECK_RET
movq -96(%rbp), %rcx ## 8-byte Reload
movq -48(%rbp), %rax
cmpq 40(%rcx), %rax
setne %al
andb $1, %al
movzbl %al, %esi
movl $3, %edi
leaq L_.str.2(%rip), %rdx
callq _CHECK_RET
movq -96(%rbp), %rcx ## 8-byte Reload
movq -40(%rbp), %rax
cmpq 48(%rcx), %rax
setne %al
andb $1, %al
movzbl %al, %esi
movl $4, %edi
leaq L_.str.3(%rip), %rdx
callq _CHECK_RET
movq -96(%rbp), %rcx ## 8-byte Reload
movq -32(%rbp), %rax
cmpq 56(%rcx), %rax
setne %al
andb $1, %al
movzbl %al, %esi
movl $5, %edi
leaq L_.str.4(%rip), %rdx
callq _CHECK_RET
movq -96(%rbp), %rcx ## 8-byte Reload
movq -24(%rbp), %rax
cmpq 64(%rcx), %rax
setne %al
andb $1, %al
movzbl %al, %esi
movl $6, %edi
leaq L_.str.5(%rip), %rdx
callq _CHECK_RET
movq -96(%rbp), %rcx ## 8-byte Reload
movq -88(%rbp), %rax
cmpq (%rcx), %rax
setne %al
andb $1, %al
movzbl %al, %esi
movl $7, %edi
leaq L_.str.6(%rip), %rdx
callq _CHECK_RET
movq -96(%rbp), %rcx ## 8-byte Reload
movq -80(%rbp), %rax
cmpq 8(%rcx), %rax
setne %al
andb $1, %al
movzbl %al, %esi
movl $8, %edi
leaq L_.str.7(%rip), %rdx
callq _CHECK_RET
movq -96(%rbp), %rcx ## 8-byte Reload
movq -72(%rbp), %rax
cmpq 16(%rcx), %rax
setne %al
andb $1, %al
movzbl %al, %esi
movl $9, %edi
leaq L_.str.8(%rip), %rdx
callq _CHECK_RET
movl $0, -4(%rbp)
LBB0_3:
movl -4(%rbp), %eax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "windowLog"
L_.str.1: ## @.str.1
.asciz "hashLog"
L_.str.2: ## @.str.2
.asciz "chainLog"
L_.str.3: ## @.str.3
.asciz "searchLog"
L_.str.4: ## @.str.4
.asciz "minMatch"
L_.str.5: ## @.str.5
.asciz "targetLength"
L_.str.6: ## @.str.6
.asciz "checksumFlag"
L_.str.7: ## @.str.7
.asciz "contentSizeFlag"
L_.str.8: ## @.str.8
.asciz "noDictIDFlag"
.no_dead_strip _badParameters
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zstreamtest.c_badParameters.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function SEQ_generateRoundTrip
_SEQ_generateRoundTrip: ; @SEQ_generateRoundTrip
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _SEQ_generateRoundTrip.data@PAGE
add x8, x8, _SEQ_generateRoundTrip.data@PAGEOFF
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #4] ; 4-byte Folded Spill
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur x2, [x29, #-32]
stur x3, [x29, #-40]
stur w4, [x29, #-44]
str w5, [sp, #48]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
add x3, sp, #16
str w8, [sp, #16]
mov w8, #4096
str w8, [sp, #20]
str wzr, [sp, #24]
str wzr, [sp, #28]
; kill: def $x8 killed $xzr
str xzr, [sp, #32]
ldur x0, [x29, #-40]
ldur w1, [x29, #-44]
ldr w2, [sp, #48]
bl _SEQ_gen
str x0, [sp, #40]
ldur x0, [x29, #-16]
ldur x1, [x29, #-24]
ldur x2, [x29, #-32]
ldr w3, [sp, #24]
ldr w4, [sp, #20]
adrp x8, _ZSTD_e_continue@GOTPAGE
ldr x8, [x8, _ZSTD_e_continue@GOTPAGEOFF]
ldr w5, [x8]
bl _SEQ_roundTrip
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB0_6
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_1
b LBB0_5
LBB0_5:
stur xzr, [x29, #-8]
b LBB0_6
LBB0_6:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_SEQ_generateRoundTrip.data,4096,2 ; @SEQ_generateRoundTrip.data
.comm _ZSTD_e_continue,4,2 ; @ZSTD_e_continue
.no_dead_strip _SEQ_generateRoundTrip
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function SEQ_generateRoundTrip
_SEQ_generateRoundTrip: ## @SEQ_generateRoundTrip
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $96, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq %rcx, -40(%rbp)
movl %r8d, -44(%rbp)
movl %r9d, -48(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
leaq _SEQ_generateRoundTrip.data(%rip), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -80(%rbp)
movl $4096, -76(%rbp) ## imm = 0x1000
movl $0, -72(%rbp)
movl $0, -68(%rbp)
movq $0, -64(%rbp)
movq -40(%rbp), %rdi
movl -44(%rbp), %esi
movl -48(%rbp), %edx
leaq -80(%rbp), %rcx
callq _SEQ_gen
movq %rax, -56(%rbp)
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
movl -72(%rbp), %ecx
movl -76(%rbp), %r8d
movq _ZSTD_e_continue@GOTPCREL(%rip), %rax
movl (%rax), %r9d
callq _SEQ_roundTrip
movq %rax, -88(%rbp)
movq -88(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_3
## %bb.2:
movq -88(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_6
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_4
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
cmpq $0, -56(%rbp)
jne LBB0_1
## %bb.5:
movq $0, -8(%rbp)
LBB0_6:
movq -8(%rbp), %rax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_SEQ_generateRoundTrip.data,4096,4 ## @SEQ_generateRoundTrip.data
.comm _ZSTD_e_continue,4,2 ## @ZSTD_e_continue
.no_dead_strip _SEQ_generateRoundTrip
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zstreamtest.c_SEQ_generateRoundTrip.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function findDiff
_findDiff: ; @findDiff
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur x2, [x29, #-32]
ldur x8, [x29, #-16]
stur x8, [x29, #-40]
ldur x8, [x29, #-24]
str x8, [sp, #48]
str xzr, [sp, #40]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #40]
ldur x9, [x29, #-32]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-40]
ldr x9, [sp, #40]
ldr x8, [x8, x9, lsl #3]
ldr x9, [sp, #48]
ldr x10, [sp, #40]
ldr x9, [x9, x10, lsl #3]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
b LBB0_6
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #40]
add x8, x8, #1
str x8, [sp, #40]
b LBB0_1
LBB0_6:
ldr x8, [sp, #40]
ldur x9, [x29, #-32]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldur x8, [x29, #-32]
and x1, x8, #0xffffffff
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
ldr x8, [sp, #40]
stur x8, [x29, #-8]
b LBB0_13
LBB0_8:
ldr x8, [sp, #40]
and x1, x8, #0xffffffff
ldur x8, [x29, #-32]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
ldr x8, [sp, #40]
subs x8, x8, #3
cset w8, lo
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
ldur x8, [x29, #-40]
ldr x9, [sp, #40]
subs x9, x9, #3
ldr x1, [x8, x9, lsl #3]
ldur x8, [x29, #-40]
ldr x9, [sp, #40]
subs x9, x9, #2
ldr x10, [x8, x9, lsl #3]
ldur x8, [x29, #-40]
ldr x9, [sp, #40]
subs x9, x9, #1
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
b LBB0_10
LBB0_10:
ldur x8, [x29, #-40]
ldr x9, [sp, #40]
ldr x1, [x8, x9, lsl #3]
ldur x8, [x29, #-40]
ldr x9, [sp, #40]
add x9, x9, #1
ldr x13, [x8, x9, lsl #3]
ldur x8, [x29, #-40]
ldr x9, [sp, #40]
add x9, x9, #2
ldr x12, [x8, x9, lsl #3]
ldur x8, [x29, #-40]
ldr x9, [sp, #40]
add x9, x9, #3
ldr x11, [x8, x9, lsl #3]
ldur x8, [x29, #-40]
ldr x9, [sp, #40]
add x9, x9, #4
ldr x10, [x8, x9, lsl #3]
ldur x8, [x29, #-40]
ldr x9, [sp, #40]
add x9, x9, #5
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x13, [x9]
str x12, [x9, #8]
str x11, [x9, #16]
str x10, [x9, #24]
str x8, [x9, #32]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
ldr x8, [sp, #40]
subs x8, x8, #3
cset w8, lo
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
ldr x8, [sp, #48]
ldr x9, [sp, #40]
subs x9, x9, #3
ldr x1, [x8, x9, lsl #3]
ldr x8, [sp, #48]
ldr x9, [sp, #40]
subs x9, x9, #2
ldr x10, [x8, x9, lsl #3]
ldr x8, [sp, #48]
ldr x9, [sp, #40]
subs x9, x9, #1
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
b LBB0_12
LBB0_12:
ldr x8, [sp, #48]
ldr x9, [sp, #40]
ldr x1, [x8, x9, lsl #3]
ldr x8, [sp, #48]
ldr x9, [sp, #40]
add x9, x9, #1
ldr x13, [x8, x9, lsl #3]
ldr x8, [sp, #48]
ldr x9, [sp, #40]
add x9, x9, #2
ldr x12, [x8, x9, lsl #3]
ldr x8, [sp, #48]
ldr x9, [sp, #40]
add x9, x9, #3
ldr x11, [x8, x9, lsl #3]
ldr x8, [sp, #48]
ldr x9, [sp, #40]
add x9, x9, #4
ldr x10, [x8, x9, lsl #3]
ldr x8, [sp, #48]
ldr x9, [sp, #40]
add x9, x9, #5
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x13, [x9]
str x12, [x9, #8]
str x11, [x9, #16]
str x10, [x9, #24]
str x8, [x9, #32]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
ldr x8, [sp, #40]
stur x8, [x29, #-8]
b LBB0_13
LBB0_13:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "=> No difference detected within %u bytes \n"
l_.str.1: ; @.str.1
.asciz "Error at position %u / %u \n"
l_.str.2: ; @.str.2
.asciz " %02X %02X %02X "
l_.str.3: ; @.str.3
.asciz " :%02X: %02X %02X %02X %02X %02X \n"
.no_dead_strip _findDiff
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function findDiff
_findDiff: ## @findDiff
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq -16(%rbp), %rax
movq %rax, -40(%rbp)
movq -24(%rbp), %rax
movq %rax, -48(%rbp)
movq $0, -56(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -56(%rbp), %rax
cmpq -32(%rbp), %rax
jae LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rax
movq -56(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -48(%rbp), %rcx
movq -56(%rbp), %rdx
cmpq (%rcx,%rdx,8), %rax
je LBB0_4
## %bb.3:
jmp LBB0_6
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rax
addq $1, %rax
movq %rax, -56(%rbp)
jmp LBB0_1
LBB0_6:
movq -56(%rbp), %rax
cmpq -32(%rbp), %rax
jne LBB0_8
## %bb.7:
movq -32(%rbp), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, %eax
movl %eax, %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq -56(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_13
LBB0_8:
movq -56(%rbp), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, %eax
movl %eax, %esi
movq -32(%rbp), %rax
movl %eax, %edx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
cmpq $3, -56(%rbp)
jb LBB0_10
## %bb.9:
movq -40(%rbp), %rax
movq -56(%rbp), %rcx
subq $3, %rcx
movq (%rax,%rcx,8), %rsi
movq -40(%rbp), %rax
movq -56(%rbp), %rcx
subq $2, %rcx
movq (%rax,%rcx,8), %rdx
movq -40(%rbp), %rax
movq -56(%rbp), %rcx
subq $1, %rcx
movq (%rax,%rcx,8), %rcx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
LBB0_10:
movq -40(%rbp), %rax
movq -56(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -40(%rbp), %rax
movq -56(%rbp), %rcx
movq 8(%rax,%rcx,8), %rdx
movq -40(%rbp), %rax
movq -56(%rbp), %rcx
movq 16(%rax,%rcx,8), %rcx
movq -40(%rbp), %rax
movq -56(%rbp), %rdi
movq 24(%rax,%rdi,8), %r8
movq -40(%rbp), %rax
movq -56(%rbp), %rdi
movq 32(%rax,%rdi,8), %r9
movq -40(%rbp), %rax
movq -56(%rbp), %rdi
movq 40(%rax,%rdi,8), %rax
leaq L_.str.3(%rip), %rdi
movq %rax, (%rsp)
movb $0, %al
callq _DISPLAY
cmpq $3, -56(%rbp)
jb LBB0_12
## %bb.11:
movq -48(%rbp), %rax
movq -56(%rbp), %rcx
subq $3, %rcx
movq (%rax,%rcx,8), %rsi
movq -48(%rbp), %rax
movq -56(%rbp), %rcx
subq $2, %rcx
movq (%rax,%rcx,8), %rdx
movq -48(%rbp), %rax
movq -56(%rbp), %rcx
subq $1, %rcx
movq (%rax,%rcx,8), %rcx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
LBB0_12:
movq -48(%rbp), %rax
movq -56(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -48(%rbp), %rax
movq -56(%rbp), %rcx
movq 8(%rax,%rcx,8), %rdx
movq -48(%rbp), %rax
movq -56(%rbp), %rcx
movq 16(%rax,%rcx,8), %rcx
movq -48(%rbp), %rax
movq -56(%rbp), %rdi
movq 24(%rax,%rdi,8), %r8
movq -48(%rbp), %rax
movq -56(%rbp), %rdi
movq 32(%rax,%rdi,8), %r9
movq -48(%rbp), %rax
movq -56(%rbp), %rdi
movq 40(%rax,%rdi,8), %rax
leaq L_.str.3(%rip), %rdi
movq %rax, (%rsp)
movb $0, %al
callq _DISPLAY
movq -56(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_13:
movq -8(%rbp), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "=> No difference detected within %u bytes \n"
L_.str.1: ## @.str.1
.asciz "Error at position %u / %u \n"
L_.str.2: ## @.str.2
.asciz " %02X %02X %02X "
L_.str.3: ## @.str.3
.asciz " :%02X: %02X %02X %02X %02X %02X \n"
.no_dead_strip _findDiff
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zstreamtest.c_findDiff.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function getCCtxParams
_getCCtxParams: ; @getCCtxParams
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_windowLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_windowLog@GOTPAGEOFF]
ldr w1, [x8]
ldr x8, [sp, #16]
add x2, x8, #36
bl _ZSTD_CCtx_getParameter
bl _CHECK_RET_Z
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_hashLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_hashLog@GOTPAGEOFF]
ldr w1, [x8]
ldr x8, [sp, #16]
add x2, x8, #32
bl _ZSTD_CCtx_getParameter
bl _CHECK_RET_Z
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_chainLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_chainLog@GOTPAGEOFF]
ldr w1, [x8]
ldr x8, [sp, #16]
add x2, x8, #28
bl _ZSTD_CCtx_getParameter
bl _CHECK_RET_Z
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_searchLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_searchLog@GOTPAGEOFF]
ldr w1, [x8]
ldr x8, [sp, #16]
add x2, x8, #24
bl _ZSTD_CCtx_getParameter
bl _CHECK_RET_Z
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_minMatch@GOTPAGE
ldr x8, [x8, _ZSTD_c_minMatch@GOTPAGEOFF]
ldr w1, [x8]
ldr x8, [sp, #16]
add x2, x8, #20
bl _ZSTD_CCtx_getParameter
bl _CHECK_RET_Z
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_targetLength@GOTPAGE
ldr x8, [x8, _ZSTD_c_targetLength@GOTPAGEOFF]
ldr w1, [x8]
ldr x8, [sp, #16]
add x2, x8, #16
bl _ZSTD_CCtx_getParameter
bl _CHECK_RET_Z
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_strategy@GOTPAGE
ldr x8, [x8, _ZSTD_c_strategy@GOTPAGEOFF]
ldr w1, [x8]
add x2, sp, #12
str x2, [sp] ; 8-byte Folded Spill
bl _ZSTD_CCtx_getParameter
bl _CHECK_RET_Z
ldr w8, [sp, #12]
ldr x9, [sp, #16]
str w8, [x9, #12]
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_checksumFlag@GOTPAGE
ldr x8, [x8, _ZSTD_c_checksumFlag@GOTPAGEOFF]
ldr w1, [x8]
ldr x2, [sp, #16]
bl _ZSTD_CCtx_getParameter
bl _CHECK_RET_Z
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_contentSizeFlag@GOTPAGE
ldr x8, [x8, _ZSTD_c_contentSizeFlag@GOTPAGEOFF]
ldr w1, [x8]
ldr x8, [sp, #16]
add x2, x8, #4
bl _ZSTD_CCtx_getParameter
bl _CHECK_RET_Z
ldr x2, [sp] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_dictIDFlag@GOTPAGE
ldr x8, [x8, _ZSTD_c_dictIDFlag@GOTPAGEOFF]
ldr w1, [x8]
bl _ZSTD_CCtx_getParameter
bl _CHECK_RET_Z
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
and w8, w8, #0x1
ldr x9, [sp, #16]
str w8, [x9, #8]
mov x0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _ZSTD_c_windowLog,4,2 ; @ZSTD_c_windowLog
.comm _ZSTD_c_hashLog,4,2 ; @ZSTD_c_hashLog
.comm _ZSTD_c_chainLog,4,2 ; @ZSTD_c_chainLog
.comm _ZSTD_c_searchLog,4,2 ; @ZSTD_c_searchLog
.comm _ZSTD_c_minMatch,4,2 ; @ZSTD_c_minMatch
.comm _ZSTD_c_targetLength,4,2 ; @ZSTD_c_targetLength
.comm _ZSTD_c_strategy,4,2 ; @ZSTD_c_strategy
.comm _ZSTD_c_checksumFlag,4,2 ; @ZSTD_c_checksumFlag
.comm _ZSTD_c_contentSizeFlag,4,2 ; @ZSTD_c_contentSizeFlag
.comm _ZSTD_c_dictIDFlag,4,2 ; @ZSTD_c_dictIDFlag
.no_dead_strip _getCCtxParams
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function getCCtxParams
_getCCtxParams: ## @getCCtxParams
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq _ZSTD_c_windowLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -16(%rbp), %rdx
addq $12, %rdx
addq $24, %rdx
callq _ZSTD_CCtx_getParameter
movl %eax, %edi
callq _CHECK_RET_Z
movq -8(%rbp), %rdi
movq _ZSTD_c_hashLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -16(%rbp), %rdx
addq $12, %rdx
addq $20, %rdx
callq _ZSTD_CCtx_getParameter
movl %eax, %edi
callq _CHECK_RET_Z
movq -8(%rbp), %rdi
movq _ZSTD_c_chainLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -16(%rbp), %rdx
addq $12, %rdx
addq $16, %rdx
callq _ZSTD_CCtx_getParameter
movl %eax, %edi
callq _CHECK_RET_Z
movq -8(%rbp), %rdi
movq _ZSTD_c_searchLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -16(%rbp), %rdx
addq $12, %rdx
addq $12, %rdx
callq _ZSTD_CCtx_getParameter
movl %eax, %edi
callq _CHECK_RET_Z
movq -8(%rbp), %rdi
movq _ZSTD_c_minMatch@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -16(%rbp), %rdx
addq $12, %rdx
addq $8, %rdx
callq _ZSTD_CCtx_getParameter
movl %eax, %edi
callq _CHECK_RET_Z
movq -8(%rbp), %rdi
movq _ZSTD_c_targetLength@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -16(%rbp), %rdx
addq $12, %rdx
addq $4, %rdx
callq _ZSTD_CCtx_getParameter
movl %eax, %edi
callq _CHECK_RET_Z
movq -8(%rbp), %rdi
movq _ZSTD_c_strategy@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq -20(%rbp), %rdx
callq _ZSTD_CCtx_getParameter
movl %eax, %edi
callq _CHECK_RET_Z
movl -20(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, 12(%rax)
movq -8(%rbp), %rdi
movq _ZSTD_c_checksumFlag@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -16(%rbp), %rdx
callq _ZSTD_CCtx_getParameter
movl %eax, %edi
callq _CHECK_RET_Z
movq -8(%rbp), %rdi
movq _ZSTD_c_contentSizeFlag@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -16(%rbp), %rdx
addq $4, %rdx
callq _ZSTD_CCtx_getParameter
movl %eax, %edi
callq _CHECK_RET_Z
movq -8(%rbp), %rdi
movq _ZSTD_c_dictIDFlag@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq -20(%rbp), %rdx
callq _ZSTD_CCtx_getParameter
movl %eax, %edi
callq _CHECK_RET_Z
cmpl $0, -20(%rbp)
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %ecx
movq -16(%rbp), %rax
movl %ecx, 8(%rax)
xorl %eax, %eax
## kill: def $rax killed $eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_c_windowLog,4,2 ## @ZSTD_c_windowLog
.comm _ZSTD_c_hashLog,4,2 ## @ZSTD_c_hashLog
.comm _ZSTD_c_chainLog,4,2 ## @ZSTD_c_chainLog
.comm _ZSTD_c_searchLog,4,2 ## @ZSTD_c_searchLog
.comm _ZSTD_c_minMatch,4,2 ## @ZSTD_c_minMatch
.comm _ZSTD_c_targetLength,4,2 ## @ZSTD_c_targetLength
.comm _ZSTD_c_strategy,4,2 ## @ZSTD_c_strategy
.comm _ZSTD_c_checksumFlag,4,2 ## @ZSTD_c_checksumFlag
.comm _ZSTD_c_contentSizeFlag,4,2 ## @ZSTD_c_contentSizeFlag
.comm _ZSTD_c_dictIDFlag,4,2 ## @ZSTD_c_dictIDFlag
.no_dead_strip _getCCtxParams
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zstreamtest.c_getCCtxParams.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI0_0:
.quad 0x4059000000000000 ; double 100
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #176
.cfi_def_cfa_offset 176
stp x29, x30, [sp, #160] ; 16-byte Folded Spill
add x29, sp, #160
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _g_clockTime@GOTPAGE
ldr x8, [x8, _g_clockTime@GOTPAGEOFF]
str x8, [sp, #48] ; 8-byte Folded Spill
adrp x8, _g_displayLevel@GOTPAGE
ldr x8, [x8, _g_displayLevel@GOTPAGEOFF]
str x8, [sp, #56] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
stur wzr, [x29, #-20]
stur wzr, [x29, #-24]
adrp x8, _nbTestsDefault@GOTPAGE
ldr x8, [x8, _nbTestsDefault@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-28]
stur wzr, [x29, #-32]
adrp x8, _FUZ_COMPRESSIBILITY_DEFAULT@GOTPAGE
ldr x8, [x8, _FUZ_COMPRESSIBILITY_DEFAULT@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-36]
stur wzr, [x29, #-40]
stur wzr, [x29, #-44]
mov w8, #1
stur w8, [x29, #-48]
mov w9, #128
stur w9, [x29, #-52]
ldur x9, [x29, #-16]
ldr x9, [x9]
stur x9, [x29, #-64]
stur w8, [x29, #-68]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_10 Depth 2
; Child Loop BB0_43 Depth 3
; Child Loop BB0_37 Depth 3
; Child Loop BB0_18 Depth 3
; Child Loop BB0_24 Depth 3
; Child Loop BB0_49 Depth 3
ldur w8, [x29, #-68]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_63
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-68]
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #80]
ldr x8, [sp, #80]
subs x8, x8, #0
cset w8, ne
and w0, w8, #0x1
bl _assert
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB0_61
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #80]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
mov w8, #129
stur w8, [x29, #-52]
ldur w8, [x29, #-32]
subs w8, w8, #0
cset w8, eq
and w9, w8, #0x1
ldur w8, [x29, #-32]
add w8, w8, w9
stur w8, [x29, #-32]
b LBB0_62
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #80]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
mov w8, #130
stur w8, [x29, #-52]
ldur w8, [x29, #-32]
subs w8, w8, #0
cset w8, eq
and w9, w8, #0x1
ldur w8, [x29, #-32]
add w8, w8, w9
stur w8, [x29, #-32]
b LBB0_62
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #80]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
stur wzr, [x29, #-48]
b LBB0_62
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
b LBB0_10
LBB0_10: ; Parent Loop BB0_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_43 Depth 3
; Child Loop BB0_37 Depth 3
; Child Loop BB0_18 Depth 3
; Child Loop BB0_24 Depth 3
; Child Loop BB0_49 Depth 3
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_60
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_10 Depth=2
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #80
; kill: def $x8 killed $w8
str x8, [sp, #40] ; 8-byte Folded Spill
subs x8, x8, #38
cset w8, hi
tbnz w8, #0, LBB0_58
; %bb.12: ; in Loop: Header=BB0_10 Depth=2
ldr x11, [sp, #40] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_13:
ldur x0, [x29, #-64]
bl _FUZ_usage
stur w0, [x29, #-4]
b LBB0_83
LBB0_14: ; in Loop: Header=BB0_10 Depth=2
ldr x9, [sp, #56] ; 8-byte Folded Reload
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB0_59
LBB0_15: ; in Loop: Header=BB0_10 Depth=2
ldr x9, [sp, #56] ; 8-byte Folded Reload
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
ldr w8, [x9]
subs w8, w8, #1
str w8, [x9]
b LBB0_59
LBB0_16: ; in Loop: Header=BB0_10 Depth=2
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
mov w8, #1
stur w8, [x29, #-44]
b LBB0_59
LBB0_17: ; in Loop: Header=BB0_10 Depth=2
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x9, [sp, #80]
add x9, x9, #1
str x9, [sp, #80]
stur wzr, [x29, #-28]
str wzr, [x8]
b LBB0_18
LBB0_18: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_10 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp, #36] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_18 Depth=3
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp, #36] ; 4-byte Folded Spill
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_18 Depth=3
ldr w8, [sp, #36] ; 4-byte Folded Reload
tbz w8, #0, LBB0_22
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_18 Depth=3
ldur w8, [x29, #-28]
mov w9, #10
mul w8, w8, w9
stur w8, [x29, #-28]
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w9, w8, #48
ldur w8, [x29, #-28]
add w8, w8, w9
stur w8, [x29, #-28]
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
b LBB0_18
LBB0_22: ; in Loop: Header=BB0_10 Depth=2
b LBB0_59
LBB0_23: ; in Loop: Header=BB0_10 Depth=2
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x9, [sp, #80]
add x9, x9, #1
str x9, [sp, #80]
stur wzr, [x29, #-28]
str wzr, [x8]
b LBB0_24
LBB0_24: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_10 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp, #32] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_26
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_24 Depth=3
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp, #32] ; 4-byte Folded Spill
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_24 Depth=3
ldr w8, [sp, #32] ; 4-byte Folded Reload
tbz w8, #0, LBB0_28
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_24 Depth=3
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr w8, [x9]
mov w10, #10
mul w8, w8, w10
str w8, [x9]
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w10, w8, #48
ldr w8, [x9]
add w8, w8, w10
str w8, [x9]
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
b LBB0_24
LBB0_28: ; in Loop: Header=BB0_10 Depth=2
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #109
cset w8, ne
tbnz w8, #0, LBB0_32
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_10 Depth=2
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr w8, [x9]
mov w10, #60
mul w8, w8, w10
str w8, [x9]
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #110
cset w8, ne
tbnz w8, #0, LBB0_31
b LBB0_30
LBB0_30: ; in Loop: Header=BB0_10 Depth=2
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
b LBB0_31
LBB0_31: ; in Loop: Header=BB0_10 Depth=2
b LBB0_35
LBB0_32: ; in Loop: Header=BB0_10 Depth=2
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #115
cset w8, ne
tbnz w8, #0, LBB0_34
b LBB0_33
LBB0_33: ; in Loop: Header=BB0_10 Depth=2
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
b LBB0_34
LBB0_34: ; in Loop: Header=BB0_10 Depth=2
b LBB0_35
LBB0_35: ; in Loop: Header=BB0_10 Depth=2
ldr x9, [sp, #48] ; 8-byte Folded Reload
adrp x8, _SEC_TO_MICRO@GOTPAGE
ldr x8, [x8, _SEC_TO_MICRO@GOTPAGEOFF]
ldr w10, [x8]
ldr w8, [x9]
mul w8, w8, w10
str w8, [x9]
b LBB0_59
LBB0_36: ; in Loop: Header=BB0_10 Depth=2
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
mov w8, #1
stur w8, [x29, #-24]
stur wzr, [x29, #-20]
b LBB0_37
LBB0_37: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_10 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp, #28] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_39
b LBB0_38
LBB0_38: ; in Loop: Header=BB0_37 Depth=3
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp, #28] ; 4-byte Folded Spill
b LBB0_39
LBB0_39: ; in Loop: Header=BB0_37 Depth=3
ldr w8, [sp, #28] ; 4-byte Folded Reload
tbz w8, #0, LBB0_41
b LBB0_40
LBB0_40: ; in Loop: Header=BB0_37 Depth=3
ldur w8, [x29, #-20]
mov w9, #10
mul w8, w8, w9
stur w8, [x29, #-20]
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w9, w8, #48
ldur w8, [x29, #-20]
add w8, w8, w9
stur w8, [x29, #-20]
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
b LBB0_37
LBB0_41: ; in Loop: Header=BB0_10 Depth=2
b LBB0_59
LBB0_42: ; in Loop: Header=BB0_10 Depth=2
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
stur wzr, [x29, #-32]
b LBB0_43
LBB0_43: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_10 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp, #24] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_45
b LBB0_44
LBB0_44: ; in Loop: Header=BB0_43 Depth=3
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp, #24] ; 4-byte Folded Spill
b LBB0_45
LBB0_45: ; in Loop: Header=BB0_43 Depth=3
ldr w8, [sp, #24] ; 4-byte Folded Reload
tbz w8, #0, LBB0_47
b LBB0_46
LBB0_46: ; in Loop: Header=BB0_43 Depth=3
ldur w8, [x29, #-32]
mov w9, #10
mul w8, w8, w9
stur w8, [x29, #-32]
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w9, w8, #48
ldur w8, [x29, #-32]
add w8, w8, w9
stur w8, [x29, #-32]
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
b LBB0_43
LBB0_47: ; in Loop: Header=BB0_10 Depth=2
b LBB0_59
LBB0_48: ; in Loop: Header=BB0_10 Depth=2
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
stur wzr, [x29, #-36]
b LBB0_49
LBB0_49: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_10 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp, #20] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_51
b LBB0_50
LBB0_50: ; in Loop: Header=BB0_49 Depth=3
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB0_51
LBB0_51: ; in Loop: Header=BB0_49 Depth=3
ldr w8, [sp, #20] ; 4-byte Folded Reload
tbz w8, #0, LBB0_53
b LBB0_52
LBB0_52: ; in Loop: Header=BB0_49 Depth=3
ldur w8, [x29, #-36]
mov w9, #10
mul w8, w8, w9
stur w8, [x29, #-36]
ldr x8, [sp, #80]
ldrsb w8, [x8]
subs w9, w8, #48
ldur w8, [x29, #-36]
add w8, w8, w9
stur w8, [x29, #-36]
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
b LBB0_49
LBB0_53: ; in Loop: Header=BB0_10 Depth=2
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_55
b LBB0_54
LBB0_54: ; in Loop: Header=BB0_10 Depth=2
stur wzr, [x29, #-36]
b LBB0_55
LBB0_55: ; in Loop: Header=BB0_10 Depth=2
ldur w8, [x29, #-36]
subs w8, w8, #100
cset w8, le
tbnz w8, #0, LBB0_57
b LBB0_56
LBB0_56: ; in Loop: Header=BB0_10 Depth=2
mov w8, #100
stur w8, [x29, #-36]
b LBB0_57
LBB0_57: ; in Loop: Header=BB0_10 Depth=2
b LBB0_59
LBB0_58:
ldur x0, [x29, #-64]
bl _FUZ_usage
stur w0, [x29, #-4]
b LBB0_83
LBB0_59: ; in Loop: Header=BB0_10 Depth=2
b LBB0_10
LBB0_60: ; in Loop: Header=BB0_1 Depth=1
b LBB0_61
LBB0_61: ; in Loop: Header=BB0_1 Depth=1
b LBB0_62
LBB0_62: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-68]
add w8, w8, #1
stur w8, [x29, #-68]
b LBB0_1
LBB0_63:
adrp x8, _ZSTD_VERSION_STRING@GOTPAGE
ldr x8, [x8, _ZSTD_VERSION_STRING@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
mov x10, #64
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
ldur w8, [x29, #-24]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_65
b LBB0_64
LBB0_64:
mov x0, #0
bl _time
mov x8, x0
add x0, sp, #76
str w8, [sp, #76]
mov w1, #4
mov w2, #1
bl _XXH32
str w0, [sp, #72]
ldr w8, [sp, #72]
mov w10, #10000
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
stur w8, [x29, #-20]
b LBB0_65
LBB0_65:
ldur w9, [x29, #-20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _DISPLAY
ldur w8, [x29, #-36]
adrp x9, _FUZ_COMPRESSIBILITY_DEFAULT@GOTPAGE
ldr x9, [x9, _FUZ_COMPRESSIBILITY_DEFAULT@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_67
b LBB0_66
LBB0_66:
ldur w9, [x29, #-36]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
b LBB0_67
LBB0_67:
ldur w8, [x29, #-28]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_69
b LBB0_68
LBB0_68:
mov w8, #1
stur w8, [x29, #-28]
b LBB0_69
LBB0_69:
ldur w8, [x29, #-32]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_71
b LBB0_70
LBB0_70:
ldur s1, [x29, #-36]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
mov w0, #0
bl _basicUnitTests
stur w0, [x29, #-40]
b LBB0_71
LBB0_71:
ldur w8, [x29, #-40]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_80
b LBB0_72
LBB0_72:
ldur w8, [x29, #-52]
str w8, [sp, #16] ; 4-byte Folded Spill
subs w8, w8, #128
cset w8, eq
tbnz w8, #0, LBB0_75
b LBB0_73
LBB0_73:
ldr w8, [sp, #16] ; 4-byte Folded Reload
subs w8, w8, #129
cset w8, eq
tbnz w8, #0, LBB0_76
b LBB0_74
LBB0_74:
ldr w8, [sp, #16] ; 4-byte Folded Reload
subs w8, w8, #130
cset w8, eq
tbnz w8, #0, LBB0_77
b LBB0_78
LBB0_75:
ldur w0, [x29, #-20]
ldur w1, [x29, #-28]
ldur w2, [x29, #-32]
ldur s1, [x29, #-36]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
ldur w3, [x29, #-48]
bl _fuzzerTests
stur w0, [x29, #-40]
b LBB0_79
LBB0_76:
ldur w0, [x29, #-20]
ldur w1, [x29, #-28]
ldur w2, [x29, #-32]
ldur s1, [x29, #-36]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
ldur w3, [x29, #-48]
bl _fuzzerTests_MT
stur w0, [x29, #-40]
b LBB0_79
LBB0_77:
ldur w0, [x29, #-20]
ldur w1, [x29, #-28]
ldur w2, [x29, #-32]
ldur s1, [x29, #-36]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
ldur w3, [x29, #-48]
bl _fuzzerTests_newAPI
stur w0, [x29, #-40]
b LBB0_79
LBB0_78:
mov w0, #0
bl _assert
b LBB0_79
LBB0_79:
b LBB0_80
LBB0_80:
ldur w8, [x29, #-44]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_82
b LBB0_81
LBB0_81:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _DISPLAY
bl _getchar
str w0, [sp, #68]
b LBB0_82
LBB0_82:
ldur w8, [x29, #-40]
stur w8, [x29, #-4]
b LBB0_83
LBB0_83:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_48-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_23-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_13-Ltmp0
.long LBB0_17-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_16-Ltmp0
.long LBB0_15-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_36-Ltmp0
.long LBB0_42-Ltmp0
.long LBB0_58-Ltmp0
.long LBB0_14-Ltmp0
; -- End function
.comm _nbTestsDefault,4,2 ; @nbTestsDefault
.comm _FUZ_COMPRESSIBILITY_DEFAULT,4,2 ; @FUZ_COMPRESSIBILITY_DEFAULT
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "--mt"
l_.str.1: ; @.str.1
.asciz "--newapi"
l_.str.2: ; @.str.2
.asciz "--no-big-tests"
.comm _g_displayLevel,4,2 ; @g_displayLevel
.comm _g_clockTime,4,2 ; @g_clockTime
.comm _SEC_TO_MICRO,4,2 ; @SEC_TO_MICRO
l_.str.3: ; @.str.3
.asciz "Starting zstream tester (%i-bits, %s)\n"
.comm _ZSTD_VERSION_STRING,4,2 ; @ZSTD_VERSION_STRING
l_.str.4: ; @.str.4
.asciz "Seed = %u\n"
l_.str.5: ; @.str.5
.asciz "Compressibility : %i%%\n"
l_.str.6: ; @.str.6
.asciz "Press Enter \n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI0_0:
.quad 0x4059000000000000 ## double 100
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $0, -20(%rbp)
movl $0, -24(%rbp)
movq _nbTestsDefault@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -28(%rbp)
movl $0, -32(%rbp)
movq _FUZ_COMPRESSIBILITY_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -36(%rbp)
movl $0, -40(%rbp)
movl $0, -44(%rbp)
movl $1, -48(%rbp)
movl $128, -52(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -64(%rbp)
movl $1, -68(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_10 Depth 2
## Child Loop BB0_42 Depth 3
## Child Loop BB0_36 Depth 3
## Child Loop BB0_17 Depth 3
## Child Loop BB0_23 Depth 3
## Child Loop BB0_48 Depth 3
movl -68(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_62
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movslq -68(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -80(%rbp)
cmpq $0, -80(%rbp)
setne %al
andb $1, %al
movzbl %al, %edi
callq _assert
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB0_60
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -80(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movl $129, -52(%rbp)
cmpl $0, -32(%rbp)
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
addl -32(%rbp), %eax
movl %eax, -32(%rbp)
jmp LBB0_61
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -80(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_7
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
movl $130, -52(%rbp)
cmpl $0, -32(%rbp)
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
addl -32(%rbp), %eax
movl %eax, -32(%rbp)
jmp LBB0_61
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movq -80(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_9
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
movl $0, -48(%rbp)
jmp LBB0_61
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
LBB0_10: ## Parent Loop BB0_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_42 Depth 3
## Child Loop BB0_36 Depth 3
## Child Loop BB0_17 Depth 3
## Child Loop BB0_23 Depth 3
## Child Loop BB0_48 Depth 3
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB0_59
## %bb.11: ## in Loop: Header=BB0_10 Depth=2
movq -80(%rbp), %rax
movsbl (%rax), %eax
addl $-80, %eax
movl %eax, %ecx
movq %rcx, -104(%rbp) ## 8-byte Spill
subl $38, %eax
ja LBB0_57
## %bb.83: ## in Loop: Header=BB0_10 Depth=2
movq -104(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_12:
movq -64(%rbp), %rdi
callq _FUZ_usage
movl %eax, -4(%rbp)
jmp LBB0_80
LBB0_13: ## in Loop: Header=BB0_10 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB0_58
LBB0_14: ## in Loop: Header=BB0_10 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $-1, %ecx
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB0_58
LBB0_15: ## in Loop: Header=BB0_10 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movl $1, -44(%rbp)
jmp LBB0_58
LBB0_16: ## in Loop: Header=BB0_10 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movl $0, -28(%rbp)
movq _g_clockTime@GOTPCREL(%rip), %rax
movl $0, (%rax)
LBB0_17: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_10 Depth=2
## => This Inner Loop Header: Depth=3
movq -80(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -105(%rbp) ## 1-byte Spill
jl LBB0_19
## %bb.18: ## in Loop: Header=BB0_17 Depth=3
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -105(%rbp) ## 1-byte Spill
LBB0_19: ## in Loop: Header=BB0_17 Depth=3
movb -105(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_20
jmp LBB0_21
LBB0_20: ## in Loop: Header=BB0_17 Depth=3
imull $10, -28(%rbp), %eax
movl %eax, -28(%rbp)
movq -80(%rbp), %rax
movsbl (%rax), %eax
subl $48, %eax
addl -28(%rbp), %eax
movl %eax, -28(%rbp)
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
jmp LBB0_17
LBB0_21: ## in Loop: Header=BB0_10 Depth=2
jmp LBB0_58
LBB0_22: ## in Loop: Header=BB0_10 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movl $0, -28(%rbp)
movq _g_clockTime@GOTPCREL(%rip), %rax
movl $0, (%rax)
LBB0_23: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_10 Depth=2
## => This Inner Loop Header: Depth=3
movq -80(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -106(%rbp) ## 1-byte Spill
jl LBB0_25
## %bb.24: ## in Loop: Header=BB0_23 Depth=3
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -106(%rbp) ## 1-byte Spill
LBB0_25: ## in Loop: Header=BB0_23 Depth=3
movb -106(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_26
jmp LBB0_27
LBB0_26: ## in Loop: Header=BB0_23 Depth=3
movq _g_clockTime@GOTPCREL(%rip), %rax
imull $10, (%rax), %ecx
movq _g_clockTime@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq -80(%rbp), %rax
movsbl (%rax), %ecx
subl $48, %ecx
movq _g_clockTime@GOTPCREL(%rip), %rax
addl (%rax), %ecx
movq _g_clockTime@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
jmp LBB0_23
LBB0_27: ## in Loop: Header=BB0_10 Depth=2
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $109, %eax
jne LBB0_31
## %bb.28: ## in Loop: Header=BB0_10 Depth=2
movq _g_clockTime@GOTPCREL(%rip), %rax
imull $60, (%rax), %ecx
movq _g_clockTime@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $110, %eax
jne LBB0_30
## %bb.29: ## in Loop: Header=BB0_10 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
LBB0_30: ## in Loop: Header=BB0_10 Depth=2
jmp LBB0_34
LBB0_31: ## in Loop: Header=BB0_10 Depth=2
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $115, %eax
jne LBB0_33
## %bb.32: ## in Loop: Header=BB0_10 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
LBB0_33: ## in Loop: Header=BB0_10 Depth=2
jmp LBB0_34
LBB0_34: ## in Loop: Header=BB0_10 Depth=2
movq _SEC_TO_MICRO@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq _g_clockTime@GOTPCREL(%rip), %rax
imull (%rax), %ecx
movq _g_clockTime@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB0_58
LBB0_35: ## in Loop: Header=BB0_10 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movl $1, -24(%rbp)
movl $0, -20(%rbp)
LBB0_36: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_10 Depth=2
## => This Inner Loop Header: Depth=3
movq -80(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -107(%rbp) ## 1-byte Spill
jl LBB0_38
## %bb.37: ## in Loop: Header=BB0_36 Depth=3
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -107(%rbp) ## 1-byte Spill
LBB0_38: ## in Loop: Header=BB0_36 Depth=3
movb -107(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_39
jmp LBB0_40
LBB0_39: ## in Loop: Header=BB0_36 Depth=3
imull $10, -20(%rbp), %eax
movl %eax, -20(%rbp)
movq -80(%rbp), %rax
movsbl (%rax), %eax
subl $48, %eax
addl -20(%rbp), %eax
movl %eax, -20(%rbp)
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
jmp LBB0_36
LBB0_40: ## in Loop: Header=BB0_10 Depth=2
jmp LBB0_58
LBB0_41: ## in Loop: Header=BB0_10 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movl $0, -32(%rbp)
LBB0_42: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_10 Depth=2
## => This Inner Loop Header: Depth=3
movq -80(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -108(%rbp) ## 1-byte Spill
jl LBB0_44
## %bb.43: ## in Loop: Header=BB0_42 Depth=3
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -108(%rbp) ## 1-byte Spill
LBB0_44: ## in Loop: Header=BB0_42 Depth=3
movb -108(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_45
jmp LBB0_46
LBB0_45: ## in Loop: Header=BB0_42 Depth=3
imull $10, -32(%rbp), %eax
movl %eax, -32(%rbp)
movq -80(%rbp), %rax
movsbl (%rax), %eax
subl $48, %eax
addl -32(%rbp), %eax
movl %eax, -32(%rbp)
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
jmp LBB0_42
LBB0_46: ## in Loop: Header=BB0_10 Depth=2
jmp LBB0_58
LBB0_47: ## in Loop: Header=BB0_10 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movl $0, -36(%rbp)
LBB0_48: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_10 Depth=2
## => This Inner Loop Header: Depth=3
movq -80(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -109(%rbp) ## 1-byte Spill
jl LBB0_50
## %bb.49: ## in Loop: Header=BB0_48 Depth=3
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -109(%rbp) ## 1-byte Spill
LBB0_50: ## in Loop: Header=BB0_48 Depth=3
movb -109(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_51
jmp LBB0_52
LBB0_51: ## in Loop: Header=BB0_48 Depth=3
imull $10, -36(%rbp), %eax
movl %eax, -36(%rbp)
movq -80(%rbp), %rax
movsbl (%rax), %eax
subl $48, %eax
addl -36(%rbp), %eax
movl %eax, -36(%rbp)
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
jmp LBB0_48
LBB0_52: ## in Loop: Header=BB0_10 Depth=2
cmpl $0, -36(%rbp)
jge LBB0_54
## %bb.53: ## in Loop: Header=BB0_10 Depth=2
movl $0, -36(%rbp)
LBB0_54: ## in Loop: Header=BB0_10 Depth=2
cmpl $100, -36(%rbp)
jle LBB0_56
## %bb.55: ## in Loop: Header=BB0_10 Depth=2
movl $100, -36(%rbp)
LBB0_56: ## in Loop: Header=BB0_10 Depth=2
jmp LBB0_58
LBB0_57:
movq -64(%rbp), %rdi
callq _FUZ_usage
movl %eax, -4(%rbp)
jmp LBB0_80
LBB0_58: ## in Loop: Header=BB0_10 Depth=2
jmp LBB0_10
LBB0_59: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_60
LBB0_60: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_61
LBB0_61: ## in Loop: Header=BB0_1 Depth=1
movl -68(%rbp), %eax
addl $1, %eax
movl %eax, -68(%rbp)
jmp LBB0_1
LBB0_62:
movq _ZSTD_VERSION_STRING@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq L_.str.3(%rip), %rdi
movl $64, %esi
movb $0, %al
callq _DISPLAY
cmpl $0, -24(%rbp)
jne LBB0_64
## %bb.63:
xorl %eax, %eax
movl %eax, %edi
callq _time
movl %eax, -84(%rbp)
leaq -84(%rbp), %rdi
movl $4, %esi
movl $1, %edx
callq _XXH32
movl %eax, -88(%rbp)
movl -88(%rbp), %eax
movl $10000, %ecx ## imm = 0x2710
cltd
idivl %ecx
movl %edx, -20(%rbp)
LBB0_64:
movl -20(%rbp), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl -36(%rbp), %eax
movq _FUZ_COMPRESSIBILITY_DEFAULT@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
je LBB0_66
## %bb.65:
movl -36(%rbp), %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _DISPLAY
LBB0_66:
cmpl $0, -28(%rbp)
jg LBB0_68
## %bb.67:
movl $1, -28(%rbp)
LBB0_68:
cmpl $0, -32(%rbp)
jne LBB0_70
## %bb.69:
cvtsi2sdl -36(%rbp), %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
xorl %edi, %edi
callq _basicUnitTests
movl %eax, -40(%rbp)
LBB0_70:
cmpl $0, -40(%rbp)
jne LBB0_77
## %bb.71:
movl -52(%rbp), %eax
movl %eax, -116(%rbp) ## 4-byte Spill
subl $128, %eax
je LBB0_72
jmp LBB0_81
LBB0_81:
movl -116(%rbp), %eax ## 4-byte Reload
subl $129, %eax
je LBB0_73
jmp LBB0_82
LBB0_82:
movl -116(%rbp), %eax ## 4-byte Reload
subl $130, %eax
je LBB0_74
jmp LBB0_75
LBB0_72:
movl -20(%rbp), %edi
movl -28(%rbp), %esi
movl -32(%rbp), %edx
cvtsi2sdl -36(%rbp), %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movl -48(%rbp), %ecx
callq _fuzzerTests
movl %eax, -40(%rbp)
jmp LBB0_76
LBB0_73:
movl -20(%rbp), %edi
movl -28(%rbp), %esi
movl -32(%rbp), %edx
cvtsi2sdl -36(%rbp), %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movl -48(%rbp), %ecx
callq _fuzzerTests_MT
movl %eax, -40(%rbp)
jmp LBB0_76
LBB0_74:
movl -20(%rbp), %edi
movl -28(%rbp), %esi
movl -32(%rbp), %edx
cvtsi2sdl -36(%rbp), %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movl -48(%rbp), %ecx
callq _fuzzerTests_newAPI
movl %eax, -40(%rbp)
jmp LBB0_76
LBB0_75:
xorl %edi, %edi
callq _assert
LBB0_76:
jmp LBB0_77
LBB0_77:
cmpl $0, -44(%rbp)
je LBB0_79
## %bb.78:
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _DISPLAY
movb $0, %al
callq _getchar
movl %eax, -92(%rbp)
LBB0_79:
movl -40(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_80:
movl -4(%rbp), %eax
addq $128, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_47, LBB0_47-LJTI0_0
.set L0_0_set_57, LBB0_57-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
.long L0_0_set_47
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_22
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_12
.long L0_0_set_16
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_57
.long L0_0_set_15
.long L0_0_set_14
.long L0_0_set_57
.long L0_0_set_35
.long L0_0_set_41
.long L0_0_set_57
.long L0_0_set_13
.end_data_region
## -- End function
.comm _nbTestsDefault,4,2 ## @nbTestsDefault
.comm _FUZ_COMPRESSIBILITY_DEFAULT,4,2 ## @FUZ_COMPRESSIBILITY_DEFAULT
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "--mt"
L_.str.1: ## @.str.1
.asciz "--newapi"
L_.str.2: ## @.str.2
.asciz "--no-big-tests"
.comm _g_displayLevel,4,2 ## @g_displayLevel
.comm _g_clockTime,4,2 ## @g_clockTime
.comm _SEC_TO_MICRO,4,2 ## @SEC_TO_MICRO
L_.str.3: ## @.str.3
.asciz "Starting zstream tester (%i-bits, %s)\n"
.comm _ZSTD_VERSION_STRING,4,2 ## @ZSTD_VERSION_STRING
L_.str.4: ## @.str.4
.asciz "Seed = %u\n"
L_.str.5: ## @.str.5
.asciz "Compressibility : %i%%\n"
L_.str.6: ## @.str.6
.asciz "Press Enter \n"
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zstreamtest.c_main.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function setCCtxParameter
_setCCtxParameter: ; @setCCtxParameter
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
str x1, [sp, #24]
str w2, [sp, #20]
str w3, [sp, #16]
str w4, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x0, [sp, #24]
ldr w1, [sp, #20]
ldr w2, [sp, #16]
bl _ZSTD_CCtxParams_setParameter
stur x0, [x29, #-8]
b LBB0_3
LBB0_2:
ldur x0, [x29, #-16]
ldr w1, [sp, #20]
ldr w2, [sp, #16]
bl _ZSTD_CCtx_setParameter
stur x0, [x29, #-8]
b LBB0_3
LBB0_3:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.no_dead_strip _setCCtxParameter
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function setCCtxParameter
_setCCtxParameter: ## @setCCtxParameter
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movl %edx, -28(%rbp)
movl %ecx, -32(%rbp)
movl %r8d, -36(%rbp)
cmpl $0, -36(%rbp)
je LBB0_2
## %bb.1:
movq -24(%rbp), %rdi
movl -28(%rbp), %esi
movl -32(%rbp), %edx
callq _ZSTD_CCtxParams_setParameter
movq %rax, -8(%rbp)
jmp LBB0_3
LBB0_2:
movq -16(%rbp), %rdi
movl -28(%rbp), %esi
movl -32(%rbp), %edx
callq _ZSTD_CCtx_setParameter
movq %rax, -8(%rbp)
LBB0_3:
movq -8(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _setCCtxParameter
.subsections_via_symbols
| AnghaBench/zstd/tests/extr_zstreamtest.c_setCCtxParameter.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ; -- Begin function LLVMFuzzerTestOneInput
.p2align 2
_LLVMFuzzerTestOneInput: ; @LLVMFuzzerTestOneInput
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _cBuf@GOTPAGE
ldr x8, [x8, _cBuf@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
adrp x8, _rBuf@GOTPAGE
ldr x8, [x8, _rBuf@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
adrp x8, _cctx@GOTPAGE
ldr x8, [x8, _cctx@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
adrp x8, _dctx@GOTPAGE
ldr x8, [x8, _dctx@GOTPAGEOFF]
str x8, [sp, #40] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
bl _FUZZ_dataProducer_create
stur x0, [x29, #-24]
ldur x0, [x29, #-24]
bl _FUZZ_dataProducer_reserveDataPrefix
stur x0, [x29, #-16]
ldur x0, [x29, #-24]
adrp x8, _kMinClevel@GOTPAGE
ldr x8, [x8, _kMinClevel@GOTPAGEOFF]
ldr w1, [x8]
adrp x8, _kMaxClevel@GOTPAGE
ldr x8, [x8, _kMaxClevel@GOTPAGEOFF]
ldr w2, [x8]
bl _FUZZ_dataProducer_int32Range
stur w0, [x29, #-28]
ldur x8, [x29, #-16]
stur x8, [x29, #-40]
ldur x8, [x29, #-16]
adrp x9, _ZSTD_BLOCKSIZE_MAX@GOTPAGE
ldr x9, [x9, _ZSTD_BLOCKSIZE_MAX@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _ZSTD_BLOCKSIZE_MAX@GOTPAGE
ldr x8, [x8, _ZSTD_BLOCKSIZE_MAX@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-16]
b LBB0_2
LBB0_2:
ldur x8, [x29, #-40]
adrp x9, _bufSize@GOTPAGE
ldr x9, [x9, _bufSize@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hi
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_5
LBB0_5:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
bl _free
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x0, [x8]
bl _free
ldur x0, [x29, #-40]
bl _malloc
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x8]
ldur x0, [x29, #-40]
bl _malloc
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x9]
ldur x9, [x29, #-40]
adrp x10, _bufSize@GOTPAGE
ldr x10, [x10, _bufSize@GOTPAGEOFF]
str x9, [x10]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_7
LBB0_7:
ldr w8, [sp, #12] ; 4-byte Folded Reload
and w0, w8, #0x1
bl _FUZZ_ASSERT
b LBB0_8
LBB0_8:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
bl _ZSTD_createCCtx
ldr x8, [sp, #32] ; 8-byte Folded Reload
str x0, [x8]
ldr x8, [x8]
mov x0, x8
bl _FUZZ_ASSERT
b LBB0_10
LBB0_10:
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
bl _ZSTD_createDCtx
ldr x8, [sp, #40] ; 8-byte Folded Reload
str x0, [x8]
ldr x8, [x8]
mov x0, x8
bl _FUZZ_ASSERT
b LBB0_12
LBB0_12:
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x9]
ldur x1, [x29, #-40]
ldr x2, [x8]
ldur x3, [x29, #-40]
ldur x4, [x29, #-8]
ldur x5, [x29, #-16]
ldur w6, [x29, #-28]
bl _roundTripTest
str x0, [sp, #48]
ldr x0, [sp, #48]
bl _FUZZ_ZASSERT
ldr x8, [sp, #48]
ldur x9, [x29, #-16]
subs x8, x8, x9
cset w8, eq
and w0, w8, #0x1
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _FUZZ_ASSERT_MSG
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
ldr x1, [x8]
ldur x2, [x29, #-16]
bl _memcmp
mov w8, #0
str w8, [sp, #8] ; 4-byte Folded Spill
subs w8, w0, #0
cset w8, eq
and w0, w8, #0x1
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _FUZZ_ASSERT_MSG
ldur x0, [x29, #-24]
bl _FUZZ_dataProducer_free
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [x8]
bl _ZSTD_freeCCtx
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldr x8, [sp, #40] ; 8-byte Folded Reload
; kill: def $x10 killed $xzr
str xzr, [x9]
ldr x0, [x8]
bl _ZSTD_freeDCtx
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w0, [sp, #8] ; 4-byte Folded Reload
str xzr, [x8]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.comm _kMinClevel,4,2 ; @kMinClevel
.comm _kMaxClevel,4,2 ; @kMaxClevel
.comm _ZSTD_BLOCKSIZE_MAX,8,3 ; @ZSTD_BLOCKSIZE_MAX
.comm _bufSize,8,3 ; @bufSize
.comm _cBuf,8,3 ; @cBuf
.comm _rBuf,8,3 ; @rBuf
.comm _cctx,8,3 ; @cctx
.comm _dctx,8,3 ; @dctx
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Incorrect regenerated size"
l_.str.1: ; @.str.1
.asciz "Corruption!"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ## -- Begin function LLVMFuzzerTestOneInput
.p2align 4, 0x90
_LLVMFuzzerTestOneInput: ## @LLVMFuzzerTestOneInput
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _FUZZ_dataProducer_create
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
callq _FUZZ_dataProducer_reserveDataPrefix
movq %rax, -16(%rbp)
movq -24(%rbp), %rdi
movq _kMinClevel@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _kMaxClevel@GOTPCREL(%rip), %rax
movl (%rax), %edx
callq _FUZZ_dataProducer_int32Range
movl %eax, -28(%rbp)
movq -16(%rbp), %rax
movq %rax, -40(%rbp)
movq -16(%rbp), %rax
movq _ZSTD_BLOCKSIZE_MAX@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jbe LBB0_2
## %bb.1:
movq _ZSTD_BLOCKSIZE_MAX@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
LBB0_2:
movq -40(%rbp), %rax
movq _bufSize@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
ja LBB0_5
## %bb.3:
movq _cBuf@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_5
## %bb.4:
movq _rBuf@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_8
LBB0_5:
movq _cBuf@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _free
movq _rBuf@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _free
movq -40(%rbp), %rdi
callq _malloc
movq %rax, %rcx
movq _cBuf@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq -40(%rbp), %rdi
callq _malloc
movq %rax, %rcx
movq _rBuf@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq -40(%rbp), %rcx
movq _bufSize@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movq _cBuf@GOTPCREL(%rip), %rcx
cmpq $0, (%rcx)
movb %al, -49(%rbp) ## 1-byte Spill
je LBB0_7
## %bb.6:
movq _rBuf@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
setne %al
movb %al, -49(%rbp) ## 1-byte Spill
LBB0_7:
movb -49(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %edi
callq _FUZZ_ASSERT
LBB0_8:
movq _cctx@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_10
## %bb.9:
movb $0, %al
callq _ZSTD_createCCtx
movq %rax, %rcx
movq _cctx@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _cctx@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl %eax, %edi
callq _FUZZ_ASSERT
LBB0_10:
movq _dctx@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_12
## %bb.11:
movb $0, %al
callq _ZSTD_createDCtx
movq %rax, %rcx
movq _dctx@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl %eax, %edi
callq _FUZZ_ASSERT
LBB0_12:
movq _rBuf@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -40(%rbp), %rsi
movq _cBuf@GOTPCREL(%rip), %rax
movq (%rax), %rdx
movq -40(%rbp), %rcx
movq -8(%rbp), %r8
movq -16(%rbp), %r9
movl -28(%rbp), %eax
movl %eax, (%rsp)
callq _roundTripTest
movq %rax, -48(%rbp)
movq -48(%rbp), %rdi
callq _FUZZ_ZASSERT
movq -48(%rbp), %rax
cmpq -16(%rbp), %rax
sete %al
andb $1, %al
movzbl %al, %edi
leaq L_.str(%rip), %rsi
callq _FUZZ_ASSERT_MSG
movq -8(%rbp), %rdi
movq _rBuf@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movq -16(%rbp), %rdx
callq _memcmp
cmpl $0, %eax
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %edi
leaq L_.str.1(%rip), %rsi
callq _FUZZ_ASSERT_MSG
movq -24(%rbp), %rdi
callq _FUZZ_dataProducer_free
movq _cctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _ZSTD_freeCCtx
movq _cctx@GOTPCREL(%rip), %rax
movq $0, (%rax)
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _ZSTD_freeDCtx
movq _dctx@GOTPCREL(%rip), %rax
movq $0, (%rax)
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _kMinClevel,4,2 ## @kMinClevel
.comm _kMaxClevel,4,2 ## @kMaxClevel
.comm _ZSTD_BLOCKSIZE_MAX,8,3 ## @ZSTD_BLOCKSIZE_MAX
.comm _bufSize,8,3 ## @bufSize
.comm _cBuf,8,3 ## @cBuf
.comm _rBuf,8,3 ## @rBuf
.comm _cctx,8,3 ## @cctx
.comm _dctx,8,3 ## @dctx
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Incorrect regenerated size"
L_.str.1: ## @.str.1
.asciz "Corruption!"
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_block_round_trip.c_LLVMFuzzerTestOneInput.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ; -- Begin function LLVMFuzzerTestOneInput
.p2align 2
_LLVMFuzzerTestOneInput: ; @LLVMFuzzerTestOneInput
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
stp x29, x30, [sp, #128] ; 16-byte Folded Spill
add x29, sp, #128
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _dctx@GOTPAGE
ldr x8, [x8, _dctx@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
bl _FUZZ_dataProducer_create
stur x0, [x29, #-24]
ldur x0, [x29, #-24]
bl _FUZZ_dataProducer_reserveDataPrefix
ldr x8, [sp, #32] ; 8-byte Folded Reload
stur x0, [x29, #-16]
; kill: def $x9 killed $xzr
stur xzr, [x29, #-56]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl _ZSTD_createDCtx
ldr x8, [sp, #32] ; 8-byte Folded Reload
str x0, [x8]
ldr x0, [x8]
bl _FUZZ_ASSERT
b LBB0_2
LBB0_2:
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
bl _FUZZ_train
str x0, [sp, #56]
str x1, [sp, #64]
ldur q0, [sp, #56]
stur q0, [x29, #-48]
ldur x0, [x29, #-24]
mov w1, #0
mov w2, #1
bl _FUZZ_dataProducer_uint32Range
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur x0, [x29, #-48]
ldur w1, [x29, #-40]
bl _ZSTD_createDDict
stur x0, [x29, #-56]
ldur x0, [x29, #-56]
bl _FUZZ_ASSERT
b LBB0_5
LBB0_4:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #24] ; 8-byte Folded Spill
ldur x8, [x29, #-48]
str x8, [sp, #8] ; 8-byte Folded Spill
ldur w8, [x29, #-40]
str w8, [sp, #16] ; 4-byte Folded Spill
ldur x0, [x29, #-24]
mov w1, #0
str w1, [sp, #4] ; 4-byte Folded Spill
mov w2, #1
bl _FUZZ_dataProducer_uint32Range
ldr w1, [sp, #4] ; 4-byte Folded Reload
mov x8, x0
str w8, [sp, #20] ; 4-byte Folded Spill
ldur x0, [x29, #-24]
mov w2, #2
bl _FUZZ_dataProducer_uint32Range
ldr x1, [sp, #8] ; 8-byte Folded Reload
ldr w2, [sp, #16] ; 4-byte Folded Reload
ldr w3, [sp, #20] ; 4-byte Folded Reload
mov x8, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
mov x4, x8
bl _ZSTD_DCtx_loadDictionary_advanced
bl _FUZZ_ZASSERT
b LBB0_5
LBB0_5:
ldur x0, [x29, #-24]
ldur x9, [x29, #-16]
mov x8, #10
mul x8, x8, x9
mov x2, x8
mov w1, #0
bl _FUZZ_dataProducer_uint32Range
str x0, [sp, #48]
ldr x0, [sp, #48]
bl _malloc
str x0, [sp, #40]
ldr x0, [sp, #40]
bl _FUZZ_ASSERT
ldur x8, [x29, #-56]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x1, [sp, #40]
ldr x2, [sp, #48]
ldur x3, [x29, #-8]
ldur x4, [x29, #-16]
ldur x5, [x29, #-56]
bl _ZSTD_decompress_usingDDict
b LBB0_8
LBB0_7:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x1, [sp, #40]
ldr x2, [sp, #48]
ldur x3, [x29, #-8]
ldur x4, [x29, #-16]
bl _ZSTD_decompressDCtx
b LBB0_8
LBB0_8:
ldr x0, [sp, #40]
bl _free
ldur x0, [x29, #-48]
bl _free
ldur x0, [x29, #-24]
bl _FUZZ_dataProducer_free
ldur x0, [x29, #-56]
bl _ZSTD_freeDDict
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [x8]
bl _ZSTD_freeDCtx
ldr x8, [sp, #32] ; 8-byte Folded Reload
; kill: def $x9 killed $xzr
str xzr, [x8]
mov w0, #0
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
add sp, sp, #144
ret
.cfi_endproc
; -- End function
.comm _dctx,8,3 ; @dctx
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ## -- Begin function LLVMFuzzerTestOneInput
.p2align 4, 0x90
_LLVMFuzzerTestOneInput: ## @LLVMFuzzerTestOneInput
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $112, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _FUZZ_dataProducer_create
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
callq _FUZZ_dataProducer_reserveDataPrefix
movq %rax, -16(%rbp)
movq $0, -48(%rbp)
movq _dctx@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_2
## %bb.1:
movb $0, %al
callq _ZSTD_createDCtx
movq %rax, %rcx
movq _dctx@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _FUZZ_ASSERT
LBB0_2:
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
callq _FUZZ_train
movq %rax, -64(%rbp)
movl %edx, -56(%rbp)
movq -64(%rbp), %rax
movq %rax, -40(%rbp)
movq -56(%rbp), %rax
movq %rax, -32(%rbp)
movq -24(%rbp), %rdi
xorl %esi, %esi
movl $1, %edx
callq _FUZZ_dataProducer_uint32Range
cmpq $0, %rax
jne LBB0_4
## %bb.3:
movq -40(%rbp), %rdi
movl -32(%rbp), %esi
callq _ZSTD_createDDict
movq %rax, -48(%rbp)
movq -48(%rbp), %rdi
callq _FUZZ_ASSERT
jmp LBB0_5
LBB0_4:
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -104(%rbp) ## 8-byte Spill
movq -40(%rbp), %rax
movq %rax, -96(%rbp) ## 8-byte Spill
movl -32(%rbp), %eax
movl %eax, -88(%rbp) ## 4-byte Spill
movq -24(%rbp), %rdi
xorl %esi, %esi
movl $1, %edx
callq _FUZZ_dataProducer_uint32Range
## kill: def $eax killed $eax killed $rax
movl %eax, -84(%rbp) ## 4-byte Spill
movq -24(%rbp), %rdi
xorl %esi, %esi
movl $2, %edx
callq _FUZZ_dataProducer_uint32Range
movq -104(%rbp), %rdi ## 8-byte Reload
movq -96(%rbp), %rsi ## 8-byte Reload
movl -88(%rbp), %edx ## 4-byte Reload
movl -84(%rbp), %ecx ## 4-byte Reload
movl %eax, %r8d
callq _ZSTD_DCtx_loadDictionary_advanced
movl %eax, %edi
callq _FUZZ_ZASSERT
LBB0_5:
movq -24(%rbp), %rdi
imulq $10, -16(%rbp), %rax
movl %eax, %edx
xorl %esi, %esi
callq _FUZZ_dataProducer_uint32Range
movq %rax, -72(%rbp)
movq -72(%rbp), %rdi
callq _malloc
movq %rax, -80(%rbp)
movq -80(%rbp), %rdi
callq _FUZZ_ASSERT
cmpq $0, -48(%rbp)
je LBB0_7
## %bb.6:
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -80(%rbp), %rsi
movq -72(%rbp), %rdx
movq -8(%rbp), %rcx
movq -16(%rbp), %r8
movq -48(%rbp), %r9
callq _ZSTD_decompress_usingDDict
jmp LBB0_8
LBB0_7:
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -80(%rbp), %rsi
movq -72(%rbp), %rdx
movq -8(%rbp), %rcx
movq -16(%rbp), %r8
callq _ZSTD_decompressDCtx
LBB0_8:
movq -80(%rbp), %rdi
callq _free
movq -40(%rbp), %rdi
callq _free
movq -24(%rbp), %rdi
callq _FUZZ_dataProducer_free
movq -48(%rbp), %rdi
callq _ZSTD_freeDDict
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _ZSTD_freeDCtx
movq _dctx@GOTPCREL(%rip), %rax
movq $0, (%rax)
xorl %eax, %eax
addq $112, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _dctx,8,3 ## @dctx
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_dictionary_decompress.c_LLVMFuzzerTestOneInput.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function roundTripTest
_roundTripTest: ; @roundTripTest
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur x2, [x29, #-32]
stur x3, [x29, #-40]
str x4, [sp, #48]
str x5, [sp, #40]
str w6, [sp, #36]
ldr w0, [sp, #36]
ldr x1, [sp, #40]
mov w2, #0
str w2, [sp, #12] ; 4-byte Folded Spill
bl _ZSTD_getParams
ldr w2, [sp, #12] ; 4-byte Folded Reload
str w0, [sp, #32]
adrp x8, _cctx@GOTPAGE
ldr x8, [x8, _cctx@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
ldr w0, [x8]
ldr w3, [sp, #32]
ldr x4, [sp, #40]
mov x1, #0
bl _ZSTD_compressBegin_advanced
str x0, [sp, #24]
ldr x0, [sp, #24]
bl _FUZZ_ZASSERT
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w0, [x8]
ldur x1, [x29, #-32]
ldur x2, [x29, #-40]
ldr x3, [sp, #48]
ldr x4, [sp, #40]
bl _ZSTD_compressBlock
str x0, [sp, #24]
ldr x0, [sp, #24]
bl _FUZZ_ZASSERT
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-24]
ldr x9, [sp, #40]
subs x8, x8, x9
cset w8, hs
and w0, w8, #0x1
bl _FUZZ_ASSERT
ldur x0, [x29, #-16]
ldr x1, [sp, #48]
ldr x2, [sp, #40]
bl _memcpy
ldr x8, [sp, #40]
stur x8, [x29, #-8]
b LBB0_3
LBB0_2:
adrp x8, _dctx@GOTPAGE
ldr x8, [x8, _dctx@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
ldr w0, [x8]
bl _ZSTD_decompressBegin
ldr x8, [sp] ; 8-byte Folded Reload
ldr w0, [x8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
ldur x3, [x29, #-32]
ldr x4, [sp, #24]
bl _ZSTD_decompressBlock
stur x0, [x29, #-8]
b LBB0_3
LBB0_3:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.comm _cctx,4,2 ; @cctx
.comm _dctx,4,2 ; @dctx
.no_dead_strip _roundTripTest
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function roundTripTest
_roundTripTest: ## @roundTripTest
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movl 16(%rbp), %eax
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq %rcx, -40(%rbp)
movq %r8, -48(%rbp)
movq %r9, -56(%rbp)
movl 16(%rbp), %edi
movq -56(%rbp), %rsi
xorl %edx, %edx
callq _ZSTD_getParams
movl %eax, -60(%rbp)
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl -60(%rbp), %ecx
movq -56(%rbp), %r8
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq _ZSTD_compressBegin_advanced
movq %rax, -72(%rbp)
movq -72(%rbp), %rdi
callq _FUZZ_ZASSERT
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -32(%rbp), %rsi
movq -40(%rbp), %rdx
movq -48(%rbp), %rcx
movq -56(%rbp), %r8
callq _ZSTD_compressBlock
movq %rax, -72(%rbp)
movq -72(%rbp), %rdi
callq _FUZZ_ZASSERT
cmpq $0, -72(%rbp)
jne LBB0_2
## %bb.1:
movq -24(%rbp), %rax
cmpq -56(%rbp), %rax
setae %al
andb $1, %al
movzbl %al, %edi
callq _FUZZ_ASSERT
movq -16(%rbp), %rdi
movq -48(%rbp), %rsi
movq -56(%rbp), %rdx
callq _memcpy
movq -56(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_3
LBB0_2:
movq _dctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _ZSTD_decompressBegin
movq _dctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
movq -32(%rbp), %rcx
movq -72(%rbp), %r8
callq _ZSTD_decompressBlock
movq %rax, -8(%rbp)
LBB0_3:
movq -8(%rbp), %rax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _cctx,4,2 ## @cctx
.comm _dctx,4,2 ## @dctx
.no_dead_strip _roundTripTest
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_block_round_trip.c_roundTripTest.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ; -- Begin function LLVMFuzzerTestOneInput
.p2align 2
_LLVMFuzzerTestOneInput: ; @LLVMFuzzerTestOneInput
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
bl _FUZZ_dataProducer_create
stur x0, [x29, #-24]
ldur x0, [x29, #-24]
mov w1, #0
str w1, [sp, #8] ; 4-byte Folded Spill
mov w2, #1
bl _FUZZ_dataProducer_uint32Range
ldr w1, [sp, #8] ; 4-byte Folded Reload
stur x0, [x29, #-16]
mov x8, x0
stur w8, [x29, #-28]
ldur x0, [x29, #-24]
mov w2, #2
str w2, [sp, #12] ; 4-byte Folded Spill
bl _FUZZ_dataProducer_uint32Range
stur x0, [x29, #-40]
ldur x0, [x29, #-24]
bl _FUZZ_dataProducer_remainingBytes
mov x8, x0
ldr w0, [sp, #12] ; 4-byte Folded Reload
stur x8, [x29, #-16]
ldur w2, [x29, #-28]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _DEBUGLOG
ldr w0, [sp, #12] ; 4-byte Folded Reload
ldur x8, [x29, #-40]
mov x2, x8
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _DEBUGLOG
ldr w0, [sp, #12] ; 4-byte Folded Reload
ldur x8, [x29, #-16]
mov x2, x8
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _DEBUGLOG
ldur x0, [x29, #-16]
bl _malloc
str x0, [sp, #48]
ldr x0, [sp, #48]
bl _FUZZ_ASSERT
ldur x0, [x29, #-16]
bl _ZSTD_compressBound
str x0, [sp, #40]
ldr x0, [sp, #40]
bl _malloc
str x0, [sp, #32]
ldr x0, [sp, #32]
bl _FUZZ_ASSERT
ldr x0, [sp, #32]
ldr x1, [sp, #40]
ldur x2, [x29, #-8]
ldur x3, [x29, #-16]
ldur x4, [x29, #-8]
ldur x5, [x29, #-16]
ldur w6, [x29, #-28]
ldur x7, [x29, #-40]
bl _compress
str x0, [sp, #24]
ldr x0, [sp, #24]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-40]
adrp x9, _ZSTD_dct_rawContent@GOTPAGE
ldr x9, [x9, _ZSTD_dct_rawContent@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
and w0, w8, #0x1
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _FUZZ_ASSERT_MSG
b LBB0_3
LBB0_2:
ldr x0, [sp, #48]
ldur x1, [x29, #-16]
ldr x2, [sp, #32]
ldr x3, [sp, #24]
ldur x4, [x29, #-8]
ldur x5, [x29, #-16]
ldur w6, [x29, #-28]
ldur x7, [x29, #-40]
bl _decompress
str x0, [sp, #16]
ldr x8, [sp, #16]
ldur x9, [x29, #-16]
subs x8, x8, x9
cset w8, eq
and w0, w8, #0x1
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _FUZZ_ASSERT_MSG
ldur x0, [x29, #-8]
ldr x1, [sp, #48]
ldur x2, [x29, #-16]
bl _memcmp
subs w8, w0, #0
cset w8, eq
and w0, w8, #0x1
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _FUZZ_ASSERT_MSG
b LBB0_3
LBB0_3:
ldr x0, [sp, #32]
bl _free
ldr x0, [sp, #48]
bl _free
ldur x0, [x29, #-24]
bl _FUZZ_dataProducer_free
mov w0, #0
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Dict load method %d"
l_.str.1: ; @.str.1
.asciz "Dict content type %d"
l_.str.2: ; @.str.2
.asciz "Dict size %u"
.comm _ZSTD_dct_rawContent,8,3 ; @ZSTD_dct_rawContent
l_.str.3: ; @.str.3
.asciz "Raw must always succeed!"
l_.str.4: ; @.str.4
.asciz "Incorrect regenerated size"
l_.str.5: ; @.str.5
.asciz "Corruption!"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ## -- Begin function LLVMFuzzerTestOneInput
.p2align 4, 0x90
_LLVMFuzzerTestOneInput: ## @LLVMFuzzerTestOneInput
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $96, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _FUZZ_dataProducer_create
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
xorl %esi, %esi
movl $1, %edx
callq _FUZZ_dataProducer_uint32Range
movq %rax, -16(%rbp)
## kill: def $eax killed $eax killed $rax
movl %eax, -28(%rbp)
movq -24(%rbp), %rdi
xorl %esi, %esi
movl $2, %edx
callq _FUZZ_dataProducer_uint32Range
movq %rax, -40(%rbp)
movq -24(%rbp), %rdi
callq _FUZZ_dataProducer_remainingBytes
movq %rax, -16(%rbp)
movl -28(%rbp), %edx
movl $2, %edi
leaq L_.str(%rip), %rsi
callq _DEBUGLOG
movq -40(%rbp), %rax
movl %eax, %edx
movl $2, %edi
leaq L_.str.1(%rip), %rsi
callq _DEBUGLOG
movq -16(%rbp), %rax
movl %eax, %edx
movl $2, %edi
leaq L_.str.2(%rip), %rsi
callq _DEBUGLOG
movq -16(%rbp), %rdi
callq _malloc
movq %rax, -48(%rbp)
movq -48(%rbp), %rdi
callq _FUZZ_ASSERT
movq -16(%rbp), %rdi
callq _ZSTD_compressBound
movq %rax, -56(%rbp)
movq -56(%rbp), %rdi
callq _malloc
movq %rax, -64(%rbp)
movq -64(%rbp), %rdi
callq _FUZZ_ASSERT
movq -64(%rbp), %rdi
movq -56(%rbp), %rsi
movq -8(%rbp), %rdx
movq -16(%rbp), %rcx
movq -8(%rbp), %r8
movq -16(%rbp), %r9
movl -28(%rbp), %r10d
movq -40(%rbp), %rax
movl %r10d, (%rsp)
movq %rax, 8(%rsp)
callq _compress
movq %rax, -72(%rbp)
movq -72(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_2
## %bb.1:
movq -40(%rbp), %rax
movq _ZSTD_dct_rawContent@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
setne %al
andb $1, %al
movzbl %al, %edi
leaq L_.str.3(%rip), %rsi
callq _FUZZ_ASSERT_MSG
jmp LBB0_3
LBB0_2:
movq -48(%rbp), %rdi
movq -16(%rbp), %rsi
movq -64(%rbp), %rdx
movq -72(%rbp), %rcx
movq -8(%rbp), %r8
movq -16(%rbp), %r9
movl -28(%rbp), %r10d
movq -40(%rbp), %rax
movl %r10d, (%rsp)
movq %rax, 8(%rsp)
callq _decompress
movq %rax, -80(%rbp)
movq -80(%rbp), %rax
cmpq -16(%rbp), %rax
sete %al
andb $1, %al
movzbl %al, %edi
leaq L_.str.4(%rip), %rsi
callq _FUZZ_ASSERT_MSG
movq -8(%rbp), %rdi
movq -48(%rbp), %rsi
movq -16(%rbp), %rdx
callq _memcmp
cmpl $0, %eax
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %edi
leaq L_.str.5(%rip), %rsi
callq _FUZZ_ASSERT_MSG
LBB0_3:
movq -64(%rbp), %rdi
callq _free
movq -48(%rbp), %rdi
callq _free
movq -24(%rbp), %rdi
callq _FUZZ_dataProducer_free
xorl %eax, %eax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Dict load method %d"
L_.str.1: ## @.str.1
.asciz "Dict content type %d"
L_.str.2: ## @.str.2
.asciz "Dict size %u"
.comm _ZSTD_dct_rawContent,8,3 ## @ZSTD_dct_rawContent
L_.str.3: ## @.str.3
.asciz "Raw must always succeed!"
L_.str.4: ## @.str.4
.asciz "Incorrect regenerated size"
L_.str.5: ## @.str.5
.asciz "Corruption!"
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_dictionary_loader.c_LLVMFuzzerTestOneInput.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function compress
_compress: ; @compress
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
str x4, [sp, #40]
str x5, [sp, #32]
str w6, [sp, #28]
str w7, [sp, #24]
bl _ZSTD_createCCtx
str x0, [sp, #16]
ldr x0, [sp, #16]
ldr x1, [sp, #40]
ldr x2, [sp, #32]
ldr w3, [sp, #28]
ldr w4, [sp, #24]
bl _ZSTD_CCtx_loadDictionary_advanced
bl _FUZZ_ZASSERT
ldr x0, [sp, #16]
ldur x1, [x29, #-8]
ldur x2, [x29, #-16]
ldur x3, [x29, #-24]
ldur x4, [x29, #-32]
bl _ZSTD_compress2
str x0, [sp, #8]
ldr x0, [sp, #16]
bl _ZSTD_freeCCtx
ldr x0, [sp, #8]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.no_dead_strip _compress
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function compress
_compress: ## @compress
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl 24(%rbp), %eax
movl 16(%rbp), %eax
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq %r9, -48(%rbp)
movb $0, %al
callq _ZSTD_createCCtx
movq %rax, -56(%rbp)
movq -56(%rbp), %rdi
movq -40(%rbp), %rsi
movq -48(%rbp), %rdx
movl 16(%rbp), %ecx
movl 24(%rbp), %r8d
callq _ZSTD_CCtx_loadDictionary_advanced
movl %eax, %edi
callq _FUZZ_ZASSERT
movq -56(%rbp), %rdi
movq -8(%rbp), %rsi
movq -16(%rbp), %rdx
movq -24(%rbp), %rcx
movq -32(%rbp), %r8
callq _ZSTD_compress2
movq %rax, -64(%rbp)
movq -56(%rbp), %rdi
callq _ZSTD_freeCCtx
movq -64(%rbp), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _compress
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_dictionary_loader.c_compress.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ; -- Begin function LLVMFuzzerTestOneInput
.p2align 2
_LLVMFuzzerTestOneInput: ; @LLVMFuzzerTestOneInput
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _cctx@GOTPAGE
ldr x8, [x8, _cctx@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
adrp x8, _dctx@GOTPAGE
ldr x8, [x8, _dctx@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
bl _FUZZ_dataProducer_create
stur x0, [x29, #-24]
ldur x0, [x29, #-24]
bl _FUZZ_dataProducer_reserveDataPrefix
stur x0, [x29, #-16]
ldur x8, [x29, #-16]
stur x8, [x29, #-32]
ldur x0, [x29, #-32]
bl _malloc
stur x0, [x29, #-40]
ldur x0, [x29, #-16]
bl _ZSTD_compressBound
str x0, [sp, #48]
ldur x0, [x29, #-24]
mov w1, #0
mov w2, #1
bl _FUZZ_dataProducer_uint32Range
ldr x8, [sp, #48]
subs x8, x8, x0
str x8, [sp, #48]
ldr x0, [sp, #48]
bl _malloc
ldr x8, [sp, #24] ; 8-byte Folded Reload
str x0, [sp, #40]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl _ZSTD_createCCtx
ldr x8, [sp, #24] ; 8-byte Folded Reload
str x0, [x8]
ldr x0, [x8]
bl _FUZZ_ASSERT
b LBB0_2
LBB0_2:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
bl _ZSTD_createDCtx
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x8]
ldr x0, [x8]
bl _FUZZ_ASSERT
b LBB0_4
LBB0_4:
ldur x0, [x29, #-40]
ldur x1, [x29, #-32]
ldr x2, [sp, #40]
ldr x3, [sp, #48]
ldur x4, [x29, #-8]
ldur x5, [x29, #-16]
ldur x6, [x29, #-24]
bl _roundTripTest
str x0, [sp, #32]
ldr x0, [sp, #32]
bl _FUZZ_ZASSERT
ldr x8, [sp, #32]
ldur x9, [x29, #-16]
subs x8, x8, x9
cset w8, eq
and w0, w8, #0x1
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _FUZZ_ASSERT_MSG
ldur x0, [x29, #-8]
ldur x1, [x29, #-40]
ldur x2, [x29, #-16]
bl _memcmp
mov w8, #0
str w8, [sp, #12] ; 4-byte Folded Spill
subs w8, w0, #0
cset w8, eq
and w0, w8, #0x1
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _FUZZ_ASSERT_MSG
ldur x0, [x29, #-40]
bl _free
ldr x0, [sp, #40]
bl _free
ldur x0, [x29, #-24]
bl _FUZZ_dataProducer_free
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x0, [x8]
bl _ZSTD_freeCCtx
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #16] ; 8-byte Folded Reload
; kill: def $x10 killed $xzr
str xzr, [x9]
ldr x0, [x8]
bl _ZSTD_freeDCtx
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w0, [sp, #12] ; 4-byte Folded Reload
str xzr, [x8]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.comm _cctx,8,3 ; @cctx
.comm _dctx,8,3 ; @dctx
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Incorrect regenerated size"
l_.str.1: ; @.str.1
.asciz "Corruption!"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ## -- Begin function LLVMFuzzerTestOneInput
.p2align 4, 0x90
_LLVMFuzzerTestOneInput: ## @LLVMFuzzerTestOneInput
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _FUZZ_dataProducer_create
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
callq _FUZZ_dataProducer_reserveDataPrefix
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq %rax, -32(%rbp)
movq -32(%rbp), %rdi
callq _malloc
movq %rax, -40(%rbp)
movq -16(%rbp), %rdi
callq _ZSTD_compressBound
movq %rax, -48(%rbp)
movq -24(%rbp), %rdi
xorl %esi, %esi
movl $1, %edx
callq _FUZZ_dataProducer_uint32Range
movq %rax, %rcx
movq -48(%rbp), %rax
subq %rcx, %rax
movq %rax, -48(%rbp)
movq -48(%rbp), %rdi
callq _malloc
movq %rax, -56(%rbp)
movq _cctx@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_2
## %bb.1:
movb $0, %al
callq _ZSTD_createCCtx
movq %rax, %rcx
movq _cctx@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _cctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _FUZZ_ASSERT
LBB0_2:
movq _dctx@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_4
## %bb.3:
movb $0, %al
callq _ZSTD_createDCtx
movq %rax, %rcx
movq _dctx@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _FUZZ_ASSERT
LBB0_4:
movq -40(%rbp), %rdi
movq -32(%rbp), %rsi
movq -56(%rbp), %rdx
movq -48(%rbp), %rcx
movq -8(%rbp), %r8
movq -16(%rbp), %r9
movq -24(%rbp), %rax
movq %rax, (%rsp)
callq _roundTripTest
movq %rax, -64(%rbp)
movq -64(%rbp), %rdi
callq _FUZZ_ZASSERT
movq -64(%rbp), %rax
cmpq -16(%rbp), %rax
sete %al
andb $1, %al
movzbl %al, %edi
leaq L_.str(%rip), %rsi
callq _FUZZ_ASSERT_MSG
movq -8(%rbp), %rdi
movq -40(%rbp), %rsi
movq -16(%rbp), %rdx
callq _memcmp
cmpl $0, %eax
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %edi
leaq L_.str.1(%rip), %rsi
callq _FUZZ_ASSERT_MSG
movq -40(%rbp), %rdi
callq _free
movq -56(%rbp), %rdi
callq _free
movq -24(%rbp), %rdi
callq _FUZZ_dataProducer_free
movq _cctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _ZSTD_freeCCtx
movq _cctx@GOTPCREL(%rip), %rax
movq $0, (%rax)
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _ZSTD_freeDCtx
movq _dctx@GOTPCREL(%rip), %rax
movq $0, (%rax)
xorl %eax, %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _cctx,8,3 ## @cctx
.comm _dctx,8,3 ## @dctx
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Incorrect regenerated size"
L_.str.1: ## @.str.1
.asciz "Corruption!"
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_dictionary_round_trip.c_LLVMFuzzerTestOneInput.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function decompress
_decompress: ; @decompress
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
str x4, [sp, #40]
str x5, [sp, #32]
str w6, [sp, #28]
str w7, [sp, #24]
bl _ZSTD_createDCtx
str x0, [sp, #16]
ldr x0, [sp, #16]
ldr x1, [sp, #40]
ldr x2, [sp, #32]
ldr w3, [sp, #28]
ldr w4, [sp, #24]
bl _ZSTD_DCtx_loadDictionary_advanced
bl _FUZZ_ZASSERT
ldr x0, [sp, #16]
ldur x1, [x29, #-8]
ldur x2, [x29, #-16]
ldur x3, [x29, #-24]
ldur x4, [x29, #-32]
bl _ZSTD_decompressDCtx
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _FUZZ_ZASSERT
ldr x0, [sp, #16]
bl _ZSTD_freeDCtx
ldr x0, [sp, #8]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.no_dead_strip _decompress
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function decompress
_decompress: ## @decompress
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl 24(%rbp), %eax
movl 16(%rbp), %eax
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq %r9, -48(%rbp)
movb $0, %al
callq _ZSTD_createDCtx
movq %rax, -56(%rbp)
movq -56(%rbp), %rdi
movq -40(%rbp), %rsi
movq -48(%rbp), %rdx
movl 16(%rbp), %ecx
movl 24(%rbp), %r8d
callq _ZSTD_DCtx_loadDictionary_advanced
movq %rax, %rdi
callq _FUZZ_ZASSERT
movq -56(%rbp), %rdi
movq -8(%rbp), %rsi
movq -16(%rbp), %rdx
movq -24(%rbp), %rcx
movq -32(%rbp), %r8
callq _ZSTD_decompressDCtx
movq %rax, -64(%rbp)
movq -64(%rbp), %rdi
callq _FUZZ_ZASSERT
movq -56(%rbp), %rdi
callq _ZSTD_freeDCtx
movq -64(%rbp), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _decompress
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_dictionary_loader.c_decompress.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function roundTripTest
_roundTripTest: ; @roundTripTest
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _cctx@GOTPAGE
ldr x8, [x8, _cctx@GOTPAGEOFF]
str x8, [sp, #40] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
stur x4, [x29, #-40]
stur x5, [x29, #-48]
stur x6, [x29, #-56]
adrp x8, _ZSTD_dct_auto@GOTPAGE
ldr x8, [x8, _ZSTD_dct_auto@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-64]
ldur x0, [x29, #-40]
ldur x1, [x29, #-48]
ldur x2, [x29, #-56]
bl _FUZZ_train
str x0, [sp, #72]
ldur x0, [x29, #-56]
mov w1, #0
mov w2, #15
bl _FUZZ_dataProducer_uint32Range
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x0, [x29, #-56]
adrp x8, _kMinClevel@GOTPAGE
ldr x8, [x8, _kMinClevel@GOTPAGEOFF]
ldr w1, [x8]
adrp x8, _kMaxClevel@GOTPAGE
ldr x8, [x8, _kMaxClevel@GOTPAGEOFF]
ldr w2, [x8]
bl _FUZZ_dataProducer_int32Range
ldr x8, [sp, #40] ; 8-byte Folded Reload
str w0, [sp, #60]
ldr w0, [x8]
ldur x1, [x29, #-24]
ldur x2, [x29, #-32]
ldur x3, [x29, #-40]
ldur x4, [x29, #-48]
ldr w5, [sp, #72]
ldr w6, [sp, #76]
ldr w7, [sp, #60]
bl _ZSTD_compress_usingDict
str x0, [sp, #64]
b LBB0_3
LBB0_2:
ldur x0, [x29, #-56]
mov w1, #0
str w1, [sp, #24] ; 4-byte Folded Spill
mov w2, #2
bl _FUZZ_dataProducer_uint32Range
ldr x8, [sp, #40] ; 8-byte Folded Reload
stur x0, [x29, #-64]
ldr w0, [x8]
ldur x1, [x29, #-48]
ldur x2, [x29, #-56]
bl _FUZZ_setRandomParameters
ldr w2, [sp, #24] ; 4-byte Folded Reload
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x8, _ZSTD_c_checksumFlag@GOTPAGE
ldr x8, [x8, _ZSTD_c_checksumFlag@GOTPAGEOFF]
ldr w1, [x8]
bl _ZSTD_CCtx_setParameter
bl _FUZZ_ZASSERT
ldr w1, [sp, #24] ; 4-byte Folded Reload
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w8, [x8]
str w8, [sp, #36] ; 4-byte Folded Spill
ldr w8, [sp, #72]
str w8, [sp, #28] ; 4-byte Folded Spill
ldr w8, [sp, #76]
str w8, [sp, #32] ; 4-byte Folded Spill
ldur x0, [x29, #-56]
mov w2, #1
bl _FUZZ_dataProducer_uint32Range
ldr w1, [sp, #28] ; 4-byte Folded Reload
ldr w2, [sp, #32] ; 4-byte Folded Reload
mov x8, x0
ldr w0, [sp, #36] ; 4-byte Folded Reload
mov x3, x8
ldur x4, [x29, #-64]
bl _ZSTD_CCtx_loadDictionary_advanced
bl _FUZZ_ZASSERT
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w0, [x8]
ldur x1, [x29, #-24]
ldur x2, [x29, #-32]
ldur x3, [x29, #-40]
ldur x4, [x29, #-48]
bl _ZSTD_compress2
str x0, [sp, #64]
b LBB0_3
LBB0_3:
ldr x0, [sp, #64]
bl _FUZZ_ZASSERT
adrp x8, _dctx@GOTPAGE
ldr x8, [x8, _dctx@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
ldr w8, [x8]
str w8, [sp, #12] ; 4-byte Folded Spill
ldr w8, [sp, #72]
str w8, [sp, #4] ; 4-byte Folded Spill
ldr w8, [sp, #76]
str w8, [sp, #8] ; 4-byte Folded Spill
ldur x0, [x29, #-56]
mov w1, #0
mov w2, #1
bl _FUZZ_dataProducer_uint32Range
ldr w1, [sp, #4] ; 4-byte Folded Reload
ldr w2, [sp, #8] ; 4-byte Folded Reload
mov x8, x0
ldr w0, [sp, #12] ; 4-byte Folded Reload
mov x3, x8
ldur x4, [x29, #-64]
bl _ZSTD_DCtx_loadDictionary_advanced
bl _FUZZ_ZASSERT
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w0, [x8]
ldur x1, [x29, #-8]
ldur x2, [x29, #-16]
ldur x3, [x29, #-24]
ldr x4, [sp, #64]
bl _ZSTD_decompressDCtx
str x0, [sp, #48]
ldr w0, [sp, #72]
bl _free
ldr x0, [sp, #48]
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
add sp, sp, #160
ret
.cfi_endproc
; -- End function
.comm _ZSTD_dct_auto,8,3 ; @ZSTD_dct_auto
.comm _kMinClevel,4,2 ; @kMinClevel
.comm _kMaxClevel,4,2 ; @kMaxClevel
.comm _cctx,4,2 ; @cctx
.comm _ZSTD_c_checksumFlag,4,2 ; @ZSTD_c_checksumFlag
.comm _dctx,4,2 ; @dctx
.no_dead_strip _roundTripTest
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function roundTripTest
_roundTripTest: ## @roundTripTest
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
movq 16(%rbp), %rax
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq %r9, -48(%rbp)
movq _ZSTD_dct_auto@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -56(%rbp)
movq -40(%rbp), %rdi
movq -48(%rbp), %rsi
movq 16(%rbp), %rdx
callq _FUZZ_train
movq %rax, -64(%rbp)
movq 16(%rbp), %rdi
xorl %esi, %esi
movl $15, %edx
callq _FUZZ_dataProducer_uint32Range
cmpq $0, %rax
jne LBB0_2
## %bb.1:
movq 16(%rbp), %rdi
movq _kMinClevel@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _kMaxClevel@GOTPCREL(%rip), %rax
movl (%rax), %edx
callq _FUZZ_dataProducer_int32Range
movl %eax, -76(%rbp)
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
movq -40(%rbp), %rcx
movq -48(%rbp), %r8
movl -64(%rbp), %r9d
movl -60(%rbp), %r10d
movl -76(%rbp), %eax
movl %r10d, (%rsp)
movl %eax, 8(%rsp)
callq _ZSTD_compress_usingDict
movq %rax, -72(%rbp)
jmp LBB0_3
LBB0_2:
movq 16(%rbp), %rdi
xorl %esi, %esi
movl $2, %edx
callq _FUZZ_dataProducer_uint32Range
movq %rax, -56(%rbp)
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -48(%rbp), %rsi
movq 16(%rbp), %rdx
callq _FUZZ_setRandomParameters
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ZSTD_c_checksumFlag@GOTPCREL(%rip), %rax
movl (%rax), %esi
xorl %edx, %edx
callq _ZSTD_CCtx_setParameter
movq %rax, %rdi
callq _FUZZ_ZASSERT
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -100(%rbp) ## 4-byte Spill
movl -64(%rbp), %eax
movl %eax, -96(%rbp) ## 4-byte Spill
movl -60(%rbp), %eax
movl %eax, -92(%rbp) ## 4-byte Spill
movq 16(%rbp), %rdi
xorl %esi, %esi
movl $1, %edx
callq _FUZZ_dataProducer_uint32Range
movl -100(%rbp), %edi ## 4-byte Reload
movl -96(%rbp), %esi ## 4-byte Reload
movl -92(%rbp), %edx ## 4-byte Reload
movl %eax, %ecx
movq -56(%rbp), %r8
callq _ZSTD_CCtx_loadDictionary_advanced
movq %rax, %rdi
callq _FUZZ_ZASSERT
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
movq -40(%rbp), %rcx
movq -48(%rbp), %r8
callq _ZSTD_compress2
movq %rax, -72(%rbp)
LBB0_3:
movq -72(%rbp), %rdi
callq _FUZZ_ZASSERT
movq _dctx@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -112(%rbp) ## 4-byte Spill
movl -64(%rbp), %eax
movl %eax, -108(%rbp) ## 4-byte Spill
movl -60(%rbp), %eax
movl %eax, -104(%rbp) ## 4-byte Spill
movq 16(%rbp), %rdi
xorl %esi, %esi
movl $1, %edx
callq _FUZZ_dataProducer_uint32Range
movl -112(%rbp), %edi ## 4-byte Reload
movl -108(%rbp), %esi ## 4-byte Reload
movl -104(%rbp), %edx ## 4-byte Reload
movl %eax, %ecx
movq -56(%rbp), %r8
callq _ZSTD_DCtx_loadDictionary_advanced
movq %rax, %rdi
callq _FUZZ_ZASSERT
movq _dctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -8(%rbp), %rsi
movq -16(%rbp), %rdx
movq -24(%rbp), %rcx
movq -72(%rbp), %r8
callq _ZSTD_decompressDCtx
movq %rax, -88(%rbp)
movl -64(%rbp), %edi
callq _free
movq -88(%rbp), %rax
addq $128, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_dct_auto,8,3 ## @ZSTD_dct_auto
.comm _kMinClevel,4,2 ## @kMinClevel
.comm _kMaxClevel,4,2 ## @kMaxClevel
.comm _cctx,4,2 ## @cctx
.comm _ZSTD_c_checksumFlag,4,2 ## @ZSTD_c_checksumFlag
.comm _dctx,4,2 ## @dctx
.no_dead_strip _roundTripTest
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_dictionary_round_trip.c_roundTripTest.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_create ; -- Begin function FUZZ_dataProducer_create
.p2align 2
_FUZZ_dataProducer_create: ; @FUZZ_dataProducer_create
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
mov w0, #16
bl _malloc
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
and w0, w8, #0x1
bl _FUZZ_ASSERT
ldur x8, [x29, #-8]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9]
ldr x0, [sp, #8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_create ## -- Begin function FUZZ_dataProducer_create
.p2align 4, 0x90
_FUZZ_dataProducer_create: ## @FUZZ_dataProducer_create
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $16, %edi
callq _malloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
setne %al
andb $1, %al
movzbl %al, %edi
callq _FUZZ_ASSERT
movq -8(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
movq -24(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_fuzz_data_producer.c_FUZZ_dataProducer_create.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_contract ; -- Begin function FUZZ_dataProducer_contract
.p2align 2
_FUZZ_dataProducer_contract: ; @FUZZ_dataProducer_contract
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
ldr x8, [sp, #16]
ldr x9, [sp, #24]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #24]
ldr x8, [x8]
str x8, [sp] ; 8-byte Folded Spill
b LBB0_3
LBB0_2:
ldr x8, [sp, #16]
str x8, [sp] ; 8-byte Folded Spill
b LBB0_3
LBB0_3:
ldr x8, [sp] ; 8-byte Folded Reload
str x8, [sp, #16]
ldr x8, [sp, #24]
ldr x8, [x8]
ldr x9, [sp, #16]
subs x8, x8, x9
str x8, [sp, #8]
ldr x8, [sp, #24]
ldr x8, [x8, #8]
ldr x9, [sp, #8]
add x8, x8, x9
ldr x9, [sp, #24]
str x8, [x9, #8]
ldr x8, [sp, #16]
ldr x9, [sp, #24]
str x8, [x9]
ldr x0, [sp, #8]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_contract ## -- Begin function FUZZ_dataProducer_contract
.p2align 4, 0x90
_FUZZ_dataProducer_contract: ## @FUZZ_dataProducer_contract
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rax
movq -8(%rbp), %rcx
cmpq (%rcx), %rax
jbe LBB0_2
## %bb.1:
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
jmp LBB0_3
LBB0_2:
movq -16(%rbp), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
LBB0_3:
movq -32(%rbp), %rax ## 8-byte Reload
movq %rax, -16(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
subq -16(%rbp), %rax
movq %rax, -24(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rcx
addq -24(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, 8(%rax)
movq -16(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
movq -24(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_fuzz_data_producer.c_FUZZ_dataProducer_contract.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_free ; -- Begin function FUZZ_dataProducer_free
.p2align 2
_FUZZ_dataProducer_free: ; @FUZZ_dataProducer_free
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _free
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_free ## -- Begin function FUZZ_dataProducer_free
.p2align 4, 0x90
_FUZZ_dataProducer_free: ## @FUZZ_dataProducer_free
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
callq _free
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_fuzz_data_producer.c_FUZZ_dataProducer_free.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_int32Range ; -- Begin function FUZZ_dataProducer_int32Range
.p2align 2
_FUZZ_dataProducer_int32Range: ; @FUZZ_dataProducer_int32Range
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
str x1, [sp, #8]
str x2, [sp]
ldr x8, [sp, #8]
ldr x9, [sp]
subs x8, x8, x9
cset w8, le
and w0, w8, #0x1
bl _FUZZ_ASSERT
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x0, [sp, #16]
ldr x8, [sp]
ldr x9, [sp, #8]
subs x2, x8, x9
mov x1, #0
bl _FUZZ_dataProducer_uint32Range
mov x9, x0
ldr x8, [sp, #8]
add x8, x8, w9, sxtw
stur x8, [x29, #-8]
b LBB0_3
LBB0_2:
ldr x0, [sp, #16]
ldr x1, [sp, #8]
ldr x2, [sp]
bl _FUZZ_dataProducer_uint32Range
stur x0, [x29, #-8]
b LBB0_3
LBB0_3:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_int32Range ## -- Begin function FUZZ_dataProducer_int32Range
.p2align 4, 0x90
_FUZZ_dataProducer_int32Range: ## @FUZZ_dataProducer_int32Range
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq -24(%rbp), %rax
cmpq -32(%rbp), %rax
setle %al
andb $1, %al
movzbl %al, %edi
callq _FUZZ_ASSERT
cmpq $0, -24(%rbp)
jge LBB0_2
## %bb.1:
movq -16(%rbp), %rdi
movq -32(%rbp), %rdx
subq -24(%rbp), %rdx
xorl %eax, %eax
movl %eax, %esi
callq _FUZZ_dataProducer_uint32Range
## kill: def $eax killed $eax killed $rax
cltq
addq -24(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_3
LBB0_2:
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
callq _FUZZ_dataProducer_uint32Range
movq %rax, -8(%rbp)
LBB0_3:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_fuzz_data_producer.c_FUZZ_dataProducer_int32Range.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_remainingBytes ; -- Begin function FUZZ_dataProducer_remainingBytes
.p2align 2
_FUZZ_dataProducer_remainingBytes: ; @FUZZ_dataProducer_remainingBytes
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x0, [x8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_remainingBytes ## -- Begin function FUZZ_dataProducer_remainingBytes
.p2align 4, 0x90
_FUZZ_dataProducer_remainingBytes: ## @FUZZ_dataProducer_remainingBytes
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_fuzz_data_producer.c_FUZZ_dataProducer_remainingBytes.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_reserveDataPrefix ; -- Begin function FUZZ_dataProducer_reserveDataPrefix
.p2align 2
_FUZZ_dataProducer_reserveDataPrefix: ; @FUZZ_dataProducer_reserveDataPrefix
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x0, [sp, #8]
ldr x8, [sp, #8]
ldr w2, [x8]
mov w1, #0
bl _FUZZ_dataProducer_uint32Range
str x0, [sp]
ldr x0, [sp, #8]
ldr x1, [sp]
bl _FUZZ_dataProducer_contract
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_reserveDataPrefix ## -- Begin function FUZZ_dataProducer_reserveDataPrefix
.p2align 4, 0x90
_FUZZ_dataProducer_reserveDataPrefix: ## @FUZZ_dataProducer_reserveDataPrefix
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
movq -8(%rbp), %rax
movl (%rax), %edx
xorl %esi, %esi
callq _FUZZ_dataProducer_uint32Range
movq %rax, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _FUZZ_dataProducer_contract
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_fuzz_data_producer.c_FUZZ_dataProducer_reserveDataPrefix.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_uint32 ; -- Begin function FUZZ_dataProducer_uint32
.p2align 2
_FUZZ_dataProducer_uint32: ; @FUZZ_dataProducer_uint32
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x0, [sp, #8]
mov w1, #0
mov w2, #-1
bl _FUZZ_dataProducer_uint32Range
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_uint32 ## -- Begin function FUZZ_dataProducer_uint32
.p2align 4, 0x90
_FUZZ_dataProducer_uint32: ## @FUZZ_dataProducer_uint32
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
xorl %esi, %esi
movl $4294967295, %edx ## imm = 0xFFFFFFFF
callq _FUZZ_dataProducer_uint32Range
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_fuzz_data_producer.c_FUZZ_dataProducer_uint32.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_uint32Range ; -- Begin function FUZZ_dataProducer_uint32Range
.p2align 2
_FUZZ_dataProducer_uint32Range: ; @FUZZ_dataProducer_uint32Range
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur x2, [x29, #-32]
ldur x8, [x29, #-24]
ldur x9, [x29, #-32]
subs x8, x8, x9
cset w8, le
and w0, w8, #0x1
bl _FUZZ_ASSERT
ldur x8, [x29, #-32]
ldur x9, [x29, #-24]
subs x8, x8, x9
str x8, [sp, #40]
ldr x8, [sp, #40]
str x8, [sp, #32]
str xzr, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, le
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldr x8, [x8]
subs x8, x8, #0
cset w8, gt
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
ldur x9, [x29, #-16]
ldr x9, [x9]
add x8, x8, x9, lsl #3
ldur x8, [x8, #-8]
str x8, [sp, #16]
ldur x9, [x29, #-16]
ldr x8, [x9]
subs x8, x8, #1
str x8, [x9]
ldr x9, [sp, #24]
ldr x8, [sp, #16]
orr x8, x8, x9, lsl #8
str x8, [sp, #24]
ldr x8, [sp, #32]
asr x8, x8, #8
str x8, [sp, #32]
b LBB0_1
LBB0_5:
ldr x8, [sp, #40]
mov x9, #4294967295
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr x8, [sp, #24]
stur x8, [x29, #-8]
b LBB0_8
LBB0_7:
ldur x8, [x29, #-24]
ldr x9, [sp, #24]
ldr x10, [sp, #40]
add x11, x10, #1
sdiv x10, x9, x11
mul x10, x10, x11
subs x9, x9, x10
add x8, x8, x9
stur x8, [x29, #-8]
b LBB0_8
LBB0_8:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_dataProducer_uint32Range ## -- Begin function FUZZ_dataProducer_uint32Range
.p2align 4, 0x90
_FUZZ_dataProducer_uint32Range: ## @FUZZ_dataProducer_uint32Range
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq -24(%rbp), %rax
cmpq -32(%rbp), %rax
setle %al
andb $1, %al
movzbl %al, %edi
callq _FUZZ_ASSERT
movq -32(%rbp), %rax
subq -24(%rbp), %rax
movq %rax, -40(%rbp)
movq -40(%rbp), %rax
movq %rax, -48(%rbp)
movq $0, -56(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq $0, -48(%rbp)
movb %al, -65(%rbp) ## 1-byte Spill
jle LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
cmpq $0, (%rax)
setg %al
movb %al, -65(%rbp) ## 1-byte Spill
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movb -65(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_4
jmp LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq -16(%rbp), %rcx
movq (%rcx), %rcx
movq -8(%rax,%rcx,8), %rax
movq %rax, -64(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rcx
subq $1, %rcx
movq %rcx, (%rax)
movq -56(%rbp), %rax
shlq $8, %rax
orq -64(%rbp), %rax
movq %rax, -56(%rbp)
movq -48(%rbp), %rax
sarq $8, %rax
movq %rax, -48(%rbp)
jmp LBB0_1
LBB0_5:
movl $4294967295, %eax ## imm = 0xFFFFFFFF
cmpq %rax, -40(%rbp)
jne LBB0_7
## %bb.6:
movq -56(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_8
LBB0_7:
movq -24(%rbp), %rax
movq %rax, -80(%rbp) ## 8-byte Spill
movq -56(%rbp), %rax
movq -40(%rbp), %rcx
addq $1, %rcx
cqto
idivq %rcx
movq -80(%rbp), %rax ## 8-byte Reload
addq %rdx, %rax
movq %rax, -8(%rbp)
LBB0_8:
movq -8(%rbp), %rax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_fuzz_data_producer.c_FUZZ_dataProducer_uint32Range.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
mov x8, #134217728
stur x8, [x29, #-24]
mov w8, #1
stur w8, [x29, #-28]
; kill: def $x8 killed $xzr
stur xzr, [x29, #-40]
ldur x8, [x29, #-16]
add x8, x8, #8
stur x8, [x29, #-48]
ldur w8, [x29, #-8]
subs w8, w8, #1
stur w8, [x29, #-52]
str xzr, [sp, #48]
str xzr, [sp, #40]
ldur w8, [x29, #-52]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
ldr w0, [x8]
ldur x8, [x29, #-16]
ldr x2, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
b LBB0_2
LBB0_2:
str wzr, [sp, #36]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
ldur w9, [x29, #-52]
subs w8, w8, w9
cset w8, hs
tbnz w8, #0, LBB0_10
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-48]
ldr w9, [sp, #36]
; kill: def $x9 killed $w9
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #24]
ldr x2, [sp, #24]
mov w0, #3
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _DEBUGLOG
ldr x0, [sp, #24]
bl _UTIL_getFileSize
str x0, [sp, #16]
ldr x0, [sp, #24]
bl _UTIL_isRegularFile
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
b LBB0_9
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #16]
mov x9, #134217728
subs x8, x8, x9
cset w8, ls
and w0, w8, #0x1
ldr x1, [sp, #24]
bl _FUZZ_ASSERT_MSG
ldr x8, [sp, #16]
ldr x9, [sp, #40]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
ldr x0, [sp, #48]
bl _free
ldr x0, [sp, #16]
bl _malloc
str x0, [sp, #48]
ldr x8, [sp, #48]
mov x0, x8
ldr x1, [sp, #24]
bl _FUZZ_ASSERT_MSG
ldr x8, [sp, #16]
str x8, [sp, #40]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_3 Depth=1
ldr x0, [sp, #24]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fopen
str x0, [sp]
ldr x8, [sp]
mov x0, x8
ldr x1, [sp, #24]
bl _FUZZ_ASSERT_MSG
ldr x0, [sp, #48]
ldr x2, [sp, #16]
ldr x3, [sp]
mov w1, #1
bl _fread
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, eq
and w0, w8, #0x1
ldr x1, [sp, #24]
bl _FUZZ_ASSERT_MSG
ldr x0, [sp]
bl _fclose
ldr x0, [sp, #48]
ldr x1, [sp, #16]
bl _LLVMFuzzerTestOneInput
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_3
LBB0_10:
str wzr, [sp, #32]
ldr x0, [sp, #48]
bl _free
ldr w0, [sp, #32]
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "WARNING: No files passed to %s\n"
l_.str.1: ; @.str.1
.asciz "Running %s"
l_.str.2: ; @.str.2
.asciz "rb"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $112, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movq $134217728, -24(%rbp) ## imm = 0x8000000
movl $1, -28(%rbp)
movq $0, -40(%rbp)
movq -16(%rbp), %rax
addq $8, %rax
movq %rax, -48(%rbp)
movl -8(%rbp), %eax
subl $1, %eax
movl %eax, -52(%rbp)
movq $0, -64(%rbp)
movq $0, -72(%rbp)
cmpl $0, -52(%rbp)
jne LBB0_2
## %bb.1:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -16(%rbp), %rax
movq (%rax), %rdx
leaq L_.str(%rip), %rsi
callq _fprintf
LBB0_2:
movl $0, -76(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
movl -76(%rbp), %eax
cmpl -52(%rbp), %eax
jae LBB0_10
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -48(%rbp), %rax
movl -76(%rbp), %ecx
## kill: def $rcx killed $ecx
movq (%rax,%rcx,8), %rax
movq %rax, -88(%rbp)
movq -88(%rbp), %rdx
movl $3, %edi
leaq L_.str.1(%rip), %rsi
callq _DEBUGLOG
movq -88(%rbp), %rdi
callq _UTIL_getFileSize
movq %rax, -96(%rbp)
movq -88(%rbp), %rdi
callq _UTIL_isRegularFile
cmpl $0, %eax
jne LBB0_6
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_9
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
cmpq $134217728, -96(%rbp) ## imm = 0x8000000
setbe %al
andb $1, %al
movzbl %al, %edi
movq -88(%rbp), %rsi
callq _FUZZ_ASSERT_MSG
movq -96(%rbp), %rax
cmpq -72(%rbp), %rax
jbe LBB0_8
## %bb.7: ## in Loop: Header=BB0_3 Depth=1
movq -64(%rbp), %rdi
callq _free
movq -96(%rbp), %rdi
callq _malloc
movq %rax, -64(%rbp)
movq -64(%rbp), %rax
movl %eax, %edi
movq -88(%rbp), %rsi
callq _FUZZ_ASSERT_MSG
movq -96(%rbp), %rax
movq %rax, -72(%rbp)
LBB0_8: ## in Loop: Header=BB0_3 Depth=1
movq -88(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _fopen
movq %rax, -112(%rbp)
movq -112(%rbp), %rax
movl %eax, %edi
movq -88(%rbp), %rsi
callq _FUZZ_ASSERT_MSG
movq -64(%rbp), %rdi
movq -96(%rbp), %rdx
movq -112(%rbp), %rcx
movl $1, %esi
callq _fread
movq %rax, -104(%rbp)
movq -104(%rbp), %rax
cmpq -96(%rbp), %rax
sete %al
andb $1, %al
movzbl %al, %edi
movq -88(%rbp), %rsi
callq _FUZZ_ASSERT_MSG
movq -112(%rbp), %rdi
callq _fclose
movq -64(%rbp), %rdi
movq -96(%rbp), %rsi
callq _LLVMFuzzerTestOneInput
LBB0_9: ## in Loop: Header=BB0_3 Depth=1
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
jmp LBB0_3
LBB0_10:
movl $0, -80(%rbp)
movq -64(%rbp), %rdi
callq _free
movl -80(%rbp), %eax
addq $112, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "WARNING: No files passed to %s\n"
L_.str.1: ## @.str.1
.asciz "Running %s"
L_.str.2: ## @.str.2
.asciz "rb"
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_regression_driver.c_main.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ; -- Begin function LLVMFuzzerTestOneInput
.p2align 2
_LLVMFuzzerTestOneInput: ; @LLVMFuzzerTestOneInput
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _dctx@GOTPAGE
ldr x8, [x8, _dctx@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
bl _FUZZ_dataProducer_create
stur x0, [x29, #-24]
ldur x0, [x29, #-24]
bl _FUZZ_dataProducer_reserveDataPrefix
ldr x8, [sp, #16] ; 8-byte Folded Reload
stur x0, [x29, #-16]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl _ZSTD_createDCtx
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x8]
ldr x0, [x8]
bl _FUZZ_ASSERT
b LBB0_2
LBB0_2:
ldur x0, [x29, #-24]
ldur x9, [x29, #-16]
mov x8, #10
mul x8, x8, x9
mov x2, x8
mov w1, #0
str w1, [sp, #12] ; 4-byte Folded Spill
bl _FUZZ_dataProducer_uint32Range
str x0, [sp, #32]
ldr x0, [sp, #32]
bl _malloc
str x0, [sp, #24]
ldr x0, [sp, #24]
bl _FUZZ_ASSERT
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x1, [sp, #24]
ldr x2, [sp, #32]
ldur x3, [x29, #-8]
ldur x4, [x29, #-16]
bl _ZSTD_decompressDCtx
ldr x0, [sp, #24]
bl _free
ldur x0, [x29, #-24]
bl _FUZZ_dataProducer_free
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
bl _ZSTD_freeDCtx
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w0, [sp, #12] ; 4-byte Folded Reload
; kill: def $x9 killed $xzr
str xzr, [x8]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.comm _dctx,8,3 ; @dctx
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ## -- Begin function LLVMFuzzerTestOneInput
.p2align 4, 0x90
_LLVMFuzzerTestOneInput: ## @LLVMFuzzerTestOneInput
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _FUZZ_dataProducer_create
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
callq _FUZZ_dataProducer_reserveDataPrefix
movq %rax, -16(%rbp)
movq _dctx@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_2
## %bb.1:
movb $0, %al
callq _ZSTD_createDCtx
movq %rax, %rcx
movq _dctx@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _FUZZ_ASSERT
LBB0_2:
movq -24(%rbp), %rdi
imulq $10, -16(%rbp), %rax
movl %eax, %edx
xorl %esi, %esi
callq _FUZZ_dataProducer_uint32Range
movq %rax, -32(%rbp)
movq -32(%rbp), %rdi
callq _malloc
movq %rax, -40(%rbp)
movq -40(%rbp), %rdi
callq _FUZZ_ASSERT
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -40(%rbp), %rsi
movq -32(%rbp), %rdx
movq -8(%rbp), %rcx
movq -16(%rbp), %r8
callq _ZSTD_decompressDCtx
movq -40(%rbp), %rdi
callq _free
movq -24(%rbp), %rdi
callq _FUZZ_dataProducer_free
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _ZSTD_freeDCtx
movq _dctx@GOTPCREL(%rip), %rax
movq $0, (%rax)
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _dctx,8,3 ## @dctx
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_simple_decompress.c_LLVMFuzzerTestOneInput.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ; -- Begin function LLVMFuzzerTestOneInput
.p2align 2
_LLVMFuzzerTestOneInput: ; @LLVMFuzzerTestOneInput
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _cctx@GOTPAGE
ldr x8, [x8, _cctx@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x8, _dctx@GOTPAGE
ldr x8, [x8, _dctx@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x8, [x29, #-16]
stur x8, [x29, #-24]
ldur x0, [x29, #-24]
bl _malloc
stur x0, [x29, #-32]
ldur x0, [x29, #-16]
bl _ZSTD_compressBound
stur x0, [x29, #-40]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
bl _FUZZ_dataProducer_create
str x0, [sp, #40]
ldr x0, [sp, #40]
bl _FUZZ_dataProducer_reserveDataPrefix
stur x0, [x29, #-16]
ldr x0, [sp, #40]
mov w1, #0
mov w2, #1
bl _FUZZ_dataProducer_uint32Range
ldur x8, [x29, #-40]
subs x8, x8, x0
stur x8, [x29, #-40]
ldur x0, [x29, #-40]
bl _malloc
str x0, [sp, #48]
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #28] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, ne
str w8, [sp, #28] ; 4-byte Folded Spill
b LBB0_2
LBB0_2:
ldr w8, [sp, #28] ; 4-byte Folded Reload
and w0, w8, #0x1
bl _FUZZ_ASSERT
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
bl _ZSTD_createCCtx
ldr x8, [sp, #8] ; 8-byte Folded Reload
str x0, [x8]
ldr x8, [x8]
mov x0, x8
bl _FUZZ_ASSERT
b LBB0_4
LBB0_4:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
bl _ZSTD_createDCtx
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x8]
ldr x8, [x8]
mov x0, x8
bl _FUZZ_ASSERT
b LBB0_6
LBB0_6:
ldur x0, [x29, #-32]
ldur x1, [x29, #-24]
ldr x2, [sp, #48]
ldur x3, [x29, #-40]
ldur x4, [x29, #-8]
ldur x5, [x29, #-16]
ldr x6, [sp, #40]
bl _roundTripTest
str x0, [sp, #32]
ldr x0, [sp, #32]
bl _FUZZ_ZASSERT
ldr x8, [sp, #32]
ldur x9, [x29, #-16]
subs x8, x8, x9
cset w8, eq
and w0, w8, #0x1
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _FUZZ_ASSERT_MSG
ldur x0, [x29, #-8]
ldur x1, [x29, #-32]
ldur x2, [x29, #-16]
bl _memcmp
mov w8, #0
str w8, [sp, #4] ; 4-byte Folded Spill
subs w8, w0, #0
cset w8, eq
and w0, w8, #0x1
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _FUZZ_ASSERT_MSG
ldur x0, [x29, #-32]
bl _free
ldr x0, [sp, #48]
bl _free
ldr x0, [sp, #40]
bl _FUZZ_dataProducer_free
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [x8]
bl _ZSTD_freeCCtx
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [sp, #16] ; 8-byte Folded Reload
; kill: def $x10 killed $xzr
str xzr, [x9]
ldr x0, [x8]
bl _ZSTD_freeDCtx
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w0, [sp, #4] ; 4-byte Folded Reload
str xzr, [x8]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.comm _cctx,8,3 ; @cctx
.comm _dctx,8,3 ; @dctx
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Incorrect regenerated size"
l_.str.1: ; @.str.1
.asciz "Corruption!"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ## -- Begin function LLVMFuzzerTestOneInput
.p2align 4, 0x90
_LLVMFuzzerTestOneInput: ## @LLVMFuzzerTestOneInput
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
callq _malloc
movq %rax, -32(%rbp)
movq -16(%rbp), %rdi
callq _ZSTD_compressBound
movq %rax, -40(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _FUZZ_dataProducer_create
movq %rax, -56(%rbp)
movq -56(%rbp), %rdi
callq _FUZZ_dataProducer_reserveDataPrefix
movq %rax, -16(%rbp)
movq -56(%rbp), %rdi
xorl %esi, %esi
movl $1, %edx
callq _FUZZ_dataProducer_uint32Range
movq %rax, %rcx
movq -40(%rbp), %rax
subq %rcx, %rax
movq %rax, -40(%rbp)
movq -40(%rbp), %rdi
callq _malloc
movq %rax, -48(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq $0, -48(%rbp)
movb %al, -65(%rbp) ## 1-byte Spill
je LBB0_2
## %bb.1:
cmpq $0, -32(%rbp)
setne %al
movb %al, -65(%rbp) ## 1-byte Spill
LBB0_2:
movb -65(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %edi
callq _FUZZ_ASSERT
movq _cctx@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_4
## %bb.3:
movb $0, %al
callq _ZSTD_createCCtx
movq %rax, %rcx
movq _cctx@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _cctx@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl %eax, %edi
callq _FUZZ_ASSERT
LBB0_4:
movq _dctx@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_6
## %bb.5:
movb $0, %al
callq _ZSTD_createDCtx
movq %rax, %rcx
movq _dctx@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl %eax, %edi
callq _FUZZ_ASSERT
LBB0_6:
movq -32(%rbp), %rdi
movq -24(%rbp), %rsi
movq -48(%rbp), %rdx
movq -40(%rbp), %rcx
movq -8(%rbp), %r8
movq -16(%rbp), %r9
movq -56(%rbp), %rax
movq %rax, (%rsp)
callq _roundTripTest
movq %rax, -64(%rbp)
movq -64(%rbp), %rdi
callq _FUZZ_ZASSERT
movq -64(%rbp), %rax
cmpq -16(%rbp), %rax
sete %al
andb $1, %al
movzbl %al, %edi
leaq L_.str(%rip), %rsi
callq _FUZZ_ASSERT_MSG
movq -8(%rbp), %rdi
movq -32(%rbp), %rsi
movq -16(%rbp), %rdx
callq _memcmp
cmpl $0, %eax
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %edi
leaq L_.str.1(%rip), %rsi
callq _FUZZ_ASSERT_MSG
movq -32(%rbp), %rdi
callq _free
movq -48(%rbp), %rdi
callq _free
movq -56(%rbp), %rdi
callq _FUZZ_dataProducer_free
movq _cctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _ZSTD_freeCCtx
movq _cctx@GOTPCREL(%rip), %rax
movq $0, (%rax)
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _ZSTD_freeDCtx
movq _dctx@GOTPCREL(%rip), %rax
movq $0, (%rax)
xorl %eax, %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _cctx,8,3 ## @cctx
.comm _dctx,8,3 ## @dctx
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Incorrect regenerated size"
L_.str.1: ## @.str.1
.asciz "Corruption!"
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_simple_round_trip.c_LLVMFuzzerTestOneInput.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ; -- Begin function LLVMFuzzerTestOneInput
.p2align 2
_LLVMFuzzerTestOneInput: ; @LLVMFuzzerTestOneInput
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _cctx@GOTPAGE
ldr x8, [x8, _cctx@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
bl _FUZZ_dataProducer_create
stur x0, [x29, #-24]
ldur x0, [x29, #-24]
bl _FUZZ_dataProducer_reserveDataPrefix
stur x0, [x29, #-16]
ldur x0, [x29, #-16]
bl _ZSTD_compressBound
str x0, [sp, #32]
ldur x0, [x29, #-24]
ldr x2, [sp, #32]
mov w1, #0
bl _FUZZ_dataProducer_uint32Range
str x0, [sp, #24]
ldur x0, [x29, #-24]
adrp x8, _kMinClevel@GOTPAGE
ldr x8, [x8, _kMinClevel@GOTPAGEOFF]
ldr w1, [x8]
adrp x8, _kMaxClevel@GOTPAGE
ldr x8, [x8, _kMaxClevel@GOTPAGEOFF]
ldr w2, [x8]
bl _FUZZ_dataProducer_int32Range
ldr x8, [sp] ; 8-byte Folded Reload
str w0, [sp, #20]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl _ZSTD_createCCtx
ldr x8, [sp] ; 8-byte Folded Reload
str x0, [x8]
ldr x0, [x8]
bl _FUZZ_ASSERT
b LBB0_2
LBB0_2:
ldr x0, [sp, #24]
bl _malloc
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _FUZZ_ASSERT
ldr x8, [sp] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x1, [sp, #8]
ldr x2, [sp, #24]
ldur x3, [x29, #-8]
ldur x4, [x29, #-16]
ldr w5, [sp, #20]
bl _ZSTD_compressCCtx
ldr x0, [sp, #8]
bl _free
ldur x0, [x29, #-24]
bl _FUZZ_dataProducer_free
ldr x8, [sp] ; 8-byte Folded Reload
ldr x0, [x8]
bl _ZSTD_freeCCtx
ldr x8, [sp] ; 8-byte Folded Reload
; kill: def $x9 killed $xzr
str xzr, [x8]
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.comm _kMinClevel,4,2 ; @kMinClevel
.comm _kMaxClevel,4,2 ; @kMaxClevel
.comm _cctx,8,3 ; @cctx
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ## -- Begin function LLVMFuzzerTestOneInput
.p2align 4, 0x90
_LLVMFuzzerTestOneInput: ## @LLVMFuzzerTestOneInput
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _FUZZ_dataProducer_create
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
callq _FUZZ_dataProducer_reserveDataPrefix
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
callq _ZSTD_compressBound
movq %rax, -32(%rbp)
movq -24(%rbp), %rdi
movq -32(%rbp), %rdx
xorl %esi, %esi
callq _FUZZ_dataProducer_uint32Range
movq %rax, -40(%rbp)
movq -24(%rbp), %rdi
movq _kMinClevel@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _kMaxClevel@GOTPCREL(%rip), %rax
movl (%rax), %edx
callq _FUZZ_dataProducer_int32Range
movl %eax, -44(%rbp)
movq _cctx@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_2
## %bb.1:
movb $0, %al
callq _ZSTD_createCCtx
movq %rax, %rcx
movq _cctx@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _cctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _FUZZ_ASSERT
LBB0_2:
movq -40(%rbp), %rdi
callq _malloc
movq %rax, -56(%rbp)
movq -56(%rbp), %rdi
callq _FUZZ_ASSERT
movq _cctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -56(%rbp), %rsi
movq -40(%rbp), %rdx
movq -8(%rbp), %rcx
movq -16(%rbp), %r8
movl -44(%rbp), %r9d
callq _ZSTD_compressCCtx
movq -56(%rbp), %rdi
callq _free
movq -24(%rbp), %rdi
callq _FUZZ_dataProducer_free
movq _cctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _ZSTD_freeCCtx
movq _cctx@GOTPCREL(%rip), %rax
movq $0, (%rax)
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _kMinClevel,4,2 ## @kMinClevel
.comm _kMaxClevel,4,2 ## @kMaxClevel
.comm _cctx,8,3 ## @cctx
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_simple_compress.c_LLVMFuzzerTestOneInput.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function roundTripTest
_roundTripTest: ; @roundTripTest
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _cctx@GOTPAGE
ldr x8, [x8, _cctx@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
str x4, [sp, #40]
str x5, [sp, #32]
str x6, [sp, #24]
ldr x0, [sp, #24]
mov w1, #0
mov w2, #1
bl _FUZZ_dataProducer_uint32Range
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp] ; 8-byte Folded Reload
ldr w0, [x8]
ldr x1, [sp, #32]
ldr x2, [sp, #24]
bl _FUZZ_setRandomParameters
ldr x8, [sp] ; 8-byte Folded Reload
ldr w0, [x8]
ldur x1, [x29, #-24]
ldur x2, [x29, #-32]
ldr x3, [sp, #40]
ldr x4, [sp, #32]
bl _ZSTD_compress2
str x0, [sp, #16]
b LBB0_3
LBB0_2:
ldr x0, [sp, #24]
adrp x8, _kMinClevel@GOTPAGE
ldr x8, [x8, _kMinClevel@GOTPAGEOFF]
ldr w1, [x8]
adrp x8, _kMaxClevel@GOTPAGE
ldr x8, [x8, _kMaxClevel@GOTPAGEOFF]
ldr w2, [x8]
bl _FUZZ_dataProducer_int32Range
ldr x8, [sp] ; 8-byte Folded Reload
str w0, [sp, #12]
ldr w0, [x8]
ldur x1, [x29, #-24]
ldur x2, [x29, #-32]
ldr x3, [sp, #40]
ldr x4, [sp, #32]
ldr w5, [sp, #12]
bl _ZSTD_compressCCtx
str x0, [sp, #16]
b LBB0_3
LBB0_3:
ldr x0, [sp, #16]
bl _FUZZ_ZASSERT
adrp x8, _dctx@GOTPAGE
ldr x8, [x8, _dctx@GOTPAGEOFF]
ldr w0, [x8]
ldur x1, [x29, #-8]
ldur x2, [x29, #-16]
ldur x3, [x29, #-24]
ldr x4, [sp, #16]
bl _ZSTD_decompressDCtx
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.comm _cctx,4,2 ; @cctx
.comm _kMinClevel,4,2 ; @kMinClevel
.comm _kMaxClevel,4,2 ; @kMaxClevel
.comm _dctx,4,2 ; @dctx
.no_dead_strip _roundTripTest
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function roundTripTest
_roundTripTest: ## @roundTripTest
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq 16(%rbp), %rax
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq %r9, -48(%rbp)
movq 16(%rbp), %rdi
xorl %esi, %esi
movl $1, %edx
callq _FUZZ_dataProducer_uint32Range
cmpq $0, %rax
je LBB0_2
## %bb.1:
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -48(%rbp), %rsi
movq 16(%rbp), %rdx
callq _FUZZ_setRandomParameters
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
movq -40(%rbp), %rcx
movq -48(%rbp), %r8
callq _ZSTD_compress2
movq %rax, -56(%rbp)
jmp LBB0_3
LBB0_2:
movq 16(%rbp), %rdi
movq _kMinClevel@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _kMaxClevel@GOTPCREL(%rip), %rax
movl (%rax), %edx
callq _FUZZ_dataProducer_int32Range
movl %eax, -60(%rbp)
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
movq -40(%rbp), %rcx
movq -48(%rbp), %r8
movl -60(%rbp), %r9d
callq _ZSTD_compressCCtx
movq %rax, -56(%rbp)
LBB0_3:
movq -56(%rbp), %rdi
callq _FUZZ_ZASSERT
movq _dctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -8(%rbp), %rsi
movq -16(%rbp), %rdx
movq -24(%rbp), %rcx
movq -56(%rbp), %r8
callq _ZSTD_decompressDCtx
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _cctx,4,2 ## @cctx
.comm _kMinClevel,4,2 ## @kMinClevel
.comm _kMaxClevel,4,2 ## @kMaxClevel
.comm _dctx,4,2 ## @dctx
.no_dead_strip _roundTripTest
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_simple_round_trip.c_roundTripTest.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ; -- Begin function LLVMFuzzerTestOneInput
.p2align 2
_LLVMFuzzerTestOneInput: ; @LLVMFuzzerTestOneInput
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _buf@GOTPAGE
ldr x8, [x8, _buf@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
adrp x8, _dstream@GOTPAGE
ldr x8, [x8, _dstream@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
bl _FUZZ_dataProducer_create
stur x0, [x29, #-24]
ldur x0, [x29, #-24]
bl _FUZZ_dataProducer_reserveDataPrefix
ldr x8, [sp, #16] ; 8-byte Folded Reload
stur x0, [x29, #-16]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _kBufSize@GOTPAGE
ldr x8, [x8, _kBufSize@GOTPAGEOFF]
ldr w0, [x8]
bl _malloc
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x8]
ldr x0, [x8]
bl _FUZZ_ASSERT
b LBB0_2
LBB0_2:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
bl _ZSTD_createDStream
ldr x8, [sp, #8] ; 8-byte Folded Reload
str x0, [x8]
ldr x0, [x8]
bl _FUZZ_ASSERT
b LBB0_5
LBB0_4:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x8, _ZSTD_reset_session_only@GOTPAGE
ldr x8, [x8, _ZSTD_reset_session_only@GOTPAGEOFF]
ldr w1, [x8]
bl _ZSTD_DCtx_reset
bl _FUZZ_ZASSERT
b LBB0_5
LBB0_5:
b LBB0_6
LBB0_6: ; =>This Loop Header: Depth=1
; Child Loop BB0_8 Depth 2
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, ls
tbnz w8, #0, LBB0_13
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_6 Depth=1
ldur x2, [x29, #-24]
sub x0, x29, #8
sub x1, x29, #16
bl _makeInBuffer
str x0, [sp, #40]
str x1, [sp, #48]
b LBB0_8
LBB0_8: ; Parent Loop BB0_6 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #40]
ldr x9, [sp, #48]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_8 Depth=2
ldur x0, [x29, #-24]
bl _makeOutBuffer
ldr x8, [sp, #8] ; 8-byte Folded Reload
add x1, sp, #36
str w0, [sp, #36]
ldr x0, [x8]
add x2, sp, #40
bl _ZSTD_decompressStream
str x0, [sp, #24]
ldr x0, [sp, #24]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
b LBB0_14
LBB0_11: ; in Loop: Header=BB0_8 Depth=2
b LBB0_8
LBB0_12: ; in Loop: Header=BB0_6 Depth=1
b LBB0_6
LBB0_13:
b LBB0_14
LBB0_14:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [x8]
bl _ZSTD_freeDStream
ldr x8, [sp, #8] ; 8-byte Folded Reload
; kill: def $x9 killed $xzr
str xzr, [x8]
ldur x0, [x29, #-24]
bl _FUZZ_dataProducer_free
mov w0, #0
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.comm _buf,8,3 ; @buf
.comm _kBufSize,4,2 ; @kBufSize
.comm _dstream,8,3 ; @dstream
.comm _ZSTD_reset_session_only,4,2 ; @ZSTD_reset_session_only
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ## -- Begin function LLVMFuzzerTestOneInput
.p2align 4, 0x90
_LLVMFuzzerTestOneInput: ## @LLVMFuzzerTestOneInput
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _FUZZ_dataProducer_create
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
callq _FUZZ_dataProducer_reserveDataPrefix
movq %rax, -16(%rbp)
movq _buf@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_2
## %bb.1:
movq _kBufSize@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _malloc
movq %rax, %rcx
movq _buf@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _buf@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _FUZZ_ASSERT
LBB0_2:
movq _dstream@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_4
## %bb.3:
movb $0, %al
callq _ZSTD_createDStream
movq %rax, %rcx
movq _dstream@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _dstream@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _FUZZ_ASSERT
jmp LBB0_5
LBB0_4:
movq _dstream@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq _ZSTD_reset_session_only@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _ZSTD_DCtx_reset
movl %eax, %edi
callq _FUZZ_ZASSERT
LBB0_5:
jmp LBB0_6
LBB0_6: ## =>This Loop Header: Depth=1
## Child Loop BB0_8 Depth 2
cmpq $0, -16(%rbp)
jbe LBB0_13
## %bb.7: ## in Loop: Header=BB0_6 Depth=1
movq -24(%rbp), %rdx
leaq -8(%rbp), %rdi
leaq -16(%rbp), %rsi
callq _makeInBuffer
movq %rax, -40(%rbp)
movq %rdx, -32(%rbp)
LBB0_8: ## Parent Loop BB0_6 Depth=1
## => This Inner Loop Header: Depth=2
movq -40(%rbp), %rax
cmpq -32(%rbp), %rax
je LBB0_12
## %bb.9: ## in Loop: Header=BB0_8 Depth=2
movq -24(%rbp), %rdi
callq _makeOutBuffer
movl %eax, -44(%rbp)
movq _dstream@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq -44(%rbp), %rsi
leaq -40(%rbp), %rdx
callq _ZSTD_decompressStream
movq %rax, -56(%rbp)
movq -56(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_11
## %bb.10:
jmp LBB0_14
LBB0_11: ## in Loop: Header=BB0_8 Depth=2
jmp LBB0_8
LBB0_12: ## in Loop: Header=BB0_6 Depth=1
jmp LBB0_6
LBB0_13:
jmp LBB0_14
LBB0_14:
movq _dstream@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _ZSTD_freeDStream
movq _dstream@GOTPCREL(%rip), %rax
movq $0, (%rax)
movq -24(%rbp), %rdi
callq _FUZZ_dataProducer_free
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _buf,8,3 ## @buf
.comm _kBufSize,4,2 ## @kBufSize
.comm _dstream,8,3 ## @dstream
.comm _ZSTD_reset_session_only,4,2 ## @ZSTD_reset_session_only
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_stream_decompress.c_LLVMFuzzerTestOneInput.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function makeInBuffer
_makeInBuffer: ; @makeInBuffer
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x8, [sp, #16] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
ldur x9, [x29, #-8]
ldr x9, [x9]
str x9, [x8]
str wzr, [x8, #8]
str wzr, [x8, #12]
; kill: def $x9 killed $xzr
str xzr, [x8, #16]
ldur x8, [x29, #-16]
ldr x8, [x8]
subs x8, x8, #0
cset w8, hi
mov w9, #1
str w9, [sp, #12] ; 4-byte Folded Spill
and w0, w8, #0x1
bl _FUZZ_ASSERT
ldr w1, [sp, #12] ; 4-byte Folded Reload
ldr x0, [sp, #24]
ldur x8, [x29, #-16]
ldr x2, [x8]
bl _FUZZ_dataProducer_uint32Range
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x8]
ldr x8, [x8]
ldur x9, [x29, #-16]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ls
and w0, w8, #0x1
bl _FUZZ_ASSERT
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x11, [x8]
ldur x10, [x29, #-8]
ldr x9, [x10]
add x9, x9, x11, lsl #2
str x9, [x10]
ldr x10, [x8]
ldur x9, [x29, #-16]
ldr x8, [x9]
subs x8, x8, x10
str x8, [x9]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.no_dead_strip _makeInBuffer
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function makeInBuffer
_makeInBuffer: ## @makeInBuffer
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -40(%rbp) ## 8-byte Spill
movq %rdi, %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq %rsi, -8(%rbp)
movq %rdx, -16(%rbp)
movq %rcx, -24(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, (%rdi)
movl $0, 8(%rdi)
movl $0, 12(%rdi)
movq $0, 16(%rdi)
movq -16(%rbp), %rax
cmpq $0, (%rax)
seta %al
andb $1, %al
movzbl %al, %edi
callq _FUZZ_ASSERT
movq -24(%rbp), %rdi
movq -16(%rbp), %rax
movq (%rax), %rdx
movl $1, %esi
callq _FUZZ_dataProducer_uint32Range
movq -40(%rbp), %rdi ## 8-byte Reload
movq %rax, (%rdi)
movq (%rdi), %rax
movq -16(%rbp), %rcx
cmpq (%rcx), %rax
setbe %al
andb $1, %al
movzbl %al, %edi
callq _FUZZ_ASSERT
movq -40(%rbp), %rdi ## 8-byte Reload
## kill: def $ecx killed $eax
movq -32(%rbp), %rax ## 8-byte Reload
movq (%rdi), %rdx
movq -8(%rbp), %rcx
shlq $2, %rdx
addq (%rcx), %rdx
movq %rdx, (%rcx)
movq (%rdi), %rsi
movq -16(%rbp), %rcx
movq (%rcx), %rdx
subq %rsi, %rdx
movq %rdx, (%rcx)
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _makeInBuffer
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_stream_decompress.c_makeInBuffer.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function makeOutBuffer
_makeOutBuffer: ; @makeOutBuffer
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x8, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-8]
adrp x9, _buf@GOTPAGE
ldr x9, [x9, _buf@GOTPAGEOFF]
ldrsw x9, [x9]
str x9, [x8]
str wzr, [x8, #8]
str wzr, [x8, #12]
str wzr, [x8, #16]
ldur x0, [x29, #-8]
adrp x8, _kBufSize@GOTPAGE
ldr x8, [x8, _kBufSize@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
ldr x2, [x8]
mov w1, #1
bl _FUZZ_dataProducer_uint32Range
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x9, [sp, #16] ; 8-byte Folded Reload
str x0, [x8]
ldr x8, [x8]
ldr x9, [x9]
subs x8, x8, x9
cset w8, le
and w0, w8, #0x1
bl _FUZZ_ASSERT
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _buf,4,2 ; @buf
.comm _kBufSize,8,3 ; @kBufSize
.no_dead_strip _makeOutBuffer
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function makeOutBuffer
_makeOutBuffer: ## @makeOutBuffer
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -24(%rbp) ## 8-byte Spill
movq %rdi, %rax
movq %rax, -16(%rbp) ## 8-byte Spill
movq %rsi, -8(%rbp)
movq _buf@GOTPCREL(%rip), %rax
movslq (%rax), %rax
movq %rax, (%rdi)
movl $0, 8(%rdi)
movl $0, 12(%rdi)
movl $0, 16(%rdi)
movq -8(%rbp), %rdi
movq _kBufSize@GOTPCREL(%rip), %rax
movq (%rax), %rdx
movl $1, %esi
callq _FUZZ_dataProducer_uint32Range
movq -24(%rbp), %rdi ## 8-byte Reload
movq %rax, (%rdi)
movq (%rdi), %rax
movq _kBufSize@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
setle %al
andb $1, %al
movzbl %al, %edi
callq _FUZZ_ASSERT
## kill: def $ecx killed $eax
movq -16(%rbp), %rax ## 8-byte Reload
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _buf,4,2 ## @buf
.comm _kBufSize,8,3 ## @kBufSize
.no_dead_strip _makeOutBuffer
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_stream_decompress.c_makeOutBuffer.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ; -- Begin function LLVMFuzzerTestOneInput
.p2align 2
_LLVMFuzzerTestOneInput: ; @LLVMFuzzerTestOneInput
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _cBuf@GOTPAGE
ldr x8, [x8, _cBuf@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
adrp x8, _rBuf@GOTPAGE
ldr x8, [x8, _rBuf@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
adrp x8, _cctx@GOTPAGE
ldr x8, [x8, _cctx@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
adrp x8, _dctx@GOTPAGE
ldr x8, [x8, _dctx@GOTPAGEOFF]
str x8, [sp, #40] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
bl _FUZZ_dataProducer_create
stur x0, [x29, #-32]
ldur x0, [x29, #-32]
bl _FUZZ_dataProducer_reserveDataPrefix
stur x0, [x29, #-16]
ldur x0, [x29, #-16]
bl _ZSTD_compressBound
mov w8, #15
mul w9, w0, w8
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
stur x8, [x29, #-24]
ldur x8, [x29, #-24]
adrp x9, _bufSize@GOTPAGE
ldr x9, [x9, _bufSize@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB0_4
b LBB0_1
LBB0_1:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
bl _free
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x0, [x8]
bl _free
ldur x0, [x29, #-24]
bl _malloc
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x8]
ldur x0, [x29, #-24]
bl _malloc
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x9]
ldur x9, [x29, #-24]
adrp x10, _bufSize@GOTPAGE
ldr x10, [x10, _bufSize@GOTPAGEOFF]
str x9, [x10]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_3
LBB0_3:
ldr w8, [sp, #12] ; 4-byte Folded Reload
and w0, w8, #0x1
bl _FUZZ_ASSERT
b LBB0_4
LBB0_4:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
bl _ZSTD_createCCtx
ldr x8, [sp, #32] ; 8-byte Folded Reload
str x0, [x8]
ldr x8, [x8]
mov x0, x8
bl _FUZZ_ASSERT
b LBB0_6
LBB0_6:
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
bl _ZSTD_createDCtx
ldr x8, [sp, #40] ; 8-byte Folded Reload
str x0, [x8]
ldr x8, [x8]
mov x0, x8
bl _FUZZ_ASSERT
b LBB0_8
LBB0_8:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
ldur x1, [x29, #-24]
ldur x2, [x29, #-8]
ldur x3, [x29, #-16]
ldur x4, [x29, #-32]
bl _compress
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x10, [sp, #40] ; 8-byte Folded Reload
stur x0, [x29, #-40]
ldr x0, [x10]
ldr x1, [x9]
ldur x2, [x29, #-24]
ldr x3, [x8]
ldur x4, [x29, #-40]
bl _ZSTD_decompressDCtx
str x0, [sp, #48]
ldr x0, [sp, #48]
bl _FUZZ_ZASSERT
ldr x8, [sp, #48]
ldur x9, [x29, #-16]
subs x8, x8, x9
cset w8, eq
and w0, w8, #0x1
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _FUZZ_ASSERT_MSG
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
ldr x1, [x8]
ldur x2, [x29, #-16]
bl _memcmp
mov w8, #0
str w8, [sp, #8] ; 4-byte Folded Spill
subs w8, w0, #0
cset w8, eq
and w0, w8, #0x1
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _FUZZ_ASSERT_MSG
ldur x0, [x29, #-32]
bl _FUZZ_dataProducer_free
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [x8]
bl _ZSTD_freeCCtx
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldr x8, [sp, #40] ; 8-byte Folded Reload
; kill: def $x10 killed $xzr
str xzr, [x9]
ldr x0, [x8]
bl _ZSTD_freeDCtx
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w0, [sp, #8] ; 4-byte Folded Reload
str xzr, [x8]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.comm _bufSize,8,3 ; @bufSize
.comm _cBuf,8,3 ; @cBuf
.comm _rBuf,8,3 ; @rBuf
.comm _cctx,8,3 ; @cctx
.comm _dctx,8,3 ; @dctx
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Incorrect regenerated size"
l_.str.1: ; @.str.1
.asciz "Corruption!"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ## -- Begin function LLVMFuzzerTestOneInput
.p2align 4, 0x90
_LLVMFuzzerTestOneInput: ## @LLVMFuzzerTestOneInput
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _FUZZ_dataProducer_create
movq %rax, -32(%rbp)
movq -32(%rbp), %rdi
callq _FUZZ_dataProducer_reserveDataPrefix
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
callq _ZSTD_compressBound
imull $15, %eax, %eax
cltq
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movq _bufSize@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jbe LBB0_4
## %bb.1:
movq _cBuf@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _free
movq _rBuf@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _free
movq -24(%rbp), %rdi
callq _malloc
movq %rax, %rcx
movq _cBuf@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq -24(%rbp), %rdi
callq _malloc
movq %rax, %rcx
movq _rBuf@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq -24(%rbp), %rcx
movq _bufSize@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movq _cBuf@GOTPCREL(%rip), %rcx
cmpq $0, (%rcx)
movb %al, -49(%rbp) ## 1-byte Spill
je LBB0_3
## %bb.2:
movq _rBuf@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
setne %al
movb %al, -49(%rbp) ## 1-byte Spill
LBB0_3:
movb -49(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %edi
callq _FUZZ_ASSERT
LBB0_4:
movq _cctx@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_6
## %bb.5:
movb $0, %al
callq _ZSTD_createCCtx
movq %rax, %rcx
movq _cctx@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _cctx@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl %eax, %edi
callq _FUZZ_ASSERT
LBB0_6:
movq _dctx@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_8
## %bb.7:
movb $0, %al
callq _ZSTD_createDCtx
movq %rax, %rcx
movq _dctx@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl %eax, %edi
callq _FUZZ_ASSERT
LBB0_8:
movq _cBuf@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -24(%rbp), %rsi
movq -8(%rbp), %rdx
movq -16(%rbp), %rcx
movq -32(%rbp), %r8
callq _compress
movq %rax, -40(%rbp)
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq _rBuf@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movq -24(%rbp), %rdx
movq _cBuf@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movq -40(%rbp), %r8
callq _ZSTD_decompressDCtx
movq %rax, -48(%rbp)
movq -48(%rbp), %rdi
callq _FUZZ_ZASSERT
movq -48(%rbp), %rax
cmpq -16(%rbp), %rax
sete %al
andb $1, %al
movzbl %al, %edi
leaq L_.str(%rip), %rsi
callq _FUZZ_ASSERT_MSG
movq -8(%rbp), %rdi
movq _rBuf@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movq -16(%rbp), %rdx
callq _memcmp
cmpl $0, %eax
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %edi
leaq L_.str.1(%rip), %rsi
callq _FUZZ_ASSERT_MSG
movq -32(%rbp), %rdi
callq _FUZZ_dataProducer_free
movq _cctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _ZSTD_freeCCtx
movq _cctx@GOTPCREL(%rip), %rax
movq $0, (%rax)
movq _dctx@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _ZSTD_freeDCtx
movq _dctx@GOTPCREL(%rip), %rax
movq $0, (%rax)
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _bufSize,8,3 ## @bufSize
.comm _cBuf,8,3 ## @cBuf
.comm _rBuf,8,3 ## @rBuf
.comm _cctx,8,3 ## @cctx
.comm _dctx,8,3 ## @dctx
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Incorrect regenerated size"
L_.str.1: ## @.str.1
.asciz "Corruption!"
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_stream_round_trip.c_LLVMFuzzerTestOneInput.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function compress
_compress: ; @compress
.cfi_startproc
; %bb.0:
sub sp, sp, #224
.cfi_def_cfa_offset 224
stp x29, x30, [sp, #208] ; 16-byte Folded Spill
add x29, sp, #208
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _cctx@GOTPAGE
ldr x8, [x8, _cctx@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
stur x4, [x29, #-40]
stur xzr, [x29, #-48]
ldr w0, [x8]
adrp x8, _ZSTD_reset_session_only@GOTPAGE
ldr x8, [x8, _ZSTD_reset_session_only@GOTPAGEOFF]
ldr w1, [x8]
bl _ZSTD_CCtx_reset
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr w0, [x8]
ldur x1, [x29, #-32]
ldur x2, [x29, #-40]
bl _FUZZ_setRandomParameters
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, ls
tbnz w8, #0, LBB0_21
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x2, [x29, #-40]
sub x8, x29, #80
sub x0, x29, #24
sub x1, x29, #32
bl _makeInBuffer
mov w8, #-1
stur w8, [x29, #-84]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur x8, [x29, #-80]
ldur x9, [x29, #-72]
subs x8, x8, x9
cset w8, lt
mov w9, #1
str w9, [sp, #20] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldur w8, [x29, #-84]
adds w8, w8, #1
cset w8, ne
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #20] ; 4-byte Folded Reload
tbz w8, #0, LBB0_20
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=2
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-40]
bl _makeOutBuffer
stur x0, [x29, #-96]
ldur w8, [x29, #-84]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=2
ldur x0, [x29, #-40]
mov w1, #0
mov w2, #9
bl _FUZZ_dataProducer_uint32Range
stur w0, [x29, #-84]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_3 Depth=2
ldur w8, [x29, #-84]
str w8, [sp, #16] ; 4-byte Folded Spill
subs w8, w8, #0
subs w8, w8, #2
cset w8, ls
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #16] ; 4-byte Folded Reload
subs w8, w8, #3
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_18
LBB0_10: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x8, _ZSTD_e_flush@GOTPAGE
ldr x8, [x8, _ZSTD_e_flush@GOTPAGEOFF]
ldr w3, [x8]
sub x1, x29, #96
sub x2, x29, #80
bl _ZSTD_compressStream2
str x0, [sp, #104]
ldr x0, [sp, #104]
bl _FUZZ_ZASSERT
ldr x8, [sp, #104]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_3 Depth=2
mov w8, #-1
stur w8, [x29, #-84]
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_3 Depth=2
b LBB0_19
LBB0_13: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x8, _ZSTD_e_end@GOTPAGE
ldr x8, [x8, _ZSTD_e_end@GOTPAGEOFF]
ldr w3, [x8]
sub x1, x29, #96
sub x2, x29, #80
bl _ZSTD_compressStream2
str x0, [sp, #96]
ldr x0, [sp, #96]
bl _FUZZ_ZASSERT
ldr x8, [sp, #96]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x8, _ZSTD_reset_session_only@GOTPAGE
ldr x8, [x8, _ZSTD_reset_session_only@GOTPAGEOFF]
ldr w1, [x8]
bl _ZSTD_CCtx_reset
ldur x0, [x29, #-40]
mov w1, #0
mov w2, #7
bl _FUZZ_dataProducer_uint32Range
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x9, [x29, #-72]
ldur x10, [x29, #-80]
subs x9, x9, x10
str x9, [sp, #88]
ldr w0, [x8]
ldr x1, [sp, #88]
ldur x2, [x29, #-40]
bl _FUZZ_setRandomParameters
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_3 Depth=2
mov w8, #-1
stur w8, [x29, #-84]
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_3 Depth=2
b LBB0_19
LBB0_18: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x8, _ZSTD_e_continue@GOTPAGE
ldr x8, [x8, _ZSTD_e_continue@GOTPAGEOFF]
ldr w3, [x8]
sub x1, x29, #96
sub x2, x29, #80
bl _ZSTD_compressStream2
str x0, [sp, #80]
ldr x0, [sp, #80]
bl _FUZZ_ZASSERT
mov w8, #-1
stur w8, [x29, #-84]
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_3 Depth=2
ldur x9, [x29, #-96]
ldur x8, [x29, #-8]
add x8, x8, x9, lsl #2
stur x8, [x29, #-8]
ldur x9, [x29, #-96]
ldur x8, [x29, #-48]
add x8, x8, x9
stur x8, [x29, #-48]
ldur x9, [x29, #-96]
ldur x8, [x29, #-16]
subs x8, x8, x9
stur x8, [x29, #-16]
b LBB0_3
LBB0_20: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_21:
b LBB0_22
LBB0_22: ; =>This Inner Loop Header: Depth=1
movi.2d v0, #0000000000000000
add x8, sp, #48
str x8, [sp, #8] ; 8-byte Folded Spill
str q0, [sp, #48]
str q0, [sp, #64]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-40]
bl _makeOutBuffer
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x2, [sp, #8] ; 8-byte Folded Reload
add x1, sp, #40
str x0, [sp, #40]
ldr w0, [x8]
adrp x8, _ZSTD_e_end@GOTPAGE
ldr x8, [x8, _ZSTD_e_end@GOTPAGEOFF]
ldr w3, [x8]
bl _ZSTD_compressStream2
str x0, [sp, #32]
ldr x0, [sp, #32]
bl _FUZZ_ZASSERT
ldr x9, [sp, #40]
ldur x8, [x29, #-8]
add x8, x8, x9, lsl #2
stur x8, [x29, #-8]
ldr x9, [sp, #40]
ldur x8, [x29, #-48]
add x8, x8, x9
stur x8, [x29, #-48]
ldr x9, [sp, #40]
ldur x8, [x29, #-16]
subs x8, x8, x9
stur x8, [x29, #-16]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23:
b LBB0_25
LBB0_24: ; in Loop: Header=BB0_22 Depth=1
b LBB0_22
LBB0_25:
ldur x0, [x29, #-48]
ldp x29, x30, [sp, #208] ; 16-byte Folded Reload
add sp, sp, #224
ret
.cfi_endproc
; -- End function
.comm _cctx,4,2 ; @cctx
.comm _ZSTD_reset_session_only,4,2 ; @ZSTD_reset_session_only
.comm _ZSTD_e_flush,4,2 ; @ZSTD_e_flush
.comm _ZSTD_e_end,4,2 ; @ZSTD_e_end
.comm _ZSTD_e_continue,4,2 ; @ZSTD_e_continue
.no_dead_strip _compress
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function compress
_compress: ## @compress
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $192, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq $0, -48(%rbp)
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ZSTD_reset_session_only@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _ZSTD_CCtx_reset
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -32(%rbp), %rsi
movq -40(%rbp), %rdx
callq _FUZZ_setRandomParameters
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
cmpq $0, -32(%rbp)
jbe LBB0_20
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rcx
leaq -80(%rbp), %rdi
leaq -24(%rbp), %rsi
leaq -32(%rbp), %rdx
callq _makeInBuffer
movl $-1, -84(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -80(%rbp), %rcx
movb $1, %al
cmpq -72(%rbp), %rcx
movb %al, -177(%rbp) ## 1-byte Spill
jl LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
cmpl $-1, -84(%rbp)
setne %al
movb %al, -177(%rbp) ## 1-byte Spill
LBB0_5: ## in Loop: Header=BB0_3 Depth=2
movb -177(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_6
jmp LBB0_19
LBB0_6: ## in Loop: Header=BB0_3 Depth=2
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -40(%rbp), %rdx
callq _makeOutBuffer
movq %rax, -96(%rbp)
cmpl $-1, -84(%rbp)
jne LBB0_8
## %bb.7: ## in Loop: Header=BB0_3 Depth=2
movq -40(%rbp), %rdi
xorl %esi, %esi
movl $9, %edx
callq _FUZZ_dataProducer_uint32Range
movl %eax, -84(%rbp)
LBB0_8: ## in Loop: Header=BB0_3 Depth=2
movl -84(%rbp), %eax
movl %eax, -184(%rbp) ## 4-byte Spill
subl $3, %eax
jb LBB0_9
jmp LBB0_25
LBB0_25: ## in Loop: Header=BB0_3 Depth=2
movl -184(%rbp), %eax ## 4-byte Reload
subl $3, %eax
je LBB0_12
jmp LBB0_17
LBB0_9: ## in Loop: Header=BB0_3 Depth=2
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ZSTD_e_flush@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq -96(%rbp), %rsi
leaq -80(%rbp), %rdx
callq _ZSTD_compressStream2
movq %rax, -104(%rbp)
movq -104(%rbp), %rdi
callq _FUZZ_ZASSERT
cmpq $0, -104(%rbp)
jne LBB0_11
## %bb.10: ## in Loop: Header=BB0_3 Depth=2
movl $-1, -84(%rbp)
LBB0_11: ## in Loop: Header=BB0_3 Depth=2
jmp LBB0_18
LBB0_12: ## in Loop: Header=BB0_3 Depth=2
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ZSTD_e_end@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq -96(%rbp), %rsi
leaq -80(%rbp), %rdx
callq _ZSTD_compressStream2
movq %rax, -112(%rbp)
movq -112(%rbp), %rdi
callq _FUZZ_ZASSERT
cmpq $0, -112(%rbp)
jne LBB0_16
## %bb.13: ## in Loop: Header=BB0_3 Depth=2
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ZSTD_reset_session_only@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _ZSTD_CCtx_reset
movq -40(%rbp), %rdi
xorl %esi, %esi
movl $7, %edx
callq _FUZZ_dataProducer_uint32Range
cmpl $0, %eax
jne LBB0_15
## %bb.14: ## in Loop: Header=BB0_3 Depth=2
movq -72(%rbp), %rax
subq -80(%rbp), %rax
movq %rax, -120(%rbp)
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -120(%rbp), %rsi
movq -40(%rbp), %rdx
callq _FUZZ_setRandomParameters
LBB0_15: ## in Loop: Header=BB0_3 Depth=2
movl $-1, -84(%rbp)
LBB0_16: ## in Loop: Header=BB0_3 Depth=2
jmp LBB0_18
LBB0_17: ## in Loop: Header=BB0_3 Depth=2
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ZSTD_e_continue@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq -96(%rbp), %rsi
leaq -80(%rbp), %rdx
callq _ZSTD_compressStream2
movq %rax, -128(%rbp)
movq -128(%rbp), %rdi
callq _FUZZ_ZASSERT
movl $-1, -84(%rbp)
LBB0_18: ## in Loop: Header=BB0_3 Depth=2
movq -96(%rbp), %rax
shlq $2, %rax
addq -8(%rbp), %rax
movq %rax, -8(%rbp)
movq -96(%rbp), %rax
addq -48(%rbp), %rax
movq %rax, -48(%rbp)
movq -96(%rbp), %rcx
movq -16(%rbp), %rax
subq %rcx, %rax
movq %rax, -16(%rbp)
jmp LBB0_3
LBB0_19: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_20:
jmp LBB0_21
LBB0_21: ## =>This Inner Loop Header: Depth=1
leaq -160(%rbp), %rdi
xorl %esi, %esi
movl $32, %edx
callq _memset
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -40(%rbp), %rdx
callq _makeOutBuffer
movq %rax, -168(%rbp)
movq _cctx@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ZSTD_e_end@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq -168(%rbp), %rsi
leaq -160(%rbp), %rdx
callq _ZSTD_compressStream2
movq %rax, -176(%rbp)
movq -176(%rbp), %rdi
callq _FUZZ_ZASSERT
movq -168(%rbp), %rax
shlq $2, %rax
addq -8(%rbp), %rax
movq %rax, -8(%rbp)
movq -168(%rbp), %rax
addq -48(%rbp), %rax
movq %rax, -48(%rbp)
movq -168(%rbp), %rcx
movq -16(%rbp), %rax
subq %rcx, %rax
movq %rax, -16(%rbp)
cmpq $0, -176(%rbp)
jne LBB0_23
## %bb.22:
jmp LBB0_24
LBB0_23: ## in Loop: Header=BB0_21 Depth=1
jmp LBB0_21
LBB0_24:
movq -48(%rbp), %rax
addq $192, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _cctx,4,2 ## @cctx
.comm _ZSTD_reset_session_only,4,2 ## @ZSTD_reset_session_only
.comm _ZSTD_e_flush,4,2 ## @ZSTD_e_flush
.comm _ZSTD_e_end,4,2 ## @ZSTD_e_end
.comm _ZSTD_e_continue,4,2 ## @ZSTD_e_continue
.no_dead_strip _compress
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_stream_round_trip.c_compress.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function makeInBuffer
_makeInBuffer: ; @makeInBuffer
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x8, [sp, #16] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
ldur x9, [x29, #-8]
ldr x9, [x9]
str x9, [x8]
str wzr, [x8, #8]
str wzr, [x8, #12]
; kill: def $x9 killed $xzr
str xzr, [x8, #16]
ldur x8, [x29, #-16]
ldr x8, [x8]
subs x8, x8, #0
cset w8, hi
mov w9, #1
str w9, [sp, #12] ; 4-byte Folded Spill
and w0, w8, #0x1
bl _FUZZ_ASSERT
ldr w1, [sp, #12] ; 4-byte Folded Reload
ldr x0, [sp, #24]
ldur x8, [x29, #-16]
ldr x2, [x8]
bl _FUZZ_dataProducer_uint32Range
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x8]
ldr x8, [x8]
ldur x9, [x29, #-16]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ls
and w0, w8, #0x1
bl _FUZZ_ASSERT
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x11, [x8]
ldur x10, [x29, #-8]
ldr x9, [x10]
add x9, x9, x11, lsl #2
str x9, [x10]
ldr x10, [x8]
ldur x9, [x29, #-16]
ldr x8, [x9]
subs x8, x8, x10
str x8, [x9]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.no_dead_strip _makeInBuffer
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function makeInBuffer
_makeInBuffer: ## @makeInBuffer
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -40(%rbp) ## 8-byte Spill
movq %rdi, %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq %rsi, -8(%rbp)
movq %rdx, -16(%rbp)
movq %rcx, -24(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, (%rdi)
movl $0, 8(%rdi)
movl $0, 12(%rdi)
movq $0, 16(%rdi)
movq -16(%rbp), %rax
cmpq $0, (%rax)
seta %al
andb $1, %al
movzbl %al, %edi
callq _FUZZ_ASSERT
movq -24(%rbp), %rdi
movq -16(%rbp), %rax
movq (%rax), %rdx
movl $1, %esi
callq _FUZZ_dataProducer_uint32Range
movq -40(%rbp), %rdi ## 8-byte Reload
movq %rax, (%rdi)
movq (%rdi), %rax
movq -16(%rbp), %rcx
cmpq (%rcx), %rax
setbe %al
andb $1, %al
movzbl %al, %edi
callq _FUZZ_ASSERT
movq -40(%rbp), %rdi ## 8-byte Reload
## kill: def $ecx killed $eax
movq -32(%rbp), %rax ## 8-byte Reload
movq (%rdi), %rdx
movq -8(%rbp), %rcx
shlq $2, %rdx
addq (%rcx), %rdx
movq %rdx, (%rcx)
movq (%rdi), %rsi
movq -16(%rbp), %rcx
movq (%rcx), %rdx
subq %rsi, %rdx
movq %rdx, (%rcx)
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _makeInBuffer
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_stream_round_trip.c_makeInBuffer.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function makeOutBuffer
_makeOutBuffer: ; @makeOutBuffer
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x8, [sp, #16] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
ldur x9, [x29, #-8]
str x9, [x8]
str wzr, [x8, #8]
str wzr, [x8, #12]
; kill: def $x9 killed $xzr
str xzr, [x8, #16]
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, hi
mov w9, #1
str w9, [sp, #12] ; 4-byte Folded Spill
and w0, w8, #0x1
bl _FUZZ_ASSERT
ldr w1, [sp, #12] ; 4-byte Folded Reload
ldr x0, [sp, #24]
ldur x2, [x29, #-16]
bl _FUZZ_dataProducer_uint32Range
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x8]
ldr x8, [x8]
ldur x9, [x29, #-16]
subs x8, x8, x9
cset w8, ls
and w0, w8, #0x1
bl _FUZZ_ASSERT
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.no_dead_strip _makeOutBuffer
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function makeOutBuffer
_makeOutBuffer: ## @makeOutBuffer
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -40(%rbp) ## 8-byte Spill
movq %rdi, %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq %rsi, -8(%rbp)
movq %rdx, -16(%rbp)
movq %rcx, -24(%rbp)
movq -8(%rbp), %rax
movq %rax, (%rdi)
movl $0, 8(%rdi)
movl $0, 12(%rdi)
movq $0, 16(%rdi)
cmpq $0, -16(%rbp)
seta %al
andb $1, %al
movzbl %al, %edi
callq _FUZZ_ASSERT
movq -24(%rbp), %rdi
movq -16(%rbp), %rdx
movl $1, %esi
callq _FUZZ_dataProducer_uint32Range
movq -40(%rbp), %rdi ## 8-byte Reload
movq %rax, (%rdi)
movq (%rdi), %rax
cmpq -16(%rbp), %rax
setbe %al
andb $1, %al
movzbl %al, %edi
callq _FUZZ_ASSERT
## kill: def $ecx killed $eax
movq -32(%rbp), %rax ## 8-byte Reload
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _makeOutBuffer
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_stream_round_trip.c_makeOutBuffer.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_randomCParams ; -- Begin function FUZZ_randomCParams
.p2align 2
_FUZZ_randomCParams: ; @FUZZ_randomCParams
.cfi_startproc
; %bb.0:
sub sp, sp, #192
.cfi_def_cfa_offset 192
stp x29, x30, [sp, #176] ; 16-byte Folded Spill
add x29, sp, #176
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x8, [sp, #24] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-16]
adrp x8, _ZSTD_WINDOWLOG_MIN@GOTPAGE
ldr x8, [x8, _ZSTD_WINDOWLOG_MIN@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #15
str w2, [sp, #4] ; 4-byte Folded Spill
bl _FUZZ_dataProducer_uint32Range
ldr w2, [sp, #4] ; 4-byte Folded Reload
sub x8, x29, #72
str x8, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-24]
ldur x0, [x29, #-16]
adrp x8, _ZSTD_HASHLOG_MIN@GOTPAGE
ldr x8, [x8, _ZSTD_HASHLOG_MIN@GOTPAGEOFF]
ldr w1, [x8]
bl _FUZZ_dataProducer_uint32Range
stur x0, [x29, #-32]
ldur x0, [x29, #-16]
adrp x8, _ZSTD_CHAINLOG_MIN@GOTPAGE
ldr x8, [x8, _ZSTD_CHAINLOG_MIN@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #16
bl _FUZZ_dataProducer_uint32Range
stur x0, [x29, #-40]
ldur x0, [x29, #-16]
adrp x8, _ZSTD_SEARCHLOG_MIN@GOTPAGE
ldr x8, [x8, _ZSTD_SEARCHLOG_MIN@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #9
bl _FUZZ_dataProducer_uint32Range
stur x0, [x29, #-48]
ldur x0, [x29, #-16]
adrp x8, _ZSTD_MINMATCH_MIN@GOTPAGE
ldr x8, [x8, _ZSTD_MINMATCH_MIN@GOTPAGEOFF]
ldr w1, [x8]
adrp x8, _ZSTD_MINMATCH_MAX@GOTPAGE
ldr x8, [x8, _ZSTD_MINMATCH_MAX@GOTPAGEOFF]
ldr w2, [x8]
bl _FUZZ_dataProducer_uint32Range
stur x0, [x29, #-56]
ldur x0, [x29, #-16]
mov w1, #0
str w1, [sp, #44] ; 4-byte Folded Spill
mov w2, #512
bl _FUZZ_dataProducer_uint32Range
stur x0, [x29, #-64]
ldur x0, [x29, #-16]
adrp x8, _ZSTD_STRATEGY_MIN@GOTPAGE
ldr x8, [x8, _ZSTD_STRATEGY_MIN@GOTPAGEOFF]
ldr w1, [x8]
adrp x8, _ZSTD_STRATEGY_MAX@GOTPAGE
ldr x8, [x8, _ZSTD_STRATEGY_MAX@GOTPAGEOFF]
ldr w2, [x8]
bl _FUZZ_dataProducer_uint32Range
ldr x1, [sp, #8] ; 8-byte Folded Reload
stur x0, [x29, #-72]
ldur x8, [x29, #-8]
str x8, [sp, #32] ; 8-byte Folded Spill
add x0, sp, #48
str x0, [sp, #16] ; 8-byte Folded Spill
mov x2, #56
bl _memcpy
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x1, [sp, #32] ; 8-byte Folded Reload
ldr w2, [sp, #44] ; 4-byte Folded Reload
bl _ZSTD_adjustCParams
ldp x29, x30, [sp, #176] ; 16-byte Folded Reload
add sp, sp, #192
ret
.cfi_endproc
; -- End function
.comm _ZSTD_WINDOWLOG_MIN,4,2 ; @ZSTD_WINDOWLOG_MIN
.comm _ZSTD_HASHLOG_MIN,4,2 ; @ZSTD_HASHLOG_MIN
.comm _ZSTD_CHAINLOG_MIN,4,2 ; @ZSTD_CHAINLOG_MIN
.comm _ZSTD_SEARCHLOG_MIN,4,2 ; @ZSTD_SEARCHLOG_MIN
.comm _ZSTD_MINMATCH_MIN,4,2 ; @ZSTD_MINMATCH_MIN
.comm _ZSTD_MINMATCH_MAX,4,2 ; @ZSTD_MINMATCH_MAX
.comm _ZSTD_STRATEGY_MIN,4,2 ; @ZSTD_STRATEGY_MIN
.comm _ZSTD_STRATEGY_MAX,4,2 ; @ZSTD_STRATEGY_MAX
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_randomCParams ## -- Begin function FUZZ_randomCParams
.p2align 4, 0x90
_FUZZ_randomCParams: ## @FUZZ_randomCParams
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $144, %rsp
movq %rdi, -88(%rbp) ## 8-byte Spill
movq %rdi, -80(%rbp) ## 8-byte Spill
movq %rsi, -8(%rbp)
movq %rdx, -16(%rbp)
movq -16(%rbp), %rdi
movq _ZSTD_WINDOWLOG_MIN@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $15, %edx
callq _FUZZ_dataProducer_uint32Range
movq %rax, -24(%rbp)
movq -16(%rbp), %rdi
movq _ZSTD_HASHLOG_MIN@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $15, %edx
callq _FUZZ_dataProducer_uint32Range
movq %rax, -32(%rbp)
movq -16(%rbp), %rdi
movq _ZSTD_CHAINLOG_MIN@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $16, %edx
callq _FUZZ_dataProducer_uint32Range
movq %rax, -40(%rbp)
movq -16(%rbp), %rdi
movq _ZSTD_SEARCHLOG_MIN@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $9, %edx
callq _FUZZ_dataProducer_uint32Range
movq %rax, -48(%rbp)
movq -16(%rbp), %rdi
movq _ZSTD_MINMATCH_MIN@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _ZSTD_MINMATCH_MAX@GOTPCREL(%rip), %rax
movl (%rax), %edx
callq _FUZZ_dataProducer_uint32Range
movq %rax, -56(%rbp)
movq -16(%rbp), %rdi
xorl %esi, %esi
movl $512, %edx ## imm = 0x200
callq _FUZZ_dataProducer_uint32Range
movq %rax, -64(%rbp)
movq -16(%rbp), %rdi
movq _ZSTD_STRATEGY_MIN@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _ZSTD_STRATEGY_MAX@GOTPCREL(%rip), %rax
movl (%rax), %edx
callq _FUZZ_dataProducer_uint32Range
movq -88(%rbp), %rdi ## 8-byte Reload
movq %rax, -72(%rbp)
movq -8(%rbp), %rsi
xorl %eax, %eax
movq -24(%rbp), %rcx
movq %rsp, %rax
movq %rcx, 48(%rax)
movups -72(%rbp), %xmm0
movups -56(%rbp), %xmm1
movups -40(%rbp), %xmm2
movups %xmm2, 32(%rax)
movups %xmm1, 16(%rax)
movups %xmm0, (%rax)
xorl %edx, %edx
callq _ZSTD_adjustCParams
movq -80(%rbp), %rax ## 8-byte Reload
addq $144, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_WINDOWLOG_MIN,4,2 ## @ZSTD_WINDOWLOG_MIN
.comm _ZSTD_HASHLOG_MIN,4,2 ## @ZSTD_HASHLOG_MIN
.comm _ZSTD_CHAINLOG_MIN,4,2 ## @ZSTD_CHAINLOG_MIN
.comm _ZSTD_SEARCHLOG_MIN,4,2 ## @ZSTD_SEARCHLOG_MIN
.comm _ZSTD_MINMATCH_MIN,4,2 ## @ZSTD_MINMATCH_MIN
.comm _ZSTD_MINMATCH_MAX,4,2 ## @ZSTD_MINMATCH_MAX
.comm _ZSTD_STRATEGY_MIN,4,2 ## @ZSTD_STRATEGY_MIN
.comm _ZSTD_STRATEGY_MAX,4,2 ## @ZSTD_STRATEGY_MAX
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_zstd_helpers.c_FUZZ_randomCParams.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ; -- Begin function LLVMFuzzerTestOneInput
.p2align 2
_LLVMFuzzerTestOneInput: ; @LLVMFuzzerTestOneInput
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
ldur x0, [x29, #-8]
ldr x1, [sp, #16]
bl _ZSTD_getFrameContentSize
ldur x0, [x29, #-8]
ldr x1, [sp, #16]
bl _ZSTD_getDecompressedSize
ldur x0, [x29, #-8]
ldr x1, [sp, #16]
bl _ZSTD_findFrameCompressedSize
ldur x0, [x29, #-8]
ldr x1, [sp, #16]
bl _ZSTD_getDictID_fromFrame
ldur x0, [x29, #-8]
ldr x1, [sp, #16]
bl _ZSTD_findDecompressedSize
ldur x0, [x29, #-8]
ldr x1, [sp, #16]
bl _ZSTD_decompressBound
ldur x0, [x29, #-8]
ldr x1, [sp, #16]
bl _ZSTD_frameHeaderSize
ldur x0, [x29, #-8]
ldr x1, [sp, #16]
bl _ZSTD_isFrame
ldur x1, [x29, #-8]
ldr x2, [sp, #16]
add x0, sp, #12
str x0, [sp] ; 8-byte Folded Spill
bl _ZSTD_getFrameHeader
ldr x0, [sp] ; 8-byte Folded Reload
ldur x1, [x29, #-8]
ldr x2, [sp, #16]
adrp x8, _ZSTD_f_zstd1@GOTPAGE
ldr x8, [x8, _ZSTD_f_zstd1@GOTPAGEOFF]
ldr w3, [x8]
bl _ZSTD_getFrameHeader_advanced
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _ZSTD_f_zstd1,4,2 ; @ZSTD_f_zstd1
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _LLVMFuzzerTestOneInput ## -- Begin function LLVMFuzzerTestOneInput
.p2align 4, 0x90
_LLVMFuzzerTestOneInput: ## @LLVMFuzzerTestOneInput
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _ZSTD_getFrameContentSize
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _ZSTD_getDecompressedSize
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _ZSTD_findFrameCompressedSize
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _ZSTD_getDictID_fromFrame
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _ZSTD_findDecompressedSize
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _ZSTD_decompressBound
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _ZSTD_frameHeaderSize
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _ZSTD_isFrame
movq -8(%rbp), %rsi
movq -16(%rbp), %rdx
leaq -20(%rbp), %rdi
callq _ZSTD_getFrameHeader
movq -8(%rbp), %rsi
movq -16(%rbp), %rdx
movq _ZSTD_f_zstd1@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq -20(%rbp), %rdi
callq _ZSTD_getFrameHeader_advanced
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_f_zstd1,4,2 ## @ZSTD_f_zstd1
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_zstd_frame_info.c_LLVMFuzzerTestOneInput.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_randomFParams ; -- Begin function FUZZ_randomFParams
.p2align 2
_FUZZ_randomFParams: ; @FUZZ_randomFParams
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x8, [sp, #16] ; 8-byte Folded Spill
stur x0, [x29, #-8]
ldur x0, [x29, #-8]
mov w1, #0
str w1, [sp, #8] ; 4-byte Folded Spill
mov w2, #1
str w2, [sp, #12] ; 4-byte Folded Spill
bl _FUZZ_dataProducer_uint32Range
ldr w1, [sp, #8] ; 4-byte Folded Reload
ldr w2, [sp, #12] ; 4-byte Folded Reload
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x8, #16]
ldur x0, [x29, #-8]
bl _FUZZ_dataProducer_uint32Range
ldr w1, [sp, #8] ; 4-byte Folded Reload
ldr w2, [sp, #12] ; 4-byte Folded Reload
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x8, #8]
ldur x0, [x29, #-8]
bl _FUZZ_dataProducer_uint32Range
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_randomFParams ## -- Begin function FUZZ_randomFParams
.p2align 4, 0x90
_FUZZ_randomFParams: ## @FUZZ_randomFParams
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -24(%rbp) ## 8-byte Spill
movq %rdi, -16(%rbp) ## 8-byte Spill
movq %rsi, -8(%rbp)
movq -8(%rbp), %rdi
xorl %esi, %esi
movl $1, %edx
callq _FUZZ_dataProducer_uint32Range
movq -24(%rbp), %rdi ## 8-byte Reload
movq %rax, 16(%rdi)
movq -8(%rbp), %rdi
xorl %esi, %esi
movl $1, %edx
callq _FUZZ_dataProducer_uint32Range
movq -24(%rbp), %rdi ## 8-byte Reload
movq %rax, 8(%rdi)
movq -8(%rbp), %rdi
xorl %esi, %esi
movl $1, %edx
callq _FUZZ_dataProducer_uint32Range
movq -24(%rbp), %rdi ## 8-byte Reload
movq %rax, %rcx
movq -16(%rbp), %rax ## 8-byte Reload
movq %rcx, (%rdi)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_zstd_helpers.c_FUZZ_randomFParams.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_randomParams ; -- Begin function FUZZ_randomParams
.p2align 2
_FUZZ_randomParams: ; @FUZZ_randomParams
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
str x1, [sp, #8]
ldr x0, [sp, #16]
ldr x1, [sp, #8]
bl _FUZZ_randomCParams
stur w0, [x29, #-4]
ldr x0, [sp, #8]
bl _FUZZ_randomFParams
stur w0, [x29, #-8]
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_randomParams ## -- Begin function FUZZ_randomParams
.p2align 4, 0x90
_FUZZ_randomParams: ## @FUZZ_randomParams
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
callq _FUZZ_randomCParams
movl %eax, -4(%rbp)
movq -24(%rbp), %rdi
callq _FUZZ_randomFParams
movl %eax, -8(%rbp)
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_zstd_helpers.c_FUZZ_randomParams.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_setRandomParameters ; -- Begin function FUZZ_setRandomParameters
.p2align 2
_FUZZ_setRandomParameters: ; @FUZZ_setRandomParameters
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
ldur x0, [x29, #-16]
ldur x1, [x29, #-24]
add x8, sp, #12
bl _FUZZ_randomCParams
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_windowLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_windowLog@GOTPAGEOFF]
ldr w1, [x8]
ldr w2, [sp, #36]
bl _set
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_hashLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_hashLog@GOTPAGEOFF]
ldr w1, [x8]
ldr w2, [sp, #32]
bl _set
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_chainLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_chainLog@GOTPAGEOFF]
ldr w1, [x8]
ldr w2, [sp, #28]
bl _set
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_searchLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_searchLog@GOTPAGEOFF]
ldr w1, [x8]
ldr w2, [sp, #24]
bl _set
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_minMatch@GOTPAGE
ldr x8, [x8, _ZSTD_c_minMatch@GOTPAGEOFF]
ldr w1, [x8]
ldr w2, [sp, #20]
bl _set
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_targetLength@GOTPAGE
ldr x8, [x8, _ZSTD_c_targetLength@GOTPAGEOFF]
ldr w1, [x8]
ldr w2, [sp, #16]
bl _set
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_strategy@GOTPAGE
ldr x8, [x8, _ZSTD_c_strategy@GOTPAGEOFF]
ldr w1, [x8]
ldr w2, [sp, #12]
bl _set
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_contentSizeFlag@GOTPAGE
ldr x8, [x8, _ZSTD_c_contentSizeFlag@GOTPAGEOFF]
ldr w1, [x8]
ldur x4, [x29, #-24]
mov w2, #0
str w2, [sp, #4] ; 4-byte Folded Spill
mov w3, #1
str w3, [sp, #8] ; 4-byte Folded Spill
bl _setRand
ldr w2, [sp, #4] ; 4-byte Folded Reload
ldr w3, [sp, #8] ; 4-byte Folded Reload
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_checksumFlag@GOTPAGE
ldr x8, [x8, _ZSTD_c_checksumFlag@GOTPAGEOFF]
ldr w1, [x8]
ldur x4, [x29, #-24]
bl _setRand
ldr w2, [sp, #4] ; 4-byte Folded Reload
ldr w3, [sp, #8] ; 4-byte Folded Reload
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_dictIDFlag@GOTPAGE
ldr x8, [x8, _ZSTD_c_dictIDFlag@GOTPAGEOFF]
ldr w1, [x8]
ldur x4, [x29, #-24]
bl _setRand
ldr w2, [sp, #4] ; 4-byte Folded Reload
ldr w3, [sp, #8] ; 4-byte Folded Reload
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_enableLongDistanceMatching@GOTPAGE
ldr x8, [x8, _ZSTD_c_enableLongDistanceMatching@GOTPAGEOFF]
ldr w1, [x8]
ldur x4, [x29, #-24]
bl _setRand
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_ldmHashLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_ldmHashLog@GOTPAGEOFF]
ldr w1, [x8]
adrp x8, _ZSTD_HASHLOG_MIN@GOTPAGE
ldr x8, [x8, _ZSTD_HASHLOG_MIN@GOTPAGEOFF]
ldr w2, [x8]
ldur x4, [x29, #-24]
mov w3, #16
bl _setRand
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_ldmMinMatch@GOTPAGE
ldr x8, [x8, _ZSTD_c_ldmMinMatch@GOTPAGEOFF]
ldr w1, [x8]
adrp x8, _ZSTD_LDM_MINMATCH_MIN@GOTPAGE
ldr x8, [x8, _ZSTD_LDM_MINMATCH_MIN@GOTPAGEOFF]
ldr w2, [x8]
adrp x8, _ZSTD_LDM_MINMATCH_MAX@GOTPAGE
ldr x8, [x8, _ZSTD_LDM_MINMATCH_MAX@GOTPAGEOFF]
ldr w3, [x8]
ldur x4, [x29, #-24]
bl _setRand
ldr w2, [sp, #4] ; 4-byte Folded Reload
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_ldmBucketSizeLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_ldmBucketSizeLog@GOTPAGEOFF]
ldr w1, [x8]
adrp x8, _ZSTD_LDM_BUCKETSIZELOG_MAX@GOTPAGE
ldr x8, [x8, _ZSTD_LDM_BUCKETSIZELOG_MAX@GOTPAGEOFF]
ldr w3, [x8]
ldur x4, [x29, #-24]
bl _setRand
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_ldmHashRateLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_ldmHashRateLog@GOTPAGEOFF]
ldr w1, [x8]
adrp x8, _ZSTD_LDM_HASHRATELOG_MIN@GOTPAGE
ldr x8, [x8, _ZSTD_LDM_HASHRATELOG_MIN@GOTPAGEOFF]
ldr w2, [x8]
adrp x8, _ZSTD_LDM_HASHRATELOG_MAX@GOTPAGE
ldr x8, [x8, _ZSTD_LDM_HASHRATELOG_MAX@GOTPAGEOFF]
ldr w3, [x8]
ldur x4, [x29, #-24]
bl _setRand
ldr w2, [sp, #4] ; 4-byte Folded Reload
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_nbWorkers@GOTPAGE
ldr x8, [x8, _ZSTD_c_nbWorkers@GOTPAGEOFF]
ldr w1, [x8]
ldur x4, [x29, #-24]
mov w3, #2
str w3, [sp] ; 4-byte Folded Spill
bl _setRand
ldr w2, [sp, #4] ; 4-byte Folded Reload
ldr w3, [sp, #8] ; 4-byte Folded Reload
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_rsyncable@GOTPAGE
ldr x8, [x8, _ZSTD_c_rsyncable@GOTPAGEOFF]
ldr w1, [x8]
ldur x4, [x29, #-24]
bl _setRand
ldr w2, [sp, #4] ; 4-byte Folded Reload
ldr w3, [sp, #8] ; 4-byte Folded Reload
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_forceMaxWindow@GOTPAGE
ldr x8, [x8, _ZSTD_c_forceMaxWindow@GOTPAGEOFF]
ldr w1, [x8]
ldur x4, [x29, #-24]
bl _setRand
ldr w3, [sp] ; 4-byte Folded Reload
ldr w2, [sp, #4] ; 4-byte Folded Reload
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_literalCompressionMode@GOTPAGE
ldr x8, [x8, _ZSTD_c_literalCompressionMode@GOTPAGEOFF]
ldr w1, [x8]
ldur x4, [x29, #-24]
bl _setRand
ldr w3, [sp] ; 4-byte Folded Reload
ldr w2, [sp, #4] ; 4-byte Folded Reload
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_forceAttachDict@GOTPAGE
ldr x8, [x8, _ZSTD_c_forceAttachDict@GOTPAGEOFF]
ldr w1, [x8]
ldur x4, [x29, #-24]
bl _setRand
ldr w1, [sp, #4] ; 4-byte Folded Reload
ldr w2, [sp, #8] ; 4-byte Folded Reload
ldur x0, [x29, #-24]
bl _FUZZ_dataProducer_uint32Range
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x0, [x29, #-8]
adrp x8, _ZSTD_c_srcSizeHint@GOTPAGE
ldr x8, [x8, _ZSTD_c_srcSizeHint@GOTPAGEOFF]
ldr w1, [x8]
adrp x8, _ZSTD_SRCSIZEHINT_MIN@GOTPAGE
ldr x8, [x8, _ZSTD_SRCSIZEHINT_MIN@GOTPAGEOFF]
ldr w2, [x8]
ldur x9, [x29, #-16]
mov x8, #2
mul x8, x8, x9
mov x3, x8
ldur x4, [x29, #-24]
bl _setRand
b LBB0_2
LBB0_2:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.comm _ZSTD_c_windowLog,4,2 ; @ZSTD_c_windowLog
.comm _ZSTD_c_hashLog,4,2 ; @ZSTD_c_hashLog
.comm _ZSTD_c_chainLog,4,2 ; @ZSTD_c_chainLog
.comm _ZSTD_c_searchLog,4,2 ; @ZSTD_c_searchLog
.comm _ZSTD_c_minMatch,4,2 ; @ZSTD_c_minMatch
.comm _ZSTD_c_targetLength,4,2 ; @ZSTD_c_targetLength
.comm _ZSTD_c_strategy,4,2 ; @ZSTD_c_strategy
.comm _ZSTD_c_contentSizeFlag,4,2 ; @ZSTD_c_contentSizeFlag
.comm _ZSTD_c_checksumFlag,4,2 ; @ZSTD_c_checksumFlag
.comm _ZSTD_c_dictIDFlag,4,2 ; @ZSTD_c_dictIDFlag
.comm _ZSTD_c_enableLongDistanceMatching,4,2 ; @ZSTD_c_enableLongDistanceMatching
.comm _ZSTD_c_ldmHashLog,4,2 ; @ZSTD_c_ldmHashLog
.comm _ZSTD_HASHLOG_MIN,4,2 ; @ZSTD_HASHLOG_MIN
.comm _ZSTD_c_ldmMinMatch,4,2 ; @ZSTD_c_ldmMinMatch
.comm _ZSTD_LDM_MINMATCH_MIN,4,2 ; @ZSTD_LDM_MINMATCH_MIN
.comm _ZSTD_LDM_MINMATCH_MAX,4,2 ; @ZSTD_LDM_MINMATCH_MAX
.comm _ZSTD_c_ldmBucketSizeLog,4,2 ; @ZSTD_c_ldmBucketSizeLog
.comm _ZSTD_LDM_BUCKETSIZELOG_MAX,4,2 ; @ZSTD_LDM_BUCKETSIZELOG_MAX
.comm _ZSTD_c_ldmHashRateLog,4,2 ; @ZSTD_c_ldmHashRateLog
.comm _ZSTD_LDM_HASHRATELOG_MIN,4,2 ; @ZSTD_LDM_HASHRATELOG_MIN
.comm _ZSTD_LDM_HASHRATELOG_MAX,4,2 ; @ZSTD_LDM_HASHRATELOG_MAX
.comm _ZSTD_c_nbWorkers,4,2 ; @ZSTD_c_nbWorkers
.comm _ZSTD_c_rsyncable,4,2 ; @ZSTD_c_rsyncable
.comm _ZSTD_c_forceMaxWindow,4,2 ; @ZSTD_c_forceMaxWindow
.comm _ZSTD_c_literalCompressionMode,4,2 ; @ZSTD_c_literalCompressionMode
.comm _ZSTD_c_forceAttachDict,4,2 ; @ZSTD_c_forceAttachDict
.comm _ZSTD_c_srcSizeHint,4,2 ; @ZSTD_c_srcSizeHint
.comm _ZSTD_SRCSIZEHINT_MIN,4,2 ; @ZSTD_SRCSIZEHINT_MIN
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZZ_setRandomParameters ## -- Begin function FUZZ_setRandomParameters
.p2align 4, 0x90
_FUZZ_setRandomParameters: ## @FUZZ_setRandomParameters
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
leaq -56(%rbp), %rdi
callq _FUZZ_randomCParams
movq -8(%rbp), %rdi
movq _ZSTD_c_windowLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl -32(%rbp), %edx
callq _set
movq -8(%rbp), %rdi
movq _ZSTD_c_hashLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl -36(%rbp), %edx
callq _set
movq -8(%rbp), %rdi
movq _ZSTD_c_chainLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl -40(%rbp), %edx
callq _set
movq -8(%rbp), %rdi
movq _ZSTD_c_searchLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl -44(%rbp), %edx
callq _set
movq -8(%rbp), %rdi
movq _ZSTD_c_minMatch@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl -48(%rbp), %edx
callq _set
movq -8(%rbp), %rdi
movq _ZSTD_c_targetLength@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl -52(%rbp), %edx
callq _set
movq -8(%rbp), %rdi
movq _ZSTD_c_strategy@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl -56(%rbp), %edx
callq _set
movq -8(%rbp), %rdi
movq _ZSTD_c_contentSizeFlag@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -24(%rbp), %r8
xorl %edx, %edx
movl $1, %ecx
callq _setRand
movq -8(%rbp), %rdi
movq _ZSTD_c_checksumFlag@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -24(%rbp), %r8
xorl %edx, %edx
movl $1, %ecx
callq _setRand
movq -8(%rbp), %rdi
movq _ZSTD_c_dictIDFlag@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -24(%rbp), %r8
xorl %edx, %edx
movl $1, %ecx
callq _setRand
movq -8(%rbp), %rdi
movq _ZSTD_c_enableLongDistanceMatching@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -24(%rbp), %r8
xorl %edx, %edx
movl $1, %ecx
callq _setRand
movq -8(%rbp), %rdi
movq _ZSTD_c_ldmHashLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _ZSTD_HASHLOG_MIN@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq -24(%rbp), %r8
movl $16, %ecx
callq _setRand
movq -8(%rbp), %rdi
movq _ZSTD_c_ldmMinMatch@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _ZSTD_LDM_MINMATCH_MIN@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq _ZSTD_LDM_MINMATCH_MAX@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -24(%rbp), %r8
callq _setRand
movq -8(%rbp), %rdi
movq _ZSTD_c_ldmBucketSizeLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _ZSTD_LDM_BUCKETSIZELOG_MAX@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -24(%rbp), %r8
xorl %edx, %edx
callq _setRand
movq -8(%rbp), %rdi
movq _ZSTD_c_ldmHashRateLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _ZSTD_LDM_HASHRATELOG_MIN@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq _ZSTD_LDM_HASHRATELOG_MAX@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -24(%rbp), %r8
callq _setRand
movq -8(%rbp), %rdi
movq _ZSTD_c_nbWorkers@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -24(%rbp), %r8
xorl %edx, %edx
movl $2, %ecx
callq _setRand
movq -8(%rbp), %rdi
movq _ZSTD_c_rsyncable@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -24(%rbp), %r8
xorl %edx, %edx
movl $1, %ecx
callq _setRand
movq -8(%rbp), %rdi
movq _ZSTD_c_forceMaxWindow@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -24(%rbp), %r8
xorl %edx, %edx
movl $1, %ecx
callq _setRand
movq -8(%rbp), %rdi
movq _ZSTD_c_literalCompressionMode@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -24(%rbp), %r8
xorl %edx, %edx
movl $2, %ecx
callq _setRand
movq -8(%rbp), %rdi
movq _ZSTD_c_forceAttachDict@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -24(%rbp), %r8
xorl %edx, %edx
movl $2, %ecx
callq _setRand
movq -24(%rbp), %rdi
xorl %esi, %esi
movl $1, %edx
callq _FUZZ_dataProducer_uint32Range
cmpq $0, %rax
jne LBB0_2
## %bb.1:
movq -8(%rbp), %rdi
movq _ZSTD_c_srcSizeHint@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _ZSTD_SRCSIZEHINT_MIN@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq -16(%rbp), %rax
shlq $1, %rax
movl %eax, %ecx
movq -24(%rbp), %r8
callq _setRand
LBB0_2:
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_c_windowLog,4,2 ## @ZSTD_c_windowLog
.comm _ZSTD_c_hashLog,4,2 ## @ZSTD_c_hashLog
.comm _ZSTD_c_chainLog,4,2 ## @ZSTD_c_chainLog
.comm _ZSTD_c_searchLog,4,2 ## @ZSTD_c_searchLog
.comm _ZSTD_c_minMatch,4,2 ## @ZSTD_c_minMatch
.comm _ZSTD_c_targetLength,4,2 ## @ZSTD_c_targetLength
.comm _ZSTD_c_strategy,4,2 ## @ZSTD_c_strategy
.comm _ZSTD_c_contentSizeFlag,4,2 ## @ZSTD_c_contentSizeFlag
.comm _ZSTD_c_checksumFlag,4,2 ## @ZSTD_c_checksumFlag
.comm _ZSTD_c_dictIDFlag,4,2 ## @ZSTD_c_dictIDFlag
.comm _ZSTD_c_enableLongDistanceMatching,4,2 ## @ZSTD_c_enableLongDistanceMatching
.comm _ZSTD_c_ldmHashLog,4,2 ## @ZSTD_c_ldmHashLog
.comm _ZSTD_HASHLOG_MIN,4,2 ## @ZSTD_HASHLOG_MIN
.comm _ZSTD_c_ldmMinMatch,4,2 ## @ZSTD_c_ldmMinMatch
.comm _ZSTD_LDM_MINMATCH_MIN,4,2 ## @ZSTD_LDM_MINMATCH_MIN
.comm _ZSTD_LDM_MINMATCH_MAX,4,2 ## @ZSTD_LDM_MINMATCH_MAX
.comm _ZSTD_c_ldmBucketSizeLog,4,2 ## @ZSTD_c_ldmBucketSizeLog
.comm _ZSTD_LDM_BUCKETSIZELOG_MAX,4,2 ## @ZSTD_LDM_BUCKETSIZELOG_MAX
.comm _ZSTD_c_ldmHashRateLog,4,2 ## @ZSTD_c_ldmHashRateLog
.comm _ZSTD_LDM_HASHRATELOG_MIN,4,2 ## @ZSTD_LDM_HASHRATELOG_MIN
.comm _ZSTD_LDM_HASHRATELOG_MAX,4,2 ## @ZSTD_LDM_HASHRATELOG_MAX
.comm _ZSTD_c_nbWorkers,4,2 ## @ZSTD_c_nbWorkers
.comm _ZSTD_c_rsyncable,4,2 ## @ZSTD_c_rsyncable
.comm _ZSTD_c_forceMaxWindow,4,2 ## @ZSTD_c_forceMaxWindow
.comm _ZSTD_c_literalCompressionMode,4,2 ## @ZSTD_c_literalCompressionMode
.comm _ZSTD_c_forceAttachDict,4,2 ## @ZSTD_c_forceAttachDict
.comm _ZSTD_c_srcSizeHint,4,2 ## @ZSTD_c_srcSizeHint
.comm _ZSTD_SRCSIZEHINT_MIN,4,2 ## @ZSTD_SRCSIZEHINT_MIN
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_zstd_helpers.c_FUZZ_setRandomParameters.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function set
_set: ; @set
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str w1, [sp, #4]
str w2, [sp]
ldr x0, [sp, #8]
ldr w1, [sp, #4]
ldr w2, [sp]
bl _ZSTD_CCtx_setParameter
bl _FUZZ_ZASSERT
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _set
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function set
_set: ## @set
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
movl -16(%rbp), %edx
callq _ZSTD_CCtx_setParameter
movl %eax, %edi
callq _FUZZ_ZASSERT
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _set
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_zstd_helpers.c_set.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function setRand
_setRand: ; @setRand
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
stur w2, [x29, #-16]
stur w3, [x29, #-20]
str x4, [sp, #16]
ldr x0, [sp, #16]
ldur w1, [x29, #-16]
ldur w2, [x29, #-20]
bl _FUZZ_dataProducer_uint32Range
str w0, [sp, #12]
ldur x0, [x29, #-8]
ldur w1, [x29, #-12]
ldr w2, [sp, #12]
bl _set
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.no_dead_strip _setRand
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function setRand
_setRand: ## @setRand
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movl %ecx, -20(%rbp)
movq %r8, -32(%rbp)
movq -32(%rbp), %rdi
movl -16(%rbp), %esi
movl -20(%rbp), %edx
callq _FUZZ_dataProducer_uint32Range
movl %eax, -36(%rbp)
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
movl -36(%rbp), %edx
callq _set
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _setRand
.subsections_via_symbols
| AnghaBench/zstd/tests/fuzz/extr_zstd_helpers.c_setRand.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _config_get_level ; -- Begin function config_get_level
.p2align 2
_config_get_level: ; @config_get_level
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #32]
ldr x8, [sp, #32]
ldr q0, [x8]
str q0, [sp, #16]
str xzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldr x9, [sp, #8]
lsl x9, x9, #4
ldr x8, [x8, x9]
adrp x9, _ZSTD_c_compressionLevel@GOTPAGE
ldr x9, [x9, _ZSTD_c_compressionLevel@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #24]
ldr x9, [sp, #8]
add x8, x8, x9, lsl #4
ldr x8, [x8, #8]
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #44]
b LBB0_7
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB0_1
LBB0_6:
adrp x8, _CONFIG_NO_LEVEL@GOTPAGE
ldr x8, [x8, _CONFIG_NO_LEVEL@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #44]
b LBB0_7
LBB0_7:
ldr w0, [sp, #44]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _ZSTD_c_compressionLevel,8,3 ; @ZSTD_c_compressionLevel
.comm _CONFIG_NO_LEVEL,4,2 ; @CONFIG_NO_LEVEL
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _config_get_level ## -- Begin function config_get_level
.p2align 4, 0x90
_config_get_level: ## @config_get_level
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -32(%rbp)
movq 8(%rax), %rax
movq %rax, -24(%rbp)
movq $0, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -40(%rbp), %rax
cmpq -32(%rbp), %rax
jae LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movq -40(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq _ZSTD_c_compressionLevel@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_4
## %bb.3:
movq -24(%rbp), %rax
movq -40(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movq 8(%rax), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -4(%rbp)
jmp LBB0_7
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
jmp LBB0_1
LBB0_6:
movq _CONFIG_NO_LEVEL@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
LBB0_7:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_c_compressionLevel,8,3 ## @ZSTD_c_compressionLevel
.comm _CONFIG_NO_LEVEL,4,2 ## @CONFIG_NO_LEVEL
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_config.c_config_get_level.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _config_get_zstd_params ; -- Begin function config_get_zstd_params
.p2align 2
_config_get_zstd_params: ; @config_get_zstd_params
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x8, [sp, #24] ; 8-byte Folded Spill
mov x8, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
stur x8, [x29, #-8]
stur w1, [x29, #-12]
stur x2, [x29, #-24]
mov w1, #0
mov x2, #40
bl _memset
ldur x8, [x29, #-8]
ldur q0, [x8, #8]
stur q0, [x29, #-48]
ldur x0, [x29, #-8]
bl _config_get_level
stur w0, [x29, #-52]
ldur w8, [x29, #-52]
adrp x9, _CONFIG_NO_LEVEL@GOTPAGE
ldr x9, [x9, _CONFIG_NO_LEVEL@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #3
stur w8, [x29, #-52]
b LBB0_2
LBB0_2:
ldur w8, [x29, #-52]
str w8, [sp, #20] ; 4-byte Folded Spill
ldur x8, [x29, #-8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x8, _ZSTD_CONTENTSIZE_UNKNOWN@GOTPAGE
ldr x8, [x8, _ZSTD_CONTENTSIZE_UNKNOWN@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_5
LBB0_4:
ldur w8, [x29, #-12]
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_5
LBB0_5:
ldr w0, [sp, #20] ; 4-byte Folded Reload
ldr w1, [sp, #16] ; 4-byte Folded Reload
ldur x2, [x29, #-24]
add x8, sp, #52
str x8, [sp, #8] ; 8-byte Folded Spill
bl _ZSTD_getParams
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldr x1, [sp, #8] ; 8-byte Folded Reload
mov x2, #40
bl _memcpy
str xzr, [sp, #40]
b LBB0_6
LBB0_6: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #40]
ldur x9, [x29, #-48]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_22
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_6 Depth=1
ldur x8, [x29, #-40]
ldr x9, [sp, #40]
lsl x9, x9, #3
ldr w8, [x8, x9]
str w8, [sp, #36]
ldur x8, [x29, #-40]
ldr x9, [sp, #40]
add x8, x8, x9, lsl #3
ldr w8, [x8, #4]
subs w8, w8, #128
; kill: def $x8 killed $w8
str x8, [sp] ; 8-byte Folded Spill
subs x8, x8, #9
cset w8, hi
tbnz w8, #0, LBB0_19
; %bb.8: ; in Loop: Header=BB0_6 Depth=1
ldr x11, [sp] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_9: ; in Loop: Header=BB0_6 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr w8, [sp, #36]
str w8, [x9, #28]
b LBB0_20
LBB0_10: ; in Loop: Header=BB0_6 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr w8, [sp, #36]
str w8, [x9, #32]
b LBB0_20
LBB0_11: ; in Loop: Header=BB0_6 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr w8, [sp, #36]
subs w8, w8, #0
cset w8, eq
and w8, w8, #0x1
str w8, [x9, #36]
b LBB0_20
LBB0_12: ; in Loop: Header=BB0_6 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr w8, [sp, #36]
str w8, [x9]
b LBB0_20
LBB0_13: ; in Loop: Header=BB0_6 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr w8, [sp, #36]
str w8, [x9, #4]
b LBB0_20
LBB0_14: ; in Loop: Header=BB0_6 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr w8, [sp, #36]
str w8, [x9, #8]
b LBB0_20
LBB0_15: ; in Loop: Header=BB0_6 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr w8, [sp, #36]
str w8, [x9, #12]
b LBB0_20
LBB0_16: ; in Loop: Header=BB0_6 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr w8, [sp, #36]
str w8, [x9, #16]
b LBB0_20
LBB0_17: ; in Loop: Header=BB0_6 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr w8, [sp, #36]
str w8, [x9, #20]
b LBB0_20
LBB0_18: ; in Loop: Header=BB0_6 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr w8, [sp, #36]
str w8, [x9, #24]
b LBB0_20
LBB0_19: ; in Loop: Header=BB0_6 Depth=1
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_6 Depth=1
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_6 Depth=1
ldr x8, [sp, #40]
add x8, x8, #1
str x8, [sp, #40]
b LBB0_6
LBB0_22:
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
add sp, sp, #160
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_12-Ltmp0
.long LBB0_17-Ltmp0
.long LBB0_18-Ltmp0
.long LBB0_15-Ltmp0
.long LBB0_16-Ltmp0
.long LBB0_14-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_10-Ltmp0
.long LBB0_13-Ltmp0
; -- End function
.comm _CONFIG_NO_LEVEL,4,2 ; @CONFIG_NO_LEVEL
.comm _ZSTD_CONTENTSIZE_UNKNOWN,4,2 ; @ZSTD_CONTENTSIZE_UNKNOWN
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _config_get_zstd_params ## -- Begin function config_get_zstd_params
.p2align 4, 0x90
_config_get_zstd_params: ## @config_get_zstd_params
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $144, %rsp
movq %rdi, -120(%rbp) ## 8-byte Spill
movq %rdi, %rax
movq %rax, -112(%rbp) ## 8-byte Spill
movq %rsi, -8(%rbp)
movl %edx, -12(%rbp)
movq %rcx, -24(%rbp)
xorl %esi, %esi
movl $40, %edx
callq _memset
movq -8(%rbp), %rax
movq 8(%rax), %rcx
movq %rcx, -40(%rbp)
movq 16(%rax), %rax
movq %rax, -32(%rbp)
movq -8(%rbp), %rdi
callq _config_get_level
movl %eax, -44(%rbp)
movl -44(%rbp), %eax
movq _CONFIG_NO_LEVEL@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jne LBB0_2
## %bb.1:
movl $3, -44(%rbp)
LBB0_2:
movl -44(%rbp), %eax
movl %eax, -124(%rbp) ## 4-byte Spill
movq -8(%rbp), %rax
cmpq $0, (%rax)
je LBB0_4
## %bb.3:
movq _ZSTD_CONTENTSIZE_UNKNOWN@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -128(%rbp) ## 4-byte Spill
jmp LBB0_5
LBB0_4:
movl -12(%rbp), %eax
movl %eax, -128(%rbp) ## 4-byte Spill
LBB0_5:
movl -124(%rbp), %esi ## 4-byte Reload
movl -128(%rbp), %edx ## 4-byte Reload
movq -24(%rbp), %rcx
leaq -88(%rbp), %rdi
callq _ZSTD_getParams
movq -120(%rbp), %rdi ## 8-byte Reload
leaq -88(%rbp), %rsi
movl $40, %edx
callq _memcpy
movq $0, -96(%rbp)
LBB0_6: ## =>This Inner Loop Header: Depth=1
movq -96(%rbp), %rax
cmpq -40(%rbp), %rax
jae LBB0_21
## %bb.7: ## in Loop: Header=BB0_6 Depth=1
movq -32(%rbp), %rax
movq -96(%rbp), %rcx
movl (%rax,%rcx,8), %eax
movl %eax, -100(%rbp)
movq -32(%rbp), %rax
movq -96(%rbp), %rcx
movl 4(%rax,%rcx,8), %eax
addl $-128, %eax
movl %eax, %ecx
movq %rcx, -136(%rbp) ## 8-byte Spill
subl $9, %eax
ja LBB0_18
## %bb.22: ## in Loop: Header=BB0_6 Depth=1
movq -136(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_8: ## in Loop: Header=BB0_6 Depth=1
movq -120(%rbp), %rax ## 8-byte Reload
movl -100(%rbp), %ecx
movl %ecx, 28(%rax)
jmp LBB0_19
LBB0_9: ## in Loop: Header=BB0_6 Depth=1
movq -120(%rbp), %rax ## 8-byte Reload
movl -100(%rbp), %ecx
movl %ecx, 32(%rax)
jmp LBB0_19
LBB0_10: ## in Loop: Header=BB0_6 Depth=1
movq -120(%rbp), %rax ## 8-byte Reload
cmpl $0, -100(%rbp)
setne %cl
xorb $-1, %cl
andb $1, %cl
movzbl %cl, %ecx
movl %ecx, 36(%rax)
jmp LBB0_19
LBB0_11: ## in Loop: Header=BB0_6 Depth=1
movq -120(%rbp), %rax ## 8-byte Reload
movl -100(%rbp), %ecx
movl %ecx, (%rax)
jmp LBB0_19
LBB0_12: ## in Loop: Header=BB0_6 Depth=1
movq -120(%rbp), %rax ## 8-byte Reload
movl -100(%rbp), %ecx
movl %ecx, 4(%rax)
jmp LBB0_19
LBB0_13: ## in Loop: Header=BB0_6 Depth=1
movq -120(%rbp), %rax ## 8-byte Reload
movl -100(%rbp), %ecx
movl %ecx, 8(%rax)
jmp LBB0_19
LBB0_14: ## in Loop: Header=BB0_6 Depth=1
movq -120(%rbp), %rax ## 8-byte Reload
movl -100(%rbp), %ecx
movl %ecx, 12(%rax)
jmp LBB0_19
LBB0_15: ## in Loop: Header=BB0_6 Depth=1
movq -120(%rbp), %rax ## 8-byte Reload
movl -100(%rbp), %ecx
movl %ecx, 16(%rax)
jmp LBB0_19
LBB0_16: ## in Loop: Header=BB0_6 Depth=1
movq -120(%rbp), %rax ## 8-byte Reload
movl -100(%rbp), %ecx
movl %ecx, 20(%rax)
jmp LBB0_19
LBB0_17: ## in Loop: Header=BB0_6 Depth=1
movq -120(%rbp), %rax ## 8-byte Reload
movl -100(%rbp), %ecx
movl %ecx, 24(%rax)
jmp LBB0_19
LBB0_18: ## in Loop: Header=BB0_6 Depth=1
jmp LBB0_19
LBB0_19: ## in Loop: Header=BB0_6 Depth=1
jmp LBB0_20
LBB0_20: ## in Loop: Header=BB0_6 Depth=1
movq -96(%rbp), %rax
addq $1, %rax
movq %rax, -96(%rbp)
jmp LBB0_6
LBB0_21:
movq -112(%rbp), %rax ## 8-byte Reload
addq $144, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
.long L0_0_set_11
.long L0_0_set_16
.long L0_0_set_17
.long L0_0_set_14
.long L0_0_set_15
.long L0_0_set_13
.long L0_0_set_10
.long L0_0_set_8
.long L0_0_set_9
.long L0_0_set_12
.end_data_region
## -- End function
.comm _CONFIG_NO_LEVEL,4,2 ## @CONFIG_NO_LEVEL
.comm _ZSTD_CONTENTSIZE_UNKNOWN,4,2 ## @ZSTD_CONTENTSIZE_UNKNOWN
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_config.c_config_get_zstd_params.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _config_skip_data ; -- Begin function config_skip_data
.p2align 2
_config_skip_data: ; @config_skip_data
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
ldur x8, [x29, #-8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x0, [sp, #16]
bl _data_has_dict
subs w8, w0, #0
cset w8, eq
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_2
LBB0_2:
ldr w8, [sp, #12] ; 4-byte Folded Reload
and w0, w8, #0x1
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _config_skip_data ## -- Begin function config_skip_data
.p2align 4, 0x90
_config_skip_data: ## @config_skip_data
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq $0, (%rcx)
movb %al, -17(%rbp) ## 1-byte Spill
je LBB0_2
## %bb.1:
movq -16(%rbp), %rdi
callq _data_has_dict
cmpl $0, %eax
setne %al
xorb $-1, %al
movb %al, -17(%rbp) ## 1-byte Spill
LBB0_2:
movb -17(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_config.c_config_skip_data.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function cat2
_cat2: ; @cat2
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str x1, [sp]
ldr x0, [sp, #8]
ldr x1, [sp]
mov x2, #0
bl _cat3
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _cat2
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function cat2
_cat2: ## @cat2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq _cat3
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _cat2
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_cat2.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function cat3
_cat3: ; @cat3
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur x2, [x29, #-32]
ldur x0, [x29, #-16]
bl _strlen
str x0, [sp, #40]
ldur x0, [x29, #-24]
bl _strlen
str x0, [sp, #32]
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov x8, #0
str x8, [sp] ; 8-byte Folded Spill
b LBB0_3
LBB0_2:
ldur x0, [x29, #-32]
bl _strlen
str x0, [sp] ; 8-byte Folded Spill
b LBB0_3
LBB0_3:
ldr x8, [sp] ; 8-byte Folded Reload
str x8, [sp, #24]
ldr x8, [sp, #40]
ldr x9, [sp, #32]
add x8, x8, x9
ldr x9, [sp, #24]
add x8, x8, x9
add x8, x8, #1
str x8, [sp, #16]
ldr x0, [sp, #16]
bl _malloc
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB0_8
LBB0_5:
ldr x0, [sp, #8]
ldur x1, [x29, #-16]
bl _strcpy
ldr x8, [sp, #8]
ldr x9, [sp, #40]
add x0, x8, x9
ldur x1, [x29, #-24]
bl _strcpy
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr x8, [sp, #8]
ldr x9, [sp, #40]
add x8, x8, x9
ldr x9, [sp, #32]
add x0, x8, x9
ldur x1, [x29, #-32]
bl _strcpy
b LBB0_7
LBB0_7:
ldr x0, [sp, #8]
bl _strlen
ldr x8, [sp, #40]
ldr x9, [sp, #32]
add x8, x8, x9
ldr x9, [sp, #24]
add x8, x8, x9
subs x8, x0, x8
cset w8, eq
and w0, w8, #0x1
bl _assert
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB0_8
LBB0_8:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.no_dead_strip _cat3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function cat3
_cat3: ## @cat3
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq -16(%rbp), %rdi
callq _strlen
movq %rax, -40(%rbp)
movq -24(%rbp), %rdi
callq _strlen
movq %rax, -48(%rbp)
cmpq $0, -32(%rbp)
jne LBB0_2
## %bb.1:
xorl %eax, %eax
## kill: def $rax killed $eax
movq %rax, -80(%rbp) ## 8-byte Spill
jmp LBB0_3
LBB0_2:
movq -32(%rbp), %rdi
callq _strlen
movq %rax, -80(%rbp) ## 8-byte Spill
LBB0_3:
movq -80(%rbp), %rax ## 8-byte Reload
movq %rax, -56(%rbp)
movq -40(%rbp), %rax
addq -48(%rbp), %rax
addq -56(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
movq -64(%rbp), %rdi
callq _malloc
movq %rax, -72(%rbp)
cmpq $0, -72(%rbp)
jne LBB0_5
## %bb.4:
movq $0, -8(%rbp)
jmp LBB0_8
LBB0_5:
movq -72(%rbp), %rdi
movq -16(%rbp), %rsi
callq _strcpy
movq -72(%rbp), %rdi
addq -40(%rbp), %rdi
movq -24(%rbp), %rsi
callq _strcpy
cmpq $0, -32(%rbp)
je LBB0_7
## %bb.6:
movq -72(%rbp), %rdi
addq -40(%rbp), %rdi
addq -48(%rbp), %rdi
movq -32(%rbp), %rsi
callq _strcpy
LBB0_7:
movq -72(%rbp), %rdi
callq _strlen
movq -40(%rbp), %rcx
addq -48(%rbp), %rcx
addq -56(%rbp), %rcx
cmpq %rcx, %rax
sete %al
andb $1, %al
movzbl %al, %edi
callq _assert
movq -72(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_8:
movq -8(%rbp), %rax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _cat3
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_cat3.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function curl_data_free
_curl_data_free: ; @curl_data_free
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x8, x0
stur w8, [x29, #-4]
ldur w0, [x29, #-4]
bl _pclose
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _curl_data_free
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function curl_data_free
_curl_data_free: ## @curl_data_free
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -8(%rbp)
movl -8(%rbp), %edi
callq _pclose
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _curl_data_free
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_curl_data_free.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function curl_data_create
_curl_data_create: ; @curl_data_create
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x8, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str xzr, [x8]
str xzr, [x8, #8]
str xzr, [x8, #16]
add x0, x8, #16
mov w1, #0
bl _XXH64_reset
adrp x8, _g_data_dir@GOTPAGE
ldr x8, [x8, _g_data_dir@GOTPAGEOFF]
ldr w0, [x8]
bl _UTIL_isDirectory
bl _assert
ldur x8, [x29, #-16]
adrp x9, _data_type_file@GOTPAGE
ldr x9, [x9, _data_type_file@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_1
LBB0_1:
ldur x8, [x29, #-8]
ldr w1, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
adrp x2, l_.str.1@PAGE
add x2, x2, l_.str.1@PAGEOFF
bl _cat3
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x9, [sp, #8] ; 8-byte Folded Reload
adrp x8, _ENOMEM@GOTPAGE
ldr x8, [x8, _ENOMEM@GOTPAGEOFF]
ldr x8, [x8]
str x8, [x9]
b LBB0_10
LBB0_3:
ldr x0, [sp, #24]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _popen
ldr x8, [sp, #8] ; 8-byte Folded Reload
str x0, [x8, #8]
ldr x0, [sp, #24]
bl _free
b LBB0_7
LBB0_4:
adrp x8, _g_data_dir@GOTPAGE
ldr x8, [x8, _g_data_dir@GOTPAGEOFF]
ldr w1, [x8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
adrp x2, l_.str.1@PAGE
add x2, x2, l_.str.1@PAGEOFF
bl _cat3
str x0, [sp, #16]
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x9, [sp, #8] ; 8-byte Folded Reload
adrp x8, _ENOMEM@GOTPAGE
ldr x8, [x8, _ENOMEM@GOTPAGEOFF]
ldr x8, [x8]
str x8, [x9]
b LBB0_10
LBB0_6:
ldr x0, [sp, #16]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _popen
ldr x8, [sp, #8] ; 8-byte Folded Reload
str x0, [x8, #8]
ldr x0, [sp, #16]
bl _free
b LBB0_7
LBB0_7:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldr x9, [sp, #8] ; 8-byte Folded Reload
adrp x8, _errno@GOTPAGE
ldr x8, [x8, _errno@GOTPAGEOFF]
ldr x8, [x8]
str x8, [x9]
b LBB0_9
LBB0_9:
b LBB0_10
LBB0_10:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _g_data_dir,4,2 ; @g_data_dir
.comm _data_type_file,8,3 ; @data_type_file
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "zstd -dqfo '"
l_.str.1: ; @.str.1
.asciz "'"
.comm _ENOMEM,8,3 ; @ENOMEM
l_.str.2: ; @.str.2
.asciz "w"
l_.str.3: ; @.str.3
.asciz "zstd -dc | tar -x -C '"
.comm _errno,8,3 ; @errno
.no_dead_strip _curl_data_create
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function curl_data_create
_curl_data_create: ## @curl_data_create
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -40(%rbp) ## 8-byte Spill
movq %rdi, %rax
movq %rax, -48(%rbp) ## 8-byte Spill
movq %rsi, -8(%rbp)
movq %rdx, -16(%rbp)
xorl %esi, %esi
movl $24, %edx
callq _memset
movq -40(%rbp), %rdi ## 8-byte Reload
addq $16, %rdi
xorl %esi, %esi
callq _XXH64_reset
movq _g_data_dir@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _UTIL_isDirectory
movl %eax, %edi
callq _assert
movq -16(%rbp), %rax
movq _data_type_file@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_4
## %bb.1:
movq -8(%rbp), %rax
movl (%rax), %esi
leaq L_.str(%rip), %rdi
leaq L_.str.1(%rip), %rdx
callq _cat3
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_3
## %bb.2:
movq -40(%rbp), %rax ## 8-byte Reload
movq _ENOMEM@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rcx, (%rax)
jmp LBB0_10
LBB0_3:
movq -24(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _popen
movq %rax, %rcx
movq -40(%rbp), %rax ## 8-byte Reload
movq %rcx, 8(%rax)
movq -24(%rbp), %rdi
callq _free
jmp LBB0_7
LBB0_4:
movq _g_data_dir@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.3(%rip), %rdi
leaq L_.str.1(%rip), %rdx
callq _cat3
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB0_6
## %bb.5:
movq -40(%rbp), %rax ## 8-byte Reload
movq _ENOMEM@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rcx, (%rax)
jmp LBB0_10
LBB0_6:
movq -32(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _popen
movq %rax, %rcx
movq -40(%rbp), %rax ## 8-byte Reload
movq %rcx, 8(%rax)
movq -32(%rbp), %rdi
callq _free
LBB0_7:
movq -40(%rbp), %rax ## 8-byte Reload
cmpq $0, 8(%rax)
jne LBB0_9
## %bb.8:
movq -40(%rbp), %rax ## 8-byte Reload
movq _errno@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rcx, (%rax)
LBB0_9:
jmp LBB0_10
LBB0_10:
movq -48(%rbp), %rax ## 8-byte Reload
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_data_dir,4,2 ## @g_data_dir
.comm _data_type_file,8,3 ## @data_type_file
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "zstd -dqfo '"
L_.str.1: ## @.str.1
.asciz "'"
.comm _ENOMEM,8,3 ## @ENOMEM
L_.str.2: ## @.str.2
.asciz "w"
L_.str.3: ## @.str.3
.asciz "zstd -dc | tar -x -C '"
.comm _errno,8,3 ## @errno
.no_dead_strip _curl_data_create
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_curl_data_create.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function curl_download_datum
_curl_download_datum: ; @curl_download_datum
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
str x1, [sp, #8]
ldr x0, [sp, #16]
ldr x8, [sp, #8]
ldr x9, [sp, #8]
ldr w2, [x9, #4]
add x1, x8, #8
bl _curl_download_resource
str w0, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w8, [sp, #4]
stur w8, [x29, #-4]
b LBB0_7
LBB0_2:
ldr x0, [sp, #8]
bl _data_has_dict
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_3
LBB0_3:
ldr x0, [sp, #16]
ldr x1, [sp, #8]
adrp x8, _data_type_file@GOTPAGE
ldr x8, [x8, _data_type_file@GOTPAGEOFF]
ldr w2, [x8]
bl _curl_download_resource
str w0, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldr w8, [sp, #4]
stur w8, [x29, #-4]
b LBB0_7
LBB0_5:
b LBB0_6
LBB0_6:
ldr w8, [sp, #4]
stur w8, [x29, #-4]
b LBB0_7
LBB0_7:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _data_type_file,4,2 ; @data_type_file
.no_dead_strip _curl_download_datum
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function curl_download_datum
_curl_download_datum: ## @curl_download_datum
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
addq $8, %rsi
movq -24(%rbp), %rax
movl 4(%rax), %edx
callq _curl_download_resource
movl %eax, -28(%rbp)
cmpl $0, -28(%rbp)
je LBB0_2
## %bb.1:
movl -28(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_7
LBB0_2:
movq -24(%rbp), %rdi
callq _data_has_dict
cmpq $0, %rax
je LBB0_6
## %bb.3:
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
movq _data_type_file@GOTPCREL(%rip), %rax
movl (%rax), %edx
callq _curl_download_resource
movl %eax, -28(%rbp)
cmpl $0, -28(%rbp)
je LBB0_5
## %bb.4:
movl -28(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_7
LBB0_5:
jmp LBB0_6
LBB0_6:
movl -28(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_7:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _data_type_file,4,2 ## @data_type_file
.no_dead_strip _curl_download_datum
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_curl_download_datum.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function curl_write
_curl_write: ; @curl_write
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
str x3, [sp, #16]
ldr x8, [sp, #16]
str x8, [sp, #8]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldr x2, [sp, #24]
ldr x8, [sp, #8]
ldr w3, [x8, #4]
bl _fwrite
str x0, [sp]
ldr x0, [sp, #8]
ldur x1, [x29, #-8]
ldr x8, [sp]
ldur x9, [x29, #-16]
mul x2, x8, x9
bl _XXH64_update
ldr x0, [sp]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.no_dead_strip _curl_write
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function curl_write
_curl_write: ## @curl_write
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq -32(%rbp), %rax
movq %rax, -40(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
movq -40(%rbp), %rax
movl 4(%rax), %ecx
callq _fwrite
movq %rax, -48(%rbp)
movq -40(%rbp), %rdi
movq -8(%rbp), %rsi
movq -48(%rbp), %rdx
imulq -16(%rbp), %rdx
callq _XXH64_update
movq -48(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _curl_write
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_curl_write.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_buffer_compare ; -- Begin function data_buffer_compare
.p2align 2
_data_buffer_compare: ; @data_buffer_compare
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-24]
stur x1, [x29, #-16]
str x2, [sp, #24]
str x3, [sp, #32]
ldur x8, [x29, #-24]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-24]
str x8, [sp] ; 8-byte Folded Spill
b LBB0_3
LBB0_2:
ldr x8, [sp, #24]
str x8, [sp] ; 8-byte Folded Spill
b LBB0_3
LBB0_3:
ldr x8, [sp] ; 8-byte Folded Reload
str x8, [sp, #16]
ldur w0, [x29, #-16]
ldr w1, [sp, #32]
ldr x2, [sp, #16]
bl _memcmp
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldr w8, [sp, #12]
stur w8, [x29, #-4]
b LBB0_10
LBB0_5:
ldur x8, [x29, #-24]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
mov w8, #-1
stur w8, [x29, #-4]
b LBB0_10
LBB0_7:
ldur x8, [x29, #-24]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
stur wzr, [x29, #-4]
b LBB0_10
LBB0_9:
ldur x8, [x29, #-24]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hi
and w0, w8, #0x1
bl _assert
mov w8, #1
stur w8, [x29, #-4]
b LBB0_10
LBB0_10:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_buffer_compare ## -- Begin function data_buffer_compare
.p2align 4, 0x90
_data_buffer_compare: ## @data_buffer_compare
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -24(%rbp)
movl %esi, -16(%rbp)
movq %rdx, -40(%rbp)
movl %ecx, -32(%rbp)
movq -24(%rbp), %rax
cmpq -40(%rbp), %rax
jae LBB0_2
## %bb.1:
movq -24(%rbp), %rax
movq %rax, -64(%rbp) ## 8-byte Spill
jmp LBB0_3
LBB0_2:
movq -40(%rbp), %rax
movq %rax, -64(%rbp) ## 8-byte Spill
LBB0_3:
movq -64(%rbp), %rax ## 8-byte Reload
movq %rax, -48(%rbp)
movl -16(%rbp), %edi
movl -32(%rbp), %esi
movq -48(%rbp), %rdx
callq _memcmp
movl %eax, -52(%rbp)
cmpl $0, -52(%rbp)
je LBB0_5
## %bb.4:
movl -52(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_10
LBB0_5:
movq -24(%rbp), %rax
cmpq -40(%rbp), %rax
jae LBB0_7
## %bb.6:
movl $-1, -4(%rbp)
jmp LBB0_10
LBB0_7:
movq -24(%rbp), %rax
cmpq -40(%rbp), %rax
jne LBB0_9
## %bb.8:
movl $0, -4(%rbp)
jmp LBB0_10
LBB0_9:
movq -24(%rbp), %rax
cmpq -40(%rbp), %rax
seta %al
andb $1, %al
movzbl %al, %edi
callq _assert
movl $1, -4(%rbp)
LBB0_10:
movl -4(%rbp), %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_data_buffer_compare.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_buffer_free ; -- Begin function data_buffer_free
.p2align 2
_data_buffer_free: ; @data_buffer_free
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x8, x0
stur w8, [x29, #-4]
ldur w0, [x29, #-4]
bl _free
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_buffer_free ## -- Begin function data_buffer_free
.p2align 4, 0x90
_data_buffer_free: ## @data_buffer_free
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -8(%rbp)
movl -8(%rbp), %edi
callq _free
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_data_buffer_free.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_buffer_create ; -- Begin function data_buffer_create
.p2align 2
_data_buffer_create: ; @data_buffer_create
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str xzr, [sp, #16]
str xzr, [sp, #24]
ldr x0, [sp, #8]
bl _malloc
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
b LBB0_3
LBB0_2:
ldr x8, [sp, #8]
str x8, [sp, #16]
b LBB0_3
LBB0_3:
ldr x0, [sp, #16]
ldr x1, [sp, #24]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_buffer_create ## -- Begin function data_buffer_create
.p2align 4, 0x90
_data_buffer_create: ## @data_buffer_create
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -24(%rbp)
leaq -16(%rbp), %rdi
xorl %esi, %esi
movl $16, %edx
callq _memset
movq -24(%rbp), %rdi
callq _malloc
movq %rax, -8(%rbp)
cmpq $0, -8(%rbp)
jne LBB0_2
## %bb.1:
jmp LBB0_3
LBB0_2:
movq -24(%rbp), %rax
movq %rax, -16(%rbp)
LBB0_3:
movq -16(%rbp), %rax
movq -8(%rbp), %rdx
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_data_buffer_create.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_buffer_read ; -- Begin function data_buffer_read
.p2align 2
_data_buffer_read: ; @data_buffer_read
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x8, [sp, #24] ; 8-byte Folded Spill
adrp x9, _stderr@GOTPAGE
ldr x9, [x9, _stderr@GOTPAGEOFF]
str x9, [sp, #32] ; 8-byte Folded Spill
stur x0, [x29, #-8]
str xzr, [x8]
str xzr, [x8, #8]
str xzr, [x8, #16]
ldur x0, [x29, #-8]
bl _UTIL_getFileSize
stur x0, [x29, #-16]
ldur x8, [x29, #-16]
adrp x9, _UTIL_FILESIZE_UNKNOWN@GOTPAGE
ldr x9, [x9, _UTIL_FILESIZE_UNKNOWN@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w0, [x8]
ldur x8, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
b LBB0_10
LBB0_2:
ldur x0, [x29, #-16]
bl _malloc
ldr x8, [sp, #24] ; 8-byte Folded Reload
str x0, [x8, #16]
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
b LBB0_10
LBB0_4:
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
str x8, [x9]
ldur x0, [x29, #-8]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fopen
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
b LBB0_9
LBB0_6:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x0, [x8, #16]
ldr x2, [x8]
ldur x3, [x29, #-24]
mov w1, #1
bl _fread
ldr x8, [sp, #24] ; 8-byte Folded Reload
str x0, [x8, #8]
ldur x0, [x29, #-24]
bl _fclose
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x8, [x9, #8]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldr w0, [x9]
ldr x10, [x8, #8]
ldr x8, [x8]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
b LBB0_9
LBB0_8:
b LBB0_10
LBB0_9:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x0, [x8, #16]
bl _free
ldr x0, [sp, #24] ; 8-byte Folded Reload
mov w1, #0
mov w2, #24
bl _memset
b LBB0_10
LBB0_10:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.comm _UTIL_FILESIZE_UNKNOWN,8,3 ; @UTIL_FILESIZE_UNKNOWN
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "unknown size for %s\n"
l_.str.1: ; @.str.1
.asciz "malloc failed\n"
l_.str.2: ; @.str.2
.asciz "rb"
l_.str.3: ; @.str.3
.asciz "file null\n"
l_.str.4: ; @.str.4
.asciz "read %zu != %zu\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_buffer_read ## -- Begin function data_buffer_read
.p2align 4, 0x90
_data_buffer_read: ## @data_buffer_read
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -40(%rbp) ## 8-byte Spill
movq %rdi, %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq %rsi, -8(%rbp)
xorl %esi, %esi
movl $24, %edx
callq _memset
movq -8(%rbp), %rdi
callq _UTIL_getFileSize
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq _UTIL_FILESIZE_UNKNOWN@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_2
## %bb.1:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -8(%rbp), %rdx
leaq L_.str(%rip), %rsi
movb $0, %al
callq _fprintf
jmp LBB0_10
LBB0_2:
movq -16(%rbp), %rdi
callq _malloc
movq %rax, %rcx
movq -40(%rbp), %rax ## 8-byte Reload
movq %rcx, 16(%rax)
cmpq $0, 16(%rax)
jne LBB0_4
## %bb.3:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _fprintf
jmp LBB0_10
LBB0_4:
movq -40(%rbp), %rax ## 8-byte Reload
movq -16(%rbp), %rcx
movq %rcx, (%rax)
movq -8(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _fopen
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_6
## %bb.5:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _fprintf
jmp LBB0_9
LBB0_6:
movq -40(%rbp), %rax ## 8-byte Reload
movq 16(%rax), %rdi
movq (%rax), %rdx
movq -24(%rbp), %rcx
movl $1, %esi
callq _fread
movq %rax, %rcx
movq -40(%rbp), %rax ## 8-byte Reload
movq %rcx, 8(%rax)
movq -24(%rbp), %rdi
callq _fclose
movq -40(%rbp), %rcx ## 8-byte Reload
movq 8(%rcx), %rax
cmpq (%rcx), %rax
je LBB0_8
## %bb.7:
movq -40(%rbp), %rax ## 8-byte Reload
movq _stderr@GOTPCREL(%rip), %rcx
movl (%rcx), %edi
movq 8(%rax), %rdx
movq (%rax), %rcx
leaq L_.str.4(%rip), %rsi
movb $0, %al
callq _fprintf
jmp LBB0_9
LBB0_8:
jmp LBB0_10
LBB0_9:
movq -40(%rbp), %rax ## 8-byte Reload
movq 16(%rax), %rdi
callq _free
movq -40(%rbp), %rdi ## 8-byte Reload
xorl %esi, %esi
movl $24, %edx
callq _memset
LBB0_10:
movq -32(%rbp), %rax ## 8-byte Reload
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _UTIL_FILESIZE_UNKNOWN,8,3 ## @UTIL_FILESIZE_UNKNOWN
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "unknown size for %s\n"
L_.str.1: ## @.str.1
.asciz "malloc failed\n"
L_.str.2: ## @.str.2
.asciz "rb"
L_.str.3: ## @.str.3
.asciz "file null\n"
L_.str.4: ## @.str.4
.asciz "read %zu != %zu\n"
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_data_buffer_read.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function data_create_paths
_data_create_paths: ; @data_create_paths
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
str x1, [sp, #24]
ldr x0, [sp, #24]
bl _strlen
str x0, [sp, #16]
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, ne
and w0, w8, #0x1
bl _assert
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-16]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldr x8, [x8]
str x8, [sp, #8]
ldr x0, [sp, #24]
ldr x8, [sp, #8]
ldr w2, [x8, #16]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _cat3
ldr x8, [sp, #8]
str x0, [x8, #8]
ldr x8, [sp, #8]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x8, _ENOMEM@GOTPAGE
ldr x8, [x8, _ENOMEM@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_11
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #8]
bl _data_has_dict
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr x0, [x8, #8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _cat2
ldr x8, [sp, #8]
str x0, [x8]
ldr x8, [sp, #8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
adrp x8, _ENOMEM@GOTPAGE
ldr x8, [x8, _ENOMEM@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_11
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
add x8, x8, #8
stur x8, [x29, #-16]
b LBB0_1
LBB0_10:
stur wzr, [x29, #-4]
b LBB0_11
LBB0_11:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "/"
.comm _ENOMEM,4,2 ; @ENOMEM
l_.str.1: ; @.str.1
.asciz ".dict"
.no_dead_strip _data_create_paths
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function data_create_paths
_data_create_paths: ## @data_create_paths
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -24(%rbp), %rdi
callq _strlen
movq %rax, -32(%rbp)
cmpq $0, -16(%rbp)
setne %al
andb $1, %al
movzbl %al, %edi
callq _assert
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
cmpq $0, (%rax)
je LBB0_10
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -40(%rbp)
movq -24(%rbp), %rdi
movq -40(%rbp), %rax
movl 16(%rax), %edx
leaq L_.str(%rip), %rsi
callq _cat3
movq %rax, %rcx
movq -40(%rbp), %rax
movq %rcx, 8(%rax)
movq -40(%rbp), %rax
cmpq $0, 8(%rax)
jne LBB0_4
## %bb.3:
movq _ENOMEM@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_11
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rdi
callq _data_has_dict
cmpq $0, %rax
je LBB0_8
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str.1(%rip), %rsi
callq _cat2
movq %rax, %rcx
movq -40(%rbp), %rax
movq %rcx, (%rax)
movq -40(%rbp), %rax
cmpq $0, (%rax)
jne LBB0_7
## %bb.6:
movq _ENOMEM@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_11
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_8
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $8, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_10:
movl $0, -4(%rbp)
LBB0_11:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "/"
.comm _ENOMEM,4,2 ## @ENOMEM
L_.str.1: ## @.str.1
.asciz ".dict"
.no_dead_strip _data_create_paths
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_data_create_paths.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_buffers_free ; -- Begin function data_buffers_free
.p2align 2
_data_buffers_free: ; @data_buffers_free
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _free
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_buffers_free ## -- Begin function data_buffers_free
.p2align 4, 0x90
_data_buffers_free: ## @data_buffers_free
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
callq _free
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_data_buffers_free.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_filenames_free ; -- Begin function data_filenames_free
.p2align 2
_data_filenames_free: ; @data_filenames_free
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr w0, [sp, #12]
ldr w1, [sp, #8]
bl _UTIL_freeFileList
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_filenames_free ## -- Begin function data_filenames_free
.p2align 4, 0x90
_data_filenames_free: ## @data_filenames_free
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl -4(%rbp), %edi
movl -8(%rbp), %esi
callq _UTIL_freeFileList
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_data_filenames_free.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_filenames_get ; -- Begin function data_filenames_get
.p2align 2
_data_filenames_get: ; @data_filenames_get
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x3, x8
str x3, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-8]
str xzr, [x3]
str xzr, [x3, #8]
str xzr, [x3, #16]
ldur x8, [x29, #-8]
ldr x8, [x8]
add x0, sp, #16
str x8, [sp, #16]
mov w1, #1
add x2, x3, #8
mov w4, #0
bl _UTIL_createFileList
ldr x8, [sp, #8] ; 8-byte Folded Reload
str w0, [x8, #16]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_filenames_get ## -- Begin function data_filenames_get
.p2align 4, 0x90
_data_filenames_get: ## @data_filenames_get
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -32(%rbp) ## 8-byte Spill
movq %rdi, %rax
movq %rax, -24(%rbp) ## 8-byte Spill
movq %rsi, -8(%rbp)
xorl %esi, %esi
movl $24, %edx
callq _memset
movq -32(%rbp), %rcx ## 8-byte Reload
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
movq %rcx, %rdx
addq $8, %rdx
leaq -16(%rbp), %rdi
movl $1, %esi
xorl %r8d, %r8d
callq _UTIL_createFileList
movq -32(%rbp), %rdi ## 8-byte Reload
movl %eax, %ecx
movq -24(%rbp), %rax ## 8-byte Reload
movl %ecx, 16(%rdi)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_data_filenames_get.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_finish ; -- Begin function data_finish
.p2align 2
_data_finish: ; @data_finish
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _g_data@GOTPAGE
ldr x8, [x8, _g_data@GOTPAGEOFF]
ldr w0, [x8]
bl _data_free_paths
adrp x8, _g_data_dir@GOTPAGE
ldr x8, [x8, _g_data_dir@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
ldr x0, [x8]
bl _free
ldr x8, [sp, #8] ; 8-byte Folded Reload
; kill: def $x9 killed $xzr
str xzr, [x8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _g_data,4,2 ; @g_data
.comm _g_data_dir,8,3 ; @g_data_dir
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_finish ## -- Begin function data_finish
.p2align 4, 0x90
_data_finish: ## @data_finish
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _g_data@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _data_free_paths
movq _g_data_dir@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _free
movq _g_data_dir@GOTPCREL(%rip), %rax
movq $0, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_data,4,2 ## @g_data
.comm _g_data_dir,8,3 ## @g_data_dir
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_data_finish.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_has_dict ; -- Begin function data_has_dict
.p2align 2
_data_has_dict: ; @data_has_dict
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
and w0, w8, #0x1
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_has_dict ## -- Begin function data_has_dict
.p2align 4, 0x90
_data_has_dict: ## @data_has_dict
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
cmpq $0, (%rax)
setne %al
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_data_has_dict.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function data_free_paths
_data_free_paths: ; @data_free_paths
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
and w0, w8, #0x1
bl _assert
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8]
str x8, [sp]
ldr x8, [sp]
ldr x0, [x8, #8]
bl _free
ldr x8, [sp]
ldr x0, [x8]
bl _free
ldr x8, [sp]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldr x8, [sp]
str xzr, [x8]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #8
str x8, [sp, #8]
b LBB0_1
LBB0_4:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _data_free_paths
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function data_free_paths
_data_free_paths: ## @data_free_paths
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
cmpq $0, -8(%rbp)
setne %al
andb $1, %al
movzbl %al, %edi
callq _assert
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
cmpq $0, (%rax)
je LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _free
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _free
movq -16(%rbp), %rax
movq $0, 8(%rax)
movq -16(%rbp), %rax
movq $0, (%rax)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
addq $8, %rax
movq %rax, -8(%rbp)
jmp LBB0_1
LBB0_4:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _data_free_paths
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_data_free_paths.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_init ; -- Begin function data_init
.p2align 2
_data_init: ; @data_init
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _data@GOTPAGE
ldr x8, [x8, _data@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
str x0, [sp, #16]
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _EINVAL@GOTPAGE
ldr x8, [x8, _EINVAL@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_14
LBB0_2:
ldr x0, [sp, #16]
bl _ensure_directory_exists
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr w8, [sp, #12]
stur w8, [x29, #-4]
b LBB0_14
LBB0_4:
ldr x0, [sp, #16]
bl _strdup
adrp x8, _g_data_dir@GOTPAGE
ldr x8, [x8, _g_data_dir@GOTPAGEOFF]
str x0, [x8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
adrp x8, _ENOMEM@GOTPAGE
ldr x8, [x8, _ENOMEM@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_14
LBB0_6:
adrp x8, _g_data@GOTPAGE
ldr x8, [x8, _g_data@GOTPAGEOFF]
ldr w0, [x8]
ldr x1, [sp, #16]
bl _data_create_paths
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldr w8, [sp, #12]
stur w8, [x29, #-4]
b LBB0_14
LBB0_8:
ldr x8, [sp] ; 8-byte Folded Reload
ldr x0, [sp, #16]
ldr w1, [x8]
bl _stamp_check
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
stur wzr, [x29, #-4]
b LBB0_14
LBB0_10:
ldr x8, [sp] ; 8-byte Folded Reload
ldr w0, [x8]
bl _curl_download_data
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
b LBB0_13
LBB0_12:
b LBB0_13
LBB0_13:
ldr x8, [sp] ; 8-byte Folded Reload
ldr x0, [sp, #16]
ldr w1, [x8]
ldr w2, [sp, #12]
bl _stamp_write
ldr w8, [sp, #12]
stur w8, [x29, #-4]
b LBB0_14
LBB0_14:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _EINVAL,4,2 ; @EINVAL
.comm _g_data_dir,8,3 ; @g_data_dir
.comm _ENOMEM,4,2 ; @ENOMEM
.comm _g_data,4,2 ; @g_data
.comm _data,4,2 ; @data
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _data_init ## -- Begin function data_init
.p2align 4, 0x90
_data_init: ## @data_init
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
cmpq $0, -16(%rbp)
jne LBB0_2
## %bb.1:
movq _EINVAL@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_14
LBB0_2:
movq -16(%rbp), %rdi
callq _ensure_directory_exists
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
je LBB0_4
## %bb.3:
movl -20(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_14
LBB0_4:
movq -16(%rbp), %rdi
callq _strdup
movq %rax, %rcx
movq _g_data_dir@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _g_data_dir@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_6
## %bb.5:
movq _ENOMEM@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_14
LBB0_6:
movq _g_data@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -16(%rbp), %rsi
callq _data_create_paths
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
je LBB0_8
## %bb.7:
movl -20(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_14
LBB0_8:
movq -16(%rbp), %rdi
movq _data@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _stamp_check
cmpq $0, %rax
je LBB0_10
## %bb.9:
movl $0, -4(%rbp)
jmp LBB0_14
LBB0_10:
movq _data@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _curl_download_data
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
je LBB0_12
## %bb.11:
jmp LBB0_13
LBB0_12:
jmp LBB0_13
LBB0_13:
movq -16(%rbp), %rdi
movq _data@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl -20(%rbp), %edx
callq _stamp_write
movl -20(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_14:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EINVAL,4,2 ## @EINVAL
.comm _g_data_dir,8,3 ## @g_data_dir
.comm _ENOMEM,4,2 ## @ENOMEM
.comm _g_data,4,2 ## @g_data
.comm _data,4,2 ## @data
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_data_init.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ensure_directory_exists
_ensure_directory_exists: ; @ensure_directory_exists
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x0, [x29, #-8]
bl _strdup
stur x0, [x29, #-16]
ldur x8, [x29, #-16]
str x8, [sp, #24]
str wzr, [sp, #20]
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _EINVAL@GOTPAGE
ldr x8, [x8, _EINVAL@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #20]
b LBB0_16
LBB0_2:
b LBB0_3
LBB0_3: ; =>This Loop Header: Depth=1
; Child Loop BB0_4 Depth 2
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
b LBB0_4
LBB0_4: ; Parent Loop BB0_3 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #24]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=2
ldr x8, [sp, #24]
ldrsb w8, [x8]
subs w8, w8, #47
cset w8, ne
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_4 Depth=2
ldr w8, [sp, #8] ; 4-byte Folded Reload
tbz w8, #0, LBB0_9
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_4 Depth=2
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_4 Depth=2
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
b LBB0_4
LBB0_9: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #24]
ldrb w8, [x8]
strb w8, [sp, #19]
ldr x8, [sp, #24]
strb wzr, [x8]
ldur x0, [x29, #-16]
bl _UTIL_isDirectory
str w0, [sp, #12]
ldur x0, [x29, #-16]
adrp x8, _S_IRWXU@GOTPAGE
ldr x8, [x8, _S_IRWXU@GOTPAGEOFF]
ldr w1, [x8]
bl _mkdir
str w0, [sp, #20]
ldrb w8, [sp, #19]
ldr x9, [sp, #24]
strb w8, [x9]
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_3 Depth=1
adrp x8, _errno@GOTPAGE
ldr x8, [x8, _errno@GOTPAGEOFF]
ldr w8, [x8]
adrp x9, _EEXIST@GOTPAGE
ldr x9, [x9, _EEXIST@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_13
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_3 Depth=1
b LBB0_14
LBB0_13:
adrp x8, _errno@GOTPAGE
ldr x8, [x8, _errno@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #20]
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
ldr w0, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
b LBB0_16
LBB0_14: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #24]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_15
LBB0_15:
str wzr, [sp, #20]
b LBB0_16
LBB0_16:
ldur x0, [x29, #-16]
bl _free
ldr w0, [sp, #20]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _EINVAL,4,2 ; @EINVAL
.comm _S_IRWXU,4,2 ; @S_IRWXU
.comm _errno,4,2 ; @errno
.comm _EEXIST,4,2 ; @EEXIST
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "mkdir() failed\n"
.no_dead_strip _ensure_directory_exists
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ensure_directory_exists
_ensure_directory_exists: ## @ensure_directory_exists
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
callq _strdup
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq %rax, -24(%rbp)
movl $0, -28(%rbp)
cmpq $0, -16(%rbp)
jne LBB0_2
## %bb.1:
movq _EINVAL@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -28(%rbp)
jmp LBB0_16
LBB0_2:
jmp LBB0_3
LBB0_3: ## =>This Loop Header: Depth=1
## Child Loop BB0_4 Depth 2
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
LBB0_4: ## Parent Loop BB0_3 Depth=1
## => This Inner Loop Header: Depth=2
movq -24(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, %ecx
movb %al, -37(%rbp) ## 1-byte Spill
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_4 Depth=2
movq -24(%rbp), %rax
movsbl (%rax), %eax
cmpl $47, %eax
setne %al
movb %al, -37(%rbp) ## 1-byte Spill
LBB0_6: ## in Loop: Header=BB0_4 Depth=2
movb -37(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_7
jmp LBB0_9
LBB0_7: ## in Loop: Header=BB0_4 Depth=2
jmp LBB0_8
LBB0_8: ## in Loop: Header=BB0_4 Depth=2
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp LBB0_4
LBB0_9: ## in Loop: Header=BB0_3 Depth=1
movq -24(%rbp), %rax
movb (%rax), %al
movb %al, -29(%rbp)
movq -24(%rbp), %rax
movb $0, (%rax)
movq -16(%rbp), %rdi
callq _UTIL_isDirectory
movl %eax, -36(%rbp)
movq -16(%rbp), %rdi
movq _S_IRWXU@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _mkdir
movl %eax, -28(%rbp)
movb -29(%rbp), %cl
movq -24(%rbp), %rax
movb %cl, (%rax)
cmpl $0, -28(%rbp)
je LBB0_12
## %bb.10: ## in Loop: Header=BB0_3 Depth=1
movq _errno@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq _EEXIST@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jne LBB0_13
## %bb.11: ## in Loop: Header=BB0_3 Depth=1
cmpl $0, -36(%rbp)
je LBB0_13
LBB0_12: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_14
LBB0_13:
movq _errno@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -28(%rbp)
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str(%rip), %rsi
callq _fprintf
jmp LBB0_16
LBB0_14: ## in Loop: Header=BB0_3 Depth=1
movq -24(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
jne LBB0_3
## %bb.15:
movl $0, -28(%rbp)
LBB0_16:
movq -16(%rbp), %rdi
callq _free
movl -28(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EINVAL,4,2 ## @EINVAL
.comm _S_IRWXU,4,2 ## @S_IRWXU
.comm _errno,4,2 ## @errno
.comm _EEXIST,4,2 ## @EEXIST
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "mkdir() failed\n"
.no_dead_strip _ensure_directory_exists
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_ensure_directory_exists.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function stamp_check
_stamp_check: ; @stamp_check
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
adrp x8, _kStampName@GOTPAGE
ldr x8, [x8, _kStampName@GOTPAGEOFF]
ldr w2, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _cat3
stur x0, [x29, #-24]
ldur x0, [x29, #-16]
bl _stamp_hash
stur x0, [x29, #-32]
; kill: def $x8 killed $xzr
str xzr, [sp, #32]
str wzr, [sp, #28]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
b LBB0_12
LBB0_2:
ldur x0, [x29, #-24]
bl _UTIL_isRegularFile
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
b LBB0_12
LBB0_4:
ldur x0, [x29, #-24]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fopen
str x0, [sp, #32]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
b LBB0_12
LBB0_6:
ldr x3, [sp, #32]
sub x0, x29, #36
mov w1, #4
mov w2, #1
bl _fread
str x0, [sp, #16]
subs x8, x0, #1
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
b LBB0_12
LBB0_8:
ldur x8, [x29, #-32]
str x8, [sp] ; 8-byte Folded Spill
sub x0, x29, #36
bl _XXH64_hashFromCanonical
ldr x8, [sp] ; 8-byte Folded Reload
subs x8, x8, x0
cset w8, eq
and w8, w8, #0x1
str w8, [sp, #28]
ldr w8, [sp, #28]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _fprintf
b LBB0_11
LBB0_10:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _fprintf
b LBB0_11
LBB0_11:
b LBB0_12
LBB0_12:
ldur x0, [x29, #-24]
bl _free
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
ldr x0, [sp, #32]
bl _fclose
b LBB0_14
LBB0_14:
ldr w0, [sp, #28]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "/"
.comm _kStampName,4,2 ; @kStampName
.comm _stderr,4,2 ; @stderr
l_.str.1: ; @.str.1
.asciz "stamp does not exist: recreating the data cache\n"
l_.str.2: ; @.str.2
.asciz "rb"
l_.str.3: ; @.str.3
.asciz "could not open stamp: recreating the data cache\n"
l_.str.4: ; @.str.4
.asciz "invalid stamp: recreating the data cache\n"
l_.str.5: ; @.str.5
.asciz "stamp matches: reusing the cached data\n"
l_.str.6: ; @.str.6
.asciz "stamp does not match: recreating the data cache\n"
.no_dead_strip _stamp_check
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function stamp_check
_stamp_check: ## @stamp_check
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq _kStampName@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq L_.str(%rip), %rsi
callq _cat3
movq %rax, -24(%rbp)
movq -16(%rbp), %rdi
callq _stamp_hash
movq %rax, -32(%rbp)
movq $0, -48(%rbp)
movl $0, -52(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_2
## %bb.1:
jmp LBB0_12
LBB0_2:
movq -24(%rbp), %rdi
callq _UTIL_isRegularFile
cmpl $0, %eax
jne LBB0_4
## %bb.3:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.1(%rip), %rsi
callq _fprintf
jmp LBB0_12
LBB0_4:
movq -24(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _fopen
movq %rax, -48(%rbp)
cmpq $0, -48(%rbp)
jne LBB0_6
## %bb.5:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.3(%rip), %rsi
callq _fprintf
jmp LBB0_12
LBB0_6:
movq -48(%rbp), %rcx
leaq -36(%rbp), %rdi
movl $4, %esi
movl $1, %edx
callq _fread
movq %rax, -64(%rbp)
cmpq $1, %rax
je LBB0_8
## %bb.7:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.4(%rip), %rsi
callq _fprintf
jmp LBB0_12
LBB0_8:
movq -32(%rbp), %rax
movq %rax, -72(%rbp) ## 8-byte Spill
leaq -36(%rbp), %rdi
callq _XXH64_hashFromCanonical
movq %rax, %rcx
movq -72(%rbp), %rax ## 8-byte Reload
cmpq %rcx, %rax
sete %al
andb $1, %al
movzbl %al, %eax
movl %eax, -52(%rbp)
cmpl $0, -52(%rbp)
je LBB0_10
## %bb.9:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.5(%rip), %rsi
callq _fprintf
jmp LBB0_11
LBB0_10:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.6(%rip), %rsi
callq _fprintf
LBB0_11:
jmp LBB0_12
LBB0_12:
movq -24(%rbp), %rdi
callq _free
cmpq $0, -48(%rbp)
je LBB0_14
## %bb.13:
movq -48(%rbp), %rdi
callq _fclose
LBB0_14:
movl -52(%rbp), %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "/"
.comm _kStampName,4,2 ## @kStampName
.comm _stderr,4,2 ## @stderr
L_.str.1: ## @.str.1
.asciz "stamp does not exist: recreating the data cache\n"
L_.str.2: ## @.str.2
.asciz "rb"
L_.str.3: ## @.str.3
.asciz "could not open stamp: recreating the data cache\n"
L_.str.4: ## @.str.4
.asciz "invalid stamp: recreating the data cache\n"
L_.str.5: ## @.str.5
.asciz "stamp matches: reusing the cached data\n"
L_.str.6: ## @.str.6
.asciz "stamp does not match: recreating the data cache\n"
.no_dead_strip _stamp_check
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_stamp_check.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function stamp_hash
_stamp_hash: ; @stamp_hash
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
sub x0, x29, #12
mov w1, #0
bl _XXH64_reset
ldur x8, [x29, #-8]
subs x8, x8, #0
cset w8, ne
and w0, w8, #0x1
bl _assert
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8]
str x8, [sp, #24]
ldr x8, [sp, #24]
ldr w8, [x8, #12]
str w8, [sp, #12] ; 4-byte Folded Spill
ldr x8, [sp, #24]
ldr w0, [x8, #12]
bl _strlen
ldr w1, [sp, #12] ; 4-byte Folded Reload
mov x2, x0
sub x0, x29, #12
str x0, [sp, #16] ; 8-byte Folded Spill
bl _XXH64_update
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldr x8, [sp, #24]
ldr w1, [x8, #8]
bl _xxh_update_le
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldr x8, [sp, #24]
ldr w1, [x8, #4]
bl _xxh_update_le
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldr x8, [sp, #24]
ldr w1, [x8]
bl _xxh_update_le
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
add x8, x8, #8
stur x8, [x29, #-8]
b LBB0_1
LBB0_4:
sub x0, x29, #12
bl _XXH64_digest
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.no_dead_strip _stamp_hash
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function stamp_hash
_stamp_hash: ## @stamp_hash
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
leaq -12(%rbp), %rdi
xorl %esi, %esi
callq _XXH64_reset
cmpq $0, -8(%rbp)
setne %al
andb $1, %al
movzbl %al, %edi
callq _assert
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
cmpq $0, (%rax)
je LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movl 12(%rax), %eax
movl %eax, -28(%rbp) ## 4-byte Spill
movq -24(%rbp), %rax
movl 12(%rax), %edi
callq _strlen
movl -28(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq -12(%rbp), %rdi
callq _XXH64_update
movq -24(%rbp), %rax
movl 8(%rax), %esi
leaq -12(%rbp), %rdi
callq _xxh_update_le
movq -24(%rbp), %rax
movl 4(%rax), %esi
leaq -12(%rbp), %rdi
callq _xxh_update_le
movq -24(%rbp), %rax
movl (%rax), %esi
leaq -12(%rbp), %rdi
callq _xxh_update_le
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
addq $8, %rax
movq %rax, -8(%rbp)
jmp LBB0_1
LBB0_4:
leaq -12(%rbp), %rdi
callq _XXH64_digest
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _stamp_hash
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_stamp_hash.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function stamp_write
_stamp_write: ; @stamp_write
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur w2, [x29, #-28]
ldur x0, [x29, #-16]
adrp x8, _kStampName@GOTPAGE
ldr x8, [x8, _kStampName@GOTPAGEOFF]
ldr w2, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _cat3
str x0, [sp, #24]
; kill: def $x8 killed $xzr
str xzr, [sp, #16]
adrp x8, _EIO@GOTPAGE
ldr x8, [x8, _EIO@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #12]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _ENOMEM@GOTPAGE
ldr x8, [x8, _ENOMEM@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_14
LBB0_2:
ldur w8, [x29, #-28]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur w8, [x29, #-28]
str w8, [sp, #12]
b LBB0_9
LBB0_4:
ldur x0, [x29, #-24]
bl _stamp_hash
mov x1, x0
add x0, sp, #8
bl _XXH64_canonicalFromHash
ldr x0, [sp, #24]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fopen
str x0, [sp, #16]
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
b LBB0_9
LBB0_6:
ldr x3, [sp, #16]
add x0, sp, #8
mov w1, #4
mov w2, #1
bl _fwrite
subs w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
b LBB0_9
LBB0_8:
str wzr, [sp, #12]
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
ldr w0, [x8]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
b LBB0_9
LBB0_9:
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldr x0, [sp, #24]
bl _unlink
b LBB0_11
LBB0_11:
ldr x0, [sp, #24]
bl _free
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
ldr x0, [sp, #16]
bl _fclose
b LBB0_13
LBB0_13:
ldr w8, [sp, #12]
stur w8, [x29, #-4]
b LBB0_14
LBB0_14:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "/"
.comm _kStampName,4,2 ; @kStampName
.comm _EIO,4,2 ; @EIO
.comm _ENOMEM,4,2 ; @ENOMEM
l_.str.1: ; @.str.1
.asciz "wb"
.comm _stderr,4,2 ; @stderr
l_.str.2: ; @.str.2
.asciz "stamped new data cache\n"
.no_dead_strip _stamp_write
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function stamp_write
_stamp_write: ## @stamp_write
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movl %edx, -28(%rbp)
movq -16(%rbp), %rdi
movq _kStampName@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq L_.str(%rip), %rsi
callq _cat3
movq %rax, -40(%rbp)
movq $0, -48(%rbp)
movq _EIO@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -52(%rbp)
cmpq $0, -40(%rbp)
jne LBB0_2
## %bb.1:
movq _ENOMEM@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_14
LBB0_2:
cmpl $0, -28(%rbp)
je LBB0_4
## %bb.3:
movl -28(%rbp), %eax
movl %eax, -52(%rbp)
jmp LBB0_9
LBB0_4:
movq -24(%rbp), %rdi
callq _stamp_hash
movl %eax, %esi
leaq -56(%rbp), %rdi
callq _XXH64_canonicalFromHash
movq -40(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _fopen
movq %rax, -48(%rbp)
cmpq $0, -48(%rbp)
jne LBB0_6
## %bb.5:
jmp LBB0_9
LBB0_6:
movq -48(%rbp), %rcx
leaq -56(%rbp), %rdi
movl $4, %esi
movl $1, %edx
callq _fwrite
cmpl $1, %eax
je LBB0_8
## %bb.7:
jmp LBB0_9
LBB0_8:
movl $0, -52(%rbp)
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.2(%rip), %rsi
callq _fprintf
LBB0_9:
cmpl $0, -52(%rbp)
je LBB0_11
## %bb.10:
movq -40(%rbp), %rdi
callq _unlink
LBB0_11:
movq -40(%rbp), %rdi
callq _free
cmpq $0, -48(%rbp)
je LBB0_13
## %bb.12:
movq -48(%rbp), %rdi
callq _fclose
LBB0_13:
movl -52(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_14:
movl -4(%rbp), %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "/"
.comm _kStampName,4,2 ## @kStampName
.comm _EIO,4,2 ## @EIO
.comm _ENOMEM,4,2 ## @ENOMEM
L_.str.1: ## @.str.1
.asciz "wb"
.comm _stderr,4,2 ## @stderr
L_.str.2: ## @.str.2
.asciz "stamped new data cache\n"
.no_dead_strip _stamp_write
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_stamp_write.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function xxh_update_le
_xxh_update_le: ; @xxh_update_le
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str w1, [sp, #4]
bl _MEM_isLittleEndian
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w0, [sp, #4]
bl _MEM_swap64
str w0, [sp, #4]
b LBB0_2
LBB0_2:
ldr x0, [sp, #8]
add x1, sp, #4
mov w2, #4
bl _XXH64_update
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _xxh_update_le
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function xxh_update_le
_xxh_update_le: ## @xxh_update_le
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movb $0, %al
callq _MEM_isLittleEndian
cmpl $0, %eax
jne LBB0_2
## %bb.1:
movl -12(%rbp), %edi
callq _MEM_swap64
movl %eax, -12(%rbp)
LBB0_2:
movq -8(%rbp), %rdi
leaq -12(%rbp), %rsi
movl $4, %edx
callq _XXH64_update
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _xxh_update_le
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_data.c_xxh_update_le.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function advanced_config
_advanced_config: ; @advanced_config
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
str x1, [sp, #24]
str x2, [sp, #16]
ldur x0, [x29, #-16]
adrp x8, _ZSTD_reset_session_and_parameters@GOTPAGE
ldr x8, [x8, _ZSTD_reset_session_and_parameters@GOTPAGEOFF]
ldr w1, [x8]
bl _ZSTD_CCtx_reset
str xzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x9, [sp, #16]
ldr x9, [x9, #8]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #16]
ldr x9, [sp, #8]
ldr x8, [x8, x9, lsl #3]
str x8, [sp]
ldur x0, [x29, #-16]
ldr w1, [sp, #4]
ldr w2, [sp]
bl _ZSTD_CCtx_setParameter
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_11
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB0_1
LBB0_6:
ldr x8, [sp, #16]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_7
LBB0_7:
ldur x0, [x29, #-16]
ldr x8, [sp, #24]
ldr w1, [x8, #4]
ldr x8, [sp, #24]
ldr w2, [x8]
bl _ZSTD_CCtx_loadDictionary
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_11
LBB0_9:
b LBB0_10
LBB0_10:
stur wzr, [x29, #-4]
b LBB0_11
LBB0_11:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _ZSTD_reset_session_and_parameters,4,2 ; @ZSTD_reset_session_and_parameters
.no_dead_strip _advanced_config
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function advanced_config
_advanced_config: ## @advanced_config
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq -16(%rbp), %rdi
movq _ZSTD_reset_session_and_parameters@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _ZSTD_CCtx_reset
movq $0, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -40(%rbp), %rax
movq -32(%rbp), %rcx
cmpq 8(%rcx), %rax
jae LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movq 16(%rax), %rax
movq -40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -48(%rbp)
movq -16(%rbp), %rdi
movl -44(%rbp), %esi
movl -48(%rbp), %edx
callq _ZSTD_CCtx_setParameter
movl %eax, %edi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_4
## %bb.3:
movl $1, -4(%rbp)
jmp LBB0_11
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
jmp LBB0_1
LBB0_6:
movq -32(%rbp), %rax
cmpq $0, (%rax)
je LBB0_10
## %bb.7:
movq -16(%rbp), %rdi
movq -24(%rbp), %rax
movl 4(%rax), %esi
movq -24(%rbp), %rax
movl (%rax), %edx
callq _ZSTD_CCtx_loadDictionary
movl %eax, %edi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_9
## %bb.8:
movl $1, -4(%rbp)
jmp LBB0_11
LBB0_9:
jmp LBB0_10
LBB0_10:
movl $0, -4(%rbp)
LBB0_11:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_reset_session_and_parameters,4,2 ## @ZSTD_reset_session_and_parameters
.no_dead_strip _advanced_config
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_method.c_advanced_config.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function advanced_one_pass_compress
_advanced_one_pass_compress: ; @advanced_one_pass_compress
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str x1, [sp]
ldr x0, [sp, #8]
ldr x1, [sp]
mov w2, #0
bl _advanced_one_pass_compress_output_adjustment
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _advanced_one_pass_compress
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function advanced_one_pass_compress
_advanced_one_pass_compress: ## @advanced_one_pass_compress
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
xorl %edx, %edx
callq _advanced_one_pass_compress_output_adjustment
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _advanced_one_pass_compress
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_method.c_advanced_one_pass_compress.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function advanced_one_pass_compress_small_output
_advanced_one_pass_compress_small_output: ; @advanced_one_pass_compress_small_output
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str x1, [sp]
ldr x0, [sp, #8]
ldr x1, [sp]
mov w2, #1
bl _advanced_one_pass_compress_output_adjustment
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _advanced_one_pass_compress_small_output
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function advanced_one_pass_compress_small_output
_advanced_one_pass_compress_small_output: ## @advanced_one_pass_compress_small_output
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movl $1, %edx
callq _advanced_one_pass_compress_output_adjustment
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _advanced_one_pass_compress_small_output
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_method.c_advanced_one_pass_compress_small_output.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function buffer_state_bad
_buffer_state_bad: ; @buffer_state_bad
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
str x0, [sp, #16]
str x1, [sp, #8]
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_10
LBB0_2:
ldr x8, [sp, #16]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3:
ldr x8, [sp, #16]
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldr x8, [sp, #16]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x8, [sp] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_10
LBB0_6:
ldr x8, [sp, #8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_7
LBB0_7:
ldr x8, [sp, #16]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldr x8, [sp] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_10
LBB0_9:
stur wzr, [x29, #-4]
b LBB0_10
LBB0_10:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "buffer_state_t is NULL\n"
l_.str.1: ; @.str.1
.asciz "buffer state allocation failure\n"
l_.str.2: ; @.str.2
.asciz "dictionary loading failed\n"
.no_dead_strip _buffer_state_bad
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function buffer_state_bad
_buffer_state_bad: ## @buffer_state_bad
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
cmpq $0, -16(%rbp)
jne LBB0_2
## %bb.1:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str(%rip), %rsi
callq _fprintf
movl $1, -4(%rbp)
jmp LBB0_10
LBB0_2:
movq -16(%rbp), %rax
cmpq $0, 24(%rax)
je LBB0_5
## %bb.3:
movq -16(%rbp), %rax
cmpq $0, 16(%rax)
je LBB0_5
## %bb.4:
movq -16(%rbp), %rax
cmpq $0, 8(%rax)
jne LBB0_6
LBB0_5:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.1(%rip), %rsi
callq _fprintf
movl $1, -4(%rbp)
jmp LBB0_10
LBB0_6:
movq -24(%rbp), %rax
cmpq $0, (%rax)
je LBB0_9
## %bb.7:
movq -16(%rbp), %rax
cmpq $0, (%rax)
jne LBB0_9
## %bb.8:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.2(%rip), %rsi
callq _fprintf
movl $1, -4(%rbp)
jmp LBB0_10
LBB0_9:
movl $0, -4(%rbp)
LBB0_10:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "buffer_state_t is NULL\n"
L_.str.1: ## @.str.1
.asciz "buffer state allocation failure\n"
L_.str.2: ## @.str.2
.asciz "dictionary loading failed\n"
.no_dead_strip _buffer_state_bad
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_method.c_buffer_state_bad.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function buffer_state_create
_buffer_state_create: ; @buffer_state_create
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
mov w0, #1
mov w1, #32
bl _calloc
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB0_3
LBB0_2:
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9]
ldr x0, [sp, #16]
bl _data_buffers_get
ldr x8, [sp, #8]
str w0, [x8, #24]
ldr x0, [sp, #16]
bl _data_buffer_get_dict
ldr x8, [sp, #8]
str w0, [x8, #28]
ldr x8, [sp, #8]
ldr w0, [x8, #24]
bl _buffers_max_size
str x0, [sp]
ldr x0, [sp]
bl _ZSTD_compressBound
bl _data_buffer_create
ldr x8, [sp, #8]
str x0, [x8, #16]
ldr x0, [sp]
bl _data_buffer_create
ldr x8, [sp, #8]
str x0, [x8, #8]
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB0_3
LBB0_3:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _buffer_state_create
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function buffer_state_create
_buffer_state_create: ## @buffer_state_create
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movl $1, %edi
movl $32, %esi
callq _calloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB0_3
LBB0_2:
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
movq -16(%rbp), %rdi
callq _data_buffers_get
movl %eax, %ecx
movq -24(%rbp), %rax
movl %ecx, 24(%rax)
movq -16(%rbp), %rdi
callq _data_buffer_get_dict
movl %eax, %ecx
movq -24(%rbp), %rax
movl %ecx, 28(%rax)
movq -24(%rbp), %rax
movl 24(%rax), %edi
callq _buffers_max_size
movq %rax, -32(%rbp)
movq -32(%rbp), %rdi
callq _ZSTD_compressBound
movq %rax, %rdi
callq _data_buffer_create
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, 16(%rax)
movq -32(%rbp), %rdi
callq _data_buffer_create
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_3:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _buffer_state_create
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_method.c_buffer_state_create.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function buffers_max_size
_buffers_max_size: ; @buffers_max_size
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #16]
str x1, [sp, #24]
str xzr, [sp, #8]
str xzr, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldr x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr x9, [sp, #8]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldr x9, [sp]
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #8]
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB0_1
LBB0_6:
ldr x0, [sp, #8]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _buffers_max_size
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function buffers_max_size
_buffers_max_size: ## @buffers_max_size
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -16(%rbp)
movq %rsi, -8(%rbp)
movq $0, -24(%rbp)
movq $0, -32(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
cmpq -16(%rbp), %rax
jae LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq -32(%rbp), %rcx
movq (%rax,%rcx,8), %rax
cmpq -24(%rbp), %rax
jbe LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq -32(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -24(%rbp)
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB0_1
LBB0_6:
movq -24(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _buffers_max_size
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_method.c_buffers_max_size.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function cli_compress
_cli_compress: ; @cli_compress
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
mov w9, #5264
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #1, lsl #12 ; =4096
sub sp, sp, #1168
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
str x8, [sp, #56] ; 8-byte Folded Spill
adrp x8, _result_error_system_error@GOTPAGE
ldr x8, [x8, _result_error_system_error@GOTPAGEOFF]
str x8, [sp, #64] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #120]
str x1, [sp, #112]
ldr x8, [sp, #112]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _result_error_skip@GOTPAGE
ldr x8, [x8, _result_error_skip@GOTPAGEOFF]
ldr w0, [x8]
bl _result_error
str w0, [sp, #132]
b LBB0_22
LBB0_2:
ldr x8, [sp, #120]
ldr x8, [x8]
ldr x8, [x8]
adrp x9, _data_type_dir@GOTPAGE
ldr x9, [x9, _data_type_dir@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3:
ldr x8, [sp, #112]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
adrp x8, _result_error_skip@GOTPAGE
ldr x8, [x8, _result_error_skip@GOTPAGEOFF]
ldr w0, [x8]
bl _result_error
str w0, [sp, #132]
b LBB0_22
LBB0_5:
adrp x8, _g_zstdcli@GOTPAGE
ldr x8, [x8, _g_zstdcli@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr w0, [x8]
bl _result_error
str w0, [sp, #132]
b LBB0_22
LBB0_7:
adrp x8, _g_zstdcli@GOTPAGE
ldr x8, [x8, _g_zstdcli@GOTPAGEOFF]
ldr x8, [x8]
str x8, [sp, #32] ; 8-byte Folded Spill
ldr x8, [sp, #112]
ldr x8, [x8]
str x8, [sp, #40] ; 8-byte Folded Spill
ldr x8, [sp, #112]
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, ne
and w10, w8, #0x1
adrp x9, l_.str.2@PAGE
add x9, x9, l_.str.2@PAGEOFF
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
ands w10, w10, #0x1
csel x8, x8, x9, ne
str x8, [sp, #48] ; 8-byte Folded Spill
ldr x8, [sp, #112]
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldr x8, [sp, #120]
ldr x8, [x8]
ldr x8, [x8, #8]
str x8, [sp, #24] ; 8-byte Folded Spill
b LBB0_10
LBB0_9:
adrp x8, l_.str.2@PAGE
add x8, x8, l_.str.2@PAGEOFF
str x8, [sp, #24] ; 8-byte Folded Spill
b LBB0_10
LBB0_10:
ldr x5, [sp, #48] ; 8-byte Folded Reload
ldr x4, [sp, #40] ; 8-byte Folded Reload
ldr x3, [sp, #32] ; 8-byte Folded Reload
ldr x6, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #112]
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, ne
and w10, w8, #0x1
adrp x8, l_.str.3@PAGE
add x8, x8, l_.str.3@PAGEOFF
adrp x9, l_.str.2@PAGE
add x9, x9, l_.str.2@PAGEOFF
ands w10, w10, #0x1
csel x7, x8, x9, ne
ldr x8, [sp, #112]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
and w10, w8, #0x1
adrp x8, l_.str.4@PAGE
add x8, x8, l_.str.4@PAGEOFF
ands w10, w10, #0x1
csel x10, x8, x9, ne
ldr x8, [sp, #120]
ldr x8, [x8]
ldr w8, [x8, #16]
mov x9, sp
str x10, [x9]
str w8, [x9, #8]
add x0, sp, #1, lsl #12 ; =4096
add x0, x0, #136
mov w1, #1024
adrp x2, l_.str@PAGE
add x2, x2, l_.str@PAGEOFF
bl _snprintf
str x0, [sp, #104]
ldr x8, [sp, #104]
subs x8, x8, #1024
cset w8, lo
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
add x2, sp, #1, lsl #12 ; =4096
add x2, x2, #136
bl _fprintf
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr w0, [x8]
bl _result_error
str w0, [sp, #132]
b LBB0_22
LBB0_12:
add x0, sp, #1, lsl #12 ; =4096
add x0, x0, #136
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _popen
str x0, [sp, #96]
ldr x8, [sp, #96]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.7@PAGE
add x1, x1, l_.str.7@PAGEOFF
add x2, sp, #1, lsl #12 ; =4096
add x2, x2, #136
bl _fprintf
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr w0, [x8]
bl _result_error
str w0, [sp, #132]
b LBB0_22
LBB0_14:
str xzr, [sp, #88]
b LBB0_15
LBB0_15: ; =>This Inner Loop Header: Depth=1
ldr x3, [sp, #96]
add x0, sp, #136
mov w1, #1
mov w2, #4096
bl _fread
str x0, [sp, #80]
ldr x9, [sp, #80]
ldr x8, [sp, #88]
add x8, x8, x9
str x8, [sp, #88]
ldr x8, [sp, #80]
subs x8, x8, #1, lsl #12 ; =4096
cset w8, eq
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16:
b LBB0_18
LBB0_17: ; in Loop: Header=BB0_15 Depth=1
b LBB0_15
LBB0_18:
ldr x0, [sp, #96]
bl _ferror
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19:
ldr x0, [sp, #96]
bl _pclose
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20:
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.8@PAGE
add x1, x1, l_.str.8@PAGEOFF
add x2, sp, #1, lsl #12 ; =4096
add x2, x2, #136
bl _fprintf
adrp x8, _result_error_compression_error@GOTPAGE
ldr x8, [x8, _result_error_compression_error@GOTPAGEOFF]
ldr w0, [x8]
bl _result_error
str w0, [sp, #132]
b LBB0_22
LBB0_21:
ldr x8, [sp, #88]
str x8, [sp, #72]
ldr x0, [sp, #72]
bl _result_data
str w0, [sp, #132]
b LBB0_22
LBB0_22:
ldr w8, [sp, #132]
str w8, [sp, #20] ; 4-byte Folded Spill
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23:
bl ___stack_chk_fail
LBB0_24:
ldr w0, [sp, #20] ; 4-byte Folded Reload
add sp, sp, #1, lsl #12 ; =4096
add sp, sp, #1168
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.comm _result_error_skip,4,2 ; @result_error_skip
.comm _data_type_dir,8,3 ; @data_type_dir
.comm _g_zstdcli,8,3 ; @g_zstdcli
.comm _result_error_system_error,4,2 ; @result_error_system_error
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "'%s' -cqr %s %s%s%s %s '%s'"
l_.str.1: ; @.str.1
.asciz "-D '"
l_.str.2: ; @.str.2
.space 1
l_.str.3: ; @.str.3
.asciz "'"
l_.str.4: ; @.str.4
.asciz "<"
.comm _stderr,4,2 ; @stderr
l_.str.5: ; @.str.5
.asciz "command too large: %s\n"
l_.str.6: ; @.str.6
.asciz "r"
l_.str.7: ; @.str.7
.asciz "failed to popen command: %s\n"
l_.str.8: ; @.str.8
.asciz "zstd failed with command: %s\n"
.comm _result_error_compression_error,4,2 ; @result_error_compression_error
.no_dead_strip _cli_compress
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function cli_compress
_cli_compress: ## @cli_compress
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
movl $5272, %eax ## imm = 0x1498
callq ____chkstk_darwin
subq %rax, %rsp
popq %rax
.cfi_offset %rbx, -24
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
movq %rdi, -5152(%rbp)
movq %rsi, -5160(%rbp)
movq -5160(%rbp), %rax
cmpq $0, (%rax)
jne LBB0_2
## %bb.1:
movq _result_error_skip@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _result_error
movl %eax, -5140(%rbp)
jmp LBB0_22
LBB0_2:
movq -5152(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq _data_type_dir@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_5
## %bb.3:
movq -5160(%rbp), %rax
cmpq $0, 8(%rax)
je LBB0_5
## %bb.4:
movq _result_error_skip@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _result_error
movl %eax, -5140(%rbp)
jmp LBB0_22
LBB0_5:
movq _g_zstdcli@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_7
## %bb.6:
movq _result_error_system_error@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _result_error
movl %eax, -5140(%rbp)
jmp LBB0_22
LBB0_7:
leaq -1040(%rbp), %rax
movq %rax, -5232(%rbp) ## 8-byte Spill
movq _g_zstdcli@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -5224(%rbp) ## 8-byte Spill
movq -5160(%rbp), %rax
movq (%rax), %rax
movq %rax, -5216(%rbp) ## 8-byte Spill
movq -5160(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.2(%rip), %rax
leaq L_.str.1(%rip), %rcx
cmpq $0, %rdx
cmovneq %rcx, %rax
movq %rax, -5208(%rbp) ## 8-byte Spill
movq -5160(%rbp), %rax
cmpq $0, 16(%rax)
je LBB0_9
## %bb.8:
movq -5152(%rbp), %rax
movq (%rax), %rax
movq 8(%rax), %rax
movq %rax, -5240(%rbp) ## 8-byte Spill
jmp LBB0_10
LBB0_9:
leaq L_.str.2(%rip), %rax
movq %rax, -5240(%rbp) ## 8-byte Spill
jmp LBB0_10
LBB0_10:
movq -5208(%rbp), %r9 ## 8-byte Reload
movq -5216(%rbp), %r8 ## 8-byte Reload
movq -5224(%rbp), %rcx ## 8-byte Reload
movq -5232(%rbp), %rdi ## 8-byte Reload
movq -5240(%rbp), %rbx ## 8-byte Reload
movq -5160(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.2(%rip), %r11
leaq L_.str.3(%rip), %rax
cmpq $0, %rdx
cmovneq %rax, %r11
movq -5160(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.2(%rip), %r10
leaq L_.str.4(%rip), %rax
cmpq $0, %rdx
cmovneq %rax, %r10
movq -5152(%rbp), %rax
movq (%rax), %rax
movl 16(%rax), %eax
movl $1024, %esi ## imm = 0x400
leaq L_.str(%rip), %rdx
movq %rbx, (%rsp)
movq %r11, 8(%rsp)
movq %r10, 16(%rsp)
movl %eax, 24(%rsp)
callq _snprintf
movq %rax, -5168(%rbp)
cmpq $1024, -5168(%rbp) ## imm = 0x400
jb LBB0_12
## %bb.11:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq -1040(%rbp), %rdx
leaq L_.str.5(%rip), %rsi
callq _fprintf
movq _result_error_system_error@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _result_error
movl %eax, -5140(%rbp)
jmp LBB0_22
LBB0_12:
leaq -1040(%rbp), %rdi
leaq L_.str.6(%rip), %rsi
callq _popen
movq %rax, -5176(%rbp)
cmpq $0, -5176(%rbp)
jne LBB0_14
## %bb.13:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq -1040(%rbp), %rdx
leaq L_.str.7(%rip), %rsi
callq _fprintf
movq _result_error_system_error@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _result_error
movl %eax, -5140(%rbp)
jmp LBB0_22
LBB0_14:
movq $0, -5184(%rbp)
LBB0_15: ## =>This Inner Loop Header: Depth=1
leaq -5136(%rbp), %rdi
movq -5176(%rbp), %rcx
movl $1, %esi
movl $4096, %edx ## imm = 0x1000
callq _fread
movq %rax, -5192(%rbp)
movq -5192(%rbp), %rax
addq -5184(%rbp), %rax
movq %rax, -5184(%rbp)
cmpq $4096, -5192(%rbp) ## imm = 0x1000
je LBB0_17
## %bb.16:
jmp LBB0_18
LBB0_17: ## in Loop: Header=BB0_15 Depth=1
jmp LBB0_15
LBB0_18:
movq -5176(%rbp), %rdi
callq _ferror
cmpq $0, %rax
jne LBB0_20
## %bb.19:
movq -5176(%rbp), %rdi
callq _pclose
cmpq $0, %rax
je LBB0_21
LBB0_20:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq -1040(%rbp), %rdx
leaq L_.str.8(%rip), %rsi
callq _fprintf
movq _result_error_compression_error@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _result_error
movl %eax, -5140(%rbp)
jmp LBB0_22
LBB0_21:
movq -5184(%rbp), %rax
movq %rax, -5200(%rbp)
movq -5200(%rbp), %rdi
callq _result_data
movl %eax, -5140(%rbp)
LBB0_22:
movl -5140(%rbp), %eax
movl %eax, -5244(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_24
## %bb.23:
movl -5244(%rbp), %eax ## 4-byte Reload
addq $5272, %rsp ## imm = 0x1498
popq %rbx
popq %rbp
retq
LBB0_24:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.comm _result_error_skip,4,2 ## @result_error_skip
.comm _data_type_dir,8,3 ## @data_type_dir
.comm _g_zstdcli,8,3 ## @g_zstdcli
.comm _result_error_system_error,4,2 ## @result_error_system_error
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "'%s' -cqr %s %s%s%s %s '%s'"
L_.str.1: ## @.str.1
.asciz "-D '"
L_.str.2: ## @.str.2
.space 1
L_.str.3: ## @.str.3
.asciz "'"
L_.str.4: ## @.str.4
.asciz "<"
.comm _stderr,4,2 ## @stderr
L_.str.5: ## @.str.5
.asciz "command too large: %s\n"
L_.str.6: ## @.str.6
.asciz "r"
L_.str.7: ## @.str.7
.asciz "failed to popen command: %s\n"
L_.str.8: ## @.str.8
.asciz "zstd failed with command: %s\n"
.comm _result_error_compression_error,4,2 ## @result_error_compression_error
.no_dead_strip _cli_compress
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_method.c_cli_compress.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function init_cstream
_init_cstream: ; @init_cstream
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur x2, [x29, #-32]
stur w3, [x29, #-36]
stur x4, [x29, #-48]
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_15
b LBB0_1
LBB0_1:
ldur x0, [x29, #-32]
mov w2, #0
mov x1, x2
bl _config_get_zstd_params
str x0, [sp, #48]
; kill: def $x8 killed $xzr
str xzr, [sp, #40]
ldur x8, [x29, #-48]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_2
LBB0_2:
ldur x8, [x29, #-32]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_31
LBB0_4:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
ldur x8, [x29, #-16]
ldr w1, [x8]
adrp x8, _ZSTD_dlm_byRef@GOTPAGE
ldr x8, [x8, _ZSTD_dlm_byRef@GOTPAGEOFF]
ldr w2, [x8]
adrp x8, _ZSTD_dct_auto@GOTPAGE
ldr x8, [x8, _ZSTD_dct_auto@GOTPAGEOFF]
ldr w3, [x8]
ldr w4, [sp, #52]
adrp x8, _ZSTD_defaultCMem@GOTPAGE
ldr x8, [x8, _ZSTD_defaultCMem@GOTPAGEOFF]
ldr w5, [x8]
bl _ZSTD_createCDict_advanced
ldur x8, [x29, #-48]
str x0, [x8]
ldur x8, [x29, #-48]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_31
LBB0_6:
ldur x0, [x29, #-24]
ldur x8, [x29, #-48]
ldr x1, [x8]
ldr w2, [sp, #48]
adrp x8, _ZSTD_CONTENTSIZE_UNKNOWN@GOTPAGE
ldr x8, [x8, _ZSTD_CONTENTSIZE_UNKNOWN@GOTPAGEOFF]
ldr w3, [x8]
bl _ZSTD_initCStream_usingCDict_advanced
str x0, [sp, #56]
b LBB0_14
LBB0_7:
ldur x8, [x29, #-24]
str x8, [sp, #24] ; 8-byte Folded Spill
ldur x8, [x29, #-32]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
str x8, [sp, #16] ; 8-byte Folded Spill
b LBB0_10
LBB0_9:
mov x8, #0
str x8, [sp, #16] ; 8-byte Folded Spill
b LBB0_10
LBB0_10:
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x8, [sp, #8] ; 8-byte Folded Spill
ldur x8, [x29, #-32]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
ldur x8, [x29, #-16]
ldr w8, [x8]
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB0_13
LBB0_12:
mov w8, #0
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB0_13
LBB0_13:
ldr x1, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldr w2, [sp, #4] ; 4-byte Folded Reload
adrp x8, _ZSTD_CONTENTSIZE_UNKNOWN@GOTPAGE
ldr x8, [x8, _ZSTD_CONTENTSIZE_UNKNOWN@GOTPAGEOFF]
ldr w4, [x8]
ldr x3, [sp, #48]
bl _ZSTD_initCStream_advanced
str x0, [sp, #56]
b LBB0_14
LBB0_14:
b LBB0_28
LBB0_15:
ldur x0, [x29, #-32]
bl _config_get_level
str w0, [sp, #36]
ldr w8, [sp, #36]
adrp x9, _CONFIG_NO_LEVEL@GOTPAGE
ldr x9, [x9, _CONFIG_NO_LEVEL@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_31
LBB0_17:
ldur x8, [x29, #-48]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_23
b LBB0_18
LBB0_18:
ldur x8, [x29, #-32]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_31
LBB0_20:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
ldur x8, [x29, #-16]
ldr w1, [x8]
ldr w2, [sp, #36]
bl _ZSTD_createCDict
ldur x8, [x29, #-48]
str x0, [x8]
ldur x8, [x29, #-48]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_31
LBB0_22:
ldur x0, [x29, #-24]
ldur x8, [x29, #-48]
ldr x1, [x8]
bl _ZSTD_initCStream_usingCDict
str x0, [sp, #56]
b LBB0_27
LBB0_23:
ldur x8, [x29, #-32]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_25
b LBB0_24
LBB0_24:
ldur x0, [x29, #-24]
ldur x8, [x29, #-16]
ldr x1, [x8, #8]
ldur x8, [x29, #-16]
ldr w2, [x8]
ldr w3, [sp, #36]
bl _ZSTD_initCStream_usingDict
str x0, [sp, #56]
b LBB0_26
LBB0_25:
ldur x0, [x29, #-24]
ldr w1, [sp, #36]
bl _ZSTD_initCStream
str x0, [sp, #56]
b LBB0_26
LBB0_26:
b LBB0_27
LBB0_27:
b LBB0_28
LBB0_28:
ldr x0, [sp, #56]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_30
b LBB0_29
LBB0_29:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_31
LBB0_30:
stur wzr, [x29, #-4]
b LBB0_31
LBB0_31:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.comm _ZSTD_dlm_byRef,4,2 ; @ZSTD_dlm_byRef
.comm _ZSTD_dct_auto,4,2 ; @ZSTD_dct_auto
.comm _ZSTD_defaultCMem,4,2 ; @ZSTD_defaultCMem
.comm _ZSTD_CONTENTSIZE_UNKNOWN,4,2 ; @ZSTD_CONTENTSIZE_UNKNOWN
.comm _CONFIG_NO_LEVEL,4,2 ; @CONFIG_NO_LEVEL
.no_dead_strip _init_cstream
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function init_cstream
_init_cstream: ## @init_cstream
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $112, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movl %ecx, -36(%rbp)
movq %r8, -48(%rbp)
cmpl $0, -36(%rbp)
je LBB0_15
## %bb.1:
movq -32(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq _config_get_zstd_params
movq %rax, -64(%rbp)
movq $0, -72(%rbp)
cmpq $0, -48(%rbp)
je LBB0_7
## %bb.2:
movq -32(%rbp), %rax
cmpq $0, (%rax)
jne LBB0_4
## %bb.3:
movl $1, -4(%rbp)
jmp LBB0_31
LBB0_4:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
movq -16(%rbp), %rax
movl (%rax), %esi
movq _ZSTD_dlm_byRef@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq _ZSTD_dct_auto@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movl -60(%rbp), %r8d
movq _ZSTD_defaultCMem@GOTPCREL(%rip), %rax
movl (%rax), %r9d
callq _ZSTD_createCDict_advanced
movq %rax, %rcx
movq -48(%rbp), %rax
movq %rcx, (%rax)
movq -48(%rbp), %rax
cmpq $0, (%rax)
jne LBB0_6
## %bb.5:
movl $1, -4(%rbp)
jmp LBB0_31
LBB0_6:
movq -24(%rbp), %rdi
movq -48(%rbp), %rax
movq (%rax), %rsi
movl -64(%rbp), %edx
movq _ZSTD_CONTENTSIZE_UNKNOWN@GOTPCREL(%rip), %rax
movl (%rax), %ecx
callq _ZSTD_initCStream_usingCDict_advanced
movq %rax, -56(%rbp)
jmp LBB0_14
LBB0_7:
movq -24(%rbp), %rax
movq %rax, -88(%rbp) ## 8-byte Spill
movq -32(%rbp), %rax
cmpq $0, (%rax)
je LBB0_9
## %bb.8:
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -96(%rbp) ## 8-byte Spill
jmp LBB0_10
LBB0_9:
xorl %eax, %eax
## kill: def $rax killed $eax
movq %rax, -96(%rbp) ## 8-byte Spill
jmp LBB0_10
LBB0_10:
movq -96(%rbp), %rax ## 8-byte Reload
movq %rax, -104(%rbp) ## 8-byte Spill
movq -32(%rbp), %rax
cmpq $0, (%rax)
je LBB0_12
## %bb.11:
movq -16(%rbp), %rax
movl (%rax), %eax
movl %eax, -108(%rbp) ## 4-byte Spill
jmp LBB0_13
LBB0_12:
xorl %eax, %eax
movl %eax, -108(%rbp) ## 4-byte Spill
jmp LBB0_13
LBB0_13:
movq -104(%rbp), %rsi ## 8-byte Reload
movq -88(%rbp), %rdi ## 8-byte Reload
movl -108(%rbp), %edx ## 4-byte Reload
movq _ZSTD_CONTENTSIZE_UNKNOWN@GOTPCREL(%rip), %rax
movl (%rax), %r8d
movq -64(%rbp), %rcx
callq _ZSTD_initCStream_advanced
movq %rax, -56(%rbp)
LBB0_14:
jmp LBB0_28
LBB0_15:
movq -32(%rbp), %rdi
callq _config_get_level
movl %eax, -76(%rbp)
movl -76(%rbp), %eax
movq _CONFIG_NO_LEVEL@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jne LBB0_17
## %bb.16:
movl $1, -4(%rbp)
jmp LBB0_31
LBB0_17:
cmpq $0, -48(%rbp)
je LBB0_23
## %bb.18:
movq -32(%rbp), %rax
cmpq $0, (%rax)
jne LBB0_20
## %bb.19:
movl $1, -4(%rbp)
jmp LBB0_31
LBB0_20:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
movq -16(%rbp), %rax
movl (%rax), %esi
movl -76(%rbp), %edx
callq _ZSTD_createCDict
movq %rax, %rcx
movq -48(%rbp), %rax
movq %rcx, (%rax)
movq -48(%rbp), %rax
cmpq $0, (%rax)
jne LBB0_22
## %bb.21:
movl $1, -4(%rbp)
jmp LBB0_31
LBB0_22:
movq -24(%rbp), %rdi
movq -48(%rbp), %rax
movq (%rax), %rsi
callq _ZSTD_initCStream_usingCDict
movq %rax, -56(%rbp)
jmp LBB0_27
LBB0_23:
movq -32(%rbp), %rax
cmpq $0, (%rax)
je LBB0_25
## %bb.24:
movq -24(%rbp), %rdi
movq -16(%rbp), %rax
movq 8(%rax), %rsi
movq -16(%rbp), %rax
movl (%rax), %edx
movl -76(%rbp), %ecx
callq _ZSTD_initCStream_usingDict
movq %rax, -56(%rbp)
jmp LBB0_26
LBB0_25:
movq -24(%rbp), %rdi
movl -76(%rbp), %esi
callq _ZSTD_initCStream
movq %rax, -56(%rbp)
LBB0_26:
jmp LBB0_27
LBB0_27:
jmp LBB0_28
LBB0_28:
movq -56(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_30
## %bb.29:
movl $1, -4(%rbp)
jmp LBB0_31
LBB0_30:
movl $0, -4(%rbp)
LBB0_31:
movl -4(%rbp), %eax
addq $112, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_dlm_byRef,4,2 ## @ZSTD_dlm_byRef
.comm _ZSTD_dct_auto,4,2 ## @ZSTD_dct_auto
.comm _ZSTD_defaultCMem,4,2 ## @ZSTD_defaultCMem
.comm _ZSTD_CONTENTSIZE_UNKNOWN,4,2 ## @ZSTD_CONTENTSIZE_UNKNOWN
.comm _CONFIG_NO_LEVEL,4,2 ## @CONFIG_NO_LEVEL
.no_dead_strip _init_cstream
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_method.c_init_cstream.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _method_set_zstdcli ; -- Begin function method_set_zstdcli
.p2align 2
_method_set_zstdcli: ; @method_set_zstdcli
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
adrp x9, _g_zstdcli@GOTPAGE
ldr x9, [x9, _g_zstdcli@GOTPAGEOFF]
str x8, [x9]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _g_zstdcli,8,3 ; @g_zstdcli
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _method_set_zstdcli ## -- Begin function method_set_zstdcli
.p2align 4, 0x90
_method_set_zstdcli: ## @method_set_zstdcli
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rcx
movq _g_zstdcli@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_zstdcli,8,3 ## @g_zstdcli
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_method.c_method_set_zstdcli.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function method_state_create
_method_state_create: ; @method_state_create
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
mov w0, #8
bl _malloc
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB0_3
LBB0_2:
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9]
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB0_3
LBB0_3:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _method_state_create
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function method_state_create
_method_state_create: ## @method_state_create
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movl $8, %edi
callq _malloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB0_3
LBB0_2:
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
movq -24(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_3:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _method_state_create
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_method.c_method_state_create.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function method_state_destroy
_method_state_destroy: ; @method_state_destroy
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _free
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _method_state_destroy
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function method_state_destroy
_method_state_destroy: ## @method_state_destroy
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
callq _free
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _method_state_destroy
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_method.c_method_state_destroy.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function old_streaming_compress
_old_streaming_compress: ; @old_streaming_compress
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str x1, [sp]
ldr x0, [sp, #8]
ldr x1, [sp]
mov w3, #0
mov x2, x3
bl _old_streaming_compress_internal
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _old_streaming_compress
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function old_streaming_compress
_old_streaming_compress: ## @old_streaming_compress
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
xorl %ecx, %ecx
movl %ecx, %edx
callq _old_streaming_compress_internal
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _old_streaming_compress
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_method.c_old_streaming_compress.c |
Subsets and Splits