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
.p2align 2 ; -- Begin function old_streaming_compress_advanced
_old_streaming_compress_advanced: ; @old_streaming_compress_advanced
.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
mov w3, #0
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_advanced
.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_advanced
_old_streaming_compress_advanced: ## @old_streaming_compress_advanced
.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
xorl %ecx, %ecx
callq _old_streaming_compress_internal
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _old_streaming_compress_advanced
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_method.c_old_streaming_compress_advanced.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function old_streaming_compress_cdict_advanced
_old_streaming_compress_cdict_advanced: ; @old_streaming_compress_cdict_advanced
.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, #1
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_cdict_advanced
.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_cdict_advanced
_old_streaming_compress_cdict_advanced: ## @old_streaming_compress_cdict_advanced
.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, %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_cdict_advanced
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_method.c_old_streaming_compress_cdict_advanced.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function old_streaming_compress_cdict
_old_streaming_compress_cdict: ; @old_streaming_compress_cdict
.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
mov w3, #1
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_cdict
.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_cdict
_old_streaming_compress_cdict: ## @old_streaming_compress_cdict
.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
movl $1, %ecx
callq _old_streaming_compress_internal
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _old_streaming_compress_cdict
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_method.c_old_streaming_compress_cdict.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _result_get_error_string ; -- Begin function result_get_error_string
.p2align 2
_result_get_error_string: ; @result_get_error_string
.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 w0, [x29, #-12]
ldur w0, [x29, #-12]
bl _result_get_error
subs w8, w0, #128
; kill: def $x8 killed $w8
str x8, [sp, #8] ; 8-byte Folded Spill
subs x8, x8, #5
cset w8, hi
tbnz w8, #0, LBB0_8
; %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:
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
stur x8, [x29, #-8]
b LBB0_8
LBB0_3:
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
stur x8, [x29, #-8]
b LBB0_8
LBB0_4:
adrp x8, l_.str.2@PAGE
add x8, x8, l_.str.2@PAGEOFF
stur x8, [x29, #-8]
b LBB0_8
LBB0_5:
adrp x8, l_.str.3@PAGE
add x8, x8, l_.str.3@PAGEOFF
stur x8, [x29, #-8]
b LBB0_8
LBB0_6:
adrp x8, l_.str.4@PAGE
add x8, x8, l_.str.4@PAGEOFF
stur x8, [x29, #-8]
b LBB0_8
LBB0_7:
adrp x8, l_.str.5@PAGE
add x8, x8, l_.str.5@PAGEOFF
stur x8, [x29, #-8]
b LBB0_8
LBB0_8:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_4-Ltmp0
.long LBB0_3-Ltmp0
.long LBB0_7-Ltmp0
.long LBB0_2-Ltmp0
.long LBB0_6-Ltmp0
.long LBB0_5-Ltmp0
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "okay"
l_.str.1: ; @.str.1
.asciz "skip"
l_.str.2: ; @.str.2
.asciz "system error"
l_.str.3: ; @.str.3
.asciz "compression error"
l_.str.4: ; @.str.4
.asciz "decompression error"
l_.str.5: ; @.str.5
.asciz "round trip error"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _result_get_error_string ## -- Begin function result_get_error_string
.p2align 4, 0x90
_result_get_error_string: ## @result_get_error_string
.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, -12(%rbp)
movl -12(%rbp), %edi
callq _result_get_error
addl $-128, %eax
movl %eax, %ecx
movq %rcx, -24(%rbp) ## 8-byte Spill
subl $5, %eax
ja LBB0_7
## %bb.8:
movq -24(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_1:
leaq L_.str(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB0_7
LBB0_2:
leaq L_.str.1(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB0_7
LBB0_3:
leaq L_.str.2(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB0_7
LBB0_4:
leaq L_.str.3(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB0_7
LBB0_5:
leaq L_.str.4(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB0_7
LBB0_6:
leaq L_.str.5(%rip), %rax
movq %rax, -8(%rbp)
LBB0_7:
movq -8(%rbp), %rax
addq $32, %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_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
.long L0_0_set_3
.long L0_0_set_2
.long L0_0_set_6
.long L0_0_set_1
.long L0_0_set_5
.long L0_0_set_4
.end_data_region
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "okay"
L_.str.1: ## @.str.1
.asciz "skip"
L_.str.2: ## @.str.2
.asciz "system error"
L_.str.3: ## @.str.3
.asciz "compression error"
L_.str.4: ## @.str.4
.asciz "decompression error"
L_.str.5: ## @.str.5
.asciz "round trip error"
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_result.c_result_get_error_string.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function result_data
_result_data: ; @result_data
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #4]
ldr w8, [sp, #4]
str w8, [sp, #8]
adrp x8, _result_error_ok@GOTPAGE
ldr x8, [x8, _result_error_ok@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #12]
ldr x0, [sp, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _result_error_ok,4,2 ; @result_error_ok
.no_dead_strip _result_data
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function result_data
_result_data: ## @result_data
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -12(%rbp)
movl -12(%rbp), %eax
movl %eax, -8(%rbp)
movq _result_error_ok@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _result_error_ok,4,2 ## @result_error_ok
.no_dead_strip _result_data
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_result.h_result_data.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function result_error
_result_error: ; @result_error
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #8]
ldr w8, [sp, #8]
str w8, [sp, #12]
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.no_dead_strip _result_error
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function result_error
_result_error: ## @result_error
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -12(%rbp)
movl -12(%rbp), %eax
movl %eax, -8(%rbp)
movl -8(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _result_error
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_result.h_result_error.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function result_get_data
_result_get_data: ; @result_get_data
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
mov x8, x0
str w8, [sp, #12]
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.no_dead_strip _result_get_data
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function result_get_data
_result_get_data: ## @result_get_data
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -8(%rbp)
movl -8(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _result_get_data
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_result.h_result_get_data.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function result_is_error
_result_is_error: ; @result_is_error
.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
stur w0, [x29, #-4]
ldur w0, [x29, #-4]
bl _result_get_error
adrp x8, _result_error_ok@GOTPAGE
ldr x8, [x8, _result_error_ok@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x0, x8
cset w8, ne
and w0, w8, #0x1
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _result_error_ok,8,3 ; @result_error_ok
.no_dead_strip _result_is_error
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function result_is_error
_result_is_error: ## @result_is_error
.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, -4(%rbp)
movl -4(%rbp), %edi
callq _result_get_error
movq _result_error_ok@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
setne %al
andb $1, %al
movzbl %al, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _result_error_ok,8,3 ## @result_error_ok
.no_dead_strip _result_is_error
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_result.h_result_is_error.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function result_get_error
_result_get_error: ; @result_get_error
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
mov x8, x0
str w8, [sp, #12]
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.no_dead_strip _result_get_error
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function result_get_error
_result_get_error: ## @result_get_error
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -8(%rbp)
movl -8(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _result_get_error
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_result.h_result_get_error.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function result_is_skip
_result_is_skip: ; @result_is_skip
.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
stur w0, [x29, #-4]
ldur w0, [x29, #-4]
bl _result_get_error
adrp x8, _result_error_skip@GOTPAGE
ldr x8, [x8, _result_error_skip@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x0, x8
cset w8, eq
and w0, w8, #0x1
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _result_error_skip,8,3 ; @result_error_skip
.no_dead_strip _result_is_skip
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function result_is_skip
_result_is_skip: ## @result_is_skip
.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, -4(%rbp)
movl -4(%rbp), %edi
callq _result_get_error
movq _result_error_skip@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
sete %al
andb $1, %al
movzbl %al, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _result_error_skip,8,3 ## @result_error_skip
.no_dead_strip _result_is_skip
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_result.h_result_is_skip.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function are_names_bad
_are_names_bad: ; @are_names_bad
.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, _methods@GOTPAGE
ldr x8, [x8, _methods@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
adrp x8, _data@GOTPAGE
ldr x8, [x8, _data@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x8, _configs@GOTPAGE
ldr x8, [x8, _configs@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
stur xzr, [x29, #-16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp] ; 8-byte Folded Reload
ldr x8, [x8]
ldur x9, [x29, #-16]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp] ; 8-byte Folded Reload
ldr x8, [x8]
ldur x9, [x29, #-16]
ldr x8, [x8, x9, lsl #3]
ldr x0, [x8]
bl _is_name_bad
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp] ; 8-byte Folded Reload
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr w0, [x9]
ldr x8, [x8]
ldur x9, [x29, #-16]
ldr x8, [x8, x9, lsl #3]
ldr x2, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_19
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
add x8, x8, #1
stur x8, [x29, #-16]
b LBB0_1
LBB0_6:
stur xzr, [x29, #-24]
b LBB0_7
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x8]
ldur x9, [x29, #-24]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x8]
ldur x9, [x29, #-24]
ldr x8, [x8, x9, lsl #3]
ldr x0, [x8]
bl _is_name_bad
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr w0, [x9]
ldr x8, [x8]
ldur x9, [x29, #-24]
ldr x8, [x8, x9, lsl #3]
ldr x2, [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_19
LBB0_10: ; in Loop: Header=BB0_7 Depth=1
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_7 Depth=1
ldur x8, [x29, #-24]
add x8, x8, #1
stur x8, [x29, #-24]
b LBB0_7
LBB0_12:
str xzr, [sp, #32]
b LBB0_13
LBB0_13: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x8, [x8]
ldr x9, [sp, #32]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_18
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x8, [x8]
ldr x9, [sp, #32]
ldr x8, [x8, x9, lsl #3]
ldr x0, [x8]
bl _is_name_bad
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr w0, [x9]
ldr x8, [x8]
ldr x9, [sp, #32]
ldr x8, [x8, x9, lsl #3]
ldr x2, [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_19
LBB0_16: ; in Loop: Header=BB0_13 Depth=1
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_13 Depth=1
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB0_13
LBB0_18:
stur wzr, [x29, #-4]
b LBB0_19
LBB0_19:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.comm _methods,8,3 ; @methods
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "method name %s is bad\n"
.comm _data,8,3 ; @data
l_.str.1: ; @.str.1
.asciz "data name %s is bad\n"
.comm _configs,8,3 ; @configs
l_.str.2: ; @.str.2
.asciz "config name %s is bad\n"
.no_dead_strip _are_names_bad
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function are_names_bad
_are_names_bad: ## @are_names_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 $0, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq _methods@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
cmpq $0, (%rax,%rcx,8)
je LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq _methods@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rdi
callq _is_name_bad
cmpq $0, %rax
je LBB0_4
## %bb.3:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _methods@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rdx
leaq L_.str(%rip), %rsi
callq _fprintf
movl $1, -4(%rbp)
jmp LBB0_19
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_6:
movq $0, -24(%rbp)
LBB0_7: ## =>This Inner Loop Header: Depth=1
movq _data@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
cmpq $0, (%rax,%rcx,8)
je LBB0_12
## %bb.8: ## in Loop: Header=BB0_7 Depth=1
movq _data@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rdi
callq _is_name_bad
cmpq $0, %rax
je LBB0_10
## %bb.9:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _data@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rdx
leaq L_.str.1(%rip), %rsi
callq _fprintf
movl $1, -4(%rbp)
jmp LBB0_19
LBB0_10: ## in Loop: Header=BB0_7 Depth=1
jmp LBB0_11
LBB0_11: ## in Loop: Header=BB0_7 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp LBB0_7
LBB0_12:
movq $0, -32(%rbp)
LBB0_13: ## =>This Inner Loop Header: Depth=1
movq _configs@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -32(%rbp), %rcx
cmpq $0, (%rax,%rcx,8)
je LBB0_18
## %bb.14: ## in Loop: Header=BB0_13 Depth=1
movq _configs@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -32(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rdi
callq _is_name_bad
cmpq $0, %rax
je LBB0_16
## %bb.15:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _configs@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -32(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rdx
leaq L_.str.2(%rip), %rsi
callq _fprintf
movl $1, -4(%rbp)
jmp LBB0_19
LBB0_16: ## in Loop: Header=BB0_13 Depth=1
jmp LBB0_17
LBB0_17: ## in Loop: Header=BB0_13 Depth=1
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB0_13
LBB0_18:
movl $0, -4(%rbp)
LBB0_19:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _methods,8,3 ## @methods
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "method name %s is bad\n"
.comm _data,8,3 ## @data
L_.str.1: ## @.str.1
.asciz "data name %s is bad\n"
.comm _configs,8,3 ## @configs
L_.str.2: ## @.str.2
.asciz "config name %s is bad\n"
.no_dead_strip _are_names_bad
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_test.c_are_names_bad.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function diff_results
_diff_results: ; @diff_results
.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, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
bl _data_buffer_read
stur x0, [x29, #-24]
ldur x0, [x29, #-16]
bl _data_buffer_read
str x0, [sp, #32]
mov w8, #1
str w8, [sp, #28]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #16] ; 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_8
LBB0_2:
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w0, [x8]
ldur x8, [x29, #-16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
b LBB0_8
LBB0_4:
ldur x0, [x29, #-24]
ldr x1, [sp, #32]
bl _data_buffer_compare
str w0, [sp, #28]
ldr w8, [sp, #28]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w0, [x8]
ldur x10, [x29, #-8]
ldur x8, [x29, #-16]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
b LBB0_7
LBB0_6:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
b LBB0_7
LBB0_7:
b LBB0_8
LBB0_8:
ldur x0, [x29, #-24]
bl _data_buffer_free
ldr x0, [sp, #32]
bl _data_buffer_free
ldr w0, [sp, #28]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "failed to open results '%s' for diff\n"
l_.str.1: ; @.str.1
.asciz "failed to open previous results '%s' for diff\n"
l_.str.2: ; @.str.2
.asciz "actual results '%s' does not match expected results '%s'\n"
l_.str.3: ; @.str.3
.asciz "actual results match expected results\n"
.no_dead_strip _diff_results
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function diff_results
_diff_results: ## @diff_results
.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
callq _data_buffer_read
movq %rax, -24(%rbp)
movq -16(%rbp), %rdi
callq _data_buffer_read
movq %rax, -32(%rbp)
movl $1, -36(%rbp)
cmpq $0, -24(%rbp)
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_8
LBB0_2:
cmpq $0, -32(%rbp)
jne LBB0_4
## %bb.3:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -16(%rbp), %rdx
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _fprintf
jmp LBB0_8
LBB0_4:
movq -24(%rbp), %rdi
movq -32(%rbp), %rsi
callq _data_buffer_compare
movl %eax, -36(%rbp)
cmpl $0, -36(%rbp)
je LBB0_6
## %bb.5:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -8(%rbp), %rdx
movq -16(%rbp), %rcx
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _fprintf
jmp LBB0_7
LBB0_6:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _fprintf
LBB0_7:
jmp LBB0_8
LBB0_8:
movq -24(%rbp), %rdi
callq _data_buffer_free
movq -32(%rbp), %rdi
callq _data_buffer_free
movl -36(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "failed to open results '%s' for diff\n"
L_.str.1: ## @.str.1
.asciz "failed to open previous results '%s' for diff\n"
L_.str.2: ## @.str.2
.asciz "actual results '%s' does not match expected results '%s'\n"
L_.str.3: ## @.str.3
.asciz "actual results match expected results\n"
.no_dead_strip _diff_results
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_test.c_diff_results.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, #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 wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur w0, [x29, #-8]
ldur x1, [x29, #-16]
bl _parse_args
stur w0, [x29, #-20]
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur w8, [x29, #-20]
stur w8, [x29, #-4]
b LBB0_14
LBB0_2:
bl _are_names_bad
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_14
LBB0_4:
adrp x8, _g_zstdcli@GOTPAGE
ldr x8, [x8, _g_zstdcli@GOTPAGEOFF]
ldr w0, [x8]
bl _method_set_zstdcli
adrp x8, _g_cache@GOTPAGE
ldr x8, [x8, _g_cache@GOTPAGEOFF]
ldr w0, [x8]
bl _data_init
stur w0, [x29, #-20]
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #12] ; 4-byte Folded Spill
ldur w0, [x29, #-20]
bl _strerror
mov x8, x0
ldr w0, [sp, #12] ; 4-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_14
LBB0_6:
mov w8, #1
stur w8, [x29, #-20]
adrp x8, _g_output@GOTPAGE
ldr x8, [x8, _g_output@GOTPAGEOFF]
ldr w0, [x8]
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_8
b LBB0_7
LBB0_7:
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_13
LBB0_8:
ldr x0, [sp, #16]
bl _run_all
stur w0, [x29, #-20]
ldr x0, [sp, #16]
bl _fclose
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
b LBB0_13
LBB0_10:
adrp x8, _g_diff@GOTPAGE
ldr x8, [x8, _g_diff@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
adrp x8, _g_output@GOTPAGE
ldr x8, [x8, _g_output@GOTPAGEOFF]
ldr w0, [x8]
adrp x8, _g_diff@GOTPAGE
ldr x8, [x8, _g_diff@GOTPAGEOFF]
ldr x1, [x8]
bl _diff_results
stur w0, [x29, #-20]
b LBB0_12
LBB0_12:
b LBB0_13
LBB0_13:
bl _data_finish
ldur w8, [x29, #-20]
stur w8, [x29, #-4]
b LBB0_14
LBB0_14:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _g_zstdcli,4,2 ; @g_zstdcli
.comm _g_cache,4,2 ; @g_cache
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "data_init() failed with error=%s\n"
.comm _g_output,4,2 ; @g_output
l_.str.1: ; @.str.1
.asciz "w"
l_.str.2: ; @.str.2
.asciz "Failed to open the output file\n"
.comm _g_diff,8,3 ; @g_diff
.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 $48, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl -8(%rbp), %edi
movq -16(%rbp), %rsi
callq _parse_args
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
je LBB0_2
## %bb.1:
movl -20(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_14
LBB0_2:
movb $0, %al
callq _are_names_bad
cmpq $0, %rax
je LBB0_4
## %bb.3:
movl $1, -4(%rbp)
jmp LBB0_14
LBB0_4:
movq _g_zstdcli@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _method_set_zstdcli
movq _g_cache@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _data_init
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
je LBB0_6
## %bb.5:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -36(%rbp) ## 4-byte Spill
movl -20(%rbp), %edi
callq _strerror
movl -36(%rbp), %edi ## 4-byte Reload
movq %rax, %rdx
leaq L_.str(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -4(%rbp)
jmp LBB0_14
LBB0_6:
movl $1, -20(%rbp)
movq _g_output@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.1(%rip), %rsi
callq _fopen
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB0_8
## %bb.7:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _fprintf
jmp LBB0_13
LBB0_8:
movq -32(%rbp), %rdi
callq _run_all
movl %eax, -20(%rbp)
movq -32(%rbp), %rdi
callq _fclose
cmpl $0, -20(%rbp)
je LBB0_10
## %bb.9:
jmp LBB0_13
LBB0_10:
movq _g_diff@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_12
## %bb.11:
movq _g_output@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _g_diff@GOTPCREL(%rip), %rax
movq (%rax), %rsi
callq _diff_results
movl %eax, -20(%rbp)
LBB0_12:
jmp LBB0_13
LBB0_13:
movb $0, %al
callq _data_finish
movl -20(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_14:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_zstdcli,4,2 ## @g_zstdcli
.comm _g_cache,4,2 ## @g_cache
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "data_init() failed with error=%s\n"
.comm _g_output,4,2 ## @g_output
L_.str.1: ## @.str.1
.asciz "w"
L_.str.2: ## @.str.2
.asciz "Failed to open the output file\n"
.comm _g_diff,8,3 ## @g_diff
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_test.c_main.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function parse_args
_parse_args: ; @parse_args
.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, _long_extras@GOTPAGE
ldr x8, [x8, _long_extras@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
stur w0, [x29, #-8]
stur x1, [x29, #-16]
stur wzr, [x29, #-20]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_4 Depth 2
ldur w0, [x29, #-8]
ldur x1, [x29, #-16]
adrp x8, _short_options@GOTPAGE
ldr x8, [x8, _short_options@GOTPAGEOFF]
ldr w2, [x8]
adrp x8, _long_options@GOTPAGE
ldr x8, [x8, _long_options@GOTPAGEOFF]
ldr x3, [x8]
sub x4, x29, #20
bl _getopt_long
stur w0, [x29, #-24]
ldur w8, [x29, #-24]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
b LBB0_16
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
stur wzr, [x29, #-28]
str xzr, [sp, #40]
b LBB0_4
LBB0_4: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #40]
adrp x9, _nargs@GOTPAGE
ldr x9, [x9, _nargs@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_10
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=2
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldur w8, [x29, #-24]
ldr x9, [x9]
ldr x10, [sp, #40]
mov x11, #24
mul x10, x10, x11
ldr w9, [x9, x10]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_4 Depth=2
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x8, [x8]
ldr x9, [sp, #40]
mov x10, #24
mul x9, x9, x10
add x8, x8, x9
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #16] ; 8-byte Folded Reload
adrp x8, _optarg@GOTPAGE
ldr x8, [x8, _optarg@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [x9]
ldr x10, [sp, #40]
mov x11, #24
mul x10, x10, x11
add x9, x9, x10
ldr x9, [x9, #16]
str x8, [x9]
mov w8, #1
stur w8, [x29, #-28]
b LBB0_10
LBB0_8: ; in Loop: Header=BB0_4 Depth=2
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_4 Depth=2
ldr x8, [sp, #40]
add x8, x8, #1
str x8, [sp, #40]
b LBB0_4
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-28]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_12:
ldur w8, [x29, #-24]
str w8, [sp, #12] ; 4-byte Folded Spill
subs w8, w8, #63
cset w8, eq
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
ldr w8, [sp, #12] ; 4-byte Folded Reload
subs w8, w8, #104
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
b LBB0_15
LBB0_15:
bl _print_help
mov w8, #1
stur w8, [x29, #-4]
b LBB0_29
LBB0_16:
str wzr, [sp, #36]
str xzr, [sp, #24]
b LBB0_17
LBB0_17: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
adrp x9, _nargs@GOTPAGE
ldr x9, [x9, _nargs@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_26
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_17 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x8, [x8]
ldr x9, [sp, #24]
mov x10, #24
mul x9, x9, x10
add x8, x8, x9
ldr x8, [x8, #8]
adrp x9, _required_option@GOTPAGE
ldr x9, [x9, _required_option@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_17 Depth=1
b LBB0_25
LBB0_20: ; in Loop: Header=BB0_17 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x8, [x8]
ldr x9, [sp, #24]
mov x10, #24
mul x9, x9, x10
add x8, x8, x9
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_17 Depth=1
b LBB0_25
LBB0_22: ; in Loop: Header=BB0_17 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x8, [x8]
ldr x9, [sp, #24]
mov x10, #24
mul x9, x9, x10
add x8, x8, x9
ldr x8, [x8, #16]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_17 Depth=1
b LBB0_25
LBB0_24: ; in Loop: Header=BB0_17 Depth=1
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
ldr w0, [x8]
adrp x8, _long_options@GOTPAGE
ldr x8, [x8, _long_options@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp, #24]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x8, [x9]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w8, #1
str w8, [sp, #36]
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_17 Depth=1
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
b LBB0_17
LBB0_26:
ldr w8, [sp, #36]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_28
b LBB0_27
LBB0_27:
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
ldr w0, [x8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
bl _print_help
mov w8, #1
stur w8, [x29, #-4]
b LBB0_29
LBB0_28:
stur wzr, [x29, #-4]
b LBB0_29
LBB0_29:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.comm _short_options,4,2 ; @short_options
.comm _long_options,8,3 ; @long_options
.comm _nargs,8,3 ; @nargs
.comm _long_extras,8,3 ; @long_extras
.comm _optarg,8,3 ; @optarg
.comm _required_option,8,3 ; @required_option
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "--%s is a required argument but is not set\n"
l_.str.1: ; @.str.1
.asciz "\n"
.no_dead_strip _parse_args
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function parse_args
_parse_args: ## @parse_args
.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 %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $0, -20(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_4 Depth 2
movl -8(%rbp), %edi
movq -16(%rbp), %rsi
movq _short_options@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq _long_options@GOTPCREL(%rip), %rax
movq (%rax), %rcx
leaq -20(%rbp), %r8
callq _getopt_long
movl %eax, -24(%rbp)
cmpl $-1, -24(%rbp)
jne LBB0_3
## %bb.2:
jmp LBB0_15
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movl $0, -28(%rbp)
movq $0, -40(%rbp)
LBB0_4: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -40(%rbp), %rax
movq _nargs@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_10
## %bb.5: ## in Loop: Header=BB0_4 Depth=2
movl -24(%rbp), %eax
movq _long_extras@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
imulq $24, -40(%rbp), %rdx
addq %rdx, %rcx
cmpl (%rcx), %eax
jne LBB0_8
## %bb.6: ## in Loop: Header=BB0_4 Depth=2
movq _long_extras@GOTPCREL(%rip), %rax
movq (%rax), %rax
imulq $24, -40(%rbp), %rcx
addq %rcx, %rax
cmpq $0, 16(%rax)
je LBB0_8
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movq _long_extras@GOTPCREL(%rip), %rax
movq (%rax), %rax
imulq $24, -40(%rbp), %rdx
addq %rdx, %rax
movq 16(%rax), %rax
movq %rcx, (%rax)
movl $1, -28(%rbp)
jmp LBB0_10
LBB0_8: ## in Loop: Header=BB0_4 Depth=2
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_4 Depth=2
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
jmp LBB0_4
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -28(%rbp)
je LBB0_12
## %bb.11: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_12:
movl -24(%rbp), %eax
movl %eax, -60(%rbp) ## 4-byte Spill
subl $63, %eax
je LBB0_13
jmp LBB0_29
LBB0_29:
movl -60(%rbp), %eax ## 4-byte Reload
subl $104, %eax
jne LBB0_14
jmp LBB0_13
LBB0_13:
jmp LBB0_14
LBB0_14:
movb $0, %al
callq _print_help
movl $1, -4(%rbp)
jmp LBB0_28
LBB0_15:
movl $0, -44(%rbp)
movq $0, -56(%rbp)
LBB0_16: ## =>This Inner Loop Header: Depth=1
movq -56(%rbp), %rax
movq _nargs@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_25
## %bb.17: ## in Loop: Header=BB0_16 Depth=1
movq _long_extras@GOTPCREL(%rip), %rax
movq (%rax), %rax
imulq $24, -56(%rbp), %rcx
addq %rcx, %rax
movq 8(%rax), %rax
movq _required_option@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_19
## %bb.18: ## in Loop: Header=BB0_16 Depth=1
jmp LBB0_24
LBB0_19: ## in Loop: Header=BB0_16 Depth=1
movq _long_extras@GOTPCREL(%rip), %rax
movq (%rax), %rax
imulq $24, -56(%rbp), %rcx
addq %rcx, %rax
cmpq $0, 16(%rax)
jne LBB0_21
## %bb.20: ## in Loop: Header=BB0_16 Depth=1
jmp LBB0_24
LBB0_21: ## in Loop: Header=BB0_16 Depth=1
movq _long_extras@GOTPCREL(%rip), %rax
movq (%rax), %rax
imulq $24, -56(%rbp), %rcx
addq %rcx, %rax
movq 16(%rax), %rax
cmpq $0, (%rax)
je LBB0_23
## %bb.22: ## in Loop: Header=BB0_16 Depth=1
jmp LBB0_24
LBB0_23: ## in Loop: Header=BB0_16 Depth=1
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _long_options@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -56(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
leaq L_.str(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -44(%rbp)
LBB0_24: ## in Loop: Header=BB0_16 Depth=1
movq -56(%rbp), %rax
addq $1, %rax
movq %rax, -56(%rbp)
jmp LBB0_16
LBB0_25:
cmpl $0, -44(%rbp)
je LBB0_27
## %bb.26:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _fprintf
movb $0, %al
callq _print_help
movl $1, -4(%rbp)
jmp LBB0_28
LBB0_27:
movl $0, -4(%rbp)
LBB0_28:
movl -4(%rbp), %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _short_options,4,2 ## @short_options
.comm _long_options,8,3 ## @long_options
.comm _nargs,8,3 ## @nargs
.comm _long_extras,8,3 ## @long_extras
.comm _optarg,8,3 ## @optarg
.comm _required_option,8,3 ## @required_option
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "--%s is a required argument but is not set\n"
L_.str.1: ## @.str.1
.asciz "\n"
.no_dead_strip _parse_args
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_test.c_parse_args.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function required_message
_required_message: ; @required_message
.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 w0, [sp, #4]
ldr w8, [sp, #4]
str w8, [sp] ; 4-byte Folded Spill
subs w8, w8, #128
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
ldr w8, [sp] ; 4-byte Folded Reload
subs w8, w8, #129
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2:
ldr w8, [sp] ; 4-byte Folded Reload
subs w8, w8, #130
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_6
LBB0_3:
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
str x8, [sp, #8]
b LBB0_7
LBB0_4:
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
str x8, [sp, #8]
b LBB0_7
LBB0_5:
adrp x8, l_.str.2@PAGE
add x8, x8, l_.str.2@PAGEOFF
str x8, [sp, #8]
b LBB0_7
LBB0_6:
mov w0, #0
bl _assert
; kill: def $x8 killed $xzr
str xzr, [sp, #8]
b LBB0_7
LBB0_7:
ldr x0, [sp, #8]
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 "[required]"
l_.str.1: ; @.str.1
.asciz "[optional]"
l_.str.2: ; @.str.2
.space 1
.no_dead_strip _required_message
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function required_message
_required_message: ## @required_message
.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, -12(%rbp)
movl -12(%rbp), %eax
movl %eax, -16(%rbp) ## 4-byte Spill
subl $128, %eax
je LBB0_1
jmp LBB0_6
LBB0_6:
movl -16(%rbp), %eax ## 4-byte Reload
subl $129, %eax
je LBB0_2
jmp LBB0_7
LBB0_7:
movl -16(%rbp), %eax ## 4-byte Reload
subl $130, %eax
je LBB0_3
jmp LBB0_4
LBB0_1:
leaq L_.str(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB0_5
LBB0_2:
leaq L_.str.1(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB0_5
LBB0_3:
leaq L_.str.2(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB0_5
LBB0_4:
xorl %edi, %edi
callq _assert
movq $0, -8(%rbp)
LBB0_5:
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "[required]"
L_.str.1: ## @.str.1
.asciz "[optional]"
L_.str.2: ## @.str.2
.space 1
.no_dead_strip _required_message
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_test.c_required_message.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function run_all
_run_all: ; @run_all
.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
adrp x8, _methods@GOTPAGE
ldr x8, [x8, _methods@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
adrp x8, _data@GOTPAGE
ldr x8, [x8, _data@GOTPAGEOFF]
str x8, [sp, #40] ; 8-byte Folded Spill
adrp x8, _configs@GOTPAGE
ldr x8, [x8, _configs@GOTPAGEOFF]
str x8, [sp, #48] ; 8-byte Folded Spill
stur x0, [x29, #-8]
ldur x0, [x29, #-8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
adrp x2, l_.str.1@PAGE
add x2, x2, l_.str.1@PAGEOFF
adrp x3, l_.str.2@PAGE
add x3, x3, l_.str.2@PAGEOFF
bl _tprint_names
ldur x0, [x29, #-8]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _tprintf
stur xzr, [x29, #-16]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_6 Depth 2
; Child Loop BB0_11 Depth 3
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x8, [x8]
ldur x9, [x29, #-16]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_28
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _g_method@GOTPAGE
ldr x8, [x8, _g_method@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x8, [x8]
ldur x9, [x29, #-16]
ldr x8, [x8, x9, lsl #3]
ldr x0, [x8]
adrp x8, _g_method@GOTPAGE
ldr x8, [x8, _g_method@GOTPAGEOFF]
ldr x1, [x8]
bl _strcmp
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_27
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
stur xzr, [x29, #-24]
b LBB0_6
LBB0_6: ; Parent Loop BB0_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_11 Depth 3
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x8, [x8]
ldur x9, [x29, #-24]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_26
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_6 Depth=2
adrp x8, _g_data@GOTPAGE
ldr x8, [x8, _g_data@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x8, [x8]
ldur x9, [x29, #-24]
ldr x8, [x8, x9, lsl #3]
ldr x0, [x8]
adrp x8, _g_data@GOTPAGE
ldr x8, [x8, _g_data@GOTPAGEOFF]
ldr x1, [x8]
bl _strcmp
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_6 Depth=2
b LBB0_25
LBB0_10: ; in Loop: Header=BB0_6 Depth=2
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x8, [x8]
ldur x10, [x29, #-16]
ldr x8, [x8, x10, lsl #3]
ldr x8, [x8, #24]
ldr x9, [x9]
ldur x10, [x29, #-24]
ldr x0, [x9, x10, lsl #3]
blr x8
stur x0, [x29, #-32]
stur xzr, [x29, #-40]
b LBB0_11
LBB0_11: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_6 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x8, [x8]
ldur x9, [x29, #-40]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_24
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=3
adrp x8, _g_config@GOTPAGE
ldr x8, [x8, _g_config@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_15
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_11 Depth=3
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x8, [x8]
ldur x9, [x29, #-40]
ldr x8, [x8, x9, lsl #3]
ldr x0, [x8]
adrp x8, _g_config@GOTPAGE
ldr x8, [x8, _g_config@GOTPAGEOFF]
ldr x1, [x8]
bl _strcmp
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_11 Depth=3
b LBB0_23
LBB0_15: ; in Loop: Header=BB0_11 Depth=3
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr x9, [x9]
ldur x10, [x29, #-40]
ldr x0, [x9, x10, lsl #3]
ldr x8, [x8]
ldur x9, [x29, #-24]
ldr x1, [x8, x9, lsl #3]
bl _config_skip_data
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_11 Depth=3
b LBB0_23
LBB0_17: ; in Loop: Header=BB0_11 Depth=3
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x8, [x8]
ldur x10, [x29, #-16]
ldr x8, [x8, x10, lsl #3]
ldr x8, [x8, #16]
ldur x0, [x29, #-32]
ldr x9, [x9]
ldur x10, [x29, #-40]
ldr x1, [x9, x10, lsl #3]
blr x8
stur w0, [x29, #-44]
ldur w0, [x29, #-44]
bl _result_is_skip
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_11 Depth=3
b LBB0_23
LBB0_19: ; in Loop: Header=BB0_11 Depth=3
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr x10, [sp, #40] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
ldr x10, [x10]
ldur x11, [x29, #-24]
ldr x10, [x10, x11, lsl #3]
ldr x1, [x10]
ldr x9, [x9]
ldur x10, [x29, #-40]
ldr x9, [x9, x10, lsl #3]
ldr x2, [x9]
ldr x8, [x8]
ldur x9, [x29, #-16]
ldr x8, [x8, x9, lsl #3]
ldr x3, [x8]
bl _tprint_names
ldur w0, [x29, #-44]
bl _result_is_error
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_11 Depth=3
ldur x8, [x29, #-8]
str x8, [sp, #24] ; 8-byte Folded Spill
ldur w0, [x29, #-44]
bl _result_get_error_string
mov x8, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _tprintf
b LBB0_22
LBB0_21: ; in Loop: Header=BB0_11 Depth=3
ldur x8, [x29, #-8]
str x8, [sp, #16] ; 8-byte Folded Spill
ldur w0, [x29, #-44]
bl _result_get_data
mov x8, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
str x8, [sp, #56]
ldr x8, [sp, #56]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _tprintf
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_11 Depth=3
ldur x0, [x29, #-8]
bl _tflush
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_11 Depth=3
ldur x8, [x29, #-40]
add x8, x8, #1
stur x8, [x29, #-40]
b LBB0_11
LBB0_24: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x8, [x8]
ldur x9, [x29, #-16]
ldr x8, [x8, x9, lsl #3]
ldr x8, [x8, #8]
ldur x0, [x29, #-32]
blr x8
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_6 Depth=2
ldur x8, [x29, #-24]
add x8, x8, #1
stur x8, [x29, #-24]
b LBB0_6
LBB0_26: ; in Loop: Header=BB0_1 Depth=1
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
add x8, x8, #1
stur x8, [x29, #-16]
b LBB0_1
LBB0_28:
mov w0, #0
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Data"
l_.str.1: ; @.str.1
.asciz "Config"
l_.str.2: ; @.str.2
.asciz "Method"
l_.str.3: ; @.str.3
.asciz "Total compressed size\n"
.comm _methods,8,3 ; @methods
.comm _g_method,8,3 ; @g_method
.comm _data,8,3 ; @data
.comm _g_data,8,3 ; @g_data
.comm _configs,8,3 ; @configs
.comm _g_config,8,3 ; @g_config
l_.str.4: ; @.str.4
.asciz "%s\n"
l_.str.5: ; @.str.5
.asciz "%llu\n"
.no_dead_strip _run_all
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function run_all
_run_all: ## @run_all
.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 -8(%rbp), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rdx
leaq L_.str.2(%rip), %rcx
callq _tprint_names
movq -8(%rbp), %rdi
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _tprintf
movq $0, -16(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_6 Depth 2
## Child Loop BB0_11 Depth 3
movq _methods@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
cmpq $0, (%rax,%rcx,8)
je LBB0_28
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq _g_method@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_5
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq _methods@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rdi
movq _g_method@GOTPCREL(%rip), %rax
movq (%rax), %rsi
callq _strcmp
cmpq $0, %rax
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_27
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq $0, -24(%rbp)
LBB0_6: ## Parent Loop BB0_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_11 Depth 3
movq _data@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
cmpq $0, (%rax,%rcx,8)
je LBB0_26
## %bb.7: ## in Loop: Header=BB0_6 Depth=2
movq _g_data@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_10
## %bb.8: ## in Loop: Header=BB0_6 Depth=2
movq _data@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rdi
movq _g_data@GOTPCREL(%rip), %rax
movq (%rax), %rsi
callq _strcmp
cmpq $0, %rax
je LBB0_10
## %bb.9: ## in Loop: Header=BB0_6 Depth=2
jmp LBB0_25
LBB0_10: ## in Loop: Header=BB0_6 Depth=2
movq _methods@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 24(%rax), %rax
movq _data@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq -24(%rbp), %rdx
movq (%rcx,%rdx,8), %rdi
callq *%rax
movq %rax, -32(%rbp)
movq $0, -40(%rbp)
LBB0_11: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_6 Depth=2
## => This Inner Loop Header: Depth=3
movq _configs@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -40(%rbp), %rcx
cmpq $0, (%rax,%rcx,8)
je LBB0_24
## %bb.12: ## in Loop: Header=BB0_11 Depth=3
movq _g_config@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_15
## %bb.13: ## in Loop: Header=BB0_11 Depth=3
movq _configs@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rdi
movq _g_config@GOTPCREL(%rip), %rax
movq (%rax), %rsi
callq _strcmp
cmpq $0, %rax
je LBB0_15
## %bb.14: ## in Loop: Header=BB0_11 Depth=3
jmp LBB0_23
LBB0_15: ## in Loop: Header=BB0_11 Depth=3
movq _configs@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -40(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq _data@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq _config_skip_data
cmpq $0, %rax
je LBB0_17
## %bb.16: ## in Loop: Header=BB0_11 Depth=3
jmp LBB0_23
LBB0_17: ## in Loop: Header=BB0_11 Depth=3
movq _methods@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 16(%rax), %rax
movq -32(%rbp), %rdi
movq _configs@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq -40(%rbp), %rdx
movq (%rcx,%rdx,8), %rsi
callq *%rax
movl %eax, -44(%rbp)
movl -44(%rbp), %edi
callq _result_is_skip
cmpq $0, %rax
je LBB0_19
## %bb.18: ## in Loop: Header=BB0_11 Depth=3
jmp LBB0_23
LBB0_19: ## in Loop: Header=BB0_11 Depth=3
movq -8(%rbp), %rdi
movq _data@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rsi
movq _configs@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rdx
movq _methods@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rcx
callq _tprint_names
movl -44(%rbp), %edi
callq _result_is_error
cmpq $0, %rax
je LBB0_21
## %bb.20: ## in Loop: Header=BB0_11 Depth=3
movq -8(%rbp), %rax
movq %rax, -64(%rbp) ## 8-byte Spill
movl -44(%rbp), %edi
callq _result_get_error_string
movq -64(%rbp), %rdi ## 8-byte Reload
movq %rax, %rdx
leaq L_.str.4(%rip), %rsi
movb $0, %al
callq _tprintf
jmp LBB0_22
LBB0_21: ## in Loop: Header=BB0_11 Depth=3
movq -8(%rbp), %rax
movq %rax, -72(%rbp) ## 8-byte Spill
movl -44(%rbp), %edi
callq _result_get_data
movq -72(%rbp), %rdi ## 8-byte Reload
movq %rax, -56(%rbp)
movq -56(%rbp), %rdx
leaq L_.str.5(%rip), %rsi
movb $0, %al
callq _tprintf
LBB0_22: ## in Loop: Header=BB0_11 Depth=3
movq -8(%rbp), %rdi
callq _tflush
LBB0_23: ## in Loop: Header=BB0_11 Depth=3
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
jmp LBB0_11
LBB0_24: ## in Loop: Header=BB0_6 Depth=2
movq _methods@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 8(%rax), %rax
movq -32(%rbp), %rdi
callq *%rax
LBB0_25: ## in Loop: Header=BB0_6 Depth=2
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp LBB0_6
LBB0_26: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_27
LBB0_27: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_28:
xorl %eax, %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Data"
L_.str.1: ## @.str.1
.asciz "Config"
L_.str.2: ## @.str.2
.asciz "Method"
L_.str.3: ## @.str.3
.asciz "Total compressed size\n"
.comm _methods,8,3 ## @methods
.comm _g_method,8,3 ## @g_method
.comm _data,8,3 ## @data
.comm _g_data,8,3 ## @g_data
.comm _configs,8,3 ## @configs
.comm _g_config,8,3 ## @g_config
L_.str.4: ## @.str.4
.asciz "%s\n"
L_.str.5: ## @.str.5
.asciz "%llu\n"
.no_dead_strip _run_all
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_test.c_run_all.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tprint_names ; -- Begin function tprint_names
.p2align 2
_tprint_names: ; @tprint_names
.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, _g_max_name_len@GOTPAGE
ldr x8, [x8, _g_max_name_len@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]
ldr w8, [x8]
str w8, [sp, #32] ; 4-byte Folded Spill
ldur x0, [x29, #-16]
bl _strlen
ldr w9, [sp, #32] ; 4-byte Folded Reload
ldr x8, [sp, #40] ; 8-byte Folded Reload
subs w9, w9, w0
stur w9, [x29, #-36]
ldr w8, [x8]
str w8, [sp, #36] ; 4-byte Folded Spill
ldur x0, [x29, #-24]
bl _strlen
ldr w9, [sp, #36] ; 4-byte Folded Reload
ldr x8, [sp, #40] ; 8-byte Folded Reload
subs w9, w9, w0
stur w9, [x29, #-40]
ldr w8, [x8]
str w8, [sp, #48] ; 4-byte Folded Spill
ldur x0, [x29, #-32]
bl _strlen
ldr w8, [sp, #48] ; 4-byte Folded Reload
subs w8, w8, w0
stur w8, [x29, #-44]
ldur x0, [x29, #-8]
ldur x2, [x29, #-16]
ldur w3, [x29, #-36]
ldur x5, [x29, #-24]
ldur w6, [x29, #-40]
ldur x10, [x29, #-32]
ldur w8, [x29, #-44]
mov x9, sp
str x10, [x9]
str w8, [x9, #8]
adrp x7, l_.str.1@PAGE
add x7, x7, l_.str.1@PAGEOFF
mov x8, x7
str x8, [x9, #16]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov x4, x7
bl _tprintf
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.comm _g_max_name_len,4,2 ; @g_max_name_len
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s, %*s%s, %*s%s, %*s"
l_.str.1: ; @.str.1
.space 1
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tprint_names ## -- Begin function tprint_names
.p2align 4, 0x90
_tprint_names: ## @tprint_names
.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
subq $104, %rsp
.cfi_offset %rbx, -24
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq %rcx, -40(%rbp)
movq _g_max_name_len@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -64(%rbp) ## 4-byte Spill
movq -24(%rbp), %rdi
callq _strlen
movl %eax, %ecx
movl -64(%rbp), %eax ## 4-byte Reload
subl %ecx, %eax
movl %eax, -44(%rbp)
movq _g_max_name_len@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -60(%rbp) ## 4-byte Spill
movq -32(%rbp), %rdi
callq _strlen
movl %eax, %ecx
movl -60(%rbp), %eax ## 4-byte Reload
subl %ecx, %eax
movl %eax, -48(%rbp)
movq _g_max_name_len@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -56(%rbp) ## 4-byte Spill
movq -40(%rbp), %rdi
callq _strlen
movl %eax, %ecx
movl -56(%rbp), %eax ## 4-byte Reload
subl %ecx, %eax
movl %eax, -52(%rbp)
movq -16(%rbp), %rdi
movq -24(%rbp), %rdx
movl -44(%rbp), %ecx
movq -32(%rbp), %r9
movl -48(%rbp), %ebx
movq -40(%rbp), %r11
movl -52(%rbp), %r10d
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rax
movq %rax, %r8
movl %ebx, (%rsp)
movq %rax, 8(%rsp)
movq %r11, 16(%rsp)
movl %r10d, 24(%rsp)
movq %rax, 32(%rsp)
callq _tprintf
addq $104, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_max_name_len,4,2 ## @g_max_name_len
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s, %*s%s, %*s%s, %*s"
L_.str.1: ## @.str.1
.space 1
.subsections_via_symbols
| AnghaBench/zstd/tests/regression/extr_test.c_tprint_names.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _BMK_SetBlockSize ; -- Begin function BMK_SetBlockSize
.p2align 2
_BMK_SetBlockSize: ; @BMK_SetBlockSize
.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]
adrp x9, _g_blockSize@GOTPAGE
ldr x9, [x9, _g_blockSize@GOTPAGEOFF]
str x8, [x9]
ldr x8, [sp, #8]
lsr x8, x8, #10
mov x2, x8
mov w0, #2
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _DISPLAYLEVEL
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _g_blockSize,8,3 ; @g_blockSize
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "using blocks of size %u KB \n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _BMK_SetBlockSize ## -- Begin function BMK_SetBlockSize
.p2align 4, 0x90
_BMK_SetBlockSize: ## @BMK_SetBlockSize
.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), %rcx
movq _g_blockSize@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq -8(%rbp), %rax
shrq $10, %rax
movl %eax, %edx
movl $2, %edi
leaq L_.str(%rip), %rsi
callq _DISPLAYLEVEL
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_blockSize,8,3 ## @g_blockSize
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "using blocks of size %u KB \n"
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/examples/extr_zwrapbench.c_BMK_SetBlockSize.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _BMK_SetNbIterations ; -- Begin function BMK_SetNbIterations
.p2align 2
_BMK_SetNbIterations: ; @BMK_SetNbIterations
.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
stur w0, [x29, #-4]
ldur w9, [x29, #-4]
adrp x8, _g_nbIterations@GOTPAGE
ldr x8, [x8, _g_nbIterations@GOTPAGEOFF]
str w9, [x8]
ldr w2, [x8]
mov w0, #3
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _DISPLAYLEVEL
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _g_nbIterations,4,2 ; @g_nbIterations
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "- test >= %u seconds per compression / decompression -\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _BMK_SetNbIterations ## -- Begin function BMK_SetNbIterations
.p2align 4, 0x90
_BMK_SetNbIterations: ## @BMK_SetNbIterations
.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, -4(%rbp)
movl -4(%rbp), %ecx
movq _g_nbIterations@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _g_nbIterations@GOTPCREL(%rip), %rax
movl (%rax), %edx
movl $3, %edi
leaq L_.str(%rip), %rsi
callq _DISPLAYLEVEL
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_nbIterations,4,2 ## @g_nbIterations
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "- test >= %u seconds per compression / decompression -\n"
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/examples/extr_zwrapbench.c_BMK_SetNbIterations.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function BMK_benchCLevel
_BMK_benchCLevel: ; @BMK_benchCLevel
.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
ldr x8, [x29, #16]
adrp x9, _ZSTD_VERSION_STRING@GOTPAGE
ldr x9, [x9, _ZSTD_VERSION_STRING@GOTPAGEOFF]
str x9, [sp, #48] ; 8-byte Folded Spill
adrp x9, _ZLIB_VERSION@GOTPAGE
ldr x9, [x9, _ZLIB_VERSION@GOTPAGEOFF]
str x9, [sp, #56] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur w3, [x29, #-28]
stur w4, [x29, #-32]
stur x5, [x29, #-40]
stur w6, [x29, #-44]
stur x7, [x29, #-56]
stur x8, [x29, #-64]
ldur x0, [x29, #-24]
mov w1, #92
bl _strrchr
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:
ldur x0, [x29, #-24]
mov w1, #47
bl _strrchr
str x0, [sp, #64]
b LBB0_2
LBB0_2:
ldr x8, [sp, #64]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #64]
add x8, x8, #1
stur x8, [x29, #-24]
b LBB0_4
LBB0_4:
adrp x8, _g_displayLevel@GOTPAGE
ldr x8, [x8, _g_displayLevel@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_5
LBB0_5:
adrp x8, _g_additionalParam@GOTPAGE
ldr x8, [x8, _g_additionalParam@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr w8, [x8]
; implicit-def: $x13
mov x13, x8
adrp x8, _ZSTD_GIT_COMMIT_STRING@GOTPAGE
ldr x8, [x8, _ZSTD_GIT_COMMIT_STRING@GOTPAGEOFF]
ldr w8, [x8]
; implicit-def: $x12
mov x12, x8
ldur x11, [x29, #-16]
adrp x8, _g_nbIterations@GOTPAGE
ldr x8, [x8, _g_nbIterations@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
adrp x9, _g_blockSize@GOTPAGE
ldr x9, [x9, _g_blockSize@GOTPAGEOFF]
ldr w9, [x9]
asr w10, w9, #10
mov x9, sp
str x13, [x9]
str x12, [x9, #8]
str x11, [x9, #16]
str x8, [x9, #24]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #32]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
b LBB0_7
LBB0_7:
ldur w8, [x29, #-32]
ldur w9, [x29, #-28]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldur w8, [x29, #-28]
stur w8, [x29, #-32]
b LBB0_9
LBB0_9:
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
ldur w8, [x29, #-28]
stur w8, [x29, #-68]
b LBB0_10
LBB0_10: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-68]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_13
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_10 Depth=1
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
ldur w3, [x29, #-68]
ldur x4, [x29, #-40]
ldur w5, [x29, #-44]
ldur x6, [x29, #-56]
ldur x7, [x29, #-64]
adrp x8, _BMK_ZSTD_STREAM@GOTPAGE
ldr x8, [x8, _BMK_ZSTD_STREAM@GOTPAGEOFF]
ldr w8, [x8]
mov x9, sp
str w8, [x9]
bl _BMK_benchMem
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_10 Depth=1
ldur w8, [x29, #-68]
add w8, w8, #1
stur w8, [x29, #-68]
b LBB0_10
LBB0_13:
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
ldur w8, [x29, #-28]
stur w8, [x29, #-68]
b LBB0_14
LBB0_14: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-68]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_17
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_14 Depth=1
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
ldur w3, [x29, #-68]
ldur x4, [x29, #-40]
ldur w5, [x29, #-44]
ldur x6, [x29, #-56]
ldur x7, [x29, #-64]
adrp x8, _BMK_ZSTD@GOTPAGE
ldr x8, [x8, _BMK_ZSTD@GOTPAGEOFF]
ldr w8, [x8]
mov x9, sp
str w8, [x9]
bl _BMK_benchMem
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_14 Depth=1
ldur w8, [x29, #-68]
add w8, w8, #1
stur w8, [x29, #-68]
b LBB0_14
LBB0_17:
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
ldur w8, [x29, #-28]
stur w8, [x29, #-68]
b LBB0_18
LBB0_18: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-68]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_21
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_18 Depth=1
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
ldur w3, [x29, #-68]
ldur x4, [x29, #-40]
ldur w5, [x29, #-44]
ldur x6, [x29, #-56]
ldur x7, [x29, #-64]
adrp x8, _BMK_ZWRAP_ZSTD_REUSE@GOTPAGE
ldr x8, [x8, _BMK_ZWRAP_ZSTD_REUSE@GOTPAGEOFF]
ldr w8, [x8]
mov x9, sp
str w8, [x9]
bl _BMK_benchMem
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_18 Depth=1
ldur w8, [x29, #-68]
add w8, w8, #1
stur w8, [x29, #-68]
b LBB0_18
LBB0_21:
ldr x8, [sp, #48] ; 8-byte Folded Reload
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
ldur w8, [x29, #-28]
stur w8, [x29, #-68]
b LBB0_22
LBB0_22: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-68]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_25
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_22 Depth=1
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
ldur w3, [x29, #-68]
ldur x4, [x29, #-40]
ldur w5, [x29, #-44]
ldur x6, [x29, #-56]
ldur x7, [x29, #-64]
adrp x8, _BMK_ZWRAP_ZSTD@GOTPAGE
ldr x8, [x8, _BMK_ZWRAP_ZSTD@GOTPAGEOFF]
ldr w8, [x8]
mov x9, sp
str w8, [x9]
bl _BMK_benchMem
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_22 Depth=1
ldur w8, [x29, #-68]
add w8, w8, #1
stur w8, [x29, #-68]
b LBB0_22
LBB0_25:
ldur w8, [x29, #-32]
adrp x9, _Z_BEST_COMPRESSION@GOTPAGE
ldr x9, [x9, _Z_BEST_COMPRESSION@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_27
b LBB0_26
LBB0_26:
adrp x8, _Z_BEST_COMPRESSION@GOTPAGE
ldr x8, [x8, _Z_BEST_COMPRESSION@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-32]
b LBB0_27
LBB0_27:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _DISPLAY
ldur w8, [x29, #-28]
stur w8, [x29, #-68]
b LBB0_28
LBB0_28: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-68]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_31
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_28 Depth=1
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
ldur w3, [x29, #-68]
ldur x4, [x29, #-40]
ldur w5, [x29, #-44]
ldur x6, [x29, #-56]
ldur x7, [x29, #-64]
adrp x8, _BMK_ZLIB_REUSE@GOTPAGE
ldr x8, [x8, _BMK_ZLIB_REUSE@GOTPAGEOFF]
ldr w8, [x8]
mov x9, sp
str w8, [x9]
bl _BMK_benchMem
b LBB0_30
LBB0_30: ; in Loop: Header=BB0_28 Depth=1
ldur w8, [x29, #-68]
add w8, w8, #1
stur w8, [x29, #-68]
b LBB0_28
LBB0_31:
ldr x8, [sp, #56] ; 8-byte Folded Reload
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
ldur w8, [x29, #-28]
stur w8, [x29, #-68]
b LBB0_32
LBB0_32: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-68]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_35
b LBB0_33
LBB0_33: ; in Loop: Header=BB0_32 Depth=1
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
ldur w3, [x29, #-68]
ldur x4, [x29, #-40]
ldur w5, [x29, #-44]
ldur x6, [x29, #-56]
ldur x7, [x29, #-64]
adrp x8, _BMK_ZLIB@GOTPAGE
ldr x8, [x8, _BMK_ZLIB@GOTPAGEOFF]
ldr w8, [x8]
mov x9, sp
str w8, [x9]
bl _BMK_benchMem
b LBB0_34
LBB0_34: ; in Loop: Header=BB0_32 Depth=1
ldur w8, [x29, #-68]
add w8, w8, #1
stur w8, [x29, #-68]
b LBB0_32
LBB0_35:
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _DISPLAY
ldur w8, [x29, #-28]
stur w8, [x29, #-68]
b LBB0_36
LBB0_36: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-68]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_39
b LBB0_37
LBB0_37: ; in Loop: Header=BB0_36 Depth=1
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
ldur w3, [x29, #-68]
ldur x4, [x29, #-40]
ldur w5, [x29, #-44]
ldur x6, [x29, #-56]
ldur x7, [x29, #-64]
adrp x8, _BMK_ZWRAP_ZLIB_REUSE@GOTPAGE
ldr x8, [x8, _BMK_ZWRAP_ZLIB_REUSE@GOTPAGEOFF]
ldr w8, [x8]
mov x9, sp
str w8, [x9]
bl _BMK_benchMem
b LBB0_38
LBB0_38: ; in Loop: Header=BB0_36 Depth=1
ldur w8, [x29, #-68]
add w8, w8, #1
stur w8, [x29, #-68]
b LBB0_36
LBB0_39:
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _DISPLAY
ldur w8, [x29, #-28]
stur w8, [x29, #-68]
b LBB0_40
LBB0_40: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-68]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_43
b LBB0_41
LBB0_41: ; in Loop: Header=BB0_40 Depth=1
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
ldur w3, [x29, #-68]
ldur x4, [x29, #-40]
ldur w5, [x29, #-44]
ldur x6, [x29, #-56]
ldur x7, [x29, #-64]
adrp x8, _BMK_ZWRAP_ZLIB@GOTPAGE
ldr x8, [x8, _BMK_ZWRAP_ZLIB@GOTPAGEOFF]
ldr w8, [x8]
mov x9, sp
str w8, [x9]
bl _BMK_benchMem
b LBB0_42
LBB0_42: ; in Loop: Header=BB0_40 Depth=1
ldur w8, [x29, #-68]
add w8, w8, #1
stur w8, [x29, #-68]
b LBB0_40
LBB0_43:
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
add sp, sp, #160
ret
.cfi_endproc
; -- End function
.comm _SET_REALTIME_PRIORITY,4,2 ; @SET_REALTIME_PRIORITY
.comm _g_displayLevel,4,2 ; @g_displayLevel
.comm _g_additionalParam,4,2 ; @g_additionalParam
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "bench %s %s: input %u bytes, %u seconds, %u KB blocks\n"
.comm _ZSTD_VERSION_STRING,4,2 ; @ZSTD_VERSION_STRING
.comm _ZSTD_GIT_COMMIT_STRING,4,2 ; @ZSTD_GIT_COMMIT_STRING
.comm _g_nbIterations,4,2 ; @g_nbIterations
.comm _g_blockSize,4,2 ; @g_blockSize
l_.str.1: ; @.str.1
.asciz "benchmarking zstd %s (using ZSTD_CStream)\n"
.comm _BMK_ZSTD_STREAM,4,2 ; @BMK_ZSTD_STREAM
l_.str.2: ; @.str.2
.asciz "benchmarking zstd %s (using ZSTD_CCtx)\n"
.comm _BMK_ZSTD,4,2 ; @BMK_ZSTD
l_.str.3: ; @.str.3
.asciz "benchmarking zstd %s (using zlibWrapper)\n"
.comm _BMK_ZWRAP_ZSTD_REUSE,4,2 ; @BMK_ZWRAP_ZSTD_REUSE
l_.str.4: ; @.str.4
.asciz "benchmarking zstd %s (zlibWrapper not reusing a context)\n"
.comm _BMK_ZWRAP_ZSTD,4,2 ; @BMK_ZWRAP_ZSTD
.comm _Z_BEST_COMPRESSION,4,2 ; @Z_BEST_COMPRESSION
l_.str.5: ; @.str.5
.asciz "\n"
l_.str.6: ; @.str.6
.asciz "benchmarking zlib %s\n"
.comm _ZLIB_VERSION,4,2 ; @ZLIB_VERSION
.comm _BMK_ZLIB_REUSE,4,2 ; @BMK_ZLIB_REUSE
l_.str.7: ; @.str.7
.asciz "benchmarking zlib %s (zlib not reusing a context)\n"
.comm _BMK_ZLIB,4,2 ; @BMK_ZLIB
l_.str.8: ; @.str.8
.asciz "benchmarking zlib %s (using zlibWrapper)\n"
.comm _BMK_ZWRAP_ZLIB_REUSE,4,2 ; @BMK_ZWRAP_ZLIB_REUSE
l_.str.9: ; @.str.9
.asciz "benchmarking zlib %s (zlibWrapper not reusing a context)\n"
.comm _BMK_ZWRAP_ZLIB,4,2 ; @BMK_ZWRAP_ZLIB
.no_dead_strip _BMK_benchCLevel
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function BMK_benchCLevel
_BMK_benchCLevel: ## @BMK_benchCLevel
.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 32(%rbp), %rax
movq 24(%rbp), %rax
movl 16(%rbp), %eax
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movl %ecx, -28(%rbp)
movl %r8d, -32(%rbp)
movq %r9, -40(%rbp)
movq -24(%rbp), %rdi
movl $92, %esi
callq _strrchr
movq %rax, -56(%rbp)
cmpq $0, -56(%rbp)
jne LBB0_2
## %bb.1:
movq -24(%rbp), %rdi
movl $47, %esi
callq _strrchr
movq %rax, -56(%rbp)
LBB0_2:
cmpq $0, -56(%rbp)
je LBB0_4
## %bb.3:
movq -56(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
LBB0_4:
movq _g_displayLevel@GOTPCREL(%rip), %rax
cmpl $1, (%rax)
jne LBB0_7
## %bb.5:
movq _g_additionalParam@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB0_7
## %bb.6:
movq _ZSTD_VERSION_STRING@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _ZSTD_GIT_COMMIT_STRING@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq -16(%rbp), %rax
movl %eax, %ecx
movq _g_nbIterations@GOTPCREL(%rip), %rax
movl (%rax), %r8d
movq _g_blockSize@GOTPCREL(%rip), %rax
movl (%rax), %r9d
sarl $10, %r9d
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
LBB0_7:
movl -32(%rbp), %eax
cmpl -28(%rbp), %eax
jge LBB0_9
## %bb.8:
movl -28(%rbp), %eax
movl %eax, -32(%rbp)
LBB0_9:
movq _ZSTD_VERSION_STRING@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl -28(%rbp), %eax
movl %eax, -44(%rbp)
LBB0_10: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
cmpl -32(%rbp), %eax
jg LBB0_13
## %bb.11: ## in Loop: Header=BB0_10 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
movl -44(%rbp), %ecx
movq -40(%rbp), %r8
movl 16(%rbp), %r9d
movq 24(%rbp), %r11
movq 32(%rbp), %r10
movq _BMK_ZSTD_STREAM@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq %r11, (%rsp)
movq %r10, 8(%rsp)
movl %eax, 16(%rsp)
callq _BMK_benchMem
## %bb.12: ## in Loop: Header=BB0_10 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_10
LBB0_13:
movq _ZSTD_VERSION_STRING@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl -28(%rbp), %eax
movl %eax, -44(%rbp)
LBB0_14: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
cmpl -32(%rbp), %eax
jg LBB0_17
## %bb.15: ## in Loop: Header=BB0_14 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
movl -44(%rbp), %ecx
movq -40(%rbp), %r8
movl 16(%rbp), %r9d
movq 24(%rbp), %r11
movq 32(%rbp), %r10
movq _BMK_ZSTD@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq %r11, (%rsp)
movq %r10, 8(%rsp)
movl %eax, 16(%rsp)
callq _BMK_benchMem
## %bb.16: ## in Loop: Header=BB0_14 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_14
LBB0_17:
movq _ZSTD_VERSION_STRING@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl -28(%rbp), %eax
movl %eax, -44(%rbp)
LBB0_18: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
cmpl -32(%rbp), %eax
jg LBB0_21
## %bb.19: ## in Loop: Header=BB0_18 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
movl -44(%rbp), %ecx
movq -40(%rbp), %r8
movl 16(%rbp), %r9d
movq 24(%rbp), %r11
movq 32(%rbp), %r10
movq _BMK_ZWRAP_ZSTD_REUSE@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq %r11, (%rsp)
movq %r10, 8(%rsp)
movl %eax, 16(%rsp)
callq _BMK_benchMem
## %bb.20: ## in Loop: Header=BB0_18 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_18
LBB0_21:
movq _ZSTD_VERSION_STRING@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl -28(%rbp), %eax
movl %eax, -44(%rbp)
LBB0_22: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
cmpl -32(%rbp), %eax
jg LBB0_25
## %bb.23: ## in Loop: Header=BB0_22 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
movl -44(%rbp), %ecx
movq -40(%rbp), %r8
movl 16(%rbp), %r9d
movq 24(%rbp), %r11
movq 32(%rbp), %r10
movq _BMK_ZWRAP_ZSTD@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq %r11, (%rsp)
movq %r10, 8(%rsp)
movl %eax, 16(%rsp)
callq _BMK_benchMem
## %bb.24: ## in Loop: Header=BB0_22 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_22
LBB0_25:
movl -32(%rbp), %eax
movq _Z_BEST_COMPRESSION@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jle LBB0_27
## %bb.26:
movq _Z_BEST_COMPRESSION@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -32(%rbp)
LBB0_27:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _ZLIB_VERSION@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl -28(%rbp), %eax
movl %eax, -44(%rbp)
LBB0_28: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
cmpl -32(%rbp), %eax
jg LBB0_31
## %bb.29: ## in Loop: Header=BB0_28 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
movl -44(%rbp), %ecx
movq -40(%rbp), %r8
movl 16(%rbp), %r9d
movq 24(%rbp), %r11
movq 32(%rbp), %r10
movq _BMK_ZLIB_REUSE@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq %r11, (%rsp)
movq %r10, 8(%rsp)
movl %eax, 16(%rsp)
callq _BMK_benchMem
## %bb.30: ## in Loop: Header=BB0_28 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_28
LBB0_31:
movq _ZLIB_VERSION@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl -28(%rbp), %eax
movl %eax, -44(%rbp)
LBB0_32: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
cmpl -32(%rbp), %eax
jg LBB0_35
## %bb.33: ## in Loop: Header=BB0_32 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
movl -44(%rbp), %ecx
movq -40(%rbp), %r8
movl 16(%rbp), %r9d
movq 24(%rbp), %r11
movq 32(%rbp), %r10
movq _BMK_ZLIB@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq %r11, (%rsp)
movq %r10, 8(%rsp)
movl %eax, 16(%rsp)
callq _BMK_benchMem
## %bb.34: ## in Loop: Header=BB0_32 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_32
LBB0_35:
movq _ZLIB_VERSION@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl -28(%rbp), %eax
movl %eax, -44(%rbp)
LBB0_36: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
cmpl -32(%rbp), %eax
jg LBB0_39
## %bb.37: ## in Loop: Header=BB0_36 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
movl -44(%rbp), %ecx
movq -40(%rbp), %r8
movl 16(%rbp), %r9d
movq 24(%rbp), %r11
movq 32(%rbp), %r10
movq _BMK_ZWRAP_ZLIB_REUSE@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq %r11, (%rsp)
movq %r10, 8(%rsp)
movl %eax, 16(%rsp)
callq _BMK_benchMem
## %bb.38: ## in Loop: Header=BB0_36 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_36
LBB0_39:
movq _ZLIB_VERSION@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl -28(%rbp), %eax
movl %eax, -44(%rbp)
LBB0_40: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
cmpl -32(%rbp), %eax
jg LBB0_43
## %bb.41: ## in Loop: Header=BB0_40 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
movl -44(%rbp), %ecx
movq -40(%rbp), %r8
movl 16(%rbp), %r9d
movq 24(%rbp), %r11
movq 32(%rbp), %r10
movq _BMK_ZWRAP_ZLIB@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq %r11, (%rsp)
movq %r10, 8(%rsp)
movl %eax, 16(%rsp)
callq _BMK_benchMem
## %bb.42: ## in Loop: Header=BB0_40 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_40
LBB0_43:
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _SET_REALTIME_PRIORITY,4,2 ## @SET_REALTIME_PRIORITY
.comm _g_displayLevel,4,2 ## @g_displayLevel
.comm _g_additionalParam,4,2 ## @g_additionalParam
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "bench %s %s: input %u bytes, %u seconds, %u KB blocks\n"
.comm _ZSTD_VERSION_STRING,4,2 ## @ZSTD_VERSION_STRING
.comm _ZSTD_GIT_COMMIT_STRING,4,2 ## @ZSTD_GIT_COMMIT_STRING
.comm _g_nbIterations,4,2 ## @g_nbIterations
.comm _g_blockSize,4,2 ## @g_blockSize
L_.str.1: ## @.str.1
.asciz "benchmarking zstd %s (using ZSTD_CStream)\n"
.comm _BMK_ZSTD_STREAM,4,2 ## @BMK_ZSTD_STREAM
L_.str.2: ## @.str.2
.asciz "benchmarking zstd %s (using ZSTD_CCtx)\n"
.comm _BMK_ZSTD,4,2 ## @BMK_ZSTD
L_.str.3: ## @.str.3
.asciz "benchmarking zstd %s (using zlibWrapper)\n"
.comm _BMK_ZWRAP_ZSTD_REUSE,4,2 ## @BMK_ZWRAP_ZSTD_REUSE
L_.str.4: ## @.str.4
.asciz "benchmarking zstd %s (zlibWrapper not reusing a context)\n"
.comm _BMK_ZWRAP_ZSTD,4,2 ## @BMK_ZWRAP_ZSTD
.comm _Z_BEST_COMPRESSION,4,2 ## @Z_BEST_COMPRESSION
L_.str.5: ## @.str.5
.asciz "\n"
L_.str.6: ## @.str.6
.asciz "benchmarking zlib %s\n"
.comm _ZLIB_VERSION,4,2 ## @ZLIB_VERSION
.comm _BMK_ZLIB_REUSE,4,2 ## @BMK_ZLIB_REUSE
L_.str.7: ## @.str.7
.asciz "benchmarking zlib %s (zlib not reusing a context)\n"
.comm _BMK_ZLIB,4,2 ## @BMK_ZLIB
L_.str.8: ## @.str.8
.asciz "benchmarking zlib %s (using zlibWrapper)\n"
.comm _BMK_ZWRAP_ZLIB_REUSE,4,2 ## @BMK_ZWRAP_ZLIB_REUSE
L_.str.9: ## @.str.9
.asciz "benchmarking zlib %s (zlibWrapper not reusing a context)\n"
.comm _BMK_ZWRAP_ZLIB,4,2 ## @BMK_ZWRAP_ZLIB
.no_dead_strip _BMK_benchCLevel
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/examples/extr_zwrapbench.c_BMK_benchCLevel.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 BMK_benchFiles
lCPI0_0:
.quad 0x4059000000000000 ; double 100
.section __TEXT,__text,regular,pure_instructions
.globl _BMK_benchFiles
.p2align 2
_BMK_benchFiles: ; @BMK_benchFiles
.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]
str x2, [sp, #24]
str w3, [sp, #20]
str w4, [sp, #16]
adrp x8, _g_compressibilityDefault@GOTPAGE
ldr x8, [x8, _g_compressibilityDefault@GOTPAGEOFF]
ldr d0, [x8]
scvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
str d0, [sp, #8]
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w0, [sp, #20]
ldr w1, [sp, #16]
ldr d0, [sp, #8]
bl _BMK_syntheticTest
b LBB0_3
LBB0_2:
ldur x0, [x29, #-8]
ldur w1, [x29, #-12]
ldr x2, [sp, #24]
ldr w3, [sp, #20]
ldr w4, [sp, #16]
bl _BMK_benchFileTable
b LBB0_3
LBB0_3:
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _g_compressibilityDefault,8,3 ; @g_compressibilityDefault
.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 BMK_benchFiles
LCPI0_0:
.quad 0x4059000000000000 ## double 100
.section __TEXT,__text,regular,pure_instructions
.globl _BMK_benchFiles
.p2align 4, 0x90
_BMK_benchFiles: ## @BMK_benchFiles
.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)
movq %rdx, -24(%rbp)
movl %ecx, -28(%rbp)
movl %r8d, -32(%rbp)
movq _g_compressibilityDefault@GOTPCREL(%rip), %rax
cvtsi2sdq (%rax), %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movsd %xmm0, -40(%rbp)
cmpl $0, -12(%rbp)
jne LBB0_2
## %bb.1:
movl -28(%rbp), %edi
movl -32(%rbp), %esi
movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero
callq _BMK_syntheticTest
jmp LBB0_3
LBB0_2:
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
movq -24(%rbp), %rdx
movl -28(%rbp), %ecx
movl -32(%rbp), %r8d
callq _BMK_benchFileTable
LBB0_3:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_compressibilityDefault,8,3 ## @g_compressibilityDefault
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/examples/extr_zwrapbench.c_BMK_benchFiles.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function BMK_loadFiles
_BMK_loadFiles: ; @BMK_loadFiles
.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]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
stur w4, [x29, #-36]
str xzr, [sp, #48]
str xzr, [sp, #40]
str wzr, [sp, #36]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
ldur w9, [x29, #-36]
subs w8, w8, w9
cset w8, hs
tbnz w8, #0, LBB0_14
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-32]
ldr w9, [sp, #36]
; kill: def $x9 killed $w9
ldr x0, [x8, x9, lsl #3]
bl _UTIL_getFileSize
str x0, [sp, #16]
ldur x8, [x29, #-32]
ldr w9, [sp, #36]
; kill: def $x9 killed $w9
ldr x0, [x8, x9, lsl #3]
bl _UTIL_isDirectory
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-32]
ldr w9, [sp, #36]
; kill: def $x9 killed $w9
ldr x2, [x8, x9, lsl #3]
mov w0, #2
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _DISPLAYLEVEL
ldur x9, [x29, #-24]
ldr w8, [sp, #36]
mov x10, x8
mov x8, #0
str x8, [x9, x10, lsl #3]
b LBB0_13
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #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_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-32]
ldr w9, [sp, #36]
; kill: def $x9 killed $w9
ldr x2, [x8, x9, lsl #3]
mov w0, #2
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _DISPLAYLEVEL
ldur x9, [x29, #-24]
ldr w8, [sp, #36]
mov x10, x8
mov x8, #0
str x8, [x9, x10, lsl #3]
b LBB0_13
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-32]
ldr w9, [sp, #36]
; kill: def $x9 killed $w9
ldr x0, [x8, x9, lsl #3]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fopen
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-32]
ldr w9, [sp, #36]
; kill: def $x9 killed $w9
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x8, [x9]
mov w0, #10
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _EXM_THROW
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-32]
ldr w9, [sp, #36]
; kill: def $x9 killed $w9
ldr x2, [x8, x9, lsl #3]
mov w0, #2
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _DISPLAYUPDATE
ldr x8, [sp, #16]
ldur x9, [x29, #-16]
ldr x10, [sp, #48]
subs x9, x9, x10
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldr x9, [sp, #48]
subs x8, x8, x9
str x8, [sp, #16]
ldr w8, [sp, #36]
stur w8, [x29, #-36]
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldr x9, [sp, #48]
add x0, x8, x9
ldr x2, [sp, #16]
ldr x3, [sp, #24]
mov w1, #1
bl _fread
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-32]
ldr w9, [sp, #36]
; kill: def $x9 killed $w9
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x8, [x9]
mov w0, #11
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _EXM_THROW
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #8]
ldr x8, [sp, #48]
add x8, x8, x9
str x8, [sp, #48]
ldr x8, [sp, #16]
ldur x9, [x29, #-24]
ldr w10, [sp, #36]
; kill: def $x10 killed $w10
str x8, [x9, x10, lsl #3]
ldr x9, [sp, #16]
ldr x8, [sp, #40]
add x8, x8, x9
str x8, [sp, #40]
ldr x0, [sp, #24]
bl _fclose
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_1
LBB0_14:
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15:
mov w0, #12
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _EXM_THROW
b LBB0_16
LBB0_16:
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 "Ignoring %s directory... \n"
.comm _UTIL_FILESIZE_UNKNOWN,8,3 ; @UTIL_FILESIZE_UNKNOWN
l_.str.1: ; @.str.1
.asciz "Cannot determine size of %s ... \n"
l_.str.2: ; @.str.2
.asciz "rb"
l_.str.3: ; @.str.3
.asciz "impossible to open file %s"
l_.str.4: ; @.str.4
.asciz "Loading %s... \r"
l_.str.5: ; @.str.5
.asciz "could not read %s"
l_.str.6: ; @.str.6
.asciz "no data to bench"
.no_dead_strip _BMK_loadFiles
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function BMK_loadFiles
_BMK_loadFiles: ## @BMK_loadFiles
.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 %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movl %r8d, -36(%rbp)
movq $0, -48(%rbp)
movq $0, -56(%rbp)
movl $0, -60(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -60(%rbp), %eax
cmpl -36(%rbp), %eax
jae LBB0_14
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movl -60(%rbp), %ecx
## kill: def $rcx killed $ecx
movq (%rax,%rcx,8), %rdi
callq _UTIL_getFileSize
movq %rax, -80(%rbp)
movq -32(%rbp), %rax
movl -60(%rbp), %ecx
## kill: def $rcx killed $ecx
movq (%rax,%rcx,8), %rdi
callq _UTIL_isDirectory
cmpq $0, %rax
je LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movl -60(%rbp), %ecx
## kill: def $rcx killed $ecx
movq (%rax,%rcx,8), %rdx
movl $2, %edi
leaq L_.str(%rip), %rsi
callq _DISPLAYLEVEL
movq -24(%rbp), %rax
movl -60(%rbp), %ecx
## kill: def $rcx killed $ecx
movq $0, (%rax,%rcx,8)
jmp LBB0_13
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -80(%rbp), %rax
movq _UTIL_FILESIZE_UNKNOWN@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movl -60(%rbp), %ecx
## kill: def $rcx killed $ecx
movq (%rax,%rcx,8), %rdx
movl $2, %edi
leaq L_.str.1(%rip), %rsi
callq _DISPLAYLEVEL
movq -24(%rbp), %rax
movl -60(%rbp), %ecx
## kill: def $rcx killed $ecx
movq $0, (%rax,%rcx,8)
jmp LBB0_13
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movl -60(%rbp), %ecx
## kill: def $rcx killed $ecx
movq (%rax,%rcx,8), %rdi
leaq L_.str.2(%rip), %rsi
callq _fopen
movq %rax, -72(%rbp)
cmpq $0, -72(%rbp)
jne LBB0_8
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movl -60(%rbp), %ecx
## kill: def $rcx killed $ecx
movq (%rax,%rcx,8), %rdx
movl $10, %edi
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _EXM_THROW
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movl -60(%rbp), %ecx
## kill: def $rcx killed $ecx
movq (%rax,%rcx,8), %rdx
movl $2, %edi
leaq L_.str.4(%rip), %rsi
callq _DISPLAYUPDATE
movq -80(%rbp), %rax
movq -16(%rbp), %rcx
subq -48(%rbp), %rcx
cmpq %rcx, %rax
jbe LBB0_10
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
subq -48(%rbp), %rax
movq %rax, -80(%rbp)
movl -60(%rbp), %eax
movl %eax, -36(%rbp)
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
addq -48(%rbp), %rdi
movq -80(%rbp), %rdx
movq -72(%rbp), %rcx
movl $1, %esi
callq _fread
movq %rax, -88(%rbp)
movq -88(%rbp), %rax
cmpq -80(%rbp), %rax
je LBB0_12
## %bb.11: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movl -60(%rbp), %ecx
## kill: def $rcx killed $ecx
movq (%rax,%rcx,8), %rdx
movl $11, %edi
leaq L_.str.5(%rip), %rsi
movb $0, %al
callq _EXM_THROW
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
movq -88(%rbp), %rax
addq -48(%rbp), %rax
movq %rax, -48(%rbp)
movq -80(%rbp), %rdx
movq -24(%rbp), %rax
movl -60(%rbp), %ecx
## kill: def $rcx killed $ecx
movq %rdx, (%rax,%rcx,8)
movq -80(%rbp), %rax
addq -56(%rbp), %rax
movq %rax, -56(%rbp)
movq -72(%rbp), %rdi
callq _fclose
LBB0_13: ## in Loop: Header=BB0_1 Depth=1
movl -60(%rbp), %eax
addl $1, %eax
movl %eax, -60(%rbp)
jmp LBB0_1
LBB0_14:
cmpq $0, -56(%rbp)
jne LBB0_16
## %bb.15:
movl $12, %edi
leaq L_.str.6(%rip), %rsi
movb $0, %al
callq _EXM_THROW
LBB0_16:
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Ignoring %s directory... \n"
.comm _UTIL_FILESIZE_UNKNOWN,8,3 ## @UTIL_FILESIZE_UNKNOWN
L_.str.1: ## @.str.1
.asciz "Cannot determine size of %s ... \n"
L_.str.2: ## @.str.2
.asciz "rb"
L_.str.3: ## @.str.3
.asciz "impossible to open file %s"
L_.str.4: ## @.str.4
.asciz "Loading %s... \r"
L_.str.5: ## @.str.5
.asciz "could not read %s"
L_.str.6: ## @.str.6
.asciz "no data to bench"
.no_dead_strip _BMK_loadFiles
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/examples/extr_zwrapbench.c_BMK_loadFiles.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _BMK_setAdditionalParam ; -- Begin function BMK_setAdditionalParam
.p2align 2
_BMK_setAdditionalParam: ; @BMK_setAdditionalParam
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w8, [sp, #12]
adrp x9, _g_additionalParam@GOTPAGE
ldr x9, [x9, _g_additionalParam@GOTPAGEOFF]
str w8, [x9]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _g_additionalParam,4,2 ; @g_additionalParam
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _BMK_setAdditionalParam ## -- Begin function BMK_setAdditionalParam
.p2align 4, 0x90
_BMK_setAdditionalParam: ## @BMK_setAdditionalParam
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl -4(%rbp), %ecx
movq _g_additionalParam@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_additionalParam,4,2 ## @g_additionalParam
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/examples/extr_zwrapbench.c_BMK_setAdditionalParam.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _BMK_setNotificationLevel ; -- Begin function BMK_setNotificationLevel
.p2align 2
_BMK_setNotificationLevel: ; @BMK_setNotificationLevel
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w8, [sp, #12]
adrp x9, _g_displayLevel@GOTPAGE
ldr x9, [x9, _g_displayLevel@GOTPAGEOFF]
str w8, [x9]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _g_displayLevel,4,2 ; @g_displayLevel
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _BMK_setNotificationLevel ## -- Begin function BMK_setNotificationLevel
.p2align 4, 0x90
_BMK_setNotificationLevel: ## @BMK_setNotificationLevel
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl -4(%rbp), %ecx
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_displayLevel,4,2 ## @g_displayLevel
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/examples/extr_zwrapbench.c_BMK_setNotificationLevel.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function badusage
_badusage: ; @badusage
.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]
mov w0, #1
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _DISPLAYLEVEL
adrp x8, _g_displayLevel@GOTPAGE
ldr x8, [x8, _g_displayLevel@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #1
cset w8, lt
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x0, [sp, #8]
bl _usage
b LBB0_2
LBB0_2:
mov w0, #1
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 "Incorrect parameters\n"
.comm _g_displayLevel,4,2 ; @g_displayLevel
.no_dead_strip _badusage
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function badusage
_badusage: ## @badusage
.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 $1, %edi
leaq L_.str(%rip), %rsi
callq _DISPLAYLEVEL
movq _g_displayLevel@GOTPCREL(%rip), %rax
cmpl $1, (%rax)
jl LBB0_2
## %bb.1:
movq -8(%rbp), %rdi
callq _usage
LBB0_2:
movl $1, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Incorrect parameters\n"
.comm _g_displayLevel,4,2 ## @g_displayLevel
.no_dead_strip _badusage
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/examples/extr_zwrapbench.c_badusage.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 BMK_syntheticTest
lCPI0_0:
.quad 0x4059000000000000 ; double 100
.section __TEXT,__text,regular,pure_instructions
.p2align 2
_BMK_syntheticTest: ; @BMK_syntheticTest
.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, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur w0, [x29, #-36]
stur w1, [x29, #-40]
str d0, [sp, #48]
stur xzr, [x29, #-32]
stur xzr, [x29, #-24]
stur wzr, [x29, #-16]
mov x8, #38528
movk x8, #152, lsl #16
str x8, [sp, #40]
ldr x0, [sp, #40]
bl _malloc
str x0, [sp, #32]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w0, #21
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _EXM_THROW
b LBB0_2
LBB0_2:
ldr x0, [sp, #32]
add x8, sp, #40
str x8, [sp, #24] ; 8-byte Folded Spill
ldr x1, [sp, #40]
ldr d0, [sp, #48]
movi d1, #0000000000000000
mov w2, #0
bl _RDG_genBuffer
ldr d0, [sp, #48]
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fmul d0, d0, d1
fcvtzu w3, d0
sub x0, x29, #32
str x0, [sp, #16] ; 8-byte Folded Spill
mov w1, #20
adrp x2, l_.str.1@PAGE
add x2, x2, l_.str.1@PAGEOFF
bl _snprintf
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x5, [sp, #24] ; 8-byte Folded Reload
ldr x0, [sp, #32]
ldr x1, [sp, #40]
ldur w3, [x29, #-36]
ldur w4, [x29, #-40]
mov x8, sp
str wzr, [x8]
mov w6, #1
mov x7, #0
bl _BMK_benchCLevel
ldr x0, [sp, #32]
bl _free
ldur x9, [x29, #-8]
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_4
b LBB0_3
LBB0_3:
bl ___stack_chk_fail
LBB0_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 "not enough memory"
l_.str.1: ; @.str.1
.asciz "Synthetic %2u%%"
.no_dead_strip _BMK_syntheticTest
.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 BMK_syntheticTest
LCPI0_0:
.quad 0x4059000000000000 ## double 100
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_BMK_syntheticTest: ## @BMK_syntheticTest
.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 ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl %edi, -36(%rbp)
movl %esi, -40(%rbp)
movsd %xmm0, -48(%rbp)
leaq -32(%rbp), %rdi
xorl %esi, %esi
movl $20, %edx
callq _memset
movq $10000000, -56(%rbp) ## imm = 0x989680
movq -56(%rbp), %rdi
callq _malloc
movq %rax, -64(%rbp)
cmpq $0, -64(%rbp)
jne LBB0_2
## %bb.1:
movl $21, %edi
leaq L_.str(%rip), %rsi
callq _EXM_THROW
LBB0_2:
movq -64(%rbp), %rdi
movq -56(%rbp), %rsi
movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero
xorps %xmm1, %xmm1
xorl %edx, %edx
callq _RDG_genBuffer
leaq -32(%rbp), %rdi
movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, %ecx
movl $20, %esi
leaq L_.str.1(%rip), %rdx
callq _snprintf
movq -64(%rbp), %rdi
movq -56(%rbp), %rsi
leaq -32(%rbp), %rdx
movl -36(%rbp), %ecx
movl -40(%rbp), %r8d
leaq -56(%rbp), %r9
xorl %eax, %eax
## kill: def $rax killed $eax
xorl %eax, %eax
movl $1, (%rsp)
movq $0, 8(%rsp)
movl $0, 16(%rsp)
callq _BMK_benchCLevel
movq -64(%rbp), %rdi
callq _free
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_4
## %bb.3:
addq $96, %rsp
popq %rbp
retq
LBB0_4:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "not enough memory"
L_.str.1: ## @.str.1
.asciz "Synthetic %2u%%"
.no_dead_strip _BMK_syntheticTest
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/examples/extr_zwrapbench.c_BMK_syntheticTest.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, #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
adrp x8, _displayOut@GOTPAGE
ldr x8, [x8, _displayOut@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
adrp x8, _WELCOME_MESSAGE@GOTPAGE
ldr x8, [x8, _WELCOME_MESSAGE@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
adrp x8, _g_displayLevel@GOTPAGE
ldr x8, [x8, _g_displayLevel@GOTPAGEOFF]
str x8, [sp, #40] ; 8-byte Folded Spill
adrp x8, _stdout@GOTPAGE
ldr x8, [x8, _stdout@GOTPAGEOFF]
str x8, [sp, #48] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
stur wzr, [x29, #-24]
stur wzr, [x29, #-28]
stur wzr, [x29, #-32]
stur wzr, [x29, #-36]
adrp x8, _ZSTDCLI_CLEVEL_DEFAULT@GOTPAGE
ldr x8, [x8, _ZSTDCLI_CLEVEL_DEFAULT@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-40]
mov w8, #1
stur w8, [x29, #-44]
stur wzr, [x29, #-48]
ldursw x8, [x29, #-8]
lsl x8, x8, #3
mov x0, x8
bl _malloc
stur x0, [x29, #-56]
stur wzr, [x29, #-60]
ldur x8, [x29, #-16]
ldr x8, [x8]
stur x8, [x29, #-72]
; kill: def $x8 killed $xzr
stur xzr, [x29, #-80]
str xzr, [sp, #88]
ldur x8, [x29, #-56]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _errno@GOTPAGE
ldr x8, [x8, _errno@GOTPAGEOFF]
ldr w0, [x8]
bl _strerror
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
mov w0, #1
bl _exit
LBB0_2:
ldr x9, [sp, #24] ; 8-byte Folded Reload
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
ldr w8, [x8]
str w8, [x9]
ldur x0, [x29, #-72]
bl _strlen
sxtw x8, w0
str x8, [sp, #80]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #80]
subs x8, x8, #0
cset w8, ls
tbnz w8, #0, LBB0_8
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-72]
ldr x9, [sp, #80]
ldrsb w8, [x8, x9]
subs w8, w8, #47
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
b LBB0_8
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #80]
subs x8, x8, #1
str x8, [sp, #80]
b LBB0_3
LBB0_8:
ldr x9, [sp, #80]
ldur x8, [x29, #-72]
add x8, x8, x9
stur x8, [x29, #-72]
mov w8, #1
stur w8, [x29, #-20]
b LBB0_9
LBB0_9: ; =>This Loop Header: Depth=1
; Child Loop BB0_25 Depth 2
ldur w8, [x29, #-20]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_56
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #72]
ldr x8, [sp, #72]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_9 Depth=1
b LBB0_55
LBB0_12: ; in Loop: Header=BB0_9 Depth=1
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_52
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_9 Depth=1
ldr x0, [sp, #72]
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_15
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_9 Depth=1
mov w8, #1
stur w8, [x29, #-36]
b LBB0_55
LBB0_15: ; in Loop: Header=BB0_9 Depth=1
ldr x0, [sp, #72]
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_17
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_9 Depth=1
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x10, [sp, #24] ; 8-byte Folded Reload
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr w9, [x9]
str w9, [x10]
ldrsw x0, [x8]
bl _DISPLAY
mov w0, #0
bl _CLEAN_RETURN
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_9 Depth=1
ldr x0, [sp, #72]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_9 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr w8, [x8]
str w8, [x9]
ldur x0, [x29, #-72]
bl _usage
bl _CLEAN_RETURN
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_9 Depth=1
ldr x0, [sp, #72]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_9 Depth=1
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB0_55
LBB0_21: ; in Loop: Header=BB0_9 Depth=1
ldr x0, [sp, #72]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_23
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_9 Depth=1
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldr w8, [x9]
subs w8, w8, #1
str w8, [x9]
b LBB0_55
LBB0_23: ; in Loop: Header=BB0_9 Depth=1
ldr x8, [sp, #72]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB0_51
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_9 Depth=1
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
b LBB0_25
LBB0_25: ; Parent Loop BB0_9 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #72]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_50
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_25 Depth=2
ldr x8, [sp, #72]
ldrsb w8, [x8]
subs w8, w8, #66
; kill: def $x8 killed $w8
str x8, [sp, #16] ; 8-byte Folded Spill
subs x8, x8, #52
cset w8, hi
tbnz w8, #0, LBB0_48
; %bb.27: ; in Loop: Header=BB0_25 Depth=2
ldr x11, [sp, #16] ; 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_28: ; in Loop: Header=BB0_25 Depth=2
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x10, [sp, #24] ; 8-byte Folded Reload
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr w9, [x9]
str w9, [x10]
ldrsw x0, [x8]
bl _DISPLAY
mov w0, #0
bl _CLEAN_RETURN
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_25 Depth=2
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr w8, [x8]
str w8, [x9]
ldur x0, [x29, #-72]
bl _usage
bl _CLEAN_RETURN
b LBB0_30
LBB0_30: ; in Loop: Header=BB0_25 Depth=2
mov w8, #1
stur w8, [x29, #-28]
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
b LBB0_49
LBB0_31: ; in Loop: Header=BB0_25 Depth=2
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
b LBB0_49
LBB0_32: ; in Loop: Header=BB0_25 Depth=2
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldr w8, [x9]
subs w8, w8, #1
str w8, [x9]
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
b LBB0_49
LBB0_33: ; in Loop: Header=BB0_25 Depth=2
add x0, sp, #72
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
bl _readU32FromChar
mov x8, x0
stur w8, [x29, #-40]
b LBB0_49
LBB0_34: ; in Loop: Header=BB0_25 Depth=2
add x0, sp, #72
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
bl _readU32FromChar
mov x8, x0
stur w8, [x29, #-44]
b LBB0_49
LBB0_35: ; in Loop: Header=BB0_25 Depth=2
add x0, sp, #72
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
bl _readU32FromChar
ldr x8, [sp, #40] ; 8-byte Folded Reload
str x0, [sp, #64]
ldr w0, [x8]
bl _BMK_setNotificationLevel
ldr x0, [sp, #64]
bl _BMK_SetNbIterations
b LBB0_49
LBB0_36: ; in Loop: Header=BB0_25 Depth=2
add x0, sp, #72
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
bl _readU32FromChar
str x0, [sp, #56]
ldr x8, [sp, #72]
ldrsb w0, [x8]
bl _toupper
sxtb w8, w0
subs w8, w8, #75
cset w8, ne
tbnz w8, #0, LBB0_38
b LBB0_37
LBB0_37: ; in Loop: Header=BB0_25 Depth=2
ldr x8, [sp, #56]
lsl x8, x8, #10
str x8, [sp, #56]
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
b LBB0_38
LBB0_38: ; in Loop: Header=BB0_25 Depth=2
ldr x8, [sp, #72]
ldrsb w0, [x8]
bl _toupper
sxtb w8, w0
subs w8, w8, #77
cset w8, ne
tbnz w8, #0, LBB0_40
b LBB0_39
LBB0_39: ; in Loop: Header=BB0_25 Depth=2
ldr x8, [sp, #56]
lsl x8, x8, #20
str x8, [sp, #56]
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
b LBB0_40
LBB0_40: ; in Loop: Header=BB0_25 Depth=2
ldr x8, [sp, #72]
ldrsb w0, [x8]
bl _toupper
sxtb w8, w0
subs w8, w8, #66
cset w8, ne
tbnz w8, #0, LBB0_42
b LBB0_41
LBB0_41: ; in Loop: Header=BB0_25 Depth=2
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
b LBB0_42
LBB0_42: ; in Loop: Header=BB0_25 Depth=2
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w0, [x8]
bl _BMK_setNotificationLevel
ldr x0, [sp, #56]
bl _BMK_SetBlockSize
b LBB0_49
LBB0_43: ; in Loop: Header=BB0_25 Depth=2
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
ldr x8, [sp, #72]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
tbnz w8, #0, LBB0_46
b LBB0_44
LBB0_44: ; in Loop: Header=BB0_25 Depth=2
ldr x8, [sp, #72]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, gt
tbnz w8, #0, LBB0_46
b LBB0_45
LBB0_45: ; in Loop: Header=BB0_25 Depth=2
add x0, sp, #72
bl _readU32FromChar
bl _BMK_setAdditionalParam
b LBB0_47
LBB0_46: ; in Loop: Header=BB0_25 Depth=2
mov w8, #1
stur w8, [x29, #-24]
b LBB0_47
LBB0_47: ; in Loop: Header=BB0_25 Depth=2
b LBB0_49
LBB0_48: ; in Loop: Header=BB0_25 Depth=2
ldur x0, [x29, #-72]
bl _badusage
bl _CLEAN_RETURN
b LBB0_49
LBB0_49: ; in Loop: Header=BB0_25 Depth=2
b LBB0_25
LBB0_50: ; in Loop: Header=BB0_9 Depth=1
b LBB0_55
LBB0_51: ; in Loop: Header=BB0_9 Depth=1
b LBB0_52
LBB0_52: ; in Loop: Header=BB0_9 Depth=1
ldur w8, [x29, #-28]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_54
b LBB0_53
LBB0_53: ; in Loop: Header=BB0_9 Depth=1
stur wzr, [x29, #-28]
ldr x8, [sp, #72]
stur x8, [x29, #-80]
b LBB0_55
LBB0_54: ; in Loop: Header=BB0_9 Depth=1
ldr x8, [sp, #72]
ldur x9, [x29, #-56]
ldur w10, [x29, #-60]
; kill: def $x10 killed $w10
mov x11, x10
add w11, w11, #1
stur w11, [x29, #-60]
str x8, [x9, x10, lsl #3]
b LBB0_55
LBB0_55: ; in Loop: Header=BB0_9 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_9
LBB0_56:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldrsw x1, [x8]
mov w0, #3
bl _DISPLAYLEVEL
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w0, [x8]
bl _BMK_setNotificationLevel
ldur x0, [x29, #-56]
ldur w1, [x29, #-60]
ldur x2, [x29, #-80]
ldur w3, [x29, #-40]
ldur w4, [x29, #-44]
bl _BMK_benchFiles
b LBB0_57
LBB0_57:
ldur w8, [x29, #-24]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_59
b LBB0_58
LBB0_58:
bl _waitEnter
b LBB0_59
LBB0_59:
ldr x0, [sp, #88]
bl _free
ldur x0, [x29, #-56]
bl _free
ldur w0, [x29, #-32]
ldp x29, x30, [sp, #176] ; 16-byte Folded Reload
add sp, sp, #192
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_36-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_30-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_29-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_28-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_33-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_34-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_29-Ltmp0
.long LBB0_35-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_43-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_31-Ltmp0
; -- End function
.comm _ZSTDCLI_CLEVEL_DEFAULT,4,2 ; @ZSTDCLI_CLEVEL_DEFAULT
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "zstd: %s \n"
.comm _errno,4,2 ; @errno
.comm _stderr,4,2 ; @stderr
.comm _displayOut,4,2 ; @displayOut
l_.str.1: ; @.str.1
.asciz "--"
l_.str.2: ; @.str.2
.asciz "--version"
.comm _stdout,4,2 ; @stdout
.comm _WELCOME_MESSAGE,4,2 ; @WELCOME_MESSAGE
l_.str.3: ; @.str.3
.asciz "--help"
l_.str.4: ; @.str.4
.asciz "--verbose"
.comm _g_displayLevel,4,2 ; @g_displayLevel
l_.str.5: ; @.str.5
.asciz "--quiet"
.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 $128, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $0, -24(%rbp)
movl $0, -28(%rbp)
movl $0, -32(%rbp)
movl $0, -36(%rbp)
movq _ZSTDCLI_CLEVEL_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -40(%rbp)
movl $1, -44(%rbp)
movl $0, -48(%rbp)
movslq -8(%rbp), %rax
shlq $3, %rax
movl %eax, %edi
callq _malloc
movq %rax, -56(%rbp)
movl $0, -60(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -72(%rbp)
movq $0, -80(%rbp)
movq $0, -88(%rbp)
cmpq $0, -56(%rbp)
jne LBB0_2
## %bb.1:
movq _errno@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _strerror
movl %eax, %esi
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _DISPLAY
movl $1, %edi
callq _exit
LBB0_2:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq _displayOut@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq -72(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
cltq
movq %rax, -96(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
cmpq $0, -96(%rbp)
jbe LBB0_8
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -72(%rbp), %rax
movq -96(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $47, %eax
jne LBB0_6
## %bb.5:
movq -96(%rbp), %rax
addq $1, %rax
movq %rax, -96(%rbp)
jmp LBB0_8
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_3 Depth=1
movq -96(%rbp), %rax
addq $-1, %rax
movq %rax, -96(%rbp)
jmp LBB0_3
LBB0_8:
movq -96(%rbp), %rax
addq -72(%rbp), %rax
movq %rax, -72(%rbp)
movl $1, -20(%rbp)
LBB0_9: ## =>This Loop Header: Depth=1
## Child Loop BB0_25 Depth 2
movl -20(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_55
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -104(%rbp)
cmpq $0, -104(%rbp)
jne LBB0_12
## %bb.11: ## in Loop: Header=BB0_9 Depth=1
jmp LBB0_54
LBB0_12: ## in Loop: Header=BB0_9 Depth=1
cmpl $0, -36(%rbp)
jne LBB0_51
## %bb.13: ## in Loop: Header=BB0_9 Depth=1
movq -104(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_15
## %bb.14: ## in Loop: Header=BB0_9 Depth=1
movl $1, -36(%rbp)
jmp LBB0_54
LBB0_15: ## in Loop: Header=BB0_9 Depth=1
movq -104(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_17
## %bb.16: ## in Loop: Header=BB0_9 Depth=1
movq _stdout@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq _displayOut@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _WELCOME_MESSAGE@GOTPCREL(%rip), %rax
movslq (%rax), %rdi
movb $0, %al
callq _DISPLAY
xorl %edi, %edi
callq _CLEAN_RETURN
LBB0_17: ## in Loop: Header=BB0_9 Depth=1
movq -104(%rbp), %rdi
leaq L_.str.3(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_19
## %bb.18: ## in Loop: Header=BB0_9 Depth=1
movq _stdout@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq _displayOut@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq -72(%rbp), %rdi
callq _usage
movl %eax, %edi
callq _CLEAN_RETURN
LBB0_19: ## in Loop: Header=BB0_9 Depth=1
movq -104(%rbp), %rdi
leaq L_.str.4(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_21
## %bb.20: ## in Loop: Header=BB0_9 Depth=1
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB0_54
LBB0_21: ## in Loop: Header=BB0_9 Depth=1
movq -104(%rbp), %rdi
leaq L_.str.5(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_23
## %bb.22: ## in Loop: Header=BB0_9 Depth=1
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $-1, %ecx
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB0_54
LBB0_23: ## in Loop: Header=BB0_9 Depth=1
movq -104(%rbp), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB0_50
## %bb.24: ## in Loop: Header=BB0_9 Depth=1
movq -104(%rbp), %rax
addq $1, %rax
movq %rax, -104(%rbp)
LBB0_25: ## Parent Loop BB0_9 Depth=1
## => This Inner Loop Header: Depth=2
movq -104(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB0_49
## %bb.26: ## in Loop: Header=BB0_25 Depth=2
movq -104(%rbp), %rax
movsbl (%rax), %eax
addl $-66, %eax
movl %eax, %ecx
movq %rcx, -128(%rbp) ## 8-byte Spill
subl $52, %eax
ja LBB0_47
## %bb.59: ## in Loop: Header=BB0_25 Depth=2
movq -128(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_27: ## in Loop: Header=BB0_25 Depth=2
movq _stdout@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq _displayOut@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _WELCOME_MESSAGE@GOTPCREL(%rip), %rax
movslq (%rax), %rdi
movb $0, %al
callq _DISPLAY
xorl %edi, %edi
callq _CLEAN_RETURN
LBB0_28: ## in Loop: Header=BB0_25 Depth=2
movq _stdout@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq _displayOut@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq -72(%rbp), %rdi
callq _usage
movl %eax, %edi
callq _CLEAN_RETURN
LBB0_29: ## in Loop: Header=BB0_25 Depth=2
movl $1, -28(%rbp)
movq -104(%rbp), %rax
addq $1, %rax
movq %rax, -104(%rbp)
jmp LBB0_48
LBB0_30: ## in Loop: Header=BB0_25 Depth=2
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq -104(%rbp), %rax
addq $1, %rax
movq %rax, -104(%rbp)
jmp LBB0_48
LBB0_31: ## in Loop: Header=BB0_25 Depth=2
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $-1, %ecx
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq -104(%rbp), %rax
addq $1, %rax
movq %rax, -104(%rbp)
jmp LBB0_48
LBB0_32: ## in Loop: Header=BB0_25 Depth=2
movq -104(%rbp), %rax
addq $1, %rax
movq %rax, -104(%rbp)
leaq -104(%rbp), %rdi
callq _readU32FromChar
## kill: def $eax killed $eax killed $rax
movl %eax, -40(%rbp)
jmp LBB0_48
LBB0_33: ## in Loop: Header=BB0_25 Depth=2
movq -104(%rbp), %rax
addq $1, %rax
movq %rax, -104(%rbp)
leaq -104(%rbp), %rdi
callq _readU32FromChar
## kill: def $eax killed $eax killed $rax
movl %eax, -44(%rbp)
jmp LBB0_48
LBB0_34: ## in Loop: Header=BB0_25 Depth=2
movq -104(%rbp), %rax
addq $1, %rax
movq %rax, -104(%rbp)
leaq -104(%rbp), %rdi
callq _readU32FromChar
movq %rax, -112(%rbp)
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _BMK_setNotificationLevel
movq -112(%rbp), %rdi
callq _BMK_SetNbIterations
jmp LBB0_48
LBB0_35: ## in Loop: Header=BB0_25 Depth=2
movq -104(%rbp), %rax
addq $1, %rax
movq %rax, -104(%rbp)
leaq -104(%rbp), %rdi
callq _readU32FromChar
movq %rax, -120(%rbp)
movq -104(%rbp), %rax
movsbl (%rax), %edi
callq _toupper
movsbl %al, %eax
cmpl $75, %eax
jne LBB0_37
## %bb.36: ## in Loop: Header=BB0_25 Depth=2
movq -120(%rbp), %rax
shlq $10, %rax
movq %rax, -120(%rbp)
movq -104(%rbp), %rax
addq $1, %rax
movq %rax, -104(%rbp)
LBB0_37: ## in Loop: Header=BB0_25 Depth=2
movq -104(%rbp), %rax
movsbl (%rax), %edi
callq _toupper
movsbl %al, %eax
cmpl $77, %eax
jne LBB0_39
## %bb.38: ## in Loop: Header=BB0_25 Depth=2
movq -120(%rbp), %rax
shlq $20, %rax
movq %rax, -120(%rbp)
movq -104(%rbp), %rax
addq $1, %rax
movq %rax, -104(%rbp)
LBB0_39: ## in Loop: Header=BB0_25 Depth=2
movq -104(%rbp), %rax
movsbl (%rax), %edi
callq _toupper
movsbl %al, %eax
cmpl $66, %eax
jne LBB0_41
## %bb.40: ## in Loop: Header=BB0_25 Depth=2
movq -104(%rbp), %rax
addq $1, %rax
movq %rax, -104(%rbp)
LBB0_41: ## in Loop: Header=BB0_25 Depth=2
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _BMK_setNotificationLevel
movq -120(%rbp), %rdi
callq _BMK_SetBlockSize
jmp LBB0_48
LBB0_42: ## in Loop: Header=BB0_25 Depth=2
movq -104(%rbp), %rax
addq $1, %rax
movq %rax, -104(%rbp)
movq -104(%rbp), %rax
movsbl (%rax), %eax
cmpl $48, %eax
jl LBB0_45
## %bb.43: ## in Loop: Header=BB0_25 Depth=2
movq -104(%rbp), %rax
movsbl (%rax), %eax
cmpl $57, %eax
jg LBB0_45
## %bb.44: ## in Loop: Header=BB0_25 Depth=2
leaq -104(%rbp), %rdi
callq _readU32FromChar
movq %rax, %rdi
callq _BMK_setAdditionalParam
jmp LBB0_46
LBB0_45: ## in Loop: Header=BB0_25 Depth=2
movl $1, -24(%rbp)
LBB0_46: ## in Loop: Header=BB0_25 Depth=2
jmp LBB0_48
LBB0_47: ## in Loop: Header=BB0_25 Depth=2
movq -72(%rbp), %rdi
callq _badusage
movl %eax, %edi
callq _CLEAN_RETURN
LBB0_48: ## in Loop: Header=BB0_25 Depth=2
jmp LBB0_25
LBB0_49: ## in Loop: Header=BB0_9 Depth=1
jmp LBB0_54
LBB0_50: ## in Loop: Header=BB0_9 Depth=1
jmp LBB0_51
LBB0_51: ## in Loop: Header=BB0_9 Depth=1
cmpl $0, -28(%rbp)
je LBB0_53
## %bb.52: ## in Loop: Header=BB0_9 Depth=1
movl $0, -28(%rbp)
movq -104(%rbp), %rax
movq %rax, -80(%rbp)
jmp LBB0_54
LBB0_53: ## in Loop: Header=BB0_9 Depth=1
movq -104(%rbp), %rdx
movq -56(%rbp), %rax
movl -60(%rbp), %ecx
movl %ecx, %esi
addl $1, %esi
movl %esi, -60(%rbp)
movl %ecx, %ecx
## kill: def $rcx killed $ecx
movq %rdx, (%rax,%rcx,8)
LBB0_54: ## in Loop: Header=BB0_9 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_9
LBB0_55:
movq _WELCOME_MESSAGE@GOTPCREL(%rip), %rax
movslq (%rax), %rsi
movl $3, %edi
movb $0, %al
callq _DISPLAYLEVEL
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _BMK_setNotificationLevel
movq -56(%rbp), %rdi
movl -60(%rbp), %esi
movq -80(%rbp), %rdx
movl -40(%rbp), %ecx
movl -44(%rbp), %r8d
callq _BMK_benchFiles
## %bb.56:
cmpl $0, -24(%rbp)
je LBB0_58
## %bb.57:
movb $0, %al
callq _waitEnter
LBB0_58:
movq -88(%rbp), %rdi
callq _free
movq -56(%rbp), %rdi
callq _free
movl -32(%rbp), %eax
addq $128, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_47, LBB0_47-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
LJTI0_0:
.long L0_0_set_35
.long L0_0_set_47
.long L0_0_set_29
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_28
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_27
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_32
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_33
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_28
.long L0_0_set_34
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_42
.long L0_0_set_31
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_47
.long L0_0_set_30
.end_data_region
## -- End function
.comm _ZSTDCLI_CLEVEL_DEFAULT,4,2 ## @ZSTDCLI_CLEVEL_DEFAULT
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "zstd: %s \n"
.comm _errno,4,2 ## @errno
.comm _stderr,4,2 ## @stderr
.comm _displayOut,4,2 ## @displayOut
L_.str.1: ## @.str.1
.asciz "--"
L_.str.2: ## @.str.2
.asciz "--version"
.comm _stdout,4,2 ## @stdout
.comm _WELCOME_MESSAGE,4,2 ## @WELCOME_MESSAGE
L_.str.3: ## @.str.3
.asciz "--help"
L_.str.4: ## @.str.4
.asciz "--verbose"
.comm _g_displayLevel,4,2 ## @g_displayLevel
L_.str.5: ## @.str.5
.asciz "--quiet"
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/examples/extr_zwrapbench.c_main.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function usage
_usage: ; @usage
.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]
adrp x8, _WELCOME_MESSAGE@GOTPAGE
ldr x8, [x8, _WELCOME_MESSAGE@GOTPAGEOFF]
ldr x0, [x8]
bl _DISPLAY
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
ldur x8, [x29, #-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
str x0, [sp, #8] ; 8-byte Folded Spill
bl _DISPLAY
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
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 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 x8, _DEFAULT_DISPLAY_LEVEL@GOTPAGE
ldr x8, [x8, _DEFAULT_DISPLAY_LEVEL@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
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
ldr x0, [sp, #8] ; 8-byte Folded Reload
bl _DISPLAY
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _DISPLAY
adrp x8, _ZSTDCLI_CLEVEL_DEFAULT@GOTPAGE
ldr x8, [x8, _ZSTDCLI_CLEVEL_DEFAULT@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _DISPLAY
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _DISPLAY
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _WELCOME_MESSAGE,8,3 ; @WELCOME_MESSAGE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Usage :\n"
l_.str.1: ; @.str.1
.asciz " %s [args] [FILE(s)] [-o file]\n"
l_.str.2: ; @.str.2
.asciz "\n"
l_.str.3: ; @.str.3
.asciz "FILE : a filename\n"
l_.str.4: ; @.str.4
.asciz " with no FILE, or when FILE is - , read standard input\n"
l_.str.5: ; @.str.5
.asciz "Arguments :\n"
l_.str.6: ; @.str.6
.asciz " -D file: use `file` as Dictionary \n"
l_.str.7: ; @.str.7
.asciz " -h/-H : display help/long help and exit\n"
l_.str.8: ; @.str.8
.asciz " -V : display Version number and exit\n"
l_.str.9: ; @.str.9
.asciz " -v : verbose mode; specify multiple times to increase log level (default:%d)\n"
.comm _DEFAULT_DISPLAY_LEVEL,4,2 ; @DEFAULT_DISPLAY_LEVEL
l_.str.10: ; @.str.10
.asciz " -q : suppress warnings; specify twice to suppress errors too\n"
l_.str.11: ; @.str.11
.asciz "Benchmark arguments :\n"
l_.str.12: ; @.str.12
.asciz " -b# : benchmark file(s), using # compression level (default : %d) \n"
.comm _ZSTDCLI_CLEVEL_DEFAULT,4,2 ; @ZSTDCLI_CLEVEL_DEFAULT
l_.str.13: ; @.str.13
.asciz " -e# : test all compression levels from -bX to # (default: %d)\n"
l_.str.14: ; @.str.14
.asciz " -i# : minimum evaluation time in seconds (default : 3s)\n"
l_.str.15: ; @.str.15
.asciz " -B# : cut file into independent blocks of size # (default: no block)\n"
.no_dead_strip _usage
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function usage
_usage: ## @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)
movq _WELCOME_MESSAGE@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movb $0, %al
callq _DISPLAY
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
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
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _DEFAULT_DISPLAY_LEVEL@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _ZSTDCLI_CLEVEL_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _ZSTDCLI_CLEVEL_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.15(%rip), %rdi
movb $0, %al
callq _DISPLAY
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _WELCOME_MESSAGE,8,3 ## @WELCOME_MESSAGE
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage :\n"
L_.str.1: ## @.str.1
.asciz " %s [args] [FILE(s)] [-o file]\n"
L_.str.2: ## @.str.2
.asciz "\n"
L_.str.3: ## @.str.3
.asciz "FILE : a filename\n"
L_.str.4: ## @.str.4
.asciz " with no FILE, or when FILE is - , read standard input\n"
L_.str.5: ## @.str.5
.asciz "Arguments :\n"
L_.str.6: ## @.str.6
.asciz " -D file: use `file` as Dictionary \n"
L_.str.7: ## @.str.7
.asciz " -h/-H : display help/long help and exit\n"
L_.str.8: ## @.str.8
.asciz " -V : display Version number and exit\n"
L_.str.9: ## @.str.9
.asciz " -v : verbose mode; specify multiple times to increase log level (default:%d)\n"
.comm _DEFAULT_DISPLAY_LEVEL,4,2 ## @DEFAULT_DISPLAY_LEVEL
L_.str.10: ## @.str.10
.asciz " -q : suppress warnings; specify twice to suppress errors too\n"
L_.str.11: ## @.str.11
.asciz "Benchmark arguments :\n"
L_.str.12: ## @.str.12
.asciz " -b# : benchmark file(s), using # compression level (default : %d) \n"
.comm _ZSTDCLI_CLEVEL_DEFAULT,4,2 ## @ZSTDCLI_CLEVEL_DEFAULT
L_.str.13: ## @.str.13
.asciz " -e# : test all compression levels from -bX to # (default: %d)\n"
L_.str.14: ## @.str.14
.asciz " -i# : minimum evaluation time in seconds (default : 3s)\n"
L_.str.15: ## @.str.15
.asciz " -B# : cut file into independent blocks of size # (default: no block)\n"
.no_dead_strip _usage
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/examples/extr_zwrapbench.c_usage.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function readU32FromChar
_readU32FromChar: ; @readU32FromChar
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str wzr, [sp, #4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp] ; 4-byte Folded Spill
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp] ; 4-byte Folded Reload
tbz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4]
mov w9, #10
mul w8, w8, w9
str w8, [sp, #4]
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w9, w8, #48
ldr w8, [sp, #4]
add w8, w8, w9
str w8, [sp, #4]
ldr x9, [sp, #8]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_1
LBB0_5:
ldr w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.no_dead_strip _readU32FromChar
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function readU32FromChar
_readU32FromChar: ## @readU32FromChar
.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)
movl $0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -13(%rbp) ## 1-byte Spill
jl LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -13(%rbp) ## 1-byte Spill
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movb -13(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_4
jmp LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
imull $10, -12(%rbp), %eax
movl %eax, -12(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
subl $48, %eax
addl -12(%rbp), %eax
movl %eax, -12(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
jmp LBB0_1
LBB0_5:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _readU32FromChar
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/examples/extr_zwrapbench.c_readU32FromChar.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function waitEnter
_waitEnter: ; @waitEnter
.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 x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
bl _getchar
stur w0, [x29, #-4]
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 "Press enter to continue...\n"
.no_dead_strip _waitEnter
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function waitEnter
_waitEnter: ## @waitEnter
.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
leaq L_.str(%rip), %rdi
callq _DISPLAY
movb $0, %al
callq _getchar
movl %eax, -4(%rbp)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Press enter to continue...\n"
.no_dead_strip _waitEnter
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/examples/extr_zwrapbench.c_waitEnter.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ZWRAPC_finishWithError
_ZWRAPC_finishWithError: ; @ZWRAPC_finishWithError
.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]
str w2, [sp, #12]
ldr w1, [sp, #12]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _LOG_WRAPPERC
ldur x8, [x29, #-8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x0, [x29, #-8]
bl _ZWRAP_freeCCtx
b LBB0_2
LBB0_2:
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #16]
; kill: def $x9 killed $xzr
str xzr, [x8]
b LBB0_4
LBB0_4:
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr w8, [sp, #12]
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_7
LBB0_6:
adrp x8, _Z_STREAM_ERROR@GOTPAGE
ldr x8, [x8, _Z_STREAM_ERROR@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_7
LBB0_7:
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "- ZWRAPC_finishWithError=%d\n"
.comm _Z_STREAM_ERROR,4,2 ; @Z_STREAM_ERROR
.no_dead_strip _ZWRAPC_finishWithError
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ZWRAPC_finishWithError
_ZWRAPC_finishWithError: ## @ZWRAPC_finishWithError
.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 %edx, -20(%rbp)
movl -20(%rbp), %esi
leaq L_.str(%rip), %rdi
callq _LOG_WRAPPERC
cmpq $0, -8(%rbp)
je LBB0_2
## %bb.1:
movq -8(%rbp), %rdi
callq _ZWRAP_freeCCtx
LBB0_2:
cmpq $0, -16(%rbp)
je LBB0_4
## %bb.3:
movq -16(%rbp), %rax
movq $0, (%rax)
LBB0_4:
cmpl $0, -20(%rbp)
je LBB0_6
## %bb.5:
movl -20(%rbp), %eax
movl %eax, -24(%rbp) ## 4-byte Spill
jmp LBB0_7
LBB0_6:
movq _Z_STREAM_ERROR@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -24(%rbp) ## 4-byte Spill
LBB0_7:
movl -24(%rbp), %eax ## 4-byte Reload
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "- ZWRAPC_finishWithError=%d\n"
.comm _Z_STREAM_ERROR,4,2 ## @Z_STREAM_ERROR
.no_dead_strip _ZWRAPC_finishWithError
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAPC_finishWithError.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ZWRAPC_finishWithErrorMsg
_ZWRAPC_finishWithErrorMsg: ; @ZWRAPC_finishWithErrorMsg
.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 x8, [sp, #16]
ldr x8, [x8, #8]
str x8, [sp]
ldr x8, [sp, #8]
ldr x9, [sp, #16]
str x8, [x9]
ldr x8, [sp]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _Z_STREAM_ERROR@GOTPAGE
ldr x8, [x8, _Z_STREAM_ERROR@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_3
LBB0_2:
ldr x0, [sp]
ldr x1, [sp, #16]
mov w2, #0
bl _ZWRAPC_finishWithError
stur w0, [x29, #-4]
b LBB0_3
LBB0_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _Z_STREAM_ERROR,4,2 ; @Z_STREAM_ERROR
.no_dead_strip _ZWRAPC_finishWithErrorMsg
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ZWRAPC_finishWithErrorMsg
_ZWRAPC_finishWithErrorMsg: ## @ZWRAPC_finishWithErrorMsg
.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), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
movq -24(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, (%rax)
cmpq $0, -32(%rbp)
jne LBB0_2
## %bb.1:
movq _Z_STREAM_ERROR@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_3
LBB0_2:
movq -32(%rbp), %rdi
movq -16(%rbp), %rsi
xorl %edx, %edx
callq _ZWRAPC_finishWithError
movl %eax, -4(%rbp)
LBB0_3:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _Z_STREAM_ERROR,4,2 ## @Z_STREAM_ERROR
.no_dead_strip _ZWRAPC_finishWithErrorMsg
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAPC_finishWithErrorMsg.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ZWRAPD_finishWithError
_ZWRAPD_finishWithError: ; @ZWRAPD_finishWithError
.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]
str w2, [sp, #12]
ldr w1, [sp, #12]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _LOG_WRAPPERD
ldur x0, [x29, #-8]
bl _ZWRAP_freeDCtx
ldr x8, [sp, #16]
; kill: def $x9 killed $xzr
str xzr, [x8]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w8, [sp, #12]
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_3
LBB0_2:
adrp x8, _Z_STREAM_ERROR@GOTPAGE
ldr x8, [x8, _Z_STREAM_ERROR@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_3
LBB0_3:
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "- ZWRAPD_finishWithError=%d\n"
.comm _Z_STREAM_ERROR,4,2 ; @Z_STREAM_ERROR
.no_dead_strip _ZWRAPD_finishWithError
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ZWRAPD_finishWithError
_ZWRAPD_finishWithError: ## @ZWRAPD_finishWithError
.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 %edx, -20(%rbp)
movl -20(%rbp), %esi
leaq L_.str(%rip), %rdi
callq _LOG_WRAPPERD
movq -8(%rbp), %rdi
callq _ZWRAP_freeDCtx
movq -16(%rbp), %rax
movq $0, (%rax)
cmpl $0, -20(%rbp)
je LBB0_2
## %bb.1:
movl -20(%rbp), %eax
movl %eax, -24(%rbp) ## 4-byte Spill
jmp LBB0_3
LBB0_2:
movq _Z_STREAM_ERROR@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -24(%rbp) ## 4-byte Spill
LBB0_3:
movl -24(%rbp), %eax ## 4-byte Reload
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "- ZWRAPD_finishWithError=%d\n"
.comm _Z_STREAM_ERROR,4,2 ## @Z_STREAM_ERROR
.no_dead_strip _ZWRAPD_finishWithError
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAPD_finishWithError.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ZWRAPD_finishWithErrorMsg
_ZWRAPD_finishWithErrorMsg: ; @ZWRAPD_finishWithErrorMsg
.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 x8, [sp, #16]
ldr x8, [x8, #8]
str x8, [sp]
ldr x8, [sp, #8]
ldr x9, [sp, #16]
str x8, [x9]
ldr x8, [sp]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _Z_STREAM_ERROR@GOTPAGE
ldr x8, [x8, _Z_STREAM_ERROR@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_3
LBB0_2:
ldr x0, [sp]
ldr x1, [sp, #16]
mov w2, #0
bl _ZWRAPD_finishWithError
stur w0, [x29, #-4]
b LBB0_3
LBB0_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _Z_STREAM_ERROR,4,2 ; @Z_STREAM_ERROR
.no_dead_strip _ZWRAPD_finishWithErrorMsg
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ZWRAPD_finishWithErrorMsg
_ZWRAPD_finishWithErrorMsg: ## @ZWRAPD_finishWithErrorMsg
.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), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
movq -24(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, (%rax)
cmpq $0, -32(%rbp)
jne LBB0_2
## %bb.1:
movq _Z_STREAM_ERROR@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_3
LBB0_2:
movq -32(%rbp), %rdi
movq -16(%rbp), %rsi
xorl %edx, %edx
callq _ZWRAPD_finishWithError
movl %eax, -4(%rbp)
LBB0_3:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _Z_STREAM_ERROR,4,2 ## @Z_STREAM_ERROR
.no_dead_strip _ZWRAPD_finishWithErrorMsg
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAPD_finishWithErrorMsg.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ZWRAP_allocFunction
_ZWRAP_allocFunction: ; @ZWRAP_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]
ldur x8, [x29, #-8]
str x8, [sp, #8]
ldr x8, [sp, #8]
ldr x8, [x8, #8]
ldr x9, [sp, #8]
ldr w0, [x9]
ldr x9, [sp, #16]
mov x2, x9
mov w1, #1
blr x8
str x0, [sp]
ldr x0, [sp]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _ZWRAP_allocFunction
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ZWRAP_allocFunction
_ZWRAP_allocFunction: ## @ZWRAP_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 -8(%rbp), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq -24(%rbp), %rcx
movl (%rcx), %edi
movq -16(%rbp), %rcx
movl %ecx, %edx
movl $1, %esi
callq *%rax
movq %rax, -32(%rbp)
movq -32(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _ZWRAP_allocFunction
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAP_allocFunction.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ZWRAP_createCCtx
_ZWRAP_createCCtx: ; @ZWRAP_createCCtx
.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]
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_1
LBB0_1:
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2:
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
ldur x9, [x29, #-16]
ldr w0, [x9]
mov w1, #1
mov w2, #32
blr x8
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB0_9
LBB0_4:
ldr x0, [sp, #24]
mov w1, #0
mov w2, #32
bl _memset
ldr x8, [sp, #24]
add x0, x8, #24
ldur x1, [x29, #-16]
mov w2, #4
bl _memcpy
adrp x8, _ZWRAP_allocFunction@GOTPAGE
ldr x8, [x8, _ZWRAP_allocFunction@GOTPAGEOFF]
ldrsw x8, [x8]
str x8, [sp]
adrp x8, _ZWRAP_freeFunction@GOTPAGE
ldr x8, [x8, _ZWRAP_freeFunction@GOTPAGEOFF]
ldrsw x8, [x8]
str x8, [sp, #8]
str wzr, [sp, #16]
str wzr, [sp, #20]
ldr x8, [sp, #24]
add x8, x8, #24
str x8, [sp]
ldr x9, [sp, #24]
ldr q0, [sp]
str q0, [x9]
ldr x8, [sp, #16]
str x8, [x9, #16]
b LBB0_8
LBB0_5:
mov w0, #1
mov w1, #32
bl _calloc
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB0_9
LBB0_7:
b LBB0_8
LBB0_8:
ldr x8, [sp, #24]
stur x8, [x29, #-8]
b LBB0_9
LBB0_9:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _ZWRAP_allocFunction,4,2 ; @ZWRAP_allocFunction
.comm _ZWRAP_freeFunction,4,2 ; @ZWRAP_freeFunction
.no_dead_strip _ZWRAP_createCCtx
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ZWRAP_createCCtx
_ZWRAP_createCCtx: ## @ZWRAP_createCCtx
.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 -16(%rbp), %rax
cmpq $0, 8(%rax)
je LBB0_5
## %bb.1:
movq -16(%rbp), %rax
cmpq $0, 16(%rax)
je LBB0_5
## %bb.2:
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq -16(%rbp), %rcx
movl (%rcx), %edi
movl $1, %esi
movl $32, %edx
callq *%rax
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_4
## %bb.3:
movq $0, -8(%rbp)
jmp LBB0_9
LBB0_4:
movq -24(%rbp), %rdi
xorl %esi, %esi
movl $32, %edx
callq _memset
movq -24(%rbp), %rdi
addq $24, %rdi
movq -16(%rbp), %rsi
movl $4, %edx
callq _memcpy
movq _ZWRAP_allocFunction@GOTPCREL(%rip), %rax
movslq (%rax), %rax
movq %rax, -48(%rbp)
movq _ZWRAP_freeFunction@GOTPCREL(%rip), %rax
movslq (%rax), %rax
movq %rax, -40(%rbp)
movl $0, -32(%rbp)
movl $0, -28(%rbp)
movq -24(%rbp), %rax
addq $24, %rax
movq %rax, -48(%rbp)
movq -24(%rbp), %rax
movq -48(%rbp), %rcx
movq %rcx, (%rax)
movq -40(%rbp), %rcx
movq %rcx, 8(%rax)
movq -32(%rbp), %rcx
movq %rcx, 16(%rax)
jmp LBB0_8
LBB0_5:
movl $1, %edi
movl $32, %esi
callq _calloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_7
## %bb.6:
movq $0, -8(%rbp)
jmp LBB0_9
LBB0_7:
jmp LBB0_8
LBB0_8:
movq -24(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_9:
movq -8(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZWRAP_allocFunction,4,2 ## @ZWRAP_allocFunction
.comm _ZWRAP_freeFunction,4,2 ## @ZWRAP_freeFunction
.no_dead_strip _ZWRAP_createCCtx
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAP_createCCtx.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_deflateReset_keepDict ; -- Begin function ZWRAP_deflateReset_keepDict
.p2align 2
_ZWRAP_deflateReset_keepDict: ; @ZWRAP_deflateReset_keepDict
.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]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _LOG_WRAPPERC
adrp x8, _g_ZWRAP_useZSTDcompression@GOTPAGE
ldr x8, [x8, _g_ZWRAP_useZSTDcompression@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x0, [sp, #16]
bl _deflateReset
stur w0, [x29, #-4]
b LBB0_5
LBB0_2:
ldr x8, [sp, #16]
ldr x8, [x8, #24]
str x8, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #8]
str xzr, [x8, #8]
ldr x8, [sp, #8]
str xzr, [x8]
b LBB0_4
LBB0_4:
ldr x8, [sp, #16]
str xzr, [x8, #16]
ldr x8, [sp, #16]
str xzr, [x8, #8]
ldr x8, [sp, #16]
str xzr, [x8]
adrp x8, _Z_OK@GOTPAGE
ldr x8, [x8, _Z_OK@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_5
LBB0_5:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "- ZWRAP_deflateReset_keepDict\n"
.comm _g_ZWRAP_useZSTDcompression,4,2 ; @g_ZWRAP_useZSTDcompression
.comm _Z_OK,4,2 ; @Z_OK
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_deflateReset_keepDict ## -- Begin function ZWRAP_deflateReset_keepDict
.p2align 4, 0x90
_ZWRAP_deflateReset_keepDict: ## @ZWRAP_deflateReset_keepDict
.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)
leaq L_.str(%rip), %rdi
callq _LOG_WRAPPERC
movq _g_ZWRAP_useZSTDcompression@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB0_2
## %bb.1:
movq -16(%rbp), %rdi
callq _deflateReset
movl %eax, -4(%rbp)
jmp LBB0_5
LBB0_2:
movq -16(%rbp), %rax
movq 24(%rax), %rax
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
je LBB0_4
## %bb.3:
movq -24(%rbp), %rax
movq $0, 8(%rax)
movq -24(%rbp), %rax
movq $0, (%rax)
LBB0_4:
movq -16(%rbp), %rax
movq $0, 16(%rax)
movq -16(%rbp), %rax
movq $0, 8(%rax)
movq -16(%rbp), %rax
movq $0, (%rax)
movq _Z_OK@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
LBB0_5:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "- ZWRAP_deflateReset_keepDict\n"
.comm _g_ZWRAP_useZSTDcompression,4,2 ## @g_ZWRAP_useZSTDcompression
.comm _Z_OK,4,2 ## @Z_OK
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAP_deflateReset_keepDict.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ZWRAP_freeCCtx
_ZWRAP_freeCCtx: ; @ZWRAP_freeCCtx
.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]
ldr x8, [sp]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
str xzr, [sp, #8]
b LBB0_3
LBB0_2:
ldr x8, [sp]
ldr w0, [x8, #4]
bl _ZSTD_freeCStream
ldr x0, [sp]
ldr x8, [sp]
ldr w1, [x8]
bl _ZSTD_free
str xzr, [sp, #8]
b LBB0_3
LBB0_3:
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _ZWRAP_freeCCtx
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ZWRAP_freeCCtx
_ZWRAP_freeCCtx: ## @ZWRAP_freeCCtx
.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, -16(%rbp)
cmpq $0, -16(%rbp)
jne LBB0_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB0_3
LBB0_2:
movq -16(%rbp), %rax
movl 4(%rax), %edi
callq _ZSTD_freeCStream
movq -16(%rbp), %rdi
movq -16(%rbp), %rax
movl (%rax), %esi
callq _ZSTD_free
movq $0, -8(%rbp)
LBB0_3:
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _ZWRAP_freeCCtx
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAP_freeCCtx.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ZWRAP_freeDCtx
_ZWRAP_freeDCtx: ; @ZWRAP_freeDCtx
.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]
ldr x8, [sp]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
str xzr, [sp, #8]
b LBB0_3
LBB0_2:
ldr x8, [sp]
ldr w0, [x8, #16]
bl _ZSTD_freeDStream
ldr x8, [sp]
ldr x0, [x8, #8]
ldr x8, [sp]
ldr w1, [x8]
bl _ZSTD_free
ldr x0, [sp]
ldr x8, [sp]
ldr w1, [x8]
bl _ZSTD_free
str xzr, [sp, #8]
b LBB0_3
LBB0_3:
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _ZWRAP_freeDCtx
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ZWRAP_freeDCtx
_ZWRAP_freeDCtx: ## @ZWRAP_freeDCtx
.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, -16(%rbp)
cmpq $0, -16(%rbp)
jne LBB0_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB0_3
LBB0_2:
movq -16(%rbp), %rax
movl 16(%rax), %edi
callq _ZSTD_freeDStream
movq -16(%rbp), %rax
movq 8(%rax), %rdi
movq -16(%rbp), %rax
movl (%rax), %esi
callq _ZSTD_free
movq -16(%rbp), %rdi
movq -16(%rbp), %rax
movl (%rax), %esi
callq _ZSTD_free
movq $0, -8(%rbp)
LBB0_3:
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _ZWRAP_freeDCtx
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAP_freeDCtx.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ZWRAP_freeFunction
_ZWRAP_freeFunction: ; @ZWRAP_freeFunction
.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]
str x8, [sp, #8]
ldr x8, [sp, #8]
ldr x8, [x8, #8]
ldr x9, [sp, #8]
ldr w0, [x9]
ldr x1, [sp, #16]
blr x8
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _ZWRAP_freeFunction
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ZWRAP_freeFunction
_ZWRAP_freeFunction: ## @ZWRAP_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 $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq -24(%rbp), %rcx
movl (%rcx), %edi
movq -16(%rbp), %rsi
callq *%rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _ZWRAP_freeFunction
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAP_freeFunction.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_getDecompressionType ; -- Begin function ZWRAP_getDecompressionType
.p2align 2
_ZWRAP_getDecompressionType: ; @ZWRAP_getDecompressionType
.cfi_startproc
; %bb.0:
adrp x8, _g_ZWRAPdecompressionType@GOTPAGE
ldr x8, [x8, _g_ZWRAPdecompressionType@GOTPAGEOFF]
ldr w0, [x8]
ret
.cfi_endproc
; -- End function
.comm _g_ZWRAPdecompressionType,4,2 ; @g_ZWRAPdecompressionType
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_getDecompressionType ## -- Begin function ZWRAP_getDecompressionType
.p2align 4, 0x90
_ZWRAP_getDecompressionType: ## @ZWRAP_getDecompressionType
.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_ZWRAPdecompressionType@GOTPCREL(%rip), %rax
movl (%rax), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_ZWRAPdecompressionType,4,2 ## @g_ZWRAPdecompressionType
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAP_getDecompressionType.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_inflateReset_keepDict ; -- Begin function ZWRAP_inflateReset_keepDict
.p2align 2
_ZWRAP_inflateReset_keepDict: ; @ZWRAP_inflateReset_keepDict
.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]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _LOG_WRAPPERD
adrp x8, _g_ZWRAPdecompressionType@GOTPAGE
ldr x8, [x8, _g_ZWRAPdecompressionType@GOTPAGEOFF]
ldr x8, [x8]
adrp x9, _ZWRAP_FORCE_ZLIB@GOTPAGE
ldr x9, [x9, _ZWRAP_FORCE_ZLIB@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #16]
ldr w8, [x8, #24]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x0, [sp, #16]
bl _inflateReset
stur w0, [x29, #-4]
b LBB0_6
LBB0_3:
ldr x8, [sp, #16]
ldr x8, [x8, #16]
str x8, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
adrp x8, _Z_STREAM_ERROR@GOTPAGE
ldr x8, [x8, _Z_STREAM_ERROR@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_6
LBB0_5:
ldr x0, [sp, #8]
bl _ZWRAP_initDCtx
adrp x8, _ZWRAP_useReset@GOTPAGE
ldr x8, [x8, _ZWRAP_useReset@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp, #8]
str w8, [x9, #8]
ldr x8, [sp, #8]
str xzr, [x8]
ldr x8, [sp, #16]
str xzr, [x8, #8]
ldr x8, [sp, #16]
str xzr, [x8]
adrp x8, _Z_OK@GOTPAGE
ldr x8, [x8, _Z_OK@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_6
LBB0_6:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "- ZWRAP_inflateReset_keepDict\n"
.comm _g_ZWRAPdecompressionType,8,3 ; @g_ZWRAPdecompressionType
.comm _ZWRAP_FORCE_ZLIB,8,3 ; @ZWRAP_FORCE_ZLIB
.comm _Z_STREAM_ERROR,4,2 ; @Z_STREAM_ERROR
.comm _ZWRAP_useReset,4,2 ; @ZWRAP_useReset
.comm _Z_OK,4,2 ; @Z_OK
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_inflateReset_keepDict ## -- Begin function ZWRAP_inflateReset_keepDict
.p2align 4, 0x90
_ZWRAP_inflateReset_keepDict: ## @ZWRAP_inflateReset_keepDict
.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)
leaq L_.str(%rip), %rdi
callq _LOG_WRAPPERD
movq _g_ZWRAPdecompressionType@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq _ZWRAP_FORCE_ZLIB@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_2
## %bb.1:
movq -16(%rbp), %rax
cmpl $0, 24(%rax)
jne LBB0_3
LBB0_2:
movq -16(%rbp), %rdi
callq _inflateReset
movl %eax, -4(%rbp)
jmp LBB0_6
LBB0_3:
movq -16(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_5
## %bb.4:
movq _Z_STREAM_ERROR@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_6
LBB0_5:
movq -24(%rbp), %rdi
callq _ZWRAP_initDCtx
movq _ZWRAP_useReset@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -24(%rbp), %rax
movl %ecx, 8(%rax)
movq -24(%rbp), %rax
movq $0, (%rax)
movq -16(%rbp), %rax
movq $0, 8(%rax)
movq -16(%rbp), %rax
movq $0, (%rax)
movq _Z_OK@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
LBB0_6:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "- ZWRAP_inflateReset_keepDict\n"
.comm _g_ZWRAPdecompressionType,8,3 ## @g_ZWRAPdecompressionType
.comm _ZWRAP_FORCE_ZLIB,8,3 ## @ZWRAP_FORCE_ZLIB
.comm _Z_STREAM_ERROR,4,2 ## @Z_STREAM_ERROR
.comm _ZWRAP_useReset,4,2 ## @ZWRAP_useReset
.comm _Z_OK,4,2 ## @Z_OK
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAP_inflateReset_keepDict.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ZWRAP_initDCtx
_ZWRAP_initDCtx: ; @ZWRAP_initDCtx
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
str xzr, [x8, #16]
ldr x8, [sp, #8]
str xzr, [x8, #8]
ldr x8, [sp, #8]
str xzr, [x8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.no_dead_strip _ZWRAP_initDCtx
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ZWRAP_initDCtx
_ZWRAP_initDCtx: ## @ZWRAP_initDCtx
.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 $0, 16(%rax)
movq -8(%rbp), %rax
movq $0, 8(%rax)
movq -8(%rbp), %rax
movq $0, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _ZWRAP_initDCtx
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAP_initDCtx.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ZWRAP_initializeCStream
_ZWRAP_initializeCStream: ; @ZWRAP_initializeCStream
.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
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur x2, [x29, #-32]
stur x3, [x29, #-40]
ldur x8, [x29, #-16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _LOG_WRAPPERC
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
adrp x8, _Z_STREAM_ERROR@GOTPAGE
ldr x8, [x8, _Z_STREAM_ERROR@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_8
LBB0_3:
ldur x8, [x29, #-40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldur x8, [x29, #-16]
ldr x8, [x8]
stur x8, [x29, #-40]
b LBB0_5
LBB0_5:
ldur x8, [x29, #-16]
ldr w0, [x8, #16]
ldur x1, [x29, #-40]
ldur x2, [x29, #-32]
sub x8, x29, #64
bl _ZSTD_getParams
ldur x15, [x29, #-40]
ldur w8, [x29, #-44]
; implicit-def: $x14
mov x14, x8
ldur w8, [x29, #-48]
; implicit-def: $x13
mov x13, x8
ldur w8, [x29, #-52]
; implicit-def: $x12
mov x12, x8
ldur w8, [x29, #-56]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-60]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-64]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x15, [x9]
str x14, [x9, #8]
str x13, [x9, #16]
str x12, [x9, #24]
str x11, [x9, #32]
str x10, [x9, #40]
str x8, [x9, #48]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _LOG_WRAPPERC
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
ldur x1, [x29, #-24]
ldur x2, [x29, #-32]
ldur x4, [x29, #-40]
ldur q0, [x29, #-64]
add x3, sp, #64
str q0, [sp, #64]
ldur x8, [x29, #-48]
str x8, [sp, #80]
bl _ZSTD_initCStream_advanced
stur x0, [x29, #-72]
ldur x0, [x29, #-72]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
adrp x8, _Z_STREAM_ERROR@GOTPAGE
ldr x8, [x8, _Z_STREAM_ERROR@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_8
LBB0_7:
adrp x8, _Z_OK@GOTPAGE
ldr x8, [x8, _Z_OK@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_8
LBB0_8:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "- ZWRAP_initializeCStream=%p\n"
.comm _Z_STREAM_ERROR,4,2 ; @Z_STREAM_ERROR
l_.str.1: ; @.str.1
.asciz "pledgedSrcSize=%d windowLog=%d chainLog=%d hashLog=%d searchLog=%d minMatch=%d strategy=%d\n"
.comm _Z_OK,4,2 ; @Z_OK
.no_dead_strip _ZWRAP_initializeCStream
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ZWRAP_initializeCStream
_ZWRAP_initializeCStream: ## @ZWRAP_initializeCStream
.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)
movq -16(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _LOG_WRAPPERC
cmpq $0, -16(%rbp)
je LBB0_2
## %bb.1:
movq -16(%rbp), %rax
cmpq $0, 8(%rax)
jne LBB0_3
LBB0_2:
movq _Z_STREAM_ERROR@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_8
LBB0_3:
cmpq $0, -40(%rbp)
jne LBB0_5
## %bb.4:
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -40(%rbp)
LBB0_5:
movq -16(%rbp), %rax
movl 16(%rax), %esi
movq -40(%rbp), %rdx
movq -32(%rbp), %rcx
leaq -64(%rbp), %rdi
callq _ZSTD_getParams
movq -40(%rbp), %rax
movl %eax, %esi
movl -44(%rbp), %edx
movl -48(%rbp), %ecx
movl -52(%rbp), %r8d
movl -56(%rbp), %r9d
movl -60(%rbp), %r10d
movl -64(%rbp), %eax
leaq L_.str.1(%rip), %rdi
movl %r10d, (%rsp)
movl %eax, 8(%rsp)
movb $0, %al
callq _LOG_WRAPPERC
movq -16(%rbp), %rax
movq 8(%rax), %rdi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
movq -40(%rbp), %rcx
leaq -64(%rbp), %rax
movq (%rax), %r8
movq %r8, (%rsp)
movq 8(%rax), %r8
movq %r8, 8(%rsp)
movq 16(%rax), %rax
movq %rax, 16(%rsp)
callq _ZSTD_initCStream_advanced
movq %rax, -72(%rbp)
movq -72(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_7
## %bb.6:
movq _Z_STREAM_ERROR@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_8
LBB0_7:
movq _Z_OK@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
LBB0_8:
movl -4(%rbp), %eax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "- ZWRAP_initializeCStream=%p\n"
.comm _Z_STREAM_ERROR,4,2 ## @Z_STREAM_ERROR
L_.str.1: ## @.str.1
.asciz "pledgedSrcSize=%d windowLog=%d chainLog=%d hashLog=%d searchLog=%d minMatch=%d strategy=%d\n"
.comm _Z_OK,4,2 ## @Z_OK
.no_dead_strip _ZWRAP_initializeCStream
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAP_initializeCStream.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_isUsingZSTDcompression ; -- Begin function ZWRAP_isUsingZSTDcompression
.p2align 2
_ZWRAP_isUsingZSTDcompression: ; @ZWRAP_isUsingZSTDcompression
.cfi_startproc
; %bb.0:
adrp x8, _g_ZWRAP_useZSTDcompression@GOTPAGE
ldr x8, [x8, _g_ZWRAP_useZSTDcompression@GOTPAGEOFF]
ldr w0, [x8]
ret
.cfi_endproc
; -- End function
.comm _g_ZWRAP_useZSTDcompression,4,2 ; @g_ZWRAP_useZSTDcompression
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_isUsingZSTDcompression ## -- Begin function ZWRAP_isUsingZSTDcompression
.p2align 4, 0x90
_ZWRAP_isUsingZSTDcompression: ## @ZWRAP_isUsingZSTDcompression
.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_ZWRAP_useZSTDcompression@GOTPCREL(%rip), %rax
movl (%rax), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_ZWRAP_useZSTDcompression,4,2 ## @g_ZWRAP_useZSTDcompression
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAP_isUsingZSTDcompression.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_isUsingZSTDdecompression ; -- Begin function ZWRAP_isUsingZSTDdecompression
.p2align 2
_ZWRAP_isUsingZSTDdecompression: ; @ZWRAP_isUsingZSTDdecompression
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp]
ldr x8, [sp]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
str wzr, [sp, #12]
b LBB0_3
LBB0_2:
ldr x8, [sp]
ldr x8, [x8]
adrp x9, _ZWRAP_ZSTD_STREAM@GOTPAGE
ldr x9, [x9, _ZWRAP_ZSTD_STREAM@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
and w8, w8, #0x1
str w8, [sp, #12]
b LBB0_3
LBB0_3:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _ZWRAP_ZSTD_STREAM,8,3 ; @ZWRAP_ZSTD_STREAM
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_isUsingZSTDdecompression ## -- Begin function ZWRAP_isUsingZSTDdecompression
.p2align 4, 0x90
_ZWRAP_isUsingZSTDdecompression: ## @ZWRAP_isUsingZSTDdecompression
.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)
cmpq $0, -16(%rbp)
jne LBB0_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB0_3
LBB0_2:
movq -16(%rbp), %rax
movq (%rax), %rax
movq _ZWRAP_ZSTD_STREAM@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
sete %al
andb $1, %al
movzbl %al, %eax
movl %eax, -4(%rbp)
LBB0_3:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZWRAP_ZSTD_STREAM,8,3 ## @ZWRAP_ZSTD_STREAM
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAP_isUsingZSTDdecompression.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_setDecompressionType ; -- Begin function ZWRAP_setDecompressionType
.p2align 2
_ZWRAP_setDecompressionType: ; @ZWRAP_setDecompressionType
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w8, [sp, #12]
adrp x9, _g_ZWRAPdecompressionType@GOTPAGE
ldr x9, [x9, _g_ZWRAPdecompressionType@GOTPAGEOFF]
str w8, [x9]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _g_ZWRAPdecompressionType,4,2 ; @g_ZWRAPdecompressionType
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_setDecompressionType ## -- Begin function ZWRAP_setDecompressionType
.p2align 4, 0x90
_ZWRAP_setDecompressionType: ## @ZWRAP_setDecompressionType
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl -4(%rbp), %ecx
movq _g_ZWRAPdecompressionType@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_ZWRAPdecompressionType,4,2 ## @g_ZWRAPdecompressionType
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAP_setDecompressionType.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_setPledgedSrcSize ; -- Begin function ZWRAP_setPledgedSrcSize
.p2align 2
_ZWRAP_setPledgedSrcSize: ; @ZWRAP_setPledgedSrcSize
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #16]
str x1, [sp, #8]
ldr x8, [sp, #16]
ldr x8, [x8]
str x8, [sp]
ldr x8, [sp]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _Z_STREAM_ERROR@GOTPAGE
ldr x8, [x8, _Z_STREAM_ERROR@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #28]
b LBB0_3
LBB0_2:
ldr x8, [sp, #8]
ldr x9, [sp]
str x8, [x9]
adrp x8, _ZWRAP_useInit@GOTPAGE
ldr x8, [x8, _ZWRAP_useInit@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp]
str w8, [x9, #8]
adrp x8, _Z_OK@GOTPAGE
ldr x8, [x8, _Z_OK@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #28]
b LBB0_3
LBB0_3:
ldr w0, [sp, #28]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _Z_STREAM_ERROR,4,2 ; @Z_STREAM_ERROR
.comm _ZWRAP_useInit,4,2 ; @ZWRAP_useInit
.comm _Z_OK,4,2 ; @Z_OK
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_setPledgedSrcSize ## -- Begin function ZWRAP_setPledgedSrcSize
.p2align 4, 0x90
_ZWRAP_setPledgedSrcSize: ## @ZWRAP_setPledgedSrcSize
.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, -24(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB0_2
## %bb.1:
movq _Z_STREAM_ERROR@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_3
LBB0_2:
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, (%rax)
movq _ZWRAP_useInit@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -32(%rbp), %rax
movl %ecx, 8(%rax)
movq _Z_OK@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
LBB0_3:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _Z_STREAM_ERROR,4,2 ## @Z_STREAM_ERROR
.comm _ZWRAP_useInit,4,2 ## @ZWRAP_useInit
.comm _Z_OK,4,2 ## @Z_OK
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAP_setPledgedSrcSize.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_useZSTDcompression ; -- Begin function ZWRAP_useZSTDcompression
.p2align 2
_ZWRAP_useZSTDcompression: ; @ZWRAP_useZSTDcompression
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w8, [sp, #12]
adrp x9, _g_ZWRAP_useZSTDcompression@GOTPAGE
ldr x9, [x9, _g_ZWRAP_useZSTDcompression@GOTPAGEOFF]
str w8, [x9]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _g_ZWRAP_useZSTDcompression,4,2 ; @g_ZWRAP_useZSTDcompression
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ZWRAP_useZSTDcompression ## -- Begin function ZWRAP_useZSTDcompression
.p2align 4, 0x90
_ZWRAP_useZSTDcompression: ## @ZWRAP_useZSTDcompression
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl -4(%rbp), %ecx
movq _g_ZWRAP_useZSTDcompression@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_ZWRAP_useZSTDcompression,4,2 ## @g_ZWRAP_useZSTDcompression
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAP_useZSTDcompression.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _zstdVersion ; -- Begin function zstdVersion
.p2align 2
_zstdVersion: ; @zstdVersion
.cfi_startproc
; %bb.0:
adrp x8, _ZSTD_VERSION_STRING@GOTPAGE
ldr x8, [x8, _ZSTD_VERSION_STRING@GOTPAGEOFF]
ldr x0, [x8]
ret
.cfi_endproc
; -- End function
.comm _ZSTD_VERSION_STRING,8,3 ; @ZSTD_VERSION_STRING
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _zstdVersion ## -- Begin function zstdVersion
.p2align 4, 0x90
_zstdVersion: ## @zstdVersion
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _ZSTD_VERSION_STRING@GOTPCREL(%rip), %rax
movq (%rax), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_VERSION_STRING,8,3 ## @ZSTD_VERSION_STRING
.subsections_via_symbols
| AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_zstdVersion.c |
Subsets and Splits