arm
stringlengths 122
113k
| x86
stringlengths 122
93.9k
| filename
stringlengths 33
207
|
---|---|---|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_fileExist ; -- Begin function UTIL_fileExist
.p2align 2
_UTIL_fileExist: ; @UTIL_fileExist
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x0, [sp, #8]
add x1, sp, #4
bl _stat
str w0, [sp]
ldr w8, [sp]
subs w8, w8, #0
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
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_fileExist ## -- Begin function UTIL_fileExist
.p2align 4, 0x90
_UTIL_fileExist: ## @UTIL_fileExist
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
leaq -12(%rbp), %rsi
callq _stat
movl %eax, -16(%rbp)
cmpl $0, -16(%rbp)
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_util.c_UTIL_fileExist.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_getFileExtension ; -- Begin function UTIL_getFileExtension
.p2align 2
_UTIL_getFileExtension: ; @UTIL_getFileExtension
.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]
ldr x0, [sp, #16]
mov w1, #46
bl _strrchr
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #8]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
stur x8, [x29, #-8]
b LBB0_4
LBB0_3:
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB0_4
LBB0_4:
ldur x0, [x29, #-8]
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
.space 1
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_getFileExtension ## -- Begin function UTIL_getFileExtension
.p2align 4, 0x90
_UTIL_getFileExtension: ## @UTIL_getFileExtension
.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 -16(%rbp), %rdi
movl $46, %esi
callq _strrchr
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
je LBB0_2
## %bb.1:
movq -24(%rbp), %rax
cmpq -16(%rbp), %rax
jne LBB0_3
LBB0_2:
leaq L_.str(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB0_4
LBB0_3:
movq -24(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_4:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.space 1
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_util.c_UTIL_getFileExtension.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_getFileSize ; -- Begin function UTIL_getFileSize
.p2align 2
_UTIL_getFileSize: ; @UTIL_getFileSize
.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]
ldr x0, [sp, #16]
bl _UTIL_isRegularFile
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _UTIL_FILESIZE_UNKNOWN@GOTPAGE
ldr x8, [x8, _UTIL_FILESIZE_UNKNOWN@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_6
LBB0_2:
ldr x0, [sp, #16]
add x1, sp, #4
bl _stat
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr w0, [sp, #8]
bl _S_ISREG
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
adrp x8, _UTIL_FILESIZE_UNKNOWN@GOTPAGE
ldr x8, [x8, _UTIL_FILESIZE_UNKNOWN@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_6
LBB0_5:
ldr w8, [sp, #4]
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
.comm _UTIL_FILESIZE_UNKNOWN,4,2 ; @UTIL_FILESIZE_UNKNOWN
.comm _S_IFREG,4,2 ; @S_IFREG
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_getFileSize ## -- Begin function UTIL_getFileSize
.p2align 4, 0x90
_UTIL_getFileSize: ## @UTIL_getFileSize
.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 -16(%rbp), %rdi
callq _UTIL_isRegularFile
cmpl $0, %eax
jne LBB0_2
## %bb.1:
movq _UTIL_FILESIZE_UNKNOWN@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_6
LBB0_2:
movq -16(%rbp), %rdi
leaq -32(%rbp), %rsi
callq _stat
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
jne LBB0_4
## %bb.3:
movl -28(%rbp), %edi
callq _S_ISREG
cmpl $0, %eax
jne LBB0_5
LBB0_4:
movq _UTIL_FILESIZE_UNKNOWN@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_6
LBB0_5:
movl -32(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_6:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _UTIL_FILESIZE_UNKNOWN,4,2 ## @UTIL_FILESIZE_UNKNOWN
.comm _S_IFREG,4,2 ## @S_IFREG
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_util.c_UTIL_getFileSize.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_getFileStat ; -- Begin function UTIL_getFileStat
.p2align 2
_UTIL_getFileStat: ; @UTIL_getFileStat
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
str x1, [sp, #8]
ldr x0, [sp, #16]
ldr x1, [sp, #8]
bl _stat
str w0, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #8]
ldr w0, [x8]
bl _S_ISREG
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
stur wzr, [x29, #-4]
b LBB0_4
LBB0_3:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_4
LBB0_4:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _S_IFREG,4,2 ; @S_IFREG
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_getFileStat ## -- Begin function UTIL_getFileStat
.p2align 4, 0x90
_UTIL_getFileStat: ## @UTIL_getFileStat
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
callq _stat
movl %eax, -28(%rbp)
cmpl $0, -28(%rbp)
jne LBB0_2
## %bb.1:
movq -24(%rbp), %rax
movl (%rax), %edi
callq _S_ISREG
cmpl $0, %eax
jne LBB0_3
LBB0_2:
movl $0, -4(%rbp)
jmp LBB0_4
LBB0_3:
movl $1, -4(%rbp)
LBB0_4:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _S_IFREG,4,2 ## @S_IFREG
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_util.c_UTIL_getFileStat.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_isCompressedFile ; -- Begin function UTIL_isCompressedFile
.p2align 2
_UTIL_isCompressedFile: ; @UTIL_isCompressedFile
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
str x1, [sp, #24]
ldur x0, [x29, #-16]
bl _UTIL_getFileExtension
str x0, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #16]
ldr x8, [sp, #24]
ldr x1, [x8]
bl _strcmp
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_6
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
add x8, x8, #8
str x8, [sp, #24]
b LBB0_1
LBB0_5:
stur wzr, [x29, #-4]
b LBB0_6
LBB0_6:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_isCompressedFile ## -- Begin function UTIL_isCompressedFile
.p2align 4, 0x90
_UTIL_isCompressedFile: ## @UTIL_isCompressedFile
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -16(%rbp), %rdi
callq _UTIL_getFileExtension
movq %rax, -32(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
cmpq $0, (%rax)
je LBB0_5
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdi
movq -24(%rbp), %rax
movq (%rax), %rsi
callq _strcmp
movl %eax, -36(%rbp)
cmpl $0, -36(%rbp)
jne LBB0_4
## %bb.3:
movl $1, -4(%rbp)
jmp LBB0_6
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
addq $8, %rax
movq %rax, -24(%rbp)
jmp LBB0_1
LBB0_5:
movl $0, -4(%rbp)
LBB0_6:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_util.c_UTIL_isCompressedFile.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_isDirectory ; -- Begin function UTIL_isDirectory
.p2align 2
_UTIL_isDirectory: ; @UTIL_isDirectory
.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]
ldr x0, [sp, #16]
add x1, sp, #8
bl _stat
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
ldr w0, [sp, #8]
bl _S_ISDIR
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_4
LBB0_3:
stur wzr, [x29, #-4]
b LBB0_4
LBB0_4:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm __S_IFDIR,4,2 ; @_S_IFDIR
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_isDirectory ## -- Begin function UTIL_isDirectory
.p2align 4, 0x90
_UTIL_isDirectory: ## @UTIL_isDirectory
.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 -16(%rbp), %rdi
leaq -24(%rbp), %rsi
callq _stat
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
jne LBB0_3
## %bb.1:
movl -24(%rbp), %edi
callq _S_ISDIR
cmpq $0, %rax
je LBB0_3
## %bb.2:
movl $1, -4(%rbp)
jmp LBB0_4
LBB0_3:
movl $0, -4(%rbp)
LBB0_4:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm __S_IFDIR,4,2 ## @_S_IFDIR
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_util.c_UTIL_isDirectory.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_isFIFO ; -- Begin function UTIL_isFIFO
.p2align 2
_UTIL_isFIFO: ; @UTIL_isFIFO
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
mov w0, #0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_isFIFO ## -- Begin function UTIL_isFIFO
.p2align 4, 0x90
_UTIL_isFIFO: ## @UTIL_isFIFO
.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)
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_util.c_UTIL_isFIFO.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_isLink ; -- Begin function UTIL_isLink
.p2align 2
_UTIL_isLink: ; @UTIL_isLink
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
mov w0, #0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_isLink ## -- Begin function UTIL_isLink
.p2align 4, 0x90
_UTIL_isLink: ## @UTIL_isLink
.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)
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_util.c_UTIL_isLink.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_isRegularFile ; -- Begin function UTIL_isRegularFile
.p2align 2
_UTIL_isRegularFile: ; @UTIL_isRegularFile
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x0, [sp, #8]
add x1, sp, #4
bl _UTIL_getFileStat
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_isRegularFile ## -- Begin function UTIL_isRegularFile
.p2align 4, 0x90
_UTIL_isRegularFile: ## @UTIL_isRegularFile
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
leaq -12(%rbp), %rsi
callq _UTIL_getFileStat
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_util.c_UTIL_isRegularFile.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_isSameFile ; -- Begin function UTIL_isSameFile
.p2align 2
_UTIL_isSameFile: ; @UTIL_isSameFile
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x8, [x29, #-8]
subs x8, x8, #0
cset w8, ne
and w0, w8, #0x1
bl _assert
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, ne
and w0, w8, #0x1
bl _assert
ldur x0, [x29, #-8]
add x1, sp, #32
bl _UTIL_getFileStat
subs x8, x0, #0
cset w8, eq
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_4
b LBB0_1
LBB0_1:
ldur x0, [x29, #-16]
add x1, sp, #16
bl _UTIL_getFileStat
subs x8, x0, #0
cset w8, eq
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2:
ldr x8, [sp, #32]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, ne
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #40]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, eq
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_4
LBB0_4:
ldr w8, [sp, #12] ; 4-byte Folded Reload
and w0, w8, #0x1
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_isSameFile ## -- Begin function UTIL_isSameFile
.p2align 4, 0x90
_UTIL_isSameFile: ## @UTIL_isSameFile
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpq $0, -8(%rbp)
setne %al
andb $1, %al
movzbl %al, %edi
callq _assert
cmpq $0, -16(%rbp)
setne %al
andb $1, %al
movzbl %al, %edi
callq _assert
movq -8(%rbp), %rdi
leaq -32(%rbp), %rsi
callq _UTIL_getFileStat
movq %rax, %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq $0, %rcx
movb %al, -49(%rbp) ## 1-byte Spill
je LBB0_4
## %bb.1:
movq -16(%rbp), %rdi
leaq -48(%rbp), %rsi
callq _UTIL_getFileStat
movq %rax, %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq $0, %rcx
movb %al, -49(%rbp) ## 1-byte Spill
je LBB0_4
## %bb.2:
movq -32(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq -48(%rbp), %rcx
movb %al, -49(%rbp) ## 1-byte Spill
jne LBB0_4
## %bb.3:
movq -24(%rbp), %rax
cmpq -40(%rbp), %rax
sete %al
movb %al, -49(%rbp) ## 1-byte Spill
LBB0_4:
movb -49(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_util.c_UTIL_isSameFile.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_prepareFileList ; -- Begin function UTIL_prepareFileList
.p2align 2
_UTIL_prepareFileList: ; @UTIL_prepareFileList
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _errno@GOTPAGE
ldr x8, [x8, _errno@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur x2, [x29, #-32]
stur x3, [x29, #-40]
stur w4, [x29, #-44]
str wzr, [sp, #44]
ldur x0, [x29, #-16]
bl _opendir
mov x8, x0
stur x8, [x29, #-56]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldur x9, [x29, #-16]
str x9, [sp, #24] ; 8-byte Folded Spill
ldr x0, [x8]
bl _strerror
ldr x2, [sp, #24] ; 8-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
mov w0, #1
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _UTIL_DISPLAYLEVEL
stur wzr, [x29, #-4]
b LBB0_27
LBB0_2:
ldur x0, [x29, #-16]
bl _strlen
ldr x8, [sp, #32] ; 8-byte Folded Reload
str x0, [sp, #64]
str xzr, [x8]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldur x0, [x29, #-56]
bl _readdir
mov x8, x0
stur x8, [x29, #-64]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_24
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-64]
ldr x0, [x8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _strcmp
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-64]
ldr x0, [x8]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _strcmp
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
b LBB0_3
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-64]
ldr x0, [x8]
bl _strlen
str x0, [sp, #56]
ldr x8, [sp, #64]
ldr x9, [sp, #56]
add x8, x8, x9
add x0, x8, #2
bl _malloc
str x0, [sp, #72]
ldr x8, [sp, #72]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldur x0, [x29, #-56]
bl _closedir
stur wzr, [x29, #-4]
b LBB0_27
LBB0_9: ; in Loop: Header=BB0_3 Depth=1
ldr x0, [sp, #72]
ldur x1, [x29, #-16]
ldr x2, [sp, #64]
bl _memcpy
ldr x8, [sp, #72]
ldr x9, [sp, #64]
add x9, x8, x9
mov w8, #47
strb w8, [x9]
ldr x8, [sp, #72]
ldr x9, [sp, #64]
add x8, x8, x9
add x0, x8, #1
ldur x8, [x29, #-64]
ldr x1, [x8]
ldr x2, [sp, #56]
bl _memcpy
ldr x8, [sp, #64]
add x8, x8, #1
ldr x9, [sp, #56]
add x8, x8, x9
str x8, [sp, #48]
ldr x8, [sp, #72]
ldr x9, [sp, #48]
add x8, x8, x9
strb wzr, [x8]
ldur w8, [x29, #-44]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_3 Depth=1
ldr x0, [sp, #72]
bl _UTIL_isLink
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_3 Depth=1
ldr x2, [sp, #72]
mov w0, #2
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _UTIL_DISPLAYLEVEL
ldr x0, [sp, #72]
bl _free
b LBB0_3
LBB0_12: ; in Loop: Header=BB0_3 Depth=1
ldr x0, [sp, #72]
bl _UTIL_isDirectory
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_16
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_3 Depth=1
ldr x0, [sp, #72]
ldur x1, [x29, #-24]
ldur x2, [x29, #-32]
ldur x3, [x29, #-40]
ldur w4, [x29, #-44]
bl _UTIL_prepareFileList
ldr w8, [sp, #44]
add w8, w8, w0
str w8, [sp, #44]
ldur x8, [x29, #-24]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
ldr x0, [sp, #72]
bl _free
ldur x0, [x29, #-56]
bl _closedir
stur wzr, [x29, #-4]
b LBB0_27
LBB0_15: ; in Loop: Header=BB0_3 Depth=1
b LBB0_23
LBB0_16: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-24]
ldr x8, [x8]
ldur x9, [x29, #-32]
ldr x9, [x9]
add x8, x8, x9
ldr x9, [sp, #48]
add x8, x8, x9
ldur x9, [x29, #-40]
ldr x9, [x9]
subs x8, x8, x9
cset w8, lo
tbnz w8, #0, LBB0_20
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-40]
ldr x8, [x8]
ldur x9, [x29, #-24]
ldr x9, [x9]
subs x8, x8, x9
adrp x9, _LIST_SIZE_INCREASE@GOTPAGE
ldr x9, [x9, _LIST_SIZE_INCREASE@GOTPAGEOFF]
ldrsw x9, [x9]
add x8, x8, x9
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #40]
ldr w8, [sp, #40]
subs w8, w8, #0
cset w8, ge
and w0, w8, #0x1
bl _assert
ldur x8, [x29, #-24]
ldr x0, [x8]
ldrsw x1, [sp, #40]
bl _UTIL_realloc
ldur x8, [x29, #-24]
str x0, [x8]
ldur x8, [x29, #-24]
ldr x8, [x8]
ldrsw x9, [sp, #40]
add x8, x8, x9
ldur x9, [x29, #-40]
str x8, [x9]
ldur x8, [x29, #-24]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18:
ldr x0, [sp, #72]
bl _free
ldur x0, [x29, #-56]
bl _closedir
stur wzr, [x29, #-4]
b LBB0_27
LBB0_19: ; in Loop: Header=BB0_3 Depth=1
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-24]
ldr x8, [x8]
ldur x9, [x29, #-32]
ldr x9, [x9]
add x8, x8, x9
ldr x9, [sp, #48]
add x8, x8, x9
ldur x9, [x29, #-40]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-24]
ldr x8, [x8]
ldur x9, [x29, #-32]
ldr x9, [x9]
add x0, x8, x9
ldr x1, [sp, #72]
ldr x8, [sp, #48]
add x2, x8, #1
bl _memcpy
ldr x8, [sp, #48]
add x10, x8, #1
ldur x9, [x29, #-32]
ldr x8, [x9]
add x8, x8, x10
str x8, [x9]
ldr w8, [sp, #44]
add w8, w8, #1
str w8, [sp, #44]
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_3 Depth=1
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_3 Depth=1
ldr x0, [sp, #72]
bl _free
ldr x8, [sp, #32] ; 8-byte Folded Reload
str xzr, [x8]
b LBB0_3
LBB0_24:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_26
b LBB0_25
LBB0_25:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldur x9, [x29, #-16]
str x9, [sp, #16] ; 8-byte Folded Spill
ldr x0, [x8]
bl _strerror
ldr x2, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
mov w0, #1
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _UTIL_DISPLAYLEVEL
ldur x8, [x29, #-24]
ldr x0, [x8]
bl _free
ldur x8, [x29, #-24]
; kill: def $x9 killed $xzr
str xzr, [x8]
b LBB0_26
LBB0_26:
ldur x0, [x29, #-56]
bl _closedir
ldr w8, [sp, #44]
stur w8, [x29, #-4]
b LBB0_27
LBB0_27:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
add sp, sp, #160
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Cannot open directory '%s': %s\n"
.comm _errno,8,3 ; @errno
l_.str.1: ; @.str.1
.asciz ".."
l_.str.2: ; @.str.2
.asciz "."
l_.str.3: ; @.str.3
.asciz "Warning : %s is a symbolic link, ignoring\n"
.comm _LIST_SIZE_INCREASE,4,2 ; @LIST_SIZE_INCREASE
l_.str.4: ; @.str.4
.asciz "readdir(%s) error: %s\n"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_prepareFileList ## -- Begin function UTIL_prepareFileList
.p2align 4, 0x90
_UTIL_prepareFileList: ## @UTIL_prepareFileList
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq %rcx, -40(%rbp)
movl %r8d, -44(%rbp)
movl $0, -100(%rbp)
movq -16(%rbp), %rdi
callq _opendir
movq %rax, -56(%rbp)
cmpq $0, %rax
jne LBB0_2
## %bb.1:
movq -16(%rbp), %rax
movq %rax, -112(%rbp) ## 8-byte Spill
movq _errno@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _strerror
movq -112(%rbp), %rdx ## 8-byte Reload
movl %eax, %ecx
movl $1, %edi
leaq L_.str(%rip), %rsi
movb $0, %al
callq _UTIL_DISPLAYLEVEL
movl $0, -4(%rbp)
jmp LBB0_27
LBB0_2:
movq -16(%rbp), %rdi
callq _strlen
movq %rax, -80(%rbp)
movq _errno@GOTPCREL(%rip), %rax
movq $0, (%rax)
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq -56(%rbp), %rdi
callq _readdir
movq %rax, -64(%rbp)
cmpq $0, %rax
je LBB0_24
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -64(%rbp), %rax
movq (%rax), %rdi
leaq L_.str.1(%rip), %rsi
callq _strcmp
cmpq $0, %rax
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movq -64(%rbp), %rax
movq (%rax), %rdi
leaq L_.str.2(%rip), %rsi
callq _strcmp
cmpq $0, %rax
jne LBB0_7
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_3
LBB0_7: ## in Loop: Header=BB0_3 Depth=1
movq -64(%rbp), %rax
movq (%rax), %rdi
callq _strlen
movq %rax, -88(%rbp)
movq -80(%rbp), %rdi
addq -88(%rbp), %rdi
addq $2, %rdi
callq _malloc
movq %rax, -72(%rbp)
cmpq $0, -72(%rbp)
jne LBB0_9
## %bb.8:
movq -56(%rbp), %rdi
callq _closedir
movl $0, -4(%rbp)
jmp LBB0_27
LBB0_9: ## in Loop: Header=BB0_3 Depth=1
movq -72(%rbp), %rdi
movq -16(%rbp), %rsi
movq -80(%rbp), %rdx
callq _memcpy
movq -72(%rbp), %rax
movq -80(%rbp), %rcx
movb $47, (%rax,%rcx)
movq -72(%rbp), %rdi
addq -80(%rbp), %rdi
addq $1, %rdi
movq -64(%rbp), %rax
movq (%rax), %rsi
movq -88(%rbp), %rdx
callq _memcpy
movq -80(%rbp), %rax
addq $1, %rax
addq -88(%rbp), %rax
movq %rax, -96(%rbp)
movq -72(%rbp), %rax
movq -96(%rbp), %rcx
movb $0, (%rax,%rcx)
cmpl $0, -44(%rbp)
jne LBB0_12
## %bb.10: ## in Loop: Header=BB0_3 Depth=1
movq -72(%rbp), %rdi
callq _UTIL_isLink
cmpq $0, %rax
je LBB0_12
## %bb.11: ## in Loop: Header=BB0_3 Depth=1
movq -72(%rbp), %rdx
movl $2, %edi
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _UTIL_DISPLAYLEVEL
movq -72(%rbp), %rdi
callq _free
jmp LBB0_3
LBB0_12: ## in Loop: Header=BB0_3 Depth=1
movq -72(%rbp), %rdi
callq _UTIL_isDirectory
cmpq $0, %rax
je LBB0_16
## %bb.13: ## in Loop: Header=BB0_3 Depth=1
movq -72(%rbp), %rdi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
movq -40(%rbp), %rcx
movl -44(%rbp), %r8d
callq _UTIL_prepareFileList
addl -100(%rbp), %eax
movl %eax, -100(%rbp)
movq -24(%rbp), %rax
cmpq $0, (%rax)
jne LBB0_15
## %bb.14:
movq -72(%rbp), %rdi
callq _free
movq -56(%rbp), %rdi
callq _closedir
movl $0, -4(%rbp)
jmp LBB0_27
LBB0_15: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_23
LBB0_16: ## in Loop: Header=BB0_3 Depth=1
movq -24(%rbp), %rax
movq (%rax), %rax
movq -32(%rbp), %rcx
addq (%rcx), %rax
addq -96(%rbp), %rax
movq -40(%rbp), %rcx
cmpq (%rcx), %rax
jb LBB0_20
## %bb.17: ## in Loop: Header=BB0_3 Depth=1
movq -40(%rbp), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movq _LIST_SIZE_INCREASE@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
addq %rcx, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -104(%rbp)
cmpl $0, -104(%rbp)
setge %al
andb $1, %al
movzbl %al, %edi
callq _assert
movq -24(%rbp), %rax
movq (%rax), %rdi
movslq -104(%rbp), %rsi
callq _UTIL_realloc
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
movq -24(%rbp), %rax
movq (%rax), %rcx
movslq -104(%rbp), %rax
addq %rax, %rcx
movq -40(%rbp), %rax
movq %rcx, (%rax)
movq -24(%rbp), %rax
cmpq $0, (%rax)
jne LBB0_19
## %bb.18:
movq -72(%rbp), %rdi
callq _free
movq -56(%rbp), %rdi
callq _closedir
movl $0, -4(%rbp)
jmp LBB0_27
LBB0_19: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_20
LBB0_20: ## in Loop: Header=BB0_3 Depth=1
movq -24(%rbp), %rax
movq (%rax), %rax
movq -32(%rbp), %rcx
addq (%rcx), %rax
addq -96(%rbp), %rax
movq -40(%rbp), %rcx
cmpq (%rcx), %rax
jae LBB0_22
## %bb.21: ## in Loop: Header=BB0_3 Depth=1
movq -24(%rbp), %rax
movq (%rax), %rdi
movq -32(%rbp), %rax
addq (%rax), %rdi
movq -72(%rbp), %rsi
movq -96(%rbp), %rdx
addq $1, %rdx
callq _memcpy
movq -96(%rbp), %rcx
addq $1, %rcx
movq -32(%rbp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
movl -100(%rbp), %eax
addl $1, %eax
movl %eax, -100(%rbp)
LBB0_22: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_23
LBB0_23: ## in Loop: Header=BB0_3 Depth=1
movq -72(%rbp), %rdi
callq _free
movq _errno@GOTPCREL(%rip), %rax
movq $0, (%rax)
jmp LBB0_3
LBB0_24:
movq _errno@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_26
## %bb.25:
movq -16(%rbp), %rax
movq %rax, -120(%rbp) ## 8-byte Spill
movq _errno@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _strerror
movq -120(%rbp), %rdx ## 8-byte Reload
movl %eax, %ecx
movl $1, %edi
leaq L_.str.4(%rip), %rsi
movb $0, %al
callq _UTIL_DISPLAYLEVEL
movq -24(%rbp), %rax
movq (%rax), %rdi
callq _free
movq -24(%rbp), %rax
movq $0, (%rax)
LBB0_26:
movq -56(%rbp), %rdi
callq _closedir
movl -100(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_27:
movl -4(%rbp), %eax
addq $128, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Cannot open directory '%s': %s\n"
.comm _errno,8,3 ## @errno
L_.str.1: ## @.str.1
.asciz ".."
L_.str.2: ## @.str.2
.asciz "."
L_.str.3: ## @.str.3
.asciz "Warning : %s is a symbolic link, ignoring\n"
.comm _LIST_SIZE_INCREASE,4,2 ## @LIST_SIZE_INCREASE
L_.str.4: ## @.str.4
.asciz "readdir(%s) error: %s\n"
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_util.c_UTIL_prepareFileList.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_setFileStat ; -- Begin function UTIL_setFileStat
.p2align 2
_UTIL_setFileStat: ; @UTIL_setFileStat
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
str x1, [sp, #24]
str wzr, [sp, #20]
ldur x0, [x29, #-16]
bl _UTIL_isRegularFile
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #-1
stur w8, [x29, #-4]
b LBB0_3
LBB0_2:
mov x0, #0
bl _time
add x1, sp, #12
str w0, [sp, #16]
ldr x8, [sp, #24]
ldr w8, [x8, #20]
str w8, [sp, #12]
ldur x0, [x29, #-16]
bl _utime
ldrsw x8, [sp, #20]
add x8, x8, x0
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #20]
ldur x0, [x29, #-16]
ldr x8, [sp, #24]
ldr w1, [x8, #8]
ldr x8, [sp, #24]
ldr w2, [x8, #4]
bl _chown
ldrsw x8, [sp, #20]
add x8, x8, x0
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #20]
ldur x0, [x29, #-16]
ldr x8, [sp, #24]
ldr w8, [x8]
and w1, w8, #0xfff
bl _chmod
ldrsw x8, [sp, #20]
add x8, x8, x0
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #20]
adrp x8, _errno@GOTPAGE
ldr x8, [x8, _errno@GOTPAGEOFF]
str xzr, [x8]
ldr w9, [sp, #20]
mov w8, #0
subs w8, w8, w9
stur w8, [x29, #-4]
b LBB0_3
LBB0_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _errno,8,3 ; @errno
.comm _AT_FDCWD,4,2 ; @AT_FDCWD
.comm _UTIME_NOW,4,2 ; @UTIME_NOW
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _UTIL_setFileStat ## -- Begin function UTIL_setFileStat
.p2align 4, 0x90
_UTIL_setFileStat: ## @UTIL_setFileStat
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movl $0, -28(%rbp)
movq -16(%rbp), %rdi
callq _UTIL_isRegularFile
cmpl $0, %eax
jne LBB0_2
## %bb.1:
movl $-1, -4(%rbp)
jmp LBB0_3
LBB0_2:
xorl %eax, %eax
movl %eax, %edi
callq _time
movl %eax, -36(%rbp)
movq -24(%rbp), %rax
movl 20(%rax), %eax
movl %eax, -40(%rbp)
movq -16(%rbp), %rdi
leaq -40(%rbp), %rsi
callq _utime
movq %rax, %rcx
movslq -28(%rbp), %rax
addq %rcx, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -28(%rbp)
movq -16(%rbp), %rdi
movq -24(%rbp), %rax
movl 8(%rax), %esi
movq -24(%rbp), %rax
movl 4(%rax), %edx
callq _chown
movq %rax, %rcx
movslq -28(%rbp), %rax
addq %rcx, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -28(%rbp)
movq -16(%rbp), %rdi
movq -24(%rbp), %rax
movl (%rax), %esi
andl $4095, %esi ## imm = 0xFFF
callq _chmod
movq %rax, %rcx
movslq -28(%rbp), %rax
addq %rcx, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -28(%rbp)
movq _errno@GOTPCREL(%rip), %rax
movq $0, (%rax)
xorl %eax, %eax
subl -28(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_3:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _errno,8,3 ## @errno
.comm _AT_FDCWD,4,2 ## @AT_FDCWD
.comm _UTIME_NOW,4,2 ## @UTIME_NOW
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_util.c_UTIL_setFileStat.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, #2
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 $2, (%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/programs/extr_zstdcli.c_badusage.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function defaultFastCoverParams
_defaultFastCoverParams: ; @defaultFastCoverParams
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, x8
str x0, [sp, #8] ; 8-byte Folded Spill
mov w1, #0
mov w2, #48
bl _memset
ldr x9, [sp, #8] ; 8-byte Folded Reload
mov w8, #8
str w8, [x9]
mov w8, #20
str w8, [x9, #4]
mov w8, #4
str w8, [x9, #8]
fmov d0, #0.75000000
str d0, [x9, #16]
adrp x8, _DEFAULT_ACCEL@GOTPAGE
ldr x8, [x8, _DEFAULT_ACCEL@GOTPAGEOFF]
ldr w8, [x8]
str w8, [x9, #40]
str xzr, [x9, #32]
adrp x8, _kDefaultRegression@GOTPAGE
ldr x8, [x8, _kDefaultRegression@GOTPAGEOFF]
ldr w8, [x8]
str w8, [x9, #24]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _DEFAULT_ACCEL,4,2 ; @DEFAULT_ACCEL
.comm _kDefaultRegression,4,2 ; @kDefaultRegression
.no_dead_strip _defaultFastCoverParams
.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 defaultFastCoverParams
LCPI0_0:
.quad 0x3fe8000000000000 ## double 0.75
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_defaultFastCoverParams: ## @defaultFastCoverParams
.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) ## 8-byte Spill
movq %rdi, %rax
movq %rax, -8(%rbp) ## 8-byte Spill
xorl %esi, %esi
movl $48, %edx
callq _memset
movq -16(%rbp), %rdi ## 8-byte Reload
## kill: def $ecx killed $eax
movq -8(%rbp), %rax ## 8-byte Reload
movl $8, (%rdi)
movl $20, 4(%rdi)
movl $4, 8(%rdi)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, 16(%rdi)
movq _DEFAULT_ACCEL@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl %ecx, 40(%rdi)
movq $0, 32(%rdi)
movq _kDefaultRegression@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl %ecx, 24(%rdi)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _DEFAULT_ACCEL,4,2 ## @DEFAULT_ACCEL
.comm _kDefaultRegression,4,2 ## @kDefaultRegression
.no_dead_strip _defaultFastCoverParams
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_defaultFastCoverParams.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function defaultCoverParams
_defaultCoverParams: ; @defaultCoverParams
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, x8
str x0, [sp, #8] ; 8-byte Folded Spill
mov w1, #0
mov w2, #32
bl _memset
ldr x9, [sp, #8] ; 8-byte Folded Reload
mov w8, #8
str w8, [x9]
mov w8, #4
str w8, [x9, #4]
fmov d0, #1.00000000
str d0, [x9, #8]
str xzr, [x9, #24]
adrp x8, _kDefaultRegression@GOTPAGE
ldr x8, [x8, _kDefaultRegression@GOTPAGEOFF]
ldr w8, [x8]
str w8, [x9, #16]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _kDefaultRegression,4,2 ; @kDefaultRegression
.no_dead_strip _defaultCoverParams
.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 defaultCoverParams
LCPI0_0:
.quad 0x3ff0000000000000 ## double 1
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_defaultCoverParams: ## @defaultCoverParams
.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) ## 8-byte Spill
movq %rdi, %rax
movq %rax, -8(%rbp) ## 8-byte Spill
xorl %esi, %esi
movl $32, %edx
callq _memset
movq -16(%rbp), %rdi ## 8-byte Reload
## kill: def $ecx killed $eax
movq -8(%rbp), %rax ## 8-byte Reload
movl $8, (%rdi)
movl $4, 4(%rdi)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, 8(%rdi)
movq $0, 24(%rdi)
movq _kDefaultRegression@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl %ecx, 16(%rdi)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _kDefaultRegression,4,2 ## @kDefaultRegression
.no_dead_strip _defaultCoverParams
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_defaultCoverParams.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function errorOut
_errorOut: ; @errorOut
.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 x1, [sp, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
mov w0, #1
bl _exit
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s \n"
.no_dead_strip _errorOut
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function errorOut
_errorOut: ## @errorOut
.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), %rsi
leaq L_.str(%rip), %rdi
callq _DISPLAY
movl $1, %edi
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s \n"
.no_dead_strip _errorOut
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_errorOut.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function init_cLevel
_init_cLevel: ; @init_cLevel
.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
adrp x8, _ENV_CLEVEL@GOTPAGE
ldr x8, [x8, _ENV_CLEVEL@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
ldr w0, [x8]
bl _getenv
stur x0, [x29, #-16]
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_15
b LBB0_1
LBB0_1:
ldur x8, [x29, #-16]
str x8, [sp, #24]
mov w8, #1
str w8, [sp, #20]
ldr x8, [sp, #24]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
mov w8, #-1
str w8, [sp, #20]
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
b LBB0_6
LBB0_3:
ldr x8, [sp, #24]
ldrsb w8, [x8]
subs w8, w8, #43
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
b LBB0_5
LBB0_5:
b LBB0_6
LBB0_6:
ldr x8, [sp, #24]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
tbnz w8, #0, LBB0_14
b LBB0_7
LBB0_7:
ldr x8, [sp, #24]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, gt
tbnz w8, #0, LBB0_14
b LBB0_8
LBB0_8:
add x0, sp, #24
add x1, sp, #16
bl _readU32FromCharChecked
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 w2, [x8]
ldur x3, [x29, #-16]
mov w0, #2
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _DISPLAYLEVEL
adrp x8, _ZSTDCLI_CLEVEL_DEFAULT@GOTPAGE
ldr x8, [x8, _ZSTDCLI_CLEVEL_DEFAULT@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_16
LBB0_10:
ldr x8, [sp, #24]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
ldr w8, [sp, #20]
ldr w9, [sp, #16]
mul w8, w8, w9
stur w8, [x29, #-4]
b LBB0_16
LBB0_12:
b LBB0_13
LBB0_13:
b LBB0_14
LBB0_14:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w2, [x8]
ldur x3, [x29, #-16]
mov w0, #2
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _DISPLAYLEVEL
b LBB0_15
LBB0_15:
adrp x8, _ZSTDCLI_CLEVEL_DEFAULT@GOTPAGE
ldr x8, [x8, _ZSTDCLI_CLEVEL_DEFAULT@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_16
LBB0_16:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _ENV_CLEVEL,4,2 ; @ENV_CLEVEL
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Ignore environment variable setting %s=%s: numeric value too large\n"
.comm _ZSTDCLI_CLEVEL_DEFAULT,4,2 ; @ZSTDCLI_CLEVEL_DEFAULT
l_.str.1: ; @.str.1
.asciz "Ignore environment variable setting %s=%s: not a valid integer value\n"
.no_dead_strip _init_cLevel
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function init_cLevel
_init_cLevel: ## @init_cLevel
.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 _ENV_CLEVEL@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _getenv
movq %rax, -16(%rbp)
cmpq $0, -16(%rbp)
je LBB0_15
## %bb.1:
movq -16(%rbp), %rax
movq %rax, -24(%rbp)
movl $1, -28(%rbp)
movq -24(%rbp), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB0_3
## %bb.2:
movl $-1, -28(%rbp)
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp LBB0_6
LBB0_3:
movq -24(%rbp), %rax
movsbl (%rax), %eax
cmpl $43, %eax
jne LBB0_5
## %bb.4:
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
LBB0_5:
jmp LBB0_6
LBB0_6:
movq -24(%rbp), %rax
movsbl (%rax), %eax
cmpl $48, %eax
jl LBB0_14
## %bb.7:
movq -24(%rbp), %rax
movsbl (%rax), %eax
cmpl $57, %eax
jg LBB0_14
## %bb.8:
leaq -24(%rbp), %rdi
leaq -32(%rbp), %rsi
callq _readU32FromCharChecked
cmpq $0, %rax
je LBB0_10
## %bb.9:
movq _ENV_CLEVEL@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq -16(%rbp), %rcx
movl $2, %edi
leaq L_.str(%rip), %rsi
callq _DISPLAYLEVEL
movq _ZSTDCLI_CLEVEL_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_16
LBB0_10:
movq -24(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
jne LBB0_12
## %bb.11:
movl -28(%rbp), %eax
imull -32(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_16
LBB0_12:
jmp LBB0_13
LBB0_13:
jmp LBB0_14
LBB0_14:
movq _ENV_CLEVEL@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq -16(%rbp), %rcx
movl $2, %edi
leaq L_.str.1(%rip), %rsi
callq _DISPLAYLEVEL
LBB0_15:
movq _ZSTDCLI_CLEVEL_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
LBB0_16:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ENV_CLEVEL,4,2 ## @ENV_CLEVEL
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Ignore environment variable setting %s=%s: numeric value too large\n"
.comm _ZSTDCLI_CLEVEL_DEFAULT,4,2 ## @ZSTDCLI_CLEVEL_DEFAULT
L_.str.1: ## @.str.1
.asciz "Ignore environment variable setting %s=%s: not a valid integer value\n"
.no_dead_strip _init_cLevel
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_init_cLevel.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function exeNameMatch
_exeNameMatch: ; @exeNameMatch
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x8, [x29, #-8]
str x8, [sp, #32] ; 8-byte Folded Spill
ldur x8, [x29, #-16]
str x8, [sp, #24] ; 8-byte Folded Spill
ldur x0, [x29, #-16]
bl _strlen
ldr x1, [sp, #24] ; 8-byte Folded Reload
mov x2, x0
ldr x0, [sp, #32] ; 8-byte Folded Reload
bl _strncmp
subs w8, w0, #0
cset w8, ne
mov w9, #0
stur w9, [x29, #-20] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_4
b LBB0_1
LBB0_1:
ldur x8, [x29, #-8]
str x8, [sp, #8] ; 8-byte Folded Spill
ldur x0, [x29, #-16]
bl _strlen
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldrsb w8, [x8, x0]
subs w8, w8, #0
cset w8, eq
mov w9, #1
str w9, [sp, #20] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldur x8, [x29, #-8]
str x8, [sp] ; 8-byte Folded Spill
ldur x0, [x29, #-16]
bl _strlen
ldr x8, [sp] ; 8-byte Folded Reload
ldrsb w8, [x8, x0]
subs w8, w8, #46
cset w8, eq
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB0_3
LBB0_3:
ldr w8, [sp, #20] ; 4-byte Folded Reload
stur w8, [x29, #-20] ; 4-byte Folded Spill
b LBB0_4
LBB0_4:
ldur w8, [x29, #-20] ; 4-byte Folded Reload
and w0, w8, #0x1
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.no_dead_strip _exeNameMatch
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function exeNameMatch
_exeNameMatch: ## @exeNameMatch
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rax
movq %rax, -40(%rbp) ## 8-byte Spill
movq -16(%rbp), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq -16(%rbp), %rdi
callq _strlen
movq -40(%rbp), %rdi ## 8-byte Reload
movq -32(%rbp), %rsi ## 8-byte Reload
movq %rax, %rdx
callq _strncmp
movl %eax, %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, %ecx
movb %al, -17(%rbp) ## 1-byte Spill
jne LBB0_4
## %bb.1:
movq -8(%rbp), %rax
movq %rax, -56(%rbp) ## 8-byte Spill
movq -16(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -56(%rbp), %rax ## 8-byte Reload
movsbl (%rax,%rcx), %ecx
movb $1, %al
cmpl $0, %ecx
movb %al, -41(%rbp) ## 1-byte Spill
je LBB0_3
## %bb.2:
movq -8(%rbp), %rax
movq %rax, -64(%rbp) ## 8-byte Spill
movq -16(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -64(%rbp), %rax ## 8-byte Reload
movsbl (%rax,%rcx), %eax
cmpl $46, %eax
sete %al
movb %al, -41(%rbp) ## 1-byte Spill
LBB0_3:
movb -41(%rbp), %al ## 1-byte Reload
movb %al, -17(%rbp) ## 1-byte Spill
LBB0_4:
movb -17(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _exeNameMatch
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_exeNameMatch.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function lastNameFromPath
_lastNameFromPath: ; @lastNameFromPath
.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]
str x8, [sp]
ldr x0, [sp]
mov w1, #47
bl _strrchr
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x0, [sp]
mov w1, #47
bl _strrchr
add x8, x0, #1
str x8, [sp]
b LBB0_2
LBB0_2:
ldr x0, [sp]
mov w1, #92
bl _strrchr
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x0, [sp]
mov w1, #92
bl _strrchr
add x8, x0, #1
str x8, [sp]
b LBB0_4
LBB0_4:
ldr x0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _lastNameFromPath
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function lastNameFromPath
_lastNameFromPath: ## @lastNameFromPath
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
movl $47, %esi
callq _strrchr
cmpq $0, %rax
je LBB0_2
## %bb.1:
movq -16(%rbp), %rdi
movl $47, %esi
callq _strrchr
addq $1, %rax
movq %rax, -16(%rbp)
LBB0_2:
movq -16(%rbp), %rdi
movl $92, %esi
callq _strrchr
cmpq $0, %rax
je LBB0_4
## %bb.3:
movq -16(%rbp), %rdi
movl $92, %esi
callq _strrchr
addq $1, %rax
movq %rax, -16(%rbp)
LBB0_4:
movq -16(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _lastNameFromPath
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_lastNameFromPath.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function longCommandWArg
_longCommandWArg: ; @longCommandWArg
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
ldr x0, [sp, #16]
bl _strlen
str x0, [sp, #8]
ldur x8, [x29, #-8]
ldr x0, [x8]
ldr x1, [sp, #16]
ldr x2, [sp, #8]
bl _strncmp
subs w8, w0, #0
cset w8, eq
and w8, w8, #0x1
str w8, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x10, [sp, #8]
ldur x9, [x29, #-8]
ldr x8, [x9]
add x8, x8, x10
str x8, [x9]
b LBB0_2
LBB0_2:
ldr w0, [sp, #4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _longCommandWArg
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function longCommandWArg
_longCommandWArg: ## @longCommandWArg
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rdi
callq _strlen
movq %rax, -24(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
callq _strncmp
cmpl $0, %eax
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
movl %eax, -28(%rbp)
cmpl $0, -28(%rbp)
je LBB0_2
## %bb.1:
movq -24(%rbp), %rcx
movq -8(%rbp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
LBB0_2:
movl -28(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _longCommandWArg
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_longCommandWArg.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function parseAdaptParameters
_parseAdaptParameters: ; @parseAdaptParameters
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
str x1, [sp, #8]
str x2, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
add x0, sp, #16
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #16
bl _readU32FromChar
ldr x9, [sp, #8]
mov x8, x0
str w8, [x9]
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #44
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_1
LBB0_4:
b LBB0_10
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #16
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #16
bl _readU32FromChar
ldr x9, [sp]
mov x8, x0
str w8, [x9]
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #44
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_1
LBB0_8:
b LBB0_10
LBB0_9:
mov w0, #4
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _DISPLAYLEVEL
stur wzr, [x29, #-4]
b LBB0_15
LBB0_10:
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
stur wzr, [x29, #-4]
b LBB0_15
LBB0_12:
ldr x8, [sp, #8]
ldr w8, [x8]
ldr x9, [sp]
ldr w9, [x9]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
mov w0, #4
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _DISPLAYLEVEL
stur wzr, [x29, #-4]
b LBB0_15
LBB0_14:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_15
LBB0_15:
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 "min="
l_.str.1: ; @.str.1
.asciz "max="
l_.str.2: ; @.str.2
.asciz "invalid compression parameter \n"
l_.str.3: ; @.str.3
.asciz "incoherent adaptation limits \n"
.no_dead_strip _parseAdaptParameters
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function parseAdaptParameters
_parseAdaptParameters: ## @parseAdaptParameters
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
leaq -16(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_5
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
callq _readU32FromChar
movl %eax, %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $44, %eax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_4:
jmp LBB0_10
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_9
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
callq _readU32FromChar
movl %eax, %ecx
movq -32(%rbp), %rax
movl %ecx, (%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $44, %eax
jne LBB0_8
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_8:
jmp LBB0_10
LBB0_9:
movl $4, %edi
leaq L_.str.2(%rip), %rsi
callq _DISPLAYLEVEL
movl $0, -4(%rbp)
jmp LBB0_15
LBB0_10:
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB0_12
## %bb.11:
movl $0, -4(%rbp)
jmp LBB0_15
LBB0_12:
movq -24(%rbp), %rax
movl (%rax), %eax
movq -32(%rbp), %rcx
cmpl (%rcx), %eax
jle LBB0_14
## %bb.13:
movl $4, %edi
leaq L_.str.3(%rip), %rsi
callq _DISPLAYLEVEL
movl $0, -4(%rbp)
jmp LBB0_15
LBB0_14:
movl $1, -4(%rbp)
LBB0_15:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "min="
L_.str.1: ## @.str.1
.asciz "max="
L_.str.2: ## @.str.2
.asciz "invalid compression parameter \n"
L_.str.3: ## @.str.3
.asciz "incoherent adaptation limits \n"
.no_dead_strip _parseAdaptParameters
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_parseAdaptParameters.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 parseCoverParameters
lCPI0_0:
.quad 0x4059000000000000 ; double 100
.section __TEXT,__text,regular,pure_instructions
.p2align 2
_parseCoverParameters: ; @parseCoverParameters
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
str x1, [sp, #8]
ldr x0, [sp, #8]
mov w1, #0
mov w2, #48
bl _memset
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
add x0, sp, #16
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #16
bl _readU32FromChar
ldr x8, [sp, #8]
str x0, [x8, #40]
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #44
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_1
LBB0_4:
b LBB0_24
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #16
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #16
bl _readU32FromChar
ldr x8, [sp, #8]
str x0, [x8, #32]
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #44
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_1
LBB0_8:
b LBB0_24
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #16
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #16
bl _readU32FromChar
ldr x8, [sp, #8]
str x0, [x8, #24]
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #44
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_1
LBB0_12:
b LBB0_24
LBB0_13: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #16
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_17
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #16
bl _readU32FromChar
mov x8, x0
str w8, [sp, #4]
ldr s1, [sp, #4]
; implicit-def: $d0
fmov s0, s1
ucvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
ldr x8, [sp, #8]
str d0, [x8]
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #44
cset w8, ne
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_1
LBB0_16:
b LBB0_24
LBB0_17: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #16
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_23
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _kDefaultRegression@GOTPAGE
ldr x8, [x8, _kDefaultRegression@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp, #8]
str x8, [x9, #16]
ldr x9, [sp, #8]
mov w8, #1
str w8, [x9, #8]
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #61
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #16
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
bl _readU32FromChar
ldr x8, [sp, #8]
str x0, [x8, #16]
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #44
cset w8, ne
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_1
LBB0_22:
b LBB0_24
LBB0_23:
stur wzr, [x29, #-4]
b LBB0_27
LBB0_24:
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_26
b LBB0_25
LBB0_25:
stur wzr, [x29, #-4]
b LBB0_27
LBB0_26:
ldr x8, [sp, #8]
ldr x2, [x8, #40]
ldr x8, [sp, #8]
ldr x3, [x8, #32]
ldr x8, [sp, #8]
ldr x4, [x8, #24]
ldr x8, [sp, #8]
ldr d0, [x8]
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fmul d0, d0, d1
fcvtzu w5, d0
ldr x8, [sp, #8]
ldr x6, [x8, #16]
mov w0, #4
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _DISPLAYLEVEL
mov w8, #1
stur w8, [x29, #-4]
b LBB0_27
LBB0_27:
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 "k="
l_.str.1: ; @.str.1
.asciz "d="
l_.str.2: ; @.str.2
.asciz "steps="
l_.str.3: ; @.str.3
.asciz "split="
l_.str.4: ; @.str.4
.asciz "shrink"
.comm _kDefaultRegression,8,3 ; @kDefaultRegression
l_.str.5: ; @.str.5
.asciz "cover: k=%u\nd=%u\nsteps=%u\nsplit=%u\nshrink%u\n"
.no_dead_strip _parseCoverParameters
.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 parseCoverParameters
LCPI0_0:
.quad 0x4059000000000000 ## double 100
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_parseCoverParameters: ## @parseCoverParameters
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -24(%rbp), %rdi
xorl %esi, %esi
movl $48, %edx
callq _memset
LBB0_1: ## =>This Inner Loop Header: Depth=1
leaq -16(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_5
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
callq _readU32FromChar
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, 40(%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $44, %eax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_4:
jmp LBB0_24
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_9
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
callq _readU32FromChar
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, 32(%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $44, %eax
jne LBB0_8
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_8:
jmp LBB0_24
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_13
## %bb.10: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
callq _readU32FromChar
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, 24(%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $44, %eax
jne LBB0_12
## %bb.11: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_12:
jmp LBB0_24
LBB0_13: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
leaq L_.str.3(%rip), %rsi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_17
## %bb.14: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
callq _readU32FromChar
## kill: def $eax killed $eax killed $rax
movl %eax, -28(%rbp)
movl -28(%rbp), %eax
## kill: def $rax killed $eax
cvtsi2sd %rax, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movq -24(%rbp), %rax
movsd %xmm0, (%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $44, %eax
jne LBB0_16
## %bb.15: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_16:
jmp LBB0_24
LBB0_17: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
leaq L_.str.4(%rip), %rsi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_23
## %bb.18: ## in Loop: Header=BB0_1 Depth=1
movq _kDefaultRegression@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, 16(%rax)
movq -24(%rbp), %rax
movl $1, 8(%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $61, %eax
jne LBB0_20
## %bb.19: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
leaq -16(%rbp), %rdi
callq _readU32FromChar
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, 16(%rax)
LBB0_20: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $44, %eax
jne LBB0_22
## %bb.21: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_22:
jmp LBB0_24
LBB0_23:
movl $0, -4(%rbp)
jmp LBB0_27
LBB0_24:
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB0_26
## %bb.25:
movl $0, -4(%rbp)
jmp LBB0_27
LBB0_26:
movq -24(%rbp), %rax
movq 40(%rax), %rdx
movq 32(%rax), %rcx
movq 24(%rax), %r8
movsd (%rax), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, %r9d
movq -24(%rbp), %rax
movq 16(%rax), %rax
movl $4, %edi
leaq L_.str.5(%rip), %rsi
movq %rax, (%rsp)
callq _DISPLAYLEVEL
movl $1, -4(%rbp)
LBB0_27:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "k="
L_.str.1: ## @.str.1
.asciz "d="
L_.str.2: ## @.str.2
.asciz "steps="
L_.str.3: ## @.str.3
.asciz "split="
L_.str.4: ## @.str.4
.asciz "shrink"
.comm _kDefaultRegression,8,3 ## @kDefaultRegression
L_.str.5: ## @.str.5
.asciz "cover: k=%u\nd=%u\nsteps=%u\nsplit=%u\nshrink%u\n"
.no_dead_strip _parseCoverParameters
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_parseCoverParameters.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 parseFastCoverParameters
lCPI0_0:
.quad 0x4059000000000000 ; double 100
.section __TEXT,__text,regular,pure_instructions
.p2align 2
_parseFastCoverParameters: ; @parseFastCoverParameters
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
str x1, [sp, #24]
ldr x0, [sp, #24]
mov w1, #0
mov w2, #64
bl _memset
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
sub x0, x29, #16
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #16
bl _readU32FromChar
ldr x8, [sp, #24]
str x0, [x8, #56]
ldur x8, [x29, #-16]
ldrsb w8, [x8]
subs w8, w8, #44
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
add x8, x8, #1
stur x8, [x29, #-16]
b LBB0_1
LBB0_4:
b LBB0_32
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #16
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #16
bl _readU32FromChar
ldr x8, [sp, #24]
str x0, [x8, #48]
ldur x8, [x29, #-16]
ldrsb w8, [x8]
subs w8, w8, #44
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
add x8, x8, #1
stur x8, [x29, #-16]
b LBB0_1
LBB0_8:
b LBB0_32
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #16
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #16
bl _readU32FromChar
ldr x8, [sp, #24]
str x0, [x8, #40]
ldur x8, [x29, #-16]
ldrsb w8, [x8]
subs w8, w8, #44
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
add x8, x8, #1
stur x8, [x29, #-16]
b LBB0_1
LBB0_12:
b LBB0_32
LBB0_13: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #16
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_17
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #16
bl _readU32FromChar
ldr x8, [sp, #24]
str x0, [x8, #32]
ldur x8, [x29, #-16]
ldrsb w8, [x8]
subs w8, w8, #44
cset w8, ne
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
add x8, x8, #1
stur x8, [x29, #-16]
b LBB0_1
LBB0_16:
b LBB0_32
LBB0_17: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #16
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_21
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #16
bl _readU32FromChar
ldr x8, [sp, #24]
str x0, [x8, #24]
ldur x8, [x29, #-16]
ldrsb w8, [x8]
subs w8, w8, #44
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
add x8, x8, #1
stur x8, [x29, #-16]
b LBB0_1
LBB0_20:
b LBB0_32
LBB0_21: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #16
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_25
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #16
bl _readU32FromChar
mov x8, x0
str w8, [sp, #20]
ldr s1, [sp, #20]
; implicit-def: $d0
fmov s0, s1
ucvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
ldr x8, [sp, #24]
str d0, [x8]
ldur x8, [x29, #-16]
ldrsb w8, [x8]
subs w8, w8, #44
cset w8, ne
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
add x8, x8, #1
stur x8, [x29, #-16]
b LBB0_1
LBB0_24:
b LBB0_32
LBB0_25: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #16
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_31
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _kDefaultRegression@GOTPAGE
ldr x8, [x8, _kDefaultRegression@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp, #24]
str x8, [x9, #16]
ldr x9, [sp, #24]
mov w8, #1
str w8, [x9, #8]
ldur x8, [x29, #-16]
ldrsb w8, [x8]
subs w8, w8, #61
cset w8, ne
tbnz w8, #0, LBB0_28
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #16
ldur x8, [x29, #-16]
add x8, x8, #1
stur x8, [x29, #-16]
bl _readU32FromChar
ldr x8, [sp, #24]
str x0, [x8, #16]
b LBB0_28
LBB0_28: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldrsb w8, [x8]
subs w8, w8, #44
cset w8, ne
tbnz w8, #0, LBB0_30
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
add x8, x8, #1
stur x8, [x29, #-16]
b LBB0_1
LBB0_30:
b LBB0_32
LBB0_31:
stur wzr, [x29, #-4]
b LBB0_35
LBB0_32:
ldur x8, [x29, #-16]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_34
b LBB0_33
LBB0_33:
stur wzr, [x29, #-4]
b LBB0_35
LBB0_34:
ldr x8, [sp, #24]
ldr x2, [x8, #56]
ldr x8, [sp, #24]
ldr x3, [x8, #48]
ldr x8, [sp, #24]
ldr x4, [x8, #40]
ldr x8, [sp, #24]
ldr x5, [x8, #32]
ldr x8, [sp, #24]
ldr d0, [x8]
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fmul d0, d0, d1
fcvtzu w6, d0
ldr x8, [sp, #24]
ldr x7, [x8, #24]
ldr x8, [sp, #24]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
mov w0, #4
adrp x1, l_.str.7@PAGE
add x1, x1, l_.str.7@PAGEOFF
bl _DISPLAYLEVEL
mov w8, #1
stur w8, [x29, #-4]
b LBB0_35
LBB0_35:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "k="
l_.str.1: ; @.str.1
.asciz "d="
l_.str.2: ; @.str.2
.asciz "f="
l_.str.3: ; @.str.3
.asciz "steps="
l_.str.4: ; @.str.4
.asciz "accel="
l_.str.5: ; @.str.5
.asciz "split="
l_.str.6: ; @.str.6
.asciz "shrink"
.comm _kDefaultRegression,8,3 ; @kDefaultRegression
l_.str.7: ; @.str.7
.asciz "cover: k=%u\nd=%u\nf=%u\nsteps=%u\nsplit=%u\naccel=%u\nshrink=%u\n"
.no_dead_strip _parseFastCoverParameters
.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 parseFastCoverParameters
LCPI0_0:
.quad 0x4059000000000000 ## double 100
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_parseFastCoverParameters: ## @parseFastCoverParameters
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -24(%rbp), %rdi
xorl %esi, %esi
movl $64, %edx
callq _memset
LBB0_1: ## =>This Inner Loop Header: Depth=1
leaq -16(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_5
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
callq _readU32FromChar
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, 56(%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $44, %eax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_4:
jmp LBB0_32
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_9
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
callq _readU32FromChar
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, 48(%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $44, %eax
jne LBB0_8
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_8:
jmp LBB0_32
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_13
## %bb.10: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
callq _readU32FromChar
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, 40(%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $44, %eax
jne LBB0_12
## %bb.11: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_12:
jmp LBB0_32
LBB0_13: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
leaq L_.str.3(%rip), %rsi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_17
## %bb.14: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
callq _readU32FromChar
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, 32(%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $44, %eax
jne LBB0_16
## %bb.15: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_16:
jmp LBB0_32
LBB0_17: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
leaq L_.str.4(%rip), %rsi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_21
## %bb.18: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
callq _readU32FromChar
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, 24(%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $44, %eax
jne LBB0_20
## %bb.19: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_20:
jmp LBB0_32
LBB0_21: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
leaq L_.str.5(%rip), %rsi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_25
## %bb.22: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
callq _readU32FromChar
## kill: def $eax killed $eax killed $rax
movl %eax, -28(%rbp)
movl -28(%rbp), %eax
## kill: def $rax killed $eax
cvtsi2sd %rax, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movq -24(%rbp), %rax
movsd %xmm0, (%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $44, %eax
jne LBB0_24
## %bb.23: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_24:
jmp LBB0_32
LBB0_25: ## in Loop: Header=BB0_1 Depth=1
leaq -16(%rbp), %rdi
leaq L_.str.6(%rip), %rsi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_31
## %bb.26: ## in Loop: Header=BB0_1 Depth=1
movq _kDefaultRegression@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, 16(%rax)
movq -24(%rbp), %rax
movl $1, 8(%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $61, %eax
jne LBB0_28
## %bb.27: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
leaq -16(%rbp), %rdi
callq _readU32FromChar
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, 16(%rax)
LBB0_28: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $44, %eax
jne LBB0_30
## %bb.29: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_30:
jmp LBB0_32
LBB0_31:
movl $0, -4(%rbp)
jmp LBB0_35
LBB0_32:
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB0_34
## %bb.33:
movl $0, -4(%rbp)
jmp LBB0_35
LBB0_34:
movq -24(%rbp), %rax
movq 56(%rax), %rdx
movq 48(%rax), %rcx
movq 40(%rax), %r8
movq 32(%rax), %r9
movsd (%rax), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, %r11d
movq -24(%rbp), %rax
movq 24(%rax), %r10
movq -24(%rbp), %rax
movq 16(%rax), %rax
movl $4, %edi
leaq L_.str.7(%rip), %rsi
movl %r11d, (%rsp)
movq %r10, 8(%rsp)
movq %rax, 16(%rsp)
callq _DISPLAYLEVEL
movl $1, -4(%rbp)
LBB0_35:
movl -4(%rbp), %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "k="
L_.str.1: ## @.str.1
.asciz "d="
L_.str.2: ## @.str.2
.asciz "f="
L_.str.3: ## @.str.3
.asciz "steps="
L_.str.4: ## @.str.4
.asciz "accel="
L_.str.5: ## @.str.5
.asciz "split="
L_.str.6: ## @.str.6
.asciz "shrink"
.comm _kDefaultRegression,8,3 ## @kDefaultRegression
L_.str.7: ## @.str.7
.asciz "cover: k=%u\nd=%u\nf=%u\nsteps=%u\nsplit=%u\naccel=%u\nshrink=%u\n"
.no_dead_strip _parseFastCoverParameters
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_parseFastCoverParameters.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function parseLegacyParameters
_parseLegacyParameters: ; @parseLegacyParameters
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x8, x0
add x0, sp, #16
str x8, [sp, #16]
str x1, [sp, #8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _longCommandWArg
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
add x0, sp, #16
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _longCommandWArg
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
stur wzr, [x29, #-4]
b LBB0_6
LBB0_3:
add x0, sp, #16
bl _readU32FromChar
ldr x8, [sp, #8]
str w0, [x8]
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
stur wzr, [x29, #-4]
b LBB0_6
LBB0_5:
ldr x8, [sp, #8]
ldr w2, [x8]
mov w0, #4
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _DISPLAYLEVEL
mov w8, #1
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 "s="
l_.str.1: ; @.str.1
.asciz "selectivity="
l_.str.2: ; @.str.2
.asciz "legacy: selectivity=%u\n"
.no_dead_strip _parseLegacyParameters
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function parseLegacyParameters
_parseLegacyParameters: ## @parseLegacyParameters
.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)
leaq -16(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _longCommandWArg
cmpl $0, %eax
jne LBB0_3
## %bb.1:
leaq -16(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _longCommandWArg
cmpl $0, %eax
jne LBB0_3
## %bb.2:
movl $0, -4(%rbp)
jmp LBB0_6
LBB0_3:
leaq -16(%rbp), %rdi
callq _readU32FromChar
movl %eax, %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB0_5
## %bb.4:
movl $0, -4(%rbp)
jmp LBB0_6
LBB0_5:
movq -24(%rbp), %rax
movl (%rax), %edx
movl $4, %edi
leaq L_.str.2(%rip), %rsi
callq _DISPLAYLEVEL
movl $1, -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 "s="
L_.str.1: ## @.str.1
.asciz "selectivity="
L_.str.2: ## @.str.2
.asciz "legacy: selectivity=%u\n"
.no_dead_strip _parseLegacyParameters
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_parseLegacyParameters.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function printVersion
_printVersion: ; @printVersion
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _WELCOME_MESSAGE@GOTPAGE
ldr x8, [x8, _WELCOME_MESSAGE@GOTPAGEOFF]
ldr w0, [x8]
bl _DISPLAY
mov w0, #3
stur w0, [x29, #-4] ; 4-byte Folded Spill
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _DISPLAYLEVEL
ldur w0, [x29, #-4] ; 4-byte Folded Reload
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _DISPLAYLEVEL
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _WELCOME_MESSAGE,4,2 ; @WELCOME_MESSAGE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "*** supports: zstd"
l_.str.1: ; @.str.1
.asciz "\n"
.comm _PLATFORM_POSIX_VERSION,8,3 ; @PLATFORM_POSIX_VERSION
.comm _ZSTD_LEGACY_SUPPORT,8,3 ; @ZSTD_LEGACY_SUPPORT
.comm __POSIX_C_SOURCE,8,3 ; @_POSIX_C_SOURCE
.comm __POSIX_VERSION,8,3 ; @_POSIX_VERSION
.no_dead_strip _printVersion
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function printVersion
_printVersion: ## @printVersion
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _WELCOME_MESSAGE@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _DISPLAY
movl $3, %edi
leaq L_.str(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
movl $3, %edi
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _WELCOME_MESSAGE,4,2 ## @WELCOME_MESSAGE
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "*** supports: zstd"
L_.str.1: ## @.str.1
.asciz "\n"
.comm _PLATFORM_POSIX_VERSION,8,3 ## @PLATFORM_POSIX_VERSION
.comm _ZSTD_LEGACY_SUPPORT,8,3 ## @ZSTD_LEGACY_SUPPORT
.comm __POSIX_C_SOURCE,8,3 ## @_POSIX_C_SOURCE
.comm __POSIX_VERSION,8,3 ## @_POSIX_VERSION
.no_dead_strip _printVersion
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_printVersion.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, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x0, [sp, #8]
add x1, sp, #4
bl _readU32FromCharChecked
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, _readU32FromChar.errorMsg@PAGE
add x0, x0, _readU32FromChar.errorMsg@PAGEOFF
bl _errorOut
b LBB0_2
LBB0_2:
ldr w0, [sp, #4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
_readU32FromChar.errorMsg: ; @readU32FromChar.errorMsg
.asciz "error: numeric value too large"
.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
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
leaq -12(%rbp), %rsi
callq _readU32FromCharChecked
cmpq $0, %rax
je LBB0_2
## %bb.1:
leaq _readU32FromChar.errorMsg(%rip), %rdi
callq _errorOut
LBB0_2:
movl -12(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 4 ## @readU32FromChar.errorMsg
_readU32FromChar.errorMsg:
.asciz "error: numeric value too large"
.no_dead_strip _readU32FromChar
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_readU32FromChar.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function readU32FromCharChecked
_readU32FromCharChecked: ; @readU32FromCharChecked
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #32]
str x1, [sp, #24]
str wzr, [sp, #20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8] ; 4-byte Folded Reload
tbz w8, #0, LBB0_7
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
mov w9, #39320
movk w9, #6553, lsl #16
str w9, [sp, #16]
ldr w8, [sp, #20]
subs w8, w8, w9
cset w8, ls
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
mov w8, #1
str w8, [sp, #44]
b LBB0_21
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
mov w9, #10
mul w8, w8, w9
str w8, [sp, #20]
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsb w8, [x8]
subs w9, w8, #48
ldr w8, [sp, #20]
add w8, w8, w9
str w8, [sp, #20]
ldr x9, [sp, #32]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_1
LBB0_7:
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #75
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #77
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_9
LBB0_9:
mov w8, #4194303
str w8, [sp, #12]
ldr w8, [sp, #20]
subs w8, w8, #1024, lsl #12 ; =4194304
cset w8, lo
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
mov w8, #1
str w8, [sp, #44]
b LBB0_21
LBB0_11:
ldr w8, [sp, #20]
lsl w8, w8, #10
str w8, [sp, #20]
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #77
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_12
LBB0_12:
ldr w8, [sp, #20]
subs w8, w8, #1024, lsl #12 ; =4194304
cset w8, lo
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
mov w8, #1
str w8, [sp, #44]
b LBB0_21
LBB0_14:
ldr w8, [sp, #20]
lsl w8, w8, #10
str w8, [sp, #20]
b LBB0_15
LBB0_15:
ldr x9, [sp, #32]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #105
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16:
ldr x9, [sp, #32]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_17
LBB0_17:
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #66
cset w8, ne
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18:
ldr x9, [sp, #32]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_19
LBB0_19:
b LBB0_20
LBB0_20:
ldr w8, [sp, #20]
ldr x9, [sp, #24]
str w8, [x9]
str wzr, [sp, #44]
b LBB0_21
LBB0_21:
ldr w0, [sp, #44]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _readU32FromCharChecked
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function readU32FromCharChecked
_readU32FromCharChecked: ## @readU32FromCharChecked
.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)
movl $0, -28(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -37(%rbp) ## 1-byte Spill
jl LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -37(%rbp) ## 1-byte Spill
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movb -37(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_4
jmp LBB0_7
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movl $429496728, -32(%rbp) ## imm = 0x19999998
cmpl $429496728, -28(%rbp) ## imm = 0x19999998
jbe LBB0_6
## %bb.5:
movl $1, -4(%rbp)
jmp LBB0_21
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
imull $10, -28(%rbp), %eax
movl %eax, -28(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
subl $48, %eax
addl -28(%rbp), %eax
movl %eax, -28(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
jmp LBB0_1
LBB0_7:
movq -16(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $75, %eax
je LBB0_9
## %bb.8:
movq -16(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $77, %eax
jne LBB0_20
LBB0_9:
movl $4194303, -36(%rbp) ## imm = 0x3FFFFF
cmpl $4194303, -28(%rbp) ## imm = 0x3FFFFF
jbe LBB0_11
## %bb.10:
movl $1, -4(%rbp)
jmp LBB0_21
LBB0_11:
movl -28(%rbp), %eax
shll $10, %eax
movl %eax, -28(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $77, %eax
jne LBB0_15
## %bb.12:
cmpl $4194303, -28(%rbp) ## imm = 0x3FFFFF
jbe LBB0_14
## %bb.13:
movl $1, -4(%rbp)
jmp LBB0_21
LBB0_14:
movl -28(%rbp), %eax
shll $10, %eax
movl %eax, -28(%rbp)
LBB0_15:
movq -16(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
movq -16(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $105, %eax
jne LBB0_17
## %bb.16:
movq -16(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
LBB0_17:
movq -16(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $66, %eax
jne LBB0_19
## %bb.18:
movq -16(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
LBB0_19:
jmp LBB0_20
LBB0_20:
movl -28(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movl $0, -4(%rbp)
LBB0_21:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _readU32FromCharChecked
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_readU32FromCharChecked.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 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
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 x8, _ZSTDCLI_CLEVEL_MAX@GOTPAGE
ldr x8, [x8, _ZSTDCLI_CLEVEL_MAX@GOTPAGEOFF]
ldr w8, [x8]
; implicit-def: $x10
mov x10, x8
adrp x8, _ZSTDCLI_CLEVEL_DEFAULT@GOTPAGE
ldr x8, [x8, _ZSTDCLI_CLEVEL_DEFAULT@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
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 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
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _DISPLAY
mov w0, #0
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 "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 " -# : # compression level (1-%d, default: %d) \n"
.comm _ZSTDCLI_CLEVEL_MAX,4,2 ; @ZSTDCLI_CLEVEL_MAX
.comm _ZSTDCLI_CLEVEL_DEFAULT,4,2 ; @ZSTDCLI_CLEVEL_DEFAULT
l_.str.7: ; @.str.7
.asciz " -d : decompression \n"
l_.str.8: ; @.str.8
.asciz " -D file: use `file` as Dictionary \n"
l_.str.9: ; @.str.9
.asciz " -o file: result stored into `file` (only if 1 input file) \n"
l_.str.10: ; @.str.10
.asciz " -f : overwrite output without prompting and (de)compress links \n"
l_.str.11: ; @.str.11
.asciz "--rm : remove source file(s) after successful de/compression \n"
l_.str.12: ; @.str.12
.asciz " -k : preserve source file(s) (default) \n"
l_.str.13: ; @.str.13
.asciz " -h/-H : display help/long help and exit \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)
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
movq _ZSTDCLI_CLEVEL_MAX@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _ZSTDCLI_CLEVEL_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %edx
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
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.11(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _DISPLAY
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage : \n"
L_.str.1: ## @.str.1
.asciz " %s [args] [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 " -# : # compression level (1-%d, default: %d) \n"
.comm _ZSTDCLI_CLEVEL_MAX,4,2 ## @ZSTDCLI_CLEVEL_MAX
.comm _ZSTDCLI_CLEVEL_DEFAULT,4,2 ## @ZSTDCLI_CLEVEL_DEFAULT
L_.str.7: ## @.str.7
.asciz " -d : decompression \n"
L_.str.8: ## @.str.8
.asciz " -D file: use `file` as Dictionary \n"
L_.str.9: ## @.str.9
.asciz " -o file: result stored into `file` (only if 1 input file) \n"
L_.str.10: ## @.str.10
.asciz " -f : overwrite output without prompting and (de)compress links \n"
L_.str.11: ## @.str.11
.asciz "--rm : remove source file(s) after successful de/compression \n"
L_.str.12: ## @.str.12
.asciz " -k : preserve source file(s) (default) \n"
L_.str.13: ## @.str.13
.asciz " -h/-H : display help/long help and exit \n"
.no_dead_strip _usage
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_usage.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function usage_advanced
_usage_advanced: ; @usage_advanced
.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]
adrp x8, _WELCOME_MESSAGE@GOTPAGE
ldr x8, [x8, _WELCOME_MESSAGE@GOTPAGEOFF]
ldr x0, [x8]
bl _DISPLAY
ldur x0, [x29, #-8]
bl _usage
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
stur x0, [x29, #-16] ; 8-byte Folded Spill
bl _DISPLAY
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
adrp 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 x8, _ZSTDCLI_CLEVEL_MAX@GOTPAGE
ldr x8, [x8, _ZSTDCLI_CLEVEL_MAX@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #24] ; 8-byte Folded Spill
bl _ZSTD_maxCLevel
ldr x8, [sp, #24] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x0
str x8, [x9, #8]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _DISPLAY
adrp x8, _g_defaultMaxWindowLog@GOTPAGE
ldr x8, [x8, _g_defaultMaxWindowLog@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
mov x9, sp
mov x8, #1
str x8, [x9]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _DISPLAY
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
adrp x0, l_.str.16@PAGE
add x0, x0, l_.str.16@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.17@PAGE
add x0, x0, l_.str.17@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.18@PAGE
add x0, x0, l_.str.18@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.19@PAGE
add x0, x0, l_.str.19@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.20@PAGE
add x0, x0, l_.str.20@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.21@PAGE
add x0, x0, l_.str.21@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.22@PAGE
add x0, x0, l_.str.22@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.23@PAGE
add x0, x0, l_.str.23@PAGEOFF
bl _DISPLAY
ldur x0, [x29, #-16] ; 8-byte Folded Reload
bl _DISPLAY
adrp x0, l_.str.24@PAGE
add x0, x0, l_.str.24@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.25@PAGE
add x0, x0, l_.str.25@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.26@PAGE
add x0, x0, l_.str.26@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.27@PAGE
add x0, x0, l_.str.27@PAGEOFF
bl _DISPLAY
adrp x8, _g_defaultSelectivityLevel@GOTPAGE
ldr x8, [x8, _g_defaultSelectivityLevel@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.28@PAGE
add x0, x0, l_.str.28@PAGEOFF
bl _DISPLAY
adrp x8, _g_defaultDictName@GOTPAGE
ldr x8, [x8, _g_defaultDictName@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.29@PAGE
add x0, x0, l_.str.29@PAGEOFF
bl _DISPLAY
adrp x8, _g_defaultMaxDictSize@GOTPAGE
ldr x8, [x8, _g_defaultMaxDictSize@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.30@PAGE
add x0, x0, l_.str.30@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.31@PAGE
add x0, x0, l_.str.31@PAGEOFF
bl _DISPLAY
ldur x0, [x29, #-16] ; 8-byte Folded Reload
bl _DISPLAY
adrp x0, l_.str.32@PAGE
add x0, x0, l_.str.32@PAGEOFF
bl _DISPLAY
adrp x8, _ZSTDCLI_CLEVEL_DEFAULT@GOTPAGE
ldr x8, [x8, _ZSTDCLI_CLEVEL_DEFAULT@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.33@PAGE
add x0, x0, l_.str.33@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.34@PAGE
add x0, x0, l_.str.34@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.35@PAGE
add x0, x0, l_.str.35@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.36@PAGE
add x0, x0, l_.str.36@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.37@PAGE
add x0, x0, l_.str.37@PAGEOFF
bl _DISPLAY
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _WELCOME_MESSAGE,8,3 ; @WELCOME_MESSAGE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\n"
l_.str.1: ; @.str.1
.asciz "Advanced arguments : \n"
l_.str.2: ; @.str.2
.asciz " -V : display Version number and exit \n"
l_.str.3: ; @.str.3
.asciz " -v : verbose mode; specify multiple times to increase verbosity\n"
l_.str.4: ; @.str.4
.asciz " -q : suppress warnings; specify twice to suppress errors too\n"
l_.str.5: ; @.str.5
.asciz " -c : force write to standard output, even if it is the console\n"
l_.str.6: ; @.str.6
.asciz " -l : print information about zstd compressed files \n"
l_.str.7: ; @.str.7
.asciz "--exclude-compressed: only compress files that are not previously compressed \n"
l_.str.8: ; @.str.8
.asciz "--ultra : enable levels beyond %i, up to %i (requires more memory)\n"
.comm _ZSTDCLI_CLEVEL_MAX,4,2 ; @ZSTDCLI_CLEVEL_MAX
l_.str.9: ; @.str.9
.asciz "--long[=#]: enable long distance matching with given window log (default: %u)\n"
.comm _g_defaultMaxWindowLog,4,2 ; @g_defaultMaxWindowLog
l_.str.10: ; @.str.10
.asciz "--fast[=#]: switch to very fast compression levels (default: %u)\n"
l_.str.11: ; @.str.11
.asciz "--adapt : dynamically adapt compression level to I/O conditions \n"
l_.str.12: ; @.str.12
.asciz "--stream-size=# : optimize compression parameters for streaming input of given number of bytes \n"
l_.str.13: ; @.str.13
.asciz "--size-hint=# optimize compression parameters for streaming input of approximately this size\n"
l_.str.14: ; @.str.14
.asciz "--target-compressed-block-size=# : make compressed block near targeted size \n"
l_.str.15: ; @.str.15
.asciz "--no-dictID : don't write dictID into header (dictionary compression)\n"
l_.str.16: ; @.str.16
.asciz "--[no-]check : integrity check (default: enabled) \n"
l_.str.17: ; @.str.17
.asciz "--[no-]compress-literals : force (un)compressed literals \n"
l_.str.18: ; @.str.18
.asciz "--format=zstd : compress files to the .zst format (default) \n"
l_.str.19: ; @.str.19
.asciz "--test : test compressed file integrity \n"
l_.str.20: ; @.str.20
.asciz "--[no-]sparse : sparse mode (default: disabled)\n"
l_.str.21: ; @.str.21
.asciz " -M# : Set a memory usage limit for decompression \n"
l_.str.22: ; @.str.22
.asciz "--no-progress : do not display the progress bar \n"
l_.str.23: ; @.str.23
.asciz "-- : All arguments after \"--\" are treated as files \n"
l_.str.24: ; @.str.24
.asciz "Dictionary builder : \n"
l_.str.25: ; @.str.25
.asciz "--train ## : create a dictionary from a training set of files \n"
l_.str.26: ; @.str.26
.asciz "--train-cover[=k=#,d=#,steps=#,split=#,shrink[=#]] : use the cover algorithm with optional args\n"
l_.str.27: ; @.str.27
.asciz "--train-fastcover[=k=#,d=#,f=#,steps=#,split=#,accel=#,shrink[=#]] : use the fast cover algorithm with optional args\n"
l_.str.28: ; @.str.28
.asciz "--train-legacy[=s=#] : use the legacy algorithm with selectivity (default: %u)\n"
.comm _g_defaultSelectivityLevel,4,2 ; @g_defaultSelectivityLevel
l_.str.29: ; @.str.29
.asciz " -o file : `file` is dictionary name (default: %s) \n"
.comm _g_defaultDictName,4,2 ; @g_defaultDictName
l_.str.30: ; @.str.30
.asciz "--maxdict=# : limit dictionary to specified size (default: %u) \n"
.comm _g_defaultMaxDictSize,4,2 ; @g_defaultMaxDictSize
l_.str.31: ; @.str.31
.asciz "--dictID=# : force dictionary ID to specified value (default: random)\n"
l_.str.32: ; @.str.32
.asciz "Benchmark arguments : \n"
l_.str.33: ; @.str.33
.asciz " -b# : benchmark file(s), using # compression level (default: %d) \n"
.comm _ZSTDCLI_CLEVEL_DEFAULT,4,2 ; @ZSTDCLI_CLEVEL_DEFAULT
l_.str.34: ; @.str.34
.asciz " -e# : test all compression levels from -bX to # (default: 1)\n"
l_.str.35: ; @.str.35
.asciz " -i# : minimum evaluation time in seconds (default: 3s) \n"
l_.str.36: ; @.str.36
.asciz " -B# : cut file into independent blocks of size # (default: no block)\n"
l_.str.37: ; @.str.37
.asciz "--priority=rt : set process priority to real-time \n"
.no_dead_strip _usage_advanced
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function usage_advanced
_usage_advanced: ## @usage_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 _WELCOME_MESSAGE@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movb $0, %al
callq _DISPLAY
movq -8(%rbp), %rdi
callq _usage
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
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
movq _ZSTDCLI_CLEVEL_MAX@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -12(%rbp) ## 4-byte Spill
movb $0, %al
callq _ZSTD_maxCLevel
movl -12(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _g_defaultMaxWindowLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.10(%rip), %rdi
movl $1, %esi
movb $0, %al
callq _DISPLAY
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _DISPLAY
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
leaq L_.str.16(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.17(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.18(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.19(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.20(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.21(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.22(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.23(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.24(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.25(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.26(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.27(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _g_defaultSelectivityLevel@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.28(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _g_defaultDictName@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.29(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _g_defaultMaxDictSize@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.30(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.31(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.32(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _ZSTDCLI_CLEVEL_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.33(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.34(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.35(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.36(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.37(%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 "\n"
L_.str.1: ## @.str.1
.asciz "Advanced arguments : \n"
L_.str.2: ## @.str.2
.asciz " -V : display Version number and exit \n"
L_.str.3: ## @.str.3
.asciz " -v : verbose mode; specify multiple times to increase verbosity\n"
L_.str.4: ## @.str.4
.asciz " -q : suppress warnings; specify twice to suppress errors too\n"
L_.str.5: ## @.str.5
.asciz " -c : force write to standard output, even if it is the console\n"
L_.str.6: ## @.str.6
.asciz " -l : print information about zstd compressed files \n"
L_.str.7: ## @.str.7
.asciz "--exclude-compressed: only compress files that are not previously compressed \n"
L_.str.8: ## @.str.8
.asciz "--ultra : enable levels beyond %i, up to %i (requires more memory)\n"
.comm _ZSTDCLI_CLEVEL_MAX,4,2 ## @ZSTDCLI_CLEVEL_MAX
L_.str.9: ## @.str.9
.asciz "--long[=#]: enable long distance matching with given window log (default: %u)\n"
.comm _g_defaultMaxWindowLog,4,2 ## @g_defaultMaxWindowLog
L_.str.10: ## @.str.10
.asciz "--fast[=#]: switch to very fast compression levels (default: %u)\n"
L_.str.11: ## @.str.11
.asciz "--adapt : dynamically adapt compression level to I/O conditions \n"
L_.str.12: ## @.str.12
.asciz "--stream-size=# : optimize compression parameters for streaming input of given number of bytes \n"
L_.str.13: ## @.str.13
.asciz "--size-hint=# optimize compression parameters for streaming input of approximately this size\n"
L_.str.14: ## @.str.14
.asciz "--target-compressed-block-size=# : make compressed block near targeted size \n"
L_.str.15: ## @.str.15
.asciz "--no-dictID : don't write dictID into header (dictionary compression)\n"
L_.str.16: ## @.str.16
.asciz "--[no-]check : integrity check (default: enabled) \n"
L_.str.17: ## @.str.17
.asciz "--[no-]compress-literals : force (un)compressed literals \n"
L_.str.18: ## @.str.18
.asciz "--format=zstd : compress files to the .zst format (default) \n"
L_.str.19: ## @.str.19
.asciz "--test : test compressed file integrity \n"
L_.str.20: ## @.str.20
.asciz "--[no-]sparse : sparse mode (default: disabled)\n"
L_.str.21: ## @.str.21
.asciz " -M# : Set a memory usage limit for decompression \n"
L_.str.22: ## @.str.22
.asciz "--no-progress : do not display the progress bar \n"
L_.str.23: ## @.str.23
.asciz "-- : All arguments after \"--\" are treated as files \n"
L_.str.24: ## @.str.24
.asciz "Dictionary builder : \n"
L_.str.25: ## @.str.25
.asciz "--train ## : create a dictionary from a training set of files \n"
L_.str.26: ## @.str.26
.asciz "--train-cover[=k=#,d=#,steps=#,split=#,shrink[=#]] : use the cover algorithm with optional args\n"
L_.str.27: ## @.str.27
.asciz "--train-fastcover[=k=#,d=#,f=#,steps=#,split=#,accel=#,shrink[=#]] : use the fast cover algorithm with optional args\n"
L_.str.28: ## @.str.28
.asciz "--train-legacy[=s=#] : use the legacy algorithm with selectivity (default: %u)\n"
.comm _g_defaultSelectivityLevel,4,2 ## @g_defaultSelectivityLevel
L_.str.29: ## @.str.29
.asciz " -o file : `file` is dictionary name (default: %s) \n"
.comm _g_defaultDictName,4,2 ## @g_defaultDictName
L_.str.30: ## @.str.30
.asciz "--maxdict=# : limit dictionary to specified size (default: %u) \n"
.comm _g_defaultMaxDictSize,4,2 ## @g_defaultMaxDictSize
L_.str.31: ## @.str.31
.asciz "--dictID=# : force dictionary ID to specified value (default: random)\n"
L_.str.32: ## @.str.32
.asciz "Benchmark arguments : \n"
L_.str.33: ## @.str.33
.asciz " -b# : benchmark file(s), using # compression level (default: %d) \n"
.comm _ZSTDCLI_CLEVEL_DEFAULT,4,2 ## @ZSTDCLI_CLEVEL_DEFAULT
L_.str.34: ## @.str.34
.asciz " -e# : test all compression levels from -bX to # (default: 1)\n"
L_.str.35: ## @.str.35
.asciz " -i# : minimum evaluation time in seconds (default: 3s) \n"
L_.str.36: ## @.str.36
.asciz " -B# : cut file into independent blocks of size # (default: no block)\n"
L_.str.37: ## @.str.37
.asciz "--priority=rt : set process priority to real-time \n"
.no_dead_strip _usage_advanced
.subsections_via_symbols
|
AnghaBench/zstd/programs/extr_zstdcli.c_usage_advanced.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/programs/extr_zstdcli.c_waitEnter.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function compress
_compress: ; @compress
.cfi_startproc
; %bb.0:
sub sp, sp, #288
.cfi_def_cfa_offset 288
stp x28, x27, [sp, #256] ; 16-byte Folded Spill
stp x29, x30, [sp, #272] ; 16-byte Folded Spill
add x29, sp, #272
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
stur x0, [x29, #-32]
stur x1, [x29, #-40]
stur x2, [x29, #-48]
stur x3, [x29, #-56]
stur x4, [x29, #-64]
stur x5, [x29, #-72]
stur x6, [x29, #-80]
stur w7, [x29, #-84]
ldur x8, [x29, #-64]
stur x8, [x29, #-128]
ldur x8, [x29, #-72]
stur x8, [x29, #-120]
stur xzr, [x29, #-112]
stur xzr, [x29, #-104]
stur wzr, [x29, #-96]
ldur x8, [x29, #-48]
str x8, [sp, #112]
ldur x8, [x29, #-56]
str x8, [sp, #120]
str xzr, [sp, #128]
str wzr, [sp, #136]
str wzr, [sp, #108]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_12 Depth 2
ldr w8, [sp, #108]
subs w8, w8, #0
cset w8, ne
mov w9, #0
str w9, [sp, #20] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-112]
ldur x9, [x29, #-104]
subs x8, x8, x9
cset w8, lt
mov w9, #1
str w9, [sp, #16] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #128]
subs x8, x8, #0
cset w8, gt
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16] ; 4-byte Folded Reload
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20] ; 4-byte Folded Reload
tbz w8, #0, LBB0_24
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
add x1, sp, #112
str xzr, [sp, #128]
ldur x0, [x29, #-32]
ldur w3, [x29, #-84]
sub x2, x29, #128
bl _ZSTD_compressStream2
str x0, [sp, #96]
ldr x0, [sp, #96]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
mov w8, #1
stur w8, [x29, #-20]
b LBB0_25
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-84]
adrp x9, _ZSTD_e_end@GOTPAGE
ldr x9, [x9, _ZSTD_e_end@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #96]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
mov w8, #1
str w8, [sp, #108]
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-48]
str x8, [sp, #56]
ldr x8, [sp, #128]
str x8, [sp, #64]
str xzr, [sp, #72]
str xzr, [sp, #80]
str wzr, [sp, #88]
ldur x8, [x29, #-80]
str x8, [sp, #24]
ldur x8, [x29, #-72]
str x8, [sp, #32]
str xzr, [sp, #40]
str wzr, [sp, #48]
mov x8, #1
str x8, [sp, #96]
b LBB0_12
LBB0_12: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #72]
ldr x9, [sp, #80]
subs x8, x8, x9
cset w8, lt
mov w9, #1
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_12 Depth=2
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, gt
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_12 Depth=2
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB0_20
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_12 Depth=2
add x1, sp, #24
str xzr, [sp, #40]
ldur x0, [x29, #-40]
add x2, sp, #56
bl _ZSTD_decompressStream
str x0, [sp, #96]
ldr x0, [sp, #96]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16:
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #8] ; 4-byte Folded Spill
ldr x0, [sp, #96]
bl _ZSTD_getErrorName
mov x8, x0
ldr w0, [sp, #8] ; 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, #-20]
b LBB0_25
LBB0_17: ; in Loop: Header=BB0_12 Depth=2
ldr x8, [sp, #96]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_1 Depth=1
b LBB0_20
LBB0_19: ; in Loop: Header=BB0_12 Depth=2
b LBB0_12
LBB0_20: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #108]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_23
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #96]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_23
b LBB0_22
LBB0_22:
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
mov w8, #1
stur w8, [x29, #-20]
b LBB0_25
LBB0_23: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_24:
stur wzr, [x29, #-20]
b LBB0_25
LBB0_25:
ldur w0, [x29, #-20]
ldp x29, x30, [sp, #272] ; 16-byte Folded Reload
ldp x28, x27, [sp, #256] ; 16-byte Folded Reload
add sp, sp, #288
ret
.cfi_endproc
; -- End function
.comm _ZSTD_e_end,4,2 ; @ZSTD_e_end
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Decompression error: %s\n"
l_.str.1: ; @.str.1
.asciz "Frame not finished!\n"
.no_dead_strip _compress
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function compress
_compress: ## @compress
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $224, %rsp
movl 24(%rbp), %eax
movq 16(%rbp), %rax
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq %rcx, -40(%rbp)
movq %r8, -48(%rbp)
movq %r9, -56(%rbp)
movq -48(%rbp), %rax
movq %rax, -96(%rbp)
movq -56(%rbp), %rax
movq %rax, -88(%rbp)
movq $0, -80(%rbp)
movq $0, -72(%rbp)
movl $0, -64(%rbp)
movq -32(%rbp), %rax
movq %rax, -128(%rbp)
movq -40(%rbp), %rax
movq %rax, -120(%rbp)
movq $0, -112(%rbp)
movl $0, -104(%rbp)
movl $0, -132(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_12 Depth 2
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, -132(%rbp)
movb %al, -217(%rbp) ## 1-byte Spill
jne LBB0_5
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -80(%rbp), %rcx
movb $1, %al
cmpq -72(%rbp), %rcx
movb %al, -218(%rbp) ## 1-byte Spill
jl LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
cmpq $0, -112(%rbp)
setg %al
movb %al, -218(%rbp) ## 1-byte Spill
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movb -218(%rbp), %al ## 1-byte Reload
movb %al, -217(%rbp) ## 1-byte Spill
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movb -217(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_6
jmp LBB0_24
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movq $0, -112(%rbp)
movq -16(%rbp), %rdi
movl 24(%rbp), %ecx
leaq -128(%rbp), %rsi
leaq -96(%rbp), %rdx
callq _ZSTD_compressStream2
movq %rax, -144(%rbp)
movq -144(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_8
## %bb.7:
movl $1, -4(%rbp)
jmp LBB0_25
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movl 24(%rbp), %eax
movq _ZSTD_e_end@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jne LBB0_11
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
cmpq $0, -144(%rbp)
jne LBB0_11
## %bb.10: ## in Loop: Header=BB0_1 Depth=1
movl $1, -132(%rbp)
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movq %rax, -184(%rbp)
movq -112(%rbp), %rax
movq %rax, -176(%rbp)
movq $0, -168(%rbp)
movq $0, -160(%rbp)
movl $0, -152(%rbp)
movq 16(%rbp), %rax
movq %rax, -216(%rbp)
movq -56(%rbp), %rax
movq %rax, -208(%rbp)
movq $0, -200(%rbp)
movl $0, -192(%rbp)
movq $1, -144(%rbp)
LBB0_12: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -168(%rbp), %rcx
movb $1, %al
cmpq -160(%rbp), %rcx
movb %al, -219(%rbp) ## 1-byte Spill
jl LBB0_14
## %bb.13: ## in Loop: Header=BB0_12 Depth=2
cmpq $0, -200(%rbp)
setg %al
movb %al, -219(%rbp) ## 1-byte Spill
LBB0_14: ## in Loop: Header=BB0_12 Depth=2
movb -219(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_15
jmp LBB0_20
LBB0_15: ## in Loop: Header=BB0_12 Depth=2
movq $0, -200(%rbp)
movq -24(%rbp), %rdi
leaq -216(%rbp), %rsi
leaq -184(%rbp), %rdx
callq _ZSTD_decompressStream
movq %rax, -144(%rbp)
movq -144(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_17
## %bb.16:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -224(%rbp) ## 4-byte Spill
movq -144(%rbp), %rdi
callq _ZSTD_getErrorName
movl -224(%rbp), %edi ## 4-byte Reload
movq %rax, %rdx
leaq L_.str(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -4(%rbp)
jmp LBB0_25
LBB0_17: ## in Loop: Header=BB0_12 Depth=2
cmpq $0, -144(%rbp)
jne LBB0_19
## %bb.18: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_20
LBB0_19: ## in Loop: Header=BB0_12 Depth=2
jmp LBB0_12
LBB0_20: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -132(%rbp)
je LBB0_23
## %bb.21: ## in Loop: Header=BB0_1 Depth=1
cmpq $0, -144(%rbp)
je LBB0_23
## %bb.22:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -4(%rbp)
jmp LBB0_25
LBB0_23: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_24:
movl $0, -4(%rbp)
LBB0_25:
movl -4(%rbp), %eax
addq $224, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_e_end,4,2 ## @ZSTD_e_end
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Decompression error: %s\n"
L_.str.1: ## @.str.1
.asciz "Frame not finished!\n"
.no_dead_strip _compress
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_bigdict.c_compress.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
bl _ZSTD_createCCtx
stur x0, [x29, #-24]
bl _ZSTD_createDCtx
stur x0, [x29, #-32]
mov x0, #1073741824
str x0, [sp, #16] ; 8-byte Folded Spill
stur x0, [x29, #-40]
bl _ZSTD_compressBound
stur x0, [x29, #-48]
mov x0, #2147483648
str x0, [sp, #56]
bl _malloc
str x0, [sp, #48]
ldur x0, [x29, #-48]
bl _malloc
mov x8, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
str x8, [sp, #40]
bl _malloc
str x0, [sp, #32]
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_1
LBB0_1:
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2:
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3:
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_37
LBB0_6:
ldur x0, [x29, #-24]
adrp x8, _ZSTD_c_windowLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_windowLog@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #31
bl _ZSTD_CCtx_setParameter
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_37
LBB0_8:
ldur x0, [x29, #-24]
adrp x8, _ZSTD_c_nbWorkers@GOTPAGE
ldr x8, [x8, _ZSTD_c_nbWorkers@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #1
bl _ZSTD_CCtx_setParameter
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_37
LBB0_10:
ldur x0, [x29, #-24]
adrp x8, _ZSTD_c_overlapLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_overlapLog@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #9
bl _ZSTD_CCtx_setParameter
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_37
LBB0_12:
ldur x0, [x29, #-24]
adrp x8, _ZSTD_c_checksumFlag@GOTPAGE
ldr x8, [x8, _ZSTD_c_checksumFlag@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #1
bl _ZSTD_CCtx_setParameter
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_37
LBB0_14:
ldur x0, [x29, #-24]
adrp x8, _ZSTD_c_strategy@GOTPAGE
ldr x8, [x8, _ZSTD_c_strategy@GOTPAGEOFF]
ldr w1, [x8]
adrp x8, _ZSTD_btopt@GOTPAGE
ldr x8, [x8, _ZSTD_btopt@GOTPAGEOFF]
ldr w2, [x8]
bl _ZSTD_CCtx_setParameter
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_37
LBB0_16:
ldur x0, [x29, #-24]
adrp x8, _ZSTD_c_targetLength@GOTPAGE
ldr x8, [x8, _ZSTD_c_targetLength@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #7
bl _ZSTD_CCtx_setParameter
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_37
LBB0_18:
ldur x0, [x29, #-24]
adrp x8, _ZSTD_c_minMatch@GOTPAGE
ldr x8, [x8, _ZSTD_c_minMatch@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #7
bl _ZSTD_CCtx_setParameter
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_37
LBB0_20:
ldur x0, [x29, #-24]
adrp x8, _ZSTD_c_searchLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_searchLog@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #1
bl _ZSTD_CCtx_setParameter
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_37
LBB0_22:
ldur x0, [x29, #-24]
adrp x8, _ZSTD_c_hashLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_hashLog@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #10
bl _ZSTD_CCtx_setParameter
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_37
LBB0_24:
ldur x0, [x29, #-24]
adrp x8, _ZSTD_c_chainLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_chainLog@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #10
bl _ZSTD_CCtx_setParameter
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_26
b LBB0_25
LBB0_25:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_37
LBB0_26:
ldur x0, [x29, #-32]
adrp x8, _ZSTD_d_windowLogMax@GOTPAGE
ldr x8, [x8, _ZSTD_d_windowLogMax@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #31
bl _ZSTD_DCtx_setParameter
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_28
b LBB0_27
LBB0_27:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_37
LBB0_28:
ldr x0, [sp, #48]
mov x1, #2147483648
fmov d0, #1.00000000
movi d1, #0000000000000000
mov w2, #51966
movk w2, #48879, lsl #16
bl _RDG_genBuffer
str wzr, [sp, #28]
b LBB0_29
LBB0_29: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #28]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_34
b LBB0_30
LBB0_30: ; in Loop: Header=BB0_29 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
ldur x1, [x29, #-32]
ldr x2, [sp, #40]
ldur x3, [x29, #-48]
ldr x4, [sp, #48]
ldr x6, [sp, #32]
adrp x8, _ZSTD_e_continue@GOTPAGE
ldr x8, [x8, _ZSTD_e_continue@GOTPAGEOFF]
ldr w7, [x8]
mov x5, #1073741824
bl _compress
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_32
b LBB0_31
LBB0_31:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_37
LBB0_32: ; in Loop: Header=BB0_29 Depth=1
b LBB0_33
LBB0_33: ; in Loop: Header=BB0_29 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_29
LBB0_34:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
ldur x1, [x29, #-32]
ldr x2, [sp, #40]
ldur x3, [x29, #-48]
ldr x4, [sp, #48]
ldr x6, [sp, #32]
adrp x8, _ZSTD_e_end@GOTPAGE
ldr x8, [x8, _ZSTD_e_end@GOTPAGEOFF]
ldr w7, [x8]
mov x5, #1073741824
bl _compress
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_36
b LBB0_35
LBB0_35:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_37
LBB0_36:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
ldr x0, [sp, #32]
bl _free
ldr x0, [sp, #40]
bl _free
ldr x0, [sp, #48]
bl _free
ldur x0, [x29, #-32]
bl _ZSTD_freeDCtx
ldur x0, [x29, #-24]
bl _ZSTD_freeCCtx
stur wzr, [x29, #-4]
b LBB0_37
LBB0_37:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Allocation failure\n"
.comm _ZSTD_c_windowLog,4,2 ; @ZSTD_c_windowLog
.comm _ZSTD_c_nbWorkers,4,2 ; @ZSTD_c_nbWorkers
.comm _ZSTD_c_overlapLog,4,2 ; @ZSTD_c_overlapLog
.comm _ZSTD_c_checksumFlag,4,2 ; @ZSTD_c_checksumFlag
.comm _ZSTD_c_strategy,4,2 ; @ZSTD_c_strategy
.comm _ZSTD_btopt,4,2 ; @ZSTD_btopt
.comm _ZSTD_c_targetLength,4,2 ; @ZSTD_c_targetLength
.comm _ZSTD_c_minMatch,4,2 ; @ZSTD_c_minMatch
.comm _ZSTD_c_searchLog,4,2 ; @ZSTD_c_searchLog
.comm _ZSTD_c_hashLog,4,2 ; @ZSTD_c_hashLog
.comm _ZSTD_c_chainLog,4,2 ; @ZSTD_c_chainLog
.comm _ZSTD_d_windowLogMax,4,2 ; @ZSTD_d_windowLogMax
l_.str.1: ; @.str.1
.asciz "Compressing 1 GB\n"
.comm _ZSTD_e_continue,4,2 ; @ZSTD_e_continue
.comm _ZSTD_e_end,4,2 ; @ZSTD_e_end
l_.str.2: ; @.str.2
.asciz "Success!\n"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI0_0:
.quad 0x3ff0000000000000 ## double 1
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $112, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movb $0, %al
callq _ZSTD_createCCtx
movq %rax, -24(%rbp)
movb $0, %al
callq _ZSTD_createDCtx
movq %rax, -32(%rbp)
movq $1073741824, -40(%rbp) ## imm = 0x40000000
movl $1073741824, %edi ## imm = 0x40000000
callq _ZSTD_compressBound
movq %rax, -48(%rbp)
movl $2147483648, %eax ## imm = 0x80000000
movq %rax, -56(%rbp)
movl $2147483648, %edi ## imm = 0x80000000
callq _malloc
movq %rax, -64(%rbp)
movq -48(%rbp), %rdi
callq _malloc
movq %rax, -72(%rbp)
movl $1073741824, %edi ## imm = 0x40000000
callq _malloc
movq %rax, -80(%rbp)
cmpq $0, -64(%rbp)
je LBB0_5
## %bb.1:
cmpq $0, -72(%rbp)
je LBB0_5
## %bb.2:
cmpq $0, -80(%rbp)
je LBB0_5
## %bb.3:
cmpq $0, -24(%rbp)
je LBB0_5
## %bb.4:
cmpq $0, -32(%rbp)
jne LBB0_6
LBB0_5:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str(%rip), %rsi
callq _fprintf
movl $1, -4(%rbp)
jmp LBB0_37
LBB0_6:
movq -24(%rbp), %rdi
movq _ZSTD_c_windowLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $31, %edx
callq _ZSTD_CCtx_setParameter
movl %eax, %edi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_8
## %bb.7:
movl $1, -4(%rbp)
jmp LBB0_37
LBB0_8:
movq -24(%rbp), %rdi
movq _ZSTD_c_nbWorkers@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $1, %edx
callq _ZSTD_CCtx_setParameter
movl %eax, %edi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_10
## %bb.9:
movl $1, -4(%rbp)
jmp LBB0_37
LBB0_10:
movq -24(%rbp), %rdi
movq _ZSTD_c_overlapLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $9, %edx
callq _ZSTD_CCtx_setParameter
movl %eax, %edi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_12
## %bb.11:
movl $1, -4(%rbp)
jmp LBB0_37
LBB0_12:
movq -24(%rbp), %rdi
movq _ZSTD_c_checksumFlag@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $1, %edx
callq _ZSTD_CCtx_setParameter
movl %eax, %edi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_14
## %bb.13:
movl $1, -4(%rbp)
jmp LBB0_37
LBB0_14:
movq -24(%rbp), %rdi
movq _ZSTD_c_strategy@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _ZSTD_btopt@GOTPCREL(%rip), %rax
movl (%rax), %edx
callq _ZSTD_CCtx_setParameter
movl %eax, %edi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_16
## %bb.15:
movl $1, -4(%rbp)
jmp LBB0_37
LBB0_16:
movq -24(%rbp), %rdi
movq _ZSTD_c_targetLength@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $7, %edx
callq _ZSTD_CCtx_setParameter
movl %eax, %edi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_18
## %bb.17:
movl $1, -4(%rbp)
jmp LBB0_37
LBB0_18:
movq -24(%rbp), %rdi
movq _ZSTD_c_minMatch@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $7, %edx
callq _ZSTD_CCtx_setParameter
movl %eax, %edi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_20
## %bb.19:
movl $1, -4(%rbp)
jmp LBB0_37
LBB0_20:
movq -24(%rbp), %rdi
movq _ZSTD_c_searchLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $1, %edx
callq _ZSTD_CCtx_setParameter
movl %eax, %edi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_22
## %bb.21:
movl $1, -4(%rbp)
jmp LBB0_37
LBB0_22:
movq -24(%rbp), %rdi
movq _ZSTD_c_hashLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $10, %edx
callq _ZSTD_CCtx_setParameter
movl %eax, %edi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_24
## %bb.23:
movl $1, -4(%rbp)
jmp LBB0_37
LBB0_24:
movq -24(%rbp), %rdi
movq _ZSTD_c_chainLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $10, %edx
callq _ZSTD_CCtx_setParameter
movl %eax, %edi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_26
## %bb.25:
movl $1, -4(%rbp)
jmp LBB0_37
LBB0_26:
movq -32(%rbp), %rdi
movq _ZSTD_d_windowLogMax@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $31, %edx
callq _ZSTD_DCtx_setParameter
movl %eax, %edi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_28
## %bb.27:
movl $1, -4(%rbp)
jmp LBB0_37
LBB0_28:
movq -64(%rbp), %rdi
movl $2147483648, %esi ## imm = 0x80000000
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
xorps %xmm1, %xmm1
movl $3203386110, %edx ## imm = 0xBEEFCAFE
callq _RDG_genBuffer
movl $0, -84(%rbp)
LBB0_29: ## =>This Inner Loop Header: Depth=1
cmpl $10, -84(%rbp)
jge LBB0_34
## %bb.30: ## in Loop: Header=BB0_29 Depth=1
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.1(%rip), %rsi
callq _fprintf
movq -24(%rbp), %rdi
movq -32(%rbp), %rsi
movq -72(%rbp), %rdx
movq -48(%rbp), %rcx
movq -64(%rbp), %r8
movq -80(%rbp), %r10
movq _ZSTD_e_continue@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl $1073741824, %r9d ## imm = 0x40000000
movq %r10, (%rsp)
movl %eax, 8(%rsp)
callq _compress
cmpq $0, %rax
je LBB0_32
## %bb.31:
movl $1, -4(%rbp)
jmp LBB0_37
LBB0_32: ## in Loop: Header=BB0_29 Depth=1
jmp LBB0_33
LBB0_33: ## in Loop: Header=BB0_29 Depth=1
movl -84(%rbp), %eax
addl $1, %eax
movl %eax, -84(%rbp)
jmp LBB0_29
LBB0_34:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.1(%rip), %rsi
callq _fprintf
movq -24(%rbp), %rdi
movq -32(%rbp), %rsi
movq -72(%rbp), %rdx
movq -48(%rbp), %rcx
movq -64(%rbp), %r8
movq -80(%rbp), %r10
movq _ZSTD_e_end@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl $1073741824, %r9d ## imm = 0x40000000
movq %r10, (%rsp)
movl %eax, 8(%rsp)
callq _compress
cmpq $0, %rax
je LBB0_36
## %bb.35:
movl $1, -4(%rbp)
jmp LBB0_37
LBB0_36:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.2(%rip), %rsi
callq _fprintf
movq -80(%rbp), %rdi
callq _free
movq -72(%rbp), %rdi
callq _free
movq -64(%rbp), %rdi
callq _free
movq -32(%rbp), %rdi
callq _ZSTD_freeDCtx
movq -24(%rbp), %rdi
callq _ZSTD_freeCCtx
movl $0, -4(%rbp)
LBB0_37:
movl -4(%rbp), %eax
addq $112, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Allocation failure\n"
.comm _ZSTD_c_windowLog,4,2 ## @ZSTD_c_windowLog
.comm _ZSTD_c_nbWorkers,4,2 ## @ZSTD_c_nbWorkers
.comm _ZSTD_c_overlapLog,4,2 ## @ZSTD_c_overlapLog
.comm _ZSTD_c_checksumFlag,4,2 ## @ZSTD_c_checksumFlag
.comm _ZSTD_c_strategy,4,2 ## @ZSTD_c_strategy
.comm _ZSTD_btopt,4,2 ## @ZSTD_btopt
.comm _ZSTD_c_targetLength,4,2 ## @ZSTD_c_targetLength
.comm _ZSTD_c_minMatch,4,2 ## @ZSTD_c_minMatch
.comm _ZSTD_c_searchLog,4,2 ## @ZSTD_c_searchLog
.comm _ZSTD_c_hashLog,4,2 ## @ZSTD_c_hashLog
.comm _ZSTD_c_chainLog,4,2 ## @ZSTD_c_chainLog
.comm _ZSTD_d_windowLogMax,4,2 ## @ZSTD_d_windowLogMax
L_.str.1: ## @.str.1
.asciz "Compressing 1 GB\n"
.comm _ZSTD_e_continue,4,2 ## @ZSTD_e_continue
.comm _ZSTD_e_end,4,2 ## @ZSTD_e_end
L_.str.2: ## @.str.2
.asciz "Success!\n"
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_bigdict.c_main.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 x8, [x29, #-16]
ldr x8, [x8]
str x8, [sp, #24]
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
str x8, [sp, #16]
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #24]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w8, #2
stur w8, [x29, #-4]
b LBB0_5
LBB0_2:
adrp x8, _ZSTD_VERSION_STRING@GOTPAGE
ldr x8, [x8, _ZSTD_VERSION_STRING@GOTPAGEOFF]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr x8, [sp, #16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x0, [sp, #16]
bl _validate
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
stur wzr, [x29, #-4]
b LBB0_5
LBB0_4:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_5
LBB0_5:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "incorrect usage : %s tag \n"
l_.str.1: ; @.str.1
.asciz "Version : %s \n"
.comm _ZSTD_VERSION_STRING,8,3 ; @ZSTD_VERSION_STRING
l_.str.2: ; @.str.2
.asciz "Tag : %s \n"
l_.str.3: ; @.str.3
.asciz "OK : tag is compatible with zstd version \n"
l_.str.4: ; @.str.4
.asciz "!! error : tag and versions are not compatible !! \n"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
cmpl $2, -8(%rbp)
je LBB0_2
## %bb.1:
movq -24(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $2, -4(%rbp)
jmp LBB0_5
LBB0_2:
movq _ZSTD_VERSION_STRING@GOTPCREL(%rip), %rax
movq (%rax), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq -32(%rbp), %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movq -32(%rbp), %rdi
callq _validate
cmpq $0, %rax
je LBB0_4
## %bb.3:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -4(%rbp)
jmp LBB0_5
LBB0_4:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -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 "incorrect usage : %s tag \n"
L_.str.1: ## @.str.1
.asciz "Version : %s \n"
.comm _ZSTD_VERSION_STRING,8,3 ## @ZSTD_VERSION_STRING
L_.str.2: ## @.str.2
.asciz "Tag : %s \n"
L_.str.3: ## @.str.3
.asciz "OK : tag is compatible with zstd version \n"
L_.str.4: ## @.str.4
.asciz "!! error : tag and versions are not compatible !! \n"
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_checkTag.c_main.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function validate
_validate: ; @validate
.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]
ldr x0, [sp, #16]
bl _strlen
str x0, [sp, #8]
adrp x8, _ZSTD_VERSION_STRING@GOTPAGE
ldr x8, [x8, _ZSTD_VERSION_STRING@GOTPAGEOFF]
ldr x0, [x8]
bl _strlen
str x0, [sp]
ldr x8, [sp, #8]
subs x8, x8, #2
cset w8, hs
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
stur wzr, [x29, #-4]
b LBB0_9
LBB0_2:
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #118
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
stur wzr, [x29, #-4]
b LBB0_9
LBB0_4:
ldr x8, [sp, #8]
ldr x9, [sp]
subs x8, x8, x9
cset w8, hi
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
stur wzr, [x29, #-4]
b LBB0_9
LBB0_6:
adrp x8, _ZSTD_VERSION_STRING@GOTPAGE
ldr x8, [x8, _ZSTD_VERSION_STRING@GOTPAGEOFF]
ldr x0, [x8]
ldr x8, [sp, #16]
add x1, x8, #1
ldr x2, [sp]
bl _strncmp
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
stur wzr, [x29, #-4]
b LBB0_9
LBB0_8:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_9
LBB0_9:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _ZSTD_VERSION_STRING,8,3 ; @ZSTD_VERSION_STRING
.no_dead_strip _validate
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function validate
_validate: ## @validate
.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 -16(%rbp), %rdi
callq _strlen
movq %rax, -24(%rbp)
movq _ZSTD_VERSION_STRING@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _strlen
movq %rax, -32(%rbp)
cmpq $2, -24(%rbp)
jae LBB0_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB0_9
LBB0_2:
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $118, %eax
je LBB0_4
## %bb.3:
movl $0, -4(%rbp)
jmp LBB0_9
LBB0_4:
movq -24(%rbp), %rax
cmpq -32(%rbp), %rax
ja LBB0_6
## %bb.5:
movl $0, -4(%rbp)
jmp LBB0_9
LBB0_6:
movq _ZSTD_VERSION_STRING@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -16(%rbp), %rsi
addq $1, %rsi
movq -32(%rbp), %rdx
callq _strncmp
cmpq $0, %rax
je LBB0_8
## %bb.7:
movl $0, -4(%rbp)
jmp LBB0_9
LBB0_8:
movl $1, -4(%rbp)
LBB0_9:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_VERSION_STRING,8,3 ## @ZSTD_VERSION_STRING
.no_dead_strip _validate
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_checkTag.c_validate.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI0_0:
.quad 0x4059000000000000 ; double 100
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #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 wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
adrp x8, _COMPRESSIBILITY_DEFAULT@GOTPAGE
ldr x8, [x8, _COMPRESSIBILITY_DEFAULT@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-20]
movi d0, #0000000000000000
stur d0, [x29, #-32]
adrp x8, _SIZE_DEFAULT@GOTPAGE
ldr x8, [x8, _SIZE_DEFAULT@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-36]
adrp x8, _SEED_DEFAULT@GOTPAGE
ldr x8, [x8, _SEED_DEFAULT@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-40]
ldur x8, [x29, #-16]
ldr x8, [x8]
str x8, [sp, #48]
mov w8, #1
str w8, [sp, #44]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_6 Depth 2
; Child Loop BB0_25 Depth 3
; Child Loop BB0_11 Depth 3
; Child Loop BB0_31 Depth 3
; Child Loop BB0_39 Depth 3
ldr w8, [sp, #44]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_52
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldrsw x9, [sp, #44]
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #32]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
b LBB0_51
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB0_50
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB0_6
LBB0_6: ; Parent Loop BB0_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_25 Depth 3
; Child Loop BB0_11 Depth 3
; Child Loop BB0_31 Depth 3
; Child Loop BB0_39 Depth 3
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_49
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #76
; kill: def $x8 killed $w8
str x8, [sp, #24] ; 8-byte Folded Spill
subs x8, x8, #42
cset w8, hi
tbnz w8, #0, LBB0_47
; %bb.8: ; in Loop: Header=BB0_6 Depth=2
ldr x11, [sp, #24] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_9:
ldr x0, [sp, #48]
bl _usage
stur w0, [x29, #-4]
b LBB0_55
LBB0_10: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
stur wzr, [x29, #-36]
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, #32]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp, #20] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=3
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_11 Depth=3
ldr w8, [sp, #20] ; 4-byte Folded Reload
tbz w8, #0, LBB0_15
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_11 Depth=3
ldur w8, [x29, #-36]
mov w9, #10
mul w8, w8, w9
stur w8, [x29, #-36]
ldr x8, [sp, #32]
add x9, x8, #1
str x9, [sp, #32]
ldrsb w8, [x8]
subs w9, w8, #48
ldur w8, [x29, #-36]
add w8, w8, w9
stur w8, [x29, #-36]
b LBB0_11
LBB0_15: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #75
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_6 Depth=2
ldur w8, [x29, #-36]
lsl w8, w8, #10
stur w8, [x29, #-36]
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #77
cset w8, ne
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_6 Depth=2
ldur w8, [x29, #-36]
lsl w8, w8, #20
stur w8, [x29, #-36]
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #71
cset w8, ne
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_6 Depth=2
ldur w8, [x29, #-36]
lsl w8, w8, #30
stur w8, [x29, #-36]
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #66
cset w8, ne
tbnz w8, #0, LBB0_23
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_6 Depth=2
b LBB0_48
LBB0_24: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
stur wzr, [x29, #-40]
b LBB0_25
LBB0_25: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_6 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp, #16] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_27
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_25 Depth=3
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_25 Depth=3
ldr w8, [sp, #16] ; 4-byte Folded Reload
tbz w8, #0, LBB0_29
b LBB0_28
LBB0_28: ; in Loop: Header=BB0_25 Depth=3
ldur w8, [x29, #-40]
mov w9, #10
mul w8, w8, w9
stur w8, [x29, #-40]
ldr x8, [sp, #32]
add x9, x8, #1
str x9, [sp, #32]
ldrsb w8, [x8]
subs w9, w8, #48
ldur w8, [x29, #-40]
add w8, w8, w9
stur w8, [x29, #-40]
b LBB0_25
LBB0_29: ; in Loop: Header=BB0_6 Depth=2
b LBB0_48
LBB0_30: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
stur wzr, [x29, #-20]
b LBB0_31
LBB0_31: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_6 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_33
b LBB0_32
LBB0_32: ; in Loop: Header=BB0_31 Depth=3
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_33
LBB0_33: ; in Loop: Header=BB0_31 Depth=3
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB0_35
b LBB0_34
LBB0_34: ; in Loop: Header=BB0_31 Depth=3
ldur w8, [x29, #-20]
mov w9, #10
mul w8, w8, w9
stur w8, [x29, #-20]
ldr x8, [sp, #32]
add x9, x8, #1
str x9, [sp, #32]
ldrsb w8, [x8]
subs w9, w8, #48
ldur w8, [x29, #-20]
add w8, w8, w9
stur w8, [x29, #-20]
b LBB0_31
LBB0_35: ; in Loop: Header=BB0_6 Depth=2
ldur w8, [x29, #-20]
subs w8, w8, #100
cset w8, ls
tbnz w8, #0, LBB0_37
b LBB0_36
LBB0_36: ; in Loop: Header=BB0_6 Depth=2
mov w8, #100
stur w8, [x29, #-20]
b LBB0_37
LBB0_37: ; in Loop: Header=BB0_6 Depth=2
b LBB0_48
LBB0_38: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
movi d0, #0000000000000000
stur d0, [x29, #-32]
b LBB0_39
LBB0_39: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_6 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_41
b LBB0_40
LBB0_40: ; in Loop: Header=BB0_39 Depth=3
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_41
LBB0_41: ; in Loop: Header=BB0_39 Depth=3
ldr w8, [sp, #8] ; 4-byte Folded Reload
tbz w8, #0, LBB0_43
b LBB0_42
LBB0_42: ; in Loop: Header=BB0_39 Depth=3
ldur d0, [x29, #-32]
fmov d1, #10.00000000
fmul d0, d0, d1
stur d0, [x29, #-32]
ldr x8, [sp, #32]
add x9, x8, #1
str x9, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #48
scvtf d1, w8
ldur d0, [x29, #-32]
fadd d0, d0, d1
stur d0, [x29, #-32]
b LBB0_39
LBB0_43: ; in Loop: Header=BB0_6 Depth=2
ldur d0, [x29, #-32]
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fcmp d0, d1
cset w8, le
tbnz w8, #0, LBB0_45
b LBB0_44
LBB0_44: ; in Loop: Header=BB0_6 Depth=2
adrp x8, lCPI0_0@PAGE
ldr d0, [x8, lCPI0_0@PAGEOFF]
stur d0, [x29, #-32]
b LBB0_45
LBB0_45: ; in Loop: Header=BB0_6 Depth=2
ldur d0, [x29, #-32]
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
stur d0, [x29, #-32]
b LBB0_48
LBB0_46: ; in Loop: Header=BB0_6 Depth=2
adrp x9, _displayLevel@GOTPAGE
ldr x9, [x9, _displayLevel@GOTPAGEOFF]
mov w8, #4
str w8, [x9]
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB0_48
LBB0_47:
ldr x0, [sp, #48]
bl _usage
stur w0, [x29, #-4]
b LBB0_55
LBB0_48: ; in Loop: Header=BB0_6 Depth=2
b LBB0_6
LBB0_49: ; in Loop: Header=BB0_1 Depth=1
b LBB0_50
LBB0_50: ; in Loop: Header=BB0_1 Depth=1
b LBB0_51
LBB0_51: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #44]
add w8, w8, #1
str w8, [sp, #44]
b LBB0_1
LBB0_52:
mov w0, #4
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _DISPLAYLEVEL
ldur w8, [x29, #-20]
adrp x9, _COMPRESSIBILITY_DEFAULT@GOTPAGE
ldr x9, [x9, _COMPRESSIBILITY_DEFAULT@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_54
b LBB0_53
LBB0_53:
ldur w9, [x29, #-20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
mov w0, #3
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _DISPLAYLEVEL
b LBB0_54
LBB0_54:
ldur w9, [x29, #-40]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
mov w0, #3
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _DISPLAYLEVEL
ldur w0, [x29, #-36]
ldur s1, [x29, #-20]
; implicit-def: $d0
fmov s0, s1
ucvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
ldur d1, [x29, #-32]
ldur w1, [x29, #-40]
bl _RDG_genStdout
mov w0, #1
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _DISPLAYLEVEL
stur wzr, [x29, #-4]
b LBB0_55
LBB0_55:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_38-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_30-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_10-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_24-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_47-Ltmp0
.long LBB0_46-Ltmp0
; -- End function
.comm _COMPRESSIBILITY_DEFAULT,4,2 ; @COMPRESSIBILITY_DEFAULT
.comm _SIZE_DEFAULT,4,2 ; @SIZE_DEFAULT
.comm _SEED_DEFAULT,4,2 ; @SEED_DEFAULT
.comm _displayLevel,4,2 ; @displayLevel
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Compressible data Generator \n"
l_.str.1: ; @.str.1
.asciz "Compressibility : %i%%\n"
l_.str.2: ; @.str.2
.asciz "Seed = %u \n"
l_.str.3: ; @.str.3
.asciz "\n"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI0_0:
.quad 0x4059000000000000 ## double 100
LCPI0_1:
.quad 0x4024000000000000 ## double 10
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movq _COMPRESSIBILITY_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -20(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -32(%rbp)
movq _SIZE_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -36(%rbp)
movq _SEED_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -40(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movl $1, -52(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_6 Depth 2
## Child Loop BB0_24 Depth 3
## Child Loop BB0_10 Depth 3
## Child Loop BB0_30 Depth 3
## Child Loop BB0_38 Depth 3
movl -52(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_51
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movslq -52(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -64(%rbp)
cmpq $0, -64(%rbp)
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_50
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -64(%rbp), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB0_49
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq -64(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
LBB0_6: ## Parent Loop BB0_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_24 Depth 3
## Child Loop BB0_10 Depth 3
## Child Loop BB0_30 Depth 3
## Child Loop BB0_38 Depth 3
movq -64(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB0_48
## %bb.7: ## in Loop: Header=BB0_6 Depth=2
movq -64(%rbp), %rax
movsbl (%rax), %eax
addl $-76, %eax
movl %eax, %ecx
movq %rcx, -72(%rbp) ## 8-byte Spill
subl $42, %eax
ja LBB0_46
## %bb.55: ## in Loop: Header=BB0_6 Depth=2
movq -72(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_8:
movq -48(%rbp), %rdi
callq _usage
movl %eax, -4(%rbp)
jmp LBB0_54
LBB0_9: ## in Loop: Header=BB0_6 Depth=2
movq -64(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
movl $0, -36(%rbp)
LBB0_10: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_6 Depth=2
## => This Inner Loop Header: Depth=3
movq -64(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -73(%rbp) ## 1-byte Spill
jl LBB0_12
## %bb.11: ## in Loop: Header=BB0_10 Depth=3
movq -64(%rbp), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -73(%rbp) ## 1-byte Spill
LBB0_12: ## in Loop: Header=BB0_10 Depth=3
movb -73(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_13
jmp LBB0_14
LBB0_13: ## in Loop: Header=BB0_10 Depth=3
imull $10, -36(%rbp), %eax
movl %eax, -36(%rbp)
movq -64(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -64(%rbp)
movsbl (%rax), %eax
subl $48, %eax
addl -36(%rbp), %eax
movl %eax, -36(%rbp)
jmp LBB0_10
LBB0_14: ## in Loop: Header=BB0_6 Depth=2
movq -64(%rbp), %rax
movsbl (%rax), %eax
cmpl $75, %eax
jne LBB0_16
## %bb.15: ## in Loop: Header=BB0_6 Depth=2
movl -36(%rbp), %eax
shll $10, %eax
movl %eax, -36(%rbp)
movq -64(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
LBB0_16: ## in Loop: Header=BB0_6 Depth=2
movq -64(%rbp), %rax
movsbl (%rax), %eax
cmpl $77, %eax
jne LBB0_18
## %bb.17: ## in Loop: Header=BB0_6 Depth=2
movl -36(%rbp), %eax
shll $20, %eax
movl %eax, -36(%rbp)
movq -64(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
LBB0_18: ## in Loop: Header=BB0_6 Depth=2
movq -64(%rbp), %rax
movsbl (%rax), %eax
cmpl $71, %eax
jne LBB0_20
## %bb.19: ## in Loop: Header=BB0_6 Depth=2
movl -36(%rbp), %eax
shll $30, %eax
movl %eax, -36(%rbp)
movq -64(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
LBB0_20: ## in Loop: Header=BB0_6 Depth=2
movq -64(%rbp), %rax
movsbl (%rax), %eax
cmpl $66, %eax
jne LBB0_22
## %bb.21: ## in Loop: Header=BB0_6 Depth=2
movq -64(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
LBB0_22: ## in Loop: Header=BB0_6 Depth=2
jmp LBB0_47
LBB0_23: ## in Loop: Header=BB0_6 Depth=2
movq -64(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
movl $0, -40(%rbp)
LBB0_24: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_6 Depth=2
## => This Inner Loop Header: Depth=3
movq -64(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -74(%rbp) ## 1-byte Spill
jl LBB0_26
## %bb.25: ## in Loop: Header=BB0_24 Depth=3
movq -64(%rbp), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -74(%rbp) ## 1-byte Spill
LBB0_26: ## in Loop: Header=BB0_24 Depth=3
movb -74(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_27
jmp LBB0_28
LBB0_27: ## in Loop: Header=BB0_24 Depth=3
imull $10, -40(%rbp), %eax
movl %eax, -40(%rbp)
movq -64(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -64(%rbp)
movsbl (%rax), %eax
subl $48, %eax
addl -40(%rbp), %eax
movl %eax, -40(%rbp)
jmp LBB0_24
LBB0_28: ## in Loop: Header=BB0_6 Depth=2
jmp LBB0_47
LBB0_29: ## in Loop: Header=BB0_6 Depth=2
movq -64(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
movl $0, -20(%rbp)
LBB0_30: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_6 Depth=2
## => This Inner Loop Header: Depth=3
movq -64(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -75(%rbp) ## 1-byte Spill
jl LBB0_32
## %bb.31: ## in Loop: Header=BB0_30 Depth=3
movq -64(%rbp), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -75(%rbp) ## 1-byte Spill
LBB0_32: ## in Loop: Header=BB0_30 Depth=3
movb -75(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_33
jmp LBB0_34
LBB0_33: ## in Loop: Header=BB0_30 Depth=3
imull $10, -20(%rbp), %eax
movl %eax, -20(%rbp)
movq -64(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -64(%rbp)
movsbl (%rax), %eax
subl $48, %eax
addl -20(%rbp), %eax
movl %eax, -20(%rbp)
jmp LBB0_30
LBB0_34: ## in Loop: Header=BB0_6 Depth=2
cmpl $100, -20(%rbp)
jbe LBB0_36
## %bb.35: ## in Loop: Header=BB0_6 Depth=2
movl $100, -20(%rbp)
LBB0_36: ## in Loop: Header=BB0_6 Depth=2
jmp LBB0_47
LBB0_37: ## in Loop: Header=BB0_6 Depth=2
movq -64(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -32(%rbp)
LBB0_38: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_6 Depth=2
## => This Inner Loop Header: Depth=3
movq -64(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -76(%rbp) ## 1-byte Spill
jl LBB0_40
## %bb.39: ## in Loop: Header=BB0_38 Depth=3
movq -64(%rbp), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -76(%rbp) ## 1-byte Spill
LBB0_40: ## in Loop: Header=BB0_38 Depth=3
movb -76(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_41
jmp LBB0_42
LBB0_41: ## in Loop: Header=BB0_38 Depth=3
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd -32(%rbp), %xmm0
movsd %xmm0, -32(%rbp)
movq -64(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -64(%rbp)
movsbl (%rax), %eax
subl $48, %eax
cvtsi2sd %eax, %xmm0
addsd -32(%rbp), %xmm0
movsd %xmm0, -32(%rbp)
jmp LBB0_38
LBB0_42: ## in Loop: Header=BB0_6 Depth=2
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB0_44
## %bb.43: ## in Loop: Header=BB0_6 Depth=2
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -32(%rbp)
LBB0_44: ## in Loop: Header=BB0_6 Depth=2
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movsd %xmm0, -32(%rbp)
jmp LBB0_47
LBB0_45: ## in Loop: Header=BB0_6 Depth=2
movq _displayLevel@GOTPCREL(%rip), %rax
movl $4, (%rax)
movq -64(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
jmp LBB0_47
LBB0_46:
movq -48(%rbp), %rdi
callq _usage
movl %eax, -4(%rbp)
jmp LBB0_54
LBB0_47: ## in Loop: Header=BB0_6 Depth=2
jmp LBB0_6
LBB0_48: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_49
LBB0_49: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_50
LBB0_50: ## in Loop: Header=BB0_1 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB0_1
LBB0_51:
movl $4, %edi
leaq L_.str(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
movl -20(%rbp), %eax
movq _COMPRESSIBILITY_DEFAULT@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
je LBB0_53
## %bb.52:
movl -20(%rbp), %edx
movl $3, %edi
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
LBB0_53:
movl -40(%rbp), %edx
leaq L_.str.2(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $3, %edi
callq _DISPLAYLEVEL
movl -36(%rbp), %edi
movl -20(%rbp), %eax
## kill: def $rax killed $eax
cvtsi2sd %rax, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero
movl -40(%rbp), %esi
callq _RDG_genStdout
movl $1, %edi
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
movl $0, -4(%rbp)
LBB0_54:
movl -4(%rbp), %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_37, LBB0_37-LJTI0_0
.set L0_0_set_46, LBB0_46-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_45, LBB0_45-LJTI0_0
LJTI0_0:
.long L0_0_set_37
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_29
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_9
.long L0_0_set_8
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_23
.long L0_0_set_46
.long L0_0_set_46
.long L0_0_set_45
.end_data_region
## -- End function
.comm _COMPRESSIBILITY_DEFAULT,4,2 ## @COMPRESSIBILITY_DEFAULT
.comm _SIZE_DEFAULT,4,2 ## @SIZE_DEFAULT
.comm _SEED_DEFAULT,4,2 ## @SEED_DEFAULT
.comm _displayLevel,4,2 ## @displayLevel
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Compressible data Generator \n"
L_.str.1: ## @.str.1
.asciz "Compressibility : %i%%\n"
L_.str.2: ## @.str.2
.asciz "Seed = %u \n"
L_.str.3: ## @.str.3
.asciz "\n"
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_datagencli.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, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
ldr x8, [sp, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _DISPLAY
adrp x8, _SIZE_DEFAULT@GOTPAGE
ldr x8, [x8, _SIZE_DEFAULT@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
adrp x8, _SEED_DEFAULT@GOTPAGE
ldr x8, [x8, _SEED_DEFAULT@GOTPAGEOFF]
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
adrp x8, _COMPRESSIBILITY_DEFAULT@GOTPAGE
ldr x8, [x8, _COMPRESSIBILITY_DEFAULT@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _DISPLAY
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Compressible data generator\n"
l_.str.1: ; @.str.1
.asciz "Usage :\n"
l_.str.2: ; @.str.2
.asciz " %s [args]\n"
l_.str.3: ; @.str.3
.asciz "\n"
l_.str.4: ; @.str.4
.asciz "Arguments :\n"
l_.str.5: ; @.str.5
.asciz " -g# : generate # data (default:%i)\n"
.comm _SIZE_DEFAULT,4,2 ; @SIZE_DEFAULT
l_.str.6: ; @.str.6
.asciz " -s# : Select seed (default:%i)\n"
.comm _SEED_DEFAULT,4,2 ; @SEED_DEFAULT
l_.str.7: ; @.str.7
.asciz " -P# : Select compressibility in %% (default:%i%%)\n"
.comm _COMPRESSIBILITY_DEFAULT,4,2 ; @COMPRESSIBILITY_DEFAULT
l_.str.8: ; @.str.8
.asciz " -h : display help and exit\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)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq -8(%rbp), %rsi
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
movq _SIZE_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _SEED_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _COMPRESSIBILITY_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _DISPLAY
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Compressible data generator\n"
L_.str.1: ## @.str.1
.asciz "Usage :\n"
L_.str.2: ## @.str.2
.asciz " %s [args]\n"
L_.str.3: ## @.str.3
.asciz "\n"
L_.str.4: ## @.str.4
.asciz "Arguments :\n"
L_.str.5: ## @.str.5
.asciz " -g# : generate # data (default:%i)\n"
.comm _SIZE_DEFAULT,4,2 ## @SIZE_DEFAULT
L_.str.6: ## @.str.6
.asciz " -s# : Select seed (default:%i)\n"
.comm _SEED_DEFAULT,4,2 ## @SEED_DEFAULT
L_.str.7: ## @.str.7
.asciz " -P# : Select compressibility in %% (default:%i%%)\n"
.comm _COMPRESSIBILITY_DEFAULT,4,2 ## @COMPRESSIBILITY_DEFAULT
L_.str.8: ## @.str.8
.asciz " -h : display help and exit\n"
.no_dead_strip _usage
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_datagencli.c_usage.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function RAND_buffer
_RAND_buffer: ; @RAND_buffer
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
ldur x8, [x29, #-16]
str x8, [sp, #8]
str xzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
add x8, x8, #4
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hi
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr x9, [sp, #16]
add x8, x8, x9, lsl #2
str x8, [sp] ; 8-byte Folded Spill
ldur x0, [x29, #-8]
bl _RAND
mov x1, x0
ldr x0, [sp] ; 8-byte Folded Reload
bl _MEM_writeLE32
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #4
str x8, [sp, #16]
b LBB0_1
LBB0_4:
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldur x0, [x29, #-8]
bl _RAND
and w8, w0, #0xff
ldr x9, [sp, #8]
ldr x10, [sp, #16]
str w8, [x9, x10, lsl #2]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_5
LBB0_8:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.no_dead_strip _RAND_buffer
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function RAND_buffer
_RAND_buffer: ## @RAND_buffer
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -16(%rbp), %rax
movq %rax, -40(%rbp)
movq $0, -32(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
addq $4, %rax
cmpq -24(%rbp), %rax
ja LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rax
movq -32(%rbp), %rcx
shlq $2, %rcx
addq %rcx, %rax
movq %rax, -48(%rbp) ## 8-byte Spill
movq -8(%rbp), %rdi
callq _RAND
movq -48(%rbp), %rdi ## 8-byte Reload
movl %eax, %esi
callq _MEM_writeLE32
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
addq $4, %rax
movq %rax, -32(%rbp)
jmp LBB0_1
LBB0_4:
jmp LBB0_5
LBB0_5: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
cmpq -24(%rbp), %rax
jae LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -8(%rbp), %rdi
callq _RAND
movl %eax, %edx
andl $255, %edx
movq -40(%rbp), %rax
movq -32(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB0_5
LBB0_8:
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _RAND_buffer
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_RAND_buffer.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function RAND_bufferDist
_RAND_bufferDist: ; @RAND_bufferDist
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
str x3, [sp, #32]
ldur x8, [x29, #-24]
str x8, [sp, #16]
str xzr, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
ldr x9, [sp, #32]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
str x8, [sp, #8] ; 8-byte Folded Spill
ldur x0, [x29, #-8]
bl _RAND
ldr x8, [sp, #8] ; 8-byte Folded Reload
adrp x9, _DISTSIZE@GOTPAGE
ldr x9, [x9, _DISTSIZE@GOTPAGEOFF]
ldr x10, [x9]
udiv x9, x0, x10
mul x9, x9, x10
subs x9, x0, x9
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #16]
ldr x10, [sp, #24]
str w8, [x9, x10, lsl #2]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
b LBB0_1
LBB0_4:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.comm _DISTSIZE,8,3 ; @DISTSIZE
.no_dead_strip _RAND_bufferDist
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function RAND_bufferDist
_RAND_bufferDist: ## @RAND_bufferDist
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq -24(%rbp), %rax
movq %rax, -48(%rbp)
movq $0, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -40(%rbp), %rax
cmpq -32(%rbp), %rax
jae LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq %rax, -56(%rbp) ## 8-byte Spill
movq -8(%rbp), %rdi
callq _RAND
movq _DISTSIZE@GOTPCREL(%rip), %rcx
xorl %edx, %edx
## kill: def $rdx killed $edx
divq (%rcx)
movq -56(%rbp), %rax ## 8-byte Reload
movl (%rax,%rdx,4), %edx
movq -48(%rbp), %rax
movq -40(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
jmp LBB0_1
LBB0_4:
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _DISTSIZE,8,3 ## @DISTSIZE
.no_dead_strip _RAND_bufferDist
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_RAND_bufferDist.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function RAND_exp
_RAND_exp: ; @RAND_exp
.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 d0, [sp, #16]
ldur x0, [x29, #-8]
bl _RAND
adrp x8, _UINT_MAX@GOTPAGE
ldr x8, [x8, _UINT_MAX@GOTPAGEOFF]
ldr d1, [x8]
scvtf d1, d1
fdiv d0, d0, d1
str d0, [sp, #8]
ldr d1, [sp, #8]
fmov d0, #1.00000000
fsub d0, d0, d1
fcvtzs w0, d0
bl _log
ldr d1, [sp, #16]
fneg d1, d1
fmul d0, d0, d1
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _UINT_MAX,8,3 ; @UINT_MAX
.no_dead_strip _RAND_exp
.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 RAND_exp
LCPI0_0:
.quad 0x3ff0000000000000 ## double 1
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_RAND_exp: ## @RAND_exp
.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)
movsd %xmm0, -16(%rbp)
movq -8(%rbp), %rdi
callq _RAND
movq _UINT_MAX@GOTPCREL(%rip), %rax
cvtsi2sdq (%rax), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -24(%rbp)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
subsd -24(%rbp), %xmm0
cvttsd2si %xmm0, %edi
callq _log
movsd -16(%rbp), %xmm1 ## xmm1 = mem[0],zero
movq %xmm1, %rax
movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm1, %xmm0
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _UINT_MAX,8,3 ## @UINT_MAX
.no_dead_strip _RAND_exp
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_RAND_exp.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function RAND_bufferMaxSymb
_RAND_bufferMaxSymb: ; @RAND_bufferMaxSymb
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
str w3, [sp, #20]
ldur x8, [x29, #-16]
str x8, [sp]
str xzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-8]
bl _RAND
ldr w8, [sp, #20]
add w9, w8, #1
sdiv w8, w0, w9
mul w8, w8, w9
subs w9, w0, w8
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
ldr x9, [sp]
ldr x10, [sp, #8]
str x8, [x9, x10, lsl #3]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB0_1
LBB0_4:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.no_dead_strip _RAND_bufferMaxSymb
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function RAND_bufferMaxSymb
_RAND_bufferMaxSymb: ## @RAND_bufferMaxSymb
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movl %ecx, -28(%rbp)
movq -16(%rbp), %rax
movq %rax, -48(%rbp)
movq $0, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -40(%rbp), %rax
cmpq -24(%rbp), %rax
jae LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
callq _RAND
movl -28(%rbp), %ecx
addl $1, %ecx
cltd
idivl %ecx
movslq %edx, %rdx
movq -48(%rbp), %rax
movq -40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
jmp LBB0_1
LBB0_4:
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _RAND_bufferMaxSymb
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_RAND_bufferMaxSymb.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function RAND_genDist
_RAND_genDist: ; @RAND_genDist
.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, _DISTSIZE@GOTPAGE
ldr x8, [x8, _DISTSIZE@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur d0, [x29, #-24]
stur xzr, [x29, #-32]
ldr x8, [x8]
stur x8, [x29, #-40]
ldur x0, [x29, #-8]
bl _RAND
mov w9, #256
str w9, [sp, #20] ; 4-byte Folded Spill
sdiv w8, w0, w9
mul w8, w8, w9
subs w9, w0, w8
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
str x8, [sp, #48]
ldur x0, [x29, #-8]
bl _RAND
ldr w9, [sp, #20] ; 4-byte Folded Reload
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
orr w9, w8, #0x1
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
str x8, [sp, #40]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldur x8, [x29, #-32]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_9
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur d0, [x29, #-24]
ldur d1, [x29, #-40]
ucvtf d1, d1
fmul d0, d0, d1
fcvtzu x8, d0
add x8, x8, #1
str x8, [sp, #32]
str xzr, [sp, #24]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #24]
ldr x9, [sp, #32]
subs x8, x8, x9
cset w8, hs
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldur x8, [x29, #-32]
ldr x9, [x9]
subs x8, x8, x9
cset w8, lo
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #4] ; 4-byte Folded Reload
tbz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #48]
ldur x9, [x29, #-16]
ldur x10, [x29, #-32]
str x8, [x9, x10, lsl #3]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
ldur x8, [x29, #-32]
add x8, x8, #1
stur x8, [x29, #-32]
b LBB0_3
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #40]
ldr x8, [sp, #48]
add x8, x8, x9
str x8, [sp, #48]
ldr x9, [sp, #32]
ldur x8, [x29, #-40]
subs x8, x8, x9
stur x8, [x29, #-40]
b LBB0_1
LBB0_9:
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.comm _DISTSIZE,8,3 ; @DISTSIZE
.no_dead_strip _RAND_genDist
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal16,16byte_literals
.p2align 4 ## -- Begin function RAND_genDist
LCPI0_0:
.long 1127219200 ## 0x43300000
.long 1160773632 ## 0x45300000
.long 0 ## 0x0
.long 0 ## 0x0
LCPI0_1:
.quad 0x4330000000000000 ## double 4503599627370496
.quad 0x4530000000000000 ## double 1.9342813113834067E+25
.section __TEXT,__literal8,8byte_literals
.p2align 3
LCPI0_2:
.quad 0x43e0000000000000 ## double 9.2233720368547758E+18
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_RAND_genDist: ## @RAND_genDist
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movsd %xmm0, -24(%rbp)
movq $0, -32(%rbp)
movq _DISTSIZE@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -40(%rbp)
movq -8(%rbp), %rdi
callq _RAND
movl $256, %ecx ## imm = 0x100
cltd
idivl %ecx
movslq %edx, %rax
movq %rax, -48(%rbp)
movq -8(%rbp), %rdi
callq _RAND
movl $256, %ecx ## imm = 0x100
cltd
idivl %ecx
orl $1, %edx
movslq %edx, %rax
movq %rax, -56(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movq -32(%rbp), %rax
movq _DISTSIZE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_9
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
movaps LCPI0_0(%rip), %xmm2 ## xmm2 = [1127219200,1160773632,0,0]
movq -40(%rbp), %xmm1 ## xmm1 = mem[0],zero
punpckldq %xmm2, %xmm1 ## xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd LCPI0_1(%rip), %xmm2 ## xmm2 = [4.503599627370496E+15,1.9342813113834067E+25]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1 ## xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rax
movq %rax, %rdx
sarq $63, %rdx
movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rcx
andq %rdx, %rcx
orq %rcx, %rax
addq $1, %rax
movq %rax, -64(%rbp)
movq $0, -72(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -72(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq -64(%rbp), %rcx
movb %al, -73(%rbp) ## 1-byte Spill
jae LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movq -32(%rbp), %rax
movq _DISTSIZE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
setb %al
movb %al, -73(%rbp) ## 1-byte Spill
LBB0_5: ## in Loop: Header=BB0_3 Depth=2
movb -73(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_6
jmp LBB0_8
LBB0_6: ## in Loop: Header=BB0_3 Depth=2
movq -48(%rbp), %rdx
movq -16(%rbp), %rax
movq -32(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
## %bb.7: ## in Loop: Header=BB0_3 Depth=2
movq -72(%rbp), %rax
addq $1, %rax
movq %rax, -72(%rbp)
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB0_3
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rax
addq -48(%rbp), %rax
movq %rax, -48(%rbp)
movq -64(%rbp), %rcx
movq -40(%rbp), %rax
subq %rcx, %rax
movq %rax, -40(%rbp)
jmp LBB0_1
LBB0_9:
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _DISTSIZE,8,3 ## @DISTSIZE
.no_dead_strip _RAND_genDist
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_RAND_genDist.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function RAND_range
_RAND_range: ; @RAND_range
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str w1, [sp, #4]
str w2, [sp]
ldr x0, [sp, #8]
bl _RAND
ldr w8, [sp]
ldr w9, [sp, #4]
subs w9, w8, w9
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
ldr w9, [sp, #4]
add w0, w8, w9
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _RAND_range
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function RAND_range
_RAND_range: ## @RAND_range
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movq -8(%rbp), %rdi
callq _RAND
movl -16(%rbp), %ecx
subl -12(%rbp), %ecx
cltd
idivl %ecx
movl %edx, %eax
addl -12(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _RAND_range
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_RAND_range.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function advancedUsage
_advancedUsage: ; @advancedUsage
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _usage
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
adrp 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
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 "\n"
l_.str.1: ; @.str.1
.asciz "Advanced arguments :\n"
l_.str.2: ; @.str.2
.asciz " --content-size : always include the content size in the frame header\n"
l_.str.3: ; @.str.3
.asciz " --use-dict=# : include a dictionary used to decompress the corpus\n"
l_.str.4: ; @.str.4
.asciz " --gen-blocks : generate raw compressed blocks without block/frame headers\n"
l_.str.5: ; @.str.5
.asciz " --max-block-size-log=# : max block size log, must be in range [2, 17]\n"
l_.str.6: ; @.str.6
.asciz " --max-content-size-log=# : max content size log, must be <= 20\n"
l_.str.7: ; @.str.7
.asciz " (this is ignored with gen-blocks)\n"
.no_dead_strip _advancedUsage
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function advancedUsage
_advancedUsage: ## @advancedUsage
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
callq _usage
leaq L_.str(%rip), %rdi
callq _DISPLAY
leaq L_.str.1(%rip), %rdi
callq _DISPLAY
leaq L_.str.2(%rip), %rdi
callq _DISPLAY
leaq L_.str.3(%rip), %rdi
callq _DISPLAY
leaq L_.str.4(%rip), %rdi
callq _DISPLAY
leaq L_.str.5(%rip), %rdi
callq _DISPLAY
leaq L_.str.6(%rip), %rdi
callq _DISPLAY
leaq L_.str.7(%rip), %rdi
callq _DISPLAY
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\n"
L_.str.1: ## @.str.1
.asciz "Advanced arguments :\n"
L_.str.2: ## @.str.2
.asciz " --content-size : always include the content size in the frame header\n"
L_.str.3: ## @.str.3
.asciz " --use-dict=# : include a dictionary used to decompress the corpus\n"
L_.str.4: ## @.str.4
.asciz " --gen-blocks : generate raw compressed blocks without block/frame headers\n"
L_.str.5: ## @.str.5
.asciz " --max-block-size-log=# : max block size log, must be in range [2, 17]\n"
L_.str.6: ## @.str.6
.asciz " --max-content-size-log=# : max content size log, must be <= 20\n"
L_.str.7: ## @.str.7
.asciz " (this is ignored with gen-blocks)\n"
.no_dead_strip _advancedUsage
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_advancedUsage.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function genRandomDict
_genRandomDict: ; @genRandomDict
.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, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur w0, [x29, #-48]
stur w1, [x29, #-52]
stur x2, [x29, #-64]
stur x3, [x29, #-72]
stur wzr, [x29, #-76]
mov w8, #4
stur w8, [x29, #-80]
mov w0, #40000
bl _malloc
str x0, [sp, #88]
ldr x8, [sp, #88]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-44]
b LBB0_16
LBB0_2:
mov w8, #1
str w8, [sp, #84]
str wzr, [sp, #80]
mov x8, #1
str x8, [sp, #72]
b LBB0_3
LBB0_3: ; =>This Loop Header: Depth=1
; Child Loop BB0_5 Depth 2
ldr w8, [sp, #84]
subs w8, w8, #4
cset w8, hi
tbnz w8, #0, LBB0_9
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #72]
ldr w9, [sp, #84]
subs w10, w9, #1
sub x9, x29, #40
str x8, [x9, w10, uxtw #3]
str xzr, [sp, #64]
b LBB0_5
LBB0_5: ; Parent Loop BB0_3 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #64]
ldr x9, [sp, #72]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=2
ldr w8, [sp, #84]
; kill: def $x8 killed $w8
ldr x9, [sp, #88]
ldr w10, [sp, #80]
; kill: def $x10 killed $w10
mov x11, x10
add w11, w11, #1
str w11, [sp, #80]
str x8, [x9, x10, lsl #3]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=2
ldr x8, [sp, #64]
add x8, x8, #1
str x8, [sp, #64]
b LBB0_5
LBB0_8: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #84]
add w8, w8, #1
str w8, [sp, #84]
ldr x8, [sp, #72]
lsl x8, x8, #4
str x8, [sp, #72]
b LBB0_3
LBB0_9:
str xzr, [sp, #56]
ldur x8, [x29, #-64]
mov x9, #4
udiv x0, x8, x9
mov w1, #256
bl _MAX
str x0, [sp, #40]
ldur x8, [x29, #-64]
ldr x9, [sp, #40]
subs x8, x8, x9
str x8, [sp, #32]
ldur x8, [x29, #-72]
ldr x9, [sp, #40]
add x8, x8, x9, lsl #3
str x8, [sp, #24]
ldr x8, [sp, #32]
adrp x9, _ZDICT_CONTENTSIZE_MIN@GOTPAGE
ldr x9, [x9, _ZDICT_CONTENTSIZE_MIN@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, lo
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldur x8, [x29, #-64]
adrp x9, _ZDICT_DICTSIZE_MIN@GOTPAGE
ldr x9, [x9, _ZDICT_DICTSIZE_MIN@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-76]
b LBB0_15
LBB0_12:
add x0, sp, #48
mov w1, #0
mov w2, #8
bl _memset
ldur w8, [x29, #-48]
str w8, [sp, #52]
mov w8, #1
str w8, [sp, #48]
ldr x1, [sp, #24]
ldr x2, [sp, #32]
sub x0, x29, #52
bl _RAND_buffer
ldur x0, [x29, #-72]
ldur x1, [x29, #-64]
ldr x2, [sp, #24]
ldr x3, [sp, #32]
ldr x4, [sp, #88]
ldr x7, [sp, #48]
sub x5, x29, #40
mov w6, #4
bl _ZDICT_finalizeDictionary
str x0, [sp, #56]
ldr x0, [sp, #56]
bl _ZDICT_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
ldr x0, [sp, #56]
bl _ZDICT_getErrorName
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-76]
b LBB0_14
LBB0_14:
b LBB0_15
LBB0_15:
ldr x0, [sp, #88]
bl _free
ldur w8, [x29, #-76]
stur w8, [x29, #-44]
b LBB0_16
LBB0_16:
ldur w8, [x29, #-44]
str w8, [sp, #20] ; 4-byte Folded Spill
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_18
b LBB0_17
LBB0_17:
bl ___stack_chk_fail
LBB0_18:
ldr w0, [sp, #20] ; 4-byte Folded Reload
ldp x29, x30, [sp, #176] ; 16-byte Folded Reload
add sp, sp, #192
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Error: could not allocate space for samples\n"
.comm _ZDICT_CONTENTSIZE_MIN,8,3 ; @ZDICT_CONTENTSIZE_MIN
.comm _ZDICT_DICTSIZE_MIN,8,3 ; @ZDICT_DICTSIZE_MIN
l_.str.1: ; @.str.1
.asciz "Error: dictionary size is too small\n"
l_.str.2: ; @.str.2
.asciz "Could not finalize dictionary: %s\n"
.no_dead_strip _genRandomDict
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function genRandomDict
_genRandomDict: ## @genRandomDict
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $192, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl %edi, -56(%rbp)
movl %esi, -60(%rbp)
movq %rdx, -72(%rbp)
movq %rcx, -80(%rbp)
movl $0, -84(%rbp)
movl $4, -88(%rbp)
movl $40000, %edi ## imm = 0x9C40
callq _malloc
movq %rax, -96(%rbp)
cmpq $0, -96(%rbp)
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $1, -52(%rbp)
jmp LBB0_16
LBB0_2:
movl $1, -100(%rbp)
movl $0, -104(%rbp)
movq $1, -112(%rbp)
LBB0_3: ## =>This Loop Header: Depth=1
## Child Loop BB0_5 Depth 2
cmpl $4, -100(%rbp)
ja LBB0_9
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -112(%rbp), %rcx
movl -100(%rbp), %eax
subl $1, %eax
movl %eax, %eax
## kill: def $rax killed $eax
movq %rcx, -48(%rbp,%rax,8)
movq $0, -120(%rbp)
LBB0_5: ## Parent Loop BB0_3 Depth=1
## => This Inner Loop Header: Depth=2
movq -120(%rbp), %rax
cmpq -112(%rbp), %rax
jae LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=2
movl -100(%rbp), %eax
movl %eax, %edx
movq -96(%rbp), %rax
movl -104(%rbp), %ecx
movl %ecx, %esi
addl $1, %esi
movl %esi, -104(%rbp)
movl %ecx, %ecx
## kill: def $rcx killed $ecx
movq %rdx, (%rax,%rcx,8)
## %bb.7: ## in Loop: Header=BB0_5 Depth=2
movq -120(%rbp), %rax
addq $1, %rax
movq %rax, -120(%rbp)
jmp LBB0_5
LBB0_8: ## in Loop: Header=BB0_3 Depth=1
movl -100(%rbp), %eax
addl $1, %eax
movl %eax, -100(%rbp)
movq -112(%rbp), %rax
shlq $4, %rax
movq %rax, -112(%rbp)
jmp LBB0_3
LBB0_9:
movq $0, -128(%rbp)
movq -72(%rbp), %rdi
shrq $2, %rdi
movl $256, %esi ## imm = 0x100
callq _MAX
movq %rax, -144(%rbp)
movq -72(%rbp), %rax
subq -144(%rbp), %rax
movq %rax, -152(%rbp)
movq -80(%rbp), %rax
movq -144(%rbp), %rcx
shlq $3, %rcx
addq %rcx, %rax
movq %rax, -160(%rbp)
movq -152(%rbp), %rax
movq _ZDICT_CONTENTSIZE_MIN@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jb LBB0_11
## %bb.10:
movq -72(%rbp), %rax
movq _ZDICT_DICTSIZE_MIN@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_12
LBB0_11:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $1, -84(%rbp)
jmp LBB0_15
LBB0_12:
leaq -136(%rbp), %rdi
xorl %esi, %esi
movl $8, %edx
callq _memset
movl -56(%rbp), %eax
movl %eax, -132(%rbp)
movl $1, -136(%rbp)
movq -160(%rbp), %rsi
movq -152(%rbp), %rdx
leaq -60(%rbp), %rdi
callq _RAND_buffer
movq -80(%rbp), %rdi
movq -72(%rbp), %rsi
movq -160(%rbp), %rdx
movq -152(%rbp), %rcx
movq -96(%rbp), %r8
leaq -48(%rbp), %r9
movq -136(%rbp), %rax
movl $4, (%rsp)
movq %rax, 8(%rsp)
callq _ZDICT_finalizeDictionary
movq %rax, -128(%rbp)
movq -128(%rbp), %rdi
callq _ZDICT_isError
cmpq $0, %rax
je LBB0_14
## %bb.13:
movq -128(%rbp), %rdi
callq _ZDICT_getErrorName
movl %eax, %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $1, -84(%rbp)
LBB0_14:
jmp LBB0_15
LBB0_15:
movq -96(%rbp), %rdi
callq _free
movl -84(%rbp), %eax
movl %eax, -52(%rbp)
LBB0_16:
movl -52(%rbp), %eax
movl %eax, -164(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_18
## %bb.17:
movl -164(%rbp), %eax ## 4-byte Reload
addq $192, %rsp
popq %rbp
retq
LBB0_18:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Error: could not allocate space for samples\n"
.comm _ZDICT_CONTENTSIZE_MIN,8,3 ## @ZDICT_CONTENTSIZE_MIN
.comm _ZDICT_DICTSIZE_MIN,8,3 ## @ZDICT_DICTSIZE_MIN
L_.str.1: ## @.str.1
.asciz "Error: dictionary size is too small\n"
L_.str.2: ## @.str.2
.asciz "Could not finalize dictionary: %s\n"
.no_dead_strip _genRandomDict
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_genRandomDict.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function generateCompressedBlock
_generateCompressedBlock: ; @generateCompressedBlock
.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 w2, [x29, #-20]
stur wzr, [x29, #-36]
ldur x8, [x29, #-8]
mov x9, sp
str x8, [x9]
mov w0, #4
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _DISPLAYLEVEL
ldur x0, [x29, #-16]
bl _initFrame
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
str x8, [sp, #48]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_13
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #8
str x0, [sp, #16] ; 8-byte Folded Spill
bl _RAND
mov x8, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
adrp x9, _MAX_WINDOW_LOG@GOTPAGE
ldr x9, [x9, _MAX_WINDOW_LOG@GOTPAGEOFF]
ldr w9, [x9]
subs w10, w9, #10
; implicit-def: $x9
mov x9, x10
sxtw x10, w9
udiv x9, x8, x10
mul x9, x9, x10
subs x8, x8, x9
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #36]
bl _RAND
mov x9, #8
udiv x8, x0, x9
mul x8, x8, x9
subs x8, x0, x8
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #32]
ldr w8, [sp, #36]
add w9, w8, #10
mov w8, #1
lsl w8, w8, w9
ldur x9, [x29, #-16]
str w8, [x9, #24]
ldur x8, [x29, #-16]
ldr w8, [x8, #24]
mov w9, #8
udiv w8, w8, w9
ldr w9, [sp, #32]
mul w10, w8, w9
ldur x9, [x29, #-16]
ldr w8, [x9, #24]
add w8, w8, w10
str w8, [x9, #24]
adrp x8, _g_maxBlockSize@GOTPAGE
ldr x8, [x8, _g_maxBlockSize@GOTPAGEOFF]
ldr w0, [x8]
ldur x8, [x29, #-16]
ldr w1, [x8, #24]
bl _MIN
mov x8, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
str x8, [sp, #24]
bl _RAND
ands x8, x0, #0xf
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
stur x8, [x29, #-32]
b LBB0_9
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #8
bl _RAND
ands x8, x0, #0x7
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _g_maxBlockSize@GOTPAGE
ldr x8, [x8, _g_maxBlockSize@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #128
cset w8, lo
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #8
bl _RAND
mov x9, #128
udiv x8, x0, x9
mul x8, x8, x9
subs x8, x0, x8
stur x8, [x29, #-32]
b LBB0_8
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #8
bl _RAND
ldr x9, [sp, #24]
udiv x8, x0, x9
mul x8, x8, x9
subs x8, x0, x8
stur x8, [x29, #-32]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldr w8, [x8, #12]
ldur x9, [x29, #-16]
str w8, [x9, #8]
ldr x8, [sp, #48]
ldur x9, [x29, #-16]
str x8, [x9, #16]
ldur x1, [x29, #-16]
ldur x2, [x29, #-32]
ldur w3, [x29, #-20]
sub x0, x29, #8
bl _writeCompressedBlock
str x0, [sp, #40]
ldr x8, [sp, #40]
ldur x9, [x29, #-32]
subs x8, x8, x9
cset w8, lo
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldr w8, [x8, #8]
ldur x9, [x29, #-16]
str w8, [x9, #12]
mov w0, #5
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _DISPLAYLEVEL
b LBB0_12
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
mov w8, #1
stur w8, [x29, #-36]
ldr x8, [sp, #40]
mov x9, sp
str x8, [x9]
mov w0, #4
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _DISPLAYLEVEL
ldur x8, [x29, #-16]
ldr x8, [x8]
ldur x9, [x29, #-32]
add x8, x8, x9, lsl #2
ldur x9, [x29, #-16]
str x8, [x9]
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_13:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "block seed: %u\n"
.comm _MAX_WINDOW_LOG,4,2 ; @MAX_WINDOW_LOG
.comm _g_maxBlockSize,4,2 ; @g_maxBlockSize
l_.str.1: ; @.str.1
.asciz " can't compress block : try again \n"
l_.str.2: ; @.str.2
.asciz " block size: %u \n"
.no_dead_strip _generateCompressedBlock
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function generateCompressedBlock
_generateCompressedBlock: ## @generateCompressedBlock
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl %edx, -20(%rbp)
movl $0, -36(%rbp)
movq -8(%rbp), %rax
movl %eax, %edx
movl $4, %edi
leaq L_.str(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
movq -16(%rbp), %rdi
callq _initFrame
movq -16(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -48(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -36(%rbp)
setne %al
xorb $-1, %al
testb $1, %al
jne LBB0_2
jmp LBB0_13
LBB0_2: ## in Loop: Header=BB0_1 Depth=1
leaq -8(%rbp), %rdi
callq _RAND
movq _MAX_WINDOW_LOG@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
subl $10, %ecx
movslq %ecx, %rcx
xorl %edx, %edx
## kill: def $rdx killed $edx
divq %rcx
movl %edx, %eax
movl %eax, -60(%rbp)
leaq -8(%rbp), %rdi
callq _RAND
andq $7, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -64(%rbp)
movl -60(%rbp), %ecx
addl $10, %ecx
movl $1, %eax
## kill: def $cl killed $ecx
shll %cl, %eax
movl %eax, %ecx
movq -16(%rbp), %rax
movl %ecx, 24(%rax)
movq -16(%rbp), %rax
movl 24(%rax), %ecx
shrl $3, %ecx
imull -64(%rbp), %ecx
movq -16(%rbp), %rax
addl 24(%rax), %ecx
movl %ecx, 24(%rax)
movq _g_maxBlockSize@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -16(%rbp), %rax
movl 24(%rax), %esi
callq _MIN
movq %rax, -72(%rbp)
leaq -8(%rbp), %rdi
callq _RAND
andq $15, %rax
cmpq $0, %rax
je LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -72(%rbp), %rax
movq %rax, -32(%rbp)
jmp LBB0_9
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
leaq -8(%rbp), %rdi
callq _RAND
andq $7, %rax
cmpq $0, %rax
je LBB0_7
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq _g_maxBlockSize@GOTPCREL(%rip), %rax
cmpl $128, (%rax)
jb LBB0_7
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
leaq -8(%rbp), %rdi
callq _RAND
andq $127, %rax
movq %rax, -32(%rbp)
jmp LBB0_8
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
leaq -8(%rbp), %rdi
callq _RAND
xorl %ecx, %ecx
movl %ecx, %edx
divq -72(%rbp)
movq %rdx, -32(%rbp)
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movl 12(%rax), %ecx
movq -16(%rbp), %rax
movl %ecx, 8(%rax)
movq -48(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 16(%rax)
movq -16(%rbp), %rsi
movq -32(%rbp), %rdx
movl -20(%rbp), %ecx
leaq -8(%rbp), %rdi
callq _writeCompressedBlock
movq %rax, -56(%rbp)
movq -56(%rbp), %rax
cmpq -32(%rbp), %rax
jb LBB0_11
## %bb.10: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movl 8(%rax), %ecx
movq -16(%rbp), %rax
movl %ecx, 12(%rax)
movl $5, %edi
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
jmp LBB0_12
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
movl $1, -36(%rbp)
movq -56(%rbp), %rax
movl %eax, %edx
movl $4, %edi
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
movq -16(%rbp), %rax
movq (%rax), %rcx
movq -32(%rbp), %rax
shlq $2, %rax
addq %rax, %rcx
movq -16(%rbp), %rax
movq %rcx, (%rax)
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_13:
movq -8(%rbp), %rax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "block seed: %u\n"
.comm _MAX_WINDOW_LOG,4,2 ## @MAX_WINDOW_LOG
.comm _g_maxBlockSize,4,2 ## @g_maxBlockSize
L_.str.1: ## @.str.1
.asciz " can't compress block : try again \n"
L_.str.2: ## @.str.2
.asciz " block size: %u \n"
.no_dead_strip _generateCompressedBlock
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_generateCompressedBlock.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function generateCorpus
_generateCorpus: ; @generateCorpus
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub sp, sp, #160
adrp x8, _MAX_PATH@GOTPAGE
ldr x8, [x8, _MAX_PATH@GOTPAGEOFF]
stur x8, [x29, #-144] ; 8-byte Folded Spill
adrp x9, ___stack_chk_guard@GOTPAGE
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
ldr x9, [x9]
stur x9, [x29, #-8]
stur x0, [x29, #-24]
stur w1, [x29, #-28]
stur x2, [x29, #-40]
stur x3, [x29, #-48]
stur x4, [x29, #-56]
ldr w8, [x8]
; kill: def $x8 killed $w8
mov x9, sp
stur x9, [x29, #-64]
lsr x9, x8, #0
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-136] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-136] ; 8-byte Folded Reload
mov x9, sp
subs x0, x9, x10
stur x0, [x29, #-128] ; 8-byte Folded Spill
mov sp, x0
stur x8, [x29, #-72]
ldur x8, [x29, #-24]
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
add sp, sp, #16
stur wzr, [x29, #-76]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-76]
ldur w9, [x29, #-28]
subs w8, w8, w9
cset w8, hs
tbnz w8, #0, LBB0_13
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w1, [x29, #-76]
ldur w2, [x29, #-28]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAYUPDATE
mov w3, #0
mov x0, x3
mov x1, x3
mov x2, #0
bl _initDictInfo
stur w0, [x29, #-116]
ldur x8, [x29, #-56]
adrp x9, _gt_frame@GOTPAGE
ldr x9, [x9, _gt_frame@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-24]
ldur w2, [x29, #-116]
sub x1, x29, #112
bl _generateFrame
stur x0, [x29, #-24]
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-24]
ldur w2, [x29, #-116]
sub x1, x29, #112
bl _generateCompressedBlock
stur x0, [x29, #-24]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-144] ; 8-byte Folded Reload
ldur x0, [x29, #-128] ; 8-byte Folded Reload
ldr w1, [x8]
ldur x3, [x29, #-40]
ldur w4, [x29, #-76]
adrp x2, l_.str.2@PAGE
add x2, x2, l_.str.2@PAGEOFF
bl _snprintf
ldur x9, [x29, #-144] ; 8-byte Folded Reload
add w8, w0, #1
ldr w9, [x9]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-12]
stur w8, [x29, #-120]
b LBB0_14
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldur x2, [x29, #-128] ; 8-byte Folded Reload
ldur x0, [x29, #-96]
ldur x8, [x29, #-88]
ldur x9, [x29, #-96]
subs x8, x8, x9
mov x9, #4
sdiv x8, x8, x9
mov x1, x8
bl _outputBuffer
ldur x8, [x29, #-48]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-144] ; 8-byte Folded Reload
ldur x0, [x29, #-128] ; 8-byte Folded Reload
ldr w1, [x8]
ldur x3, [x29, #-48]
ldur w4, [x29, #-76]
adrp x2, l_.str.4@PAGE
add x2, x2, l_.str.4@PAGEOFF
bl _snprintf
ldur x9, [x29, #-144] ; 8-byte Folded Reload
add w8, w0, #1
ldr w9, [x9]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-12]
stur w8, [x29, #-120]
b LBB0_14
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldur x2, [x29, #-128] ; 8-byte Folded Reload
ldur x0, [x29, #-112]
ldur x8, [x29, #-104]
ldur x9, [x29, #-112]
subs x8, x8, x9
mov x9, #4
sdiv x8, x8, x9
mov x1, x8
bl _outputBuffer
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-76]
add w8, w8, #1
stur w8, [x29, #-76]
b LBB0_1
LBB0_13:
ldur w8, [x29, #-76]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-28]
; implicit-def: $x8
mov x8, x9
sub sp, sp, #16
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
add sp, sp, #16
stur wzr, [x29, #-12]
mov w8, #1
stur w8, [x29, #-120]
b LBB0_14
LBB0_14:
ldur x8, [x29, #-64]
mov sp, x8
ldur w8, [x29, #-12]
stur w8, [x29, #-148] ; 4-byte Folded Spill
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_16
b LBB0_15
LBB0_15:
bl ___stack_chk_fail
LBB0_16:
ldur w0, [x29, #-148] ; 4-byte Folded Reload
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.comm _MAX_PATH,4,2 ; @MAX_PATH
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "seed: %u\n"
l_.str.1: ; @.str.1
.asciz "\r%u/%u "
.comm _gt_frame,8,3 ; @gt_frame
l_.str.2: ; @.str.2
.asciz "%s/z%06u.zst"
l_.str.3: ; @.str.3
.asciz "Error: path too long\n"
l_.str.4: ; @.str.4
.asciz "%s/z%06u"
l_.str.5: ; @.str.5
.asciz "\r%u/%u \n"
.no_dead_strip _generateCorpus
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function generateCorpus
_generateCorpus: ## @generateCorpus
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $144, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movq %rdx, -40(%rbp)
movq %rcx, -48(%rbp)
movq %r8, -56(%rbp)
movq _MAX_PATH@GOTPCREL(%rip), %rax
movl (%rax), %eax
## kill: def $rax killed $eax
movq %rax, -136(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -64(%rbp)
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -136(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -128(%rbp) ## 8-byte Spill
movq %rax, -72(%rbp)
movq -24(%rbp), %rax
movl %eax, %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $0, -76(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -76(%rbp), %eax
cmpl -28(%rbp), %eax
jae LBB0_13
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -76(%rbp), %esi
movl -28(%rbp), %edx
leaq L_.str.1(%rip), %rdi
callq _DISPLAYUPDATE
xorl %ecx, %ecx
xorl %eax, %eax
movl %eax, %edx
movl %ecx, %edi
movl %ecx, %esi
callq _initDictInfo
movl %eax, -116(%rbp)
movq -56(%rbp), %rax
movq _gt_frame@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rdi
movl -116(%rbp), %edx
leaq -112(%rbp), %rsi
callq _generateFrame
movq %rax, -24(%rbp)
jmp LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rdi
movl -116(%rbp), %edx
leaq -112(%rbp), %rsi
callq _generateCompressedBlock
movq %rax, -24(%rbp)
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -128(%rbp), %rdi ## 8-byte Reload
movq _MAX_PATH@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -40(%rbp), %rcx
movl -76(%rbp), %r8d
leaq L_.str.2(%rip), %rdx
callq _snprintf
addl $1, %eax
movq _MAX_PATH@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jle LBB0_7
## %bb.6:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $1, -12(%rbp)
movl $1, -120(%rbp)
jmp LBB0_14
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movq -128(%rbp), %rdx ## 8-byte Reload
movq -96(%rbp), %rdi
movq -88(%rbp), %rax
movq -96(%rbp), %rcx
subq %rcx, %rax
sarq $2, %rax
movl %eax, %esi
callq _outputBuffer
cmpq $0, -48(%rbp)
je LBB0_11
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
movq -128(%rbp), %rdi ## 8-byte Reload
movq _MAX_PATH@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -48(%rbp), %rcx
movl -76(%rbp), %r8d
leaq L_.str.4(%rip), %rdx
callq _snprintf
addl $1, %eax
movq _MAX_PATH@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jle LBB0_10
## %bb.9:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $1, -12(%rbp)
movl $1, -120(%rbp)
jmp LBB0_14
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movq -128(%rbp), %rdx ## 8-byte Reload
movq -112(%rbp), %rdi
movq -104(%rbp), %rax
movq -112(%rbp), %rcx
subq %rcx, %rax
sarq $2, %rax
movl %eax, %esi
callq _outputBuffer
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_12
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
jmp LBB0_1
LBB0_13:
movl -76(%rbp), %esi
movl -28(%rbp), %edx
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $0, -12(%rbp)
movl $1, -120(%rbp)
LBB0_14:
movq -64(%rbp), %rax
movq %rax, %rsp
movl -12(%rbp), %eax
movl %eax, -140(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_16
## %bb.15:
movl -140(%rbp), %eax ## 4-byte Reload
movq %rbp, %rsp
popq %rbp
retq
LBB0_16:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.comm _MAX_PATH,4,2 ## @MAX_PATH
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "seed: %u\n"
L_.str.1: ## @.str.1
.asciz "\r%u/%u "
.comm _gt_frame,8,3 ## @gt_frame
L_.str.2: ## @.str.2
.asciz "%s/z%06u.zst"
L_.str.3: ## @.str.3
.asciz "Error: path too long\n"
L_.str.4: ## @.str.4
.asciz "%s/z%06u"
L_.str.5: ## @.str.5
.asciz "\r%u/%u \n"
.no_dead_strip _generateCorpus
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_generateCorpus.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function generateFile
_generateFile: ; @generateFile
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
ldur x8, [x29, #-8]
mov x1, x8
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
mov w3, #0
mov x0, x3
mov x1, x3
mov x2, #0
bl _initDictInfo
str w0, [sp, #12]
ldur x8, [x29, #-32]
adrp x9, _gt_frame@GOTPAGE
ldr x9, [x9, _gt_frame@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x0, [x29, #-8]
ldr w2, [sp, #12]
add x1, sp, #16
bl _generateFrame
b LBB0_3
LBB0_2:
ldur x0, [x29, #-8]
ldr w2, [sp, #12]
add x1, sp, #16
bl _generateCompressedBlock
b LBB0_3
LBB0_3:
ldr x0, [sp, #32]
ldr x8, [sp, #40]
ldr x9, [sp, #32]
subs x8, x8, x9
mov x9, #4
sdiv x8, x8, x9
mov x1, x8
ldur x2, [x29, #-16]
bl _outputBuffer
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldr x0, [sp, #16]
ldr x8, [sp, #24]
ldr x9, [sp, #16]
subs x8, x8, x9
mov x9, #4
sdiv x8, x8, x9
mov x1, x8
ldur x2, [x29, #-24]
bl _outputBuffer
b LBB0_5
LBB0_5:
mov w0, #0
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "seed: %u\n"
.comm _gt_frame,8,3 ; @gt_frame
.no_dead_strip _generateFile
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function generateFile
_generateFile: ## @generateFile
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq -8(%rbp), %rax
movl %eax, %esi
leaq L_.str(%rip), %rdi
callq _DISPLAY
xorl %ecx, %ecx
xorl %eax, %eax
movl %eax, %edx
movl %ecx, %edi
movl %ecx, %esi
callq _initDictInfo
movl %eax, -68(%rbp)
movq -32(%rbp), %rax
movq _gt_frame@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_2
## %bb.1:
movq -8(%rbp), %rdi
movl -68(%rbp), %edx
leaq -64(%rbp), %rsi
callq _generateFrame
jmp LBB0_3
LBB0_2:
movq -8(%rbp), %rdi
movl -68(%rbp), %edx
leaq -64(%rbp), %rsi
callq _generateCompressedBlock
LBB0_3:
movq -48(%rbp), %rdi
movq -40(%rbp), %rax
movq -48(%rbp), %rcx
subq %rcx, %rax
sarq $2, %rax
movl %eax, %esi
movq -16(%rbp), %rdx
callq _outputBuffer
cmpq $0, -24(%rbp)
je LBB0_5
## %bb.4:
movq -64(%rbp), %rdi
movq -56(%rbp), %rax
movq -64(%rbp), %rcx
subq %rcx, %rax
sarq $2, %rax
movl %eax, %esi
movq -24(%rbp), %rdx
callq _outputBuffer
LBB0_5:
xorl %eax, %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "seed: %u\n"
.comm _gt_frame,8,3 ## @gt_frame
.no_dead_strip _generateFile
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_generateFile.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function generateCorpusWithDict
_generateCorpusWithDict: ; @generateCorpusWithDict
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub sp, sp, #208
sub x9, x29, #32
stur x9, [x29, #-192] ; 8-byte Folded Spill
mov x10, x0
adrp x8, _MAX_PATH@GOTPAGE
ldr x8, [x8, _MAX_PATH@GOTPAGEOFF]
stur x8, [x29, #-176] ; 8-byte Folded Spill
adrp x11, ___stack_chk_guard@GOTPAGE
ldr x11, [x11, ___stack_chk_guard@GOTPAGEOFF]
ldr x11, [x11]
stur x11, [x29, #-8]
sub x0, x29, #16
stur w10, [x29, #-16]
stur w1, [x29, #-20]
str x2, [x9]
stur x3, [x29, #-40]
stur x4, [x29, #-48]
stur x5, [x29, #-56]
ldr w8, [x8]
; kill: def $x8 killed $w8
mov x9, sp
stur x9, [x29, #-64]
lsr x9, x8, #0
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-200] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-200] ; 8-byte Folded Reload
mov x9, sp
subs x1, x9, x10
stur x1, [x29, #-184] ; 8-byte Folded Spill
mov sp, x1
stur x8, [x29, #-72]
bl _RAND
ldur x8, [x29, #-192] ; 8-byte Folded Reload
ldur x9, [x29, #-176] ; 8-byte Folded Reload
mov x10, x0
ldur x0, [x29, #-184] ; 8-byte Folded Reload
stur w10, [x29, #-84]
stur wzr, [x29, #-88]
ldr w1, [x9]
ldr x3, [x8]
adrp x2, l_.str@PAGE
add x2, x2, l_.str@PAGEOFF
bl _snprintf
ldur x9, [x29, #-176] ; 8-byte Folded Reload
add w8, w0, #1
ldr w9, [x9]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-12]
stur w8, [x29, #-92]
b LBB0_31
LBB0_2:
ldur x0, [x29, #-48]
bl _malloc
stur x0, [x29, #-80]
ldur x8, [x29, #-80]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-12]
stur w8, [x29, #-92]
b LBB0_31
LBB0_4:
ldur w0, [x29, #-84]
ldur w1, [x29, #-16]
ldur x2, [x29, #-48]
ldur x3, [x29, #-80]
bl _genRandomDict
stur w0, [x29, #-96]
ldur w8, [x29, #-96]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldur w8, [x29, #-96]
stur w8, [x29, #-88]
b LBB0_30
LBB0_6:
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_7
LBB0_7:
ldur x9, [x29, #-176] ; 8-byte Folded Reload
ldur x0, [x29, #-184] ; 8-byte Folded Reload
ldur x8, [x29, #-192] ; 8-byte Folded Reload
ldr w1, [x9]
ldr x3, [x8]
adrp x2, l_.str@PAGE
add x2, x2, l_.str@PAGEOFF
bl _snprintf
ldur x9, [x29, #-176] ; 8-byte Folded Reload
add w8, w0, #1
ldr w9, [x9]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-88]
b LBB0_30
LBB0_9:
ldur x2, [x29, #-184] ; 8-byte Folded Reload
ldur x0, [x29, #-80]
ldur x1, [x29, #-48]
bl _outputBuffer
b LBB0_11
LBB0_10:
ldur x0, [x29, #-80]
ldur x1, [x29, #-48]
adrp x2, l_.str.4@PAGE
add x2, x2, l_.str.4@PAGEOFF
bl _outputBuffer
b LBB0_11
LBB0_11:
stur wzr, [x29, #-100]
b LBB0_12
LBB0_12: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-100]
stur w8, [x29, #-204] ; 4-byte Folded Spill
ldur w8, [x29, #-20]
mov x0, x8
mov w1, #1
bl _MAX
ldur w8, [x29, #-204] ; 4-byte Folded Reload
subs w8, w8, w0
cset w8, hs
tbnz w8, #0, LBB0_29
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_12 Depth=1
ldur w1, [x29, #-100]
ldur w2, [x29, #-20]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAYUPDATE
ldur x8, [x29, #-48]
mov x9, #4
udiv x0, x8, x9
mov w1, #256
bl _MAX
mov w8, w0
; kill: def $x8 killed $w8
stur x8, [x29, #-144]
ldur x8, [x29, #-48]
ldur x9, [x29, #-144]
subs x8, x8, x9
stur x8, [x29, #-152]
ldur x8, [x29, #-80]
ldur x9, [x29, #-144]
add x8, x8, x9, lsl #2
stur x8, [x29, #-160]
ldur x1, [x29, #-152]
ldur x2, [x29, #-160]
ldur w3, [x29, #-84]
mov w0, #1
bl _initDictInfo
stur w0, [x29, #-164]
ldur x8, [x29, #-56]
adrp x9, _gt_frame@GOTPAGE
ldr x9, [x9, _gt_frame@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_12 Depth=1
ldur w0, [x29, #-16]
ldur w2, [x29, #-164]
sub x1, x29, #136
bl _generateFrame
stur w0, [x29, #-16]
b LBB0_16
LBB0_15: ; in Loop: Header=BB0_12 Depth=1
ldur w0, [x29, #-16]
ldur w2, [x29, #-164]
sub x1, x29, #136
bl _generateCompressedBlock
stur w0, [x29, #-16]
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_24
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_12 Depth=1
ldur x9, [x29, #-176] ; 8-byte Folded Reload
ldur x0, [x29, #-184] ; 8-byte Folded Reload
ldur x8, [x29, #-192] ; 8-byte Folded Reload
ldr w1, [x9]
ldr x3, [x8]
ldur w9, [x29, #-100]
; implicit-def: $x8
mov x8, x9
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x2, l_.str.6@PAGE
add x2, x2, l_.str.6@PAGEOFF
bl _snprintf
ldur x9, [x29, #-176] ; 8-byte Folded Reload
add sp, sp, #16
add w8, w0, #1
ldr w9, [x9]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-88]
b LBB0_30
LBB0_19: ; in Loop: Header=BB0_12 Depth=1
ldur x2, [x29, #-184] ; 8-byte Folded Reload
ldur x0, [x29, #-120]
ldur x8, [x29, #-112]
ldur x9, [x29, #-120]
subs x8, x8, x9
mov x9, #4
sdiv x1, x8, x9
bl _outputBuffer
ldur x8, [x29, #-40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_23
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_12 Depth=1
ldur x8, [x29, #-176] ; 8-byte Folded Reload
ldur x0, [x29, #-184] ; 8-byte Folded Reload
ldr w1, [x8]
ldur x3, [x29, #-40]
ldur w9, [x29, #-100]
; implicit-def: $x8
mov x8, x9
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x2, l_.str.7@PAGE
add x2, x2, l_.str.7@PAGEOFF
bl _snprintf
ldur x9, [x29, #-176] ; 8-byte Folded Reload
add sp, sp, #16
add w8, w0, #1
ldr w9, [x9]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-88]
b LBB0_30
LBB0_22: ; in Loop: Header=BB0_12 Depth=1
ldur x2, [x29, #-184] ; 8-byte Folded Reload
ldur x0, [x29, #-136]
ldur x8, [x29, #-128]
ldur x9, [x29, #-136]
subs x8, x8, x9
mov x9, #4
sdiv x1, x8, x9
bl _outputBuffer
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_12 Depth=1
b LBB0_27
LBB0_24: ; in Loop: Header=BB0_12 Depth=1
ldur x8, [x29, #-192] ; 8-byte Folded Reload
ldur x0, [x29, #-120]
ldur x9, [x29, #-112]
ldur x10, [x29, #-120]
subs x9, x9, x10
mov x10, #4
sdiv x1, x9, x10
ldr x2, [x8]
bl _outputBuffer
ldur x8, [x29, #-40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_26
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_12 Depth=1
ldur x0, [x29, #-136]
ldur x8, [x29, #-128]
ldur x9, [x29, #-136]
subs x8, x8, x9
mov x9, #4
sdiv x1, x8, x9
ldur x2, [x29, #-40]
bl _outputBuffer
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_12 Depth=1
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_12 Depth=1
b LBB0_28
LBB0_28: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-100]
add w8, w8, #1
stur w8, [x29, #-100]
b LBB0_12
LBB0_29:
b LBB0_30
LBB0_30:
ldur x0, [x29, #-80]
bl _free
ldur w8, [x29, #-88]
stur w8, [x29, #-12]
mov w8, #1
stur w8, [x29, #-92]
b LBB0_31
LBB0_31:
ldur x8, [x29, #-64]
mov sp, x8
ldur w8, [x29, #-12]
stur w8, [x29, #-208] ; 4-byte Folded Spill
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_33
b LBB0_32
LBB0_32:
bl ___stack_chk_fail
LBB0_33:
ldur w0, [x29, #-208] ; 4-byte Folded Reload
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.comm _MAX_PATH,4,2 ; @MAX_PATH
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s/dictionary"
l_.str.1: ; @.str.1
.asciz "Error: path too long\n"
l_.str.2: ; @.str.2
.asciz "Error: could not allocate space for full dictionary.\n"
l_.str.3: ; @.str.3
.asciz "Error: dictionary path too long\n"
l_.str.4: ; @.str.4
.asciz "dictionary"
l_.str.5: ; @.str.5
.asciz "\r%u/%u "
.comm _gt_frame,8,3 ; @gt_frame
l_.str.6: ; @.str.6
.asciz "%s/z%06u.zst"
l_.str.7: ; @.str.7
.asciz "%s/z%06u"
.no_dead_strip _generateCorpusWithDict
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function generateCorpusWithDict
_generateCorpusWithDict: ## @generateCorpusWithDict
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $192, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl %edi, -16(%rbp)
movl %esi, -20(%rbp)
movq %rdx, -32(%rbp)
movq %rcx, -40(%rbp)
movq %r8, -48(%rbp)
movq %r9, -56(%rbp)
movq _MAX_PATH@GOTPCREL(%rip), %rax
movl (%rax), %eax
## kill: def $rax killed $eax
movq %rax, -184(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -64(%rbp)
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -184(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -176(%rbp) ## 8-byte Spill
movq %rax, -72(%rbp)
leaq -16(%rbp), %rdi
callq _RAND
movq -176(%rbp), %rdi ## 8-byte Reload
movl %eax, -84(%rbp)
movl $0, -88(%rbp)
movq _MAX_PATH@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -32(%rbp), %rcx
leaq L_.str(%rip), %rdx
movb $0, %al
callq _snprintf
addl $1, %eax
movq _MAX_PATH@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jle LBB0_2
## %bb.1:
leaq L_.str.1(%rip), %rdi
callq _DISPLAY
movl $1, -12(%rbp)
movl $1, -92(%rbp)
jmp LBB0_31
LBB0_2:
movq -48(%rbp), %rdi
callq _malloc
movq %rax, -80(%rbp)
cmpq $0, -80(%rbp)
jne LBB0_4
## %bb.3:
leaq L_.str.2(%rip), %rdi
callq _DISPLAY
movl $1, -12(%rbp)
movl $1, -92(%rbp)
jmp LBB0_31
LBB0_4:
movl -84(%rbp), %edi
movl -16(%rbp), %esi
movq -48(%rbp), %rdx
movq -80(%rbp), %rcx
callq _genRandomDict
movl %eax, -96(%rbp)
cmpl $0, -96(%rbp)
je LBB0_6
## %bb.5:
movl -96(%rbp), %eax
movl %eax, -88(%rbp)
jmp LBB0_30
LBB0_6:
cmpl $0, -20(%rbp)
je LBB0_10
## %bb.7:
movq -176(%rbp), %rdi ## 8-byte Reload
movq _MAX_PATH@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -32(%rbp), %rcx
leaq L_.str(%rip), %rdx
movb $0, %al
callq _snprintf
addl $1, %eax
movq _MAX_PATH@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jle LBB0_9
## %bb.8:
leaq L_.str.3(%rip), %rdi
callq _DISPLAY
movl $1, -88(%rbp)
jmp LBB0_30
LBB0_9:
movq -176(%rbp), %rdx ## 8-byte Reload
movq -80(%rbp), %rdi
movq -48(%rbp), %rsi
callq _outputBuffer
jmp LBB0_11
LBB0_10:
movq -80(%rbp), %rdi
movq -48(%rbp), %rsi
leaq L_.str.4(%rip), %rdx
callq _outputBuffer
LBB0_11:
movl $0, -100(%rbp)
LBB0_12: ## =>This Inner Loop Header: Depth=1
movl -100(%rbp), %eax
movl %eax, -188(%rbp) ## 4-byte Spill
movl -20(%rbp), %eax
movl %eax, %edi
movl $1, %esi
callq _MAX
movl %eax, %ecx
movl -188(%rbp), %eax ## 4-byte Reload
cmpl %ecx, %eax
jae LBB0_29
## %bb.13: ## in Loop: Header=BB0_12 Depth=1
movl -100(%rbp), %esi
movl -20(%rbp), %edx
leaq L_.str.5(%rip), %rdi
callq _DISPLAYUPDATE
movq -48(%rbp), %rdi
shrq $2, %rdi
movl $256, %esi ## imm = 0x100
callq _MAX
movl %eax, %eax
## kill: def $rax killed $eax
movq %rax, -144(%rbp)
movq -48(%rbp), %rax
subq -144(%rbp), %rax
movq %rax, -152(%rbp)
movq -80(%rbp), %rax
movq -144(%rbp), %rcx
shlq $2, %rcx
addq %rcx, %rax
movq %rax, -160(%rbp)
movq -152(%rbp), %rsi
movq -160(%rbp), %rdx
movl -84(%rbp), %ecx
movl $1, %edi
callq _initDictInfo
movl %eax, -164(%rbp)
movq -56(%rbp), %rax
movq _gt_frame@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_15
## %bb.14: ## in Loop: Header=BB0_12 Depth=1
movl -16(%rbp), %edi
movl -164(%rbp), %edx
leaq -136(%rbp), %rsi
callq _generateFrame
movl %eax, -16(%rbp)
jmp LBB0_16
LBB0_15: ## in Loop: Header=BB0_12 Depth=1
movl -16(%rbp), %edi
movl -164(%rbp), %edx
leaq -136(%rbp), %rsi
callq _generateCompressedBlock
movl %eax, -16(%rbp)
LBB0_16: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -20(%rbp)
je LBB0_24
## %bb.17: ## in Loop: Header=BB0_12 Depth=1
movq -176(%rbp), %rdi ## 8-byte Reload
movq _MAX_PATH@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -32(%rbp), %rcx
movl -100(%rbp), %r8d
leaq L_.str.6(%rip), %rdx
movb $0, %al
callq _snprintf
addl $1, %eax
movq _MAX_PATH@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jle LBB0_19
## %bb.18:
leaq L_.str.1(%rip), %rdi
callq _DISPLAY
movl $1, -88(%rbp)
jmp LBB0_30
LBB0_19: ## in Loop: Header=BB0_12 Depth=1
movq -176(%rbp), %rdx ## 8-byte Reload
movq -120(%rbp), %rdi
movq -112(%rbp), %rsi
movq -120(%rbp), %rax
subq %rax, %rsi
sarq $2, %rsi
callq _outputBuffer
cmpq $0, -40(%rbp)
je LBB0_23
## %bb.20: ## in Loop: Header=BB0_12 Depth=1
movq -176(%rbp), %rdi ## 8-byte Reload
movq _MAX_PATH@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -40(%rbp), %rcx
movl -100(%rbp), %r8d
leaq L_.str.7(%rip), %rdx
movb $0, %al
callq _snprintf
addl $1, %eax
movq _MAX_PATH@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jle LBB0_22
## %bb.21:
leaq L_.str.1(%rip), %rdi
callq _DISPLAY
movl $1, -88(%rbp)
jmp LBB0_30
LBB0_22: ## in Loop: Header=BB0_12 Depth=1
movq -176(%rbp), %rdx ## 8-byte Reload
movq -136(%rbp), %rdi
movq -128(%rbp), %rsi
movq -136(%rbp), %rax
subq %rax, %rsi
sarq $2, %rsi
callq _outputBuffer
LBB0_23: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_27
LBB0_24: ## in Loop: Header=BB0_12 Depth=1
movq -120(%rbp), %rdi
movq -112(%rbp), %rsi
movq -120(%rbp), %rax
subq %rax, %rsi
sarq $2, %rsi
movq -32(%rbp), %rdx
callq _outputBuffer
cmpq $0, -40(%rbp)
je LBB0_26
## %bb.25: ## in Loop: Header=BB0_12 Depth=1
movq -136(%rbp), %rdi
movq -128(%rbp), %rsi
movq -136(%rbp), %rax
subq %rax, %rsi
sarq $2, %rsi
movq -40(%rbp), %rdx
callq _outputBuffer
LBB0_26: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_27
LBB0_27: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_28
LBB0_28: ## in Loop: Header=BB0_12 Depth=1
movl -100(%rbp), %eax
addl $1, %eax
movl %eax, -100(%rbp)
jmp LBB0_12
LBB0_29:
jmp LBB0_30
LBB0_30:
movq -80(%rbp), %rdi
callq _free
movl -88(%rbp), %eax
movl %eax, -12(%rbp)
movl $1, -92(%rbp)
LBB0_31:
movq -64(%rbp), %rax
movq %rax, %rsp
movl -12(%rbp), %eax
movl %eax, -192(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_33
## %bb.32:
movl -192(%rbp), %eax ## 4-byte Reload
movq %rbp, %rsp
popq %rbp
retq
LBB0_33:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.comm _MAX_PATH,4,2 ## @MAX_PATH
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s/dictionary"
L_.str.1: ## @.str.1
.asciz "Error: path too long\n"
L_.str.2: ## @.str.2
.asciz "Error: could not allocate space for full dictionary.\n"
L_.str.3: ## @.str.3
.asciz "Error: dictionary path too long\n"
L_.str.4: ## @.str.4
.asciz "dictionary"
L_.str.5: ## @.str.5
.asciz "\r%u/%u "
.comm _gt_frame,8,3 ## @gt_frame
L_.str.6: ## @.str.6
.asciz "%s/z%06u.zst"
L_.str.7: ## @.str.7
.asciz "%s/z%06u"
.no_dead_strip _generateCorpusWithDict
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_generateCorpusWithDict.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function initDictInfo
_initDictInfo: ; @initDictInfo
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x8, [sp, #8] ; 8-byte Folded Spill
mov x8, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
stur w8, [x29, #-4]
stur x1, [x29, #-16]
str x2, [sp, #24]
str w3, [sp, #20]
mov w1, #0
mov w2, #32
bl _memset
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldur w8, [x29, #-4]
str w8, [x9]
ldur x8, [x29, #-16]
str x8, [x9, #8]
ldr x8, [sp, #24]
str x8, [x9, #24]
ldr w8, [sp, #20]
str w8, [x9, #16]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.no_dead_strip _initDictInfo
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function initDictInfo
_initDictInfo: ## @initDictInfo
.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, -48(%rbp) ## 8-byte Spill
movq %rdi, %rax
movq %rax, -40(%rbp) ## 8-byte Spill
movl %esi, -4(%rbp)
movq %rdx, -16(%rbp)
movq %rcx, -24(%rbp)
movl %r8d, -28(%rbp)
xorl %esi, %esi
movl $32, %edx
callq _memset
movq -48(%rbp), %rdi ## 8-byte Reload
## kill: def $ecx killed $eax
movq -40(%rbp), %rax ## 8-byte Reload
movl -4(%rbp), %ecx
movl %ecx, (%rdi)
movq -16(%rbp), %rcx
movq %rcx, 8(%rdi)
movq -24(%rbp), %rcx
movq %rcx, 24(%rdi)
movl -28(%rbp), %ecx
movl %ecx, 16(%rdi)
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _initDictInfo
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_initDictInfo.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function generateFrame
_generateFrame: ; @generateFrame
.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
sub x8, x29, #8
str x8, [sp] ; 8-byte Folded Spill
stur x0, [x29, #-8]
str x1, [sp, #16]
str w2, [sp, #12]
ldur x8, [x29, #-8]
mov x2, x8
mov w0, #3
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _DISPLAYLEVEL
ldr x0, [sp, #16]
bl _initFrame
ldr x0, [sp] ; 8-byte Folded Reload
ldr x1, [sp, #16]
ldr w2, [sp, #12]
bl _writeFrameHeader
ldr x0, [sp] ; 8-byte Folded Reload
ldr x1, [sp, #16]
ldr w2, [sp, #12]
bl _writeBlocks
ldr x0, [sp, #16]
bl _writeChecksum
ldur x0, [x29, #-8]
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 "frame seed: %u\n"
.no_dead_strip _generateFrame
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function generateFrame
_generateFrame: ## @generateFrame
.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)
movq -8(%rbp), %rax
movl %eax, %edx
movl $3, %edi
leaq L_.str(%rip), %rsi
callq _DISPLAYLEVEL
movq -16(%rbp), %rdi
callq _initFrame
movq -16(%rbp), %rsi
movl -20(%rbp), %edx
leaq -8(%rbp), %rdi
callq _writeFrameHeader
movq -16(%rbp), %rsi
movl -20(%rbp), %edx
leaq -8(%rbp), %rdi
callq _writeBlocks
movq -16(%rbp), %rdi
callq _writeChecksum
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "frame seed: %u\n"
.no_dead_strip _generateFrame
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_generateFrame.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function initSeqStore
_initSeqStore: ; @initSeqStore
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
adrp x8, _MAX_NB_SEQ@GOTPAGE
ldr x8, [x8, _MAX_NB_SEQ@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp, #8]
str w8, [x9, #24]
adrp x8, _ZSTD_BLOCKSIZE_MAX@GOTPAGE
ldr x8, [x8, _ZSTD_BLOCKSIZE_MAX@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp, #8]
str w8, [x9, #20]
adrp x8, _SEQUENCE_BUFFER@GOTPAGE
ldr x8, [x8, _SEQUENCE_BUFFER@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp, #8]
str w8, [x9, #16]
adrp x8, _SEQUENCE_LITERAL_BUFFER@GOTPAGE
ldr x8, [x8, _SEQUENCE_LITERAL_BUFFER@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp, #8]
str w8, [x9, #12]
adrp x8, _SEQUENCE_LLCODE@GOTPAGE
ldr x8, [x8, _SEQUENCE_LLCODE@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp, #8]
str w8, [x9, #8]
adrp x8, _SEQUENCE_MLCODE@GOTPAGE
ldr x8, [x8, _SEQUENCE_MLCODE@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp, #8]
str w8, [x9, #4]
adrp x8, _SEQUENCE_OFCODE@GOTPAGE
ldr x8, [x8, _SEQUENCE_OFCODE@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp, #8]
str w8, [x9]
ldr x0, [sp, #8]
bl _ZSTD_resetSeqStore
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _MAX_NB_SEQ,4,2 ; @MAX_NB_SEQ
.comm _ZSTD_BLOCKSIZE_MAX,4,2 ; @ZSTD_BLOCKSIZE_MAX
.comm _SEQUENCE_BUFFER,4,2 ; @SEQUENCE_BUFFER
.comm _SEQUENCE_LITERAL_BUFFER,4,2 ; @SEQUENCE_LITERAL_BUFFER
.comm _SEQUENCE_LLCODE,4,2 ; @SEQUENCE_LLCODE
.comm _SEQUENCE_MLCODE,4,2 ; @SEQUENCE_MLCODE
.comm _SEQUENCE_OFCODE,4,2 ; @SEQUENCE_OFCODE
.no_dead_strip _initSeqStore
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function initSeqStore
_initSeqStore: ## @initSeqStore
.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 _MAX_NB_SEQ@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -8(%rbp), %rax
movl %ecx, 24(%rax)
movq _ZSTD_BLOCKSIZE_MAX@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -8(%rbp), %rax
movl %ecx, 20(%rax)
movq _SEQUENCE_BUFFER@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -8(%rbp), %rax
movl %ecx, 16(%rax)
movq _SEQUENCE_LITERAL_BUFFER@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -8(%rbp), %rax
movl %ecx, 12(%rax)
movq _SEQUENCE_LLCODE@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -8(%rbp), %rax
movl %ecx, 8(%rax)
movq _SEQUENCE_MLCODE@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -8(%rbp), %rax
movl %ecx, 4(%rax)
movq _SEQUENCE_OFCODE@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -8(%rbp), %rax
movl %ecx, (%rax)
movq -8(%rbp), %rdi
callq _ZSTD_resetSeqStore
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _MAX_NB_SEQ,4,2 ## @MAX_NB_SEQ
.comm _ZSTD_BLOCKSIZE_MAX,4,2 ## @ZSTD_BLOCKSIZE_MAX
.comm _SEQUENCE_BUFFER,4,2 ## @SEQUENCE_BUFFER
.comm _SEQUENCE_LITERAL_BUFFER,4,2 ## @SEQUENCE_LITERAL_BUFFER
.comm _SEQUENCE_LLCODE,4,2 ## @SEQUENCE_LLCODE
.comm _SEQUENCE_MLCODE,4,2 ## @SEQUENCE_MLCODE
.comm _SEQUENCE_OFCODE,4,2 ## @SEQUENCE_OFCODE
.no_dead_strip _initSeqStore
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_initSeqStore.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function initSymbolSet
_initSymbolSet: ; @initSymbolSet
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
str x3, [sp, #16]
ldr x0, [sp, #24]
ldr x8, [sp, #16]
add x2, x8, #1
mov w1, #0
bl _memset
str xzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldur x9, [x29, #-16]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #24]
ldur x8, [x29, #-8]
ldr x10, [sp, #8]
ldr x10, [x8, x10, lsl #3]
mov x8, #1
str x8, [x9, x10, lsl #3]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB0_1
LBB0_4:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.no_dead_strip _initSymbolSet
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function initSymbolSet
_initSymbolSet: ## @initSymbolSet
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq -24(%rbp), %rdi
movq -32(%rbp), %rdx
addq $1, %rdx
xorl %esi, %esi
callq _memset
movq $0, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -40(%rbp), %rax
cmpq -16(%rbp), %rax
jae LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movq -8(%rbp), %rcx
movq -40(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movq $1, (%rax,%rcx,8)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
jmp LBB0_1
LBB0_4:
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _initSymbolSet
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_initSymbolSet.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function isSymbolSubset
_isSymbolSubset: ; @isSymbolSubset
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #32]
str x1, [sp, #24]
str x2, [sp, #16]
str x3, [sp, #8]
str xzr, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_7
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #32]
ldr x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr x9, [sp, #8]
subs x8, x8, x9
cset w8, hi
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldr x9, [sp, #32]
ldr x10, [sp]
ldr x9, [x9, x10, lsl #3]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
str wzr, [sp, #44]
b LBB0_8
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB0_1
LBB0_7:
mov w8, #1
str w8, [sp, #44]
b LBB0_8
LBB0_8:
ldr w0, [sp, #44]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _isSymbolSubset
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function isSymbolSubset
_isSymbolSubset: ## @isSymbolSubset
.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 %rdx, -32(%rbp)
movq %rcx, -40(%rbp)
movq $0, -48(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -48(%rbp), %rax
cmpq -24(%rbp), %rax
jae LBB0_7
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
cmpq -40(%rbp), %rax
ja LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movq -16(%rbp), %rcx
movq -48(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
cmpq $0, (%rax,%rcx,8)
jne LBB0_5
LBB0_4:
movl $0, -4(%rbp)
jmp LBB0_8
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_6
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movq -48(%rbp), %rax
addq $1, %rax
movq %rax, -48(%rbp)
jmp LBB0_1
LBB0_7:
movl $1, -4(%rbp)
LBB0_8:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _isSymbolSubset
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_isSymbolSubset.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function longCommandWArg
_longCommandWArg: ; @longCommandWArg
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
ldr x0, [sp, #16]
bl _strlen
str x0, [sp, #8]
ldur x8, [x29, #-8]
ldr x0, [x8]
ldr x1, [sp, #16]
ldr x2, [sp, #8]
bl _strncmp
subs w8, w0, #0
cset w8, eq
and w8, w8, #0x1
str w8, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x10, [sp, #8]
ldur x9, [x29, #-8]
ldr x8, [x9]
add x8, x8, x10
str x8, [x9]
b LBB0_2
LBB0_2:
ldr w0, [sp, #4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _longCommandWArg
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function longCommandWArg
_longCommandWArg: ## @longCommandWArg
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rdi
callq _strlen
movq %rax, -24(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
callq _strncmp
cmpl $0, %eax
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
movl %eax, -28(%rbp)
cmpl $0, -28(%rbp)
je LBB0_2
## %bb.1:
movq -24(%rbp), %rcx
movq -8(%rbp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
LBB0_2:
movl -28(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _longCommandWArg
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_longCommandWArg.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, #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 wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
stur wzr, [x29, #-20]
stur wzr, [x29, #-24]
stur wzr, [x29, #-28]
stur wzr, [x29, #-32]
stur wzr, [x29, #-36]
; kill: def $x8 killed $xzr
str xzr, [sp, #48]
str xzr, [sp, #40]
str wzr, [sp, #36]
mov w8, #10240
str w8, [sp, #32]
adrp x8, _gt_frame@GOTPAGE
ldr x8, [x8, _gt_frame@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #28]
mov w8, #1
str w8, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_6 Depth 2
ldr w8, [sp, #24]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_46
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldrsw x9, [sp, #24]
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #16]
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
b LBB0_45
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB0_44
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_6
LBB0_6: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_43
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #45
; kill: def $x8 killed $w8
str x8, [sp] ; 8-byte Folded Spill
subs x8, x8, #73
cset w8, hi
tbnz w8, #0, LBB0_41
; %bb.8: ; in Loop: Header=BB0_6 Depth=2
ldr x11, [sp] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_9:
ldur x8, [x29, #-16]
ldr x0, [x8]
bl _usage
stur wzr, [x29, #-4]
b LBB0_61
LBB0_10:
ldur x8, [x29, #-16]
ldr x0, [x8]
bl _advancedUsage
stur wzr, [x29, #-4]
b LBB0_61
LBB0_11: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
adrp x9, _g_displayLevel@GOTPAGE
ldr x9, [x9, _g_displayLevel@GOTPAGEOFF]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB0_42
LBB0_12: ; in Loop: Header=BB0_6 Depth=2
add x0, sp, #16
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
mov w8, #1
stur w8, [x29, #-24]
bl _readInt
mov x8, x0
stur w8, [x29, #-20]
b LBB0_42
LBB0_13: ; in Loop: Header=BB0_6 Depth=2
add x0, sp, #16
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
bl _readInt
mov x8, x0
stur w8, [x29, #-28]
b LBB0_42
LBB0_14: ; in Loop: Header=BB0_6 Depth=2
add x0, sp, #16
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
bl _readInt
mov x8, x0
stur w8, [x29, #-32]
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #109
cset w8, ne
tbnz w8, #0, LBB0_18
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_6 Depth=2
ldur w8, [x29, #-32]
mov w9, #60
mul w8, w8, w9
stur w8, [x29, #-32]
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #110
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_6 Depth=2
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_6 Depth=2
b LBB0_42
LBB0_19: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
ldr x8, [sp, #16]
str x8, [sp, #40]
ldr x0, [sp, #16]
bl _strlen
ldr x8, [sp, #16]
add x8, x8, w0, sxtw
str x8, [sp, #16]
b LBB0_42
LBB0_20: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
ldr x8, [sp, #16]
str x8, [sp, #48]
ldr x0, [sp, #16]
bl _strlen
ldr x8, [sp, #16]
add x8, x8, w0, sxtw
str x8, [sp, #16]
b LBB0_42
LBB0_21: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
mov w8, #1
stur w8, [x29, #-36]
b LBB0_42
LBB0_22: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
ldr x0, [sp, #16]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_6 Depth=2
adrp x9, _opts@GOTPAGE
ldr x9, [x9, _opts@GOTPAGEOFF]
mov w8, #1
str w8, [x9]
b LBB0_40
LBB0_24: ; in Loop: Header=BB0_6 Depth=2
add x0, sp, #16
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _longCommandWArg
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_26
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_6 Depth=2
add x0, sp, #16
bl _readU32FromChar
mov x8, x0
str w8, [sp, #32]
mov w8, #1
str w8, [sp, #36]
b LBB0_39
LBB0_26: ; in Loop: Header=BB0_6 Depth=2
ldr x0, [sp, #16]
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_28
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_6 Depth=2
adrp x8, _gt_block@GOTPAGE
ldr x8, [x8, _gt_block@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #28]
b LBB0_38
LBB0_28: ; in Loop: Header=BB0_6 Depth=2
add x0, sp, #16
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _longCommandWArg
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_33
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_6 Depth=2
add x0, sp, #16
bl _readU32FromChar
mov x8, x0
str w8, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #2
cset w8, lt
tbnz w8, #0, LBB0_32
b LBB0_30
LBB0_30: ; in Loop: Header=BB0_6 Depth=2
ldr w8, [sp, #12]
adrp x9, _ZSTD_BLOCKSIZE_MAX@GOTPAGE
ldr x9, [x9, _ZSTD_BLOCKSIZE_MAX@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_32
b LBB0_31
LBB0_31: ; in Loop: Header=BB0_6 Depth=2
ldr w9, [sp, #12]
mov w8, #1
lsl w8, w8, w9
adrp x9, _g_maxBlockSize@GOTPAGE
ldr x9, [x9, _g_maxBlockSize@GOTPAGEOFF]
str w8, [x9]
b LBB0_32
LBB0_32: ; in Loop: Header=BB0_6 Depth=2
b LBB0_37
LBB0_33: ; in Loop: Header=BB0_6 Depth=2
add x0, sp, #16
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _longCommandWArg
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_35
b LBB0_34
LBB0_34: ; in Loop: Header=BB0_6 Depth=2
add x0, sp, #16
bl _readU32FromChar
mov x8, x0
str w8, [sp, #8]
adrp x8, _MAX_DECOMPRESSED_SIZE_LOG@GOTPAGE
ldr x8, [x8, _MAX_DECOMPRESSED_SIZE_LOG@GOTPAGEOFF]
ldr w0, [x8]
ldr w1, [sp, #8]
bl _MIN
adrp x8, _g_maxDecompressedSizeLog@GOTPAGE
ldr x8, [x8, _g_maxDecompressedSizeLog@GOTPAGEOFF]
str w0, [x8]
b LBB0_36
LBB0_35:
ldur x8, [x29, #-16]
ldr x0, [x8]
bl _advancedUsage
mov w8, #1
stur w8, [x29, #-4]
b LBB0_61
LBB0_36: ; in Loop: Header=BB0_6 Depth=2
b LBB0_37
LBB0_37: ; in Loop: Header=BB0_6 Depth=2
b LBB0_38
LBB0_38: ; in Loop: Header=BB0_6 Depth=2
b LBB0_39
LBB0_39: ; in Loop: Header=BB0_6 Depth=2
b LBB0_40
LBB0_40: ; in Loop: Header=BB0_6 Depth=2
ldr x0, [sp, #16]
bl _strlen
ldr x8, [sp, #16]
add x8, x8, w0, sxtw
str x8, [sp, #16]
b LBB0_42
LBB0_41:
ldur x8, [x29, #-16]
ldr x0, [x8]
bl _usage
mov w8, #1
stur w8, [x29, #-4]
b LBB0_61
LBB0_42: ; in Loop: Header=BB0_6 Depth=2
b LBB0_6
LBB0_43: ; in Loop: Header=BB0_1 Depth=1
b LBB0_44
LBB0_44: ; in Loop: Header=BB0_1 Depth=1
b LBB0_45
LBB0_45: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_1
LBB0_46:
ldur w8, [x29, #-24]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_48
b LBB0_47
LBB0_47:
bl _makeSeed
stur w0, [x29, #-20]
b LBB0_48
LBB0_48:
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_50
b LBB0_49
LBB0_49:
ldur w0, [x29, #-20]
ldur w1, [x29, #-28]
ldur w2, [x29, #-32]
ldr w3, [sp, #28]
bl _runTestMode
stur w0, [x29, #-4]
b LBB0_61
LBB0_50:
ldur w8, [x29, #-32]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_52
b LBB0_51
LBB0_51:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
ldur x8, [x29, #-16]
ldr x0, [x8]
bl _usage
mov w8, #1
stur w8, [x29, #-4]
b LBB0_61
LBB0_52:
b LBB0_53
LBB0_53:
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_55
b LBB0_54
LBB0_54:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _DISPLAY
ldur x8, [x29, #-16]
ldr x0, [x8]
bl _usage
mov w8, #1
stur w8, [x29, #-4]
b LBB0_61
LBB0_55:
ldur w8, [x29, #-28]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_58
b LBB0_56
LBB0_56:
ldr w8, [sp, #36]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_58
b LBB0_57
LBB0_57:
ldur w0, [x29, #-20]
ldr x1, [sp, #48]
ldr x2, [sp, #40]
ldr w3, [sp, #28]
bl _generateFile
stur w0, [x29, #-4]
b LBB0_61
LBB0_58:
ldr w8, [sp, #36]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_60
b LBB0_59
LBB0_59:
ldur w0, [x29, #-20]
ldur w1, [x29, #-28]
ldr x2, [sp, #48]
ldr x3, [sp, #40]
ldr w4, [sp, #28]
bl _generateCorpus
stur w0, [x29, #-4]
b LBB0_61
LBB0_60:
ldur w0, [x29, #-20]
ldur w1, [x29, #-28]
ldr x2, [sp, #48]
ldr x3, [sp, #40]
ldr w4, [sp, #32]
ldr w5, [sp, #28]
bl _generateCorpusWithDict
stur w0, [x29, #-4]
b LBB0_61
LBB0_61:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_22-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_10-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_14-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_13-Ltmp0
.long LBB0_19-Ltmp0
.long LBB0_20-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_12-Ltmp0
.long LBB0_21-Ltmp0
.long LBB0_41-Ltmp0
.long LBB0_11-Ltmp0
; -- End function
.comm _gt_frame,4,2 ; @gt_frame
.comm _g_displayLevel,4,2 ; @g_displayLevel
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "content-size"
.comm _opts,4,2 ; @opts
l_.str.1: ; @.str.1
.asciz "use-dict="
l_.str.2: ; @.str.2
.asciz "gen-blocks"
.comm _gt_block,4,2 ; @gt_block
l_.str.3: ; @.str.3
.asciz "max-block-size-log="
.comm _ZSTD_BLOCKSIZE_MAX,4,2 ; @ZSTD_BLOCKSIZE_MAX
.comm _g_maxBlockSize,4,2 ; @g_maxBlockSize
l_.str.4: ; @.str.4
.asciz "max-content-size-log="
.comm _MAX_DECOMPRESSED_SIZE_LOG,4,2 ; @MAX_DECOMPRESSED_SIZE_LOG
.comm _g_maxDecompressedSizeLog,4,2 ; @g_maxDecompressedSizeLog
l_.str.5: ; @.str.5
.asciz "Error: -T requires test mode (-t)\n\n"
l_.str.6: ; @.str.6
.asciz "Error: path is required in file generation mode\n"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $96, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $0, -20(%rbp)
movl $0, -24(%rbp)
movl $0, -28(%rbp)
movl $0, -32(%rbp)
movl $0, -36(%rbp)
movq $0, -48(%rbp)
movq $0, -56(%rbp)
movl $0, -60(%rbp)
movl $10240, -64(%rbp) ## imm = 0x2800
movq _gt_frame@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -68(%rbp)
movl $1, -72(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_6 Depth 2
movl -72(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_45
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movslq -72(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -80(%rbp)
cmpq $0, -80(%rbp)
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_44
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB0_43
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
LBB0_6: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB0_42
## %bb.7: ## in Loop: Header=BB0_6 Depth=2
movq -80(%rbp), %rax
movsbl (%rax), %eax
addl $-45, %eax
movl %eax, %ecx
movq %rcx, -96(%rbp) ## 8-byte Spill
subl $73, %eax
ja LBB0_40
## %bb.61: ## in Loop: Header=BB0_6 Depth=2
movq -96(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_8:
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _usage
movl $0, -4(%rbp)
jmp LBB0_60
LBB0_9:
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _advancedUsage
movl $0, -4(%rbp)
jmp LBB0_60
LBB0_10: ## in Loop: Header=BB0_6 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB0_41
LBB0_11: ## in Loop: Header=BB0_6 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movl $1, -24(%rbp)
leaq -80(%rbp), %rdi
callq _readInt
## kill: def $eax killed $eax killed $rax
movl %eax, -20(%rbp)
jmp LBB0_41
LBB0_12: ## in Loop: Header=BB0_6 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
leaq -80(%rbp), %rdi
callq _readInt
## kill: def $eax killed $eax killed $rax
movl %eax, -28(%rbp)
jmp LBB0_41
LBB0_13: ## in Loop: Header=BB0_6 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
leaq -80(%rbp), %rdi
callq _readInt
## kill: def $eax killed $eax killed $rax
movl %eax, -32(%rbp)
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $109, %eax
jne LBB0_17
## %bb.14: ## in Loop: Header=BB0_6 Depth=2
imull $60, -32(%rbp), %eax
movl %eax, -32(%rbp)
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $110, %eax
jne LBB0_16
## %bb.15: ## in Loop: Header=BB0_6 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
LBB0_16: ## in Loop: Header=BB0_6 Depth=2
jmp LBB0_17
LBB0_17: ## in Loop: Header=BB0_6 Depth=2
jmp LBB0_41
LBB0_18: ## in Loop: Header=BB0_6 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movq -80(%rbp), %rax
movq %rax, -56(%rbp)
movq -80(%rbp), %rdi
callq _strlen
movl %eax, %ecx
movq -80(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -80(%rbp)
jmp LBB0_41
LBB0_19: ## in Loop: Header=BB0_6 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movq -80(%rbp), %rax
movq %rax, -48(%rbp)
movq -80(%rbp), %rdi
callq _strlen
movl %eax, %ecx
movq -80(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -80(%rbp)
jmp LBB0_41
LBB0_20: ## in Loop: Header=BB0_6 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movl $1, -36(%rbp)
jmp LBB0_41
LBB0_21: ## in Loop: Header=BB0_6 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movq -80(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_23
## %bb.22: ## in Loop: Header=BB0_6 Depth=2
movq _opts@GOTPCREL(%rip), %rax
movl $1, (%rax)
jmp LBB0_39
LBB0_23: ## in Loop: Header=BB0_6 Depth=2
leaq -80(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _longCommandWArg
cmpl $0, %eax
je LBB0_25
## %bb.24: ## in Loop: Header=BB0_6 Depth=2
leaq -80(%rbp), %rdi
callq _readU32FromChar
## kill: def $eax killed $eax killed $rax
movl %eax, -64(%rbp)
movl $1, -60(%rbp)
jmp LBB0_38
LBB0_25: ## in Loop: Header=BB0_6 Depth=2
movq -80(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_27
## %bb.26: ## in Loop: Header=BB0_6 Depth=2
movq _gt_block@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -68(%rbp)
jmp LBB0_37
LBB0_27: ## in Loop: Header=BB0_6 Depth=2
leaq -80(%rbp), %rdi
leaq L_.str.3(%rip), %rsi
callq _longCommandWArg
cmpl $0, %eax
je LBB0_32
## %bb.28: ## in Loop: Header=BB0_6 Depth=2
leaq -80(%rbp), %rdi
callq _readU32FromChar
## kill: def $eax killed $eax killed $rax
movl %eax, -84(%rbp)
cmpl $2, -84(%rbp)
jl LBB0_31
## %bb.29: ## in Loop: Header=BB0_6 Depth=2
movl -84(%rbp), %eax
movq _ZSTD_BLOCKSIZE_MAX@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jg LBB0_31
## %bb.30: ## in Loop: Header=BB0_6 Depth=2
movl -84(%rbp), %ecx
movl $1, %eax
## kill: def $cl killed $ecx
shll %cl, %eax
movl %eax, %ecx
movq _g_maxBlockSize@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
LBB0_31: ## in Loop: Header=BB0_6 Depth=2
jmp LBB0_36
LBB0_32: ## in Loop: Header=BB0_6 Depth=2
leaq -80(%rbp), %rdi
leaq L_.str.4(%rip), %rsi
callq _longCommandWArg
cmpl $0, %eax
je LBB0_34
## %bb.33: ## in Loop: Header=BB0_6 Depth=2
leaq -80(%rbp), %rdi
callq _readU32FromChar
## kill: def $eax killed $eax killed $rax
movl %eax, -88(%rbp)
movq _MAX_DECOMPRESSED_SIZE_LOG@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl -88(%rbp), %esi
callq _MIN
movl %eax, %ecx
movq _g_maxDecompressedSizeLog@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB0_35
LBB0_34:
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _advancedUsage
movl $1, -4(%rbp)
jmp LBB0_60
LBB0_35: ## in Loop: Header=BB0_6 Depth=2
jmp LBB0_36
LBB0_36: ## in Loop: Header=BB0_6 Depth=2
jmp LBB0_37
LBB0_37: ## in Loop: Header=BB0_6 Depth=2
jmp LBB0_38
LBB0_38: ## in Loop: Header=BB0_6 Depth=2
jmp LBB0_39
LBB0_39: ## in Loop: Header=BB0_6 Depth=2
movq -80(%rbp), %rdi
callq _strlen
movl %eax, %ecx
movq -80(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -80(%rbp)
jmp LBB0_41
LBB0_40:
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _usage
movl $1, -4(%rbp)
jmp LBB0_60
LBB0_41: ## in Loop: Header=BB0_6 Depth=2
jmp LBB0_6
LBB0_42: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_43
LBB0_43: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_44
LBB0_44: ## in Loop: Header=BB0_1 Depth=1
movl -72(%rbp), %eax
addl $1, %eax
movl %eax, -72(%rbp)
jmp LBB0_1
LBB0_45:
cmpl $0, -24(%rbp)
jne LBB0_47
## %bb.46:
movb $0, %al
callq _makeSeed
movl %eax, -20(%rbp)
LBB0_47:
cmpl $0, -36(%rbp)
je LBB0_49
## %bb.48:
movl -20(%rbp), %edi
movl -28(%rbp), %esi
movl -32(%rbp), %edx
movl -68(%rbp), %ecx
callq _runTestMode
movl %eax, -4(%rbp)
jmp LBB0_60
LBB0_49:
cmpl $0, -32(%rbp)
je LBB0_51
## %bb.50:
leaq L_.str.5(%rip), %rdi
callq _DISPLAY
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _usage
movl $1, -4(%rbp)
jmp LBB0_60
LBB0_51:
jmp LBB0_52
LBB0_52:
cmpq $0, -48(%rbp)
jne LBB0_54
## %bb.53:
leaq L_.str.6(%rip), %rdi
callq _DISPLAY
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _usage
movl $1, -4(%rbp)
jmp LBB0_60
LBB0_54:
cmpl $0, -28(%rbp)
jne LBB0_57
## %bb.55:
cmpl $0, -60(%rbp)
jne LBB0_57
## %bb.56:
movl -20(%rbp), %edi
movq -48(%rbp), %rsi
movq -56(%rbp), %rdx
movl -68(%rbp), %ecx
callq _generateFile
movl %eax, -4(%rbp)
jmp LBB0_60
LBB0_57:
cmpl $0, -60(%rbp)
jne LBB0_59
## %bb.58:
movl -20(%rbp), %edi
movl -28(%rbp), %esi
movq -48(%rbp), %rdx
movq -56(%rbp), %rcx
movl -68(%rbp), %r8d
callq _generateCorpus
movl %eax, -4(%rbp)
jmp LBB0_60
LBB0_59:
movl -20(%rbp), %edi
movl -28(%rbp), %esi
movq -48(%rbp), %rdx
movq -56(%rbp), %rcx
movl -64(%rbp), %r8d
movl -68(%rbp), %r9d
callq _generateCorpusWithDict
movl %eax, -4(%rbp)
LBB0_60:
movl -4(%rbp), %eax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
.long L0_0_set_21
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_9
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_13
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_8
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_12
.long L0_0_set_18
.long L0_0_set_19
.long L0_0_set_40
.long L0_0_set_40
.long L0_0_set_11
.long L0_0_set_20
.long L0_0_set_40
.long L0_0_set_10
.end_data_region
## -- End function
.comm _gt_frame,4,2 ## @gt_frame
.comm _g_displayLevel,4,2 ## @g_displayLevel
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "content-size"
.comm _opts,4,2 ## @opts
L_.str.1: ## @.str.1
.asciz "use-dict="
L_.str.2: ## @.str.2
.asciz "gen-blocks"
.comm _gt_block,4,2 ## @gt_block
L_.str.3: ## @.str.3
.asciz "max-block-size-log="
.comm _ZSTD_BLOCKSIZE_MAX,4,2 ## @ZSTD_BLOCKSIZE_MAX
.comm _g_maxBlockSize,4,2 ## @g_maxBlockSize
L_.str.4: ## @.str.4
.asciz "max-content-size-log="
.comm _MAX_DECOMPRESSED_SIZE_LOG,4,2 ## @MAX_DECOMPRESSED_SIZE_LOG
.comm _g_maxDecompressedSizeLog,4,2 ## @g_maxDecompressedSizeLog
L_.str.5: ## @.str.5
.asciz "Error: -T requires test mode (-t)\n\n"
L_.str.6: ## @.str.6
.asciz "Error: path is required in file generation mode\n"
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_main.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function makeSeed
_makeSeed: ; @makeSeed
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, #0
bl _time
mov x8, x0
sub x0, x29, #4
stur w8, [x29, #-4]
mov w1, #4
mov w2, #0
bl _XXH32
mov w9, #65536
sdiv w8, w0, w9
mul w8, w8, w9
subs w0, w0, w8
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _makeSeed
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function makeSeed
_makeSeed: ## @makeSeed
.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
xorl %eax, %eax
movl %eax, %edi
callq _time
movl %eax, -4(%rbp)
leaq -4(%rbp), %rdi
movl $4, %esi
xorl %edx, %edx
callq _XXH32
movl $65536, %ecx ## imm = 0x10000
cltd
idivl %ecx
movl %edx, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _makeSeed
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_makeSeed.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function outputBuffer
_outputBuffer: ; @outputBuffer
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
ldur x8, [x29, #-8]
str x8, [sp, #32]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x0, [x29, #-24]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fopen
str x0, [sp, #24]
b LBB0_3
LBB0_2:
adrp x8, _stdout@GOTPAGE
ldr x8, [x8, _stdout@GOTPAGEOFF]
ldr x8, [x8]
str x8, [sp, #24]
b LBB0_3
LBB0_3:
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
ldr w0, [x8]
ldur x2, [x29, #-24]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
mov x0, #0
bl _perror
mov w0, #1
bl _exit
LBB0_5:
ldur x8, [x29, #-16]
str x8, [sp, #16]
str xzr, [sp, #8]
b LBB0_6
LBB0_6: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_10
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_6 Depth=1
ldr x8, [sp, #32]
ldr x9, [sp, #8]
add x0, x8, x9, lsl #2
ldr x8, [sp, #16]
ldr x9, [sp, #8]
subs x2, x8, x9
ldr x3, [sp, #24]
mov w1, #1
bl _fwrite
ldr x8, [sp, #8]
add x8, x8, x0
str x8, [sp, #8]
ldr x0, [sp, #24]
bl _ferror
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
ldr w0, [x8]
ldur x2, [x29, #-24]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
mov x0, #0
bl _perror
mov w0, #1
bl _exit
LBB0_9: ; in Loop: Header=BB0_6 Depth=1
b LBB0_6
LBB0_10:
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
ldr x0, [sp, #24]
bl _fclose
b LBB0_12
LBB0_12:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "wb"
.comm _stdout,8,3 ; @stdout
.comm _stderr,4,2 ; @stderr
l_.str.1: ; @.str.1
.asciz "Failed to open file at %s: "
l_.str.2: ; @.str.2
.asciz "Failed to write to file at %s: "
.no_dead_strip _outputBuffer
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function outputBuffer
_outputBuffer: ## @outputBuffer
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -8(%rbp), %rax
movq %rax, -32(%rbp)
cmpq $0, -24(%rbp)
je LBB0_2
## %bb.1:
movq -24(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _fopen
movq %rax, -40(%rbp)
jmp LBB0_3
LBB0_2:
movq _stdout@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -40(%rbp)
LBB0_3:
cmpq $0, -40(%rbp)
jne LBB0_5
## %bb.4:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -24(%rbp), %rdx
leaq L_.str.1(%rip), %rsi
callq _fprintf
xorl %eax, %eax
movl %eax, %edi
callq _perror
movl $1, %edi
callq _exit
LBB0_5:
movq -16(%rbp), %rax
movq %rax, -48(%rbp)
movq $0, -56(%rbp)
LBB0_6: ## =>This Inner Loop Header: Depth=1
movq -56(%rbp), %rax
cmpq -48(%rbp), %rax
jae LBB0_10
## %bb.7: ## in Loop: Header=BB0_6 Depth=1
movq -32(%rbp), %rdi
movq -56(%rbp), %rax
shlq $2, %rax
addq %rax, %rdi
movq -48(%rbp), %rdx
subq -56(%rbp), %rdx
movq -40(%rbp), %rcx
movl $1, %esi
callq _fwrite
addq -56(%rbp), %rax
movq %rax, -56(%rbp)
movq -40(%rbp), %rdi
callq _ferror
cmpq $0, %rax
je LBB0_9
## %bb.8:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -24(%rbp), %rdx
leaq L_.str.2(%rip), %rsi
callq _fprintf
xorl %eax, %eax
movl %eax, %edi
callq _perror
movl $1, %edi
callq _exit
LBB0_9: ## in Loop: Header=BB0_6 Depth=1
jmp LBB0_6
LBB0_10:
cmpq $0, -24(%rbp)
je LBB0_12
## %bb.11:
movq -40(%rbp), %rdi
callq _fclose
LBB0_12:
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "wb"
.comm _stdout,8,3 ## @stdout
.comm _stderr,4,2 ## @stderr
L_.str.1: ## @.str.1
.asciz "Failed to open file at %s: "
L_.str.2: ## @.str.2
.asciz "Failed to write to file at %s: "
.no_dead_strip _outputBuffer
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_outputBuffer.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function readInt
_readInt: ; @readInt
.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 _readInt
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function readInt
_readInt: ## @readInt
.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 _readInt
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_readInt.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 x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #75
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #77
cset w8, ne
tbnz w8, #0, LBB0_14
b LBB0_7
LBB0_7:
ldr w8, [sp, #4]
lsl w8, w8, #10
str w8, [sp, #4]
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #77
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldr w8, [sp, #4]
lsl w8, w8, #10
str w8, [sp, #4]
b LBB0_9
LBB0_9:
ldr x9, [sp, #8]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #105
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldr x9, [sp, #8]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_11
LBB0_11:
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #66
cset w8, ne
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
ldr x9, [sp, #8]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_13
LBB0_13:
b LBB0_14
LBB0_14:
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:
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $75, %eax
je LBB0_7
## %bb.6:
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $77, %eax
jne LBB0_14
LBB0_7:
movl -12(%rbp), %eax
shll $10, %eax
movl %eax, -12(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $77, %eax
jne LBB0_9
## %bb.8:
movl -12(%rbp), %eax
shll $10, %eax
movl %eax, -12(%rbp)
LBB0_9:
movq -8(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $105, %eax
jne LBB0_11
## %bb.10:
movq -8(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
LBB0_11:
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $66, %eax
jne LBB0_13
## %bb.12:
movq -8(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
LBB0_13:
jmp LBB0_14
LBB0_14:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _readU32FromChar
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_readU32FromChar.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function runBlockTest
_runBlockTest: ; @runBlockTest
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
ldur x8, [x29, #-16]
ldr x8, [x8]
stur x8, [x29, #-32]
mov w3, #0
mov x0, x3
mov x1, x3
mov x2, #0
bl _initDictInfo
stur w0, [x29, #-36]
ldur x8, [x29, #-16]
ldr x0, [x8]
ldur w2, [x29, #-36]
sub x1, x29, #20
str x1, [sp, #16] ; 8-byte Folded Spill
bl _generateCompressedBlock
mov x8, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldur x9, [x29, #-16]
str x8, [x9]
bl _testDecodeRawBlock
str x0, [sp, #32]
ldr x0, [sp, #32]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-32]
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #12] ; 4-byte Folded Spill
ldr x0, [sp, #32]
bl _ZSTD_getErrorName
ldr w1, [sp, #12] ; 4-byte Folded Reload
mov x2, x0
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-4]
b LBB0_5
LBB0_2:
ldur x8, [x29, #-16]
ldr x0, [x8]
adrp x8, _gt_block@GOTPAGE
ldr x8, [x8, _gt_block@GOTPAGEOFF]
ldr w1, [x8]
bl _testDecodeWithDict
str x0, [sp, #24]
ldr x0, [sp, #24]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur x8, [x29, #-32]
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #8] ; 4-byte Folded Spill
ldr x0, [sp, #24]
bl _ZSTD_getErrorName
ldr w1, [sp, #8] ; 4-byte Folded Reload
mov x2, x0
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-4]
b LBB0_5
LBB0_4:
stur wzr, [x29, #-4]
b LBB0_5
LBB0_5:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Error in block mode on test seed %u: %s\n"
.comm _gt_block,4,2 ; @gt_block
l_.str.1: ; @.str.1
.asciz "Error in block mode with dictionary on test seed %u: %s\n"
.no_dead_strip _runBlockTest
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function runBlockTest
_runBlockTest: ## @runBlockTest
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
xorl %ecx, %ecx
xorl %eax, %eax
movl %eax, %edx
movl %ecx, %edi
movl %ecx, %esi
callq _initDictInfo
movl %eax, -36(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rdi
movl -36(%rbp), %edx
leaq -20(%rbp), %rsi
callq _generateCompressedBlock
movq %rax, %rcx
movq -16(%rbp), %rax
movq %rcx, (%rax)
leaq -20(%rbp), %rdi
callq _testDecodeRawBlock
movq %rax, -48(%rbp)
movq -48(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_2
## %bb.1:
movq -32(%rbp), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -60(%rbp) ## 4-byte Spill
movq -48(%rbp), %rdi
callq _ZSTD_getErrorName
movl -60(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq L_.str(%rip), %rdi
callq _DISPLAY
movl $1, -4(%rbp)
jmp LBB0_5
LBB0_2:
movq -16(%rbp), %rax
movq (%rax), %rdi
movq _gt_block@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _testDecodeWithDict
movq %rax, -56(%rbp)
movq -56(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_4
## %bb.3:
movq -32(%rbp), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -64(%rbp) ## 4-byte Spill
movq -56(%rbp), %rdi
callq _ZSTD_getErrorName
movl -64(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq L_.str.1(%rip), %rdi
callq _DISPLAY
movl $1, -4(%rbp)
jmp LBB0_5
LBB0_4:
movl $0, -4(%rbp)
LBB0_5:
movl -4(%rbp), %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Error in block mode on test seed %u: %s\n"
.comm _gt_block,4,2 ## @gt_block
L_.str.1: ## @.str.1
.asciz "Error in block mode with dictionary on test seed %u: %s\n"
.no_dead_strip _runBlockTest
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_runBlockTest.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function runFrameTest
_runFrameTest: ; @runFrameTest
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
ldur x8, [x29, #-16]
ldr x8, [x8]
stur x8, [x29, #-32]
mov w3, #0
mov x0, x3
mov x1, x3
mov x2, #0
bl _initDictInfo
stur w0, [x29, #-36]
ldur x8, [x29, #-16]
ldr x0, [x8]
ldur w2, [x29, #-36]
sub x1, x29, #20
str x1, [sp, #24] ; 8-byte Folded Spill
bl _generateFrame
mov x8, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldur x9, [x29, #-16]
str x8, [x9]
bl _testDecodeSimple
str x0, [sp, #48]
ldr x0, [sp, #48]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-32]
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #20] ; 4-byte Folded Spill
ldr x0, [sp, #48]
bl _ZSTD_getErrorName
ldr w1, [sp, #20] ; 4-byte Folded Reload
mov x2, x0
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-4]
b LBB0_7
LBB0_2:
sub x0, x29, #20
bl _testDecodeStreaming
str x0, [sp, #40]
ldr x0, [sp, #40]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur x8, [x29, #-32]
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #16] ; 4-byte Folded Spill
ldr x0, [sp, #40]
bl _ZSTD_getErrorName
ldr w1, [sp, #16] ; 4-byte Folded Reload
mov x2, x0
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-4]
b LBB0_7
LBB0_4:
ldur x8, [x29, #-16]
ldr x0, [x8]
adrp x8, _gt_frame@GOTPAGE
ldr x8, [x8, _gt_frame@GOTPAGEOFF]
ldr w1, [x8]
bl _testDecodeWithDict
str x0, [sp, #32]
ldr x0, [sp, #32]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldur x8, [x29, #-32]
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #12] ; 4-byte Folded Spill
ldr x0, [sp, #32]
bl _ZSTD_getErrorName
ldr w1, [sp, #12] ; 4-byte Folded Reload
mov x2, x0
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-4]
b LBB0_7
LBB0_6:
stur wzr, [x29, #-4]
b LBB0_7
LBB0_7:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Error in simple mode on test seed %u: %s\n"
l_.str.1: ; @.str.1
.asciz "Error in streaming mode on test seed %u: %s\n"
.comm _gt_frame,4,2 ; @gt_frame
l_.str.2: ; @.str.2
.asciz "Error in dictionary mode on test seed %u: %s\n"
.no_dead_strip _runFrameTest
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function runFrameTest
_runFrameTest: ## @runFrameTest
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
xorl %ecx, %ecx
xorl %eax, %eax
movl %eax, %edx
movl %ecx, %edi
movl %ecx, %esi
callq _initDictInfo
movl %eax, -36(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rdi
movl -36(%rbp), %edx
leaq -20(%rbp), %rsi
callq _generateFrame
movq %rax, %rcx
movq -16(%rbp), %rax
movq %rcx, (%rax)
leaq -20(%rbp), %rdi
callq _testDecodeSimple
movq %rax, -48(%rbp)
movq -48(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_2
## %bb.1:
movq -32(%rbp), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -68(%rbp) ## 4-byte Spill
movq -48(%rbp), %rdi
callq _ZSTD_getErrorName
movl -68(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq L_.str(%rip), %rdi
callq _DISPLAY
movl $1, -4(%rbp)
jmp LBB0_7
LBB0_2:
leaq -20(%rbp), %rdi
callq _testDecodeStreaming
movq %rax, -56(%rbp)
movq -56(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_4
## %bb.3:
movq -32(%rbp), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -72(%rbp) ## 4-byte Spill
movq -56(%rbp), %rdi
callq _ZSTD_getErrorName
movl -72(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq L_.str.1(%rip), %rdi
callq _DISPLAY
movl $1, -4(%rbp)
jmp LBB0_7
LBB0_4:
movq -16(%rbp), %rax
movq (%rax), %rdi
movq _gt_frame@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _testDecodeWithDict
movq %rax, -64(%rbp)
movq -64(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_6
## %bb.5:
movq -32(%rbp), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -76(%rbp) ## 4-byte Spill
movq -64(%rbp), %rdi
callq _ZSTD_getErrorName
movl -76(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq L_.str.2(%rip), %rdi
callq _DISPLAY
movl $1, -4(%rbp)
jmp LBB0_7
LBB0_6:
movl $0, -4(%rbp)
LBB0_7:
movl -4(%rbp), %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Error in simple mode on test seed %u: %s\n"
L_.str.1: ## @.str.1
.asciz "Error in streaming mode on test seed %u: %s\n"
.comm _gt_frame,4,2 ## @gt_frame
L_.str.2: ## @.str.2
.asciz "Error in dictionary mode on test seed %u: %s\n"
.no_dead_strip _runFrameTest
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_runFrameTest.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function runTestMode
_runTestMode: ; @runTestMode
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur w1, [x29, #-20]
stur w2, [x29, #-24]
stur x3, [x29, #-32]
bl _UTIL_getTime
str w0, [sp, #40]
ldur w8, [x29, #-24]
adrp x9, _SEC_TO_MICRO@GOTPAGE
ldr x9, [x9, _SEC_TO_MICRO@GOTPAGEOFF]
ldr w9, [x9]
mul w8, w8, w9
; kill: def $x8 killed $w8
str x8, [sp, #32]
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
ldur w8, [x29, #-24]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
mov w8, #1
stur w8, [x29, #-20]
b LBB0_3
LBB0_3:
ldur x8, [x29, #-16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
stur wzr, [x29, #-36]
b LBB0_4
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-36]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, lo
mov w9, #1
str w9, [sp, #24] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=1
ldr w0, [sp, #40]
bl _UTIL_clockSpanMicro
ldr x8, [sp, #32]
subs x8, x0, x8
cset w8, lt
str w8, [sp, #24] ; 4-byte Folded Spill
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #24] ; 4-byte Folded Reload
tbz w8, #0, LBB0_17
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_4 Depth=1
ldur w8, [x29, #-36]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, hs
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_4 Depth=1
ldur w1, [x29, #-36]
ldur w9, [x29, #-20]
; 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 _DISPLAYUPDATE
b LBB0_10
LBB0_9: ; in Loop: Header=BB0_4 Depth=1
ldur w1, [x29, #-36]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAYUPDATE
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_4 Depth=1
ldur x8, [x29, #-32]
adrp x9, _gt_frame@GOTPAGE
ldr x9, [x9, _gt_frame@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_4 Depth=1
sub x0, x29, #16
bl _runFrameTest
str w0, [sp, #20] ; 4-byte Folded Spill
b LBB0_13
LBB0_12: ; in Loop: Header=BB0_4 Depth=1
sub x0, x29, #16
bl _runBlockTest
str w0, [sp, #20] ; 4-byte Folded Spill
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #20] ; 4-byte Folded Reload
str w8, [sp, #28]
ldr w8, [sp, #28]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
ldr w8, [sp, #28]
stur w8, [x29, #-4]
b LBB0_18
LBB0_15: ; in Loop: Header=BB0_4 Depth=1
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_4 Depth=1
ldur w8, [x29, #-36]
add w8, w8, #1
stur w8, [x29, #-36]
b LBB0_4
LBB0_17:
ldur w9, [x29, #-36]
; 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
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _DISPLAY
stur wzr, [x29, #-4]
b LBB0_18
LBB0_18:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.comm _SEC_TO_MICRO,4,2 ; @SEC_TO_MICRO
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "seed: %u\n"
l_.str.1: ; @.str.1
.asciz "\r%u/%u "
l_.str.2: ; @.str.2
.asciz "\r%u "
.comm _gt_frame,8,3 ; @gt_frame
l_.str.3: ; @.str.3
.asciz "\r%u tests completed: "
l_.str.4: ; @.str.4
.asciz "OK\n"
.no_dead_strip _runTestMode
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function runTestMode
_runTestMode: ## @runTestMode
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movl %edx, -24(%rbp)
movq %rcx, -32(%rbp)
movb $0, %al
callq _UTIL_getTime
movl %eax, -40(%rbp)
movl -24(%rbp), %eax
movq _SEC_TO_MICRO@GOTPCREL(%rip), %rcx
imull (%rcx), %eax
movl %eax, %eax
## kill: def $rax killed $eax
movq %rax, -48(%rbp)
cmpl $0, -20(%rbp)
jne LBB0_3
## %bb.1:
cmpl $0, -24(%rbp)
jne LBB0_3
## %bb.2:
movl $1, -20(%rbp)
LBB0_3:
movq -16(%rbp), %rax
movl %eax, %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $0, -36(%rbp)
LBB0_4: ## =>This Inner Loop Header: Depth=1
movl -36(%rbp), %ecx
movb $1, %al
cmpl -20(%rbp), %ecx
movb %al, -53(%rbp) ## 1-byte Spill
jb LBB0_6
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movl -40(%rbp), %edi
callq _UTIL_clockSpanMicro
cmpq -48(%rbp), %rax
setl %al
movb %al, -53(%rbp) ## 1-byte Spill
LBB0_6: ## in Loop: Header=BB0_4 Depth=1
movb -53(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_7
jmp LBB0_17
LBB0_7: ## in Loop: Header=BB0_4 Depth=1
movl -36(%rbp), %eax
cmpl -20(%rbp), %eax
jae LBB0_9
## %bb.8: ## in Loop: Header=BB0_4 Depth=1
movl -36(%rbp), %esi
movl -20(%rbp), %edx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAYUPDATE
jmp LBB0_10
LBB0_9: ## in Loop: Header=BB0_4 Depth=1
movl -36(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAYUPDATE
LBB0_10: ## in Loop: Header=BB0_4 Depth=1
movq -32(%rbp), %rax
movq _gt_frame@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_12
## %bb.11: ## in Loop: Header=BB0_4 Depth=1
leaq -16(%rbp), %rdi
callq _runFrameTest
movl %eax, -60(%rbp) ## 4-byte Spill
jmp LBB0_13
LBB0_12: ## in Loop: Header=BB0_4 Depth=1
leaq -16(%rbp), %rdi
callq _runBlockTest
movl %eax, -60(%rbp) ## 4-byte Spill
LBB0_13: ## in Loop: Header=BB0_4 Depth=1
movl -60(%rbp), %eax ## 4-byte Reload
movl %eax, -52(%rbp)
cmpl $0, -52(%rbp)
je LBB0_15
## %bb.14:
movl -52(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_18
LBB0_15: ## in Loop: Header=BB0_4 Depth=1
jmp LBB0_16
LBB0_16: ## in Loop: Header=BB0_4 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB0_4
LBB0_17:
movl -36(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $0, -4(%rbp)
LBB0_18:
movl -4(%rbp), %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _SEC_TO_MICRO,4,2 ## @SEC_TO_MICRO
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "seed: %u\n"
L_.str.1: ## @.str.1
.asciz "\r%u/%u "
L_.str.2: ## @.str.2
.asciz "\r%u "
.comm _gt_frame,8,3 ## @gt_frame
L_.str.3: ## @.str.3
.asciz "\r%u tests completed: "
L_.str.4: ## @.str.4
.asciz "OK\n"
.no_dead_strip _runTestMode
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_runTestMode.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function testDecodeRawBlock
_testDecodeRawBlock: ; @testDecodeRawBlock
.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]
bl _ZSTD_createDCtx
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _ZSTD_decompressBegin
str x0, [sp]
ldr x0, [sp]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp]
stur x8, [x29, #-8]
b LBB0_7
LBB0_2:
ldr x0, [sp, #8]
adrp x8, _DECOMPRESSED_BUFFER@GOTPAGE
ldr x8, [x8, _DECOMPRESSED_BUFFER@GOTPAGEOFF]
ldr w1, [x8]
adrp x8, _MAX_DECOMPRESSED_SIZE@GOTPAGE
ldr x8, [x8, _MAX_DECOMPRESSED_SIZE@GOTPAGEOFF]
ldr w2, [x8]
ldr x8, [sp, #16]
ldr x3, [x8, #16]
ldr x8, [sp, #16]
ldr x8, [x8, #24]
ldr x9, [sp, #16]
ldr x9, [x9, #16]
subs x8, x8, x9
mov x9, #4
sdiv x8, x8, x9
mov x4, x8
bl _ZSTD_decompressBlock
str x0, [sp]
ldr x0, [sp, #8]
bl _ZSTD_freeDCtx
ldr x0, [sp]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp]
stur x8, [x29, #-8]
b LBB0_7
LBB0_4:
adrp x8, _DECOMPRESSED_BUFFER@GOTPAGE
ldr x8, [x8, _DECOMPRESSED_BUFFER@GOTPAGEOFF]
ldr w0, [x8]
ldr x8, [sp, #16]
ldr x1, [x8]
ldr x8, [sp, #16]
ldr x8, [x8, #8]
ldr x9, [sp, #16]
ldr x9, [x9]
subs x8, x8, x9
mov x9, #4
sdiv x8, x8, x9
mov x2, x8
bl _memcmp
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
adrp x8, _corruption_detected@GOTPAGE
ldr x8, [x8, _corruption_detected@GOTPAGEOFF]
ldr w0, [x8]
bl _ERROR
stur x0, [x29, #-8]
b LBB0_7
LBB0_6:
ldr x8, [sp]
stur x8, [x29, #-8]
b LBB0_7
LBB0_7:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _DECOMPRESSED_BUFFER,4,2 ; @DECOMPRESSED_BUFFER
.comm _MAX_DECOMPRESSED_SIZE,4,2 ; @MAX_DECOMPRESSED_SIZE
.comm _corruption_detected,4,2 ; @corruption_detected
.no_dead_strip _testDecodeRawBlock
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function testDecodeRawBlock
_testDecodeRawBlock: ## @testDecodeRawBlock
.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)
movb $0, %al
callq _ZSTD_createDCtx
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
callq _ZSTD_decompressBegin
movq %rax, -32(%rbp)
movq -32(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_2
## %bb.1:
movq -32(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_7
LBB0_2:
movq -24(%rbp), %rdi
movq _DECOMPRESSED_BUFFER@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _MAX_DECOMPRESSED_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq -16(%rbp), %rax
movq 16(%rax), %rcx
movq -16(%rbp), %rax
movq 24(%rax), %rax
movq -16(%rbp), %r8
movq 16(%r8), %r8
subq %r8, %rax
sarq $2, %rax
movl %eax, %r8d
callq _ZSTD_decompressBlock
movq %rax, -32(%rbp)
movq -24(%rbp), %rdi
callq _ZSTD_freeDCtx
movq -32(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_4
## %bb.3:
movq -32(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_7
LBB0_4:
movq _DECOMPRESSED_BUFFER@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -16(%rbp), %rax
movq (%rax), %rsi
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq -16(%rbp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
sarq $2, %rax
movl %eax, %edx
callq _memcmp
cmpq $0, %rax
je LBB0_6
## %bb.5:
movq _corruption_detected@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _ERROR
movq %rax, -8(%rbp)
jmp LBB0_7
LBB0_6:
movq -32(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_7:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _DECOMPRESSED_BUFFER,4,2 ## @DECOMPRESSED_BUFFER
.comm _MAX_DECOMPRESSED_SIZE,4,2 ## @MAX_DECOMPRESSED_SIZE
.comm _corruption_detected,4,2 ## @corruption_detected
.no_dead_strip _testDecodeRawBlock
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_testDecodeRawBlock.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function testDecodeSimple
_testDecodeSimple: ; @testDecodeSimple
.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 x8, _DECOMPRESSED_BUFFER@GOTPAGE
ldr x8, [x8, _DECOMPRESSED_BUFFER@GOTPAGEOFF]
ldr w0, [x8]
adrp x8, _MAX_DECOMPRESSED_SIZE@GOTPAGE
ldr x8, [x8, _MAX_DECOMPRESSED_SIZE@GOTPAGEOFF]
ldr w1, [x8]
ldr x8, [sp, #16]
ldr x2, [x8, #16]
ldr x8, [sp, #16]
ldr x8, [x8, #24]
ldr x9, [sp, #16]
ldr x9, [x9, #16]
subs x8, x8, x9
mov x9, #4
sdiv x8, x8, x9
mov x3, x8
bl _ZSTD_decompress
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB0_5
LBB0_2:
adrp x8, _DECOMPRESSED_BUFFER@GOTPAGE
ldr x8, [x8, _DECOMPRESSED_BUFFER@GOTPAGEOFF]
ldr w0, [x8]
ldr x8, [sp, #16]
ldr x1, [x8]
ldr x8, [sp, #16]
ldr x8, [x8, #8]
ldr x9, [sp, #16]
ldr x9, [x9]
subs x8, x8, x9
mov x9, #4
sdiv x8, x8, x9
mov x2, x8
bl _memcmp
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x8, _corruption_detected@GOTPAGE
ldr x8, [x8, _corruption_detected@GOTPAGEOFF]
ldr w0, [x8]
bl _ERROR
stur x0, [x29, #-8]
b LBB0_5
LBB0_4:
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB0_5
LBB0_5:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _DECOMPRESSED_BUFFER,4,2 ; @DECOMPRESSED_BUFFER
.comm _MAX_DECOMPRESSED_SIZE,4,2 ; @MAX_DECOMPRESSED_SIZE
.comm _corruption_detected,4,2 ; @corruption_detected
.no_dead_strip _testDecodeSimple
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function testDecodeSimple
_testDecodeSimple: ## @testDecodeSimple
.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 _DECOMPRESSED_BUFFER@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _MAX_DECOMPRESSED_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
movq -16(%rbp), %rax
movq 24(%rax), %rax
movq -16(%rbp), %rcx
movq 16(%rcx), %rcx
subq %rcx, %rax
sarq $2, %rax
movl %eax, %ecx
callq _ZSTD_decompress
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_2
## %bb.1:
movq -24(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_5
LBB0_2:
movq _DECOMPRESSED_BUFFER@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -16(%rbp), %rax
movq (%rax), %rsi
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq -16(%rbp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
sarq $2, %rax
movl %eax, %edx
callq _memcmp
cmpq $0, %rax
je LBB0_4
## %bb.3:
movq _corruption_detected@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _ERROR
movq %rax, -8(%rbp)
jmp LBB0_5
LBB0_4:
movq -24(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_5:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _DECOMPRESSED_BUFFER,4,2 ## @DECOMPRESSED_BUFFER
.comm _MAX_DECOMPRESSED_SIZE,4,2 ## @MAX_DECOMPRESSED_SIZE
.comm _corruption_detected,4,2 ## @corruption_detected
.no_dead_strip _testDecodeSimple
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_testDecodeSimple.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function testDecodeWithDict
_testDecodeWithDict: ; @testDecodeWithDict
.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
mov x8, x0
adrp x9, _DECOMPRESSED_BUFFER@GOTPAGE
ldr x9, [x9, _DECOMPRESSED_BUFFER@GOTPAGEOFF]
str x9, [sp, #8] ; 8-byte Folded Spill
sub x0, x29, #12
str x0, [sp, #16] ; 8-byte Folded Spill
stur w8, [x29, #-12]
stur x1, [x29, #-24]
bl _RAND
mov x8, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov w10, #10485760
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
adrp x9, _ZDICT_DICTSIZE_MIN@GOTPAGE
ldr x9, [x9, _ZDICT_DICTSIZE_MIN@GOTPAGEOFF]
ldr w9, [x9]
add w8, w8, w9
adrp x9, _ZDICT_CONTENTSIZE_MIN@GOTPAGE
ldr x9, [x9, _ZDICT_CONTENTSIZE_MIN@GOTPAGEOFF]
ldr w9, [x9]
add w9, w8, w9
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
stur x8, [x29, #-32]
bl _RAND
stur w0, [x29, #-36]
stur xzr, [x29, #-48]
ldur x0, [x29, #-32]
bl _malloc
stur x0, [x29, #-56]
ldur x8, [x29, #-56]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _GENERIC@GOTPAGE
ldr x8, [x8, _GENERIC@GOTPAGEOFF]
ldr w0, [x8]
bl _ERROR
stur x0, [x29, #-8]
b LBB0_15
LBB0_2:
ldur w0, [x29, #-36]
ldur w1, [x29, #-12]
ldur x2, [x29, #-32]
ldur x3, [x29, #-56]
bl _genRandomDict
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x8, _GENERIC@GOTPAGE
ldr x8, [x8, _GENERIC@GOTPAGEOFF]
ldr w0, [x8]
bl _ERROR
stur x0, [x29, #-48]
b LBB0_14
LBB0_4:
bl _ZSTD_createDCtx
str x0, [sp, #56]
ldur x8, [x29, #-32]
mov x9, #4
udiv x0, x8, x9
mov w1, #256
bl _MAX
str x0, [sp, #40]
ldur x8, [x29, #-32]
ldr x9, [sp, #40]
subs x8, x8, x9
str x8, [sp, #32]
ldur x8, [x29, #-56]
ldr x9, [sp, #40]
add x8, x8, x9, lsl #2
str x8, [sp, #24]
ldr x1, [sp, #32]
ldr x2, [sp, #24]
ldur w3, [x29, #-36]
mov w0, #1
bl _initDictInfo
str w0, [sp, #68]
ldur x8, [x29, #-24]
adrp x9, _gt_frame@GOTPAGE
ldr x9, [x9, _gt_frame@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldur w0, [x29, #-12]
ldr w2, [sp, #68]
add x1, sp, #72
bl _generateFrame
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #56]
ldr w1, [x8]
adrp x8, _MAX_DECOMPRESSED_SIZE@GOTPAGE
ldr x8, [x8, _MAX_DECOMPRESSED_SIZE@GOTPAGEOFF]
ldr w2, [x8]
ldr x3, [sp, #88]
ldr x8, [sp, #96]
ldr x9, [sp, #88]
subs x8, x8, x9
mov x9, #4
sdiv x8, x8, x9
mov x4, x8
ldur x5, [x29, #-56]
ldur x6, [x29, #-32]
bl _ZSTD_decompress_usingDict
str x0, [sp, #48]
b LBB0_9
LBB0_6:
ldur w0, [x29, #-12]
ldr w2, [sp, #68]
add x1, sp, #72
bl _generateCompressedBlock
ldr x0, [sp, #56]
ldur x1, [x29, #-56]
ldur x2, [x29, #-32]
bl _ZSTD_decompressBegin_usingDict
str x0, [sp, #48]
ldr x0, [sp, #48]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldr x8, [sp, #48]
stur x8, [x29, #-48]
ldr x0, [sp, #56]
bl _ZSTD_freeDCtx
b LBB0_14
LBB0_8:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #56]
ldr w1, [x8]
adrp x8, _MAX_DECOMPRESSED_SIZE@GOTPAGE
ldr x8, [x8, _MAX_DECOMPRESSED_SIZE@GOTPAGEOFF]
ldr w2, [x8]
ldr x3, [sp, #88]
ldr x8, [sp, #96]
ldr x9, [sp, #88]
subs x8, x8, x9
mov x9, #4
sdiv x8, x8, x9
mov x4, x8
bl _ZSTD_decompressBlock
str x0, [sp, #48]
b LBB0_9
LBB0_9:
ldr x0, [sp, #56]
bl _ZSTD_freeDCtx
ldr x0, [sp, #48]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldr x8, [sp, #48]
stur x8, [x29, #-48]
b LBB0_14
LBB0_11:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w0, [x8]
ldr x1, [sp, #72]
ldr x8, [sp, #80]
ldr x9, [sp, #72]
subs x8, x8, x9
mov x9, #4
sdiv x8, x8, x9
mov x2, x8
bl _memcmp
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
adrp x8, _corruption_detected@GOTPAGE
ldr x8, [x8, _corruption_detected@GOTPAGEOFF]
ldr w0, [x8]
bl _ERROR
stur x0, [x29, #-48]
b LBB0_14
LBB0_13:
b LBB0_14
LBB0_14:
ldur x0, [x29, #-56]
bl _free
ldur x8, [x29, #-48]
stur x8, [x29, #-8]
b LBB0_15
LBB0_15:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
; -- End function
.comm _ZDICT_DICTSIZE_MIN,4,2 ; @ZDICT_DICTSIZE_MIN
.comm _ZDICT_CONTENTSIZE_MIN,4,2 ; @ZDICT_CONTENTSIZE_MIN
.comm _GENERIC,4,2 ; @GENERIC
.comm _gt_frame,8,3 ; @gt_frame
.comm _DECOMPRESSED_BUFFER,4,2 ; @DECOMPRESSED_BUFFER
.comm _MAX_DECOMPRESSED_SIZE,4,2 ; @MAX_DECOMPRESSED_SIZE
.comm _corruption_detected,4,2 ; @corruption_detected
.no_dead_strip _testDecodeWithDict
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function testDecodeWithDict
_testDecodeWithDict: ## @testDecodeWithDict
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $144, %rsp
movl %edi, -12(%rbp)
movq %rsi, -24(%rbp)
leaq -12(%rbp), %rdi
callq _RAND
movl $10485760, %ecx ## imm = 0xA00000
cltd
idivl %ecx
movl %edx, %eax
movq _ZDICT_DICTSIZE_MIN@GOTPCREL(%rip), %rcx
addl (%rcx), %eax
movq _ZDICT_CONTENTSIZE_MIN@GOTPCREL(%rip), %rcx
addl (%rcx), %eax
cltq
movq %rax, -32(%rbp)
leaq -12(%rbp), %rdi
callq _RAND
movl %eax, -36(%rbp)
movq $0, -48(%rbp)
movq -32(%rbp), %rdi
callq _malloc
movq %rax, -56(%rbp)
cmpq $0, -56(%rbp)
jne LBB0_2
## %bb.1:
movq _GENERIC@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _ERROR
movq %rax, -8(%rbp)
jmp LBB0_15
LBB0_2:
movl -36(%rbp), %edi
movl -12(%rbp), %esi
movq -32(%rbp), %rdx
movq -56(%rbp), %rcx
callq _genRandomDict
cmpq $0, %rax
je LBB0_4
## %bb.3:
movq _GENERIC@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _ERROR
movq %rax, -48(%rbp)
jmp LBB0_14
LBB0_4:
movb $0, %al
callq _ZSTD_createDCtx
movq %rax, -104(%rbp)
movq -32(%rbp), %rdi
shrq $2, %rdi
movl $256, %esi ## imm = 0x100
callq _MAX
movq %rax, -120(%rbp)
movq -32(%rbp), %rax
subq -120(%rbp), %rax
movq %rax, -128(%rbp)
movq -56(%rbp), %rax
movq -120(%rbp), %rcx
shlq $2, %rcx
addq %rcx, %rax
movq %rax, -136(%rbp)
movq -128(%rbp), %rsi
movq -136(%rbp), %rdx
movl -36(%rbp), %ecx
movl $1, %edi
callq _initDictInfo
movl %eax, -92(%rbp)
movq -24(%rbp), %rax
movq _gt_frame@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_6
## %bb.5:
movl -12(%rbp), %edi
movl -92(%rbp), %edx
leaq -88(%rbp), %rsi
callq _generateFrame
movq -104(%rbp), %rdi
movq _DECOMPRESSED_BUFFER@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _MAX_DECOMPRESSED_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq -72(%rbp), %rcx
movq -64(%rbp), %rax
movq -72(%rbp), %r8
subq %r8, %rax
sarq $2, %rax
movl %eax, %r8d
movq -56(%rbp), %r9
movq -32(%rbp), %rax
movq %rax, (%rsp)
callq _ZSTD_decompress_usingDict
movq %rax, -112(%rbp)
jmp LBB0_9
LBB0_6:
movl -12(%rbp), %edi
movl -92(%rbp), %edx
leaq -88(%rbp), %rsi
callq _generateCompressedBlock
movq -104(%rbp), %rdi
movq -56(%rbp), %rsi
movq -32(%rbp), %rdx
callq _ZSTD_decompressBegin_usingDict
movq %rax, -112(%rbp)
movq -112(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_8
## %bb.7:
movq -112(%rbp), %rax
movq %rax, -48(%rbp)
movq -104(%rbp), %rdi
callq _ZSTD_freeDCtx
jmp LBB0_14
LBB0_8:
movq -104(%rbp), %rdi
movq _DECOMPRESSED_BUFFER@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _MAX_DECOMPRESSED_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq -72(%rbp), %rcx
movq -64(%rbp), %rax
movq -72(%rbp), %r8
subq %r8, %rax
sarq $2, %rax
movl %eax, %r8d
callq _ZSTD_decompressBlock
movq %rax, -112(%rbp)
LBB0_9:
movq -104(%rbp), %rdi
callq _ZSTD_freeDCtx
movq -112(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_11
## %bb.10:
movq -112(%rbp), %rax
movq %rax, -48(%rbp)
jmp LBB0_14
LBB0_11:
movq _DECOMPRESSED_BUFFER@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -88(%rbp), %rsi
movq -80(%rbp), %rax
movq -88(%rbp), %rcx
subq %rcx, %rax
sarq $2, %rax
movl %eax, %edx
callq _memcmp
cmpq $0, %rax
je LBB0_13
## %bb.12:
movq _corruption_detected@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _ERROR
movq %rax, -48(%rbp)
jmp LBB0_14
LBB0_13:
jmp LBB0_14
LBB0_14:
movq -56(%rbp), %rdi
callq _free
movq -48(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_15:
movq -8(%rbp), %rax
addq $144, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZDICT_DICTSIZE_MIN,4,2 ## @ZDICT_DICTSIZE_MIN
.comm _ZDICT_CONTENTSIZE_MIN,4,2 ## @ZDICT_CONTENTSIZE_MIN
.comm _GENERIC,4,2 ## @GENERIC
.comm _gt_frame,8,3 ## @gt_frame
.comm _DECOMPRESSED_BUFFER,4,2 ## @DECOMPRESSED_BUFFER
.comm _MAX_DECOMPRESSED_SIZE,4,2 ## @MAX_DECOMPRESSED_SIZE
.comm _corruption_detected,4,2 ## @corruption_detected
.no_dead_strip _testDecodeWithDict
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_testDecodeWithDict.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function testDecodeStreaming
_testDecodeStreaming: ; @testDecodeStreaming
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
bl _ZSTD_createDStream
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _memory_allocation@GOTPAGE
ldr x8, [x8, _memory_allocation@GOTPAGEOFF]
ldr w0, [x8]
bl _ERROR
stur x0, [x29, #-8]
b LBB0_12
LBB0_2:
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
str x8, [sp, #48]
str xzr, [sp, #40]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
ldur x9, [x29, #-16]
ldr x9, [x9, #8]
subs x8, x8, x9
mov x9, #4
sdiv x8, x8, x9
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #32]
adrp x8, _DECOMPRESSED_BUFFER@GOTPAGE
ldr x8, [x8, _DECOMPRESSED_BUFFER@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #16]
str xzr, [sp, #8]
bl _ZSTD_DStreamOutSize
str x0, [sp, #24]
ldur x0, [x29, #-24]
bl _ZSTD_initDStream
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldur x0, [x29, #-24]
add x1, sp, #8
add x2, sp, #32
bl _ZSTD_decompressStream
str x0, [sp]
ldr x0, [sp]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
b LBB0_11
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
b LBB0_8
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
bl _ZSTD_DStreamOutSize
adrp x8, _MAX_DECOMPRESSED_SIZE@GOTPAGE
ldr x8, [x8, _MAX_DECOMPRESSED_SIZE@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp, #24]
subs x1, x8, x9
bl _MIN
ldr x8, [sp, #24]
add x8, x8, x0
str x8, [sp, #24]
b LBB0_3
LBB0_8:
ldr x8, [sp, #8]
str x8, [sp]
ldr w0, [sp, #16]
ldur x8, [x29, #-16]
ldr w1, [x8]
ldr x2, [sp, #8]
bl _memcmp
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
adrp x8, _corruption_detected@GOTPAGE
ldr x8, [x8, _corruption_detected@GOTPAGEOFF]
ldr w0, [x8]
bl _ERROR
stur x0, [x29, #-8]
b LBB0_12
LBB0_10:
b LBB0_11
LBB0_11:
ldur x0, [x29, #-24]
bl _ZSTD_freeDStream
ldr x8, [sp]
stur x8, [x29, #-8]
b LBB0_12
LBB0_12:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.comm _memory_allocation,4,2 ; @memory_allocation
.comm _DECOMPRESSED_BUFFER,4,2 ; @DECOMPRESSED_BUFFER
.comm _MAX_DECOMPRESSED_SIZE,8,3 ; @MAX_DECOMPRESSED_SIZE
.comm _corruption_detected,4,2 ; @corruption_detected
.no_dead_strip _testDecodeStreaming
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function testDecodeStreaming
_testDecodeStreaming: ## @testDecodeStreaming
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -16(%rbp)
movb $0, %al
callq _ZSTD_createDStream
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_2
## %bb.1:
movq _memory_allocation@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _ERROR
movq %rax, -8(%rbp)
jmp LBB0_12
LBB0_2:
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
movq $0, -40(%rbp)
movq -16(%rbp), %rax
movq 16(%rax), %rax
movq -16(%rbp), %rcx
movq 8(%rcx), %rcx
subq %rcx, %rax
sarq $2, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -48(%rbp)
movq _DECOMPRESSED_BUFFER@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -64(%rbp)
movq $0, -72(%rbp)
movb $0, %al
callq _ZSTD_DStreamOutSize
movq %rax, -56(%rbp)
movq -24(%rbp), %rdi
callq _ZSTD_initDStream
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rdi
leaq -72(%rbp), %rsi
leaq -48(%rbp), %rdx
callq _ZSTD_decompressStream
movq %rax, -80(%rbp)
movq -80(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_5
## %bb.4:
jmp LBB0_11
LBB0_5: ## in Loop: Header=BB0_3 Depth=1
cmpq $0, -80(%rbp)
jne LBB0_7
## %bb.6:
jmp LBB0_8
LBB0_7: ## in Loop: Header=BB0_3 Depth=1
movb $0, %al
callq _ZSTD_DStreamOutSize
movq %rax, %rdi
movq _MAX_DECOMPRESSED_SIZE@GOTPCREL(%rip), %rax
movq (%rax), %rsi
subq -56(%rbp), %rsi
callq _MIN
addq -56(%rbp), %rax
movq %rax, -56(%rbp)
jmp LBB0_3
LBB0_8:
movq -72(%rbp), %rax
movq %rax, -80(%rbp)
movl -64(%rbp), %edi
movq -16(%rbp), %rax
movl (%rax), %esi
movq -72(%rbp), %rdx
callq _memcmp
cmpq $0, %rax
je LBB0_10
## %bb.9:
movq _corruption_detected@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _ERROR
movq %rax, -8(%rbp)
jmp LBB0_12
LBB0_10:
jmp LBB0_11
LBB0_11:
movq -24(%rbp), %rdi
callq _ZSTD_freeDStream
movq -80(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_12:
movq -8(%rbp), %rax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _memory_allocation,4,2 ## @memory_allocation
.comm _DECOMPRESSED_BUFFER,4,2 ## @DECOMPRESSED_BUFFER
.comm _MAX_DECOMPRESSED_SIZE,8,3 ## @MAX_DECOMPRESSED_SIZE
.comm _corruption_detected,4,2 ## @corruption_detected
.no_dead_strip _testDecodeStreaming
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_testDecodeStreaming.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 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
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
str x0, [sp, #16] ; 8-byte Folded Spill
bl _DISPLAY
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _DISPLAY
ldr x0, [sp, #16] ; 8-byte Folded Reload
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 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
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _DISPLAY
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 "Usage :\n"
l_.str.1: ; @.str.1
.asciz " %s [args]\n"
l_.str.2: ; @.str.2
.asciz "\n"
l_.str.3: ; @.str.3
.asciz "Arguments :\n"
l_.str.4: ; @.str.4
.asciz " -p<path> : select output path (default:stdout)\n"
l_.str.5: ; @.str.5
.asciz " in multiple files mode this should be a directory\n"
l_.str.6: ; @.str.6
.asciz " -o<path> : select path to output original file (default:no output)\n"
l_.str.7: ; @.str.7
.asciz " -s# : select seed (default:random based on time)\n"
l_.str.8: ; @.str.8
.asciz " -n# : number of files to generate (default:1)\n"
l_.str.9: ; @.str.9
.asciz " -t : activate test mode (test files against libzstd instead of outputting them)\n"
l_.str.10: ; @.str.10
.asciz " -T# : length of time to run tests for\n"
l_.str.11: ; @.str.11
.asciz " -v : increase verbosity level (default:0, max:7)\n"
l_.str.12: ; @.str.12
.asciz " -h/H : display help/long help and exit\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)
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.5(%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
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.11(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _DISPLAY
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage :\n"
L_.str.1: ## @.str.1
.asciz " %s [args]\n"
L_.str.2: ## @.str.2
.asciz "\n"
L_.str.3: ## @.str.3
.asciz "Arguments :\n"
L_.str.4: ## @.str.4
.asciz " -p<path> : select output path (default:stdout)\n"
L_.str.5: ## @.str.5
.asciz " in multiple files mode this should be a directory\n"
L_.str.6: ## @.str.6
.asciz " -o<path> : select path to output original file (default:no output)\n"
L_.str.7: ## @.str.7
.asciz " -s# : select seed (default:random based on time)\n"
L_.str.8: ## @.str.8
.asciz " -n# : number of files to generate (default:1)\n"
L_.str.9: ## @.str.9
.asciz " -t : activate test mode (test files against libzstd instead of outputting them)\n"
L_.str.10: ## @.str.10
.asciz " -T# : length of time to run tests for\n"
L_.str.11: ## @.str.11
.asciz " -v : increase verbosity level (default:0, max:7)\n"
L_.str.12: ## @.str.12
.asciz " -h/H : display help/long help and exit\n"
.no_dead_strip _usage
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_usage.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function writeBlock
_writeBlock: ; @writeBlock
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur w3, [x29, #-28]
stur w4, [x29, #-32]
ldur x0, [x29, #-8]
bl _RAND
mov w9, #8
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
stur w8, [x29, #-36]
ldur x8, [x29, #-16]
ldr x8, [x8]
str x8, [sp, #48]
ldr x8, [sp, #48]
add x8, x8, #12
str x8, [sp, #40]
mov w0, #4
str w0, [sp, #20] ; 4-byte Folded Spill
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _DISPLAYLEVEL
ldr w0, [sp, #20] ; 4-byte Folded Reload
ldur x8, [x29, #-24]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _DISPLAYLEVEL
ldr w0, [sp, #20] ; 4-byte Folded Reload
ldur w8, [x29, #-28]
subs w8, w8, #0
cset w8, ne
and w10, w8, #0x1
adrp x9, l_.str.4@PAGE
add x9, x9, l_.str.4@PAGEOFF
adrp x8, l_.str.3@PAGE
add x8, x8, l_.str.3@PAGEOFF
ands w10, w10, #0x1
csel x8, x8, x9, ne
mov x9, sp
str x8, [x9]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _DISPLAYLEVEL
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x1, [x8, #8]
ldur x2, [x29, #-24]
bl _RAND_buffer
ldr x0, [sp, #40]
ldur x8, [x29, #-16]
ldr x1, [x8, #8]
ldur x2, [x29, #-24]
bl _memcpy
ldur x9, [x29, #-24]
ldr x8, [sp, #40]
add x8, x8, x9, lsl #2
str x8, [sp, #40]
stur wzr, [x29, #-52]
ldur x8, [x29, #-24]
stur x8, [x29, #-48]
b LBB0_10
LBB0_2:
ldur w8, [x29, #-36]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3:
ldur x8, [x29, #-16]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, le
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldur x0, [x29, #-8]
bl _RAND
and w8, w0, #0xff
str w8, [sp, #36]
ldr w8, [sp, #36]
ldr x9, [sp, #40]
str w8, [x9]
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
ldr w1, [sp, #36]
ldur x2, [x29, #-24]
bl _memset
ldr x8, [sp, #40]
add x8, x8, #4
str x8, [sp, #40]
mov w8, #1
stur w8, [x29, #-52]
ldur x8, [x29, #-24]
stur x8, [x29, #-48]
b LBB0_9
LBB0_5:
mov w8, #2
stur w8, [x29, #-52]
ldur x8, [x29, #-16]
ldr w8, [x8, #20]
ldur x9, [x29, #-16]
str w8, [x9, #16]
ldr x8, [sp, #40]
ldur x9, [x29, #-16]
str x8, [x9]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
ldur w3, [x29, #-32]
bl _writeCompressedBlock
str x0, [sp, #24]
ldr x8, [sp, #24]
ldur x9, [x29, #-24]
subs x8, x8, x9
cset w8, lo
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
stur wzr, [x29, #-52]
ldr x0, [sp, #40]
ldur x8, [x29, #-16]
ldr x1, [x8, #8]
ldur x2, [x29, #-24]
bl _memcpy
ldur x9, [x29, #-24]
ldr x8, [sp, #40]
add x8, x8, x9, lsl #2
str x8, [sp, #40]
ldur x8, [x29, #-24]
stur x8, [x29, #-48]
ldur x8, [x29, #-16]
ldr w8, [x8, #16]
ldur x9, [x29, #-16]
str w8, [x9, #20]
b LBB0_8
LBB0_7:
ldr x9, [sp, #24]
ldr x8, [sp, #40]
add x8, x8, x9, lsl #2
str x8, [sp, #40]
ldr x8, [sp, #24]
stur x8, [x29, #-48]
b LBB0_8
LBB0_8:
b LBB0_9
LBB0_9:
b LBB0_10
LBB0_10:
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
ldur x9, [x29, #-24]
add x8, x8, x9, lsl #2
ldur x9, [x29, #-16]
str x8, [x9, #8]
adrp x8, _BLOCK_TYPES@GOTPAGE
ldr x8, [x8, _BLOCK_TYPES@GOTPAGEOFF]
ldr x8, [x8]
ldursw x9, [x29, #-52]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
mov w0, #4
str w0, [sp, #16] ; 4-byte Folded Spill
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _DISPLAYLEVEL
ldr w0, [sp, #16] ; 4-byte Folded Reload
ldur x8, [x29, #-48]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _DISPLAYLEVEL
ldur w8, [x29, #-28]
ldur w9, [x29, #-52]
orr w9, w8, w9, lsl #1
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
ldur x9, [x29, #-48]
orr x8, x8, x9, lsl #3
and x8, x8, #0xff
ldr x9, [sp, #48]
; kill: def $w8 killed $w8 killed $x8
str w8, [x9]
ldr x8, [sp, #48]
add x0, x8, #4
ldur x8, [x29, #-48]
lsr x8, x8, #5
mov x1, x8
bl _MEM_writeLE16
ldr x8, [sp, #40]
ldur x9, [x29, #-16]
str x8, [x9]
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 " block:\n"
l_.str.1: ; @.str.1
.asciz " block content size: %u\n"
l_.str.2: ; @.str.2
.asciz " last block: %s\n"
l_.str.3: ; @.str.3
.asciz "yes"
l_.str.4: ; @.str.4
.asciz "no"
l_.str.5: ; @.str.5
.asciz " block type: %s\n"
.comm _BLOCK_TYPES,8,3 ; @BLOCK_TYPES
l_.str.6: ; @.str.6
.asciz " block size field: %u\n"
.no_dead_strip _writeBlock
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function writeBlock
_writeBlock: ## @writeBlock
.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)
movl %ecx, -28(%rbp)
movl %r8d, -32(%rbp)
movq -8(%rbp), %rdi
callq _RAND
movl $8, %ecx
cltd
idivl %ecx
movl %edx, -36(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -64(%rbp)
movq -64(%rbp), %rax
addq $12, %rax
movq %rax, -72(%rbp)
movl $4, %edi
leaq L_.str(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
movq -24(%rbp), %rax
movl %eax, %edx
movl $4, %edi
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
movl -28(%rbp), %ecx
leaq L_.str.4(%rip), %rdx
leaq L_.str.3(%rip), %rax
cmpl $0, %ecx
cmovneq %rax, %rdx
movl $4, %edi
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
cmpl $0, -36(%rbp)
jne LBB0_2
## %bb.1:
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 8(%rax), %rsi
movq -24(%rbp), %rdx
callq _RAND_buffer
movq -72(%rbp), %rdi
movq -16(%rbp), %rax
movq 8(%rax), %rsi
movq -24(%rbp), %rdx
callq _memcpy
movq -24(%rbp), %rax
shlq $2, %rax
addq -72(%rbp), %rax
movq %rax, -72(%rbp)
movl $0, -52(%rbp)
movq -24(%rbp), %rax
movq %rax, -48(%rbp)
jmp LBB0_10
LBB0_2:
cmpl $1, -36(%rbp)
jne LBB0_5
## %bb.3:
movq -16(%rbp), %rax
cmpq $0, 24(%rax)
jle LBB0_5
## %bb.4:
movq -8(%rbp), %rdi
callq _RAND
andl $255, %eax
movl %eax, -76(%rbp)
movl -76(%rbp), %ecx
movq -72(%rbp), %rax
movl %ecx, (%rax)
movq -16(%rbp), %rax
movq 8(%rax), %rdi
movl -76(%rbp), %esi
movq -24(%rbp), %rdx
callq _memset
movq -72(%rbp), %rax
addq $4, %rax
movq %rax, -72(%rbp)
movl $1, -52(%rbp)
movq -24(%rbp), %rax
movq %rax, -48(%rbp)
jmp LBB0_9
LBB0_5:
movl $2, -52(%rbp)
movq -16(%rbp), %rax
movl 20(%rax), %ecx
movq -16(%rbp), %rax
movl %ecx, 16(%rax)
movq -72(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, (%rax)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
movl -32(%rbp), %ecx
callq _writeCompressedBlock
movq %rax, -88(%rbp)
movq -88(%rbp), %rax
cmpq -24(%rbp), %rax
jb LBB0_7
## %bb.6:
movl $0, -52(%rbp)
movq -72(%rbp), %rdi
movq -16(%rbp), %rax
movq 8(%rax), %rsi
movq -24(%rbp), %rdx
callq _memcpy
movq -24(%rbp), %rax
shlq $2, %rax
addq -72(%rbp), %rax
movq %rax, -72(%rbp)
movq -24(%rbp), %rax
movq %rax, -48(%rbp)
movq -16(%rbp), %rax
movl 16(%rax), %ecx
movq -16(%rbp), %rax
movl %ecx, 20(%rax)
jmp LBB0_8
LBB0_7:
movq -88(%rbp), %rax
shlq $2, %rax
addq -72(%rbp), %rax
movq %rax, -72(%rbp)
movq -88(%rbp), %rax
movq %rax, -48(%rbp)
LBB0_8:
jmp LBB0_9
LBB0_9:
jmp LBB0_10
LBB0_10:
movq -16(%rbp), %rax
movq 8(%rax), %rcx
movq -24(%rbp), %rax
shlq $2, %rax
addq %rax, %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movq _BLOCK_TYPES@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -52(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movl $4, %edi
leaq L_.str.5(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
movq -48(%rbp), %rax
movl %eax, %edx
movl $4, %edi
leaq L_.str.6(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
movl -28(%rbp), %eax
movl -52(%rbp), %ecx
shll $1, %ecx
orl %ecx, %eax
cltq
movq -48(%rbp), %rcx
shlq $3, %rcx
orq %rcx, %rax
andq $255, %rax
movl %eax, %ecx
movq -64(%rbp), %rax
movl %ecx, (%rax)
movq -64(%rbp), %rdi
addq $4, %rdi
movq -48(%rbp), %rax
shrq $5, %rax
movl %eax, %esi
callq _MEM_writeLE16
movq -72(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, (%rax)
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz " block:\n"
L_.str.1: ## @.str.1
.asciz " block content size: %u\n"
L_.str.2: ## @.str.2
.asciz " last block: %s\n"
L_.str.3: ## @.str.3
.asciz "yes"
L_.str.4: ## @.str.4
.asciz "no"
L_.str.5: ## @.str.5
.asciz " block type: %s\n"
.comm _BLOCK_TYPES,8,3 ## @BLOCK_TYPES
L_.str.6: ## @.str.6
.asciz " block size field: %u\n"
.no_dead_strip _writeBlock
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_writeBlock.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function writeBlocks
_writeBlocks: ; @writeBlocks
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur w2, [x29, #-20]
ldur x8, [x29, #-16]
ldr x8, [x8]
str x8, [sp, #32]
adrp x8, _g_maxBlockSize@GOTPAGE
ldr x8, [x8, _g_maxBlockSize@GOTPAGEOFF]
ldr x0, [x8]
ldur x8, [x29, #-16]
ldr x1, [x8, #8]
bl _MIN
; implicit-def: $x8
mov x8, x0
sxtw x8, w8
str x8, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov w8, #0
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB0_4
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-8]
bl _RAND
ands w8, w0, #0x3
cset w8, eq
and w8, w8, #0x1
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
str w8, [sp, #20]
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #32]
str x8, [sp, #8]
b LBB0_15
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ls
tbnz w8, #0, LBB0_9
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-8]
bl _RAND
ands w8, w0, #0x7
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-8]
bl _RAND
str w0, [sp] ; 4-byte Folded Spill
ldr x0, [sp, #24]
ldr x1, [sp, #32]
bl _MIN
mov x8, x0
ldr w0, [sp] ; 4-byte Folded Reload
add w9, w8, #1
sdiv w8, w0, w9
mul w8, w8, w9
subs w9, w0, w8
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
str x8, [sp, #8]
b LBB0_14
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #32]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB0_12
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-8]
bl _RAND
ands w8, w0, #0x1
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
str x8, [sp, #8]
b LBB0_13
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
str xzr, [sp, #8]
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_1 Depth=1
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_1 Depth=1
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldr x2, [sp, #8]
ldr w3, [sp, #20]
ldur w4, [x29, #-20]
bl _writeBlock
ldr x9, [sp, #8]
ldr x8, [sp, #32]
subs x8, x8, x9
str x8, [sp, #32]
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16:
b LBB0_18
LBB0_17: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_18:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.comm _g_maxBlockSize,8,3 ; @g_maxBlockSize
.no_dead_strip _writeBlocks
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function writeBlocks
_writeBlocks: ## @writeBlocks
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl %edx, -20(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
movq _g_maxBlockSize@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -16(%rbp), %rax
movq 8(%rax), %rsi
callq _MIN
cltq
movq %rax, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
cmpq -40(%rbp), %rax
jbe LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
xorl %eax, %eax
movl %eax, -60(%rbp) ## 4-byte Spill
jmp LBB0_4
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
callq _RAND
andl $3, %eax
cmpl $0, %eax
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
movl %eax, -60(%rbp) ## 4-byte Spill
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movl -60(%rbp), %eax ## 4-byte Reload
movl %eax, -44(%rbp)
cmpl $0, -44(%rbp)
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movq %rax, -56(%rbp)
jmp LBB0_15
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
cmpq $0, -32(%rbp)
jbe LBB0_9
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
callq _RAND
andl $7, %eax
cmpl $0, %eax
je LBB0_9
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
callq _RAND
movl %eax, -64(%rbp) ## 4-byte Spill
movq -40(%rbp), %rdi
movq -32(%rbp), %rsi
callq _MIN
movl %eax, %ecx
movl -64(%rbp), %eax ## 4-byte Reload
addl $1, %ecx
cltd
idivl %ecx
movslq %edx, %rax
movq %rax, -56(%rbp)
jmp LBB0_14
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
cmpq -40(%rbp), %rax
jbe LBB0_12
## %bb.10: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
callq _RAND
andl $1, %eax
cmpl $0, %eax
je LBB0_12
## %bb.11: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rax
movq %rax, -56(%rbp)
jmp LBB0_13
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
movq $0, -56(%rbp)
LBB0_13: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_14
LBB0_14: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_15
LBB0_15: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -56(%rbp), %rdx
movl -44(%rbp), %ecx
movl -20(%rbp), %r8d
callq _writeBlock
movq -56(%rbp), %rcx
movq -32(%rbp), %rax
subq %rcx, %rax
movq %rax, -32(%rbp)
cmpl $0, -44(%rbp)
je LBB0_17
## %bb.16:
jmp LBB0_18
LBB0_17: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_18:
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_maxBlockSize,8,3 ## @g_maxBlockSize
.no_dead_strip _writeBlocks
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_writeBlocks.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function writeChecksum
_writeChecksum: ; @writeChecksum
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x0, [x8, #8]
ldr x8, [sp, #8]
ldr x8, [x8, #16]
ldr x9, [sp, #8]
ldr x9, [x9, #8]
subs x8, x8, x9
mov x9, #4
sdiv x8, x8, x9
mov x1, x8
mov w2, #0
bl _XXH64
str x0, [sp]
ldr x8, [sp]
mov x2, x8
mov w0, #3
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _DISPLAYLEVEL
ldr x8, [sp, #8]
ldr x0, [x8]
ldr x8, [sp]
mov x1, x8
bl _MEM_writeLE32
ldr x8, [sp, #8]
ldr x8, [x8]
add x8, x8, #16
ldr x9, [sp, #8]
str x8, [x9]
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 " checksum: %08x\n"
.no_dead_strip _writeChecksum
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function writeChecksum
_writeChecksum: ## @writeChecksum
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rdi
movq -8(%rbp), %rax
movq 16(%rax), %rax
movq -8(%rbp), %rcx
movq 8(%rcx), %rcx
subq %rcx, %rax
sarq $2, %rax
movl %eax, %esi
xorl %edx, %edx
callq _XXH64
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movl %eax, %edx
movl $3, %edi
leaq L_.str(%rip), %rsi
callq _DISPLAYLEVEL
movq -8(%rbp), %rax
movq (%rax), %rdi
movq -16(%rbp), %rax
movl %eax, %esi
callq _MEM_writeLE32
movq -8(%rbp), %rax
movq (%rax), %rcx
addq $16, %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz " checksum: %08x\n"
.no_dead_strip _writeChecksum
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_writeChecksum.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function writeCompressedBlock
_writeCompressedBlock: ; @writeCompressedBlock
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur w3, [x29, #-28]
ldur x8, [x29, #-16]
ldr x8, [x8]
str x8, [sp, #40]
mov w0, #4
str w0, [sp, #20] ; 4-byte Folded Spill
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _DISPLAYLEVEL
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
bl _writeLiteralsBlock
mov x8, x0
ldr w0, [sp, #20] ; 4-byte Folded Reload
str x8, [sp, #32]
ldr x8, [sp, #32]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _DISPLAYLEVEL
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
ldr x3, [sp, #32]
ldur w4, [x29, #-28]
bl _writeSequencesBlock
mov x8, x0
ldr w0, [sp, #20] ; 4-byte Folded Reload
str x8, [sp, #24]
ldr x8, [sp, #24]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _DISPLAYLEVEL
ldur x8, [x29, #-16]
ldr x8, [x8]
ldr x9, [sp, #40]
subs x8, x8, x9
mov x9, #4
sdiv x0, x8, x9
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz " compressed block:\n"
l_.str.1: ; @.str.1
.asciz " literals size: %u\n"
l_.str.2: ; @.str.2
.asciz " number of sequences: %u\n"
.no_dead_strip _writeCompressedBlock
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function writeCompressedBlock
_writeCompressedBlock: ## @writeCompressedBlock
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movl %ecx, -28(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -40(%rbp)
movl $4, %edi
leaq L_.str(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
callq _writeLiteralsBlock
movq %rax, -48(%rbp)
movq -48(%rbp), %rax
movl %eax, %edx
movl $4, %edi
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
movq -48(%rbp), %rcx
movl -28(%rbp), %r8d
callq _writeSequencesBlock
movq %rax, -56(%rbp)
movq -56(%rbp), %rax
movl %eax, %edx
movl $4, %edi
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
movq -16(%rbp), %rax
movq (%rax), %rax
movq -40(%rbp), %rcx
subq %rcx, %rax
sarq $2, %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz " compressed block:\n"
L_.str.1: ## @.str.1
.asciz " literals size: %u\n"
L_.str.2: ## @.str.2
.asciz " number of sequences: %u\n"
.no_dead_strip _writeCompressedBlock
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_writeCompressedBlock.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function writeLiteralsBlock
_writeLiteralsBlock: ; @writeLiteralsBlock
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
str x1, [sp, #8]
str x2, [sp]
ldr x0, [sp, #16]
bl _RAND
ands w8, w0, #0x7
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
ldr x8, [sp]
subs x8, x8, #64
cset w8, lo
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x0, [sp, #16]
ldr x1, [sp, #8]
ldr x2, [sp]
bl _writeLiteralsBlockCompressed
stur x0, [x29, #-8]
b LBB0_4
LBB0_3:
ldr x0, [sp, #16]
ldr x1, [sp, #8]
ldr x2, [sp]
bl _writeLiteralsBlockSimple
stur x0, [x29, #-8]
b LBB0_4
LBB0_4:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _writeLiteralsBlock
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function writeLiteralsBlock
_writeLiteralsBlock: ## @writeLiteralsBlock
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq -16(%rbp), %rdi
callq _RAND
andl $7, %eax
cmpl $0, %eax
je LBB0_3
## %bb.1:
cmpq $64, -32(%rbp)
jb LBB0_3
## %bb.2:
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
callq _writeLiteralsBlockCompressed
movq %rax, -8(%rbp)
jmp LBB0_4
LBB0_3:
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
callq _writeLiteralsBlockSimple
movq %rax, -8(%rbp)
LBB0_4:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _writeLiteralsBlock
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_writeLiteralsBlock.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function writeSequencesBlock
_writeSequencesBlock: ; @writeSequencesBlock
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
str x3, [sp, #32]
str w4, [sp, #28]
add x0, sp, #24
str x0, [sp, #8] ; 8-byte Folded Spill
bl _initSeqStore
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x3, [x29, #-24]
ldr x4, [sp, #32]
ldr w5, [sp, #28]
bl _generateSequences
ldr x2, [sp, #8] ; 8-byte Folded Reload
str x0, [sp, #16]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldr x3, [sp, #16]
bl _writeSequences
bl _CHECKERR
ldr x0, [sp, #16]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.no_dead_strip _writeSequencesBlock
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function writeSequencesBlock
_writeSequencesBlock: ## @writeSequencesBlock
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movl %r8d, -36(%rbp)
leaq -40(%rbp), %rdi
callq _initSeqStore
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rcx
movq -32(%rbp), %r8
movl -36(%rbp), %r9d
leaq -40(%rbp), %rdx
callq _generateSequences
movq %rax, -48(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -48(%rbp), %rcx
leaq -40(%rbp), %rdx
callq _writeSequences
movl %eax, %edi
callq _CHECKERR
movq -48(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _writeSequencesBlock
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_decodecorpus.c_writeSequencesBlock.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]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
ldr x0, [sp, #8]
bl _usage
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 "Wrong parameters\n"
.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)
leaq L_.str(%rip), %rdi
callq _DISPLAY
movq -8(%rbp), %rdi
callq _usage
movl $1, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Wrong parameters\n"
.no_dead_strip _badusage
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_badusage.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function benchFiles
_benchFiles: ; @benchFiles
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-8]
stur x1, [x29, #-16]
stur w2, [x29, #-20]
stur w3, [x29, #-24]
stur w4, [x29, #-28]
stur wzr, [x29, #-32]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_17 Depth 2
ldur w8, [x29, #-32]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_23
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-32]
ldr x8, [x8, x9, lsl #3]
stur x8, [x29, #-40]
ldur x0, [x29, #-40]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fopen
stur x0, [x29, #-48]
ldur x8, [x29, #-48]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur x8, [x29, #-40]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
mov w8, #11
stur w8, [x29, #-4]
b LBB0_24
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-40]
bl _UTIL_getFileSize
str w0, [sp, #52]
ldr w8, [sp, #52]
adrp x9, _UTIL_FILESIZE_UNKNOWN@GOTPAGE
ldr x9, [x9, _UTIL_FILESIZE_UNKNOWN@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldur x8, [x29, #-40]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
ldur x0, [x29, #-48]
bl _fclose
mov w8, #11
stur w8, [x29, #-4]
b LBB0_24
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #52]
mov w9, #3
str w9, [sp, #28] ; 4-byte Folded Spill
mul w0, w8, w9
bl _BMK_findMaxMem
ldr w8, [sp, #28] ; 4-byte Folded Reload
sdiv w9, w0, w8
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
str x8, [sp, #56]
ldr x8, [sp, #56]
; kill: def $w8 killed $w8 killed $x8
ldr w9, [sp, #52]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldrsw x8, [sp, #52]
str x8, [sp, #56]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #56]
; kill: def $w8 killed $w8 killed $x8
ldr w9, [sp, #52]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldur x10, [x29, #-40]
ldr x8, [sp, #56]
lsr x8, x8, #20
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #56]
bl _malloc
str x0, [sp, #40]
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _DISPLAY
ldur x0, [x29, #-48]
bl _fclose
mov w8, #12
stur w8, [x29, #-4]
b LBB0_24
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-40]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
ldr x0, [sp, #40]
ldr x2, [sp, #56]
ldur x3, [x29, #-48]
mov w1, #1
bl _fread
str x0, [sp, #32]
ldur x0, [x29, #-48]
bl _fclose
ldr x8, [sp, #32]
ldr x9, [sp, #56]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
ldur x8, [x29, #-40]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _DISPLAY
ldr x0, [sp, #40]
bl _free
mov w8, #13
stur w8, [x29, #-4]
b LBB0_24
LBB0_14: ; in Loop: Header=BB0_1 Depth=1
mov x9, sp
adrp x8, l_.str.8@PAGE
add x8, x8, l_.str.8@PAGEOFF
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _DISPLAY
ldur x8, [x29, #-40]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _DISPLAY
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_1 Depth=1
ldur w0, [x29, #-8]
ldr x1, [sp, #40]
ldr x2, [sp, #56]
ldur w3, [x29, #-24]
ldur w4, [x29, #-28]
bl _benchMem
b LBB0_21
LBB0_16: ; in Loop: Header=BB0_1 Depth=1
stur wzr, [x29, #-8]
b LBB0_17
LBB0_17: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-8]
subs w8, w8, #100
cset w8, ge
tbnz w8, #0, LBB0_20
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_17 Depth=2
ldur w0, [x29, #-8]
ldr x1, [sp, #40]
ldr x2, [sp, #56]
ldur w3, [x29, #-24]
ldur w4, [x29, #-28]
bl _benchMem
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_17 Depth=2
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB0_17
LBB0_20: ; in Loop: Header=BB0_1 Depth=1
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #40]
bl _free
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-32]
add w8, w8, #1
stur w8, [x29, #-32]
b LBB0_1
LBB0_23:
stur wzr, [x29, #-4]
b LBB0_24
LBB0_24:
ldur w0, [x29, #-4]
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 "rb"
l_.str.1: ; @.str.1
.asciz "Pb opening %s\n"
.comm _UTIL_FILESIZE_UNKNOWN,4,2 ; @UTIL_FILESIZE_UNKNOWN
l_.str.2: ; @.str.2
.asciz "Cannot measure size of %s\n"
l_.str.3: ; @.str.3
.asciz "Not enough memory for '%s' full size; testing %u MB only... \n"
l_.str.4: ; @.str.4
.asciz "\nError: not enough memory!\n"
l_.str.5: ; @.str.5
.asciz "Loading %s... \r"
l_.str.6: ; @.str.6
.asciz "\nError: problem reading file '%s' !! \n"
l_.str.7: ; @.str.7
.asciz "\r%70s\r"
l_.str.8: ; @.str.8
.space 1
l_.str.9: ; @.str.9
.asciz " %s : \n"
.no_dead_strip _benchFiles
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function benchFiles
_benchFiles: ## @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 $80, %rsp
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl %edx, -20(%rbp)
movl %ecx, -24(%rbp)
movl %r8d, -28(%rbp)
movl $0, -32(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_17 Depth 2
movl -32(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB0_23
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movslq -32(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -40(%rbp)
movq -40(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _fopen
movq %rax, -48(%rbp)
cmpq $0, -48(%rbp)
jne LBB0_4
## %bb.3:
movq -40(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $11, -4(%rbp)
jmp LBB0_24
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rdi
callq _UTIL_getFileSize
movl %eax, -60(%rbp)
movl -60(%rbp), %eax
movq _UTIL_FILESIZE_UNKNOWN@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jne LBB0_6
## %bb.5:
movq -40(%rbp), %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq -48(%rbp), %rdi
callq _fclose
movl $11, -4(%rbp)
jmp LBB0_24
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
imull $3, -60(%rbp), %edi
callq _BMK_findMaxMem
movl $3, %ecx
cltd
idivl %ecx
cltq
movq %rax, -56(%rbp)
movq -56(%rbp), %rax
## kill: def $eax killed $eax killed $rax
cmpl -60(%rbp), %eax
jle LBB0_8
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movslq -60(%rbp), %rax
movq %rax, -56(%rbp)
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rax
## kill: def $eax killed $eax killed $rax
cmpl -60(%rbp), %eax
jge LBB0_10
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rsi
movq -56(%rbp), %rax
shrq $20, %rax
movl %eax, %edx
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rdi
callq _malloc
movq %rax, -72(%rbp)
cmpq $0, -72(%rbp)
jne LBB0_12
## %bb.11:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq -48(%rbp), %rdi
callq _fclose
movl $12, -4(%rbp)
jmp LBB0_24
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rsi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq -72(%rbp), %rdi
movq -56(%rbp), %rdx
movq -48(%rbp), %rcx
movl $1, %esi
callq _fread
movq %rax, -80(%rbp)
movq -48(%rbp), %rdi
callq _fclose
movq -80(%rbp), %rax
cmpq -56(%rbp), %rax
je LBB0_14
## %bb.13:
movq -40(%rbp), %rsi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq -72(%rbp), %rdi
callq _free
movl $13, -4(%rbp)
jmp LBB0_24
LBB0_14: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.7(%rip), %rdi
leaq L_.str.8(%rip), %rsi
movb $0, %al
callq _DISPLAY
movq -40(%rbp), %rsi
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _DISPLAY
cmpl $0, -8(%rbp)
je LBB0_16
## %bb.15: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %edi
movq -72(%rbp), %rsi
movq -56(%rbp), %rdx
movl -24(%rbp), %ecx
movl -28(%rbp), %r8d
callq _benchMem
jmp LBB0_21
LBB0_16: ## in Loop: Header=BB0_1 Depth=1
movl $0, -8(%rbp)
LBB0_17: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $100, -8(%rbp)
jge LBB0_20
## %bb.18: ## in Loop: Header=BB0_17 Depth=2
movl -8(%rbp), %edi
movq -72(%rbp), %rsi
movq -56(%rbp), %rdx
movl -24(%rbp), %ecx
movl -28(%rbp), %r8d
callq _benchMem
## %bb.19: ## in Loop: Header=BB0_17 Depth=2
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_17
LBB0_20: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_21
LBB0_21: ## in Loop: Header=BB0_1 Depth=1
movq -72(%rbp), %rdi
callq _free
## %bb.22: ## in Loop: Header=BB0_1 Depth=1
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB0_1
LBB0_23:
movl $0, -4(%rbp)
LBB0_24:
movl -4(%rbp), %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "rb"
L_.str.1: ## @.str.1
.asciz "Pb opening %s\n"
.comm _UTIL_FILESIZE_UNKNOWN,4,2 ## @UTIL_FILESIZE_UNKNOWN
L_.str.2: ## @.str.2
.asciz "Cannot measure size of %s\n"
L_.str.3: ## @.str.3
.asciz "Not enough memory for '%s' full size; testing %u MB only... \n"
L_.str.4: ## @.str.4
.asciz "\nError: not enough memory!\n"
L_.str.5: ## @.str.5
.asciz "Loading %s... \r"
L_.str.6: ## @.str.6
.asciz "\nError: problem reading file '%s' !! \n"
L_.str.7: ## @.str.7
.asciz "\r%70s\r"
L_.str.8: ## @.str.8
.space 1
L_.str.9: ## @.str.9
.asciz " %s : \n"
.no_dead_strip _benchFiles
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_benchFiles.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function benchSample
_benchSample: ; @benchSample
.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 w0, [x29, #-8]
stur x1, [x29, #-16]
str d0, [sp, #24]
str w2, [sp, #20]
str w3, [sp, #16]
ldur x0, [x29, #-16]
bl _malloc
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
mov w8, #12
stur w8, [x29, #-4]
b LBB0_10
LBB0_2:
ldr x0, [sp, #8]
ldur x1, [x29, #-16]
ldr d0, [sp, #24]
movi d1, #0000000000000000
mov w2, #0
bl _RDG_genBuffer
mov x9, sp
adrp x8, l_.str.2@PAGE
add x8, x8, l_.str.2@PAGEOFF
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
ldur x8, [x29, #-16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur w0, [x29, #-8]
ldr x1, [sp, #8]
ldur x2, [x29, #-16]
ldr w3, [sp, #20]
ldr w4, [sp, #16]
bl _benchMem
b LBB0_9
LBB0_4:
stur wzr, [x29, #-8]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #100
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldur w0, [x29, #-8]
ldr x1, [sp, #8]
ldur x2, [x29, #-16]
ldr w3, [sp, #20]
ldr w4, [sp, #16]
bl _benchMem
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB0_5
LBB0_8:
b LBB0_9
LBB0_9:
ldr x0, [sp, #8]
bl _free
stur wzr, [x29, #-4]
b LBB0_10
LBB0_10:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\nError: not enough memory!\n"
l_.str.1: ; @.str.1
.asciz "\r%70s\r"
l_.str.2: ; @.str.2
.space 1
l_.str.3: ; @.str.3
.asciz " Sample %u bytes : \n"
.no_dead_strip _benchSample
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function benchSample
_benchSample: ## @benchSample
.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 %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movsd %xmm0, -24(%rbp)
movl %edx, -28(%rbp)
movl %ecx, -32(%rbp)
movq -16(%rbp), %rdi
callq _malloc
movq %rax, -40(%rbp)
cmpq $0, -40(%rbp)
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $12, -4(%rbp)
jmp LBB0_10
LBB0_2:
movq -40(%rbp), %rdi
movq -16(%rbp), %rsi
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
xorps %xmm1, %xmm1
xorl %edx, %edx
callq _RDG_genBuffer
leaq L_.str.1(%rip), %rdi
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _DISPLAY
movq -16(%rbp), %rax
movl %eax, %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
cmpl $0, -8(%rbp)
je LBB0_4
## %bb.3:
movl -8(%rbp), %edi
movq -40(%rbp), %rsi
movq -16(%rbp), %rdx
movl -28(%rbp), %ecx
movl -32(%rbp), %r8d
callq _benchMem
jmp LBB0_9
LBB0_4:
movl $0, -8(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
cmpl $100, -8(%rbp)
jge LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl -8(%rbp), %edi
movq -40(%rbp), %rsi
movq -16(%rbp), %rdx
movl -28(%rbp), %ecx
movl -32(%rbp), %r8d
callq _benchMem
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_5
LBB0_8:
jmp LBB0_9
LBB0_9:
movq -40(%rbp), %rdi
callq _free
movl $0, -4(%rbp)
LBB0_10:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\nError: not enough memory!\n"
L_.str.1: ## @.str.1
.asciz "\r%70s\r"
L_.str.2: ## @.str.2
.space 1
L_.str.3: ## @.str.3
.asciz " Sample %u bytes : \n"
.no_dead_strip _benchSample
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_benchSample.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_ZSTD_compressContinue
_local_ZSTD_compressContinue: ; @local_ZSTD_compressContinue
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
str x4, [sp, #40]
adrp x8, l___const.local_ZSTD_compressContinue.f@PAGE
add x8, x8, l___const.local_ZSTD_compressContinue.f@PAGEOFF
ldr x9, [x8]
str x9, [sp, #8]
ldr w8, [x8, #8]
str w8, [sp, #16]
add x9, sp, #24
ldr x8, [sp, #8]
stur x8, [x9, #4]
ldr w8, [sp, #16]
str w8, [sp, #36]
ldr x8, [sp, #40]
ldr w8, [x8]
str w8, [sp, #24]
adrp x8, _g_zcc@GOTPAGE
ldr x8, [x8, _g_zcc@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
ldr w0, [x8]
ldur x5, [x29, #-16]
ldr x3, [sp, #24]
ldr x4, [sp, #32]
mov x1, #0
mov w2, #0
bl _ZSTD_compressBegin_advanced
ldr x8, [sp] ; 8-byte Folded Reload
ldr w0, [x8]
ldur x1, [x29, #-24]
ldur x2, [x29, #-32]
ldur x3, [x29, #-8]
ldur x4, [x29, #-16]
bl _ZSTD_compressEnd
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2 ; @__const.local_ZSTD_compressContinue.f
l___const.local_ZSTD_compressContinue.f:
.long 1 ; 0x1
.long 0 ; 0x0
.long 0 ; 0x0
.comm _g_zcc,4,2 ; @g_zcc
.no_dead_strip _local_ZSTD_compressContinue
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_ZSTD_compressContinue
_local_ZSTD_compressContinue: ## @local_ZSTD_compressContinue
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq l___const.local_ZSTD_compressContinue.f(%rip), %rax
movq %rax, -72(%rbp)
movl l___const.local_ZSTD_compressContinue.f+8(%rip), %eax
movl %eax, -64(%rbp)
movq -72(%rbp), %rax
movq %rax, -52(%rbp)
movl -64(%rbp), %eax
movl %eax, -44(%rbp)
movq -40(%rbp), %rax
movl (%rax), %eax
movl %eax, -56(%rbp)
movq _g_zcc@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -16(%rbp), %r9
movq -56(%rbp), %rcx
movq -48(%rbp), %r8
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq _ZSTD_compressBegin_advanced
movq _g_zcc@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
movq -8(%rbp), %rcx
movq -16(%rbp), %r8
callq _ZSTD_compressEnd
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 2 ## @__const.local_ZSTD_compressContinue.f
l___const.local_ZSTD_compressContinue.f:
.long 1 ## 0x1
.long 0 ## 0x0
.long 0 ## 0x0
.comm _g_zcc,4,2 ## @g_zcc
.no_dead_strip _local_ZSTD_compressContinue
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_local_ZSTD_compressContinue.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_ZSTD_compressContinue_extDict
_local_ZSTD_compressContinue_extDict: ; @local_ZSTD_compressContinue_extDict
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub sp, sp, #176
adrp x9, _FIRST_BLOCK_SIZE@GOTPAGE
ldr x9, [x9, _FIRST_BLOCK_SIZE@GOTPAGEOFF]
stur x9, [x29, #-136] ; 8-byte Folded Spill
adrp x8, _g_zcc@GOTPAGE
ldr x8, [x8, _g_zcc@GOTPAGEOFF]
stur x8, [x29, #-144] ; 8-byte Folded Spill
adrp x10, ___stack_chk_guard@GOTPAGE
ldr x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
ldr x10, [x10]
stur x10, [x29, #-8]
stur x0, [x29, #-24]
stur x1, [x29, #-32]
stur x2, [x29, #-40]
stur x3, [x29, #-48]
stur x4, [x29, #-56]
ldr w9, [x9]
; kill: def $x9 killed $w9
stur x9, [x29, #-152] ; 8-byte Folded Spill
mov x10, sp
stur x10, [x29, #-64]
lsl x9, x9, #2
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-160] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x11, [x29, #-160] ; 8-byte Folded Reload
ldur x9, [x29, #-152] ; 8-byte Folded Reload
mov x10, sp
subs x0, x10, x11
stur x0, [x29, #-128] ; 8-byte Folded Spill
mov sp, x0
stur x9, [x29, #-72]
adrp x9, l___const.local_ZSTD_compressContinue_extDict.f@PAGE
add x9, x9, l___const.local_ZSTD_compressContinue_extDict.f@PAGEOFF
ldr x10, [x9]
stur x10, [x29, #-104]
ldr w9, [x9, #8]
stur w9, [x29, #-96]
sub x10, x29, #88
ldur x9, [x29, #-104]
stur x9, [x10, #4]
ldur w9, [x29, #-96]
stur w9, [x29, #-76]
ldur x9, [x29, #-56]
ldr w9, [x9]
stur w9, [x29, #-88]
ldr w0, [x8]
ldur x5, [x29, #-32]
ldur x3, [x29, #-88]
ldur x4, [x29, #-80]
mov x1, #0
mov w2, #0
bl _ZSTD_compressBegin_advanced
ldur x8, [x29, #-136] ; 8-byte Folded Reload
ldur x0, [x29, #-128] ; 8-byte Folded Reload
ldur x1, [x29, #-24]
ldr w2, [x8]
bl _memcpy
ldur x9, [x29, #-144] ; 8-byte Folded Reload
ldur x8, [x29, #-136] ; 8-byte Folded Reload
ldur x3, [x29, #-128] ; 8-byte Folded Reload
ldr w0, [x9]
ldur x1, [x29, #-40]
ldur x2, [x29, #-48]
ldr w4, [x8]
bl _ZSTD_compressContinue
stur x0, [x29, #-112]
ldur x0, [x29, #-112]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x0, [x29, #-112]
bl _ZSTD_getErrorName
mov x1, x0
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
ldur x8, [x29, #-112]
stur x8, [x29, #-16]
mov w8, #1
stur w8, [x29, #-116]
b LBB0_3
LBB0_2:
ldur x9, [x29, #-136] ; 8-byte Folded Reload
ldur x8, [x29, #-144] ; 8-byte Folded Reload
ldur x10, [x29, #-40]
ldur x11, [x29, #-112]
add x10, x10, x11, lsl #2
stur x10, [x29, #-40]
ldur x11, [x29, #-112]
ldur x10, [x29, #-48]
subs x10, x10, x11
stur x10, [x29, #-48]
ldr w0, [x8]
ldur x1, [x29, #-40]
ldur x2, [x29, #-48]
ldur x8, [x29, #-24]
ldrsw x10, [x9]
add x3, x8, x10, lsl #2
ldur x8, [x29, #-32]
ldrsw x9, [x9]
subs x8, x8, x9
mov x4, x8
bl _ZSTD_compressEnd
stur x0, [x29, #-16]
mov w8, #1
stur w8, [x29, #-116]
b LBB0_3
LBB0_3:
ldur x8, [x29, #-64]
mov sp, x8
ldur x8, [x29, #-16]
stur x8, [x29, #-168] ; 8-byte Folded Spill
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_5
b LBB0_4
LBB0_4:
bl ___stack_chk_fail
LBB0_5:
ldur x0, [x29, #-168] ; 8-byte Folded Reload
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.comm _FIRST_BLOCK_SIZE,4,2 ; @FIRST_BLOCK_SIZE
.section __TEXT,__const
.p2align 2 ; @__const.local_ZSTD_compressContinue_extDict.f
l___const.local_ZSTD_compressContinue_extDict.f:
.long 1 ; 0x1
.long 0 ; 0x0
.long 0 ; 0x0
.comm _g_zcc,4,2 ; @g_zcc
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "local_ZSTD_compressContinue_extDict error : %s\n"
.no_dead_strip _local_ZSTD_compressContinue_extDict
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_ZSTD_compressContinue_extDict
_local_ZSTD_compressContinue_extDict: ## @local_ZSTD_compressContinue_extDict
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $144, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -24(%rbp)
movq %rsi, -32(%rbp)
movq %rdx, -40(%rbp)
movq %rcx, -48(%rbp)
movq %r8, -56(%rbp)
movq _FIRST_BLOCK_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %eax
## kill: def $rax killed $eax
movq %rax, -136(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -64(%rbp)
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -136(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -128(%rbp) ## 8-byte Spill
movq %rax, -72(%rbp)
movq l___const.local_ZSTD_compressContinue_extDict.f(%rip), %rax
movq %rax, -104(%rbp)
movl l___const.local_ZSTD_compressContinue_extDict.f+8(%rip), %eax
movl %eax, -96(%rbp)
movq -104(%rbp), %rax
movq %rax, -84(%rbp)
movl -96(%rbp), %eax
movl %eax, -76(%rbp)
movq -56(%rbp), %rax
movl (%rax), %eax
movl %eax, -88(%rbp)
movq _g_zcc@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -32(%rbp), %r9
movq -88(%rbp), %rcx
movq -80(%rbp), %r8
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq _ZSTD_compressBegin_advanced
movq -128(%rbp), %rdi ## 8-byte Reload
movq -24(%rbp), %rsi
movq _FIRST_BLOCK_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %edx
callq _memcpy
movq -128(%rbp), %rcx ## 8-byte Reload
movq _g_zcc@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -40(%rbp), %rsi
movq -48(%rbp), %rdx
movq _FIRST_BLOCK_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %r8d
callq _ZSTD_compressContinue
movq %rax, -112(%rbp)
movq -112(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_2
## %bb.1:
movq -112(%rbp), %rdi
callq _ZSTD_getErrorName
movl %eax, %esi
leaq L_.str(%rip), %rdi
callq _DISPLAY
movq -112(%rbp), %rax
movq %rax, -16(%rbp)
movl $1, -116(%rbp)
jmp LBB0_3
LBB0_2:
movq -40(%rbp), %rax
movq -112(%rbp), %rcx
shlq $2, %rcx
addq %rcx, %rax
movq %rax, -40(%rbp)
movq -112(%rbp), %rcx
movq -48(%rbp), %rax
subq %rcx, %rax
movq %rax, -48(%rbp)
movq _g_zcc@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -40(%rbp), %rsi
movq -48(%rbp), %rdx
movq -24(%rbp), %rcx
movq _FIRST_BLOCK_SIZE@GOTPCREL(%rip), %rax
movslq (%rax), %rax
shlq $2, %rax
addq %rax, %rcx
movq -32(%rbp), %rax
movq _FIRST_BLOCK_SIZE@GOTPCREL(%rip), %r8
movslq (%r8), %r8
subq %r8, %rax
movl %eax, %r8d
callq _ZSTD_compressEnd
movq %rax, -16(%rbp)
movl $1, -116(%rbp)
LBB0_3:
movq -64(%rbp), %rax
movq %rax, %rsp
movq -16(%rbp), %rax
movq %rax, -144(%rbp) ## 8-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_5
## %bb.4:
movq -144(%rbp), %rax ## 8-byte Reload
movq %rbp, %rsp
popq %rbp
retq
LBB0_5:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.comm _FIRST_BLOCK_SIZE,4,2 ## @FIRST_BLOCK_SIZE
.section __TEXT,__const
.p2align 2 ## @__const.local_ZSTD_compressContinue_extDict.f
l___const.local_ZSTD_compressContinue_extDict.f:
.long 1 ## 0x1
.long 0 ## 0x0
.long 0 ## 0x0
.comm _g_zcc,4,2 ## @g_zcc
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "local_ZSTD_compressContinue_extDict error : %s\n"
.no_dead_strip _local_ZSTD_compressContinue_extDict
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_local_ZSTD_compressContinue_extDict.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_ZSTD_compress
_local_ZSTD_compress: ; @local_ZSTD_compress
.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 x4, [x29, #-40]
adrp x8, l___const.local_ZSTD_compress.f@PAGE
add x8, x8, l___const.local_ZSTD_compress.f@PAGEOFF
ldr x9, [x8]
str x9, [sp, #24]
ldr w8, [x8, #8]
str w8, [sp, #32]
add x9, sp, #40
ldr x8, [sp, #24]
stur x8, [x9, #4]
ldr w8, [sp, #32]
str w8, [sp, #52]
ldur x8, [x29, #-40]
ldr w8, [x8]
str w8, [sp, #40]
adrp x8, _g_zcc@GOTPAGE
ldr x8, [x8, _g_zcc@GOTPAGEOFF]
ldr w0, [x8]
ldur x1, [x29, #-24]
ldur x2, [x29, #-32]
ldur x3, [x29, #-8]
ldur x4, [x29, #-16]
ldr x10, [sp, #40]
ldr x8, [sp, #48]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
mov x5, #0
mov w6, #0
bl _ZSTD_compress_advanced
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2 ; @__const.local_ZSTD_compress.f
l___const.local_ZSTD_compress.f:
.long 1 ; 0x1
.long 0 ; 0x0
.long 0 ; 0x0
.comm _g_zcc,4,2 ; @g_zcc
.no_dead_strip _local_ZSTD_compress
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_ZSTD_compress
_local_ZSTD_compress: ## @local_ZSTD_compress
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $96, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq l___const.local_ZSTD_compress.f(%rip), %rax
movq %rax, -72(%rbp)
movl l___const.local_ZSTD_compress.f+8(%rip), %eax
movl %eax, -64(%rbp)
movq -72(%rbp), %rax
movq %rax, -52(%rbp)
movl -64(%rbp), %eax
movl %eax, -44(%rbp)
movq -40(%rbp), %rax
movl (%rax), %eax
movl %eax, -56(%rbp)
movq _g_zcc@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
movq -8(%rbp), %rcx
movq -16(%rbp), %r8
xorl %eax, %eax
movl %eax, %r9d
xorl %eax, %eax
leaq -56(%rbp), %rax
movl $0, (%rsp)
movq (%rax), %r10
movq %r10, 8(%rsp)
movq 8(%rax), %rax
movq %rax, 16(%rsp)
callq _ZSTD_compress_advanced
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 2 ## @__const.local_ZSTD_compress.f
l___const.local_ZSTD_compress.f:
.long 1 ## 0x1
.long 0 ## 0x0
.long 0 ## 0x0
.comm _g_zcc,4,2 ## @g_zcc
.no_dead_strip _local_ZSTD_compress
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_local_ZSTD_compress.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_ZSTD_compressStream
_local_ZSTD_compressStream: ; @local_ZSTD_compressStream
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _g_cstream@GOTPAGE
ldr x8, [x8, _g_cstream@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
stur x4, [x29, #-40]
adrp x9, l___const.local_ZSTD_compressStream.f@PAGE
add x9, x9, l___const.local_ZSTD_compressStream.f@PAGEOFF
ldr x10, [x9]
str x10, [sp, #24]
ldr w9, [x9, #8]
str w9, [sp, #32]
add x10, sp, #40
ldr x9, [sp, #24]
stur x9, [x10, #4]
ldr w9, [sp, #32]
str w9, [sp, #52]
ldur x9, [x29, #-40]
ldr w9, [x9]
str w9, [sp, #40]
ldr w0, [x8]
adrp x8, _ZSTD_CONTENTSIZE_UNKNOWN@GOTPAGE
ldr x8, [x8, _ZSTD_CONTENTSIZE_UNKNOWN@GOTPAGEOFF]
ldr w5, [x8]
ldr x3, [sp, #40]
ldr x4, [sp, #48]
mov x1, #0
mov w2, #0
bl _ZSTD_initCStream_advanced
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldur x9, [x29, #-24]
sub x1, x29, #64
str x1, [sp, #16] ; 8-byte Folded Spill
stur x9, [x29, #-48]
ldur x9, [x29, #-32]
stur x9, [x29, #-64]
stur xzr, [x29, #-56]
ldur x9, [x29, #-8]
add x2, sp, #56
str x9, [sp, #72]
ldur x9, [x29, #-16]
str x9, [sp, #56]
str xzr, [sp, #64]
ldr w0, [x8]
bl _ZSTD_compressStream
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x1, [sp, #16] ; 8-byte Folded Reload
ldr w0, [x8]
bl _ZSTD_endStream
ldur x0, [x29, #-56]
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
add sp, sp, #160
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2 ; @__const.local_ZSTD_compressStream.f
l___const.local_ZSTD_compressStream.f:
.long 1 ; 0x1
.long 0 ; 0x0
.long 0 ; 0x0
.comm _g_cstream,4,2 ; @g_cstream
.comm _ZSTD_CONTENTSIZE_UNKNOWN,4,2 ; @ZSTD_CONTENTSIZE_UNKNOWN
.no_dead_strip _local_ZSTD_compressStream
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_ZSTD_compressStream
_local_ZSTD_compressStream: ## @local_ZSTD_compressStream
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq l___const.local_ZSTD_compressStream.f(%rip), %rax
movq %rax, -120(%rbp)
movl l___const.local_ZSTD_compressStream.f+8(%rip), %eax
movl %eax, -112(%rbp)
movq -120(%rbp), %rax
movq %rax, -100(%rbp)
movl -112(%rbp), %eax
movl %eax, -92(%rbp)
movq -40(%rbp), %rax
movl (%rax), %eax
movl %eax, -104(%rbp)
movq _g_cstream@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ZSTD_CONTENTSIZE_UNKNOWN@GOTPCREL(%rip), %rax
movl (%rax), %r9d
movq -104(%rbp), %rcx
movq -96(%rbp), %r8
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq _ZSTD_initCStream_advanced
movq -24(%rbp), %rax
movq %rax, -48(%rbp)
movq -32(%rbp), %rax
movq %rax, -64(%rbp)
movq $0, -56(%rbp)
movq -8(%rbp), %rax
movq %rax, -72(%rbp)
movq -16(%rbp), %rax
movq %rax, -88(%rbp)
movq $0, -80(%rbp)
movq _g_cstream@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq -64(%rbp), %rsi
leaq -88(%rbp), %rdx
callq _ZSTD_compressStream
movq _g_cstream@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq -64(%rbp), %rsi
callq _ZSTD_endStream
movq -56(%rbp), %rax
addq $128, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 2 ## @__const.local_ZSTD_compressStream.f
l___const.local_ZSTD_compressStream.f:
.long 1 ## 0x1
.long 0 ## 0x0
.long 0 ## 0x0
.comm _g_cstream,4,2 ## @g_cstream
.comm _ZSTD_CONTENTSIZE_UNKNOWN,4,2 ## @ZSTD_CONTENTSIZE_UNKNOWN
.no_dead_strip _local_ZSTD_compressStream
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_local_ZSTD_compressStream.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_ZSTD_compressStream_freshCCtx
_local_ZSTD_compressStream_freshCCtx: ; @local_ZSTD_compressStream_freshCCtx
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
str x3, [sp, #32]
str x4, [sp, #24]
bl _ZSTD_createCCtx
str x0, [sp, #16]
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, ne
and w0, w8, #0x1
bl _assert
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
ldr x3, [sp, #32]
ldr x4, [sp, #24]
bl _local_ZSTD_compressStream
str x0, [sp, #8]
ldr x0, [sp, #16]
bl _ZSTD_freeCCtx
ldr x0, [sp, #8]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.no_dead_strip _local_ZSTD_compressStream_freshCCtx
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_ZSTD_compressStream_freshCCtx
_local_ZSTD_compressStream_freshCCtx: ## @local_ZSTD_compressStream_freshCCtx
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movb $0, %al
callq _ZSTD_createCCtx
movq %rax, -48(%rbp)
cmpq $0, -48(%rbp)
setne %al
andb $1, %al
movzbl %al, %edi
callq _assert
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
movq -32(%rbp), %rcx
movq -40(%rbp), %r8
callq _local_ZSTD_compressStream
movq %rax, -56(%rbp)
movq -48(%rbp), %rdi
callq _ZSTD_freeCCtx
movq -56(%rbp), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _local_ZSTD_compressStream_freshCCtx
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_local_ZSTD_compressStream_freshCCtx.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_ZSTD_compress_generic_T2_continue
_local_ZSTD_compress_generic_T2_continue: ; @local_ZSTD_compress_generic_T2_continue
.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_cstream@GOTPAGE
ldr x8, [x8, _g_cstream@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
stur x4, [x29, #-40]
ldr w0, [x8]
adrp x8, _ZSTD_c_nbWorkers@GOTPAGE
ldr x8, [x8, _ZSTD_c_nbWorkers@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #2
bl _ZSTD_CCtx_setParameter
ldr x8, [sp] ; 8-byte Folded Reload
ldur x9, [x29, #-24]
add x1, sp, #32
str x9, [sp, #48]
ldur x9, [x29, #-32]
str x9, [sp, #32]
str xzr, [sp, #40]
ldur x9, [x29, #-8]
add x2, sp, #8
str x9, [sp, #24]
ldur x9, [x29, #-16]
str x9, [sp, #8]
str xzr, [sp, #16]
ldr w0, [x8]
adrp x8, _ZSTD_e_continue@GOTPAGE
ldr x8, [x8, _ZSTD_e_continue@GOTPAGEOFF]
ldr w3, [x8]
bl _ZSTD_compressStream2
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x8, _ZSTD_e_end@GOTPAGE
ldr x8, [x8, _ZSTD_e_end@GOTPAGEOFF]
ldr w3, [x8]
add x1, sp, #32
add x2, sp, #8
bl _ZSTD_compressStream2
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_3:
ldr x0, [sp, #40]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.comm _g_cstream,4,2 ; @g_cstream
.comm _ZSTD_c_nbWorkers,4,2 ; @ZSTD_c_nbWorkers
.comm _ZSTD_e_continue,4,2 ; @ZSTD_e_continue
.comm _ZSTD_e_end,4,2 ; @ZSTD_e_end
.no_dead_strip _local_ZSTD_compress_generic_T2_continue
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_ZSTD_compress_generic_T2_continue
_local_ZSTD_compress_generic_T2_continue: ## @local_ZSTD_compress_generic_T2_continue
.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)
movq %r8, -40(%rbp)
movq _g_cstream@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ZSTD_c_nbWorkers@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $2, %edx
callq _ZSTD_CCtx_setParameter
movq -24(%rbp), %rax
movq %rax, -48(%rbp)
movq -32(%rbp), %rax
movq %rax, -64(%rbp)
movq $0, -56(%rbp)
movq -8(%rbp), %rax
movq %rax, -72(%rbp)
movq -16(%rbp), %rax
movq %rax, -88(%rbp)
movq $0, -80(%rbp)
movq _g_cstream@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ZSTD_e_continue@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq -64(%rbp), %rsi
leaq -88(%rbp), %rdx
callq _ZSTD_compressStream2
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq _g_cstream@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ZSTD_e_end@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq -64(%rbp), %rsi
leaq -88(%rbp), %rdx
callq _ZSTD_compressStream2
cmpq $0, %rax
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_3:
movq -56(%rbp), %rax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_cstream,4,2 ## @g_cstream
.comm _ZSTD_c_nbWorkers,4,2 ## @ZSTD_c_nbWorkers
.comm _ZSTD_e_continue,4,2 ## @ZSTD_e_continue
.comm _ZSTD_e_end,4,2 ## @ZSTD_e_end
.no_dead_strip _local_ZSTD_compress_generic_T2_continue
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_local_ZSTD_compress_generic_T2_continue.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_ZSTD_compress_generic_T2_end
_local_ZSTD_compress_generic_T2_end: ; @local_ZSTD_compress_generic_T2_end
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
str x3, [sp, #16]
str x4, [sp, #8]
adrp x8, _g_cstream@GOTPAGE
ldr x8, [x8, _g_cstream@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
ldr w0, [x8]
adrp x8, _ZSTD_c_nbWorkers@GOTPAGE
ldr x8, [x8, _ZSTD_c_nbWorkers@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #2
bl _ZSTD_CCtx_setParameter
ldr x8, [sp] ; 8-byte Folded Reload
ldr w0, [x8]
ldr x1, [sp, #24]
ldr x2, [sp, #16]
ldur x3, [x29, #-8]
ldur x4, [x29, #-16]
bl _ZSTD_compress2
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _g_cstream,4,2 ; @g_cstream
.comm _ZSTD_c_nbWorkers,4,2 ; @ZSTD_c_nbWorkers
.no_dead_strip _local_ZSTD_compress_generic_T2_end
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_ZSTD_compress_generic_T2_end
_local_ZSTD_compress_generic_T2_end: ## @local_ZSTD_compress_generic_T2_end
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq _g_cstream@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ZSTD_c_nbWorkers@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $2, %edx
callq _ZSTD_CCtx_setParameter
movq _g_cstream@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
movq -8(%rbp), %rcx
movq -16(%rbp), %r8
callq _ZSTD_compress2
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_cstream,4,2 ## @g_cstream
.comm _ZSTD_c_nbWorkers,4,2 ## @ZSTD_c_nbWorkers
.no_dead_strip _local_ZSTD_compress_generic_T2_end
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_local_ZSTD_compress_generic_T2_end.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_ZSTD_compress_generic_continue
_local_ZSTD_compress_generic_continue: ; @local_ZSTD_compress_generic_continue
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
stur x4, [x29, #-40]
ldur x8, [x29, #-24]
add x1, sp, #48
str x1, [sp, #8] ; 8-byte Folded Spill
str x8, [sp, #64]
ldur x8, [x29, #-32]
str x8, [sp, #48]
str xzr, [sp, #56]
ldur x8, [x29, #-8]
add x2, sp, #24
str x2, [sp, #16] ; 8-byte Folded Spill
str x8, [sp, #40]
ldur x8, [x29, #-16]
str x8, [sp, #24]
str xzr, [sp, #32]
adrp x8, _g_cstream@GOTPAGE
ldr x8, [x8, _g_cstream@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
ldr w0, [x8]
adrp x8, _ZSTD_e_continue@GOTPAGE
ldr x8, [x8, _ZSTD_e_continue@GOTPAGEOFF]
ldr w3, [x8]
bl _ZSTD_compressStream2
ldr x8, [sp] ; 8-byte Folded Reload
ldr x1, [sp, #8] ; 8-byte Folded Reload
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x8, _ZSTD_e_end@GOTPAGE
ldr x8, [x8, _ZSTD_e_end@GOTPAGEOFF]
ldr w3, [x8]
bl _ZSTD_compressStream2
ldr x0, [sp, #56]
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.comm _g_cstream,4,2 ; @g_cstream
.comm _ZSTD_e_continue,4,2 ; @ZSTD_e_continue
.comm _ZSTD_e_end,4,2 ; @ZSTD_e_end
.no_dead_strip _local_ZSTD_compress_generic_continue
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_ZSTD_compress_generic_continue
_local_ZSTD_compress_generic_continue: ## @local_ZSTD_compress_generic_continue
.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)
movq %r8, -40(%rbp)
movq -24(%rbp), %rax
movq %rax, -48(%rbp)
movq -32(%rbp), %rax
movq %rax, -64(%rbp)
movq $0, -56(%rbp)
movq -8(%rbp), %rax
movq %rax, -72(%rbp)
movq -16(%rbp), %rax
movq %rax, -88(%rbp)
movq $0, -80(%rbp)
movq _g_cstream@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ZSTD_e_continue@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq -64(%rbp), %rsi
leaq -88(%rbp), %rdx
callq _ZSTD_compressStream2
movq _g_cstream@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ZSTD_e_end@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq -64(%rbp), %rsi
leaq -88(%rbp), %rdx
callq _ZSTD_compressStream2
movq -56(%rbp), %rax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_cstream,4,2 ## @g_cstream
.comm _ZSTD_e_continue,4,2 ## @ZSTD_e_continue
.comm _ZSTD_e_end,4,2 ## @ZSTD_e_end
.no_dead_strip _local_ZSTD_compress_generic_continue
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_local_ZSTD_compress_generic_continue.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_ZSTD_compress_generic_end
_local_ZSTD_compress_generic_end: ; @local_ZSTD_compress_generic_end
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
str x3, [sp, #16]
str x4, [sp, #8]
adrp x8, _g_cstream@GOTPAGE
ldr x8, [x8, _g_cstream@GOTPAGEOFF]
ldr w0, [x8]
ldr x1, [sp, #24]
ldr x2, [sp, #16]
ldur x3, [x29, #-8]
ldur x4, [x29, #-16]
bl _ZSTD_compress2
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _g_cstream,4,2 ; @g_cstream
.no_dead_strip _local_ZSTD_compress_generic_end
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_ZSTD_compress_generic_end
_local_ZSTD_compress_generic_end: ## @local_ZSTD_compress_generic_end
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq _g_cstream@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
movq -8(%rbp), %rcx
movq -16(%rbp), %r8
callq _ZSTD_compress2
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_cstream,4,2 ## @g_cstream
.no_dead_strip _local_ZSTD_compress_generic_end
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_local_ZSTD_compress_generic_end.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_ZSTD_decodeLiteralsBlock
_local_ZSTD_decodeLiteralsBlock: ; @local_ZSTD_decodeLiteralsBlock
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
str x3, [sp, #16]
str x4, [sp, #8]
adrp x8, _g_zdc@GOTPAGE
ldr x8, [x8, _g_zdc@GOTPAGEOFF]
ldr w0, [x8]
ldr x1, [sp, #8]
adrp x8, _g_cSize@GOTPAGE
ldr x8, [x8, _g_cSize@GOTPAGEOFF]
ldr w2, [x8]
bl _ZSTD_decodeLiteralsBlock
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _g_zdc,4,2 ; @g_zdc
.comm _g_cSize,4,2 ; @g_cSize
.no_dead_strip _local_ZSTD_decodeLiteralsBlock
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_ZSTD_decodeLiteralsBlock
_local_ZSTD_decodeLiteralsBlock: ## @local_ZSTD_decodeLiteralsBlock
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq _g_zdc@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -40(%rbp), %rsi
movq _g_cSize@GOTPCREL(%rip), %rax
movl (%rax), %edx
callq _ZSTD_decodeLiteralsBlock
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_zdc,4,2 ## @g_zdc
.comm _g_cSize,4,2 ## @g_cSize
.no_dead_strip _local_ZSTD_decodeLiteralsBlock
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_local_ZSTD_decodeLiteralsBlock.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_ZSTD_decodeSeqHeaders
_local_ZSTD_decodeSeqHeaders: ; @local_ZSTD_decodeSeqHeaders
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
str x3, [sp, #16]
str x4, [sp, #8]
adrp x8, _g_zdc@GOTPAGE
ldr x8, [x8, _g_zdc@GOTPAGEOFF]
ldr w0, [x8]
ldr x2, [sp, #8]
adrp x8, _g_cSize@GOTPAGE
ldr x8, [x8, _g_cSize@GOTPAGEOFF]
ldr w3, [x8]
add x1, sp, #4
bl _ZSTD_decodeSeqHeaders
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _g_zdc,4,2 ; @g_zdc
.comm _g_cSize,4,2 ; @g_cSize
.no_dead_strip _local_ZSTD_decodeSeqHeaders
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_ZSTD_decodeSeqHeaders
_local_ZSTD_decodeSeqHeaders: ## @local_ZSTD_decodeSeqHeaders
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq _g_zdc@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -40(%rbp), %rdx
movq _g_cSize@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq -44(%rbp), %rsi
callq _ZSTD_decodeSeqHeaders
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_zdc,4,2 ## @g_zdc
.comm _g_cSize,4,2 ## @g_cSize
.no_dead_strip _local_ZSTD_decodeSeqHeaders
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_local_ZSTD_decodeSeqHeaders.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_ZSTD_decompress
_local_ZSTD_decompress: ; @local_ZSTD_decompress
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
str x3, [sp, #16]
str x4, [sp, #8]
ldr x0, [sp, #24]
ldr x1, [sp, #16]
ldr x2, [sp, #8]
adrp x8, _g_cSize@GOTPAGE
ldr x8, [x8, _g_cSize@GOTPAGEOFF]
ldr w3, [x8]
bl _ZSTD_decompress
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _g_cSize,4,2 ; @g_cSize
.no_dead_strip _local_ZSTD_decompress
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_ZSTD_decompress
_local_ZSTD_decompress: ## @local_ZSTD_decompress
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq -24(%rbp), %rdi
movq -32(%rbp), %rsi
movq -40(%rbp), %rdx
movq _g_cSize@GOTPCREL(%rip), %rax
movl (%rax), %ecx
callq _ZSTD_decompress
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_cSize,4,2 ## @g_cSize
.no_dead_strip _local_ZSTD_decompress
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_local_ZSTD_decompress.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_ZSTD_decompressContinue
_local_ZSTD_decompressContinue: ; @local_ZSTD_decompressContinue
.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, _g_zdc@GOTPAGE
ldr x8, [x8, _g_zdc@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
stur x4, [x29, #-40]
stur xzr, [x29, #-48]
ldur x9, [x29, #-40]
str x9, [sp, #56]
ldr x9, [sp, #56]
adrp x10, _g_cSize@GOTPAGE
ldr x10, [x10, _g_cSize@GOTPAGEOFF]
ldrsw x10, [x10]
add x9, x9, x10, lsl #2
str x9, [sp, #48]
ldur x9, [x29, #-24]
str x9, [sp, #40]
ldur x9, [x29, #-32]
str x9, [sp, #32]
ldr w0, [x8]
bl _ZSTD_decompressBegin
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #56]
ldr x9, [sp, #48]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w0, [x8]
bl _ZSTD_nextSrcSizeToDecompress
ldr x8, [sp, #8] ; 8-byte Folded Reload
str x0, [sp, #24]
ldr w0, [x8]
ldr x1, [sp, #40]
ldr x2, [sp, #32]
ldr x3, [sp, #56]
ldr x4, [sp, #24]
bl _ZSTD_decompressContinue
str x0, [sp, #16]
ldr x9, [sp, #24]
ldr x8, [sp, #56]
add x8, x8, x9, lsl #2
str x8, [sp, #56]
ldr x9, [sp, #16]
ldur x8, [x29, #-48]
add x8, x8, x9
stur x8, [x29, #-48]
ldr x9, [sp, #16]
ldr x8, [sp, #40]
add x8, x8, x9, lsl #2
str x8, [sp, #40]
ldr x9, [sp, #16]
ldr x8, [sp, #32]
subs x8, x8, x9
str x8, [sp, #32]
b LBB0_1
LBB0_3:
ldur x0, [x29, #-48]
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.comm _g_cSize,4,2 ; @g_cSize
.comm _g_zdc,4,2 ; @g_zdc
.no_dead_strip _local_ZSTD_decompressContinue
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_ZSTD_decompressContinue
_local_ZSTD_decompressContinue: ## @local_ZSTD_decompressContinue
.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)
movq %r8, -40(%rbp)
movq $0, -48(%rbp)
movq -40(%rbp), %rax
movq %rax, -56(%rbp)
movq -56(%rbp), %rax
movq _g_cSize@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
shlq $2, %rcx
addq %rcx, %rax
movq %rax, -64(%rbp)
movq -24(%rbp), %rax
movq %rax, -72(%rbp)
movq -32(%rbp), %rax
movq %rax, -80(%rbp)
movq _g_zdc@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _ZSTD_decompressBegin
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -56(%rbp), %rax
cmpq -64(%rbp), %rax
jae LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq _g_zdc@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _ZSTD_nextSrcSizeToDecompress
movq %rax, -88(%rbp)
movq _g_zdc@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -72(%rbp), %rsi
movq -80(%rbp), %rdx
movq -56(%rbp), %rcx
movq -88(%rbp), %r8
callq _ZSTD_decompressContinue
movq %rax, -96(%rbp)
movq -88(%rbp), %rax
shlq $2, %rax
addq -56(%rbp), %rax
movq %rax, -56(%rbp)
movq -96(%rbp), %rax
addq -48(%rbp), %rax
movq %rax, -48(%rbp)
movq -96(%rbp), %rax
shlq $2, %rax
addq -72(%rbp), %rax
movq %rax, -72(%rbp)
movq -96(%rbp), %rcx
movq -80(%rbp), %rax
subq %rcx, %rax
movq %rax, -80(%rbp)
jmp LBB0_1
LBB0_3:
movq -48(%rbp), %rax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_cSize,4,2 ## @g_cSize
.comm _g_zdc,4,2 ## @g_zdc
.no_dead_strip _local_ZSTD_decompressContinue
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_local_ZSTD_decompressContinue.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_ZSTD_decompressStream
_local_ZSTD_decompressStream: ; @local_ZSTD_decompressStream
.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 x4, [x29, #-40]
adrp x8, _g_dstream@GOTPAGE
ldr x8, [x8, _g_dstream@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
ldr w0, [x8]
bl _ZSTD_initDStream
ldr x8, [sp] ; 8-byte Folded Reload
ldur x9, [x29, #-24]
add x1, sp, #32
str x9, [sp, #48]
ldur x9, [x29, #-32]
str x9, [sp, #32]
str xzr, [sp, #40]
ldur x9, [x29, #-40]
add x2, sp, #8
str x9, [sp, #24]
adrp x9, _g_cSize@GOTPAGE
ldr x9, [x9, _g_cSize@GOTPAGEOFF]
ldr w9, [x9]
str w9, [sp, #16]
str xzr, [sp, #8]
ldr w0, [x8]
bl _ZSTD_decompressStream
ldr x0, [sp, #40]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.comm _g_dstream,4,2 ; @g_dstream
.comm _g_cSize,4,2 ; @g_cSize
.no_dead_strip _local_ZSTD_decompressStream
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_ZSTD_decompressStream
_local_ZSTD_decompressStream: ## @local_ZSTD_decompressStream
.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)
movq %r8, -40(%rbp)
movq _g_dstream@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _ZSTD_initDStream
movq -24(%rbp), %rax
movq %rax, -48(%rbp)
movq -32(%rbp), %rax
movq %rax, -64(%rbp)
movq $0, -56(%rbp)
movq -40(%rbp), %rax
movq %rax, -72(%rbp)
movq _g_cSize@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -80(%rbp)
movq $0, -88(%rbp)
movq _g_dstream@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq -64(%rbp), %rsi
leaq -88(%rbp), %rdx
callq _ZSTD_decompressStream
movq -56(%rbp), %rax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_dstream,4,2 ## @g_dstream
.comm _g_cSize,4,2 ## @g_cSize
.no_dead_strip _local_ZSTD_decompressStream
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_local_ZSTD_decompressStream.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function longCommandWArg
_longCommandWArg: ; @longCommandWArg
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
ldr x0, [sp, #16]
bl _strlen
str x0, [sp, #8]
ldur x8, [x29, #-8]
ldr x0, [x8]
ldr x1, [sp, #16]
ldr x2, [sp, #8]
bl _strncmp
subs w8, w0, #0
cset w8, eq
and w8, w8, #0x1
str w8, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x10, [sp, #8]
ldur x9, [x29, #-8]
ldr x8, [x9]
add x8, x8, x10
str x8, [x9]
b LBB0_2
LBB0_2:
ldr w0, [sp, #4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _longCommandWArg
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function longCommandWArg
_longCommandWArg: ## @longCommandWArg
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rdi
callq _strlen
movq %rax, -24(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
callq _strncmp
cmpl $0, %eax
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
movl %eax, -28(%rbp)
cmpl $0, -28(%rbp)
je LBB0_2
## %bb.1:
movq -24(%rbp), %rcx
movq -8(%rbp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
LBB0_2:
movl -28(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _longCommandWArg
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_longCommandWArg.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, #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, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str x0, [sp, #24]
adrp x9, l___const.readU32FromChar.errorMsg@PAGE
add x9, x9, l___const.readU32FromChar.errorMsg@PAGEOFF
ldr q0, [x9]
add x8, sp, #32
str q0, [sp, #32]
ldur q0, [x9, #15]
stur q0, [x8, #15]
str wzr, [sp, #20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8] ; 4-byte Folded Reload
tbz w8, #0, LBB0_7
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
mov w9, #39320
movk w9, #6553, lsl #16
str w9, [sp, #16]
ldr w8, [sp, #20]
subs w8, w8, w9
cset w8, ls
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #32
bl _ERROR_OUT
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
mov w9, #10
mul w8, w8, w9
str w8, [sp, #20]
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w9, w8, #48
ldr w8, [sp, #20]
add w8, w8, w9
str w8, [sp, #20]
ldr x9, [sp, #24]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_1
LBB0_7:
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #75
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #77
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_9
LBB0_9:
mov w8, #4194303
str w8, [sp, #12]
ldr w8, [sp, #20]
subs w8, w8, #1024, lsl #12 ; =4194304
cset w8, lo
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
add x0, sp, #32
bl _ERROR_OUT
b LBB0_11
LBB0_11:
ldr w8, [sp, #20]
lsl w8, w8, #10
str w8, [sp, #20]
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #77
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_12
LBB0_12:
ldr w8, [sp, #20]
subs w8, w8, #1024, lsl #12 ; =4194304
cset w8, lo
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
add x0, sp, #32
bl _ERROR_OUT
b LBB0_14
LBB0_14:
ldr w8, [sp, #20]
lsl w8, w8, #10
str w8, [sp, #20]
b LBB0_15
LBB0_15:
ldr x9, [sp, #24]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #105
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16:
ldr x9, [sp, #24]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_17
LBB0_17:
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #66
cset w8, ne
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18:
ldr x9, [sp, #24]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_19
LBB0_19:
b LBB0_20
LBB0_20:
ldr w8, [sp, #20]
str w8, [sp, #4] ; 4-byte Folded Spill
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_22
b LBB0_21
LBB0_21:
bl ___stack_chk_fail
LBB0_22:
ldr w0, [sp, #4] ; 4-byte Folded Reload
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l___const.readU32FromChar.errorMsg: ; @__const.readU32FromChar.errorMsg
.asciz "error: numeric value too large"
.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
subq $80, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -56(%rbp)
movq L___const.readU32FromChar.errorMsg(%rip), %rax
movq %rax, -48(%rbp)
movq L___const.readU32FromChar.errorMsg+8(%rip), %rax
movq %rax, -40(%rbp)
movq L___const.readU32FromChar.errorMsg+16(%rip), %rax
movq %rax, -32(%rbp)
movl L___const.readU32FromChar.errorMsg+24(%rip), %eax
movl %eax, -24(%rbp)
movw L___const.readU32FromChar.errorMsg+28(%rip), %ax
movw %ax, -20(%rbp)
movb L___const.readU32FromChar.errorMsg+30(%rip), %al
movb %al, -18(%rbp)
movl $0, -60(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -69(%rbp) ## 1-byte Spill
jl LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -69(%rbp) ## 1-byte Spill
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movb -69(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_4
jmp LBB0_7
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movl $429496728, -64(%rbp) ## imm = 0x19999998
cmpl $429496728, -60(%rbp) ## imm = 0x19999998
jbe LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
leaq -48(%rbp), %rdi
callq _ERROR_OUT
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
imull $10, -60(%rbp), %eax
movl %eax, -60(%rbp)
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
subl $48, %eax
addl -60(%rbp), %eax
movl %eax, -60(%rbp)
movq -56(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
jmp LBB0_1
LBB0_7:
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $75, %eax
je LBB0_9
## %bb.8:
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $77, %eax
jne LBB0_20
LBB0_9:
movl $4194303, -68(%rbp) ## imm = 0x3FFFFF
cmpl $4194303, -60(%rbp) ## imm = 0x3FFFFF
jbe LBB0_11
## %bb.10:
leaq -48(%rbp), %rdi
callq _ERROR_OUT
LBB0_11:
movl -60(%rbp), %eax
shll $10, %eax
movl %eax, -60(%rbp)
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $77, %eax
jne LBB0_15
## %bb.12:
cmpl $4194303, -60(%rbp) ## imm = 0x3FFFFF
jbe LBB0_14
## %bb.13:
leaq -48(%rbp), %rdi
callq _ERROR_OUT
LBB0_14:
movl -60(%rbp), %eax
shll $10, %eax
movl %eax, -60(%rbp)
LBB0_15:
movq -56(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $105, %eax
jne LBB0_17
## %bb.16:
movq -56(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
LBB0_17:
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $66, %eax
jne LBB0_19
## %bb.18:
movq -56(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
LBB0_19:
jmp LBB0_20
LBB0_20:
movl -60(%rbp), %eax
movl %eax, -76(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_22
## %bb.21:
movl -76(%rbp), %eax ## 4-byte Reload
addq $80, %rsp
popq %rbp
retq
LBB0_22:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
.p2align 4 ## @__const.readU32FromChar.errorMsg
L___const.readU32FromChar.errorMsg:
.asciz "error: numeric value too large"
.no_dead_strip _readU32FromChar
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_readU32FromChar.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, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
ldr x8, [sp, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Usage :\n"
l_.str.1: ; @.str.1
.asciz " %s [arg] file1 file2 ... fileX\n"
l_.str.2: ; @.str.2
.asciz "Arguments :\n"
l_.str.3: ; @.str.3
.asciz " -H/-h : Help (this text + advanced options)\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)
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
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage :\n"
L_.str.1: ## @.str.1
.asciz " %s [arg] file1 file2 ... fileX\n"
L_.str.2: ## @.str.2
.asciz "Arguments :\n"
L_.str.3: ## @.str.3
.asciz " -H/-h : Help (this text + advanced options)\n"
.no_dead_strip _usage
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_usage.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function usage_advanced
_usage_advanced: ; @usage_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]
ldr x0, [sp, #8]
bl _usage
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
adrp x8, _DEFAULT_CLEVEL@GOTPAGE
ldr x8, [x8, _DEFAULT_CLEVEL@GOTPAGEOFF]
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
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
adrp x8, _COMPRESSIBILITY_DEFAULT@GOTPAGE
ldr x8, [x8, _COMPRESSIBILITY_DEFAULT@GOTPAGEOFF]
ldr w8, [x8]
mov w9, #100
mul w10, w8, w9
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _DISPLAY
adrp x8, _kSampleSizeDefault@GOTPAGE
ldr x8, [x8, _kSampleSizeDefault@GOTPAGEOFF]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
adrp x8, _NBLOOPS@GOTPAGE
ldr x8, [x8, _NBLOOPS@GOTPAGEOFF]
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
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\nAdvanced options :\n"
l_.str.1: ; @.str.1
.asciz " -b# : test only function # \n"
l_.str.2: ; @.str.2
.asciz " -l# : benchmark functions at that compression level (default : %i)\n"
.comm _DEFAULT_CLEVEL,4,2 ; @DEFAULT_CLEVEL
l_.str.3: ; @.str.3
.asciz "--zstd= : custom parameter selection. Format same as zstdcli \n"
l_.str.4: ; @.str.4
.asciz " -P# : sample compressibility (default : %.1f%%)\n"
.comm _COMPRESSIBILITY_DEFAULT,4,2 ; @COMPRESSIBILITY_DEFAULT
l_.str.5: ; @.str.5
.asciz " -B# : sample size (default : %u)\n"
.comm _kSampleSizeDefault,8,3 ; @kSampleSizeDefault
l_.str.6: ; @.str.6
.asciz " -i# : iteration loops [1-9](default : %i)\n"
.comm _NBLOOPS,4,2 ; @NBLOOPS
.no_dead_strip _usage_advanced
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function usage_advanced
_usage_advanced: ## @usage_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 -8(%rbp), %rdi
callq _usage
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _DEFAULT_CLEVEL@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _COMPRESSIBILITY_DEFAULT@GOTPCREL(%rip), %rax
imull $100, (%rax), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _kSampleSizeDefault@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl %eax, %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _NBLOOPS@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _DISPLAY
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\nAdvanced options :\n"
L_.str.1: ## @.str.1
.asciz " -b# : test only function # \n"
L_.str.2: ## @.str.2
.asciz " -l# : benchmark functions at that compression level (default : %i)\n"
.comm _DEFAULT_CLEVEL,4,2 ## @DEFAULT_CLEVEL
L_.str.3: ## @.str.3
.asciz "--zstd= : custom parameter selection. Format same as zstdcli \n"
L_.str.4: ## @.str.4
.asciz " -P# : sample compressibility (default : %.1f%%)\n"
.comm _COMPRESSIBILITY_DEFAULT,4,2 ## @COMPRESSIBILITY_DEFAULT
L_.str.5: ## @.str.5
.asciz " -B# : sample size (default : %u)\n"
.comm _kSampleSizeDefault,8,3 ## @kSampleSizeDefault
L_.str.6: ## @.str.6
.asciz " -i# : iteration loops [1-9](default : %i)\n"
.comm _NBLOOPS,4,2 ## @NBLOOPS
.no_dead_strip _usage_advanced
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fullbench.c_usage_advanced.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_decodeSequences
_FUZ_decodeSequences: ; @FUZ_decodeSequences
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
str x3, [sp, #32]
str x4, [sp, #24]
str xzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr x8, [sp, #16]
ldur x9, [x29, #-24]
subs x9, x9, #1
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldur x9, [x29, #-16]
ldr x10, [sp, #16]
mov x11, #24
str x11, [sp] ; 8-byte Folded Spill
mul x10, x10, x11
ldrsw x9, [x9, x10]
add x8, x8, x9, lsl #2
ldur x9, [x29, #-16]
ldr x10, [sp, #16]
mul x10, x10, x11
add x9, x9, x10
ldr x9, [x9, #8]
add x8, x8, x9, lsl #2
ldur x9, [x29, #-8]
ldr x10, [sp, #24]
add x9, x9, x10, lsl #2
subs x8, x8, x9
cset w8, lo
and w0, w8, #0x1
bl _assert
ldr x11, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #32]
ldur x9, [x29, #-16]
ldr x10, [sp, #16]
mul x10, x10, x11
ldrsw x9, [x9, x10]
add x8, x8, x9, lsl #2
ldur x9, [x29, #-16]
ldr x10, [sp, #16]
mul x10, x10, x11
add x9, x9, x10
ldr x9, [x9, #8]
add x8, x8, x9, lsl #2
ldr x9, [sp, #32]
ldr x10, [sp, #24]
add x9, x9, x10, lsl #2
subs x8, x8, x9
cset w8, lo
and w0, w8, #0x1
bl _assert
ldr x10, [sp] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
ldr x1, [sp, #32]
ldur x8, [x29, #-16]
ldr x9, [sp, #16]
mul x9, x9, x10
ldrsw x2, [x8, x9]
bl _memcpy
ldr x10, [sp] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
ldr x9, [sp, #16]
mul x9, x9, x10
ldrsw x9, [x8, x9]
ldur x8, [x29, #-8]
add x8, x8, x9, lsl #2
stur x8, [x29, #-8]
ldur x8, [x29, #-16]
ldr x9, [sp, #16]
mul x9, x9, x10
ldrsw x9, [x8, x9]
ldr x8, [sp, #32]
add x8, x8, x9, lsl #2
str x8, [sp, #32]
ldur x8, [x29, #-16]
ldr x9, [sp, #16]
mul x9, x9, x10
ldrsw x9, [x8, x9]
ldr x8, [sp, #24]
subs x8, x8, x9
str x8, [sp, #24]
str xzr, [sp, #8]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #8]
ldur x9, [x29, #-16]
ldr x10, [sp, #16]
mov x11, #24
mul x10, x10, x11
add x9, x9, x10
ldr x9, [x9, #8]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldur x8, [x29, #-8]
ldr x9, [sp, #8]
ldur x10, [x29, #-16]
ldr x11, [sp, #16]
mov x12, #24
mul x11, x11, x12
add x10, x10, x11
ldr x10, [x10, #16]
subs x9, x9, x10
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-8]
ldr x10, [sp, #8]
str w8, [x9, x10, lsl #2]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldr x9, [sp, #16]
mov x10, #24
mul x9, x9, x10
add x8, x8, x9
ldr x9, [x8, #8]
ldur x8, [x29, #-8]
add x8, x8, x9, lsl #2
stur x8, [x29, #-8]
ldur x8, [x29, #-16]
ldr x9, [sp, #16]
mul x9, x9, x10
add x8, x8, x9
ldr x9, [x8, #8]
ldr x8, [sp, #32]
add x8, x8, x9, lsl #2
str x8, [sp, #32]
ldur x8, [x29, #-16]
ldr x9, [sp, #16]
mul x9, x9, x10
add x8, x8, x9
ldr x9, [x8, #8]
ldr x8, [sp, #24]
subs x8, x8, x9
str x8, [sp, #24]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_1
LBB0_8:
ldur x0, [x29, #-8]
ldr x1, [sp, #32]
ldr x2, [sp, #24]
bl _memcpy
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.no_dead_strip _FUZ_decodeSequences
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_decodeSequences
_FUZ_decodeSequences: ## @FUZ_decodeSequences
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq $0, -48(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movq -48(%rbp), %rax
movq -24(%rbp), %rcx
subq $1, %rcx
cmpq %rcx, %rax
jae LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq -16(%rbp), %rcx
imulq $24, -48(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
shlq $2, %rcx
addq %rcx, %rax
movq -16(%rbp), %rcx
imulq $24, -48(%rbp), %rdx
addq %rdx, %rcx
movq 8(%rcx), %rcx
shlq $2, %rcx
addq %rcx, %rax
movq -8(%rbp), %rcx
movq -40(%rbp), %rdx
shlq $2, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
setb %al
andb $1, %al
movzbl %al, %edi
callq _assert
movq -32(%rbp), %rax
movq -16(%rbp), %rcx
imulq $24, -48(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
shlq $2, %rcx
addq %rcx, %rax
movq -16(%rbp), %rcx
imulq $24, -48(%rbp), %rdx
addq %rdx, %rcx
movq 8(%rcx), %rcx
shlq $2, %rcx
addq %rcx, %rax
movq -32(%rbp), %rcx
movq -40(%rbp), %rdx
shlq $2, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
setb %al
andb $1, %al
movzbl %al, %edi
callq _assert
movq -8(%rbp), %rdi
movq -32(%rbp), %rsi
movq -16(%rbp), %rax
imulq $24, -48(%rbp), %rcx
addq %rcx, %rax
movslq (%rax), %rdx
callq _memcpy
movq -16(%rbp), %rax
imulq $24, -48(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %ecx
movq -8(%rbp), %rax
movslq %ecx, %rcx
shlq $2, %rcx
addq %rcx, %rax
movq %rax, -8(%rbp)
movq -16(%rbp), %rax
imulq $24, -48(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %ecx
movq -32(%rbp), %rax
movslq %ecx, %rcx
shlq $2, %rcx
addq %rcx, %rax
movq %rax, -32(%rbp)
movq -16(%rbp), %rax
imulq $24, -48(%rbp), %rcx
addq %rcx, %rax
movslq (%rax), %rcx
movq -40(%rbp), %rax
subq %rcx, %rax
movq %rax, -40(%rbp)
movq $0, -56(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -56(%rbp), %rax
movq -16(%rbp), %rcx
imulq $24, -48(%rbp), %rdx
addq %rdx, %rcx
cmpq 8(%rcx), %rax
jae LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movq -8(%rbp), %rax
movq -56(%rbp), %rcx
movq -16(%rbp), %rdx
imulq $24, -48(%rbp), %rsi
addq %rsi, %rdx
subq 16(%rdx), %rcx
movl (%rax,%rcx,4), %edx
movq -8(%rbp), %rax
movq -56(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movq -56(%rbp), %rax
addq $1, %rax
movq %rax, -56(%rbp)
jmp LBB0_3
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
imulq $24, -48(%rbp), %rcx
addq %rcx, %rax
movq 8(%rax), %rax
shlq $2, %rax
addq -8(%rbp), %rax
movq %rax, -8(%rbp)
movq -16(%rbp), %rax
imulq $24, -48(%rbp), %rcx
addq %rcx, %rax
movq 8(%rax), %rax
shlq $2, %rax
addq -32(%rbp), %rax
movq %rax, -32(%rbp)
movq -16(%rbp), %rax
imulq $24, -48(%rbp), %rcx
addq %rcx, %rax
movq 8(%rax), %rcx
movq -40(%rbp), %rax
subq %rcx, %rax
movq %rax, -40(%rbp)
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movq -48(%rbp), %rax
addq $1, %rax
movq %rax, -48(%rbp)
jmp LBB0_1
LBB0_8:
movq -8(%rbp), %rdi
movq -32(%rbp), %rsi
movq -40(%rbp), %rdx
callq _memcpy
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _FUZ_decodeSequences
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fuzzer.c_FUZ_decodeSequences.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZ_bug976 ; -- Begin function FUZ_bug976
.p2align 2
_FUZ_bug976: ; @FUZ_bug976
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _ZSTD_HASHLOG_MAX@GOTPAGE
ldr x8, [x8, _ZSTD_HASHLOG_MAX@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #31
cset w8, lt
and w0, w8, #0x1
bl _assert
adrp x8, _ZSTD_CHAINLOG_MAX@GOTPAGE
ldr x8, [x8, _ZSTD_CHAINLOG_MAX@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #31
cset w8, lt
and w0, w8, #0x1
bl _assert
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.comm _ZSTD_HASHLOG_MAX,4,2 ; @ZSTD_HASHLOG_MAX
.comm _ZSTD_CHAINLOG_MAX,4,2 ; @ZSTD_CHAINLOG_MAX
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _FUZ_bug976 ## -- Begin function FUZ_bug976
.p2align 4, 0x90
_FUZ_bug976: ## @FUZ_bug976
.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_HASHLOG_MAX@GOTPCREL(%rip), %rax
cmpl $31, (%rax)
setl %al
andb $1, %al
movzbl %al, %edi
callq _assert
movq _ZSTD_CHAINLOG_MAX@GOTPCREL(%rip), %rax
cmpl $31, (%rax)
setl %al
andb $1, %al
movzbl %al, %edi
callq _assert
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_HASHLOG_MAX,4,2 ## @ZSTD_HASHLOG_MAX
.comm _ZSTD_CHAINLOG_MAX,4,2 ## @ZSTD_CHAINLOG_MAX
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fuzzer.c_FUZ_bug976.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_highbit32
_FUZ_highbit32: ; @FUZ_highbit32
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #8]
str wzr, [sp, #4]
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
str wzr, [sp, #12]
b LBB0_6
LBB0_2:
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #8]
asr w8, w8, #1
str w8, [sp, #8]
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_3
LBB0_5:
ldr w8, [sp, #4]
str w8, [sp, #12]
b LBB0_6
LBB0_6:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.no_dead_strip _FUZ_highbit32
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_highbit32
_FUZ_highbit32: ## @FUZ_highbit32
.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 $0, -12(%rbp)
cmpl $0, -8(%rbp)
jne LBB0_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB0_6
LBB0_2:
jmp LBB0_3
LBB0_3: ## =>This Inner Loop Header: Depth=1
cmpl $0, -8(%rbp)
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movl -8(%rbp), %eax
sarl $1, %eax
movl %eax, -8(%rbp)
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_3
LBB0_5:
movl -12(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_6:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _FUZ_highbit32
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fuzzer.c_FUZ_highbit32.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_makeParams
_FUZ_makeParams: ; @FUZ_makeParams
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #4]
str w1, [sp]
ldr w8, [sp, #4]
str w8, [sp, #12]
ldr w8, [sp]
str w8, [sp, #8]
ldr x0, [sp, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.no_dead_strip _FUZ_makeParams
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_makeParams
_FUZ_makeParams: ## @FUZ_makeParams
.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 %esi, -16(%rbp)
movl -12(%rbp), %eax
movl %eax, -4(%rbp)
movl -16(%rbp), %eax
movl %eax, -8(%rbp)
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _FUZ_makeParams
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fuzzer.c_FUZ_makeParams.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_mallocTests
_FUZ_mallocTests: ; @FUZ_mallocTests
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #28]
str d0, [sp, #16]
str w1, [sp, #12]
mov w0, #0
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _FUZ_mallocTests
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_mallocTests
_FUZ_mallocTests: ## @FUZ_mallocTests
.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)
movsd %xmm0, -16(%rbp)
movl %esi, -20(%rbp)
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _FUZ_mallocTests
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fuzzer.c_FUZ_mallocTests.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_rLogLength
_FUZ_rLogLength: ; @FUZ_rLogLength
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
ldr x9, [sp, #16]
mov x8, #1
lsl x8, x8, x9
subs x8, x8, #1
str x8, [sp, #8]
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp] ; 8-byte Folded Spill
ldur x0, [x29, #-8]
bl _FUZ_rand
ldr x8, [sp] ; 8-byte Folded Reload
ldr x9, [sp, #8]
and x9, x0, x9
add x0, x8, x9
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _FUZ_rLogLength
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_rLogLength
_FUZ_rLogLength: ## @FUZ_rLogLength
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rcx
movl $1, %eax
## kill: def $cl killed $rcx
shlq %cl, %rax
subq $1, %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq -8(%rbp), %rdi
callq _FUZ_rand
movq %rax, %rcx
movq -32(%rbp), %rax ## 8-byte Reload
andq -24(%rbp), %rcx
addq %rcx, %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _FUZ_rLogLength
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fuzzer.c_FUZ_rLogLength.c
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.