x86
stringlengths 122
1.3M
| arm
stringlengths 122
1.35M
| file
stringlengths 20
207
| source
stringclasses 2
values |
|---|---|---|---|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _br_find_sbin_dir ## -- Begin function br_find_sbin_dir
.p2align 4, 0x90
_br_find_sbin_dir: ## @br_find_sbin_dir
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
xorl %edi, %edi
callq _br_find_prefix
testq %rax, %rax
je LBB0_1
## %bb.3:
movq %rax, %rbx
leaq L_.str(%rip), %rsi
movq %rax, %rdi
callq _br_build_path
movq %rax, %r14
movq %rbx, %rdi
callq _free
movq %r14, %rax
LBB0_5:
popq %rbx
popq %r14
popq %rbp
retq
LBB0_1:
testq %r14, %r14
je LBB0_4
## %bb.2:
movq %r14, %rdi
popq %rbx
popq %r14
popq %rbp
jmp _strdup ## TAILCALL
LBB0_4:
xorl %eax, %eax
jmp LBB0_5
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "sbin"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _br_find_sbin_dir ; -- Begin function br_find_sbin_dir
.p2align 2
_br_find_sbin_dir: ; @br_find_sbin_dir
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
mov x0, #0
bl _br_find_prefix
cbz x0, LBB0_3
; %bb.1:
mov x20, x0
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
bl _br_build_path
mov x19, x0
mov x0, x20
bl _free
mov x0, x19
LBB0_2:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_3:
cbz x19, LBB0_5
; %bb.4:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _strdup
LBB0_5:
mov x0, #0
b LBB0_2
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "sbin"
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_binreloc.c_dJyi14798182285183_br_find_sbin_dir.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _br_init ## -- Begin function br_init
.p2align 4, 0x90
_br_init: ## @br_init
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq __br_find_exe
movq _exe@GOTPCREL(%rip), %rcx
movq %rax, (%rcx)
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _exe,8,3 ## @exe
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _br_init ; -- Begin function br_init
.p2align 2
_br_init: ; @br_init
.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
bl __br_find_exe
Lloh0:
adrp x8, _exe@GOTPAGE
Lloh1:
ldr x8, [x8, _exe@GOTPAGEOFF]
Lloh2:
str x0, [x8]
cmp x0, #0
cset w0, ne
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotStr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _exe,8,3 ; @exe
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_binreloc.c_dJyi14798182285183_br_init.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _br_init_lib ## -- Begin function br_init_lib
.p2align 4, 0x90
_br_init_lib: ## @br_init_lib
.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, %rsi
leaq L_.str(%rip), %rdi
callq __br_find_exe_for_symbol
movq _exe@GOTPCREL(%rip), %rcx
movq %rax, (%rcx)
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.space 1
.comm _exe,8,3 ## @exe
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _br_init_lib ; -- Begin function br_init_lib
.p2align 2
_br_init_lib: ; @br_init_lib
.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
mov x1, x0
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl __br_find_exe_for_symbol
Lloh2:
adrp x8, _exe@GOTPAGE
Lloh3:
ldr x8, [x8, _exe@GOTPAGEOFF]
Lloh4:
str x0, [x8]
cmp x0, #0
cset w0, ne
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotStr Lloh2, Lloh3, Lloh4
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.space 1
.comm _exe,8,3 ; @exe
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_binreloc.c_dJyi14798182285183_br_init_lib.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _br_strcat ## -- Begin function br_strcat
.p2align 4, 0x90
_br_strcat: ## @br_strcat
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %r15
testq %rdi, %rdi
leaq L_.str(%rip), %rax
cmoveq %rax, %r15
movq %rsi, %r14
testq %rsi, %rsi
cmoveq %rax, %r14
movq %r15, %rdi
callq _strlen
movq %rax, %rbx
movq %r14, %rdi
callq _strlen
movq %rax, %r12
addq %rbx, %rax
movq %rax, -48(%rbp) ## 8-byte Spill
leaq (%r12,%rbx), %rdi
incq %rdi
callq _malloc
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq _memcpy
addq %r13, %rbx
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq _memcpy
movq -48(%rbp), %rax ## 8-byte Reload
movb $0, (%r13,%rax)
movq %r13, %rax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.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 _br_strcat ; -- Begin function br_strcat
.p2align 2
_br_strcat: ; @br_strcat
.cfi_startproc
; %bb.0:
stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 64
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
Lloh0:
adrp x8, l_.str@PAGE
Lloh1:
add x8, x8, l_.str@PAGEOFF
cmp x0, #0
csel x19, x8, x0, eq
cmp x1, #0
csel x20, x8, x1, eq
mov x0, x19
bl _strlen
mov x21, x0
mov x0, x20
bl _strlen
mov x22, x0
add x24, x0, x21
add x0, x24, #1
bl _malloc
mov x23, x0
mov x1, x19
mov x2, x21
bl _memcpy
add x0, x23, x21
mov x1, x20
mov x2, x22
bl _memcpy
strb wzr, [x23, x24]
mov x0, x23
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.space 1
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_binreloc.c_dJyi14798182285183_br_strcat.c
|
anghabench
|
.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
pushq %r15
pushq %r14
pushq %rbx
subq $24, %rsp
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %r15
cmpl $1, %edi
jle LBB0_10
## %bb.1:
movl %edi, %ebx
movq $0, -40(%rbp)
movq $0, -32(%rbp)
movq 8(%r15), %r14
leaq -48(%rbp), %rsi
movq %r14, %rdi
callq _stat
testq %rax, %rax
js LBB0_11
## %bb.2:
cmpl $3, %ebx
ja LBB0_5
## %bb.3:
leaq L_.str.6(%rip), %rsi
leaq -40(%rbp), %rdx
leaq -32(%rbp), %rcx
movq %r14, %rdi
callq _appimage_get_elf_section_offset_and_length
movq -32(%rbp), %r8
testq %r8, %r8
je LBB0_7
## %bb.4:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _segment_name@GOTPCREL(%rip), %rax
movq (%rax), %rdx
movq -40(%rbp), %rcx
leaq L_.str.7(%rip), %rsi
xorl %eax, %eax
callq _fprintf
movq -32(%rbp), %rcx
jmp LBB0_8
LBB0_5:
cmpl $4, %ebx
jne LBB0_14
## %bb.6:
movq 16(%r15), %rdi
callq _atoi
movq %rax, -40(%rbp)
movq 24(%r15), %rdi
callq _atoi
movq %rax, %rcx
movq %rax, -32(%rbp)
jmp LBB0_8
LBB0_7:
xorl %ecx, %ecx
LBB0_8:
movslq -48(%rbp), %rax
movq -40(%rbp), %rdx
leaq (%rcx,%rdx), %rsi
cmpq %rax, %rsi
ja LBB0_12
## %bb.9:
leaq _main.buffer(%rip), %r15
movq %r14, %rdi
movq %r15, %rsi
callq _sha256_file
movl %eax, %ebx
leaq L_.str.9(%rip), %rdi
movq %r15, %rsi
callq _printf
movl %ebx, %eax
addq $24, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
LBB0_10:
movq _stderr@GOTPCREL(%rip), %rbx
movl (%rbx), %edi
movq (%r15), %rdx
leaq L_.str(%rip), %rsi
xorl %eax, %eax
callq _fprintf
movl (%rbx), %edi
movq _segment_name@GOTPCREL(%rip), %rax
movq (%rax), %rdx
leaq L_.str.1(%rip), %rsi
xorl %eax, %eax
callq _fprintf
movl (%rbx), %edi
leaq L_.str.2(%rip), %rsi
xorl %eax, %eax
callq _fprintf
movl (%rbx), %edi
leaq L_.str.3(%rip), %rsi
xorl %eax, %eax
callq _fprintf
movl (%rbx), %edi
leaq L_.str.4(%rip), %rsi
jmp LBB0_13
LBB0_11:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.5(%rip), %rsi
movq %r14, %rdx
xorl %eax, %eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_12:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.8(%rip), %rsi
LBB0_13:
xorl %eax, %eax
callq _fprintf
LBB0_14:
movl $1, %edi
callq _exit
.cfi_endproc
## -- End function
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage: %s file offset length\n"
L_.str.1: ## @.str.1
.asciz "If no offset and length are provided, the ELF section '%s' is skipped\n\n"
.comm _segment_name,8,3 ## @segment_name
L_.str.2: ## @.str.2
.asciz "Calculate a sha256 of a file except a skipped area from offset to offset+length bytes\n"
L_.str.3: ## @.str.3
.asciz "which is replaced with 0x00 during checksum calculation.\n"
L_.str.4: ## @.str.4
.asciz "This is useful when a signature is placed in the skipped area.\n"
L_.str.5: ## @.str.5
.asciz "not existing file: %s\n"
L_.str.6: ## @.str.6
.asciz ".sha256_sig"
L_.str.7: ## @.str.7
.asciz "Skipping ELF section %s with offset %lu, length %lu\n"
L_.str.8: ## @.str.8
.asciz "offset+length cannot be less than the file size\n"
.zerofill __DATA,__bss,_main.buffer,65,4 ## @main.buffer
L_.str.9: ## @.str.9
.asciz "%s\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 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x22, x21, [sp, #48] ; 16-byte Folded Spill
stp x20, x19, [sp, #64] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x20, x1
cmp w0, #1
b.le LBB0_10
; %bb.1:
mov x21, x0
stp xzr, xzr, [sp, #32]
ldr x19, [x20, #8]
add x1, sp, #24
mov x0, x19
bl _stat
tbnz x0, #63, LBB0_11
; %bb.2:
cmp w21, #3
b.hi LBB0_5
; %bb.3:
Lloh0:
adrp x1, l_.str.6@PAGE
Lloh1:
add x1, x1, l_.str.6@PAGEOFF
add x2, sp, #40
add x3, sp, #32
mov x0, x19
bl _appimage_get_elf_section_offset_and_length
ldr x8, [sp, #32]
cbz x8, LBB0_7
; %bb.4:
Lloh2:
adrp x9, _stderr@GOTPAGE
Lloh3:
ldr x9, [x9, _stderr@GOTPAGEOFF]
Lloh4:
ldr w0, [x9]
Lloh5:
adrp x9, _segment_name@GOTPAGE
Lloh6:
ldr x9, [x9, _segment_name@GOTPAGEOFF]
Lloh7:
ldr x9, [x9]
ldr x10, [sp, #40]
stp x10, x8, [sp, #8]
str x9, [sp]
Lloh8:
adrp x1, l_.str.7@PAGE
Lloh9:
add x1, x1, l_.str.7@PAGEOFF
bl _fprintf
ldr x3, [sp, #32]
b LBB0_8
LBB0_5:
cmp w21, #4
b.ne LBB0_14
; %bb.6:
ldr x0, [x20, #16]
bl _atoi
str x0, [sp, #40]
ldr x0, [x20, #24]
bl _atoi
mov x3, x0
str x0, [sp, #32]
b LBB0_8
LBB0_7:
mov x3, #0
LBB0_8:
ldrsw x8, [sp, #24]
ldr x2, [sp, #40]
add x9, x3, x2
cmp x9, x8
b.hi LBB0_12
; %bb.9:
Lloh10:
adrp x20, _main.buffer@PAGE
Lloh11:
add x20, x20, _main.buffer@PAGEOFF
mov x0, x19
mov x1, x20
bl _sha256_file
mov x19, x0
Lloh12:
adrp x0, l_.str.9@PAGE
Lloh13:
add x0, x0, l_.str.9@PAGEOFF
mov x1, x20
bl _printf
mov x0, x19
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
ldp x22, x21, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #96
ret
LBB0_10:
Lloh14:
adrp x19, _stderr@GOTPAGE
Lloh15:
ldr x19, [x19, _stderr@GOTPAGEOFF]
ldr w0, [x19]
ldr x8, [x20]
str x8, [sp]
Lloh16:
adrp x1, l_.str@PAGE
Lloh17:
add x1, x1, l_.str@PAGEOFF
bl _fprintf
ldr w0, [x19]
Lloh18:
adrp x8, _segment_name@GOTPAGE
Lloh19:
ldr x8, [x8, _segment_name@GOTPAGEOFF]
Lloh20:
ldr x8, [x8]
str x8, [sp]
Lloh21:
adrp x1, l_.str.1@PAGE
Lloh22:
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
ldr w0, [x19]
Lloh23:
adrp x1, l_.str.2@PAGE
Lloh24:
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
ldr w0, [x19]
Lloh25:
adrp x1, l_.str.3@PAGE
Lloh26:
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
ldr w0, [x19]
Lloh27:
adrp x1, l_.str.4@PAGE
Lloh28:
add x1, x1, l_.str.4@PAGEOFF
b LBB0_13
LBB0_11:
Lloh29:
adrp x8, _stderr@GOTPAGE
Lloh30:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh31:
ldr w0, [x8]
str x19, [sp]
Lloh32:
adrp x1, l_.str.5@PAGE
Lloh33:
add x1, x1, l_.str.5@PAGEOFF
b LBB0_13
LBB0_12:
Lloh34:
adrp x8, _stderr@GOTPAGE
Lloh35:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh36:
ldr w0, [x8]
Lloh37:
adrp x1, l_.str.8@PAGE
Lloh38:
add x1, x1, l_.str.8@PAGEOFF
LBB0_13:
bl _fprintf
LBB0_14:
mov w0, #1
bl _exit
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh27, Lloh28
.loh AdrpAdd Lloh25, Lloh26
.loh AdrpAdd Lloh23, Lloh24
.loh AdrpAdd Lloh21, Lloh22
.loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpLdrGot Lloh14, Lloh15
.loh AdrpAdd Lloh32, Lloh33
.loh AdrpLdrGotLdr Lloh29, Lloh30, Lloh31
.loh AdrpAdd Lloh37, Lloh38
.loh AdrpLdrGotLdr Lloh34, Lloh35, Lloh36
.cfi_endproc
; -- End function
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Usage: %s file offset length\n"
l_.str.1: ; @.str.1
.asciz "If no offset and length are provided, the ELF section '%s' is skipped\n\n"
.comm _segment_name,8,3 ; @segment_name
l_.str.2: ; @.str.2
.asciz "Calculate a sha256 of a file except a skipped area from offset to offset+length bytes\n"
l_.str.3: ; @.str.3
.asciz "which is replaced with 0x00 during checksum calculation.\n"
l_.str.4: ; @.str.4
.asciz "This is useful when a signature is placed in the skipped area.\n"
l_.str.5: ; @.str.5
.asciz "not existing file: %s\n"
l_.str.6: ; @.str.6
.asciz ".sha256_sig"
l_.str.7: ; @.str.7
.asciz "Skipping ELF section %s with offset %lu, length %lu\n"
l_.str.8: ; @.str.8
.asciz "offset+length cannot be less than the file size\n"
.zerofill __DATA,__bss,_main.buffer,65,0 ; @main.buffer
l_.str.9: ; @.str.9
.asciz "%s\n"
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_digest.c_main.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sha256_file ## -- Begin function sha256_file
.p2align 4, 0x90
_sha256_file: ## @sha256_file
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $56, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %ecx, %ebx
movl %edx, %r12d
movq %rsi, %r15
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
leaq L_.str(%rip), %rsi
callq _fopen
movq %rax, -64(%rbp) ## 8-byte Spill
testq %rax, %rax
je LBB0_1
## %bb.2:
movq %r15, -72(%rbp) ## 8-byte Spill
movq %rsp, %r15
movq _SHA256_DIGEST_LENGTH@GOTPCREL(%rip), %rax
movl (%rax), %eax
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, -88(%rbp) ## 8-byte Spill
leaq -52(%rbp), %rdi
callq _SHA256_Init
movl $1048576, %edi ## imm = 0x100000
callq _malloc
testq %rax, %rax
je LBB0_3
## %bb.4:
movq %rax, %r13
movq %r15, -80(%rbp) ## 8-byte Spill
movq %rax, %rdi
movl $1, %esi
cmpl $1048577, %r12d ## imm = 0x100001
jge LBB0_5
## %bb.21:
movl %r12d, %edx
movq -64(%rbp), %r14 ## 8-byte Reload
movq %r14, %rcx
callq _fread
leaq -52(%rbp), %rdi
movq %r13, %rsi
movl %eax, %edx
xorl %eax, %eax
callq _SHA256_Update
jmp LBB0_8
LBB0_1:
movl $1, %eax
jmp LBB0_19
LBB0_3:
movq -64(%rbp), %rdi ## 8-byte Reload
callq _fclose
movq _ENOMEM@GOTPCREL(%rip), %rax
movl (%rax), %eax
jmp LBB0_18
LBB0_5:
movl $1048576, %edx ## imm = 0x100000
movq -64(%rbp), %r14 ## 8-byte Reload
movq %r14, %rcx
callq _fread
testl %eax, %eax
je LBB0_8
## %bb.6:
xorl %r15d, %r15d
.p2align 4, 0x90
LBB0_7: ## =>This Inner Loop Header: Depth=1
addl %eax, %r15d
leaq -52(%rbp), %rdi
movq %r13, %rsi
movl %eax, %edx
xorl %eax, %eax
callq _SHA256_Update
movl %r12d, %edx
subl %r15d, %edx
cmpl $1048576, %edx ## imm = 0x100000
movl $1048576, %eax ## imm = 0x100000
cmovgel %eax, %edx
movq %r13, %rdi
movl $1, %esi
movq %r14, %rcx
callq _fread
testl %eax, %eax
jne LBB0_7
LBB0_8:
addl %ebx, %r12d
movq _SEEK_SET@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %r14, %rdi
movl %r12d, %esi
callq _fseek
testl %ebx, %ebx
jle LBB0_11
## %bb.9:
leaq l_.str.1(%rip), %r14
leaq -52(%rbp), %r15
.p2align 4, 0x90
LBB0_10: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
movq %r14, %rsi
movl $1, %edx
xorl %eax, %eax
callq _SHA256_Update
decl %ebx
jne LBB0_10
LBB0_11:
movq %r13, %rdi
movl $1, %esi
movl $1048576, %edx ## imm = 0x100000
movq -64(%rbp), %rbx ## 8-byte Reload
movq %rbx, %rcx
callq _fread
testl %eax, %eax
je LBB0_14
## %bb.12:
leaq -52(%rbp), %r14
.p2align 4, 0x90
LBB0_13: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
movq %r13, %rsi
movl %eax, %edx
xorl %eax, %eax
callq _SHA256_Update
movq %r13, %rdi
movl $1, %esi
movl $1048576, %edx ## imm = 0x100000
movq %rbx, %rcx
callq _fread
testl %eax, %eax
jne LBB0_13
LBB0_14:
leaq -52(%rbp), %rsi
movq -88(%rbp), %r12 ## 8-byte Reload
movq %r12, %rdi
callq _SHA256_Final
movq _SHA256_DIGEST_LENGTH@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jle LBB0_17
## %bb.15:
xorl %ebx, %ebx
leaq L_.str.2(%rip), %r14
movq -72(%rbp), %r15 ## 8-byte Reload
.p2align 4, 0x90
LBB0_16: ## =>This Inner Loop Header: Depth=1
movl (%r12,%rbx,4), %edx
movq %r15, %rdi
movq %r14, %rsi
callq _sprintf
incq %rbx
movq _SHA256_DIGEST_LENGTH@GOTPCREL(%rip), %rax
movslq (%rax), %rax
addq $2, %r15
cmpq %rax, %rbx
jl LBB0_16
LBB0_17:
movq -72(%rbp), %rax ## 8-byte Reload
movb $0, 64(%rax)
movq -64(%rbp), %rdi ## 8-byte Reload
callq _fclose
movq %r13, %rdi
callq _free
xorl %eax, %eax
movq -80(%rbp), %r15 ## 8-byte Reload
LBB0_18:
movq %r15, %rsp
LBB0_19:
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -48(%rbp), %rcx
jne LBB0_22
## %bb.20:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_22:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "rb"
.comm _SHA256_DIGEST_LENGTH,4,2 ## @SHA256_DIGEST_LENGTH
.comm _ENOMEM,4,2 ## @ENOMEM
.comm _SEEK_SET,4,2 ## @SEEK_SET
.section __TEXT,__const
l_.str.1: ## @.str.1
.space 2
.section __TEXT,__cstring,cstring_literals
L_.str.2: ## @.str.2
.asciz "%02x"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sha256_file ; -- Begin function sha256_file
.p2align 2
_sha256_file: ; @sha256_file
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 96
stp x26, x25, [sp, #16] ; 16-byte Folded Spill
stp x24, x23, [sp, #32] ; 16-byte Folded Spill
stp x22, x21, [sp, #48] ; 16-byte Folded Spill
stp x20, x19, [sp, #64] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
sub sp, sp, #16
mov x23, x3
mov x24, x2
mov x19, x1
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-88]
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
bl _fopen
cbz x0, LBB0_4
; %bb.1:
mov x20, x0
mov x25, sp
Lloh5:
adrp x26, _SHA256_DIGEST_LENGTH@GOTPAGE
Lloh6:
ldr x26, [x26, _SHA256_DIGEST_LENGTH@GOTPAGEOFF]
ldr w8, [x26]
lsl x8, x8, #2
mov x9, x8
Lloh7:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh8:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x9, sp
add x8, x8, #15
and x8, x8, #0x7fffffff0
sub x21, x9, x8
mov sp, x21
sub x0, x29, #92
bl _SHA256_Init
mov w0, #1048576
bl _malloc
cbz x0, LBB0_5
; %bb.2:
mov x22, x0
cmp w24, #256, lsl #12 ; =1048576
b.gt LBB0_6
; %bb.3:
mov x0, x22
mov w1, #1
mov x2, x24
mov x3, x20
bl _fread
; kill: def $w0 killed $w0 def $x0
stp x22, x0, [sp, #-16]!
sub x0, x29, #92
bl _SHA256_Update
add sp, sp, #16
b LBB0_9
LBB0_4:
mov w0, #1
b LBB0_19
LBB0_5:
mov x0, x20
bl _fclose
Lloh9:
adrp x8, _ENOMEM@GOTPAGE
Lloh10:
ldr x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
ldr w0, [x8]
b LBB0_18
LBB0_6:
mov w27, #1048576
mov x0, x22
mov w1, #1
mov w2, #1048576
mov x3, x20
bl _fread
; kill: def $w0 killed $w0 def $x0
cbz w0, LBB0_9
; %bb.7:
mov w28, #0
LBB0_8: ; =>This Inner Loop Header: Depth=1
add w28, w0, w28
stp x22, x0, [sp, #-16]!
sub x0, x29, #92
bl _SHA256_Update
add sp, sp, #16
sub w8, w24, w28
cmp w8, #256, lsl #12 ; =1048576
csel w2, w8, w27, lt
mov x0, x22
mov w1, #1
mov x3, x20
bl _fread
; kill: def $w0 killed $w0 def $x0
cbnz w0, LBB0_8
LBB0_9:
add w1, w23, w24
Lloh12:
adrp x8, _SEEK_SET@GOTPAGE
Lloh13:
ldr x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh14:
ldr w2, [x8]
mov x0, x20
bl _fseek
cmp w23, #1
b.lt LBB0_13
; %bb.10:
mov w24, #1
Lloh15:
adrp x27, l_.str.1@PAGE
Lloh16:
add x27, x27, l_.str.1@PAGEOFF
LBB0_11: ; =>This Inner Loop Header: Depth=1
stp x27, x24, [sp, #-16]!
sub x0, x29, #92
bl _SHA256_Update
add sp, sp, #16
subs w23, w23, #1
b.ne LBB0_11
b LBB0_13
LBB0_12: ; in Loop: Header=BB0_13 Depth=1
stp x22, x0, [sp, #-16]!
sub x0, x29, #92
bl _SHA256_Update
add sp, sp, #16
LBB0_13: ; =>This Inner Loop Header: Depth=1
mov x0, x22
mov w1, #1
mov w2, #1048576
mov x3, x20
bl _fread
; kill: def $w0 killed $w0 def $x0
cbnz w0, LBB0_12
; %bb.14:
sub x1, x29, #92
mov x0, x21
bl _SHA256_Final
ldr w8, [x26]
cmp w8, #1
b.lt LBB0_17
; %bb.15:
mov x27, #0
Lloh17:
adrp x23, l_.str.2@PAGE
Lloh18:
add x23, x23, l_.str.2@PAGEOFF
mov x24, x19
LBB0_16: ; =>This Inner Loop Header: Depth=1
ldr w2, [x21, x27, lsl #2]
mov x0, x24
mov x1, x23
bl _sprintf
add x27, x27, #1
ldrsw x8, [x26]
add x24, x24, #2
cmp x27, x8
b.lt LBB0_16
LBB0_17:
strb wzr, [x19, #64]
mov x0, x20
bl _fclose
mov x0, x22
bl _free
mov w0, #0
LBB0_18:
mov sp, x25
LBB0_19:
ldur x8, [x29, #-88]
Lloh19:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh20:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_21
; %bb.20:
sub sp, x29, #80
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
ldp x22, x21, [sp, #48] ; 16-byte Folded Reload
ldp x24, x23, [sp, #32] ; 16-byte Folded Reload
ldp x26, x25, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #96 ; 16-byte Folded Reload
ret
LBB0_21:
bl ___stack_chk_fail
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGot Lloh7, Lloh8
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.loh AdrpAdd Lloh15, Lloh16
.loh AdrpAdd Lloh17, Lloh18
.loh AdrpLdrGotLdr Lloh19, Lloh20, Lloh21
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "rb"
.comm _SHA256_DIGEST_LENGTH,4,2 ; @SHA256_DIGEST_LENGTH
.comm _ENOMEM,4,2 ; @ENOMEM
.comm _SEEK_SET,4,2 ; @SEEK_SET
.section __TEXT,__const
l_.str.1: ; @.str.1
.space 2
.section __TEXT,__cstring,cstring_literals
l_.str.2: ; @.str.2
.asciz "%02x"
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_digest.c_sha256_file.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _compare_byte_buffers ## -- Begin function compare_byte_buffers
.p2align 4, 0x90
_compare_byte_buffers: ## @compare_byte_buffers
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
testq %rdx, %rdx
je LBB0_1
## %bb.2:
movb (%rdi), %cl
xorl %eax, %eax
cmpb (%rsi), %cl
jne LBB0_7
## %bb.3:
movl $1, %eax
.p2align 4, 0x90
LBB0_4: ## =>This Inner Loop Header: Depth=1
movq %rax, %rcx
cmpq %rax, %rdx
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movzbl (%rdi,%rcx), %r8d
leaq 1(%rcx), %rax
cmpb (%rsi,%rcx), %r8b
je LBB0_4
LBB0_6:
xorl %eax, %eax
cmpq %rdx, %rcx
setae %al
LBB0_7:
popq %rbp
retq
LBB0_1:
movl $1, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _compare_byte_buffers ; -- Begin function compare_byte_buffers
.p2align 2
_compare_byte_buffers: ; @compare_byte_buffers
.cfi_startproc
; %bb.0:
cbz x2, LBB0_6
; %bb.1:
ldrb w8, [x0]
ldrb w9, [x1]
cmp w8, w9
b.ne LBB0_7
; %bb.2:
mov w9, #1
LBB0_3: ; =>This Inner Loop Header: Depth=1
mov x8, x9
cmp x2, x9
b.eq LBB0_5
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
ldrb w10, [x0, x8]
ldrb w11, [x1, x8]
add x9, x8, #1
cmp w10, w11
b.eq LBB0_3
LBB0_5:
cmp x8, x2
cset w0, hs
ret
LBB0_6:
mov w0, #1
ret
LBB0_7:
mov w0, #0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_digest_md5.c_compare_byte_buffers.c
|
anghabench
|
.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
pushq %r15
pushq %r14
pushq %rbx
subq $56, %rsp
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %rbx
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
cmpl $2, %edi
je LBB0_2
## %bb.1:
movq (%rbx), %rsi
leaq L_.str(%rip), %rdi
xorl %eax, %eax
callq _printf
movl $10, %edi
callq _putchar
leaq L_str.15(%rip), %rdi
callq _puts
LBB0_2:
movq 8(%rbx), %r14
movq _G_FILE_TEST_IS_REGULAR@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %r14, %rdi
callq _g_file_test
testl %eax, %eax
je LBB0_9
## %bb.3:
leaq -48(%rbp), %rsi
movq %r14, %rdi
callq _appimage_type2_digest_md5
testl %eax, %eax
je LBB0_10
## %bb.4:
leaq -48(%rbp), %rdi
movl $16, %esi
callq _appimage_hexlify
movq %rax, %rbx
leaq L_.str.5(%rip), %rdi
movq %rax, %rsi
xorl %eax, %eax
callq _printf
movq %rbx, %rdi
callq _free
movq $0, -72(%rbp)
movq $0, -80(%rbp)
leaq _main.section_name(%rip), %rsi
leaq -72(%rbp), %rdx
leaq -80(%rbp), %rcx
movq %r14, %rdi
callq _appimage_get_elf_section_offset_and_length
testl %eax, %eax
je LBB0_12
## %bb.5:
cmpq $0, -72(%rbp)
je LBB0_12
## %bb.6:
movq -80(%rbp), %r8
testq %r8, %r8
je LBB0_12
## %bb.7:
cmpq $15, %r8
ja LBB0_17
## %bb.8:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.7(%rip), %rsi
leaq _main.section_name(%rip), %rdx
movl $16, %ecx
xorl %eax, %eax
callq _fprintf
jmp LBB0_14
LBB0_9:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.3(%rip), %rsi
movq %r14, %rdx
jmp LBB0_13
LBB0_10:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.4(%rip), %rsi
LBB0_11:
xorl %eax, %eax
callq _fprintf
jmp LBB0_14
LBB0_12:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.6(%rip), %rsi
leaq _main.section_name(%rip), %rdx
LBB0_13:
xorl %eax, %eax
callq _fprintf
LBB0_14:
movl $1, %ebx
LBB0_15:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -32(%rbp), %rax
jne LBB0_26
## %bb.16:
movl %ebx, %eax
addq $56, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
LBB0_17:
leaq L_.str.8(%rip), %rsi
movq %r14, %rdi
callq _fopen
testq %rax, %rax
je LBB0_20
## %bb.18:
movq %rax, %r14
movq -72(%rbp), %rsi
movq _SEEK_SET@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %r14, %rdi
callq _fseek
testq %rax, %rax
je LBB0_21
## %bb.19:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.10(%rip), %rsi
xorl %eax, %eax
callq _fprintf
movq %r14, %rdi
callq _fclose
jmp LBB0_14
LBB0_20:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.9(%rip), %rsi
jmp LBB0_11
LBB0_21:
leaq -64(%rbp), %rdi
movl $1, %ebx
movl $1, %esi
movl $16, %edx
movq %r14, %rcx
callq _fread
cmpl $16, %eax
jne LBB0_24
## %bb.22:
movq %r14, %rdi
callq _fclose
leaq -64(%rbp), %r14
movq %r14, %rdi
movl $16, %esi
callq _appimage_hexlify
movq %rax, %r15
leaq L_.str.12(%rip), %rdi
movq %rax, %rsi
xorl %eax, %eax
callq _printf
movq %r15, %rdi
callq _free
leaq -48(%rbp), %rdi
movq %r14, %rsi
movl $16, %edx
callq _compare_byte_buffers
testq %rax, %rax
je LBB0_25
## %bb.23:
leaq L_str(%rip), %rdi
callq _puts
xorl %ebx, %ebx
jmp LBB0_15
LBB0_24:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.11(%rip), %rsi
xorl %eax, %eax
callq _fprintf
movq %r14, %rdi
callq _fclose
jmp LBB0_15
LBB0_25:
leaq L_.str.14(%rip), %rdi
xorl %eax, %eax
callq _printf
jmp LBB0_15
LBB0_26:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage: %s <my.AppImage>\n"
.comm _G_FILE_TEST_IS_REGULAR,4,2 ## @G_FILE_TEST_IS_REGULAR
.comm _stderr,4,2 ## @stderr
L_.str.3: ## @.str.3
.asciz "No such file or directory: %s\n"
L_.str.4: ## @.str.4
.asciz "Could not calculate MD5 digest\n"
L_.str.5: ## @.str.5
.asciz "calculated: %s\n"
.section __TEXT,__const
_main.section_name: ## @main.section_name
.asciz ".digest_md5"
.section __TEXT,__cstring,cstring_literals
L_.str.6: ## @.str.6
.asciz "Could not find %s section in file\n"
L_.str.7: ## @.str.7
.asciz "Invalid section length for section %s: expected %d bytes, found %lu bytes\n"
L_.str.8: ## @.str.8
.asciz "r"
L_.str.9: ## @.str.9
.asciz "Failed to open AppImage for writing"
.comm _SEEK_SET,4,2 ## @SEEK_SET
L_.str.10: ## @.str.10
.asciz "Failed to read embedded digest: failed to seek to offset\n"
L_.str.11: ## @.str.11
.asciz "Failed to read embedded digest: read invalid amount of bytes from file\n"
L_.str.12: ## @.str.12
.asciz " embedded: %s\n"
L_.str.14: ## @.str.14
.asciz "Digests don't match!"
L_str: ## @str
.asciz "Digests match"
L_str.15: ## @str.15
.asciz "Calculate AppImage MD5 digest, and compare it to embedded value (if available)"
.subsections_via_symbols
|
.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 x20, x19, [sp, #80] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x1
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-24]
cmp w0, #2
b.eq LBB0_2
; %bb.1:
ldr x8, [x19]
str x8, [sp]
Lloh3:
adrp x0, l_.str@PAGE
Lloh4:
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w0, #10
bl _putchar
Lloh5:
adrp x0, l_str.15@PAGE
Lloh6:
add x0, x0, l_str.15@PAGEOFF
bl _puts
LBB0_2:
ldr x19, [x19, #8]
Lloh7:
adrp x8, _G_FILE_TEST_IS_REGULAR@GOTPAGE
Lloh8:
ldr x8, [x8, _G_FILE_TEST_IS_REGULAR@GOTPAGEOFF]
Lloh9:
ldr w1, [x8]
mov x0, x19
bl _g_file_test
cbz w0, LBB0_9
; %bb.3:
sub x1, x29, #40
mov x0, x19
bl _appimage_type2_digest_md5
cbz w0, LBB0_10
; %bb.4:
sub x0, x29, #40
mov w1, #16
bl _appimage_hexlify
mov x20, x0
str x0, [sp]
Lloh10:
adrp x0, l_.str.5@PAGE
Lloh11:
add x0, x0, l_.str.5@PAGEOFF
bl _printf
mov x0, x20
bl _free
stp xzr, xzr, [sp, #24]
Lloh12:
adrp x20, _main.section_name@PAGE
Lloh13:
add x20, x20, _main.section_name@PAGEOFF
add x2, sp, #32
add x3, sp, #24
mov x0, x19
mov x1, x20
bl _appimage_get_elf_section_offset_and_length
cbz w0, LBB0_11
; %bb.5:
ldr x8, [sp, #32]
cbz x8, LBB0_11
; %bb.6:
ldr x8, [sp, #24]
cbz x8, LBB0_11
; %bb.7:
cmp x8, #15
b.hi LBB0_12
; %bb.8:
Lloh14:
adrp x9, _stderr@GOTPAGE
Lloh15:
ldr x9, [x9, _stderr@GOTPAGEOFF]
Lloh16:
ldr w0, [x9]
str x8, [sp, #16]
mov w8, #16
stp x20, x8, [sp]
Lloh17:
adrp x1, l_.str.7@PAGE
Lloh18:
add x1, x1, l_.str.7@PAGEOFF
bl _fprintf
b LBB0_21
LBB0_9:
Lloh19:
adrp x8, _stderr@GOTPAGE
Lloh20:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
ldr w0, [x8]
str x19, [sp]
Lloh22:
adrp x1, l_.str.3@PAGE
Lloh23:
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
b LBB0_21
LBB0_10:
Lloh24:
adrp x8, _stderr@GOTPAGE
Lloh25:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh26:
ldr w0, [x8]
Lloh27:
adrp x1, l_.str.4@PAGE
Lloh28:
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
b LBB0_21
LBB0_11:
Lloh29:
adrp x8, _stderr@GOTPAGE
Lloh30:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh31:
ldr w0, [x8]
str x20, [sp]
Lloh32:
adrp x1, l_.str.6@PAGE
Lloh33:
add x1, x1, l_.str.6@PAGEOFF
bl _fprintf
b LBB0_21
LBB0_12:
Lloh34:
adrp x1, l_.str.8@PAGE
Lloh35:
add x1, x1, l_.str.8@PAGEOFF
mov x0, x19
bl _fopen
cbz x0, LBB0_15
; %bb.13:
mov x19, x0
ldr x1, [sp, #32]
Lloh36:
adrp x8, _SEEK_SET@GOTPAGE
Lloh37:
ldr x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh38:
ldr w2, [x8]
bl _fseek
cbz x0, LBB0_16
; %bb.14:
Lloh39:
adrp x8, _stderr@GOTPAGE
Lloh40:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh41:
ldr w0, [x8]
Lloh42:
adrp x1, l_.str.10@PAGE
Lloh43:
add x1, x1, l_.str.10@PAGEOFF
b LBB0_20
LBB0_15:
Lloh44:
adrp x8, _stderr@GOTPAGE
Lloh45:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh46:
ldr w0, [x8]
Lloh47:
adrp x1, l_.str.9@PAGE
Lloh48:
add x1, x1, l_.str.9@PAGEOFF
bl _fprintf
b LBB0_21
LBB0_16:
add x0, sp, #40
mov w1, #1
mov w2, #16
mov x3, x19
bl _fread
cmp w0, #16
b.ne LBB0_19
; %bb.17:
mov x0, x19
bl _fclose
add x0, sp, #40
mov w1, #16
bl _appimage_hexlify
mov x19, x0
str x0, [sp]
Lloh49:
adrp x0, l_.str.12@PAGE
Lloh50:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
mov x0, x19
bl _free
sub x0, x29, #40
add x1, sp, #40
mov w2, #16
bl _compare_byte_buffers
cbz x0, LBB0_24
; %bb.18:
Lloh51:
adrp x0, l_str@PAGE
Lloh52:
add x0, x0, l_str@PAGEOFF
bl _puts
mov w0, #0
b LBB0_22
LBB0_19:
Lloh53:
adrp x8, _stderr@GOTPAGE
Lloh54:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh55:
ldr w0, [x8]
Lloh56:
adrp x1, l_.str.11@PAGE
Lloh57:
add x1, x1, l_.str.11@PAGEOFF
LBB0_20:
bl _fprintf
mov x0, x19
bl _fclose
LBB0_21:
mov w0, #1
LBB0_22:
ldur x8, [x29, #-24]
Lloh58:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh59:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh60:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_25
; %bb.23:
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
ldp x20, x19, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #112
ret
LBB0_24:
Lloh61:
adrp x0, l_.str.14@PAGE
Lloh62:
add x0, x0, l_.str.14@PAGEOFF
bl _printf
b LBB0_21
LBB0_25:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh5, Lloh6
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh17, Lloh18
.loh AdrpLdrGotLdr Lloh14, Lloh15, Lloh16
.loh AdrpAdd Lloh22, Lloh23
.loh AdrpLdrGotLdr Lloh19, Lloh20, Lloh21
.loh AdrpAdd Lloh27, Lloh28
.loh AdrpLdrGotLdr Lloh24, Lloh25, Lloh26
.loh AdrpAdd Lloh32, Lloh33
.loh AdrpLdrGotLdr Lloh29, Lloh30, Lloh31
.loh AdrpAdd Lloh34, Lloh35
.loh AdrpLdrGotLdr Lloh36, Lloh37, Lloh38
.loh AdrpAdd Lloh42, Lloh43
.loh AdrpLdrGotLdr Lloh39, Lloh40, Lloh41
.loh AdrpAdd Lloh47, Lloh48
.loh AdrpLdrGotLdr Lloh44, Lloh45, Lloh46
.loh AdrpAdd Lloh49, Lloh50
.loh AdrpAdd Lloh51, Lloh52
.loh AdrpAdd Lloh56, Lloh57
.loh AdrpLdrGotLdr Lloh53, Lloh54, Lloh55
.loh AdrpLdrGotLdr Lloh58, Lloh59, Lloh60
.loh AdrpAdd Lloh61, Lloh62
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Usage: %s <my.AppImage>\n"
.comm _G_FILE_TEST_IS_REGULAR,4,2 ; @G_FILE_TEST_IS_REGULAR
.comm _stderr,4,2 ; @stderr
l_.str.3: ; @.str.3
.asciz "No such file or directory: %s\n"
l_.str.4: ; @.str.4
.asciz "Could not calculate MD5 digest\n"
l_.str.5: ; @.str.5
.asciz "calculated: %s\n"
.section __TEXT,__const
_main.section_name: ; @main.section_name
.asciz ".digest_md5"
.section __TEXT,__cstring,cstring_literals
l_.str.6: ; @.str.6
.asciz "Could not find %s section in file\n"
l_.str.7: ; @.str.7
.asciz "Invalid section length for section %s: expected %d bytes, found %lu bytes\n"
l_.str.8: ; @.str.8
.asciz "r"
l_.str.9: ; @.str.9
.asciz "Failed to open AppImage for writing"
.comm _SEEK_SET,4,2 ; @SEEK_SET
l_.str.10: ; @.str.10
.asciz "Failed to read embedded digest: failed to seek to offset\n"
l_.str.11: ; @.str.11
.asciz "Failed to read embedded digest: read invalid amount of bytes from file\n"
l_.str.12: ; @.str.12
.asciz " embedded: %s\n"
l_.str.14: ; @.str.14
.asciz "Digests don't match!"
l_str: ; @str
.asciz "Digests match"
l_str.15: ; @str.15
.asciz "Calculate AppImage MD5 digest, and compare it to embedded value (if available)"
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_digest_md5.c_main.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _notify ## -- Begin function notify
.p2align 4, 0x90
_notify: ## @notify
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %edx, %r13d
movq %rsi, %r15
movq %rdi, %r12
movq _stdin@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _fileno
movl %eax, %edi
callq _isatty
movq %rax, %rbx
leaq L_.str(%rip), %rdi
xorl %r14d, %r14d
movq %r12, %rsi
xorl %eax, %eax
callq _printf
movq %r15, %rdi
callq _puts
testq %rbx, %rbx
jne LBB0_13
## %bb.1:
movl %r13d, -44(%rbp) ## 4-byte Spill
movq _RTLD_LAZY@GOTPCREL(%rip), %rbx
movl (%rbx), %esi
leaq L_.str.2(%rip), %rdi
callq _dlopen
movq %rax, %r13
testq %rax, %rax
jne LBB0_8
## %bb.2:
movl (%rbx), %esi
leaq L_.str.3(%rip), %rdi
callq _dlopen
movq %rax, %r13
testq %rax, %rax
jne LBB0_8
## %bb.3:
movl (%rbx), %esi
leaq L_.str.4(%rip), %rdi
callq _dlopen
movq %rax, %r13
testq %rax, %rax
jne LBB0_8
## %bb.4:
movl (%rbx), %esi
leaq L_.str.5(%rip), %rdi
callq _dlopen
movq %rax, %r13
testq %rax, %rax
jne LBB0_8
## %bb.5:
movl (%rbx), %esi
leaq L_.str.6(%rip), %rdi
callq _dlopen
movq %rax, %r13
testq %rax, %rax
jne LBB0_8
## %bb.6:
movl (%rbx), %esi
leaq L_.str.7(%rip), %rdi
callq _dlopen
movq %rax, %r13
testq %rax, %rax
jne LBB0_8
## %bb.7:
leaq L_str(%rip), %rdi
callq _puts
xorl %r13d, %r13d
LBB0_8:
leaq L_.str.9(%rip), %rsi
movq %r13, %rdi
callq _dlsym
movl $1, %r14d
testq %rax, %rax
je LBB0_12
## %bb.9:
leaq L_.str.10(%rip), %rdi
callq *%rax
leaq L_.str.11(%rip), %rsi
movq %r13, %rdi
callq _dlsym
testq %rax, %rax
je LBB0_12
## %bb.10:
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq *%rax
movq %rax, %r15
leaq L_.str.12(%rip), %rsi
movq %r13, %rdi
callq _dlsym
testq %rax, %rax
je LBB0_12
## %bb.11:
movq %r15, %rdi
movl -44(%rbp), %esi ## 4-byte Reload
callq *%rax
leaq L_.str.13(%rip), %rsi
movq %r13, %rdi
callq _dlsym
movq %r15, %rdi
xorl %esi, %esi
callq *%rax
xorl %r14d, %r14d
LBB0_12:
movq %r13, %rdi
callq _dlclose
LBB0_13:
movl %r14d, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _stdin,4,2 ## @stdin
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\n%s\n"
L_.str.2: ## @.str.2
.asciz "libnotify.so.3"
.comm _RTLD_LAZY,4,2 ## @RTLD_LAZY
L_.str.3: ## @.str.3
.asciz "libnotify.so.4"
L_.str.4: ## @.str.4
.asciz "libnotify.so.5"
L_.str.5: ## @.str.5
.asciz "libnotify.so.6"
L_.str.6: ## @.str.6
.asciz "libnotify.so.7"
L_.str.7: ## @.str.7
.asciz "libnotify.so.8"
L_.str.9: ## @.str.9
.asciz "notify_init"
L_.str.10: ## @.str.10
.asciz "AppImage"
L_.str.11: ## @.str.11
.asciz "notify_notification_new"
L_.str.12: ## @.str.12
.asciz "notify_notification_set_timeout"
L_.str.13: ## @.str.13
.asciz "notify_notification_show"
L_str: ## @str
.asciz "Failed to open libnotify.\n"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _notify ; -- Begin function notify
.p2align 2
_notify: ; @notify
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x24, x23, [sp, #16] ; 16-byte Folded Spill
stp x22, x21, [sp, #32] ; 16-byte Folded Spill
stp x20, x19, [sp, #48] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
mov x19, x2
mov x20, x1
mov x21, x0
Lloh0:
adrp x8, _stdin@GOTPAGE
Lloh1:
ldr x8, [x8, _stdin@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
bl _fileno
bl _isatty
mov x22, x0
str x21, [sp]
Lloh3:
adrp x0, l_.str@PAGE
Lloh4:
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x0, x20
bl _puts
cbz x22, LBB0_2
; %bb.1:
mov w19, #0
b LBB0_15
LBB0_2:
Lloh5:
adrp x23, _RTLD_LAZY@GOTPAGE
Lloh6:
ldr x23, [x23, _RTLD_LAZY@GOTPAGEOFF]
ldr w1, [x23]
Lloh7:
adrp x0, l_.str.2@PAGE
Lloh8:
add x0, x0, l_.str.2@PAGEOFF
bl _dlopen
mov x22, x0
cbnz x0, LBB0_9
; %bb.3:
ldr w1, [x23]
Lloh9:
adrp x0, l_.str.3@PAGE
Lloh10:
add x0, x0, l_.str.3@PAGEOFF
bl _dlopen
mov x22, x0
cbnz x0, LBB0_9
; %bb.4:
ldr w1, [x23]
Lloh11:
adrp x0, l_.str.4@PAGE
Lloh12:
add x0, x0, l_.str.4@PAGEOFF
bl _dlopen
mov x22, x0
cbnz x0, LBB0_9
; %bb.5:
ldr w1, [x23]
Lloh13:
adrp x0, l_.str.5@PAGE
Lloh14:
add x0, x0, l_.str.5@PAGEOFF
bl _dlopen
mov x22, x0
cbnz x0, LBB0_9
; %bb.6:
ldr w1, [x23]
Lloh15:
adrp x0, l_.str.6@PAGE
Lloh16:
add x0, x0, l_.str.6@PAGEOFF
bl _dlopen
mov x22, x0
cbnz x0, LBB0_9
; %bb.7:
ldr w1, [x23]
Lloh17:
adrp x0, l_.str.7@PAGE
Lloh18:
add x0, x0, l_.str.7@PAGEOFF
bl _dlopen
mov x22, x0
cbnz x0, LBB0_9
; %bb.8:
Lloh19:
adrp x0, l_str@PAGE
Lloh20:
add x0, x0, l_str@PAGEOFF
bl _puts
LBB0_9:
Lloh21:
adrp x1, l_.str.9@PAGE
Lloh22:
add x1, x1, l_.str.9@PAGEOFF
mov x0, x22
bl _dlsym
cbz x0, LBB0_13
; %bb.10:
mov x8, x0
Lloh23:
adrp x0, l_.str.10@PAGE
Lloh24:
add x0, x0, l_.str.10@PAGEOFF
blr x8
Lloh25:
adrp x1, l_.str.11@PAGE
Lloh26:
add x1, x1, l_.str.11@PAGEOFF
mov x0, x22
bl _dlsym
cbz x0, LBB0_13
; %bb.11:
mov x8, x0
mov x0, x21
mov x1, x20
mov x2, #0
mov x3, #0
blr x8
mov x20, x0
Lloh27:
adrp x1, l_.str.12@PAGE
Lloh28:
add x1, x1, l_.str.12@PAGEOFF
mov x0, x22
bl _dlsym
cbz x0, LBB0_13
; %bb.12:
mov x8, x0
mov x0, x20
mov x1, x19
blr x8
Lloh29:
adrp x1, l_.str.13@PAGE
Lloh30:
add x1, x1, l_.str.13@PAGEOFF
mov x0, x22
bl _dlsym
mov x8, x0
mov x0, x20
mov x1, #0
blr x8
mov w19, #0
b LBB0_14
LBB0_13:
mov w19, #1
LBB0_14:
mov x0, x22
bl _dlclose
LBB0_15:
mov x0, x19
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
ldp x22, x21, [sp, #32] ; 16-byte Folded Reload
ldp x24, x23, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #80
ret
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh7, Lloh8
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpAdd Lloh9, Lloh10
.loh AdrpAdd Lloh11, Lloh12
.loh AdrpAdd Lloh13, Lloh14
.loh AdrpAdd Lloh15, Lloh16
.loh AdrpAdd Lloh17, Lloh18
.loh AdrpAdd Lloh19, Lloh20
.loh AdrpAdd Lloh21, Lloh22
.loh AdrpAdd Lloh25, Lloh26
.loh AdrpAdd Lloh23, Lloh24
.loh AdrpAdd Lloh27, Lloh28
.loh AdrpAdd Lloh29, Lloh30
.cfi_endproc
; -- End function
.comm _stdin,4,2 ; @stdin
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\n%s\n"
l_.str.2: ; @.str.2
.asciz "libnotify.so.3"
.comm _RTLD_LAZY,4,2 ; @RTLD_LAZY
l_.str.3: ; @.str.3
.asciz "libnotify.so.4"
l_.str.4: ; @.str.4
.asciz "libnotify.so.5"
l_.str.5: ; @.str.5
.asciz "libnotify.so.6"
l_.str.6: ; @.str.6
.asciz "libnotify.so.7"
l_.str.7: ; @.str.7
.asciz "libnotify.so.8"
l_.str.9: ; @.str.9
.asciz "notify_init"
l_.str.10: ; @.str.10
.asciz "AppImage"
l_.str.11: ; @.str.11
.asciz "notify_notification_new"
l_.str.12: ; @.str.12
.asciz "notify_notification_set_timeout"
l_.str.13: ; @.str.13
.asciz "notify_notification_show"
l_str: ; @str
.asciz "Failed to open libnotify.\n"
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_notify.c_notify.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _build_mount_point ## -- Begin function build_mount_point
.p2align 4, 0x90
_build_mount_point: ## @build_mount_point
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r12
leaq L_.str(%rip), %rdi
callq _getenv
testq %rax, %rax
je LBB0_2
## %bb.1:
movq %rax, %rdi
jmp LBB0_3
LBB0_2:
movq %rbx, %rdi
LBB0_3:
callq _basename
movq %rax, %r13
movq %rax, %rdi
callq _strlen
cmpq $6, %rax
movl $6, %ebx
cmovbq %rax, %rbx
movq %r12, %rdi
movq %r15, %rsi
callq _strcpy
leaq (%r12,%r14), %r15
leaq L_.str.1(%rip), %rsi
movq %r15, %rdi
movl $8, %edx
callq _strncpy
leaq (%r12,%r14), %rdi
addq $8, %rdi
movq %r13, %rsi
movl %ebx, %edx
callq _strncpy
leaq (%rbx,%r15), %rdi
addq $8, %rdi
leaq L_.str.2(%rip), %rsi
movl $6, %edx
callq _strncpy
addq %r14, %rbx
movb $0, 14(%r12,%rbx)
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "TARGET_APPIMAGE"
L_.str.1: ## @.str.1
.asciz "/.mount_"
L_.str.2: ## @.str.2
.asciz "XXXXXX"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _build_mount_point ; -- Begin function build_mount_point
.p2align 2
_build_mount_point: ; @build_mount_point
.cfi_startproc
; %bb.0:
stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 64
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
mov x19, x3
mov x21, x2
mov x22, x1
mov x20, x0
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _getenv
cbnz x0, LBB0_2
; %bb.1:
mov x0, x22
LBB0_2:
bl _basename
mov x22, x0
bl _strlen
mov w8, #6
cmp x0, #6
csel x23, x0, x8, lo
mov x0, x20
mov x1, x21
bl _strcpy
add x21, x20, x19
Lloh2:
adrp x1, l_.str.1@PAGE
Lloh3:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x21
mov w2, #8
bl _strncpy
add x21, x21, #8
mov x0, x21
mov x1, x22
mov x2, x23
bl _strncpy
add x0, x21, x23
Lloh4:
adrp x1, l_.str.2@PAGE
Lloh5:
add x1, x1, l_.str.2@PAGEOFF
mov w2, #6
bl _strncpy
add x8, x19, x23
add x8, x8, x20
strb wzr, [x8, #14]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "TARGET_APPIMAGE"
l_.str.1: ; @.str.1
.asciz "/.mount_"
l_.str.2: ; @.str.2
.asciz "XXXXXX"
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_runtime.c_build_mount_point.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function die
_die: ## @die
.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, %rdx
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str(%rip), %rsi
callq _fprintf
movq _EXIT_EXECERROR@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _exit
.cfi_endproc
## -- End function
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s\n"
.comm _EXIT_EXECERROR,4,2 ## @EXIT_EXECERROR
.no_dead_strip _die
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function die
_die: ; @die
.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
mov x2, x0
Lloh0:
adrp x8, _stderr@GOTPAGE
Lloh1:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
bl _fprintf
Lloh5:
adrp x8, _EXIT_EXECERROR@GOTPAGE
Lloh6:
ldr x8, [x8, _EXIT_EXECERROR@GOTPAGEOFF]
Lloh7:
ldr w0, [x8]
bl _exit
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s\n"
.comm _EXIT_EXECERROR,4,2 ; @EXIT_EXECERROR
.no_dead_strip _die
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_runtime.c_die.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fuse_mounted ## -- Begin function fuse_mounted
.p2align 4, 0x90
_fuse_mounted: ## @fuse_mounted
.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
callq _getpid
movq _fuse_pid@GOTPCREL(%rip), %rcx
movl %eax, (%rcx)
movq _write_pipe_thread@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq _keepalive_pipe@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq -4(%rbp), %rdi
xorl %esi, %esi
callq _pthread_create
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _fuse_pid,4,2 ## @fuse_pid
.comm _write_pipe_thread,4,2 ## @write_pipe_thread
.comm _keepalive_pipe,4,2 ## @keepalive_pipe
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fuse_mounted ; -- Begin function fuse_mounted
.p2align 2
_fuse_mounted: ; @fuse_mounted
.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
bl _getpid
Lloh0:
adrp x8, _fuse_pid@GOTPAGE
Lloh1:
ldr x8, [x8, _fuse_pid@GOTPAGEOFF]
Lloh2:
str w0, [x8]
Lloh3:
adrp x8, _write_pipe_thread@GOTPAGE
Lloh4:
ldr x8, [x8, _write_pipe_thread@GOTPAGEOFF]
Lloh5:
ldr w2, [x8]
Lloh6:
adrp x8, _keepalive_pipe@GOTPAGE
Lloh7:
ldr x8, [x8, _keepalive_pipe@GOTPAGEOFF]
Lloh8:
ldr w3, [x8]
sub x0, x29, #4
mov x1, #0
bl _pthread_create
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotStr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _fuse_pid,4,2 ; @fuse_pid
.comm _write_pipe_thread,4,2 ; @write_pipe_thread
.comm _keepalive_pipe,4,2 ; @keepalive_pipe
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_runtime.c_fuse_mounted.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _getArg ## -- Begin function getArg
.p2align 4, 0x90
_getArg: ## @getArg
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cmpl $2, %edi
jl LBB0_6
## %bb.1:
movl %edi, %ecx
movl $1, %edi
jmp LBB0_2
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
incq %rdi
cmpq %rdi, %rcx
je LBB0_6
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq (%rsi,%rdi,8), %rax
cmpb $45, (%rax)
jne LBB0_5
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
cmpb %dl, 1(%rax)
jne LBB0_5
## %bb.4:
addq $2, %rax
popq %rbp
retq
LBB0_6:
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _getArg ; -- Begin function getArg
.p2align 2
_getArg: ; @getArg
.cfi_startproc
; %bb.0:
cmp w0, #2
b.lt LBB0_6
; %bb.1:
mov w9, w0
add x8, x1, #8
sub x9, x9, #1
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
add x8, x8, #8
subs x9, x9, #1
b.eq LBB0_6
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x10, [x8]
ldrb w11, [x10]
cmp w11, #45
b.ne LBB0_2
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
ldrb w11, [x10, #1]
cmp w11, w2, uxtb
b.ne LBB0_2
; %bb.5:
add x0, x10, #2
ret
LBB0_6:
mov x0, #0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_runtime.c_getArg.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _is_writable_directory ## -- Begin function is_writable_directory
.p2align 4, 0x90
_is_writable_directory: ## @is_writable_directory
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _W_OK@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _access
xorl %ecx, %ecx
testq %rax, %rax
sete %cl
movl %ecx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _W_OK,4,2 ## @W_OK
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _is_writable_directory ; -- Begin function is_writable_directory
.p2align 2
_is_writable_directory: ; @is_writable_directory
.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
Lloh0:
adrp x8, _W_OK@GOTPAGE
Lloh1:
ldr x8, [x8, _W_OK@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
bl _access
cmp x0, #0
cset w0, eq
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _W_OK,4,2 ; @W_OK
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_runtime.c_is_writable_directory.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mkdir_p ## -- Begin function mkdir_p
.p2align 4, 0x90
_mkdir_p: ## @mkdir_p
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %rbx
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
callq _strlen
movq %rax, %r15
movq _PATH_MAX@GOTPCREL(%rip), %rax
movl (%rax), %r12d
movq %r12, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %r14
movq _errno@GOTPCREL(%rip), %r13
movq $0, (%r13)
decq %r12
cmpq %r12, %r15
jbe LBB0_2
## %bb.1:
movq _ENAMETOOLONG@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, (%r13)
movl $-1, %eax
jmp LBB0_13
LBB0_2:
movq %r14, %rdi
movq %rbx, %rsi
callq _strcpy
movq %r14, %rbx
incq %rbx
movq _S_IRWXU@GOTPCREL(%rip), %r12
movq _EEXIST@GOTPCREL(%rip), %r15
jmp LBB0_3
.p2align 4, 0x90
LBB0_9: ## in Loop: Header=BB0_3 Depth=1
movb $47, (%rbx)
incq %rbx
LBB0_3: ## =>This Inner Loop Header: Depth=1
movzbl (%rbx), %eax
cmpb $47, %al
je LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
testb %al, %al
je LBB0_10
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
incq %rbx
jmp LBB0_3
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
movb $0, (%rbx)
movl (%r12), %esi
movq %r14, %rdi
callq _mkdir
testq %rax, %rax
je LBB0_9
## %bb.7: ## in Loop: Header=BB0_3 Depth=1
movq (%r13), %rax
cmpq (%r15), %rax
je LBB0_9
## %bb.8:
movl $-1, %eax
jmp LBB0_13
LBB0_10:
movl (%r12), %esi
movq %r14, %rdi
callq _mkdir
testq %rax, %rax
je LBB0_12
## %bb.11:
movq (%r13), %rcx
movl $-1, %eax
cmpq (%r15), %rcx
jne LBB0_13
LBB0_12:
xorl %eax, %eax
LBB0_13:
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -48(%rbp), %rcx
jne LBB0_15
## %bb.14:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_15:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _PATH_MAX,4,2 ## @PATH_MAX
.comm _errno,8,3 ## @errno
.comm _ENAMETOOLONG,8,3 ## @ENAMETOOLONG
.comm _S_IRWXU,4,2 ## @S_IRWXU
.comm _EEXIST,8,3 ## @EEXIST
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mkdir_p ; -- Begin function mkdir_p
.p2align 2
_mkdir_p: ; @mkdir_p
.cfi_startproc
; %bb.0:
stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 64
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
sub sp, sp, #16
mov x20, x0
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-56]
bl _strlen
Lloh3:
adrp x8, _PATH_MAX@GOTPAGE
Lloh4:
ldr x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
ldr w8, [x8]
mov x9, x8
Lloh6:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh7:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x9, sp
add x10, x8, #15
and x10, x10, #0x1fffffff0
sub x19, x9, x10
mov sp, x19
Lloh8:
adrp x21, _errno@GOTPAGE
Lloh9:
ldr x21, [x21, _errno@GOTPAGEOFF]
str xzr, [x21]
sub x8, x8, #1
cmp x0, x8
b.ls LBB0_2
; %bb.1:
Lloh10:
adrp x8, _ENAMETOOLONG@GOTPAGE
Lloh11:
ldr x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
Lloh12:
ldr x8, [x8]
str x8, [x21]
b LBB0_12
LBB0_2:
mov x0, x19
mov x1, x20
bl _strcpy
mov w22, #1
Lloh13:
adrp x23, _S_IRWXU@GOTPAGE
Lloh14:
ldr x23, [x23, _S_IRWXU@GOTPAGEOFF]
mov w24, #47
Lloh15:
adrp x20, _EEXIST@GOTPAGE
Lloh16:
ldr x20, [x20, _EEXIST@GOTPAGEOFF]
b LBB0_4
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
strb w24, [x19, x22]
add x22, x22, #1
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldrb w8, [x19, x22]
cmp w8, #47
b.eq LBB0_7
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
cbz w8, LBB0_9
; %bb.6: ; in Loop: Header=BB0_4 Depth=1
add x22, x22, #1
b LBB0_4
LBB0_7: ; in Loop: Header=BB0_4 Depth=1
strb wzr, [x19, x22]
ldr w1, [x23]
mov x0, x19
bl _mkdir
cbz x0, LBB0_3
; %bb.8: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x21]
ldr x9, [x20]
cmp x8, x9
b.eq LBB0_3
b LBB0_12
LBB0_9:
ldr w1, [x23]
mov x0, x19
bl _mkdir
cbz x0, LBB0_11
; %bb.10:
ldr x8, [x21]
ldr x9, [x20]
cmp x8, x9
b.ne LBB0_12
LBB0_11:
mov w0, #0
b LBB0_13
LBB0_12:
mov w0, #-1
LBB0_13:
ldur x8, [x29, #-56]
Lloh17:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh18:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_15
; %bb.14:
sub sp, x29, #48
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
ret
LBB0_15:
bl ___stack_chk_fail
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGot Lloh15, Lloh16
.loh AdrpLdrGot Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.cfi_endproc
; -- End function
.comm _PATH_MAX,4,2 ; @PATH_MAX
.comm _errno,8,3 ; @errno
.comm _ENAMETOOLONG,8,3 ; @ENAMETOOLONG
.comm _S_IRWXU,4,2 ; @S_IRWXU
.comm _EEXIST,8,3 ; @EEXIST
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_runtime.c_mkdir_p.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _portable_option ## -- Begin function portable_option
.p2align 4, 0x90
_portable_option: ## @portable_option
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $40, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
leaq L_.str(%rip), %rsi
leaq -80(%rbp), %rdi
xorl %eax, %eax
callq _sprintf
testq %rbx, %rbx
je LBB0_6
## %bb.1:
leaq -80(%rbp), %rsi
movq %rbx, %rdi
callq _strcmp
testq %rax, %rax
je LBB0_2
LBB0_6:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB0_8
## %bb.7:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_8:
callq ___stack_chk_fail
LBB0_2:
movq _PATH_MAX@GOTPCREL(%rip), %rax
movl (%rax), %r13d
movq %r13, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %r14
movq %r13, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %rbx
movq %r15, %rdi
movq %rbx, %rsi
movl %r13d, %edx
callq _readlink
movb $0, (%rbx,%rax)
leaq L_.str.2(%rip), %rsi
movq %r14, %rdi
movq %rbx, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq _sprintf
movq _S_IRWXU@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %r14, %rdi
callq _mkdir
movq _stderr@GOTPCREL(%rip), %rcx
movl (%rcx), %r15d
testl %eax, %eax
jne LBB0_4
## %bb.3:
leaq L_.str.3(%rip), %rsi
movl %r15d, %edi
movq %r12, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq _fprintf
xorl %edi, %edi
callq _exit
LBB0_4:
movq _errno@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _strerror
leaq L_.str.4(%rip), %rsi
movl %r15d, %edi
movq %r12, %rdx
movq %r14, %rcx
movq %rax, %r8
xorl %eax, %eax
callq _fprintf
xorl %edi, %edi
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "appimage-portable-%s"
.comm _PATH_MAX,4,2 ## @PATH_MAX
.comm _stderr,4,2 ## @stderr
.comm _EXIT_FAILURE,4,2 ## @EXIT_FAILURE
L_.str.2: ## @.str.2
.asciz "%s.%s"
.comm _S_IRWXU,4,2 ## @S_IRWXU
L_.str.3: ## @.str.3
.asciz "Portable %s directory created at %s\n"
L_.str.4: ## @.str.4
.asciz "Error creating portable %s directory at %s: %s\n"
.comm _errno,4,2 ## @errno
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _portable_option ; -- Begin function portable_option
.p2align 2
_portable_option: ; @portable_option
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
sub sp, sp, #48
mov x19, x2
mov x20, x1
mov x21, x0
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-40]
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
sub x0, x29, #72
bl _sprintf
cbz x21, LBB0_2
; %bb.1:
sub x1, x29, #72
mov x0, x21
bl _strcmp
cbz x0, LBB0_5
LBB0_2:
ldur x8, [x29, #-40]
Lloh5:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh6:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_4
; %bb.3:
sub sp, x29, #32
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
LBB0_4:
bl ___stack_chk_fail
LBB0_5:
Lloh8:
adrp x8, _PATH_MAX@GOTPAGE
Lloh9:
ldr x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh10:
ldr w2, [x8]
mov x9, x2
Lloh11:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh12:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x8, sp
add x9, x2, #15
and x12, x9, #0x1fffffff0
mov x0, x20
sub x20, x8, x12
mov sp, x20
mov x9, x2
Lloh13:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh14:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x8, sp
sub x21, x8, x12
mov sp, x21
mov x1, x21
; kill: def $w2 killed $w2 killed $x2
bl _readlink
strb wzr, [x21, x0]
str x19, [sp, #-16]!
Lloh15:
adrp x1, l_.str.2@PAGE
Lloh16:
add x1, x1, l_.str.2@PAGEOFF
mov x0, x20
mov x2, x21
bl _sprintf
add sp, sp, #16
Lloh17:
adrp x8, _S_IRWXU@GOTPAGE
Lloh18:
ldr x8, [x8, _S_IRWXU@GOTPAGEOFF]
Lloh19:
ldr w1, [x8]
mov x0, x20
bl _mkdir
Lloh20:
adrp x8, _stderr@GOTPAGE
Lloh21:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
ldr w21, [x8]
cbnz w0, LBB0_7
; %bb.6:
str x20, [sp, #-16]!
Lloh23:
adrp x1, l_.str.3@PAGE
Lloh24:
add x1, x1, l_.str.3@PAGEOFF
b LBB0_8
LBB0_7:
Lloh25:
adrp x8, _errno@GOTPAGE
Lloh26:
ldr x8, [x8, _errno@GOTPAGEOFF]
Lloh27:
ldr w0, [x8]
bl _strerror
stp x20, x0, [sp, #-16]!
Lloh28:
adrp x1, l_.str.4@PAGE
Lloh29:
add x1, x1, l_.str.4@PAGEOFF
LBB0_8:
mov x0, x21
mov x2, x19
bl _fprintf
add sp, sp, #16
mov w0, #0
bl _exit
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.loh AdrpAdd Lloh15, Lloh16
.loh AdrpLdrGot Lloh13, Lloh14
.loh AdrpLdrGot Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpAdd Lloh23, Lloh24
.loh AdrpAdd Lloh28, Lloh29
.loh AdrpLdrGotLdr Lloh25, Lloh26, Lloh27
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "appimage-portable-%s"
.comm _PATH_MAX,4,2 ; @PATH_MAX
.comm _stderr,4,2 ; @stderr
.comm _EXIT_FAILURE,4,2 ; @EXIT_FAILURE
l_.str.2: ; @.str.2
.asciz "%s.%s"
.comm _S_IRWXU,4,2 ; @S_IRWXU
l_.str.3: ; @.str.3
.asciz "Portable %s directory created at %s\n"
l_.str.4: ; @.str.4
.asciz "Error creating portable %s directory at %s: %s\n"
.comm _errno,4,2 ; @errno
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_runtime.c_portable_option.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _print_help ## -- Begin function print_help
.p2align 4, 0x90
_print_help: ## @print_help
.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, %rdx
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str(%rip), %rsi
popq %rbp
jmp _fprintf ## TAILCALL
.cfi_endproc
## -- End function
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "AppImage options:\n\n --appimage-extract [<pattern>] Extract content from embedded filesystem image\n If pattern is passed, only extract matching files\n --appimage-help Print this help\n --appimage-mount Mount embedded filesystem image and print\n mount point and wait for kill with Ctrl-C\n --appimage-offset Print byte offset to start of embedded\n filesystem image\n --appimage-portable-home Create a portable home folder to use as $HOME\n --appimage-portable-config Create a portable config folder to use as\n $XDG_CONFIG_HOME\n --appimage-signature Print digital signature embedded in AppImage\n --appimage-updateinfo[rmation] Print update info embedded in AppImage\n --appimage-version Print version of AppImageKit\n\nPortable home:\n\n If you would like the application contained inside this AppImage to store its\n data alongside this AppImage rather than in your home directory, then you can\n place a directory named\n\n %s.home\n\n Or you can invoke this AppImage with the --appimage-portable-home option,\n which will create this directory for you. As long as the directory exists\n and is neither moved nor renamed, the application contained inside this\n AppImage to store its data in this directory rather than in your home\n directory\n"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _print_help ; -- Begin function print_help
.p2align 2
_print_help: ; @print_help
.cfi_startproc
; %bb.0:
mov x2, x0
Lloh0:
adrp x8, _stderr@GOTPAGE
Lloh1:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
b _fprintf
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "AppImage options:\n\n --appimage-extract [<pattern>] Extract content from embedded filesystem image\n If pattern is passed, only extract matching files\n --appimage-help Print this help\n --appimage-mount Mount embedded filesystem image and print\n mount point and wait for kill with Ctrl-C\n --appimage-offset Print byte offset to start of embedded\n filesystem image\n --appimage-portable-home Create a portable home folder to use as $HOME\n --appimage-portable-config Create a portable config folder to use as\n $XDG_CONFIG_HOME\n --appimage-signature Print digital signature embedded in AppImage\n --appimage-updateinfo[rmation] Print update info embedded in AppImage\n --appimage-version Print version of AppImageKit\n\nPortable home:\n\n If you would like the application contained inside this AppImage to store its\n data alongside this AppImage rather than in your home directory, then you can\n place a directory named\n\n %s.home\n\n Or you can invoke this AppImage with the --appimage-portable-home option,\n which will create this directory for you. As long as the directory exists\n and is neither moved nor renamed, the application contained inside this\n AppImage to store its data in this directory rather than in your home\n directory\n"
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_runtime.c_print_help.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _private_sqfs_stat ## -- Begin function private_sqfs_stat
.p2align 4, 0x90
_private_sqfs_stat: ## @private_sqfs_stat
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rdx, %rdi
xorl %esi, %esi
movl $56, %edx
callq _memset
movl 12(%r15), %edi
movl %edi, 28(%rbx)
movl 32(%r15), %eax
movl %eax, 48(%rbx)
movl 8(%r15), %eax
movl %eax, 36(%rbx)
movl %eax, 40(%rbx)
movl %eax, 44(%rbx)
callq _S_ISREG
testq %rax, %rax
je LBB0_2
## %bb.1:
movl 28(%r15), %eax
movl %eax, (%rbx)
leal 511(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
sarl $9, %ecx
movl %ecx, 4(%rbx)
jmp LBB0_7
LBB0_2:
movl 28(%rbx), %edi
callq _S_ISBLK
testq %rax, %rax
jne LBB0_4
## %bb.3:
movl 28(%rbx), %edi
callq _S_ISCHR
testq %rax, %rax
je LBB0_5
LBB0_4:
movl 20(%r15), %esi
movl 24(%r15), %edi
callq _sqfs_makedev
movl %eax, 32(%rbx)
LBB0_7:
movl (%r14), %eax
movl %eax, 24(%rbx)
movl 4(%r15), %esi
leaq -32(%rbp), %rdx
movq %r14, %rdi
callq _sqfs_id_get
testq %rax, %rax
jne LBB0_10
## %bb.8:
movq -32(%rbp), %rax
movq %rax, 16(%rbx)
movl (%r15), %esi
leaq -32(%rbp), %rdx
movq %r14, %rdi
callq _sqfs_id_get
movq -32(%rbp), %rcx
movq %rcx, 8(%rbx)
testq %rax, %rax
jne LBB0_10
## %bb.9:
movq _SQFS_OK@GOTPCREL(%rip), %rax
movq (%rax), %rax
LBB0_10:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
LBB0_5:
movl 28(%rbx), %edi
callq _S_ISLNK
testq %rax, %rax
je LBB0_7
## %bb.6:
movl 16(%r15), %eax
movl %eax, (%rbx)
jmp LBB0_7
.cfi_endproc
## -- End function
.comm _SQFS_OK,8,3 ## @SQFS_OK
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _private_sqfs_stat ; -- Begin function private_sqfs_stat
.p2align 2
_private_sqfs_stat: ; @private_sqfs_stat
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x2
mov x21, x1
mov x20, x0
mov x0, x2
mov w1, #0
mov w2, #56
bl _memset
ldp w8, w0, [x21, #8]
str w0, [x19, #28]
ldr w9, [x21, #32]
stp w8, w8, [x19, #36]
stp w8, w9, [x19, #44]
bl _S_ISREG
cbz x0, LBB0_2
; %bb.1:
ldr w8, [x21, #28]
add w9, w8, #511
cmp w8, #0
csel w9, w9, w8, lt
asr w9, w9, #9
stp w8, w9, [x19]
b LBB0_5
LBB0_2:
ldr w0, [x19, #28]
bl _S_ISBLK
cbnz x0, LBB0_4
; %bb.3:
ldr w0, [x19, #28]
bl _S_ISCHR
cbz x0, LBB0_8
LBB0_4:
ldp w1, w0, [x21, #20]
bl _sqfs_makedev
str w0, [x19, #32]
LBB0_5:
ldr w8, [x20]
str w8, [x19, #24]
ldr w1, [x21, #4]
add x2, sp, #8
mov x0, x20
bl _sqfs_id_get
cbnz x0, LBB0_7
; %bb.6:
ldr x8, [sp, #8]
str x8, [x19, #16]
ldr w1, [x21]
add x2, sp, #8
mov x0, x20
bl _sqfs_id_get
ldr x8, [sp, #8]
str x8, [x19, #8]
Lloh0:
adrp x8, _SQFS_OK@GOTPAGE
Lloh1:
ldr x8, [x8, _SQFS_OK@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
cmp x0, #0
csel x0, x8, x0, eq
LBB0_7:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #64
ret
LBB0_8:
ldr w0, [x19, #28]
bl _S_ISLNK
cbz x0, LBB0_5
; %bb.9:
ldr w8, [x21, #16]
str w8, [x19]
b LBB0_5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _SQFS_OK,8,3 ; @SQFS_OK
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_runtime.c_private_sqfs_stat.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _rm_recursive ## -- Begin function rm_recursive
.p2align 4, 0x90
_rm_recursive: ## @rm_recursive
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _FTW_DEPTH@GOTPCREL(%rip), %rax
movq _FTW_MOUNT@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
orl (%rax), %ecx
movq _FTW_PHYS@GOTPCREL(%rip), %rax
orl (%rax), %ecx
movq _rm_recursive_callback@GOTPCREL(%rip), %rsi
xorl %edx, %edx
callq _nftw
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
movl %ecx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _rm_recursive_callback,4,2 ## @rm_recursive_callback
.comm _FTW_DEPTH,4,2 ## @FTW_DEPTH
.comm _FTW_MOUNT,4,2 ## @FTW_MOUNT
.comm _FTW_PHYS,4,2 ## @FTW_PHYS
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _rm_recursive ; -- Begin function rm_recursive
.p2align 2
_rm_recursive: ; @rm_recursive
.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
Lloh0:
adrp x8, _FTW_DEPTH@GOTPAGE
Lloh1:
ldr x8, [x8, _FTW_DEPTH@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
Lloh3:
adrp x9, _FTW_MOUNT@GOTPAGE
Lloh4:
ldr x9, [x9, _FTW_MOUNT@GOTPAGEOFF]
Lloh5:
ldr w9, [x9]
orr w8, w9, w8
Lloh6:
adrp x9, _FTW_PHYS@GOTPAGE
Lloh7:
ldr x9, [x9, _FTW_PHYS@GOTPAGEOFF]
Lloh8:
ldr w9, [x9]
orr w3, w8, w9
Lloh9:
adrp x1, _rm_recursive_callback@GOTPAGE
Lloh10:
ldr x1, [x1, _rm_recursive_callback@GOTPAGEOFF]
mov w2, #0
bl _nftw
cmp w0, #0
cset w0, eq
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _rm_recursive_callback,4,2 ; @rm_recursive_callback
.comm _FTW_DEPTH,4,2 ; @FTW_DEPTH
.comm _FTW_MOUNT,4,2 ; @FTW_MOUNT
.comm _FTW_PHYS,4,2 ; @FTW_PHYS
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_runtime.c_rm_recursive.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _rm_recursive_callback ## -- Begin function rm_recursive_callback
.p2align 4, 0x90
_rm_recursive_callback: ## @rm_recursive_callback
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
## kill: def $edx killed $edx def $rdx
addl $-128, %edx
cmpl $6, %edx
ja LBB0_8
## %bb.1:
movq %rdi, %r14
xorl %ebx, %ebx
leaq LJTI0_0(%rip), %rax
movslq (%rax,%rdx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
LBB0_3:
movq %r14, %rdi
callq _remove
testl %eax, %eax
je LBB0_10
## %bb.4:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %r15d
movq _errno@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _strerror
leaq L_.str.1(%rip), %rsi
jmp LBB0_5
LBB0_2:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %ebx
movq _errno@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _strerror
leaq L_.str(%rip), %rsi
movl %ebx, %edi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq _fprintf
jmp LBB0_9
LBB0_8:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.3(%rip), %rsi
xorl %eax, %eax
callq _fprintf
LBB0_9:
movl $1, %ebx
jmp LBB0_10
LBB0_6:
movq %r14, %rdi
callq _rmdir
testl %eax, %eax
je LBB0_10
## %bb.7:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %r15d
movq _errno@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _strerror
leaq L_.str.2(%rip), %rsi
LBB0_5:
xorl %ebx, %ebx
movl %r15d, %edi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq _fprintf
LBB0_10:
movl %ebx, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
.long L0_0_set_3
.long L0_0_set_3
.long L0_0_set_2
.long L0_0_set_3
.long L0_0_set_6
.long L0_0_set_2
.long L0_0_set_10
.end_data_region
## -- End function
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s: ftw error: %s\n"
.comm _errno,4,2 ## @errno
L_.str.1: ## @.str.1
.asciz "Failed to remove %s: %s\n"
L_.str.2: ## @.str.2
.asciz "Failed to remove directory %s: %s\n"
L_.str.3: ## @.str.3
.asciz "Unexpected fts_info\n"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _rm_recursive_callback ; -- Begin function rm_recursive_callback
.p2align 2
_rm_recursive_callback: ; @rm_recursive_callback
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
sub w8, w2, #128
cmp w8, #6
b.hi LBB0_5
; %bb.1:
mov x19, x0
mov w0, #0
Lloh0:
adrp x9, lJTI0_0@PAGE
Lloh1:
add x9, x9, lJTI0_0@PAGEOFF
adr x10, LBB0_2
ldrb w11, [x9, x8]
add x10, x10, x11, lsl #2
br x10
LBB0_2:
mov x0, x19
bl _remove
cbz w0, LBB0_10
; %bb.3:
Lloh2:
adrp x8, _stderr@GOTPAGE
Lloh3:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
ldr w20, [x8]
Lloh5:
adrp x8, _errno@GOTPAGE
Lloh6:
ldr x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
ldr w0, [x8]
bl _strerror
stp x19, x0, [sp]
Lloh8:
adrp x1, l_.str.1@PAGE
Lloh9:
add x1, x1, l_.str.1@PAGEOFF
b LBB0_9
LBB0_4:
Lloh10:
adrp x8, _stderr@GOTPAGE
Lloh11:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
ldr w20, [x8]
Lloh13:
adrp x8, _errno@GOTPAGE
Lloh14:
ldr x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
ldr w0, [x8]
bl _strerror
stp x19, x0, [sp]
Lloh16:
adrp x1, l_.str@PAGE
Lloh17:
add x1, x1, l_.str@PAGEOFF
mov x0, x20
b LBB0_6
LBB0_5:
Lloh18:
adrp x8, _stderr@GOTPAGE
Lloh19:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
ldr w0, [x8]
Lloh21:
adrp x1, l_.str.3@PAGE
Lloh22:
add x1, x1, l_.str.3@PAGEOFF
LBB0_6:
bl _fprintf
mov w0, #1
b LBB0_10
LBB0_7:
mov x0, x19
bl _rmdir
cbz w0, LBB0_10
; %bb.8:
Lloh23:
adrp x8, _stderr@GOTPAGE
Lloh24:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
ldr w20, [x8]
Lloh26:
adrp x8, _errno@GOTPAGE
Lloh27:
ldr x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
ldr w0, [x8]
bl _strerror
stp x19, x0, [sp]
Lloh29:
adrp x1, l_.str.2@PAGE
Lloh30:
add x1, x1, l_.str.2@PAGEOFF
LBB0_9:
mov x0, x20
bl _fprintf
mov w0, #0
LBB0_10:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #48
ret
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpAdd Lloh21, Lloh22
.loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20
.loh AdrpAdd Lloh29, Lloh30
.loh AdrpLdrGotLdr Lloh26, Lloh27, Lloh28
.loh AdrpLdrGotLdr Lloh23, Lloh24, Lloh25
.cfi_endproc
.section __TEXT,__const
lJTI0_0:
.byte (LBB0_2-LBB0_2)>>2
.byte (LBB0_2-LBB0_2)>>2
.byte (LBB0_4-LBB0_2)>>2
.byte (LBB0_2-LBB0_2)>>2
.byte (LBB0_7-LBB0_2)>>2
.byte (LBB0_4-LBB0_2)>>2
.byte (LBB0_10-LBB0_2)>>2
; -- End function
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s: ftw error: %s\n"
.comm _errno,4,2 ; @errno
l_.str.1: ; @.str.1
.asciz "Failed to remove %s: %s\n"
l_.str.2: ; @.str.2
.asciz "Failed to remove directory %s: %s\n"
l_.str.3: ; @.str.3
.asciz "Unexpected fts_info\n"
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_runtime.c_rm_recursive_callback.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _startsWith ## -- Begin function startsWith
.p2align 4, 0x90
_startsWith: ## @startsWith
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %r14
movq %rdi, %r15
callq _strlen
movq %rax, %rbx
movq %r14, %rdi
callq _strlen
movq %rax, %rcx
xorl %eax, %eax
cmpq %rbx, %rcx
jb LBB0_2
## %bb.1:
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq _strncmp
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
sete %al
LBB0_2:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _startsWith ; -- Begin function startsWith
.p2align 2
_startsWith: ; @startsWith
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x1
mov x20, x0
bl _strlen
mov x21, x0
mov x0, x19
bl _strlen
cmp x0, x21
b.hs LBB0_2
; %bb.1:
mov w0, #0
b LBB0_3
LBB0_2:
mov x0, x20
mov x1, x19
mov x2, x21
bl _strncmp
cmp x0, #0
cset w0, eq
LBB0_3:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_runtime.c_startsWith.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function write_pipe_thread
_write_pipe_thread: ## @write_pipe_thread
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
subq $48, %rsp
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
leaq -64(%rbp), %r14
movq %r14, %rdi
movl $120, %esi
movl $32, %edx
callq _memset
movq _keepalive_pipe@GOTPCREL(%rip), %rbx
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq (%rbx), %rax
movl 4(%rax), %edi
movq %r14, %rsi
movl $32, %edx
callq _write
cmpl $-1, %eax
jne LBB0_1
## %bb.2:
movq _fuse_pid@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _SIGTERM@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _kill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -24(%rbp), %rax
jne LBB0_4
## %bb.3:
xorl %eax, %eax
addq $48, %rsp
popq %rbx
popq %r14
popq %rbp
retq
LBB0_4:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _keepalive_pipe,8,3 ## @keepalive_pipe
.comm _fuse_pid,4,2 ## @fuse_pid
.comm _SIGTERM,4,2 ## @SIGTERM
.no_dead_strip _write_pipe_thread
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function write_pipe_thread
_write_pipe_thread: ; @write_pipe_thread
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x20, x19, [sp, #48] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-24]
add x0, sp, #8
mov w1, #120
mov w2, #32
bl _memset
Lloh3:
adrp x19, _keepalive_pipe@GOTPAGE
Lloh4:
ldr x19, [x19, _keepalive_pipe@GOTPAGEOFF]
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [x19]
ldr w0, [x8, #4]
add x1, sp, #8
mov w2, #32
bl _write
cmn w0, #1
b.ne LBB0_1
; %bb.2:
Lloh5:
adrp x8, _fuse_pid@GOTPAGE
Lloh6:
ldr x8, [x8, _fuse_pid@GOTPAGEOFF]
Lloh7:
ldr w0, [x8]
Lloh8:
adrp x8, _SIGTERM@GOTPAGE
Lloh9:
ldr x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh10:
ldr w1, [x8]
bl _kill
ldur x8, [x29, #-24]
Lloh11:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh12:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_4
; %bb.3:
mov x0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #80
ret
LBB0_4:
bl ___stack_chk_fail
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _keepalive_pipe,8,3 ; @keepalive_pipe
.comm _fuse_pid,4,2 ; @fuse_pid
.comm _SIGTERM,4,2 ; @SIGTERM
.no_dead_strip _write_pipe_thread
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_runtime.c_write_pipe_thread.c
|
anghabench
|
.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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $1080, %rsp ## imm = 0x438
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
cmpl $1, %edi
jle LBB0_1
## %bb.2:
movq 8(%rsi), %r12
movq $0, -1088(%rbp)
movq $0, -1080(%rbp)
leaq L_.str.1(%rip), %rsi
leaq -1088(%rbp), %rdx
leaq -1080(%rbp), %rcx
movq %r12, %rdi
callq _appimage_get_elf_section_offset_and_length
testl %eax, %eax
je LBB0_3
## %bb.5:
movq -1080(%rbp), %r8
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _segment_name@GOTPCREL(%rip), %rax
movq (%rax), %rdx
testq %r8, %r8
je LBB0_12
## %bb.6:
movq -1088(%rbp), %rcx
leaq L_.str.3(%rip), %rsi
xorl %eax, %eax
callq _fprintf
leaq L_.str.6(%rip), %rsi
movq %r12, %rdi
xorl %edx, %edx
callq _g_strconcat
movq %rax, %rdi
callq _basename
leaq L_.str.5(%rip), %rbx
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq _g_strconcat
movq %rax, -1112(%rbp) ## 8-byte Spill
leaq L_.str.7(%rip), %rsi
movq %r12, %rdi
xorl %edx, %edx
callq _g_strconcat
movq %rax, %rdi
callq _basename
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq _g_strconcat
movq %rax, %r14
movq -1080(%rbp), %rdi
callq _malloc
movq %rax, %r13
leaq L_.str.8(%rip), %rsi
movq %r12, %rdi
callq _fopen
movq %rax, %rbx
movq -1088(%rbp), %rsi
movq _SEEK_SET@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %rbx, %rdi
callq _fseek
movq -1080(%rbp), %rsi
movq %r13, %rdi
movl $4, %edx
movq %rbx, %rcx
callq _fread
movq %rbx, %rdi
callq _fclose
leaq L_.str.9(%rip), %rsi
movq %r14, -1104(%rbp) ## 8-byte Spill
movq %r14, %rdi
callq _fopen
testq %rax, %rax
je LBB0_14
## %bb.7:
movq %rax, %rbx
cmpq $0, -1080(%rbp)
je LBB0_10
## %bb.8:
leaq L_.str.11(%rip), %r14
xorl %r15d, %r15d
.p2align 4, 0x90
LBB0_9: ## =>This Inner Loop Header: Depth=1
movl (%r13,%r15,4), %edx
movl %ebx, %edi
movq %r14, %rsi
xorl %eax, %eax
callq _fprintf
incq %r15
cmpq -1080(%rbp), %r15
jb LBB0_9
LBB0_10:
movq %rbx, %rdi
callq _fclose
movq %r13, %rdi
callq _free
leaq -1096(%rbp), %rsi
movq %r12, %rdi
callq _stat
movslq -1096(%rbp), %rax
movq -1088(%rbp), %rdx
movq -1080(%rbp), %rcx
leaq (%rcx,%rdx), %rsi
cmpq %rax, %rsi
ja LBB0_11
## %bb.15:
leaq _main.buffer(%rip), %rbx
movq %r12, %rdi
movq %rbx, %rsi
callq _sha256_file
movq %rbx, %rdi
callq _puts
leaq L_.str.9(%rip), %rsi
movq -1112(%rbp), %r15 ## 8-byte Reload
movq %r15, %rdi
callq _fopen
testq %rax, %rax
movq _stderr@GOTPCREL(%rip), %r14
je LBB0_16
## %bb.18:
movq %rax, %rbx
leaq L_.str.15(%rip), %rsi
leaq _main.buffer(%rip), %rdx
movl %ebx, %edi
xorl %eax, %eax
callq _fprintf
movq %rbx, %rdi
callq _fclose
movq _G_FILE_TEST_IS_REGULAR@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %r15, %rdi
callq _g_file_test
testl %eax, %eax
movq -1104(%rbp), %r12 ## 8-byte Reload
je LBB0_19
## %bb.20:
leaq L_.str.17(%rip), %rdi
callq _g_find_program_in_path
leaq L_.str.18(%rip), %rsi
leaq -1072(%rbp), %rbx
movq %rbx, %rdi
movq %rax, %rdx
movq %r12, %rcx
movq %r15, %r8
callq _sprintf
movl (%r14), %edi
leaq L_.str.13(%rip), %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq _fprintf
leaq L_.str.8(%rip), %rsi
movq %rbx, %rdi
callq _popen
movq %rax, %rbx
testq %rax, %rax
jne LBB0_22
## %bb.21:
movl (%r14), %edi
leaq L_.str.19(%rip), %rsi
xorl %eax, %eax
callq _fprintf
LBB0_22:
movq %rbx, %rdi
callq _pclose
movl %eax, %edi
callq _WEXITSTATUS
movl %eax, %ebx
movq %r15, %rdi
callq _unlink
movq %r12, %rdi
callq _unlink
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB0_24
## %bb.23:
movl %ebx, %eax
addq $1080, %rsp ## imm = 0x438
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_1:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq (%rsi), %rdx
leaq L_.str(%rip), %rsi
jmp LBB0_13
LBB0_3:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.2(%rip), %rsi
jmp LBB0_4
LBB0_12:
leaq L_.str.4(%rip), %rsi
LBB0_13:
xorl %eax, %eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_14:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.10(%rip), %rsi
jmp LBB0_4
LBB0_11:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.12(%rip), %rsi
LBB0_4:
xorl %eax, %eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_16:
leaq L_str.20(%rip), %rdi
jmp LBB0_17
LBB0_19:
leaq L_str(%rip), %rdi
LBB0_17:
callq _puts
movl $1, %edi
callq _exit
LBB0_24:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage: %s Signed.AppImage\n"
L_.str.1: ## @.str.1
.asciz ".sha256_sig"
L_.str.2: ## @.str.2
.asciz "Failed to read .sha256_sig section"
L_.str.3: ## @.str.3
.asciz "Skipping ELF section %s with offset %lu, length %lu\n"
.comm _segment_name,8,3 ## @segment_name
L_.str.4: ## @.str.4
.asciz "ELF section %s not found, is the file signed?\n"
L_.str.5: ## @.str.5
.asciz "/tmp/"
L_.str.6: ## @.str.6
.asciz ".digest"
L_.str.7: ## @.str.7
.asciz ".sig"
L_.str.8: ## @.str.8
.asciz "r"
.comm _SEEK_SET,4,2 ## @SEEK_SET
L_.str.9: ## @.str.9
.asciz "w"
L_.str.10: ## @.str.10
.asciz "Not able to open the signature file for writing, aborting"
L_.str.11: ## @.str.11
.asciz "%c"
L_.str.12: ## @.str.12
.asciz "offset+length cannot be less than the file size\n"
.zerofill __DATA,__bss,_main.buffer,65,4 ## @main.buffer
L_.str.13: ## @.str.13
.asciz "%s\n"
L_.str.15: ## @.str.15
.asciz "%s"
.comm _G_FILE_TEST_IS_REGULAR,4,2 ## @G_FILE_TEST_IS_REGULAR
L_.str.17: ## @.str.17
.asciz "gpg2"
L_.str.18: ## @.str.18
.asciz "%s --verify %s %s"
L_.str.19: ## @.str.19
.asciz "gpg2 command did not succeed"
L_str: ## @str
.asciz "Error writing digestfile"
L_str.20: ## @str.20
.asciz "Error opening digestfile"
.subsections_via_symbols
|
.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:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 96
stp x26, x25, [sp, #16] ; 16-byte Folded Spill
stp x24, x23, [sp, #32] ; 16-byte Folded Spill
stp x22, x21, [sp, #48] ; 16-byte Folded Spill
stp x20, x19, [sp, #64] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
sub sp, sp, #1088
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-88]
cmp w0, #1
b.le LBB0_14
; %bb.1:
ldr x21, [x1, #8]
stp xzr, xzr, [sp, #40]
Lloh3:
adrp x1, l_.str.1@PAGE
Lloh4:
add x1, x1, l_.str.1@PAGEOFF
add x2, sp, #48
add x3, sp, #40
mov x0, x21
bl _appimage_get_elf_section_offset_and_length
cbz w0, LBB0_15
; %bb.2:
ldr x9, [sp, #40]
Lloh5:
adrp x25, _stderr@GOTPAGE
Lloh6:
ldr x25, [x25, _stderr@GOTPAGEOFF]
ldr w0, [x25]
Lloh7:
adrp x8, _segment_name@GOTPAGE
Lloh8:
ldr x8, [x8, _segment_name@GOTPAGEOFF]
Lloh9:
ldr x8, [x8]
cbz x9, LBB0_16
; %bb.3:
ldr x10, [sp, #48]
stp x10, x9, [sp, #8]
str x8, [sp]
Lloh10:
adrp x1, l_.str.3@PAGE
Lloh11:
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
Lloh12:
adrp x1, l_.str.6@PAGE
Lloh13:
add x1, x1, l_.str.6@PAGEOFF
mov x0, x21
mov x2, #0
bl _g_strconcat
bl _basename
mov x1, x0
Lloh14:
adrp x20, l_.str.5@PAGE
Lloh15:
add x20, x20, l_.str.5@PAGEOFF
mov x0, x20
mov x2, #0
bl _g_strconcat
mov x19, x0
Lloh16:
adrp x1, l_.str.7@PAGE
Lloh17:
add x1, x1, l_.str.7@PAGEOFF
mov x0, x21
mov x2, #0
bl _g_strconcat
bl _basename
mov x1, x0
mov x0, x20
mov x2, #0
bl _g_strconcat
mov x20, x0
ldr x0, [sp, #40]
bl _malloc
mov x22, x0
Lloh18:
adrp x1, l_.str.8@PAGE
Lloh19:
add x1, x1, l_.str.8@PAGEOFF
mov x0, x21
bl _fopen
mov x23, x0
ldr x1, [sp, #48]
Lloh20:
adrp x8, _SEEK_SET@GOTPAGE
Lloh21:
ldr x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh22:
ldr w2, [x8]
bl _fseek
ldr x1, [sp, #40]
mov x0, x22
mov w2, #4
mov x3, x23
bl _fread
mov x0, x23
bl _fclose
Lloh23:
adrp x1, l_.str.9@PAGE
Lloh24:
add x1, x1, l_.str.9@PAGEOFF
mov x0, x20
bl _fopen
cbz x0, LBB0_17
; %bb.4:
mov x23, x0
ldr x8, [sp, #40]
cbz x8, LBB0_7
; %bb.5:
mov x26, #0
Lloh25:
adrp x24, l_.str.11@PAGE
Lloh26:
add x24, x24, l_.str.11@PAGEOFF
LBB0_6: ; =>This Inner Loop Header: Depth=1
ldr w8, [x22, x26, lsl #2]
str x8, [sp]
mov x0, x23
mov x1, x24
bl _fprintf
add x26, x26, #1
ldr x8, [sp, #40]
cmp x26, x8
b.lo LBB0_6
LBB0_7:
mov x0, x23
bl _fclose
mov x0, x22
bl _free
add x1, sp, #32
mov x0, x21
bl _stat
ldrsw x8, [sp, #32]
ldp x3, x2, [sp, #40]
add x9, x3, x2
cmp x9, x8
b.hi LBB0_18
; %bb.8:
Lloh27:
adrp x22, _main.buffer@PAGE
Lloh28:
add x22, x22, _main.buffer@PAGEOFF
mov x0, x21
mov x1, x22
bl _sha256_file
mov x0, x22
bl _puts
Lloh29:
adrp x1, l_.str.9@PAGE
Lloh30:
add x1, x1, l_.str.9@PAGEOFF
mov x0, x19
bl _fopen
cbz x0, LBB0_20
; %bb.9:
mov x21, x0
str x22, [sp]
Lloh31:
adrp x1, l_.str.15@PAGE
Lloh32:
add x1, x1, l_.str.15@PAGEOFF
bl _fprintf
mov x0, x21
bl _fclose
Lloh33:
adrp x8, _G_FILE_TEST_IS_REGULAR@GOTPAGE
Lloh34:
ldr x8, [x8, _G_FILE_TEST_IS_REGULAR@GOTPAGEOFF]
Lloh35:
ldr w1, [x8]
mov x0, x19
bl _g_file_test
cbz w0, LBB0_21
; %bb.10:
Lloh36:
adrp x0, l_.str.17@PAGE
Lloh37:
add x0, x0, l_.str.17@PAGEOFF
bl _g_find_program_in_path
mov x2, x0
Lloh38:
adrp x1, l_.str.18@PAGE
Lloh39:
add x1, x1, l_.str.18@PAGEOFF
add x21, sp, #56
add x0, sp, #56
mov x3, x20
mov x4, x19
bl _sprintf
ldr w0, [x25]
str x21, [sp]
Lloh40:
adrp x1, l_.str.13@PAGE
Lloh41:
add x1, x1, l_.str.13@PAGEOFF
bl _fprintf
Lloh42:
adrp x1, l_.str.8@PAGE
Lloh43:
add x1, x1, l_.str.8@PAGEOFF
add x0, sp, #56
bl _popen
mov x21, x0
cbnz x0, LBB0_12
; %bb.11:
ldr w0, [x25]
Lloh44:
adrp x1, l_.str.19@PAGE
Lloh45:
add x1, x1, l_.str.19@PAGEOFF
bl _fprintf
LBB0_12:
mov x0, x21
bl _pclose
bl _WEXITSTATUS
mov x21, x0
mov x0, x19
bl _unlink
mov x0, x20
bl _unlink
ldur x8, [x29, #-88]
Lloh46:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh47:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_23
; %bb.13:
mov x0, x21
add sp, sp, #1088
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
ldp x22, x21, [sp, #48] ; 16-byte Folded Reload
ldp x24, x23, [sp, #32] ; 16-byte Folded Reload
ldp x26, x25, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #96 ; 16-byte Folded Reload
ret
LBB0_14:
Lloh49:
adrp x8, _stderr@GOTPAGE
Lloh50:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh51:
ldr w0, [x8]
ldr x8, [x1]
str x8, [sp]
Lloh52:
adrp x1, l_.str@PAGE
Lloh53:
add x1, x1, l_.str@PAGEOFF
b LBB0_19
LBB0_15:
Lloh54:
adrp x8, _stderr@GOTPAGE
Lloh55:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh56:
ldr w0, [x8]
Lloh57:
adrp x1, l_.str.2@PAGE
Lloh58:
add x1, x1, l_.str.2@PAGEOFF
b LBB0_19
LBB0_16:
str x8, [sp]
Lloh59:
adrp x1, l_.str.4@PAGE
Lloh60:
add x1, x1, l_.str.4@PAGEOFF
b LBB0_19
LBB0_17:
ldr w0, [x25]
Lloh61:
adrp x1, l_.str.10@PAGE
Lloh62:
add x1, x1, l_.str.10@PAGEOFF
b LBB0_19
LBB0_18:
ldr w0, [x25]
Lloh63:
adrp x1, l_.str.12@PAGE
Lloh64:
add x1, x1, l_.str.12@PAGEOFF
LBB0_19:
bl _fprintf
mov w0, #1
bl _exit
LBB0_20:
Lloh65:
adrp x0, l_str.20@PAGE
Lloh66:
add x0, x0, l_str.20@PAGEOFF
b LBB0_22
LBB0_21:
Lloh67:
adrp x0, l_str@PAGE
Lloh68:
add x0, x0, l_str@PAGEOFF
LBB0_22:
bl _puts
mov w0, #1
bl _exit
LBB0_23:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpAdd Lloh23, Lloh24
.loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22
.loh AdrpAdd Lloh18, Lloh19
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpAdd Lloh14, Lloh15
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh25, Lloh26
.loh AdrpAdd Lloh29, Lloh30
.loh AdrpAdd Lloh27, Lloh28
.loh AdrpLdrGotLdr Lloh33, Lloh34, Lloh35
.loh AdrpAdd Lloh31, Lloh32
.loh AdrpAdd Lloh42, Lloh43
.loh AdrpAdd Lloh40, Lloh41
.loh AdrpAdd Lloh38, Lloh39
.loh AdrpAdd Lloh36, Lloh37
.loh AdrpAdd Lloh44, Lloh45
.loh AdrpLdrGotLdr Lloh46, Lloh47, Lloh48
.loh AdrpAdd Lloh52, Lloh53
.loh AdrpLdrGotLdr Lloh49, Lloh50, Lloh51
.loh AdrpAdd Lloh57, Lloh58
.loh AdrpLdrGotLdr Lloh54, Lloh55, Lloh56
.loh AdrpAdd Lloh59, Lloh60
.loh AdrpAdd Lloh61, Lloh62
.loh AdrpAdd Lloh63, Lloh64
.loh AdrpAdd Lloh65, Lloh66
.loh AdrpAdd Lloh67, Lloh68
.cfi_endproc
; -- End function
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Usage: %s Signed.AppImage\n"
l_.str.1: ; @.str.1
.asciz ".sha256_sig"
l_.str.2: ; @.str.2
.asciz "Failed to read .sha256_sig section"
l_.str.3: ; @.str.3
.asciz "Skipping ELF section %s with offset %lu, length %lu\n"
.comm _segment_name,8,3 ; @segment_name
l_.str.4: ; @.str.4
.asciz "ELF section %s not found, is the file signed?\n"
l_.str.5: ; @.str.5
.asciz "/tmp/"
l_.str.6: ; @.str.6
.asciz ".digest"
l_.str.7: ; @.str.7
.asciz ".sig"
l_.str.8: ; @.str.8
.asciz "r"
.comm _SEEK_SET,4,2 ; @SEEK_SET
l_.str.9: ; @.str.9
.asciz "w"
l_.str.10: ; @.str.10
.asciz "Not able to open the signature file for writing, aborting"
l_.str.11: ; @.str.11
.asciz "%c"
l_.str.12: ; @.str.12
.asciz "offset+length cannot be less than the file size\n"
.zerofill __DATA,__bss,_main.buffer,65,0 ; @main.buffer
l_.str.13: ; @.str.13
.asciz "%s\n"
l_.str.15: ; @.str.15
.asciz "%s"
.comm _G_FILE_TEST_IS_REGULAR,4,2 ; @G_FILE_TEST_IS_REGULAR
l_.str.17: ; @.str.17
.asciz "gpg2"
l_.str.18: ; @.str.18
.asciz "%s --verify %s %s"
l_.str.19: ; @.str.19
.asciz "gpg2 command did not succeed"
l_str: ; @str
.asciz "Error writing digestfile"
l_str.20: ; @str.20
.asciz "Error opening digestfile"
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_validate.c_main.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sha256_file ## -- Begin function sha256_file
.p2align 4, 0x90
_sha256_file: ## @sha256_file
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $40, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %ecx, %ebx
movl %edx, %r14d
movq %rsi, %r15
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
leaq L_.str(%rip), %rsi
callq _fopen
testq %rax, %rax
je LBB0_1
## %bb.2:
movq %rax, %r12
movq %r15, -64(%rbp) ## 8-byte Spill
movq %rsp, %r15
movq _SHA256_DIGEST_LENGTH@GOTPCREL(%rip), %rax
movl (%rax), %eax
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, -80(%rbp) ## 8-byte Spill
leaq -52(%rbp), %rdi
callq _SHA256_Init
movl $1048576, %edi ## imm = 0x100000
callq _malloc
testq %rax, %rax
je LBB0_3
## %bb.4:
movq %rax, %r13
movq %r15, -72(%rbp) ## 8-byte Spill
movq %rax, %rdi
movl $1, %esi
cmpl $1048577, %r14d ## imm = 0x100001
jge LBB0_5
## %bb.21:
movl %r14d, %edx
movq %r12, %rcx
callq _fread
leaq -52(%rbp), %rdi
movq %r13, %rsi
movl %eax, %edx
xorl %eax, %eax
callq _SHA256_Update
jmp LBB0_8
LBB0_1:
movl $1, %eax
jmp LBB0_19
LBB0_3:
movq %r12, %rdi
callq _fclose
movq _ENOMEM@GOTPCREL(%rip), %rax
movl (%rax), %eax
jmp LBB0_18
LBB0_5:
movl $1048576, %edx ## imm = 0x100000
movq %r12, %rcx
callq _fread
testl %eax, %eax
je LBB0_8
## %bb.6:
xorl %r15d, %r15d
.p2align 4, 0x90
LBB0_7: ## =>This Inner Loop Header: Depth=1
addl %eax, %r15d
leaq -52(%rbp), %rdi
movq %r13, %rsi
movl %eax, %edx
xorl %eax, %eax
callq _SHA256_Update
movl %r14d, %edx
subl %r15d, %edx
cmpl $1048576, %edx ## imm = 0x100000
movl $1048576, %eax ## imm = 0x100000
cmovgel %eax, %edx
movq %r13, %rdi
movl $1, %esi
movq %r12, %rcx
callq _fread
testl %eax, %eax
jne LBB0_7
LBB0_8:
addl %ebx, %r14d
movq _SEEK_SET@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %r12, %rdi
movl %r14d, %esi
callq _fseek
testl %ebx, %ebx
jle LBB0_11
## %bb.9:
leaq l_.str.1(%rip), %r14
leaq -52(%rbp), %r15
.p2align 4, 0x90
LBB0_10: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
movq %r14, %rsi
movl $1, %edx
xorl %eax, %eax
callq _SHA256_Update
decl %ebx
jne LBB0_10
LBB0_11:
movq %r13, %rdi
movl $1, %esi
movl $1048576, %edx ## imm = 0x100000
movq %r12, %rcx
callq _fread
testl %eax, %eax
je LBB0_14
## %bb.12:
leaq -52(%rbp), %rbx
.p2align 4, 0x90
LBB0_13: ## =>This Inner Loop Header: Depth=1
movq %rbx, %rdi
movq %r13, %rsi
movl %eax, %edx
xorl %eax, %eax
callq _SHA256_Update
movq %r13, %rdi
movl $1, %esi
movl $1048576, %edx ## imm = 0x100000
movq %r12, %rcx
callq _fread
testl %eax, %eax
jne LBB0_13
LBB0_14:
leaq -52(%rbp), %rsi
movq -80(%rbp), %r13 ## 8-byte Reload
movq %r13, %rdi
callq _SHA256_Final
movq _SHA256_DIGEST_LENGTH@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jle LBB0_17
## %bb.15:
xorl %ebx, %ebx
leaq L_.str.2(%rip), %r14
movq -64(%rbp), %r15 ## 8-byte Reload
.p2align 4, 0x90
LBB0_16: ## =>This Inner Loop Header: Depth=1
movl (%r13,%rbx,4), %edx
movq %r15, %rdi
movq %r14, %rsi
callq _sprintf
incq %rbx
movq _SHA256_DIGEST_LENGTH@GOTPCREL(%rip), %rax
movslq (%rax), %rax
addq $2, %r15
cmpq %rax, %rbx
jl LBB0_16
LBB0_17:
movq -64(%rbp), %rax ## 8-byte Reload
movb $0, 64(%rax)
movq %r12, %rdi
callq _fclose
xorl %eax, %eax
movq -72(%rbp), %r15 ## 8-byte Reload
LBB0_18:
movq %r15, %rsp
LBB0_19:
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -48(%rbp), %rcx
jne LBB0_22
## %bb.20:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_22:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "rb"
.comm _SHA256_DIGEST_LENGTH,4,2 ## @SHA256_DIGEST_LENGTH
.comm _ENOMEM,4,2 ## @ENOMEM
.comm _SEEK_SET,4,2 ## @SEEK_SET
.section __TEXT,__const
l_.str.1: ## @.str.1
.space 2
.section __TEXT,__cstring,cstring_literals
L_.str.2: ## @.str.2
.asciz "%02x"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sha256_file ; -- Begin function sha256_file
.p2align 2
_sha256_file: ; @sha256_file
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 96
stp x26, x25, [sp, #16] ; 16-byte Folded Spill
stp x24, x23, [sp, #32] ; 16-byte Folded Spill
stp x22, x21, [sp, #48] ; 16-byte Folded Spill
stp x20, x19, [sp, #64] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
sub sp, sp, #16
mov x23, x3
mov x24, x2
mov x19, x1
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-88]
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
bl _fopen
cbz x0, LBB0_4
; %bb.1:
mov x20, x0
mov x25, sp
Lloh5:
adrp x26, _SHA256_DIGEST_LENGTH@GOTPAGE
Lloh6:
ldr x26, [x26, _SHA256_DIGEST_LENGTH@GOTPAGEOFF]
ldr w8, [x26]
lsl x8, x8, #2
mov x9, x8
Lloh7:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh8:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x9, sp
add x8, x8, #15
and x8, x8, #0x7fffffff0
sub x21, x9, x8
mov sp, x21
sub x0, x29, #92
bl _SHA256_Init
mov w0, #1048576
bl _malloc
cbz x0, LBB0_5
; %bb.2:
mov x22, x0
cmp w24, #256, lsl #12 ; =1048576
b.gt LBB0_6
; %bb.3:
mov x0, x22
mov w1, #1
mov x2, x24
mov x3, x20
bl _fread
; kill: def $w0 killed $w0 def $x0
stp x22, x0, [sp, #-16]!
sub x0, x29, #92
bl _SHA256_Update
add sp, sp, #16
b LBB0_9
LBB0_4:
mov w0, #1
b LBB0_19
LBB0_5:
mov x0, x20
bl _fclose
Lloh9:
adrp x8, _ENOMEM@GOTPAGE
Lloh10:
ldr x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
ldr w0, [x8]
b LBB0_18
LBB0_6:
mov w27, #1048576
mov x0, x22
mov w1, #1
mov w2, #1048576
mov x3, x20
bl _fread
; kill: def $w0 killed $w0 def $x0
cbz w0, LBB0_9
; %bb.7:
mov w28, #0
LBB0_8: ; =>This Inner Loop Header: Depth=1
add w28, w0, w28
stp x22, x0, [sp, #-16]!
sub x0, x29, #92
bl _SHA256_Update
add sp, sp, #16
sub w8, w24, w28
cmp w8, #256, lsl #12 ; =1048576
csel w2, w8, w27, lt
mov x0, x22
mov w1, #1
mov x3, x20
bl _fread
; kill: def $w0 killed $w0 def $x0
cbnz w0, LBB0_8
LBB0_9:
add w1, w23, w24
Lloh12:
adrp x8, _SEEK_SET@GOTPAGE
Lloh13:
ldr x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh14:
ldr w2, [x8]
mov x0, x20
bl _fseek
cmp w23, #1
b.lt LBB0_13
; %bb.10:
mov w24, #1
Lloh15:
adrp x27, l_.str.1@PAGE
Lloh16:
add x27, x27, l_.str.1@PAGEOFF
LBB0_11: ; =>This Inner Loop Header: Depth=1
stp x27, x24, [sp, #-16]!
sub x0, x29, #92
bl _SHA256_Update
add sp, sp, #16
subs w23, w23, #1
b.ne LBB0_11
b LBB0_13
LBB0_12: ; in Loop: Header=BB0_13 Depth=1
stp x22, x0, [sp, #-16]!
sub x0, x29, #92
bl _SHA256_Update
add sp, sp, #16
LBB0_13: ; =>This Inner Loop Header: Depth=1
mov x0, x22
mov w1, #1
mov w2, #1048576
mov x3, x20
bl _fread
; kill: def $w0 killed $w0 def $x0
cbnz w0, LBB0_12
; %bb.14:
sub x1, x29, #92
mov x0, x21
bl _SHA256_Final
ldr w8, [x26]
cmp w8, #1
b.lt LBB0_17
; %bb.15:
mov x24, #0
Lloh17:
adrp x22, l_.str.2@PAGE
Lloh18:
add x22, x22, l_.str.2@PAGEOFF
mov x23, x19
LBB0_16: ; =>This Inner Loop Header: Depth=1
ldr w2, [x21, x24, lsl #2]
mov x0, x23
mov x1, x22
bl _sprintf
add x24, x24, #1
ldrsw x8, [x26]
add x23, x23, #2
cmp x24, x8
b.lt LBB0_16
LBB0_17:
strb wzr, [x19, #64]
mov x0, x20
bl _fclose
mov w0, #0
LBB0_18:
mov sp, x25
LBB0_19:
ldur x8, [x29, #-88]
Lloh19:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh20:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_21
; %bb.20:
sub sp, x29, #80
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
ldp x22, x21, [sp, #48] ; 16-byte Folded Reload
ldp x24, x23, [sp, #32] ; 16-byte Folded Reload
ldp x26, x25, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #96 ; 16-byte Folded Reload
ret
LBB0_21:
bl ___stack_chk_fail
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGot Lloh7, Lloh8
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.loh AdrpAdd Lloh15, Lloh16
.loh AdrpAdd Lloh17, Lloh18
.loh AdrpLdrGotLdr Lloh19, Lloh20, Lloh21
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "rb"
.comm _SHA256_DIGEST_LENGTH,4,2 ; @SHA256_DIGEST_LENGTH
.comm _ENOMEM,4,2 ; @ENOMEM
.comm _SEEK_SET,4,2 ; @SEEK_SET
.section __TEXT,__const
l_.str.1: ; @.str.1
.space 2
.section __TEXT,__cstring,cstring_literals
l_.str.2: ; @.str.2
.asciz "%02x"
.subsections_via_symbols
|
AnghaBench/AppImageKit/src/extr_validate.c_sha256_file.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _copy_raw ## -- Begin function copy_raw
.p2align 4, 0x90
_copy_raw: ## @copy_raw
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $40, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
## kill: def $esi killed $esi def $rsi
## kill: def $edi killed $edi def $rdi
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movq %rsi, -72(%rbp) ## 8-byte Spill
movl %esi, %ecx
movq %rdi, -64(%rbp) ## 8-byte Spill
orl %edi, %ecx
movl $1, %eax
testb $1, %cl
jne LBB0_14
## %bb.1:
movl %edx, %r14d
movq %rsp, %rbx
movq _FLASH_SECTOR_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %r13d
movq %r13, %rax
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %r12
leal (%r14,%r13), %eax
decl %eax
movl %r13d, %r14d
negl %r14d
andl %eax, %r14d
je LBB0_2
## %bb.3:
movq %rbx, -56(%rbp) ## 8-byte Spill
xorl %r15d, %r15d
.p2align 4, 0x90
LBB0_4: ## =>This Inner Loop Header: Depth=1
movq -72(%rbp), %rax ## 8-byte Reload
leal (%rax,%r15), %ebx
movl %ebx, %eax
cltd
idivl %r13d
movl %eax, %edi
callq _SPIEraseSector
testq %rax, %rax
jne LBB0_5
## %bb.6: ## in Loop: Header=BB0_4 Depth=1
movq -64(%rbp), %rax ## 8-byte Reload
leal (%rax,%r15), %edi
movq %r12, %rsi
movl %r13d, %edx
callq _SPIRead
testq %rax, %rax
jne LBB0_7
## %bb.8: ## in Loop: Header=BB0_4 Depth=1
movl %ebx, %edi
movq %r12, %rsi
movl %r13d, %edx
callq _SPIWrite
testq %rax, %rax
jne LBB0_9
## %bb.10: ## in Loop: Header=BB0_4 Depth=1
addl %r13d, %r15d
cmpl %r15d, %r14d
jne LBB0_4
## %bb.11:
xorl %eax, %eax
jmp LBB0_12
LBB0_2:
xorl %eax, %eax
jmp LBB0_13
LBB0_5:
movl $2, %eax
jmp LBB0_12
LBB0_7:
movl $3, %eax
jmp LBB0_12
LBB0_9:
movl $4, %eax
LBB0_12:
movq -56(%rbp), %rbx ## 8-byte Reload
LBB0_13:
movq %rbx, %rsp
LBB0_14:
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -48(%rbp), %rcx
jne LBB0_16
## %bb.15:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_16:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _FLASH_SECTOR_SIZE,4,2 ## @FLASH_SECTOR_SIZE
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _copy_raw ; -- Begin function copy_raw
.p2align 2
_copy_raw: ; @copy_raw
.cfi_startproc
; %bb.0:
stp x26, x25, [sp, #-80]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 80
stp x24, x23, [sp, #16] ; 16-byte Folded Spill
stp x22, x21, [sp, #32] ; 16-byte Folded Spill
stp x20, x19, [sp, #48] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
sub sp, sp, #16
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-72]
orr w8, w1, w0
tbnz w8, #0, LBB0_8
; %bb.1:
mov x19, x1
mov x20, x0
mov x24, sp
Lloh3:
adrp x8, _FLASH_SECTOR_SIZE@GOTPAGE
Lloh4:
ldr x8, [x8, _FLASH_SECTOR_SIZE@GOTPAGEOFF]
Lloh5:
ldr w21, [x8]
lsl x8, x21, #2
mov x9, x8
Lloh6:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh7:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x9, sp
add x8, x8, #15
and x8, x8, #0x7fffffff0
sub x22, x9, x8
mov sp, x22
add w8, w2, w21
sub w8, w8, #1
neg w9, w21
ands w25, w8, w9
b.eq LBB0_7
; %bb.2:
mov w26, #0
LBB0_3: ; =>This Inner Loop Header: Depth=1
add w23, w19, w26
sdiv w0, w23, w21
bl _SPIEraseSector
cbnz x0, LBB0_9
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
add w0, w20, w26
mov x1, x22
mov x2, x21
bl _SPIRead
cbnz x0, LBB0_10
; %bb.5: ; in Loop: Header=BB0_3 Depth=1
mov x0, x23
mov x1, x22
mov x2, x21
bl _SPIWrite
cbnz x0, LBB0_11
; %bb.6: ; in Loop: Header=BB0_3 Depth=1
add w26, w26, w21
cmp w25, w26
b.ne LBB0_3
LBB0_7:
mov w0, #0
b LBB0_12
LBB0_8:
mov w0, #1
b LBB0_13
LBB0_9:
mov w0, #2
b LBB0_12
LBB0_10:
mov w0, #3
b LBB0_12
LBB0_11:
mov w0, #4
LBB0_12:
mov sp, x24
LBB0_13:
ldur x8, [x29, #-72]
Lloh8:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh9:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_15
; %bb.14:
sub sp, x29, #64
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
ldp x22, x21, [sp, #32] ; 16-byte Folded Reload
ldp x24, x23, [sp, #16] ; 16-byte Folded Reload
ldp x26, x25, [sp], #80 ; 16-byte Folded Reload
ret
LBB0_15:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.cfi_endproc
; -- End function
.comm _FLASH_SECTOR_SIZE,4,2 ; @FLASH_SECTOR_SIZE
.subsections_via_symbols
|
AnghaBench/Arduino/bootloaders/eboot/extr_eboot.c_copy_raw.c
|
anghabench
|
.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
pushq %rbx
subq $24, %rsp
.cfi_offset %rbx, -24
xorl %edi, %edi
callq _print_version
leaq -24(%rbp), %rdi
callq _eboot_command_read
testq %rax, %rax
je LBB0_1
## %bb.2:
movq _ACTION_LOAD_APP@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
movq $0, (%rax)
movb $126, %al
jmp LBB0_3
LBB0_1:
xorl %eax, %eax
callq _eboot_command_clear
movb $64, %al
LBB0_3:
movzbl %al, %edi
callq _ets_putc
movq -24(%rbp), %rax
movq _ACTION_COPY_RAW@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_6
## %bb.4:
movl $99, %edi
callq _ets_putc
movl $112, %edi
callq _ets_putc
movl $58, %edi
callq _ets_putc
xorl %eax, %eax
callq _ets_wdt_disable
movq -16(%rbp), %rax
movq (%rax), %rdi
movq 8(%rax), %rsi
movq 16(%rax), %rdx
callq _copy_raw
movl %eax, %ebx
xorl %eax, %eax
callq _ets_wdt_enable
leal 48(%rbx), %eax
movsbl %al, %edi
callq _ets_putc
movl $10, %edi
callq _ets_putc
testl %ebx, %ebx
jne LBB0_6
## %bb.5:
movq _ACTION_LOAD_APP@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
movq 8(%rax), %rcx
movq %rcx, (%rax)
LBB0_6:
movq -24(%rbp), %rax
movq _ACTION_LOAD_APP@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_8
## %bb.7:
movl $108, %edi
callq _ets_putc
movl $100, %edi
callq _ets_putc
movl $10, %edi
callq _ets_putc
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _load_app_from_flash_raw
movl %eax, %ebx
movl $101, %edi
callq _ets_putc
movl $58, %edi
callq _ets_putc
addb $48, %bl
movsbl %bl, %edi
callq _ets_putc
movl $10, %edi
callq _ets_putc
.p2align 4, 0x90
LBB0_8: ## =>This Inner Loop Header: Depth=1
jmp LBB0_8
.cfi_endproc
## -- End function
.comm _ACTION_LOAD_APP,8,3 ## @ACTION_LOAD_APP
.comm _ACTION_COPY_RAW,8,3 ## @ACTION_COPY_RAW
.comm _SWRST,4,2 ## @SWRST
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
mov w0, #0
bl _print_version
mov x0, sp
bl _eboot_command_read
Lloh0:
adrp x20, _ACTION_LOAD_APP@GOTPAGE
Lloh1:
ldr x20, [x20, _ACTION_LOAD_APP@GOTPAGEOFF]
cbz x0, LBB0_2
; %bb.1:
ldr x8, [x20]
str x8, [sp]
ldr x8, [sp, #8]
str xzr, [x8]
mov w0, #126
b LBB0_3
LBB0_2:
bl _eboot_command_clear
mov w0, #64
LBB0_3:
bl _ets_putc
ldr x8, [sp]
Lloh2:
adrp x9, _ACTION_COPY_RAW@GOTPAGE
Lloh3:
ldr x9, [x9, _ACTION_COPY_RAW@GOTPAGEOFF]
Lloh4:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_6
; %bb.4:
mov w0, #99
bl _ets_putc
mov w0, #112
bl _ets_putc
mov w0, #58
bl _ets_putc
bl _ets_wdt_disable
ldr x8, [sp, #8]
ldp x0, x1, [x8]
ldr x2, [x8, #16]
bl _copy_raw
mov x19, x0
bl _ets_wdt_enable
add w8, w19, #48
sxtb w0, w8
bl _ets_putc
mov w0, #10
bl _ets_putc
cbnz w19, LBB0_6
; %bb.5:
ldr x8, [x20]
str x8, [sp]
ldr x8, [sp, #8]
ldr x9, [x8, #8]
str x9, [x8]
LBB0_6:
ldr x8, [sp]
ldr x9, [x20]
cmp x8, x9
b.ne LBB0_8
; %bb.7:
mov w0, #108
bl _ets_putc
mov w0, #100
bl _ets_putc
mov w0, #10
bl _ets_putc
ldr x8, [sp, #8]
ldr x0, [x8]
bl _load_app_from_flash_raw
mov x19, x0
mov w0, #101
bl _ets_putc
mov w0, #58
bl _ets_putc
add w8, w19, #48
sxtb w0, w8
bl _ets_putc
mov w0, #10
bl _ets_putc
LBB0_8: ; =>This Inner Loop Header: Depth=1
b LBB0_8
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.cfi_endproc
; -- End function
.comm _ACTION_LOAD_APP,8,3 ; @ACTION_LOAD_APP
.comm _ACTION_COPY_RAW,8,3 ; @ACTION_COPY_RAW
.comm _SWRST,4,2 ; @SWRST
.subsections_via_symbols
|
AnghaBench/Arduino/bootloaders/eboot/extr_eboot.c_main.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal16,16byte_literals
.p2align 4 ## -- Begin function print_version
LCPI0_0:
.quad 11511455032694 ## 0xa7838302576
.quad 0 ## 0x0
.section __TEXT,__text,regular,pure_instructions
.globl _print_version
.p2align 4, 0x90
_print_version: ## @print_version
.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 _APP_START_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rax
addq %rax, %rdi
addq $8, %rdi
leaq -8(%rbp), %rsi
movl $8, %edx
callq _SPIRead
movq %rax, %rcx
movl $1, %eax
testq %rcx, %rcx
jne LBB0_2
## %bb.1:
movaps LCPI0_0(%rip), %xmm0 ## xmm0 = [11511455032694,0]
movaps %xmm0, -32(%rbp)
movq -8(%rbp), %rsi
leaq -32(%rbp), %rdi
callq _ets_printf
xorl %eax, %eax
LBB0_2:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _APP_START_OFFSET,8,3 ## @APP_START_OFFSET
.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 print_version
lCPI0_0:
.quad 11511455032694 ; 0xa7838302576
.quad 0 ; 0x0
.section __TEXT,__text,regular,pure_instructions
.globl _print_version
.p2align 2
_print_version: ; @print_version
.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
Lloh0:
adrp x8, _APP_START_OFFSET@GOTPAGE
Lloh1:
ldr x8, [x8, _APP_START_OFFSET@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
add x8, x0, x8
add x0, x8, #8
sub x1, x29, #8
mov w2, #8
bl _SPIRead
cbz x0, LBB0_2
; %bb.1:
mov w0, #1
b LBB0_3
LBB0_2:
Lloh3:
adrp x8, lCPI0_0@PAGE
Lloh4:
ldr q0, [x8, lCPI0_0@PAGEOFF]
str q0, [sp]
ldur x1, [x29, #-8]
mov x0, sp
bl _ets_printf
mov w0, #0
LBB0_3:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdr Lloh3, Lloh4
.cfi_endproc
; -- End function
.comm _APP_START_OFFSET,8,3 ; @APP_START_OFFSET
.subsections_via_symbols
|
AnghaBench/Arduino/bootloaders/eboot/extr_eboot.c_print_version.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal16,16byte_literals
.p2align 4 ## -- Begin function crc_update
LCPI0_0:
.long 1 ## 0x1
.long 2 ## 0x2
.long 4 ## 0x4
.long 8 ## 0x8
LCPI0_1:
.long 16 ## 0x10
.long 32 ## 0x20
.long 64 ## 0x40
.long 128 ## 0x80
.section __TEXT,__text,regular,pure_instructions
.globl _crc_update
.p2align 4, 0x90
_crc_update: ## @crc_update
.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, %eax
testq %rdx, %rdx
je LBB0_3
## %bb.1:
xorl %r8d, %r8d
movdqa LCPI0_0(%rip), %xmm0 ## xmm0 = [1,2,4,8]
movdqa LCPI0_1(%rip), %xmm1 ## xmm1 = [16,32,64,128]
pxor %xmm2, %xmm2
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movl %eax, %r10d
andl $-2147483648, %r10d ## imm = 0x80000000
movl %eax, %edi
notl %edi
shrl $31, %edi
addl %eax, %eax
movl %eax, %ecx
xorl $79764919, %ecx ## imm = 0x4C11DB7
movd (%rsi,%r8,4), %xmm3 ## xmm3 = mem[0],zero,zero,zero
pshufd $0, %xmm3, %xmm3 ## xmm3 = xmm3[0,0,0,0]
movdqa %xmm3, %xmm4
pand %xmm0, %xmm4
pand %xmm1, %xmm3
pcmpeqd %xmm2, %xmm3
pcmpeqd %xmm2, %xmm4
packssdw %xmm3, %xmm4
packsswb %xmm4, %xmm4
pmovmskb %xmm4, %r9d
testb $-128, %r9b
cmovnel %r10d, %edi
testl %edi, %edi
cmovel %eax, %ecx
movl %ecx, %eax
andl $-2147483648, %eax ## imm = 0x80000000
movl %ecx, %edi
notl %edi
shrl $31, %edi
testb $64, %r9b
cmovnel %eax, %edi
addl %ecx, %ecx
movl %ecx, %eax
xorl $79764919, %eax ## imm = 0x4C11DB7
testl %edi, %edi
cmovel %ecx, %eax
movl %eax, %ecx
andl $-2147483648, %ecx ## imm = 0x80000000
movl %eax, %edi
notl %edi
shrl $31, %edi
testb $32, %r9b
cmovnel %ecx, %edi
addl %eax, %eax
movl %eax, %ecx
xorl $79764919, %ecx ## imm = 0x4C11DB7
testl %edi, %edi
cmovel %eax, %ecx
movl %ecx, %eax
andl $-2147483648, %eax ## imm = 0x80000000
movl %ecx, %edi
notl %edi
shrl $31, %edi
testb $16, %r9b
cmovnel %eax, %edi
addl %ecx, %ecx
movl %ecx, %eax
xorl $79764919, %eax ## imm = 0x4C11DB7
testl %edi, %edi
cmovel %ecx, %eax
movl %eax, %ecx
andl $-2147483648, %ecx ## imm = 0x80000000
movl %eax, %edi
notl %edi
shrl $31, %edi
testb $8, %r9b
cmovnel %ecx, %edi
addl %eax, %eax
movl %eax, %ecx
xorl $79764919, %ecx ## imm = 0x4C11DB7
testl %edi, %edi
cmovel %eax, %ecx
movl %ecx, %eax
andl $-2147483648, %eax ## imm = 0x80000000
movl %ecx, %edi
notl %edi
shrl $31, %edi
testb $4, %r9b
cmovnel %eax, %edi
addl %ecx, %ecx
movl %ecx, %eax
xorl $79764919, %eax ## imm = 0x4C11DB7
testl %edi, %edi
cmovel %ecx, %eax
movl %eax, %ecx
andl $-2147483648, %ecx ## imm = 0x80000000
movl %eax, %edi
notl %edi
shrl $31, %edi
testb $2, %r9b
cmovnel %ecx, %edi
addl %eax, %eax
movl %eax, %ecx
xorl $79764919, %ecx ## imm = 0x4C11DB7
testl %edi, %edi
cmovel %eax, %ecx
movl %ecx, %eax
andl $-2147483648, %eax ## imm = 0x80000000
movl %ecx, %edi
notl %edi
shrl $31, %edi
testb $1, %r9b
cmovnel %eax, %edi
addl %ecx, %ecx
movl %ecx, %eax
xorl $79764919, %eax ## imm = 0x4C11DB7
testl %edi, %edi
cmovel %ecx, %eax
incq %r8
cmpq %r8, %rdx
jne LBB0_2
LBB0_3:
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _crc_update ; -- Begin function crc_update
.p2align 2
_crc_update: ; @crc_update
.cfi_startproc
; %bb.0:
cbz x2, LBB0_3
; %bb.1:
mov w8, #7607
movk w8, #1217, lsl #16
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldr w9, [x1], #4
and w10, w0, #0x80000000
mvn w11, w0
lsr w11, w11, #31
tst w9, #0x80
csel w10, w10, w11, eq
lsl w11, w0, #1
eor w12, w11, w8
cmp w10, #0
csel w10, w11, w12, eq
and w11, w10, #0x80000000
mvn w12, w10
lsr w12, w12, #31
tst w9, #0x40
csel w11, w11, w12, eq
lsl w10, w10, #1
eor w12, w10, w8
cmp w11, #0
csel w10, w10, w12, eq
and w11, w10, #0x80000000
mvn w12, w10
lsr w12, w12, #31
tst w9, #0x20
csel w11, w11, w12, eq
lsl w10, w10, #1
eor w12, w10, w8
cmp w11, #0
csel w10, w10, w12, eq
and w11, w10, #0x80000000
mvn w12, w10
lsr w12, w12, #31
tst w9, #0x10
csel w11, w11, w12, eq
lsl w10, w10, #1
eor w12, w10, w8
cmp w11, #0
csel w10, w10, w12, eq
and w11, w10, #0x80000000
mvn w12, w10
lsr w12, w12, #31
tst w9, #0x8
csel w11, w11, w12, eq
lsl w10, w10, #1
eor w12, w10, w8
cmp w11, #0
csel w10, w10, w12, eq
and w11, w10, #0x80000000
mvn w12, w10
lsr w12, w12, #31
tst w9, #0x4
csel w11, w11, w12, eq
lsl w10, w10, #1
eor w12, w10, w8
cmp w11, #0
csel w10, w10, w12, eq
and w11, w10, #0x80000000
mvn w12, w10
lsr w12, w12, #31
tst w9, #0x2
csel w11, w11, w12, eq
lsl w10, w10, #1
eor w12, w10, w8
cmp w11, #0
csel w10, w10, w12, eq
and w11, w10, #0x80000000
mvn w12, w10
lsr w12, w12, #31
tst w9, #0x1
csel w9, w11, w12, eq
lsl w10, w10, #1
eor w11, w10, w8
cmp w9, #0
csel w0, w10, w11, eq
sub x2, x2, #1
cbnz x2, LBB0_2
LBB0_3:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/bootloaders/eboot/extr_eboot_command.c_crc_update.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _SPIEraseAreaEx ## -- Begin function SPIEraseAreaEx
.p2align 4, 0x90
_SPIEraseAreaEx: ## @SPIEraseAreaEx
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
## kill: def $esi killed $esi def $rsi
movq _FLASH_SECTOR_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %ecx
cmpl $1, %ecx
setne %al
movl $1, %r14d
testb %dil, %al
je LBB0_1
LBB0_14:
movl %r14d, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_1:
movq _FLASH_BLOCK_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %eax
cltd
idivl %ecx
movl %eax, %r14d
movl %edi, %eax
cltd
idivl %ecx
movl %eax, %r13d
leal (%rsi,%rcx), %eax
decl %eax
cltd
idivl %ecx
movl %r13d, %r15d
addl %eax, %r15d
testl %eax, %eax
jle LBB0_7
## %bb.2:
leal -1(%r14), %r12d
.p2align 4, 0x90
LBB0_3: ## =>This Inner Loop Header: Depth=1
testl %r12d, %r13d
je LBB0_7
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movl %r13d, %edi
callq _SPIEraseSector
testq %rax, %rax
jne LBB0_5
## %bb.6: ## in Loop: Header=BB0_3 Depth=1
incl %r13d
cmpl %r15d, %r13d
jl LBB0_3
jmp LBB0_7
.p2align 4, 0x90
LBB0_9: ## in Loop: Header=BB0_7 Depth=1
movl %r13d, %eax
cltd
idivl %r14d
movl %eax, %edi
callq _SPIEraseBlock
movl %ebx, %r13d
testq %rax, %rax
jne LBB0_10
LBB0_7: ## =>This Inner Loop Header: Depth=1
leal (%r14,%r13), %ebx
cmpl %r15d, %ebx
jle LBB0_9
## %bb.8:
xorl %r14d, %r14d
cmpl %r15d, %r13d
jge LBB0_14
.p2align 4, 0x90
LBB0_12: ## =>This Inner Loop Header: Depth=1
movl %r13d, %edi
callq _SPIEraseSector
testq %rax, %rax
jne LBB0_13
## %bb.11: ## in Loop: Header=BB0_12 Depth=1
incl %r13d
cmpl %r13d, %r15d
jne LBB0_12
jmp LBB0_14
LBB0_10:
movl $3, %r14d
jmp LBB0_14
LBB0_5:
movl $2, %r14d
jmp LBB0_14
LBB0_13:
movl $4, %r14d
jmp LBB0_14
.cfi_endproc
## -- End function
.comm _FLASH_SECTOR_SIZE,4,2 ## @FLASH_SECTOR_SIZE
.comm _FLASH_BLOCK_SIZE,4,2 ## @FLASH_BLOCK_SIZE
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _SPIEraseAreaEx ; -- Begin function SPIEraseAreaEx
.p2align 2
_SPIEraseAreaEx: ; @SPIEraseAreaEx
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
Lloh0:
adrp x8, _FLASH_SECTOR_SIZE@GOTPAGE
Lloh1:
ldr x8, [x8, _FLASH_SECTOR_SIZE@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
cmp w8, #1
cset w9, ne
tst w9, w0
b.eq LBB0_3
; %bb.1:
mov w0, #1
LBB0_2:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
LBB0_3:
Lloh3:
adrp x9, _FLASH_BLOCK_SIZE@GOTPAGE
Lloh4:
ldr x9, [x9, _FLASH_BLOCK_SIZE@GOTPAGEOFF]
Lloh5:
ldr w9, [x9]
sdiv w19, w0, w8
add w10, w1, w8
sub w10, w10, #1
sdiv w10, w10, w8
add w20, w10, w19
sdiv w21, w9, w8
cmp w10, #1
b.lt LBB0_9
; %bb.4:
sub w22, w21, #1
LBB0_5: ; =>This Inner Loop Header: Depth=1
tst w19, w22
b.eq LBB0_9
; %bb.6: ; in Loop: Header=BB0_5 Depth=1
mov x0, x19
bl _SPIEraseSector
cbnz x0, LBB0_15
; %bb.7: ; in Loop: Header=BB0_5 Depth=1
add w19, w19, #1
cmp w19, w20
b.lt LBB0_5
b LBB0_9
LBB0_8: ; in Loop: Header=BB0_9 Depth=1
sdiv w0, w19, w21
bl _SPIEraseBlock
mov x19, x22
cbnz x0, LBB0_14
LBB0_9: ; =>This Inner Loop Header: Depth=1
add w22, w19, w21
cmp w22, w20
b.le LBB0_8
; %bb.10:
cmp w19, w20
b.ge LBB0_13
LBB0_11: ; =>This Inner Loop Header: Depth=1
mov x0, x19
bl _SPIEraseSector
cbnz x0, LBB0_16
; %bb.12: ; in Loop: Header=BB0_11 Depth=1
add w19, w19, #1
cmp w20, w19
b.ne LBB0_11
LBB0_13:
mov w0, #0
b LBB0_2
LBB0_14:
mov w0, #3
b LBB0_2
LBB0_15:
mov w0, #2
b LBB0_2
LBB0_16:
mov w0, #4
b LBB0_2
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.cfi_endproc
; -- End function
.comm _FLASH_SECTOR_SIZE,4,2 ; @FLASH_SECTOR_SIZE
.comm _FLASH_BLOCK_SIZE,4,2 ; @FLASH_BLOCK_SIZE
.subsections_via_symbols
|
AnghaBench/Arduino/bootloaders/eboot/extr_flash.c_SPIEraseAreaEx.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _gdbstub_has_putc1_control ## -- Begin function gdbstub_has_putc1_control
.p2align 4, 0x90
_gdbstub_has_putc1_control: ## @gdbstub_has_putc1_control
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _gdbstub_has_putc1_control ; -- Begin function gdbstub_has_putc1_control
.p2align 2
_gdbstub_has_putc1_control: ; @gdbstub_has_putc1_control
.cfi_startproc
; %bb.0:
mov w0, #0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/libraries/GDBStub/src/internal/extr_gdbstub.c_gdbstub_has_putc1_control.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _gdbstub_has_uart_isr_control ## -- Begin function gdbstub_has_uart_isr_control
.p2align 4, 0x90
_gdbstub_has_uart_isr_control: ## @gdbstub_has_uart_isr_control
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _gdbstub_has_uart_isr_control ; -- Begin function gdbstub_has_uart_isr_control
.p2align 2
_gdbstub_has_uart_isr_control: ; @gdbstub_has_uart_isr_control
.cfi_startproc
; %bb.0:
mov w0, #0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/libraries/GDBStub/src/internal/extr_gdbstub.c_gdbstub_has_uart_isr_control.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fill ## -- Begin function fill
.p2align 4, 0x90
_fill: ## @fill
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _MAX@GOTPCREL(%rip), %r8
movl (%r8), %ecx
testl %ecx, %ecx
je LBB0_6
## %bb.1:
xorl %esi, %esi
jmp LBB0_2
.p2align 4, 0x90
LBB0_4: ## in Loop: Header=BB0_2 Depth=1
xorl %edx, %edx
divq %r9
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
movb %dl, (%rdi,%rsi)
incq %rsi
movslq (%r8), %rcx
leaq (%rcx,%rcx,2), %rax
cmpq %rax, %rsi
jae LBB0_6
LBB0_2: ## =>This Inner Loop Header: Depth=1
leaq 10(%rsi), %rax
movslq %ecx, %r9
movq %rax, %rdx
orq %r9, %rdx
shrq $32, %rdx
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
## kill: def $eax killed $eax killed $rax
xorl %edx, %edx
divl %ecx
## kill: def $edx killed $edx def $rdx
jmp LBB0_5
LBB0_6:
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _MAX,4,2 ## @MAX
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fill ; -- Begin function fill
.p2align 2
_fill: ; @fill
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _MAX@GOTPAGE
Lloh1:
ldr x8, [x8, _MAX@GOTPAGEOFF]
ldr w10, [x8]
cbz w10, LBB0_3
; %bb.1:
mov x9, #0
LBB0_2: ; =>This Inner Loop Header: Depth=1
add x11, x9, #10
sxtw x12, w10
udiv x12, x11, x12
msub w10, w12, w10, w11
strb w10, [x0, x9]
add x9, x9, #1
ldrsw x10, [x8]
add x11, x10, x10, lsl #1
; kill: def $w10 killed $w10 killed $x10 def $x10
cmp x9, x11
b.lo LBB0_2
LBB0_3:
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _MAX,4,2 ; @MAX
.subsections_via_symbols
|
AnghaBench/Arduino/tests/device/test_libc/extr_memmove1.c_fill.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mymemmove ## -- Begin function mymemmove
.p2align 4, 0x90
_mymemmove: ## @mymemmove
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
.cfi_offset %rbx, -24
cmpq %rdi, %rsi
jae LBB0_2
## %bb.1:
leaq (%rsi,%rdx), %r9
cmpq %rdi, %r9
jbe LBB0_2
## %bb.29:
testq %rdx, %rdx
je LBB0_18
## %bb.30:
leaq (%rdi,%rdx), %r8
cmpq $8, %rdx
jb LBB0_31
## %bb.32:
leaq (%rsi,%rdx), %rax
subq %rdi, %rax
subq %rdx, %rax
cmpq $32, %rax
jae LBB0_33
LBB0_31:
movq %rdx, %rsi
movq %r9, %rdi
movq %r8, %rax
LBB0_38:
leaq -1(%rsi), %rcx
movq %rsi, %rdx
andq $7, %rdx
je LBB0_40
.p2align 4, 0x90
LBB0_39: ## =>This Inner Loop Header: Depth=1
decq %rsi
movzbl -1(%rdi), %ebx
decq %rdi
movb %bl, -1(%rax)
decq %rax
decq %rdx
jne LBB0_39
LBB0_40:
cmpq $7, %rcx
jb LBB0_18
## %bb.41:
negq %rsi
xorl %ecx, %ecx
.p2align 4, 0x90
LBB0_42: ## =>This Inner Loop Header: Depth=1
movzbl -1(%rdi,%rcx), %edx
movb %dl, -1(%rax,%rcx)
movzbl -2(%rdi,%rcx), %edx
movb %dl, -2(%rax,%rcx)
movzbl -3(%rdi,%rcx), %edx
movb %dl, -3(%rax,%rcx)
movzbl -4(%rdi,%rcx), %edx
movb %dl, -4(%rax,%rcx)
movzbl -5(%rdi,%rcx), %edx
movb %dl, -5(%rax,%rcx)
movzbl -6(%rdi,%rcx), %edx
movb %dl, -6(%rax,%rcx)
movzbl -7(%rdi,%rcx), %edx
movb %dl, -7(%rax,%rcx)
movzbl -8(%rdi,%rcx), %edx
movb %dl, -8(%rax,%rcx)
addq $-8, %rcx
cmpq %rcx, %rsi
jne LBB0_42
jmp LBB0_18
LBB0_2:
testq %rdx, %rdx
je LBB0_18
## %bb.3:
cmpq $8, %rdx
jb LBB0_4
## %bb.5:
movq %rdi, %rax
subq %rsi, %rax
cmpq $32, %rax
jb LBB0_4
## %bb.6:
cmpq $32, %rdx
jae LBB0_19
## %bb.7:
xorl %r9d, %r9d
jmp LBB0_8
LBB0_33:
cmpq $32, %rdx
jae LBB0_43
## %bb.34:
xorl %ecx, %ecx
jmp LBB0_35
LBB0_19:
movq %rdx, %r9
andq $-32, %r9
leaq -32(%r9), %rax
movq %rax, %rcx
shrq $5, %rcx
incq %rcx
movl %ecx, %r8d
andl $3, %r8d
cmpq $96, %rax
jae LBB0_21
## %bb.20:
xorl %eax, %eax
jmp LBB0_23
LBB0_43:
movq %rdx, %rcx
andq $-32, %rcx
leaq -32(%rcx), %rax
movq %rax, %r10
shrq $5, %r10
incq %r10
testq %rax, %rax
je LBB0_44
## %bb.45:
movabsq $1152921504606846972, %rax ## imm = 0xFFFFFFFFFFFFFFC
orq $2, %rax
andq %r10, %rax
leaq (%rdi,%rdx), %r11
addq $-16, %r11
leaq (%rsi,%rdx), %rdi
addq $-16, %rdi
xorl %esi, %esi
.p2align 4, 0x90
LBB0_46: ## =>This Inner Loop Header: Depth=1
movups -16(%rdi,%rsi), %xmm0
movups (%rdi,%rsi), %xmm1
movups %xmm1, (%r11,%rsi)
movups %xmm0, -16(%r11,%rsi)
movups -48(%rdi,%rsi), %xmm0
movups -32(%rdi,%rsi), %xmm1
movups %xmm1, -32(%r11,%rsi)
movups %xmm0, -48(%r11,%rsi)
addq $-64, %rsi
addq $-2, %rax
jne LBB0_46
## %bb.47:
negq %rsi
jmp LBB0_48
LBB0_21:
andq $-4, %rcx
xorl %eax, %eax
.p2align 4, 0x90
LBB0_22: ## =>This Inner Loop Header: Depth=1
movups (%rsi,%rax), %xmm0
movups 16(%rsi,%rax), %xmm1
movups %xmm0, (%rdi,%rax)
movups %xmm1, 16(%rdi,%rax)
movups 32(%rsi,%rax), %xmm0
movups 48(%rsi,%rax), %xmm1
movups %xmm0, 32(%rdi,%rax)
movups %xmm1, 48(%rdi,%rax)
movups 64(%rsi,%rax), %xmm0
movups 80(%rsi,%rax), %xmm1
movups %xmm0, 64(%rdi,%rax)
movups %xmm1, 80(%rdi,%rax)
movups 96(%rsi,%rax), %xmm0
movups 112(%rsi,%rax), %xmm1
movups %xmm0, 96(%rdi,%rax)
movups %xmm1, 112(%rdi,%rax)
subq $-128, %rax
addq $-4, %rcx
jne LBB0_22
LBB0_23:
testq %r8, %r8
je LBB0_26
## %bb.24:
leaq (%rdi,%rax), %r10
addq $16, %r10
addq %rsi, %rax
addq $16, %rax
shlq $5, %r8
xorl %ecx, %ecx
.p2align 4, 0x90
LBB0_25: ## =>This Inner Loop Header: Depth=1
movups -16(%rax,%rcx), %xmm0
movups (%rax,%rcx), %xmm1
movups %xmm0, -16(%r10,%rcx)
movups %xmm1, (%r10,%rcx)
addq $32, %rcx
cmpq %rcx, %r8
jne LBB0_25
LBB0_26:
cmpq %rdx, %r9
je LBB0_18
## %bb.27:
testb $24, %dl
je LBB0_28
LBB0_8:
movq %rdx, %r10
andq $-8, %r10
movl %edx, %r8d
andl $7, %r8d
leaq (%rsi,%r10), %r11
leaq (%rdi,%r10), %rax
.p2align 4, 0x90
LBB0_9: ## =>This Inner Loop Header: Depth=1
movq (%rsi,%r9), %rcx
movq %rcx, (%rdi,%r9)
addq $8, %r9
cmpq %r9, %r10
jne LBB0_9
## %bb.10:
cmpq %rdx, %r10
jne LBB0_11
jmp LBB0_18
LBB0_28:
addq %r9, %rdi
addq %r9, %rsi
andl $31, %edx
LBB0_4:
movq %rdx, %r8
movq %rsi, %r11
movq %rdi, %rax
LBB0_11:
leaq -1(%r8), %rdx
movq %r8, %rdi
andq $7, %rdi
je LBB0_15
## %bb.12:
xorl %esi, %esi
.p2align 4, 0x90
LBB0_13: ## =>This Inner Loop Header: Depth=1
movzbl (%r11,%rsi), %ecx
movb %cl, (%rax,%rsi)
incq %rsi
cmpq %rsi, %rdi
jne LBB0_13
## %bb.14:
subq %rsi, %r8
addq %rsi, %r11
addq %rsi, %rax
LBB0_15:
cmpq $7, %rdx
jb LBB0_18
## %bb.16:
xorl %edx, %edx
.p2align 4, 0x90
LBB0_17: ## =>This Inner Loop Header: Depth=1
movzbl (%r11,%rdx), %ecx
movb %cl, (%rax,%rdx)
movzbl 1(%r11,%rdx), %ecx
movb %cl, 1(%rax,%rdx)
movzbl 2(%r11,%rdx), %ecx
movb %cl, 2(%rax,%rdx)
movzbl 3(%r11,%rdx), %ecx
movb %cl, 3(%rax,%rdx)
movzbl 4(%r11,%rdx), %ecx
movb %cl, 4(%rax,%rdx)
movzbl 5(%r11,%rdx), %ecx
movb %cl, 5(%rax,%rdx)
movzbl 6(%r11,%rdx), %ecx
movb %cl, 6(%rax,%rdx)
movzbl 7(%r11,%rdx), %ecx
movb %cl, 7(%rax,%rdx)
addq $8, %rdx
cmpq %rdx, %r8
jne LBB0_17
LBB0_18:
popq %rbx
popq %rbp
retq
LBB0_44:
xorl %esi, %esi
LBB0_48:
testb $1, %r10b
je LBB0_50
## %bb.49:
movq %r9, %rax
subq %rsi, %rax
movq %r8, %rdi
subq %rsi, %rdi
movups -32(%rax), %xmm0
movups -16(%rax), %xmm1
movups %xmm1, -16(%rdi)
movups %xmm0, -32(%rdi)
LBB0_50:
cmpq %rdx, %rcx
je LBB0_18
## %bb.51:
testb $24, %dl
je LBB0_52
LBB0_35:
movq %rdx, %r10
andq $-8, %r10
movl %edx, %esi
andl $7, %esi
movq %r10, %r11
negq %r11
movq %r9, %rdi
subq %r10, %rdi
movq %r8, %rax
subq %r10, %rax
negq %rcx
.p2align 4, 0x90
LBB0_36: ## =>This Inner Loop Header: Depth=1
movq -8(%r9,%rcx), %rbx
movq %rbx, -8(%r8,%rcx)
addq $-8, %rcx
cmpq %rcx, %r11
jne LBB0_36
## %bb.37:
cmpq %rdx, %r10
jne LBB0_38
jmp LBB0_18
LBB0_52:
subq %rcx, %r8
subq %rcx, %r9
andl $31, %edx
jmp LBB0_31
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mymemmove ; -- Begin function mymemmove
.p2align 2
_mymemmove: ; @mymemmove
.cfi_startproc
; %bb.0:
cmp x1, x0
b.hs LBB0_5
; %bb.1:
add x8, x1, x2
cmp x8, x0
b.ls LBB0_5
; %bb.2:
cbz x2, LBB0_20
; %bb.3:
sub x8, x1, #1
sub x9, x0, #1
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldrb w10, [x8, x2]
strb w10, [x9, x2]
subs x2, x2, #1
b.ne LBB0_4
b LBB0_20
LBB0_5:
cbz x2, LBB0_20
; %bb.6:
cmp x2, #8
b.lo LBB0_10
; %bb.7:
sub x8, x0, x1
cmp x8, #64
b.lo LBB0_10
; %bb.8:
cmp x2, #64
b.hs LBB0_11
; %bb.9:
mov x11, #0
b LBB0_15
LBB0_10:
mov x8, x2
mov x9, x1
mov x10, x0
b LBB0_19
LBB0_11:
and x11, x2, #0xffffffffffffffc0
add x8, x0, #32
add x9, x1, #32
mov x10, x11
LBB0_12: ; =>This Inner Loop Header: Depth=1
ldp q0, q1, [x9, #-32]
ldp q2, q3, [x9], #64
stp q0, q1, [x8, #-32]
stp q2, q3, [x8], #64
subs x10, x10, #64
b.ne LBB0_12
; %bb.13:
cmp x11, x2
b.eq LBB0_20
; %bb.14:
tst x2, #0x38
b.eq LBB0_18
LBB0_15:
and x12, x2, #0xfffffffffffffff8
and x8, x2, #0x7
add x9, x1, x12
add x10, x0, x12
add x13, x0, x11
add x14, x1, x11
sub x11, x11, x12
LBB0_16: ; =>This Inner Loop Header: Depth=1
ldr d0, [x14], #8
str d0, [x13], #8
adds x11, x11, #8
b.ne LBB0_16
; %bb.17:
cmp x12, x2
b.ne LBB0_19
b LBB0_20
LBB0_18:
add x10, x0, x11
add x9, x1, x11
and x8, x2, #0x3f
LBB0_19: ; =>This Inner Loop Header: Depth=1
ldrb w11, [x9], #1
strb w11, [x10], #1
subs x8, x8, #1
b.ne LBB0_19
LBB0_20:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tests/device/test_libc/extr_memmove1.c_mymemmove.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal16,16byte_literals
.p2align 4 ## -- Begin function strcmp_main
LCPI0_0:
.long 12 ## 0xc
.long 13 ## 0xd
.long 14 ## 0xe
.long 15 ## 0xf
LCPI0_1:
.long 8 ## 0x8
.long 9 ## 0x9
.long 10 ## 0xa
.long 11 ## 0xb
LCPI0_2:
.long 4 ## 0x4
.long 5 ## 0x5
.long 6 ## 0x6
.long 7 ## 0x7
LCPI0_3:
.long 0 ## 0x0
.long 1 ## 0x1
.long 2 ## 0x2
.long 3 ## 0x3
LCPI0_4:
.long 1321528399 ## 0x4ec4ec4f
.long 1321528399 ## 0x4ec4ec4f
.long 1321528399 ## 0x4ec4ec4f
.long 1321528399 ## 0x4ec4ec4f
LCPI0_5:
.long 26 ## 0x1a
.long 26 ## 0x1a
.long 26 ## 0x1a
.long 26 ## 0x1a
LCPI0_6:
.space 16,65
LCPI0_7:
.long 16 ## 0x10
.long 16 ## 0x10
.long 16 ## 0x10
.long 16 ## 0x10
LCPI0_8:
.long 32 ## 0x20
.long 32 ## 0x20
.long 32 ## 0x20
.long 32 ## 0x20
.section __TEXT,__text,regular,pure_instructions
.globl _strcmp_main
.p2align 4, 0x90
_strcmp_main: ## @strcmp_main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $168, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movq _BUFF_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %ebx
movq %rbx, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %r14
movq %rbx, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %r15
movq _rand_seed@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _srand
leaq -1(%r14), %rax
movq %rax, -136(%rbp) ## 8-byte Spill
leaq 1(%r15), %rax
movq %rax, -144(%rbp) ## 8-byte Spill
movq _MAX_BLOCK_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %r8d
movq _MAX_DIFF@GOTPCREL(%rip), %rbx
movdqa LCPI0_4(%rip), %xmm10 ## xmm10 = [1321528399,1321528399,1321528399,1321528399]
movdqa LCPI0_5(%rip), %xmm11 ## xmm11 = [26,26,26,26]
movdqa LCPI0_6(%rip), %xmm12 ## xmm12 = [65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65]
movdqa LCPI0_7(%rip), %xmm13 ## xmm13 = [16,16,16,16]
movdqa LCPI0_8(%rip), %xmm14 ## xmm14 = [32,32,32,32]
xorl %edx, %edx
jmp LBB0_1
.p2align 4, 0x90
LBB0_50: ## in Loop: Header=BB0_1 Depth=1
movl -52(%rbp), %edx ## 4-byte Reload
incl %edx
cmpl %ecx, %edx
ja LBB0_51
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_2 Depth 2
## Child Loop BB0_5 Depth 3
## Child Loop BB0_7 Depth 4
## Child Loop BB0_10 Depth 5
## Child Loop BB0_12 Depth 6
## Child Loop BB0_19 Depth 7
## Child Loop BB0_24 Depth 7
movl %edx, -52(%rbp) ## 4-byte Spill
movl %edx, %ecx
leaq (%r14,%rcx), %rdx
movq %rdx, -120(%rbp) ## 8-byte Spill
addq -136(%rbp), %rcx ## 8-byte Folded Reload
movq %rcx, -152(%rbp) ## 8-byte Spill
movl %r8d, %edx
xorl %edi, %edi
jmp LBB0_2
.p2align 4, 0x90
LBB0_3: ## in Loop: Header=BB0_2 Depth=2
xorl %edx, %edx
LBB0_49: ## in Loop: Header=BB0_2 Depth=2
incl %edi
movq _MAX_OFFSET@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
cmpl %ecx, %edi
ja LBB0_50
LBB0_2: ## Parent Loop BB0_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_5 Depth 3
## Child Loop BB0_7 Depth 4
## Child Loop BB0_10 Depth 5
## Child Loop BB0_12 Depth 6
## Child Loop BB0_19 Depth 7
## Child Loop BB0_24 Depth 7
movl %edi, %edi
testl %edx, %edx
je LBB0_3
## %bb.4: ## in Loop: Header=BB0_2 Depth=2
movq -144(%rbp), %rcx ## 8-byte Reload
addq %rdi, %rcx
movq %rcx, -160(%rbp) ## 8-byte Spill
leaq (%r15,%rdi), %rcx
movq %rcx, -128(%rbp) ## 8-byte Spill
movl (%rbx), %r9d
leaq -1(%r15,%rdi), %rdx
movq %rdx, -168(%rbp) ## 8-byte Spill
movl $1, %esi
movq %rdi, -88(%rbp) ## 8-byte Spill
jmp LBB0_5
.p2align 4, 0x90
LBB0_47: ## in Loop: Header=BB0_5 Depth=3
movq _MAX_BLOCK_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %r8d
LBB0_48: ## in Loop: Header=BB0_5 Depth=3
movq -64(%rbp), %rax ## 8-byte Reload
incl %eax
movl %eax, %esi
movl %r8d, %edx
cmpl %r8d, %eax
ja LBB0_49
LBB0_5: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_2 Depth=2
## => This Loop Header: Depth=3
## Child Loop BB0_7 Depth 4
## Child Loop BB0_10 Depth 5
## Child Loop BB0_12 Depth 6
## Child Loop BB0_19 Depth 7
## Child Loop BB0_24 Depth 7
movl %esi, %edx
addl %r9d, %esi
cmpl $2, %esi
movq %rdx, -64(%rbp) ## 8-byte Spill
jb LBB0_48
## %bb.6: ## in Loop: Header=BB0_5 Depth=3
movq -152(%rbp), %rax ## 8-byte Reload
addq %rdx, %rax
movq %rax, -192(%rbp) ## 8-byte Spill
movq _MAX_LEN@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl $1, %edx
movq %rdx, -72(%rbp) ## 8-byte Spill
movl %eax, %edx
movq -160(%rbp), %rcx ## 8-byte Reload
movq %rcx, -112(%rbp) ## 8-byte Spill
xorl %ecx, %ecx
movq %rcx, -104(%rbp) ## 8-byte Spill
jmp LBB0_7
.p2align 4, 0x90
LBB0_45: ## in Loop: Header=BB0_7 Depth=4
movl (%rbx), %r9d
movl %eax, %edx
LBB0_46: ## in Loop: Header=BB0_7 Depth=4
movq -72(%rbp), %rcx ## 8-byte Reload
incq %rcx
movq -64(%rbp), %rsi ## 8-byte Reload
addl %r9d, %esi
incq -104(%rbp) ## 8-byte Folded Spill
incq -112(%rbp) ## 8-byte Folded Spill
movq %rcx, -72(%rbp) ## 8-byte Spill
cmpq %rsi, %rcx
jae LBB0_47
LBB0_7: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_2 Depth=2
## Parent Loop BB0_5 Depth=3
## => This Loop Header: Depth=4
## Child Loop BB0_10 Depth 5
## Child Loop BB0_12 Depth 6
## Child Loop BB0_19 Depth 7
## Child Loop BB0_24 Depth 7
testl %edx, %edx
je LBB0_8
## %bb.9: ## in Loop: Header=BB0_7 Depth=4
movq -104(%rbp), %rcx ## 8-byte Reload
addq %rdi, %rcx
addq %r15, %rcx
movq %rcx, -176(%rbp) ## 8-byte Spill
movq -64(%rbp), %rcx ## 8-byte Reload
## kill: def $ecx killed $ecx killed $rcx
movq -72(%rbp), %rdx ## 8-byte Reload
subl %edx, %ecx
movl %ecx, -96(%rbp) ## 4-byte Spill
movq -168(%rbp), %rcx ## 8-byte Reload
addq %rdx, %rcx
movq %rcx, -200(%rbp) ## 8-byte Spill
movq _MAX_ZEROS@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl $-1, %edx
xorl %esi, %esi
jmp LBB0_10
.p2align 4, 0x90
LBB0_43: ## in Loop: Header=BB0_10 Depth=5
movq _MAX_LEN@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq -88(%rbp), %rdi ## 8-byte Reload
movl -92(%rbp), %edx ## 4-byte Reload
movq -80(%rbp), %rsi ## 8-byte Reload
LBB0_44: ## in Loop: Header=BB0_10 Depth=5
incq %rsi
incl %edx
cmpl %esi, %eax
jbe LBB0_45
LBB0_10: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_2 Depth=2
## Parent Loop BB0_5 Depth=3
## Parent Loop BB0_7 Depth=4
## => This Loop Header: Depth=5
## Child Loop BB0_12 Depth 6
## Child Loop BB0_19 Depth 7
## Child Loop BB0_24 Depth 7
cmpl $2, %ecx
jl LBB0_44
## %bb.11: ## in Loop: Header=BB0_10 Depth=5
movq %rsi, -80(%rbp) ## 8-byte Spill
movl %edx, -92(%rbp) ## 4-byte Spill
movl %edx, %eax
addq -112(%rbp), %rax ## 8-byte Folded Reload
movq %rax, -184(%rbp) ## 8-byte Spill
movl $1, %r12d
xorl %r13d, %r13d
jmp LBB0_12
LBB0_40: ## in Loop: Header=BB0_12 Depth=6
xorl %eax, %eax
pushq %r10
pushq -80(%rbp) ## 8-byte Folded Reload
LBB0_41: ## in Loop: Header=BB0_12 Depth=6
callq _print_error
movdqa LCPI0_8(%rip), %xmm14 ## xmm14 = [32,32,32,32]
movdqa LCPI0_7(%rip), %xmm13 ## xmm13 = [16,16,16,16]
movdqa LCPI0_6(%rip), %xmm12 ## xmm12 = [65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65]
movdqa LCPI0_5(%rip), %xmm11 ## xmm11 = [26,26,26,26]
movdqa LCPI0_4(%rip), %xmm10 ## xmm10 = [1321528399,1321528399,1321528399,1321528399]
addq $16, %rsp
LBB0_42: ## in Loop: Header=BB0_12 Depth=6
incl %r12d
movq _MAX_ZEROS@GOTPCREL(%rip), %rax
movl (%rax), %ecx
cmpl %ecx, %r12d
jge LBB0_43
LBB0_12: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_2 Depth=2
## Parent Loop BB0_5 Depth=3
## Parent Loop BB0_7 Depth=4
## Parent Loop BB0_10 Depth=5
## => This Loop Header: Depth=6
## Child Loop BB0_19 Depth 7
## Child Loop BB0_24 Depth 7
incq %r13
movl -96(%rbp), %eax ## 4-byte Reload
cmpl (%rbx), %eax
ja LBB0_42
## %bb.13: ## in Loop: Header=BB0_12 Depth=6
movq _BUFF_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %r8d
testl %r8d, %r8d
jle LBB0_25
## %bb.14: ## in Loop: Header=BB0_12 Depth=6
cmpl $16, %r8d
jae LBB0_16
## %bb.15: ## in Loop: Header=BB0_12 Depth=6
xorl %ecx, %ecx
jmp LBB0_23
LBB0_16: ## in Loop: Header=BB0_12 Depth=6
movl %r8d, %ecx
andl $-16, %ecx
leaq -16(%rcx), %rdx
movq %rdx, %rsi
shrq $4, %rsi
incq %rsi
testq %rdx, %rdx
je LBB0_17
## %bb.18: ## in Loop: Header=BB0_12 Depth=6
movq %rsi, %rdi
andq $-2, %rdi
xorl %edx, %edx
movdqa LCPI0_3(%rip), %xmm8 ## xmm8 = [0,1,2,3]
movdqa LCPI0_2(%rip), %xmm9 ## xmm9 = [4,5,6,7]
movdqa LCPI0_1(%rip), %xmm1 ## xmm1 = [8,9,10,11]
movdqa LCPI0_0(%rip), %xmm3 ## xmm3 = [12,13,14,15]
.p2align 4, 0x90
LBB0_19: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_2 Depth=2
## Parent Loop BB0_5 Depth=3
## Parent Loop BB0_7 Depth=4
## Parent Loop BB0_10 Depth=5
## Parent Loop BB0_12 Depth=6
## => This Inner Loop Header: Depth=7
pshufd $245, %xmm1, %xmm4 ## xmm4 = xmm1[1,1,3,3]
pmuludq %xmm10, %xmm4
movdqa %xmm1, %xmm5
pmuludq %xmm10, %xmm5
pshufd $245, %xmm5, %xmm5 ## xmm5 = xmm5[1,1,3,3]
pblendw $204, %xmm4, %xmm5 ## xmm5 = xmm5[0,1],xmm4[2,3],xmm5[4,5],xmm4[6,7]
psrld $3, %xmm5
pmulld %xmm11, %xmm5
movdqa %xmm1, %xmm4
psubd %xmm5, %xmm4
pshufd $245, %xmm3, %xmm5 ## xmm5 = xmm3[1,1,3,3]
pmuludq %xmm10, %xmm5
movdqa %xmm3, %xmm6
pmuludq %xmm10, %xmm6
pshufd $245, %xmm6, %xmm6 ## xmm6 = xmm6[1,1,3,3]
pblendw $204, %xmm5, %xmm6 ## xmm6 = xmm6[0,1],xmm5[2,3],xmm6[4,5],xmm5[6,7]
psrld $3, %xmm6
pmulld %xmm11, %xmm6
movdqa %xmm3, %xmm5
psubd %xmm6, %xmm5
packusdw %xmm5, %xmm4
pshufd $245, %xmm8, %xmm5 ## xmm5 = xmm8[1,1,3,3]
pmuludq %xmm10, %xmm5
movdqa %xmm8, %xmm6
pmuludq %xmm10, %xmm6
pshufd $245, %xmm6, %xmm6 ## xmm6 = xmm6[1,1,3,3]
pblendw $204, %xmm5, %xmm6 ## xmm6 = xmm6[0,1],xmm5[2,3],xmm6[4,5],xmm5[6,7]
psrld $3, %xmm6
pmulld %xmm11, %xmm6
movdqa %xmm8, %xmm5
psubd %xmm6, %xmm5
pshufd $245, %xmm9, %xmm6 ## xmm6 = xmm9[1,1,3,3]
pmuludq %xmm10, %xmm6
movdqa %xmm9, %xmm7
pmuludq %xmm10, %xmm7
pshufd $245, %xmm7, %xmm7 ## xmm7 = xmm7[1,1,3,3]
pblendw $204, %xmm6, %xmm7 ## xmm7 = xmm7[0,1],xmm6[2,3],xmm7[4,5],xmm6[6,7]
psrld $3, %xmm7
pmulld %xmm11, %xmm7
movdqa %xmm9, %xmm6
psubd %xmm7, %xmm6
packusdw %xmm6, %xmm5
packuswb %xmm4, %xmm5
paddb %xmm12, %xmm5
movdqa %xmm5, (%r14,%rdx)
movdqa %xmm5, (%r15,%rdx)
movdqa %xmm9, %xmm5
paddd %xmm13, %xmm5
movdqa %xmm8, %xmm4
paddd %xmm13, %xmm4
movdqa %xmm3, %xmm7
paddd %xmm13, %xmm7
movdqa %xmm1, %xmm2
paddd %xmm13, %xmm2
pshufd $245, %xmm2, %xmm0 ## xmm0 = xmm2[1,1,3,3]
pmuludq %xmm10, %xmm0
movdqa %xmm2, %xmm6
pmuludq %xmm10, %xmm6
pshufd $245, %xmm6, %xmm6 ## xmm6 = xmm6[1,1,3,3]
pblendw $204, %xmm0, %xmm6 ## xmm6 = xmm6[0,1],xmm0[2,3],xmm6[4,5],xmm0[6,7]
psrld $3, %xmm6
pmulld %xmm11, %xmm6
psubd %xmm6, %xmm2
pshufd $245, %xmm7, %xmm0 ## xmm0 = xmm7[1,1,3,3]
pmuludq %xmm10, %xmm0
movdqa %xmm7, %xmm6
pmuludq %xmm10, %xmm6
pshufd $245, %xmm6, %xmm6 ## xmm6 = xmm6[1,1,3,3]
pblendw $204, %xmm0, %xmm6 ## xmm6 = xmm6[0,1],xmm0[2,3],xmm6[4,5],xmm0[6,7]
psrld $3, %xmm6
pmulld %xmm11, %xmm6
psubd %xmm6, %xmm7
packusdw %xmm7, %xmm2
pshufd $245, %xmm4, %xmm0 ## xmm0 = xmm4[1,1,3,3]
pmuludq %xmm10, %xmm0
movdqa %xmm4, %xmm6
pmuludq %xmm10, %xmm6
pshufd $245, %xmm6, %xmm6 ## xmm6 = xmm6[1,1,3,3]
pblendw $204, %xmm0, %xmm6 ## xmm6 = xmm6[0,1],xmm0[2,3],xmm6[4,5],xmm0[6,7]
psrld $3, %xmm6
pmulld %xmm11, %xmm6
psubd %xmm6, %xmm4
pshufd $245, %xmm5, %xmm0 ## xmm0 = xmm5[1,1,3,3]
pmuludq %xmm10, %xmm0
movdqa %xmm5, %xmm6
pmuludq %xmm10, %xmm6
pshufd $245, %xmm6, %xmm6 ## xmm6 = xmm6[1,1,3,3]
pblendw $204, %xmm0, %xmm6 ## xmm6 = xmm6[0,1],xmm0[2,3],xmm6[4,5],xmm0[6,7]
psrld $3, %xmm6
pmulld %xmm11, %xmm6
psubd %xmm6, %xmm5
packusdw %xmm5, %xmm4
packuswb %xmm2, %xmm4
paddb %xmm12, %xmm4
movdqa %xmm4, 16(%r14,%rdx)
movdqa %xmm4, 16(%r15,%rdx)
addq $32, %rdx
paddd %xmm14, %xmm8
paddd %xmm14, %xmm9
paddd %xmm14, %xmm1
paddd %xmm14, %xmm3
addq $-2, %rdi
jne LBB0_19
## %bb.20: ## in Loop: Header=BB0_12 Depth=6
testb $1, %sil
je LBB0_22
LBB0_21: ## in Loop: Header=BB0_12 Depth=6
pshufd $245, %xmm1, %xmm0 ## xmm0 = xmm1[1,1,3,3]
pmuludq %xmm10, %xmm0
movdqa %xmm1, %xmm2
pmuludq %xmm10, %xmm2
pshufd $245, %xmm2, %xmm2 ## xmm2 = xmm2[1,1,3,3]
pblendw $204, %xmm0, %xmm2 ## xmm2 = xmm2[0,1],xmm0[2,3],xmm2[4,5],xmm0[6,7]
psrld $3, %xmm2
pmulld %xmm11, %xmm2
psubd %xmm2, %xmm1
pshufd $245, %xmm3, %xmm0 ## xmm0 = xmm3[1,1,3,3]
pmuludq %xmm10, %xmm0
movdqa %xmm3, %xmm2
pmuludq %xmm10, %xmm2
pshufd $245, %xmm2, %xmm2 ## xmm2 = xmm2[1,1,3,3]
pblendw $204, %xmm0, %xmm2 ## xmm2 = xmm2[0,1],xmm0[2,3],xmm2[4,5],xmm0[6,7]
psrld $3, %xmm2
pmulld %xmm11, %xmm2
psubd %xmm2, %xmm3
packusdw %xmm3, %xmm1
pshufd $245, %xmm8, %xmm0 ## xmm0 = xmm8[1,1,3,3]
pmuludq %xmm10, %xmm0
movdqa %xmm8, %xmm2
pmuludq %xmm10, %xmm2
pshufd $245, %xmm2, %xmm2 ## xmm2 = xmm2[1,1,3,3]
pblendw $204, %xmm0, %xmm2 ## xmm2 = xmm2[0,1],xmm0[2,3],xmm2[4,5],xmm0[6,7]
psrld $3, %xmm2
pmulld %xmm11, %xmm2
psubd %xmm2, %xmm8
pshufd $245, %xmm9, %xmm0 ## xmm0 = xmm9[1,1,3,3]
pmuludq %xmm10, %xmm0
movdqa %xmm9, %xmm2
pmuludq %xmm10, %xmm2
pshufd $245, %xmm2, %xmm2 ## xmm2 = xmm2[1,1,3,3]
pblendw $204, %xmm0, %xmm2 ## xmm2 = xmm2[0,1],xmm0[2,3],xmm2[4,5],xmm0[6,7]
psrld $3, %xmm2
pmulld %xmm11, %xmm2
psubd %xmm2, %xmm9
packusdw %xmm9, %xmm8
packuswb %xmm1, %xmm8
paddb %xmm12, %xmm8
movdqa %xmm8, (%r14,%rdx)
movdqa %xmm8, (%r15,%rdx)
LBB0_22: ## in Loop: Header=BB0_12 Depth=6
cmpq %r8, %rcx
je LBB0_25
LBB0_23: ## in Loop: Header=BB0_12 Depth=6
leal 65(%rcx), %edx
movq %rcx, %rsi
.p2align 4, 0x90
LBB0_24: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_2 Depth=2
## Parent Loop BB0_5 Depth=3
## Parent Loop BB0_7 Depth=4
## Parent Loop BB0_10 Depth=5
## Parent Loop BB0_12 Depth=6
## => This Inner Loop Header: Depth=7
movl %ecx, %edi
imulq $1321528399, %rdi, %rdi ## imm = 0x4EC4EC4F
shrq $35, %rdi
leal (%rdi,%rdi,4), %ebx
leal (%rbx,%rbx,4), %ebx
addl %edi, %ebx
movl %edx, %eax
subb %bl, %al
movb %al, (%r14,%rsi)
movb %al, (%r15,%rsi)
incq %rsi
incb %dl
incl %ecx
cmpq %rsi, %r8
jne LBB0_24
LBB0_25: ## in Loop: Header=BB0_12 Depth=6
xorl %edi, %edi
callq _delay
movq -128(%rbp), %rdi ## 8-byte Reload
movq -120(%rbp), %rsi ## 8-byte Reload
movq -64(%rbp), %rbx ## 8-byte Reload
movl %ebx, %edx
callq _memcpy
movq -192(%rbp), %rdi ## 8-byte Reload
movq %r13, %rsi
callq ___bzero
movq -200(%rbp), %rax ## 8-byte Reload
movq -80(%rbp), %rdx ## 8-byte Reload
testl %edx, %edx
jle LBB0_27
## %bb.26: ## in Loop: Header=BB0_12 Depth=6
movq -176(%rbp), %rdi ## 8-byte Reload
movl $120, %esi
callq _memset
movq -184(%rbp), %rax ## 8-byte Reload
LBB0_27: ## in Loop: Header=BB0_12 Depth=6
movb $0, (%rax)
movq -120(%rbp), %rdi ## 8-byte Reload
movq -128(%rbp), %rsi ## 8-byte Reload
callq _strcmp
movl %eax, %r10d
cmpq %rbx, -72(%rbp) ## 8-byte Folded Reload
jne LBB0_34
## %bb.28: ## in Loop: Header=BB0_12 Depth=6
cmpl $0, -80(%rbp) ## 4-byte Folded Reload
movq _MAX_DIFF@GOTPCREL(%rip), %rbx
movdqa LCPI0_4(%rip), %xmm10 ## xmm10 = [1321528399,1321528399,1321528399,1321528399]
movdqa LCPI0_5(%rip), %xmm11 ## xmm11 = [26,26,26,26]
movdqa LCPI0_6(%rip), %xmm12 ## xmm12 = [65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65]
movdqa LCPI0_7(%rip), %xmm13 ## xmm13 = [16,16,16,16]
movdqa LCPI0_8(%rip), %xmm14 ## xmm14 = [32,32,32,32]
je LBB0_29
## %bb.32: ## in Loop: Header=BB0_12 Depth=6
testl %r10d, %r10d
js LBB0_42
## %bb.33: ## in Loop: Header=BB0_12 Depth=6
movq _testname@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.1(%rip), %rdi
movq -64(%rbp), %rdx ## 8-byte Reload
movl -52(%rbp), %ecx ## 4-byte Reload
movq -88(%rbp), %r8 ## 8-byte Reload
## kill: def $r8d killed $r8d killed $r8
movl %edx, %r9d
jmp LBB0_40
.p2align 4, 0x90
LBB0_34: ## in Loop: Header=BB0_12 Depth=6
movq _MAX_DIFF@GOTPCREL(%rip), %rbx
movdqa LCPI0_4(%rip), %xmm10 ## xmm10 = [1321528399,1321528399,1321528399,1321528399]
movdqa LCPI0_5(%rip), %xmm11 ## xmm11 = [26,26,26,26]
movdqa LCPI0_6(%rip), %xmm12 ## xmm12 = [65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65]
movdqa LCPI0_7(%rip), %xmm13 ## xmm13 = [16,16,16,16]
movdqa LCPI0_8(%rip), %xmm14 ## xmm14 = [32,32,32,32]
ja LBB0_38
## %bb.35: ## in Loop: Header=BB0_12 Depth=6
cmpl $0, -80(%rbp) ## 4-byte Folded Reload
je LBB0_36
LBB0_38: ## in Loop: Header=BB0_12 Depth=6
testl %r10d, %r10d
js LBB0_42
## %bb.39: ## in Loop: Header=BB0_12 Depth=6
movq _testname@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.1(%rip), %rdi
movq -64(%rbp), %rdx ## 8-byte Reload
## kill: def $edx killed $edx killed $rdx
movl -52(%rbp), %ecx ## 4-byte Reload
movq -88(%rbp), %r8 ## 8-byte Reload
## kill: def $r8d killed $r8d killed $r8
movq -72(%rbp), %r9 ## 8-byte Reload
## kill: def $r9d killed $r9d killed $r9
jmp LBB0_40
LBB0_29: ## in Loop: Header=BB0_12 Depth=6
testl %r10d, %r10d
je LBB0_42
## %bb.30: ## in Loop: Header=BB0_12 Depth=6
movq _testname@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str(%rip), %rdi
movq -64(%rbp), %rdx ## 8-byte Reload
movl -52(%rbp), %ecx ## 4-byte Reload
movq -88(%rbp), %r8 ## 8-byte Reload
## kill: def $r8d killed $r8d killed $r8
movl %edx, %r9d
jmp LBB0_31
LBB0_17: ## in Loop: Header=BB0_12 Depth=6
xorl %edx, %edx
movdqa LCPI0_3(%rip), %xmm8 ## xmm8 = [0,1,2,3]
movdqa LCPI0_2(%rip), %xmm9 ## xmm9 = [4,5,6,7]
movdqa LCPI0_1(%rip), %xmm1 ## xmm1 = [8,9,10,11]
movdqa LCPI0_0(%rip), %xmm3 ## xmm3 = [12,13,14,15]
testb $1, %sil
jne LBB0_21
jmp LBB0_22
LBB0_36: ## in Loop: Header=BB0_12 Depth=6
testl %r10d, %r10d
jg LBB0_42
## %bb.37: ## in Loop: Header=BB0_12 Depth=6
movq _testname@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.2(%rip), %rdi
movq -64(%rbp), %rdx ## 8-byte Reload
## kill: def $edx killed $edx killed $rdx
movl -52(%rbp), %ecx ## 4-byte Reload
movq -88(%rbp), %r8 ## 8-byte Reload
## kill: def $r8d killed $r8d killed $r8
movq -72(%rbp), %r9 ## 8-byte Reload
## kill: def $r9d killed $r9d killed $r9
LBB0_31: ## in Loop: Header=BB0_12 Depth=6
xorl %eax, %eax
pushq %r10
pushq $0
jmp LBB0_41
.p2align 4, 0x90
LBB0_8: ## in Loop: Header=BB0_7 Depth=4
xorl %edx, %edx
jmp LBB0_46
LBB0_51:
movb $65, 1(%r14)
movb $65, 1(%r15)
movb $66, 2(%r14)
movb $66, 2(%r15)
movb $67, 3(%r14)
movb $67, 3(%r15)
movb $0, 4(%r14)
movb $0, 4(%r15)
movb $-63, (%r14)
movb $65, (%r15)
movq %r14, %rdi
movq %r15, %rsi
callq _strcmp
testl %eax, %eax
jg LBB0_53
## %bb.52:
leaq L_.str.3(%rip), %rdi
movl %eax, %esi
xorl %eax, %eax
callq _print_error
LBB0_53:
movb $1, (%r14)
movb $-126, (%r15)
movq %r14, %rdi
movq %r15, %rsi
callq _strcmp
testl %eax, %eax
js LBB0_55
## %bb.54:
leaq L_.str.4(%rip), %rdi
movl %eax, %esi
xorl %eax, %eax
callq _print_error
LBB0_55:
movb $68, (%r14)
movb $68, (%r15)
movb $-63, 3(%r14)
movb $65, 3(%r15)
movq %r14, %rdi
movq %r15, %rsi
callq _strcmp
testl %eax, %eax
jg LBB0_57
## %bb.56:
leaq L_.str.3(%rip), %rdi
movl %eax, %esi
xorl %eax, %eax
callq _print_error
LBB0_57:
movb $1, 3(%r14)
movb $-126, 3(%r15)
movq %r14, %rdi
movq %r15, %rsi
callq _strcmp
testl %eax, %eax
js LBB0_59
## %bb.58:
leaq L_.str.4(%rip), %rdi
movl %eax, %esi
xorl %eax, %eax
callq _print_error
LBB0_59:
movq _errors@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_62
## %bb.60:
leaq L_str(%rip), %rdi
callq _puts
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB0_63
## %bb.61:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_62:
leaq L_str.7(%rip), %rdi
callq _puts
xorl %eax, %eax
callq _abort
LBB0_63:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _BUFF_SIZE,4,2 ## @BUFF_SIZE
.comm _rand_seed,4,2 ## @rand_seed
.comm _MAX_OFFSET,4,2 ## @MAX_OFFSET
.comm _MAX_BLOCK_SIZE,4,2 ## @MAX_BLOCK_SIZE
.comm _MAX_DIFF,4,2 ## @MAX_DIFF
.comm _MAX_LEN,4,2 ## @MAX_LEN
.comm _MAX_ZEROS,4,2 ## @MAX_ZEROS
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\nFailed: after %s of %u bytes with src_align %u and dst_align %u, dest after %d bytes is modified for %d bytes, return value is %d, expected 0.\n"
.comm _testname,4,2 ## @testname
L_.str.1: ## @.str.1
.asciz "\nFailed: after %s of %u bytes with src_align %u and dst_align %u, dest after %d bytes is modified for %d bytes, return value is %d, expected negative.\n"
L_.str.2: ## @.str.2
.asciz "\nFailed: after %s of %u bytes with src_align %u and dst_align %u, dest after %d bytes is modified for %d bytes, return value is %d, expected positive.\n"
L_.str.3: ## @.str.3
.asciz "\nFailed: expected positive, return %d\n"
L_.str.4: ## @.str.4
.asciz "\nFailed: expected negative, return %d\n"
.comm _errors,8,3 ## @errors
L_str: ## @str
.asciz "ok"
L_str.7: ## @str.7
.asciz "ERROR. FAILED."
.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 strcmp_main
lCPI0_0:
.long 12 ; 0xc
.long 13 ; 0xd
.long 14 ; 0xe
.long 15 ; 0xf
lCPI0_1:
.long 8 ; 0x8
.long 9 ; 0x9
.long 10 ; 0xa
.long 11 ; 0xb
lCPI0_2:
.long 4 ; 0x4
.long 5 ; 0x5
.long 6 ; 0x6
.long 7 ; 0x7
lCPI0_3:
.long 0 ; 0x0
.long 1 ; 0x1
.long 2 ; 0x2
.long 3 ; 0x3
lCPI0_4:
.byte 0 ; 0x0
.byte 4 ; 0x4
.byte 8 ; 0x8
.byte 12 ; 0xc
.byte 16 ; 0x10
.byte 20 ; 0x14
.byte 24 ; 0x18
.byte 28 ; 0x1c
.byte 32 ; 0x20
.byte 36 ; 0x24
.byte 40 ; 0x28
.byte 44 ; 0x2c
.byte 48 ; 0x30
.byte 52 ; 0x34
.byte 56 ; 0x38
.byte 60 ; 0x3c
.section __TEXT,__text,regular,pure_instructions
.globl _strcmp_main
.p2align 2
_strcmp_main: ; @strcmp_main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 96
stp x26, x25, [sp, #16] ; 16-byte Folded Spill
stp x24, x23, [sp, #32] ; 16-byte Folded Spill
stp x22, x21, [sp, #48] ; 16-byte Folded Spill
stp x20, x19, [sp, #64] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
sub sp, sp, #272
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-96]
Lloh3:
adrp x8, _BUFF_SIZE@GOTPAGE
Lloh4:
ldr x8, [x8, _BUFF_SIZE@GOTPAGEOFF]
Lloh5:
ldr w8, [x8]
mov x9, x8
Lloh6:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh7:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x9, sp
add x10, x8, #15
and x12, x10, #0x1fffffff0
sub x19, x9, x12
mov sp, x19
mov x9, x8
Lloh8:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh9:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x8, sp
sub x20, x8, x12
mov sp, x20
Lloh10:
adrp x8, _rand_seed@GOTPAGE
Lloh11:
ldr x8, [x8, _rand_seed@GOTPAGEOFF]
Lloh12:
ldr w0, [x8]
bl _srand
mov w10, #0
stur x19, [x29, #-168] ; 8-byte Folded Spill
sub x8, x19, #1
sub x9, x29, #88
stur x8, [x9, #-256] ; 8-byte Folded Spill
stur x20, [x29, #-160] ; 8-byte Folded Spill
add x8, x20, #1
sub x9, x29, #80
stur x8, [x9, #-256] ; 8-byte Folded Spill
Lloh13:
adrp x8, _MAX_BLOCK_SIZE@GOTPAGE
Lloh14:
ldr x8, [x8, _MAX_BLOCK_SIZE@GOTPAGEOFF]
Lloh15:
ldr w8, [x8]
mov w20, #60495
movk w20, #20164, lsl #16
mov w23, #26
Lloh16:
adrp x9, lCPI0_0@PAGE
Lloh17:
ldr q0, [x9, lCPI0_0@PAGEOFF]
stur q0, [x29, #-224] ; 16-byte Folded Spill
Lloh18:
adrp x9, lCPI0_1@PAGE
Lloh19:
ldr q0, [x9, lCPI0_1@PAGEOFF]
stur q0, [x29, #-240] ; 16-byte Folded Spill
Lloh20:
adrp x9, lCPI0_2@PAGE
Lloh21:
ldr q0, [x9, lCPI0_2@PAGEOFF]
stur q0, [x29, #-256] ; 16-byte Folded Spill
Lloh22:
adrp x9, lCPI0_3@PAGE
Lloh23:
ldr q0, [x9, lCPI0_3@PAGEOFF]
sub x9, x29, #16
stur q0, [x9, #-256] ; 16-byte Folded Spill
dup.4s v17, w20
movi.4s v18, #26
Lloh24:
adrp x9, lCPI0_4@PAGE
Lloh25:
ldr q19, [x9, lCPI0_4@PAGEOFF]
movi.16b v20, #65
movi.4s v21, #16
stp q19, q17, [x29, #-128] ; 32-byte Folded Spill
b LBB0_2
LBB0_1: ; in Loop: Header=BB0_2 Depth=1
ldur x10, [x29, #-200] ; 8-byte Folded Reload
add w10, w10, #1
cmp w10, w11
b.hi LBB0_47
LBB0_2: ; =>This Loop Header: Depth=1
; Child Loop BB0_4 Depth 2
; Child Loop BB0_8 Depth 3
; Child Loop BB0_12 Depth 4
; Child Loop BB0_16 Depth 5
; Child Loop BB0_22 Depth 6
; Child Loop BB0_27 Depth 7
; Child Loop BB0_30 Depth 7
mov w9, #0
stur x10, [x29, #-200] ; 8-byte Folded Spill
mov w10, w10
ldur x11, [x29, #-168] ; 8-byte Folded Reload
add x24, x11, x10
sub x11, x29, #88
ldur x11, [x11, #-256] ; 8-byte Folded Reload
add x10, x11, x10
sub x11, x29, #72
stur x10, [x11, #-256] ; 8-byte Folded Spill
mov x10, x8
b LBB0_4
LBB0_3: ; in Loop: Header=BB0_4 Depth=2
add w9, w12, #1
Lloh26:
adrp x11, _MAX_OFFSET@GOTPAGE
Lloh27:
ldr x11, [x11, _MAX_OFFSET@GOTPAGEOFF]
Lloh28:
ldr w11, [x11]
cmp w9, w11
b.hi LBB0_1
LBB0_4: ; Parent Loop BB0_2 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_8 Depth 3
; Child Loop BB0_12 Depth 4
; Child Loop BB0_16 Depth 5
; Child Loop BB0_22 Depth 6
; Child Loop BB0_27 Depth 7
; Child Loop BB0_30 Depth 7
mov w12, w9
cbz w10, LBB0_3
; %bb.5: ; in Loop: Header=BB0_4 Depth=2
sub x9, x29, #80
ldur x9, [x9, #-256] ; 8-byte Folded Reload
add x9, x9, x12
sub x10, x29, #64
stur x9, [x10, #-256] ; 8-byte Folded Spill
ldur x9, [x29, #-160] ; 8-byte Folded Reload
add x25, x9, x12
Lloh29:
adrp x9, _MAX_DIFF@GOTPAGE
Lloh30:
ldr x9, [x9, _MAX_DIFF@GOTPAGEOFF]
Lloh31:
ldr w9, [x9]
sub x10, x25, #1
sub x11, x29, #56
stur x10, [x11, #-256] ; 8-byte Folded Spill
mov w11, #1
stur x12, [x29, #-192] ; 8-byte Folded Spill
b LBB0_8
LBB0_6: ; in Loop: Header=BB0_8 Depth=3
Lloh32:
adrp x8, _MAX_BLOCK_SIZE@GOTPAGE
Lloh33:
ldr x8, [x8, _MAX_BLOCK_SIZE@GOTPAGEOFF]
Lloh34:
ldr w8, [x8]
LBB0_7: ; in Loop: Header=BB0_8 Depth=3
add w11, w26, #1
mov x10, x8
cmp w11, w8
b.hi LBB0_3
LBB0_8: ; Parent Loop BB0_2 Depth=1
; Parent Loop BB0_4 Depth=2
; => This Loop Header: Depth=3
; Child Loop BB0_12 Depth 4
; Child Loop BB0_16 Depth 5
; Child Loop BB0_22 Depth 6
; Child Loop BB0_27 Depth 7
; Child Loop BB0_30 Depth 7
mov w26, w11
add w10, w9, w11
cmp w10, #2
b.lo LBB0_7
; %bb.9: ; in Loop: Header=BB0_8 Depth=3
mov x13, #0
sub x8, x29, #72
ldur x8, [x8, #-256] ; 8-byte Folded Reload
add x8, x8, x26
stur x8, [x29, #-152] ; 8-byte Folded Spill
Lloh35:
adrp x8, _MAX_LEN@GOTPAGE
Lloh36:
ldr x8, [x8, _MAX_LEN@GOTPAGEOFF]
Lloh37:
ldr w8, [x8]
mov x10, x8
mov w11, #1
stur x11, [x29, #-136] ; 8-byte Folded Spill
sub x11, x29, #64
ldur x11, [x11, #-256] ; 8-byte Folded Reload
sub x14, x29, #40
stur x11, [x14, #-256] ; 8-byte Folded Spill
b LBB0_12
LBB0_10: ; in Loop: Header=BB0_12 Depth=4
Lloh38:
adrp x9, _MAX_DIFF@GOTPAGE
Lloh39:
ldr x9, [x9, _MAX_DIFF@GOTPAGEOFF]
Lloh40:
ldr w9, [x9]
mov x10, x8
ldur x12, [x29, #-192] ; 8-byte Folded Reload
sub x11, x29, #48
ldur x13, [x11, #-256] ; 8-byte Folded Reload
LBB0_11: ; in Loop: Header=BB0_12 Depth=4
ldur x14, [x29, #-136] ; 8-byte Folded Reload
add x14, x14, #1
add x13, x13, #1
sub x11, x29, #40
ldur x11, [x11, #-256] ; 8-byte Folded Reload
add x11, x11, #1
sub x15, x29, #40
stur x11, [x15, #-256] ; 8-byte Folded Spill
add w11, w9, w26
stur x14, [x29, #-136] ; 8-byte Folded Spill
cmp x14, x11
b.hs LBB0_6
LBB0_12: ; Parent Loop BB0_2 Depth=1
; Parent Loop BB0_4 Depth=2
; Parent Loop BB0_8 Depth=3
; => This Loop Header: Depth=4
; Child Loop BB0_16 Depth 5
; Child Loop BB0_22 Depth 6
; Child Loop BB0_27 Depth 7
; Child Loop BB0_30 Depth 7
cbz w10, LBB0_11
; %bb.13: ; in Loop: Header=BB0_12 Depth=4
mov x22, #0
ldur x11, [x29, #-136] ; 8-byte Folded Reload
mov x14, x11
sub x9, x29, #48
stur x13, [x9, #-256] ; 8-byte Folded Spill
add x9, x13, x12
ldur x10, [x29, #-160] ; 8-byte Folded Reload
add x9, x10, x9
stur x9, [x29, #-184] ; 8-byte Folded Spill
sub x9, x29, #24
stur x14, [x9, #-256] ; 8-byte Folded Spill
sub w19, w26, w14
sub x9, x29, #56
ldur x9, [x9, #-256] ; 8-byte Folded Reload
add x9, x9, x11
stur x9, [x29, #-144] ; 8-byte Folded Spill
Lloh41:
adrp x9, _MAX_ZEROS@GOTPAGE
Lloh42:
ldr x9, [x9, _MAX_ZEROS@GOTPAGEOFF]
Lloh43:
ldr w9, [x9]
mov w10, #-1
b LBB0_16
LBB0_14: ; in Loop: Header=BB0_16 Depth=5
Lloh44:
adrp x8, _MAX_LEN@GOTPAGE
Lloh45:
ldr x8, [x8, _MAX_LEN@GOTPAGEOFF]
Lloh46:
ldr w8, [x8]
sub x10, x29, #28
ldur w10, [x10, #-256] ; 4-byte Folded Reload
LBB0_15: ; in Loop: Header=BB0_16 Depth=5
add x22, x22, #1
add w10, w10, #1
cmp w8, w22
b.ls LBB0_10
LBB0_16: ; Parent Loop BB0_2 Depth=1
; Parent Loop BB0_4 Depth=2
; Parent Loop BB0_8 Depth=3
; Parent Loop BB0_12 Depth=4
; => This Loop Header: Depth=5
; Child Loop BB0_22 Depth 6
; Child Loop BB0_27 Depth 7
; Child Loop BB0_30 Depth 7
cmp w9, #2
b.lt LBB0_15
; %bb.17: ; in Loop: Header=BB0_16 Depth=5
mov x21, #0
mov x28, x22
mov w27, #1
sub x8, x29, #40
ldur x8, [x8, #-256] ; 8-byte Folded Reload
sub x9, x29, #28
stur w10, [x9, #-256] ; 4-byte Folded Spill
add x8, x8, w10, uxtw
stur x8, [x29, #-176] ; 8-byte Folded Spill
b LBB0_22
LBB0_18: ; in Loop: Header=BB0_22 Depth=6
str x8, [sp, #24]
LBB0_19: ; in Loop: Header=BB0_22 Depth=6
ldur x8, [x29, #-192] ; 8-byte Folded Reload
str x8, [sp, #16]
ldur x8, [x29, #-200] ; 8-byte Folded Reload
; kill: def $w8 killed $w8 killed $x8 def $x8
stp x26, x8, [sp]
Lloh47:
adrp x0, l_.str.1@PAGE
Lloh48:
add x0, x0, l_.str.1@PAGEOFF
LBB0_20: ; in Loop: Header=BB0_22 Depth=6
bl _print_error
movi.4s v21, #16
movi.16b v20, #65
ldp q19, q17, [x29, #-128] ; 32-byte Folded Reload
movi.4s v18, #26
add sp, sp, #48
LBB0_21: ; in Loop: Header=BB0_22 Depth=6
add w27, w27, #1
Lloh49:
adrp x8, _MAX_ZEROS@GOTPAGE
Lloh50:
ldr x8, [x8, _MAX_ZEROS@GOTPAGEOFF]
Lloh51:
ldr w9, [x8]
cmp w27, w9
b.ge LBB0_14
LBB0_22: ; Parent Loop BB0_2 Depth=1
; Parent Loop BB0_4 Depth=2
; Parent Loop BB0_8 Depth=3
; Parent Loop BB0_12 Depth=4
; Parent Loop BB0_16 Depth=5
; => This Loop Header: Depth=6
; Child Loop BB0_27 Depth 7
; Child Loop BB0_30 Depth 7
add x21, x21, #1
Lloh52:
adrp x8, _MAX_DIFF@GOTPAGE
Lloh53:
ldr x8, [x8, _MAX_DIFF@GOTPAGEOFF]
Lloh54:
ldr w8, [x8]
cmp w19, w8
b.hi LBB0_21
; %bb.23: ; in Loop: Header=BB0_22 Depth=6
Lloh55:
adrp x8, _BUFF_SIZE@GOTPAGE
Lloh56:
ldr x8, [x8, _BUFF_SIZE@GOTPAGEOFF]
Lloh57:
ldr w9, [x8]
cmp w9, #1
b.lt LBB0_31
; %bb.24: ; in Loop: Header=BB0_22 Depth=6
cmp w9, #16
b.hs LBB0_26
; %bb.25: ; in Loop: Header=BB0_22 Depth=6
mov x8, #0
b LBB0_29
LBB0_26: ; in Loop: Header=BB0_22 Depth=6
and x8, x9, #0xfffffff0
mov x10, x8
ldp x12, x11, [x29, #-168] ; 16-byte Folded Reload
sub x13, x29, #16
ldur q0, [x13, #-256] ; 16-byte Folded Reload
ldp q1, q2, [x29, #-256] ; 32-byte Folded Reload
ldur q3, [x29, #-224] ; 16-byte Folded Reload
mov.16b v6, v3
LBB0_27: ; Parent Loop BB0_2 Depth=1
; Parent Loop BB0_4 Depth=2
; Parent Loop BB0_8 Depth=3
; Parent Loop BB0_12 Depth=4
; Parent Loop BB0_16 Depth=5
; Parent Loop BB0_22 Depth=6
; => This Inner Loop Header: Depth=7
umull2.2d v7, v1, v17
umull.2d v16, v1, v17
uzp2.4s v7, v16, v7
ushr.4s v7, v7, #3
mov.16b v4, v1
mls.4s v4, v7, v18
umull2.2d v7, v0, v17
umull.2d v16, v0, v17
uzp2.4s v7, v16, v7
ushr.4s v7, v7, #3
mov.16b v3, v0
mls.4s v3, v7, v18
umull2.2d v7, v2, v17
umull.2d v16, v2, v17
uzp2.4s v7, v16, v7
ushr.4s v7, v7, #3
mov.16b v5, v2
mls.4s v5, v7, v18
umull2.2d v7, v6, v17
umull.2d v16, v6, v17
uzp2.4s v7, v16, v7
ushr.4s v7, v7, #3
add.4s v16, v6, v21
mls.4s v6, v7, v18
tbl.16b v3, { v3, v4, v5, v6 }, v19
add.16b v3, v3, v20
str q3, [x12], #16
str q3, [x11], #16
add.4s v0, v0, v21
add.4s v1, v1, v21
add.4s v2, v2, v21
mov.16b v6, v16
subs x10, x10, #16
b.ne LBB0_27
; %bb.28: ; in Loop: Header=BB0_22 Depth=6
cmp x8, x9
b.eq LBB0_31
LBB0_29: ; in Loop: Header=BB0_22 Depth=6
ldp x11, x10, [x29, #-168] ; 16-byte Folded Reload
add x10, x10, x8
add x11, x11, x8
sub x9, x9, x8
LBB0_30: ; Parent Loop BB0_2 Depth=1
; Parent Loop BB0_4 Depth=2
; Parent Loop BB0_8 Depth=3
; Parent Loop BB0_12 Depth=4
; Parent Loop BB0_16 Depth=5
; Parent Loop BB0_22 Depth=6
; => This Inner Loop Header: Depth=7
umull x12, w8, w20
lsr x12, x12, #35
msub w12, w12, w23, w8
add w12, w12, #65
strb w12, [x11], #1
strb w12, [x10], #1
add w8, w8, #1
subs x9, x9, #1
b.ne LBB0_30
LBB0_31: ; in Loop: Header=BB0_22 Depth=6
mov w0, #0
bl _delay
mov x0, x25
mov x1, x24
mov x2, x26
bl _memcpy
ldur x0, [x29, #-152] ; 8-byte Folded Reload
mov x1, x21
bl _bzero
ldur x8, [x29, #-144] ; 8-byte Folded Reload
cmp w28, #1
b.lt LBB0_33
; %bb.32: ; in Loop: Header=BB0_22 Depth=6
ldur x0, [x29, #-184] ; 8-byte Folded Reload
mov w1, #120
mov x2, x22
bl _memset
ldur x8, [x29, #-176] ; 8-byte Folded Reload
LBB0_33: ; in Loop: Header=BB0_22 Depth=6
strb wzr, [x8]
mov x0, x24
mov x1, x25
bl _strcmp
; kill: def $w0 killed $w0 def $x0
ldur x8, [x29, #-136] ; 8-byte Folded Reload
cmp x8, x26
b.ne LBB0_37
; %bb.34: ; in Loop: Header=BB0_22 Depth=6
ldp q19, q17, [x29, #-128] ; 32-byte Folded Reload
movi.4s v18, #26
movi.16b v20, #65
movi.4s v21, #16
cbz w28, LBB0_43
; %bb.35: ; in Loop: Header=BB0_22 Depth=6
tbnz w0, #31, LBB0_21
; %bb.36: ; in Loop: Header=BB0_22 Depth=6
Lloh58:
adrp x8, _testname@GOTPAGE
Lloh59:
ldr x8, [x8, _testname@GOTPAGEOFF]
Lloh60:
ldr w1, [x8]
; kill: def $w0 killed $w0 killed $x0 def $x0
sub sp, sp, #48
stp x28, x0, [sp, #32]
str x26, [sp, #24]
b LBB0_19
LBB0_37: ; in Loop: Header=BB0_22 Depth=6
ldp q19, q17, [x29, #-128] ; 32-byte Folded Reload
movi.4s v18, #26
movi.16b v20, #65
movi.4s v21, #16
b.ls LBB0_40
; %bb.38: ; in Loop: Header=BB0_22 Depth=6
tbnz w0, #31, LBB0_21
; %bb.39: ; in Loop: Header=BB0_22 Depth=6
Lloh61:
adrp x8, _testname@GOTPAGE
Lloh62:
ldr x8, [x8, _testname@GOTPAGEOFF]
Lloh63:
ldr w1, [x8]
; kill: def $w0 killed $w0 killed $x0 def $x0
sub sp, sp, #48
mov x8, x28
stp x8, x0, [sp, #32]
sub x8, x29, #24
ldur x8, [x8, #-256] ; 8-byte Folded Reload
b LBB0_18
LBB0_40: ; in Loop: Header=BB0_22 Depth=6
cbz w28, LBB0_45
; %bb.41: ; in Loop: Header=BB0_22 Depth=6
tbnz w0, #31, LBB0_21
; %bb.42: ; in Loop: Header=BB0_22 Depth=6
Lloh64:
adrp x8, _testname@GOTPAGE
Lloh65:
ldr x8, [x8, _testname@GOTPAGEOFF]
Lloh66:
ldr w1, [x8]
; kill: def $w0 killed $w0 killed $x0 def $x0
sub sp, sp, #48
mov x8, x28
stp x8, x0, [sp, #32]
sub x8, x29, #24
ldur x8, [x8, #-256] ; 8-byte Folded Reload
; kill: def $w8 killed $w8 killed $x8 def $x8
b LBB0_18
LBB0_43: ; in Loop: Header=BB0_22 Depth=6
cbz w0, LBB0_21
; %bb.44: ; in Loop: Header=BB0_22 Depth=6
Lloh67:
adrp x8, _testname@GOTPAGE
Lloh68:
ldr x8, [x8, _testname@GOTPAGEOFF]
Lloh69:
ldr w1, [x8]
sub sp, sp, #48
stp xzr, x0, [sp, #32]
str x26, [sp, #24]
ldur x8, [x29, #-192] ; 8-byte Folded Reload
str x8, [sp, #16]
ldur x8, [x29, #-200] ; 8-byte Folded Reload
stp x26, x8, [sp]
Lloh70:
adrp x0, l_.str@PAGE
Lloh71:
add x0, x0, l_.str@PAGEOFF
b LBB0_20
LBB0_45: ; in Loop: Header=BB0_22 Depth=6
cmp w0, #0
b.gt LBB0_21
; %bb.46: ; in Loop: Header=BB0_22 Depth=6
Lloh72:
adrp x8, _testname@GOTPAGE
Lloh73:
ldr x8, [x8, _testname@GOTPAGEOFF]
Lloh74:
ldr w1, [x8]
; kill: def $w0 killed $w0 killed $x0 def $x0
sub sp, sp, #48
stp xzr, x0, [sp, #32]
sub x8, x29, #24
ldur x8, [x8, #-256] ; 8-byte Folded Reload
; kill: def $w8 killed $w8 killed $x8 def $x8
str x8, [sp, #24]
ldur x8, [x29, #-192] ; 8-byte Folded Reload
str x8, [sp, #16]
ldur x8, [x29, #-200] ; 8-byte Folded Reload
; kill: def $w8 killed $w8 killed $x8 def $x8
stp x26, x8, [sp]
Lloh75:
adrp x0, l_.str.2@PAGE
Lloh76:
add x0, x0, l_.str.2@PAGEOFF
b LBB0_20
LBB0_47:
mov w8, #66
ldp x0, x1, [x29, #-168] ; 16-byte Folded Reload
strb w8, [x0, #2]
strb w8, [x1, #2]
mov w8, #67
sturh w8, [x0, #3]
sturh w8, [x1, #3]
mov w8, #16833
strh w8, [x0]
mov w8, #16705
strh w8, [x1]
bl _strcmp
cmp w0, #0
b.gt LBB0_49
; %bb.48:
mov x1, x0
Lloh77:
adrp x0, l_.str.3@PAGE
Lloh78:
add x0, x0, l_.str.3@PAGEOFF
bl _print_error
LBB0_49:
mov w8, #1
ldp x0, x1, [x29, #-168] ; 16-byte Folded Reload
strb w8, [x0]
mov w8, #130
strb w8, [x1]
bl _strcmp
tbnz w0, #31, LBB0_51
; %bb.50:
mov x1, x0
Lloh79:
adrp x0, l_.str.4@PAGE
Lloh80:
add x0, x0, l_.str.4@PAGEOFF
bl _print_error
LBB0_51:
mov w8, #68
ldp x0, x1, [x29, #-168] ; 16-byte Folded Reload
strb w8, [x0]
strb w8, [x1]
mov w8, #193
strb w8, [x0, #3]
mov w8, #65
strb w8, [x1, #3]
bl _strcmp
cmp w0, #0
b.gt LBB0_53
; %bb.52:
mov x1, x0
Lloh81:
adrp x0, l_.str.3@PAGE
Lloh82:
add x0, x0, l_.str.3@PAGEOFF
bl _print_error
LBB0_53:
mov w8, #1
ldp x0, x1, [x29, #-168] ; 16-byte Folded Reload
strb w8, [x0, #3]
mov w8, #130
strb w8, [x1, #3]
bl _strcmp
tbnz w0, #31, LBB0_55
; %bb.54:
mov x1, x0
Lloh83:
adrp x0, l_.str.4@PAGE
Lloh84:
add x0, x0, l_.str.4@PAGEOFF
bl _print_error
LBB0_55:
Lloh85:
adrp x8, _errors@GOTPAGE
Lloh86:
ldr x8, [x8, _errors@GOTPAGEOFF]
Lloh87:
ldr x8, [x8]
cbnz x8, LBB0_58
; %bb.56:
Lloh88:
adrp x0, l_str@PAGE
Lloh89:
add x0, x0, l_str@PAGEOFF
bl _puts
ldur x8, [x29, #-96]
Lloh90:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh91:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh92:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_59
; %bb.57:
sub sp, x29, #80
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
ldp x22, x21, [sp, #48] ; 16-byte Folded Reload
ldp x24, x23, [sp, #32] ; 16-byte Folded Reload
ldp x26, x25, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #96 ; 16-byte Folded Reload
ret
LBB0_58:
Lloh93:
adrp x0, l_str.7@PAGE
Lloh94:
add x0, x0, l_str.7@PAGEOFF
bl _puts
bl _abort
LBB0_59:
bl ___stack_chk_fail
.loh AdrpLdr Lloh24, Lloh25
.loh AdrpLdr Lloh22, Lloh23
.loh AdrpAdrp Lloh20, Lloh22
.loh AdrpLdr Lloh20, Lloh21
.loh AdrpAdrp Lloh18, Lloh20
.loh AdrpLdr Lloh18, Lloh19
.loh AdrpAdrp Lloh16, Lloh18
.loh AdrpLdr Lloh16, Lloh17
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh26, Lloh27, Lloh28
.loh AdrpLdrGotLdr Lloh29, Lloh30, Lloh31
.loh AdrpLdrGotLdr Lloh32, Lloh33, Lloh34
.loh AdrpLdrGotLdr Lloh35, Lloh36, Lloh37
.loh AdrpLdrGotLdr Lloh38, Lloh39, Lloh40
.loh AdrpLdrGotLdr Lloh41, Lloh42, Lloh43
.loh AdrpLdrGotLdr Lloh44, Lloh45, Lloh46
.loh AdrpAdd Lloh47, Lloh48
.loh AdrpLdrGotLdr Lloh49, Lloh50, Lloh51
.loh AdrpLdrGotLdr Lloh52, Lloh53, Lloh54
.loh AdrpLdrGotLdr Lloh55, Lloh56, Lloh57
.loh AdrpLdrGotLdr Lloh58, Lloh59, Lloh60
.loh AdrpLdrGotLdr Lloh61, Lloh62, Lloh63
.loh AdrpLdrGotLdr Lloh64, Lloh65, Lloh66
.loh AdrpAdd Lloh70, Lloh71
.loh AdrpLdrGotLdr Lloh67, Lloh68, Lloh69
.loh AdrpAdd Lloh75, Lloh76
.loh AdrpLdrGotLdr Lloh72, Lloh73, Lloh74
.loh AdrpAdd Lloh77, Lloh78
.loh AdrpAdd Lloh79, Lloh80
.loh AdrpAdd Lloh81, Lloh82
.loh AdrpAdd Lloh83, Lloh84
.loh AdrpLdrGotLdr Lloh85, Lloh86, Lloh87
.loh AdrpLdrGotLdr Lloh90, Lloh91, Lloh92
.loh AdrpAdd Lloh88, Lloh89
.loh AdrpAdd Lloh93, Lloh94
.cfi_endproc
; -- End function
.comm _BUFF_SIZE,4,2 ; @BUFF_SIZE
.comm _rand_seed,4,2 ; @rand_seed
.comm _MAX_OFFSET,4,2 ; @MAX_OFFSET
.comm _MAX_BLOCK_SIZE,4,2 ; @MAX_BLOCK_SIZE
.comm _MAX_DIFF,4,2 ; @MAX_DIFF
.comm _MAX_LEN,4,2 ; @MAX_LEN
.comm _MAX_ZEROS,4,2 ; @MAX_ZEROS
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\nFailed: after %s of %u bytes with src_align %u and dst_align %u, dest after %d bytes is modified for %d bytes, return value is %d, expected 0.\n"
.comm _testname,4,2 ; @testname
l_.str.1: ; @.str.1
.asciz "\nFailed: after %s of %u bytes with src_align %u and dst_align %u, dest after %d bytes is modified for %d bytes, return value is %d, expected negative.\n"
l_.str.2: ; @.str.2
.asciz "\nFailed: after %s of %u bytes with src_align %u and dst_align %u, dest after %d bytes is modified for %d bytes, return value is %d, expected positive.\n"
l_.str.3: ; @.str.3
.asciz "\nFailed: expected positive, return %d\n"
l_.str.4: ; @.str.4
.asciz "\nFailed: expected negative, return %d\n"
.comm _errors,8,3 ; @errors
l_str: ; @str
.asciz "ok"
l_str.7: ; @str.7
.asciz "ERROR. FAILED."
.subsections_via_symbols
|
AnghaBench/Arduino/tests/device/test_libc/extr_strcmp-1.c_strcmp_main.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mycopy ## -- Begin function mycopy
.p2align 4, 0x90
_mycopy: ## @mycopy
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
testl %edx, %edx
jle LBB0_21
## %bb.1:
movl %edx, %r9d
xorl %ecx, %ecx
cmpl $8, %edx
jb LBB0_17
## %bb.2:
movq %rdi, %rax
subq %rsi, %rax
cmpq $32, %rax
jb LBB0_17
## %bb.3:
cmpl $32, %edx
jae LBB0_5
## %bb.4:
xorl %ecx, %ecx
jmp LBB0_14
LBB0_5:
movl %r9d, %ecx
andl $-32, %ecx
leaq -32(%rcx), %rax
movq %rax, %rdx
shrq $5, %rdx
incq %rdx
movl %edx, %r8d
andl $3, %r8d
cmpq $96, %rax
jae LBB0_7
## %bb.6:
xorl %eax, %eax
jmp LBB0_9
LBB0_7:
andq $-4, %rdx
xorl %eax, %eax
.p2align 4, 0x90
LBB0_8: ## =>This Inner Loop Header: Depth=1
movups (%rsi,%rax), %xmm0
movups 16(%rsi,%rax), %xmm1
movups %xmm0, (%rdi,%rax)
movups %xmm1, 16(%rdi,%rax)
movups 32(%rsi,%rax), %xmm0
movups 48(%rsi,%rax), %xmm1
movups %xmm0, 32(%rdi,%rax)
movups %xmm1, 48(%rdi,%rax)
movups 64(%rsi,%rax), %xmm0
movups 80(%rsi,%rax), %xmm1
movups %xmm0, 64(%rdi,%rax)
movups %xmm1, 80(%rdi,%rax)
movups 96(%rsi,%rax), %xmm0
movups 112(%rsi,%rax), %xmm1
movups %xmm0, 96(%rdi,%rax)
movups %xmm1, 112(%rdi,%rax)
subq $-128, %rax
addq $-4, %rdx
jne LBB0_8
LBB0_9:
testq %r8, %r8
je LBB0_12
## %bb.10:
leaq (%rdi,%rax), %r10
addq $16, %r10
addq %rsi, %rax
addq $16, %rax
shlq $5, %r8
xorl %edx, %edx
.p2align 4, 0x90
LBB0_11: ## =>This Inner Loop Header: Depth=1
movups -16(%rax,%rdx), %xmm0
movups (%rax,%rdx), %xmm1
movups %xmm0, -16(%r10,%rdx)
movups %xmm1, (%r10,%rdx)
addq $32, %rdx
cmpq %rdx, %r8
jne LBB0_11
LBB0_12:
cmpq %r9, %rcx
je LBB0_21
## %bb.13:
testb $24, %r9b
je LBB0_17
LBB0_14:
movq %rcx, %rax
movl %r9d, %ecx
andl $-8, %ecx
.p2align 4, 0x90
LBB0_15: ## =>This Inner Loop Header: Depth=1
movq (%rsi,%rax), %rdx
movq %rdx, (%rdi,%rax)
addq $8, %rax
cmpq %rax, %rcx
jne LBB0_15
## %bb.16:
cmpq %r9, %rcx
je LBB0_21
LBB0_17:
movq %rcx, %r8
notq %r8
addq %r9, %r8
movq %r9, %rdx
andq $3, %rdx
je LBB0_19
.p2align 4, 0x90
LBB0_18: ## =>This Inner Loop Header: Depth=1
movzbl (%rsi,%rcx), %eax
movb %al, (%rdi,%rcx)
incq %rcx
decq %rdx
jne LBB0_18
LBB0_19:
cmpq $3, %r8
jb LBB0_21
.p2align 4, 0x90
LBB0_20: ## =>This Inner Loop Header: Depth=1
movzbl (%rsi,%rcx), %eax
movb %al, (%rdi,%rcx)
movzbl 1(%rsi,%rcx), %eax
movb %al, 1(%rdi,%rcx)
movzbl 2(%rsi,%rcx), %eax
movb %al, 2(%rdi,%rcx)
movzbl 3(%rsi,%rcx), %eax
movb %al, 3(%rdi,%rcx)
addq $4, %rcx
cmpq %rcx, %r9
jne LBB0_20
LBB0_21:
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mycopy ; -- Begin function mycopy
.p2align 2
_mycopy: ; @mycopy
.cfi_startproc
; %bb.0:
cmp w2, #1
b.lt LBB0_14
; %bb.1:
mov x9, #0
mov w8, w2
cmp w2, #8
b.lo LBB0_12
; %bb.2:
sub x10, x0, x1
cmp x10, #64
b.lo LBB0_12
; %bb.3:
cmp w2, #64
b.hs LBB0_5
; %bb.4:
mov x9, #0
b LBB0_9
LBB0_5:
and x9, x8, #0xffffffc0
add x10, x0, #32
add x11, x1, #32
mov x12, x9
LBB0_6: ; =>This Inner Loop Header: Depth=1
ldp q0, q1, [x11, #-32]
ldp q2, q3, [x11], #64
stp q0, q1, [x10, #-32]
stp q2, q3, [x10], #64
subs x12, x12, #64
b.ne LBB0_6
; %bb.7:
cmp x9, x8
b.eq LBB0_14
; %bb.8:
tst x8, #0x38
b.eq LBB0_12
LBB0_9:
mov x12, x9
and x9, x8, #0xfffffff8
add x10, x1, x12
add x11, x0, x12
sub x12, x12, x9
LBB0_10: ; =>This Inner Loop Header: Depth=1
ldr d0, [x10], #8
str d0, [x11], #8
adds x12, x12, #8
b.ne LBB0_10
; %bb.11:
cmp x9, x8
b.eq LBB0_14
LBB0_12:
add x10, x0, x9
add x11, x1, x9
sub x8, x8, x9
LBB0_13: ; =>This Inner Loop Header: Depth=1
ldrb w9, [x11], #1
strb w9, [x10], #1
subs x8, x8, #1
b.ne LBB0_13
LBB0_14:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tests/device/test_libc/extr_tstring.c_mycopy.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _myset ## -- Begin function myset
.p2align 4, 0x90
_myset: ## @myset
.cfi_startproc
## %bb.0:
testl %edx, %edx
jle LBB0_2
## %bb.1:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edx, %edx
movzbl %sil, %esi
callq _memset
popq %rbp
LBB0_2:
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _myset ; -- Begin function myset
.p2align 2
_myset: ; @myset
.cfi_startproc
; %bb.0:
cmp w2, #1
b.lt LBB0_2
; %bb.1:
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
mov w2, w2
bl _memset
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
LBB0_2:
.cfi_def_cfa wsp, 0
.cfi_same_value w30
.cfi_same_value w29
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tests/device/test_libc/extr_tstring.c_myset.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Decode
_Decode: ## @Decode
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
## kill: def $edx killed $edx def $rdx
testl %edx, %edx
jle LBB0_3
## %bb.1:
decl %edx
andl $-4, %edx
addq $4, %rdx
xorl %eax, %eax
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movl 8(%rsi,%rax,8), %r9d
movl 16(%rsi,%rax,8), %r8d
shll $8, %r9d
orl (%rsi,%rax,8), %r9d
shll $16, %r8d
movl 24(%rsi,%rax,8), %ecx
shll $24, %ecx
orl %r8d, %ecx
orl %r9d, %ecx
movl %ecx, (%rdi,%rax)
addq $4, %rax
cmpq %rax, %rdx
jne LBB0_2
LBB0_3:
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _Decode
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Decode
_Decode: ; @Decode
.cfi_startproc
; %bb.0:
subs w8, w2, #1
b.lt LBB0_8
; %bb.1:
cmp w8, #28
b.hs LBB0_3
; %bb.2:
mov x9, #0
mov x10, #0
b LBB0_6
LBB0_3:
lsr w9, w8, #2
add w11, w9, #1
and x9, x11, #0x7ffffff8
lsl x10, x9, #2
add x12, x1, #128
add x13, x0, #16
mov x14, x9
LBB0_4: ; =>This Inner Loop Header: Depth=1
sub x15, x12, #128
sub x16, x12, #64
ld4.2d { v0, v1, v2, v3 }, [x15]
ld4.2d { v4, v5, v6, v7 }, [x16]
mov x15, x12
ld4.2d { v16, v17, v18, v19 }, [x15], #64
ld4.2d { v20, v21, v22, v23 }, [x15]
xtn.2s v24, v0
xtn.2s v25, v4
xtn.2s v26, v16
xtn.2s v27, v20
xtn.2s v28, v1
xtn.2s v29, v5
xtn.2s v30, v17
xtn.2s v31, v21
shl.2s v28, v28, #8
shl.2s v29, v29, #8
shl.2s v30, v30, #8
shl.2s v31, v31, #8
orr.8b v24, v28, v24
orr.8b v25, v29, v25
orr.8b v26, v30, v26
orr.8b v27, v31, v27
xtn.2s v28, v2
xtn.2s v29, v6
xtn.2s v30, v18
xtn.2s v31, v22
shl.2s v28, v28, #16
shl.2s v29, v29, #16
shl.2s v30, v30, #16
shl.2s v31, v31, #16
orr.8b v24, v24, v28
orr.8b v25, v25, v29
orr.8b v26, v26, v30
orr.8b v27, v27, v31
xtn.2s v0, v3
xtn.2s v1, v7
xtn.2s v2, v19
xtn.2s v3, v23
shl.2s v0, v0, #24
shl.2s v1, v1, #24
shl.2s v2, v2, #24
shl.2s v3, v3, #24
orr.8b v0, v24, v0
orr.8b v1, v25, v1
orr.8b v2, v26, v2
stur d0, [x13, #-16]
stur d1, [x13, #-8]
orr.8b v0, v27, v3
str d2, [x13]
str d0, [x13, #8]
add x12, x12, #256
add x13, x13, #32
subs x14, x14, #8
b.ne LBB0_4
; %bb.5:
cmp x9, x11
b.eq LBB0_8
LBB0_6:
add x11, x0, x9, lsl #2
lsr x8, x8, #2
sub x8, x8, x9
add x8, x8, #1
add x9, x1, x10, lsl #3
add x9, x9, #16
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldur w10, [x9, #-16]
ldur w12, [x9, #-8]
orr w10, w10, w12, lsl #8
ldr w12, [x9]
orr w10, w10, w12, lsl #16
ldr w12, [x9, #8]
orr w10, w10, w12, lsl #24
str w10, [x11], #4
add x9, x9, #32
subs x8, x8, #1
b.ne LBB0_7
LBB0_8:
ret
.cfi_endproc
; -- End function
.no_dead_strip _Decode
.subsections_via_symbols
|
AnghaBench/Arduino/tests/host/common/extr_md5.c_Decode.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function Encode
_Encode: ## @Encode
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
.cfi_offset %rbx, -24
## kill: def $edx killed $edx def $rdx
testl %edx, %edx
jle LBB0_3
## %bb.1:
decl %edx
andl $-4, %edx
addq $4, %rdx
xorl %eax, %eax
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movl (%rsi,%rax), %ebx
movzbl %bl, %ecx
movq %rcx, (%rdi,%rax,8)
movzbl %bh, %ecx
movq %rcx, 8(%rdi,%rax,8)
movl %ebx, %ecx
shrl $16, %ecx
movzbl %cl, %ecx
movq %rcx, 16(%rdi,%rax,8)
shrq $24, %rbx
movq %rbx, 24(%rdi,%rax,8)
addq $4, %rax
cmpq %rax, %rdx
jne LBB0_2
LBB0_3:
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _Encode
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function Encode
_Encode: ; @Encode
.cfi_startproc
; %bb.0:
subs w8, w2, #1
b.lt LBB0_8
; %bb.1:
cmp w8, #28
b.hs LBB0_3
; %bb.2:
mov x9, #0
mov x10, #0
b LBB0_6
LBB0_3:
lsr w9, w8, #2
add w11, w9, #1
and x9, x11, #0x7ffffff8
lsl x10, x9, #2
add x13, x0, #128
add x12, x1, #16
movi d0, #0x0000ff000000ff
mov x14, x9
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldp d1, d2, [x12, #-16]
and.8b v3, v1, v0
and.8b v4, v2, v0
ldp d5, d6, [x12], #32
and.8b v7, v5, v0
and.8b v16, v6, v0
ushll.2d v17, v3, #0
ushr.2s v3, v1, #8
and.8b v3, v3, v0
ushll.2d v18, v3, #0
ushr.2s v3, v1, #16
and.8b v3, v3, v0
ushll.2d v19, v3, #0
ushr.2s v1, v1, #24
ushll.2d v20, v1, #0
ushll.2d v21, v4, #0
ushr.2s v1, v2, #8
and.8b v1, v1, v0
ushll.2d v22, v1, #0
ushr.2s v1, v2, #16
and.8b v1, v1, v0
ushll.2d v23, v1, #0
ushr.2s v1, v2, #24
ushll.2d v24, v1, #0
ushll.2d v1, v7, #0
ushr.2s v7, v5, #8
and.8b v7, v7, v0
ushll.2d v2, v7, #0
ushr.2s v7, v5, #16
and.8b v7, v7, v0
ushll.2d v3, v7, #0
ushr.2s v5, v5, #24
ushll.2d v4, v5, #0
ushll.2d v25, v16, #0
ushr.2s v5, v6, #8
and.8b v5, v5, v0
ushll.2d v26, v5, #0
ushr.2s v5, v6, #16
sub x15, x13, #128
sub x16, x13, #64
st4.2d { v17, v18, v19, v20 }, [x15]
st4.2d { v21, v22, v23, v24 }, [x16]
and.8b v5, v5, v0
ushll.2d v27, v5, #0
ushr.2s v5, v6, #24
ushll.2d v28, v5, #0
add x15, x13, #256
st4.2d { v1, v2, v3, v4 }, [x13], #64
st4.2d { v25, v26, v27, v28 }, [x13]
mov x13, x15
subs x14, x14, #8
b.ne LBB0_4
; %bb.5:
cmp x9, x11
b.eq LBB0_8
LBB0_6:
add x11, x1, x9, lsl #2
lsr x8, x8, #2
sub x8, x8, x9
add x8, x8, #1
add x9, x0, x10, lsl #3
add x9, x9, #16
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldr w10, [x11], #4
and x12, x10, #0xff
ubfx x13, x10, #8, #8
stp x12, x13, [x9, #-16]
ubfx x12, x10, #16, #8
lsr x10, x10, #24
stp x12, x10, [x9], #32
subs x8, x8, #1
b.ne LBB0_7
LBB0_8:
ret
.cfi_endproc
; -- End function
.no_dead_strip _Encode
.subsections_via_symbols
|
AnghaBench/Arduino/tests/host/common/extr_md5.c_Encode.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function MD5Transform
_MD5Transform: ## @MD5Transform
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $56, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, -56(%rbp) ## 8-byte Spill
movq %rdi, %r14
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movq _MD5_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %eax
shlq $3, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %rbx
movq %r14, -64(%rbp) ## 8-byte Spill
movups (%r14), %xmm0
movaps %xmm0, -96(%rbp) ## 16-byte Spill
movq (%r14), %r15
movq 8(%r14), %r12
movups 16(%r14), %xmm0
movaps %xmm0, -80(%rbp) ## 16-byte Spill
movq 24(%r14), %r13
movq 16(%r14), %r14
movq %rbx, %rdi
movq -56(%rbp), %rsi ## 8-byte Reload
movl $64, %edx
callq _Decode
movq (%rbx), %r8
movq _S11@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $-680876936 ## imm = 0xD76AA478
callq _FF
addq $16, %rsp
movq 8(%rbx), %r8
movq _S12@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $-389564586 ## imm = 0xE8C7B756
callq _FF
addq $16, %rsp
movq 16(%rbx), %r8
movq _S13@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $606105819 ## imm = 0x242070DB
callq _FF
addq $16, %rsp
movq 24(%rbx), %r8
movq _S14@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $-1044525330 ## imm = 0xC1BDCEEE
callq _FF
addq $16, %rsp
movq 32(%rbx), %r8
movq _S11@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $-176418897 ## imm = 0xF57C0FAF
callq _FF
addq $16, %rsp
movq 40(%rbx), %r8
movq _S12@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $1200080426 ## imm = 0x4787C62A
callq _FF
addq $16, %rsp
movq 48(%rbx), %r8
movq _S13@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $-1473231341 ## imm = 0xA8304613
callq _FF
addq $16, %rsp
movq 56(%rbx), %r8
movq _S14@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $-45705983 ## imm = 0xFD469501
callq _FF
addq $16, %rsp
movq 64(%rbx), %r8
movq _S11@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $1770035416 ## imm = 0x698098D8
callq _FF
addq $16, %rsp
movq 72(%rbx), %r8
movq _S12@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $-1958414417 ## imm = 0x8B44F7AF
callq _FF
addq $16, %rsp
movq 80(%rbx), %r8
movq _S13@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $-42063 ## imm = 0xFFFF5BB1
callq _FF
addq $16, %rsp
movq 88(%rbx), %r8
movq _S14@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $-1990404162 ## imm = 0x895CD7BE
callq _FF
addq $16, %rsp
movq 96(%rbx), %r8
movq _S11@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $1804603682 ## imm = 0x6B901122
callq _FF
addq $16, %rsp
movq 104(%rbx), %r8
movq _S12@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $-40341101 ## imm = 0xFD987193
callq _FF
addq $16, %rsp
movq 112(%rbx), %r8
movq _S13@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $-1502002290 ## imm = 0xA679438E
callq _FF
addq $16, %rsp
movq 120(%rbx), %r8
movq _S14@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $1236535329 ## imm = 0x49B40821
callq _FF
addq $16, %rsp
movq 8(%rbx), %r8
movq _S21@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $-165796510 ## imm = 0xF61E2562
callq _GG
addq $16, %rsp
movq 48(%rbx), %r8
movq _S22@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $-1069501632 ## imm = 0xC040B340
callq _GG
addq $16, %rsp
movq 88(%rbx), %r8
movq _S23@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $643717713 ## imm = 0x265E5A51
callq _GG
addq $16, %rsp
movq (%rbx), %r8
movq _S24@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $-373897302 ## imm = 0xE9B6C7AA
callq _GG
addq $16, %rsp
movq 40(%rbx), %r8
movq _S21@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $-701558691 ## imm = 0xD62F105D
callq _GG
addq $16, %rsp
movq 80(%rbx), %r8
movq _S22@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $38016083 ## imm = 0x2441453
callq _GG
addq $16, %rsp
movq 120(%rbx), %r8
movq _S23@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $-660478335 ## imm = 0xD8A1E681
callq _GG
addq $16, %rsp
movq 32(%rbx), %r8
movq _S24@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $-405537848 ## imm = 0xE7D3FBC8
callq _GG
addq $16, %rsp
movq 72(%rbx), %r8
movq _S21@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $568446438 ## imm = 0x21E1CDE6
callq _GG
addq $16, %rsp
movq 112(%rbx), %r8
movq _S22@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $-1019803690 ## imm = 0xC33707D6
callq _GG
addq $16, %rsp
movq 24(%rbx), %r8
movq _S23@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $-187363961 ## imm = 0xF4D50D87
callq _GG
addq $16, %rsp
movq 64(%rbx), %r8
movq _S24@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $1163531501 ## imm = 0x455A14ED
callq _GG
addq $16, %rsp
movq 104(%rbx), %r8
movq _S21@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $-1444681467 ## imm = 0xA9E3E905
callq _GG
addq $16, %rsp
movq 16(%rbx), %r8
movq _S22@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $-51403784 ## imm = 0xFCEFA3F8
callq _GG
addq $16, %rsp
movq 56(%rbx), %r8
movq _S23@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $1735328473 ## imm = 0x676F02D9
callq _GG
addq $16, %rsp
movq 96(%rbx), %r8
movq _S24@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $-1926607734 ## imm = 0x8D2A4C8A
callq _GG
addq $16, %rsp
movq 40(%rbx), %r8
movq _S31@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $-378558 ## imm = 0xFFFA3942
callq _HH
addq $16, %rsp
movq 64(%rbx), %r8
movq _S32@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $-2022574463 ## imm = 0x8771F681
callq _HH
addq $16, %rsp
movq 88(%rbx), %r8
movq _S33@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $1839030562 ## imm = 0x6D9D6122
callq _HH
addq $16, %rsp
movq 112(%rbx), %r8
movq _S34@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $-35309556 ## imm = 0xFDE5380C
callq _HH
addq $16, %rsp
movq 8(%rbx), %r8
movq _S31@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $-1530992060 ## imm = 0xA4BEEA44
callq _HH
addq $16, %rsp
movq 32(%rbx), %r8
movq _S32@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $1272893353 ## imm = 0x4BDECFA9
callq _HH
addq $16, %rsp
movq 56(%rbx), %r8
movq _S33@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $-155497632 ## imm = 0xF6BB4B60
callq _HH
addq $16, %rsp
movq 80(%rbx), %r8
movq _S34@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $-1094730640 ## imm = 0xBEBFBC70
callq _HH
addq $16, %rsp
movq 104(%rbx), %r8
movq _S31@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $681279174 ## imm = 0x289B7EC6
callq _HH
addq $16, %rsp
movq (%rbx), %r8
movq _S32@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $-358537222 ## imm = 0xEAA127FA
callq _HH
addq $16, %rsp
movq 24(%rbx), %r8
movq _S33@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $-722521979 ## imm = 0xD4EF3085
callq _HH
addq $16, %rsp
movq 48(%rbx), %r8
movq _S34@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $76029189 ## imm = 0x4881D05
callq _HH
addq $16, %rsp
movq 72(%rbx), %r8
movq _S31@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $-640364487 ## imm = 0xD9D4D039
callq _HH
addq $16, %rsp
movq 96(%rbx), %r8
movq _S32@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $-421815835 ## imm = 0xE6DB99E5
callq _HH
addq $16, %rsp
movq 120(%rbx), %r8
movq _S33@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $530742520 ## imm = 0x1FA27CF8
callq _HH
addq $16, %rsp
movq 16(%rbx), %r8
movq _S34@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $-995338651 ## imm = 0xC4AC5665
callq _HH
addq $16, %rsp
movq (%rbx), %r8
movq _S41@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $-198630844 ## imm = 0xF4292244
callq _II
addq $16, %rsp
movq 56(%rbx), %r8
movq _S42@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $1126891415 ## imm = 0x432AFF97
callq _II
addq $16, %rsp
movq 112(%rbx), %r8
movq _S43@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $-1416354905 ## imm = 0xAB9423A7
callq _II
addq $16, %rsp
movq 40(%rbx), %r8
movq _S44@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $-57434055 ## imm = 0xFC93A039
callq _II
addq $16, %rsp
movq 96(%rbx), %r8
movq _S41@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $1700485571 ## imm = 0x655B59C3
callq _II
addq $16, %rsp
movq 24(%rbx), %r8
movq _S42@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $-1894986606 ## imm = 0x8F0CCC92
callq _II
addq $16, %rsp
movq 80(%rbx), %r8
movq _S43@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $-1051523 ## imm = 0xFFEFF47D
callq _II
addq $16, %rsp
movq 8(%rbx), %r8
movq _S44@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $-2054922799 ## imm = 0x85845DD1
callq _II
addq $16, %rsp
movq 64(%rbx), %r8
movq _S41@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $1873313359 ## imm = 0x6FA87E4F
callq _II
addq $16, %rsp
movq 120(%rbx), %r8
movq _S42@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $-30611744 ## imm = 0xFE2CE6E0
callq _II
addq $16, %rsp
movq 48(%rbx), %r8
movq _S43@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $-1560198380 ## imm = 0xA3014314
callq _II
addq $16, %rsp
movq 104(%rbx), %r8
movq _S44@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $1309151649 ## imm = 0x4E0811A1
callq _II
addq $16, %rsp
movq 32(%rbx), %r8
movq _S41@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
pushq $-145523070 ## imm = 0xF7537E82
callq _II
addq $16, %rsp
movq 88(%rbx), %r8
movq _S42@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
pushq $-1120210379 ## imm = 0xBD3AF235
callq _II
addq $16, %rsp
movq 16(%rbx), %r8
movq _S43@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
pushq $718787259 ## imm = 0x2AD7D2BB
callq _II
addq $16, %rsp
movq 72(%rbx), %r8
movq _S44@GOTPCREL(%rip), %rax
movl (%rax), %r9d
subq $8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
pushq $-343485551 ## imm = 0xEB86D391
callq _II
addq $16, %rsp
movq -64(%rbp), %rax ## 8-byte Reload
movdqu (%rax), %xmm0
paddq -96(%rbp), %xmm0 ## 16-byte Folded Reload
movdqu 16(%rax), %xmm1
paddq -80(%rbp), %xmm1 ## 16-byte Folded Reload
movdqu %xmm0, (%rax)
movdqu %xmm1, 16(%rax)
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB0_2
## %bb.1:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _MD5_SIZE,4,2 ## @MD5_SIZE
.comm _S11,4,2 ## @S11
.comm _S12,4,2 ## @S12
.comm _S13,4,2 ## @S13
.comm _S14,4,2 ## @S14
.comm _S21,4,2 ## @S21
.comm _S22,4,2 ## @S22
.comm _S23,4,2 ## @S23
.comm _S24,4,2 ## @S24
.comm _S31,4,2 ## @S31
.comm _S32,4,2 ## @S32
.comm _S33,4,2 ## @S33
.comm _S34,4,2 ## @S34
.comm _S41,4,2 ## @S41
.comm _S42,4,2 ## @S42
.comm _S43,4,2 ## @S43
.comm _S44,4,2 ## @S44
.no_dead_strip _MD5Transform
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function MD5Transform
_MD5Transform: ; @MD5Transform
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 96
stp x26, x25, [sp, #16] ; 16-byte Folded Spill
stp x24, x23, [sp, #32] ; 16-byte Folded Spill
stp x22, x21, [sp, #48] ; 16-byte Folded Spill
stp x20, x19, [sp, #64] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
sub sp, sp, #16
mov x19, x0
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-88]
ldp x22, x23, [x0]
ldp x20, x21, [x0, #16]
Lloh3:
adrp x8, _MD5_SIZE@GOTPAGE
Lloh4:
ldr x8, [x8, _MD5_SIZE@GOTPAGEOFF]
Lloh5:
ldr w8, [x8]
lsl x8, x8, #3
mov x9, x8
Lloh6:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh7:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x9, sp
add x8, x8, #15
and x8, x8, #0xffffffff0
sub x24, x9, x8
mov sp, x24
mov x0, x24
mov w2, #64
bl _Decode
ldr x4, [x24]
Lloh8:
adrp x25, _S11@GOTPAGE
Lloh9:
ldr x25, [x25, _S11@GOTPAGEOFF]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #42104
movk w6, #55146, lsl #16
bl _FF
ldr x4, [x24, #8]
Lloh10:
adrp x26, _S12@GOTPAGE
Lloh11:
ldr x26, [x26, _S12@GOTPAGEOFF]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #46934
movk w6, #59591, lsl #16
bl _FF
ldr x4, [x24, #16]
Lloh12:
adrp x27, _S13@GOTPAGE
Lloh13:
ldr x27, [x27, _S13@GOTPAGEOFF]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #28891
movk w6, #9248, lsl #16
bl _FF
ldr x4, [x24, #24]
Lloh14:
adrp x28, _S14@GOTPAGE
Lloh15:
ldr x28, [x28, _S14@GOTPAGEOFF]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #52974
movk w6, #49597, lsl #16
bl _FF
ldr x4, [x24, #32]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #4015
movk w6, #62844, lsl #16
bl _FF
ldr x4, [x24, #40]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #50730
movk w6, #18311, lsl #16
bl _FF
ldr x4, [x24, #48]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #17939
movk w6, #43056, lsl #16
bl _FF
ldr x4, [x24, #56]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #38145
movk w6, #64838, lsl #16
bl _FF
ldr x4, [x24, #64]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #39128
movk w6, #27008, lsl #16
bl _FF
ldr x4, [x24, #72]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #63407
movk w6, #35652, lsl #16
bl _FF
ldr x4, [x24, #80]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #-42063
bl _FF
ldr x4, [x24, #88]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #55230
movk w6, #35164, lsl #16
bl _FF
ldr x4, [x24, #96]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #4386
movk w6, #27536, lsl #16
bl _FF
ldr x4, [x24, #104]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #29075
movk w6, #64920, lsl #16
bl _FF
ldr x4, [x24, #112]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #17294
movk w6, #42617, lsl #16
bl _FF
ldr x4, [x24, #120]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #2081
movk w6, #18868, lsl #16
bl _FF
ldr x4, [x24, #8]
Lloh16:
adrp x25, _S21@GOTPAGE
Lloh17:
ldr x25, [x25, _S21@GOTPAGEOFF]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #9570
movk w6, #63006, lsl #16
bl _GG
ldr x4, [x24, #48]
Lloh18:
adrp x26, _S22@GOTPAGE
Lloh19:
ldr x26, [x26, _S22@GOTPAGEOFF]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #45888
movk w6, #49216, lsl #16
bl _GG
ldr x4, [x24, #88]
Lloh20:
adrp x27, _S23@GOTPAGE
Lloh21:
ldr x27, [x27, _S23@GOTPAGEOFF]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #23121
movk w6, #9822, lsl #16
bl _GG
ldr x4, [x24]
Lloh22:
adrp x28, _S24@GOTPAGE
Lloh23:
ldr x28, [x28, _S24@GOTPAGEOFF]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #51114
movk w6, #59830, lsl #16
bl _GG
ldr x4, [x24, #40]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #4189
movk w6, #54831, lsl #16
bl _GG
ldr x4, [x24, #80]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #5203
movk w6, #580, lsl #16
bl _GG
ldr x4, [x24, #120]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #59009
movk w6, #55457, lsl #16
bl _GG
ldr x4, [x24, #32]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #64456
movk w6, #59347, lsl #16
bl _GG
ldr x4, [x24, #72]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #52710
movk w6, #8673, lsl #16
bl _GG
ldr x4, [x24, #112]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #2006
movk w6, #49975, lsl #16
bl _GG
ldr x4, [x24, #24]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #3463
movk w6, #62677, lsl #16
bl _GG
ldr x4, [x24, #64]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #5357
movk w6, #17754, lsl #16
bl _GG
ldr x4, [x24, #104]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #59653
movk w6, #43491, lsl #16
bl _GG
ldr x4, [x24, #16]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #41976
movk w6, #64751, lsl #16
bl _GG
ldr x4, [x24, #56]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #729
movk w6, #26479, lsl #16
bl _GG
ldr x4, [x24, #96]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #19594
movk w6, #36138, lsl #16
bl _GG
ldr x4, [x24, #40]
Lloh24:
adrp x25, _S31@GOTPAGE
Lloh25:
ldr x25, [x25, _S31@GOTPAGEOFF]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #14658
movk w6, #65530, lsl #16
bl _HH
ldr x4, [x24, #64]
Lloh26:
adrp x26, _S32@GOTPAGE
Lloh27:
ldr x26, [x26, _S32@GOTPAGEOFF]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #63105
movk w6, #34673, lsl #16
bl _HH
ldr x4, [x24, #88]
Lloh28:
adrp x27, _S33@GOTPAGE
Lloh29:
ldr x27, [x27, _S33@GOTPAGEOFF]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #24866
movk w6, #28061, lsl #16
bl _HH
ldr x4, [x24, #112]
Lloh30:
adrp x28, _S34@GOTPAGE
Lloh31:
ldr x28, [x28, _S34@GOTPAGEOFF]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #14348
movk w6, #64997, lsl #16
bl _HH
ldr x4, [x24, #8]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #59972
movk w6, #42174, lsl #16
bl _HH
ldr x4, [x24, #32]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #53161
movk w6, #19422, lsl #16
bl _HH
ldr x4, [x24, #56]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #19296
movk w6, #63163, lsl #16
bl _HH
ldr x4, [x24, #80]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #48240
movk w6, #48831, lsl #16
bl _HH
ldr x4, [x24, #104]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #32454
movk w6, #10395, lsl #16
bl _HH
ldr x4, [x24]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #10234
movk w6, #60065, lsl #16
bl _HH
ldr x4, [x24, #24]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #12421
movk w6, #54511, lsl #16
bl _HH
ldr x4, [x24, #48]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #7429
movk w6, #1160, lsl #16
bl _HH
ldr x4, [x24, #72]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #53305
movk w6, #55764, lsl #16
bl _HH
ldr x4, [x24, #96]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #39397
movk w6, #59099, lsl #16
bl _HH
ldr x4, [x24, #120]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #31992
movk w6, #8098, lsl #16
bl _HH
ldr x4, [x24, #16]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #22117
movk w6, #50348, lsl #16
bl _HH
ldr x4, [x24]
Lloh32:
adrp x25, _S41@GOTPAGE
Lloh33:
ldr x25, [x25, _S41@GOTPAGEOFF]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #8772
movk w6, #62505, lsl #16
bl _II
ldr x4, [x24, #56]
Lloh34:
adrp x26, _S42@GOTPAGE
Lloh35:
ldr x26, [x26, _S42@GOTPAGEOFF]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #65431
movk w6, #17194, lsl #16
bl _II
ldr x4, [x24, #112]
Lloh36:
adrp x27, _S43@GOTPAGE
Lloh37:
ldr x27, [x27, _S43@GOTPAGEOFF]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #9127
movk w6, #43924, lsl #16
bl _II
ldr x4, [x24, #40]
Lloh38:
adrp x28, _S44@GOTPAGE
Lloh39:
ldr x28, [x28, _S44@GOTPAGEOFF]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #41017
movk w6, #64659, lsl #16
bl _II
ldr x4, [x24, #96]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #22979
movk w6, #25947, lsl #16
bl _II
ldr x4, [x24, #24]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #52370
movk w6, #36620, lsl #16
bl _II
ldr x4, [x24, #80]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #62589
movk w6, #65519, lsl #16
bl _II
ldr x4, [x24, #8]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #24017
movk w6, #34180, lsl #16
bl _II
ldr x4, [x24, #64]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #32335
movk w6, #28584, lsl #16
bl _II
ldr x4, [x24, #120]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #59104
movk w6, #65068, lsl #16
bl _II
ldr x4, [x24, #48]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #17172
movk w6, #41729, lsl #16
bl _II
ldr x4, [x24, #104]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #4513
movk w6, #19976, lsl #16
bl _II
ldr x4, [x24, #32]
ldr w5, [x25]
mov x0, x22
mov x1, x23
mov x2, x20
mov x3, x21
mov w6, #32386
movk w6, #63315, lsl #16
bl _II
ldr x4, [x24, #88]
ldr w5, [x26]
mov x0, x21
mov x1, x22
mov x2, x23
mov x3, x20
mov w6, #62005
movk w6, #48442, lsl #16
bl _II
ldr x4, [x24, #16]
ldr w5, [x27]
mov x0, x20
mov x1, x21
mov x2, x22
mov x3, x23
mov w6, #53947
movk w6, #10967, lsl #16
bl _II
ldr x4, [x24, #72]
ldr w5, [x28]
mov x0, x23
mov x1, x20
mov x2, x21
mov x3, x22
mov w6, #54161
movk w6, #60294, lsl #16
bl _II
ldp x8, x9, [x19]
add x8, x8, x22
add x9, x9, x23
stp x8, x9, [x19]
ldp x8, x9, [x19, #16]
add x8, x8, x20
add x9, x9, x21
stp x8, x9, [x19, #16]
ldur x8, [x29, #-88]
Lloh40:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh41:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_2
; %bb.1:
sub sp, x29, #80
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
ldp x22, x21, [sp, #48] ; 16-byte Folded Reload
ldp x24, x23, [sp, #32] ; 16-byte Folded Reload
ldp x26, x25, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #96 ; 16-byte Folded Reload
ret
LBB0_2:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh40, Lloh41, Lloh42
.loh AdrpLdrGot Lloh38, Lloh39
.loh AdrpLdrGot Lloh36, Lloh37
.loh AdrpLdrGot Lloh34, Lloh35
.loh AdrpLdrGot Lloh32, Lloh33
.loh AdrpLdrGot Lloh30, Lloh31
.loh AdrpLdrGot Lloh28, Lloh29
.loh AdrpLdrGot Lloh26, Lloh27
.loh AdrpLdrGot Lloh24, Lloh25
.loh AdrpLdrGot Lloh22, Lloh23
.loh AdrpLdrGot Lloh20, Lloh21
.loh AdrpLdrGot Lloh18, Lloh19
.loh AdrpLdrGot Lloh16, Lloh17
.loh AdrpLdrGot Lloh14, Lloh15
.loh AdrpLdrGot Lloh12, Lloh13
.loh AdrpLdrGot Lloh10, Lloh11
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _MD5_SIZE,4,2 ; @MD5_SIZE
.comm _S11,4,2 ; @S11
.comm _S12,4,2 ; @S12
.comm _S13,4,2 ; @S13
.comm _S14,4,2 ; @S14
.comm _S21,4,2 ; @S21
.comm _S22,4,2 ; @S22
.comm _S23,4,2 ; @S23
.comm _S24,4,2 ; @S24
.comm _S31,4,2 ; @S31
.comm _S32,4,2 ; @S32
.comm _S33,4,2 ; @S33
.comm _S34,4,2 ; @S34
.comm _S41,4,2 ; @S41
.comm _S42,4,2 ; @S42
.comm _S43,4,2 ; @S43
.comm _S44,4,2 ; @S44
.no_dead_strip _MD5Transform
.subsections_via_symbols
|
AnghaBench/Arduino/tests/host/common/extr_md5.c_MD5Transform.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _atof ## -- Begin function atof
.p2align 4, 0x90
_atof: ## @atof
.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 -8(%rbp), %rsi
callq _strtod
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _atof ; -- Begin function atof
.p2align 2
_atof: ; @atof
.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
add x1, sp, #8
bl _strtod
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tests/host/common/extr_noniso.c_atof.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _atoi ## -- Begin function atoi
.p2align 4, 0x90
_atoi: ## @atoi
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
jmp _atol ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _atoi ; -- Begin function atoi
.p2align 2
_atoi: ; @atoi
.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
bl _atol
; kill: def $w0 killed $w0 killed $x0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tests/host/common/extr_noniso.c_atoi.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _atol ## -- Begin function atol
.p2align 4, 0x90
_atol: ## @atol
.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 -8(%rbp), %rsi
movl $10, %edx
callq _strtol
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _atol ; -- Begin function atol
.p2align 2
_atol: ; @atol
.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
add x1, sp, #8
mov w2, #10
bl _strtol
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tests/host/common/extr_noniso.c_atol.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _itoa ## -- Begin function itoa
.p2align 4, 0x90
_itoa: ## @itoa
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
## kill: def $edx killed $edx def $rdx
movq %rsi, %r14
leal -17(%rdx), %eax
cmpl $-16, %eax
ja LBB0_2
## %bb.1:
movb $0, (%r14)
jmp LBB0_8
LBB0_2:
cmpl $10, %edx
jne LBB0_9
## %bb.3:
movl %edi, %eax
negl %eax
cmovsl %edi, %eax
leaq L_.str(%rip), %r8
movq %r14, %rbx
.p2align 4, 0x90
LBB0_4: ## =>This Inner Loop Header: Depth=1
movslq %eax, %rdx
imulq $1717986919, %rdx, %rax ## imm = 0x66666667
movq %rax, %rsi
shrq $63, %rsi
sarq $34, %rax
addl %esi, %eax
leal (%rax,%rax), %esi
leal (%rsi,%rsi,4), %esi
movl %edx, %ecx
subl %esi, %ecx
movslq %ecx, %rcx
movzbl (%rcx,%r8), %ecx
movb %cl, (%rbx)
incq %rbx
addl $9, %edx
cmpl $18, %edx
ja LBB0_4
## %bb.5:
testl %edi, %edi
jns LBB0_7
## %bb.6:
movb $45, (%rbx)
incq %rbx
LBB0_7:
movq %r14, %rdi
movq %rbx, %rsi
callq _reverse
movb $0, (%rbx)
LBB0_8:
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
LBB0_9:
movq %r14, %rsi
## kill: def $edx killed $edx killed $rdx
popq %rbx
popq %r14
popq %rbp
jmp _utoa ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "0123456789abcdef"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _itoa ; -- Begin function itoa
.p2align 2
_itoa: ; @itoa
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x1
sub w8, w2, #17
cmn w8, #16
b.hi LBB0_2
; %bb.1:
strb wzr, [x19]
b LBB0_8
LBB0_2:
cmp w2, #10
b.ne LBB0_9
; %bb.3:
cmp w0, #0
cneg w10, w0, mi
mov w8, #26215
movk w8, #26214, lsl #16
mov w9, #-10
Lloh0:
adrp x11, l_.str@PAGE
Lloh1:
add x11, x11, l_.str@PAGEOFF
mov x20, x19
LBB0_4: ; =>This Inner Loop Header: Depth=1
smull x12, w10, w8
lsr x13, x12, #63
asr x12, x12, #34
add w12, w12, w13
madd w13, w12, w9, w10
ldrb w13, [x11, w13, sxtw]
strb w13, [x20], #1
add w13, w10, #9
mov x10, x12
cmp w13, #18
b.hi LBB0_4
; %bb.5:
tbz w0, #31, LBB0_7
; %bb.6:
mov w8, #45
strb w8, [x20], #1
LBB0_7:
mov x0, x19
mov x1, x20
bl _reverse
strb wzr, [x20]
LBB0_8:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_9:
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _utoa
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "0123456789abcdef"
.subsections_via_symbols
|
AnghaBench/Arduino/tests/host/common/extr_noniso.c_itoa.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _reverse ## -- Begin function reverse
.p2align 4, 0x90
_reverse: ## @reverse
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
decq %rsi
cmpq %rdi, %rsi
jbe LBB0_3
## %bb.1:
incq %rdi
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movzbl (%rsi), %eax
movzbl -1(%rdi), %ecx
movb %cl, (%rsi)
movb %al, -1(%rdi)
decq %rsi
leaq 1(%rdi), %rax
cmpq %rsi, %rdi
movq %rax, %rdi
jb LBB0_2
LBB0_3:
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _reverse ; -- Begin function reverse
.p2align 2
_reverse: ; @reverse
.cfi_startproc
; %bb.0:
sub x8, x1, #1
cmp x8, x0
b.ls LBB0_3
; %bb.1:
add x9, x0, #1
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldrb w10, [x8]
ldurb w11, [x9, #-1]
strb w11, [x8], #-1
sturb w10, [x9, #-1]
add x10, x9, #1
cmp x9, x8
mov x9, x10
b.lo LBB0_2
LBB0_3:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tests/host/common/extr_noniso.c_reverse.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _utoa ## -- Begin function utoa
.p2align 4, 0x90
_utoa: ## @utoa
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movl %edx, %ecx
movq %rsi, %r14
leal -17(%rcx), %eax
movq %rsi, %rbx
cmpl $-15, %eax
jb LBB0_4
## %bb.1:
leaq L_.str(%rip), %rsi
movq %r14, %rbx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movl %edi, %eax
xorl %edx, %edx
divl %ecx
## kill: def $edx killed $edx def $rdx
movzbl (%rdx,%rsi), %edx
movb %dl, (%rbx)
incq %rbx
cmpl %ecx, %edi
movl %eax, %edi
jae LBB0_2
## %bb.3:
movq %r14, %rdi
movq %rbx, %rsi
callq _reverse
LBB0_4:
movb $0, (%rbx)
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "0123456789abcdef"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _utoa ; -- Begin function utoa
.p2align 2
_utoa: ; @utoa
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x1
sub w8, w2, #17
mov x20, x1
cmn w8, #15
b.lo LBB0_4
; %bb.1:
Lloh0:
adrp x8, l_.str@PAGE
Lloh1:
add x8, x8, l_.str@PAGEOFF
mov x20, x19
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov w9, w0
udiv w10, w0, w2
mul w11, w10, w2
sub x9, x9, x11
ldrb w9, [x8, x9]
strb w9, [x20], #1
cmp w0, w2
mov x0, x10
b.hs LBB0_2
; %bb.3:
mov x0, x19
mov x1, x20
bl _reverse
LBB0_4:
strb wzr, [x20]
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "0123456789abcdef"
.subsections_via_symbols
|
AnghaBench/Arduino/tests/host/common/extr_noniso.c_utoa.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mem_free_callback ## -- Begin function mem_free_callback
.p2align 4, 0x90
_mem_free_callback: ## @mem_free_callback
.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, %rsi
movq _mem_free@GOTPCREL(%rip), %rax
movl (%rax), %edi
xorl %edx, %edx
popq %rbp
jmp _tcpip_callback_with_block ## TAILCALL
.cfi_endproc
## -- End function
.comm _mem_free,4,2 ## @mem_free
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mem_free_callback ; -- Begin function mem_free_callback
.p2align 2
_mem_free_callback: ; @mem_free_callback
.cfi_startproc
; %bb.0:
mov x1, x0
Lloh0:
adrp x8, _mem_free@GOTPAGE
Lloh1:
ldr x8, [x8, _mem_free@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
mov w2, #0
b _tcpip_callback_with_block
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _mem_free,4,2 ; @mem_free
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/api/extr_tcpip.c_mem_free_callback.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_free_callback ## -- Begin function pbuf_free_callback
.p2align 4, 0x90
_pbuf_free_callback: ## @pbuf_free_callback
.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, %rsi
movq _pbuf_free_int@GOTPCREL(%rip), %rax
movl (%rax), %edi
xorl %edx, %edx
popq %rbp
jmp _tcpip_callback_with_block ## TAILCALL
.cfi_endproc
## -- End function
.comm _pbuf_free_int,4,2 ## @pbuf_free_int
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_free_callback ; -- Begin function pbuf_free_callback
.p2align 2
_pbuf_free_callback: ; @pbuf_free_callback
.cfi_startproc
; %bb.0:
mov x1, x0
Lloh0:
adrp x8, _pbuf_free_int@GOTPAGE
Lloh1:
ldr x8, [x8, _pbuf_free_int@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
mov w2, #0
b _tcpip_callback_with_block
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _pbuf_free_int,4,2 ; @pbuf_free_int
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/api/extr_tcpip.c_pbuf_free_callback.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function pbuf_free_int
_pbuf_free_int: ## @pbuf_free_int
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
jmp _pbuf_free ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _pbuf_free_int
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function pbuf_free_int
_pbuf_free_int: ; @pbuf_free_int
.cfi_startproc
; %bb.0:
b _pbuf_free
.cfi_endproc
; -- End function
.no_dead_strip _pbuf_free_int
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/api/extr_tcpip.c_pbuf_free_int.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tcpip_callback_with_block ## -- Begin function tcpip_callback_with_block
.p2align 4, 0x90
_tcpip_callback_with_block: ## @tcpip_callback_with_block
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %r12d
movq _mbox@GOTPCREL(%rip), %rdi
callq _sys_mbox_valid
testq %rax, %rax
je LBB0_1
## %bb.2:
movq _MEMP_TCPIP_MSG_API@GOTPCREL(%rip), %r13
movl (%r13), %edi
callq _memp_malloc
movq _ERR_MEM@GOTPCREL(%rip), %rcx
testq %rax, %rax
je LBB0_7
## %bb.3:
movq %rax, %rbx
movq _TCPIP_MSG_CALLBACK@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, 16(%rbx)
movl %r12d, 8(%rbx)
movq %r15, (%rbx)
testq %r14, %r14
je LBB0_5
## %bb.4:
movq _mbox@GOTPCREL(%rip), %rdi
movq %rbx, %rsi
callq _sys_mbox_post
movq _ERR_OK@GOTPCREL(%rip), %rcx
jmp LBB0_7
LBB0_1:
movq _ERR_VAL@GOTPCREL(%rip), %rcx
LBB0_7:
movq (%rcx), %rax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_5:
movq %rcx, %r14
movq _mbox@GOTPCREL(%rip), %rdi
movq %rbx, %rsi
callq _sys_mbox_trypost
movq _ERR_OK@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_7
## %bb.6:
movl (%r13), %edi
movq %rbx, %rsi
callq _memp_free
movq %r14, %rcx
jmp LBB0_7
.cfi_endproc
## -- End function
.comm _mbox,4,2 ## @mbox
.comm _MEMP_TCPIP_MSG_API,4,2 ## @MEMP_TCPIP_MSG_API
.comm _ERR_MEM,8,3 ## @ERR_MEM
.comm _TCPIP_MSG_CALLBACK,4,2 ## @TCPIP_MSG_CALLBACK
.comm _ERR_OK,8,3 ## @ERR_OK
.comm _ERR_VAL,8,3 ## @ERR_VAL
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tcpip_callback_with_block ; -- Begin function tcpip_callback_with_block
.p2align 2
_tcpip_callback_with_block: ; @tcpip_callback_with_block
.cfi_startproc
; %bb.0:
stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 64
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
mov x20, x2
mov x21, x1
mov x22, x0
Lloh0:
adrp x0, _mbox@GOTPAGE
Lloh1:
ldr x0, [x0, _mbox@GOTPAGEOFF]
bl _sys_mbox_valid
cbz x0, LBB0_4
; %bb.1:
Lloh2:
adrp x23, _MEMP_TCPIP_MSG_API@GOTPAGE
Lloh3:
ldr x23, [x23, _MEMP_TCPIP_MSG_API@GOTPAGEOFF]
ldr w0, [x23]
bl _memp_malloc
cbz x0, LBB0_7
; %bb.2:
mov x19, x0
Lloh4:
adrp x8, _TCPIP_MSG_CALLBACK@GOTPAGE
Lloh5:
ldr x8, [x8, _TCPIP_MSG_CALLBACK@GOTPAGEOFF]
Lloh6:
ldr w8, [x8]
str w8, [x0, #16]
str w22, [x0, #8]
str x21, [x0]
Lloh7:
adrp x0, _mbox@GOTPAGE
Lloh8:
ldr x0, [x0, _mbox@GOTPAGEOFF]
cbz x20, LBB0_5
; %bb.3:
mov x1, x19
bl _sys_mbox_post
Lloh9:
adrp x8, _ERR_OK@GOTPAGE
Lloh10:
ldr x8, [x8, _ERR_OK@GOTPAGEOFF]
b LBB0_8
LBB0_4:
Lloh11:
adrp x8, _ERR_VAL@GOTPAGE
Lloh12:
ldr x8, [x8, _ERR_VAL@GOTPAGEOFF]
b LBB0_8
LBB0_5:
mov x1, x19
bl _sys_mbox_trypost
Lloh13:
adrp x8, _ERR_OK@GOTPAGE
Lloh14:
ldr x8, [x8, _ERR_OK@GOTPAGEOFF]
ldr x9, [x8]
cmp x0, x9
b.eq LBB0_8
; %bb.6:
ldr w0, [x23]
mov x1, x19
bl _memp_free
LBB0_7:
Lloh15:
adrp x8, _ERR_MEM@GOTPAGE
Lloh16:
ldr x8, [x8, _ERR_MEM@GOTPAGEOFF]
LBB0_8:
ldr x0, [x8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.loh AdrpLdrGot Lloh9, Lloh10
.loh AdrpLdrGot Lloh11, Lloh12
.loh AdrpLdrGot Lloh13, Lloh14
.loh AdrpLdrGot Lloh15, Lloh16
.cfi_endproc
; -- End function
.comm _mbox,4,2 ; @mbox
.comm _MEMP_TCPIP_MSG_API,4,2 ; @MEMP_TCPIP_MSG_API
.comm _ERR_MEM,8,3 ; @ERR_MEM
.comm _TCPIP_MSG_CALLBACK,4,2 ; @TCPIP_MSG_CALLBACK
.comm _ERR_OK,8,3 ; @ERR_OK
.comm _ERR_VAL,8,3 ; @ERR_VAL
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/api/extr_tcpip.c_tcpip_callback_with_block.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tcpip_input ## -- Begin function tcpip_input
.p2align 4, 0x90
_tcpip_input: ## @tcpip_input
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %r14
movq %rdi, %r15
movq _mbox@GOTPCREL(%rip), %rdi
callq _sys_mbox_valid
testq %rax, %rax
je LBB0_4
## %bb.1:
movq _MEMP_TCPIP_MSG_INPKT@GOTPCREL(%rip), %r12
movl (%r12), %edi
callq _memp_malloc
testq %rax, %rax
je LBB0_5
## %bb.2:
movq %rax, %rbx
movq _TCPIP_MSG_INPKT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, 16(%rbx)
movq %r15, 8(%rbx)
movq %r14, (%rbx)
movq _mbox@GOTPCREL(%rip), %rdi
movq %rbx, %rsi
callq _sys_mbox_trypost
movq _ERR_OK@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_7
## %bb.3:
movl (%r12), %edi
movq %rbx, %rsi
callq _memp_free
LBB0_5:
movq _ERR_MEM@GOTPCREL(%rip), %rax
jmp LBB0_6
LBB0_4:
movq _ERR_VAL@GOTPCREL(%rip), %rax
LBB0_6:
movq (%rax), %rax
LBB0_7:
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _mbox,4,2 ## @mbox
.comm _MEMP_TCPIP_MSG_INPKT,4,2 ## @MEMP_TCPIP_MSG_INPKT
.comm _ERR_MEM,8,3 ## @ERR_MEM
.comm _TCPIP_MSG_INPKT,4,2 ## @TCPIP_MSG_INPKT
.comm _ERR_OK,8,3 ## @ERR_OK
.comm _ERR_VAL,8,3 ## @ERR_VAL
.comm _NETIF_FLAG_ETHARP,4,2 ## @NETIF_FLAG_ETHARP
.comm _NETIF_FLAG_ETHERNET,4,2 ## @NETIF_FLAG_ETHERNET
.comm _TCPIP_DEBUG,4,2 ## @TCPIP_DEBUG
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tcpip_input ; -- Begin function tcpip_input
.p2align 2
_tcpip_input: ; @tcpip_input
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x20, x1
mov x21, x0
Lloh0:
adrp x0, _mbox@GOTPAGE
Lloh1:
ldr x0, [x0, _mbox@GOTPAGEOFF]
bl _sys_mbox_valid
cbz x0, LBB0_5
; %bb.1:
Lloh2:
adrp x22, _MEMP_TCPIP_MSG_INPKT@GOTPAGE
Lloh3:
ldr x22, [x22, _MEMP_TCPIP_MSG_INPKT@GOTPAGEOFF]
ldr w0, [x22]
bl _memp_malloc
cbz x0, LBB0_4
; %bb.2:
mov x19, x0
Lloh4:
adrp x8, _TCPIP_MSG_INPKT@GOTPAGE
Lloh5:
ldr x8, [x8, _TCPIP_MSG_INPKT@GOTPAGEOFF]
Lloh6:
ldr w8, [x8]
str w8, [x0, #16]
stp x20, x21, [x0]
Lloh7:
adrp x0, _mbox@GOTPAGE
Lloh8:
ldr x0, [x0, _mbox@GOTPAGEOFF]
mov x1, x19
bl _sys_mbox_trypost
Lloh9:
adrp x8, _ERR_OK@GOTPAGE
Lloh10:
ldr x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh11:
ldr x8, [x8]
cmp x0, x8
b.eq LBB0_7
; %bb.3:
ldr w0, [x22]
mov x1, x19
bl _memp_free
LBB0_4:
Lloh12:
adrp x8, _ERR_MEM@GOTPAGE
Lloh13:
ldr x8, [x8, _ERR_MEM@GOTPAGEOFF]
b LBB0_6
LBB0_5:
Lloh14:
adrp x8, _ERR_VAL@GOTPAGE
Lloh15:
ldr x8, [x8, _ERR_VAL@GOTPAGEOFF]
LBB0_6:
ldr x0, [x8]
LBB0_7:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGot Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.loh AdrpLdrGot Lloh12, Lloh13
.loh AdrpLdrGot Lloh14, Lloh15
.cfi_endproc
; -- End function
.comm _mbox,4,2 ; @mbox
.comm _MEMP_TCPIP_MSG_INPKT,4,2 ; @MEMP_TCPIP_MSG_INPKT
.comm _ERR_MEM,8,3 ; @ERR_MEM
.comm _TCPIP_MSG_INPKT,4,2 ; @TCPIP_MSG_INPKT
.comm _ERR_OK,8,3 ; @ERR_OK
.comm _ERR_VAL,8,3 ; @ERR_VAL
.comm _NETIF_FLAG_ETHARP,4,2 ; @NETIF_FLAG_ETHARP
.comm _NETIF_FLAG_ETHERNET,4,2 ; @NETIF_FLAG_ETHERNET
.comm _TCPIP_DEBUG,4,2 ; @TCPIP_DEBUG
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/api/extr_tcpip.c_tcpip_input.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_buffer_size ## -- Begin function ringbuf_buffer_size
.p2align 4, 0x90
_ringbuf_buffer_size: ## @ringbuf_buffer_size
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq (%rdi), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_buffer_size ; -- Begin function ringbuf_buffer_size
.p2align 2
_ringbuf_buffer_size: ; @ringbuf_buffer_size
.cfi_startproc
; %bb.0:
ldr x0, [x0]
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_buffer_size.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_bytes_free ## -- Begin function ringbuf_bytes_free
.p2align 4, 0x90
_ringbuf_bytes_free: ## @ringbuf_bytes_free
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
movq (%rdi), %rcx
movq 8(%rdi), %rax
cmpq %rcx, %rax
jle LBB0_1
## %bb.2:
notq %rcx
addq %rcx, %rax
jmp LBB0_3
LBB0_1:
movq %rdi, %rbx
callq _ringbuf_capacity
subq (%rbx), %rax
addq 8(%rbx), %rax
LBB0_3:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_bytes_free ; -- Begin function ringbuf_bytes_free
.p2align 2
_ringbuf_bytes_free: ; @ringbuf_bytes_free
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
ldp x8, x9, [x0]
cmp x9, x8
b.le LBB0_2
; %bb.1:
mvn x8, x8
add x0, x9, x8
b LBB0_3
LBB0_2:
mov x19, x0
bl _ringbuf_capacity
ldp x8, x9, [x19]
sub x8, x0, x8
add x0, x8, x9
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_bytes_free.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_bytes_used ## -- Begin function ringbuf_bytes_used
.p2align 4, 0x90
_ringbuf_bytes_used: ## @ringbuf_bytes_used
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
callq _ringbuf_capacity
movq %rax, %rbx
movq %r14, %rdi
callq _ringbuf_bytes_free
subq %rax, %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_bytes_used ; -- Begin function ringbuf_bytes_used
.p2align 2
_ringbuf_bytes_used: ; @ringbuf_bytes_used
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
bl _ringbuf_capacity
mov x20, x0
mov x0, x19
bl _ringbuf_bytes_free
sub x0, x20, x0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_bytes_used.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_capacity ## -- Begin function ringbuf_capacity
.p2align 4, 0x90
_ringbuf_capacity: ## @ringbuf_capacity
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _ringbuf_buffer_size
decq %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_capacity ; -- Begin function ringbuf_capacity
.p2align 2
_ringbuf_capacity: ; @ringbuf_capacity
.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
bl _ringbuf_buffer_size
sub x0, x0, #1
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_capacity.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_findchr ## -- Begin function ringbuf_findchr
.p2align 4, 0x90
_ringbuf_findchr: ## @ringbuf_findchr
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $24, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdx, %r12
movl %esi, %r14d
movq %rdi, %rbx
callq _ringbuf_end
movq %rax, %r13
movq %rbx, %rdi
callq _ringbuf_bytes_used
movq %rax, %r15
cmpq %r12, %rax
jbe LBB0_8
## %bb.1:
movl %r14d, -44(%rbp) ## 4-byte Spill
movq %rbx, -56(%rbp) ## 8-byte Spill
.p2align 4, 0x90
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq %rbx, %rdi
movq (%rbx), %r14
movq 8(%rbx), %rbx
subq %r14, %rbx
sarq $2, %rbx
addq %r12, %rbx
callq _ringbuf_buffer_size
movl %eax, %ecx
movslq %eax, %rsi
movq %rbx, %rax
orq %rsi, %rax
shrq $32, %rax
je LBB0_4
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movq %rbx, %rax
xorl %edx, %edx
divq %rsi
jmp LBB0_6
.p2align 4, 0x90
LBB0_4: ## in Loop: Header=BB0_3 Depth=1
movl %ebx, %eax
xorl %edx, %edx
divl %ecx
## kill: def $edx killed $edx def $rdx
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
leaq (%r14,%rdx,4), %r14
xorl %edi, %edi
subq %r14, %r13
seta %dil
callq _lwIP_ASSERT
shrq $2, %r13
subq %r12, %r15
movl %r13d, %edi
movq %r15, %rsi
callq _LWIP_MIN
movq %rax, %rbx
movq %r14, %rdi
movl -44(%rbp), %esi ## 4-byte Reload
movq %rax, %rdx
callq _memchr
testq %rax, %rax
jne LBB0_7
## %bb.2: ## in Loop: Header=BB0_3 Depth=1
addq %rbx, %r12
movq -56(%rbp), %rbx ## 8-byte Reload
movq %rbx, %rdi
callq _ringbuf_end
movq %rax, %r13
movq %rbx, %rdi
callq _ringbuf_bytes_used
movq %rax, %r15
cmpq %r12, %rax
ja LBB0_3
jmp LBB0_8
LBB0_7:
movq %rax, %r15
subq %r14, %r15
sarq $2, %r15
addq %r12, %r15
LBB0_8:
movq %r15, %rax
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_findchr ; -- Begin function ringbuf_findchr
.p2align 2
_ringbuf_findchr: ; @ringbuf_findchr
.cfi_startproc
; %bb.0:
stp x26, x25, [sp, #-80]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 80
stp x24, x23, [sp, #16] ; 16-byte Folded Spill
stp x22, x21, [sp, #32] ; 16-byte Folded Spill
stp x20, x19, [sp, #48] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
mov x19, x2
mov x20, x1
mov x21, x0
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _ringbuf_end
mov x23, x0
mov x0, x21
bl _ringbuf_bytes_used
mov x22, x0
cmp x0, x19
b.ls LBB0_5
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
ldp x24, x8, [x21]
sub x8, x8, x24
add x25, x19, x8, asr #2
mov x0, x21
bl _ringbuf_buffer_size
; kill: def $w0 killed $w0 def $x0
sxtw x8, w0
udiv x9, x25, x8
msub x8, x9, x8, x25
add x24, x24, x8, lsl #2
subs x23, x23, x24
cset w0, hi
bl _lwIP_ASSERT
lsr x0, x23, #2
sub x1, x22, x19
; kill: def $w0 killed $w0 killed $x0
bl _LWIP_MIN
mov x22, x0
mov x0, x24
mov x1, x20
mov x2, x22
bl _memchr
cbnz x0, LBB0_4
; %bb.3: ; in Loop: Header=BB0_1 Depth=1
add x19, x22, x19
mov x0, x21
b LBB0_1
LBB0_4:
sub x8, x0, x24
add x22, x19, x8, asr #2
LBB0_5:
mov x0, x22
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
ldp x22, x21, [sp, #32] ; 16-byte Folded Reload
ldp x24, x23, [sp, #16] ; 16-byte Folded Reload
ldp x26, x25, [sp], #80 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_findchr.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_free ## -- Begin function ringbuf_free
.p2align 4, 0x90
_ringbuf_free: ## @ringbuf_free
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
movq %rdi, %rbx
testq %rdi, %rdi
je LBB0_1
## %bb.2:
xorl %edi, %edi
cmpq $0, (%rbx)
setne %dil
jmp LBB0_3
LBB0_1:
xorl %edi, %edi
LBB0_3:
callq _lwIP_ASSERT
movq (%rbx), %rax
movq (%rax), %rdi
callq _os_free
movq (%rbx), %rdi
callq _os_free
movq $0, (%rbx)
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_free ; -- Begin function ringbuf_free
.p2align 2
_ringbuf_free: ; @ringbuf_free
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
cbz x0, LBB0_2
; %bb.1:
ldr x8, [x19]
cmp x8, #0
cset w0, ne
LBB0_2:
bl _lwIP_ASSERT
ldr x8, [x19]
ldr x0, [x8]
bl _os_free
ldr x0, [x19]
bl _os_free
str xzr, [x19]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_free.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_head ## -- Begin function ringbuf_head
.p2align 4, 0x90
_ringbuf_head: ## @ringbuf_head
.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), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_head ; -- Begin function ringbuf_head
.p2align 2
_ringbuf_head: ; @ringbuf_head
.cfi_startproc
; %bb.0:
ldr x0, [x0]
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_head.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_is_empty ## -- Begin function ringbuf_is_empty
.p2align 4, 0x90
_ringbuf_is_empty: ## @ringbuf_is_empty
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %rbx
callq _ringbuf_bytes_free
movq %rax, %r14
movq %rbx, %rdi
callq _ringbuf_capacity
xorl %ecx, %ecx
cmpq %rax, %r14
sete %cl
movl %ecx, %eax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_is_empty ; -- Begin function ringbuf_is_empty
.p2align 2
_ringbuf_is_empty: ; @ringbuf_is_empty
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
bl _ringbuf_bytes_free
mov x20, x0
mov x0, x19
bl _ringbuf_capacity
cmp x20, x0
cset w0, eq
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_is_empty.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_is_full ## -- Begin function ringbuf_is_full
.p2align 4, 0x90
_ringbuf_is_full: ## @ringbuf_is_full
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _ringbuf_bytes_free
xorl %ecx, %ecx
testq %rax, %rax
sete %cl
movl %ecx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_is_full ; -- Begin function ringbuf_is_full
.p2align 2
_ringbuf_is_full: ; @ringbuf_is_full
.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
bl _ringbuf_bytes_free
cmp x0, #0
cset w0, eq
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_is_full.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_memcpy_from ## -- Begin function ringbuf_memcpy_from
.p2align 4, 0x90
_ringbuf_memcpy_from: ## @ringbuf_memcpy_from
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $24, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq %rsi, %rdi
callq _ringbuf_bytes_used
cmpq %r14, %rax
jae LBB0_2
## %bb.1:
xorl %eax, %eax
jmp LBB0_8
LBB0_2:
movq %r15, -56(%rbp) ## 8-byte Spill
movq %rax, -48(%rbp) ## 8-byte Spill
movq %rbx, %rdi
callq _ringbuf_end
testq %r14, %r14
je LBB0_7
## %bb.3:
movq %rax, %r13
movq (%rbx), %rax
xorl %r15d, %r15d
jmp LBB0_4
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_4 Depth=1
cmpq %r14, %r15
je LBB0_7
LBB0_4: ## =>This Inner Loop Header: Depth=1
movq %r15, %r12
xorl %edi, %edi
cmpq %rax, %r13
seta %dil
callq _lwIP_ASSERT
movl (%rbx), %eax
movl %r13d, %edi
subl %eax, %edi
movq %r14, %rsi
subq %r15, %rsi
callq _LWIP_MIN
movq %rax, %r15
movq -56(%rbp), %rax ## 8-byte Reload
leaq (%rax,%r12), %rdi
movq (%rbx), %rsi
movq %r15, %rdx
callq _os_memcpy
movq (%rbx), %rax
addq %r15, %rax
movq %rax, (%rbx)
addq %r12, %r15
cmpq %r13, %rax
jne LBB0_6
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movq 8(%rbx), %rax
movq %rax, (%rbx)
jmp LBB0_6
LBB0_7:
movq %rbx, %rdi
callq _ringbuf_bytes_used
addq %r14, %rax
xorl %edi, %edi
cmpq -48(%rbp), %rax ## 8-byte Folded Reload
sete %dil
callq _lwIP_ASSERT
movq (%rbx), %rax
LBB0_8:
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_memcpy_from ; -- Begin function ringbuf_memcpy_from
.p2align 2
_ringbuf_memcpy_from: ; @ringbuf_memcpy_from
.cfi_startproc
; %bb.0:
stp x26, x25, [sp, #-80]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 80
stp x24, x23, [sp, #16] ; 16-byte Folded Spill
stp x22, x21, [sp, #32] ; 16-byte Folded Spill
stp x20, x19, [sp, #48] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
mov x20, x2
mov x19, x1
mov x22, x0
mov x0, x1
bl _ringbuf_bytes_used
cmp x0, x20
b.hs LBB0_2
; %bb.1:
mov x0, #0
b LBB0_8
LBB0_2:
mov x21, x0
mov x0, x19
bl _ringbuf_end
cbz x20, LBB0_7
; %bb.3:
mov x23, x0
mov x25, #0
ldr x8, [x19]
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_5 Depth=1
add x25, x24, x25
cmp x25, x20
b.eq LBB0_7
LBB0_5: ; =>This Inner Loop Header: Depth=1
cmp x23, x8
cset w0, hi
bl _lwIP_ASSERT
ldr w8, [x19]
sub w0, w23, w8
sub x1, x20, x25
bl _LWIP_MIN
mov x24, x0
add x0, x22, x25
ldr x1, [x19]
mov x2, x24
bl _os_memcpy
ldr x8, [x19]
add x8, x8, x24
cmp x8, x23
str x8, [x19]
b.ne LBB0_4
; %bb.6: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [x19, #8]
str x8, [x19]
b LBB0_4
LBB0_7:
mov x0, x19
bl _ringbuf_bytes_used
add x8, x0, x20
cmp x8, x21
cset w0, eq
bl _lwIP_ASSERT
ldr x0, [x19]
LBB0_8:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
ldp x22, x21, [sp, #32] ; 16-byte Folded Reload
ldp x24, x23, [sp, #16] ; 16-byte Folded Reload
ldp x26, x25, [sp], #80 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_memcpy_from.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_memcpy_into ## -- Begin function ringbuf_memcpy_into
.p2align 4, 0x90
_ringbuf_memcpy_into: ## @ringbuf_memcpy_into
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $24, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdx, %r14
movq %rsi, -56(%rbp) ## 8-byte Spill
movq %rdi, %rbx
callq _ringbuf_end
movq %rax, %r12
movq %rbx, %rdi
callq _ringbuf_bytes_free
movq %rax, -48(%rbp) ## 8-byte Spill
testq %r14, %r14
je LBB0_5
## %bb.1:
movq (%rbx), %rax
xorl %r13d, %r13d
jmp LBB0_2
.p2align 4, 0x90
LBB0_4: ## in Loop: Header=BB0_2 Depth=1
cmpq %r14, %r13
je LBB0_5
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r13, %r15
xorl %edi, %edi
cmpq %rax, %r12
seta %dil
callq _lwIP_ASSERT
movl (%rbx), %eax
movl %r12d, %edi
subl %eax, %edi
movq %r14, %rsi
subq %r13, %rsi
callq _LWIP_MIN
movq %rax, %r13
movq (%rbx), %rdi
movq -56(%rbp), %rax ## 8-byte Reload
leaq (%rax,%r15), %rsi
movq %r13, %rdx
callq _os_memcpy
movq (%rbx), %rax
addq %r13, %rax
movq %rax, (%rbx)
addq %r15, %r13
cmpq %r12, %rax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movq 8(%rbx), %rax
movq %rax, (%rbx)
jmp LBB0_4
LBB0_5:
cmpq %r14, -48(%rbp) ## 8-byte Folded Reload
jae LBB0_7
## %bb.6:
movq (%rbx), %rsi
movq %rbx, %rdi
callq _ringbuf_nextp
movl %eax, 16(%rbx)
movq %rbx, %rdi
callq _ringbuf_is_full
movl %eax, %edi
callq _lwIP_ASSERT
LBB0_7:
movq (%rbx), %rax
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_memcpy_into ; -- Begin function ringbuf_memcpy_into
.p2align 2
_ringbuf_memcpy_into: ; @ringbuf_memcpy_into
.cfi_startproc
; %bb.0:
stp x26, x25, [sp, #-80]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 80
stp x24, x23, [sp, #16] ; 16-byte Folded Spill
stp x22, x21, [sp, #32] ; 16-byte Folded Spill
stp x20, x19, [sp, #48] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
mov x20, x2
mov x21, x1
mov x19, x0
bl _ringbuf_end
mov x22, x0
mov x0, x19
bl _ringbuf_bytes_free
mov x23, x0
cbz x20, LBB0_5
; %bb.1:
mov x25, #0
ldr x8, [x19]
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
add x25, x24, x25
cmp x25, x20
b.eq LBB0_5
LBB0_3: ; =>This Inner Loop Header: Depth=1
cmp x22, x8
cset w0, hi
bl _lwIP_ASSERT
ldr w8, [x19]
sub w0, w22, w8
sub x1, x20, x25
bl _LWIP_MIN
mov x24, x0
ldr x0, [x19]
add x1, x21, x25
mov x2, x24
bl _os_memcpy
ldr x8, [x19]
add x8, x8, x24
cmp x8, x22
str x8, [x19]
b.ne LBB0_2
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [x19, #8]
str x8, [x19]
b LBB0_2
LBB0_5:
cmp x23, x20
b.hs LBB0_7
; %bb.6:
ldr x1, [x19]
mov x0, x19
bl _ringbuf_nextp
str w0, [x19, #16]
mov x0, x19
bl _ringbuf_is_full
bl _lwIP_ASSERT
LBB0_7:
ldr x0, [x19]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
ldp x22, x21, [sp, #32] ; 16-byte Folded Reload
ldp x24, x23, [sp, #16] ; 16-byte Folded Reload
ldp x26, x25, [sp], #80 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_memcpy_into.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_memset ## -- Begin function ringbuf_memset
.p2align 4, 0x90
_ringbuf_memset: ## @ringbuf_memset
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $24, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdx, %r14
movl %esi, -44(%rbp) ## 4-byte Spill
movq %rdi, %rbx
callq _ringbuf_end
movq %rax, %r12
movq %rbx, %rdi
callq _ringbuf_buffer_size
movl %r14d, %edi
movq %rax, %rsi
callq _LWIP_MIN
movq %rax, %r14
movq %rbx, %rdi
callq _ringbuf_bytes_free
movq %rax, -56(%rbp) ## 8-byte Spill
testq %r14, %r14
je LBB0_5
## %bb.1:
movq (%rbx), %rax
xorl %r13d, %r13d
jmp LBB0_2
.p2align 4, 0x90
LBB0_4: ## in Loop: Header=BB0_2 Depth=1
cmpq %r13, %r14
je LBB0_5
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r13, %r15
xorl %edi, %edi
cmpq %rax, %r12
seta %dil
callq _lwIP_ASSERT
movq %r12, %rdi
subq (%rbx), %rdi
shrq $2, %rdi
movq %r14, %rsi
subq %r13, %rsi
## kill: def $edi killed $edi killed $rdi
callq _LWIP_MIN
movq %rax, %r13
movq (%rbx), %rdi
movl -44(%rbp), %esi ## 4-byte Reload
movq %rax, %rdx
callq _os_memset
leaq (,%r13,4), %rax
addq (%rbx), %rax
movq %rax, (%rbx)
addq %r15, %r13
cmpq %r12, %rax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movq 16(%rbx), %rax
movq %rax, (%rbx)
jmp LBB0_4
LBB0_5:
cmpq -56(%rbp), %r14 ## 8-byte Folded Reload
jbe LBB0_7
## %bb.6:
movq (%rbx), %rsi
movq %rbx, %rdi
callq _ringbuf_nextp
movl %eax, 8(%rbx)
movq %rbx, %rdi
callq _ringbuf_is_full
movl %eax, %edi
callq _lwIP_ASSERT
LBB0_7:
movq %r14, %rax
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_memset ; -- Begin function ringbuf_memset
.p2align 2
_ringbuf_memset: ; @ringbuf_memset
.cfi_startproc
; %bb.0:
stp x26, x25, [sp, #-80]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 80
stp x24, x23, [sp, #16] ; 16-byte Folded Spill
stp x22, x21, [sp, #32] ; 16-byte Folded Spill
stp x20, x19, [sp, #48] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
mov x20, x2
mov x21, x1
mov x19, x0
bl _ringbuf_end
mov x22, x0
mov x0, x19
bl _ringbuf_buffer_size
mov x1, x0
mov x0, x20
bl _LWIP_MIN
mov x20, x0
mov x0, x19
bl _ringbuf_bytes_free
mov x23, x0
cbz x20, LBB0_5
; %bb.1:
mov x25, #0
ldr x8, [x19]
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
add x25, x24, x25
cmp x20, x25
b.eq LBB0_5
LBB0_3: ; =>This Inner Loop Header: Depth=1
cmp x22, x8
cset w0, hi
bl _lwIP_ASSERT
ldr x8, [x19]
sub x8, x22, x8
lsr x0, x8, #2
sub x1, x20, x25
; kill: def $w0 killed $w0 killed $x0
bl _LWIP_MIN
mov x24, x0
ldr x0, [x19]
mov x1, x21
mov x2, x24
bl _os_memset
ldr x8, [x19]
add x8, x8, x24, lsl #2
str x8, [x19]
cmp x8, x22
b.ne LBB0_2
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [x19, #16]
str x8, [x19]
b LBB0_2
LBB0_5:
cmp x20, x23
b.ls LBB0_7
; %bb.6:
ldr x1, [x19]
mov x0, x19
bl _ringbuf_nextp
str w0, [x19, #8]
mov x0, x19
bl _ringbuf_is_full
bl _lwIP_ASSERT
LBB0_7:
mov x0, x20
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
ldp x22, x21, [sp, #32] ; 16-byte Folded Reload
ldp x24, x23, [sp, #16] ; 16-byte Folded Reload
ldp x26, x25, [sp], #80 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_memset.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_new ## -- Begin function ringbuf_new
.p2align 4, 0x90
_ringbuf_new: ## @ringbuf_new
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %rbx
movl $4, %edi
callq _os_zalloc
movq %rax, %r14
testq %rax, %rax
je LBB0_4
## %bb.1:
incq %rbx
movq %rbx, (%r14)
movl %ebx, %edi
callq _os_zalloc
movq %rax, 8(%r14)
testq %rax, %rax
je LBB0_3
## %bb.2:
movq %r14, %rdi
callq _ringbuf_reset
jmp LBB0_4
LBB0_3:
movq %r14, %rdi
callq _os_free
xorl %r14d, %r14d
LBB0_4:
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_new ; -- Begin function ringbuf_new
.p2align 2
_ringbuf_new: ; @ringbuf_new
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x20, x0
mov w0, #4
bl _os_zalloc
mov x19, x0
cbz x0, LBB0_4
; %bb.1:
add x0, x20, #1
str x0, [x19]
; kill: def $w0 killed $w0 killed $x0
bl _os_zalloc
str x0, [x19, #8]
cbz x0, LBB0_3
; %bb.2:
mov x0, x19
bl _ringbuf_reset
b LBB0_4
LBB0_3:
mov x0, x19
bl _os_free
mov x19, #0
LBB0_4:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_new.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ringbuf_nextp
_ringbuf_nextp: ## @ringbuf_nextp
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %rbx
movq %rdi, %r14
xorl %edi, %edi
cmpq %rsi, (%r14)
ja LBB0_2
## %bb.1:
movq %r14, %rdi
callq _ringbuf_end
xorl %edi, %edi
cmpq %rbx, %rax
seta %dil
LBB0_2:
callq _lwIP_ASSERT
movq (%r14), %r15
subq %r15, %rbx
addq $4, %rbx
sarq $2, %rbx
movq %r14, %rdi
callq _ringbuf_buffer_size
movl %eax, %ecx
movslq %eax, %rsi
movq %rbx, %rax
orq %rsi, %rax
shrq $32, %rax
je LBB0_3
## %bb.4:
movq %rbx, %rax
cqto
idivq %rsi
jmp LBB0_5
LBB0_3:
movl %ebx, %eax
xorl %edx, %edx
divl %ecx
## kill: def $edx killed $edx def $rdx
LBB0_5:
leaq (%r15,%rdx,4), %rax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _ringbuf_nextp
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ringbuf_nextp
_ringbuf_nextp: ; @ringbuf_nextp
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x20, x1
mov x19, x0
ldr x8, [x0]
cmp x8, x1
b.ls LBB0_2
; %bb.1:
mov w0, #0
b LBB0_3
LBB0_2:
mov x0, x19
bl _ringbuf_end
cmp x0, x20
cset w0, hi
LBB0_3:
bl _lwIP_ASSERT
ldr x21, [x19]
sub x8, x20, x21
add x8, x8, #4
asr x20, x8, #2
mov x0, x19
bl _ringbuf_buffer_size
; kill: def $w0 killed $w0 def $x0
sxtw x8, w0
sdiv x9, x20, x8
msub x8, x9, x8, x20
add x0, x21, x8, lsl #2
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _ringbuf_nextp
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_nextp.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_reset ## -- Begin function ringbuf_reset
.p2align 4, 0x90
_ringbuf_reset: ## @ringbuf_reset
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl (%rdi), %eax
movl %eax, 4(%rdi)
movl %eax, 8(%rdi)
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_reset ; -- Begin function ringbuf_reset
.p2align 2
_ringbuf_reset: ; @ringbuf_reset
.cfi_startproc
; %bb.0:
ldr w8, [x0]
stp w8, w8, [x0, #4]
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_reset.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_tail ## -- Begin function ringbuf_tail
.p2align 4, 0x90
_ringbuf_tail: ## @ringbuf_tail
.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), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ringbuf_tail ; -- Begin function ringbuf_tail
.p2align 2
_ringbuf_tail: ; @ringbuf_tail
.cfi_startproc
; %bb.0:
ldr x0, [x0]
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/app/extr_espconn_buf.c_ringbuf_tail.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lwip_htonl ## -- Begin function lwip_htonl
.p2align 4, 0x90
_lwip_htonl: ## @lwip_htonl
.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, %eax
bswapl %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lwip_htonl ; -- Begin function lwip_htonl
.p2align 2
_lwip_htonl: ; @lwip_htonl
.cfi_startproc
; %bb.0:
rev w0, w0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_def.c_lwip_htonl.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lwip_htons ## -- Begin function lwip_htons
.p2align 4, 0x90
_lwip_htons: ## @lwip_htons
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
rolw $8, %di
movzwl %di, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lwip_htons ; -- Begin function lwip_htons
.p2align 2
_lwip_htons: ; @lwip_htons
.cfi_startproc
; %bb.0:
rev w8, w0
lsr w0, w8, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_def.c_lwip_htons.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lwip_ntohl ## -- Begin function lwip_ntohl
.p2align 4, 0x90
_lwip_ntohl: ## @lwip_ntohl
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
jmp _lwip_htonl ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lwip_ntohl ; -- Begin function lwip_ntohl
.p2align 2
_lwip_ntohl: ; @lwip_ntohl
.cfi_startproc
; %bb.0:
b _lwip_htonl
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_def.c_lwip_ntohl.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lwip_ntohs ## -- Begin function lwip_ntohs
.p2align 4, 0x90
_lwip_ntohs: ## @lwip_ntohs
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
jmp _lwip_htons ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lwip_ntohs ; -- Begin function lwip_ntohs
.p2align 2
_lwip_ntohs: ; @lwip_ntohs
.cfi_startproc
; %bb.0:
b _lwip_htons
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_def.c_lwip_ntohs.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lwip_init ## -- Begin function lwip_init
.p2align 4, 0x90
_lwip_init: ## @lwip_init
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _MEMP_NUM_TCP_PCB@GOTPCREL(%rip), %rax
movl $5, (%rax)
movq _TCP_MSS@GOTPCREL(%rip), %rax
movl (%rax), %eax
shll $2, %eax
movq _TCP_WND@GOTPCREL(%rip), %rcx
movl %eax, (%rcx)
movq _TCP_MAXRTX@GOTPCREL(%rip), %rax
movl $12, (%rax)
movq _TCP_SYNMAXRTX@GOTPCREL(%rip), %rax
movl $6, (%rax)
xorl %eax, %eax
callq _lwip_sanity_check
xorl %eax, %eax
callq _stats_init
xorl %eax, %eax
callq _sys_init
xorl %eax, %eax
callq _memp_init
xorl %eax, %eax
callq _pbuf_init
xorl %eax, %eax
callq _netif_init
xorl %eax, %eax
popq %rbp
jmp _ip_init ## TAILCALL
.cfi_endproc
## -- End function
.comm _MEMP_NUM_TCP_PCB,4,2 ## @MEMP_NUM_TCP_PCB
.comm _TCP_MSS,4,2 ## @TCP_MSS
.comm _TCP_WND,4,2 ## @TCP_WND
.comm _TCP_MAXRTX,4,2 ## @TCP_MAXRTX
.comm _TCP_SYNMAXRTX,4,2 ## @TCP_SYNMAXRTX
.comm __bss_end,4,2 ## @_bss_end
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lwip_init ; -- Begin function lwip_init
.p2align 2
_lwip_init: ; @lwip_init
.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
Lloh0:
adrp x8, _MEMP_NUM_TCP_PCB@GOTPAGE
Lloh1:
ldr x8, [x8, _MEMP_NUM_TCP_PCB@GOTPAGEOFF]
mov w9, #5
Lloh2:
str w9, [x8]
Lloh3:
adrp x8, _TCP_MSS@GOTPAGE
Lloh4:
ldr x8, [x8, _TCP_MSS@GOTPAGEOFF]
Lloh5:
ldr w8, [x8]
lsl w8, w8, #2
Lloh6:
adrp x9, _TCP_WND@GOTPAGE
Lloh7:
ldr x9, [x9, _TCP_WND@GOTPAGEOFF]
Lloh8:
str w8, [x9]
Lloh9:
adrp x8, _TCP_MAXRTX@GOTPAGE
Lloh10:
ldr x8, [x8, _TCP_MAXRTX@GOTPAGEOFF]
mov w9, #12
Lloh11:
str w9, [x8]
Lloh12:
adrp x8, _TCP_SYNMAXRTX@GOTPAGE
Lloh13:
ldr x8, [x8, _TCP_SYNMAXRTX@GOTPAGEOFF]
mov w9, #6
Lloh14:
str w9, [x8]
bl _lwip_sanity_check
bl _stats_init
bl _sys_init
bl _memp_init
bl _pbuf_init
bl _netif_init
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _ip_init
.loh AdrpLdrGotStr Lloh12, Lloh13, Lloh14
.loh AdrpLdrGotStr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGotStr Lloh6, Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotStr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _MEMP_NUM_TCP_PCB,4,2 ; @MEMP_NUM_TCP_PCB
.comm _TCP_MSS,4,2 ; @TCP_MSS
.comm _TCP_WND,4,2 ; @TCP_WND
.comm _TCP_MAXRTX,4,2 ; @TCP_MAXRTX
.comm _TCP_SYNMAXRTX,4,2 ; @TCP_SYNMAXRTX
.comm __bss_end,4,2 ; @_bss_end
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_init.c_lwip_init.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _memp_free ## -- Begin function memp_free
.p2align 4, 0x90
_memp_free: ## @memp_free
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %rbx
movq %rdi, %r14
movq _old_level@GOTPCREL(%rip), %r15
movl (%r15), %edi
callq _SYS_ARCH_DECL_PROTECT
testq %rbx, %rbx
je LBB0_1
## %bb.2:
movq _MEM_ALIGNMENT@GOTPCREL(%rip), %rcx
movl %ebx, %eax
cltd
idivl (%rcx)
xorl %esi, %esi
testl %edx, %edx
sete %sil
leaq L_.str(%rip), %rdi
callq _LWIP_ASSERT
movq _MEMP_SIZE@GOTPCREL(%rip), %rax
subq (%rax), %rbx
sarq $2, %rbx
movl (%r15), %edi
callq _SYS_ARCH_PROTECT
movq _used@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %r14, %rsi
callq _MEMP_STATS_DEC
movq _memp_tab@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movq (%rcx,%r14,8), %rcx
movq %rcx, (%rbx)
movq (%rax), %rax
movq %rbx, (%rax,%r14,8)
movl (%r15), %edi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _SYS_ARCH_UNPROTECT ## TAILCALL
LBB0_1:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _old_level,4,2 ## @old_level
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "memp_free: mem properly aligned"
.comm _MEM_ALIGNMENT,4,2 ## @MEM_ALIGNMENT
.comm _MEMP_SIZE,8,3 ## @MEMP_SIZE
.comm _used,4,2 ## @used
.comm _memp_tab,8,3 ## @memp_tab
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _memp_free ; -- Begin function memp_free
.p2align 2
_memp_free: ; @memp_free
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x20, x1
mov x19, x0
Lloh0:
adrp x21, _old_level@GOTPAGE
Lloh1:
ldr x21, [x21, _old_level@GOTPAGEOFF]
ldr w0, [x21]
bl _SYS_ARCH_DECL_PROTECT
cbz x20, LBB0_2
; %bb.1:
Lloh2:
adrp x8, _MEM_ALIGNMENT@GOTPAGE
Lloh3:
ldr x8, [x8, _MEM_ALIGNMENT@GOTPAGEOFF]
Lloh4:
ldr w8, [x8]
sdiv w9, w20, w8
msub w8, w9, w8, w20
cmp w8, #0
cset w1, eq
Lloh5:
adrp x0, l_.str@PAGE
Lloh6:
add x0, x0, l_.str@PAGEOFF
bl _LWIP_ASSERT
Lloh7:
adrp x8, _MEMP_SIZE@GOTPAGE
Lloh8:
ldr x8, [x8, _MEMP_SIZE@GOTPAGEOFF]
Lloh9:
ldr x8, [x8]
sub x8, x20, x8
asr x20, x8, #2
ldr w0, [x21]
bl _SYS_ARCH_PROTECT
Lloh10:
adrp x8, _used@GOTPAGE
Lloh11:
ldr x8, [x8, _used@GOTPAGEOFF]
Lloh12:
ldr w0, [x8]
mov x1, x19
bl _MEMP_STATS_DEC
Lloh13:
adrp x8, _memp_tab@GOTPAGE
Lloh14:
ldr x8, [x8, _memp_tab@GOTPAGEOFF]
ldr x9, [x8]
lsl x10, x19, #3
ldr x9, [x9, x10]
str x9, [x20]
ldr x8, [x8]
str x20, [x8, x10]
ldr w0, [x21]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _SYS_ARCH_UNPROTECT
LBB0_2:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpAdd Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.cfi_endproc
; -- End function
.comm _old_level,4,2 ; @old_level
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "memp_free: mem properly aligned"
.comm _MEM_ALIGNMENT,4,2 ; @MEM_ALIGNMENT
.comm _MEMP_SIZE,8,3 ; @MEMP_SIZE
.comm _used,4,2 ; @used
.comm _memp_tab,8,3 ; @memp_tab
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_memp.c_memp_free.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _memp_init ## -- Begin function memp_init
.p2align 4, 0x90
_memp_init: ## @memp_init
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq _MEMP_MAX@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_3
## %bb.1:
xorl %ebx, %ebx
movq _max@GOTPCREL(%rip), %r12
movq _err@GOTPCREL(%rip), %r13
movq _avail@GOTPCREL(%rip), %r14
movq _memp_num@GOTPCREL(%rip), %r15
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq _used@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %rbx, %rsi
xorl %edx, %edx
callq _MEMP_STATS_AVAIL
movl (%r12), %edi
movq %rbx, %rsi
xorl %edx, %edx
callq _MEMP_STATS_AVAIL
movl (%r13), %edi
movq %rbx, %rsi
xorl %edx, %edx
callq _MEMP_STATS_AVAIL
movl (%r14), %edi
movq (%r15), %rax
movq (%rax,%rbx,8), %rdx
movq %rbx, %rsi
callq _MEMP_STATS_AVAIL
incq %rbx
movq _MEMP_MAX@GOTPCREL(%rip), %rax
cmpq (%rax), %rbx
jb LBB0_2
LBB0_3:
movq _memp_memory@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _LWIP_MEM_ALIGN
movq _MEMP_MAX@GOTPCREL(%rip), %rcx
movq (%rcx), %r8
testq %r8, %r8
je LBB0_9
## %bb.4:
movq _MEMP_SIZE@GOTPCREL(%rip), %rcx
movslq (%rcx), %rdx
xorl %esi, %esi
movq _memp_tab@GOTPCREL(%rip), %rdi
movq _memp_num@GOTPCREL(%rip), %r10
movq _memp_sizes@GOTPCREL(%rip), %r9
jmp LBB0_5
.p2align 4, 0x90
LBB0_8: ## in Loop: Header=BB0_5 Depth=1
incq %rsi
cmpq %r8, %rsi
je LBB0_9
LBB0_5: ## =>This Loop Header: Depth=1
## Child Loop BB0_7 Depth 2
movq (%rdi), %rcx
movq $0, (%rcx,%rsi,8)
movq (%r10), %rcx
cmpq $0, (%rcx,%rsi,8)
je LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
xorl %ecx, %ecx
.p2align 4, 0x90
LBB0_7: ## Parent Loop BB0_5 Depth=1
## => This Inner Loop Header: Depth=2
movq (%rdi), %rbx
movq (%rbx,%rsi,8), %rbx
movq %rbx, (%rax)
movq (%rdi), %rbx
movq %rax, (%rbx,%rsi,8)
leaq (%rax,%rdx,4), %rax
movq (%r9), %rbx
movslq (%rbx,%rsi,4), %rbx
leaq (%rax,%rbx,4), %rax
incq %rcx
movq (%r10), %rbx
cmpq (%rbx,%rsi,8), %rcx
jb LBB0_7
jmp LBB0_8
LBB0_9:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _MEMP_MAX,8,3 ## @MEMP_MAX
.comm _used,4,2 ## @used
.comm _max,4,2 ## @max
.comm _err,4,2 ## @err
.comm _avail,4,2 ## @avail
.comm _memp_num,8,3 ## @memp_num
.comm _memp_memory,4,2 ## @memp_memory
.comm _memp_tab,8,3 ## @memp_tab
.comm _MEMP_SIZE,4,2 ## @MEMP_SIZE
.comm _memp_sizes,8,3 ## @memp_sizes
.comm _MEMP_SANITY_REGION_AFTER_ALIGNED,4,2 ## @MEMP_SANITY_REGION_AFTER_ALIGNED
.comm _memp_bases,8,3 ## @memp_bases
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _memp_init ; -- Begin function memp_init
.p2align 2
_memp_init: ; @memp_init
.cfi_startproc
; %bb.0:
stp x26, x25, [sp, #-80]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 80
stp x24, x23, [sp, #16] ; 16-byte Folded Spill
stp x22, x21, [sp, #32] ; 16-byte Folded Spill
stp x20, x19, [sp, #48] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
Lloh0:
adrp x21, _MEMP_MAX@GOTPAGE
Lloh1:
ldr x21, [x21, _MEMP_MAX@GOTPAGEOFF]
ldr x8, [x21]
Lloh2:
adrp x20, _memp_num@GOTPAGE
Lloh3:
ldr x20, [x20, _memp_num@GOTPAGEOFF]
cbz x8, LBB0_3
; %bb.1:
mov x19, #0
Lloh4:
adrp x22, _used@GOTPAGE
Lloh5:
ldr x22, [x22, _used@GOTPAGEOFF]
Lloh6:
adrp x23, _max@GOTPAGE
Lloh7:
ldr x23, [x23, _max@GOTPAGEOFF]
Lloh8:
adrp x24, _err@GOTPAGE
Lloh9:
ldr x24, [x24, _err@GOTPAGEOFF]
Lloh10:
adrp x25, _avail@GOTPAGE
Lloh11:
ldr x25, [x25, _avail@GOTPAGEOFF]
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldr w0, [x22]
mov x1, x19
mov x2, #0
bl _MEMP_STATS_AVAIL
ldr w0, [x23]
mov x1, x19
mov x2, #0
bl _MEMP_STATS_AVAIL
ldr w0, [x24]
mov x1, x19
mov x2, #0
bl _MEMP_STATS_AVAIL
ldr w0, [x25]
ldr x8, [x20]
ldr x2, [x8, x19, lsl #3]
mov x1, x19
bl _MEMP_STATS_AVAIL
add x19, x19, #1
ldr x8, [x21]
cmp x19, x8
b.lo LBB0_2
LBB0_3:
Lloh12:
adrp x8, _memp_memory@GOTPAGE
Lloh13:
ldr x8, [x8, _memp_memory@GOTPAGEOFF]
Lloh14:
ldr w0, [x8]
bl _LWIP_MEM_ALIGN
ldr x8, [x21]
cbz x8, LBB0_9
; %bb.4:
mov x9, #0
Lloh15:
adrp x10, _MEMP_SIZE@GOTPAGE
Lloh16:
ldr x10, [x10, _MEMP_SIZE@GOTPAGEOFF]
Lloh17:
ldrsw x10, [x10]
Lloh18:
adrp x11, _memp_tab@GOTPAGE
Lloh19:
ldr x11, [x11, _memp_tab@GOTPAGEOFF]
Lloh20:
adrp x12, _memp_sizes@GOTPAGE
Lloh21:
ldr x12, [x12, _memp_sizes@GOTPAGEOFF]
b LBB0_6
LBB0_5: ; in Loop: Header=BB0_6 Depth=1
add x9, x9, #1
cmp x9, x8
b.eq LBB0_9
LBB0_6: ; =>This Loop Header: Depth=1
; Child Loop BB0_8 Depth 2
ldr x14, [x11]
lsl x13, x9, #3
str xzr, [x14, x13]
ldr x14, [x20]
ldr x14, [x14, x13]
cbz x14, LBB0_5
; %bb.7: ; in Loop: Header=BB0_6 Depth=1
mov x14, #0
LBB0_8: ; Parent Loop BB0_6 Depth=1
; => This Inner Loop Header: Depth=2
ldr x15, [x11]
ldr x15, [x15, x13]
str x15, [x0]
ldr x15, [x11]
str x0, [x15, x13]
add x15, x0, x10, lsl #2
ldr x16, [x12]
ldrsw x16, [x16, x9, lsl #2]
add x0, x15, x16, lsl #2
add x14, x14, #1
ldr x15, [x20]
ldr x15, [x15, x13]
cmp x14, x15
b.lo LBB0_8
b LBB0_5
LBB0_9:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
ldp x22, x21, [sp, #32] ; 16-byte Folded Reload
ldp x24, x23, [sp, #16] ; 16-byte Folded Reload
ldp x26, x25, [sp], #80 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh10, Lloh11
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.loh AdrpLdrGot Lloh20, Lloh21
.loh AdrpLdrGot Lloh18, Lloh19
.loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17
.cfi_endproc
; -- End function
.comm _MEMP_MAX,8,3 ; @MEMP_MAX
.comm _used,4,2 ; @used
.comm _max,4,2 ; @max
.comm _err,4,2 ; @err
.comm _avail,4,2 ; @avail
.comm _memp_num,8,3 ; @memp_num
.comm _memp_memory,4,2 ; @memp_memory
.comm _memp_tab,8,3 ; @memp_tab
.comm _MEMP_SIZE,4,2 ; @MEMP_SIZE
.comm _memp_sizes,8,3 ; @memp_sizes
.comm _MEMP_SANITY_REGION_AFTER_ALIGNED,4,2 ; @MEMP_SANITY_REGION_AFTER_ALIGNED
.comm _memp_bases,8,3 ; @memp_bases
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_memp.c_memp_init.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_add ## -- Begin function netif_add
.p2align 4, 0x90
_netif_add: ## @netif_add
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $24, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %r9, %r13
movq %r8, -48(%rbp) ## 8-byte Spill
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
testq %r9, %r9
setne %sil
leaq L_.str(%rip), %rdi
callq _LWIP_ASSERT
leaq 136(%rbx), %rdi
callq _ip_addr_set_zero
leaq 132(%rbx), %rdi
callq _ip_addr_set_zero
leaq 128(%rbx), %rdi
callq _ip_addr_set_zero
movl $0, (%rbx)
movq -48(%rbp), %rax ## 8-byte Reload
movq %rax, 56(%rbx)
movq _netif_add.netifnum(%rip), %rax
leaq 1(%rax), %rcx
movq %rcx, _netif_add.netifnum(%rip)
movq %rax, 48(%rbx)
movl 16(%rbp), %eax
movl %eax, 40(%rbx)
movq %rbx, %rdi
movq %r14, -56(%rbp) ## 8-byte Spill
movq %r14, %rsi
movq %r12, -64(%rbp) ## 8-byte Spill
movq %r12, %rdx
movq %r15, -48(%rbp) ## 8-byte Spill
movq %r15, %rcx
callq _netif_set_addr
movq %rbx, %rdi
callq *%r13
movq _ERR_OK@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_1
## %bb.2:
movq _netif_list@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movq %rcx, 16(%rbx)
movq %rbx, (%rax)
xorl %eax, %eax
callq _snmp_inc_iflist
movq _NETIF_DEBUG@GOTPCREL(%rip), %r14
movl (%r14), %edi
movq 8(%rbx), %rax
movslq 4(%rax), %rsi
callq _LWIP_DEBUGF
movl (%r14), %edi
movq -56(%rbp), %rsi ## 8-byte Reload
callq _ip_addr_debug_print
movl (%r14), %edi
leaq L_.str.2(%rip), %rsi
callq _LWIP_DEBUGF
movl (%r14), %edi
movq -64(%rbp), %rsi ## 8-byte Reload
callq _ip_addr_debug_print
movl (%r14), %edi
leaq L_.str.3(%rip), %rsi
callq _LWIP_DEBUGF
movl (%r14), %edi
movq -48(%rbp), %rsi ## 8-byte Reload
callq _ip_addr_debug_print
movl (%r14), %edi
leaq L_.str.4(%rip), %rsi
callq _LWIP_DEBUGF
jmp LBB0_3
LBB0_1:
xorl %ebx, %ebx
LBB0_3:
movq %rbx, %rax
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_netif_add.netifnum,8,3 ## @netif_add.netifnum
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "No init function given"
.comm _ERR_OK,8,3 ## @ERR_OK
.comm _netif_list,8,3 ## @netif_list
.comm _NETIF_DEBUG,4,2 ## @NETIF_DEBUG
L_.str.2: ## @.str.2
.asciz " netmask "
L_.str.3: ## @.str.3
.asciz " gw "
L_.str.4: ## @.str.4
.asciz "\n"
.comm _NETIF_FLAG_IGMP,4,2 ## @NETIF_FLAG_IGMP
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_add ; -- Begin function netif_add
.p2align 2
_netif_add: ; @netif_add
.cfi_startproc
; %bb.0:
stp x26, x25, [sp, #-80]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 80
stp x24, x23, [sp, #16] ; 16-byte Folded Spill
stp x22, x21, [sp, #32] ; 16-byte Folded Spill
stp x20, x19, [sp, #48] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
mov x23, x6
mov x24, x5
mov x25, x4
mov x20, x3
mov x21, x2
mov x22, x1
mov x19, x0
cmp x5, #0
cset w1, ne
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _LWIP_ASSERT
add x0, x19, #136
bl _ip_addr_set_zero
add x0, x19, #132
bl _ip_addr_set_zero
add x0, x19, #128
bl _ip_addr_set_zero
str wzr, [x19]
adrp x8, _netif_add.netifnum@PAGE
ldr x9, [x8, _netif_add.netifnum@PAGEOFF]
add x10, x9, #1
str x10, [x8, _netif_add.netifnum@PAGEOFF]
stp x9, x25, [x19, #48]
str w23, [x19, #40]
mov x0, x19
mov x1, x22
mov x2, x21
mov x3, x20
bl _netif_set_addr
mov x0, x19
blr x24
Lloh2:
adrp x8, _ERR_OK@GOTPAGE
Lloh3:
ldr x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh4:
ldr x8, [x8]
cmp x0, x8
b.ne LBB0_2
; %bb.1:
Lloh5:
adrp x8, _netif_list@GOTPAGE
Lloh6:
ldr x8, [x8, _netif_list@GOTPAGEOFF]
ldr x9, [x8]
str x9, [x19, #16]
str x19, [x8]
bl _snmp_inc_iflist
Lloh7:
adrp x23, _NETIF_DEBUG@GOTPAGE
Lloh8:
ldr x23, [x23, _NETIF_DEBUG@GOTPAGEOFF]
ldr w0, [x23]
ldr x8, [x19, #8]
ldrsw x1, [x8, #4]
bl _LWIP_DEBUGF
ldr w0, [x23]
mov x1, x22
bl _ip_addr_debug_print
ldr w0, [x23]
Lloh9:
adrp x1, l_.str.2@PAGE
Lloh10:
add x1, x1, l_.str.2@PAGEOFF
bl _LWIP_DEBUGF
ldr w0, [x23]
mov x1, x21
bl _ip_addr_debug_print
ldr w0, [x23]
Lloh11:
adrp x1, l_.str.3@PAGE
Lloh12:
add x1, x1, l_.str.3@PAGEOFF
bl _LWIP_DEBUGF
ldr w0, [x23]
mov x1, x20
bl _ip_addr_debug_print
ldr w0, [x23]
Lloh13:
adrp x1, l_.str.4@PAGE
Lloh14:
add x1, x1, l_.str.4@PAGEOFF
bl _LWIP_DEBUGF
b LBB0_3
LBB0_2:
mov x19, #0
LBB0_3:
mov x0, x19
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
ldp x22, x21, [sp, #32] ; 16-byte Folded Reload
ldp x24, x23, [sp, #16] ; 16-byte Folded Reload
ldp x26, x25, [sp], #80 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh13, Lloh14
.loh AdrpAdd Lloh11, Lloh12
.loh AdrpAdd Lloh9, Lloh10
.loh AdrpLdrGot Lloh7, Lloh8
.loh AdrpLdrGot Lloh5, Lloh6
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_netif_add.netifnum,8,3 ; @netif_add.netifnum
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "No init function given"
.comm _ERR_OK,8,3 ; @ERR_OK
.comm _netif_list,8,3 ; @netif_list
.comm _NETIF_DEBUG,4,2 ; @NETIF_DEBUG
l_.str.2: ; @.str.2
.asciz " netmask "
l_.str.3: ; @.str.3
.asciz " gw "
l_.str.4: ; @.str.4
.asciz "\n"
.comm _NETIF_FLAG_IGMP,4,2 ; @NETIF_FLAG_IGMP
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_netif.c_netif_add.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_find ## -- Begin function netif_find
.p2align 4, 0x90
_netif_find: ## @netif_find
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
testq %rdi, %rdi
je LBB0_1
## %bb.2:
movq _netif_list@GOTPCREL(%rip), %rax
movq (%rax), %rbx
testq %rbx, %rbx
je LBB0_8
## %bb.3:
movb 2(%rdi), %al
addb $-48, %al
jmp LBB0_4
.p2align 4, 0x90
LBB0_7: ## in Loop: Header=BB0_4 Depth=1
movq 16(%rbx), %rbx
testq %rbx, %rbx
je LBB0_8
LBB0_4: ## =>This Inner Loop Header: Depth=1
cmpb (%rbx), %al
jne LBB0_7
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movzbl (%rdi), %ecx
movq 8(%rbx), %rdx
cmpb (%rdx), %cl
jne LBB0_7
## %bb.6: ## in Loop: Header=BB0_4 Depth=1
movzbl 1(%rdi), %ecx
cmpb 1(%rdx), %cl
jne LBB0_7
jmp LBB0_9
LBB0_8:
movb 1(%rdi), %cl
xorl %ebx, %ebx
LBB0_9:
movq _NETIF_DEBUG@GOTPCREL(%rip), %rax
movl (%rax), %edi
movsbq %cl, %rsi
callq _LWIP_DEBUGF
jmp LBB0_10
LBB0_1:
xorl %ebx, %ebx
LBB0_10:
movq %rbx, %rax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _netif_list,8,3 ## @netif_list
.comm _NETIF_DEBUG,4,2 ## @NETIF_DEBUG
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_find ; -- Begin function netif_find
.p2align 2
_netif_find: ; @netif_find
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
cbz x0, LBB0_9
; %bb.1:
Lloh0:
adrp x8, _netif_list@GOTPAGE
Lloh1:
ldr x8, [x8, _netif_list@GOTPAGEOFF]
Lloh2:
ldr x19, [x8]
cbz x19, LBB0_7
; %bb.2:
ldrb w8, [x0, #2]
sub w8, w8, #48
b LBB0_4
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
ldr x19, [x19, #16]
cbz x19, LBB0_7
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldrb w9, [x19]
cmp w9, w8, uxtb
b.ne LBB0_3
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
ldrb w9, [x0]
ldr x10, [x19, #8]
ldrb w11, [x10]
cmp w9, w11
b.ne LBB0_3
; %bb.6: ; in Loop: Header=BB0_4 Depth=1
ldrb w9, [x0, #1]
ldrb w10, [x10, #1]
cmp w9, w10
b.ne LBB0_3
b LBB0_8
LBB0_7:
mov x19, #0
ldrb w9, [x0, #1]
LBB0_8:
Lloh3:
adrp x8, _NETIF_DEBUG@GOTPAGE
Lloh4:
ldr x8, [x8, _NETIF_DEBUG@GOTPAGEOFF]
Lloh5:
ldr w0, [x8]
sxtb x1, w9
bl _LWIP_DEBUGF
b LBB0_10
LBB0_9:
mov x19, #0
LBB0_10:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.cfi_endproc
; -- End function
.comm _netif_list,8,3 ; @netif_list
.comm _NETIF_DEBUG,4,2 ; @NETIF_DEBUG
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_netif.c_netif_find.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_init ## -- Begin function netif_init
.p2align 4, 0x90
_netif_init: ## @netif_init
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ip_input,4,2 ## @ip_input
.comm _loop_netif,4,2 ## @loop_netif
.comm _netif_loopif_init,4,2 ## @netif_loopif_init
.comm _tcpip_input,4,2 ## @tcpip_input
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_init ; -- Begin function netif_init
.p2align 2
_netif_init: ; @netif_init
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.comm _ip_input,4,2 ; @ip_input
.comm _loop_netif,4,2 ; @loop_netif
.comm _netif_loopif_init,4,2 ; @netif_loopif_init
.comm _tcpip_input,4,2 ; @tcpip_input
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_netif.c_netif_init.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_remove ## -- Begin function netif_remove
.p2align 4, 0x90
_netif_remove: ## @netif_remove
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
testq %rdi, %rdi
je LBB0_10
## %bb.1:
movq %rdi, %rbx
callq _netif_is_up
testq %rax, %rax
je LBB0_3
## %bb.2:
movq %rbx, %rdi
callq _netif_set_down
LBB0_3:
movq %rbx, %rdi
callq _snmp_delete_ipaddridx_tree
movq _netif_list@GOTPCREL(%rip), %rax
movq (%rax), %rcx
cmpq %rbx, %rcx
je LBB0_7
.p2align 4, 0x90
LBB0_4: ## =>This Inner Loop Header: Depth=1
testq %rcx, %rcx
je LBB0_10
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movq %rcx, %rax
movq 8(%rcx), %rcx
cmpq %rbx, %rcx
jne LBB0_4
## %bb.6:
addq $8, %rax
LBB0_7:
movq 8(%rbx), %rcx
movq %rcx, (%rax)
xorl %eax, %eax
callq _snmp_dec_iflist
movq _netif_default@GOTPCREL(%rip), %rax
cmpq %rbx, (%rax)
jne LBB0_9
## %bb.8:
xorl %edi, %edi
callq _netif_set_default
LBB0_9:
movq _NETIF_DEBUG@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str(%rip), %rsi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _LWIP_DEBUGF ## TAILCALL
LBB0_10:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _netif_list,8,3 ## @netif_list
.comm _netif_default,8,3 ## @netif_default
.comm _NETIF_DEBUG,4,2 ## @NETIF_DEBUG
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "netif_remove: removed netif\n"
.comm _NETIF_FLAG_IGMP,4,2 ## @NETIF_FLAG_IGMP
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_remove ; -- Begin function netif_remove
.p2align 2
_netif_remove: ; @netif_remove
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
cbz x0, LBB0_10
; %bb.1:
mov x19, x0
bl _netif_is_up
cbz x0, LBB0_3
; %bb.2:
mov x0, x19
bl _netif_set_down
LBB0_3:
mov x0, x19
bl _snmp_delete_ipaddridx_tree
Lloh0:
adrp x8, _netif_list@GOTPAGE
Lloh1:
ldr x8, [x8, _netif_list@GOTPAGEOFF]
ldr x9, [x8]
cmp x9, x19
b.eq LBB0_7
LBB0_4: ; =>This Inner Loop Header: Depth=1
cbz x9, LBB0_10
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
mov x8, x9
ldr x9, [x9, #8]
cmp x9, x19
b.ne LBB0_4
; %bb.6:
add x8, x8, #8
LBB0_7:
ldr x9, [x19, #8]
str x9, [x8]
bl _snmp_dec_iflist
Lloh2:
adrp x8, _netif_default@GOTPAGE
Lloh3:
ldr x8, [x8, _netif_default@GOTPAGEOFF]
Lloh4:
ldr x8, [x8]
cmp x8, x19
b.ne LBB0_9
; %bb.8:
mov x0, #0
bl _netif_set_default
LBB0_9:
Lloh5:
adrp x8, _NETIF_DEBUG@GOTPAGE
Lloh6:
ldr x8, [x8, _NETIF_DEBUG@GOTPAGEOFF]
Lloh7:
ldr w0, [x8]
Lloh8:
adrp x1, l_.str@PAGE
Lloh9:
add x1, x1, l_.str@PAGEOFF
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _LWIP_DEBUGF
LBB0_10:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _netif_list,8,3 ; @netif_list
.comm _netif_default,8,3 ; @netif_default
.comm _NETIF_DEBUG,4,2 ; @NETIF_DEBUG
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "netif_remove: removed netif\n"
.comm _NETIF_FLAG_IGMP,4,2 ; @NETIF_FLAG_IGMP
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_netif.c_netif_remove.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_set_addr ## -- Begin function netif_set_addr
.p2align 4, 0x90
_netif_set_addr: ## @netif_set_addr
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rcx, %r14
movq %rdx, %r15
movq %rdi, %rbx
callq _netif_set_ipaddr
movq %rbx, %rdi
movq %r15, %rsi
callq _netif_set_netmask
movq %rbx, %rdi
movq %r14, %rsi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _netif_set_gw ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_set_addr ; -- Begin function netif_set_addr
.p2align 2
_netif_set_addr: ; @netif_set_addr
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x3
mov x20, x2
mov x21, x0
bl _netif_set_ipaddr
mov x0, x21
mov x1, x20
bl _netif_set_netmask
mov x0, x21
mov x1, x19
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _netif_set_gw
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_netif.c_netif_set_addr.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_set_default ## -- Begin function netif_set_default
.p2align 4, 0x90
_netif_set_default: ## @netif_set_default
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
testq %rdi, %rdi
je LBB0_1
## %bb.2:
movq %rdi, %rbx
movl $1, %edi
movq %rbx, %rsi
callq _snmp_insert_iprteidx_tree
movq _netif_default@GOTPCREL(%rip), %rax
movq %rbx, (%rax)
movq (%rbx), %rax
movsbq 1(%rax), %rsi
jmp LBB0_3
LBB0_1:
movl $1, %edi
xorl %esi, %esi
callq _snmp_delete_iprteidx_tree
movq _netif_default@GOTPCREL(%rip), %rax
movq $0, (%rax)
movl $39, %esi
LBB0_3:
movq _NETIF_DEBUG@GOTPCREL(%rip), %rax
movl (%rax), %edi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _LWIP_DEBUGF ## TAILCALL
.cfi_endproc
## -- End function
.comm _netif_default,8,3 ## @netif_default
.comm _NETIF_DEBUG,4,2 ## @NETIF_DEBUG
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_set_default ; -- Begin function netif_set_default
.p2align 2
_netif_set_default: ; @netif_set_default
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
cbz x0, LBB0_2
; %bb.1:
mov x19, x0
mov w0, #1
mov x1, x19
bl _snmp_insert_iprteidx_tree
Lloh0:
adrp x8, _netif_default@GOTPAGE
Lloh1:
ldr x8, [x8, _netif_default@GOTPAGEOFF]
Lloh2:
str x19, [x8]
ldr x8, [x19]
ldrsb x1, [x8, #1]
b LBB0_3
LBB0_2:
mov w0, #1
mov x1, #0
bl _snmp_delete_iprteidx_tree
Lloh3:
adrp x8, _netif_default@GOTPAGE
Lloh4:
ldr x8, [x8, _netif_default@GOTPAGEOFF]
Lloh5:
str xzr, [x8]
mov w1, #39
LBB0_3:
Lloh6:
adrp x8, _NETIF_DEBUG@GOTPAGE
Lloh7:
ldr x8, [x8, _NETIF_DEBUG@GOTPAGEOFF]
Lloh8:
ldr w0, [x8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _LWIP_DEBUGF
.loh AdrpLdrGotStr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotStr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.cfi_endproc
; -- End function
.comm _netif_default,8,3 ; @netif_default
.comm _NETIF_DEBUG,4,2 ; @NETIF_DEBUG
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_netif.c_netif_set_default.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_set_down ## -- Begin function netif_set_down
.p2align 4, 0x90
_netif_set_down: ## @netif_set_down
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
testq %rdi, %rdi
je LBB0_2
## %bb.1:
movl (%rdi), %eax
movq _NETIF_FLAG_UP@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
testl %eax, %ecx
je LBB0_2
## %bb.3:
notl %ecx
andl %ecx, %eax
movl %eax, (%rdi)
popq %rbp
jmp _NETIF_STATUS_CALLBACK ## TAILCALL
LBB0_2:
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _NETIF_FLAG_UP,4,2 ## @NETIF_FLAG_UP
.comm _NETIF_FLAG_ETHARP,4,2 ## @NETIF_FLAG_ETHARP
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_set_down ; -- Begin function netif_set_down
.p2align 2
_netif_set_down: ; @netif_set_down
.cfi_startproc
; %bb.0:
cbz x0, LBB0_3
; %bb.1:
ldr w8, [x0]
Lloh0:
adrp x9, _NETIF_FLAG_UP@GOTPAGE
Lloh1:
ldr x9, [x9, _NETIF_FLAG_UP@GOTPAGEOFF]
Lloh2:
ldr w9, [x9]
tst w9, w8
b.eq LBB0_3
; %bb.2:
bic w8, w8, w9
str w8, [x0]
b _NETIF_STATUS_CALLBACK
LBB0_3:
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _NETIF_FLAG_UP,4,2 ; @NETIF_FLAG_UP
.comm _NETIF_FLAG_ETHARP,4,2 ; @NETIF_FLAG_ETHARP
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_netif.c_netif_set_down.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_set_link_down ## -- Begin function netif_set_link_down
.p2align 4, 0x90
_netif_set_link_down: ## @netif_set_link_down
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl (%rdi), %eax
movq _NETIF_FLAG_LINK_UP@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
testl %eax, %ecx
je LBB0_1
## %bb.2:
notl %ecx
andl %ecx, %eax
movl %eax, (%rdi)
popq %rbp
jmp _NETIF_LINK_CALLBACK ## TAILCALL
LBB0_1:
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _NETIF_FLAG_LINK_UP,4,2 ## @NETIF_FLAG_LINK_UP
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_set_link_down ; -- Begin function netif_set_link_down
.p2align 2
_netif_set_link_down: ; @netif_set_link_down
.cfi_startproc
; %bb.0:
ldr w8, [x0]
Lloh0:
adrp x9, _NETIF_FLAG_LINK_UP@GOTPAGE
Lloh1:
ldr x9, [x9, _NETIF_FLAG_LINK_UP@GOTPAGEOFF]
Lloh2:
ldr w9, [x9]
tst w9, w8
b.eq LBB0_2
; %bb.1:
bic w8, w8, w9
str w8, [x0]
b _NETIF_LINK_CALLBACK
LBB0_2:
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _NETIF_FLAG_LINK_UP,4,2 ; @NETIF_FLAG_LINK_UP
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_netif.c_netif_set_link_down.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_set_link_up ## -- Begin function netif_set_link_up
.p2align 4, 0x90
_netif_set_link_up: ## @netif_set_link_up
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl (%rdi), %eax
movq _NETIF_FLAG_LINK_UP@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
testl %eax, %ecx
je LBB0_2
## %bb.1:
popq %rbp
retq
LBB0_2:
orl %eax, %ecx
movl %ecx, (%rdi)
popq %rbp
jmp _NETIF_LINK_CALLBACK ## TAILCALL
.cfi_endproc
## -- End function
.comm _NETIF_FLAG_LINK_UP,4,2 ## @NETIF_FLAG_LINK_UP
.comm _NETIF_FLAG_UP,4,2 ## @NETIF_FLAG_UP
.comm _NETIF_FLAG_ETHARP,4,2 ## @NETIF_FLAG_ETHARP
.comm _NETIF_FLAG_IGMP,4,2 ## @NETIF_FLAG_IGMP
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_set_link_up ; -- Begin function netif_set_link_up
.p2align 2
_netif_set_link_up: ; @netif_set_link_up
.cfi_startproc
; %bb.0:
ldr w8, [x0]
Lloh0:
adrp x9, _NETIF_FLAG_LINK_UP@GOTPAGE
Lloh1:
ldr x9, [x9, _NETIF_FLAG_LINK_UP@GOTPAGEOFF]
Lloh2:
ldr w9, [x9]
tst w9, w8
b.eq LBB0_2
; %bb.1:
ret
LBB0_2:
orr w8, w9, w8
str w8, [x0]
b _NETIF_LINK_CALLBACK
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _NETIF_FLAG_LINK_UP,4,2 ; @NETIF_FLAG_LINK_UP
.comm _NETIF_FLAG_UP,4,2 ; @NETIF_FLAG_UP
.comm _NETIF_FLAG_ETHARP,4,2 ; @NETIF_FLAG_ETHARP
.comm _NETIF_FLAG_IGMP,4,2 ; @NETIF_FLAG_IGMP
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_netif.c_netif_set_link_up.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_set_up ## -- Begin function netif_set_up
.p2align 4, 0x90
_netif_set_up: ## @netif_set_up
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl (%rdi), %eax
movq _NETIF_FLAG_UP@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
testl %eax, %ecx
je LBB0_2
## %bb.1:
popq %rbp
retq
LBB0_2:
orl %eax, %ecx
movl %ecx, (%rdi)
popq %rbp
jmp _NETIF_STATUS_CALLBACK ## TAILCALL
.cfi_endproc
## -- End function
.comm _NETIF_FLAG_UP,4,2 ## @NETIF_FLAG_UP
.comm _NETIF_FLAG_LINK_UP,4,2 ## @NETIF_FLAG_LINK_UP
.comm _NETIF_FLAG_ETHARP,4,2 ## @NETIF_FLAG_ETHARP
.comm _NETIF_FLAG_IGMP,4,2 ## @NETIF_FLAG_IGMP
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netif_set_up ; -- Begin function netif_set_up
.p2align 2
_netif_set_up: ; @netif_set_up
.cfi_startproc
; %bb.0:
ldr w8, [x0]
Lloh0:
adrp x9, _NETIF_FLAG_UP@GOTPAGE
Lloh1:
ldr x9, [x9, _NETIF_FLAG_UP@GOTPAGEOFF]
Lloh2:
ldr w9, [x9]
tst w9, w8
b.eq LBB0_2
; %bb.1:
ret
LBB0_2:
orr w8, w9, w8
str w8, [x0]
b _NETIF_STATUS_CALLBACK
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _NETIF_FLAG_UP,4,2 ; @NETIF_FLAG_UP
.comm _NETIF_FLAG_LINK_UP,4,2 ; @NETIF_FLAG_LINK_UP
.comm _NETIF_FLAG_ETHARP,4,2 ; @NETIF_FLAG_ETHARP
.comm _NETIF_FLAG_IGMP,4,2 ; @NETIF_FLAG_IGMP
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_netif.c_netif_set_up.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_chain ## -- Begin function pbuf_chain
.p2align 4, 0x90
_pbuf_chain: ## @pbuf_chain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
movq %rsi, %rbx
callq _pbuf_cat
movq %rbx, %rdi
callq _pbuf_ref
movq _PBUF_DEBUG@GOTPCREL(%rip), %rax
movq _LWIP_DBG_TRACE@GOTPCREL(%rip), %rcx
movl (%rcx), %edi
orl (%rax), %edi
movq %rbx, %rsi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _LWIP_DEBUGF ## TAILCALL
.cfi_endproc
## -- End function
.comm _PBUF_DEBUG,4,2 ## @PBUF_DEBUG
.comm _LWIP_DBG_TRACE,4,2 ## @LWIP_DBG_TRACE
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_chain ; -- Begin function pbuf_chain
.p2align 2
_pbuf_chain: ; @pbuf_chain
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x1
bl _pbuf_cat
mov x0, x19
bl _pbuf_ref
Lloh0:
adrp x8, _PBUF_DEBUG@GOTPAGE
Lloh1:
ldr x8, [x8, _PBUF_DEBUG@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
Lloh3:
adrp x9, _LWIP_DBG_TRACE@GOTPAGE
Lloh4:
ldr x9, [x9, _LWIP_DBG_TRACE@GOTPAGEOFF]
Lloh5:
ldr w9, [x9]
orr w0, w9, w8
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _LWIP_DEBUGF
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _PBUF_DEBUG,4,2 ; @PBUF_DEBUG
.comm _LWIP_DBG_TRACE,4,2 ; @LWIP_DBG_TRACE
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_pbuf.c_pbuf_chain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_clen ## -- Begin function pbuf_clen
.p2align 4, 0x90
_pbuf_clen: ## @pbuf_clen
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %eax, %eax
testq %rdi, %rdi
je LBB0_3
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
incq %rax
movq (%rdi), %rdi
testq %rdi, %rdi
jne LBB0_1
LBB0_3:
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_clen ; -- Begin function pbuf_clen
.p2align 2
_pbuf_clen: ; @pbuf_clen
.cfi_startproc
; %bb.0:
mov x8, #0
cbz x0, LBB0_2
LBB0_1: ; =>This Inner Loop Header: Depth=1
add x8, x8, #1
ldr x0, [x0]
cbnz x0, LBB0_1
LBB0_2:
mov x0, x8
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_pbuf.c_pbuf_clen.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_coalesce ## -- Begin function pbuf_coalesce
.p2align 4, 0x90
_pbuf_coalesce: ## @pbuf_coalesce
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %rbx
cmpq $0, 8(%rdi)
je LBB0_3
## %bb.1:
movl (%rbx), %eax
movq _PBUF_RAM@GOTPCREL(%rip), %rcx
movl (%rcx), %edx
movl %esi, %edi
movl %eax, %esi
callq _pbuf_alloc
testq %rax, %rax
je LBB0_3
## %bb.2:
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq _pbuf_copy
movq _ERR_OK@GOTPCREL(%rip), %rcx
xorl %esi, %esi
cmpq (%rcx), %rax
sete %sil
leaq L_.str(%rip), %rdi
callq _LWIP_ASSERT
movq %rbx, %rdi
callq _pbuf_free
movq %r14, %rbx
LBB0_3:
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _PBUF_RAM,4,2 ## @PBUF_RAM
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "pbuf_copy failed"
.comm _ERR_OK,8,3 ## @ERR_OK
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_coalesce ; -- Begin function pbuf_coalesce
.p2align 2
_pbuf_coalesce: ; @pbuf_coalesce
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
ldr x8, [x0, #8]
cbz x8, LBB0_3
; %bb.1:
ldr w8, [x19]
Lloh0:
adrp x9, _PBUF_RAM@GOTPAGE
Lloh1:
ldr x9, [x9, _PBUF_RAM@GOTPAGEOFF]
Lloh2:
ldr w2, [x9]
mov x0, x1
mov x1, x8
bl _pbuf_alloc
cbz x0, LBB0_3
; %bb.2:
mov x20, x0
mov x1, x19
bl _pbuf_copy
Lloh3:
adrp x8, _ERR_OK@GOTPAGE
Lloh4:
ldr x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh5:
ldr x8, [x8]
cmp x0, x8
cset w1, eq
Lloh6:
adrp x0, l_.str@PAGE
Lloh7:
add x0, x0, l_.str@PAGEOFF
bl _LWIP_ASSERT
mov x0, x19
bl _pbuf_free
mov x19, x20
LBB0_3:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.cfi_endproc
; -- End function
.comm _PBUF_RAM,4,2 ; @PBUF_RAM
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "pbuf_copy failed"
.comm _ERR_OK,8,3 ; @ERR_OK
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_pbuf.c_pbuf_coalesce.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_dechain ## -- Begin function pbuf_dechain
.p2align 4, 0x90
_pbuf_dechain: ## @pbuf_dechain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %rbx
movq 16(%rdi), %r14
testq %r14, %r14
je LBB0_1
## %bb.2:
movq (%rbx), %rax
subq 8(%rbx), %rax
xorl %esi, %esi
cmpq %rax, (%r14)
sete %sil
leaq L_.str(%rip), %rdi
callq _LWIP_ASSERT
movq (%rbx), %rax
movq 8(%rbx), %rcx
subq %rcx, %rax
movq %rax, (%r14)
movq $0, 16(%rbx)
movq %rcx, (%rbx)
movq _PBUF_DEBUG@GOTPCREL(%rip), %r12
movq _LWIP_DBG_TRACE@GOTPCREL(%rip), %r13
movl (%r13), %edi
orl (%r12), %edi
movq %r14, %rsi
callq _LWIP_DEBUGF
movq %r14, %rdi
callq _pbuf_free
movq %rax, %r15
testq %rax, %rax
jle LBB0_4
## %bb.3:
movl (%r13), %edi
orl (%r12), %edi
movq %r14, %rsi
callq _LWIP_DEBUGF
jmp LBB0_4
LBB0_1:
movl $1, %r15d
LBB0_4:
movq (%rbx), %rax
xorl %esi, %esi
cmpq 8(%rbx), %rax
sete %sil
leaq L_.str.3(%rip), %rdi
callq _LWIP_ASSERT
xorl %eax, %eax
testq %r15, %r15
cmovgq %rax, %r14
movq %r14, %rax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "p->tot_len == p->len + q->tot_len"
.comm _PBUF_DEBUG,4,2 ## @PBUF_DEBUG
.comm _LWIP_DBG_TRACE,4,2 ## @LWIP_DBG_TRACE
L_.str.3: ## @.str.3
.asciz "p->tot_len == p->len"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_dechain ; -- Begin function pbuf_dechain
.p2align 2
_pbuf_dechain: ; @pbuf_dechain
.cfi_startproc
; %bb.0:
stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 64
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
mov x20, x0
ldr x19, [x0, #16]
cbz x19, LBB0_3
; %bb.1:
ldr x8, [x19]
ldp x9, x10, [x20]
sub x9, x9, x10
cmp x8, x9
cset w1, eq
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _LWIP_ASSERT
ldp x8, x9, [x20]
sub x8, x8, x9
str x8, [x19]
str xzr, [x20, #16]
Lloh2:
adrp x22, _PBUF_DEBUG@GOTPAGE
Lloh3:
ldr x22, [x22, _PBUF_DEBUG@GOTPAGEOFF]
str x9, [x20]
ldr w8, [x22]
Lloh4:
adrp x23, _LWIP_DBG_TRACE@GOTPAGE
Lloh5:
ldr x23, [x23, _LWIP_DBG_TRACE@GOTPAGEOFF]
ldr w9, [x23]
orr w0, w9, w8
mov x1, x19
bl _LWIP_DEBUGF
mov x0, x19
bl _pbuf_free
mov x21, x0
cmp x0, #1
b.lt LBB0_4
; %bb.2:
ldr w8, [x22]
ldr w9, [x23]
orr w0, w9, w8
mov x1, x19
bl _LWIP_DEBUGF
b LBB0_4
LBB0_3:
mov w21, #1
LBB0_4:
ldp x8, x9, [x20]
cmp x8, x9
cset w1, eq
Lloh6:
adrp x0, l_.str.3@PAGE
Lloh7:
add x0, x0, l_.str.3@PAGEOFF
bl _LWIP_ASSERT
cmp x21, #0
csel x0, xzr, x19, gt
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh6, Lloh7
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "p->tot_len == p->len + q->tot_len"
.comm _PBUF_DEBUG,4,2 ; @PBUF_DEBUG
.comm _LWIP_DBG_TRACE,4,2 ; @LWIP_DBG_TRACE
l_.str.3: ; @.str.3
.asciz "p->tot_len == p->len"
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_pbuf.c_pbuf_dechain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_get_at ## -- Begin function pbuf_get_at
.p2align 4, 0x90
_pbuf_get_at: ## @pbuf_get_at
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %eax, %eax
testq %rdi, %rdi
je LBB0_5
## %bb.1:
movq %rsi, %rcx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
subq (%rdi), %rcx
jb LBB0_4
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movq 16(%rdi), %rdi
movq %rcx, %rsi
testq %rdi, %rdi
jne LBB0_2
LBB0_5:
popq %rbp
retq
LBB0_4:
movq 8(%rdi), %rax
movl (%rax,%rsi,4), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_get_at ; -- Begin function pbuf_get_at
.p2align 2
_pbuf_get_at: ; @pbuf_get_at
.cfi_startproc
; %bb.0:
cbz x0, LBB0_3
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [x0]
subs x8, x1, x8
b.lo LBB0_4
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [x0, #16]
mov x1, x8
cbnz x0, LBB0_1
LBB0_3:
ret
LBB0_4:
ldr x8, [x0, #8]
ldr w0, [x8, x1, lsl #2]
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_pbuf.c_pbuf_get_at.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_memcmp ## -- Begin function pbuf_memcmp
.p2align 4, 0x90
_pbuf_memcmp: ## @pbuf_memcmp
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl $65535, %eax ## imm = 0xFFFF
testq %rdi, %rdi
je LBB0_8
## %bb.1:
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
movq %rsi, %rcx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
subq (%rbx), %rcx
jl LBB0_3
## %bb.6: ## in Loop: Header=BB0_2 Depth=1
movq 8(%rbx), %rbx
movq %rcx, %r12
testq %rbx, %rbx
jne LBB0_2
jmp LBB0_8
LBB0_3:
xorl %eax, %eax
testq %r15, %r15
cmovleq %rax, %r15
xorl %r13d, %r13d
.p2align 4, 0x90
LBB0_4: ## =>This Inner Loop Header: Depth=1
cmpq %r13, %r15
je LBB0_5
## %bb.7: ## in Loop: Header=BB0_4 Depth=1
leaq (%r12,%r13), %rsi
movq %rbx, %rdi
callq _pbuf_get_at
movq %rax, %rcx
leaq 1(%r13), %rax
cmpq (%r14,%r13,8), %rcx
movq %rax, %r13
je LBB0_4
jmp LBB0_8
LBB0_5:
xorl %eax, %eax
LBB0_8:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_memcmp ; -- Begin function pbuf_memcmp
.p2align 2
_pbuf_memcmp: ; @pbuf_memcmp
.cfi_startproc
; %bb.0:
stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 64
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
cbz x0, LBB0_4
; %bb.1:
mov x20, x2
mov x22, x1
mov x21, x0
mov w19, #65535
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldr x8, [x21]
subs x8, x22, x8
b.lt LBB0_5
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
ldr x21, [x21, #8]
mov x22, x8
cbnz x21, LBB0_2
b LBB0_9
LBB0_4:
mov w19, #65535
b LBB0_9
LBB0_5:
mov x19, #0
cmp x3, #0
csel x23, x3, xzr, gt
LBB0_6: ; =>This Inner Loop Header: Depth=1
cmp x23, x19
b.eq LBB0_8
; %bb.7: ; in Loop: Header=BB0_6 Depth=1
add x1, x22, x19
mov x0, x21
bl _pbuf_get_at
ldr x8, [x20, x19, lsl #3]
add x19, x19, #1
cmp x0, x8
b.eq LBB0_6
b LBB0_9
LBB0_8:
mov x19, #0
LBB0_9:
mov x0, x19
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_pbuf.c_pbuf_memcmp.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_memfind ## -- Begin function pbuf_memfind
.p2align 4, 0x90
_pbuf_memfind: ## @pbuf_memfind
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq (%rdi), %r13
leaq (%rcx,%rdx), %rax
cmpq %rax, %r13
jge LBB0_2
LBB0_5:
movl $65535, %ebx ## imm = 0xFFFF
jmp LBB0_6
LBB0_2:
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
subq %rdx, %r13
.p2align 4, 0x90
LBB0_3: ## =>This Inner Loop Header: Depth=1
cmpq %r13, %rcx
jg LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq %rcx, %rbx
movq %r15, %rdi
movq %rcx, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq _pbuf_memcmp
leaq (%rax,%rbx), %rcx
testq %rax, %rax
jne LBB0_3
LBB0_6:
movq %rbx, %rax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_memfind ; -- Begin function pbuf_memfind
.p2align 2
_pbuf_memfind: ; @pbuf_memfind
.cfi_startproc
; %bb.0:
stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 64
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
ldr x8, [x0]
add x9, x3, x2
cmp x8, x9
b.ge LBB0_2
LBB0_1:
mov w22, #65535
b LBB0_5
LBB0_2:
mov x19, x2
mov x20, x1
mov x21, x0
sub x23, x8, x2
LBB0_3: ; =>This Inner Loop Header: Depth=1
cmp x3, x23
b.gt LBB0_1
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
mov x22, x3
mov x0, x21
mov x1, x3
mov x2, x20
mov x3, x19
bl _pbuf_memcmp
add x3, x0, x22
cbnz x0, LBB0_3
LBB0_5:
mov x0, x22
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_pbuf.c_pbuf_memfind.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_realloc ## -- Begin function pbuf_realloc
.p2align 4, 0x90
_pbuf_realloc: ## @pbuf_realloc
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
testq %rdi, %rdi
setne %sil
leaq L_.str(%rip), %rdi
callq _LWIP_ASSERT
movq (%rbx), %rax
movq _PBUF_POOL@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
sete %cl
movq _PBUF_ROM@GOTPCREL(%rip), %rdx
cmpq (%rdx), %rax
sete %dl
orb %cl, %dl
movq _PBUF_RAM@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
sete %cl
movq _PBUF_REF@GOTPCREL(%rip), %rsi
cmpq (%rsi), %rax
sete %al
orb %cl, %al
orb %dl, %al
movzbl %al, %esi
leaq L_.str.1(%rip), %rdi
callq _LWIP_ASSERT
movq 8(%rbx), %rcx
cmpq %r14, %rcx
jle LBB0_10
## %bb.1:
movq 16(%rbx), %rax
cmpq %r14, %rax
jge LBB0_4
## %bb.2:
movq %r14, %rdx
subq %rcx, %rdx
xorl %r15d, %r15d
cmpl $65535, %edx ## imm = 0xFFFF
setl %r15b
movslq %edx, %r12
leaq L_.str.3(%rip), %r13
.p2align 4, 0x90
LBB0_3: ## =>This Inner Loop Header: Depth=1
subq %rax, %r14
leaq L_.str.2(%rip), %rdi
movl %r15d, %esi
callq _LWIP_ASSERT
addq %r12, 8(%rbx)
movq 24(%rbx), %rbx
xorl %esi, %esi
testq %rbx, %rbx
setne %sil
movq %r13, %rdi
callq _LWIP_ASSERT
movq 16(%rbx), %rax
cmpq %rax, %r14
jg LBB0_3
LBB0_4:
movq (%rbx), %rcx
movq _PBUF_RAM@GOTPCREL(%rip), %rdx
cmpq (%rdx), %rcx
jne LBB0_7
## %bb.5:
cmpq %rax, %r14
je LBB0_7
## %bb.6:
movq 32(%rbx), %rsi
subq %rbx, %rsi
sarq $2, %rsi
addq %r14, %rsi
movq %rbx, %rdi
callq _mem_trim
movq %rax, %rbx
xorl %esi, %esi
testq %rax, %rax
setne %sil
leaq L_.str.4(%rip), %rdi
callq _LWIP_ASSERT
LBB0_7:
movq %r14, 16(%rbx)
movq %r14, 8(%rbx)
movq 24(%rbx), %rdi
testq %rdi, %rdi
je LBB0_9
## %bb.8:
callq _pbuf_free
LBB0_9:
movq $0, 24(%rbx)
LBB0_10:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "pbuf_realloc: p != NULL"
L_.str.1: ## @.str.1
.asciz "pbuf_realloc: sane p->type"
.comm _PBUF_POOL,8,3 ## @PBUF_POOL
.comm _PBUF_ROM,8,3 ## @PBUF_ROM
.comm _PBUF_RAM,8,3 ## @PBUF_RAM
.comm _PBUF_REF,8,3 ## @PBUF_REF
L_.str.2: ## @.str.2
.asciz "grow < max_u16_t"
L_.str.3: ## @.str.3
.asciz "pbuf_realloc: q != NULL"
L_.str.4: ## @.str.4
.asciz "mem_trim returned q == NULL"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_realloc ; -- Begin function pbuf_realloc
.p2align 2
_pbuf_realloc: ; @pbuf_realloc
.cfi_startproc
; %bb.0:
stp x26, x25, [sp, #-80]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 80
stp x24, x23, [sp, #16] ; 16-byte Folded Spill
stp x22, x21, [sp, #32] ; 16-byte Folded Spill
stp x20, x19, [sp, #48] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
mov x20, x1
mov x19, x0
cmp x0, #0
cset w1, ne
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _LWIP_ASSERT
ldr x8, [x19]
Lloh2:
adrp x9, _PBUF_POOL@GOTPAGE
Lloh3:
ldr x9, [x9, _PBUF_POOL@GOTPAGEOFF]
Lloh4:
ldr x9, [x9]
Lloh5:
adrp x10, _PBUF_ROM@GOTPAGE
Lloh6:
ldr x10, [x10, _PBUF_ROM@GOTPAGEOFF]
cmp x8, x9
Lloh7:
ldr x9, [x10]
ccmp x8, x9, #4, ne
Lloh8:
adrp x24, _PBUF_RAM@GOTPAGE
Lloh9:
ldr x24, [x24, _PBUF_RAM@GOTPAGEOFF]
ldr x9, [x24]
ccmp x8, x9, #4, ne
Lloh10:
adrp x9, _PBUF_REF@GOTPAGE
Lloh11:
ldr x9, [x9, _PBUF_REF@GOTPAGEOFF]
Lloh12:
ldr x9, [x9]
ccmp x8, x9, #4, ne
cset w1, eq
Lloh13:
adrp x0, l_.str.1@PAGE
Lloh14:
add x0, x0, l_.str.1@PAGEOFF
bl _LWIP_ASSERT
ldr x9, [x19, #8]
cmp x9, x20
b.le LBB0_9
; %bb.1:
ldr x8, [x19, #16]
cmp x8, x20
b.ge LBB0_4
; %bb.2:
mov w10, #65535
sub x9, x20, x9
cmp w9, w10
cset w21, lt
sxtw x25, w9
Lloh15:
adrp x22, l_.str.2@PAGE
Lloh16:
add x22, x22, l_.str.2@PAGEOFF
Lloh17:
adrp x23, l_.str.3@PAGE
Lloh18:
add x23, x23, l_.str.3@PAGEOFF
LBB0_3: ; =>This Inner Loop Header: Depth=1
sub x20, x20, x8
mov x0, x22
mov x1, x21
bl _LWIP_ASSERT
ldr x8, [x19, #8]
add x8, x8, x25
str x8, [x19, #8]
ldr x19, [x19, #24]
cmp x19, #0
cset w1, ne
mov x0, x23
bl _LWIP_ASSERT
ldr x8, [x19, #16]
cmp x20, x8
b.gt LBB0_3
LBB0_4:
ldr x9, [x19]
ldr x10, [x24]
cmp x9, x10
ccmp x20, x8, #4, eq
b.eq LBB0_6
; %bb.5:
ldr x8, [x19, #32]
sub x8, x8, x19
add x1, x20, x8, asr #2
mov x0, x19
bl _mem_trim
mov x19, x0
cmp x0, #0
cset w1, ne
Lloh19:
adrp x0, l_.str.4@PAGE
Lloh20:
add x0, x0, l_.str.4@PAGEOFF
bl _LWIP_ASSERT
LBB0_6:
stp x20, x20, [x19, #8]
ldr x0, [x19, #24]
cbz x0, LBB0_8
; %bb.7:
bl _pbuf_free
LBB0_8:
str xzr, [x19, #24]
LBB0_9:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
ldp x22, x21, [sp, #32] ; 16-byte Folded Reload
ldp x24, x23, [sp, #16] ; 16-byte Folded Reload
ldp x26, x25, [sp], #80 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh17, Lloh18
.loh AdrpAdd Lloh15, Lloh16
.loh AdrpAdd Lloh19, Lloh20
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "pbuf_realloc: p != NULL"
l_.str.1: ; @.str.1
.asciz "pbuf_realloc: sane p->type"
.comm _PBUF_POOL,8,3 ; @PBUF_POOL
.comm _PBUF_ROM,8,3 ; @PBUF_ROM
.comm _PBUF_RAM,8,3 ; @PBUF_RAM
.comm _PBUF_REF,8,3 ; @PBUF_REF
l_.str.2: ; @.str.2
.asciz "grow < max_u16_t"
l_.str.3: ; @.str.3
.asciz "pbuf_realloc: q != NULL"
l_.str.4: ; @.str.4
.asciz "mem_trim returned q == NULL"
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_pbuf.c_pbuf_realloc.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_ref ## -- Begin function pbuf_ref
.p2align 4, 0x90
_pbuf_ref: ## @pbuf_ref
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %rbx
movq _old_level@GOTPCREL(%rip), %r14
movl (%r14), %edi
callq _SYS_ARCH_DECL_PROTECT
testq %rbx, %rbx
je LBB0_1
## %bb.2:
movl (%r14), %edi
callq _SYS_ARCH_PROTECT
incl (%rbx)
movl (%r14), %edi
popq %rbx
popq %r14
popq %rbp
jmp _SYS_ARCH_UNPROTECT ## TAILCALL
LBB0_1:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _old_level,4,2 ## @old_level
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_ref ; -- Begin function pbuf_ref
.p2align 2
_pbuf_ref: ; @pbuf_ref
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
Lloh0:
adrp x20, _old_level@GOTPAGE
Lloh1:
ldr x20, [x20, _old_level@GOTPAGEOFF]
ldr w0, [x20]
bl _SYS_ARCH_DECL_PROTECT
cbz x19, LBB0_2
; %bb.1:
ldr w0, [x20]
bl _SYS_ARCH_PROTECT
ldr w8, [x19]
add w8, w8, #1
str w8, [x19]
ldr w0, [x20]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _SYS_ARCH_UNPROTECT
LBB0_2:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _old_level,4,2 ; @old_level
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_pbuf.c_pbuf_ref.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_strstr ## -- Begin function pbuf_strstr
.p2align 4, 0x90
_pbuf_strstr: ## @pbuf_strstr
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
testq %rsi, %rsi
je LBB0_4
## %bb.1:
movq %rsi, %rbx
cmpb $0, (%rsi)
je LBB0_4
## %bb.2:
movq %rdi, %r14
cmpl $65535, (%rdi) ## imm = 0xFFFF
je LBB0_4
## %bb.3:
movq %rbx, %rdi
callq _os_strlen
cmpq $65534, %rax ## imm = 0xFFFE
jbe LBB0_5
LBB0_4:
movl $65535, %eax ## imm = 0xFFFF
popq %rbx
popq %r14
popq %rbp
retq
LBB0_5:
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
xorl %ecx, %ecx
popq %rbx
popq %r14
popq %rbp
jmp _pbuf_memfind ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pbuf_strstr ; -- Begin function pbuf_strstr
.p2align 2
_pbuf_strstr: ; @pbuf_strstr
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
cbz x1, LBB0_4
; %bb.1:
mov x19, x1
ldrb w8, [x1]
cbz w8, LBB0_4
; %bb.2:
mov x20, x0
ldr w8, [x0]
mov w9, #65535
cmp w8, w9
b.eq LBB0_4
; %bb.3:
mov x0, x19
bl _os_strlen
mov w8, #65534
cmp x0, x8
b.ls LBB0_5
LBB0_4:
mov w0, #65535
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_5:
mov x2, x0
mov x0, x20
mov x1, x19
; kill: def $w2 killed $w2 killed $x2
mov w3, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _pbuf_memfind
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_pbuf.c_pbuf_strstr.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sys_msleep ## -- Begin function sys_msleep
.p2align 4, 0x90
_sys_msleep: ## @sys_msleep
.cfi_startproc
## %bb.0:
testq %rdi, %rdi
jle LBB0_4
## %bb.1:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
subq $16, %rsp
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %rbx
leaq -20(%rbp), %rdi
xorl %esi, %esi
callq _sys_sem_new
movq _ERR_OK@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_3
## %bb.2:
leaq -20(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq _sys_arch_sem_wait
movq %r14, %rdi
callq _sys_sem_free
LBB0_3:
addq $16, %rsp
popq %rbx
popq %r14
popq %rbp
LBB0_4:
retq
.cfi_endproc
## -- End function
.comm _ERR_OK,8,3 ## @ERR_OK
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sys_msleep ; -- Begin function sys_msleep
.p2align 2
_sys_msleep: ; @sys_msleep
.cfi_startproc
; %bb.0:
cmp x0, #1
b.lt LBB0_4
; %bb.1:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
add x0, sp, #12
mov w1, #0
bl _sys_sem_new
Lloh0:
adrp x8, _ERR_OK@GOTPAGE
Lloh1:
ldr x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
cmp x0, x8
b.ne LBB0_3
; %bb.2:
add x0, sp, #12
mov x1, x19
bl _sys_arch_sem_wait
add x0, sp, #12
bl _sys_sem_free
LBB0_3:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #48
LBB0_4:
.cfi_def_cfa wsp, 0
.cfi_same_value w30
.cfi_same_value w29
.cfi_same_value w19
.cfi_same_value w20
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _ERR_OK,8,3 ; @ERR_OK
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_sys.c_sys_msleep.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tcp_timer_needed ## -- Begin function tcp_timer_needed
.p2align 4, 0x90
_tcp_timer_needed: ## @tcp_timer_needed
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tcp_timer_needed ; -- Begin function tcp_timer_needed
.p2align 2
_tcp_timer_needed: ; @tcp_timer_needed
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/extr_timers.c_tcp_timer_needed.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ip4_addr_netmask_valid ## -- Begin function ip4_addr_netmask_valid
.p2align 4, 0x90
_ip4_addr_netmask_valid: ## @ip4_addr_netmask_valid
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _lwip_htonl
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ip4_addr_netmask_valid ; -- Begin function ip4_addr_netmask_valid
.p2align 2
_ip4_addr_netmask_valid: ; @ip4_addr_netmask_valid
.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
bl _lwip_htonl
mov w0, #0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/ipv4/extr_ip_addr.c_ip4_addr_netmask_valid.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ipaddr_addr ## -- Begin function ipaddr_addr
.p2align 4, 0x90
_ipaddr_addr: ## @ipaddr_addr
.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 -4(%rbp), %rsi
callq _ipaddr_aton
testq %rax, %rax
je LBB0_2
## %bb.1:
leaq -4(%rbp), %rdi
callq _ip4_addr_get_u32
jmp LBB0_3
LBB0_2:
movq _IPADDR_NONE@GOTPCREL(%rip), %rax
movl (%rax), %eax
LBB0_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _IPADDR_NONE,4,2 ## @IPADDR_NONE
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ipaddr_addr ; -- Begin function ipaddr_addr
.p2align 2
_ipaddr_addr: ; @ipaddr_addr
.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
sub x1, x29, #4
bl _ipaddr_aton
cbz x0, LBB0_2
; %bb.1:
sub x0, x29, #4
bl _ip4_addr_get_u32
b LBB0_3
LBB0_2:
Lloh0:
adrp x8, _IPADDR_NONE@GOTPAGE
Lloh1:
ldr x8, [x8, _IPADDR_NONE@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _IPADDR_NONE,4,2 ; @IPADDR_NONE
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/ipv4/extr_ip_addr.c_ipaddr_addr.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ipaddr_aton ## -- Begin function ipaddr_aton
.p2align 4, 0x90
_ipaddr_aton: ## @ipaddr_aton
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $88, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %rbx
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movq %rdi, %r14
movb (%rdi), %r13b
movsbl %r13b, %edi
callq _isdigit
testq %rax, %rax
je LBB0_23
## %bb.1:
movq %rbx, -112(%rbp) ## 8-byte Spill
leaq -80(%rbp), %rax
movq %rax, -96(%rbp) ## 8-byte Spill
LBB0_2: ## =>This Loop Header: Depth=1
## Child Loop BB0_10 Depth 2
cmpb $48, %r13b
jne LBB0_5
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movq %r14, %rbx
movb 1(%r14), %r13b
movl %r13d, %eax
andb $-33, %al
cmpb $88, %al
jne LBB0_6
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
movb 2(%rbx), %r13b
addq $2, %rbx
movl $16, %ecx
movb $1, %al
movl %eax, -84(%rbp) ## 4-byte Spill
jmp LBB0_7
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
movl $10, %ecx
movl $0, -84(%rbp) ## 4-byte Folded Spill
movq %r14, %rbx
jmp LBB0_7
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_2 Depth=1
incq %rbx
movl $8, %ecx
movl $0, -84(%rbp) ## 4-byte Folded Spill
LBB0_7: ## in Loop: Header=BB0_2 Depth=1
movl $-1, %eax
xorl %edx, %edx
movq %rcx, -120(%rbp) ## 8-byte Spill
divl %ecx
## kill: def $eax killed $eax def $rax
movq %rax, -104(%rbp) ## 8-byte Spill
movl %edx, -88(%rbp) ## 4-byte Spill
incq %rbx
xorl %r15d, %r15d
jmp LBB0_10
.p2align 4, 0x90
LBB0_8: ## in Loop: Header=BB0_10 Depth=2
imulq -120(%rbp), %r15 ## 8-byte Folded Reload
movslq %r14d, %rax
addq %r15, %rax
LBB0_9: ## in Loop: Header=BB0_10 Depth=2
movzbl (%rbx), %r13d
incq %rbx
movq %rax, %r15
LBB0_10: ## Parent Loop BB0_2 Depth=1
## => This Inner Loop Header: Depth=2
movsbl %r13b, %r14d
movl %r14d, %edi
callq _isdigit
testq %rax, %rax
je LBB0_14
## %bb.11: ## in Loop: Header=BB0_10 Depth=2
addl $-48, %r14d
xorl %r12d, %r12d
cmpq -104(%rbp), %r15 ## 8-byte Folded Reload
ja LBB0_24
## %bb.12: ## in Loop: Header=BB0_10 Depth=2
jne LBB0_8
## %bb.13: ## in Loop: Header=BB0_10 Depth=2
movsbl %r14b, %eax
cmpl -88(%rbp), %eax ## 4-byte Folded Reload
jle LBB0_8
jmp LBB0_24
.p2align 4, 0x90
LBB0_14: ## in Loop: Header=BB0_10 Depth=2
cmpb $0, -84(%rbp) ## 1-byte Folded Reload
je LBB0_20
## %bb.15: ## in Loop: Header=BB0_10 Depth=2
movl %r14d, %edi
callq _isxdigit
testq %rax, %rax
je LBB0_20
## %bb.16: ## in Loop: Header=BB0_10 Depth=2
leal 10(%r14), %r13d
movl %r14d, %edi
callq _islower
xorl %ecx, %ecx
testq %rax, %rax
sete %cl
shll $5, %ecx
xorl %r12d, %r12d
cmpq -104(%rbp), %r15 ## 8-byte Folded Reload
ja LBB0_24
## %bb.17: ## in Loop: Header=BB0_10 Depth=2
jne LBB0_19
## %bb.18: ## in Loop: Header=BB0_10 Depth=2
leal (%rcx,%r14), %eax
addl $169, %eax
movsbl %al, %eax
cmpl -88(%rbp), %eax ## 4-byte Folded Reload
jg LBB0_24
LBB0_19: ## in Loop: Header=BB0_10 Depth=2
shlq $4, %r15
movl %r14d, %edi
callq _islower
xorl %ecx, %ecx
testq %rax, %rax
sete %cl
shll $5, %ecx
leal (%rcx,%r13), %eax
addl $-97, %eax
cltq
orq %r15, %rax
jmp LBB0_9
.p2align 4, 0x90
LBB0_20: ## in Loop: Header=BB0_2 Depth=1
cmpb $46, %r13b
jne LBB0_26
## %bb.21: ## in Loop: Header=BB0_2 Depth=1
xorl %r12d, %r12d
movq -96(%rbp), %rax ## 8-byte Reload
leaq -56(%rbp), %rcx
cmpq %rcx, %rax
jae LBB0_24
## %bb.22: ## in Loop: Header=BB0_2 Depth=1
movq %r15, (%rax)
addq $8, %rax
movq %rax, -96(%rbp) ## 8-byte Spill
movq %rbx, %r14
movb (%rbx), %r13b
movsbl %r13b, %edi
callq _isdigit
testq %rax, %rax
jne LBB0_2
jmp LBB0_24
LBB0_26:
testb %r13b, %r13b
je LBB0_28
## %bb.27:
movl %r14d, %edi
callq _isspace
testl %eax, %eax
je LBB0_23
LBB0_28:
leaq -80(%rbp), %rax
movq -96(%rbp), %rcx ## 8-byte Reload
subq %rax, %rcx
sarq $3, %rcx
incq %rcx
cmpq $4, %rcx
ja LBB0_34
## %bb.29:
xorl %r12d, %r12d
leaq LJTI0_0(%rip), %rax
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
LBB0_30:
cmpq $16777215, %r15 ## imm = 0xFFFFFF
ja LBB0_24
## %bb.31:
movq -80(%rbp), %rax
cmpq $255, %rax
ja LBB0_24
## %bb.32:
shlq $24, %rax
orq %rax, %r15
jmp LBB0_45
LBB0_23:
xorl %r12d, %r12d
LBB0_24:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB0_47
## %bb.25:
movl %r12d, %eax
addq $88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_34:
leaq L_.str(%rip), %rdi
xorl %esi, %esi
callq _LWIP_ASSERT
jmp LBB0_45
LBB0_35:
cmpq $65535, %r15 ## imm = 0xFFFF
ja LBB0_24
## %bb.36:
movq -80(%rbp), %rax
cmpq $255, %rax
ja LBB0_24
## %bb.37:
movq -72(%rbp), %rcx
cmpq $255, %rcx
ja LBB0_24
## %bb.38:
shlq $24, %rax
shlq $16, %rcx
orq %r15, %rax
orq %rcx, %rax
jmp LBB0_44
LBB0_39:
cmpq $255, %r15
ja LBB0_24
## %bb.40:
movq -80(%rbp), %rax
cmpq $255, %rax
ja LBB0_24
## %bb.41:
movq -72(%rbp), %rcx
cmpq $255, %rcx
ja LBB0_24
## %bb.42:
movq -64(%rbp), %rdx
cmpq $255, %rdx
ja LBB0_24
## %bb.43:
shlq $24, %rax
shlq $16, %rcx
shlq $8, %rdx
orq %rcx, %rdx
orq %r15, %rax
orq %rdx, %rax
LBB0_44:
movq %rax, %r15
LBB0_45:
movl $1, %r12d
movq -112(%rbp), %rbx ## 8-byte Reload
testq %rbx, %rbx
je LBB0_24
## %bb.46:
movq %r15, %rdi
callq _htonl
movq %rbx, %rdi
movl %eax, %esi
callq _ip4_addr_set_u32
jmp LBB0_24
LBB0_47:
callq ___stack_chk_fail
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_45, LBB0_45-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
LJTI0_0:
.long L0_0_set_24
.long L0_0_set_45
.long L0_0_set_30
.long L0_0_set_35
.long L0_0_set_39
.end_data_region
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "unhandled"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ipaddr_aton ; -- Begin function ipaddr_aton
.p2align 2
_ipaddr_aton: ; @ipaddr_aton
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x28, x27, [sp, #64] ; 16-byte Folded Spill
stp x26, x25, [sp, #80] ; 16-byte Folded Spill
stp x24, x23, [sp, #96] ; 16-byte Folded Spill
stp x22, x21, [sp, #112] ; 16-byte Folded Spill
stp x20, x19, [sp, #128] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
mov x19, x1
mov x21, x0
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
str x8, [sp, #56]
ldrsb w20, [x0]
mov x0, x20
bl _isdigit
cbz x0, LBB0_23
; %bb.1:
and w25, w20, #0xff
add x23, sp, #24
add x8, x23, #24
stp x19, x8, [sp, #8] ; 16-byte Folded Spill
mov w10, #-1
mov w27, #191
LBB0_2: ; =>This Loop Header: Depth=1
; Child Loop BB0_9 Depth 2
and w8, w25, #0xff
cmp w8, #48
b.ne LBB0_5
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
mov x8, x21
ldrb w25, [x8, #1]!
and w9, w25, #0xffffffdf
cmp w9, #88
b.ne LBB0_6
; %bb.4: ; in Loop: Header=BB0_2 Depth=1
ldrb w25, [x21, #2]!
mov w24, #1
mov w28, #16
b LBB0_7
LBB0_5: ; in Loop: Header=BB0_2 Depth=1
mov w24, #0
mov w28, #10
b LBB0_7
LBB0_6: ; in Loop: Header=BB0_2 Depth=1
mov w24, #0
mov w28, #8
mov x21, x8
LBB0_7: ; in Loop: Header=BB0_2 Depth=1
mov x20, #0
udiv w19, w10, w28
mul w8, w19, w28
mvn w26, w8
add x21, x21, #1
b LBB0_9
LBB0_8: ; in Loop: Header=BB0_9 Depth=2
mul x9, x20, x28
add x20, x9, w8, sxtw
ldrb w25, [x21], #1
LBB0_9: ; Parent Loop BB0_2 Depth=1
; => This Inner Loop Header: Depth=2
sxtb w22, w25
mov x0, x22
bl _isdigit
cbz x0, LBB0_13
; %bb.10: ; in Loop: Header=BB0_9 Depth=2
sub w8, w22, #48
cmp x20, x19
b.hi LBB0_22
; %bb.11: ; in Loop: Header=BB0_9 Depth=2
b.ne LBB0_8
; %bb.12: ; in Loop: Header=BB0_9 Depth=2
cmp w26, w8, sxtb
b.ge LBB0_8
b LBB0_22
LBB0_13: ; in Loop: Header=BB0_9 Depth=2
cbz w24, LBB0_19
; %bb.14: ; in Loop: Header=BB0_9 Depth=2
mov x0, x22
bl _isxdigit
cbz x0, LBB0_19
; %bb.15: ; in Loop: Header=BB0_9 Depth=2
mov x0, x22
bl _islower
cmp x0, #0
mov w8, #159
csel w8, w27, w8, eq
cmp x20, x19
b.hi LBB0_22
; %bb.16: ; in Loop: Header=BB0_9 Depth=2
add w25, w22, #10
b.ne LBB0_18
; %bb.17: ; in Loop: Header=BB0_9 Depth=2
add w8, w8, w25
cmp w26, w8, sxtb
b.lt LBB0_22
LBB0_18: ; in Loop: Header=BB0_9 Depth=2
mov x0, x22
bl _islower
cmp x0, #0
mov w8, #-97
mov w9, #-65
csel w8, w9, w8, eq
add w8, w8, w25
sxtw x8, w8
orr x20, x8, x20, lsl #4
ldrb w25, [x21], #1
b LBB0_9
LBB0_19: ; in Loop: Header=BB0_2 Depth=1
and w8, w25, #0xff
cmp w8, #46
b.ne LBB0_25
; %bb.20: ; in Loop: Header=BB0_2 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
cmp x23, x8
b.hs LBB0_22
; %bb.21: ; in Loop: Header=BB0_2 Depth=1
str x20, [x23], #8
ldrsb w0, [x21]
and w25, w0, #0xff
bl _isdigit
mov x8, x0
mov w0, #0
mov w10, #-1
cbnz x8, LBB0_2
b LBB0_23
LBB0_22:
mov w0, #0
LBB0_23:
ldr x8, [sp, #56]
Lloh3:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh4:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_45
; %bb.24:
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
ldp x20, x19, [sp, #128] ; 16-byte Folded Reload
ldp x22, x21, [sp, #112] ; 16-byte Folded Reload
ldp x24, x23, [sp, #96] ; 16-byte Folded Reload
ldp x26, x25, [sp, #80] ; 16-byte Folded Reload
ldp x28, x27, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #160
ret
LBB0_25:
cbz w8, LBB0_27
; %bb.26:
mov x0, x22
bl _isspace
cbz w0, LBB0_23
LBB0_27:
add x8, sp, #24
sub x8, x23, x8
asr x8, x8, #3
add x8, x8, #1
cmp x8, #4
b.hi LBB0_32
; %bb.28:
mov w0, #0
Lloh6:
adrp x9, lJTI0_0@PAGE
Lloh7:
add x9, x9, lJTI0_0@PAGEOFF
adr x10, LBB0_23
ldrb w11, [x9, x8]
add x10, x10, x11, lsl #2
br x10
LBB0_29:
mov w0, #0
lsr x8, x20, #24
cbnz x8, LBB0_23
; %bb.30:
ldr x8, [sp, #24]
cmp x8, #255
b.hi LBB0_23
; %bb.31:
orr x20, x20, x8, lsl #24
b LBB0_42
LBB0_32:
Lloh8:
adrp x0, l_.str@PAGE
Lloh9:
add x0, x0, l_.str@PAGEOFF
mov w1, #0
bl _LWIP_ASSERT
b LBB0_42
LBB0_33:
mov w0, #0
lsr x8, x20, #16
cbnz x8, LBB0_23
; %bb.34:
ldr x8, [sp, #24]
cmp x8, #255
b.hi LBB0_23
; %bb.35:
ldr x9, [sp, #32]
cmp x9, #255
b.hi LBB0_23
; %bb.36:
orr x8, x20, x8, lsl #24
orr x20, x8, x9, lsl #16
b LBB0_42
LBB0_37:
mov w0, #0
cmp x20, #255
b.hi LBB0_23
; %bb.38:
ldr x8, [sp, #24]
cmp x8, #255
b.hi LBB0_23
; %bb.39:
ldr x9, [sp, #32]
cmp x9, #255
b.hi LBB0_23
; %bb.40:
ldr x10, [sp, #40]
cmp x10, #255
b.hi LBB0_23
; %bb.41:
orr x8, x20, x8, lsl #24
orr x8, x8, x9, lsl #16
orr x20, x8, x10, lsl #8
LBB0_42:
ldr x19, [sp, #8] ; 8-byte Folded Reload
cbz x19, LBB0_44
; %bb.43:
mov x0, x20
bl _htonl
mov x1, x0
mov x0, x19
bl _ip4_addr_set_u32
LBB0_44:
mov w0, #1
b LBB0_23
LBB0_45:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh8, Lloh9
.cfi_endproc
.section __TEXT,__const
lJTI0_0:
.byte (LBB0_23-LBB0_23)>>2
.byte (LBB0_42-LBB0_23)>>2
.byte (LBB0_29-LBB0_23)>>2
.byte (LBB0_33-LBB0_23)>>2
.byte (LBB0_37-LBB0_23)>>2
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "unhandled"
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/ipv4/extr_ip_addr.c_ipaddr_aton.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ipaddr_ntoa ## -- Begin function ipaddr_ntoa
.p2align 4, 0x90
_ipaddr_ntoa: ## @ipaddr_ntoa
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq _ipaddr_ntoa.str(%rip), %rsi
movl $16, %edx
popq %rbp
jmp _ipaddr_ntoa_r ## TAILCALL
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_ipaddr_ntoa.str,16,4 ## @ipaddr_ntoa.str
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ipaddr_ntoa ; -- Begin function ipaddr_ntoa
.p2align 2
_ipaddr_ntoa: ; @ipaddr_ntoa
.cfi_startproc
; %bb.0:
Lloh0:
adrp x1, _ipaddr_ntoa.str@PAGE
Lloh1:
add x1, x1, _ipaddr_ntoa.str@PAGEOFF
mov w2, #16
b _ipaddr_ntoa_r
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_ipaddr_ntoa.str,16,0 ; @ipaddr_ntoa.str
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/ipv4/extr_ip_addr.c_ipaddr_ntoa.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal16,16byte_literals
.p2align 4 ## -- Begin function ipaddr_ntoa_r
LCPI0_0:
.byte 15 ## 0xf
.byte 14 ## 0xe
.byte 13 ## 0xd
.byte 12 ## 0xc
.byte 11 ## 0xb
.byte 10 ## 0xa
.byte 9 ## 0x9
.byte 8 ## 0x8
.byte 7 ## 0x7
.byte 6 ## 0x6
.byte 5 ## 0x5
.byte 4 ## 0x4
.byte 3 ## 0x3
.byte 2 ## 0x2
.byte 1 ## 0x1
.byte 0 ## 0x0
.section __TEXT,__text,regular,pure_instructions
.globl _ipaddr_ntoa_r
.p2align 4, 0x90
_ipaddr_ntoa_r: ## @ipaddr_ntoa_r
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %edx, %r15d
movq %rsi, %r14
callq _ip4_addr_get_u32
## kill: def $eax killed $eax def $rax
movl $-1, %edi
movabsq $-4294967296, %r11 ## imm = 0xFFFFFFFF00000000
leaq -27(%rbp), %rdx
movabsq $4294967296, %r8 ## imm = 0x100000000
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
addq %r8, %r11
movslq %eax, %rbx
imulq $1717986919, %rbx, %rax ## imm = 0x66666667
movq %rax, %rsi
shrq $63, %rsi
sarq $34, %rax
addl %esi, %eax
leal (%rax,%rax), %esi
leal (%rsi,%rsi,4), %esi
movl %ebx, %ecx
subl %esi, %ecx
addb $48, %cl
movb %cl, (%rdx)
addl $9, %ebx
incl %edi
incq %rdx
cmpl $18, %ebx
ja LBB0_1
## %bb.2:
sarq $32, %r11
xorl %r10d, %r10d
testl %r15d, %r15d
movl $0, %r9d
cmovgl %r15d, %r9d
cmpq %r9, %r11
movq %r9, %r8
cmovbq %r11, %r8
cmpq $32, %r8
jae LBB0_4
## %bb.3:
movq %r14, %rdx
jmp LBB0_6
LBB0_4:
movq %r8, %r10
incq %r10
movl %r10d, %eax
andl $31, %eax
testq %rax, %rax
movl $32, %ecx
cmovneq %rax, %rcx
subq %rcx, %r10
subq %r10, %r11
movq %r10, %rdx
addq %r14, %rdx
leaq 16(%r14), %rbx
movslq %edi, %rax
cmpq %r9, %rax
movq %r9, %rdi
cmovbq %rax, %rdi
notq %rdi
addq %rcx, %rdi
addq %rbp, %rax
addq $-42, %rax
xorl %esi, %esi
movdqa LCPI0_0(%rip), %xmm0 ## xmm0 = [15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]
.p2align 4, 0x90
LBB0_5: ## =>This Inner Loop Header: Depth=1
movdqu -16(%rax,%rsi), %xmm1
movdqu (%rax,%rsi), %xmm2
pshufb %xmm0, %xmm2
pshufb %xmm0, %xmm1
movdqu %xmm2, -16(%rbx)
movdqu %xmm1, (%rbx)
addq $32, %rbx
addq $-32, %rsi
cmpq %rsi, %rdi
jne LBB0_5
LBB0_6:
leal 1(%r8), %edi
leaq (%r11,%rbp), %rbx
addq $-27, %rbx
notq %r11
subl %r9d, %r10d
xorl %eax, %eax
.p2align 4, 0x90
LBB0_7: ## =>This Inner Loop Header: Depth=1
cmpl %eax, %r10d
je LBB0_24
## %bb.8: ## in Loop: Header=BB0_7 Depth=1
movzbl (%rbx,%rax), %ecx
movb %cl, (%rdx)
incq %rdx
decq %rax
cmpq %rax, %r11
jne LBB0_7
## %bb.9:
cmpl %r15d, %edi
jge LBB0_24
## %bb.10:
leal 2(%r8), %eax
movb $46, (%rdx)
movb $48, -27(%rbp)
cmpl %r15d, %eax
jge LBB0_24
## %bb.11:
movb -27(%rbp), %al
movb %al, 1(%rdx)
leal 3(%r8), %eax
cmpl %r15d, %eax
jge LBB0_24
## %bb.12:
leal 4(%r8), %eax
movb $46, 2(%rdx)
movb $48, -27(%rbp)
cmpl %r15d, %eax
jge LBB0_24
## %bb.13:
movb -27(%rbp), %al
movb %al, 3(%rdx)
leal 5(%r8), %eax
cmpl %r15d, %eax
jge LBB0_24
## %bb.14:
leal 6(%r8), %eax
movb $46, 4(%rdx)
movb $48, -27(%rbp)
cmpl %r15d, %eax
jge LBB0_24
## %bb.15:
movb -27(%rbp), %al
movb %al, 5(%rdx)
leal 7(%r8), %eax
cmpl %r15d, %eax
jge LBB0_24
## %bb.16:
movb $0, 6(%rdx)
jmp LBB0_25
LBB0_24:
xorl %r14d, %r14d
LBB0_25:
movq %r14, %rax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ipaddr_ntoa_r ; -- Begin function ipaddr_ntoa_r
.p2align 2
_ipaddr_ntoa_r: ; @ipaddr_ntoa_r
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
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
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x20, x2
mov x19, x1
bl _ip4_addr_get_u32
mov w11, #-1
mov x8, #-4294967296
add x9, sp, #13
mov w10, #26215
movk w10, #26214, lsl #16
mov w12, #10
mov x13, #4294967296
LBB0_1: ; =>This Inner Loop Header: Depth=1
smull x14, w0, w10
lsr x15, x14, #63
asr x14, x14, #34
add w14, w14, w15
msub w15, w14, w12, w0
add w15, w15, #48
strb w15, [x9], #1
add w15, w0, #9
add w11, w11, #1
add x8, x8, x13
mov x0, x14
cmp w15, #18
b.hi LBB0_1
; %bb.2:
asr x9, x8, #32
cmp w20, #0
csel w10, w20, wzr, gt
cmp x9, x10
csel x8, x9, x10, lo
cmp x8, #8
b.hs LBB0_4
; %bb.3:
mov w12, #0
mov x13, x19
b LBB0_6
LBB0_4:
add x12, x8, #1
ands x13, x12, #0x7
mov w14, #8
csel x14, x14, x13, eq
sub x12, x12, x14
sub x9, x9, x12
add x13, x19, x12
sxtw x15, w11
cmp x15, x10
csel x11, x15, x10, lo
sub x11, x11, x14
add x11, x11, #1
add x14, sp, #13
add x14, x14, x15
sub x14, x14, #7
mov x15, x19
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr d0, [x14], #-8
rev64.8b v0, v0
str d0, [x15], #8
subs x11, x11, #8
b.ne LBB0_5
LBB0_6:
add w11, w8, #1
sub w12, w10, w12
add x10, x13, #3
add x13, sp, #13
LBB0_7: ; =>This Inner Loop Header: Depth=1
cbz w12, LBB0_17
; %bb.8: ; in Loop: Header=BB0_7 Depth=1
ldrb w14, [x13, x9]
sturb w14, [x10, #-3]
sub x9, x9, #1
sub w12, w12, #1
add x10, x10, #1
cmn x9, #1
b.ne LBB0_7
; %bb.9:
cmp w11, w20
b.ge LBB0_17
; %bb.10:
add w9, w8, #2
mov w11, #46
sturb w11, [x10, #-3]
mov w11, #48
strb w11, [sp, #13]
cmp w9, w20
b.ge LBB0_17
; %bb.11:
ldrb w9, [sp, #13]
sturb w9, [x10, #-2]
add w9, w8, #3
cmp w9, w20
b.ge LBB0_17
; %bb.12:
add w9, w8, #4
mov w11, #46
sturb w11, [x10, #-1]
mov w11, #48
strb w11, [sp, #13]
cmp w9, w20
b.ge LBB0_17
; %bb.13:
ldrb w9, [sp, #13]
strb w9, [x10]
add w9, w8, #5
cmp w9, w20
b.ge LBB0_17
; %bb.14:
add w9, w8, #6
mov w11, #46
strb w11, [x10, #1]
mov w11, #48
strb w11, [sp, #13]
cmp w9, w20
b.ge LBB0_17
; %bb.15:
ldrb w9, [sp, #13]
strb w9, [x10, #2]
add w8, w8, #7
cmp w8, w20
b.ge LBB0_17
; %bb.16:
strb wzr, [x10, #3]
b LBB0_18
LBB0_17:
mov x19, #0
LBB0_18:
mov x0, x19
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/Arduino/tools/sdk/lwip/src/core/ipv4/extr_ip_addr.c_ipaddr_ntoa_r.c
|
anghabench
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.