x86 stringlengths 122 5.97M | arm stringlengths 122 5.84M | file stringlengths 18 195 | source stringclasses 3 values |
|---|---|---|---|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function alloc_pidmap
_alloc_pidmap: ## @alloc_pidmap
.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 %rdi, %rbx
movl (%rdi), %r15d
leal 1(%r15), %ecx
movq _pid_max@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq _RESERVED_PIDS@GOTPCREL(%rip), %rdx
movl %ecx, %r12d
movl %ecx, -68(%rbp) ## 4-byte Spill
cmpl %eax, %ecx
jl LBB0_2
## %bb.1:
movl (%rdx), %r12d
LBB0_2:
movq _BITS_PER_PAGE_MASK@GOTPCREL(%rip), %rsi
movq _BITS_PER_PAGE@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
addl %ecx, %eax
decl %eax
cltd
idivl %ecx
xorl %edx, %edx
movl (%rsi), %r13d
orl %r12d, %r13d
sete %dl
subl %edx, %eax
movl %eax, -44(%rbp) ## 4-byte Spill
movl $-1, %eax
js LBB0_23
## %bb.3:
movl %r12d, %eax
cltd
idivl %ecx
movslq %eax, %r14
shlq $4, %r14
addq 8(%rbx), %r14
movq $0, -64(%rbp) ## 8-byte Folded Spill
movq %r15, -56(%rbp) ## 8-byte Spill
LBB0_4: ## =>This Loop Header: Depth=1
## Child Loop BB0_13 Depth 2
xorl %edi, %edi
cmpq $0, 8(%r14)
sete %dil
callq _unlikely
testq %rax, %rax
je LBB0_9
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movq _PAGE_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _GFP_KERNEL@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _kzalloc
movq %rax, %r15
movq _pidmap_lock@GOTPCREL(%rip), %rdi
callq _spin_lock_irq
cmpq $0, 8(%r14)
je LBB0_7
## %bb.6: ## in Loop: Header=BB0_4 Depth=1
movq %r15, %rdi
callq _kfree
jmp LBB0_8
.p2align 4, 0x90
LBB0_7: ## in Loop: Header=BB0_4 Depth=1
movq %r15, 8(%r14)
LBB0_8: ## in Loop: Header=BB0_4 Depth=1
movq _pidmap_lock@GOTPCREL(%rip), %rdi
callq _spin_unlock_irq
xorl %edi, %edi
cmpq $0, 8(%r14)
sete %dil
callq _unlikely
testq %rax, %rax
movq -56(%rbp), %r15 ## 8-byte Reload
jne LBB0_22
LBB0_9: ## in Loop: Header=BB0_4 Depth=1
movq %r14, %rdi
callq _atomic_read
movl %eax, %edi
callq _likely
testq %rax, %rax
je LBB0_10
.p2align 4, 0x90
LBB0_13: ## Parent Loop BB0_4 Depth=1
## => This Inner Loop Header: Depth=2
movq 8(%r14), %rsi
movl %r13d, %edi
callq _test_and_set_bit
testl %eax, %eax
je LBB0_14
## %bb.15: ## in Loop: Header=BB0_13 Depth=2
movq %r14, %rdi
movl %r13d, %esi
callq _find_next_offset
movl %eax, %r13d
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
callq _mk_pid
movl %eax, %r12d
movq _BITS_PER_PAGE@GOTPCREL(%rip), %rax
movl (%rax), %ecx
cmpl %ecx, %r13d
jle LBB0_13
## %bb.16: ## in Loop: Header=BB0_13 Depth=2
movq _pid_max@GOTPCREL(%rip), %rax
movl (%rax), %eax
cmpl %eax, %r12d
jge LBB0_11
## %bb.17: ## in Loop: Header=BB0_13 Depth=2
movq -64(%rbp), %rdx ## 8-byte Reload
cmpl -44(%rbp), %edx ## 4-byte Folded Reload
jne LBB0_13
## %bb.18: ## in Loop: Header=BB0_13 Depth=2
cmpl %r15d, %r12d
jl LBB0_13
## %bb.19: ## in Loop: Header=BB0_13 Depth=2
movl -68(%rbp), %edx ## 4-byte Reload
movq _BITS_PER_PAGE_MASK@GOTPCREL(%rip), %rsi
testl %edx, (%rsi)
je LBB0_13
jmp LBB0_11
.p2align 4, 0x90
LBB0_10: ## in Loop: Header=BB0_4 Depth=1
movq _pid_max@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq _BITS_PER_PAGE@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
LBB0_11: ## in Loop: Header=BB0_4 Depth=1
movq 8(%rbx), %r15
decl %eax
cltd
idivl %ecx
cltq
shlq $4, %rax
addq %r15, %rax
cmpq %rax, %r14
jae LBB0_20
## %bb.12: ## in Loop: Header=BB0_4 Depth=1
addq $16, %r14
xorl %r13d, %r13d
movq %r14, %r15
jmp LBB0_21
.p2align 4, 0x90
LBB0_20: ## in Loop: Header=BB0_4 Depth=1
movq _RESERVED_PIDS@GOTPCREL(%rip), %rax
movl (%rax), %r13d
xorl %edi, %edi
cmpl %r13d, -56(%rbp) ## 4-byte Folded Reload
sete %dil
callq _unlikely
testq %rax, %rax
jne LBB0_22
LBB0_21: ## in Loop: Header=BB0_4 Depth=1
movq %rbx, %rdi
movq %r15, %rsi
movl %r13d, %edx
callq _mk_pid
movl %eax, %r12d
movq -64(%rbp), %rcx ## 8-byte Reload
leal 1(%rcx), %eax
movq %r15, %r14
cmpl -44(%rbp), %ecx ## 4-byte Folded Reload
## kill: def $eax killed $eax def $rax
movq %rax, -64(%rbp) ## 8-byte Spill
movq -56(%rbp), %r15 ## 8-byte Reload
jne LBB0_4
LBB0_22:
movl $-1, %eax
jmp LBB0_23
LBB0_14:
movq %r14, %rdi
callq _atomic_dec
movq %rbx, %rdi
movl %r15d, %esi
movl %r12d, %edx
callq _set_last_pid
movl %r12d, %eax
LBB0_23:
addq $40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _pid_max,4,2 ## @pid_max
.comm _RESERVED_PIDS,4,2 ## @RESERVED_PIDS
.comm _BITS_PER_PAGE_MASK,4,2 ## @BITS_PER_PAGE_MASK
.comm _BITS_PER_PAGE,4,2 ## @BITS_PER_PAGE
.comm _PAGE_SIZE,4,2 ## @PAGE_SIZE
.comm _GFP_KERNEL,4,2 ## @GFP_KERNEL
.comm _pidmap_lock,4,2 ## @pidmap_lock
.no_dead_strip _alloc_pidmap
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function alloc_pidmap
_alloc_pidmap: ; @alloc_pidmap
.cfi_startproc
; %bb.0:
sub sp, sp, #112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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
ldr w20, [x0]
add w26, w20, #1
Lloh0:
adrp x25, _pid_max@GOTPAGE
Lloh1:
ldr x25, [x25, _pid_max@GOTPAGEOFF]
ldr w9, [x25]
Lloh2:
adrp x8, _RESERVED_PIDS@GOTPAGE
Lloh3:
ldr x8, [x8, _RESERVED_PIDS@GOTPAGEOFF]
Lloh4:
ldr w8, [x8]
cmp w26, w9
Lloh5:
adrp x10, _BITS_PER_PAGE_MASK@GOTPAGE
Lloh6:
ldr x10, [x10, _BITS_PER_PAGE_MASK@GOTPAGEOFF]
csinc w24, w8, w20, ge
Lloh7:
ldr w8, [x10]
orr w23, w24, w8
Lloh8:
adrp x21, _BITS_PER_PAGE@GOTPAGE
Lloh9:
ldr x21, [x21, _BITS_PER_PAGE@GOTPAGEOFF]
ldr w8, [x21]
add w9, w9, w8
sub w9, w9, #1
sdiv w9, w9, w8
cmp w23, #0
cset w10, eq
subs w28, w9, w10
b.mi LBB0_20
; %bb.1:
mov x19, x0
mov w27, #0 ; =0x0
ldr x9, [x0, #8]
sdiv w8, w24, w8
add x22, x9, w8, sxtw #4
str w26, [sp, #12] ; 4-byte Folded Spill
LBB0_2: ; =>This Loop Header: Depth=1
; Child Loop BB0_8 Depth 2
ldr x8, [x22, #8]
cmp x8, #0
cset w0, eq
bl _unlikely
cbz x0, LBB0_7
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
mov x26, x25
Lloh10:
adrp x8, _PAGE_SIZE@GOTPAGE
Lloh11:
ldr x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh12:
ldr w0, [x8]
Lloh13:
adrp x8, _GFP_KERNEL@GOTPAGE
Lloh14:
ldr x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh15:
ldr w1, [x8]
bl _kzalloc
mov x25, x0
Lloh16:
adrp x0, _pidmap_lock@GOTPAGE
Lloh17:
ldr x0, [x0, _pidmap_lock@GOTPAGEOFF]
bl _spin_lock_irq
ldr x8, [x22, #8]
cbz x8, LBB0_5
; %bb.4: ; in Loop: Header=BB0_2 Depth=1
mov x0, x25
bl _kfree
b LBB0_6
LBB0_5: ; in Loop: Header=BB0_2 Depth=1
str x25, [x22, #8]
LBB0_6: ; in Loop: Header=BB0_2 Depth=1
Lloh18:
adrp x0, _pidmap_lock@GOTPAGE
Lloh19:
ldr x0, [x0, _pidmap_lock@GOTPAGEOFF]
bl _spin_unlock_irq
ldr x8, [x22, #8]
cmp x8, #0
cset w0, eq
bl _unlikely
mov x25, x26
ldr w26, [sp, #12] ; 4-byte Folded Reload
cbnz x0, LBB0_20
LBB0_7: ; in Loop: Header=BB0_2 Depth=1
mov x0, x22
bl _atomic_read
bl _likely
cbz x0, LBB0_14
LBB0_8: ; Parent Loop BB0_2 Depth=1
; => This Inner Loop Header: Depth=2
ldr x1, [x22, #8]
mov x0, x23
bl _test_and_set_bit
cbz w0, LBB0_21
; %bb.9: ; in Loop: Header=BB0_8 Depth=2
mov x0, x22
mov x1, x23
bl _find_next_offset
mov x23, x0
mov x0, x19
mov x1, x22
mov x2, x23
bl _mk_pid
mov x24, x0
ldr w8, [x21]
cmp w23, w8
b.le LBB0_8
; %bb.10: ; in Loop: Header=BB0_8 Depth=2
ldr w9, [x25]
cmp w24, w9
b.ge LBB0_15
; %bb.11: ; in Loop: Header=BB0_8 Depth=2
cmp w27, w28
b.ne LBB0_8
; %bb.12: ; in Loop: Header=BB0_8 Depth=2
cmp w24, w20
b.lt LBB0_8
; %bb.13: ; in Loop: Header=BB0_8 Depth=2
Lloh20:
adrp x10, _BITS_PER_PAGE_MASK@GOTPAGE
Lloh21:
ldr x10, [x10, _BITS_PER_PAGE_MASK@GOTPAGEOFF]
Lloh22:
ldr w10, [x10]
tst w10, w26
b.eq LBB0_8
b LBB0_15
LBB0_14: ; in Loop: Header=BB0_2 Depth=1
ldr w9, [x25]
ldr w8, [x21]
LBB0_15: ; in Loop: Header=BB0_2 Depth=1
ldr x24, [x19, #8]
sub w9, w9, #1
sdiv w8, w9, w8
add x8, x24, w8, sxtw #4
cmp x22, x8
b.hs LBB0_17
; %bb.16: ; in Loop: Header=BB0_2 Depth=1
mov w23, #0 ; =0x0
add x22, x22, #16
b LBB0_19
LBB0_17: ; in Loop: Header=BB0_2 Depth=1
Lloh23:
adrp x8, _RESERVED_PIDS@GOTPAGE
Lloh24:
ldr x8, [x8, _RESERVED_PIDS@GOTPAGEOFF]
Lloh25:
ldr w23, [x8]
cmp w20, w23
cset w0, eq
bl _unlikely
cbnz x0, LBB0_20
; %bb.18: ; in Loop: Header=BB0_2 Depth=1
mov x22, x24
LBB0_19: ; in Loop: Header=BB0_2 Depth=1
mov x0, x19
mov x1, x22
mov x2, x23
bl _mk_pid
mov x24, x0
add w8, w27, #1
cmp w27, w28
mov x27, x8
b.ne LBB0_2
LBB0_20:
mov w24, #-1 ; =0xffffffff
b LBB0_22
LBB0_21:
mov x0, x22
bl _atomic_dec
mov x0, x19
mov x1, x20
mov x2, x24
bl _set_last_pid
LBB0_22:
mov x0, x24
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
ldp x20, x19, [sp, #80] ; 16-byte Folded Reload
ldp x22, x21, [sp, #64] ; 16-byte Folded Reload
ldp x24, x23, [sp, #48] ; 16-byte Folded Reload
ldp x26, x25, [sp, #32] ; 16-byte Folded Reload
ldp x28, x27, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #112
ret
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh16, Lloh17
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGot Lloh18, Lloh19
.loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22
.loh AdrpLdrGotLdr Lloh23, Lloh24, Lloh25
.cfi_endproc
; -- End function
.comm _pid_max,4,2 ; @pid_max
.comm _RESERVED_PIDS,4,2 ; @RESERVED_PIDS
.comm _BITS_PER_PAGE_MASK,4,2 ; @BITS_PER_PAGE_MASK
.comm _BITS_PER_PAGE,4,2 ; @BITS_PER_PAGE
.comm _PAGE_SIZE,4,2 ; @PAGE_SIZE
.comm _GFP_KERNEL,4,2 ; @GFP_KERNEL
.comm _pidmap_lock,4,2 ; @pidmap_lock
.no_dead_strip _alloc_pidmap
.subsections_via_symbols
| assembly_file_137517.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function jt8ew9_limits
_jt8ew9_limits: ## @jt8ew9_limits
.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
cmpl $2, 4(%rdi)
jg LBB0_2
## %bb.1:
movl $1, (%rbx)
LBB0_2:
movq _SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MIN@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
movl $59, %edx
callq _smiapp_replace_limit
movq _SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MAX@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
movl $6000, %edx ## imm = 0x1770
callq _smiapp_replace_limit
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MIN,4,2 ## @SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MIN
.comm _SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MAX,4,2 ## @SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MAX
.no_dead_strip _jt8ew9_limits
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function jt8ew9_limits
_jt8ew9_limits: ; @jt8ew9_limits
.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 w8, [x0, #4]
cmp w8, #2
b.gt LBB0_2
; %bb.1:
mov w8, #1
str w8, [x19]
LBB0_2:
Lloh0:
adrp x8, _SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MIN@GOTPAGE
Lloh1:
ldr x8, [x8, _SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MIN@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
mov x0, x19
mov w2, #59
bl _smiapp_replace_limit
Lloh3:
adrp x8, _SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MAX@GOTPAGE
Lloh4:
ldr x8, [x8, _SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MAX@GOTPAGEOFF]
Lloh5:
ldr w1, [x8]
mov x0, x19
mov w2, #6000
bl _smiapp_replace_limit
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MIN,4,2 ; @SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MIN
.comm _SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MAX,4,2 ; @SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MAX
.no_dead_strip _jt8ew9_limits
.subsections_via_symbols
| AnghaBench/linux/drivers/media/i2c/smiapp/extr_smiapp-quirk.c_jt8ew9_limits.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function rd_regl
_rd_regl: ## @rd_regl
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %esi, %eax
addq (%rdi), %rax
movq %rax, %rdi
callq _inl
movl %eax, %edi
popq %rbp
jmp _le32_to_cpu ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _rd_regl
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function rd_regl
_rd_regl: ; @rd_regl
.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
ldr x8, [x0]
add x0, x8, w1, uxtw
bl _inl
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _le32_to_cpu
.cfi_endproc
; -- End function
.no_dead_strip _rd_regl
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/drivers/atm/extr_horizon.c_rd_regl.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_worktree_open__open_from_nonworktree_fails ## -- Begin function test_worktree_open__open_from_nonworktree_fails
.p2align 4, 0x90
_test_worktree_open__open_from_nonworktree_fails: ## @test_worktree_open__open_from_nonworktree_fails
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq _fixture@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq -8(%rbp), %rdi
callq _git_worktree_open_from_repository
movl %eax, %edi
callq _cl_git_fail
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _fixture,4,2 ## @fixture
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_worktree_open__open_from_nonworktree_fails ; -- Begin function test_worktree_open__open_from_nonworktree_fails
.p2align 2
_test_worktree_open__open_from_nonworktree_fails: ; @test_worktree_open__open_from_nonworktree_fails
.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
Lloh0:
adrp x8, _fixture@GOTPAGE
Lloh1:
ldr x8, [x8, _fixture@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
add x0, sp, #8
bl _git_worktree_open_from_repository
bl _cl_git_fail
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _fixture,4,2 ; @fixture
.subsections_via_symbols
| AnghaBench/libgit2/tests/worktree/extr_open.c_test_worktree_open__open_from_nonworktree_fails.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _get_filter_5tap_64p ## -- Begin function get_filter_5tap_64p
.p2align 4, 0x90
_get_filter_5tap_64p: ## @get_filter_5tap_64p
.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 _dc_fixpt_one@GOTPCREL(%rip), %rax
cmpq %rdi, (%rax)
jle LBB0_2
## %bb.1:
movq _filter_5tap_64p_upscale@GOTPCREL(%rip), %rax
jmp LBB0_7
LBB0_2:
movq %rdi, %rbx
movl $4, %edi
movl $3, %esi
callq _dc_fixpt_from_fraction
cmpq %rbx, %rax
jle LBB0_4
## %bb.3:
movq _filter_5tap_64p_117@GOTPCREL(%rip), %rax
jmp LBB0_7
LBB0_4:
movl $5, %edi
movl $3, %esi
callq _dc_fixpt_from_fraction
cmpq %rbx, %rax
jle LBB0_5
## %bb.6:
movq _filter_5tap_64p_150@GOTPCREL(%rip), %rax
jmp LBB0_7
LBB0_5:
movq _filter_5tap_64p_183@GOTPCREL(%rip), %rax
LBB0_7:
movq (%rax), %rax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _dc_fixpt_one,8,3 ## @dc_fixpt_one
.comm _filter_5tap_64p_upscale,8,3 ## @filter_5tap_64p_upscale
.comm _filter_5tap_64p_117,8,3 ## @filter_5tap_64p_117
.comm _filter_5tap_64p_150,8,3 ## @filter_5tap_64p_150
.comm _filter_5tap_64p_183,8,3 ## @filter_5tap_64p_183
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _get_filter_5tap_64p ; -- Begin function get_filter_5tap_64p
.p2align 2
_get_filter_5tap_64p: ; @get_filter_5tap_64p
.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
Lloh0:
adrp x8, _dc_fixpt_one@GOTPAGE
Lloh1:
ldr x8, [x8, _dc_fixpt_one@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
cmp x8, x0
b.le LBB0_2
; %bb.1:
Lloh3:
adrp x8, _filter_5tap_64p_upscale@GOTPAGE
Lloh4:
ldr x8, [x8, _filter_5tap_64p_upscale@GOTPAGEOFF]
b LBB0_5
LBB0_2:
mov x19, x0
mov w0, #4
mov w1, #3
bl _dc_fixpt_from_fraction
cmp x0, x19
b.le LBB0_4
; %bb.3:
Lloh5:
adrp x8, _filter_5tap_64p_117@GOTPAGE
Lloh6:
ldr x8, [x8, _filter_5tap_64p_117@GOTPAGEOFF]
b LBB0_5
LBB0_4:
mov w0, #5
mov w1, #3
bl _dc_fixpt_from_fraction
Lloh7:
adrp x8, _filter_5tap_64p_183@GOTPAGE
Lloh8:
ldr x8, [x8, _filter_5tap_64p_183@GOTPAGEOFF]
Lloh9:
adrp x9, _filter_5tap_64p_150@GOTPAGE
Lloh10:
ldr x9, [x9, _filter_5tap_64p_150@GOTPAGEOFF]
cmp x0, x19
csel x8, x9, x8, gt
LBB0_5:
ldr x0, [x8]
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 AdrpLdrGot Lloh3, Lloh4
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGot Lloh9, Lloh10
.loh AdrpLdrGot Lloh7, Lloh8
.cfi_endproc
; -- End function
.comm _dc_fixpt_one,8,3 ; @dc_fixpt_one
.comm _filter_5tap_64p_upscale,8,3 ; @filter_5tap_64p_upscale
.comm _filter_5tap_64p_117,8,3 ; @filter_5tap_64p_117
.comm _filter_5tap_64p_150,8,3 ; @filter_5tap_64p_150
.comm _filter_5tap_64p_183,8,3 ; @filter_5tap_64p_183
.subsections_via_symbols
| AnghaBench/linux/drivers/gpu/drm/amd/display/dc/dce/extr_dce_scl_filters.c_get_filter_5tap_64p.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _gsc_hw_set_input_addr ## -- Begin function gsc_hw_set_input_addr
.p2align 4, 0x90
_gsc_hw_set_input_addr: ## @gsc_hw_set_input_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 %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, %r15d
movq %rsi, %r13
movq %rdi, %r14
leaq 8(%rsi), %rdx
leaq 4(%rsi), %rcx
leaq L_.str(%rip), %rdi
movl %r15d, %esi
movq %r13, %r8
callq _pr_debug
movl 8(%r13), %r12d
movq (%r14), %rbx
movl %r15d, %edi
callq _GSC_IN_BASE_ADDR_Y
addq %rax, %rbx
movl %r12d, %edi
movq %rbx, %rsi
callq _writel
movl 4(%r13), %r12d
movq (%r14), %rbx
movl %r15d, %edi
callq _GSC_IN_BASE_ADDR_CB
addq %rax, %rbx
movl %r12d, %edi
movq %rbx, %rsi
callq _writel
movl (%r13), %r12d
movq (%r14), %rbx
movl %r15d, %edi
callq _GSC_IN_BASE_ADDR_CR
addq %rax, %rbx
movl %r12d, %edi
movq %rbx, %rsi
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _writel ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "src_buf[%d]: %pad, cb: %pad, cr: %pad"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _gsc_hw_set_input_addr ; -- Begin function gsc_hw_set_input_addr
.p2align 2
_gsc_hw_set_input_addr: ; @gsc_hw_set_input_addr
.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, x2
mov x20, x1
mov x21, x0
add x2, x1, #8
add x3, x1, #4
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
mov x1, x19
mov x4, x20
bl _pr_debug
ldr w22, [x20, #8]
ldr x23, [x21]
mov x0, x19
bl _GSC_IN_BASE_ADDR_Y
add x1, x0, x23
mov x0, x22
bl _writel
ldr w22, [x20, #4]
ldr x23, [x21]
mov x0, x19
bl _GSC_IN_BASE_ADDR_CB
add x1, x0, x23
mov x0, x22
bl _writel
ldr w20, [x20]
ldr x21, [x21]
mov x0, x19
bl _GSC_IN_BASE_ADDR_CR
add x1, x0, x21
mov x0, x20
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
b _writel
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "src_buf[%d]: %pad, cb: %pad, cr: %pad"
.subsections_via_symbols
| AnghaBench/linux/drivers/media/platform/exynos-gsc/extr_gsc-regs.c_gsc_hw_set_input_addr.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _luaK_getlabel ## -- Begin function luaK_getlabel
.p2align 4, 0x90
_luaK_getlabel: ## @luaK_getlabel
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl 4(%rdi), %eax
movl %eax, (%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 _luaK_getlabel ; -- Begin function luaK_getlabel
.p2align 2
_luaK_getlabel: ; @luaK_getlabel
.cfi_startproc
; %bb.0:
ldr w8, [x0, #4]
str w8, [x0]
mov x0, x8
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/mjolnir/Mjolnir/lua/extr_lcode.c_luaK_getlabel.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function smdk_audio_probe
_smdk_audio_probe: ## @smdk_audio_probe
.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 %rdi, %r12
movq (%rdi), %r15
movq _smdk@GOTPCREL(%rip), %rax
movq %rdi, (%rax)
movq _GFP_KERNEL@GOTPCREL(%rip), %rax
movl (%rax), %edx
movl $4, %esi
callq _devm_kzalloc
testq %rax, %rax
je LBB0_1
## %bb.2:
movq %rax, %r14
testq %r15, %r15
je LBB0_6
## %bb.3:
movq _smdk_dai@GOTPCREL(%rip), %rbx
movq (%rbx), %rax
movq (%rax), %rax
movq $0, 8(%rax)
leaq L_.str(%rip), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq _of_parse_phandle
movq (%rbx), %rcx
movq (%rcx), %rdx
movq %rax, (%rdx)
testq %rax, %rax
jne LBB0_5
## %bb.4:
leaq L_.str.1(%rip), %rsi
movq %r12, %rdi
xorl %eax, %eax
callq _dev_err
movq (%rbx), %rcx
movq (%rcx), %rax
movq (%rax), %rax
LBB0_5:
movq 8(%rcx), %rcx
movq $0, 8(%rcx)
movq %rax, (%rcx)
LBB0_6:
movq _samsung_wm8994_of_match@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _of_match_ptr
movl %eax, %edi
movq %r12, %rsi
callq _of_match_device
testq %rax, %rax
je LBB0_8
## %bb.7:
movq (%rax), %rax
movl (%rax), %eax
movl %eax, (%r14)
LBB0_8:
movq %r12, %rdi
movq %r14, %rsi
callq _platform_set_drvdata
movq _smdk@GOTPCREL(%rip), %rsi
movq %r12, %rdi
callq _devm_snd_soc_register_card
testl %eax, %eax
je LBB0_9
## %bb.10:
movl %eax, %ebx
leaq L_.str.2(%rip), %rsi
movq %r12, %rdi
movl %eax, %edx
xorl %eax, %eax
callq _dev_err
jmp LBB0_11
LBB0_1:
movq _ENOMEM@GOTPCREL(%rip), %rax
xorl %ebx, %ebx
subl (%rax), %ebx
jmp LBB0_11
LBB0_9:
xorl %ebx, %ebx
LBB0_11:
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _smdk,8,3 ## @smdk
.comm _GFP_KERNEL,4,2 ## @GFP_KERNEL
.comm _ENOMEM,4,2 ## @ENOMEM
.comm _smdk_dai,8,3 ## @smdk_dai
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "samsung,i2s-controller"
L_.str.1: ## @.str.1
.asciz "Property 'samsung,i2s-controller' missing or invalid\n"
.comm _EINVAL,4,2 ## @EINVAL
.comm _samsung_wm8994_of_match,4,2 ## @samsung_wm8994_of_match
L_.str.2: ## @.str.2
.asciz "snd_soc_register_card() failed:%d\n"
.no_dead_strip _smdk_audio_probe
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function smdk_audio_probe
_smdk_audio_probe: ; @smdk_audio_probe
.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, x0
ldr x21, [x0]
Lloh0:
adrp x8, _smdk@GOTPAGE
Lloh1:
ldr x8, [x8, _smdk@GOTPAGEOFF]
Lloh2:
str x0, [x8]
Lloh3:
adrp x8, _GFP_KERNEL@GOTPAGE
Lloh4:
ldr x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
ldr w2, [x8]
mov w1, #4
bl _devm_kzalloc
cbz x0, LBB0_9
; %bb.1:
mov x20, x0
cbz x21, LBB0_5
; %bb.2:
Lloh6:
adrp x22, _smdk_dai@GOTPAGE
Lloh7:
ldr x22, [x22, _smdk_dai@GOTPAGEOFF]
ldr x8, [x22]
ldr x8, [x8]
str xzr, [x8, #8]
Lloh8:
adrp x1, l_.str@PAGE
Lloh9:
add x1, x1, l_.str@PAGEOFF
mov x0, x21
mov w2, #0
bl _of_parse_phandle
ldr x8, [x22]
ldr x9, [x8]
str x0, [x9]
cbnz x0, LBB0_4
; %bb.3:
Lloh10:
adrp x1, l_.str.1@PAGE
Lloh11:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x19
bl _dev_err
ldr x8, [x22]
ldr x9, [x8]
ldr x0, [x9]
LBB0_4:
ldr x8, [x8, #8]
stp x0, xzr, [x8]
LBB0_5:
Lloh12:
adrp x8, _samsung_wm8994_of_match@GOTPAGE
Lloh13:
ldr x8, [x8, _samsung_wm8994_of_match@GOTPAGEOFF]
Lloh14:
ldr w0, [x8]
bl _of_match_ptr
mov x1, x19
bl _of_match_device
cbz x0, LBB0_7
; %bb.6:
ldr x8, [x0]
ldr w8, [x8]
str w8, [x20]
LBB0_7:
mov x0, x19
mov x1, x20
bl _platform_set_drvdata
Lloh15:
adrp x1, _smdk@GOTPAGE
Lloh16:
ldr x1, [x1, _smdk@GOTPAGEOFF]
mov x0, x19
bl _devm_snd_soc_register_card
mov x20, x0
cbz w0, LBB0_10
; %bb.8:
str x20, [sp]
Lloh17:
adrp x1, l_.str.2@PAGE
Lloh18:
add x1, x1, l_.str.2@PAGEOFF
mov x0, x19
bl _dev_err
b LBB0_10
LBB0_9:
Lloh19:
adrp x8, _ENOMEM@GOTPAGE
Lloh20:
ldr x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
ldr w8, [x8]
neg w20, w8
LBB0_10:
mov x0, x20
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
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotStr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.loh AdrpLdrGot Lloh15, Lloh16
.loh AdrpAdd Lloh17, Lloh18
.loh AdrpLdrGotLdr Lloh19, Lloh20, Lloh21
.cfi_endproc
; -- End function
.comm _smdk,8,3 ; @smdk
.comm _GFP_KERNEL,4,2 ; @GFP_KERNEL
.comm _ENOMEM,4,2 ; @ENOMEM
.comm _smdk_dai,8,3 ; @smdk_dai
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "samsung,i2s-controller"
l_.str.1: ; @.str.1
.asciz "Property 'samsung,i2s-controller' missing or invalid\n"
.comm _EINVAL,4,2 ; @EINVAL
.comm _samsung_wm8994_of_match,4,2 ; @samsung_wm8994_of_match
l_.str.2: ; @.str.2
.asciz "snd_soc_register_card() failed:%d\n"
.no_dead_strip _smdk_audio_probe
.subsections_via_symbols
| AnghaBench/linux/sound/soc/samsung/extr_smdk_wm8994.c_smdk_audio_probe.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function hash_file
_hash_file: ## @hash_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 %r12
pushq %rbx
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %r15
testq %rsi, %rsi
je LBB0_5
## %bb.1:
leaq L_.str(%rip), %rsi
movq %rbx, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_5
## %bb.2:
leaq L_.str.1(%rip), %rsi
movq %rbx, %rdi
callq _fopen
testq %rax, %rax
je LBB0_9
## %bb.3:
movq %rax, %r12
movq %rax, %rdi
callq *(%r15)
movq %rax, %r15
movq %r12, %rdi
callq _fclose
testq %r15, %r15
jne LBB0_6
LBB0_4:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.3(%rip), %rsi
xorl %eax, %eax
callq _fprintf
jmp LBB0_10
LBB0_5:
movq _stdin@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq *(%r15)
movq %rax, %r15
testq %r15, %r15
je LBB0_4
LBB0_6:
testl %r14d, %r14d
je LBB0_8
## %bb.7:
testq %rbx, %rbx
leaq L_.str(%rip), %rdx
cmovneq %rbx, %rdx
leaq L_.str.4(%rip), %rdi
xorl %ebx, %ebx
movq %r15, %rsi
xorl %eax, %eax
callq _printf
jmp LBB0_11
LBB0_8:
leaq L_.str.5(%rip), %rdi
xorl %ebx, %ebx
movq %r15, %rsi
xorl %eax, %eax
callq _printf
jmp LBB0_11
LBB0_9:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.2(%rip), %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq _fprintf
LBB0_10:
movl $1, %ebx
LBB0_11:
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "-"
.comm _stdin,8,3 ## @stdin
L_.str.1: ## @.str.1
.asciz "r"
.comm _stderr,4,2 ## @stderr
L_.str.2: ## @.str.2
.asciz "Failed to open '%s'\n"
L_.str.3: ## @.str.3
.asciz "Failed to generate hash\n"
L_.str.4: ## @.str.4
.asciz "%s %s\n"
L_.str.5: ## @.str.5
.asciz "%s\n"
.no_dead_strip _hash_file
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function hash_file
_hash_file: ; @hash_file
.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 x20, x2
mov x19, x1
mov x21, x0
cbz x1, LBB0_5
; %bb.1:
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
mov x0, x19
bl _strcmp
cbz w0, LBB0_5
; %bb.2:
Lloh2:
adrp x1, l_.str.1@PAGE
Lloh3:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x19
bl _fopen
cbz x0, LBB0_10
; %bb.3:
mov x22, x0
ldr x8, [x21]
blr x8
mov x21, x0
mov x0, x22
bl _fclose
cbnz x21, LBB0_6
LBB0_4:
Lloh4:
adrp x8, _stderr@GOTPAGE
Lloh5:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
ldr w0, [x8]
Lloh7:
adrp x1, l_.str.3@PAGE
Lloh8:
add x1, x1, l_.str.3@PAGEOFF
b LBB0_11
LBB0_5:
ldr x8, [x21]
Lloh9:
adrp x9, _stdin@GOTPAGE
Lloh10:
ldr x9, [x9, _stdin@GOTPAGEOFF]
Lloh11:
ldr x0, [x9]
blr x8
mov x21, x0
cbz x21, LBB0_4
LBB0_6:
cbz w20, LBB0_8
; %bb.7:
Lloh12:
adrp x8, l_.str@PAGE
Lloh13:
add x8, x8, l_.str@PAGEOFF
cmp x19, #0
csel x8, x8, x19, eq
str x8, [sp]
Lloh14:
adrp x0, l_.str.4@PAGE
Lloh15:
add x0, x0, l_.str.4@PAGEOFF
b LBB0_9
LBB0_8:
Lloh16:
adrp x0, l_.str.5@PAGE
Lloh17:
add x0, x0, l_.str.5@PAGEOFF
LBB0_9:
mov x1, x21
bl _printf
mov w0, #0
b LBB0_12
LBB0_10:
Lloh18:
adrp x8, _stderr@GOTPAGE
Lloh19:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
ldr w0, [x8]
str x19, [sp]
Lloh21:
adrp x1, l_.str.2@PAGE
Lloh22:
add x1, x1, l_.str.2@PAGEOFF
LBB0_11:
bl _fprintf
mov w0, #1
LBB0_12:
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
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpAdd Lloh14, Lloh15
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpAdd Lloh21, Lloh22
.loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "-"
.comm _stdin,8,3 ; @stdin
l_.str.1: ; @.str.1
.asciz "r"
.comm _stderr,4,2 ; @stderr
l_.str.2: ; @.str.2
.asciz "Failed to open '%s'\n"
l_.str.3: ; @.str.3
.asciz "Failed to generate hash\n"
l_.str.4: ; @.str.4
.asciz "%s %s\n"
l_.str.5: ; @.str.5
.asciz "%s\n"
.no_dead_strip _hash_file
.subsections_via_symbols
| AnghaBench/lede/scripts/extr_mkhash.c_hash_file.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ngx_http_uwsgi_init_params
_ngx_http_uwsgi_init_params: ## @ngx_http_uwsgi_init_params
.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 $152, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
cmpq $0, 8(%rdx)
jne LBB0_4
## %bb.1:
movq %rcx, %r13
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq 8(%rdx), %r12
testq %rcx, %rcx
jne LBB0_7
## %bb.2:
cmpq $0, (%rbx)
jne LBB0_7
## %bb.3:
movq $1, (%r12)
LBB0_4:
movq _NGX_OK@GOTPCREL(%rip), %rax
LBB0_5:
movq (%rax), %rax
LBB0_6:
addq $152, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_7:
movl (%r14), %edi
movl $64, %esi
movl $1, %edx
callq _ngx_array_create
movq %rax, 16(%r15)
testq %rax, %rax
je LBB0_44
## %bb.8:
movl (%r14), %edi
movl $512, %esi ## imm = 0x200
movl $1, %edx
callq _ngx_array_create
movq %rax, 24(%r15)
testq %rax, %rax
je LBB0_44
## %bb.9:
movl 4(%r14), %esi
leaq -104(%rbp), %rdi
movl $4, %edx
movl $32, %ecx
callq _ngx_array_init
movq _NGX_OK@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_44
## %bb.10:
movq %r12, -80(%rbp) ## 8-byte Spill
movq (%rbx), %rax
testq %rax, %rax
je LBB0_12
## %bb.11:
movq (%rax), %rbx
movq 8(%rax), %r12
jmp LBB0_13
LBB0_12:
xorl %ebx, %ebx
xorl %r12d, %r12d
LBB0_13:
testq %r13, %r13
je LBB0_28
## %bb.14:
movl 4(%r14), %esi
leaq -64(%rbp), %rdi
movl $4, %edx
movl $32, %ecx
callq _ngx_array_init
movq _NGX_OK@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_44
## %bb.15:
testq %rbx, %rbx
je LBB0_18
LBB0_16: ## =>This Inner Loop Header: Depth=1
leaq -64(%rbp), %rdi
callq _ngx_array_push
testq %rax, %rax
je LBB0_44
## %bb.17: ## in Loop: Header=BB0_16 Depth=1
movups (%r12), %xmm0
movups 16(%r12), %xmm1
movups %xmm1, 16(%rax)
movups %xmm0, (%rax)
addq $32, %r12
decq %rbx
jne LBB0_16
LBB0_18:
movq %r14, -48(%rbp) ## 8-byte Spill
cmpl $0, 8(%r13)
je LBB0_27
## %bb.19:
leaq 8(%r13), %rbx
jmp LBB0_21
LBB0_20: ## in Loop: Header=BB0_21 Depth=1
leaq 32(%r13), %rbx
cmpl $0, 32(%r13)
leaq 24(%r13), %r13
je LBB0_27
LBB0_21: ## =>This Loop Header: Depth=1
## Child Loop BB0_23 Depth 2
movq -64(%rbp), %r12
testq %r12, %r12
je LBB0_25
## %bb.22: ## in Loop: Header=BB0_21 Depth=1
movq -56(%rbp), %r14
addq $24, %r14
.p2align 4, 0x90
LBB0_23: ## Parent Loop BB0_21 Depth=1
## => This Inner Loop Header: Depth=2
movq 16(%r13), %rdi
movq (%r14), %rsi
callq _ngx_strcasecmp
testq %rax, %rax
je LBB0_20
## %bb.24: ## in Loop: Header=BB0_23 Depth=2
addq $32, %r14
decq %r12
jne LBB0_23
LBB0_25: ## in Loop: Header=BB0_21 Depth=1
leaq -64(%rbp), %rdi
callq _ngx_array_push
testq %rax, %rax
je LBB0_44
## %bb.26: ## in Loop: Header=BB0_21 Depth=1
movups (%rbx), %xmm0
movups %xmm0, 16(%rax)
movq (%r13), %rcx
movq %rcx, 8(%rax)
movl $1, (%rax)
jmp LBB0_20
LBB0_27:
movq -64(%rbp), %rbx
movq -56(%rbp), %r12
movq -48(%rbp), %r14 ## 8-byte Reload
LBB0_28:
leaq 16(%r15), %rax
movq %rax, -48(%rbp) ## 8-byte Spill
testq %rbx, %rbx
je LBB0_42
## %bb.29:
leaq 24(%r15), %rax
movq %rax, -72(%rbp) ## 8-byte Spill
leaq 32(%r15), %rax
movq %rax, -88(%rbp) ## 8-byte Spill
addq $24, %r12
movq _ngx_http_script_copy_len_code@GOTPCREL(%rip), %r13
LBB0_30: ## =>This Inner Loop Header: Depth=1
cmpl $6, -8(%r12)
jb LBB0_34
## %bb.31: ## in Loop: Header=BB0_30 Depth=1
movq (%r12), %rdi
leaq L_.str(%rip), %rsi
movl $5, %edx
callq _ngx_strncmp
testq %rax, %rax
jne LBB0_34
## %bb.32: ## in Loop: Header=BB0_30 Depth=1
leaq -104(%rbp), %rdi
callq _ngx_array_push
testq %rax, %rax
je LBB0_44
## %bb.33: ## in Loop: Header=BB0_30 Depth=1
movq %rax, %r13
movl -8(%r12), %esi
addl $-5, %esi
movl %esi, 8(%rax)
movq (%r12), %rdi
addq $5, %rdi
movq %rdi, 16(%rax)
callq _ngx_hash_key_lc
movl %eax, 24(%r13)
movq $1, (%r13)
cmpq $0, -16(%r12)
movq _ngx_http_script_copy_len_code@GOTPCREL(%rip), %r13
je LBB0_41
LBB0_34: ## in Loop: Header=BB0_30 Depth=1
movq -48(%rbp), %rax ## 8-byte Reload
movq (%rax), %rdi
movl $16, %esi
callq _ngx_array_push_n
testq %rax, %rax
je LBB0_44
## %bb.35: ## in Loop: Header=BB0_30 Depth=1
movq (%r13), %rcx
movq %rcx, 8(%rax)
movl -8(%r12), %ecx
movl %ecx, (%rax)
movq -48(%rbp), %rax ## 8-byte Reload
movq (%rax), %rdi
movl $16, %esi
callq _ngx_array_push_n
testq %rax, %rax
je LBB0_44
## %bb.36: ## in Loop: Header=BB0_30 Depth=1
movq (%r13), %rcx
movq %rcx, 8(%rax)
movl -24(%r12), %ecx
movl %ecx, (%rax)
movl -8(%r12), %esi
addl $23, %esi
andl $-8, %esi
movq -72(%rbp), %r13 ## 8-byte Reload
movq (%r13), %rdi
callq _ngx_array_push_n
testq %rax, %rax
je LBB0_44
## %bb.37: ## in Loop: Header=BB0_30 Depth=1
movq _ngx_http_script_copy_code@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rcx, 8(%rax)
movl -8(%r12), %edx
movl %edx, (%rax)
addq $64, %rax
movq (%r12), %rsi
movq %rax, %rdi
callq _ngx_memcpy
leaq -144(%rbp), %rdi
movl $40, %esi
callq _ngx_memzero
movq %r14, -112(%rbp)
leaq -16(%r12), %rax
movq %rax, -120(%rbp)
movq -88(%rbp), %rax ## 8-byte Reload
movq %rax, -128(%rbp)
movq -48(%rbp), %rax ## 8-byte Reload
movq %rax, -136(%rbp)
movq %r13, -144(%rbp)
leaq -144(%rbp), %rdi
callq _ngx_http_script_compile
movq _NGX_OK@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_44
## %bb.38: ## in Loop: Header=BB0_30 Depth=1
movq -48(%rbp), %rax ## 8-byte Reload
movq (%rax), %rdi
movl $8, %esi
callq _ngx_array_push_n
testq %rax, %rax
je LBB0_44
## %bb.39: ## in Loop: Header=BB0_30 Depth=1
movq $0, (%rax)
movq -72(%rbp), %rax ## 8-byte Reload
movq (%rax), %rdi
movl $8, %esi
callq _ngx_array_push_n
testq %rax, %rax
je LBB0_44
## %bb.40: ## in Loop: Header=BB0_30 Depth=1
movq $0, (%rax)
movq _ngx_http_script_copy_len_code@GOTPCREL(%rip), %r13
LBB0_41: ## in Loop: Header=BB0_30 Depth=1
addq $32, %r12
decq %rbx
jne LBB0_30
LBB0_42:
movq -48(%rbp), %rax ## 8-byte Reload
movq (%rax), %rdi
movl $8, %esi
callq _ngx_array_push_n
testq %rax, %rax
je LBB0_44
## %bb.43:
movq $0, (%rax)
movq -104(%rbp), %rdx
movq %rdx, (%r15)
movq -80(%rbp), %rax ## 8-byte Reload
movq %rax, -152(%rbp)
movq _ngx_hash_key_lc@GOTPCREL(%rip), %rax
movq %rax, -160(%rbp)
movabsq $274877907456, %rax ## imm = 0x4000000200
movq %rax, -192(%rbp)
leaq L_.str.1(%rip), %rax
movq %rax, -184(%rbp)
movl (%r14), %eax
movl %eax, -168(%rbp)
movq $0, -176(%rbp)
movq -96(%rbp), %rsi
leaq -192(%rbp), %rdi
callq _ngx_hash_init
jmp LBB0_6
LBB0_44:
movq _NGX_ERROR@GOTPCREL(%rip), %rax
jmp LBB0_5
.cfi_endproc
## -- End function
.comm _NGX_OK,8,3 ## @NGX_OK
.comm _NGX_ERROR,8,3 ## @NGX_ERROR
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "HTTP_"
.comm _ngx_http_script_copy_len_code,8,3 ## @ngx_http_script_copy_len_code
.comm _ngx_http_script_copy_code,8,3 ## @ngx_http_script_copy_code
L_.str.1: ## @.str.1
.asciz "uwsgi_params_hash"
.no_dead_strip _ngx_http_uwsgi_init_params
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function ngx_http_uwsgi_init_params
lCPI0_0:
.long 512 ; 0x200
.long 64 ; 0x40
.section __TEXT,__text,regular,pure_instructions
.p2align 2
_ngx_http_uwsgi_init_params: ; @ngx_http_uwsgi_init_params
.cfi_startproc
; %bb.0:
sub sp, sp, #224
.cfi_def_cfa_offset 224
stp x28, x27, [sp, #128] ; 16-byte Folded Spill
stp x26, x25, [sp, #144] ; 16-byte Folded Spill
stp x24, x23, [sp, #160] ; 16-byte Folded Spill
stp x22, x21, [sp, #176] ; 16-byte Folded Spill
stp x20, x19, [sp, #192] ; 16-byte Folded Spill
stp x29, x30, [sp, #208] ; 16-byte Folded Spill
add x29, sp, #208
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.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 x23, x2
ldr x8, [x23, #8]!
cbnz x8, LBB0_4
; %bb.1:
mov x21, x3
mov x20, x2
mov x22, x1
mov x19, x0
cbnz x3, LBB0_7
; %bb.2:
ldr x8, [x22]
cbnz x8, LBB0_7
; %bb.3:
mov w8, #1
str x8, [x23]
LBB0_4:
Lloh0:
adrp x8, _NGX_OK@GOTPAGE
Lloh1:
ldr x8, [x8, _NGX_OK@GOTPAGEOFF]
LBB0_5:
ldr x0, [x8]
LBB0_6:
ldp x29, x30, [sp, #208] ; 16-byte Folded Reload
ldp x20, x19, [sp, #192] ; 16-byte Folded Reload
ldp x22, x21, [sp, #176] ; 16-byte Folded Reload
ldp x24, x23, [sp, #160] ; 16-byte Folded Reload
ldp x26, x25, [sp, #144] ; 16-byte Folded Reload
ldp x28, x27, [sp, #128] ; 16-byte Folded Reload
add sp, sp, #224
ret
LBB0_7:
ldr w0, [x19]
mov w1, #64
mov w2, #1
bl _ngx_array_create
mov x24, x20
str x0, [x24, #16]!
cbz x0, LBB0_44
; %bb.8:
ldr w0, [x19]
mov w1, #512
mov w2, #1
bl _ngx_array_create
mov x25, x20
str x0, [x25, #24]!
cbz x0, LBB0_44
; %bb.9:
ldr w1, [x19, #4]
sub x0, x29, #96
mov w2, #4
mov w3, #32
bl _ngx_array_init
Lloh2:
adrp x26, _NGX_OK@GOTPAGE
Lloh3:
ldr x26, [x26, _NGX_OK@GOTPAGEOFF]
ldr x8, [x26]
cmp x0, x8
b.ne LBB0_44
; %bb.10:
ldr x8, [x22]
cbz x8, LBB0_12
; %bb.11:
ldp x27, x22, [x8]
b LBB0_13
LBB0_12:
mov x27, #0
mov x22, #0
LBB0_13:
cbz x21, LBB0_28
; %bb.14:
ldr w1, [x19, #4]
add x0, sp, #96
mov w2, #4
mov w3, #32
bl _ngx_array_init
ldr x8, [x26]
cmp x0, x8
b.ne LBB0_44
; %bb.15:
cbz x27, LBB0_18
LBB0_16: ; =>This Inner Loop Header: Depth=1
add x0, sp, #96
bl _ngx_array_push
cbz x0, LBB0_44
; %bb.17: ; in Loop: Header=BB0_16 Depth=1
ldp q0, q1, [x22], #32
stp q0, q1, [x0]
subs x27, x27, #1
b.ne LBB0_16
LBB0_18:
mov x26, x21
ldr w8, [x26, #8]!
cbz w8, LBB0_27
; %bb.19:
mov w22, #1
b LBB0_21
LBB0_20: ; in Loop: Header=BB0_21 Depth=1
ldr w8, [x21, #32]!
mov x26, x21
sub x21, x21, #8
cbz w8, LBB0_27
LBB0_21: ; =>This Loop Header: Depth=1
; Child Loop BB0_23 Depth 2
ldr x27, [sp, #96]
cbz x27, LBB0_25
; %bb.22: ; in Loop: Header=BB0_21 Depth=1
ldr x8, [sp, #104]
add x28, x8, #24
LBB0_23: ; Parent Loop BB0_21 Depth=1
; => This Inner Loop Header: Depth=2
ldr x0, [x21, #16]
ldr x1, [x28]
bl _ngx_strcasecmp
cbz x0, LBB0_20
; %bb.24: ; in Loop: Header=BB0_23 Depth=2
add x28, x28, #32
subs x27, x27, #1
b.ne LBB0_23
LBB0_25: ; in Loop: Header=BB0_21 Depth=1
add x0, sp, #96
bl _ngx_array_push
cbz x0, LBB0_44
; %bb.26: ; in Loop: Header=BB0_21 Depth=1
ldr q0, [x26]
str q0, [x0, #16]
ldr x8, [x21]
str x8, [x0, #8]
str w22, [x0]
b LBB0_20
LBB0_27:
ldp x27, x22, [sp, #96]
LBB0_28:
cbz x27, LBB0_42
; %bb.29:
add x28, x20, #32
add x21, x22, #16
Lloh4:
adrp x26, _ngx_http_script_copy_len_code@GOTPAGE
Lloh5:
ldr x26, [x26, _ngx_http_script_copy_len_code@GOTPAGEOFF]
Lloh6:
adrp x22, _ngx_http_script_copy_code@GOTPAGE
Lloh7:
ldr x22, [x22, _ngx_http_script_copy_code@GOTPAGEOFF]
LBB0_30: ; =>This Inner Loop Header: Depth=1
ldr w8, [x21]
cmp w8, #6
b.lo LBB0_34
; %bb.31: ; in Loop: Header=BB0_30 Depth=1
ldr x0, [x21, #8]
Lloh8:
adrp x1, l_.str@PAGE
Lloh9:
add x1, x1, l_.str@PAGEOFF
mov w2, #5
bl _ngx_strncmp
cbnz x0, LBB0_34
; %bb.32: ; in Loop: Header=BB0_30 Depth=1
str x28, [sp] ; 8-byte Folded Spill
mov x28, x26
mov x26, x22
sub x0, x29, #96
bl _ngx_array_push
cbz x0, LBB0_44
; %bb.33: ; in Loop: Header=BB0_30 Depth=1
mov x22, x0
ldr w8, [x21]
sub w1, w8, #5
str w1, [x0, #8]
ldr x8, [x21, #8]
add x0, x8, #5
str x0, [x22, #16]
bl _ngx_hash_key_lc
str w0, [x22, #24]
mov w8, #1
str x8, [x22]
ldur x8, [x21, #-8]
mov x22, x26
mov x26, x28
ldr x28, [sp] ; 8-byte Folded Reload
cbz x8, LBB0_41
LBB0_34: ; in Loop: Header=BB0_30 Depth=1
ldr x0, [x24]
mov w1, #16
bl _ngx_array_push_n
cbz x0, LBB0_44
; %bb.35: ; in Loop: Header=BB0_30 Depth=1
ldr x8, [x26]
str x8, [x0, #8]
ldr w8, [x21]
str w8, [x0]
ldr x0, [x24]
mov w1, #16
bl _ngx_array_push_n
cbz x0, LBB0_44
; %bb.36: ; in Loop: Header=BB0_30 Depth=1
ldr x8, [x26]
str x8, [x0, #8]
ldur w8, [x21, #-16]
str w8, [x0]
ldr w8, [x21]
add w8, w8, #23
and w1, w8, #0xfffffff8
ldr x0, [x25]
bl _ngx_array_push_n
cbz x0, LBB0_44
; %bb.37: ; in Loop: Header=BB0_30 Depth=1
ldr x8, [x22]
str x8, [x0, #8]
ldr w2, [x21]
str w2, [x0], #64
ldr x1, [x21, #8]
bl _ngx_memcpy
add x0, sp, #8
mov w1, #40
bl _ngx_memzero
sub x8, x21, #8
stp x8, x19, [sp, #32]
stp x24, x28, [sp, #16]
str x25, [sp, #8]
add x0, sp, #8
bl _ngx_http_script_compile
Lloh10:
adrp x8, _NGX_OK@GOTPAGE
Lloh11:
ldr x8, [x8, _NGX_OK@GOTPAGEOFF]
Lloh12:
ldr x8, [x8]
cmp x0, x8
b.ne LBB0_44
; %bb.38: ; in Loop: Header=BB0_30 Depth=1
ldr x0, [x24]
mov w1, #8
bl _ngx_array_push_n
cbz x0, LBB0_44
; %bb.39: ; in Loop: Header=BB0_30 Depth=1
str xzr, [x0]
ldr x0, [x25]
mov w1, #8
bl _ngx_array_push_n
cbz x0, LBB0_44
; %bb.40: ; in Loop: Header=BB0_30 Depth=1
str xzr, [x0]
LBB0_41: ; in Loop: Header=BB0_30 Depth=1
add x21, x21, #32
subs x27, x27, #1
b.ne LBB0_30
LBB0_42:
ldr x0, [x24]
mov w1, #8
bl _ngx_array_push_n
cbz x0, LBB0_44
; %bb.43:
str xzr, [x0]
Lloh13:
adrp x8, _ngx_hash_key_lc@GOTPAGE
Lloh14:
ldr x8, [x8, _ngx_hash_key_lc@GOTPAGEOFF]
ldp x2, x1, [x29, #-96]
str x2, [x20]
stp x8, x23, [sp, #80]
Lloh15:
adrp x8, lCPI0_0@PAGE
Lloh16:
ldr d0, [x8, lCPI0_0@PAGEOFF]
str d0, [sp, #48]
Lloh17:
adrp x8, l_.str.1@PAGE
Lloh18:
add x8, x8, l_.str.1@PAGEOFF
ldr w9, [x19]
str w9, [sp, #72]
stp x8, xzr, [sp, #56]
add x0, sp, #48
bl _ngx_hash_init
b LBB0_6
LBB0_44:
Lloh19:
adrp x8, _NGX_ERROR@GOTPAGE
Lloh20:
ldr x8, [x8, _NGX_ERROR@GOTPAGEOFF]
b LBB0_5
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpAdd Lloh17, Lloh18
.loh AdrpAdrp Lloh15, Lloh17
.loh AdrpLdr Lloh15, Lloh16
.loh AdrpLdrGot Lloh13, Lloh14
.loh AdrpLdrGot Lloh19, Lloh20
.cfi_endproc
; -- End function
.comm _NGX_OK,8,3 ; @NGX_OK
.comm _NGX_ERROR,8,3 ; @NGX_ERROR
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "HTTP_"
.comm _ngx_http_script_copy_len_code,8,3 ; @ngx_http_script_copy_len_code
.comm _ngx_http_script_copy_code,8,3 ; @ngx_http_script_copy_code
l_.str.1: ; @.str.1
.asciz "uwsgi_params_hash"
.no_dead_strip _ngx_http_uwsgi_init_params
.subsections_via_symbols
| AnghaBench/tengine/src/http/modules/extr_ngx_http_uwsgi_module.c_ngx_http_uwsgi_init_params.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function vga_pci_reset
_vga_pci_reset: ## @vga_pci_reset
.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 %edi, %ebx
callq _pci_get_powerstate
movl %eax, %r14d
movq _PCI_POWERSTATE_D0@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _PCI_POWERSTATE_D3@GOTPCREL(%rip), %r15
cmpl %esi, %r14d
je LBB0_3
## %bb.1:
cmpl (%r15), %r14d
je LBB0_3
## %bb.2:
movl %ebx, %edi
callq _pci_set_powerstate
LBB0_3:
movl %ebx, %edi
callq _pci_get_powerstate
movl (%r15), %esi
cmpl %esi, %eax
je LBB0_5
## %bb.4:
movl %ebx, %edi
callq _pci_set_powerstate
LBB0_5:
movl %ebx, %edi
movl %r14d, %esi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _pci_set_powerstate ## TAILCALL
.cfi_endproc
## -- End function
.comm _PCI_POWERSTATE_D0,4,2 ## @PCI_POWERSTATE_D0
.comm _PCI_POWERSTATE_D3,4,2 ## @PCI_POWERSTATE_D3
.no_dead_strip _vga_pci_reset
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function vga_pci_reset
_vga_pci_reset: ; @vga_pci_reset
.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, x0
bl _pci_get_powerstate
mov x20, x0
Lloh0:
adrp x8, _PCI_POWERSTATE_D0@GOTPAGE
Lloh1:
ldr x8, [x8, _PCI_POWERSTATE_D0@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
Lloh3:
adrp x21, _PCI_POWERSTATE_D3@GOTPAGE
Lloh4:
ldr x21, [x21, _PCI_POWERSTATE_D3@GOTPAGEOFF]
ldr w8, [x21]
cmp w0, w1
ccmp w0, w8, #4, ne
b.eq LBB0_2
; %bb.1:
mov x0, x19
bl _pci_set_powerstate
LBB0_2:
mov x0, x19
bl _pci_get_powerstate
ldr w1, [x21]
cmp w0, w1
b.eq LBB0_4
; %bb.3:
mov x0, x19
bl _pci_set_powerstate
LBB0_4:
mov x0, x19
mov x1, x20
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 _pci_set_powerstate
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _PCI_POWERSTATE_D0,4,2 ; @PCI_POWERSTATE_D0
.comm _PCI_POWERSTATE_D3,4,2 ; @PCI_POWERSTATE_D3
.no_dead_strip _vga_pci_reset
.subsections_via_symbols
| AnghaBench/freebsd/sys/dev/pci/extr_vga_pci.c_vga_pci_reset.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function bond_is_dmi_same
_bond_is_dmi_same: ## @bond_is_dmi_same
.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 %rsi, %r14
movq %rdi, %rbx
movl 8(%rdi), %edi
movl 8(%rsi), %esi
movq (%rbx), %rdx
callq _memcmp
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
jne LBB0_2
## %bb.1:
movq (%rbx), %rcx
xorl %eax, %eax
cmpq (%r14), %rcx
sete %al
LBB0_2:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _bond_is_dmi_same
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function bond_is_dmi_same
_bond_is_dmi_same: ; @bond_is_dmi_same
.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
mov x20, x0
ldr w0, [x0, #8]
ldr w1, [x1, #8]
ldr x2, [x20]
bl _memcmp
cbz x0, LBB0_2
; %bb.1:
mov w0, #0
b LBB0_3
LBB0_2:
ldr x8, [x20]
ldr x9, [x19]
cmp x8, x9
cset w0, eq
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
.no_dead_strip _bond_is_dmi_same
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/drivers/net/bonding/extr_bond_main.c_bond_is_dmi_same.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _AcpiUtInterfaceTerminate ## -- Begin function AcpiUtInterfaceTerminate
.p2align 4, 0x90
_AcpiUtInterfaceTerminate: ## @AcpiUtInterfaceTerminate
.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 _AcpiGbl_OsiMutex@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ACPI_WAIT_FOREVER@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _AcpiOsAcquireMutex
movl %eax, %ebx
movl %eax, %edi
callq _ACPI_FAILURE
testq %rax, %rax
jne LBB0_10
## %bb.1:
movq _AcpiGbl_SupportedInterfaces@GOTPCREL(%rip), %r15
movq (%r15), %rbx
testq %rbx, %rbx
je LBB0_9
## %bb.2:
movq _ACPI_OSI_DYNAMIC@GOTPCREL(%rip), %r12
movq _ACPI_OSI_DEFAULT_INVALID@GOTPCREL(%rip), %r13
movq _ACPI_OSI_INVALID@GOTPCREL(%rip), %r14
jmp LBB0_3
.p2align 4, 0x90
LBB0_4: ## in Loop: Header=BB0_3 Depth=1
movq 8(%rbx), %rdi
callq _ACPI_FREE
movq %rbx, %rdi
callq _ACPI_FREE
movq (%r15), %rax
LBB0_8: ## in Loop: Header=BB0_3 Depth=1
movq %rax, %rbx
testq %rax, %rax
je LBB0_9
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq 16(%rbx), %rax
movq %rax, (%r15)
movl (%rbx), %ecx
testl %ecx, (%r12)
jne LBB0_4
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movl (%r14), %edx
testl %ecx, (%r13)
je LBB0_7
## %bb.6: ## in Loop: Header=BB0_3 Depth=1
orl %ecx, %edx
movl %edx, (%rbx)
jmp LBB0_8
LBB0_7: ## in Loop: Header=BB0_3 Depth=1
notl %edx
andl %edx, %ecx
movl %ecx, (%rbx)
jmp LBB0_8
LBB0_9:
movq _AcpiGbl_OsiMutex@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _AcpiOsReleaseMutex
movq _AE_OK@GOTPCREL(%rip), %rax
movl (%rax), %ebx
LBB0_10:
movl %ebx, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _AcpiGbl_OsiMutex,4,2 ## @AcpiGbl_OsiMutex
.comm _ACPI_WAIT_FOREVER,4,2 ## @ACPI_WAIT_FOREVER
.comm _AcpiGbl_SupportedInterfaces,8,3 ## @AcpiGbl_SupportedInterfaces
.comm _ACPI_OSI_DYNAMIC,4,2 ## @ACPI_OSI_DYNAMIC
.comm _ACPI_OSI_DEFAULT_INVALID,4,2 ## @ACPI_OSI_DEFAULT_INVALID
.comm _ACPI_OSI_INVALID,4,2 ## @ACPI_OSI_INVALID
.comm _AE_OK,4,2 ## @AE_OK
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _AcpiUtInterfaceTerminate ; -- Begin function AcpiUtInterfaceTerminate
.p2align 2
_AcpiUtInterfaceTerminate: ; @AcpiUtInterfaceTerminate
.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 x20, _AcpiGbl_OsiMutex@GOTPAGE
Lloh1:
ldr x20, [x20, _AcpiGbl_OsiMutex@GOTPAGEOFF]
ldr w0, [x20]
Lloh2:
adrp x8, _ACPI_WAIT_FOREVER@GOTPAGE
Lloh3:
ldr x8, [x8, _ACPI_WAIT_FOREVER@GOTPAGEOFF]
Lloh4:
ldr w1, [x8]
bl _AcpiOsAcquireMutex
mov x19, x0
bl _ACPI_FAILURE
cbnz x0, LBB0_10
; %bb.1:
Lloh5:
adrp x21, _AcpiGbl_SupportedInterfaces@GOTPAGE
Lloh6:
ldr x21, [x21, _AcpiGbl_SupportedInterfaces@GOTPAGEOFF]
ldr x19, [x21]
cbz x19, LBB0_9
; %bb.2:
Lloh7:
adrp x22, _ACPI_OSI_DYNAMIC@GOTPAGE
Lloh8:
ldr x22, [x22, _ACPI_OSI_DYNAMIC@GOTPAGEOFF]
Lloh9:
adrp x23, _ACPI_OSI_DEFAULT_INVALID@GOTPAGE
Lloh10:
ldr x23, [x23, _ACPI_OSI_DEFAULT_INVALID@GOTPAGEOFF]
Lloh11:
adrp x24, _ACPI_OSI_INVALID@GOTPAGE
Lloh12:
ldr x24, [x24, _ACPI_OSI_INVALID@GOTPAGEOFF]
b LBB0_4
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
ldr x0, [x19, #8]
bl _ACPI_FREE
mov x0, x19
bl _ACPI_FREE
ldr x8, [x21]
mov x19, x8
cbz x8, LBB0_9
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr x8, [x19, #16]
str x8, [x21]
ldr w9, [x19]
ldr w10, [x22]
tst w10, w9
b.ne LBB0_3
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
ldr w11, [x23]
ldr w10, [x24]
tst w11, w9
b.eq LBB0_7
; %bb.6: ; in Loop: Header=BB0_4 Depth=1
orr w9, w10, w9
b LBB0_8
LBB0_7: ; in Loop: Header=BB0_4 Depth=1
bic w9, w9, w10
LBB0_8: ; in Loop: Header=BB0_4 Depth=1
str w9, [x19]
mov x19, x8
cbnz x8, LBB0_4
LBB0_9:
ldr w0, [x20]
bl _AcpiOsReleaseMutex
Lloh13:
adrp x8, _AE_OK@GOTPAGE
Lloh14:
ldr x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh15:
ldr w19, [x8]
LBB0_10:
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
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGot Lloh11, Lloh12
.loh AdrpLdrGot Lloh9, Lloh10
.loh AdrpLdrGot Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.cfi_endproc
; -- End function
.comm _AcpiGbl_OsiMutex,4,2 ; @AcpiGbl_OsiMutex
.comm _ACPI_WAIT_FOREVER,4,2 ; @ACPI_WAIT_FOREVER
.comm _AcpiGbl_SupportedInterfaces,8,3 ; @AcpiGbl_SupportedInterfaces
.comm _ACPI_OSI_DYNAMIC,4,2 ; @ACPI_OSI_DYNAMIC
.comm _ACPI_OSI_DEFAULT_INVALID,4,2 ; @ACPI_OSI_DEFAULT_INVALID
.comm _ACPI_OSI_INVALID,4,2 ; @ACPI_OSI_INVALID
.comm _AE_OK,4,2 ; @AE_OK
.subsections_via_symbols
| AnghaBench/reactos/drivers/bus/acpi/acpica/utilities/extr_utosi.c_AcpiUtInterfaceTerminate.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function __setup_sorting
___setup_sorting: ## @__setup_sorting
.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 _setup_sort_order
testl %eax, %eax
je LBB0_1
LBB0_11:
popq %rbx
popq %r14
popq %rbp
retq
LBB0_1:
movq _sort_order@GOTPCREL(%rip), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je LBB0_2
LBB0_4:
callq _strdup
testq %rax, %rax
je LBB0_5
## %bb.7:
movq %rax, %r14
movq _field_order@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _is_strict_order
testq %rax, %rax
jne LBB0_10
## %bb.8:
movq %r14, %rdi
callq _setup_overhead
movq %rax, %r14
testq %rax, %rax
je LBB0_9
LBB0_10:
movq _perf_hpp_list@GOTPCREL(%rip), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq _setup_sort_list
movl %eax, %ebx
movq %r14, %rdi
callq _free
movl %ebx, %eax
jmp LBB0_11
LBB0_2:
movq _field_order@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _is_strict_order
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
jne LBB0_11
## %bb.3:
movq %rbx, %rdi
callq _get_default_sort_order
movq %rax, %rdi
jmp LBB0_4
LBB0_5:
leaq L_.str(%rip), %rdi
jmp LBB0_6
LBB0_9:
leaq L_.str.1(%rip), %rdi
LBB0_6:
callq _pr_err
movq _ENOMEM@GOTPCREL(%rip), %rcx
xorl %eax, %eax
subl (%rcx), %eax
jmp LBB0_11
.cfi_endproc
## -- End function
.comm _sort_order,8,3 ## @sort_order
.comm _field_order,4,2 ## @field_order
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Not enough memory to setup sort keys"
.comm _ENOMEM,4,2 ## @ENOMEM
L_.str.1: ## @.str.1
.asciz "Not enough memory to setup overhead keys"
.comm _perf_hpp_list,4,2 ## @perf_hpp_list
.no_dead_strip ___setup_sorting
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function __setup_sorting
___setup_sorting: ; @__setup_sorting
.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 _setup_sort_order
cbz w0, LBB0_2
LBB0_1:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_2:
Lloh0:
adrp x8, _sort_order@GOTPAGE
Lloh1:
ldr x8, [x8, _sort_order@GOTPAGEOFF]
Lloh2:
ldr x0, [x8]
cbz x0, LBB0_7
; %bb.3:
bl _strdup
cbz x0, LBB0_10
LBB0_4:
mov x20, x0
Lloh3:
adrp x8, _field_order@GOTPAGE
Lloh4:
ldr x8, [x8, _field_order@GOTPAGEOFF]
Lloh5:
ldr w0, [x8]
bl _is_strict_order
cbnz x0, LBB0_6
; %bb.5:
mov x0, x20
bl _setup_overhead
mov x20, x0
cbz x0, LBB0_11
LBB0_6:
Lloh6:
adrp x0, _perf_hpp_list@GOTPAGE
Lloh7:
ldr x0, [x0, _perf_hpp_list@GOTPAGEOFF]
mov x1, x20
mov x2, x19
bl _setup_sort_list
mov x19, x0
mov x0, x20
bl _free
mov x0, x19
b LBB0_1
LBB0_7:
Lloh8:
adrp x8, _field_order@GOTPAGE
Lloh9:
ldr x8, [x8, _field_order@GOTPAGEOFF]
Lloh10:
ldr w0, [x8]
bl _is_strict_order
cbz x0, LBB0_9
; %bb.8:
mov w0, #0
b LBB0_1
LBB0_9:
mov x0, x19
bl _get_default_sort_order
bl _strdup
cbnz x0, LBB0_4
LBB0_10:
Lloh11:
adrp x0, l_.str@PAGE
Lloh12:
add x0, x0, l_.str@PAGEOFF
b LBB0_12
LBB0_11:
Lloh13:
adrp x0, l_.str.1@PAGE
Lloh14:
add x0, x0, l_.str.1@PAGEOFF
LBB0_12:
bl _pr_err
Lloh15:
adrp x8, _ENOMEM@GOTPAGE
Lloh16:
ldr x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
ldr w8, [x8]
neg w0, w8
b LBB0_1
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpAdd Lloh11, Lloh12
.loh AdrpAdd Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17
.cfi_endproc
; -- End function
.comm _sort_order,8,3 ; @sort_order
.comm _field_order,4,2 ; @field_order
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Not enough memory to setup sort keys"
.comm _ENOMEM,4,2 ; @ENOMEM
l_.str.1: ; @.str.1
.asciz "Not enough memory to setup overhead keys"
.comm _perf_hpp_list,4,2 ; @perf_hpp_list
.no_dead_strip ___setup_sorting
.subsections_via_symbols
| AnghaBench/linux/tools/perf/util/extr_sort.c___setup_sorting.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _getPosse ## -- Begin function getPosse
.p2align 4, 0x90
_getPosse: ## @getPosse
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
testl %edi, %edi
leaq L_.str(%rip), %rcx
leaq L_.str.1(%rip), %rax
cmoveq %rcx, %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _getRegiao ## -- Begin function getRegiao
.p2align 4, 0x90
_getRegiao: ## @getRegiao
.cfi_startproc
## %bb.0:
decl %edi
cmpl $5, %edi
ja LBB1_1
## %bb.2:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movslq %edi, %rax
leaq l_reltable.getRegiao(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
popq %rbp
retq
LBB1_1:
leaq L_.str.2(%rip), %rax
retq
.cfi_endproc
## -- End function
.globl _thread_goleiro_Brasil ## -- Begin function thread_goleiro_Brasil
.p2align 4, 0x90
_thread_goleiro_Brasil: ## @thread_goleiro_Brasil
.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
movslq (%rdi), %r12
testq %r12, %r12
leaq L_.str.9(%rip), %rax
leaq L_.str.10(%rip), %r14
cmoveq %rax, %r14
movq _lock_goleiros_Brasil@GOTPCREL(%rip), %r13
movq _titular_goleiro_Brasil@GOTPCREL(%rip), %rbx
jmp LBB2_1
.p2align 4, 0x90
LBB2_7: ## in Loop: Header=BB2_1 Depth=1
cmpl $0, _regiao(%rip)
je LBB2_8
LBB2_1: ## =>This Inner Loop Header: Depth=1
callq _rand
movl %eax, %r15d
movq %r13, %rdi
callq _pthread_mutex_lock
movl _escalacao_goleiro_Brasil(%rip), %ecx
leal 1(%rcx), %eax
movl %eax, _escalacao_goleiro_Brasil(%rip)
cmpl $1, %ecx
jg LBB2_3
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movl %eax, (%rbx,%r12,4)
LBB2_3: ## in Loop: Header=BB2_1 Depth=1
movq %r13, %rdi
callq _pthread_mutex_unlock
cmpl $1, _escalacao_goleiro_Brasil(%rip)
je LBB2_4
## %bb.5: ## in Loop: Header=BB2_1 Depth=1
cmpl $2, (%rbx,%r12,4)
jne LBB2_7
jmp LBB2_6
.p2align 4, 0x90
LBB2_4: ## in Loop: Header=BB2_1 Depth=1
leaq L_.str.11(%rip), %rdi
movq %r14, %rsi
xorl %eax, %eax
callq _printf
movl $2, %edi
callq _sleep
cmpl $2, (%rbx,%r12,4)
jne LBB2_7
LBB2_6: ## in Loop: Header=BB2_1 Depth=1
movq _sem_banco@GOTPCREL(%rip), %rdi
callq _sem_wait
jmp LBB2_7
.p2align 4, 0x90
LBB2_8: ## in Loop: Header=BB2_1 Depth=1
cmpl $0, _posse(%rip)
je LBB2_9
## %bb.10: ## in Loop: Header=BB2_1 Depth=1
movq %r14, %r13
leaq _lock_posse(%rip), %r14
movq %r14, %rdi
callq _pthread_mutex_lock
movl $0, _posse(%rip)
movq %r14, %rdi
callq _pthread_mutex_unlock
testb $1, %r15b
jne LBB2_12
## %bb.11: ## in Loop: Header=BB2_1 Depth=1
leaq _lock_bola(%rip), %r15
movq %r15, %rdi
callq _pthread_mutex_lock
leaq L_.str.15(%rip), %rdi
movq %r13, %r14
movq %r13, %rsi
xorl %eax, %eax
callq _printf
movq %r15, %rdi
callq _pthread_mutex_unlock
jmp LBB2_13
LBB2_9: ## in Loop: Header=BB2_1 Depth=1
movq %rbx, %r15
leaq _lock_regiao(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl $1, _regiao(%rip)
movq %rbx, %rdi
movq %r15, %rbx
callq _pthread_mutex_unlock
leaq _lock_bola(%rip), %r15
movq %r15, %rdi
callq _pthread_mutex_lock
movl _gols_Brasil(%rip), %esi
movl _gols_Alemanha(%rip), %edx
leaq L_.str.12(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.13(%rip), %rdi
movq %r14, %rsi
xorl %eax, %eax
callq _printf
leaq L_.str.14(%rip), %rdi
movq %r14, %rsi
xorl %eax, %eax
callq _printf
movq %r15, %rdi
callq _pthread_mutex_unlock
jmp LBB2_14
LBB2_12: ## in Loop: Header=BB2_1 Depth=1
leaq _lock_gol(%rip), %r14
movq %r14, %rdi
callq _pthread_mutex_lock
incl _gols_Alemanha(%rip)
movq %r14, %rdi
callq _pthread_mutex_unlock
leaq L_str(%rip), %rdi
callq _puts
movq %r13, %r14
LBB2_13: ## in Loop: Header=BB2_1 Depth=1
movq _lock_goleiros_Brasil@GOTPCREL(%rip), %r13
LBB2_14: ## in Loop: Header=BB2_1 Depth=1
movl $4, %edi
callq _sleep
jmp LBB2_1
.cfi_endproc
## -- End function
.globl _thread_zagueiro_Brasil ## -- Begin function thread_zagueiro_Brasil
.p2align 4, 0x90
_thread_zagueiro_Brasil: ## @thread_zagueiro_Brasil
.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
movslq (%rdi), %r13
leal 1(%r13), %eax
movl %eax, -44(%rbp) ## 4-byte Spill
leaq (,%r13,4), %rax
leaq l_reltable.thread_zagueiro_Brasil(%rip), %rcx
movslq (%rax,%rcx), %rax
addq %rcx, %rax
movq %rax, -56(%rbp) ## 8-byte Spill
movq _lock_zagueiros_Brasil@GOTPCREL(%rip), %rbx
movq _titular_zagueiros_Brasil@GOTPCREL(%rip), %r14
jmp LBB3_1
LBB3_11: ## in Loop: Header=BB3_1 Depth=1
leaq _lock_regiao(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl $2, _regiao(%rip)
movq %rbx, %rdi
callq _pthread_mutex_unlock
leaq _lock_bola(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl _gols_Brasil(%rip), %esi
movl _gols_Alemanha(%rip), %edx
leaq L_.str.12(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.22(%rip), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq _printf
leaq L_.str.23(%rip), %rdi
LBB3_14: ## in Loop: Header=BB3_1 Depth=1
movq %r15, %rsi
xorl %eax, %eax
callq _printf
movq %rbx, %rdi
callq _pthread_mutex_unlock
movl $4, %edi
callq _sleep
movq _lock_zagueiros_Brasil@GOTPCREL(%rip), %rbx
LBB3_1: ## =>This Inner Loop Header: Depth=1
callq _rand
movl %eax, %r12d
leaq L_.str.20(%rip), %r15
cmpl $2, %r13d
ja LBB3_3
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movq -56(%rbp), %r15 ## 8-byte Reload
LBB3_3: ## in Loop: Header=BB3_1 Depth=1
movq %rbx, %rdi
callq _pthread_mutex_lock
movl _escalacao_zagueiros_Brasil(%rip), %ecx
leal 1(%rcx), %eax
movl %eax, _escalacao_zagueiros_Brasil(%rip)
cmpl $3, %ecx
jg LBB3_5
## %bb.4: ## in Loop: Header=BB3_1 Depth=1
movl %eax, (%r14,%r13,4)
LBB3_5: ## in Loop: Header=BB3_1 Depth=1
movq %rbx, %rdi
callq _pthread_mutex_unlock
cmpl $3, _escalacao_zagueiros_Brasil(%rip)
jle LBB3_6
## %bb.7: ## in Loop: Header=BB3_1 Depth=1
cmpl $4, (%r14,%r13,4)
je LBB3_8
LBB3_9: ## in Loop: Header=BB3_1 Depth=1
cmpl $1, _regiao(%rip)
jne LBB3_1
jmp LBB3_10
.p2align 4, 0x90
LBB3_6: ## in Loop: Header=BB3_1 Depth=1
leaq L_.str.21(%rip), %rdi
movl -44(%rbp), %esi ## 4-byte Reload
movq %r15, %rdx
xorl %eax, %eax
callq _printf
movl $2, %edi
callq _sleep
cmpl $4, (%r14,%r13,4)
jne LBB3_9
LBB3_8: ## in Loop: Header=BB3_1 Depth=1
movq _sem_banco@GOTPCREL(%rip), %rdi
callq _sem_wait
cmpl $1, _regiao(%rip)
jne LBB3_1
LBB3_10: ## in Loop: Header=BB3_1 Depth=1
cmpl $0, _posse(%rip)
je LBB3_11
## %bb.12: ## in Loop: Header=BB3_1 Depth=1
testb $1, %r12b
jne LBB3_1
## %bb.13: ## in Loop: Header=BB3_1 Depth=1
leaq _lock_posse(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl $0, _posse(%rip)
movq %rbx, %rdi
callq _pthread_mutex_unlock
leaq _lock_bola(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
leaq L_.str.24(%rip), %rdi
jmp LBB3_14
.cfi_endproc
## -- End function
.globl _thread_lateral_Brasil ## -- Begin function thread_lateral_Brasil
.p2align 4, 0x90
_thread_lateral_Brasil: ## @thread_lateral_Brasil
.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
movslq (%rdi), %r13
cmpq $1, %r13
leaq L_.str.26(%rip), %rax
leaq L_.str.27(%rip), %rcx
cmoveq %rax, %rcx
testq %r13, %r13
leaq L_.str.25(%rip), %r12
cmovneq %rcx, %r12
leal 1(%r13), %eax
movl %eax, -44(%rbp) ## 4-byte Spill
movq _lock_laterais_Brasil@GOTPCREL(%rip), %r15
movq _titular_laterais_Brasil@GOTPCREL(%rip), %rbx
movq %r12, -56(%rbp) ## 8-byte Spill
.p2align 4, 0x90
LBB4_1: ## =>This Inner Loop Header: Depth=1
callq _rand
movl %eax, %r14d
movq %r15, %rdi
callq _pthread_mutex_lock
movl _escalacao_laterais_Brasil(%rip), %ecx
leal 1(%rcx), %eax
movl %eax, _escalacao_laterais_Brasil(%rip)
cmpl $2, %ecx
jg LBB4_3
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movl %eax, (%rbx,%r13,4)
LBB4_3: ## in Loop: Header=BB4_1 Depth=1
movq %r15, %rdi
callq _pthread_mutex_unlock
cmpl $2, _escalacao_laterais_Brasil(%rip)
jle LBB4_4
## %bb.5: ## in Loop: Header=BB4_1 Depth=1
cmpl $3, (%rbx,%r13,4)
je LBB4_6
LBB4_7: ## in Loop: Header=BB4_1 Depth=1
cmpl $2, _regiao(%rip)
je LBB4_8
jmp LBB4_1
.p2align 4, 0x90
LBB4_4: ## in Loop: Header=BB4_1 Depth=1
leaq L_.str.28(%rip), %rdi
movl -44(%rbp), %esi ## 4-byte Reload
movq %r12, %rdx
xorl %eax, %eax
callq _printf
movl $2, %edi
callq _sleep
cmpl $3, (%rbx,%r13,4)
jne LBB4_7
LBB4_6: ## in Loop: Header=BB4_1 Depth=1
movq _sem_banco@GOTPCREL(%rip), %rdi
callq _sem_wait
cmpl $2, _regiao(%rip)
jne LBB4_1
LBB4_8: ## in Loop: Header=BB4_1 Depth=1
cmpl $0, _posse(%rip)
jne LBB4_1
## %bb.9: ## in Loop: Header=BB4_1 Depth=1
andl $1, %r14d
movq %r13, %r12
movq %r15, %r13
leaq _lock_regiao(%rip), %r15
movq %r15, %rdi
callq _pthread_mutex_lock
leal 4(%r14), %eax
testl %r14d, %r14d
movq %rbx, %r14
leaq L_.str.31(%rip), %rbx
leaq L_.str.30(%rip), %rcx
cmoveq %rcx, %rbx
movl %eax, _regiao(%rip)
movq %r15, %rdi
movq %r13, %r15
movq %r12, %r13
movq -56(%rbp), %r12 ## 8-byte Reload
callq _pthread_mutex_unlock
leaq _lock_bola(%rip), %rdi
callq _pthread_mutex_lock
movl _gols_Brasil(%rip), %esi
movl _gols_Alemanha(%rip), %edx
leaq L_.str.12(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.29(%rip), %rdi
movq %r12, %rsi
xorl %eax, %eax
callq _printf
movq %rbx, %rdi
movq %r14, %rbx
movq %r12, %rsi
xorl %eax, %eax
callq _printf
leaq _lock_bola(%rip), %rdi
callq _pthread_mutex_unlock
movl $4, %edi
callq _sleep
jmp LBB4_1
.cfi_endproc
## -- End function
.globl _thread_volante_Brasil ## -- Begin function thread_volante_Brasil
.p2align 4, 0x90
_thread_volante_Brasil: ## @thread_volante_Brasil
.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
movslq (%rdi), %r12
cmpq $1, %r12
leaq L_.str.33(%rip), %rax
leaq L_.str.34(%rip), %rcx
cmoveq %rax, %rcx
testq %r12, %r12
leaq L_.str.32(%rip), %r14
cmovneq %rcx, %r14
leal 1(%r12), %eax
movl %eax, -44(%rbp) ## 4-byte Spill
movq _lock_volantes_Brasil@GOTPCREL(%rip), %rbx
movq _titular_volantes_Brasil@GOTPCREL(%rip), %r15
jmp LBB5_1
LBB5_9: ## in Loop: Header=BB5_1 Depth=1
leaq _lock_regiao(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl $3, _regiao(%rip)
movq %rbx, %rdi
callq _pthread_mutex_unlock
leaq _lock_bola(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl _gols_Brasil(%rip), %esi
movl _gols_Alemanha(%rip), %edx
leaq L_.str.12(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.36(%rip), %rdi
movq %r14, %rsi
xorl %eax, %eax
callq _printf
leaq L_.str.37(%rip), %rdi
LBB5_12: ## in Loop: Header=BB5_1 Depth=1
movq %r14, %rsi
xorl %eax, %eax
callq _printf
movq %rbx, %rdi
callq _pthread_mutex_unlock
movl $4, %edi
callq _sleep
movq _lock_volantes_Brasil@GOTPCREL(%rip), %rbx
LBB5_1: ## =>This Inner Loop Header: Depth=1
callq _rand
movl %eax, %r13d
movq %rbx, %rdi
callq _pthread_mutex_lock
movl _escalacao_volantes_Brasil(%rip), %ecx
leal 1(%rcx), %eax
movl %eax, _escalacao_volantes_Brasil(%rip)
cmpl $2, %ecx
jg LBB5_3
## %bb.2: ## in Loop: Header=BB5_1 Depth=1
movl %eax, (%r15,%r12,4)
LBB5_3: ## in Loop: Header=BB5_1 Depth=1
movq %rbx, %rdi
callq _pthread_mutex_unlock
cmpl $2, _escalacao_volantes_Brasil(%rip)
jle LBB5_4
## %bb.5: ## in Loop: Header=BB5_1 Depth=1
cmpl $3, (%r15,%r12,4)
je LBB5_6
LBB5_7: ## in Loop: Header=BB5_1 Depth=1
cmpl $4, _regiao(%rip)
jne LBB5_1
jmp LBB5_8
.p2align 4, 0x90
LBB5_4: ## in Loop: Header=BB5_1 Depth=1
leaq L_.str.35(%rip), %rdi
movl -44(%rbp), %esi ## 4-byte Reload
movq %r14, %rdx
xorl %eax, %eax
callq _printf
movl $2, %edi
callq _sleep
cmpl $3, (%r15,%r12,4)
jne LBB5_7
LBB5_6: ## in Loop: Header=BB5_1 Depth=1
movq _sem_banco@GOTPCREL(%rip), %rdi
callq _sem_wait
cmpl $4, _regiao(%rip)
jne LBB5_1
LBB5_8: ## in Loop: Header=BB5_1 Depth=1
cmpl $0, _posse(%rip)
je LBB5_9
## %bb.10: ## in Loop: Header=BB5_1 Depth=1
testb $1, %r13b
jne LBB5_1
## %bb.11: ## in Loop: Header=BB5_1 Depth=1
leaq _lock_posse(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl $0, _posse(%rip)
movq %rbx, %rdi
callq _pthread_mutex_unlock
leaq _lock_bola(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
leaq L_.str.38(%rip), %rdi
jmp LBB5_12
.cfi_endproc
## -- End function
.globl _thread_meia_Brasil ## -- Begin function thread_meia_Brasil
.p2align 4, 0x90
_thread_meia_Brasil: ## @thread_meia_Brasil
.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
movslq (%rdi), %r13
testq %r13, %r13
leaq L_.str.39(%rip), %rax
leaq L_.str.40(%rip), %r12
cmoveq %rax, %r12
leal 1(%r13), %eax
movl %eax, -44(%rbp) ## 4-byte Spill
movq _lock_meias_Brasil@GOTPCREL(%rip), %r15
movq _titular_meia_Brasil@GOTPCREL(%rip), %rbx
movq %r12, -56(%rbp) ## 8-byte Spill
.p2align 4, 0x90
LBB6_1: ## =>This Inner Loop Header: Depth=1
callq _rand
movl %eax, %r14d
movq %r15, %rdi
callq _pthread_mutex_lock
movl _escalacao_meia_Brasil(%rip), %ecx
leal 1(%rcx), %eax
movl %eax, _escalacao_meia_Brasil(%rip)
cmpl $1, %ecx
jg LBB6_3
## %bb.2: ## in Loop: Header=BB6_1 Depth=1
movl %eax, (%rbx,%r13,4)
LBB6_3: ## in Loop: Header=BB6_1 Depth=1
movq %r15, %rdi
callq _pthread_mutex_unlock
cmpl $1, _escalacao_meia_Brasil(%rip)
je LBB6_4
## %bb.5: ## in Loop: Header=BB6_1 Depth=1
cmpl $2, (%rbx,%r13,4)
je LBB6_6
LBB6_7: ## in Loop: Header=BB6_1 Depth=1
cmpl $3, _regiao(%rip)
je LBB6_8
jmp LBB6_1
.p2align 4, 0x90
LBB6_4: ## in Loop: Header=BB6_1 Depth=1
leaq L_.str.41(%rip), %rdi
movl -44(%rbp), %esi ## 4-byte Reload
movq %r12, %rdx
xorl %eax, %eax
callq _printf
movl $2, %edi
callq _sleep
cmpl $2, (%rbx,%r13,4)
jne LBB6_7
LBB6_6: ## in Loop: Header=BB6_1 Depth=1
movq _sem_banco@GOTPCREL(%rip), %rdi
callq _sem_wait
cmpl $3, _regiao(%rip)
jne LBB6_1
LBB6_8: ## in Loop: Header=BB6_1 Depth=1
cmpl $0, _posse(%rip)
jne LBB6_1
## %bb.9: ## in Loop: Header=BB6_1 Depth=1
andl $1, %r14d
movq %r13, %r12
movq %r15, %r13
leaq _lock_regiao(%rip), %r15
movq %r15, %rdi
callq _pthread_mutex_lock
leal 5(%r14), %eax
testl %r14d, %r14d
movq %rbx, %r14
leaq L_.str.44(%rip), %rbx
leaq L_.str.43(%rip), %rcx
cmoveq %rcx, %rbx
movl %eax, _regiao(%rip)
movq %r15, %rdi
movq %r13, %r15
movq %r12, %r13
movq -56(%rbp), %r12 ## 8-byte Reload
callq _pthread_mutex_unlock
leaq _lock_bola(%rip), %rdi
callq _pthread_mutex_lock
movl _gols_Brasil(%rip), %esi
movl _gols_Alemanha(%rip), %edx
leaq L_.str.12(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.42(%rip), %rdi
movq %r12, %rsi
xorl %eax, %eax
callq _printf
movq %rbx, %rdi
movq %r14, %rbx
movq %r12, %rsi
xorl %eax, %eax
callq _printf
leaq _lock_bola(%rip), %rdi
callq _pthread_mutex_unlock
movl $4, %edi
callq _sleep
jmp LBB6_1
.cfi_endproc
## -- End function
.globl _thread_atacante_Brasil ## -- Begin function thread_atacante_Brasil
.p2align 4, 0x90
_thread_atacante_Brasil: ## @thread_atacante_Brasil
.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
movslq (%rdi), %r14
cmpq $1, %r14
leaq L_.str.46(%rip), %rax
leaq L_.str.47(%rip), %rcx
cmoveq %rax, %rcx
testq %r14, %r14
leaq L_.str.45(%rip), %r12
cmovneq %rcx, %r12
leal 1(%r14), %eax
movl %eax, -44(%rbp) ## 4-byte Spill
movq _lock_atacantes_Brasil@GOTPCREL(%rip), %r15
movq _titular_atacantes_Brasil@GOTPCREL(%rip), %rbx
.p2align 4, 0x90
LBB7_1: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
callq _pthread_mutex_lock
movl _escalacao_atacantes_Brasil(%rip), %ecx
leal 1(%rcx), %eax
movl %eax, _escalacao_atacantes_Brasil(%rip)
cmpl $2, %ecx
jg LBB7_3
## %bb.2: ## in Loop: Header=BB7_1 Depth=1
movl %eax, (%rbx,%r14,4)
LBB7_3: ## in Loop: Header=BB7_1 Depth=1
movq %r15, %rdi
callq _pthread_mutex_unlock
cmpl $2, _escalacao_atacantes_Brasil(%rip)
jle LBB7_4
## %bb.5: ## in Loop: Header=BB7_1 Depth=1
cmpl $3, (%rbx,%r14,4)
je LBB7_6
LBB7_7: ## in Loop: Header=BB7_1 Depth=1
cmpl $5, _regiao(%rip)
je LBB7_8
jmp LBB7_1
.p2align 4, 0x90
LBB7_4: ## in Loop: Header=BB7_1 Depth=1
leaq L_.str.48(%rip), %rdi
movl -44(%rbp), %esi ## 4-byte Reload
movq %r12, %rdx
xorl %eax, %eax
callq _printf
movl $2, %edi
callq _sleep
cmpl $3, (%rbx,%r14,4)
jne LBB7_7
LBB7_6: ## in Loop: Header=BB7_1 Depth=1
movq _sem_banco@GOTPCREL(%rip), %rdi
callq _sem_wait
cmpl $5, _regiao(%rip)
jne LBB7_1
LBB7_8: ## in Loop: Header=BB7_1 Depth=1
cmpl $0, _posse(%rip)
jne LBB7_1
## %bb.9: ## in Loop: Header=BB7_1 Depth=1
leaq _lock_regiao(%rip), %r13
movq %r13, %rdi
callq _pthread_mutex_lock
movl $6, _regiao(%rip)
movq %r13, %rdi
callq _pthread_mutex_unlock
movq %rbx, %r13
leaq _lock_bola(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl _gols_Brasil(%rip), %esi
movl _gols_Alemanha(%rip), %edx
leaq L_.str.12(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.49(%rip), %rdi
movq %r12, %rsi
xorl %eax, %eax
callq _printf
leaq L_.str.50(%rip), %rdi
movq %r12, %rsi
xorl %eax, %eax
callq _printf
movq %rbx, %rdi
movq %r13, %rbx
callq _pthread_mutex_unlock
movl $4, %edi
callq _sleep
jmp LBB7_1
.cfi_endproc
## -- End function
.globl _thread_goleiro_Alemanha ## -- Begin function thread_goleiro_Alemanha
.p2align 4, 0x90
_thread_goleiro_Alemanha: ## @thread_goleiro_Alemanha
.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
movslq (%rdi), %r12
testq %r12, %r12
leaq L_.str.51(%rip), %rax
leaq L_.str.52(%rip), %r15
cmoveq %rax, %r15
movq _lock_goleiros_Alemanha@GOTPCREL(%rip), %r14
movq _titular_goleiro_Alemanha@GOTPCREL(%rip), %rbx
jmp LBB8_1
.p2align 4, 0x90
LBB8_9: ## in Loop: Header=BB8_1 Depth=1
movq %rbx, %r13
leaq _lock_regiao(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl $5, _regiao(%rip)
movq %rbx, %rdi
movq %r13, %rbx
callq _pthread_mutex_unlock
leaq _lock_bola(%rip), %r13
movq %r13, %rdi
callq _pthread_mutex_lock
movl _gols_Brasil(%rip), %esi
movl _gols_Alemanha(%rip), %edx
leaq L_.str.12(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.54(%rip), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq _printf
leaq L_.str.55(%rip), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq _printf
movq %r13, %rdi
callq _pthread_mutex_unlock
LBB8_14: ## in Loop: Header=BB8_1 Depth=1
movl $4, %edi
callq _sleep
LBB8_1: ## =>This Inner Loop Header: Depth=1
callq _rand
movl %eax, %r13d
movq %r14, %rdi
callq _pthread_mutex_lock
movl _escalacao_goleiro_Alemanha(%rip), %ecx
leal 1(%rcx), %eax
movl %eax, _escalacao_goleiro_Alemanha(%rip)
cmpl $1, %ecx
jg LBB8_3
## %bb.2: ## in Loop: Header=BB8_1 Depth=1
movl %eax, (%rbx,%r12,4)
LBB8_3: ## in Loop: Header=BB8_1 Depth=1
movq %r14, %rdi
callq _pthread_mutex_unlock
cmpl $1, _escalacao_goleiro_Alemanha(%rip)
je LBB8_4
## %bb.5: ## in Loop: Header=BB8_1 Depth=1
cmpl $2, (%rbx,%r12,4)
je LBB8_6
LBB8_7: ## in Loop: Header=BB8_1 Depth=1
cmpl $6, _regiao(%rip)
jne LBB8_1
jmp LBB8_8
.p2align 4, 0x90
LBB8_4: ## in Loop: Header=BB8_1 Depth=1
leaq L_.str.53(%rip), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq _printf
movl $2, %edi
callq _sleep
cmpl $2, (%rbx,%r12,4)
jne LBB8_7
LBB8_6: ## in Loop: Header=BB8_1 Depth=1
movq _sem_banco@GOTPCREL(%rip), %rdi
callq _sem_wait
cmpl $6, _regiao(%rip)
jne LBB8_1
LBB8_8: ## in Loop: Header=BB8_1 Depth=1
cmpl $1, _posse(%rip)
je LBB8_9
## %bb.10: ## in Loop: Header=BB8_1 Depth=1
leaq _lock_posse(%rip), %r14
movq %r14, %rdi
callq _pthread_mutex_lock
movl $1, _posse(%rip)
movq %r14, %rdi
callq _pthread_mutex_unlock
testb $1, %r13b
jne LBB8_12
## %bb.11: ## in Loop: Header=BB8_1 Depth=1
leaq _lock_bola(%rip), %r13
movq %r13, %rdi
callq _pthread_mutex_lock
leaq L_.str.56(%rip), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq _printf
movq %r13, %rdi
callq _pthread_mutex_unlock
jmp LBB8_13
LBB8_12: ## in Loop: Header=BB8_1 Depth=1
leaq _lock_gol(%rip), %r14
movq %r14, %rdi
callq _pthread_mutex_lock
incl _gols_Brasil(%rip)
movq %r14, %rdi
callq _pthread_mutex_unlock
leaq L_str.109(%rip), %rdi
callq _puts
LBB8_13: ## in Loop: Header=BB8_1 Depth=1
movq _lock_goleiros_Alemanha@GOTPCREL(%rip), %r14
jmp LBB8_14
.cfi_endproc
## -- End function
.globl _thread_zagueiro_Alemanha ## -- Begin function thread_zagueiro_Alemanha
.p2align 4, 0x90
_thread_zagueiro_Alemanha: ## @thread_zagueiro_Alemanha
.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
movslq (%rdi), %r15
leal 1(%r15), %eax
movl %eax, -44(%rbp) ## 4-byte Spill
leaq (,%r15,4), %rax
leaq l_reltable.thread_zagueiro_Alemanha(%rip), %rcx
movslq (%rax,%rcx), %rax
addq %rcx, %rax
movq %rax, -56(%rbp) ## 8-byte Spill
movq _lock_zagueiros_Alemanha@GOTPCREL(%rip), %rbx
movq _titular_zagueiros_Alemanha@GOTPCREL(%rip), %r14
jmp LBB9_1
.p2align 4, 0x90
LBB9_11: ## in Loop: Header=BB9_1 Depth=1
leaq _lock_regiao(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl $2, _regiao(%rip)
movq %rbx, %rdi
callq _pthread_mutex_unlock
leaq _lock_bola(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl _gols_Brasil(%rip), %esi
movl _gols_Alemanha(%rip), %edx
leaq L_.str.12(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.63(%rip), %rdi
movq %r12, %rsi
xorl %eax, %eax
callq _printf
leaq L_.str.64(%rip), %rdi
LBB9_14: ## in Loop: Header=BB9_1 Depth=1
movq %r12, %rsi
xorl %eax, %eax
callq _printf
movq %rbx, %rdi
callq _pthread_mutex_unlock
movl $4, %edi
callq _sleep
movq _lock_zagueiros_Alemanha@GOTPCREL(%rip), %rbx
LBB9_1: ## =>This Inner Loop Header: Depth=1
callq _rand
movl %eax, %r13d
leaq L_.str.61(%rip), %r12
cmpl $2, %r15d
ja LBB9_3
## %bb.2: ## in Loop: Header=BB9_1 Depth=1
movq -56(%rbp), %r12 ## 8-byte Reload
LBB9_3: ## in Loop: Header=BB9_1 Depth=1
movq %rbx, %rdi
callq _pthread_mutex_lock
movl _escalacao_zagueiros_Alemanha(%rip), %ecx
leal 1(%rcx), %eax
movl %eax, _escalacao_zagueiros_Alemanha(%rip)
cmpl $3, %ecx
jg LBB9_5
## %bb.4: ## in Loop: Header=BB9_1 Depth=1
movl %eax, (%r14,%r15,4)
LBB9_5: ## in Loop: Header=BB9_1 Depth=1
movq %rbx, %rdi
callq _pthread_mutex_unlock
cmpl $3, _escalacao_zagueiros_Alemanha(%rip)
jle LBB9_6
## %bb.7: ## in Loop: Header=BB9_1 Depth=1
cmpl $4, (%r14,%r15,4)
je LBB9_8
LBB9_9: ## in Loop: Header=BB9_1 Depth=1
cmpl $5, _regiao(%rip)
jne LBB9_1
jmp LBB9_10
.p2align 4, 0x90
LBB9_6: ## in Loop: Header=BB9_1 Depth=1
leaq L_.str.62(%rip), %rdi
movl -44(%rbp), %esi ## 4-byte Reload
movq %r12, %rdx
xorl %eax, %eax
callq _printf
movl $2, %edi
callq _sleep
cmpl $4, (%r14,%r15,4)
jne LBB9_9
LBB9_8: ## in Loop: Header=BB9_1 Depth=1
movq _sem_banco@GOTPCREL(%rip), %rdi
callq _sem_wait
cmpl $5, _regiao(%rip)
jne LBB9_1
LBB9_10: ## in Loop: Header=BB9_1 Depth=1
cmpl $1, _posse(%rip)
je LBB9_11
## %bb.12: ## in Loop: Header=BB9_1 Depth=1
testb $1, %r13b
jne LBB9_1
## %bb.13: ## in Loop: Header=BB9_1 Depth=1
leaq _lock_posse(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl $1, _posse(%rip)
movq %rbx, %rdi
callq _pthread_mutex_unlock
leaq _lock_bola(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
leaq L_.str.65(%rip), %rdi
jmp LBB9_14
.cfi_endproc
## -- End function
.globl _thread_lateral_Alemanha ## -- Begin function thread_lateral_Alemanha
.p2align 4, 0x90
_thread_lateral_Alemanha: ## @thread_lateral_Alemanha
.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
movslq (%rdi), %r13
cmpq $1, %r13
leaq L_.str.67(%rip), %rax
leaq L_.str.68(%rip), %rcx
cmoveq %rax, %rcx
testq %r13, %r13
leaq L_.str.66(%rip), %r12
cmovneq %rcx, %r12
leal 1(%r13), %eax
movl %eax, -44(%rbp) ## 4-byte Spill
movq _lock_laterais_Alemanha@GOTPCREL(%rip), %r15
movq _titular_laterais_Alemanha@GOTPCREL(%rip), %rbx
.p2align 4, 0x90
LBB10_1: ## =>This Inner Loop Header: Depth=1
callq _rand
movl %eax, %r14d
movq %r15, %rdi
callq _pthread_mutex_lock
movl _escalacao_laterais_Alemanha(%rip), %ecx
leal 1(%rcx), %eax
movl %eax, _escalacao_laterais_Alemanha(%rip)
cmpl $2, %ecx
jg LBB10_3
## %bb.2: ## in Loop: Header=BB10_1 Depth=1
movl %eax, (%rbx,%r13,4)
LBB10_3: ## in Loop: Header=BB10_1 Depth=1
movq %r15, %rdi
callq _pthread_mutex_unlock
cmpl $2, _escalacao_laterais_Alemanha(%rip)
jle LBB10_4
## %bb.5: ## in Loop: Header=BB10_1 Depth=1
cmpl $3, (%rbx,%r13,4)
je LBB10_6
LBB10_7: ## in Loop: Header=BB10_1 Depth=1
cmpl $2, _regiao(%rip)
je LBB10_8
jmp LBB10_1
.p2align 4, 0x90
LBB10_4: ## in Loop: Header=BB10_1 Depth=1
leaq L_.str.69(%rip), %rdi
movl -44(%rbp), %esi ## 4-byte Reload
movq %r12, %rdx
xorl %eax, %eax
callq _printf
movl $2, %edi
callq _sleep
cmpl $3, (%rbx,%r13,4)
jne LBB10_7
LBB10_6: ## in Loop: Header=BB10_1 Depth=1
movq _sem_banco@GOTPCREL(%rip), %rdi
callq _sem_wait
cmpl $2, _regiao(%rip)
jne LBB10_1
LBB10_8: ## in Loop: Header=BB10_1 Depth=1
cmpl $1, _posse(%rip)
jne LBB10_1
## %bb.9: ## in Loop: Header=BB10_1 Depth=1
movl %r14d, %ebx
movq %r12, %r14
movq %r13, %r12
movq %r15, %r13
leaq _lock_regiao(%rip), %r15
movq %r15, %rdi
callq _pthread_mutex_lock
xorl %eax, %eax
testb $1, %bl
sete %al
leal 1(%rax,%rax), %eax
leaq L_.str.72(%rip), %rbx
leaq L_.str.71(%rip), %rcx
cmoveq %rcx, %rbx
movl %eax, _regiao(%rip)
movq %r15, %rdi
movq %r13, %r15
movq %r12, %r13
movq %r14, %r12
callq _pthread_mutex_unlock
leaq _lock_bola(%rip), %r14
movq %r14, %rdi
callq _pthread_mutex_lock
movl _gols_Brasil(%rip), %esi
movl _gols_Alemanha(%rip), %edx
leaq L_.str.12(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.70(%rip), %rdi
movq %r12, %rsi
xorl %eax, %eax
callq _printf
movq %rbx, %rdi
movq _titular_laterais_Alemanha@GOTPCREL(%rip), %rbx
movq %r12, %rsi
xorl %eax, %eax
callq _printf
movq %r14, %rdi
callq _pthread_mutex_unlock
movl $4, %edi
callq _sleep
jmp LBB10_1
.cfi_endproc
## -- End function
.globl _thread_volante_Alemanha ## -- Begin function thread_volante_Alemanha
.p2align 4, 0x90
_thread_volante_Alemanha: ## @thread_volante_Alemanha
.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
movslq (%rdi), %r13
cmpq $1, %r13
leaq L_.str.74(%rip), %rax
leaq L_.str.75(%rip), %rcx
cmoveq %rax, %rcx
testq %r13, %r13
leaq L_.str.73(%rip), %r14
cmovneq %rcx, %r14
leal 1(%r13), %eax
movl %eax, -44(%rbp) ## 4-byte Spill
movq _lock_volantes_Alemanha@GOTPCREL(%rip), %rbx
movq _titular_volantes_Alemanha@GOTPCREL(%rip), %r15
jmp LBB11_1
.p2align 4, 0x90
LBB11_9: ## in Loop: Header=BB11_1 Depth=1
leaq _lock_regiao(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl $4, _regiao(%rip)
movq %rbx, %rdi
callq _pthread_mutex_unlock
leaq _lock_bola(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl _gols_Brasil(%rip), %esi
movl _gols_Alemanha(%rip), %edx
leaq L_.str.12(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.77(%rip), %rdi
movq %r14, %rsi
xorl %eax, %eax
callq _printf
leaq L_.str.78(%rip), %rdi
LBB11_12: ## in Loop: Header=BB11_1 Depth=1
movq %r14, %rsi
xorl %eax, %eax
callq _printf
movq %rbx, %rdi
callq _pthread_mutex_unlock
movl $4, %edi
callq _sleep
movq _lock_volantes_Alemanha@GOTPCREL(%rip), %rbx
LBB11_1: ## =>This Inner Loop Header: Depth=1
callq _rand
movl %eax, %r12d
movq %rbx, %rdi
callq _pthread_mutex_lock
movl _escalacao_volantes_Alemanha(%rip), %ecx
leal 1(%rcx), %eax
movl %eax, _escalacao_volantes_Alemanha(%rip)
cmpl $2, %ecx
jg LBB11_3
## %bb.2: ## in Loop: Header=BB11_1 Depth=1
movl %eax, (%r15,%r13,4)
LBB11_3: ## in Loop: Header=BB11_1 Depth=1
movq %rbx, %rdi
callq _pthread_mutex_unlock
cmpl $2, _escalacao_volantes_Alemanha(%rip)
jle LBB11_4
## %bb.5: ## in Loop: Header=BB11_1 Depth=1
cmpl $3, (%r15,%r13,4)
je LBB11_6
LBB11_7: ## in Loop: Header=BB11_1 Depth=1
cmpl $3, _regiao(%rip)
jne LBB11_1
jmp LBB11_8
.p2align 4, 0x90
LBB11_4: ## in Loop: Header=BB11_1 Depth=1
leaq L_.str.76(%rip), %rdi
movl -44(%rbp), %esi ## 4-byte Reload
movq %r14, %rdx
xorl %eax, %eax
callq _printf
movl $2, %edi
callq _sleep
cmpl $3, (%r15,%r13,4)
jne LBB11_7
LBB11_6: ## in Loop: Header=BB11_1 Depth=1
movq _sem_banco@GOTPCREL(%rip), %rdi
callq _sem_wait
cmpl $3, _regiao(%rip)
jne LBB11_1
LBB11_8: ## in Loop: Header=BB11_1 Depth=1
cmpl $1, _posse(%rip)
je LBB11_9
## %bb.10: ## in Loop: Header=BB11_1 Depth=1
testb $1, %r12b
jne LBB11_1
## %bb.11: ## in Loop: Header=BB11_1 Depth=1
leaq _lock_posse(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl $1, _posse(%rip)
movq %rbx, %rdi
callq _pthread_mutex_unlock
leaq _lock_bola(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
leaq L_.str.79(%rip), %rdi
jmp LBB11_12
.cfi_endproc
## -- End function
.globl _thread_meia_Alemanha ## -- Begin function thread_meia_Alemanha
.p2align 4, 0x90
_thread_meia_Alemanha: ## @thread_meia_Alemanha
.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
movslq (%rdi), %r13
testq %r13, %r13
leaq L_.str.80(%rip), %rax
leaq L_.str.81(%rip), %r12
cmoveq %rax, %r12
leal 1(%r13), %eax
movl %eax, -44(%rbp) ## 4-byte Spill
movq _lock_meias_Alemanha@GOTPCREL(%rip), %r15
movq _titular_meia_Alemanha@GOTPCREL(%rip), %rbx
movq %r12, -56(%rbp) ## 8-byte Spill
.p2align 4, 0x90
LBB12_1: ## =>This Inner Loop Header: Depth=1
callq _rand
movl %eax, %r14d
movq %r15, %rdi
callq _pthread_mutex_lock
movl _escalacao_meia_Alemanha(%rip), %ecx
leal 1(%rcx), %eax
movl %eax, _escalacao_meia_Alemanha(%rip)
cmpl $1, %ecx
jg LBB12_3
## %bb.2: ## in Loop: Header=BB12_1 Depth=1
movl %eax, (%rbx,%r13,4)
LBB12_3: ## in Loop: Header=BB12_1 Depth=1
movq %r15, %rdi
callq _pthread_mutex_unlock
cmpl $1, _escalacao_meia_Alemanha(%rip)
je LBB12_4
## %bb.5: ## in Loop: Header=BB12_1 Depth=1
cmpl $2, (%rbx,%r13,4)
je LBB12_6
LBB12_7: ## in Loop: Header=BB12_1 Depth=1
cmpl $4, _regiao(%rip)
je LBB12_8
jmp LBB12_1
.p2align 4, 0x90
LBB12_4: ## in Loop: Header=BB12_1 Depth=1
leaq L_.str.82(%rip), %rdi
movl -44(%rbp), %esi ## 4-byte Reload
movq %r12, %rdx
xorl %eax, %eax
callq _printf
movl $2, %edi
callq _sleep
cmpl $2, (%rbx,%r13,4)
jne LBB12_7
LBB12_6: ## in Loop: Header=BB12_1 Depth=1
movq _sem_banco@GOTPCREL(%rip), %rdi
callq _sem_wait
cmpl $4, _regiao(%rip)
jne LBB12_1
LBB12_8: ## in Loop: Header=BB12_1 Depth=1
cmpl $1, _posse(%rip)
jne LBB12_1
## %bb.9: ## in Loop: Header=BB12_1 Depth=1
andl $1, %r14d
movq %r13, %r12
movq %r15, %r13
leaq _lock_regiao(%rip), %r15
movq %r15, %rdi
callq _pthread_mutex_lock
movl %r14d, %eax
xorl $1, %eax
testl %r14d, %r14d
movq %rbx, %r14
leaq L_.str.85(%rip), %rbx
leaq L_.str.84(%rip), %rcx
cmoveq %rcx, %rbx
movl %eax, _regiao(%rip)
movq %r15, %rdi
movq %r13, %r15
movq %r12, %r13
movq -56(%rbp), %r12 ## 8-byte Reload
callq _pthread_mutex_unlock
leaq _lock_bola(%rip), %rdi
callq _pthread_mutex_lock
movl _gols_Brasil(%rip), %esi
movl _gols_Alemanha(%rip), %edx
leaq L_.str.12(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.83(%rip), %rdi
movq %r12, %rsi
xorl %eax, %eax
callq _printf
movq %rbx, %rdi
movq %r14, %rbx
movq %r12, %rsi
xorl %eax, %eax
callq _printf
leaq _lock_bola(%rip), %rdi
callq _pthread_mutex_unlock
movl $4, %edi
callq _sleep
jmp LBB12_1
.cfi_endproc
## -- End function
.globl _thread_atacante_Alemanha ## -- Begin function thread_atacante_Alemanha
.p2align 4, 0x90
_thread_atacante_Alemanha: ## @thread_atacante_Alemanha
.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
movslq (%rdi), %r14
cmpq $1, %r14
leaq L_.str.87(%rip), %rax
leaq L_.str.88(%rip), %rcx
cmoveq %rax, %rcx
testq %r14, %r14
leaq L_.str.86(%rip), %r12
cmovneq %rcx, %r12
leal 1(%r14), %eax
movl %eax, -44(%rbp) ## 4-byte Spill
movq _lock_atacantes_Alemanha@GOTPCREL(%rip), %r15
movq _titular_atacantes_Alemanha@GOTPCREL(%rip), %rbx
.p2align 4, 0x90
LBB13_1: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
callq _pthread_mutex_lock
movl _escalacao_atacantes_Alemanha(%rip), %ecx
leal 1(%rcx), %eax
movl %eax, _escalacao_atacantes_Alemanha(%rip)
cmpl $2, %ecx
jg LBB13_3
## %bb.2: ## in Loop: Header=BB13_1 Depth=1
movl %eax, (%rbx,%r14,4)
LBB13_3: ## in Loop: Header=BB13_1 Depth=1
movq %r15, %rdi
callq _pthread_mutex_unlock
cmpl $2, _escalacao_atacantes_Alemanha(%rip)
jle LBB13_4
## %bb.5: ## in Loop: Header=BB13_1 Depth=1
cmpl $3, (%rbx,%r14,4)
je LBB13_6
LBB13_7: ## in Loop: Header=BB13_1 Depth=1
cmpl $1, _regiao(%rip)
je LBB13_8
jmp LBB13_1
.p2align 4, 0x90
LBB13_4: ## in Loop: Header=BB13_1 Depth=1
leaq L_.str.89(%rip), %rdi
movl -44(%rbp), %esi ## 4-byte Reload
movq %r12, %rdx
xorl %eax, %eax
callq _printf
movl $2, %edi
callq _sleep
cmpl $3, (%rbx,%r14,4)
jne LBB13_7
LBB13_6: ## in Loop: Header=BB13_1 Depth=1
movq _sem_banco@GOTPCREL(%rip), %rdi
callq _sem_wait
cmpl $1, _regiao(%rip)
jne LBB13_1
LBB13_8: ## in Loop: Header=BB13_1 Depth=1
cmpl $1, _posse(%rip)
jne LBB13_1
## %bb.9: ## in Loop: Header=BB13_1 Depth=1
leaq _lock_regiao(%rip), %r13
movq %r13, %rdi
callq _pthread_mutex_lock
movl $0, _regiao(%rip)
movq %r13, %rdi
callq _pthread_mutex_unlock
movq %rbx, %r13
leaq _lock_bola(%rip), %rbx
movq %rbx, %rdi
callq _pthread_mutex_lock
movl _gols_Brasil(%rip), %esi
movl _gols_Alemanha(%rip), %edx
leaq L_.str.12(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.90(%rip), %rdi
movq %r12, %rsi
xorl %eax, %eax
callq _printf
leaq L_.str.91(%rip), %rdi
movq %r12, %rsi
xorl %eax, %eax
callq _printf
movq %rbx, %rdi
movq %r13, %rbx
callq _pthread_mutex_unlock
movl $4, %edi
callq _sleep
jmp LBB13_1
.cfi_endproc
## -- End function
.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 $40, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
xorl %edi, %edi
callq _time
movq %rax, %rdi
callq _srand48
leaq L_str.110(%rip), %rdi
callq _puts
leaq L_.str.93(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_str.111(%rip), %rdi
callq _puts
leaq L_str.112(%rip), %rdi
callq _puts
leaq L_str.113(%rip), %rdi
callq _puts
leaq L_str.114(%rip), %rdi
callq _puts
leaq L_str.115(%rip), %rdi
callq _puts
leaq L_str.116(%rip), %rdi
callq _puts
leaq L_str.117(%rip), %rdi
callq _puts
leaq L_str.118(%rip), %rdi
callq _puts
leaq L_str.119(%rip), %rdi
callq _puts
leaq L_str.120(%rip), %rdi
callq _puts
leaq L_str.121(%rip), %rdi
callq _puts
leaq L_str.122(%rip), %rdi
callq _puts
leaq L_str.123(%rip), %rdi
callq _puts
leaq L_str.124(%rip), %rdi
callq _puts
leaq L_str.125(%rip), %rdi
callq _puts
movq _sem_banco@GOTPCREL(%rip), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq _sem_init
movl $4, %edi
callq _malloc
movl $0, (%rax)
movq _Brasil@GOTPCREL(%rip), %rdi
leaq _thread_goleiro_Brasil(%rip), %r14
movq %rdi, %r13
xorl %esi, %esi
movq %r14, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $0, (%rax)
movq _Alemanha@GOTPCREL(%rip), %rbx
leaq _thread_goleiro_Alemanha(%rip), %r15
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $1, (%rax)
leaq 8(%r13), %r12
movq %r12, %rdi
movq %r12, -48(%rbp) ## 8-byte Spill
xorl %esi, %esi
movq %r14, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $1, (%rax)
leaq 8(%rbx), %r14
movq %r14, %rdi
movq %r14, -56(%rbp) ## 8-byte Spill
xorl %esi, %esi
movq %r15, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $0, (%rax)
leaq _thread_zagueiro_Brasil(%rip), %r15
movq %r13, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $0, (%rax)
leaq _thread_zagueiro_Alemanha(%rip), %r13
movq %rbx, %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $1, (%rax)
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $1, (%rax)
movq %r14, %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $2, (%rax)
movq _Brasil@GOTPCREL(%rip), %r12
leaq 16(%r12), %rdi
movq %rdi, -72(%rbp) ## 8-byte Spill
xorl %esi, %esi
movq %r15, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $2, (%rax)
leaq 16(%rbx), %rdi
movq %rdi, -64(%rbp) ## 8-byte Spill
xorl %esi, %esi
movq %r13, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $3, (%rax)
leaq 24(%r12), %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $3, (%rax)
leaq 24(%rbx), %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $0, (%rax)
leaq _thread_lateral_Brasil(%rip), %r14
movq %r12, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $0, (%rax)
leaq _thread_lateral_Alemanha(%rip), %r15
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $1, (%rax)
movq -48(%rbp), %r13 ## 8-byte Reload
movq %r13, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $1, (%rax)
movq -56(%rbp), %rbx ## 8-byte Reload
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $2, (%rax)
movq -72(%rbp), %r12 ## 8-byte Reload
movq %r12, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $2, (%rax)
movq -64(%rbp), %r14 ## 8-byte Reload
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $0, (%rax)
leaq _thread_volante_Brasil(%rip), %rdx
movq _Brasil@GOTPCREL(%rip), %rdi
xorl %esi, %esi
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $0, (%rax)
leaq _thread_volante_Alemanha(%rip), %r15
movq _Alemanha@GOTPCREL(%rip), %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $1, (%rax)
movq %r13, %rdi
xorl %esi, %esi
leaq _thread_volante_Brasil(%rip), %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $1, (%rax)
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $2, (%rax)
movq %r12, %rdi
xorl %esi, %esi
leaq _thread_volante_Brasil(%rip), %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $2, (%rax)
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $0, (%rax)
leaq _thread_meia_Brasil(%rip), %rbx
movq _Brasil@GOTPCREL(%rip), %r12
movq %r12, %rdi
xorl %esi, %esi
movq %rbx, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $0, (%rax)
leaq _thread_meia_Alemanha(%rip), %r14
movq _Alemanha@GOTPCREL(%rip), %r13
movq %r13, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $1, (%rax)
movq -48(%rbp), %r15 ## 8-byte Reload
movq %r15, %rdi
xorl %esi, %esi
movq %rbx, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $1, (%rax)
movq -56(%rbp), %rbx ## 8-byte Reload
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $0, (%rax)
leaq _thread_atacante_Brasil(%rip), %rdx
movq %r12, %rdi
xorl %esi, %esi
movq %rdx, %r12
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $0, (%rax)
leaq _thread_atacante_Alemanha(%rip), %r14
movq %r13, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $1, (%rax)
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $1, (%rax)
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $2, (%rax)
movq -72(%rbp), %rdi ## 8-byte Reload
xorl %esi, %esi
movq %r12, %rdx
movq %rax, %rcx
callq _pthread_create
movl $4, %edi
callq _malloc
movl $2, (%rax)
movq -64(%rbp), %rdi ## 8-byte Reload
xorl %esi, %esi
movq %r14, %rdx
movq %rax, %rcx
callq _pthread_create
movq _Brasil@GOTPCREL(%rip), %rax
movq (%rax), %rdi
xorl %esi, %esi
callq _pthread_join
movq (%r13), %rdi
xorl %esi, %esi
callq _pthread_join
xorl %eax, %eax
addq $40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _escalacao_goleiro_Brasil ## @escalacao_goleiro_Brasil
.zerofill __DATA,__common,_escalacao_goleiro_Brasil,4,2
.globl _escalacao_zagueiros_Brasil ## @escalacao_zagueiros_Brasil
.zerofill __DATA,__common,_escalacao_zagueiros_Brasil,4,2
.globl _escalacao_laterais_Brasil ## @escalacao_laterais_Brasil
.zerofill __DATA,__common,_escalacao_laterais_Brasil,4,2
.globl _escalacao_volantes_Brasil ## @escalacao_volantes_Brasil
.zerofill __DATA,__common,_escalacao_volantes_Brasil,4,2
.globl _escalacao_meia_Brasil ## @escalacao_meia_Brasil
.zerofill __DATA,__common,_escalacao_meia_Brasil,4,2
.globl _escalacao_atacantes_Brasil ## @escalacao_atacantes_Brasil
.zerofill __DATA,__common,_escalacao_atacantes_Brasil,4,2
.globl _gols_Brasil ## @gols_Brasil
.zerofill __DATA,__common,_gols_Brasil,4,2
.globl _escalacao_goleiro_Alemanha ## @escalacao_goleiro_Alemanha
.zerofill __DATA,__common,_escalacao_goleiro_Alemanha,4,2
.globl _escalacao_zagueiros_Alemanha ## @escalacao_zagueiros_Alemanha
.zerofill __DATA,__common,_escalacao_zagueiros_Alemanha,4,2
.globl _escalacao_laterais_Alemanha ## @escalacao_laterais_Alemanha
.zerofill __DATA,__common,_escalacao_laterais_Alemanha,4,2
.globl _escalacao_volantes_Alemanha ## @escalacao_volantes_Alemanha
.zerofill __DATA,__common,_escalacao_volantes_Alemanha,4,2
.globl _escalacao_meia_Alemanha ## @escalacao_meia_Alemanha
.zerofill __DATA,__common,_escalacao_meia_Alemanha,4,2
.globl _escalacao_atacantes_Alemanha ## @escalacao_atacantes_Alemanha
.zerofill __DATA,__common,_escalacao_atacantes_Alemanha,4,2
.globl _gols_Alemanha ## @gols_Alemanha
.zerofill __DATA,__common,_gols_Alemanha,4,2
.section __DATA,__data
.globl _lock_posse ## @lock_posse
.p2align 3
_lock_posse:
.quad 850045863 ## 0x32aaaba7
.space 56
.globl _lock_regiao ## @lock_regiao
.p2align 3
_lock_regiao:
.quad 850045863 ## 0x32aaaba7
.space 56
.globl _lock_gol ## @lock_gol
.p2align 3
_lock_gol:
.quad 850045863 ## 0x32aaaba7
.space 56
.globl _lock_bola ## @lock_bola
.p2align 3
_lock_bola:
.quad 850045863 ## 0x32aaaba7
.space 56
.globl _posse ## @posse
.zerofill __DATA,__common,_posse,4,2
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "BRASIL"
L_.str.1: ## @.str.1
.asciz "ALEMANHA"
.section __DATA,__data
.globl _regiao ## @regiao
.p2align 2
_regiao:
.long 3 ## 0x3
.section __TEXT,__cstring,cstring_literals
L_.str.2: ## @.str.2
.asciz "GOL_BRASIL"
L_.str.3: ## @.str.3
.asciz "DEFESA_BRASIL"
L_.str.4: ## @.str.4
.asciz "LADOS"
L_.str.5: ## @.str.5
.asciz "MEIO_OFENSIVO_BRASIL"
L_.str.6: ## @.str.6
.asciz "MEIO_DEFENSIVO_BRASIL"
L_.str.7: ## @.str.7
.asciz "ATAQUE_BRASIL"
L_.str.8: ## @.str.8
.asciz "GOL_ALEMANHA"
L_.str.9: ## @.str.9
.asciz "(1) Marcos"
L_.str.10: ## @.str.10
.asciz "(22) Rogerio Ceni"
.comm _lock_goleiros_Brasil,64,3 ## @lock_goleiros_Brasil
.comm _titular_goleiro_Brasil,8,2 ## @titular_goleiro_Brasil
L_.str.11: ## @.str.11
.asciz "\tBrasil, como goleiro: %s\n"
.comm _sem_banco,4,2 ## @sem_banco
L_.str.12: ## @.str.12
.asciz "\nBRASIL %d X %d ALEMANHA\n"
L_.str.13: ## @.str.13
.asciz "Brasil, goleiro %s com a bola\n"
L_.str.14: ## @.str.14
.asciz "Brasil, goleiro %s tocou a bola\n"
L_.str.15: ## @.str.15
.asciz "Brasil, goleiro %s defendeu\n"
L_.str.17: ## @.str.17
.asciz "(3) Lucio"
L_.str.18: ## @.str.18
.asciz "(5) Edmilson"
L_.str.19: ## @.str.19
.asciz "(4) Roque Junior"
L_.str.20: ## @.str.20
.asciz "(14) Anderson Polga"
.comm _lock_zagueiros_Brasil,64,3 ## @lock_zagueiros_Brasil
.comm _titular_zagueiros_Brasil,16,4 ## @titular_zagueiros_Brasil
L_.str.21: ## @.str.21
.asciz "\tBrasil, como %do zagueiro: %s\n"
L_.str.22: ## @.str.22
.asciz "Brasil, zagueiro %s com a bola\n"
L_.str.23: ## @.str.23
.asciz "Brasil, zagueiro %s tocou a bola\n"
L_.str.24: ## @.str.24
.asciz "Brasil, zagueiro %s tomou e tocou a bola\n"
L_.str.25: ## @.str.25
.asciz "(2) Cafu"
L_.str.26: ## @.str.26
.asciz "(6) Roberto Carlos"
L_.str.27: ## @.str.27
.asciz "(16) Junior"
.comm _lock_laterais_Brasil,64,3 ## @lock_laterais_Brasil
.comm _titular_laterais_Brasil,12,2 ## @titular_laterais_Brasil
L_.str.28: ## @.str.28
.asciz "\tBrasil, como %do lateral: %s\n"
L_.str.29: ## @.str.29
.asciz "Brasil, lateral %s com a bola\n"
L_.str.30: ## @.str.30
.asciz "Brasil, lateral %s tocou a bola\n"
L_.str.31: ## @.str.31
.asciz "Brasil, lateral %s cruzou a bola\n"
L_.str.32: ## @.str.32
.asciz "(8) Gilberto Silva"
L_.str.33: ## @.str.33
.asciz "(15) Kleberson"
L_.str.34: ## @.str.34
.asciz "(18) Vampeta"
.comm _lock_volantes_Brasil,64,3 ## @lock_volantes_Brasil
.comm _titular_volantes_Brasil,12,2 ## @titular_volantes_Brasil
L_.str.35: ## @.str.35
.asciz "\tBrasil, como %do volante: %s\n"
L_.str.36: ## @.str.36
.asciz "Brasil, volante %s com a bola\n"
L_.str.37: ## @.str.37
.asciz "Brasil, volante %s tocou a bola\n"
L_.str.38: ## @.str.38
.asciz "Brasil, volante %s tomou e tocou a bola\n"
L_.str.39: ## @.str.39
.asciz "(11) Ronaldinho"
L_.str.40: ## @.str.40
.asciz "(23) Kaka"
.comm _lock_meias_Brasil,64,3 ## @lock_meias_Brasil
.comm _titular_meia_Brasil,8,2 ## @titular_meia_Brasil
L_.str.41: ## @.str.41
.asciz "\tBrasil, como %do meia: %s\n"
L_.str.42: ## @.str.42
.asciz "Brasil, meia %s com a bola\n"
L_.str.43: ## @.str.43
.asciz "Brasil, meia %s tocou a bola\n"
L_.str.44: ## @.str.44
.asciz "Brasil, meia %s chutou a bola\n"
L_.str.45: ## @.str.45
.asciz "(10) Rivaldo"
L_.str.46: ## @.str.46
.asciz "(9) Ronaldo"
L_.str.47: ## @.str.47
.asciz "(17) Denilson"
.comm _lock_atacantes_Brasil,64,3 ## @lock_atacantes_Brasil
.comm _titular_atacantes_Brasil,12,2 ## @titular_atacantes_Brasil
L_.str.48: ## @.str.48
.asciz "\tBrasil, como %do atacante: %s\n"
L_.str.49: ## @.str.49
.asciz "Brasil, atacante %s com a bola\n"
L_.str.50: ## @.str.50
.asciz "Brasil, atacante %s chutou a bola\n"
L_.str.51: ## @.str.51
.asciz "(1) Kahn"
L_.str.52: ## @.str.52
.asciz "(12) Lehmann"
.comm _lock_goleiros_Alemanha,64,3 ## @lock_goleiros_Alemanha
.comm _titular_goleiro_Alemanha,8,2 ## @titular_goleiro_Alemanha
L_.str.53: ## @.str.53
.asciz "\tAlemanha, como goleiro: %s\n"
L_.str.54: ## @.str.54
.asciz "Alemanha, goleiro %s com a bola\n"
L_.str.55: ## @.str.55
.asciz "Alemanha, goleiro %s tocou a bola\n"
L_.str.56: ## @.str.56
.asciz "Alemanha, goleiro %s defendeu\n"
L_.str.58: ## @.str.58
.asciz "(2) Linke"
L_.str.59: ## @.str.59
.asciz "(3) Rehmer"
L_.str.60: ## @.str.60
.asciz "(21) Meltzfelder"
L_.str.61: ## @.str.61
.asciz "(4) Baumann"
.comm _lock_zagueiros_Alemanha,64,3 ## @lock_zagueiros_Alemanha
.comm _titular_zagueiros_Alemanha,16,4 ## @titular_zagueiros_Alemanha
L_.str.62: ## @.str.62
.asciz "\tAlemanha, como %do zagueiro: %s\n"
L_.str.63: ## @.str.63
.asciz "Alemanha, zagueiro %s com a bola\n"
L_.str.64: ## @.str.64
.asciz "Alemanha, zagueiro %s tocou a bola\n"
L_.str.65: ## @.str.65
.asciz "Alemanha, zagueiro %s tomou e tocou a bola\n"
L_.str.66: ## @.str.66
.asciz "(22) Frings"
L_.str.67: ## @.str.67
.asciz "(17) Bode"
L_.str.68: ## @.str.68
.asciz "(6) Ziege"
.comm _lock_laterais_Alemanha,64,3 ## @lock_laterais_Alemanha
.comm _titular_laterais_Alemanha,12,2 ## @titular_laterais_Alemanha
L_.str.69: ## @.str.69
.asciz "\tAlemanha, como %do lateral: %s\n"
L_.str.70: ## @.str.70
.asciz "Alemanha, lateral %s com a bola\n"
L_.str.71: ## @.str.71
.asciz "Alemanha, lateral %s tocou a bola\n"
L_.str.72: ## @.str.72
.asciz "Alemanha, lateral %s cruzou a bola\n"
L_.str.73: ## @.str.73
.asciz "(8) Hamann"
L_.str.74: ## @.str.74
.asciz "(16) Jeremies"
L_.str.75: ## @.str.75
.asciz "(5) Ramelow"
.comm _lock_volantes_Alemanha,64,3 ## @lock_volantes_Alemanha
.comm _titular_volantes_Alemanha,12,2 ## @titular_volantes_Alemanha
L_.str.76: ## @.str.76
.asciz "\tAlemanha, como %do volante: %s\n"
L_.str.77: ## @.str.77
.asciz "Alemanha, volante %s com a bola\n"
L_.str.78: ## @.str.78
.asciz "Alemanha, volante %s tocou a bola\n"
L_.str.79: ## @.str.79
.asciz "Alemanha, volante %s tomou e tocou a bola\n"
L_.str.80: ## @.str.80
.asciz "(19) Schneider"
L_.str.81: ## @.str.81
.asciz "(13) Ballack"
.comm _lock_meias_Alemanha,64,3 ## @lock_meias_Alemanha
.comm _titular_meia_Alemanha,8,2 ## @titular_meia_Alemanha
L_.str.82: ## @.str.82
.asciz "\tAlemanha, como %do meia: %s\n"
L_.str.83: ## @.str.83
.asciz "Alemanha, meia %s com a bola\n"
L_.str.84: ## @.str.84
.asciz "Alemanha, meia %s tocou a bola\n"
L_.str.85: ## @.str.85
.asciz "Alemanha, meia %s chutou a bola\n"
L_.str.86: ## @.str.86
.asciz "(11) Klose"
L_.str.87: ## @.str.87
.asciz "(7) Neuville"
L_.str.88: ## @.str.88
.asciz "(9) Jancker"
.comm _lock_atacantes_Alemanha,64,3 ## @lock_atacantes_Alemanha
.comm _titular_atacantes_Alemanha,12,2 ## @titular_atacantes_Alemanha
L_.str.89: ## @.str.89
.asciz "\tAlemanha, como %do atacante: %s\n"
L_.str.90: ## @.str.90
.asciz "Alemanha, atacante %s com a bola\n"
L_.str.91: ## @.str.91
.asciz "Alemanha, atacante %s chutou a bola\n"
L_.str.93: ## @.str.93
.asciz "\nELENCOS:"
.comm _Brasil,128,4 ## @Brasil
.comm _Alemanha,128,4 ## @Alemanha
L_str: ## @str
.asciz "GOL DA ALEMANHA!"
L_str.109: ## @str.109
.asciz "GOL DO BRASIL!"
L_str.110: ## @str.110
.asciz "\n***** SIMULACAO DA FINAL DA COPA DO MUNDO DE 2002 NO JAPAO *****"
L_str.111: ## @str.111
.asciz "\n\tBRASIL"
L_str.112: ## @str.112
.asciz "\t- Goleiros: Marcos e Rogerio Ceni;"
L_str.113: ## @str.113
.asciz "\t- Zagueiros: Lucio, Edmilson, Roque Junior e Anderson Polga;"
L_str.114: ## @str.114
.asciz "\t- Laterais: Cafu, Roberto Carlos e Junior;"
L_str.115: ## @str.115
.asciz "\t- Volantes: Gilberto Silva, Kleberson e Vampeta;"
L_str.116: ## @str.116
.asciz "\t- Meias: Ronaldinho e Kaka;"
L_str.117: ## @str.117
.asciz "\t- Atacantes: Rivaldo, Ronaldo e Denilson."
L_str.118: ## @str.118
.asciz "\n\tALEMANHA"
L_str.119: ## @str.119
.asciz "\t- Goleiros: Kahn e Lehmann;"
L_str.120: ## @str.120
.asciz "\t- Zagueiros: Linke, Rehmer, Meltzfelder e Baumann;"
L_str.121: ## @str.121
.asciz "\t- Laterais: Frings, Bode e Ziege;"
L_str.122: ## @str.122
.asciz "\t- Volantes: Hamann, Jeremies e Ramelow;"
L_str.123: ## @str.123
.asciz "\t- Meias: Schneider e Ballack;"
L_str.124: ## @str.124
.asciz "\t- Atacantes: Klose, Neuville e Jancker."
L_str.125: ## @str.125
.asciz "\nTITULARES:"
.section __TEXT,__const
.p2align 2 ## @reltable.getRegiao
l_reltable.getRegiao:
.long L_.str.3-l_reltable.getRegiao
.long L_.str.4-l_reltable.getRegiao
.long L_.str.5-l_reltable.getRegiao
.long L_.str.6-l_reltable.getRegiao
.long L_.str.7-l_reltable.getRegiao
.long L_.str.8-l_reltable.getRegiao
.p2align 2 ## @reltable.thread_zagueiro_Brasil
l_reltable.thread_zagueiro_Brasil:
.long L_.str.17-l_reltable.thread_zagueiro_Brasil
.long L_.str.18-l_reltable.thread_zagueiro_Brasil
.long L_.str.19-l_reltable.thread_zagueiro_Brasil
.p2align 2 ## @reltable.thread_zagueiro_Alemanha
l_reltable.thread_zagueiro_Alemanha:
.long L_.str.58-l_reltable.thread_zagueiro_Alemanha
.long L_.str.59-l_reltable.thread_zagueiro_Alemanha
.long L_.str.60-l_reltable.thread_zagueiro_Alemanha
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _getPosse ; -- Begin function getPosse
.p2align 2
_getPosse: ; @getPosse
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, l_.str.1@PAGE
Lloh1:
add x8, x8, l_.str.1@PAGEOFF
Lloh2:
adrp x9, l_.str@PAGE
Lloh3:
add x9, x9, l_.str@PAGEOFF
cmp w0, #0
csel x0, x9, x8, eq
ret
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.globl _getRegiao ; -- Begin function getRegiao
.p2align 2
_getRegiao: ; @getRegiao
.cfi_startproc
; %bb.0:
sub w8, w0, #1
cmp w8, #5
b.hi LBB1_2
; %bb.1:
Lloh4:
adrp x9, l_switch.table.getRegiao@PAGE
Lloh5:
add x9, x9, l_switch.table.getRegiao@PAGEOFF
ldr x0, [x9, w8, sxtw #3]
ret
LBB1_2:
Lloh6:
adrp x0, l_.str.2@PAGE
Lloh7:
add x0, x0, l_.str.2@PAGEOFF
ret
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh6, Lloh7
.cfi_endproc
; -- End function
.globl _thread_goleiro_Brasil ; -- Begin function thread_goleiro_Brasil
.p2align 2
_thread_goleiro_Brasil: ; @thread_goleiro_Brasil
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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
ldrsw x25, [x0]
Lloh8:
adrp x8, l_.str.10@PAGE
Lloh9:
add x8, x8, l_.str.10@PAGEOFF
Lloh10:
adrp x9, l_.str.9@PAGE
Lloh11:
add x9, x9, l_.str.9@PAGEOFF
cmp x25, #0
csel x26, x9, x8, eq
Lloh12:
adrp x19, _lock_goleiros_Brasil@GOTPAGE
Lloh13:
ldr x19, [x19, _lock_goleiros_Brasil@GOTPAGEOFF]
Lloh14:
adrp x28, _titular_goleiro_Brasil@GOTPAGE
Lloh15:
ldr x28, [x28, _titular_goleiro_Brasil@GOTPAGEOFF]
adrp x22, _escalacao_goleiro_Brasil@PAGE
adrp x20, _regiao@PAGE
adrp x21, _posse@PAGE
Lloh16:
adrp x23, _lock_bola@PAGE
Lloh17:
add x23, x23, _lock_bola@PAGEOFF
Lloh18:
adrp x27, _lock_posse@PAGE
Lloh19:
add x27, x27, _lock_posse@PAGEOFF
b LBB2_2
LBB2_1: ; in Loop: Header=BB2_2 Depth=1
ldr w8, [x20, _regiao@PAGEOFF]
cbz w8, LBB2_8
LBB2_2: ; =>This Inner Loop Header: Depth=1
bl _rand
mov x24, x0
mov x0, x19
bl _pthread_mutex_lock
ldr w9, [x22, _escalacao_goleiro_Brasil@PAGEOFF]
add w8, w9, #1
str w8, [x22, _escalacao_goleiro_Brasil@PAGEOFF]
cmp w9, #1
b.gt LBB2_4
; %bb.3: ; in Loop: Header=BB2_2 Depth=1
str w8, [x28, x25, lsl #2]
LBB2_4: ; in Loop: Header=BB2_2 Depth=1
mov x0, x19
bl _pthread_mutex_unlock
ldr w8, [x22, _escalacao_goleiro_Brasil@PAGEOFF]
cmp w8, #1
b.ne LBB2_6
; %bb.5: ; in Loop: Header=BB2_2 Depth=1
str x26, [sp]
Lloh20:
adrp x0, l_.str.11@PAGE
Lloh21:
add x0, x0, l_.str.11@PAGEOFF
bl _printf
mov w0, #2
bl _sleep
LBB2_6: ; in Loop: Header=BB2_2 Depth=1
ldr w8, [x28, x25, lsl #2]
cmp w8, #2
b.ne LBB2_1
; %bb.7: ; in Loop: Header=BB2_2 Depth=1
Lloh22:
adrp x0, _sem_banco@GOTPAGE
Lloh23:
ldr x0, [x0, _sem_banco@GOTPAGEOFF]
bl _sem_wait
b LBB2_1
LBB2_8: ; in Loop: Header=BB2_2 Depth=1
ldr w8, [x21, _posse@PAGEOFF]
cbz w8, LBB2_11
; %bb.9: ; in Loop: Header=BB2_2 Depth=1
mov x0, x27
bl _pthread_mutex_lock
str wzr, [x21, _posse@PAGEOFF]
mov x0, x27
bl _pthread_mutex_unlock
tbnz w24, #0, LBB2_13
; %bb.10: ; in Loop: Header=BB2_2 Depth=1
mov x0, x23
bl _pthread_mutex_lock
str x26, [sp]
Lloh24:
adrp x0, l_.str.15@PAGE
Lloh25:
add x0, x0, l_.str.15@PAGEOFF
b LBB2_12
LBB2_11: ; in Loop: Header=BB2_2 Depth=1
Lloh26:
adrp x24, _lock_regiao@PAGE
Lloh27:
add x24, x24, _lock_regiao@PAGEOFF
mov x0, x24
bl _pthread_mutex_lock
mov w8, #1
str w8, [x20, _regiao@PAGEOFF]
mov x0, x24
bl _pthread_mutex_unlock
mov x0, x23
bl _pthread_mutex_lock
Lloh28:
adrp x8, _gols_Brasil@PAGE
Lloh29:
ldr w8, [x8, _gols_Brasil@PAGEOFF]
Lloh30:
adrp x9, _gols_Alemanha@PAGE
Lloh31:
ldr w9, [x9, _gols_Alemanha@PAGEOFF]
stp x8, x9, [sp]
Lloh32:
adrp x0, l_.str.12@PAGE
Lloh33:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str x26, [sp]
Lloh34:
adrp x0, l_.str.13@PAGE
Lloh35:
add x0, x0, l_.str.13@PAGEOFF
bl _printf
str x26, [sp]
Lloh36:
adrp x0, l_.str.14@PAGE
Lloh37:
add x0, x0, l_.str.14@PAGEOFF
LBB2_12: ; in Loop: Header=BB2_2 Depth=1
bl _printf
mov x0, x23
bl _pthread_mutex_unlock
b LBB2_14
LBB2_13: ; in Loop: Header=BB2_2 Depth=1
Lloh38:
adrp x24, _lock_gol@PAGE
Lloh39:
add x24, x24, _lock_gol@PAGEOFF
mov x0, x24
bl _pthread_mutex_lock
adrp x9, _gols_Alemanha@PAGE
ldr w8, [x9, _gols_Alemanha@PAGEOFF]
add w8, w8, #1
str w8, [x9, _gols_Alemanha@PAGEOFF]
mov x0, x24
bl _pthread_mutex_unlock
Lloh40:
adrp x0, l_str@PAGE
Lloh41:
add x0, x0, l_str@PAGEOFF
bl _puts
LBB2_14: ; in Loop: Header=BB2_2 Depth=1
mov w0, #4
bl _sleep
b LBB2_2
.loh AdrpAdd Lloh18, Lloh19
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpLdrGot Lloh14, Lloh15
.loh AdrpLdrGot Lloh12, Lloh13
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh20, Lloh21
.loh AdrpLdrGot Lloh22, Lloh23
.loh AdrpAdd Lloh24, Lloh25
.loh AdrpAdd Lloh36, Lloh37
.loh AdrpAdd Lloh34, Lloh35
.loh AdrpAdd Lloh32, Lloh33
.loh AdrpLdr Lloh30, Lloh31
.loh AdrpLdr Lloh28, Lloh29
.loh AdrpAdd Lloh26, Lloh27
.loh AdrpAdd Lloh40, Lloh41
.loh AdrpAdd Lloh38, Lloh39
.cfi_endproc
; -- End function
.globl _thread_zagueiro_Brasil ; -- Begin function thread_zagueiro_Brasil
.p2align 2
_thread_zagueiro_Brasil: ; @thread_zagueiro_Brasil
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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
ldrsw x28, [x0]
add w24, w28, #1
Lloh42:
adrp x23, l_.str.20@PAGE
Lloh43:
add x23, x23, l_.str.20@PAGEOFF
Lloh44:
adrp x8, l_switch.table.thread_zagueiro_Brasil@PAGE
Lloh45:
add x8, x8, l_switch.table.thread_zagueiro_Brasil@PAGEOFF
ldr x26, [x8, x28, lsl #3]
Lloh46:
adrp x19, _lock_zagueiros_Brasil@GOTPAGE
Lloh47:
ldr x19, [x19, _lock_zagueiros_Brasil@GOTPAGEOFF]
Lloh48:
adrp x22, _titular_zagueiros_Brasil@GOTPAGE
Lloh49:
ldr x22, [x22, _titular_zagueiros_Brasil@GOTPAGEOFF]
adrp x20, _escalacao_zagueiros_Brasil@PAGE
adrp x21, _regiao@PAGE
b LBB3_3
LBB3_1: ; in Loop: Header=BB3_3 Depth=1
Lloh50:
adrp x27, _lock_regiao@PAGE
Lloh51:
add x27, x27, _lock_regiao@PAGEOFF
mov x0, x27
bl _pthread_mutex_lock
mov w8, #2
str w8, [x21, _regiao@PAGEOFF]
mov x0, x27
bl _pthread_mutex_unlock
Lloh52:
adrp x27, _lock_bola@PAGE
Lloh53:
add x27, x27, _lock_bola@PAGEOFF
mov x0, x27
bl _pthread_mutex_lock
Lloh54:
adrp x8, _gols_Brasil@PAGE
Lloh55:
ldr w8, [x8, _gols_Brasil@PAGEOFF]
Lloh56:
adrp x9, _gols_Alemanha@PAGE
Lloh57:
ldr w9, [x9, _gols_Alemanha@PAGEOFF]
stp x8, x9, [sp]
Lloh58:
adrp x0, l_.str.12@PAGE
Lloh59:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str x25, [sp]
Lloh60:
adrp x0, l_.str.22@PAGE
Lloh61:
add x0, x0, l_.str.22@PAGEOFF
bl _printf
Lloh62:
adrp x0, l_.str.23@PAGE
Lloh63:
add x0, x0, l_.str.23@PAGEOFF
LBB3_2: ; in Loop: Header=BB3_3 Depth=1
str x25, [sp]
bl _printf
mov x0, x27
bl _pthread_mutex_unlock
mov w0, #4
bl _sleep
LBB3_3: ; =>This Inner Loop Header: Depth=1
bl _rand
mov x27, x0
mov x25, x23
cmp w28, #2
b.hi LBB3_5
; %bb.4: ; in Loop: Header=BB3_3 Depth=1
mov x25, x26
LBB3_5: ; in Loop: Header=BB3_3 Depth=1
mov x0, x19
bl _pthread_mutex_lock
ldr w9, [x20, _escalacao_zagueiros_Brasil@PAGEOFF]
add w8, w9, #1
str w8, [x20, _escalacao_zagueiros_Brasil@PAGEOFF]
cmp w9, #3
b.gt LBB3_7
; %bb.6: ; in Loop: Header=BB3_3 Depth=1
str w8, [x22, x28, lsl #2]
LBB3_7: ; in Loop: Header=BB3_3 Depth=1
mov x0, x19
bl _pthread_mutex_unlock
ldr w8, [x20, _escalacao_zagueiros_Brasil@PAGEOFF]
cmp w8, #3
b.gt LBB3_9
; %bb.8: ; in Loop: Header=BB3_3 Depth=1
stp x24, x25, [sp]
Lloh64:
adrp x0, l_.str.21@PAGE
Lloh65:
add x0, x0, l_.str.21@PAGEOFF
bl _printf
mov w0, #2
bl _sleep
LBB3_9: ; in Loop: Header=BB3_3 Depth=1
ldr w8, [x22, x28, lsl #2]
cmp w8, #4
b.ne LBB3_11
; %bb.10: ; in Loop: Header=BB3_3 Depth=1
Lloh66:
adrp x0, _sem_banco@GOTPAGE
Lloh67:
ldr x0, [x0, _sem_banco@GOTPAGEOFF]
bl _sem_wait
LBB3_11: ; in Loop: Header=BB3_3 Depth=1
ldr w8, [x21, _regiao@PAGEOFF]
cmp w8, #1
b.ne LBB3_3
; %bb.12: ; in Loop: Header=BB3_3 Depth=1
Lloh68:
adrp x8, _posse@PAGE
Lloh69:
ldr w8, [x8, _posse@PAGEOFF]
cbz w8, LBB3_1
; %bb.13: ; in Loop: Header=BB3_3 Depth=1
tbnz w27, #0, LBB3_3
; %bb.14: ; in Loop: Header=BB3_3 Depth=1
Lloh70:
adrp x27, _lock_posse@PAGE
Lloh71:
add x27, x27, _lock_posse@PAGEOFF
mov x0, x27
bl _pthread_mutex_lock
adrp x8, _posse@PAGE
str wzr, [x8, _posse@PAGEOFF]
mov x0, x27
bl _pthread_mutex_unlock
Lloh72:
adrp x27, _lock_bola@PAGE
Lloh73:
add x27, x27, _lock_bola@PAGEOFF
mov x0, x27
bl _pthread_mutex_lock
Lloh74:
adrp x0, l_.str.24@PAGE
Lloh75:
add x0, x0, l_.str.24@PAGEOFF
b LBB3_2
.loh AdrpLdrGot Lloh48, Lloh49
.loh AdrpLdrGot Lloh46, Lloh47
.loh AdrpAdd Lloh44, Lloh45
.loh AdrpAdd Lloh42, Lloh43
.loh AdrpAdd Lloh62, Lloh63
.loh AdrpAdd Lloh60, Lloh61
.loh AdrpAdd Lloh58, Lloh59
.loh AdrpLdr Lloh56, Lloh57
.loh AdrpLdr Lloh54, Lloh55
.loh AdrpAdd Lloh52, Lloh53
.loh AdrpAdd Lloh50, Lloh51
.loh AdrpAdd Lloh64, Lloh65
.loh AdrpLdrGot Lloh66, Lloh67
.loh AdrpLdr Lloh68, Lloh69
.loh AdrpAdd Lloh74, Lloh75
.loh AdrpAdd Lloh72, Lloh73
.loh AdrpAdd Lloh70, Lloh71
.cfi_endproc
; -- End function
.globl _thread_lateral_Brasil ; -- Begin function thread_lateral_Brasil
.p2align 2
_thread_lateral_Brasil: ; @thread_lateral_Brasil
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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
ldrsw x27, [x0]
Lloh76:
adrp x8, l_.str.27@PAGE
Lloh77:
add x8, x8, l_.str.27@PAGEOFF
Lloh78:
adrp x9, l_.str.26@PAGE
Lloh79:
add x9, x9, l_.str.26@PAGEOFF
cmp x27, #1
csel x8, x9, x8, eq
Lloh80:
adrp x9, l_.str.25@PAGE
Lloh81:
add x9, x9, l_.str.25@PAGEOFF
cmp x27, #0
csel x28, x9, x8, eq
Lloh82:
adrp x19, _lock_laterais_Brasil@GOTPAGE
Lloh83:
ldr x19, [x19, _lock_laterais_Brasil@GOTPAGEOFF]
add w20, w27, #1
adrp x21, _escalacao_laterais_Brasil@PAGE
Lloh84:
adrp x24, _titular_laterais_Brasil@GOTPAGE
Lloh85:
ldr x24, [x24, _titular_laterais_Brasil@GOTPAGEOFF]
adrp x25, _regiao@PAGE
Lloh86:
adrp x22, _lock_regiao@PAGE
Lloh87:
add x22, x22, _lock_regiao@PAGEOFF
Lloh88:
adrp x23, _lock_bola@PAGE
Lloh89:
add x23, x23, _lock_bola@PAGEOFF
LBB4_1: ; =>This Inner Loop Header: Depth=1
bl _rand
mov x26, x0
mov x0, x19
bl _pthread_mutex_lock
ldr w9, [x21, _escalacao_laterais_Brasil@PAGEOFF]
add w8, w9, #1
str w8, [x21, _escalacao_laterais_Brasil@PAGEOFF]
cmp w9, #2
b.gt LBB4_3
; %bb.2: ; in Loop: Header=BB4_1 Depth=1
str w8, [x24, x27, lsl #2]
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
mov x0, x19
bl _pthread_mutex_unlock
ldr w8, [x21, _escalacao_laterais_Brasil@PAGEOFF]
cmp w8, #2
b.gt LBB4_5
; %bb.4: ; in Loop: Header=BB4_1 Depth=1
stp x20, x28, [sp]
Lloh90:
adrp x0, l_.str.28@PAGE
Lloh91:
add x0, x0, l_.str.28@PAGEOFF
bl _printf
mov w0, #2
bl _sleep
LBB4_5: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [x24, x27, lsl #2]
cmp w8, #3
b.ne LBB4_7
; %bb.6: ; in Loop: Header=BB4_1 Depth=1
Lloh92:
adrp x0, _sem_banco@GOTPAGE
Lloh93:
ldr x0, [x0, _sem_banco@GOTPAGEOFF]
bl _sem_wait
LBB4_7: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [x25, _regiao@PAGEOFF]
cmp w8, #2
b.ne LBB4_1
; %bb.8: ; in Loop: Header=BB4_1 Depth=1
Lloh94:
adrp x8, _posse@PAGE
Lloh95:
ldr w8, [x8, _posse@PAGEOFF]
cbnz w8, LBB4_1
; %bb.9: ; in Loop: Header=BB4_1 Depth=1
mov x0, x22
bl _pthread_mutex_lock
ands w8, w26, #0x1
orr w8, w8, #0x4
Lloh96:
adrp x9, l_.str.31@PAGE
Lloh97:
add x9, x9, l_.str.31@PAGEOFF
Lloh98:
adrp x10, l_.str.30@PAGE
Lloh99:
add x10, x10, l_.str.30@PAGEOFF
csel x26, x10, x9, eq
str w8, [x25, _regiao@PAGEOFF]
mov x0, x22
bl _pthread_mutex_unlock
mov x0, x23
bl _pthread_mutex_lock
Lloh100:
adrp x8, _gols_Brasil@PAGE
Lloh101:
ldr w8, [x8, _gols_Brasil@PAGEOFF]
Lloh102:
adrp x9, _gols_Alemanha@PAGE
Lloh103:
ldr w9, [x9, _gols_Alemanha@PAGEOFF]
stp x8, x9, [sp]
Lloh104:
adrp x0, l_.str.12@PAGE
Lloh105:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str x28, [sp]
Lloh106:
adrp x0, l_.str.29@PAGE
Lloh107:
add x0, x0, l_.str.29@PAGEOFF
bl _printf
str x28, [sp]
mov x0, x26
bl _printf
mov x0, x23
bl _pthread_mutex_unlock
mov w0, #4
bl _sleep
b LBB4_1
.loh AdrpAdd Lloh88, Lloh89
.loh AdrpAdd Lloh86, Lloh87
.loh AdrpLdrGot Lloh84, Lloh85
.loh AdrpLdrGot Lloh82, Lloh83
.loh AdrpAdd Lloh80, Lloh81
.loh AdrpAdd Lloh78, Lloh79
.loh AdrpAdd Lloh76, Lloh77
.loh AdrpAdd Lloh90, Lloh91
.loh AdrpLdrGot Lloh92, Lloh93
.loh AdrpLdr Lloh94, Lloh95
.loh AdrpAdd Lloh106, Lloh107
.loh AdrpAdd Lloh104, Lloh105
.loh AdrpLdr Lloh102, Lloh103
.loh AdrpLdr Lloh100, Lloh101
.loh AdrpAdd Lloh98, Lloh99
.loh AdrpAdd Lloh96, Lloh97
.cfi_endproc
; -- End function
.globl _thread_volante_Brasil ; -- Begin function thread_volante_Brasil
.p2align 2
_thread_volante_Brasil: ; @thread_volante_Brasil
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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
Lloh108:
adrp x8, l_.str.34@PAGE
Lloh109:
add x8, x8, l_.str.34@PAGEOFF
Lloh110:
adrp x9, l_.str.33@PAGE
Lloh111:
add x9, x9, l_.str.33@PAGEOFF
ldrsw x28, [x0]
cmp x28, #1
csel x8, x9, x8, eq
Lloh112:
adrp x9, l_.str.32@PAGE
Lloh113:
add x9, x9, l_.str.32@PAGEOFF
cmp x28, #0
csel x24, x9, x8, eq
add w25, w28, #1
Lloh114:
adrp x19, _lock_volantes_Brasil@GOTPAGE
Lloh115:
ldr x19, [x19, _lock_volantes_Brasil@GOTPAGEOFF]
Lloh116:
adrp x26, _titular_volantes_Brasil@GOTPAGE
Lloh117:
ldr x26, [x26, _titular_volantes_Brasil@GOTPAGEOFF]
adrp x22, _escalacao_volantes_Brasil@PAGE
adrp x20, _regiao@PAGE
adrp x21, _posse@PAGE
Lloh118:
adrp x23, _lock_bola@PAGE
Lloh119:
add x23, x23, _lock_bola@PAGEOFF
b LBB5_3
LBB5_1: ; in Loop: Header=BB5_3 Depth=1
Lloh120:
adrp x27, _lock_regiao@PAGE
Lloh121:
add x27, x27, _lock_regiao@PAGEOFF
mov x0, x27
bl _pthread_mutex_lock
mov w8, #3
str w8, [x20, _regiao@PAGEOFF]
mov x0, x27
bl _pthread_mutex_unlock
mov x0, x23
bl _pthread_mutex_lock
Lloh122:
adrp x8, _gols_Brasil@PAGE
Lloh123:
ldr w8, [x8, _gols_Brasil@PAGEOFF]
Lloh124:
adrp x9, _gols_Alemanha@PAGE
Lloh125:
ldr w9, [x9, _gols_Alemanha@PAGEOFF]
stp x8, x9, [sp]
Lloh126:
adrp x0, l_.str.12@PAGE
Lloh127:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str x24, [sp]
Lloh128:
adrp x0, l_.str.36@PAGE
Lloh129:
add x0, x0, l_.str.36@PAGEOFF
bl _printf
Lloh130:
adrp x0, l_.str.37@PAGE
Lloh131:
add x0, x0, l_.str.37@PAGEOFF
LBB5_2: ; in Loop: Header=BB5_3 Depth=1
str x24, [sp]
bl _printf
mov x0, x23
bl _pthread_mutex_unlock
mov w0, #4
bl _sleep
LBB5_3: ; =>This Inner Loop Header: Depth=1
bl _rand
mov x27, x0
mov x0, x19
bl _pthread_mutex_lock
ldr w9, [x22, _escalacao_volantes_Brasil@PAGEOFF]
add w8, w9, #1
str w8, [x22, _escalacao_volantes_Brasil@PAGEOFF]
cmp w9, #2
b.gt LBB5_5
; %bb.4: ; in Loop: Header=BB5_3 Depth=1
str w8, [x26, x28, lsl #2]
LBB5_5: ; in Loop: Header=BB5_3 Depth=1
mov x0, x19
bl _pthread_mutex_unlock
ldr w8, [x22, _escalacao_volantes_Brasil@PAGEOFF]
cmp w8, #2
b.gt LBB5_7
; %bb.6: ; in Loop: Header=BB5_3 Depth=1
stp x25, x24, [sp]
Lloh132:
adrp x0, l_.str.35@PAGE
Lloh133:
add x0, x0, l_.str.35@PAGEOFF
bl _printf
mov w0, #2
bl _sleep
LBB5_7: ; in Loop: Header=BB5_3 Depth=1
ldr w8, [x26, x28, lsl #2]
cmp w8, #3
b.ne LBB5_9
; %bb.8: ; in Loop: Header=BB5_3 Depth=1
Lloh134:
adrp x0, _sem_banco@GOTPAGE
Lloh135:
ldr x0, [x0, _sem_banco@GOTPAGEOFF]
bl _sem_wait
LBB5_9: ; in Loop: Header=BB5_3 Depth=1
ldr w8, [x20, _regiao@PAGEOFF]
cmp w8, #4
b.ne LBB5_3
; %bb.10: ; in Loop: Header=BB5_3 Depth=1
ldr w8, [x21, _posse@PAGEOFF]
cbz w8, LBB5_1
; %bb.11: ; in Loop: Header=BB5_3 Depth=1
tbnz w27, #0, LBB5_3
; %bb.12: ; in Loop: Header=BB5_3 Depth=1
Lloh136:
adrp x27, _lock_posse@PAGE
Lloh137:
add x27, x27, _lock_posse@PAGEOFF
mov x0, x27
bl _pthread_mutex_lock
str wzr, [x21, _posse@PAGEOFF]
mov x0, x27
bl _pthread_mutex_unlock
mov x0, x23
bl _pthread_mutex_lock
Lloh138:
adrp x0, l_.str.38@PAGE
Lloh139:
add x0, x0, l_.str.38@PAGEOFF
b LBB5_2
.loh AdrpAdd Lloh118, Lloh119
.loh AdrpLdrGot Lloh116, Lloh117
.loh AdrpLdrGot Lloh114, Lloh115
.loh AdrpAdd Lloh112, Lloh113
.loh AdrpAdd Lloh110, Lloh111
.loh AdrpAdd Lloh108, Lloh109
.loh AdrpAdd Lloh130, Lloh131
.loh AdrpAdd Lloh128, Lloh129
.loh AdrpAdd Lloh126, Lloh127
.loh AdrpLdr Lloh124, Lloh125
.loh AdrpLdr Lloh122, Lloh123
.loh AdrpAdd Lloh120, Lloh121
.loh AdrpAdd Lloh132, Lloh133
.loh AdrpLdrGot Lloh134, Lloh135
.loh AdrpAdd Lloh138, Lloh139
.loh AdrpAdd Lloh136, Lloh137
.cfi_endproc
; -- End function
.globl _thread_meia_Brasil ; -- Begin function thread_meia_Brasil
.p2align 2
_thread_meia_Brasil: ; @thread_meia_Brasil
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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
Lloh140:
adrp x8, l_.str.40@PAGE
Lloh141:
add x8, x8, l_.str.40@PAGEOFF
Lloh142:
adrp x9, l_.str.39@PAGE
Lloh143:
add x9, x9, l_.str.39@PAGEOFF
ldrsw x27, [x0]
cmp x27, #0
csel x28, x9, x8, eq
add w20, w27, #1
Lloh144:
adrp x19, _lock_meias_Brasil@GOTPAGE
Lloh145:
ldr x19, [x19, _lock_meias_Brasil@GOTPAGEOFF]
Lloh146:
adrp x21, _titular_meia_Brasil@GOTPAGE
Lloh147:
ldr x21, [x21, _titular_meia_Brasil@GOTPAGEOFF]
adrp x24, _escalacao_meia_Brasil@PAGE
adrp x25, _regiao@PAGE
Lloh148:
adrp x22, _lock_regiao@PAGE
Lloh149:
add x22, x22, _lock_regiao@PAGEOFF
Lloh150:
adrp x23, _lock_bola@PAGE
Lloh151:
add x23, x23, _lock_bola@PAGEOFF
LBB6_1: ; =>This Inner Loop Header: Depth=1
bl _rand
mov x26, x0
mov x0, x19
bl _pthread_mutex_lock
ldr w9, [x24, _escalacao_meia_Brasil@PAGEOFF]
add w8, w9, #1
str w8, [x24, _escalacao_meia_Brasil@PAGEOFF]
cmp w9, #1
b.gt LBB6_3
; %bb.2: ; in Loop: Header=BB6_1 Depth=1
str w8, [x21, x27, lsl #2]
LBB6_3: ; in Loop: Header=BB6_1 Depth=1
mov x0, x19
bl _pthread_mutex_unlock
ldr w8, [x24, _escalacao_meia_Brasil@PAGEOFF]
cmp w8, #1
b.ne LBB6_5
; %bb.4: ; in Loop: Header=BB6_1 Depth=1
stp x20, x28, [sp]
Lloh152:
adrp x0, l_.str.41@PAGE
Lloh153:
add x0, x0, l_.str.41@PAGEOFF
bl _printf
mov w0, #2
bl _sleep
LBB6_5: ; in Loop: Header=BB6_1 Depth=1
ldr w8, [x21, x27, lsl #2]
cmp w8, #2
b.ne LBB6_7
; %bb.6: ; in Loop: Header=BB6_1 Depth=1
Lloh154:
adrp x0, _sem_banco@GOTPAGE
Lloh155:
ldr x0, [x0, _sem_banco@GOTPAGEOFF]
bl _sem_wait
LBB6_7: ; in Loop: Header=BB6_1 Depth=1
ldr w8, [x25, _regiao@PAGEOFF]
cmp w8, #3
b.ne LBB6_1
; %bb.8: ; in Loop: Header=BB6_1 Depth=1
Lloh156:
adrp x8, _posse@PAGE
Lloh157:
ldr w8, [x8, _posse@PAGEOFF]
cbnz w8, LBB6_1
; %bb.9: ; in Loop: Header=BB6_1 Depth=1
mov x0, x22
bl _pthread_mutex_lock
tst w26, #0x1
mov w8, #5
cinc w8, w8, ne
Lloh158:
adrp x9, l_.str.44@PAGE
Lloh159:
add x9, x9, l_.str.44@PAGEOFF
Lloh160:
adrp x10, l_.str.43@PAGE
Lloh161:
add x10, x10, l_.str.43@PAGEOFF
csel x26, x10, x9, eq
str w8, [x25, _regiao@PAGEOFF]
mov x0, x22
bl _pthread_mutex_unlock
mov x0, x23
bl _pthread_mutex_lock
Lloh162:
adrp x8, _gols_Brasil@PAGE
Lloh163:
ldr w8, [x8, _gols_Brasil@PAGEOFF]
Lloh164:
adrp x9, _gols_Alemanha@PAGE
Lloh165:
ldr w9, [x9, _gols_Alemanha@PAGEOFF]
stp x8, x9, [sp]
Lloh166:
adrp x0, l_.str.12@PAGE
Lloh167:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str x28, [sp]
Lloh168:
adrp x0, l_.str.42@PAGE
Lloh169:
add x0, x0, l_.str.42@PAGEOFF
bl _printf
str x28, [sp]
mov x0, x26
bl _printf
mov x0, x23
bl _pthread_mutex_unlock
mov w0, #4
bl _sleep
b LBB6_1
.loh AdrpAdd Lloh150, Lloh151
.loh AdrpAdd Lloh148, Lloh149
.loh AdrpLdrGot Lloh146, Lloh147
.loh AdrpLdrGot Lloh144, Lloh145
.loh AdrpAdd Lloh142, Lloh143
.loh AdrpAdd Lloh140, Lloh141
.loh AdrpAdd Lloh152, Lloh153
.loh AdrpLdrGot Lloh154, Lloh155
.loh AdrpLdr Lloh156, Lloh157
.loh AdrpAdd Lloh168, Lloh169
.loh AdrpAdd Lloh166, Lloh167
.loh AdrpLdr Lloh164, Lloh165
.loh AdrpLdr Lloh162, Lloh163
.loh AdrpAdd Lloh160, Lloh161
.loh AdrpAdd Lloh158, Lloh159
.cfi_endproc
; -- End function
.globl _thread_atacante_Brasil ; -- Begin function thread_atacante_Brasil
.p2align 2
_thread_atacante_Brasil: ; @thread_atacante_Brasil
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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
ldrsw x27, [x0]
Lloh170:
adrp x8, l_.str.47@PAGE
Lloh171:
add x8, x8, l_.str.47@PAGEOFF
Lloh172:
adrp x9, l_.str.46@PAGE
Lloh173:
add x9, x9, l_.str.46@PAGEOFF
cmp x27, #1
csel x8, x9, x8, eq
Lloh174:
adrp x9, l_.str.45@PAGE
Lloh175:
add x9, x9, l_.str.45@PAGEOFF
cmp x27, #0
csel x28, x9, x8, eq
add w20, w27, #1
Lloh176:
adrp x19, _lock_atacantes_Brasil@GOTPAGE
Lloh177:
ldr x19, [x19, _lock_atacantes_Brasil@GOTPAGEOFF]
Lloh178:
adrp x21, _titular_atacantes_Brasil@GOTPAGE
Lloh179:
ldr x21, [x21, _titular_atacantes_Brasil@GOTPAGEOFF]
adrp x24, _escalacao_atacantes_Brasil@PAGE
adrp x25, _regiao@PAGE
Lloh180:
adrp x22, _lock_regiao@PAGE
Lloh181:
add x22, x22, _lock_regiao@PAGEOFF
adrp x26, _posse@PAGE
Lloh182:
adrp x23, _lock_bola@PAGE
Lloh183:
add x23, x23, _lock_bola@PAGEOFF
LBB7_1: ; =>This Inner Loop Header: Depth=1
mov x0, x19
bl _pthread_mutex_lock
ldr w9, [x24, _escalacao_atacantes_Brasil@PAGEOFF]
add w8, w9, #1
str w8, [x24, _escalacao_atacantes_Brasil@PAGEOFF]
cmp w9, #2
b.gt LBB7_3
; %bb.2: ; in Loop: Header=BB7_1 Depth=1
str w8, [x21, x27, lsl #2]
LBB7_3: ; in Loop: Header=BB7_1 Depth=1
mov x0, x19
bl _pthread_mutex_unlock
ldr w8, [x24, _escalacao_atacantes_Brasil@PAGEOFF]
cmp w8, #2
b.gt LBB7_5
; %bb.4: ; in Loop: Header=BB7_1 Depth=1
stp x20, x28, [sp]
Lloh184:
adrp x0, l_.str.48@PAGE
Lloh185:
add x0, x0, l_.str.48@PAGEOFF
bl _printf
mov w0, #2
bl _sleep
LBB7_5: ; in Loop: Header=BB7_1 Depth=1
ldr w8, [x21, x27, lsl #2]
cmp w8, #3
b.ne LBB7_7
; %bb.6: ; in Loop: Header=BB7_1 Depth=1
Lloh186:
adrp x0, _sem_banco@GOTPAGE
Lloh187:
ldr x0, [x0, _sem_banco@GOTPAGEOFF]
bl _sem_wait
LBB7_7: ; in Loop: Header=BB7_1 Depth=1
ldr w8, [x25, _regiao@PAGEOFF]
cmp w8, #5
b.ne LBB7_1
; %bb.8: ; in Loop: Header=BB7_1 Depth=1
ldr w8, [x26, _posse@PAGEOFF]
cbnz w8, LBB7_1
; %bb.9: ; in Loop: Header=BB7_1 Depth=1
mov x0, x22
bl _pthread_mutex_lock
mov w8, #6
str w8, [x25, _regiao@PAGEOFF]
mov x0, x22
bl _pthread_mutex_unlock
mov x0, x23
bl _pthread_mutex_lock
Lloh188:
adrp x8, _gols_Brasil@PAGE
Lloh189:
ldr w8, [x8, _gols_Brasil@PAGEOFF]
Lloh190:
adrp x9, _gols_Alemanha@PAGE
Lloh191:
ldr w9, [x9, _gols_Alemanha@PAGEOFF]
stp x8, x9, [sp]
Lloh192:
adrp x0, l_.str.12@PAGE
Lloh193:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str x28, [sp]
Lloh194:
adrp x0, l_.str.49@PAGE
Lloh195:
add x0, x0, l_.str.49@PAGEOFF
bl _printf
str x28, [sp]
Lloh196:
adrp x0, l_.str.50@PAGE
Lloh197:
add x0, x0, l_.str.50@PAGEOFF
bl _printf
mov x0, x23
bl _pthread_mutex_unlock
mov w0, #4
bl _sleep
b LBB7_1
.loh AdrpAdd Lloh182, Lloh183
.loh AdrpAdd Lloh180, Lloh181
.loh AdrpLdrGot Lloh178, Lloh179
.loh AdrpLdrGot Lloh176, Lloh177
.loh AdrpAdd Lloh174, Lloh175
.loh AdrpAdd Lloh172, Lloh173
.loh AdrpAdd Lloh170, Lloh171
.loh AdrpAdd Lloh184, Lloh185
.loh AdrpLdrGot Lloh186, Lloh187
.loh AdrpAdd Lloh196, Lloh197
.loh AdrpAdd Lloh194, Lloh195
.loh AdrpAdd Lloh192, Lloh193
.loh AdrpLdr Lloh190, Lloh191
.loh AdrpLdr Lloh188, Lloh189
.cfi_endproc
; -- End function
.globl _thread_goleiro_Alemanha ; -- Begin function thread_goleiro_Alemanha
.p2align 2
_thread_goleiro_Alemanha: ; @thread_goleiro_Alemanha
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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
Lloh198:
adrp x8, l_.str.52@PAGE
Lloh199:
add x8, x8, l_.str.52@PAGEOFF
Lloh200:
adrp x9, l_.str.51@PAGE
Lloh201:
add x9, x9, l_.str.51@PAGEOFF
ldrsw x25, [x0]
cmp x25, #0
csel x26, x9, x8, eq
Lloh202:
adrp x19, _lock_goleiros_Alemanha@GOTPAGE
Lloh203:
ldr x19, [x19, _lock_goleiros_Alemanha@GOTPAGEOFF]
adrp x28, _escalacao_goleiro_Alemanha@PAGE
Lloh204:
adrp x20, _titular_goleiro_Alemanha@GOTPAGE
Lloh205:
ldr x20, [x20, _titular_goleiro_Alemanha@GOTPAGEOFF]
adrp x21, _regiao@PAGE
adrp x22, _posse@PAGE
Lloh206:
adrp x23, _lock_bola@PAGE
Lloh207:
add x23, x23, _lock_bola@PAGEOFF
Lloh208:
adrp x27, _lock_posse@PAGE
Lloh209:
add x27, x27, _lock_posse@PAGEOFF
b LBB8_3
LBB8_1: ; in Loop: Header=BB8_3 Depth=1
Lloh210:
adrp x24, _lock_gol@PAGE
Lloh211:
add x24, x24, _lock_gol@PAGEOFF
mov x0, x24
bl _pthread_mutex_lock
adrp x9, _gols_Brasil@PAGE
ldr w8, [x9, _gols_Brasil@PAGEOFF]
add w8, w8, #1
str w8, [x9, _gols_Brasil@PAGEOFF]
mov x0, x24
bl _pthread_mutex_unlock
Lloh212:
adrp x0, l_str.109@PAGE
Lloh213:
add x0, x0, l_str.109@PAGEOFF
bl _puts
LBB8_2: ; in Loop: Header=BB8_3 Depth=1
mov w0, #4
bl _sleep
LBB8_3: ; =>This Inner Loop Header: Depth=1
bl _rand
mov x24, x0
mov x0, x19
bl _pthread_mutex_lock
ldr w9, [x28, _escalacao_goleiro_Alemanha@PAGEOFF]
add w8, w9, #1
str w8, [x28, _escalacao_goleiro_Alemanha@PAGEOFF]
cmp w9, #1
b.gt LBB8_5
; %bb.4: ; in Loop: Header=BB8_3 Depth=1
str w8, [x20, x25, lsl #2]
LBB8_5: ; in Loop: Header=BB8_3 Depth=1
mov x0, x19
bl _pthread_mutex_unlock
ldr w8, [x28, _escalacao_goleiro_Alemanha@PAGEOFF]
cmp w8, #1
b.ne LBB8_7
; %bb.6: ; in Loop: Header=BB8_3 Depth=1
str x26, [sp]
Lloh214:
adrp x0, l_.str.53@PAGE
Lloh215:
add x0, x0, l_.str.53@PAGEOFF
bl _printf
mov w0, #2
bl _sleep
LBB8_7: ; in Loop: Header=BB8_3 Depth=1
ldr w8, [x20, x25, lsl #2]
cmp w8, #2
b.ne LBB8_9
; %bb.8: ; in Loop: Header=BB8_3 Depth=1
Lloh216:
adrp x0, _sem_banco@GOTPAGE
Lloh217:
ldr x0, [x0, _sem_banco@GOTPAGEOFF]
bl _sem_wait
LBB8_9: ; in Loop: Header=BB8_3 Depth=1
ldr w8, [x21, _regiao@PAGEOFF]
cmp w8, #6
b.ne LBB8_3
; %bb.10: ; in Loop: Header=BB8_3 Depth=1
ldr w8, [x22, _posse@PAGEOFF]
cmp w8, #1
b.ne LBB8_12
; %bb.11: ; in Loop: Header=BB8_3 Depth=1
Lloh218:
adrp x24, _lock_regiao@PAGE
Lloh219:
add x24, x24, _lock_regiao@PAGEOFF
mov x0, x24
bl _pthread_mutex_lock
mov w8, #5
str w8, [x21, _regiao@PAGEOFF]
mov x0, x24
bl _pthread_mutex_unlock
mov x0, x23
bl _pthread_mutex_lock
Lloh220:
adrp x8, _gols_Brasil@PAGE
Lloh221:
ldr w8, [x8, _gols_Brasil@PAGEOFF]
Lloh222:
adrp x9, _gols_Alemanha@PAGE
Lloh223:
ldr w9, [x9, _gols_Alemanha@PAGEOFF]
stp x8, x9, [sp]
Lloh224:
adrp x0, l_.str.12@PAGE
Lloh225:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str x26, [sp]
Lloh226:
adrp x0, l_.str.54@PAGE
Lloh227:
add x0, x0, l_.str.54@PAGEOFF
bl _printf
str x26, [sp]
Lloh228:
adrp x0, l_.str.55@PAGE
Lloh229:
add x0, x0, l_.str.55@PAGEOFF
b LBB8_14
LBB8_12: ; in Loop: Header=BB8_3 Depth=1
mov x0, x27
bl _pthread_mutex_lock
mov w8, #1
str w8, [x22, _posse@PAGEOFF]
mov x0, x27
bl _pthread_mutex_unlock
tbnz w24, #0, LBB8_1
; %bb.13: ; in Loop: Header=BB8_3 Depth=1
mov x0, x23
bl _pthread_mutex_lock
str x26, [sp]
Lloh230:
adrp x0, l_.str.56@PAGE
Lloh231:
add x0, x0, l_.str.56@PAGEOFF
LBB8_14: ; in Loop: Header=BB8_3 Depth=1
bl _printf
mov x0, x23
bl _pthread_mutex_unlock
b LBB8_2
.loh AdrpAdd Lloh208, Lloh209
.loh AdrpAdd Lloh206, Lloh207
.loh AdrpLdrGot Lloh204, Lloh205
.loh AdrpLdrGot Lloh202, Lloh203
.loh AdrpAdd Lloh200, Lloh201
.loh AdrpAdd Lloh198, Lloh199
.loh AdrpAdd Lloh212, Lloh213
.loh AdrpAdd Lloh210, Lloh211
.loh AdrpAdd Lloh214, Lloh215
.loh AdrpLdrGot Lloh216, Lloh217
.loh AdrpAdd Lloh228, Lloh229
.loh AdrpAdd Lloh226, Lloh227
.loh AdrpAdd Lloh224, Lloh225
.loh AdrpLdr Lloh222, Lloh223
.loh AdrpLdr Lloh220, Lloh221
.loh AdrpAdd Lloh218, Lloh219
.loh AdrpAdd Lloh230, Lloh231
.cfi_endproc
; -- End function
.globl _thread_zagueiro_Alemanha ; -- Begin function thread_zagueiro_Alemanha
.p2align 2
_thread_zagueiro_Alemanha: ; @thread_zagueiro_Alemanha
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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
ldrsw x28, [x0]
Lloh232:
adrp x23, l_.str.61@PAGE
Lloh233:
add x23, x23, l_.str.61@PAGEOFF
Lloh234:
adrp x8, l_switch.table.thread_zagueiro_Alemanha@PAGE
Lloh235:
add x8, x8, l_switch.table.thread_zagueiro_Alemanha@PAGEOFF
ldr x25, [x8, x28, lsl #3]
add w26, w28, #1
Lloh236:
adrp x19, _lock_zagueiros_Alemanha@GOTPAGE
Lloh237:
ldr x19, [x19, _lock_zagueiros_Alemanha@GOTPAGEOFF]
adrp x20, _escalacao_zagueiros_Alemanha@PAGE
Lloh238:
adrp x21, _titular_zagueiros_Alemanha@GOTPAGE
Lloh239:
ldr x21, [x21, _titular_zagueiros_Alemanha@GOTPAGEOFF]
adrp x22, _regiao@PAGE
b LBB9_3
LBB9_1: ; in Loop: Header=BB9_3 Depth=1
Lloh240:
adrp x27, _lock_regiao@PAGE
Lloh241:
add x27, x27, _lock_regiao@PAGEOFF
mov x0, x27
bl _pthread_mutex_lock
mov w8, #2
str w8, [x22, _regiao@PAGEOFF]
mov x0, x27
bl _pthread_mutex_unlock
Lloh242:
adrp x27, _lock_bola@PAGE
Lloh243:
add x27, x27, _lock_bola@PAGEOFF
mov x0, x27
bl _pthread_mutex_lock
Lloh244:
adrp x8, _gols_Brasil@PAGE
Lloh245:
ldr w8, [x8, _gols_Brasil@PAGEOFF]
Lloh246:
adrp x9, _gols_Alemanha@PAGE
Lloh247:
ldr w9, [x9, _gols_Alemanha@PAGEOFF]
stp x8, x9, [sp]
Lloh248:
adrp x0, l_.str.12@PAGE
Lloh249:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str x24, [sp]
Lloh250:
adrp x0, l_.str.63@PAGE
Lloh251:
add x0, x0, l_.str.63@PAGEOFF
bl _printf
Lloh252:
adrp x0, l_.str.64@PAGE
Lloh253:
add x0, x0, l_.str.64@PAGEOFF
LBB9_2: ; in Loop: Header=BB9_3 Depth=1
str x24, [sp]
bl _printf
mov x0, x27
bl _pthread_mutex_unlock
mov w0, #4
bl _sleep
LBB9_3: ; =>This Inner Loop Header: Depth=1
bl _rand
mov x27, x0
mov x24, x23
cmp w28, #2
b.hi LBB9_5
; %bb.4: ; in Loop: Header=BB9_3 Depth=1
mov x24, x25
LBB9_5: ; in Loop: Header=BB9_3 Depth=1
mov x0, x19
bl _pthread_mutex_lock
ldr w9, [x20, _escalacao_zagueiros_Alemanha@PAGEOFF]
add w8, w9, #1
str w8, [x20, _escalacao_zagueiros_Alemanha@PAGEOFF]
cmp w9, #3
b.gt LBB9_7
; %bb.6: ; in Loop: Header=BB9_3 Depth=1
str w8, [x21, x28, lsl #2]
LBB9_7: ; in Loop: Header=BB9_3 Depth=1
mov x0, x19
bl _pthread_mutex_unlock
ldr w8, [x20, _escalacao_zagueiros_Alemanha@PAGEOFF]
cmp w8, #3
b.gt LBB9_9
; %bb.8: ; in Loop: Header=BB9_3 Depth=1
stp x26, x24, [sp]
Lloh254:
adrp x0, l_.str.62@PAGE
Lloh255:
add x0, x0, l_.str.62@PAGEOFF
bl _printf
mov w0, #2
bl _sleep
LBB9_9: ; in Loop: Header=BB9_3 Depth=1
ldr w8, [x21, x28, lsl #2]
cmp w8, #4
b.ne LBB9_11
; %bb.10: ; in Loop: Header=BB9_3 Depth=1
Lloh256:
adrp x0, _sem_banco@GOTPAGE
Lloh257:
ldr x0, [x0, _sem_banco@GOTPAGEOFF]
bl _sem_wait
LBB9_11: ; in Loop: Header=BB9_3 Depth=1
ldr w8, [x22, _regiao@PAGEOFF]
cmp w8, #5
b.ne LBB9_3
; %bb.12: ; in Loop: Header=BB9_3 Depth=1
Lloh258:
adrp x8, _posse@PAGE
Lloh259:
ldr w8, [x8, _posse@PAGEOFF]
cmp w8, #1
b.eq LBB9_1
; %bb.13: ; in Loop: Header=BB9_3 Depth=1
tbnz w27, #0, LBB9_3
; %bb.14: ; in Loop: Header=BB9_3 Depth=1
Lloh260:
adrp x27, _lock_posse@PAGE
Lloh261:
add x27, x27, _lock_posse@PAGEOFF
mov x0, x27
bl _pthread_mutex_lock
adrp x8, _posse@PAGE
mov w9, #1
str w9, [x8, _posse@PAGEOFF]
mov x0, x27
bl _pthread_mutex_unlock
Lloh262:
adrp x27, _lock_bola@PAGE
Lloh263:
add x27, x27, _lock_bola@PAGEOFF
mov x0, x27
bl _pthread_mutex_lock
Lloh264:
adrp x0, l_.str.65@PAGE
Lloh265:
add x0, x0, l_.str.65@PAGEOFF
b LBB9_2
.loh AdrpLdrGot Lloh238, Lloh239
.loh AdrpLdrGot Lloh236, Lloh237
.loh AdrpAdd Lloh234, Lloh235
.loh AdrpAdd Lloh232, Lloh233
.loh AdrpAdd Lloh252, Lloh253
.loh AdrpAdd Lloh250, Lloh251
.loh AdrpAdd Lloh248, Lloh249
.loh AdrpLdr Lloh246, Lloh247
.loh AdrpLdr Lloh244, Lloh245
.loh AdrpAdd Lloh242, Lloh243
.loh AdrpAdd Lloh240, Lloh241
.loh AdrpAdd Lloh254, Lloh255
.loh AdrpLdrGot Lloh256, Lloh257
.loh AdrpLdr Lloh258, Lloh259
.loh AdrpAdd Lloh264, Lloh265
.loh AdrpAdd Lloh262, Lloh263
.loh AdrpAdd Lloh260, Lloh261
.cfi_endproc
; -- End function
.globl _thread_lateral_Alemanha ; -- Begin function thread_lateral_Alemanha
.p2align 2
_thread_lateral_Alemanha: ; @thread_lateral_Alemanha
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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
Lloh266:
adrp x8, l_.str.68@PAGE
Lloh267:
add x8, x8, l_.str.68@PAGEOFF
ldrsw x27, [x0]
Lloh268:
adrp x9, l_.str.67@PAGE
Lloh269:
add x9, x9, l_.str.67@PAGEOFF
Lloh270:
adrp x10, l_.str.66@PAGE
Lloh271:
add x10, x10, l_.str.66@PAGEOFF
cmp x27, #1
csel x8, x9, x8, eq
cmp x27, #0
csel x28, x10, x8, eq
add w20, w27, #1
Lloh272:
adrp x19, _lock_laterais_Alemanha@GOTPAGE
Lloh273:
ldr x19, [x19, _lock_laterais_Alemanha@GOTPAGEOFF]
Lloh274:
adrp x21, _titular_laterais_Alemanha@GOTPAGE
Lloh275:
ldr x21, [x21, _titular_laterais_Alemanha@GOTPAGEOFF]
adrp x24, _escalacao_laterais_Alemanha@PAGE
adrp x25, _regiao@PAGE
Lloh276:
adrp x22, _lock_regiao@PAGE
Lloh277:
add x22, x22, _lock_regiao@PAGEOFF
Lloh278:
adrp x23, _lock_bola@PAGE
Lloh279:
add x23, x23, _lock_bola@PAGEOFF
LBB10_1: ; =>This Inner Loop Header: Depth=1
bl _rand
mov x26, x0
mov x0, x19
bl _pthread_mutex_lock
ldr w9, [x24, _escalacao_laterais_Alemanha@PAGEOFF]
add w8, w9, #1
str w8, [x24, _escalacao_laterais_Alemanha@PAGEOFF]
cmp w9, #2
b.gt LBB10_3
; %bb.2: ; in Loop: Header=BB10_1 Depth=1
str w8, [x21, x27, lsl #2]
LBB10_3: ; in Loop: Header=BB10_1 Depth=1
mov x0, x19
bl _pthread_mutex_unlock
ldr w8, [x24, _escalacao_laterais_Alemanha@PAGEOFF]
cmp w8, #2
b.gt LBB10_5
; %bb.4: ; in Loop: Header=BB10_1 Depth=1
stp x20, x28, [sp]
Lloh280:
adrp x0, l_.str.69@PAGE
Lloh281:
add x0, x0, l_.str.69@PAGEOFF
bl _printf
mov w0, #2
bl _sleep
LBB10_5: ; in Loop: Header=BB10_1 Depth=1
ldr w8, [x21, x27, lsl #2]
cmp w8, #3
b.ne LBB10_7
; %bb.6: ; in Loop: Header=BB10_1 Depth=1
Lloh282:
adrp x0, _sem_banco@GOTPAGE
Lloh283:
ldr x0, [x0, _sem_banco@GOTPAGEOFF]
bl _sem_wait
LBB10_7: ; in Loop: Header=BB10_1 Depth=1
ldr w8, [x25, _regiao@PAGEOFF]
cmp w8, #2
b.ne LBB10_1
; %bb.8: ; in Loop: Header=BB10_1 Depth=1
Lloh284:
adrp x8, _posse@PAGE
Lloh285:
ldr w8, [x8, _posse@PAGEOFF]
cmp w8, #1
b.ne LBB10_1
; %bb.9: ; in Loop: Header=BB10_1 Depth=1
mov x0, x22
bl _pthread_mutex_lock
tst w26, #0x1
mov w8, #3
csinc w8, w8, wzr, eq
Lloh286:
adrp x9, l_.str.72@PAGE
Lloh287:
add x9, x9, l_.str.72@PAGEOFF
Lloh288:
adrp x10, l_.str.71@PAGE
Lloh289:
add x10, x10, l_.str.71@PAGEOFF
csel x26, x10, x9, eq
str w8, [x25, _regiao@PAGEOFF]
mov x0, x22
bl _pthread_mutex_unlock
mov x0, x23
bl _pthread_mutex_lock
Lloh290:
adrp x8, _gols_Brasil@PAGE
Lloh291:
ldr w8, [x8, _gols_Brasil@PAGEOFF]
Lloh292:
adrp x9, _gols_Alemanha@PAGE
Lloh293:
ldr w9, [x9, _gols_Alemanha@PAGEOFF]
stp x8, x9, [sp]
Lloh294:
adrp x0, l_.str.12@PAGE
Lloh295:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str x28, [sp]
Lloh296:
adrp x0, l_.str.70@PAGE
Lloh297:
add x0, x0, l_.str.70@PAGEOFF
bl _printf
str x28, [sp]
mov x0, x26
bl _printf
mov x0, x23
bl _pthread_mutex_unlock
mov w0, #4
bl _sleep
b LBB10_1
.loh AdrpAdd Lloh278, Lloh279
.loh AdrpAdd Lloh276, Lloh277
.loh AdrpLdrGot Lloh274, Lloh275
.loh AdrpLdrGot Lloh272, Lloh273
.loh AdrpAdd Lloh270, Lloh271
.loh AdrpAdd Lloh268, Lloh269
.loh AdrpAdd Lloh266, Lloh267
.loh AdrpAdd Lloh280, Lloh281
.loh AdrpLdrGot Lloh282, Lloh283
.loh AdrpLdr Lloh284, Lloh285
.loh AdrpAdd Lloh296, Lloh297
.loh AdrpAdd Lloh294, Lloh295
.loh AdrpLdr Lloh292, Lloh293
.loh AdrpLdr Lloh290, Lloh291
.loh AdrpAdd Lloh288, Lloh289
.loh AdrpAdd Lloh286, Lloh287
.cfi_endproc
; -- End function
.globl _thread_volante_Alemanha ; -- Begin function thread_volante_Alemanha
.p2align 2
_thread_volante_Alemanha: ; @thread_volante_Alemanha
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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
ldrsw x28, [x0]
Lloh298:
adrp x8, l_.str.75@PAGE
Lloh299:
add x8, x8, l_.str.75@PAGEOFF
Lloh300:
adrp x9, l_.str.74@PAGE
Lloh301:
add x9, x9, l_.str.74@PAGEOFF
cmp x28, #1
csel x8, x9, x8, eq
Lloh302:
adrp x9, l_.str.73@PAGE
Lloh303:
add x9, x9, l_.str.73@PAGEOFF
cmp x28, #0
csel x24, x9, x8, eq
add w25, w28, #1
Lloh304:
adrp x19, _lock_volantes_Alemanha@GOTPAGE
Lloh305:
ldr x19, [x19, _lock_volantes_Alemanha@GOTPAGEOFF]
adrp x26, _escalacao_volantes_Alemanha@PAGE
Lloh306:
adrp x20, _titular_volantes_Alemanha@GOTPAGE
Lloh307:
ldr x20, [x20, _titular_volantes_Alemanha@GOTPAGEOFF]
adrp x21, _regiao@PAGE
adrp x22, _posse@PAGE
Lloh308:
adrp x23, _lock_bola@PAGE
Lloh309:
add x23, x23, _lock_bola@PAGEOFF
b LBB11_3
LBB11_1: ; in Loop: Header=BB11_3 Depth=1
Lloh310:
adrp x27, _lock_regiao@PAGE
Lloh311:
add x27, x27, _lock_regiao@PAGEOFF
mov x0, x27
bl _pthread_mutex_lock
mov w8, #4
str w8, [x21, _regiao@PAGEOFF]
mov x0, x27
bl _pthread_mutex_unlock
mov x0, x23
bl _pthread_mutex_lock
Lloh312:
adrp x8, _gols_Brasil@PAGE
Lloh313:
ldr w8, [x8, _gols_Brasil@PAGEOFF]
Lloh314:
adrp x9, _gols_Alemanha@PAGE
Lloh315:
ldr w9, [x9, _gols_Alemanha@PAGEOFF]
stp x8, x9, [sp]
Lloh316:
adrp x0, l_.str.12@PAGE
Lloh317:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str x24, [sp]
Lloh318:
adrp x0, l_.str.77@PAGE
Lloh319:
add x0, x0, l_.str.77@PAGEOFF
bl _printf
Lloh320:
adrp x0, l_.str.78@PAGE
Lloh321:
add x0, x0, l_.str.78@PAGEOFF
LBB11_2: ; in Loop: Header=BB11_3 Depth=1
str x24, [sp]
bl _printf
mov x0, x23
bl _pthread_mutex_unlock
mov w0, #4
bl _sleep
LBB11_3: ; =>This Inner Loop Header: Depth=1
bl _rand
mov x27, x0
mov x0, x19
bl _pthread_mutex_lock
ldr w9, [x26, _escalacao_volantes_Alemanha@PAGEOFF]
add w8, w9, #1
str w8, [x26, _escalacao_volantes_Alemanha@PAGEOFF]
cmp w9, #2
b.gt LBB11_5
; %bb.4: ; in Loop: Header=BB11_3 Depth=1
str w8, [x20, x28, lsl #2]
LBB11_5: ; in Loop: Header=BB11_3 Depth=1
mov x0, x19
bl _pthread_mutex_unlock
ldr w8, [x26, _escalacao_volantes_Alemanha@PAGEOFF]
cmp w8, #2
b.gt LBB11_7
; %bb.6: ; in Loop: Header=BB11_3 Depth=1
stp x25, x24, [sp]
Lloh322:
adrp x0, l_.str.76@PAGE
Lloh323:
add x0, x0, l_.str.76@PAGEOFF
bl _printf
mov w0, #2
bl _sleep
LBB11_7: ; in Loop: Header=BB11_3 Depth=1
ldr w8, [x20, x28, lsl #2]
cmp w8, #3
b.ne LBB11_9
; %bb.8: ; in Loop: Header=BB11_3 Depth=1
Lloh324:
adrp x0, _sem_banco@GOTPAGE
Lloh325:
ldr x0, [x0, _sem_banco@GOTPAGEOFF]
bl _sem_wait
LBB11_9: ; in Loop: Header=BB11_3 Depth=1
ldr w8, [x21, _regiao@PAGEOFF]
cmp w8, #3
b.ne LBB11_3
; %bb.10: ; in Loop: Header=BB11_3 Depth=1
ldr w8, [x22, _posse@PAGEOFF]
cmp w8, #1
b.eq LBB11_1
; %bb.11: ; in Loop: Header=BB11_3 Depth=1
tbnz w27, #0, LBB11_3
; %bb.12: ; in Loop: Header=BB11_3 Depth=1
Lloh326:
adrp x27, _lock_posse@PAGE
Lloh327:
add x27, x27, _lock_posse@PAGEOFF
mov x0, x27
bl _pthread_mutex_lock
mov w8, #1
str w8, [x22, _posse@PAGEOFF]
mov x0, x27
bl _pthread_mutex_unlock
mov x0, x23
bl _pthread_mutex_lock
Lloh328:
adrp x0, l_.str.79@PAGE
Lloh329:
add x0, x0, l_.str.79@PAGEOFF
b LBB11_2
.loh AdrpAdd Lloh308, Lloh309
.loh AdrpLdrGot Lloh306, Lloh307
.loh AdrpLdrGot Lloh304, Lloh305
.loh AdrpAdd Lloh302, Lloh303
.loh AdrpAdd Lloh300, Lloh301
.loh AdrpAdd Lloh298, Lloh299
.loh AdrpAdd Lloh320, Lloh321
.loh AdrpAdd Lloh318, Lloh319
.loh AdrpAdd Lloh316, Lloh317
.loh AdrpLdr Lloh314, Lloh315
.loh AdrpLdr Lloh312, Lloh313
.loh AdrpAdd Lloh310, Lloh311
.loh AdrpAdd Lloh322, Lloh323
.loh AdrpLdrGot Lloh324, Lloh325
.loh AdrpAdd Lloh328, Lloh329
.loh AdrpAdd Lloh326, Lloh327
.cfi_endproc
; -- End function
.globl _thread_meia_Alemanha ; -- Begin function thread_meia_Alemanha
.p2align 2
_thread_meia_Alemanha: ; @thread_meia_Alemanha
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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
ldrsw x27, [x0]
Lloh330:
adrp x8, l_.str.81@PAGE
Lloh331:
add x8, x8, l_.str.81@PAGEOFF
Lloh332:
adrp x9, l_.str.80@PAGE
Lloh333:
add x9, x9, l_.str.80@PAGEOFF
cmp x27, #0
csel x28, x9, x8, eq
Lloh334:
adrp x19, _lock_meias_Alemanha@GOTPAGE
Lloh335:
ldr x19, [x19, _lock_meias_Alemanha@GOTPAGEOFF]
add w20, w27, #1
adrp x21, _escalacao_meia_Alemanha@PAGE
Lloh336:
adrp x24, _titular_meia_Alemanha@GOTPAGE
Lloh337:
ldr x24, [x24, _titular_meia_Alemanha@GOTPAGEOFF]
adrp x25, _regiao@PAGE
Lloh338:
adrp x22, _lock_regiao@PAGE
Lloh339:
add x22, x22, _lock_regiao@PAGEOFF
Lloh340:
adrp x23, _lock_bola@PAGE
Lloh341:
add x23, x23, _lock_bola@PAGEOFF
LBB12_1: ; =>This Inner Loop Header: Depth=1
bl _rand
mov x26, x0
mov x0, x19
bl _pthread_mutex_lock
ldr w9, [x21, _escalacao_meia_Alemanha@PAGEOFF]
add w8, w9, #1
str w8, [x21, _escalacao_meia_Alemanha@PAGEOFF]
cmp w9, #1
b.gt LBB12_3
; %bb.2: ; in Loop: Header=BB12_1 Depth=1
str w8, [x24, x27, lsl #2]
LBB12_3: ; in Loop: Header=BB12_1 Depth=1
mov x0, x19
bl _pthread_mutex_unlock
ldr w8, [x21, _escalacao_meia_Alemanha@PAGEOFF]
cmp w8, #1
b.ne LBB12_5
; %bb.4: ; in Loop: Header=BB12_1 Depth=1
stp x20, x28, [sp]
Lloh342:
adrp x0, l_.str.82@PAGE
Lloh343:
add x0, x0, l_.str.82@PAGEOFF
bl _printf
mov w0, #2
bl _sleep
LBB12_5: ; in Loop: Header=BB12_1 Depth=1
ldr w8, [x24, x27, lsl #2]
cmp w8, #2
b.ne LBB12_7
; %bb.6: ; in Loop: Header=BB12_1 Depth=1
Lloh344:
adrp x0, _sem_banco@GOTPAGE
Lloh345:
ldr x0, [x0, _sem_banco@GOTPAGEOFF]
bl _sem_wait
LBB12_7: ; in Loop: Header=BB12_1 Depth=1
ldr w8, [x25, _regiao@PAGEOFF]
cmp w8, #4
b.ne LBB12_1
; %bb.8: ; in Loop: Header=BB12_1 Depth=1
Lloh346:
adrp x8, _posse@PAGE
Lloh347:
ldr w8, [x8, _posse@PAGEOFF]
cmp w8, #1
b.ne LBB12_1
; %bb.9: ; in Loop: Header=BB12_1 Depth=1
mov x0, x22
bl _pthread_mutex_lock
ands w8, w26, #0x1
eor w8, w8, #0x1
Lloh348:
adrp x9, l_.str.85@PAGE
Lloh349:
add x9, x9, l_.str.85@PAGEOFF
Lloh350:
adrp x10, l_.str.84@PAGE
Lloh351:
add x10, x10, l_.str.84@PAGEOFF
csel x26, x10, x9, eq
str w8, [x25, _regiao@PAGEOFF]
mov x0, x22
bl _pthread_mutex_unlock
mov x0, x23
bl _pthread_mutex_lock
Lloh352:
adrp x8, _gols_Brasil@PAGE
Lloh353:
ldr w8, [x8, _gols_Brasil@PAGEOFF]
Lloh354:
adrp x9, _gols_Alemanha@PAGE
Lloh355:
ldr w9, [x9, _gols_Alemanha@PAGEOFF]
stp x8, x9, [sp]
Lloh356:
adrp x0, l_.str.12@PAGE
Lloh357:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str x28, [sp]
Lloh358:
adrp x0, l_.str.83@PAGE
Lloh359:
add x0, x0, l_.str.83@PAGEOFF
bl _printf
str x28, [sp]
mov x0, x26
bl _printf
mov x0, x23
bl _pthread_mutex_unlock
mov w0, #4
bl _sleep
b LBB12_1
.loh AdrpAdd Lloh340, Lloh341
.loh AdrpAdd Lloh338, Lloh339
.loh AdrpLdrGot Lloh336, Lloh337
.loh AdrpLdrGot Lloh334, Lloh335
.loh AdrpAdd Lloh332, Lloh333
.loh AdrpAdd Lloh330, Lloh331
.loh AdrpAdd Lloh342, Lloh343
.loh AdrpLdrGot Lloh344, Lloh345
.loh AdrpLdr Lloh346, Lloh347
.loh AdrpAdd Lloh358, Lloh359
.loh AdrpAdd Lloh356, Lloh357
.loh AdrpLdr Lloh354, Lloh355
.loh AdrpLdr Lloh352, Lloh353
.loh AdrpAdd Lloh350, Lloh351
.loh AdrpAdd Lloh348, Lloh349
.cfi_endproc
; -- End function
.globl _thread_atacante_Alemanha ; -- Begin function thread_atacante_Alemanha
.p2align 2
_thread_atacante_Alemanha: ; @thread_atacante_Alemanha
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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
ldrsw x27, [x0]
Lloh360:
adrp x8, l_.str.88@PAGE
Lloh361:
add x8, x8, l_.str.88@PAGEOFF
Lloh362:
adrp x9, l_.str.87@PAGE
Lloh363:
add x9, x9, l_.str.87@PAGEOFF
cmp x27, #1
csel x8, x9, x8, eq
Lloh364:
adrp x9, l_.str.86@PAGE
Lloh365:
add x9, x9, l_.str.86@PAGEOFF
cmp x27, #0
csel x28, x9, x8, eq
add w20, w27, #1
Lloh366:
adrp x19, _lock_atacantes_Alemanha@GOTPAGE
Lloh367:
ldr x19, [x19, _lock_atacantes_Alemanha@GOTPAGEOFF]
adrp x21, _escalacao_atacantes_Alemanha@PAGE
Lloh368:
adrp x24, _titular_atacantes_Alemanha@GOTPAGE
Lloh369:
ldr x24, [x24, _titular_atacantes_Alemanha@GOTPAGEOFF]
adrp x25, _regiao@PAGE
adrp x26, _posse@PAGE
Lloh370:
adrp x22, _lock_regiao@PAGE
Lloh371:
add x22, x22, _lock_regiao@PAGEOFF
Lloh372:
adrp x23, _lock_bola@PAGE
Lloh373:
add x23, x23, _lock_bola@PAGEOFF
LBB13_1: ; =>This Inner Loop Header: Depth=1
mov x0, x19
bl _pthread_mutex_lock
ldr w9, [x21, _escalacao_atacantes_Alemanha@PAGEOFF]
add w8, w9, #1
str w8, [x21, _escalacao_atacantes_Alemanha@PAGEOFF]
cmp w9, #2
b.gt LBB13_3
; %bb.2: ; in Loop: Header=BB13_1 Depth=1
str w8, [x24, x27, lsl #2]
LBB13_3: ; in Loop: Header=BB13_1 Depth=1
mov x0, x19
bl _pthread_mutex_unlock
ldr w8, [x21, _escalacao_atacantes_Alemanha@PAGEOFF]
cmp w8, #2
b.gt LBB13_5
; %bb.4: ; in Loop: Header=BB13_1 Depth=1
stp x20, x28, [sp]
Lloh374:
adrp x0, l_.str.89@PAGE
Lloh375:
add x0, x0, l_.str.89@PAGEOFF
bl _printf
mov w0, #2
bl _sleep
LBB13_5: ; in Loop: Header=BB13_1 Depth=1
ldr w8, [x24, x27, lsl #2]
cmp w8, #3
b.ne LBB13_7
; %bb.6: ; in Loop: Header=BB13_1 Depth=1
Lloh376:
adrp x0, _sem_banco@GOTPAGE
Lloh377:
ldr x0, [x0, _sem_banco@GOTPAGEOFF]
bl _sem_wait
LBB13_7: ; in Loop: Header=BB13_1 Depth=1
ldr w8, [x25, _regiao@PAGEOFF]
cmp w8, #1
b.ne LBB13_1
; %bb.8: ; in Loop: Header=BB13_1 Depth=1
ldr w8, [x26, _posse@PAGEOFF]
cmp w8, #1
b.ne LBB13_1
; %bb.9: ; in Loop: Header=BB13_1 Depth=1
mov x0, x22
bl _pthread_mutex_lock
str wzr, [x25, _regiao@PAGEOFF]
mov x0, x22
bl _pthread_mutex_unlock
mov x0, x23
bl _pthread_mutex_lock
Lloh378:
adrp x8, _gols_Brasil@PAGE
Lloh379:
ldr w8, [x8, _gols_Brasil@PAGEOFF]
Lloh380:
adrp x9, _gols_Alemanha@PAGE
Lloh381:
ldr w9, [x9, _gols_Alemanha@PAGEOFF]
stp x8, x9, [sp]
Lloh382:
adrp x0, l_.str.12@PAGE
Lloh383:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str x28, [sp]
Lloh384:
adrp x0, l_.str.90@PAGE
Lloh385:
add x0, x0, l_.str.90@PAGEOFF
bl _printf
str x28, [sp]
Lloh386:
adrp x0, l_.str.91@PAGE
Lloh387:
add x0, x0, l_.str.91@PAGEOFF
bl _printf
mov x0, x23
bl _pthread_mutex_unlock
mov w0, #4
bl _sleep
b LBB13_1
.loh AdrpAdd Lloh372, Lloh373
.loh AdrpAdd Lloh370, Lloh371
.loh AdrpLdrGot Lloh368, Lloh369
.loh AdrpLdrGot Lloh366, Lloh367
.loh AdrpAdd Lloh364, Lloh365
.loh AdrpAdd Lloh362, Lloh363
.loh AdrpAdd Lloh360, Lloh361
.loh AdrpAdd Lloh374, Lloh375
.loh AdrpLdrGot Lloh376, Lloh377
.loh AdrpAdd Lloh386, Lloh387
.loh AdrpAdd Lloh384, Lloh385
.loh AdrpAdd Lloh382, Lloh383
.loh AdrpLdr Lloh380, Lloh381
.loh AdrpLdr Lloh378, Lloh379
.cfi_endproc
; -- End function
.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
mov x0, #0
bl _time
bl _srand48
Lloh388:
adrp x0, l_str.110@PAGE
Lloh389:
add x0, x0, l_str.110@PAGEOFF
bl _puts
Lloh390:
adrp x0, l_.str.93@PAGE
Lloh391:
add x0, x0, l_.str.93@PAGEOFF
bl _printf
Lloh392:
adrp x0, l_str.111@PAGE
Lloh393:
add x0, x0, l_str.111@PAGEOFF
bl _puts
Lloh394:
adrp x0, l_str.112@PAGE
Lloh395:
add x0, x0, l_str.112@PAGEOFF
bl _puts
Lloh396:
adrp x0, l_str.113@PAGE
Lloh397:
add x0, x0, l_str.113@PAGEOFF
bl _puts
Lloh398:
adrp x0, l_str.114@PAGE
Lloh399:
add x0, x0, l_str.114@PAGEOFF
bl _puts
Lloh400:
adrp x0, l_str.115@PAGE
Lloh401:
add x0, x0, l_str.115@PAGEOFF
bl _puts
Lloh402:
adrp x0, l_str.116@PAGE
Lloh403:
add x0, x0, l_str.116@PAGEOFF
bl _puts
Lloh404:
adrp x0, l_str.117@PAGE
Lloh405:
add x0, x0, l_str.117@PAGEOFF
bl _puts
Lloh406:
adrp x0, l_str.118@PAGE
Lloh407:
add x0, x0, l_str.118@PAGEOFF
bl _puts
Lloh408:
adrp x0, l_str.119@PAGE
Lloh409:
add x0, x0, l_str.119@PAGEOFF
bl _puts
Lloh410:
adrp x0, l_str.120@PAGE
Lloh411:
add x0, x0, l_str.120@PAGEOFF
bl _puts
Lloh412:
adrp x0, l_str.121@PAGE
Lloh413:
add x0, x0, l_str.121@PAGEOFF
bl _puts
Lloh414:
adrp x0, l_str.122@PAGE
Lloh415:
add x0, x0, l_str.122@PAGEOFF
bl _puts
Lloh416:
adrp x0, l_str.123@PAGE
Lloh417:
add x0, x0, l_str.123@PAGEOFF
bl _puts
Lloh418:
adrp x0, l_str.124@PAGE
Lloh419:
add x0, x0, l_str.124@PAGEOFF
bl _puts
Lloh420:
adrp x0, l_str.125@PAGE
Lloh421:
add x0, x0, l_str.125@PAGEOFF
bl _puts
Lloh422:
adrp x0, _sem_banco@GOTPAGE
Lloh423:
ldr x0, [x0, _sem_banco@GOTPAGEOFF]
mov w1, #0
mov w2, #0
bl _sem_init
mov w0, #4
bl _malloc
mov x3, x0
str wzr, [x0]
Lloh424:
adrp x0, _Brasil@GOTPAGE
Lloh425:
ldr x0, [x0, _Brasil@GOTPAGEOFF]
Lloh426:
adrp x22, _thread_goleiro_Brasil@PAGE
Lloh427:
add x22, x22, _thread_goleiro_Brasil@PAGEOFF
mov x19, x0
mov x1, #0
mov x2, x22
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str wzr, [x0]
Lloh428:
adrp x28, _Alemanha@GOTPAGE
Lloh429:
ldr x28, [x28, _Alemanha@GOTPAGEOFF]
Lloh430:
adrp x23, _thread_goleiro_Alemanha@PAGE
Lloh431:
add x23, x23, _thread_goleiro_Alemanha@PAGEOFF
mov x0, x28
mov x1, #0
mov x2, x23
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
mov w27, #1
str w27, [x0]
add x21, x19, #8
mov x0, x21
mov x1, #0
mov x2, x22
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w27, [x0]
add x22, x28, #8
mov x0, x22
mov x1, #0
mov x2, x23
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str wzr, [x0]
Lloh432:
adrp x25, _thread_zagueiro_Brasil@PAGE
Lloh433:
add x25, x25, _thread_zagueiro_Brasil@PAGEOFF
mov x0, x19
mov x1, #0
mov x2, x25
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str wzr, [x0]
Lloh434:
adrp x26, _thread_zagueiro_Alemanha@PAGE
Lloh435:
add x26, x26, _thread_zagueiro_Alemanha@PAGEOFF
mov x0, x28
mov x1, #0
mov x2, x26
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w27, [x0]
mov x0, x21
mov x1, #0
mov x2, x25
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w27, [x0]
mov x0, x22
mov x1, #0
mov x2, x26
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
mov w8, #2
str w8, [x0]
mov w24, #2
add x23, x19, #16
mov x20, x19
mov x0, x23
mov x1, #0
mov x2, x25
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w24, [x0]
add x24, x28, #16
mov x0, x24
mov x1, #0
mov x2, x26
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
mov w19, #3
str w19, [x0]
add x0, x20, #24
mov x1, #0
mov x2, x25
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w19, [x0]
mov x19, x28
add x0, x28, #24
mov x1, #0
mov x2, x26
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str wzr, [x0]
Lloh436:
adrp x25, _thread_lateral_Brasil@PAGE
Lloh437:
add x25, x25, _thread_lateral_Brasil@PAGEOFF
mov x0, x20
mov x28, x20
mov x1, #0
mov x2, x25
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str wzr, [x0]
Lloh438:
adrp x26, _thread_lateral_Alemanha@PAGE
Lloh439:
add x26, x26, _thread_lateral_Alemanha@PAGEOFF
mov x0, x19
mov x1, #0
mov x2, x26
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w27, [x0]
mov x0, x21
mov x1, #0
mov x2, x25
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w27, [x0]
mov x0, x22
mov x1, #0
mov x2, x26
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
mov w20, #2
str w20, [x0]
mov x0, x23
mov x1, #0
mov x2, x25
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w20, [x0]
mov w20, #2
mov x0, x24
mov x1, #0
mov x2, x26
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str wzr, [x0]
Lloh440:
adrp x25, _thread_volante_Brasil@PAGE
Lloh441:
add x25, x25, _thread_volante_Brasil@PAGEOFF
mov x0, x28
mov x1, #0
mov x2, x25
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str wzr, [x0]
Lloh442:
adrp x26, _thread_volante_Alemanha@PAGE
Lloh443:
add x26, x26, _thread_volante_Alemanha@PAGEOFF
mov x0, x19
mov x1, #0
mov x2, x26
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w27, [x0]
mov x0, x21
mov x1, #0
mov x2, x25
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w27, [x0]
mov x0, x22
mov x1, #0
mov x2, x26
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w20, [x0]
mov x0, x23
mov x1, #0
mov x2, x25
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w20, [x0]
mov x0, x24
mov x1, #0
mov x2, x26
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str wzr, [x0]
Lloh444:
adrp x25, _thread_meia_Brasil@PAGE
Lloh445:
add x25, x25, _thread_meia_Brasil@PAGEOFF
mov x0, x28
mov x1, #0
mov x2, x25
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str wzr, [x0]
Lloh446:
adrp x26, _thread_meia_Alemanha@PAGE
Lloh447:
add x26, x26, _thread_meia_Alemanha@PAGEOFF
mov x0, x19
mov x1, #0
mov x2, x26
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w27, [x0]
mov x0, x21
mov x1, #0
mov x2, x25
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w27, [x0]
mov x0, x22
mov x1, #0
mov x2, x26
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str wzr, [x0]
Lloh448:
adrp x25, _thread_atacante_Brasil@PAGE
Lloh449:
add x25, x25, _thread_atacante_Brasil@PAGEOFF
mov x0, x28
mov x1, #0
mov x2, x25
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str wzr, [x0]
Lloh450:
adrp x26, _thread_atacante_Alemanha@PAGE
Lloh451:
add x26, x26, _thread_atacante_Alemanha@PAGEOFF
mov x0, x19
mov x1, #0
mov x2, x26
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w27, [x0]
mov x0, x21
mov x1, #0
mov x2, x25
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w27, [x0]
mov x0, x22
mov x1, #0
mov x2, x26
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w20, [x0]
mov x0, x23
mov x1, #0
mov x2, x25
bl _pthread_create
mov w0, #4
bl _malloc
mov x3, x0
str w20, [x0]
mov x0, x24
mov x1, #0
mov x2, x26
bl _pthread_create
ldr x0, [x28]
mov x1, #0
bl _pthread_join
ldr x0, [x19]
mov x1, #0
bl _pthread_join
mov w0, #0
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
.loh AdrpAdd Lloh450, Lloh451
.loh AdrpAdd Lloh448, Lloh449
.loh AdrpAdd Lloh446, Lloh447
.loh AdrpAdd Lloh444, Lloh445
.loh AdrpAdd Lloh442, Lloh443
.loh AdrpAdd Lloh440, Lloh441
.loh AdrpAdd Lloh438, Lloh439
.loh AdrpAdd Lloh436, Lloh437
.loh AdrpAdd Lloh434, Lloh435
.loh AdrpAdd Lloh432, Lloh433
.loh AdrpAdd Lloh430, Lloh431
.loh AdrpLdrGot Lloh428, Lloh429
.loh AdrpAdd Lloh426, Lloh427
.loh AdrpLdrGot Lloh424, Lloh425
.loh AdrpLdrGot Lloh422, Lloh423
.loh AdrpAdd Lloh420, Lloh421
.loh AdrpAdd Lloh418, Lloh419
.loh AdrpAdd Lloh416, Lloh417
.loh AdrpAdd Lloh414, Lloh415
.loh AdrpAdd Lloh412, Lloh413
.loh AdrpAdd Lloh410, Lloh411
.loh AdrpAdd Lloh408, Lloh409
.loh AdrpAdd Lloh406, Lloh407
.loh AdrpAdd Lloh404, Lloh405
.loh AdrpAdd Lloh402, Lloh403
.loh AdrpAdd Lloh400, Lloh401
.loh AdrpAdd Lloh398, Lloh399
.loh AdrpAdd Lloh396, Lloh397
.loh AdrpAdd Lloh394, Lloh395
.loh AdrpAdd Lloh392, Lloh393
.loh AdrpAdd Lloh390, Lloh391
.loh AdrpAdd Lloh388, Lloh389
.cfi_endproc
; -- End function
.globl _escalacao_goleiro_Brasil ; @escalacao_goleiro_Brasil
.zerofill __DATA,__common,_escalacao_goleiro_Brasil,4,2
.globl _escalacao_zagueiros_Brasil ; @escalacao_zagueiros_Brasil
.zerofill __DATA,__common,_escalacao_zagueiros_Brasil,4,2
.globl _escalacao_laterais_Brasil ; @escalacao_laterais_Brasil
.zerofill __DATA,__common,_escalacao_laterais_Brasil,4,2
.globl _escalacao_volantes_Brasil ; @escalacao_volantes_Brasil
.zerofill __DATA,__common,_escalacao_volantes_Brasil,4,2
.globl _escalacao_meia_Brasil ; @escalacao_meia_Brasil
.zerofill __DATA,__common,_escalacao_meia_Brasil,4,2
.globl _escalacao_atacantes_Brasil ; @escalacao_atacantes_Brasil
.zerofill __DATA,__common,_escalacao_atacantes_Brasil,4,2
.globl _gols_Brasil ; @gols_Brasil
.zerofill __DATA,__common,_gols_Brasil,4,2
.globl _escalacao_goleiro_Alemanha ; @escalacao_goleiro_Alemanha
.zerofill __DATA,__common,_escalacao_goleiro_Alemanha,4,2
.globl _escalacao_zagueiros_Alemanha ; @escalacao_zagueiros_Alemanha
.zerofill __DATA,__common,_escalacao_zagueiros_Alemanha,4,2
.globl _escalacao_laterais_Alemanha ; @escalacao_laterais_Alemanha
.zerofill __DATA,__common,_escalacao_laterais_Alemanha,4,2
.globl _escalacao_volantes_Alemanha ; @escalacao_volantes_Alemanha
.zerofill __DATA,__common,_escalacao_volantes_Alemanha,4,2
.globl _escalacao_meia_Alemanha ; @escalacao_meia_Alemanha
.zerofill __DATA,__common,_escalacao_meia_Alemanha,4,2
.globl _escalacao_atacantes_Alemanha ; @escalacao_atacantes_Alemanha
.zerofill __DATA,__common,_escalacao_atacantes_Alemanha,4,2
.globl _gols_Alemanha ; @gols_Alemanha
.zerofill __DATA,__common,_gols_Alemanha,4,2
.section __DATA,__data
.globl _lock_posse ; @lock_posse
.p2align 3
_lock_posse:
.quad 850045863 ; 0x32aaaba7
.space 56
.globl _lock_regiao ; @lock_regiao
.p2align 3
_lock_regiao:
.quad 850045863 ; 0x32aaaba7
.space 56
.globl _lock_gol ; @lock_gol
.p2align 3
_lock_gol:
.quad 850045863 ; 0x32aaaba7
.space 56
.globl _lock_bola ; @lock_bola
.p2align 3
_lock_bola:
.quad 850045863 ; 0x32aaaba7
.space 56
.globl _posse ; @posse
.zerofill __DATA,__common,_posse,4,2
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "BRASIL"
l_.str.1: ; @.str.1
.asciz "ALEMANHA"
.section __DATA,__data
.globl _regiao ; @regiao
.p2align 2
_regiao:
.long 3 ; 0x3
.section __TEXT,__cstring,cstring_literals
l_.str.2: ; @.str.2
.asciz "GOL_BRASIL"
l_.str.3: ; @.str.3
.asciz "DEFESA_BRASIL"
l_.str.4: ; @.str.4
.asciz "LADOS"
l_.str.5: ; @.str.5
.asciz "MEIO_OFENSIVO_BRASIL"
l_.str.6: ; @.str.6
.asciz "MEIO_DEFENSIVO_BRASIL"
l_.str.7: ; @.str.7
.asciz "ATAQUE_BRASIL"
l_.str.8: ; @.str.8
.asciz "GOL_ALEMANHA"
l_.str.9: ; @.str.9
.asciz "(1) Marcos"
l_.str.10: ; @.str.10
.asciz "(22) Rogerio Ceni"
.comm _lock_goleiros_Brasil,64,3 ; @lock_goleiros_Brasil
.comm _titular_goleiro_Brasil,8,2 ; @titular_goleiro_Brasil
l_.str.11: ; @.str.11
.asciz "\tBrasil, como goleiro: %s\n"
.comm _sem_banco,4,2 ; @sem_banco
l_.str.12: ; @.str.12
.asciz "\nBRASIL %d X %d ALEMANHA\n"
l_.str.13: ; @.str.13
.asciz "Brasil, goleiro %s com a bola\n"
l_.str.14: ; @.str.14
.asciz "Brasil, goleiro %s tocou a bola\n"
l_.str.15: ; @.str.15
.asciz "Brasil, goleiro %s defendeu\n"
l_.str.17: ; @.str.17
.asciz "(3) Lucio"
l_.str.18: ; @.str.18
.asciz "(5) Edmilson"
l_.str.19: ; @.str.19
.asciz "(4) Roque Junior"
l_.str.20: ; @.str.20
.asciz "(14) Anderson Polga"
.comm _lock_zagueiros_Brasil,64,3 ; @lock_zagueiros_Brasil
.comm _titular_zagueiros_Brasil,16,2 ; @titular_zagueiros_Brasil
l_.str.21: ; @.str.21
.asciz "\tBrasil, como %do zagueiro: %s\n"
l_.str.22: ; @.str.22
.asciz "Brasil, zagueiro %s com a bola\n"
l_.str.23: ; @.str.23
.asciz "Brasil, zagueiro %s tocou a bola\n"
l_.str.24: ; @.str.24
.asciz "Brasil, zagueiro %s tomou e tocou a bola\n"
l_.str.25: ; @.str.25
.asciz "(2) Cafu"
l_.str.26: ; @.str.26
.asciz "(6) Roberto Carlos"
l_.str.27: ; @.str.27
.asciz "(16) Junior"
.comm _lock_laterais_Brasil,64,3 ; @lock_laterais_Brasil
.comm _titular_laterais_Brasil,12,2 ; @titular_laterais_Brasil
l_.str.28: ; @.str.28
.asciz "\tBrasil, como %do lateral: %s\n"
l_.str.29: ; @.str.29
.asciz "Brasil, lateral %s com a bola\n"
l_.str.30: ; @.str.30
.asciz "Brasil, lateral %s tocou a bola\n"
l_.str.31: ; @.str.31
.asciz "Brasil, lateral %s cruzou a bola\n"
l_.str.32: ; @.str.32
.asciz "(8) Gilberto Silva"
l_.str.33: ; @.str.33
.asciz "(15) Kleberson"
l_.str.34: ; @.str.34
.asciz "(18) Vampeta"
.comm _lock_volantes_Brasil,64,3 ; @lock_volantes_Brasil
.comm _titular_volantes_Brasil,12,2 ; @titular_volantes_Brasil
l_.str.35: ; @.str.35
.asciz "\tBrasil, como %do volante: %s\n"
l_.str.36: ; @.str.36
.asciz "Brasil, volante %s com a bola\n"
l_.str.37: ; @.str.37
.asciz "Brasil, volante %s tocou a bola\n"
l_.str.38: ; @.str.38
.asciz "Brasil, volante %s tomou e tocou a bola\n"
l_.str.39: ; @.str.39
.asciz "(11) Ronaldinho"
l_.str.40: ; @.str.40
.asciz "(23) Kaka"
.comm _lock_meias_Brasil,64,3 ; @lock_meias_Brasil
.comm _titular_meia_Brasil,8,2 ; @titular_meia_Brasil
l_.str.41: ; @.str.41
.asciz "\tBrasil, como %do meia: %s\n"
l_.str.42: ; @.str.42
.asciz "Brasil, meia %s com a bola\n"
l_.str.43: ; @.str.43
.asciz "Brasil, meia %s tocou a bola\n"
l_.str.44: ; @.str.44
.asciz "Brasil, meia %s chutou a bola\n"
l_.str.45: ; @.str.45
.asciz "(10) Rivaldo"
l_.str.46: ; @.str.46
.asciz "(9) Ronaldo"
l_.str.47: ; @.str.47
.asciz "(17) Denilson"
.comm _lock_atacantes_Brasil,64,3 ; @lock_atacantes_Brasil
.comm _titular_atacantes_Brasil,12,2 ; @titular_atacantes_Brasil
l_.str.48: ; @.str.48
.asciz "\tBrasil, como %do atacante: %s\n"
l_.str.49: ; @.str.49
.asciz "Brasil, atacante %s com a bola\n"
l_.str.50: ; @.str.50
.asciz "Brasil, atacante %s chutou a bola\n"
l_.str.51: ; @.str.51
.asciz "(1) Kahn"
l_.str.52: ; @.str.52
.asciz "(12) Lehmann"
.comm _lock_goleiros_Alemanha,64,3 ; @lock_goleiros_Alemanha
.comm _titular_goleiro_Alemanha,8,2 ; @titular_goleiro_Alemanha
l_.str.53: ; @.str.53
.asciz "\tAlemanha, como goleiro: %s\n"
l_.str.54: ; @.str.54
.asciz "Alemanha, goleiro %s com a bola\n"
l_.str.55: ; @.str.55
.asciz "Alemanha, goleiro %s tocou a bola\n"
l_.str.56: ; @.str.56
.asciz "Alemanha, goleiro %s defendeu\n"
l_.str.58: ; @.str.58
.asciz "(2) Linke"
l_.str.59: ; @.str.59
.asciz "(3) Rehmer"
l_.str.60: ; @.str.60
.asciz "(21) Meltzfelder"
l_.str.61: ; @.str.61
.asciz "(4) Baumann"
.comm _lock_zagueiros_Alemanha,64,3 ; @lock_zagueiros_Alemanha
.comm _titular_zagueiros_Alemanha,16,2 ; @titular_zagueiros_Alemanha
l_.str.62: ; @.str.62
.asciz "\tAlemanha, como %do zagueiro: %s\n"
l_.str.63: ; @.str.63
.asciz "Alemanha, zagueiro %s com a bola\n"
l_.str.64: ; @.str.64
.asciz "Alemanha, zagueiro %s tocou a bola\n"
l_.str.65: ; @.str.65
.asciz "Alemanha, zagueiro %s tomou e tocou a bola\n"
l_.str.66: ; @.str.66
.asciz "(22) Frings"
l_.str.67: ; @.str.67
.asciz "(17) Bode"
l_.str.68: ; @.str.68
.asciz "(6) Ziege"
.comm _lock_laterais_Alemanha,64,3 ; @lock_laterais_Alemanha
.comm _titular_laterais_Alemanha,12,2 ; @titular_laterais_Alemanha
l_.str.69: ; @.str.69
.asciz "\tAlemanha, como %do lateral: %s\n"
l_.str.70: ; @.str.70
.asciz "Alemanha, lateral %s com a bola\n"
l_.str.71: ; @.str.71
.asciz "Alemanha, lateral %s tocou a bola\n"
l_.str.72: ; @.str.72
.asciz "Alemanha, lateral %s cruzou a bola\n"
l_.str.73: ; @.str.73
.asciz "(8) Hamann"
l_.str.74: ; @.str.74
.asciz "(16) Jeremies"
l_.str.75: ; @.str.75
.asciz "(5) Ramelow"
.comm _lock_volantes_Alemanha,64,3 ; @lock_volantes_Alemanha
.comm _titular_volantes_Alemanha,12,2 ; @titular_volantes_Alemanha
l_.str.76: ; @.str.76
.asciz "\tAlemanha, como %do volante: %s\n"
l_.str.77: ; @.str.77
.asciz "Alemanha, volante %s com a bola\n"
l_.str.78: ; @.str.78
.asciz "Alemanha, volante %s tocou a bola\n"
l_.str.79: ; @.str.79
.asciz "Alemanha, volante %s tomou e tocou a bola\n"
l_.str.80: ; @.str.80
.asciz "(19) Schneider"
l_.str.81: ; @.str.81
.asciz "(13) Ballack"
.comm _lock_meias_Alemanha,64,3 ; @lock_meias_Alemanha
.comm _titular_meia_Alemanha,8,2 ; @titular_meia_Alemanha
l_.str.82: ; @.str.82
.asciz "\tAlemanha, como %do meia: %s\n"
l_.str.83: ; @.str.83
.asciz "Alemanha, meia %s com a bola\n"
l_.str.84: ; @.str.84
.asciz "Alemanha, meia %s tocou a bola\n"
l_.str.85: ; @.str.85
.asciz "Alemanha, meia %s chutou a bola\n"
l_.str.86: ; @.str.86
.asciz "(11) Klose"
l_.str.87: ; @.str.87
.asciz "(7) Neuville"
l_.str.88: ; @.str.88
.asciz "(9) Jancker"
.comm _lock_atacantes_Alemanha,64,3 ; @lock_atacantes_Alemanha
.comm _titular_atacantes_Alemanha,12,2 ; @titular_atacantes_Alemanha
l_.str.89: ; @.str.89
.asciz "\tAlemanha, como %do atacante: %s\n"
l_.str.90: ; @.str.90
.asciz "Alemanha, atacante %s com a bola\n"
l_.str.91: ; @.str.91
.asciz "Alemanha, atacante %s chutou a bola\n"
l_.str.93: ; @.str.93
.asciz "\nELENCOS:"
.comm _Brasil,128,3 ; @Brasil
.comm _Alemanha,128,3 ; @Alemanha
l_str: ; @str
.asciz "GOL DA ALEMANHA!"
l_str.109: ; @str.109
.asciz "GOL DO BRASIL!"
l_str.110: ; @str.110
.asciz "\n***** SIMULACAO DA FINAL DA COPA DO MUNDO DE 2002 NO JAPAO *****"
l_str.111: ; @str.111
.asciz "\n\tBRASIL"
l_str.112: ; @str.112
.asciz "\t- Goleiros: Marcos e Rogerio Ceni;"
l_str.113: ; @str.113
.asciz "\t- Zagueiros: Lucio, Edmilson, Roque Junior e Anderson Polga;"
l_str.114: ; @str.114
.asciz "\t- Laterais: Cafu, Roberto Carlos e Junior;"
l_str.115: ; @str.115
.asciz "\t- Volantes: Gilberto Silva, Kleberson e Vampeta;"
l_str.116: ; @str.116
.asciz "\t- Meias: Ronaldinho e Kaka;"
l_str.117: ; @str.117
.asciz "\t- Atacantes: Rivaldo, Ronaldo e Denilson."
l_str.118: ; @str.118
.asciz "\n\tALEMANHA"
l_str.119: ; @str.119
.asciz "\t- Goleiros: Kahn e Lehmann;"
l_str.120: ; @str.120
.asciz "\t- Zagueiros: Linke, Rehmer, Meltzfelder e Baumann;"
l_str.121: ; @str.121
.asciz "\t- Laterais: Frings, Bode e Ziege;"
l_str.122: ; @str.122
.asciz "\t- Volantes: Hamann, Jeremies e Ramelow;"
l_str.123: ; @str.123
.asciz "\t- Meias: Schneider e Ballack;"
l_str.124: ; @str.124
.asciz "\t- Atacantes: Klose, Neuville e Jancker."
l_str.125: ; @str.125
.asciz "\nTITULARES:"
.section __DATA,__const
.p2align 3 ; @switch.table.getRegiao
l_switch.table.getRegiao:
.quad l_.str.3
.quad l_.str.4
.quad l_.str.5
.quad l_.str.6
.quad l_.str.7
.quad l_.str.8
.p2align 3 ; @switch.table.thread_zagueiro_Brasil
l_switch.table.thread_zagueiro_Brasil:
.quad l_.str.17
.quad l_.str.18
.quad l_.str.19
.p2align 3 ; @switch.table.thread_zagueiro_Alemanha
l_switch.table.thread_zagueiro_Alemanha:
.quad l_.str.58
.quad l_.str.59
.quad l_.str.60
.subsections_via_symbols
| the_stack_data/40763703.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _bnx2x_link_reset ## -- Begin function bnx2x_link_reset
.p2align 4, 0x90
_bnx2x_link_reset: ## @bnx2x_link_reset
.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 %edx, -56(%rbp) ## 4-byte Spill
movq %rsi, %r12
movq %rdi, %rbx
movq 24(%rdi), %r15
movslq (%rdi), %r13
movq _NETIF_MSG_LINK@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str(%rip), %rsi
movl %r13d, %edx
callq _DP
movq $0, 24(%r12)
movq %rbx, %rdi
xorl %esi, %esi
callq _bnx2x_update_mng
movq _SHMEM_EEE_LP_ADV_STATUS_MASK@GOTPCREL(%rip), %rax
movq _SHMEM_EEE_ACTIVE_BIT@GOTPCREL(%rip), %rcx
movl (%rcx), %esi
orl (%rax), %esi
notl %esi
andl (%r12), %esi
movl %esi, (%r12)
movq %rbx, %rdi
callq _bnx2x_update_mng_eee
movq _NIG_REG_MASK_INTERRUPT_PORT0@GOTPCREL(%rip), %rax
movq %r13, %r14
shlq $2, %r14
movq _NIG_MASK_XGXS0_LINK_STATUS@GOTPCREL(%rip), %rcx
movq _NIG_MASK_XGXS0_LINK10G@GOTPCREL(%rip), %rdx
movl (%rdx), %edx
orl (%rcx), %edx
movq (%rax), %rsi
movq _NIG_MASK_SERDES0_LINK_STATUS@GOTPCREL(%rip), %rax
orl (%rax), %edx
addq %r14, %rsi
movq _NIG_MASK_MI_INT@GOTPCREL(%rip), %rax
orl (%rax), %edx
movq %r15, %rdi
callq _bnx2x_bits_dis
movq _NIG_REG_EGRESS_DRAIN0_MODE@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movq %r14, -48(%rbp) ## 8-byte Spill
addq %r14, %rsi
movq %r15, %rdi
movl $1, %edx
callq _REG_WR
movq %r15, %rdi
callq _CHIP_IS_E3
testl %eax, %eax
jne LBB0_2
## %bb.1:
movq _NIG_REG_BMAC0_OUT_EN@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movq -48(%rbp), %r14 ## 8-byte Reload
addq %r14, %rsi
movq %r15, %rdi
xorl %edx, %edx
callq _REG_WR
movq _NIG_REG_EGRESS_EMAC0_OUT_EN@GOTPCREL(%rip), %rax
movq (%rax), %rsi
addq %r14, %rsi
movq %r15, %rdi
xorl %edx, %edx
callq _REG_WR
LBB0_2:
movq %r15, %rdi
callq _CHIP_IS_E3
testl %eax, %eax
je LBB0_3
## %bb.4:
movq %rbx, %rdi
xorl %esi, %esi
callq _bnx2x_set_xmac_rxtx
movq %rbx, %rdi
xorl %esi, %esi
callq _bnx2x_set_umac_rxtx
jmp LBB0_5
LBB0_3:
movl 16(%rbx), %esi
movq %r15, %rdi
movl %r13d, %edx
xorl %ecx, %ecx
callq _bnx2x_set_bmac_rx
LBB0_5:
movq %r15, %rdi
callq _CHIP_IS_E3
testl %eax, %eax
jne LBB0_7
## %bb.6:
movq _NIG_REG_NIG_EMAC0_EN@GOTPCREL(%rip), %rax
movq (%rax), %rsi
addq -48(%rbp), %rsi ## 8-byte Folded Reload
movq %r15, %rdi
xorl %edx, %edx
callq _REG_WR
LBB0_7:
movl $10000, %edi ## imm = 0x2710
movl $20000, %esi ## imm = 0x4E20
callq _usleep_range
movq %r15, %rdi
movq %rbx, %rsi
callq _bnx2x_set_mdio_emac_per_phy
movq _LED_MODE_OFF@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %ecx, %ecx
callq _bnx2x_set_led
cmpl $0, -56(%rbp) ## 4-byte Folded Reload
movq %r12, -72(%rbp) ## 8-byte Spill
je LBB0_15
## %bb.8:
movq _EXT_PHY1@GOTPCREL(%rip), %rax
movslq (%rax), %r14
movl 4(%rbx), %eax
cmpl %eax, %r14d
jge LBB0_15
## %bb.9:
movq %r13, -64(%rbp) ## 8-byte Spill
movq %r15, -56(%rbp) ## 8-byte Spill
movq 8(%rbx), %rsi
movq %r14, %r12
shlq $4, %r12
xorl %r13d, %r13d
movl $1, %r15d
jmp LBB0_10
.p2align 4, 0x90
LBB0_12: ## in Loop: Header=BB0_10 Depth=1
movq _FLAGS_REARM_LATCH_SIGNAL@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
testl %ecx, (%rsi,%r12)
cmovnel %r15d, %r13d
incq %r14
movslq %eax, %rcx
addq $16, %r12
cmpq %rcx, %r14
jge LBB0_13
LBB0_10: ## =>This Inner Loop Header: Depth=1
cmpq $0, 8(%rsi,%r12)
je LBB0_12
## %bb.11: ## in Loop: Header=BB0_10 Depth=1
addq %r12, %rsi
movq %rbx, %rdi
callq _bnx2x_set_aer_mmd
movq 8(%rbx), %rax
leaq (%rax,%r12), %rdi
movq %rbx, %rsi
callq *8(%rax,%r12)
movq 8(%rbx), %rsi
movl 4(%rbx), %eax
jmp LBB0_12
LBB0_13:
testl %r13d, %r13d
movq -56(%rbp), %r15 ## 8-byte Reload
movq -64(%rbp), %r13 ## 8-byte Reload
je LBB0_15
## %bb.14:
movq %r15, %rdi
movl %r13d, %esi
xorl %edx, %edx
callq _bnx2x_rearm_latch_signal
movq _NIG_REG_LATCH_BC_0@GOTPCREL(%rip), %rax
movq (%rax), %rsi
addq -48(%rbp), %rsi ## 8-byte Folded Reload
movq _NIG_LATCH_BC_ENABLE_MI_INT@GOTPCREL(%rip), %rax
movb (%rax), %cl
movl $1, %edx
shll %cl, %edx
movq %r15, %rdi
callq _bnx2x_bits_dis
LBB0_15:
movq 8(%rbx), %rdi
movq _INT_PHY@GOTPCREL(%rip), %rax
movq (%rax), %rcx
shlq $4, %rcx
movq 8(%rdi,%rcx), %rax
testq %rax, %rax
je LBB0_17
## %bb.16:
addq %rcx, %rdi
movq %rbx, %rsi
callq *%rax
LBB0_17:
movq %r15, %rdi
callq _CHIP_IS_E3
testl %eax, %eax
je LBB0_18
## %bb.19:
movl (%rbx), %r14d
movq _GRCBASE_XMAC1@GOTPCREL(%rip), %rax
movq (%rax), %r12
movq _GRCBASE_XMAC0@GOTPCREL(%rip), %rax
movq (%rax), %r13
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq _bnx2x_set_xumac_nig
movq _MISC_REG_RESET_REG_2@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %r15, %rdi
callq _REG_RD
movq _MISC_REGISTERS_RESET_REG_2_XMAC@GOTPCREL(%rip), %rcx
testl %eax, (%rcx)
je LBB0_22
## %bb.20:
testl %r14d, %r14d
cmoveq %r13, %r12
movq _XMAC_REG_CTRL@GOTPCREL(%rip), %rax
addq (%rax), %r12
movq _XMAC_CTRL_REG_SOFT_RESET@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %r15, %rdi
movq %r12, %rsi
jmp LBB0_21
LBB0_18:
movq _GRCBASE_MISC@GOTPCREL(%rip), %rax
movq _MISC_REGISTERS_RESET_REG_2_CLEAR@GOTPCREL(%rip), %rcx
movq (%rcx), %rsi
addq (%rax), %rsi
movq _MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPCREL(%rip), %rax
movl (%rax), %edx
movl %r13d, %ecx
shll %cl, %edx
movq %r15, %rdi
callq _REG_WR
movq _NIG_REG_BMAC0_IN_EN@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movq -48(%rbp), %rbx ## 8-byte Reload
addq %rbx, %rsi
movq %r15, %rdi
xorl %edx, %edx
callq _REG_WR
movq _NIG_REG_EMAC0_IN_EN@GOTPCREL(%rip), %rax
addq (%rax), %rbx
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
LBB0_21:
callq _REG_WR
LBB0_22:
xorps %xmm0, %xmm0
movq -72(%rbp), %rax ## 8-byte Reload
movups %xmm0, 8(%rax)
xorl %eax, %eax
addq $40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _NETIF_MSG_LINK,4,2 ## @NETIF_MSG_LINK
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Resetting the link of port %d\n"
.comm _SHMEM_EEE_LP_ADV_STATUS_MASK,4,2 ## @SHMEM_EEE_LP_ADV_STATUS_MASK
.comm _SHMEM_EEE_ACTIVE_BIT,4,2 ## @SHMEM_EEE_ACTIVE_BIT
.comm _NIG_REG_MASK_INTERRUPT_PORT0,8,3 ## @NIG_REG_MASK_INTERRUPT_PORT0
.comm _NIG_MASK_XGXS0_LINK_STATUS,4,2 ## @NIG_MASK_XGXS0_LINK_STATUS
.comm _NIG_MASK_XGXS0_LINK10G,4,2 ## @NIG_MASK_XGXS0_LINK10G
.comm _NIG_MASK_SERDES0_LINK_STATUS,4,2 ## @NIG_MASK_SERDES0_LINK_STATUS
.comm _NIG_MASK_MI_INT,4,2 ## @NIG_MASK_MI_INT
.comm _NIG_REG_EGRESS_DRAIN0_MODE,8,3 ## @NIG_REG_EGRESS_DRAIN0_MODE
.comm _NIG_REG_BMAC0_OUT_EN,8,3 ## @NIG_REG_BMAC0_OUT_EN
.comm _NIG_REG_EGRESS_EMAC0_OUT_EN,8,3 ## @NIG_REG_EGRESS_EMAC0_OUT_EN
.comm _NIG_REG_NIG_EMAC0_EN,8,3 ## @NIG_REG_NIG_EMAC0_EN
.comm _LED_MODE_OFF,4,2 ## @LED_MODE_OFF
.comm _EXT_PHY1,4,2 ## @EXT_PHY1
.comm _FLAGS_REARM_LATCH_SIGNAL,4,2 ## @FLAGS_REARM_LATCH_SIGNAL
.comm _NIG_REG_LATCH_BC_0,8,3 ## @NIG_REG_LATCH_BC_0
.comm _NIG_LATCH_BC_ENABLE_MI_INT,4,2 ## @NIG_LATCH_BC_ENABLE_MI_INT
.comm _INT_PHY,8,3 ## @INT_PHY
.comm _GRCBASE_MISC,8,3 ## @GRCBASE_MISC
.comm _MISC_REGISTERS_RESET_REG_2_CLEAR,8,3 ## @MISC_REGISTERS_RESET_REG_2_CLEAR
.comm _MISC_REGISTERS_RESET_REG_2_RST_BMAC0,4,2 ## @MISC_REGISTERS_RESET_REG_2_RST_BMAC0
.comm _NIG_REG_BMAC0_IN_EN,8,3 ## @NIG_REG_BMAC0_IN_EN
.comm _NIG_REG_EMAC0_IN_EN,8,3 ## @NIG_REG_EMAC0_IN_EN
.comm _GRCBASE_XMAC1,8,3 ## @GRCBASE_XMAC1
.comm _GRCBASE_XMAC0,8,3 ## @GRCBASE_XMAC0
.comm _MISC_REG_RESET_REG_2,4,2 ## @MISC_REG_RESET_REG_2
.comm _MISC_REGISTERS_RESET_REG_2_XMAC,4,2 ## @MISC_REGISTERS_RESET_REG_2_XMAC
.comm _XMAC_REG_CTRL,8,3 ## @XMAC_REG_CTRL
.comm _XMAC_CTRL_REG_SOFT_RESET,4,2 ## @XMAC_CTRL_REG_SOFT_RESET
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _bnx2x_link_reset ; -- Begin function bnx2x_link_reset
.p2align 2
_bnx2x_link_reset: ; @bnx2x_link_reset
.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
mov x23, x2
mov x19, x1
mov x21, x0
ldr x20, [x0, #24]
ldrsw x22, [x0]
Lloh0:
adrp x8, _NETIF_MSG_LINK@GOTPAGE
Lloh1:
ldr x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
mov x2, x22
bl _DP
str xzr, [x19, #24]
mov x0, x21
mov x1, #0
bl _bnx2x_update_mng
Lloh5:
adrp x8, _SHMEM_EEE_LP_ADV_STATUS_MASK@GOTPAGE
Lloh6:
ldr x8, [x8, _SHMEM_EEE_LP_ADV_STATUS_MASK@GOTPAGEOFF]
Lloh7:
adrp x9, _SHMEM_EEE_ACTIVE_BIT@GOTPAGE
Lloh8:
ldr x9, [x9, _SHMEM_EEE_ACTIVE_BIT@GOTPAGEOFF]
Lloh9:
ldr w8, [x8]
Lloh10:
ldr w9, [x9]
orr w8, w9, w8
ldr w9, [x19]
bic w1, w9, w8
str w1, [x19]
mov x0, x21
bl _bnx2x_update_mng_eee
Lloh11:
adrp x8, _NIG_REG_MASK_INTERRUPT_PORT0@GOTPAGE
Lloh12:
ldr x8, [x8, _NIG_REG_MASK_INTERRUPT_PORT0@GOTPAGEOFF]
Lloh13:
ldr x8, [x8]
lsl x24, x22, #2
add x1, x8, x24
Lloh14:
adrp x8, _NIG_MASK_XGXS0_LINK_STATUS@GOTPAGE
Lloh15:
ldr x8, [x8, _NIG_MASK_XGXS0_LINK_STATUS@GOTPAGEOFF]
Lloh16:
ldr w8, [x8]
Lloh17:
adrp x9, _NIG_MASK_XGXS0_LINK10G@GOTPAGE
Lloh18:
ldr x9, [x9, _NIG_MASK_XGXS0_LINK10G@GOTPAGEOFF]
Lloh19:
ldr w9, [x9]
orr w8, w9, w8
Lloh20:
adrp x9, _NIG_MASK_SERDES0_LINK_STATUS@GOTPAGE
Lloh21:
ldr x9, [x9, _NIG_MASK_SERDES0_LINK_STATUS@GOTPAGEOFF]
Lloh22:
ldr w9, [x9]
orr w8, w8, w9
Lloh23:
adrp x9, _NIG_MASK_MI_INT@GOTPAGE
Lloh24:
ldr x9, [x9, _NIG_MASK_MI_INT@GOTPAGEOFF]
Lloh25:
ldr w9, [x9]
orr w2, w8, w9
mov x0, x20
bl _bnx2x_bits_dis
Lloh26:
adrp x8, _NIG_REG_EGRESS_DRAIN0_MODE@GOTPAGE
Lloh27:
ldr x8, [x8, _NIG_REG_EGRESS_DRAIN0_MODE@GOTPAGEOFF]
Lloh28:
ldr x8, [x8]
add x1, x8, x24
mov x0, x20
mov w2, #1
bl _REG_WR
mov x0, x20
bl _CHIP_IS_E3
cbnz w0, LBB0_2
; %bb.1:
Lloh29:
adrp x8, _NIG_REG_BMAC0_OUT_EN@GOTPAGE
Lloh30:
ldr x8, [x8, _NIG_REG_BMAC0_OUT_EN@GOTPAGEOFF]
Lloh31:
ldr x8, [x8]
add x1, x8, x24
mov x0, x20
mov w2, #0
bl _REG_WR
Lloh32:
adrp x8, _NIG_REG_EGRESS_EMAC0_OUT_EN@GOTPAGE
Lloh33:
ldr x8, [x8, _NIG_REG_EGRESS_EMAC0_OUT_EN@GOTPAGEOFF]
Lloh34:
ldr x8, [x8]
add x1, x8, x24
mov x0, x20
mov w2, #0
bl _REG_WR
LBB0_2:
mov x0, x20
bl _CHIP_IS_E3
cbz w0, LBB0_4
; %bb.3:
mov x0, x21
mov w1, #0
bl _bnx2x_set_xmac_rxtx
mov x0, x21
mov w1, #0
bl _bnx2x_set_umac_rxtx
b LBB0_5
LBB0_4:
ldr w1, [x21, #16]
mov x0, x20
mov x2, x22
mov w3, #0
bl _bnx2x_set_bmac_rx
LBB0_5:
mov x0, x20
bl _CHIP_IS_E3
cbnz w0, LBB0_7
; %bb.6:
Lloh35:
adrp x8, _NIG_REG_NIG_EMAC0_EN@GOTPAGE
Lloh36:
ldr x8, [x8, _NIG_REG_NIG_EMAC0_EN@GOTPAGEOFF]
Lloh37:
ldr x8, [x8]
add x1, x8, x24
mov x0, x20
mov w2, #0
bl _REG_WR
LBB0_7:
mov w0, #10000
mov w1, #20000
bl _usleep_range
mov x0, x20
mov x1, x21
bl _bnx2x_set_mdio_emac_per_phy
Lloh38:
adrp x8, _LED_MODE_OFF@GOTPAGE
Lloh39:
ldr x8, [x8, _LED_MODE_OFF@GOTPAGEOFF]
Lloh40:
ldr w2, [x8]
mov x0, x21
mov x1, x19
mov w3, #0
bl _bnx2x_set_led
cbz w23, LBB0_15
; %bb.8:
Lloh41:
adrp x8, _EXT_PHY1@GOTPAGE
Lloh42:
ldr x8, [x8, _EXT_PHY1@GOTPAGEOFF]
Lloh43:
ldrsw x23, [x8]
ldr w8, [x21, #4]
cmp w23, w8
b.ge LBB0_15
; %bb.9:
mov w25, #0
ldr x9, [x21, #8]
lsl x26, x23, #4
Lloh44:
adrp x27, _FLAGS_REARM_LATCH_SIGNAL@GOTPAGE
Lloh45:
ldr x27, [x27, _FLAGS_REARM_LATCH_SIGNAL@GOTPAGEOFF]
b LBB0_11
LBB0_10: ; in Loop: Header=BB0_11 Depth=1
ldr w10, [x9, x26]
ldr w11, [x27]
tst w11, w10
csinc w25, w25, wzr, eq
add x23, x23, #1
add x26, x26, #16
cmp x23, w8, sxtw
b.ge LBB0_13
LBB0_11: ; =>This Inner Loop Header: Depth=1
add x1, x9, x26
ldr x10, [x1, #8]
cbz x10, LBB0_10
; %bb.12: ; in Loop: Header=BB0_11 Depth=1
mov x0, x21
bl _bnx2x_set_aer_mmd
ldr x8, [x21, #8]
add x0, x8, x26
ldr x8, [x0, #8]
mov x1, x21
blr x8
ldr x9, [x21, #8]
ldr w8, [x21, #4]
b LBB0_10
LBB0_13:
cbz w25, LBB0_15
; %bb.14:
mov x0, x20
mov x1, x22
mov w2, #0
bl _bnx2x_rearm_latch_signal
Lloh46:
adrp x8, _NIG_REG_LATCH_BC_0@GOTPAGE
Lloh47:
ldr x8, [x8, _NIG_REG_LATCH_BC_0@GOTPAGEOFF]
Lloh48:
ldr x8, [x8]
add x1, x8, x24
Lloh49:
adrp x8, _NIG_LATCH_BC_ENABLE_MI_INT@GOTPAGE
Lloh50:
ldr x8, [x8, _NIG_LATCH_BC_ENABLE_MI_INT@GOTPAGEOFF]
Lloh51:
ldr w8, [x8]
mov w9, #1
lsl w2, w9, w8
mov x0, x20
bl _bnx2x_bits_dis
LBB0_15:
ldr x8, [x21, #8]
Lloh52:
adrp x9, _INT_PHY@GOTPAGE
Lloh53:
ldr x9, [x9, _INT_PHY@GOTPAGEOFF]
Lloh54:
ldr x9, [x9]
add x0, x8, x9, lsl #4
ldr x8, [x0, #8]
cbz x8, LBB0_17
; %bb.16:
mov x1, x21
blr x8
LBB0_17:
mov x0, x20
bl _CHIP_IS_E3
cbz w0, LBB0_20
; %bb.18:
ldr w23, [x21]
Lloh55:
adrp x8, _GRCBASE_XMAC1@GOTPAGE
Lloh56:
ldr x8, [x8, _GRCBASE_XMAC1@GOTPAGEOFF]
Lloh57:
ldr x22, [x8]
Lloh58:
adrp x8, _GRCBASE_XMAC0@GOTPAGE
Lloh59:
ldr x8, [x8, _GRCBASE_XMAC0@GOTPAGEOFF]
Lloh60:
ldr x24, [x8]
mov x0, x21
mov w1, #0
mov w2, #0
bl _bnx2x_set_xumac_nig
Lloh61:
adrp x8, _MISC_REG_RESET_REG_2@GOTPAGE
Lloh62:
ldr x8, [x8, _MISC_REG_RESET_REG_2@GOTPAGEOFF]
Lloh63:
ldr w1, [x8]
mov x0, x20
bl _REG_RD
Lloh64:
adrp x8, _MISC_REGISTERS_RESET_REG_2_XMAC@GOTPAGE
Lloh65:
ldr x8, [x8, _MISC_REGISTERS_RESET_REG_2_XMAC@GOTPAGEOFF]
Lloh66:
ldr w8, [x8]
tst w8, w0
b.eq LBB0_22
; %bb.19:
cmp w23, #0
Lloh67:
adrp x8, _XMAC_REG_CTRL@GOTPAGE
Lloh68:
ldr x8, [x8, _XMAC_REG_CTRL@GOTPAGEOFF]
csel x9, x24, x22, eq
Lloh69:
ldr x8, [x8]
add x1, x8, x9
Lloh70:
adrp x8, _XMAC_CTRL_REG_SOFT_RESET@GOTPAGE
Lloh71:
ldr x8, [x8, _XMAC_CTRL_REG_SOFT_RESET@GOTPAGEOFF]
Lloh72:
ldr w2, [x8]
mov x0, x20
b LBB0_21
LBB0_20:
Lloh73:
adrp x8, _GRCBASE_MISC@GOTPAGE
Lloh74:
ldr x8, [x8, _GRCBASE_MISC@GOTPAGEOFF]
Lloh75:
ldr x8, [x8]
Lloh76:
adrp x9, _MISC_REGISTERS_RESET_REG_2_CLEAR@GOTPAGE
Lloh77:
ldr x9, [x9, _MISC_REGISTERS_RESET_REG_2_CLEAR@GOTPAGEOFF]
Lloh78:
ldr x9, [x9]
add x1, x9, x8
Lloh79:
adrp x8, _MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPAGE
Lloh80:
ldr x8, [x8, _MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPAGEOFF]
Lloh81:
ldr w8, [x8]
lsl w2, w8, w22
mov x0, x20
bl _REG_WR
Lloh82:
adrp x8, _NIG_REG_BMAC0_IN_EN@GOTPAGE
Lloh83:
ldr x8, [x8, _NIG_REG_BMAC0_IN_EN@GOTPAGEOFF]
Lloh84:
ldr x8, [x8]
add x1, x8, x24
mov x0, x20
mov w2, #0
bl _REG_WR
Lloh85:
adrp x8, _NIG_REG_EMAC0_IN_EN@GOTPAGE
Lloh86:
ldr x8, [x8, _NIG_REG_EMAC0_IN_EN@GOTPAGEOFF]
Lloh87:
ldr x8, [x8]
add x1, x8, x24
mov x0, x20
mov w2, #0
LBB0_21:
bl _REG_WR
LBB0_22:
stp xzr, xzr, [x19, #8]
mov w0, #0
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
.loh AdrpLdrGotLdr Lloh26, Lloh27, Lloh28
.loh AdrpLdrGotLdr Lloh23, Lloh24, Lloh25
.loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.loh AdrpLdrGotLdr Lloh14, Lloh15, Lloh16
.loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh10
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh9
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh32, Lloh33, Lloh34
.loh AdrpLdrGotLdr Lloh29, Lloh30, Lloh31
.loh AdrpLdrGotLdr Lloh35, Lloh36, Lloh37
.loh AdrpLdrGotLdr Lloh38, Lloh39, Lloh40
.loh AdrpLdrGotLdr Lloh41, Lloh42, Lloh43
.loh AdrpLdrGot Lloh44, Lloh45
.loh AdrpLdrGotLdr Lloh49, Lloh50, Lloh51
.loh AdrpLdrGotLdr Lloh46, Lloh47, Lloh48
.loh AdrpLdrGotLdr Lloh52, Lloh53, Lloh54
.loh AdrpLdrGotLdr Lloh64, Lloh65, Lloh66
.loh AdrpLdrGotLdr Lloh61, Lloh62, Lloh63
.loh AdrpLdrGotLdr Lloh58, Lloh59, Lloh60
.loh AdrpLdrGotLdr Lloh55, Lloh56, Lloh57
.loh AdrpLdrGotLdr Lloh70, Lloh71, Lloh72
.loh AdrpLdrGotLdr Lloh67, Lloh68, Lloh69
.loh AdrpLdrGotLdr Lloh85, Lloh86, Lloh87
.loh AdrpLdrGotLdr Lloh82, Lloh83, Lloh84
.loh AdrpLdrGotLdr Lloh79, Lloh80, Lloh81
.loh AdrpLdrGotLdr Lloh76, Lloh77, Lloh78
.loh AdrpLdrGotLdr Lloh73, Lloh74, Lloh75
.cfi_endproc
; -- End function
.comm _NETIF_MSG_LINK,4,2 ; @NETIF_MSG_LINK
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Resetting the link of port %d\n"
.comm _SHMEM_EEE_LP_ADV_STATUS_MASK,4,2 ; @SHMEM_EEE_LP_ADV_STATUS_MASK
.comm _SHMEM_EEE_ACTIVE_BIT,4,2 ; @SHMEM_EEE_ACTIVE_BIT
.comm _NIG_REG_MASK_INTERRUPT_PORT0,8,3 ; @NIG_REG_MASK_INTERRUPT_PORT0
.comm _NIG_MASK_XGXS0_LINK_STATUS,4,2 ; @NIG_MASK_XGXS0_LINK_STATUS
.comm _NIG_MASK_XGXS0_LINK10G,4,2 ; @NIG_MASK_XGXS0_LINK10G
.comm _NIG_MASK_SERDES0_LINK_STATUS,4,2 ; @NIG_MASK_SERDES0_LINK_STATUS
.comm _NIG_MASK_MI_INT,4,2 ; @NIG_MASK_MI_INT
.comm _NIG_REG_EGRESS_DRAIN0_MODE,8,3 ; @NIG_REG_EGRESS_DRAIN0_MODE
.comm _NIG_REG_BMAC0_OUT_EN,8,3 ; @NIG_REG_BMAC0_OUT_EN
.comm _NIG_REG_EGRESS_EMAC0_OUT_EN,8,3 ; @NIG_REG_EGRESS_EMAC0_OUT_EN
.comm _NIG_REG_NIG_EMAC0_EN,8,3 ; @NIG_REG_NIG_EMAC0_EN
.comm _LED_MODE_OFF,4,2 ; @LED_MODE_OFF
.comm _EXT_PHY1,4,2 ; @EXT_PHY1
.comm _FLAGS_REARM_LATCH_SIGNAL,4,2 ; @FLAGS_REARM_LATCH_SIGNAL
.comm _NIG_REG_LATCH_BC_0,8,3 ; @NIG_REG_LATCH_BC_0
.comm _NIG_LATCH_BC_ENABLE_MI_INT,4,2 ; @NIG_LATCH_BC_ENABLE_MI_INT
.comm _INT_PHY,8,3 ; @INT_PHY
.comm _GRCBASE_MISC,8,3 ; @GRCBASE_MISC
.comm _MISC_REGISTERS_RESET_REG_2_CLEAR,8,3 ; @MISC_REGISTERS_RESET_REG_2_CLEAR
.comm _MISC_REGISTERS_RESET_REG_2_RST_BMAC0,4,2 ; @MISC_REGISTERS_RESET_REG_2_RST_BMAC0
.comm _NIG_REG_BMAC0_IN_EN,8,3 ; @NIG_REG_BMAC0_IN_EN
.comm _NIG_REG_EMAC0_IN_EN,8,3 ; @NIG_REG_EMAC0_IN_EN
.comm _GRCBASE_XMAC1,8,3 ; @GRCBASE_XMAC1
.comm _GRCBASE_XMAC0,8,3 ; @GRCBASE_XMAC0
.comm _MISC_REG_RESET_REG_2,4,2 ; @MISC_REG_RESET_REG_2
.comm _MISC_REGISTERS_RESET_REG_2_XMAC,4,2 ; @MISC_REGISTERS_RESET_REG_2_XMAC
.comm _XMAC_REG_CTRL,8,3 ; @XMAC_REG_CTRL
.comm _XMAC_CTRL_REG_SOFT_RESET,4,2 ; @XMAC_CTRL_REG_SOFT_RESET
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/drivers/net/bnx2x/extr_bnx2x_link.c_bnx2x_link_reset.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 %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movl $99, %ebx
leaq L_.str(%rip), %r14
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
xorl %eax, %eax
callq _printf
decl %ebx
jne LBB0_1
## %bb.2:
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
.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 w20, #99
Lloh0:
adrp x19, l_.str@PAGE
Lloh1:
add x19, x19, l_.str@PAGEOFF
LBB0_1: ; =>This Inner Loop Header: Depth=1
mov x0, x19
bl _printf
subs w20, w20, #1
b.ne LBB0_1
; %bb.2:
mov w0, #0
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
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
.subsections_via_symbols
| the_stack_data/162644198.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function grptb_start
_grptb_start: ## @grptb_start
.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 _grptb@GOTPCREL(%rip), %r15
xorl %ebx, %ebx
cmpq $0, (%r15)
jne LBB0_5
## %bb.1:
movq _grptb_fail@GOTPCREL(%rip), %r14
cmpq $0, (%r14)
je LBB0_2
LBB0_4:
movl $-1, %ebx
jmp LBB0_5
LBB0_2:
movq _GNM_SZ@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl $8, %esi
callq _calloc
movq %rax, (%r15)
testq %rax, %rax
je LBB0_3
LBB0_5:
movl %ebx, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
LBB0_3:
incq (%r14)
jmp LBB0_4
.cfi_endproc
## -- End function
.comm _grptb,8,3 ## @grptb
.comm _grptb_fail,8,3 ## @grptb_fail
.comm _GNM_SZ,4,2 ## @GNM_SZ
.no_dead_strip _grptb_start
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function grptb_start
_grptb_start: ; @grptb_start
.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
Lloh0:
adrp x20, _grptb@GOTPAGE
Lloh1:
ldr x20, [x20, _grptb@GOTPAGEOFF]
ldr x8, [x20]
cbz x8, LBB0_2
LBB0_1:
mov w0, #0
b LBB0_4
LBB0_2:
Lloh2:
adrp x19, _grptb_fail@GOTPAGE
Lloh3:
ldr x19, [x19, _grptb_fail@GOTPAGEOFF]
ldr x8, [x19]
cbz x8, LBB0_5
LBB0_3:
mov w0, #-1
LBB0_4:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_5:
Lloh4:
adrp x8, _GNM_SZ@GOTPAGE
Lloh5:
ldr x8, [x8, _GNM_SZ@GOTPAGEOFF]
Lloh6:
ldr w0, [x8]
mov w1, #8
bl _calloc
str x0, [x20]
cbnz x0, LBB0_1
; %bb.6:
ldr x8, [x19]
add x8, x8, #1
str x8, [x19]
b LBB0_3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.cfi_endproc
; -- End function
.comm _grptb,8,3 ; @grptb
.comm _grptb_fail,8,3 ; @grptb_fail
.comm _GNM_SZ,4,2 ; @GNM_SZ
.no_dead_strip _grptb_start
.subsections_via_symbols
| AnghaBench/freebsd/contrib/libc-pwcache/extr_pwcache.c_grptb_start.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function gx1_read_conf_reg
_gx1_read_conf_reg: ## @gx1_read_conf_reg
.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
movl %edi, %r15d
movq _gx1_conf_reg_lock@GOTPCREL(%rip), %r14
movq %r14, %rdi
callq _spin_lock_irqsave
movq _CONFIG_CCR3@GOTPCREL(%rip), %r12
movl (%r12), %edi
movl $34, %esi
callq _outb
movl $35, %edi
callq _inb
movl %eax, %ebx
movl (%r12), %edi
movl $34, %esi
callq _outb
movq _CONFIG_CCR3_MAPEN@GOTPCREL(%rip), %rax
movl (%rax), %edi
orl %ebx, %edi
movl $35, %esi
callq _outb
movl %r15d, %edi
movl $34, %esi
callq _outb
movl $35, %edi
callq _inb
movl %eax, %r15d
movl (%r12), %edi
movl $34, %esi
callq _outb
movl %ebx, %edi
movl $35, %esi
callq _outb
movq %r14, %rdi
callq _spin_unlock_irqrestore
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _gx1_conf_reg_lock,4,2 ## @gx1_conf_reg_lock
.comm _CONFIG_CCR3,4,2 ## @CONFIG_CCR3
.comm _CONFIG_CCR3_MAPEN,4,2 ## @CONFIG_CCR3_MAPEN
.no_dead_strip _gx1_read_conf_reg
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function gx1_read_conf_reg
_gx1_read_conf_reg: ; @gx1_read_conf_reg
.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, x0
Lloh0:
adrp x20, _gx1_conf_reg_lock@GOTPAGE
Lloh1:
ldr x20, [x20, _gx1_conf_reg_lock@GOTPAGEOFF]
mov x0, x20
bl _spin_lock_irqsave
Lloh2:
adrp x22, _CONFIG_CCR3@GOTPAGE
Lloh3:
ldr x22, [x22, _CONFIG_CCR3@GOTPAGEOFF]
ldr w0, [x22]
mov w1, #34
bl _outb
mov w0, #35
bl _inb
mov x21, x0
ldr w0, [x22]
mov w1, #34
bl _outb
Lloh4:
adrp x8, _CONFIG_CCR3_MAPEN@GOTPAGE
Lloh5:
ldr x8, [x8, _CONFIG_CCR3_MAPEN@GOTPAGEOFF]
Lloh6:
ldr w8, [x8]
orr w0, w8, w21
mov w1, #35
bl _outb
mov x0, x19
mov w1, #34
bl _outb
mov w0, #35
bl _inb
mov x19, x0
ldr w0, [x22]
mov w1, #34
bl _outb
mov x0, x21
mov w1, #35
bl _outb
mov x0, x20
bl _spin_unlock_irqrestore
mov x0, 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
ret
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _gx1_conf_reg_lock,4,2 ; @gx1_conf_reg_lock
.comm _CONFIG_CCR3,4,2 ; @CONFIG_CCR3
.comm _CONFIG_CCR3_MAPEN,4,2 ; @CONFIG_CCR3_MAPEN
.no_dead_strip _gx1_read_conf_reg
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/drivers/video/geode/extr_display_gx1.c_gx1_read_conf_reg.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _physical_Close ## -- Begin function physical_Close
.p2align 4, 0x90
_physical_Close: ## @physical_Close
.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 %rdi, %r12
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movq _PATH_MAX@GOTPCREL(%rip), %rax
movl (%rax), %ebx
movq %rbx, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %rax
cmpl $0, (%r12)
js LBB0_17
## %bb.1:
movq %rbx, -72(%rbp) ## 8-byte Spill
movq %rax, -80(%rbp) ## 8-byte Spill
movq _LogDEBUG@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl 40(%r12), %edx
leaq L_.str(%rip), %rsi
xorl %eax, %eax
callq _log_Printf
movq 32(%r12), %rax
testq %rax, %rax
je LBB0_4
## %bb.2:
movq 8(%rax), %rax
testq %rax, %rax
je LBB0_4
## %bb.3:
movq %r12, %rdi
callq *%rax
LBB0_4:
movq %r12, %rdi
callq _physical_StopDeviceTimer
cmpq $0, 56(%r12)
je LBB0_6
## %bb.5:
leaq -64(%rbp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
movl $12, %edx
callq _memset
movq _DEAD_PROCESS@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -56(%rbp)
leaq -60(%rbp), %rdi
xorl %esi, %esi
callq _gettimeofday
movslq -64(%rbp), %r13
xorl %eax, %eax
callq _getpid
leaq L_.str.1(%rip), %rdx
movq %r13, %rdi
movl $4, %esi
movl %eax, %ecx
xorl %eax, %eax
callq _snprintf
movq %rbx, %rdi
callq _ID0logout
movq $0, 56(%r12)
LBB0_6:
movl (%r12), %edi
callq _tcgetpgrp
movq %rax, %rbx
xorl %eax, %eax
callq _getpgrp
movq %rax, %r13
movl (%r12), %edi
callq _close
movl $-1, (%r12)
movq 48(%r12), %rdi
callq _log_SetTtyCommandMode
leaq 44(%r12), %r14
movq %r14, %rdi
callq _throughput_stop
movq _LogPHASE@GOTPCREL(%rip), %r15
movl (%r15), %esi
movl 40(%r12), %edx
movq %r14, %rdi
callq _throughput_log
movq 8(%r12), %rcx
cmpq $-1, %rcx
je LBB0_8
## %bb.7:
movl (%r15), %edi
movl 40(%r12), %edx
leaq L_.str.2(%rip), %rsi
xorl %eax, %eax
callq _log_Printf
movq 8(%r12), %rdi
movq _SIGHUP@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _ID0kill
movq $-1, 8(%r12)
LBB0_8:
cmpq %r13, %rbx
jne LBB0_10
## %bb.9:
movq 48(%r12), %rax
movl (%rax), %edi
xorl %esi, %esi
callq _bundle_setsid
LBB0_10:
movq 16(%r12), %rax
cmpb $47, (%rax)
movq -80(%rbp), %rbx ## 8-byte Reload
jne LBB0_13
## %bb.11:
movq __PATH_VARRUN@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movq 24(%r12), %r8
leaq L_.str.3(%rip), %rdx
movq %rbx, %rdi
movq -72(%rbp), %rsi ## 8-byte Reload
## kill: def $esi killed $esi killed $rsi
xorl %eax, %eax
callq _snprintf
movq %rbx, %rdi
callq _ID0unlink
cmpl $-1, %eax
jne LBB0_13
## %bb.12:
movq _LogALERT@GOTPCREL(%rip), %rax
movl (%rax), %r14d
movl 40(%r12), %r15d
movq _errno@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _strerror
leaq L_.str.4(%rip), %rsi
movl %r14d, %edi
movl %r15d, %edx
movq %rbx, %rcx
movl %eax, %r8d
xorl %eax, %eax
callq _log_Printf
LBB0_13:
movq %r12, %rdi
callq _physical_Unlock
movq 32(%r12), %rax
testq %rax, %rax
je LBB0_16
## %bb.14:
movq (%rax), %rax
testq %rax, %rax
je LBB0_16
## %bb.15:
movq %r12, %rdi
callq *%rax
LBB0_16:
movq $0, 32(%r12)
movq 16(%r12), %rax
movq %rax, 24(%r12)
movb $0, (%rax)
LBB0_17:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB0_19
## %bb.18:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_19:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _PATH_MAX,4,2 ## @PATH_MAX
.comm _LogDEBUG,4,2 ## @LogDEBUG
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s: Close\n"
.comm _DEAD_PROCESS,4,2 ## @DEAD_PROCESS
L_.str.1: ## @.str.1
.asciz "%xppp"
.comm _LogPHASE,4,2 ## @LogPHASE
L_.str.2: ## @.str.2
.asciz "%s: HUPing %ld\n"
.comm _SIGHUP,4,2 ## @SIGHUP
L_.str.3: ## @.str.3
.asciz "%s%s.if"
.comm __PATH_VARRUN,8,3 ## @_PATH_VARRUN
.comm _LogALERT,4,2 ## @LogALERT
L_.str.4: ## @.str.4
.asciz "%s: Can't remove %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 _physical_Close ; -- Begin function physical_Close
.p2align 2
_physical_Close: ; @physical_Close
.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, #32
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, #-72]
Lloh3:
adrp x8, _PATH_MAX@GOTPAGE
Lloh4:
ldr x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
ldr w21, [x8]
mov x9, x21
Lloh6:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh7:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x8, sp
add x9, x21, #15
and x9, x9, #0x1fffffff0
sub x20, x8, x9
mov sp, x20
ldr w8, [x0]
tbnz w8, #31, LBB0_17
; %bb.1:
Lloh8:
adrp x8, _LogDEBUG@GOTPAGE
Lloh9:
ldr x8, [x8, _LogDEBUG@GOTPAGEOFF]
Lloh10:
ldr w0, [x8]
ldr w2, [x19, #40]
Lloh11:
adrp x1, l_.str@PAGE
Lloh12:
add x1, x1, l_.str@PAGEOFF
bl _log_Printf
ldr x8, [x19, #32]
cbz x8, LBB0_4
; %bb.2:
ldr x8, [x8, #8]
cbz x8, LBB0_4
; %bb.3:
mov x0, x19
blr x8
LBB0_4:
mov x0, x19
bl _physical_StopDeviceTimer
ldr x8, [x19, #56]
cbz x8, LBB0_6
; %bb.5:
sub x22, x29, #88
sub x0, x29, #88
mov w1, #0
mov w2, #12
bl _memset
Lloh13:
adrp x8, _DEAD_PROCESS@GOTPAGE
Lloh14:
ldr x8, [x8, _DEAD_PROCESS@GOTPAGEOFF]
Lloh15:
ldr w8, [x8]
stur w8, [x29, #-80]
orr x0, x22, #0x4
mov x1, #0
bl _gettimeofday
ldursw x22, [x29, #-88]
bl _getpid
str x0, [sp, #-16]!
Lloh16:
adrp x2, l_.str.1@PAGE
Lloh17:
add x2, x2, l_.str.1@PAGEOFF
mov x0, x22
mov w1, #4
bl _snprintf
add sp, sp, #16
sub x0, x29, #88
bl _ID0logout
str xzr, [x19, #56]
LBB0_6:
ldr w0, [x19]
bl _tcgetpgrp
mov x22, x0
bl _getpgrp
mov x23, x0
ldr w0, [x19]
bl _close
mov w8, #-1
str w8, [x19]
ldr x0, [x19, #48]
bl _log_SetTtyCommandMode
add x24, x19, #44
mov x0, x24
bl _throughput_stop
Lloh18:
adrp x25, _LogPHASE@GOTPAGE
Lloh19:
ldr x25, [x25, _LogPHASE@GOTPAGEOFF]
ldr w1, [x25]
ldr w2, [x19, #40]
mov x0, x24
bl _throughput_log
ldr x8, [x19, #8]
cmn x8, #1
b.eq LBB0_8
; %bb.7:
ldr w0, [x25]
ldr w2, [x19, #40]
str x8, [sp, #-16]!
Lloh20:
adrp x1, l_.str.2@PAGE
Lloh21:
add x1, x1, l_.str.2@PAGEOFF
bl _log_Printf
add sp, sp, #16
ldr x0, [x19, #8]
Lloh22:
adrp x8, _SIGHUP@GOTPAGE
Lloh23:
ldr x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh24:
ldr w1, [x8]
bl _ID0kill
mov x8, #-1
str x8, [x19, #8]
LBB0_8:
cmp x22, x23
b.ne LBB0_10
; %bb.9:
ldr x8, [x19, #48]
ldr w0, [x8]
mov w1, #0
bl _bundle_setsid
LBB0_10:
ldr x8, [x19, #16]
ldrb w8, [x8]
cmp w8, #47
b.ne LBB0_13
; %bb.11:
Lloh25:
adrp x8, __PATH_VARRUN@GOTPAGE
Lloh26:
ldr x8, [x8, __PATH_VARRUN@GOTPAGEOFF]
Lloh27:
ldr x8, [x8]
ldr x9, [x19, #24]
stp x8, x9, [sp, #-16]!
Lloh28:
adrp x2, l_.str.3@PAGE
Lloh29:
add x2, x2, l_.str.3@PAGEOFF
mov x0, x20
mov x1, x21
bl _snprintf
add sp, sp, #16
mov x0, x20
bl _ID0unlink
cmn w0, #1
b.ne LBB0_13
; %bb.12:
Lloh30:
adrp x8, _LogALERT@GOTPAGE
Lloh31:
ldr x8, [x8, _LogALERT@GOTPAGEOFF]
Lloh32:
ldr w21, [x8]
ldr w22, [x19, #40]
Lloh33:
adrp x8, _errno@GOTPAGE
Lloh34:
ldr x8, [x8, _errno@GOTPAGEOFF]
Lloh35:
ldr w0, [x8]
bl _strerror
; kill: def $w0 killed $w0 def $x0
stp x20, x0, [sp, #-16]!
Lloh36:
adrp x1, l_.str.4@PAGE
Lloh37:
add x1, x1, l_.str.4@PAGEOFF
mov x0, x21
mov x2, x22
bl _log_Printf
add sp, sp, #16
LBB0_13:
mov x0, x19
bl _physical_Unlock
ldr x8, [x19, #32]
cbz x8, LBB0_16
; %bb.14:
ldr x8, [x8]
cbz x8, LBB0_16
; %bb.15:
mov x0, x19
blr x8
LBB0_16:
ldr x8, [x19, #16]
stp x8, xzr, [x19, #24]
strb wzr, [x8]
LBB0_17:
ldur x8, [x29, #-72]
Lloh38:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh39:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_19
; %bb.18:
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_19:
bl ___stack_chk_fail
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpLdrGot Lloh18, Lloh19
.loh AdrpLdrGotLdr Lloh22, Lloh23, Lloh24
.loh AdrpAdd Lloh20, Lloh21
.loh AdrpAdd Lloh28, Lloh29
.loh AdrpLdrGotLdr Lloh25, Lloh26, Lloh27
.loh AdrpAdd Lloh36, Lloh37
.loh AdrpLdrGotLdr Lloh33, Lloh34, Lloh35
.loh AdrpLdrGotLdr Lloh30, Lloh31, Lloh32
.loh AdrpLdrGotLdr Lloh38, Lloh39, Lloh40
.cfi_endproc
; -- End function
.comm _PATH_MAX,4,2 ; @PATH_MAX
.comm _LogDEBUG,4,2 ; @LogDEBUG
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s: Close\n"
.comm _DEAD_PROCESS,4,2 ; @DEAD_PROCESS
l_.str.1: ; @.str.1
.asciz "%xppp"
.comm _LogPHASE,4,2 ; @LogPHASE
l_.str.2: ; @.str.2
.asciz "%s: HUPing %ld\n"
.comm _SIGHUP,4,2 ; @SIGHUP
l_.str.3: ; @.str.3
.asciz "%s%s.if"
.comm __PATH_VARRUN,8,3 ; @_PATH_VARRUN
.comm _LogALERT,4,2 ; @LogALERT
l_.str.4: ; @.str.4
.asciz "%s: Can't remove %s: %s\n"
.comm _errno,4,2 ; @errno
.subsections_via_symbols
| AnghaBench/freebsd/usr.sbin/ppp/extr_physical.c_physical_Close.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/140765488.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/103266651.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _bochs_hw_setmode ## -- Begin function bochs_hw_setmode
.p2align 4, 0x90
_bochs_hw_setmode: ## @bochs_hw_setmode
.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 (%rsi), %ecx
movl %ecx, (%rdi)
movl 4(%rsi), %r8d
movl %r8d, 4(%rdi)
movl $32, 8(%rdi)
leal (,%rcx,4), %esi
movl %esi, 12(%rdi)
movl 20(%rdi), %eax
cltd
idivl %esi
movl %eax, 16(%rdi)
leaq L_.str(%rip), %rdi
movl %ecx, %esi
movl %r8d, %edx
movl $32, %ecx
movl %eax, %r8d
callq _DRM_DEBUG_DRIVER
movq %rbx, %rdi
movl $960, %esi ## imm = 0x3C0
movl $32, %edx
callq _bochs_vga_writeb
movq _VBE_DISPI_INDEX_ENABLE@GOTPCREL(%rip), %r14
movl (%r14), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq _bochs_dispi_write
movq _VBE_DISPI_INDEX_BPP@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl 8(%rbx), %edx
movq %rbx, %rdi
callq _bochs_dispi_write
movq _VBE_DISPI_INDEX_XRES@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl (%rbx), %edx
movq %rbx, %rdi
callq _bochs_dispi_write
movq _VBE_DISPI_INDEX_YRES@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl 4(%rbx), %edx
movq %rbx, %rdi
callq _bochs_dispi_write
movq _VBE_DISPI_INDEX_BANK@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq _bochs_dispi_write
movq _VBE_DISPI_INDEX_VIRT_WIDTH@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl (%rbx), %edx
movq %rbx, %rdi
callq _bochs_dispi_write
movq _VBE_DISPI_INDEX_VIRT_HEIGHT@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl 16(%rbx), %edx
movq %rbx, %rdi
callq _bochs_dispi_write
movq _VBE_DISPI_INDEX_X_OFFSET@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq _bochs_dispi_write
movq _VBE_DISPI_INDEX_Y_OFFSET@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq _bochs_dispi_write
movl (%r14), %esi
movq _VBE_DISPI_ENABLED@GOTPCREL(%rip), %rax
movq _VBE_DISPI_LFB_ENABLED@GOTPCREL(%rip), %rcx
movl (%rcx), %edx
orl (%rax), %edx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp _bochs_dispi_write ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%dx%d @ %d bpp, vy %d\n"
.comm _VBE_DISPI_INDEX_ENABLE,4,2 ## @VBE_DISPI_INDEX_ENABLE
.comm _VBE_DISPI_INDEX_BPP,4,2 ## @VBE_DISPI_INDEX_BPP
.comm _VBE_DISPI_INDEX_XRES,4,2 ## @VBE_DISPI_INDEX_XRES
.comm _VBE_DISPI_INDEX_YRES,4,2 ## @VBE_DISPI_INDEX_YRES
.comm _VBE_DISPI_INDEX_BANK,4,2 ## @VBE_DISPI_INDEX_BANK
.comm _VBE_DISPI_INDEX_VIRT_WIDTH,4,2 ## @VBE_DISPI_INDEX_VIRT_WIDTH
.comm _VBE_DISPI_INDEX_VIRT_HEIGHT,4,2 ## @VBE_DISPI_INDEX_VIRT_HEIGHT
.comm _VBE_DISPI_INDEX_X_OFFSET,4,2 ## @VBE_DISPI_INDEX_X_OFFSET
.comm _VBE_DISPI_INDEX_Y_OFFSET,4,2 ## @VBE_DISPI_INDEX_Y_OFFSET
.comm _VBE_DISPI_ENABLED,4,2 ## @VBE_DISPI_ENABLED
.comm _VBE_DISPI_LFB_ENABLED,4,2 ## @VBE_DISPI_LFB_ENABLED
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _bochs_hw_setmode ; -- Begin function bochs_hw_setmode
.p2align 2
_bochs_hw_setmode: ; @bochs_hw_setmode
.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
ldp w8, w2, [x1]
stp w8, w2, [x0]
mov w9, #32
lsl w10, w8, #2
stp w9, w10, [x0, #8]
ldr w9, [x0, #20]
sdiv w4, w9, w10
str w4, [x0, #16]
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
mov x1, x8
mov w3, #32
bl _DRM_DEBUG_DRIVER
mov x0, x19
mov w1, #960
mov w2, #32
bl _bochs_vga_writeb
Lloh2:
adrp x20, _VBE_DISPI_INDEX_ENABLE@GOTPAGE
Lloh3:
ldr x20, [x20, _VBE_DISPI_INDEX_ENABLE@GOTPAGEOFF]
ldr w1, [x20]
mov x0, x19
mov w2, #0
bl _bochs_dispi_write
Lloh4:
adrp x8, _VBE_DISPI_INDEX_BPP@GOTPAGE
Lloh5:
ldr x8, [x8, _VBE_DISPI_INDEX_BPP@GOTPAGEOFF]
Lloh6:
ldr w1, [x8]
ldr w2, [x19, #8]
mov x0, x19
bl _bochs_dispi_write
Lloh7:
adrp x8, _VBE_DISPI_INDEX_XRES@GOTPAGE
Lloh8:
ldr x8, [x8, _VBE_DISPI_INDEX_XRES@GOTPAGEOFF]
Lloh9:
ldr w1, [x8]
ldr w2, [x19]
mov x0, x19
bl _bochs_dispi_write
Lloh10:
adrp x8, _VBE_DISPI_INDEX_YRES@GOTPAGE
Lloh11:
ldr x8, [x8, _VBE_DISPI_INDEX_YRES@GOTPAGEOFF]
Lloh12:
ldr w1, [x8]
ldr w2, [x19, #4]
mov x0, x19
bl _bochs_dispi_write
Lloh13:
adrp x8, _VBE_DISPI_INDEX_BANK@GOTPAGE
Lloh14:
ldr x8, [x8, _VBE_DISPI_INDEX_BANK@GOTPAGEOFF]
Lloh15:
ldr w1, [x8]
mov x0, x19
mov w2, #0
bl _bochs_dispi_write
Lloh16:
adrp x8, _VBE_DISPI_INDEX_VIRT_WIDTH@GOTPAGE
Lloh17:
ldr x8, [x8, _VBE_DISPI_INDEX_VIRT_WIDTH@GOTPAGEOFF]
Lloh18:
ldr w1, [x8]
ldr w2, [x19]
mov x0, x19
bl _bochs_dispi_write
Lloh19:
adrp x8, _VBE_DISPI_INDEX_VIRT_HEIGHT@GOTPAGE
Lloh20:
ldr x8, [x8, _VBE_DISPI_INDEX_VIRT_HEIGHT@GOTPAGEOFF]
Lloh21:
ldr w1, [x8]
ldr w2, [x19, #16]
mov x0, x19
bl _bochs_dispi_write
Lloh22:
adrp x8, _VBE_DISPI_INDEX_X_OFFSET@GOTPAGE
Lloh23:
ldr x8, [x8, _VBE_DISPI_INDEX_X_OFFSET@GOTPAGEOFF]
Lloh24:
ldr w1, [x8]
mov x0, x19
mov w2, #0
bl _bochs_dispi_write
Lloh25:
adrp x8, _VBE_DISPI_INDEX_Y_OFFSET@GOTPAGE
Lloh26:
ldr x8, [x8, _VBE_DISPI_INDEX_Y_OFFSET@GOTPAGEOFF]
Lloh27:
ldr w1, [x8]
mov x0, x19
mov w2, #0
bl _bochs_dispi_write
ldr w1, [x20]
Lloh28:
adrp x8, _VBE_DISPI_ENABLED@GOTPAGE
Lloh29:
ldr x8, [x8, _VBE_DISPI_ENABLED@GOTPAGEOFF]
Lloh30:
adrp x9, _VBE_DISPI_LFB_ENABLED@GOTPAGE
Lloh31:
ldr x9, [x9, _VBE_DISPI_LFB_ENABLED@GOTPAGEOFF]
Lloh32:
ldr w8, [x8]
Lloh33:
ldr w9, [x9]
orr w2, w9, w8
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _bochs_dispi_write
.loh AdrpLdrGotLdr Lloh30, Lloh31, Lloh33
.loh AdrpLdrGotLdr Lloh28, Lloh29, Lloh32
.loh AdrpLdrGotLdr Lloh25, Lloh26, Lloh27
.loh AdrpLdrGotLdr Lloh22, Lloh23, Lloh24
.loh AdrpLdrGotLdr Lloh19, Lloh20, Lloh21
.loh AdrpLdrGotLdr Lloh16, Lloh17, Lloh18
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%dx%d @ %d bpp, vy %d\n"
.comm _VBE_DISPI_INDEX_ENABLE,4,2 ; @VBE_DISPI_INDEX_ENABLE
.comm _VBE_DISPI_INDEX_BPP,4,2 ; @VBE_DISPI_INDEX_BPP
.comm _VBE_DISPI_INDEX_XRES,4,2 ; @VBE_DISPI_INDEX_XRES
.comm _VBE_DISPI_INDEX_YRES,4,2 ; @VBE_DISPI_INDEX_YRES
.comm _VBE_DISPI_INDEX_BANK,4,2 ; @VBE_DISPI_INDEX_BANK
.comm _VBE_DISPI_INDEX_VIRT_WIDTH,4,2 ; @VBE_DISPI_INDEX_VIRT_WIDTH
.comm _VBE_DISPI_INDEX_VIRT_HEIGHT,4,2 ; @VBE_DISPI_INDEX_VIRT_HEIGHT
.comm _VBE_DISPI_INDEX_X_OFFSET,4,2 ; @VBE_DISPI_INDEX_X_OFFSET
.comm _VBE_DISPI_INDEX_Y_OFFSET,4,2 ; @VBE_DISPI_INDEX_Y_OFFSET
.comm _VBE_DISPI_ENABLED,4,2 ; @VBE_DISPI_ENABLED
.comm _VBE_DISPI_LFB_ENABLED,4,2 ; @VBE_DISPI_LFB_ENABLED
.subsections_via_symbols
| AnghaBench/linux/drivers/gpu/drm/bochs/extr_bochs_hw.c_bochs_hw_setmode.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function r600_vm_init
_r600_vm_init: ## @r600_vm_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 %rdi, %r14
movq (%rdi), %r12
movq _R600_MC_VM_SYSTEM_APERTURE_LOW_ADDR@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl (%r12), %esi
sarl $12, %esi
callq _RADEON_WRITE
movq _R600_MC_VM_SYSTEM_APERTURE_HIGH_ADDR@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl (%r12), %eax
movl 4(%r12), %ecx
leal (%rax,%rcx), %esi
decl %esi
sarl $12, %esi
callq _RADEON_WRITE
movq _R600_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR@GOTPCREL(%rip), %rax
movq (%rax), %rdi
xorl %esi, %esi
callq _RADEON_WRITE
movq _R600_MCD_L1_TLB@GOTPCREL(%rip), %rax
movq _R600_MCD_L1_FRAG_PROC@GOTPCREL(%rip), %rcx
movl (%rcx), %ebx
orl (%rax), %ebx
movq _R600_MCD_SYSTEM_ACCESS_MODE_IN_SYS@GOTPCREL(%rip), %rax
orl (%rax), %ebx
movq _R600_MCD_SYSTEM_APERTURE_UNMAPPED_ACCESS_PASS_THRU@GOTPCREL(%rip), %rax
orl (%rax), %ebx
movl $5, %edi
callq _R600_MCD_EFFECTIVE_L1_TLB_SIZE
movl %eax, %r15d
movl $5, %edi
callq _R600_MCD_EFFECTIVE_L1_QUEUE_SIZE
orl %eax, %r15d
orl %ebx, %r15d
movq _R600_MCD_WAIT_L2_QUERY@GOTPCREL(%rip), %rax
orl (%rax), %r15d
movq _R600_MCD_RD_A_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl %r15d, %esi
callq _RADEON_WRITE
movq _R600_MCD_RD_B_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl %r15d, %esi
callq _RADEON_WRITE
movq _R600_MCD_WR_A_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl %r15d, %esi
callq _RADEON_WRITE
movq _R600_MCD_WR_B_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl %r15d, %esi
callq _RADEON_WRITE
movq _R600_MCD_RD_GFX_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl %r15d, %esi
callq _RADEON_WRITE
movq _R600_MCD_WR_GFX_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl %r15d, %esi
callq _RADEON_WRITE
movq _R600_MCD_RD_SYS_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl %r15d, %esi
callq _RADEON_WRITE
movq _R600_MCD_WR_SYS_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl %r15d, %esi
callq _RADEON_WRITE
movq _R600_MCD_RD_HDP_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq _R600_MCD_L1_STRICT_ORDERING@GOTPCREL(%rip), %rax
movl (%rax), %esi
orl %r15d, %esi
callq _RADEON_WRITE
movq _R600_MCD_WR_HDP_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl %r15d, %esi
callq _RADEON_WRITE
movq _R600_MCD_RD_PDMA_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl %r15d, %esi
callq _RADEON_WRITE
movq _R600_MCD_WR_PDMA_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl %r15d, %esi
callq _RADEON_WRITE
movq _R600_MCD_RD_SEM_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq _R600_MCD_SEMAPHORE_MODE@GOTPCREL(%rip), %rax
movl (%rax), %esi
orl %r15d, %esi
callq _RADEON_WRITE
movq _R600_MCD_WR_SEM_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl %r15d, %esi
callq _RADEON_WRITE
movq _R600_VM_L2_CACHE_EN@GOTPCREL(%rip), %rax
movq _R600_VM_L2_FRAG_PROC@GOTPCREL(%rip), %rcx
movl (%rcx), %ebx
orl (%rax), %ebx
movq _R600_VM_ENABLE_PTE_CACHE_LRU_W@GOTPCREL(%rip), %rax
orl (%rax), %ebx
movl $7, %edi
callq _R600_VM_L2_CNTL_QUEUE_SIZE
orl %eax, %ebx
movq _R600_VM_L2_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl %ebx, %esi
callq _RADEON_WRITE
movq _R600_VM_L2_CNTL2@GOTPCREL(%rip), %rax
movq (%rax), %rdi
xorl %esi, %esi
callq _RADEON_WRITE
xorl %edi, %edi
callq _R600_VM_L2_CNTL3_BANK_SELECT_0
movl %eax, %ebx
movl $1, %edi
callq _R600_VM_L2_CNTL3_BANK_SELECT_1
orl %eax, %ebx
movl $2, %edi
callq _R600_VM_L2_CNTL3_CACHE_UPDATE_MODE
orl %eax, %ebx
movq _R600_VM_L2_CNTL3@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl %ebx, %esi
callq _RADEON_WRITE
movq _R600_VM_ENABLE_CONTEXT@GOTPCREL(%rip), %rbx
movq _R600_VM_PAGE_TABLE_DEPTH_FLAT@GOTPCREL(%rip), %rax
movl (%rax), %r15d
orl (%rbx), %r15d
movq _R600_VM_CONTEXT0_CNTL@GOTPCREL(%rip), %r13
movq (%r13), %rdi
movl %r15d, %esi
callq _RADEON_WRITE
movl (%rbx), %ebx
notl %ebx
andl %r15d, %ebx
movq (%r13), %rdi
addq $4, %rdi
movl %ebx, %esi
callq _RADEON_WRITE
movq (%r13), %rdi
addq $8, %rdi
movl %ebx, %esi
callq _RADEON_WRITE
movq (%r13), %rdi
addq $12, %rdi
movl %ebx, %esi
callq _RADEON_WRITE
movq (%r13), %rdi
addq $16, %rdi
movl %ebx, %esi
callq _RADEON_WRITE
movq (%r13), %rdi
addq $20, %rdi
movl %ebx, %esi
callq _RADEON_WRITE
movq (%r13), %rdi
addq $24, %rdi
movl %ebx, %esi
callq _RADEON_WRITE
movq (%r13), %rdi
addq $28, %rdi
movl %ebx, %esi
callq _RADEON_WRITE
movq _R600_VM_CONTEXT0_PAGE_TABLE_BASE_ADDR@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl 8(%r12), %esi
sarl $12, %esi
callq _RADEON_WRITE
movq _R600_VM_CONTEXT0_PAGE_TABLE_START_ADDR@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl (%r12), %esi
sarl $12, %esi
callq _RADEON_WRITE
movq _R600_VM_CONTEXT0_PAGE_TABLE_END_ADDR@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl (%r12), %eax
movl 4(%r12), %ecx
leal (%rax,%rcx), %esi
decl %esi
sarl $12, %esi
callq _RADEON_WRITE
movq %r14, %rdi
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _r600_vm_flush_gart_range ## TAILCALL
.cfi_endproc
## -- End function
.comm _R600_MC_VM_SYSTEM_APERTURE_LOW_ADDR,8,3 ## @R600_MC_VM_SYSTEM_APERTURE_LOW_ADDR
.comm _R600_MC_VM_SYSTEM_APERTURE_HIGH_ADDR,8,3 ## @R600_MC_VM_SYSTEM_APERTURE_HIGH_ADDR
.comm _R600_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR,8,3 ## @R600_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR
.comm _R600_MCD_L1_TLB,4,2 ## @R600_MCD_L1_TLB
.comm _R600_MCD_L1_FRAG_PROC,4,2 ## @R600_MCD_L1_FRAG_PROC
.comm _R600_MCD_SYSTEM_ACCESS_MODE_IN_SYS,4,2 ## @R600_MCD_SYSTEM_ACCESS_MODE_IN_SYS
.comm _R600_MCD_SYSTEM_APERTURE_UNMAPPED_ACCESS_PASS_THRU,4,2 ## @R600_MCD_SYSTEM_APERTURE_UNMAPPED_ACCESS_PASS_THRU
.comm _R600_MCD_WAIT_L2_QUERY,4,2 ## @R600_MCD_WAIT_L2_QUERY
.comm _R600_MCD_RD_A_CNTL,8,3 ## @R600_MCD_RD_A_CNTL
.comm _R600_MCD_RD_B_CNTL,8,3 ## @R600_MCD_RD_B_CNTL
.comm _R600_MCD_WR_A_CNTL,8,3 ## @R600_MCD_WR_A_CNTL
.comm _R600_MCD_WR_B_CNTL,8,3 ## @R600_MCD_WR_B_CNTL
.comm _R600_MCD_RD_GFX_CNTL,8,3 ## @R600_MCD_RD_GFX_CNTL
.comm _R600_MCD_WR_GFX_CNTL,8,3 ## @R600_MCD_WR_GFX_CNTL
.comm _R600_MCD_RD_SYS_CNTL,8,3 ## @R600_MCD_RD_SYS_CNTL
.comm _R600_MCD_WR_SYS_CNTL,8,3 ## @R600_MCD_WR_SYS_CNTL
.comm _R600_MCD_RD_HDP_CNTL,8,3 ## @R600_MCD_RD_HDP_CNTL
.comm _R600_MCD_L1_STRICT_ORDERING,4,2 ## @R600_MCD_L1_STRICT_ORDERING
.comm _R600_MCD_WR_HDP_CNTL,8,3 ## @R600_MCD_WR_HDP_CNTL
.comm _R600_MCD_RD_PDMA_CNTL,8,3 ## @R600_MCD_RD_PDMA_CNTL
.comm _R600_MCD_WR_PDMA_CNTL,8,3 ## @R600_MCD_WR_PDMA_CNTL
.comm _R600_MCD_RD_SEM_CNTL,8,3 ## @R600_MCD_RD_SEM_CNTL
.comm _R600_MCD_SEMAPHORE_MODE,4,2 ## @R600_MCD_SEMAPHORE_MODE
.comm _R600_MCD_WR_SEM_CNTL,8,3 ## @R600_MCD_WR_SEM_CNTL
.comm _R600_VM_L2_CACHE_EN,4,2 ## @R600_VM_L2_CACHE_EN
.comm _R600_VM_L2_FRAG_PROC,4,2 ## @R600_VM_L2_FRAG_PROC
.comm _R600_VM_ENABLE_PTE_CACHE_LRU_W,4,2 ## @R600_VM_ENABLE_PTE_CACHE_LRU_W
.comm _R600_VM_L2_CNTL,8,3 ## @R600_VM_L2_CNTL
.comm _R600_VM_L2_CNTL2,8,3 ## @R600_VM_L2_CNTL2
.comm _R600_VM_L2_CNTL3,8,3 ## @R600_VM_L2_CNTL3
.comm _R600_VM_ENABLE_CONTEXT,4,2 ## @R600_VM_ENABLE_CONTEXT
.comm _R600_VM_PAGE_TABLE_DEPTH_FLAT,4,2 ## @R600_VM_PAGE_TABLE_DEPTH_FLAT
.comm _R600_VM_CONTEXT0_CNTL,8,3 ## @R600_VM_CONTEXT0_CNTL
.comm _R600_VM_CONTEXT0_PAGE_TABLE_BASE_ADDR,8,3 ## @R600_VM_CONTEXT0_PAGE_TABLE_BASE_ADDR
.comm _R600_VM_CONTEXT0_PAGE_TABLE_START_ADDR,8,3 ## @R600_VM_CONTEXT0_PAGE_TABLE_START_ADDR
.comm _R600_VM_CONTEXT0_PAGE_TABLE_END_ADDR,8,3 ## @R600_VM_CONTEXT0_PAGE_TABLE_END_ADDR
.no_dead_strip _r600_vm_init
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function r600_vm_init
_r600_vm_init: ; @r600_vm_init
.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, x0
ldr x21, [x0]
Lloh0:
adrp x8, _R600_MC_VM_SYSTEM_APERTURE_LOW_ADDR@GOTPAGE
Lloh1:
ldr x8, [x8, _R600_MC_VM_SYSTEM_APERTURE_LOW_ADDR@GOTPAGEOFF]
Lloh2:
ldr x0, [x8]
ldr w8, [x21]
asr w1, w8, #12
bl _RADEON_WRITE
Lloh3:
adrp x8, _R600_MC_VM_SYSTEM_APERTURE_HIGH_ADDR@GOTPAGE
Lloh4:
ldr x8, [x8, _R600_MC_VM_SYSTEM_APERTURE_HIGH_ADDR@GOTPAGEOFF]
Lloh5:
ldr x0, [x8]
ldp w8, w9, [x21]
add w8, w8, w9
sub w8, w8, #1
asr w1, w8, #12
bl _RADEON_WRITE
Lloh6:
adrp x8, _R600_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR@GOTPAGE
Lloh7:
ldr x8, [x8, _R600_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR@GOTPAGEOFF]
Lloh8:
ldr x0, [x8]
mov w1, #0
bl _RADEON_WRITE
Lloh9:
adrp x8, _R600_MCD_L1_TLB@GOTPAGE
Lloh10:
ldr x8, [x8, _R600_MCD_L1_TLB@GOTPAGEOFF]
Lloh11:
ldr w8, [x8]
Lloh12:
adrp x9, _R600_MCD_L1_FRAG_PROC@GOTPAGE
Lloh13:
ldr x9, [x9, _R600_MCD_L1_FRAG_PROC@GOTPAGEOFF]
Lloh14:
ldr w9, [x9]
orr w8, w9, w8
Lloh15:
adrp x9, _R600_MCD_SYSTEM_ACCESS_MODE_IN_SYS@GOTPAGE
Lloh16:
ldr x9, [x9, _R600_MCD_SYSTEM_ACCESS_MODE_IN_SYS@GOTPAGEOFF]
Lloh17:
ldr w9, [x9]
orr w8, w8, w9
Lloh18:
adrp x9, _R600_MCD_SYSTEM_APERTURE_UNMAPPED_ACCESS_PASS_THRU@GOTPAGE
Lloh19:
ldr x9, [x9, _R600_MCD_SYSTEM_APERTURE_UNMAPPED_ACCESS_PASS_THRU@GOTPAGEOFF]
Lloh20:
ldr w9, [x9]
orr w20, w8, w9
mov w0, #5
bl _R600_MCD_EFFECTIVE_L1_TLB_SIZE
orr w20, w20, w0
mov w0, #5
bl _R600_MCD_EFFECTIVE_L1_QUEUE_SIZE
Lloh21:
adrp x8, _R600_MCD_WAIT_L2_QUERY@GOTPAGE
Lloh22:
ldr x8, [x8, _R600_MCD_WAIT_L2_QUERY@GOTPAGEOFF]
orr w9, w20, w0
Lloh23:
ldr w8, [x8]
orr w20, w9, w8
Lloh24:
adrp x8, _R600_MCD_RD_A_CNTL@GOTPAGE
Lloh25:
ldr x8, [x8, _R600_MCD_RD_A_CNTL@GOTPAGEOFF]
Lloh26:
ldr x0, [x8]
mov x1, x20
bl _RADEON_WRITE
Lloh27:
adrp x8, _R600_MCD_RD_B_CNTL@GOTPAGE
Lloh28:
ldr x8, [x8, _R600_MCD_RD_B_CNTL@GOTPAGEOFF]
Lloh29:
ldr x0, [x8]
mov x1, x20
bl _RADEON_WRITE
Lloh30:
adrp x8, _R600_MCD_WR_A_CNTL@GOTPAGE
Lloh31:
ldr x8, [x8, _R600_MCD_WR_A_CNTL@GOTPAGEOFF]
Lloh32:
ldr x0, [x8]
mov x1, x20
bl _RADEON_WRITE
Lloh33:
adrp x8, _R600_MCD_WR_B_CNTL@GOTPAGE
Lloh34:
ldr x8, [x8, _R600_MCD_WR_B_CNTL@GOTPAGEOFF]
Lloh35:
ldr x0, [x8]
mov x1, x20
bl _RADEON_WRITE
Lloh36:
adrp x8, _R600_MCD_RD_GFX_CNTL@GOTPAGE
Lloh37:
ldr x8, [x8, _R600_MCD_RD_GFX_CNTL@GOTPAGEOFF]
Lloh38:
ldr x0, [x8]
mov x1, x20
bl _RADEON_WRITE
Lloh39:
adrp x8, _R600_MCD_WR_GFX_CNTL@GOTPAGE
Lloh40:
ldr x8, [x8, _R600_MCD_WR_GFX_CNTL@GOTPAGEOFF]
Lloh41:
ldr x0, [x8]
mov x1, x20
bl _RADEON_WRITE
Lloh42:
adrp x8, _R600_MCD_RD_SYS_CNTL@GOTPAGE
Lloh43:
ldr x8, [x8, _R600_MCD_RD_SYS_CNTL@GOTPAGEOFF]
Lloh44:
ldr x0, [x8]
mov x1, x20
bl _RADEON_WRITE
Lloh45:
adrp x8, _R600_MCD_WR_SYS_CNTL@GOTPAGE
Lloh46:
ldr x8, [x8, _R600_MCD_WR_SYS_CNTL@GOTPAGEOFF]
Lloh47:
ldr x0, [x8]
mov x1, x20
bl _RADEON_WRITE
Lloh48:
adrp x8, _R600_MCD_RD_HDP_CNTL@GOTPAGE
Lloh49:
ldr x8, [x8, _R600_MCD_RD_HDP_CNTL@GOTPAGEOFF]
Lloh50:
ldr x0, [x8]
Lloh51:
adrp x8, _R600_MCD_L1_STRICT_ORDERING@GOTPAGE
Lloh52:
ldr x8, [x8, _R600_MCD_L1_STRICT_ORDERING@GOTPAGEOFF]
Lloh53:
ldr w8, [x8]
orr w1, w8, w20
bl _RADEON_WRITE
Lloh54:
adrp x8, _R600_MCD_WR_HDP_CNTL@GOTPAGE
Lloh55:
ldr x8, [x8, _R600_MCD_WR_HDP_CNTL@GOTPAGEOFF]
Lloh56:
ldr x0, [x8]
mov x1, x20
bl _RADEON_WRITE
Lloh57:
adrp x8, _R600_MCD_RD_PDMA_CNTL@GOTPAGE
Lloh58:
ldr x8, [x8, _R600_MCD_RD_PDMA_CNTL@GOTPAGEOFF]
Lloh59:
ldr x0, [x8]
mov x1, x20
bl _RADEON_WRITE
Lloh60:
adrp x8, _R600_MCD_WR_PDMA_CNTL@GOTPAGE
Lloh61:
ldr x8, [x8, _R600_MCD_WR_PDMA_CNTL@GOTPAGEOFF]
Lloh62:
ldr x0, [x8]
mov x1, x20
bl _RADEON_WRITE
Lloh63:
adrp x8, _R600_MCD_RD_SEM_CNTL@GOTPAGE
Lloh64:
ldr x8, [x8, _R600_MCD_RD_SEM_CNTL@GOTPAGEOFF]
Lloh65:
ldr x0, [x8]
Lloh66:
adrp x8, _R600_MCD_SEMAPHORE_MODE@GOTPAGE
Lloh67:
ldr x8, [x8, _R600_MCD_SEMAPHORE_MODE@GOTPAGEOFF]
Lloh68:
ldr w8, [x8]
orr w1, w8, w20
bl _RADEON_WRITE
Lloh69:
adrp x8, _R600_MCD_WR_SEM_CNTL@GOTPAGE
Lloh70:
ldr x8, [x8, _R600_MCD_WR_SEM_CNTL@GOTPAGEOFF]
Lloh71:
ldr x0, [x8]
mov x1, x20
bl _RADEON_WRITE
Lloh72:
adrp x8, _R600_VM_L2_CACHE_EN@GOTPAGE
Lloh73:
ldr x8, [x8, _R600_VM_L2_CACHE_EN@GOTPAGEOFF]
Lloh74:
ldr w8, [x8]
Lloh75:
adrp x9, _R600_VM_L2_FRAG_PROC@GOTPAGE
Lloh76:
ldr x9, [x9, _R600_VM_L2_FRAG_PROC@GOTPAGEOFF]
Lloh77:
ldr w9, [x9]
orr w8, w9, w8
Lloh78:
adrp x9, _R600_VM_ENABLE_PTE_CACHE_LRU_W@GOTPAGE
Lloh79:
ldr x9, [x9, _R600_VM_ENABLE_PTE_CACHE_LRU_W@GOTPAGEOFF]
Lloh80:
ldr w9, [x9]
orr w20, w8, w9
mov w0, #7
bl _R600_VM_L2_CNTL_QUEUE_SIZE
orr w1, w20, w0
Lloh81:
adrp x8, _R600_VM_L2_CNTL@GOTPAGE
Lloh82:
ldr x8, [x8, _R600_VM_L2_CNTL@GOTPAGEOFF]
Lloh83:
ldr x0, [x8]
bl _RADEON_WRITE
Lloh84:
adrp x8, _R600_VM_L2_CNTL2@GOTPAGE
Lloh85:
ldr x8, [x8, _R600_VM_L2_CNTL2@GOTPAGEOFF]
Lloh86:
ldr x0, [x8]
mov w1, #0
bl _RADEON_WRITE
mov w0, #0
bl _R600_VM_L2_CNTL3_BANK_SELECT_0
mov x20, x0
mov w0, #1
bl _R600_VM_L2_CNTL3_BANK_SELECT_1
orr w20, w0, w20
mov w0, #2
bl _R600_VM_L2_CNTL3_CACHE_UPDATE_MODE
orr w1, w20, w0
Lloh87:
adrp x8, _R600_VM_L2_CNTL3@GOTPAGE
Lloh88:
ldr x8, [x8, _R600_VM_L2_CNTL3@GOTPAGEOFF]
Lloh89:
ldr x0, [x8]
bl _RADEON_WRITE
Lloh90:
adrp x22, _R600_VM_ENABLE_CONTEXT@GOTPAGE
Lloh91:
ldr x22, [x22, _R600_VM_ENABLE_CONTEXT@GOTPAGEOFF]
Lloh92:
adrp x8, _R600_VM_PAGE_TABLE_DEPTH_FLAT@GOTPAGE
Lloh93:
ldr x8, [x8, _R600_VM_PAGE_TABLE_DEPTH_FLAT@GOTPAGEOFF]
ldr w9, [x22]
Lloh94:
ldr w8, [x8]
orr w20, w8, w9
Lloh95:
adrp x23, _R600_VM_CONTEXT0_CNTL@GOTPAGE
Lloh96:
ldr x23, [x23, _R600_VM_CONTEXT0_CNTL@GOTPAGEOFF]
ldr x0, [x23]
mov x1, x20
bl _RADEON_WRITE
ldr w8, [x22]
bic w20, w20, w8
ldr x8, [x23]
add x0, x8, #4
mov x1, x20
bl _RADEON_WRITE
ldr x8, [x23]
add x0, x8, #8
mov x1, x20
bl _RADEON_WRITE
ldr x8, [x23]
add x0, x8, #12
mov x1, x20
bl _RADEON_WRITE
ldr x8, [x23]
add x0, x8, #16
mov x1, x20
bl _RADEON_WRITE
ldr x8, [x23]
add x0, x8, #20
mov x1, x20
bl _RADEON_WRITE
ldr x8, [x23]
add x0, x8, #24
mov x1, x20
bl _RADEON_WRITE
ldr x8, [x23]
add x0, x8, #28
mov x1, x20
bl _RADEON_WRITE
Lloh97:
adrp x8, _R600_VM_CONTEXT0_PAGE_TABLE_BASE_ADDR@GOTPAGE
Lloh98:
ldr x8, [x8, _R600_VM_CONTEXT0_PAGE_TABLE_BASE_ADDR@GOTPAGEOFF]
Lloh99:
ldr x0, [x8]
ldr w8, [x21, #8]
asr w1, w8, #12
bl _RADEON_WRITE
Lloh100:
adrp x8, _R600_VM_CONTEXT0_PAGE_TABLE_START_ADDR@GOTPAGE
Lloh101:
ldr x8, [x8, _R600_VM_CONTEXT0_PAGE_TABLE_START_ADDR@GOTPAGEOFF]
Lloh102:
ldr x0, [x8]
ldr w8, [x21]
asr w1, w8, #12
bl _RADEON_WRITE
Lloh103:
adrp x8, _R600_VM_CONTEXT0_PAGE_TABLE_END_ADDR@GOTPAGE
Lloh104:
ldr x8, [x8, _R600_VM_CONTEXT0_PAGE_TABLE_END_ADDR@GOTPAGEOFF]
Lloh105:
ldr x0, [x8]
ldp w8, w9, [x21]
add w8, w8, w9
sub w8, w8, #1
asr w1, w8, #12
bl _RADEON_WRITE
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
b _r600_vm_flush_gart_range
.loh AdrpLdrGotLdr Lloh103, Lloh104, Lloh105
.loh AdrpLdrGotLdr Lloh100, Lloh101, Lloh102
.loh AdrpLdrGotLdr Lloh97, Lloh98, Lloh99
.loh AdrpLdrGot Lloh95, Lloh96
.loh AdrpLdrGotLdr Lloh92, Lloh93, Lloh94
.loh AdrpLdrGot Lloh90, Lloh91
.loh AdrpLdrGotLdr Lloh87, Lloh88, Lloh89
.loh AdrpLdrGotLdr Lloh84, Lloh85, Lloh86
.loh AdrpLdrGotLdr Lloh81, Lloh82, Lloh83
.loh AdrpLdrGotLdr Lloh78, Lloh79, Lloh80
.loh AdrpLdrGotLdr Lloh75, Lloh76, Lloh77
.loh AdrpLdrGotLdr Lloh72, Lloh73, Lloh74
.loh AdrpLdrGotLdr Lloh69, Lloh70, Lloh71
.loh AdrpLdrGotLdr Lloh66, Lloh67, Lloh68
.loh AdrpLdrGotLdr Lloh63, Lloh64, Lloh65
.loh AdrpLdrGotLdr Lloh60, Lloh61, Lloh62
.loh AdrpLdrGotLdr Lloh57, Lloh58, Lloh59
.loh AdrpLdrGotLdr Lloh54, Lloh55, Lloh56
.loh AdrpLdrGotLdr Lloh51, Lloh52, Lloh53
.loh AdrpLdrGotLdr Lloh48, Lloh49, Lloh50
.loh AdrpLdrGotLdr Lloh45, Lloh46, Lloh47
.loh AdrpLdrGotLdr Lloh42, Lloh43, Lloh44
.loh AdrpLdrGotLdr Lloh39, Lloh40, Lloh41
.loh AdrpLdrGotLdr Lloh36, Lloh37, Lloh38
.loh AdrpLdrGotLdr Lloh33, Lloh34, Lloh35
.loh AdrpLdrGotLdr Lloh30, Lloh31, Lloh32
.loh AdrpLdrGotLdr Lloh27, Lloh28, Lloh29
.loh AdrpLdrGotLdr Lloh24, Lloh25, Lloh26
.loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23
.loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20
.loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _R600_MC_VM_SYSTEM_APERTURE_LOW_ADDR,8,3 ; @R600_MC_VM_SYSTEM_APERTURE_LOW_ADDR
.comm _R600_MC_VM_SYSTEM_APERTURE_HIGH_ADDR,8,3 ; @R600_MC_VM_SYSTEM_APERTURE_HIGH_ADDR
.comm _R600_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR,8,3 ; @R600_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR
.comm _R600_MCD_L1_TLB,4,2 ; @R600_MCD_L1_TLB
.comm _R600_MCD_L1_FRAG_PROC,4,2 ; @R600_MCD_L1_FRAG_PROC
.comm _R600_MCD_SYSTEM_ACCESS_MODE_IN_SYS,4,2 ; @R600_MCD_SYSTEM_ACCESS_MODE_IN_SYS
.comm _R600_MCD_SYSTEM_APERTURE_UNMAPPED_ACCESS_PASS_THRU,4,2 ; @R600_MCD_SYSTEM_APERTURE_UNMAPPED_ACCESS_PASS_THRU
.comm _R600_MCD_WAIT_L2_QUERY,4,2 ; @R600_MCD_WAIT_L2_QUERY
.comm _R600_MCD_RD_A_CNTL,8,3 ; @R600_MCD_RD_A_CNTL
.comm _R600_MCD_RD_B_CNTL,8,3 ; @R600_MCD_RD_B_CNTL
.comm _R600_MCD_WR_A_CNTL,8,3 ; @R600_MCD_WR_A_CNTL
.comm _R600_MCD_WR_B_CNTL,8,3 ; @R600_MCD_WR_B_CNTL
.comm _R600_MCD_RD_GFX_CNTL,8,3 ; @R600_MCD_RD_GFX_CNTL
.comm _R600_MCD_WR_GFX_CNTL,8,3 ; @R600_MCD_WR_GFX_CNTL
.comm _R600_MCD_RD_SYS_CNTL,8,3 ; @R600_MCD_RD_SYS_CNTL
.comm _R600_MCD_WR_SYS_CNTL,8,3 ; @R600_MCD_WR_SYS_CNTL
.comm _R600_MCD_RD_HDP_CNTL,8,3 ; @R600_MCD_RD_HDP_CNTL
.comm _R600_MCD_L1_STRICT_ORDERING,4,2 ; @R600_MCD_L1_STRICT_ORDERING
.comm _R600_MCD_WR_HDP_CNTL,8,3 ; @R600_MCD_WR_HDP_CNTL
.comm _R600_MCD_RD_PDMA_CNTL,8,3 ; @R600_MCD_RD_PDMA_CNTL
.comm _R600_MCD_WR_PDMA_CNTL,8,3 ; @R600_MCD_WR_PDMA_CNTL
.comm _R600_MCD_RD_SEM_CNTL,8,3 ; @R600_MCD_RD_SEM_CNTL
.comm _R600_MCD_SEMAPHORE_MODE,4,2 ; @R600_MCD_SEMAPHORE_MODE
.comm _R600_MCD_WR_SEM_CNTL,8,3 ; @R600_MCD_WR_SEM_CNTL
.comm _R600_VM_L2_CACHE_EN,4,2 ; @R600_VM_L2_CACHE_EN
.comm _R600_VM_L2_FRAG_PROC,4,2 ; @R600_VM_L2_FRAG_PROC
.comm _R600_VM_ENABLE_PTE_CACHE_LRU_W,4,2 ; @R600_VM_ENABLE_PTE_CACHE_LRU_W
.comm _R600_VM_L2_CNTL,8,3 ; @R600_VM_L2_CNTL
.comm _R600_VM_L2_CNTL2,8,3 ; @R600_VM_L2_CNTL2
.comm _R600_VM_L2_CNTL3,8,3 ; @R600_VM_L2_CNTL3
.comm _R600_VM_ENABLE_CONTEXT,4,2 ; @R600_VM_ENABLE_CONTEXT
.comm _R600_VM_PAGE_TABLE_DEPTH_FLAT,4,2 ; @R600_VM_PAGE_TABLE_DEPTH_FLAT
.comm _R600_VM_CONTEXT0_CNTL,8,3 ; @R600_VM_CONTEXT0_CNTL
.comm _R600_VM_CONTEXT0_PAGE_TABLE_BASE_ADDR,8,3 ; @R600_VM_CONTEXT0_PAGE_TABLE_BASE_ADDR
.comm _R600_VM_CONTEXT0_PAGE_TABLE_START_ADDR,8,3 ; @R600_VM_CONTEXT0_PAGE_TABLE_START_ADDR
.comm _R600_VM_CONTEXT0_PAGE_TABLE_END_ADDR,8,3 ; @R600_VM_CONTEXT0_PAGE_TABLE_END_ADDR
.no_dead_strip _r600_vm_init
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/drivers/gpu/drm/radeon/extr_r600_cp.c_r600_vm_init.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function vm_map_splay
_vm_map_splay: ## @vm_map_splay
.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 $16, %rsp
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
leaq -32(%rbp), %rcx
leaq -24(%rbp), %r8
xorl %edx, %edx
callq _vm_map_splay_split
movq %rax, %rbx
testq %rax, %rax
jne LBB0_7
## %bb.1:
movq -32(%rbp), %rbx
cmpq %r14, %rbx
je LBB0_3
## %bb.2:
leaq 8(%rbx), %rax
movq 8(%rbx), %rcx
movq %rcx, -32(%rbp)
jmp LBB0_6
LBB0_3:
movq -24(%rbp), %rax
cmpq %rbx, %rax
je LBB0_4
## %bb.5:
movq (%rax), %rcx
movq %rcx, -24(%rbp)
movq %rax, %rbx
LBB0_6:
movq $0, (%rax)
LBB0_7:
movq -32(%rbp), %rdx
movq -24(%rbp), %rcx
movq %r14, %rdi
movq %rbx, %rsi
callq _vm_map_splay_merge
movq %r14, %rdi
callq _VM_MAP_ASSERT_CONSISTENT
LBB0_8:
movq %rbx, %rax
addq $16, %rsp
popq %rbx
popq %r14
popq %rbp
retq
LBB0_4:
xorl %ebx, %ebx
jmp LBB0_8
.cfi_endproc
## -- End function
.no_dead_strip _vm_map_splay
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function vm_map_splay
_vm_map_splay: ; @vm_map_splay
.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 x19, x0
add x3, sp, #8
mov x4, sp
mov w2, #0
bl _vm_map_splay_split
mov x20, x0
cbnz x0, LBB0_6
; %bb.1:
ldr x20, [sp, #8]
cmp x20, x19
b.eq LBB0_3
; %bb.2:
mov x8, x20
ldr x9, [x8, #8]!
str x9, [sp, #8]
b LBB0_5
LBB0_3:
ldr x8, [sp]
cmp x8, x20
b.eq LBB0_8
; %bb.4:
ldr x9, [x8]
str x9, [sp]
mov x20, x8
LBB0_5:
str xzr, [x8]
LBB0_6:
ldp x3, x2, [sp]
mov x0, x19
mov x1, x20
bl _vm_map_splay_merge
mov x0, x19
bl _VM_MAP_ASSERT_CONSISTENT
LBB0_7:
mov x0, x20
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #48
ret
LBB0_8:
mov x20, #0
b LBB0_7
.cfi_endproc
; -- End function
.no_dead_strip _vm_map_splay
.subsections_via_symbols
| AnghaBench/freebsd/sys/vm/extr_vm_map.c_vm_map_splay.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function rtw_lps_change_dtim_hdl
_rtw_lps_change_dtim_hdl: ## @rtw_lps_change_dtim_hdl
.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
subq $16, %rsp
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %esi, %ebx
movq %rdi, %r15
callq _adapter_to_pwrctl
movq %rax, %r12
leal -17(%rbx), %eax
cmpl $-16, %eax
jb LBB0_8
## %bb.1:
movq %r15, %rdi
callq _hal_btcoex_IsBtControlLps
cmpl $1, %eax
je LBB0_8
## %bb.2:
movq %r12, %r14
addq $16, %r14
movq %r14, %rdi
callq _mutex_lock
movl (%r12), %esi
cmpl %ebx, %esi
je LBB0_4
## %bb.3:
movl 4(%r12), %ecx
movq 8(%r12), %r8
leaq L_.str(%rip), %rdi
movl %ebx, %edx
callq _DBG_871X
movl %ebx, (%r12)
LBB0_4:
cmpl $1, 4(%r12)
jne LBB0_7
## %bb.5:
movq 8(%r12), %rax
movq _PS_MODE_ACTIVE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jle LBB0_7
## %bb.6:
movl %eax, -36(%rbp)
movq _HW_VAR_H2C_FW_PWRMODE@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq -36(%rbp), %rdx
movq %r15, %rdi
callq _rtw_hal_set_hwreg
LBB0_7:
movq %r14, %rdi
callq _mutex_unlock
LBB0_8:
addq $16, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "change DTIM from %d to %d, bFwCurrentInPSMode =%d, ps_mode =%d\n"
.comm _PS_MODE_ACTIVE,8,3 ## @PS_MODE_ACTIVE
.comm _HW_VAR_H2C_FW_PWRMODE,4,2 ## @HW_VAR_H2C_FW_PWRMODE
.no_dead_strip _rtw_lps_change_dtim_hdl
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function rtw_lps_change_dtim_hdl
_rtw_lps_change_dtim_hdl: ; @rtw_lps_change_dtim_hdl
.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 x22, x1
mov x19, x0
bl _adapter_to_pwrctl
sub w8, w22, #17
cmn w8, #16
b.lo LBB0_8
; %bb.1:
mov x21, x0
mov x0, x19
bl _hal_btcoex_IsBtControlLps
cmp w0, #1
b.eq LBB0_8
; %bb.2:
add x20, x21, #16
mov x0, x20
bl _mutex_lock
ldr w1, [x21]
cmp w1, w22
b.eq LBB0_4
; %bb.3:
ldr w3, [x21, #4]
ldr x4, [x21, #8]
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
mov x2, x22
bl _DBG_871X
str w22, [x21]
LBB0_4:
ldr w8, [x21, #4]
cmp w8, #1
b.ne LBB0_7
; %bb.5:
ldr x8, [x21, #8]
Lloh2:
adrp x9, _PS_MODE_ACTIVE@GOTPAGE
Lloh3:
ldr x9, [x9, _PS_MODE_ACTIVE@GOTPAGEOFF]
Lloh4:
ldr x9, [x9]
cmp x8, x9
b.le LBB0_7
; %bb.6:
str w8, [sp, #12]
Lloh5:
adrp x8, _HW_VAR_H2C_FW_PWRMODE@GOTPAGE
Lloh6:
ldr x8, [x8, _HW_VAR_H2C_FW_PWRMODE@GOTPAGEOFF]
Lloh7:
ldr w1, [x8]
add x2, sp, #12
mov x0, x19
bl _rtw_hal_set_hwreg
LBB0_7:
mov x0, x20
bl _mutex_unlock
LBB0_8:
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
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "change DTIM from %d to %d, bFwCurrentInPSMode =%d, ps_mode =%d\n"
.comm _PS_MODE_ACTIVE,8,3 ; @PS_MODE_ACTIVE
.comm _HW_VAR_H2C_FW_PWRMODE,4,2 ; @HW_VAR_H2C_FW_PWRMODE
.no_dead_strip _rtw_lps_change_dtim_hdl
.subsections_via_symbols
| AnghaBench/linux/drivers/staging/rtl8723bs/core/extr_rtw_cmd.c_rtw_lps_change_dtim_hdl.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function mlx4_poll_one
_mlx4_poll_one: ## @mlx4_poll_one
.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, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq -32(%rbp), %rsi
callq _mlx4_get_next_cqe
movq _CQ_EMPTY@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
je LBB0_2
## %bb.1:
movq -32(%rbp), %rsi
movq %rbx, %rdi
movq %r15, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq _mlx4_parse_cqe
LBB0_2:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _CQ_EMPTY,4,2 ## @CQ_EMPTY
.no_dead_strip _mlx4_poll_one
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function mlx4_poll_one
_mlx4_poll_one: ; @mlx4_poll_one
.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 x20, x1
mov x21, x0
add x1, sp, #8
bl _mlx4_get_next_cqe
Lloh0:
adrp x8, _CQ_EMPTY@GOTPAGE
Lloh1:
ldr x8, [x8, _CQ_EMPTY@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
cmp w0, w8
b.eq LBB0_2
; %bb.1:
ldr x1, [sp, #8]
mov x0, x21
mov x2, x20
mov x3, x19
mov w4, #0
bl _mlx4_parse_cqe
LBB0_2:
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
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _CQ_EMPTY,4,2 ; @CQ_EMPTY
.no_dead_strip _mlx4_poll_one
.subsections_via_symbols
| AnghaBench/freebsd/contrib/ofed/libmlx4/extr_cq.c_mlx4_poll_one.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/419807.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function gb_svc_version_request
_gb_svc_version_request: ## @gb_svc_version_request
.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
movq 16(%rdi), %rdi
callq _gb_connection_get_data
movq %rax, %rbx
movq 8(%r14), %rax
movl (%rax), %edx
cmpl $15, %edx
ja LBB0_2
## %bb.1:
addq $12, %rbx
leaq L_.str(%rip), %rsi
movq %rbx, %rdi
movl $16, %ecx
callq _dev_err
movq _EINVAL@GOTPCREL(%rip), %rcx
jmp LBB0_6
LBB0_2:
movq 8(%rax), %rax
movq (%rax), %rdx
movq _GB_SVC_VERSION_MAJOR@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq %rcx, %rdx
jle LBB0_4
## %bb.3:
addq $12, %rbx
leaq L_.str.1(%rip), %rsi
movq %rbx, %rdi
callq _dev_warn
movq _ENOTSUPP@GOTPCREL(%rip), %rcx
jmp LBB0_6
LBB0_4:
movq %rdx, (%rbx)
movl 8(%rax), %eax
movl %eax, 8(%rbx)
movq _GFP_KERNEL@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %r14, %rdi
movl $16, %esi
callq _gb_operation_response_alloc
testl %eax, %eax
je LBB0_5
## %bb.7:
movq (%r14), %rax
movq (%rax), %rax
movq (%rbx), %rcx
movq %rcx, (%rax)
movl 8(%rbx), %ecx
movl %ecx, 8(%rax)
xorl %eax, %eax
jmp LBB0_8
LBB0_5:
movq _ENOMEM@GOTPCREL(%rip), %rcx
LBB0_6:
xorl %eax, %eax
subl (%rcx), %eax
LBB0_8:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "short version request (%zu < %zu)\n"
.comm _EINVAL,4,2 ## @EINVAL
.comm _GB_SVC_VERSION_MAJOR,8,3 ## @GB_SVC_VERSION_MAJOR
L_.str.1: ## @.str.1
.asciz "unsupported major version (%u > %u)\n"
.comm _ENOTSUPP,4,2 ## @ENOTSUPP
.comm _GFP_KERNEL,4,2 ## @GFP_KERNEL
.comm _ENOMEM,4,2 ## @ENOMEM
.no_dead_strip _gb_svc_version_request
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function gb_svc_version_request
_gb_svc_version_request: ; @gb_svc_version_request
.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
ldr x0, [x0, #16]
bl _gb_connection_get_data
mov x19, x0
ldr x8, [x20, #8]
ldr w2, [x8]
cmp w2, #15
b.hi LBB0_2
; %bb.1:
add x0, x19, #12
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
mov w3, #16
bl _dev_err
Lloh2:
adrp x8, _EINVAL@GOTPAGE
Lloh3:
ldr x8, [x8, _EINVAL@GOTPAGEOFF]
b LBB0_7
LBB0_2:
ldr x8, [x8, #8]
ldr x2, [x8]
Lloh4:
adrp x9, _GB_SVC_VERSION_MAJOR@GOTPAGE
Lloh5:
ldr x9, [x9, _GB_SVC_VERSION_MAJOR@GOTPAGEOFF]
Lloh6:
ldr x3, [x9]
cmp x2, x3
b.le LBB0_4
; %bb.3:
add x0, x19, #12
Lloh7:
adrp x1, l_.str.1@PAGE
Lloh8:
add x1, x1, l_.str.1@PAGEOFF
bl _dev_warn
Lloh9:
adrp x8, _ENOTSUPP@GOTPAGE
Lloh10:
ldr x8, [x8, _ENOTSUPP@GOTPAGEOFF]
b LBB0_7
LBB0_4:
str x2, [x19]
ldr w8, [x8, #8]
str w8, [x19, #8]
Lloh11:
adrp x8, _GFP_KERNEL@GOTPAGE
Lloh12:
ldr x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
ldr w2, [x8]
mov x0, x20
mov w1, #16
bl _gb_operation_response_alloc
cbz w0, LBB0_6
; %bb.5:
mov w0, #0
ldr x8, [x20]
ldr x8, [x8]
ldr x9, [x19]
str x9, [x8]
ldr w9, [x19, #8]
str w9, [x8, #8]
b LBB0_8
LBB0_6:
Lloh14:
adrp x8, _ENOMEM@GOTPAGE
Lloh15:
ldr x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
ldr w8, [x8]
neg w0, w8
LBB0_8:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.loh AdrpLdrGot Lloh9, Lloh10
.loh AdrpAdd Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13
.loh AdrpLdrGot Lloh14, Lloh15
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "short version request (%zu < %zu)\n"
.comm _EINVAL,4,2 ; @EINVAL
.comm _GB_SVC_VERSION_MAJOR,8,3 ; @GB_SVC_VERSION_MAJOR
l_.str.1: ; @.str.1
.asciz "unsupported major version (%u > %u)\n"
.comm _ENOTSUPP,4,2 ; @ENOTSUPP
.comm _GFP_KERNEL,4,2 ; @GFP_KERNEL
.comm _ENOMEM,4,2 ; @ENOMEM
.no_dead_strip _gb_svc_version_request
.subsections_via_symbols
| AnghaBench/linux/drivers/greybus/extr_svc.c_gb_svc_version_request.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function scan_swap_map_slots
_scan_swap_map_slots: ## @scan_swap_map_slots
.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 $72, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rcx, -96(%rbp) ## 8-byte Spill
## kill: def $edx killed $edx def $rdx
movl %esi, -76(%rbp) ## 4-byte Spill
movq %rdi, %rbx
movq _LATENCY_LIMIT@GOTPCREL(%rip), %rax
movl (%rax), %r15d
movq _SWAP_BATCH@GOTPCREL(%rip), %rax
movl (%rax), %eax
cmpl %edx, %eax
cmovll %eax, %edx
movq %rdx, -88(%rbp) ## 8-byte Spill
movq _SWP_SCANNING@GOTPCREL(%rip), %rax
movl (%rax), %eax
addl %eax, (%rdi)
movq 8(%rdi), %rax
movq %rax, -48(%rbp)
movq %rax, -56(%rbp)
cmpq $0, 64(%rdi)
je LBB0_6
## %bb.1:
leaq -48(%rbp), %rsi
leaq -56(%rbp), %rdx
movq %rbx, %rdi
callq _scan_swap_map_try_ssd_cluster
xorl %r12d, %r12d
testq %rax, %rax
jne LBB0_19
jmp LBB0_2
LBB0_6:
xorl %edi, %edi
subl $1, 16(%rbx)
setb %dil
callq _unlikely
xorl %r12d, %r12d
testq %rax, %rax
je LBB0_19
## %bb.7:
movl 20(%rbx), %ecx
subl 24(%rbx), %ecx
movq _SWAPFILE_CLUSTER@GOTPCREL(%rip), %r14
movl (%r14), %eax
cmpl %eax, %ecx
jl LBB0_18
## %bb.8:
leaq 56(%rbx), %rdi
movq %rdi, -64(%rbp) ## 8-byte Spill
callq _spin_unlock
movq 32(%rbx), %r13
movq %r13, -48(%rbp)
movq %r13, -56(%rbp)
movslq (%r14), %r14
notq %r14
addq %r13, %r14
cmpq 40(%rbx), %r14
movq %r13, -72(%rbp) ## 8-byte Spill
jbe LBB0_9
LBB0_17:
movq -72(%rbp), %rax ## 8-byte Reload
movq %rax, -48(%rbp)
movq -64(%rbp), %rdi ## 8-byte Reload
callq _spin_lock
movq _SWAPFILE_CLUSTER@GOTPCREL(%rip), %rax
movl (%rax), %eax
LBB0_18:
decl %eax
movl %eax, 16(%rbx)
jmp LBB0_19
.p2align 4, 0x90
LBB0_15: ## in Loop: Header=BB0_9 Depth=1
xorl %eax, %eax
callq _cond_resched
movq _LATENCY_LIMIT@GOTPCREL(%rip), %rax
movl (%rax), %r15d
LBB0_16: ## in Loop: Header=BB0_9 Depth=1
incq %r13
movq %r13, -48(%rbp)
cmpq 40(%rbx), %r14
ja LBB0_17
LBB0_9: ## =>This Inner Loop Header: Depth=1
movq 48(%rbx), %rax
cmpb $0, (%rax,%r13)
je LBB0_13
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movq _SWAPFILE_CLUSTER@GOTPCREL(%rip), %rax
movslq (%rax), %r14
addq %r13, %r14
jmp LBB0_11
.p2align 4, 0x90
LBB0_13: ## in Loop: Header=BB0_9 Depth=1
cmpq %r14, %r13
je LBB0_14
LBB0_11: ## in Loop: Header=BB0_9 Depth=1
xorl %edi, %edi
testl %r15d, %r15d
setle %dil
callq _unlikely
testq %rax, %rax
jne LBB0_15
## %bb.12: ## in Loop: Header=BB0_9 Depth=1
decl %r15d
jmp LBB0_16
LBB0_14:
movq -64(%rbp), %rdi ## 8-byte Reload
callq _spin_lock
movq _SWAPFILE_CLUSTER@GOTPCREL(%rip), %rax
movslq (%rax), %rax
decq %rax
subq %rax, %r14
movq %r14, -48(%rbp)
movq %r14, 8(%rbx)
movl %eax, 16(%rbx)
xorl %r12d, %r12d
jmp LBB0_19
LBB0_2:
leaq 56(%rbx), %r14
movq %r14, %rdi
callq _spin_unlock
movq -48(%rbp), %rax
incq %rax
movq %rax, -48(%rbp)
cmpq 40(%rbx), %rax
jbe LBB0_3
LBB0_57:
movq 32(%rbx), %rax
movq %rax, -48(%rbp)
cmpq -56(%rbp), %rax
jae LBB0_66
## %bb.58:
movq _SWAP_HAS_CACHE@GOTPCREL(%rip), %r13
jmp LBB0_59
.p2align 4, 0x90
LBB0_64: ## in Loop: Header=BB0_59 Depth=1
xorl %eax, %eax
callq _cond_resched
movq _LATENCY_LIMIT@GOTPCREL(%rip), %rax
movl (%rax), %r15d
LBB0_65: ## in Loop: Header=BB0_59 Depth=1
movq -48(%rbp), %rax
incq %rax
movq %rax, -48(%rbp)
cmpq -56(%rbp), %rax
jae LBB0_66
LBB0_59: ## =>This Inner Loop Header: Depth=1
movq 48(%rbx), %rcx
cmpb $0, (%rcx,%rax)
je LBB0_5
## %bb.60: ## in Loop: Header=BB0_59 Depth=1
xorl %eax, %eax
callq _vm_swap_full
testq %rax, %rax
je LBB0_62
## %bb.61: ## in Loop: Header=BB0_59 Depth=1
movq 48(%rbx), %rax
movq -48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
cmpb (%r13), %al
je LBB0_5
LBB0_62: ## in Loop: Header=BB0_59 Depth=1
xorl %edi, %edi
testl %r15d, %r15d
setle %dil
callq _unlikely
testq %rax, %rax
jne LBB0_64
## %bb.63: ## in Loop: Header=BB0_59 Depth=1
decl %r15d
jmp LBB0_65
LBB0_3:
movq _SWAP_HAS_CACHE@GOTPCREL(%rip), %r13
jmp LBB0_4
.p2align 4, 0x90
LBB0_55: ## in Loop: Header=BB0_4 Depth=1
xorl %eax, %eax
callq _cond_resched
movq _LATENCY_LIMIT@GOTPCREL(%rip), %rax
movl (%rax), %r15d
LBB0_56: ## in Loop: Header=BB0_4 Depth=1
movq -48(%rbp), %rax
incq %rax
movq %rax, -48(%rbp)
cmpq 40(%rbx), %rax
ja LBB0_57
LBB0_4: ## =>This Inner Loop Header: Depth=1
movq 48(%rbx), %rcx
cmpb $0, (%rcx,%rax)
je LBB0_5
## %bb.51: ## in Loop: Header=BB0_4 Depth=1
xorl %eax, %eax
callq _vm_swap_full
testq %rax, %rax
je LBB0_53
## %bb.52: ## in Loop: Header=BB0_4 Depth=1
movq 48(%rbx), %rax
movq -48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
cmpb (%r13), %al
je LBB0_5
LBB0_53: ## in Loop: Header=BB0_4 Depth=1
xorl %edi, %edi
testl %r15d, %r15d
setle %dil
callq _unlikely
testq %rax, %rax
jne LBB0_55
## %bb.54: ## in Loop: Header=BB0_4 Depth=1
decl %r15d
jmp LBB0_56
LBB0_5:
movq %r14, %rdi
callq _spin_lock
LBB0_19:
leaq 56(%rbx), %rax
movq %rax, -64(%rbp) ## 8-byte Spill
movslq %r12d, %r13
movq -88(%rbp), %rax ## 8-byte Reload
decl %eax
cltq
movq %rax, -104(%rbp) ## 8-byte Spill
movq _SWP_WRITEOK@GOTPCREL(%rip), %r12
leaq -48(%rbp), %r14
LBB0_20: ## =>This Loop Header: Depth=1
## Child Loop BB0_21 Depth 2
## Child Loop BB0_22 Depth 3
movl %r15d, -72(%rbp) ## 4-byte Spill
LBB0_21: ## Parent Loop BB0_20 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_22 Depth 3
cmpq $0, 64(%rbx)
je LBB0_26
.p2align 4, 0x90
LBB0_22: ## Parent Loop BB0_20 Depth=1
## Parent Loop BB0_21 Depth=2
## => This Inner Loop Header: Depth=3
movq -48(%rbp), %rsi
movq %rbx, %rdi
callq _scan_swap_map_ssd_cluster_conflict
testq %rax, %rax
je LBB0_26
## %bb.23: ## in Loop: Header=BB0_22 Depth=3
testq %r13, %r13
jne LBB0_36
## %bb.24: ## in Loop: Header=BB0_22 Depth=3
movq %rbx, %rdi
movq %r14, %rsi
leaq -56(%rbp), %rdx
callq _scan_swap_map_try_ssd_cluster
testq %rax, %rax
jne LBB0_22
jmp LBB0_25
.p2align 4, 0x90
LBB0_26: ## in Loop: Header=BB0_21 Depth=2
movl (%rbx), %eax
movl (%r12), %ecx
orl %eax, %ecx
je LBB0_38
## %bb.27: ## in Loop: Header=BB0_21 Depth=2
movq 40(%rbx), %rcx
testq %rcx, %rcx
je LBB0_38
## %bb.28: ## in Loop: Header=BB0_21 Depth=2
movq -48(%rbp), %rsi
cmpq %rcx, %rsi
jbe LBB0_30
## %bb.29: ## in Loop: Header=BB0_21 Depth=2
movq 32(%rbx), %rsi
movq %rsi, -48(%rbp)
movq %rsi, -56(%rbp)
LBB0_30: ## in Loop: Header=BB0_21 Depth=2
movq %rbx, %rdi
callq _lock_cluster
movq %rax, %r14
xorl %eax, %eax
callq _vm_swap_full
testq %rax, %rax
jne LBB0_32
## %bb.31: ## in Loop: Header=BB0_21 Depth=2
movq 48(%rbx), %rax
movq -48(%rbp), %rcx
movzbl (%rax,%rcx), %edx
movq _SWAP_HAS_CACHE@GOTPCREL(%rip), %rsi
cmpb (%rsi), %dl
jne LBB0_34
LBB0_32: ## in Loop: Header=BB0_21 Depth=2
movq %r14, %rdi
callq _unlock_cluster
movq %r13, %r15
movq %r12, %r13
movq -64(%rbp), %r12 ## 8-byte Reload
movq %r12, %rdi
callq _spin_unlock
movq -48(%rbp), %rsi
movq _TTRS_ANYWAY@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %rbx, %rdi
callq ___try_to_reclaim_swap
movl %eax, %r14d
movq %r12, %rdi
movq %r13, %r12
movq %r15, %r13
movl -72(%rbp), %r15d ## 4-byte Reload
callq _spin_lock
testl %r14d, %r14d
leaq -48(%rbp), %r14
jne LBB0_21
jmp LBB0_33
LBB0_34: ## in Loop: Header=BB0_20 Depth=1
testb %dl, %dl
jne LBB0_35
## %bb.39: ## in Loop: Header=BB0_20 Depth=1
movl -76(%rbp), %edx ## 4-byte Reload
movb %dl, (%rax,%rcx)
movq 64(%rbx), %rsi
movq -48(%rbp), %rdx
movq %rbx, %rdi
callq _inc_cluster_info_page
movq %r14, %rdi
callq _unlock_cluster
movq -48(%rbp), %rsi
movq %rbx, %rdi
movl $1, %edx
callq _swap_range_alloc
movq -48(%rbp), %rsi
leaq 1(%rsi), %rax
movq %rax, 8(%rbx)
movl 72(%rbx), %edi
callq _swp_entry
movq -96(%rbp), %rcx ## 8-byte Reload
movl %eax, (%rcx,%r13,4)
cmpq -104(%rbp), %r13 ## 8-byte Folded Reload
je LBB0_40
## %bb.41: ## in Loop: Header=BB0_20 Depth=1
incq %r13
movq -48(%rbp), %rax
cmpq 40(%rbx), %rax
jae LBB0_36
## %bb.42: ## in Loop: Header=BB0_20 Depth=1
xorl %edi, %edi
testl %r15d, %r15d
setle %dil
callq _unlikely
testq %rax, %rax
je LBB0_43
## %bb.44: ## in Loop: Header=BB0_20 Depth=1
testq %r13, %r13
jne LBB0_36
## %bb.45: ## in Loop: Header=BB0_20 Depth=1
movq -64(%rbp), %r14 ## 8-byte Reload
movq %r14, %rdi
callq _spin_unlock
xorl %eax, %eax
callq _cond_resched
movq %r14, %rdi
callq _spin_lock
movq _LATENCY_LIMIT@GOTPCREL(%rip), %rax
movl (%rax), %r15d
jmp LBB0_46
LBB0_43: ## in Loop: Header=BB0_20 Depth=1
decl %r15d
LBB0_46: ## in Loop: Header=BB0_20 Depth=1
cmpq $0, 64(%rbx)
leaq -48(%rbp), %r14
je LBB0_48
## %bb.47: ## in Loop: Header=BB0_20 Depth=1
movq %rbx, %rdi
movq %r14, %rsi
leaq -56(%rbp), %rdx
callq _scan_swap_map_try_ssd_cluster
testq %rax, %rax
jne LBB0_20
jmp LBB0_36
LBB0_48: ## in Loop: Header=BB0_20 Depth=1
movq -48(%rbp), %rcx
incq %rcx
movq %rcx, -48(%rbp)
movl 16(%rbx), %eax
testl %eax, %eax
je LBB0_36
## %bb.49: ## in Loop: Header=BB0_20 Depth=1
movq 48(%rbx), %rdx
cmpb $0, (%rdx,%rcx)
jne LBB0_36
## %bb.50: ## in Loop: Header=BB0_20 Depth=1
decl %eax
movl %eax, 16(%rbx)
jmp LBB0_20
LBB0_25:
xorl %r12d, %r12d
jmp LBB0_2
LBB0_66:
movq %r14, %rdi
callq _spin_lock
movl (%rbx), %eax
jmp LBB0_67
LBB0_33:
movl %r13d, %r12d
jmp LBB0_2
LBB0_35:
movq %r14, %rdi
callq _unlock_cluster
xorl %r12d, %r12d
testq %r13, %r13
je LBB0_2
LBB0_36:
## kill: def $r13d killed $r13d killed $r13 def $r13
LBB0_37:
movl (%rbx), %eax
LBB0_38:
movl %r13d, %r12d
LBB0_67:
movq _SWP_SCANNING@GOTPCREL(%rip), %rcx
subl (%rcx), %eax
movl %eax, (%rbx)
movl %r12d, %eax
addq $72, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_40:
movq -88(%rbp), %r13 ## 8-byte Reload
jmp LBB0_37
.cfi_endproc
## -- End function
.comm _LATENCY_LIMIT,4,2 ## @LATENCY_LIMIT
.comm _SWAP_BATCH,4,2 ## @SWAP_BATCH
.comm _SWP_SCANNING,8,3 ## @SWP_SCANNING
.comm _SWAPFILE_CLUSTER,4,2 ## @SWAPFILE_CLUSTER
.comm _SWP_WRITEOK,4,2 ## @SWP_WRITEOK
.comm _SWAP_HAS_CACHE,1,0 ## @SWAP_HAS_CACHE
.comm _TTRS_ANYWAY,4,2 ## @TTRS_ANYWAY
.no_dead_strip _scan_swap_map_slots
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function scan_swap_map_slots
_scan_swap_map_slots: ; @scan_swap_map_slots
.cfi_startproc
; %bb.0:
sub sp, sp, #128
stp x28, x27, [sp, #32] ; 16-byte Folded Spill
stp x26, x25, [sp, #48] ; 16-byte Folded Spill
stp x24, x23, [sp, #64] ; 16-byte Folded Spill
stp x22, x21, [sp, #80] ; 16-byte Folded Spill
stp x20, x19, [sp, #96] ; 16-byte Folded Spill
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.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
str x3, [sp, #8] ; 8-byte Folded Spill
str w1, [sp, #4] ; 4-byte Folded Spill
mov x19, x0
Lloh0:
adrp x25, _LATENCY_LIMIT@GOTPAGE
Lloh1:
ldr x25, [x25, _LATENCY_LIMIT@GOTPAGEOFF]
ldr w27, [x25]
Lloh2:
adrp x8, _SWAP_BATCH@GOTPAGE
Lloh3:
ldr x8, [x8, _SWAP_BATCH@GOTPAGEOFF]
Lloh4:
ldr w8, [x8]
cmp w8, w2
csel w24, w8, w2, lt
Lloh5:
adrp x8, _SWP_SCANNING@GOTPAGE
Lloh6:
ldr x8, [x8, _SWP_SCANNING@GOTPAGEOFF]
Lloh7:
ldr w8, [x8]
ldr w9, [x0]
add w8, w9, w8
str w8, [x0]
ldr x8, [x0, #8]
stp x8, x8, [sp, #16]
ldr x8, [x0, #64]
Lloh8:
adrp x26, _SWAP_HAS_CACHE@GOTPAGE
Lloh9:
ldr x26, [x26, _SWAP_HAS_CACHE@GOTPAGEOFF]
cbz x8, LBB0_2
; %bb.1:
add x1, sp, #24
add x2, sp, #16
mov x0, x19
bl _scan_swap_map_try_ssd_cluster
mov w22, #0 ; =0x0
cbnz x0, LBB0_33
b LBB0_17
LBB0_2:
ldr w8, [x19, #16]
sub w9, w8, #1
str w9, [x19, #16]
cmp w8, #0
cset w0, eq
bl _unlikely
cbz x0, LBB0_5
; %bb.3:
ldp w9, w10, [x19, #20]
Lloh10:
adrp x20, _SWAPFILE_CLUSTER@GOTPAGE
Lloh11:
ldr x20, [x20, _SWAPFILE_CLUSTER@GOTPAGEOFF]
ldr w8, [x20]
sub w9, w9, w10
cmp w9, w8
b.ge LBB0_6
; %bb.4:
mov w22, #0 ; =0x0
b LBB0_8
LBB0_5:
mov w22, #0 ; =0x0
b LBB0_33
LBB0_6:
add x0, x19, #56
bl _spin_unlock
ldp x21, x8, [x19, #32]
stp x21, x21, [sp, #16]
ldr w9, [x20]
mvn w9, w9
add x23, x21, w9, sxtw
cmp x23, x8
b.ls LBB0_9
LBB0_7:
str x21, [sp, #24]
add x0, x19, #56
bl _spin_lock
mov w22, #0 ; =0x0
ldr w8, [x20]
LBB0_8:
sub w8, w8, #1
str w8, [x19, #16]
b LBB0_33
LBB0_9:
mov x22, x21
b LBB0_11
LBB0_10: ; in Loop: Header=BB0_11 Depth=1
add x22, x22, #1
str x22, [sp, #24]
ldr x8, [x19, #40]
cmp x23, x8
b.hi LBB0_7
LBB0_11: ; =>This Inner Loop Header: Depth=1
ldr x8, [x19, #48]
ldrb w8, [x8, x22]
cbz w8, LBB0_13
; %bb.12: ; in Loop: Header=BB0_11 Depth=1
ldrsw x8, [x20]
add x23, x22, x8
b LBB0_14
LBB0_13: ; in Loop: Header=BB0_11 Depth=1
cmp x22, x23
b.eq LBB0_16
LBB0_14: ; in Loop: Header=BB0_11 Depth=1
subs w27, w27, #1
cset w0, lt
bl _unlikely
cbz x0, LBB0_10
; %bb.15: ; in Loop: Header=BB0_11 Depth=1
bl _cond_resched
ldr w27, [x25]
b LBB0_10
LBB0_16:
add x0, x19, #56
bl _spin_lock
mov w22, #0 ; =0x0
ldrsw x8, [x20]
sub x8, x8, #1
sub x9, x23, x8
str x9, [sp, #24]
str x9, [x19, #8]
str w8, [x19, #16]
b LBB0_33
LBB0_17:
add x0, x19, #56
bl _spin_unlock
LBB0_18: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
ldr x9, [x19, #40]
cmp x8, x9
b.hi LBB0_24
; %bb.19: ; in Loop: Header=BB0_18 Depth=1
ldr x9, [x19, #48]
ldrb w8, [x9, x8]
cbz w8, LBB0_32
; %bb.20: ; in Loop: Header=BB0_18 Depth=1
bl _vm_swap_full
cbz x0, LBB0_22
; %bb.21: ; in Loop: Header=BB0_18 Depth=1
ldr x8, [x19, #48]
ldr x9, [sp, #24]
ldrb w8, [x8, x9]
ldrb w9, [x26]
cmp w8, w9
b.eq LBB0_32
LBB0_22: ; in Loop: Header=BB0_18 Depth=1
subs w27, w27, #1
cset w0, lt
bl _unlikely
cbz x0, LBB0_18
; %bb.23: ; in Loop: Header=BB0_18 Depth=1
bl _cond_resched
ldr w27, [x25]
b LBB0_18
LBB0_24:
ldr x8, [x19, #32]
b LBB0_26
LBB0_25: ; in Loop: Header=BB0_26 Depth=1
ldr x8, [sp, #24]
add x8, x8, #1
LBB0_26: ; =>This Inner Loop Header: Depth=1
str x8, [sp, #24]
ldr x9, [sp, #16]
cmp x8, x9
b.hs LBB0_57
; %bb.27: ; in Loop: Header=BB0_26 Depth=1
ldr x9, [x19, #48]
ldrb w8, [x9, x8]
cbz w8, LBB0_32
; %bb.28: ; in Loop: Header=BB0_26 Depth=1
bl _vm_swap_full
cbz x0, LBB0_30
; %bb.29: ; in Loop: Header=BB0_26 Depth=1
ldr x8, [x19, #48]
ldr x9, [sp, #24]
ldrb w8, [x8, x9]
ldrb w9, [x26]
cmp w8, w9
b.eq LBB0_32
LBB0_30: ; in Loop: Header=BB0_26 Depth=1
subs w27, w27, #1
cset w0, lt
bl _unlikely
cbz x0, LBB0_25
; %bb.31: ; in Loop: Header=BB0_26 Depth=1
bl _cond_resched
ldr w27, [x25]
b LBB0_25
LBB0_32:
add x0, x19, #56
bl _spin_lock
LBB0_33:
sxtw x28, w22
sub w8, w24, #1
sxtw x20, w8
Lloh12:
adrp x21, _SWP_WRITEOK@GOTPAGE
Lloh13:
ldr x21, [x21, _SWP_WRITEOK@GOTPAGEOFF]
Lloh14:
adrp x23, _TTRS_ANYWAY@GOTPAGE
Lloh15:
ldr x23, [x23, _TTRS_ANYWAY@GOTPAGEOFF]
LBB0_34: ; =>This Loop Header: Depth=1
; Child Loop BB0_35 Depth 2
ldr x8, [x19, #64]
cbz x8, LBB0_38
LBB0_35: ; Parent Loop BB0_34 Depth=1
; => This Inner Loop Header: Depth=2
ldr x1, [sp, #24]
mov x0, x19
bl _scan_swap_map_ssd_cluster_conflict
cbz x0, LBB0_38
; %bb.36: ; in Loop: Header=BB0_35 Depth=2
cbnz x28, LBB0_61
; %bb.37: ; in Loop: Header=BB0_35 Depth=2
add x1, sp, #24
add x2, sp, #16
mov x0, x19
bl _scan_swap_map_try_ssd_cluster
cbnz x0, LBB0_35
b LBB0_56
LBB0_38: ; in Loop: Header=BB0_34 Depth=1
ldr w8, [x19]
ldr w9, [x21]
orr w9, w9, w8
cbz w9, LBB0_58
; %bb.39: ; in Loop: Header=BB0_34 Depth=1
ldr x9, [x19, #40]
cbz x9, LBB0_58
; %bb.40: ; in Loop: Header=BB0_34 Depth=1
ldr x1, [sp, #24]
cmp x1, x9
b.ls LBB0_42
; %bb.41: ; in Loop: Header=BB0_34 Depth=1
ldr x1, [x19, #32]
stp x1, x1, [sp, #16]
LBB0_42: ; in Loop: Header=BB0_34 Depth=1
mov x0, x19
bl _lock_cluster
mov x22, x0
bl _vm_swap_full
cbnz x0, LBB0_44
; %bb.43: ; in Loop: Header=BB0_34 Depth=1
ldr x8, [x19, #48]
ldr x9, [sp, #24]
ldrb w10, [x8, x9]
ldrb w11, [x26]
cmp w10, w11
b.ne LBB0_45
LBB0_44: ; in Loop: Header=BB0_34 Depth=1
mov x0, x22
bl _unlock_cluster
add x0, x19, #56
bl _spin_unlock
ldr x1, [sp, #24]
ldr w2, [x23]
mov x0, x19
bl ___try_to_reclaim_swap
mov x22, x0
add x0, x19, #56
bl _spin_lock
cbnz w22, LBB0_34
b LBB0_59
LBB0_45: ; in Loop: Header=BB0_34 Depth=1
cbnz w10, LBB0_60
; %bb.46: ; in Loop: Header=BB0_34 Depth=1
ldr w10, [sp, #4] ; 4-byte Folded Reload
strb w10, [x8, x9]
ldr x1, [x19, #64]
ldr x2, [sp, #24]
mov x0, x19
bl _inc_cluster_info_page
mov x0, x22
bl _unlock_cluster
ldr x1, [sp, #24]
mov x0, x19
mov w2, #1 ; =0x1
bl _swap_range_alloc
ldr x1, [sp, #24]
add x8, x1, #1
str x8, [x19, #8]
ldr w0, [x19, #72]
bl _swp_entry
ldr x8, [sp, #8] ; 8-byte Folded Reload
str w0, [x8, x28, lsl #2]
cmp x28, x20
b.eq LBB0_62
; %bb.47: ; in Loop: Header=BB0_34 Depth=1
add x28, x28, #1
ldr x8, [sp, #24]
ldr x9, [x19, #40]
cmp x8, x9
b.hs LBB0_61
; %bb.48: ; in Loop: Header=BB0_34 Depth=1
subs w27, w27, #1
cset w0, lt
bl _unlikely
cbz x0, LBB0_51
; %bb.49: ; in Loop: Header=BB0_34 Depth=1
cbnz x28, LBB0_61
; %bb.50: ; in Loop: Header=BB0_34 Depth=1
add x0, x19, #56
bl _spin_unlock
bl _cond_resched
add x0, x19, #56
bl _spin_lock
ldr w27, [x25]
LBB0_51: ; in Loop: Header=BB0_34 Depth=1
ldr x8, [x19, #64]
cbz x8, LBB0_53
; %bb.52: ; in Loop: Header=BB0_34 Depth=1
add x1, sp, #24
add x2, sp, #16
mov x0, x19
bl _scan_swap_map_try_ssd_cluster
cbnz x0, LBB0_34
b LBB0_61
LBB0_53: ; in Loop: Header=BB0_34 Depth=1
ldr x8, [sp, #24]
add x9, x8, #1
str x9, [sp, #24]
ldr w8, [x19, #16]
cbz w8, LBB0_61
; %bb.54: ; in Loop: Header=BB0_34 Depth=1
ldr x10, [x19, #48]
ldrb w9, [x10, x9]
cbnz w9, LBB0_61
; %bb.55: ; in Loop: Header=BB0_34 Depth=1
sub w8, w8, #1
str w8, [x19, #16]
b LBB0_34
LBB0_56:
mov w22, #0 ; =0x0
b LBB0_17
LBB0_57:
add x0, x19, #56
bl _spin_lock
ldr w8, [x19]
b LBB0_63
LBB0_58:
mov x22, x28
b LBB0_63
LBB0_59:
mov x22, x28
b LBB0_17
LBB0_60:
mov x0, x22
bl _unlock_cluster
mov w22, #0 ; =0x0
cbz x28, LBB0_17
LBB0_61:
mov x24, x28
LBB0_62:
ldr w8, [x19]
mov x22, x24
LBB0_63:
Lloh16:
adrp x9, _SWP_SCANNING@GOTPAGE
Lloh17:
ldr x9, [x9, _SWP_SCANNING@GOTPAGEOFF]
Lloh18:
ldr w9, [x9]
sub w8, w8, w9
str w8, [x19]
mov x0, x22
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
ldp x20, x19, [sp, #96] ; 16-byte Folded Reload
ldp x22, x21, [sp, #80] ; 16-byte Folded Reload
ldp x24, x23, [sp, #64] ; 16-byte Folded Reload
ldp x26, x25, [sp, #48] ; 16-byte Folded Reload
ldp x28, x27, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #128
ret
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh10, Lloh11
.loh AdrpLdrGot Lloh14, Lloh15
.loh AdrpLdrGot Lloh12, Lloh13
.loh AdrpLdrGotLdr Lloh16, Lloh17, Lloh18
.cfi_endproc
; -- End function
.comm _LATENCY_LIMIT,4,2 ; @LATENCY_LIMIT
.comm _SWAP_BATCH,4,2 ; @SWAP_BATCH
.comm _SWP_SCANNING,8,3 ; @SWP_SCANNING
.comm _SWAPFILE_CLUSTER,4,2 ; @SWAPFILE_CLUSTER
.comm _SWP_WRITEOK,4,2 ; @SWP_WRITEOK
.comm _SWAP_HAS_CACHE,1,0 ; @SWAP_HAS_CACHE
.comm _TTRS_ANYWAY,4,2 ; @TTRS_ANYWAY
.no_dead_strip _scan_swap_map_slots
.subsections_via_symbols
| assembly_file_90626.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _u8log_write_char ## -- Begin function u8log_write_char
.p2align 4, 0x90
_u8log_write_char: ## @u8log_write_char
.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
movl %esi, %r14d
movq %rdi, %r15
leal -9(%r14), %eax
cmpb $4, %al
ja LBB0_6
## %bb.1:
movzbl %al, %eax
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_4:
movb 33(%r15), %al
addb $8, %al
andb $-8, %al
movb %al, 33(%r15)
jmp LBB0_33
LBB0_2:
movb $1, 36(%r15)
movb 34(%r15), %al
movb %al, 35(%r15)
incb %al
movb %al, 34(%r15)
LBB0_3:
movb $0, 33(%r15)
jmp LBB0_33
LBB0_5:
movq 24(%r15), %rdi
movzbl 9(%r15), %eax
movzbl 8(%r15), %ecx
imull %eax, %ecx
decl %ecx
movzwl %cx, %edx
incq %rdx
movl $32, %esi
callq _memset
movb $1, 37(%r15)
jmp LBB0_33
LBB0_6:
movb 8(%r15), %dl
movb 33(%r15), %cl
cmpb %dl, %cl
jae LBB0_8
## %bb.7:
movb 34(%r15), %al
jmp LBB0_9
LBB0_8:
movb $0, 33(%r15)
movb 34(%r15), %al
incb %al
movb %al, 34(%r15)
xorl %ecx, %ecx
LBB0_9:
movb 9(%r15), %bl
cmpb %bl, %al
jae LBB0_10
jmp LBB0_31
.p2align 4, 0x90
LBB0_29: ## in Loop: Header=BB0_10 Depth=1
movzbl 8(%r15), %eax
decl %eax
movzwl %ax, %edx
incq %rdx
movl $32, %esi
callq _memset
movb $1, 37(%r15)
movb 34(%r15), %al
decb %al
movb %al, 34(%r15)
movb 8(%r15), %dl
movb 9(%r15), %bl
cmpb %bl, %al
jb LBB0_30
LBB0_10: ## =>This Loop Header: Depth=1
## Child Loop BB0_15 Depth 2
## Child Loop BB0_18 Depth 2
## Child Loop BB0_23 Depth 2
## Child Loop BB0_27 Depth 2
movq 24(%r15), %rdi
movzbl %dl, %r10d
leaq (%rdi,%r10), %rax
movzbl %bl, %r11d
decl %r11d
imull %r10d, %r11d
movl %r11d, %ecx
decl %ecx
cmpw $31, %cx
jb LBB0_21
## %bb.11: ## in Loop: Header=BB0_10 Depth=1
testb %dl, %dl
je LBB0_21
## %bb.12: ## in Loop: Header=BB0_10 Depth=1
movzwl %cx, %r8d
incq %r8
movl %r8d, %r9d
andl $-32, %r9d
leaq -32(%r9), %rcx
movq %rcx, %rsi
shrq $5, %rsi
incq %rsi
movl %esi, %r12d
andl $3, %r12d
cmpq $96, %rcx
jae LBB0_14
## %bb.13: ## in Loop: Header=BB0_10 Depth=1
xorl %ebx, %ebx
jmp LBB0_16
.p2align 4, 0x90
LBB0_14: ## in Loop: Header=BB0_10 Depth=1
andq $-4, %rsi
leaq 112(%rdi), %rcx
leaq (%rdi,%r10), %rdx
addq $112, %rdx
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_15: ## Parent Loop BB0_10 Depth=1
## => This Inner Loop Header: Depth=2
movups -112(%rdx,%rbx), %xmm0
movups -96(%rdx,%rbx), %xmm1
movups %xmm0, -112(%rcx,%rbx)
movups %xmm1, -96(%rcx,%rbx)
movups -80(%rdx,%rbx), %xmm0
movups -64(%rdx,%rbx), %xmm1
movups %xmm0, -80(%rcx,%rbx)
movups %xmm1, -64(%rcx,%rbx)
movups -48(%rdx,%rbx), %xmm0
movups -32(%rdx,%rbx), %xmm1
movups %xmm0, -48(%rcx,%rbx)
movups %xmm1, -32(%rcx,%rbx)
movups -16(%rdx,%rbx), %xmm0
movups (%rdx,%rbx), %xmm1
movups %xmm0, -16(%rcx,%rbx)
movups %xmm1, (%rcx,%rbx)
subq $-128, %rbx
addq $-4, %rsi
jne LBB0_15
LBB0_16: ## in Loop: Header=BB0_10 Depth=1
testq %r12, %r12
je LBB0_19
## %bb.17: ## in Loop: Header=BB0_10 Depth=1
leaq (%rbx,%r10), %rcx
addq %rdi, %rcx
addq $16, %rcx
leaq (%rdi,%rbx), %rdx
addq $16, %rdx
shlq $5, %r12
xorl %esi, %esi
.p2align 4, 0x90
LBB0_18: ## Parent Loop BB0_10 Depth=1
## => This Inner Loop Header: Depth=2
movups -16(%rcx,%rsi), %xmm0
movups (%rcx,%rsi), %xmm1
movups %xmm0, -16(%rdx,%rsi)
movups %xmm1, (%rdx,%rsi)
addq $32, %rsi
cmpq %rsi, %r12
jne LBB0_18
LBB0_19: ## in Loop: Header=BB0_10 Depth=1
addq %r9, %rdi
cmpq %r9, %r8
je LBB0_29
## %bb.20: ## in Loop: Header=BB0_10 Depth=1
subl %r9d, %r11d
addq %r9, %rax
LBB0_21: ## in Loop: Header=BB0_10 Depth=1
leal -1(%r11), %edx
testb $7, %r11b
je LBB0_25
## %bb.22: ## in Loop: Header=BB0_10 Depth=1
movzwl %r11w, %esi
andl $7, %esi
xorl %ecx, %ecx
.p2align 4, 0x90
LBB0_23: ## Parent Loop BB0_10 Depth=1
## => This Inner Loop Header: Depth=2
movzbl (%rax,%rcx), %ebx
movb %bl, (%rdi,%rcx)
incq %rcx
cmpw %cx, %si
jne LBB0_23
## %bb.24: ## in Loop: Header=BB0_10 Depth=1
addq %rcx, %rdi
addq %rcx, %rax
subl %ecx, %r11d
LBB0_25: ## in Loop: Header=BB0_10 Depth=1
cmpw $7, %dx
jb LBB0_29
## %bb.26: ## in Loop: Header=BB0_10 Depth=1
movzwl %r11w, %ecx
xorl %edx, %edx
.p2align 4, 0x90
LBB0_27: ## Parent Loop BB0_10 Depth=1
## => This Inner Loop Header: Depth=2
movzbl (%rax,%rdx), %ebx
movb %bl, (%rdi,%rdx)
movzbl 1(%rax,%rdx), %ebx
movb %bl, 1(%rdi,%rdx)
movzbl 2(%rax,%rdx), %ebx
movb %bl, 2(%rdi,%rdx)
movzbl 3(%rax,%rdx), %ebx
movb %bl, 3(%rdi,%rdx)
movzbl 4(%rax,%rdx), %ebx
movb %bl, 4(%rdi,%rdx)
movzbl 5(%rax,%rdx), %ebx
movb %bl, 5(%rdi,%rdx)
movzbl 6(%rax,%rdx), %ebx
movb %bl, 6(%rdi,%rdx)
movzbl 7(%rax,%rdx), %ebx
movb %bl, 7(%rdi,%rdx)
addq $8, %rdx
cmpw %dx, %cx
jne LBB0_27
## %bb.28: ## in Loop: Header=BB0_10 Depth=1
addq %rdx, %rdi
jmp LBB0_29
LBB0_30:
movb 33(%r15), %cl
LBB0_31:
movq 24(%r15), %rsi
movzbl %al, %eax
movzbl %dl, %edx
imulq %rax, %rdx
movzbl %cl, %eax
addq %rdx, %rax
movb %r14b, (%rsi,%rax)
incb 33(%r15)
cmpb $0, 32(%r15)
je LBB0_33
## %bb.32:
movb $1, 36(%r15)
movb 34(%r15), %al
movb %al, 35(%r15)
LBB0_33:
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
.long L0_0_set_4
.long L0_0_set_2
.long L0_0_set_6
.long L0_0_set_5
.long L0_0_set_3
.end_data_region
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _u8log_write_char ; -- Begin function u8log_write_char
.p2align 2
_u8log_write_char: ; @u8log_write_char
.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
sub w8, w1, #9
cmp w8, #4
b.hi LBB0_6
; %bb.1:
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:
ldrb w8, [x19, #33]
add w8, w8, #8
and w8, w8, #0xf8
strb w8, [x19, #33]
b LBB0_21
LBB0_3:
mov w8, #1
strb w8, [x19, #36]
ldrb w8, [x19, #34]
strb w8, [x19, #35]
add w8, w8, #1
strb w8, [x19, #34]
LBB0_4:
strb wzr, [x19, #33]
b LBB0_21
LBB0_5:
ldr x0, [x19, #24]
ldrb w8, [x19, #9]
ldrb w9, [x19, #8]
mul w8, w9, w8
sub w8, w8, #1
and x8, x8, #0xffff
add x2, x8, #1
mov w1, #32
bl _memset
mov w8, #1
strb w8, [x19, #37]
b LBB0_21
LBB0_6:
ldrb w8, [x19, #33]
ldrb w10, [x19, #8]
cmp w8, w10
b.hs LBB0_8
; %bb.7:
ldrb w9, [x19, #34]
b LBB0_9
LBB0_8:
mov w8, #0
strb wzr, [x19, #33]
ldrb w9, [x19, #34]
add w9, w9, #1
strb w9, [x19, #34]
LBB0_9:
ldrb w12, [x19, #9]
cmp w12, w9, uxtb
b.hi LBB0_19
; %bb.10:
mov w21, #1
b LBB0_12
LBB0_11: ; in Loop: Header=BB0_12 Depth=1
ldrb w8, [x19, #8]
sub w8, w8, #1
and x8, x8, #0xffff
add x2, x8, #1
mov w1, #32
bl _memset
strb w21, [x19, #37]
ldrb w8, [x19, #34]
sub w9, w8, #1
strb w9, [x19, #34]
ldrb w12, [x19, #9]
ldrb w10, [x19, #8]
cmp w12, w9, uxtb
b.hi LBB0_18
LBB0_12: ; =>This Loop Header: Depth=1
; Child Loop BB0_15 Depth 2
; Child Loop BB0_17 Depth 2
ldr x13, [x19, #24]
and w9, w10, #0xff
and x11, x10, #0xff
add x8, x13, x11
and w12, w12, #0xff
sub w12, w12, #1
mul w9, w12, w9
sub w12, w9, #1
and w14, w12, #0xffff
cmp w14, #63
ccmp w10, #0, #4, hs
b.ne LBB0_14
; %bb.13: ; in Loop: Header=BB0_12 Depth=1
mov x0, x13
b LBB0_17
LBB0_14: ; in Loop: Header=BB0_12 Depth=1
and x10, x12, #0xffff
add x10, x10, #1
and x12, x10, #0x1ffc0
add x0, x13, x12
add x8, x8, x12
sub w9, w9, w12
add x13, x13, #32
mov x14, x12
LBB0_15: ; Parent Loop BB0_12 Depth=1
; => This Inner Loop Header: Depth=2
add x15, x13, x11
ldp q0, q1, [x15, #-32]
ldp q2, q3, [x15]
stp q0, q1, [x13, #-32]
stp q2, q3, [x13], #64
subs x14, x14, #64
b.ne LBB0_15
; %bb.16: ; in Loop: Header=BB0_12 Depth=1
cmp x10, x12
b.eq LBB0_11
LBB0_17: ; Parent Loop BB0_12 Depth=1
; => This Inner Loop Header: Depth=2
ldrb w10, [x8], #1
strb w10, [x0], #1
sub w9, w9, #1
tst w9, #0xffff
b.ne LBB0_17
b LBB0_11
LBB0_18:
ldrb w8, [x19, #33]
LBB0_19:
ldr x11, [x19, #24]
and x9, x9, #0xff
mov w10, w10
mul x9, x9, x10
add x8, x9, w8, uxtw
strb w20, [x11, x8]
ldrb w8, [x19, #33]
add w8, w8, #1
strb w8, [x19, #33]
ldrb w8, [x19, #32]
cbz w8, LBB0_21
; %bb.20:
mov w8, #1
strb w8, [x19, #36]
ldrb w8, [x19, #34]
strb w8, [x19, #35]
LBB0_21:
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 AdrpAdd Lloh0, Lloh1
.cfi_endproc
.section __TEXT,__const
lJTI0_0:
.byte (LBB0_2-LBB0_2)>>2
.byte (LBB0_3-LBB0_2)>>2
.byte (LBB0_6-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_4-LBB0_2)>>2
; -- End function
.subsections_via_symbols
| the_stack_data/20451471.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sldns_str2wire_ipseckey_buf ## -- Begin function sldns_str2wire_ipseckey_buf
.p2align 4, 0x90
_sldns_str2wire_ipseckey_buf: ## @sldns_str2wire_ipseckey_buf
.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
subq $560, %rsp ## imm = 0x230
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -40(%rbp)
movq $0, -576(%rbp)
callq _strlen
leaq -564(%rbp), %rdi
movq %rbx, %rsi
movl %eax, %edx
callq _sldns_buffer_init_frm_data
cmpq $2, (%r12)
ja LBB0_2
## %bb.1:
movq _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
LBB0_23:
movl (%rax), %eax
jmp LBB0_24
LBB0_2:
leaq L_.str(%rip), %rdx
leaq -564(%rbp), %rdi
leaq -560(%rbp), %rsi
movl $512, %ecx ## imm = 0x200
callq _sldns_bget_token
testq %rax, %rax
jle LBB0_3
## %bb.5:
leaq -560(%rbp), %rbx
movq %rbx, %rdi
callq _atoi
movl %eax, (%r14)
leaq L_.str(%rip), %rdx
leaq -564(%rbp), %rdi
movq %rbx, %rsi
movl $512, %ecx ## imm = 0x200
callq _sldns_bget_token
testq %rax, %rax
jle LBB0_3
## %bb.6:
leaq -560(%rbp), %rbx
movq %rbx, %rdi
callq _atoi
movq %rax, %r15
movl %r15d, 4(%r14)
leaq L_.str(%rip), %rdx
leaq -564(%rbp), %rdi
movq %rbx, %rsi
movl $512, %ecx ## imm = 0x200
callq _sldns_bget_token
testq %rax, %rax
jle LBB0_3
## %bb.7:
leaq -560(%rbp), %rbx
movq %rbx, %rdi
callq _atoi
movl %eax, 8(%r14)
leaq L_.str(%rip), %rdx
leaq -564(%rbp), %rdi
movq %rbx, %rsi
movl $512, %ecx ## imm = 0x200
callq _sldns_bget_token
testq %rax, %rax
jle LBB0_3
## %bb.8:
cmpl $3, %r15d
ja LBB0_3
## %bb.9:
movl %r15d, %eax
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_10:
leaq L_.str.1(%rip), %rsi
leaq -560(%rbp), %rdi
callq _strcmp
testq %rax, %rax
je LBB0_11
LBB0_3:
movq _LDNS_WIREPARSE_ERR_INVALID_STR@GOTPCREL(%rip), %rax
LBB0_4:
movl (%rax), %ebx
leaq -564(%rbp), %rdi
callq _sldns_buffer_position
movl %ebx, %edi
movl %eax, %esi
callq _RET_ERR
LBB0_24:
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -40(%rbp), %rcx
jne LBB0_26
## %bb.25:
addq $560, %rsp ## imm = 0x230
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
LBB0_14:
movq (%r12), %rax
addq $-3, %rax
movq %rax, -576(%rbp)
leaq 12(%r14), %rsi
leaq -560(%rbp), %rdi
leaq -576(%rbp), %rdx
callq _sldns_str2wire_a_buf
jmp LBB0_15
LBB0_18:
movq (%r12), %rax
addq $-3, %rax
movq %rax, -576(%rbp)
leaq 12(%r14), %rsi
leaq -560(%rbp), %rdi
leaq -576(%rbp), %rdx
callq _sldns_str2wire_aaaa_buf
jmp LBB0_15
LBB0_19:
movq (%r12), %rax
addq $-3, %rax
movq %rax, -576(%rbp)
leaq 12(%r14), %rsi
leaq -560(%rbp), %rdi
leaq -576(%rbp), %rdx
callq _sldns_str2wire_dname_buf
LBB0_15:
testl %eax, %eax
je LBB0_12
## %bb.16:
movl %eax, %r15d
leaq -564(%rbp), %rdi
callq _sldns_buffer_position
movl %r15d, %edi
LBB0_17:
movl %eax, %esi
callq _RET_ERR_SHIFT
jmp LBB0_24
LBB0_11:
movq $0, -576(%rbp)
LBB0_12:
movq (%r12), %rax
movq -576(%rbp), %rcx
leaq 3(%rcx), %rdx
cmpq %rdx, %rax
jae LBB0_20
## %bb.13:
movq _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
jmp LBB0_4
LBB0_20:
subq %rcx, %rax
addq $-3, %rax
movq %rax, -584(%rbp)
leaq -564(%rbp), %rdi
callq _sldns_buffer_current
movq -576(%rbp), %rcx
leaq (%r14,%rcx,4), %rsi
addq $12, %rsi
leaq -584(%rbp), %rdx
movq %rax, %rdi
callq _sldns_str2wire_b64_buf
testl %eax, %eax
je LBB0_22
## %bb.21:
movl %eax, %r14d
leaq -564(%rbp), %rdi
callq _sldns_buffer_position
movl %r14d, %edi
jmp LBB0_17
LBB0_22:
movq -576(%rbp), %rax
movq -584(%rbp), %rcx
addq %rcx, %rax
addq $3, %rax
movq %rax, (%r12)
movq _LDNS_WIREPARSE_ERR_OK@GOTPCREL(%rip), %rax
jmp LBB0_23
LBB0_26:
callq ___stack_chk_fail
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
.long L0_0_set_10
.long L0_0_set_14
.long L0_0_set_18
.long L0_0_set_19
.end_data_region
## -- End function
.comm _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,2 ## @LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\t\n "
.comm _LDNS_WIREPARSE_ERR_INVALID_STR,4,2 ## @LDNS_WIREPARSE_ERR_INVALID_STR
L_.str.1: ## @.str.1
.asciz "."
.comm _LDNS_WIREPARSE_ERR_OK,4,2 ## @LDNS_WIREPARSE_ERR_OK
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sldns_str2wire_ipseckey_buf ; -- Begin function sldns_str2wire_ipseckey_buf
.p2align 2
_sldns_str2wire_ipseckey_buf: ; @sldns_str2wire_ipseckey_buf
.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, #544
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]
str xzr, [sp, #16]
bl _strlen
mov x2, x0
add x0, sp, #4
mov x1, x21
bl _sldns_buffer_init_frm_data
ldr x8, [x19]
cmp x8, #2
b.hi LBB0_3
; %bb.1:
Lloh3:
adrp x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGE
Lloh4:
ldr x8, [x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGEOFF]
LBB0_2:
ldr w0, [x8]
b LBB0_12
LBB0_3:
Lloh5:
adrp x2, l_.str@PAGE
Lloh6:
add x2, x2, l_.str@PAGEOFF
add x0, sp, #4
add x1, sp, #24
mov w3, #512
bl _sldns_bget_token
cmp x0, #0
b.le LBB0_10
; %bb.4:
add x0, sp, #24
bl _atoi
str w0, [x20]
Lloh7:
adrp x2, l_.str@PAGE
Lloh8:
add x2, x2, l_.str@PAGEOFF
add x0, sp, #4
add x1, sp, #24
mov w3, #512
bl _sldns_bget_token
cmp x0, #0
b.le LBB0_10
; %bb.5:
add x0, sp, #24
bl _atoi
mov x21, x0
str w21, [x20, #4]
Lloh9:
adrp x2, l_.str@PAGE
Lloh10:
add x2, x2, l_.str@PAGEOFF
add x0, sp, #4
add x1, sp, #24
mov w3, #512
bl _sldns_bget_token
cmp x0, #0
b.le LBB0_10
; %bb.6:
add x0, sp, #24
bl _atoi
str w0, [x20, #8]
Lloh11:
adrp x2, l_.str@PAGE
Lloh12:
add x2, x2, l_.str@PAGEOFF
add x0, sp, #4
add x1, sp, #24
mov w3, #512
bl _sldns_bget_token
cmp x0, #0
b.le LBB0_10
; %bb.7:
cmp w21, #3
b.hi LBB0_10
; %bb.8:
mov w8, w21
Lloh13:
adrp x9, lJTI0_0@PAGE
Lloh14:
add x9, x9, lJTI0_0@PAGEOFF
adr x10, LBB0_9
ldrb w11, [x9, x8]
add x10, x10, x11, lsl #2
br x10
LBB0_9:
Lloh15:
adrp x1, l_.str.1@PAGE
Lloh16:
add x1, x1, l_.str.1@PAGEOFF
add x0, sp, #24
bl _strcmp
cbz x0, LBB0_18
LBB0_10:
Lloh17:
adrp x8, _LDNS_WIREPARSE_ERR_INVALID_STR@GOTPAGE
Lloh18:
ldr x8, [x8, _LDNS_WIREPARSE_ERR_INVALID_STR@GOTPAGEOFF]
LBB0_11:
ldr w19, [x8]
add x0, sp, #4
bl _sldns_buffer_position
mov x1, x0
mov x0, x19
bl _RET_ERR
LBB0_12:
ldur x8, [x29, #-40]
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_24
; %bb.13:
add sp, sp, #544
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_14:
ldr x8, [x19]
sub x8, x8, #3
str x8, [sp, #16]
add x1, x20, #12
add x0, sp, #24
add x2, sp, #16
bl _sldns_str2wire_a_buf
cbnz w0, LBB0_17
b LBB0_19
LBB0_15:
ldr x8, [x19]
sub x8, x8, #3
str x8, [sp, #16]
add x1, x20, #12
add x0, sp, #24
add x2, sp, #16
bl _sldns_str2wire_aaaa_buf
cbnz w0, LBB0_17
b LBB0_19
LBB0_16:
ldr x8, [x19]
sub x8, x8, #3
str x8, [sp, #16]
add x1, x20, #12
add x0, sp, #24
add x2, sp, #16
bl _sldns_str2wire_dname_buf
cbz w0, LBB0_19
LBB0_17:
mov x21, x0
add x0, sp, #4
bl _sldns_buffer_position
mov x1, x0
mov x0, x21
bl _RET_ERR_SHIFT
b LBB0_12
LBB0_18:
str xzr, [sp, #16]
LBB0_19:
ldr x8, [x19]
ldr x9, [sp, #16]
add x10, x9, #3
cmp x8, x10
b.hs LBB0_21
; %bb.20:
Lloh22:
adrp x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGE
Lloh23:
ldr x8, [x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGEOFF]
b LBB0_11
LBB0_21:
sub x8, x8, x9
sub x8, x8, #3
str x8, [sp, #8]
add x0, sp, #4
bl _sldns_buffer_current
ldr x8, [sp, #16]
add x8, x20, x8, lsl #2
add x1, x8, #12
add x2, sp, #8
bl _sldns_str2wire_b64_buf
cbz w0, LBB0_23
; %bb.22:
mov x20, x0
add x0, sp, #4
bl _sldns_buffer_position
mov x1, x0
mov x0, x20
bl _RET_ERR_SHIFT
b LBB0_12
LBB0_23:
ldp x9, x8, [sp, #8]
add x8, x8, x9
add x8, x8, #3
str x8, [x19]
Lloh24:
adrp x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGE
Lloh25:
ldr x8, [x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGEOFF]
b LBB0_2
LBB0_24:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpAdd Lloh5, Lloh6
.loh AdrpAdd Lloh7, Lloh8
.loh AdrpAdd Lloh9, Lloh10
.loh AdrpAdd Lloh11, Lloh12
.loh AdrpAdd Lloh13, Lloh14
.loh AdrpAdd Lloh15, Lloh16
.loh AdrpLdrGot Lloh17, Lloh18
.loh AdrpLdrGotLdr Lloh19, Lloh20, Lloh21
.loh AdrpLdrGot Lloh22, Lloh23
.loh AdrpLdrGot Lloh24, Lloh25
.cfi_endproc
.section __TEXT,__const
lJTI0_0:
.byte (LBB0_9-LBB0_9)>>2
.byte (LBB0_14-LBB0_9)>>2
.byte (LBB0_15-LBB0_9)>>2
.byte (LBB0_16-LBB0_9)>>2
; -- End function
.comm _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,2 ; @LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\t\n "
.comm _LDNS_WIREPARSE_ERR_INVALID_STR,4,2 ; @LDNS_WIREPARSE_ERR_INVALID_STR
l_.str.1: ; @.str.1
.asciz "."
.comm _LDNS_WIREPARSE_ERR_OK,4,2 ; @LDNS_WIREPARSE_ERR_OK
.subsections_via_symbols
| AnghaBench/freebsd/contrib/unbound/sldns/extr_str2wire.c_sldns_str2wire_ipseckey_buf.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _Q_rand ## -- Begin function Q_rand
.p2align 4, 0x90
_Q_rand: ## @Q_rand
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
imull $69069, (%rdi), %eax ## imm = 0x10DCD
incl %eax
movl %eax, (%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 _Q_rand ; -- Begin function Q_rand
.p2align 2
_Q_rand: ; @Q_rand
.cfi_startproc
; %bb.0:
ldr w8, [x0]
mov w9, #3533
movk w9, #1, lsl #16
orr w10, wzr, #0x1
madd w8, w8, w9, w10
str w8, [x0]
mov x0, x8
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/Quake-III-Arena/code/game/extr_q_math.c_Q_rand.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 main
LCPI0_0:
.byte 0 ## 0x0
.byte 1 ## 0x1
.byte 2 ## 0x2
.byte 3 ## 0x3
.byte 4 ## 0x4
.byte 5 ## 0x5
.byte 6 ## 0x6
.byte 7 ## 0x7
.byte 8 ## 0x8
.byte 9 ## 0x9
.byte 10 ## 0xa
.byte 11 ## 0xb
.byte 12 ## 0xc
.byte 13 ## 0xd
.byte 14 ## 0xe
.byte 15 ## 0xf
LCPI0_1:
.space 16,16
LCPI0_2:
.space 16,32
LCPI0_3:
.space 16,48
LCPI0_4:
.space 16,64
LCPI0_5:
.space 16,80
LCPI0_6:
.space 16,96
LCPI0_7:
.space 16,112
LCPI0_8:
.space 16,128
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
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 $2097152, %esi ## imm = 0x200000
xorl %edi, %edi
movl $3, %edx
movl $266242, %ecx ## imm = 0x41002
movl $-1, %r8d
xorl %r9d, %r9d
callq _mmap
cmpq $-1, %rax
je LBB0_17
## %bb.1:
movq %rax, %r13
movdqa LCPI0_0(%rip), %xmm2 ## xmm2 = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
movl $112, %eax
movdqa LCPI0_1(%rip), %xmm8 ## xmm8 = [16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16]
movdqa LCPI0_2(%rip), %xmm9 ## xmm9 = [32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]
movdqa LCPI0_3(%rip), %xmm3 ## xmm3 = [48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48]
movdqa LCPI0_4(%rip), %xmm4 ## xmm4 = [64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64]
movdqa LCPI0_5(%rip), %xmm5 ## xmm5 = [80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80]
movdqa LCPI0_6(%rip), %xmm6 ## xmm6 = [96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96]
movdqa LCPI0_7(%rip), %xmm7 ## xmm7 = [112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112]
movdqa LCPI0_8(%rip), %xmm1 ## xmm1 = [128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128]
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movdqu %xmm2, -112(%r13,%rax)
movdqa %xmm2, %xmm0
paddb %xmm8, %xmm0
movdqu %xmm0, -96(%r13,%rax)
movdqa %xmm2, %xmm0
paddb %xmm9, %xmm0
movdqu %xmm0, -80(%r13,%rax)
movdqa %xmm2, %xmm0
paddb %xmm3, %xmm0
movdqu %xmm0, -64(%r13,%rax)
movdqa %xmm2, %xmm0
paddb %xmm4, %xmm0
movdqu %xmm0, -48(%r13,%rax)
movdqa %xmm2, %xmm0
paddb %xmm5, %xmm0
movdqu %xmm0, -32(%r13,%rax)
movdqa %xmm2, %xmm0
paddb %xmm6, %xmm0
movdqu %xmm0, -16(%r13,%rax)
movdqa %xmm2, %xmm0
paddb %xmm7, %xmm0
movdqu %xmm0, (%r13,%rax)
pxor %xmm1, %xmm2
subq $-128, %rax
cmpq $2097264, %rax ## imm = 0x200070
jne LBB0_2
## %bb.3:
leaq L_.str.5(%rip), %rdi
xorl %esi, %esi
xorl %eax, %eax
callq _open
testl %eax, %eax
js LBB0_4
## %bb.5:
movl %eax, %r14d
movq %r13, %rsi
shrq $9, %rsi
andq $-8, %rsi
movl %eax, %edi
xorl %edx, %edx
callq _lseek
leaq -48(%rbp), %rsi
movl $8, %edx
movl %r14d, %edi
callq _read
movl %r14d, %edi
callq _close
movabsq $36028797018963960, %r15 ## imm = 0x7FFFFFFFFFFFF8
orq $7, %r15
andq -48(%rbp), %r15
leaq L_.str.2(%rip), %rdi
movq %r13, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq _printf
leaq L_.str.6(%rip), %rdi
xorl %esi, %esi
xorl %eax, %eax
callq _open
testl %eax, %eax
js LBB0_13
## %bb.6:
movl %eax, %r14d
shlq $3, %r15
movl %eax, %edi
movq %r15, %rsi
xorl %edx, %edx
callq _lseek
leaq -48(%rbp), %rsi
movl $8, %edx
movl %r14d, %edi
callq _read
movl -48(%rbp), %eax
notl %eax
testl $163840, %eax ## imm = 0x28000
jne LBB0_7
## %bb.8:
movl $511, %ebx ## imm = 0x1FF
leaq -48(%rbp), %r12
leaq L_.str.8(%rip), %r15
.p2align 4, 0x90
LBB0_10: ## =>This Inner Loop Header: Depth=1
movl $8, %edx
movl %r14d, %edi
movq %r12, %rsi
callq _read
movq -48(%rbp), %rax
movl %eax, %ecx
notl %ecx
testl $196608, %ecx ## imm = 0x30000
jne LBB0_12
## %bb.11: ## in Loop: Header=BB0_10 Depth=1
andl $163840, %eax ## imm = 0x28000
cmpl $163840, %eax ## imm = 0x28000
je LBB0_12
## %bb.9: ## in Loop: Header=BB0_10 Depth=1
decl %ebx
jne LBB0_10
## %bb.14:
movl %r14d, %edi
callq _close
movl $2097152, %esi ## imm = 0x200000
movq %r13, %rdi
callq _munmap
testl %eax, %eax
jne LBB0_15
LBB0_16:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_17:
callq _main.cold.1
jmp LBB0_16
LBB0_4:
leaq -48(%rbp), %rdi
movq %r13, %rsi
callq _main.cold.2
jmp LBB0_16
LBB0_7:
leaq L_.str.7(%rip), %r15
LBB0_12:
movl %r14d, %edi
callq _close
movq -48(%rbp), %rsi
movq %r15, %rdi
xorl %eax, %eax
callq _printf
LBB0_13:
leaq -48(%rbp), %rdi
movq %r13, %rsi
callq _main.cold.3
jmp LBB0_16
LBB0_15:
callq _main.cold.4
jmp LBB0_16
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function main.cold.1
_main.cold.1: ## @main.cold.1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _perror
pushq $1
popq %rdi
callq _exit
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function main.cold.2
_main.cold.2: ## @main.cold.2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rsi, %rdi
movl $2097152, %esi ## imm = 0x200000
callq _munmap
leaq L_.str.1(%rip), %rdi
callq _perror
pushq $1
popq %rdi
callq _exit
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function main.cold.3
_main.cold.3: ## @main.cold.3
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rsi, %rdi
movl $2097152, %esi ## imm = 0x200000
callq _munmap
leaq L_.str.3(%rip), %rdi
callq _perror
pushq $1
popq %rdi
callq _exit
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function main.cold.4
_main.cold.4: ## @main.cold.4
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str.4(%rip), %rdi
callq _perror
pushq $1
popq %rdi
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "mmap"
L_.str.1: ## @.str.1
.asciz "virt_to_pfn"
L_.str.2: ## @.str.2
.asciz "Returned address is %p whose pfn is %lx\n"
L_.str.3: ## @.str.3
.asciz "check_page_flags"
L_.str.4: ## @.str.4
.asciz "munmap"
L_.str.5: ## @.str.5
.asciz "/proc/self/pagemap"
L_.str.6: ## @.str.6
.asciz "/proc/kpageflags"
L_.str.7: ## @.str.7
.asciz "Head page flags (%lx) is invalid\n"
L_.str.8: ## @.str.8
.asciz "Tail page flags (%lx) is invalid\n"
.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 main
lCPI0_0:
.byte 0 ; 0x0
.byte 1 ; 0x1
.byte 2 ; 0x2
.byte 3 ; 0x3
.byte 4 ; 0x4
.byte 5 ; 0x5
.byte 6 ; 0x6
.byte 7 ; 0x7
.byte 8 ; 0x8
.byte 9 ; 0x9
.byte 10 ; 0xa
.byte 11 ; 0xb
.byte 12 ; 0xc
.byte 13 ; 0xd
.byte 14 ; 0xe
.byte 15 ; 0xf
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
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
mov x0, #0
mov w1, #2097152
mov w2, #3
mov w3, #4098
movk w3, #4, lsl #16
mov w4, #-1
mov x5, #0
bl _mmap
cmn x0, #1
b.eq LBB0_11
; %bb.1:
mov x19, x0
mov x8, #0
Lloh0:
adrp x9, lCPI0_0@PAGE
Lloh1:
ldr q0, [x9, lCPI0_0@PAGEOFF]
movi.16b v1, #16
movi.16b v2, #32
LBB0_2: ; =>This Inner Loop Header: Depth=1
add.16b v3, v0, v1
add x9, x19, x8
stp q0, q3, [x9]
add x8, x8, #32
add.16b v0, v0, v2
cmp x8, #512, lsl #12 ; =2097152
b.ne LBB0_2
; %bb.3:
Lloh2:
adrp x0, l_.str.5@PAGE
Lloh3:
add x0, x0, l_.str.5@PAGEOFF
mov w1, #0
bl _open
tbnz w0, #31, LBB0_12
; %bb.4:
mov x20, x0
lsr x8, x19, #9
and x1, x8, #0x7ffffffffffff8
mov w2, #0
bl _lseek
add x1, sp, #24
mov x0, x20
mov w2, #8
bl _read
mov x0, x20
bl _close
ldr x8, [sp, #24]
and x21, x8, #0x7fffffffffffff
stp x19, x21, [sp]
Lloh4:
adrp x0, l_.str.2@PAGE
Lloh5:
add x0, x0, l_.str.2@PAGEOFF
bl _printf
Lloh6:
adrp x0, l_.str.6@PAGE
Lloh7:
add x0, x0, l_.str.6@PAGEOFF
mov w1, #0
bl _open
tbnz w0, #31, LBB0_15
; %bb.5:
mov x20, x0
mov w22, #32768
movk w22, #2, lsl #16
lsl x1, x21, #3
mov w2, #0
bl _lseek
add x1, sp, #24
mov x0, x20
mov w2, #8
bl _read
ldr w8, [sp, #24]
mvn w8, w8
tst x8, x22
b.ne LBB0_13
; %bb.6:
mov w23, #511
Lloh8:
adrp x21, l_.str.8@PAGE
Lloh9:
add x21, x21, l_.str.8@PAGEOFF
LBB0_7: ; =>This Inner Loop Header: Depth=1
add x1, sp, #24
mov x0, x20
mov w2, #8
bl _read
ldr x8, [sp, #24]
mvn w9, w8
and x9, x9, #0x30000
and x8, x8, x22
cmp x9, #0
ccmp x8, x22, #4, eq
b.eq LBB0_14
; %bb.8: ; in Loop: Header=BB0_7 Depth=1
subs w23, w23, #1
b.ne LBB0_7
; %bb.9:
mov x0, x20
bl _close
mov x0, x19
mov w1, #2097152
bl _munmap
cbnz w0, LBB0_16
; %bb.10:
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
add sp, sp, #96
ret
LBB0_11:
bl _main.cold.1
LBB0_12:
add x0, sp, #24
mov x1, x19
bl _main.cold.2
LBB0_13:
Lloh10:
adrp x21, l_.str.7@PAGE
Lloh11:
add x21, x21, l_.str.7@PAGEOFF
LBB0_14:
mov x0, x20
bl _close
ldr x8, [sp, #24]
str x8, [sp]
mov x0, x21
bl _printf
LBB0_15:
add x0, sp, #24
mov x1, x19
bl _main.cold.3
LBB0_16:
bl _main.cold.4
.loh AdrpLdr Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh10, Lloh11
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function main.cold.1
_main.cold.1: ; @main.cold.1
.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
Lloh12:
adrp x0, l_.str@PAGE
Lloh13:
add x0, x0, l_.str@PAGEOFF
bl _perror
bl _OUTLINED_FUNCTION_0
.loh AdrpAdd Lloh12, Lloh13
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function main.cold.2
_main.cold.2: ; @main.cold.2
.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 _OUTLINED_FUNCTION_1
Lloh14:
adrp x0, l_.str.1@PAGE
Lloh15:
add x0, x0, l_.str.1@PAGEOFF
bl _perror
bl _OUTLINED_FUNCTION_0
.loh AdrpAdd Lloh14, Lloh15
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function main.cold.3
_main.cold.3: ; @main.cold.3
.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 _OUTLINED_FUNCTION_1
Lloh16:
adrp x0, l_.str.3@PAGE
Lloh17:
add x0, x0, l_.str.3@PAGEOFF
bl _perror
bl _OUTLINED_FUNCTION_0
.loh AdrpAdd Lloh16, Lloh17
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function main.cold.4
_main.cold.4: ; @main.cold.4
.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
Lloh18:
adrp x0, l_.str.4@PAGE
Lloh19:
add x0, x0, l_.str.4@PAGEOFF
bl _perror
bl _OUTLINED_FUNCTION_0
.loh AdrpAdd Lloh18, Lloh19
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function OUTLINED_FUNCTION_0
_OUTLINED_FUNCTION_0: ; @OUTLINED_FUNCTION_0 Thunk
.cfi_startproc
; %bb.0:
mov w0, #1
b _exit
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function OUTLINED_FUNCTION_1
_OUTLINED_FUNCTION_1: ; @OUTLINED_FUNCTION_1 Thunk
.cfi_startproc
; %bb.0:
mov x0, x1
mov w1, #2097152
b _munmap
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "mmap"
l_.str.1: ; @.str.1
.asciz "virt_to_pfn"
l_.str.2: ; @.str.2
.asciz "Returned address is %p whose pfn is %lx\n"
l_.str.3: ; @.str.3
.asciz "check_page_flags"
l_.str.4: ; @.str.4
.asciz "munmap"
l_.str.5: ; @.str.5
.asciz "/proc/self/pagemap"
l_.str.6: ; @.str.6
.asciz "/proc/kpageflags"
l_.str.7: ; @.str.7
.asciz "Head page flags (%lx) is invalid\n"
l_.str.8: ; @.str.8
.asciz "Tail page flags (%lx) is invalid\n"
.subsections_via_symbols
| the_stack_data/82818.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function bcm63xx_gpio_out_low_reg_init
_bcm63xx_gpio_out_low_reg_init: ## @bcm63xx_gpio_out_low_reg_init
.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
callq _bcm63xx_get_cpu_id
cmpl $128, %eax
jne LBB0_1
## %bb.2:
movq _GPIO_DATA_LO_REG_6345@GOTPCREL(%rip), %rax
jmp LBB0_3
LBB0_1:
movq _GPIO_DATA_LO_REG@GOTPCREL(%rip), %rax
LBB0_3:
movl (%rax), %eax
movq _gpio_out_low_reg@GOTPCREL(%rip), %rcx
movl %eax, (%rcx)
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _GPIO_DATA_LO_REG_6345,4,2 ## @GPIO_DATA_LO_REG_6345
.comm _gpio_out_low_reg,4,2 ## @gpio_out_low_reg
.comm _GPIO_DATA_LO_REG,4,2 ## @GPIO_DATA_LO_REG
.no_dead_strip _bcm63xx_gpio_out_low_reg_init
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function bcm63xx_gpio_out_low_reg_init
_bcm63xx_gpio_out_low_reg_init: ; @bcm63xx_gpio_out_low_reg_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 _bcm63xx_get_cpu_id
Lloh0:
adrp x8, _GPIO_DATA_LO_REG_6345@GOTPAGE
Lloh1:
ldr x8, [x8, _GPIO_DATA_LO_REG_6345@GOTPAGEOFF]
Lloh2:
adrp x9, _GPIO_DATA_LO_REG@GOTPAGE
Lloh3:
ldr x9, [x9, _GPIO_DATA_LO_REG@GOTPAGEOFF]
cmp w0, #128
csel x8, x8, x9, eq
ldr w8, [x8]
Lloh4:
adrp x9, _gpio_out_low_reg@GOTPAGE
Lloh5:
ldr x9, [x9, _gpio_out_low_reg@GOTPAGEOFF]
Lloh6:
str w8, [x9]
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotStr Lloh4, Lloh5, Lloh6
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _GPIO_DATA_LO_REG_6345,4,2 ; @GPIO_DATA_LO_REG_6345
.comm _gpio_out_low_reg,4,2 ; @gpio_out_low_reg
.comm _GPIO_DATA_LO_REG,4,2 ; @GPIO_DATA_LO_REG
.no_dead_strip _bcm63xx_gpio_out_low_reg_init
.subsections_via_symbols
| AnghaBench/linux/arch/mips/bcm63xx/extr_gpio.c_bcm63xx_gpio_out_low_reg_init.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _GeneticParentsAndChildSelection ## -- Begin function GeneticParentsAndChildSelection
.p2align 4, 0x90
_GeneticParentsAndChildSelection: ## @GeneticParentsAndChildSelection
.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 %r8, %r15
movq %rcx, %r14
movq %rdx, %rbx
cmpl $256, %edi ## imm = 0x100
jle LBB0_2
## %bb.1:
leaq L_.str(%rip), %rsi
jmp LBB0_4
LBB0_2:
testl %edi, %edi
js LBB0_3
.p2align 4, 0x90
LBB0_5: ## =>This Inner Loop Header: Depth=1
jmp LBB0_5
LBB0_3:
leaq L_.str.1(%rip), %rsi
LBB0_4:
movq _botimport@GOTPCREL(%rip), %rax
movq _PRT_WARNING@GOTPCREL(%rip), %rcx
movl (%rcx), %edi
callq *(%rax)
movl $0, (%r15)
movl $0, (%r14)
movl $0, (%rbx)
movq _qfalse@GOTPCREL(%rip), %rax
movl (%rax), %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _botimport,8,3 ## @botimport
.comm _PRT_WARNING,4,2 ## @PRT_WARNING
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "GeneticParentsAndChildSelection: too many bots\n"
.comm _qfalse,4,2 ## @qfalse
L_.str.1: ## @.str.1
.asciz "GeneticParentsAndChildSelection: too few valid bots\n"
.comm _qtrue,4,2 ## @qtrue
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _GeneticParentsAndChildSelection ; -- Begin function GeneticParentsAndChildSelection
.p2align 2
_GeneticParentsAndChildSelection: ; @GeneticParentsAndChildSelection
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
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 x21, x4
mov x20, x3
mov x19, x2
cmp w0, #256
b.le LBB0_2
; %bb.1:
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
b LBB0_5
LBB0_2:
tbnz w0, #31, LBB0_4
LBB0_3: ; =>This Inner Loop Header: Depth=1
b LBB0_3
LBB0_4:
Lloh2:
adrp x1, l_.str.1@PAGE
Lloh3:
add x1, x1, l_.str.1@PAGEOFF
LBB0_5:
Lloh4:
adrp x8, _botimport@GOTPAGE
Lloh5:
ldr x8, [x8, _botimport@GOTPAGEOFF]
Lloh6:
ldr x8, [x8]
Lloh7:
adrp x9, _PRT_WARNING@GOTPAGE
Lloh8:
ldr x9, [x9, _PRT_WARNING@GOTPAGEOFF]
Lloh9:
ldr w0, [x9]
blr x8
str wzr, [x21]
str wzr, [x20]
str wzr, [x19]
Lloh10:
adrp x8, _qfalse@GOTPAGE
Lloh11:
ldr x8, [x8, _qfalse@GOTPAGEOFF]
Lloh12:
ldr w0, [x8]
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 AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.cfi_endproc
; -- End function
.comm _botimport,8,3 ; @botimport
.comm _PRT_WARNING,4,2 ; @PRT_WARNING
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "GeneticParentsAndChildSelection: too many bots\n"
.comm _qfalse,4,2 ; @qfalse
l_.str.1: ; @.str.1
.asciz "GeneticParentsAndChildSelection: too few valid bots\n"
.comm _qtrue,4,2 ; @qtrue
.subsections_via_symbols
| assembly_file_149637.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _g_eli_mkey_hmac ## -- Begin function g_eli_mkey_hmac
.p2align 4, 0x90
_g_eli_mkey_hmac: ## @g_eli_mkey_hmac
.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
subq $16, %rsp
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %r12
movq %rdi, %r14
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -40(%rbp)
movq _SHA512_MDLEN@GOTPCREL(%rip), %rax
movl (%rax), %r15d
movq %r15, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %rbx
movq _G_ELI_USERKEYLEN@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq l_.str(%rip), %rdx
movq %r12, %rdi
movl $1, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
xorl %eax, %eax
callq _g_eli_crypto_hmac
movq _G_ELI_DATAIVKEYLEN@GOTPCREL(%rip), %rax
movslq (%rax), %rcx
movq %rcx, %r8
addq %r14, %r8
movq %rbx, %rdi
movl %r15d, %esi
movq %r14, %rdx
## kill: def $ecx killed $ecx killed $rcx
xorl %r9d, %r9d
xorl %eax, %eax
callq _g_eli_crypto_hmac
movq %rbx, %rdi
movl %r15d, %esi
callq _explicit_bzero
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -40(%rbp), %rax
jne LBB0_2
## %bb.1:
leaq -32(%rbp), %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _SHA512_MDLEN,4,2 ## @SHA512_MDLEN
.comm _G_ELI_USERKEYLEN,4,2 ## @G_ELI_USERKEYLEN
.section __TEXT,__const
l_.str: ## @.str
.space 2
.comm _G_ELI_DATAIVKEYLEN,4,2 ## @G_ELI_DATAIVKEYLEN
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _g_eli_mkey_hmac ; -- Begin function g_eli_mkey_hmac
.p2align 2
_g_eli_mkey_hmac: ; @g_eli_mkey_hmac
.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, #16
mov x8, x1
mov x19, x0
Lloh0:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
stur x9, [x29, #-40]
Lloh3:
adrp x9, _SHA512_MDLEN@GOTPAGE
Lloh4:
ldr x9, [x9, _SHA512_MDLEN@GOTPAGEOFF]
Lloh5:
ldr w20, [x9]
mov x9, x20
Lloh6:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh7:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x9, sp
add x10, x20, #15
and x10, x10, #0x1fffffff0
sub x21, x9, x10
mov sp, x21
Lloh8:
adrp x9, _G_ELI_USERKEYLEN@GOTPAGE
Lloh9:
ldr x9, [x9, _G_ELI_USERKEYLEN@GOTPAGEOFF]
Lloh10:
ldr w1, [x9]
sub sp, sp, #32
stp x21, xzr, [sp, #16]
mov w9, #1
Lloh11:
adrp x10, l_.str@PAGE
Lloh12:
add x10, x10, l_.str@PAGEOFF
stp x10, x9, [sp]
mov x0, x8
bl _g_eli_crypto_hmac
add sp, sp, #32
Lloh13:
adrp x8, _G_ELI_DATAIVKEYLEN@GOTPAGE
Lloh14:
ldr x8, [x8, _G_ELI_DATAIVKEYLEN@GOTPAGEOFF]
Lloh15:
ldrsw x8, [x8]
add x9, x19, x8
sub sp, sp, #32
stp x9, xzr, [sp, #16]
stp x19, x8, [sp]
mov x0, x21
mov x1, x20
bl _g_eli_crypto_hmac
add sp, sp, #32
mov x0, x21
mov x1, x20
bl _explicit_bzero
ldur x8, [x29, #-40]
Lloh16:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh17:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_2
; %bb.1:
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_2:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh16, Lloh17, Lloh18
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpAdd Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _SHA512_MDLEN,4,2 ; @SHA512_MDLEN
.comm _G_ELI_USERKEYLEN,4,2 ; @G_ELI_USERKEYLEN
.section __TEXT,__const
l_.str: ; @.str
.space 2
.comm _G_ELI_DATAIVKEYLEN,4,2 ; @G_ELI_DATAIVKEYLEN
.subsections_via_symbols
| AnghaBench/freebsd/sys/geom/eli/extr_g_eli_key.c_g_eli_mkey_hmac.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 $24, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq _device1@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq -56(%rbp), %rdi
xorl %edx, %edx
callq _nn_thread_init
movq _AF_SP@GOTPCREL(%rip), %r14
movl (%r14), %edi
movq _NN_PAIR@GOTPCREL(%rip), %rbx
movl (%rbx), %esi
callq _test_socket
movl %eax, %r15d
movq _SOCKET_ADDRESS_A@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl %r15d, %edi
callq _test_connect
movl (%r14), %edi
movl (%rbx), %esi
callq _test_socket
movl %eax, %ebx
movq _SOCKET_ADDRESS_B@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl %ebx, %edi
callq _test_connect
leaq L_.str(%rip), %r12
movl %r15d, %edi
movq %r12, %rsi
callq _test_send
movl %ebx, %edi
movq %r12, %rsi
callq _test_recv
movl %ebx, %edi
movq %r12, %rsi
callq _test_send
movl %r15d, %edi
movq %r12, %rsi
callq _test_recv
movl %ebx, %edi
callq _test_close
movl %r15d, %edi
callq _test_close
movq _device2@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq -48(%rbp), %rdi
xorl %edx, %edx
callq _nn_thread_init
movl (%r14), %edi
movq _NN_PUSH@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _test_socket
movl %eax, %r12d
movq _SOCKET_ADDRESS_C@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl %r12d, %edi
callq _test_connect
movl (%r14), %edi
movq _NN_PULL@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _test_socket
movl %eax, %ebx
movq _SOCKET_ADDRESS_D@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl %ebx, %edi
callq _test_connect
leaq L_.str.1(%rip), %r13
movl %r12d, %edi
movq %r13, %rsi
callq _test_send
movl %ebx, %edi
movq %r13, %rsi
callq _test_recv
movl %ebx, %edi
callq _test_close
movl %r12d, %edi
callq _test_close
movq _device3@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq -64(%rbp), %r12
movq %r12, %rdi
xorl %edx, %edx
callq _nn_thread_init
movl (%r14), %edi
movq _NN_BUS@GOTPCREL(%rip), %r13
movl (%r13), %esi
callq _test_socket
movl %eax, %ebx
movq _SOCKET_ADDRESS_E@GOTPCREL(%rip), %r15
movl (%r15), %esi
movl %eax, %edi
callq _test_connect
movl (%r14), %edi
movl (%r13), %esi
callq _test_socket
movl %eax, %r13d
movl (%r15), %esi
movl %eax, %edi
callq _test_connect
movl $100, %edi
callq _nn_sleep
leaq L_.str.2(%rip), %r14
movl %ebx, %edi
movq %r14, %rsi
callq _test_send
movl %r13d, %edi
movq %r14, %rsi
callq _test_recv
movl $100, -60(%rbp)
movq _NN_SOL_SOCKET@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _NN_RCVTIMEO@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -60(%rbp), %rcx
movl %ebx, %edi
movl $4, %r8d
callq _test_setsockopt
movq _ETIMEDOUT@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl %ebx, %edi
callq _test_drop
movl %r13d, %edi
callq _test_close
movl %ebx, %edi
callq _test_close
xorl %eax, %eax
callq _nn_term
leaq -56(%rbp), %rdi
callq _nn_thread_term
leaq -48(%rbp), %rdi
callq _nn_thread_term
movq %r12, %rdi
callq _nn_thread_term
xorl %eax, %eax
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _device1,4,2 ## @device1
.comm _AF_SP,4,2 ## @AF_SP
.comm _NN_PAIR,4,2 ## @NN_PAIR
.comm _SOCKET_ADDRESS_A,4,2 ## @SOCKET_ADDRESS_A
.comm _SOCKET_ADDRESS_B,4,2 ## @SOCKET_ADDRESS_B
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "ABC"
.comm _device2,4,2 ## @device2
.comm _NN_PUSH,4,2 ## @NN_PUSH
.comm _SOCKET_ADDRESS_C,4,2 ## @SOCKET_ADDRESS_C
.comm _NN_PULL,4,2 ## @NN_PULL
.comm _SOCKET_ADDRESS_D,4,2 ## @SOCKET_ADDRESS_D
L_.str.1: ## @.str.1
.asciz "XYZ"
.comm _device3,4,2 ## @device3
.comm _NN_BUS,4,2 ## @NN_BUS
.comm _SOCKET_ADDRESS_E,4,2 ## @SOCKET_ADDRESS_E
L_.str.2: ## @.str.2
.asciz "KLM"
.comm _NN_SOL_SOCKET,4,2 ## @NN_SOL_SOCKET
.comm _NN_RCVTIMEO,4,2 ## @NN_RCVTIMEO
.comm _ETIMEDOUT,4,2 ## @ETIMEDOUT
.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, #80
.cfi_def_cfa_offset 80
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
Lloh0:
adrp x8, _device1@GOTPAGE
Lloh1:
ldr x8, [x8, _device1@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
add x0, sp, #24
mov x2, #0
bl _nn_thread_init
Lloh3:
adrp x22, _AF_SP@GOTPAGE
Lloh4:
ldr x22, [x22, _AF_SP@GOTPAGEOFF]
ldr w0, [x22]
Lloh5:
adrp x20, _NN_PAIR@GOTPAGE
Lloh6:
ldr x20, [x20, _NN_PAIR@GOTPAGEOFF]
ldr w1, [x20]
bl _test_socket
mov x19, x0
Lloh7:
adrp x8, _SOCKET_ADDRESS_A@GOTPAGE
Lloh8:
ldr x8, [x8, _SOCKET_ADDRESS_A@GOTPAGEOFF]
Lloh9:
ldr w1, [x8]
bl _test_connect
ldr w0, [x22]
ldr w1, [x20]
bl _test_socket
mov x20, x0
Lloh10:
adrp x8, _SOCKET_ADDRESS_B@GOTPAGE
Lloh11:
ldr x8, [x8, _SOCKET_ADDRESS_B@GOTPAGEOFF]
Lloh12:
ldr w1, [x8]
bl _test_connect
Lloh13:
adrp x21, l_.str@PAGE
Lloh14:
add x21, x21, l_.str@PAGEOFF
mov x0, x19
mov x1, x21
bl _test_send
mov x0, x20
mov x1, x21
bl _test_recv
mov x0, x20
mov x1, x21
bl _test_send
mov x0, x19
mov x1, x21
bl _test_recv
mov x0, x20
bl _test_close
mov x0, x19
bl _test_close
Lloh15:
adrp x8, _device2@GOTPAGE
Lloh16:
ldr x8, [x8, _device2@GOTPAGEOFF]
Lloh17:
ldr w1, [x8]
add x0, sp, #16
mov x2, #0
bl _nn_thread_init
ldr w0, [x22]
Lloh18:
adrp x8, _NN_PUSH@GOTPAGE
Lloh19:
ldr x8, [x8, _NN_PUSH@GOTPAGEOFF]
Lloh20:
ldr w1, [x8]
bl _test_socket
mov x19, x0
Lloh21:
adrp x8, _SOCKET_ADDRESS_C@GOTPAGE
Lloh22:
ldr x8, [x8, _SOCKET_ADDRESS_C@GOTPAGEOFF]
Lloh23:
ldr w1, [x8]
bl _test_connect
ldr w0, [x22]
Lloh24:
adrp x8, _NN_PULL@GOTPAGE
Lloh25:
ldr x8, [x8, _NN_PULL@GOTPAGEOFF]
Lloh26:
ldr w1, [x8]
bl _test_socket
mov x20, x0
Lloh27:
adrp x8, _SOCKET_ADDRESS_D@GOTPAGE
Lloh28:
ldr x8, [x8, _SOCKET_ADDRESS_D@GOTPAGEOFF]
Lloh29:
ldr w1, [x8]
bl _test_connect
Lloh30:
adrp x21, l_.str.1@PAGE
Lloh31:
add x21, x21, l_.str.1@PAGEOFF
mov x0, x19
mov x1, x21
bl _test_send
mov x0, x20
mov x1, x21
bl _test_recv
mov x0, x20
bl _test_close
mov x0, x19
bl _test_close
Lloh32:
adrp x8, _device3@GOTPAGE
Lloh33:
ldr x8, [x8, _device3@GOTPAGEOFF]
Lloh34:
ldr w1, [x8]
add x0, sp, #8
mov x2, #0
bl _nn_thread_init
ldr w0, [x22]
Lloh35:
adrp x20, _NN_BUS@GOTPAGE
Lloh36:
ldr x20, [x20, _NN_BUS@GOTPAGEOFF]
ldr w1, [x20]
bl _test_socket
mov x19, x0
Lloh37:
adrp x21, _SOCKET_ADDRESS_E@GOTPAGE
Lloh38:
ldr x21, [x21, _SOCKET_ADDRESS_E@GOTPAGEOFF]
ldr w1, [x21]
bl _test_connect
ldr w0, [x22]
ldr w1, [x20]
bl _test_socket
mov x20, x0
ldr w1, [x21]
bl _test_connect
mov w22, #100
mov w0, #100
bl _nn_sleep
Lloh39:
adrp x21, l_.str.2@PAGE
Lloh40:
add x21, x21, l_.str.2@PAGEOFF
mov x0, x19
mov x1, x21
bl _test_send
mov x0, x20
mov x1, x21
bl _test_recv
str w22, [sp, #4]
Lloh41:
adrp x8, _NN_SOL_SOCKET@GOTPAGE
Lloh42:
ldr x8, [x8, _NN_SOL_SOCKET@GOTPAGEOFF]
Lloh43:
ldr w1, [x8]
Lloh44:
adrp x8, _NN_RCVTIMEO@GOTPAGE
Lloh45:
ldr x8, [x8, _NN_RCVTIMEO@GOTPAGEOFF]
Lloh46:
ldr w2, [x8]
add x3, sp, #4
mov x0, x19
mov w4, #4
bl _test_setsockopt
Lloh47:
adrp x8, _ETIMEDOUT@GOTPAGE
Lloh48:
ldr x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh49:
ldr w1, [x8]
mov x0, x19
bl _test_drop
mov x0, x20
bl _test_close
mov x0, x19
bl _test_close
bl _nn_term
add x0, sp, #24
bl _nn_thread_term
add x0, sp, #16
bl _nn_thread_term
add x0, sp, #8
bl _nn_thread_term
mov w0, #0
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
add sp, sp, #80
ret
.loh AdrpLdrGotLdr Lloh47, Lloh48, Lloh49
.loh AdrpLdrGotLdr Lloh44, Lloh45, Lloh46
.loh AdrpLdrGotLdr Lloh41, Lloh42, Lloh43
.loh AdrpAdd Lloh39, Lloh40
.loh AdrpLdrGot Lloh37, Lloh38
.loh AdrpLdrGot Lloh35, Lloh36
.loh AdrpLdrGotLdr Lloh32, Lloh33, Lloh34
.loh AdrpAdd Lloh30, Lloh31
.loh AdrpLdrGotLdr Lloh27, Lloh28, Lloh29
.loh AdrpLdrGotLdr Lloh24, Lloh25, Lloh26
.loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23
.loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20
.loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17
.loh AdrpAdd Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _device1,4,2 ; @device1
.comm _AF_SP,4,2 ; @AF_SP
.comm _NN_PAIR,4,2 ; @NN_PAIR
.comm _SOCKET_ADDRESS_A,4,2 ; @SOCKET_ADDRESS_A
.comm _SOCKET_ADDRESS_B,4,2 ; @SOCKET_ADDRESS_B
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "ABC"
.comm _device2,4,2 ; @device2
.comm _NN_PUSH,4,2 ; @NN_PUSH
.comm _SOCKET_ADDRESS_C,4,2 ; @SOCKET_ADDRESS_C
.comm _NN_PULL,4,2 ; @NN_PULL
.comm _SOCKET_ADDRESS_D,4,2 ; @SOCKET_ADDRESS_D
l_.str.1: ; @.str.1
.asciz "XYZ"
.comm _device3,4,2 ; @device3
.comm _NN_BUS,4,2 ; @NN_BUS
.comm _SOCKET_ADDRESS_E,4,2 ; @SOCKET_ADDRESS_E
l_.str.2: ; @.str.2
.asciz "KLM"
.comm _NN_SOL_SOCKET,4,2 ; @NN_SOL_SOCKET
.comm _NN_RCVTIMEO,4,2 ; @NN_RCVTIMEO
.comm _ETIMEDOUT,4,2 ; @ETIMEDOUT
.subsections_via_symbols
| AnghaBench/nanomsg/tests/extr_device.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 tSQLKeywordCode
LCPI0_0:
.space 16,159
LCPI0_1:
.space 16,25
LCPI0_2:
.space 16,223
LCPI0_3:
.byte 159 ## 0x9f
.byte 159 ## 0x9f
.byte 159 ## 0x9f
.byte 159 ## 0x9f
.byte 159 ## 0x9f
.byte 159 ## 0x9f
.byte 159 ## 0x9f
.byte 159 ## 0x9f
.space 1
.space 1
.space 1
.space 1
.space 1
.space 1
.space 1
.space 1
LCPI0_4:
.byte 26 ## 0x1a
.byte 26 ## 0x1a
.byte 26 ## 0x1a
.byte 26 ## 0x1a
.byte 26 ## 0x1a
.byte 26 ## 0x1a
.byte 26 ## 0x1a
.byte 26 ## 0x1a
.space 1
.space 1
.space 1
.space 1
.space 1
.space 1
.space 1
.space 1
LCPI0_5:
.byte 223 ## 0xdf
.byte 223 ## 0xdf
.byte 223 ## 0xdf
.byte 223 ## 0xdf
.byte 223 ## 0xdf
.byte 223 ## 0xdf
.byte 223 ## 0xdf
.byte 223 ## 0xdf
.space 1
.space 1
.space 1
.space 1
.space 1
.space 1
.space 1
.space 1
.section __TEXT,__text,regular,pure_instructions
.globl _tSQLKeywordCode
.p2align 4, 0x90
_tSQLKeywordCode: ## @tSQLKeywordCode
.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 $152, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %esi, %r14d
movq %rdi, %rbx
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
cmpb $0, _tSQLKeywordCode.needInit(%rip)
jne LBB0_7
## %bb.1:
movq _mutex@GOTPCREL(%rip), %rdi
callq _pthread_mutex_lock
cmpb $0, _tSQLKeywordCode.needInit(%rip)
jne LBB0_6
## %bb.2:
movl %r14d, -180(%rbp) ## 4-byte Spill
movq _keywordTable@GOTPCREL(%rip), %r12
movq (%r12), %rdi
callq _tListLen
movl %eax, %r15d
movq _POINTER_BYTES@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _taosHashStringStep1@GOTPCREL(%rip), %rax
movl (%rax), %edx
movl %r15d, %edi
callq _taosInitStrHash
movq _KeywordHashTable@GOTPCREL(%rip), %rcx
movl %eax, (%rcx)
testl %r15d, %r15d
jle LBB0_5
## %bb.3:
movl %r15d, %r14d
shlq $4, %r14
xorl %r13d, %r13d
leaq -176(%rbp), %r15
.p2align 4, 0x90
LBB0_4: ## =>This Inner Loop Header: Depth=1
movq (%r12), %rax
movq (%rax,%r13), %rdi
callq _strlen
movq (%r12), %rcx
leaq (%rcx,%r13), %rdx
movl %eax, 8(%rcx,%r13)
movq %rdx, -176(%rbp)
movq _KeywordHashTable@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq (%rcx,%r13), %rsi
movq %r15, %rdx
callq _taosAddStrHash
addq $16, %r13
cmpq %r13, %r14
jne LBB0_4
LBB0_5:
movb $1, _tSQLKeywordCode.needInit(%rip)
movl -180(%rbp), %r14d ## 4-byte Reload
LBB0_6:
movq _mutex@GOTPCREL(%rip), %rdi
callq _pthread_mutex_unlock
LBB0_7:
pxor %xmm0, %xmm0
movdqa %xmm0, -64(%rbp)
movdqa %xmm0, -80(%rbp)
movdqa %xmm0, -96(%rbp)
movdqa %xmm0, -112(%rbp)
movdqa %xmm0, -128(%rbp)
movdqa %xmm0, -144(%rbp)
movdqa %xmm0, -160(%rbp)
movdqa %xmm0, -176(%rbp)
testl %r14d, %r14d
jle LBB0_24
## %bb.8:
movl %r14d, %r8d
cmpl $8, %r14d
jae LBB0_11
## %bb.9:
xorl %ecx, %ecx
jmp LBB0_10
LBB0_11:
cmpl $32, %r14d
jae LBB0_13
## %bb.12:
xorl %ecx, %ecx
jmp LBB0_21
LBB0_13:
movl %r8d, %ecx
andl $-32, %ecx
leaq -32(%rcx), %rdx
movq %rdx, %rsi
shrq $5, %rsi
incq %rsi
testq %rdx, %rdx
je LBB0_14
## %bb.15:
movq %rsi, %rdi
andq $-2, %rdi
xorl %edx, %edx
movdqa LCPI0_0(%rip), %xmm8 ## xmm8 = [159,159,159,159,159,159,159,159,159,159,159,159,159,159,159,159]
movdqa LCPI0_1(%rip), %xmm3 ## xmm3 = [25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25]
movdqa LCPI0_2(%rip), %xmm4 ## xmm4 = [223,223,223,223,223,223,223,223,223,223,223,223,223,223,223,223]
.p2align 4, 0x90
LBB0_16: ## =>This Inner Loop Header: Depth=1
movdqu (%rbx,%rdx), %xmm5
movdqu 16(%rbx,%rdx), %xmm2
movdqa %xmm5, %xmm1
paddb %xmm8, %xmm1
movdqa %xmm2, %xmm7
paddb %xmm8, %xmm7
movdqa %xmm1, %xmm0
pminub %xmm3, %xmm0
pcmpeqb %xmm1, %xmm0
movdqa %xmm7, %xmm1
pminub %xmm3, %xmm1
pcmpeqb %xmm7, %xmm1
movdqa %xmm5, %xmm7
pand %xmm4, %xmm7
movdqa %xmm2, %xmm6
pand %xmm4, %xmm6
pblendvb %xmm0, %xmm7, %xmm5
movdqa %xmm1, %xmm0
pblendvb %xmm0, %xmm6, %xmm2
movdqa %xmm5, -176(%rbp,%rdx)
movdqa %xmm2, -160(%rbp,%rdx)
movdqu 32(%rbx,%rdx), %xmm2
movdqu 48(%rbx,%rdx), %xmm5
movdqa %xmm2, %xmm1
paddb %xmm8, %xmm1
movdqa %xmm5, %xmm6
paddb %xmm8, %xmm6
movdqa %xmm1, %xmm0
pminub %xmm3, %xmm0
pcmpeqb %xmm1, %xmm0
movdqa %xmm6, %xmm1
pminub %xmm3, %xmm1
pcmpeqb %xmm6, %xmm1
movdqa %xmm2, %xmm6
pand %xmm4, %xmm6
movdqa %xmm5, %xmm7
pand %xmm4, %xmm7
pblendvb %xmm0, %xmm6, %xmm2
movdqa %xmm1, %xmm0
pblendvb %xmm0, %xmm7, %xmm5
movdqa %xmm2, -144(%rbp,%rdx)
movdqa %xmm5, -128(%rbp,%rdx)
addq $64, %rdx
addq $-2, %rdi
jne LBB0_16
## %bb.17:
testb $1, %sil
je LBB0_19
LBB0_18:
movdqu (%rbx,%rdx), %xmm2
movdqu 16(%rbx,%rdx), %xmm3
movdqa LCPI0_0(%rip), %xmm4 ## xmm4 = [159,159,159,159,159,159,159,159,159,159,159,159,159,159,159,159]
movdqa %xmm2, %xmm5
paddb %xmm4, %xmm5
paddb %xmm3, %xmm4
movdqa LCPI0_1(%rip), %xmm1 ## xmm1 = [25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25]
movdqa %xmm5, %xmm0
pminub %xmm1, %xmm0
pcmpeqb %xmm5, %xmm0
pminub %xmm4, %xmm1
pcmpeqb %xmm4, %xmm1
movdqa LCPI0_2(%rip), %xmm4 ## xmm4 = [223,223,223,223,223,223,223,223,223,223,223,223,223,223,223,223]
movdqa %xmm2, %xmm5
pand %xmm4, %xmm5
pand %xmm3, %xmm4
pblendvb %xmm0, %xmm5, %xmm2
movdqa %xmm1, %xmm0
pblendvb %xmm0, %xmm4, %xmm3
movdqa %xmm2, -176(%rbp,%rdx)
movdqa %xmm3, -160(%rbp,%rdx)
LBB0_19:
cmpq %r8, %rcx
je LBB0_24
## %bb.20:
testb $24, %r8b
je LBB0_10
LBB0_21:
movq %rcx, %rdx
movl %r8d, %ecx
andl $-8, %ecx
movdqa LCPI0_3(%rip), %xmm1 ## xmm1 = <159,159,159,159,159,159,159,159,u,u,u,u,u,u,u,u>
movdqa LCPI0_4(%rip), %xmm2 ## xmm2 = <26,26,26,26,26,26,26,26,u,u,u,u,u,u,u,u>
movdqa LCPI0_5(%rip), %xmm3 ## xmm3 = <223,223,223,223,223,223,223,223,u,u,u,u,u,u,u,u>
.p2align 4, 0x90
LBB0_22: ## =>This Inner Loop Header: Depth=1
movq (%rbx,%rdx), %xmm4 ## xmm4 = mem[0],zero
movdqa %xmm4, %xmm5
paddb %xmm1, %xmm5
movdqa %xmm5, %xmm0
pmaxub %xmm2, %xmm0
pcmpeqb %xmm5, %xmm0
movdqa %xmm4, %xmm5
pand %xmm3, %xmm5
pblendvb %xmm0, %xmm4, %xmm5
movq %xmm5, -176(%rbp,%rdx)
addq $8, %rdx
cmpq %rdx, %rcx
jne LBB0_22
## %bb.23:
cmpq %r8, %rcx
je LBB0_24
.p2align 4, 0x90
LBB0_10: ## =>This Inner Loop Header: Depth=1
movzbl (%rbx,%rcx), %edx
leal -97(%rdx), %esi
movl %edx, %eax
andb $-33, %al
cmpb $26, %sil
movzbl %al, %eax
cmovael %edx, %eax
movb %al, -176(%rbp,%rcx)
incq %rcx
cmpq %rcx, %r8
jne LBB0_10
LBB0_24:
movq _KeywordHashTable@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq -176(%rbp), %rsi
callq _taosGetStrHashData
testq %rax, %rax
je LBB0_25
## %bb.26:
movq (%rax), %rax
jmp LBB0_27
LBB0_25:
movq _TK_ID@GOTPCREL(%rip), %rax
LBB0_27:
movl (%rax), %eax
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -48(%rbp), %rcx
jne LBB0_29
## %bb.28:
addq $152, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_14:
xorl %edx, %edx
testb $1, %sil
jne LBB0_18
jmp LBB0_19
LBB0_29:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_tSQLKeywordCode.needInit,1,0 ## @tSQLKeywordCode.needInit
.comm _mutex,4,2 ## @mutex
.comm _keywordTable,8,3 ## @keywordTable
.comm _POINTER_BYTES,4,2 ## @POINTER_BYTES
.comm _taosHashStringStep1,4,2 ## @taosHashStringStep1
.comm _KeywordHashTable,4,2 ## @KeywordHashTable
.comm _TK_ID,4,2 ## @TK_ID
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tSQLKeywordCode ; -- Begin function tSQLKeywordCode
.p2align 2
_tSQLKeywordCode: ; @tSQLKeywordCode
.cfi_startproc
; %bb.0:
sub sp, sp, #224
.cfi_def_cfa_offset 224
stp x26, x25, [sp, #144] ; 16-byte Folded Spill
stp x24, x23, [sp, #160] ; 16-byte Folded Spill
stp x22, x21, [sp, #176] ; 16-byte Folded Spill
stp x20, x19, [sp, #192] ; 16-byte Folded Spill
stp x29, x30, [sp, #208] ; 16-byte Folded Spill
add x29, sp, #208
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.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
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-72]
adrp x23, _tSQLKeywordCode.needInit@PAGE
ldrb w8, [x23, _tSQLKeywordCode.needInit@PAGEOFF]
Lloh3:
adrp x22, _KeywordHashTable@GOTPAGE
Lloh4:
ldr x22, [x22, _KeywordHashTable@GOTPAGEOFF]
tbnz w8, #0, LBB0_7
; %bb.1:
Lloh5:
adrp x0, _mutex@GOTPAGE
Lloh6:
ldr x0, [x0, _mutex@GOTPAGEOFF]
bl _pthread_mutex_lock
ldrb w8, [x23, _tSQLKeywordCode.needInit@PAGEOFF]
tbnz w8, #0, LBB0_6
; %bb.2:
Lloh7:
adrp x24, _keywordTable@GOTPAGE
Lloh8:
ldr x24, [x24, _keywordTable@GOTPAGEOFF]
ldr x0, [x24]
bl _tListLen
mov x21, x0
Lloh9:
adrp x8, _POINTER_BYTES@GOTPAGE
Lloh10:
ldr x8, [x8, _POINTER_BYTES@GOTPAGEOFF]
Lloh11:
ldr w1, [x8]
Lloh12:
adrp x8, _taosHashStringStep1@GOTPAGE
Lloh13:
ldr x8, [x8, _taosHashStringStep1@GOTPAGEOFF]
Lloh14:
ldr w2, [x8]
bl _taosInitStrHash
str w0, [x22]
cmp w21, #1
b.lt LBB0_5
; %bb.3:
mov x25, #0
mov w8, w21
lsl x21, x8, #4
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr x8, [x24]
ldr x0, [x8, x25]
bl _strlen
ldr x8, [x24]
add x8, x8, x25
str w0, [x8, #8]
str x8, [sp]
ldr w0, [x22]
ldr x1, [x8]
mov x2, sp
bl _taosAddStrHash
add x25, x25, #16
cmp x21, x25
b.ne LBB0_4
LBB0_5:
mov w8, #1
strb w8, [x23, _tSQLKeywordCode.needInit@PAGEOFF]
LBB0_6:
Lloh15:
adrp x0, _mutex@GOTPAGE
Lloh16:
ldr x0, [x0, _mutex@GOTPAGEOFF]
bl _pthread_mutex_unlock
LBB0_7:
movi.2d v0, #0000000000000000
stp q0, q0, [sp, #96]
stp q0, q0, [sp, #64]
stp q0, q0, [sp, #32]
stp q0, q0, [sp]
cmp w20, #1
b.lt LBB0_21
; %bb.8:
mov w8, w20
cmp w20, #8
b.hs LBB0_10
; %bb.9:
mov x9, #0
b LBB0_19
LBB0_10:
cmp w20, #64
b.hs LBB0_12
; %bb.11:
mov x9, #0
b LBB0_16
LBB0_12:
and x9, x8, #0xffffffc0
mov x10, sp
add x10, x10, #32
add x11, x19, #32
movi.16b v0, #159
movi.16b v1, #26
movi.16b v2, #223
mov x12, x9
LBB0_13: ; =>This Inner Loop Header: Depth=1
ldp q3, q4, [x11, #-32]
ldp q5, q6, [x11], #64
add.16b v7, v3, v0
add.16b v16, v4, v0
add.16b v17, v5, v0
add.16b v18, v6, v0
cmhi.16b v7, v1, v7
cmhi.16b v16, v1, v16
cmhi.16b v17, v1, v17
cmhi.16b v18, v1, v18
and.16b v19, v3, v7
and.16b v20, v4, v16
and.16b v21, v5, v17
and.16b v22, v6, v18
bic.16b v3, v3, v7
and.16b v7, v19, v2
orr.16b v3, v7, v3
bic.16b v4, v4, v16
and.16b v7, v20, v2
orr.16b v4, v7, v4
bic.16b v5, v5, v17
and.16b v7, v21, v2
orr.16b v5, v7, v5
bic.16b v6, v6, v18
and.16b v7, v22, v2
stp q3, q4, [x10, #-32]
orr.16b v3, v7, v6
stp q5, q3, [x10], #64
subs x12, x12, #64
b.ne LBB0_13
; %bb.14:
cmp x9, x8
b.eq LBB0_21
; %bb.15:
tst x8, #0x38
b.eq LBB0_19
LBB0_16:
mov x12, x9
and x9, x8, #0xfffffff8
add x10, x19, x12
mov x11, sp
add x11, x11, x12
sub x12, x12, x9
movi.8b v0, #159
movi.8b v1, #26
movi.8b v2, #223
LBB0_17: ; =>This Inner Loop Header: Depth=1
ldr d3, [x10], #8
add.8b v4, v3, v0
cmhi.8b v4, v1, v4
and.8b v5, v3, v4
bic.8b v3, v3, v4
and.8b v4, v5, v2
orr.8b v3, v4, v3
str d3, [x11], #8
adds x12, x12, #8
b.ne LBB0_17
; %bb.18:
cmp x9, x8
b.eq LBB0_21
LBB0_19:
mov x10, sp
add x10, x10, x9
add x11, x19, x9
sub x8, x8, x9
LBB0_20: ; =>This Inner Loop Header: Depth=1
ldrb w9, [x11], #1
sub w12, w9, #97
and w13, w9, #0xffffffdf
cmp w12, #26
csel w9, w13, w9, lo
strb w9, [x10], #1
subs x8, x8, #1
b.ne LBB0_20
LBB0_21:
ldr w0, [x22]
mov x1, sp
bl _taosGetStrHashData
cbz x0, LBB0_23
; %bb.22:
ldr x8, [x0]
b LBB0_24
LBB0_23:
Lloh17:
adrp x8, _TK_ID@GOTPAGE
Lloh18:
ldr x8, [x8, _TK_ID@GOTPAGEOFF]
LBB0_24:
ldr w0, [x8]
ldur x8, [x29, #-72]
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_26
; %bb.25:
ldp x29, x30, [sp, #208] ; 16-byte Folded Reload
ldp x20, x19, [sp, #192] ; 16-byte Folded Reload
ldp x22, x21, [sp, #176] ; 16-byte Folded Reload
ldp x24, x23, [sp, #160] ; 16-byte Folded Reload
ldp x26, x25, [sp, #144] ; 16-byte Folded Reload
add sp, sp, #224
ret
LBB0_26:
bl ___stack_chk_fail
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGot Lloh7, Lloh8
.loh AdrpLdrGot Lloh15, Lloh16
.loh AdrpLdrGot Lloh17, Lloh18
.loh AdrpLdrGotLdr Lloh19, Lloh20, Lloh21
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_tSQLKeywordCode.needInit,1,0 ; @tSQLKeywordCode.needInit
.comm _mutex,4,2 ; @mutex
.comm _keywordTable,8,3 ; @keywordTable
.comm _POINTER_BYTES,4,2 ; @POINTER_BYTES
.comm _taosHashStringStep1,4,2 ; @taosHashStringStep1
.comm _KeywordHashTable,4,2 ; @KeywordHashTable
.comm _TK_ID,4,2 ; @TK_ID
.subsections_via_symbols
| AnghaBench/TDengine/src/util/src/extr_ttokenizer.c_tSQLKeywordCode.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _inorder ## -- Begin function inorder
.p2align 4, 0x90
_inorder: ## @inorder
.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 %rdi, %rdi
je LBB0_3
## %bb.1:
movq %rdi, %rbx
leaq L_.str(%rip), %r14
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq 8(%rbx), %rdi
callq _inorder
movl (%rbx), %esi
movq %r14, %rdi
xorl %eax, %eax
callq _printf
movq 16(%rbx), %rbx
testq %rbx, %rbx
jne LBB0_2
LBB0_3:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _preorder ## -- Begin function preorder
.p2align 4, 0x90
_preorder: ## @preorder
.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 %rdi, %rdi
je LBB1_3
## %bb.1:
movq %rdi, %rbx
leaq L_.str(%rip), %r14
.p2align 4, 0x90
LBB1_2: ## =>This Inner Loop Header: Depth=1
movl (%rbx), %esi
movq %r14, %rdi
xorl %eax, %eax
callq _printf
movq 8(%rbx), %rdi
callq _preorder
movq 16(%rbx), %rbx
testq %rbx, %rbx
jne LBB1_2
LBB1_3:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _postorder ## -- Begin function postorder
.p2align 4, 0x90
_postorder: ## @postorder
.cfi_startproc
## %bb.0:
testq %rdi, %rdi
je LBB2_1
## %bb.2:
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
movq 8(%rdi), %rdi
callq _preorder
movq 16(%rbx), %rdi
callq _preorder
movl (%rbx), %esi
leaq L_.str(%rip), %rdi
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %rbp
jmp _printf ## TAILCALL
LBB2_1:
retq
.cfi_endproc
## -- End function
.globl _height ## -- Begin function height
.p2align 4, 0x90
_height: ## @height
.cfi_startproc
## %bb.0:
testq %rdi, %rdi
je LBB3_1
## %bb.2:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl 24(%rdi), %eax
popq %rbp
retq
LBB3_1:
xorl %eax, %eax
retq
.cfi_endproc
## -- End function
.globl _max ## -- Begin function max
.p2align 4, 0x90
_max: ## @max
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %esi, %eax
cmpl %esi, %edi
cmovgl %edi, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _LLrotation ## -- Begin function LLrotation
.p2align 4, 0x90
_LLrotation: ## @LLrotation
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq 8(%rdi), %rax
movq 16(%rax), %rcx
movq %rcx, 8(%rdi)
movq %rdi, 16(%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RRrotation ## -- Begin function RRrotation
.p2align 4, 0x90
_RRrotation: ## @RRrotation
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq 16(%rdi), %rax
movq 8(%rax), %rcx
movq %rcx, 16(%rdi)
movq %rdi, 8(%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _LRrotation ## -- Begin function LRrotation
.p2align 4, 0x90
_LRrotation: ## @LRrotation
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq 8(%rdi), %rcx
movq 16(%rcx), %rax
movq 8(%rax), %rdx
movq %rdx, 16(%rcx)
movq 16(%rax), %rdx
movq %rdx, 8(%rdi)
movq %rdi, 16(%rax)
movq %rcx, 8(%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RLrotation ## -- Begin function RLrotation
.p2align 4, 0x90
_RLrotation: ## @RLrotation
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq 16(%rdi), %rcx
movq 8(%rcx), %rax
movq 8(%rax), %rdx
movq %rdx, 16(%rdi)
movq 16(%rax), %rdx
movq %rdx, 8(%rcx)
movq %rcx, 16(%rax)
movq %rdi, 8(%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _nodeheight ## -- Begin function nodeheight
.p2align 4, 0x90
_nodeheight: ## @nodeheight
.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 LBB9_5
## %bb.1:
movq 8(%rdi), %rax
testq %rax, %rax
jne LBB9_3
## %bb.2:
movq 16(%rdi), %rax
testq %rax, %rax
je LBB9_5
LBB9_3:
movl 24(%rax), %eax
incl %eax
popq %rbp
retq
LBB9_5:
## implicit-def: $eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _BalanceFactor ## -- Begin function BalanceFactor
.p2align 4, 0x90
_BalanceFactor: ## @BalanceFactor
.cfi_startproc
## %bb.0:
testq %rdi, %rdi
je LBB10_1
## %bb.2:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq 8(%rdi), %rdx
xorl %ecx, %ecx
movl $0, %eax
testq %rdx, %rdx
je LBB10_4
## %bb.3:
movl 24(%rdx), %eax
LBB10_4:
movq 16(%rdi), %rdx
testq %rdx, %rdx
je LBB10_6
## %bb.5:
movl 24(%rdx), %ecx
LBB10_6:
subl %ecx, %eax
popq %rbp
retq
LBB10_1:
xorl %eax, %eax
retq
.cfi_endproc
## -- End function
.globl _create ## -- Begin function create
.p2align 4, 0x90
_create: ## @create
.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
movl %edi, %ebx
movl $32, %edi
callq _malloc
movl %ebx, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 8(%rax)
movl $1, 24(%rax)
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _AVLinsertion ## -- Begin function AVLinsertion
.p2align 4, 0x90
_AVLinsertion: ## @AVLinsertion
.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 %esi, %ebx
testq %rdi, %rdi
je LBB12_3
## %bb.1:
movq %rdi, %r14
cmpl %ebx, (%rdi)
jle LBB12_4
## %bb.2:
movq 8(%r14), %rdi
movl %ebx, %esi
callq _AVLinsertion
movq %rax, 8(%r14)
jmp LBB12_5
LBB12_3:
movl $32, %edi
callq _malloc
movl %ebx, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 8(%rax)
movl $1, 24(%rax)
jmp LBB12_63
LBB12_4:
movq 16(%r14), %rdi
movl %ebx, %esi
callq _AVLinsertion
movq %rax, 16(%r14)
movq 8(%r14), %rax
LBB12_5:
xorl %edx, %edx
movl $0, %esi
testq %rax, %rax
je LBB12_7
## %bb.6:
movl 24(%rax), %esi
LBB12_7:
movq 16(%r14), %rcx
testq %rcx, %rcx
je LBB12_9
## %bb.8:
movl 24(%rcx), %edx
LBB12_9:
cmpl %edx, %esi
cmovgl %esi, %edx
incl %edx
xorl %esi, %esi
movl %edx, 24(%r14)
movl $0, %edx
testq %rax, %rax
je LBB12_11
## %bb.10:
movl 24(%rax), %edx
LBB12_11:
testq %rcx, %rcx
je LBB12_13
## %bb.12:
movl 24(%rcx), %esi
LBB12_13:
subl %esi, %edx
cmpl $2, %edx
jne LBB12_21
## %bb.14:
testq %rax, %rax
je LBB12_23
## %bb.15:
movq 8(%rax), %rdi
xorl %edx, %edx
movl $0, %esi
testq %rdi, %rdi
je LBB12_17
## %bb.16:
movl 24(%rdi), %esi
LBB12_17:
movq 16(%rax), %rdi
testq %rdi, %rdi
je LBB12_19
## %bb.18:
movl 24(%rdi), %edx
LBB12_19:
subl %edx, %esi
cmpl $1, %esi
jne LBB12_22
## %bb.20:
movq %rdi, 8(%r14)
movq %r14, 16(%rax)
jmp LBB12_63
LBB12_21:
testq %rax, %rax
je LBB12_23
LBB12_22:
movl 24(%rax), %edx
testq %rcx, %rcx
je LBB12_26
LBB12_24:
movl 24(%rcx), %esi
jmp LBB12_27
LBB12_23:
xorl %edx, %edx
testq %rcx, %rcx
jne LBB12_24
LBB12_26:
xorl %esi, %esi
LBB12_27:
subl %esi, %edx
cmpl $2, %edx
jne LBB12_35
## %bb.28:
testq %rax, %rax
je LBB12_38
## %bb.29:
movq 8(%rax), %rdx
xorl %esi, %esi
movl $0, %edi
testq %rdx, %rdx
je LBB12_31
## %bb.30:
movl 24(%rdx), %edi
LBB12_31:
movq 16(%rax), %rdx
testq %rdx, %rdx
je LBB12_33
## %bb.32:
movl 24(%rdx), %esi
LBB12_33:
subl %esi, %edi
cmpl $-1, %edi
jne LBB12_36
## %bb.34:
movq 8(%rdx), %rcx
movq %rcx, 16(%rax)
movq 16(%rdx), %rcx
movq %rcx, 8(%r14)
movq %r14, 16(%rdx)
movq %rax, 8(%rdx)
movq %rdx, %rax
jmp LBB12_63
LBB12_35:
testq %rax, %rax
je LBB12_38
LBB12_36:
testq %rcx, %rcx
je LBB12_62
## %bb.37:
movl 24(%rax), %edx
jmp LBB12_39
LBB12_38:
xorl %edx, %edx
testq %rcx, %rcx
je LBB12_62
LBB12_39:
subl 24(%rcx), %edx
cmpl $-2, %edx
jne LBB12_45
## %bb.40:
movq 8(%rcx), %rdx
xorl %esi, %esi
movl $0, %edi
testq %rdx, %rdx
je LBB12_42
## %bb.41:
movl 24(%rdx), %edi
LBB12_42:
movq 16(%rcx), %rbx
testq %rbx, %rbx
je LBB12_44
## %bb.43:
movl 24(%rbx), %esi
LBB12_44:
subl %esi, %edi
cmpl $-1, %edi
je LBB12_59
LBB12_45:
testq %rax, %rax
je LBB12_49
## %bb.46:
testq %rcx, %rcx
je LBB12_62
## %bb.47:
movl 24(%rax), %eax
jmp LBB12_50
LBB12_49:
xorl %eax, %eax
testq %rcx, %rcx
je LBB12_62
LBB12_50:
subl 24(%rcx), %eax
cmpl $-2, %eax
jne LBB12_62
## %bb.51:
movq 8(%rcx), %rax
xorl %edx, %edx
movl $0, %esi
testq %rax, %rax
je LBB12_53
## %bb.52:
movl 24(%rax), %esi
LBB12_53:
movq 16(%rcx), %rdi
testq %rdi, %rdi
je LBB12_55
## %bb.54:
movl 24(%rdi), %edx
LBB12_55:
subl %edx, %esi
cmpl $1, %esi
jne LBB12_62
## %bb.56:
movq 8(%rax), %rdx
movq %rdx, 16(%r14)
movq 16(%rax), %rdx
movq %rdx, 8(%rcx)
movq %rcx, 16(%rax)
movq %r14, 8(%rax)
jmp LBB12_63
LBB12_62:
movq %r14, %rax
LBB12_63:
popq %rbx
popq %r14
popq %rbp
retq
LBB12_59:
movq %rdx, 16(%r14)
movq %r14, 8(%rcx)
movq %rcx, %rax
jmp LBB12_63
.cfi_endproc
## -- End function
.globl _minimumnode ## -- Begin function minimumnode
.p2align 4, 0x90
_minimumnode: ## @minimumnode
.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 LBB13_1
## %bb.2:
movq %rdi, %rax
movq 8(%rdi), %rcx
testq %rcx, %rcx
je LBB13_5
.p2align 4, 0x90
LBB13_3: ## =>This Inner Loop Header: Depth=1
movq %rcx, %rax
movq 8(%rcx), %rcx
testq %rcx, %rcx
jne LBB13_3
LBB13_5:
popq %rbp
retq
LBB13_1:
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _maximumnode ## -- Begin function maximumnode
.p2align 4, 0x90
_maximumnode: ## @maximumnode
.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 LBB14_1
## %bb.2:
movq %rdi, %rax
movq 16(%rdi), %rcx
testq %rcx, %rcx
je LBB14_5
.p2align 4, 0x90
LBB14_3: ## =>This Inner Loop Header: Depth=1
movq %rcx, %rax
movq 16(%rcx), %rcx
testq %rcx, %rcx
jne LBB14_3
LBB14_5:
popq %rbp
retq
LBB14_1:
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _deleteelement ## -- Begin function deleteelement
.p2align 4, 0x90
_deleteelement: ## @deleteelement
.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 LBB15_3
## %bb.1:
movq %rdi, %rbx
cmpl %esi, (%rdi)
jle LBB15_5
## %bb.2:
movq 8(%rbx), %rdi
callq _deleteelement
movq %rax, 8(%rbx)
jmp LBB15_13
LBB15_3:
xorl %eax, %eax
jmp LBB15_4
LBB15_5:
jge LBB15_7
## %bb.6:
movq 16(%rbx), %rdi
jmp LBB15_12
LBB15_7:
movq 8(%rbx), %rax
movq 16(%rbx), %rdi
testq %rax, %rax
je LBB15_67
## %bb.8:
testq %rdi, %rdi
je LBB15_4
## %bb.9:
movq 8(%rdi), %rax
movq %rdi, %rcx
testq %rax, %rax
je LBB15_11
.p2align 4, 0x90
LBB15_10: ## =>This Inner Loop Header: Depth=1
movq %rax, %rcx
movq 8(%rax), %rax
testq %rax, %rax
jne LBB15_10
LBB15_11:
movl (%rcx), %eax
movl %eax, (%rbx)
movl (%rcx), %esi
LBB15_12:
callq _deleteelement
movq %rax, 16(%rbx)
LBB15_13:
movq 8(%rbx), %rax
xorl %edx, %edx
movl $0, %esi
testq %rax, %rax
je LBB15_15
## %bb.14:
movl 24(%rax), %esi
LBB15_15:
movq 16(%rbx), %rcx
testq %rcx, %rcx
je LBB15_17
## %bb.16:
movl 24(%rcx), %edx
LBB15_17:
cmpl %edx, %esi
cmovgl %esi, %edx
incl %edx
xorl %esi, %esi
movl %edx, 24(%rbx)
movl $0, %edx
testq %rax, %rax
je LBB15_19
## %bb.18:
movl 24(%rax), %edx
LBB15_19:
testq %rcx, %rcx
je LBB15_21
## %bb.20:
movl 24(%rcx), %esi
LBB15_21:
subl %esi, %edx
cmpl $2, %edx
jne LBB15_29
## %bb.22:
testq %rax, %rax
je LBB15_31
## %bb.23:
movq 8(%rax), %rdi
xorl %edx, %edx
movl $0, %esi
testq %rdi, %rdi
je LBB15_25
## %bb.24:
movl 24(%rdi), %esi
LBB15_25:
movq 16(%rax), %rdi
testq %rdi, %rdi
je LBB15_27
## %bb.26:
movl 24(%rdi), %edx
LBB15_27:
subl %edx, %esi
cmpl $1, %esi
jne LBB15_30
## %bb.28:
movq %rdi, 8(%rbx)
movq %rbx, 16(%rax)
jmp LBB15_4
LBB15_29:
testq %rax, %rax
je LBB15_31
LBB15_30:
movl 24(%rax), %edx
testq %rcx, %rcx
je LBB15_34
LBB15_32:
movl 24(%rcx), %esi
jmp LBB15_35
LBB15_31:
xorl %edx, %edx
testq %rcx, %rcx
jne LBB15_32
LBB15_34:
xorl %esi, %esi
LBB15_35:
subl %esi, %edx
cmpl $2, %edx
jne LBB15_43
## %bb.36:
testq %rax, %rax
je LBB15_46
## %bb.37:
movq 8(%rax), %rdx
xorl %esi, %esi
movl $0, %edi
testq %rdx, %rdx
je LBB15_39
## %bb.38:
movl 24(%rdx), %edi
LBB15_39:
movq 16(%rax), %rdx
testq %rdx, %rdx
je LBB15_41
## %bb.40:
movl 24(%rdx), %esi
LBB15_41:
subl %esi, %edi
cmpl $-1, %edi
jne LBB15_44
## %bb.42:
movq 8(%rdx), %rcx
movq %rcx, 16(%rax)
movq 16(%rdx), %rcx
movq %rcx, 8(%rbx)
movq %rbx, 16(%rdx)
movq %rax, 8(%rdx)
movq %rdx, %rax
jmp LBB15_4
LBB15_43:
testq %rax, %rax
je LBB15_46
LBB15_44:
testq %rcx, %rcx
je LBB15_65
## %bb.45:
movl 24(%rax), %edx
jmp LBB15_47
LBB15_46:
xorl %edx, %edx
testq %rcx, %rcx
je LBB15_65
LBB15_47:
subl 24(%rcx), %edx
cmpl $-2, %edx
jne LBB15_53
## %bb.48:
movq 8(%rcx), %r8
xorl %esi, %esi
movl $0, %edi
testq %r8, %r8
je LBB15_50
## %bb.49:
movl 24(%r8), %edi
LBB15_50:
movq 16(%rcx), %rdx
testq %rdx, %rdx
je LBB15_52
## %bb.51:
movl 24(%rdx), %esi
LBB15_52:
subl %esi, %edi
cmpl $-1, %edi
je LBB15_68
LBB15_53:
testq %rax, %rax
je LBB15_57
## %bb.54:
testq %rcx, %rcx
je LBB15_65
## %bb.55:
movl 24(%rax), %eax
jmp LBB15_58
LBB15_57:
xorl %eax, %eax
testq %rcx, %rcx
je LBB15_65
LBB15_58:
subl 24(%rcx), %eax
cmpl $-2, %eax
jne LBB15_65
## %bb.59:
movq 8(%rcx), %rax
xorl %edx, %edx
movl $0, %esi
testq %rax, %rax
je LBB15_61
## %bb.60:
movl 24(%rax), %esi
LBB15_61:
movq 16(%rcx), %rdi
testq %rdi, %rdi
je LBB15_63
## %bb.62:
movl 24(%rdi), %edx
LBB15_63:
subl %edx, %esi
cmpl $1, %esi
jne LBB15_65
## %bb.64:
movq 8(%rax), %rdx
movq %rdx, 16(%rbx)
movq 16(%rax), %rdx
movq %rdx, 8(%rcx)
movq %rcx, 16(%rax)
movq %rbx, 8(%rax)
jmp LBB15_4
LBB15_65:
movq %rbx, %rax
LBB15_4:
addq $8, %rsp
popq %rbx
popq %rbp
retq
LBB15_67:
movq %rdi, %rax
jmp LBB15_4
LBB15_68:
movq %r8, 16(%rbx)
movq %rbx, 8(%rcx)
movq %rcx, %rax
jmp LBB15_4
.cfi_endproc
## -- End function
.globl _checkAVL ## -- Begin function checkAVL
.p2align 4, 0x90
_checkAVL: ## @checkAVL
.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
movl $1, %r14d
testq %rdi, %rdi
je LBB16_12
## %bb.1:
movq %rdi, %rbx
movq 8(%rdi), %r12
movq %r12, %rdi
callq _checkAVL
movq 16(%rbx), %r15
movq %r15, %rdi
callq _checkAVL
xorl %eax, %eax
movl $0, %ecx
testq %r12, %r12
je LBB16_3
## %bb.2:
movl 24(%r12), %ecx
LBB16_3:
testq %r15, %r15
je LBB16_5
## %bb.4:
movl 24(%r15), %eax
LBB16_5:
subl %eax, %ecx
cmpl $-1, %ecx
jl LBB16_11
## %bb.6:
xorl %eax, %eax
movl $0, %ecx
testq %r12, %r12
je LBB16_8
## %bb.7:
movl 24(%r12), %ecx
LBB16_8:
testq %r15, %r15
je LBB16_10
## %bb.9:
movl 24(%r15), %eax
LBB16_10:
subl %eax, %ecx
cmpl $2, %ecx
jl LBB16_12
LBB16_11:
xorl %r14d, %r14d
LBB16_12:
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.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
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
leaq L_.str.7(%rip), %r15
leaq L_.str.8(%rip), %r13
leaq -44(%rbp), %rbx
xorl %r14d, %r14d
jmp LBB17_1
LBB17_6: ## in Loop: Header=BB17_1 Depth=1
leaq L_.str.9(%rip), %rdi
xorl %eax, %eax
callq _printf
movq %r15, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq _scanf
movl -44(%rbp), %esi
movq %r12, %rdi
callq _deleteelement
movq %r12, %r14
.p2align 4, 0x90
LBB17_1: ## =>This Loop Header: Depth=1
## Child Loop BB17_5 Depth 2
movq %r14, %r12
leaq L_.str.1(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.2(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.3(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.4(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.5(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.6(%rip), %rdi
xorl %eax, %eax
callq _printf
movq %r15, %rdi
leaq -48(%rbp), %rsi
xorl %eax, %eax
callq _scanf
movl -48(%rbp), %eax
decl %eax
cmpl $4, %eax
ja LBB17_14
## %bb.2: ## in Loop: Header=BB17_1 Depth=1
leaq LJTI17_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB17_3: ## in Loop: Header=BB17_1 Depth=1
movq %r13, %rdi
xorl %eax, %eax
callq _printf
movq %r15, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq _scanf
movl -44(%rbp), %esi
movq %r12, %r14
cmpl $-1, %esi
je LBB17_1
## %bb.4: ## in Loop: Header=BB17_1 Depth=1
movq %r12, %r14
.p2align 4, 0x90
LBB17_5: ## Parent Loop BB17_1 Depth=1
## => This Inner Loop Header: Depth=2
movq %r14, %rdi
callq _AVLinsertion
movq %rax, %r14
movq %r13, %rdi
xorl %eax, %eax
callq _printf
movq %r15, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq _scanf
movl -44(%rbp), %esi
cmpl $-1, %esi
jne LBB17_5
jmp LBB17_1
LBB17_7: ## in Loop: Header=BB17_1 Depth=1
leaq L_.str.10(%rip), %rdi
xorl %eax, %eax
callq _printf
movq %r12, %rdi
callq _preorder
leaq L_.str.11(%rip), %rdi
xorl %eax, %eax
callq _printf
movq %r12, %rdi
callq _inorder
leaq L_.str.12(%rip), %rdi
xorl %eax, %eax
callq _printf
movl $0, %r14d
testq %r12, %r12
je LBB17_1
## %bb.8: ## in Loop: Header=BB17_1 Depth=1
movq 8(%r12), %rdi
callq _preorder
movq 16(%r12), %rdi
callq _preorder
movl (%r12), %esi
leaq L_.str(%rip), %rdi
xorl %eax, %eax
callq _printf
movq %r12, %r14
jmp LBB17_1
LBB17_9: ## in Loop: Header=BB17_1 Depth=1
movq %r12, %rdi
callq _checkAVL
cmpl $1, %eax
jne LBB17_12
## %bb.10: ## in Loop: Header=BB17_1 Depth=1
leaq L_.str.13(%rip), %rdi
jmp LBB17_11
LBB17_14: ## in Loop: Header=BB17_1 Depth=1
leaq L_str(%rip), %rdi
callq _puts
movq %r12, %r14
jmp LBB17_1
LBB17_12: ## in Loop: Header=BB17_1 Depth=1
leaq L_.str.14(%rip), %rdi
LBB17_11: ## in Loop: Header=BB17_1 Depth=1
xorl %eax, %eax
callq _printf
movq %r12, %r14
jmp LBB17_1
LBB17_13:
xorl %edi, %edi
callq _exit
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L17_0_set_3, LBB17_3-LJTI17_0
.set L17_0_set_6, LBB17_6-LJTI17_0
.set L17_0_set_7, LBB17_7-LJTI17_0
.set L17_0_set_9, LBB17_9-LJTI17_0
.set L17_0_set_13, LBB17_13-LJTI17_0
LJTI17_0:
.long L17_0_set_3
.long L17_0_set_6
.long L17_0_set_7
.long L17_0_set_9
.long L17_0_set_13
.end_data_region
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d "
L_.str.1: ## @.str.1
.asciz "\n1. Insertion"
L_.str.2: ## @.str.2
.asciz "\n2. Deletion"
L_.str.3: ## @.str.3
.asciz "\n3. Traversal"
L_.str.4: ## @.str.4
.asciz "\n4. Check for AVL"
L_.str.5: ## @.str.5
.asciz "\n5. EXIT"
L_.str.6: ## @.str.6
.asciz "\nENTER CHOICE : "
L_.str.7: ## @.str.7
.asciz "%d"
L_.str.8: ## @.str.8
.asciz "\nEnter element or press -1 : "
L_.str.9: ## @.str.9
.asciz "\nEnter element to be deleted : "
L_.str.10: ## @.str.10
.asciz "\nPre-order traversal of the tree formed = "
L_.str.11: ## @.str.11
.asciz "\nIn-order traversal of the tree formed = "
L_.str.12: ## @.str.12
.asciz "\nPost-order traversal of the tree formed = "
L_.str.13: ## @.str.13
.asciz "\nTree is AVL"
L_.str.14: ## @.str.14
.asciz "\nTree is not AVL"
L_str: ## @str
.asciz "\nINVALID CHOICE"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _inorder ; -- Begin function inorder
.p2align 2
_inorder: ; @inorder
.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
cbz x0, LBB0_3
; %bb.1:
mov x19, x0
Lloh0:
adrp x20, l_.str@PAGE
Lloh1:
add x20, x20, l_.str@PAGEOFF
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldr x0, [x19, #8]
bl _inorder
ldr w8, [x19]
str x8, [sp]
mov x0, x20
bl _printf
ldr x19, [x19, #16]
cbnz x19, LBB0_2
LBB0_3:
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
.cfi_endproc
; -- End function
.globl _preorder ; -- Begin function preorder
.p2align 2
_preorder: ; @preorder
.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
cbz x0, LBB1_3
; %bb.1:
mov x19, x0
Lloh2:
adrp x20, l_.str@PAGE
Lloh3:
add x20, x20, l_.str@PAGEOFF
LBB1_2: ; =>This Inner Loop Header: Depth=1
ldr w8, [x19]
str x8, [sp]
mov x0, x20
bl _printf
ldr x0, [x19, #8]
bl _preorder
ldr x19, [x19, #16]
cbnz x19, LBB1_2
LBB1_3:
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 Lloh2, Lloh3
.cfi_endproc
; -- End function
.globl _postorder ; -- Begin function postorder
.p2align 2
_postorder: ; @postorder
.cfi_startproc
; %bb.0:
cbz x0, LBB2_2
; %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
ldr x0, [x0, #8]
bl _preorder
ldr x0, [x19, #16]
bl _preorder
ldr w8, [x19]
str x8, [sp]
Lloh4:
adrp x0, l_.str@PAGE
Lloh5:
add x0, x0, l_.str@PAGEOFF
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #48
LBB2_2:
.cfi_def_cfa wsp, 0
.cfi_same_value w30
.cfi_same_value w29
.cfi_same_value w19
.cfi_same_value w20
ret
.loh AdrpAdd Lloh4, Lloh5
.cfi_endproc
; -- End function
.globl _height ; -- Begin function height
.p2align 2
_height: ; @height
.cfi_startproc
; %bb.0:
cbz x0, LBB3_2
; %bb.1:
ldr w0, [x0, #24]
LBB3_2:
ret
.cfi_endproc
; -- End function
.globl _max ; -- Begin function max
.p2align 2
_max: ; @max
.cfi_startproc
; %bb.0:
cmp w0, w1
csel w0, w0, w1, gt
ret
.cfi_endproc
; -- End function
.globl _LLrotation ; -- Begin function LLrotation
.p2align 2
_LLrotation: ; @LLrotation
.cfi_startproc
; %bb.0:
ldr x8, [x0, #8]
ldr x9, [x8, #16]
str x9, [x0, #8]
str x0, [x8, #16]
mov x0, x8
ret
.cfi_endproc
; -- End function
.globl _RRrotation ; -- Begin function RRrotation
.p2align 2
_RRrotation: ; @RRrotation
.cfi_startproc
; %bb.0:
ldr x8, [x0, #16]
ldr x9, [x8, #8]
str x9, [x0, #16]
str x0, [x8, #8]
mov x0, x8
ret
.cfi_endproc
; -- End function
.globl _LRrotation ; -- Begin function LRrotation
.p2align 2
_LRrotation: ; @LRrotation
.cfi_startproc
; %bb.0:
ldr x9, [x0, #8]
ldr x8, [x9, #16]
ldr x10, [x8, #8]
str x10, [x9, #16]
ldr x10, [x8, #16]
str x10, [x0, #8]
stp x9, x0, [x8, #8]
mov x0, x8
ret
.cfi_endproc
; -- End function
.globl _RLrotation ; -- Begin function RLrotation
.p2align 2
_RLrotation: ; @RLrotation
.cfi_startproc
; %bb.0:
ldr x9, [x0, #16]
ldr x8, [x9, #8]
ldr x10, [x8, #8]
str x10, [x0, #16]
ldr x10, [x8, #16]
str x10, [x9, #8]
stp x0, x9, [x8, #8]
mov x0, x8
ret
.cfi_endproc
; -- End function
.globl _nodeheight ; -- Begin function nodeheight
.p2align 2
_nodeheight: ; @nodeheight
.cfi_startproc
; %bb.0:
cbz x0, LBB9_4
; %bb.1:
ldr x8, [x0, #8]
cbnz x8, LBB9_3
; %bb.2:
ldr x8, [x0, #16]
cbz x8, LBB9_4
LBB9_3:
ldr w8, [x8, #24]
add w0, w8, #1
ret
LBB9_4:
; implicit-def: $w0
ret
.cfi_endproc
; -- End function
.globl _BalanceFactor ; -- Begin function BalanceFactor
.p2align 2
_BalanceFactor: ; @BalanceFactor
.cfi_startproc
; %bb.0:
cbz x0, LBB10_6
; %bb.1:
ldr x8, [x0, #8]
cbz x8, LBB10_3
; %bb.2:
ldr w8, [x8, #24]
LBB10_3:
ldr x9, [x0, #16]
cbz x9, LBB10_5
; %bb.4:
ldr w9, [x9, #24]
LBB10_5:
sub w0, w8, w9
LBB10_6:
ret
.cfi_endproc
; -- End function
.globl _create ; -- Begin function create
.p2align 2
_create: ; @create
.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 w0, #32
bl _malloc
str w19, [x0]
stp xzr, xzr, [x0, #8]
mov w8, #1
str w8, [x0, #24]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _AVLinsertion ; -- Begin function AVLinsertion
.p2align 2
_AVLinsertion: ; @AVLinsertion
.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, x1
cbz x0, LBB12_5
; %bb.1:
mov x19, x0
ldr w8, [x0]
cmp w8, w20
b.le LBB12_6
; %bb.2:
ldr x0, [x19, #8]
mov x1, x20
bl _AVLinsertion
str x0, [x19, #8]
cbz x0, LBB12_7
LBB12_3:
ldr w9, [x0, #24]
ldr x8, [x19, #16]
cbz x8, LBB12_8
LBB12_4:
ldr w10, [x8, #24]
b LBB12_9
LBB12_5:
mov w0, #32
bl _malloc
str w20, [x0]
stp xzr, xzr, [x0, #8]
mov w8, #1
str w8, [x0, #24]
b LBB12_58
LBB12_6:
ldr x0, [x19, #16]
mov x1, x20
bl _AVLinsertion
str x0, [x19, #16]
ldr x0, [x19, #8]
cbnz x0, LBB12_3
LBB12_7:
mov w9, #0
ldr x8, [x19, #16]
cbnz x8, LBB12_4
LBB12_8:
mov w10, #0
LBB12_9:
cmp w9, w10
csel w9, w9, w10, gt
add w9, w9, #1
str w9, [x19, #24]
cbz x0, LBB12_12
; %bb.10:
ldr w9, [x0, #24]
cbz x8, LBB12_13
LBB12_11:
ldr w10, [x8, #24]
b LBB12_14
LBB12_12:
mov w9, #0
cbnz x8, LBB12_11
LBB12_13:
mov w10, #0
LBB12_14:
sub w9, w9, w10
cmp w9, #2
b.ne LBB12_20
; %bb.15:
cbz x0, LBB12_21
; %bb.16:
ldr x9, [x0, #8]
cbz x9, LBB12_18
; %bb.17:
ldr w9, [x9, #24]
LBB12_18:
ldr x10, [x0, #16]
cbz x10, LBB12_23
; %bb.19:
ldr w11, [x10, #24]
b LBB12_24
LBB12_20:
cbnz x0, LBB12_26
LBB12_21:
mov w9, #0
cbnz x8, LBB12_27
LBB12_22:
mov w10, #0
b LBB12_28
LBB12_23:
mov w11, #0
LBB12_24:
sub w9, w9, w11
cmp w9, #1
b.ne LBB12_26
; %bb.25:
str x10, [x19, #8]
str x19, [x0, #16]
b LBB12_58
LBB12_26:
ldr w9, [x0, #24]
cbz x8, LBB12_22
LBB12_27:
ldr w10, [x8, #24]
LBB12_28:
sub w9, w9, w10
cmp w9, #2
b.ne LBB12_33
; %bb.29:
cbz x0, LBB12_34
; %bb.30:
ldr x9, [x0, #8]
cbz x9, LBB12_36
; %bb.31:
ldr w10, [x9, #24]
ldr x9, [x0, #16]
cbz x9, LBB12_37
LBB12_32:
ldr w11, [x9, #24]
b LBB12_38
LBB12_33:
cbnz x0, LBB12_39
LBB12_34:
cbz x8, LBB12_57
; %bb.35:
mov w9, #0
b LBB12_41
LBB12_36:
mov w10, #0
ldr x9, [x0, #16]
cbnz x9, LBB12_32
LBB12_37:
mov w11, #0
LBB12_38:
sub w10, w10, w11
cmn w10, #1
b.eq LBB12_59
LBB12_39:
cbz x8, LBB12_57
; %bb.40:
ldr w9, [x0, #24]
LBB12_41:
ldr w10, [x8, #24]
sub w9, w9, w10
cmn w9, #2
b.ne LBB12_46
; %bb.42:
ldr x9, [x8, #8]
cbz x9, LBB12_60
; %bb.43:
ldr w10, [x9, #24]
ldr x11, [x8, #16]
cbz x11, LBB12_45
LBB12_44:
ldr w11, [x11, #24]
LBB12_45:
sub w10, w10, w11
cmn w10, #1
b.eq LBB12_61
LBB12_46:
cbz x0, LBB12_49
; %bb.47:
cbz x8, LBB12_57
; %bb.48:
ldr w9, [x0, #24]
b LBB12_51
LBB12_49:
cbz x8, LBB12_57
; %bb.50:
mov w9, #0
LBB12_51:
ldr w10, [x8, #24]
sub w9, w9, w10
cmn w9, #2
b.ne LBB12_57
; %bb.52:
ldr x0, [x8, #8]
cbz x0, LBB12_62
; %bb.53:
ldr w9, [x0, #24]
ldr x10, [x8, #16]
cbz x10, LBB12_55
LBB12_54:
ldr w10, [x10, #24]
LBB12_55:
sub w9, w9, w10
cmp w9, #1
b.ne LBB12_57
; %bb.56:
ldr x9, [x0, #8]
str x9, [x19, #16]
ldr x9, [x0, #16]
str x9, [x8, #8]
stp x19, x8, [x0, #8]
b LBB12_58
LBB12_57:
mov x0, x19
LBB12_58:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB12_59:
ldr x8, [x9, #8]
str x8, [x0, #16]
ldr x8, [x9, #16]
str x8, [x19, #8]
stp x0, x19, [x9, #8]
mov x0, x9
b LBB12_58
LBB12_60:
mov w10, #0
ldr x11, [x8, #16]
cbnz x11, LBB12_44
b LBB12_45
LBB12_61:
str x9, [x19, #16]
str x19, [x8, #8]
mov x0, x8
b LBB12_58
LBB12_62:
mov w9, #0
ldr x10, [x8, #16]
cbnz x10, LBB12_54
b LBB12_55
.cfi_endproc
; -- End function
.globl _minimumnode ; -- Begin function minimumnode
.p2align 2
_minimumnode: ; @minimumnode
.cfi_startproc
; %bb.0:
cbz x0, LBB13_3
; %bb.1:
ldr x8, [x0, #8]
cbz x8, LBB13_3
LBB13_2: ; =>This Inner Loop Header: Depth=1
mov x0, x8
ldr x8, [x8, #8]
cbnz x8, LBB13_2
LBB13_3:
ret
.cfi_endproc
; -- End function
.globl _maximumnode ; -- Begin function maximumnode
.p2align 2
_maximumnode: ; @maximumnode
.cfi_startproc
; %bb.0:
cbz x0, LBB14_3
; %bb.1:
ldr x8, [x0, #16]
cbz x8, LBB14_3
LBB14_2: ; =>This Inner Loop Header: Depth=1
mov x0, x8
ldr x8, [x8, #16]
cbnz x8, LBB14_2
LBB14_3:
ret
.cfi_endproc
; -- End function
.globl _deleteelement ; -- Begin function deleteelement
.p2align 2
_deleteelement: ; @deleteelement
.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, LBB15_68
; %bb.1:
mov x19, x0
ldr w8, [x0]
cmp w8, w1
b.le LBB15_5
; %bb.2:
ldr x0, [x19, #8]
bl _deleteelement
str x0, [x19, #8]
ldr x0, [x19, #8]
cbz x0, LBB15_13
LBB15_3:
ldr w9, [x0, #24]
ldr x8, [x19, #16]
cbz x8, LBB15_14
LBB15_4:
ldr w10, [x8, #24]
b LBB15_15
LBB15_5:
b.ge LBB15_7
; %bb.6:
ldr x0, [x19, #16]
b LBB15_12
LBB15_7:
ldp x8, x0, [x19, #8]
cbz x8, LBB15_68
; %bb.8:
cbz x0, LBB15_67
; %bb.9:
ldr x8, [x0, #8]
mov x9, x0
cbz x8, LBB15_11
LBB15_10: ; =>This Inner Loop Header: Depth=1
mov x9, x8
ldr x8, [x8, #8]
cbnz x8, LBB15_10
LBB15_11:
ldr w8, [x9]
str w8, [x19]
ldr w1, [x9]
LBB15_12:
bl _deleteelement
str x0, [x19, #16]
ldr x0, [x19, #8]
cbnz x0, LBB15_3
LBB15_13:
mov w9, #0
ldr x8, [x19, #16]
cbnz x8, LBB15_4
LBB15_14:
mov w10, #0
LBB15_15:
cmp w9, w10
csel w9, w9, w10, gt
add w9, w9, #1
str w9, [x19, #24]
cbz x0, LBB15_18
; %bb.16:
ldr w9, [x0, #24]
cbz x8, LBB15_19
LBB15_17:
ldr w10, [x8, #24]
b LBB15_20
LBB15_18:
mov w9, #0
cbnz x8, LBB15_17
LBB15_19:
mov w10, #0
LBB15_20:
sub w9, w9, w10
cmp w9, #2
b.ne LBB15_26
; %bb.21:
cbz x0, LBB15_27
; %bb.22:
ldr x9, [x0, #8]
cbz x9, LBB15_24
; %bb.23:
ldr w9, [x9, #24]
LBB15_24:
ldr x10, [x0, #16]
cbz x10, LBB15_29
; %bb.25:
ldr w11, [x10, #24]
b LBB15_30
LBB15_26:
cbnz x0, LBB15_32
LBB15_27:
mov w9, #0
cbnz x8, LBB15_33
LBB15_28:
mov w10, #0
b LBB15_34
LBB15_29:
mov w11, #0
LBB15_30:
sub w9, w9, w11
cmp w9, #1
b.ne LBB15_32
; %bb.31:
str x10, [x19, #8]
str x19, [x0, #16]
b LBB15_68
LBB15_32:
ldr w9, [x0, #24]
cbz x8, LBB15_28
LBB15_33:
ldr w10, [x8, #24]
LBB15_34:
sub w9, w9, w10
cmp w9, #2
b.ne LBB15_39
; %bb.35:
cbz x0, LBB15_40
; %bb.36:
ldr x9, [x0, #8]
cbz x9, LBB15_42
; %bb.37:
ldr w10, [x9, #24]
ldr x9, [x0, #16]
cbz x9, LBB15_43
LBB15_38:
ldr w11, [x9, #24]
b LBB15_44
LBB15_39:
cbnz x0, LBB15_45
LBB15_40:
cbz x8, LBB15_63
; %bb.41:
mov w9, #0
b LBB15_47
LBB15_42:
mov w10, #0
ldr x9, [x0, #16]
cbnz x9, LBB15_38
LBB15_43:
mov w11, #0
LBB15_44:
sub w10, w10, w11
cmn w10, #1
b.eq LBB15_64
LBB15_45:
cbz x8, LBB15_63
; %bb.46:
ldr w9, [x0, #24]
LBB15_47:
ldr w10, [x8, #24]
sub w9, w9, w10
cmn w9, #2
b.ne LBB15_52
; %bb.48:
ldr x9, [x8, #8]
cbz x9, LBB15_65
; %bb.49:
ldr w10, [x9, #24]
ldr x11, [x8, #16]
cbz x11, LBB15_51
LBB15_50:
ldr w11, [x11, #24]
LBB15_51:
sub w10, w10, w11
cmn w10, #1
b.eq LBB15_66
LBB15_52:
cbz x0, LBB15_55
; %bb.53:
cbz x8, LBB15_63
; %bb.54:
ldr w9, [x0, #24]
b LBB15_57
LBB15_55:
cbz x8, LBB15_63
; %bb.56:
mov w9, #0
LBB15_57:
ldr w10, [x8, #24]
sub w9, w9, w10
cmn w9, #2
b.ne LBB15_63
; %bb.58:
ldr x0, [x8, #8]
cbz x0, LBB15_69
; %bb.59:
ldr w9, [x0, #24]
ldr x10, [x8, #16]
cbz x10, LBB15_61
LBB15_60:
ldr w10, [x10, #24]
LBB15_61:
sub w9, w9, w10
cmp w9, #1
b.ne LBB15_63
; %bb.62:
ldr x9, [x0, #8]
str x9, [x19, #16]
ldr x9, [x0, #16]
str x9, [x8, #8]
stp x19, x8, [x0, #8]
b LBB15_68
LBB15_63:
mov x0, x19
b LBB15_68
LBB15_64:
ldr x8, [x9, #8]
str x8, [x0, #16]
ldr x8, [x9, #16]
str x8, [x19, #8]
stp x0, x19, [x9, #8]
mov x0, x9
b LBB15_68
LBB15_65:
mov w10, #0
ldr x11, [x8, #16]
cbnz x11, LBB15_50
b LBB15_51
LBB15_66:
str x9, [x19, #16]
str x19, [x8, #8]
LBB15_67:
mov x0, x8
LBB15_68:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB15_69:
mov w9, #0
ldr x10, [x8, #16]
cbnz x10, LBB15_60
b LBB15_61
.cfi_endproc
; -- End function
.globl _checkAVL ; -- Begin function checkAVL
.p2align 2
_checkAVL: ; @checkAVL
.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, LBB16_13
; %bb.1:
mov x19, x0
ldr x20, [x0, #8]
mov x0, x20
bl _checkAVL
ldr x19, [x19, #16]
mov x0, x19
bl _checkAVL
cbz x20, LBB16_4
; %bb.2:
ldr w8, [x20, #24]
cbz x19, LBB16_5
LBB16_3:
ldr w9, [x19, #24]
b LBB16_6
LBB16_4:
mov w8, #0
cbnz x19, LBB16_3
LBB16_5:
mov w9, #0
LBB16_6:
sub w8, w8, w9
cmn w8, #1
b.lt LBB16_14
; %bb.7:
cbz x20, LBB16_10
; %bb.8:
ldr w8, [x20, #24]
cbz x19, LBB16_11
LBB16_9:
ldr w9, [x19, #24]
b LBB16_12
LBB16_10:
mov w8, #0
cbnz x19, LBB16_9
LBB16_11:
mov w9, #0
LBB16_12:
sub w8, w8, w9
cmp w8, #2
b.ge LBB16_14
LBB16_13:
mov w0, #1
b LBB16_15
LBB16_14:
mov w0, #0
LBB16_15:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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 x28, #0
Lloh6:
adrp x21, l_.str.3@PAGE
Lloh7:
add x21, x21, l_.str.3@PAGEOFF
Lloh8:
adrp x22, l_.str.4@PAGE
Lloh9:
add x22, x22, l_.str.4@PAGEOFF
Lloh10:
adrp x23, l_.str.5@PAGE
Lloh11:
add x23, x23, l_.str.5@PAGEOFF
Lloh12:
adrp x24, l_.str.6@PAGE
Lloh13:
add x24, x24, l_.str.6@PAGEOFF
Lloh14:
adrp x25, l_.str.7@PAGE
Lloh15:
add x25, x25, l_.str.7@PAGEOFF
add x19, sp, #8
Lloh16:
adrp x27, l_.str.8@PAGE
Lloh17:
add x27, x27, l_.str.8@PAGEOFF
add x20, sp, #12
b LBB17_3
LBB17_1: ; in Loop: Header=BB17_3 Depth=1
Lloh18:
adrp x0, l_.str.13@PAGE
Lloh19:
add x0, x0, l_.str.13@PAGEOFF
LBB17_2: ; in Loop: Header=BB17_3 Depth=1
bl _printf
mov x28, x26
LBB17_3: ; =>This Loop Header: Depth=1
; Child Loop BB17_7 Depth 2
mov x26, x28
Lloh20:
adrp x0, l_.str.1@PAGE
Lloh21:
add x0, x0, l_.str.1@PAGEOFF
bl _printf
Lloh22:
adrp x0, l_.str.2@PAGE
Lloh23:
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov x0, x21
bl _printf
mov x0, x22
bl _printf
mov x0, x23
bl _printf
mov x0, x24
bl _printf
str x19, [sp]
mov x0, x25
bl _scanf
ldr w8, [sp, #8]
sub w8, w8, #1
cmp w8, #4
b.hi LBB17_12
; %bb.4: ; in Loop: Header=BB17_3 Depth=1
Lloh24:
adrp x11, lJTI17_0@PAGE
Lloh25:
add x11, x11, lJTI17_0@PAGEOFF
adr x9, LBB17_5
ldrb w10, [x11, x8]
add x9, x9, x10, lsl #2
br x9
LBB17_5: ; in Loop: Header=BB17_3 Depth=1
mov x0, x27
bl _printf
str x20, [sp]
mov x0, x25
bl _scanf
ldr w1, [sp, #12]
mov x28, x26
cmn w1, #1
b.eq LBB17_3
; %bb.6: ; in Loop: Header=BB17_3 Depth=1
mov x28, x26
LBB17_7: ; Parent Loop BB17_3 Depth=1
; => This Inner Loop Header: Depth=2
mov x0, x28
bl _AVLinsertion
mov x28, x0
mov x0, x27
bl _printf
str x20, [sp]
mov x0, x25
bl _scanf
ldr w1, [sp, #12]
cmn w1, #1
b.ne LBB17_7
b LBB17_3
LBB17_8: ; in Loop: Header=BB17_3 Depth=1
Lloh26:
adrp x0, l_.str.10@PAGE
Lloh27:
add x0, x0, l_.str.10@PAGEOFF
bl _printf
mov x0, x26
bl _preorder
Lloh28:
adrp x0, l_.str.11@PAGE
Lloh29:
add x0, x0, l_.str.11@PAGEOFF
bl _printf
mov x0, x26
bl _inorder
Lloh30:
adrp x0, l_.str.12@PAGE
Lloh31:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
mov x28, #0
cbz x26, LBB17_3
; %bb.9: ; in Loop: Header=BB17_3 Depth=1
ldr x0, [x26, #8]
bl _preorder
ldr x0, [x26, #16]
bl _preorder
ldr w8, [x26]
str x8, [sp]
Lloh32:
adrp x0, l_.str@PAGE
Lloh33:
add x0, x0, l_.str@PAGEOFF
b LBB17_2
LBB17_10: ; in Loop: Header=BB17_3 Depth=1
mov x0, x26
bl _checkAVL
cmp w0, #1
b.eq LBB17_1
; %bb.11: ; in Loop: Header=BB17_3 Depth=1
Lloh34:
adrp x0, l_.str.14@PAGE
Lloh35:
add x0, x0, l_.str.14@PAGEOFF
b LBB17_2
LBB17_12: ; in Loop: Header=BB17_3 Depth=1
Lloh36:
adrp x0, l_str@PAGE
Lloh37:
add x0, x0, l_str@PAGEOFF
bl _puts
mov x28, x26
b LBB17_3
LBB17_13: ; in Loop: Header=BB17_3 Depth=1
Lloh38:
adrp x0, l_.str.9@PAGE
Lloh39:
add x0, x0, l_.str.9@PAGEOFF
bl _printf
str x20, [sp]
mov x0, x25
bl _scanf
ldr w1, [sp, #12]
mov x0, x26
bl _deleteelement
mov x28, x26
b LBB17_3
LBB17_14:
mov w0, #0
bl _exit
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpAdd Lloh14, Lloh15
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh18, Lloh19
.loh AdrpAdd Lloh22, Lloh23
.loh AdrpAdd Lloh20, Lloh21
.loh AdrpAdd Lloh24, Lloh25
.loh AdrpAdd Lloh30, Lloh31
.loh AdrpAdd Lloh28, Lloh29
.loh AdrpAdd Lloh26, Lloh27
.loh AdrpAdd Lloh32, Lloh33
.loh AdrpAdd Lloh34, Lloh35
.loh AdrpAdd Lloh36, Lloh37
.loh AdrpAdd Lloh38, Lloh39
.cfi_endproc
.section __TEXT,__const
lJTI17_0:
.byte (LBB17_5-LBB17_5)>>2
.byte (LBB17_13-LBB17_5)>>2
.byte (LBB17_8-LBB17_5)>>2
.byte (LBB17_10-LBB17_5)>>2
.byte (LBB17_14-LBB17_5)>>2
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d "
l_.str.1: ; @.str.1
.asciz "\n1. Insertion"
l_.str.2: ; @.str.2
.asciz "\n2. Deletion"
l_.str.3: ; @.str.3
.asciz "\n3. Traversal"
l_.str.4: ; @.str.4
.asciz "\n4. Check for AVL"
l_.str.5: ; @.str.5
.asciz "\n5. EXIT"
l_.str.6: ; @.str.6
.asciz "\nENTER CHOICE : "
l_.str.7: ; @.str.7
.asciz "%d"
l_.str.8: ; @.str.8
.asciz "\nEnter element or press -1 : "
l_.str.9: ; @.str.9
.asciz "\nEnter element to be deleted : "
l_.str.10: ; @.str.10
.asciz "\nPre-order traversal of the tree formed = "
l_.str.11: ; @.str.11
.asciz "\nIn-order traversal of the tree formed = "
l_.str.12: ; @.str.12
.asciz "\nPost-order traversal of the tree formed = "
l_.str.13: ; @.str.13
.asciz "\nTree is AVL"
l_.str.14: ; @.str.14
.asciz "\nTree is not AVL"
l_str: ; @str
.asciz "\nINVALID CHOICE"
.subsections_via_symbols
| the_stack_data/60106.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function mtk_jpeg_clk_on
_mtk_jpeg_clk_on: ## @mtk_jpeg_clk_on
.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
movl 12(%rdi), %edi
callq _mtk_smi_larb_get
testl %eax, %eax
je LBB0_2
## %bb.1:
movl 8(%rbx), %edi
leaq L_.str(%rip), %rsi
movl %eax, %edx
callq _dev_err
LBB0_2:
movl 4(%rbx), %edi
callq _clk_prepare_enable
movl (%rbx), %edi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _clk_prepare_enable ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "mtk_smi_larb_get larbvdec fail %d\n"
.no_dead_strip _mtk_jpeg_clk_on
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function mtk_jpeg_clk_on
_mtk_jpeg_clk_on: ; @mtk_jpeg_clk_on
.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 w0, [x0, #12]
bl _mtk_smi_larb_get
cbz w0, LBB0_2
; %bb.1:
mov x2, x0
ldr w0, [x19, #8]
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
bl _dev_err
LBB0_2:
ldr w0, [x19, #4]
bl _clk_prepare_enable
ldr w0, [x19]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _clk_prepare_enable
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "mtk_smi_larb_get larbvdec fail %d\n"
.no_dead_strip _mtk_jpeg_clk_on
.subsections_via_symbols
| AnghaBench/linux/drivers/media/platform/mtk-jpeg/extr_mtk_jpeg_core.c_mtk_jpeg_clk_on.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _uv_uptime ## -- Begin function uv_uptime
.p2align 4, 0x90
_uv_uptime: ## @uv_uptime
.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 $16, %rsp
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
movq $8, -24(%rbp)
leaq _uv_uptime.which(%rip), %rdi
xorl %ebx, %ebx
leaq -32(%rbp), %rdx
leaq -24(%rbp), %rcx
movl $2, %esi
xorl %r8d, %r8d
xorl %r9d, %r9d
callq _sysctl
testq %rax, %rax
je LBB0_2
## %bb.1:
movq _errno@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _UV__ERR
movl %eax, %ebx
jmp LBB0_3
LBB0_2:
xorl %edi, %edi
callq _time
subsd -32(%rbp), %xmm0
movsd %xmm0, (%r14)
LBB0_3:
movl %ebx, %eax
addq $16, %rsp
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.p2align 2, 0x0 ## @uv_uptime.which
_uv_uptime.which:
.long 129 ## 0x81
.long 128 ## 0x80
.comm _errno,4,2 ## @errno
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _uv_uptime ; -- Begin function uv_uptime
.p2align 2
_uv_uptime: ; @uv_uptime
.cfi_startproc
; %bb.0:
sub sp, sp, #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
mov w8, #8 ; =0x8
str x8, [sp]
Lloh0:
adrp x0, _uv_uptime.which@PAGE
Lloh1:
add x0, x0, _uv_uptime.which@PAGEOFF
add x2, sp, #8
mov x3, sp
mov w1, #2 ; =0x2
mov x4, #0 ; =0x0
mov w5, #0 ; =0x0
bl _sysctl
cbz x0, LBB0_2
; %bb.1:
Lloh2:
adrp x8, _errno@GOTPAGE
Lloh3:
ldr x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
ldr w0, [x8]
bl _UV__ERR
b LBB0_3
LBB0_2:
bl _time
mov w0, #0 ; =0x0
ldr d1, [sp, #8]
fsub d0, d0, d1
str d0, [x19]
LBB0_3:
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 AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.cfi_endproc
; -- End function
.section __DATA,__data
.p2align 2, 0x0 ; @uv_uptime.which
_uv_uptime.which:
.long 129 ; 0x81
.long 128 ; 0x80
.comm _errno,4,2 ; @errno
.subsections_via_symbols
| assembly_file_80454.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal16,16byte_literals
.p2align 4 ## -- Begin function my_strlowcase
LCPI0_0:
.space 16,191
LCPI0_1:
.space 16,25
LCPI0_2:
.byte 191 ## 0xbf
.byte 191 ## 0xbf
.byte 191 ## 0xbf
.byte 191 ## 0xbf
.byte 191 ## 0xbf
.byte 191 ## 0xbf
.byte 191 ## 0xbf
.byte 191 ## 0xbf
.space 1
.space 1
.space 1
.space 1
.space 1
.space 1
.space 1
.space 1
LCPI0_3:
.byte 26 ## 0x1a
.byte 26 ## 0x1a
.byte 26 ## 0x1a
.byte 26 ## 0x1a
.byte 26 ## 0x1a
.byte 26 ## 0x1a
.byte 26 ## 0x1a
.byte 26 ## 0x1a
.space 1
.space 1
.space 1
.space 1
.space 1
.space 1
.space 1
.space 1
.section __TEXT,__text,regular,pure_instructions
.globl _my_strlowcase
.p2align 4, 0x90
_my_strlowcase: ## @my_strlowcase
.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
movq $-1, %rcx
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpb $0, 1(%rax,%rcx)
leaq 1(%rcx), %rcx
jne LBB0_1
## %bb.2:
testl %ecx, %ecx
je LBB0_66
## %bb.3:
movl %ecx, %r9d
cmpq $8, %r9
jae LBB0_5
## %bb.4:
xorl %edx, %edx
jmp LBB0_62
LBB0_5:
cmpl $16, %r9d
jae LBB0_7
## %bb.6:
xorl %edx, %edx
jmp LBB0_43
LBB0_7:
movl %ecx, %r10d
movl %ecx, %r8d
andl $15, %r8d
movq %r9, %rdx
subq %r8, %rdx
subq %r8, %r10
xorl %esi, %esi
movdqa LCPI0_0(%rip), %xmm0 ## xmm0 = [191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191]
movdqa LCPI0_1(%rip), %xmm1 ## xmm1 = [25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25]
jmp LBB0_8
.p2align 4, 0x90
LBB0_40: ## in Loop: Header=BB0_8 Depth=1
addq $16, %rsi
cmpq %rsi, %r10
je LBB0_41
LBB0_8: ## =>This Inner Loop Header: Depth=1
movdqu (%rax,%rsi), %xmm2
movdqa %xmm2, %xmm4
paddb %xmm0, %xmm4
movdqa %xmm4, %xmm3
pminub %xmm1, %xmm3
pcmpeqb %xmm4, %xmm3
movd %xmm3, %edi
testb $1, %dil
je LBB0_10
## %bb.9: ## in Loop: Header=BB0_8 Depth=1
movd %xmm2, %edi
addb $32, %dil
movb %dil, (%rax,%rsi)
LBB0_10: ## in Loop: Header=BB0_8 Depth=1
pextrb $1, %xmm3, %edi
testb $1, %dil
je LBB0_12
## %bb.11: ## in Loop: Header=BB0_8 Depth=1
pextrb $1, %xmm2, %edi
addb $32, %dil
movb %dil, 1(%rax,%rsi)
LBB0_12: ## in Loop: Header=BB0_8 Depth=1
pextrb $2, %xmm3, %edi
testb $1, %dil
je LBB0_14
## %bb.13: ## in Loop: Header=BB0_8 Depth=1
pextrb $2, %xmm2, %edi
addb $32, %dil
movb %dil, 2(%rax,%rsi)
LBB0_14: ## in Loop: Header=BB0_8 Depth=1
pextrb $3, %xmm3, %edi
testb $1, %dil
je LBB0_16
## %bb.15: ## in Loop: Header=BB0_8 Depth=1
pextrb $3, %xmm2, %edi
addb $32, %dil
movb %dil, 3(%rax,%rsi)
LBB0_16: ## in Loop: Header=BB0_8 Depth=1
pextrb $4, %xmm3, %edi
testb $1, %dil
je LBB0_18
## %bb.17: ## in Loop: Header=BB0_8 Depth=1
pextrb $4, %xmm2, %edi
addb $32, %dil
movb %dil, 4(%rax,%rsi)
LBB0_18: ## in Loop: Header=BB0_8 Depth=1
pextrb $5, %xmm3, %edi
testb $1, %dil
je LBB0_20
## %bb.19: ## in Loop: Header=BB0_8 Depth=1
pextrb $5, %xmm2, %edi
addb $32, %dil
movb %dil, 5(%rax,%rsi)
LBB0_20: ## in Loop: Header=BB0_8 Depth=1
pextrb $6, %xmm3, %edi
testb $1, %dil
je LBB0_22
## %bb.21: ## in Loop: Header=BB0_8 Depth=1
pextrb $6, %xmm2, %edi
addb $32, %dil
movb %dil, 6(%rax,%rsi)
LBB0_22: ## in Loop: Header=BB0_8 Depth=1
pextrb $7, %xmm3, %edi
testb $1, %dil
je LBB0_24
## %bb.23: ## in Loop: Header=BB0_8 Depth=1
pextrb $7, %xmm2, %edi
addb $32, %dil
movb %dil, 7(%rax,%rsi)
LBB0_24: ## in Loop: Header=BB0_8 Depth=1
pextrb $8, %xmm3, %edi
testb $1, %dil
je LBB0_26
## %bb.25: ## in Loop: Header=BB0_8 Depth=1
pextrb $8, %xmm2, %edi
addb $32, %dil
movb %dil, 8(%rax,%rsi)
LBB0_26: ## in Loop: Header=BB0_8 Depth=1
pextrb $9, %xmm3, %edi
testb $1, %dil
je LBB0_28
## %bb.27: ## in Loop: Header=BB0_8 Depth=1
pextrb $9, %xmm2, %edi
addb $32, %dil
movb %dil, 9(%rax,%rsi)
LBB0_28: ## in Loop: Header=BB0_8 Depth=1
pextrb $10, %xmm3, %edi
testb $1, %dil
je LBB0_30
## %bb.29: ## in Loop: Header=BB0_8 Depth=1
pextrb $10, %xmm2, %edi
addb $32, %dil
movb %dil, 10(%rax,%rsi)
LBB0_30: ## in Loop: Header=BB0_8 Depth=1
pextrb $11, %xmm3, %edi
testb $1, %dil
je LBB0_32
## %bb.31: ## in Loop: Header=BB0_8 Depth=1
pextrb $11, %xmm2, %edi
addb $32, %dil
movb %dil, 11(%rax,%rsi)
LBB0_32: ## in Loop: Header=BB0_8 Depth=1
pextrb $12, %xmm3, %edi
testb $1, %dil
je LBB0_34
## %bb.33: ## in Loop: Header=BB0_8 Depth=1
pextrb $12, %xmm2, %edi
addb $32, %dil
movb %dil, 12(%rax,%rsi)
LBB0_34: ## in Loop: Header=BB0_8 Depth=1
pextrb $13, %xmm3, %edi
testb $1, %dil
je LBB0_36
## %bb.35: ## in Loop: Header=BB0_8 Depth=1
pextrb $13, %xmm2, %edi
addb $32, %dil
movb %dil, 13(%rax,%rsi)
LBB0_36: ## in Loop: Header=BB0_8 Depth=1
pextrb $14, %xmm3, %edi
testb $1, %dil
je LBB0_38
## %bb.37: ## in Loop: Header=BB0_8 Depth=1
pextrb $14, %xmm2, %edi
addb $32, %dil
movb %dil, 14(%rax,%rsi)
LBB0_38: ## in Loop: Header=BB0_8 Depth=1
pextrb $15, %xmm3, %edi
testb $1, %dil
je LBB0_40
## %bb.39: ## in Loop: Header=BB0_8 Depth=1
pextrb $15, %xmm2, %edi
addb $32, %dil
movb %dil, 15(%rax,%rsi)
jmp LBB0_40
LBB0_41:
testq %r8, %r8
je LBB0_66
## %bb.42:
cmpl $8, %r8d
jb LBB0_62
LBB0_43:
movl %ecx, %edi
movl %ecx, %r8d
andl $7, %r8d
subq %r8, %r9
subq %r8, %rdi
movdqa LCPI0_2(%rip), %xmm0 ## xmm0 = <191,191,191,191,191,191,191,191,u,u,u,u,u,u,u,u>
movdqa LCPI0_3(%rip), %xmm1 ## xmm1 = <26,26,26,26,26,26,26,26,u,u,u,u,u,u,u,u>
pcmpeqd %xmm2, %xmm2
jmp LBB0_44
.p2align 4, 0x90
LBB0_60: ## in Loop: Header=BB0_44 Depth=1
addq $8, %rdx
cmpq %rdx, %rdi
je LBB0_61
LBB0_44: ## =>This Inner Loop Header: Depth=1
movq (%rax,%rdx), %xmm3 ## xmm3 = mem[0],zero
movdqa %xmm3, %xmm5
paddb %xmm0, %xmm5
movdqa %xmm5, %xmm4
pmaxub %xmm1, %xmm4
pcmpeqb %xmm5, %xmm4
movd %xmm4, %esi
notb %sil
testb $1, %sil
je LBB0_46
## %bb.45: ## in Loop: Header=BB0_44 Depth=1
movd %xmm3, %esi
addb $32, %sil
movb %sil, (%rax,%rdx)
LBB0_46: ## in Loop: Header=BB0_44 Depth=1
pxor %xmm2, %xmm4
pextrb $1, %xmm4, %esi
testb $1, %sil
je LBB0_48
## %bb.47: ## in Loop: Header=BB0_44 Depth=1
pextrb $1, %xmm3, %esi
addb $32, %sil
movb %sil, 1(%rax,%rdx)
LBB0_48: ## in Loop: Header=BB0_44 Depth=1
pextrb $2, %xmm4, %esi
testb $1, %sil
je LBB0_50
## %bb.49: ## in Loop: Header=BB0_44 Depth=1
pextrb $2, %xmm3, %esi
addb $32, %sil
movb %sil, 2(%rax,%rdx)
LBB0_50: ## in Loop: Header=BB0_44 Depth=1
pextrb $3, %xmm4, %esi
testb $1, %sil
je LBB0_52
## %bb.51: ## in Loop: Header=BB0_44 Depth=1
pextrb $3, %xmm3, %esi
addb $32, %sil
movb %sil, 3(%rax,%rdx)
LBB0_52: ## in Loop: Header=BB0_44 Depth=1
pextrb $4, %xmm4, %esi
testb $1, %sil
je LBB0_54
## %bb.53: ## in Loop: Header=BB0_44 Depth=1
pextrb $4, %xmm3, %esi
addb $32, %sil
movb %sil, 4(%rax,%rdx)
LBB0_54: ## in Loop: Header=BB0_44 Depth=1
pextrb $5, %xmm4, %esi
testb $1, %sil
je LBB0_56
## %bb.55: ## in Loop: Header=BB0_44 Depth=1
pextrb $5, %xmm3, %esi
addb $32, %sil
movb %sil, 5(%rax,%rdx)
LBB0_56: ## in Loop: Header=BB0_44 Depth=1
pextrb $6, %xmm4, %esi
testb $1, %sil
je LBB0_58
## %bb.57: ## in Loop: Header=BB0_44 Depth=1
pextrb $6, %xmm3, %esi
addb $32, %sil
movb %sil, 6(%rax,%rdx)
LBB0_58: ## in Loop: Header=BB0_44 Depth=1
pextrb $7, %xmm4, %esi
testb $1, %sil
je LBB0_60
## %bb.59: ## in Loop: Header=BB0_44 Depth=1
pextrb $7, %xmm3, %esi
addb $32, %sil
movb %sil, 7(%rax,%rdx)
jmp LBB0_60
LBB0_61:
movq %r9, %rdx
testq %r8, %r8
je LBB0_66
LBB0_62:
movl %ecx, %ecx
jmp LBB0_63
.p2align 4, 0x90
LBB0_65: ## in Loop: Header=BB0_63 Depth=1
incq %rdx
cmpq %rdx, %rcx
je LBB0_66
LBB0_63: ## =>This Inner Loop Header: Depth=1
movzbl (%rax,%rdx), %esi
leal -65(%rsi), %edi
cmpb $25, %dil
ja LBB0_65
## %bb.64: ## in Loop: Header=BB0_63 Depth=1
addb $32, %sil
movb %sil, (%rax,%rdx)
jmp LBB0_65
LBB0_66:
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 _my_strlowcase ; -- Begin function my_strlowcase
.p2align 2
_my_strlowcase: ; @my_strlowcase
.cfi_startproc
; %bb.0:
mov x8, #0
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldrb w9, [x0, x8]
add x8, x8, #1
cbnz w9, LBB0_1
; %bb.2:
cmp w8, #1
b.ne LBB0_4
LBB0_3:
ret
LBB0_4:
sub x10, x8, #1
and x9, x10, #0xffffffff
cmp x9, #8
b.hs LBB0_6
; %bb.5:
mov x9, #0
b LBB0_25
LBB0_6:
and x10, x10, #0x7
sub x9, x9, x10
sub w11, w8, #1
sub x11, x11, x10
add x12, x0, #3
movi.8b v0, #191
movi.8b v1, #26
b LBB0_8
LBB0_7: ; in Loop: Header=BB0_8 Depth=1
add x12, x12, #8
subs x11, x11, #8
b.eq LBB0_24
LBB0_8: ; =>This Inner Loop Header: Depth=1
ldur d2, [x12, #-3]
add.8b v3, v2, v0
cmhi.8b v3, v1, v3
umov.b w13, v3[0]
tbnz w13, #0, LBB0_16
; %bb.9: ; in Loop: Header=BB0_8 Depth=1
umov.b w13, v3[1]
tbnz w13, #0, LBB0_17
LBB0_10: ; in Loop: Header=BB0_8 Depth=1
umov.b w13, v3[2]
tbnz w13, #0, LBB0_18
LBB0_11: ; in Loop: Header=BB0_8 Depth=1
umov.b w13, v3[3]
tbnz w13, #0, LBB0_19
LBB0_12: ; in Loop: Header=BB0_8 Depth=1
umov.b w13, v3[4]
tbnz w13, #0, LBB0_20
LBB0_13: ; in Loop: Header=BB0_8 Depth=1
umov.b w13, v3[5]
tbnz w13, #0, LBB0_21
LBB0_14: ; in Loop: Header=BB0_8 Depth=1
umov.b w13, v3[6]
tbnz w13, #0, LBB0_22
LBB0_15: ; in Loop: Header=BB0_8 Depth=1
umov.b w13, v3[7]
tbz w13, #0, LBB0_7
b LBB0_23
LBB0_16: ; in Loop: Header=BB0_8 Depth=1
umov.b w13, v2[0]
add w13, w13, #32
sturb w13, [x12, #-3]
umov.b w13, v3[1]
tbz w13, #0, LBB0_10
LBB0_17: ; in Loop: Header=BB0_8 Depth=1
umov.b w13, v2[1]
add w13, w13, #32
sturb w13, [x12, #-2]
umov.b w13, v3[2]
tbz w13, #0, LBB0_11
LBB0_18: ; in Loop: Header=BB0_8 Depth=1
umov.b w13, v2[2]
add w13, w13, #32
sturb w13, [x12, #-1]
umov.b w13, v3[3]
tbz w13, #0, LBB0_12
LBB0_19: ; in Loop: Header=BB0_8 Depth=1
umov.b w13, v2[3]
add w13, w13, #32
strb w13, [x12]
umov.b w13, v3[4]
tbz w13, #0, LBB0_13
LBB0_20: ; in Loop: Header=BB0_8 Depth=1
umov.b w13, v2[4]
add w13, w13, #32
strb w13, [x12, #1]
umov.b w13, v3[5]
tbz w13, #0, LBB0_14
LBB0_21: ; in Loop: Header=BB0_8 Depth=1
umov.b w13, v2[5]
add w13, w13, #32
strb w13, [x12, #2]
umov.b w13, v3[6]
tbz w13, #0, LBB0_15
LBB0_22: ; in Loop: Header=BB0_8 Depth=1
umov.b w13, v2[6]
add w13, w13, #32
strb w13, [x12, #3]
umov.b w13, v3[7]
tbz w13, #0, LBB0_7
LBB0_23: ; in Loop: Header=BB0_8 Depth=1
umov.b w13, v2[7]
add w13, w13, #32
strb w13, [x12, #4]
b LBB0_7
LBB0_24:
cbz x10, LBB0_3
LBB0_25:
add x10, x0, x9
sub w8, w8, #1
sub x8, x8, x9
b LBB0_27
LBB0_26: ; in Loop: Header=BB0_27 Depth=1
add x10, x10, #1
subs x8, x8, #1
b.eq LBB0_3
LBB0_27: ; =>This Inner Loop Header: Depth=1
ldrb w9, [x10]
sub w11, w9, #65
cmp w11, #25
b.hi LBB0_26
; %bb.28: ; in Loop: Header=BB0_27 Depth=1
add w9, w9, #32
strb w9, [x10]
b LBB0_26
.cfi_endproc
; -- End function
.subsections_via_symbols
| the_stack_data/45450296.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function hfi1_make_opa_lid
_hfi1_make_opa_lid: ## @hfi1_make_opa_lid
.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 %rdi, %r14
callq _rdma_ah_read_grh
movq %rax, %rbx
movq %r14, %rdi
callq _rdma_ah_get_dlid
movq %rax, %r15
movq %rbx, %rdi
callq _ib_is_opa_gid
testq %rax, %rax
je LBB0_2
## %bb.1:
movq %rbx, %rdi
callq _opa_get_lid_from_gid
jmp LBB0_8
LBB0_2:
movq _IB_MULTICAST_LID_BASE@GOTPCREL(%rip), %rbx
movl (%rbx), %edi
callq _be16_to_cpu
cmpq %rax, %r15
jl LBB0_6
## %bb.3:
movq _IB_LID_PERMISSIVE@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _be16_to_cpu
cmpq %rax, %r15
je LBB0_6
## %bb.4:
movq _OPA_LID_PERMISSIVE@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _be32_to_cpu
cmpq %rax, %r15
jne LBB0_5
LBB0_6:
movq _IB_LID_PERMISSIVE@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _be16_to_cpu
cmpq %rax, %r15
jne LBB0_9
## %bb.7:
movq _OPA_LID_PERMISSIVE@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _be32_to_cpu
LBB0_8:
movq %rax, %r15
LBB0_9:
movq %r14, %rdi
movq %r15, %rsi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _rdma_ah_set_dlid ## TAILCALL
LBB0_5:
movl (%rbx), %edi
callq _be16_to_cpu
subq %rax, %r15
movq _OPA_MCAST_NR@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _opa_get_mcast_base
addq %rax, %r15
jmp LBB0_9
.cfi_endproc
## -- End function
.comm _IB_MULTICAST_LID_BASE,4,2 ## @IB_MULTICAST_LID_BASE
.comm _IB_LID_PERMISSIVE,4,2 ## @IB_LID_PERMISSIVE
.comm _OPA_LID_PERMISSIVE,4,2 ## @OPA_LID_PERMISSIVE
.comm _OPA_MCAST_NR,4,2 ## @OPA_MCAST_NR
.no_dead_strip _hfi1_make_opa_lid
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function hfi1_make_opa_lid
_hfi1_make_opa_lid: ; @hfi1_make_opa_lid
.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, x0
bl _rdma_ah_read_grh
mov x21, x0
mov x0, x19
bl _rdma_ah_get_dlid
mov x20, x0
mov x0, x21
bl _ib_is_opa_gid
cbz x0, LBB0_2
; %bb.1:
mov x0, x21
bl _opa_get_lid_from_gid
b LBB0_7
LBB0_2:
Lloh0:
adrp x21, _IB_MULTICAST_LID_BASE@GOTPAGE
Lloh1:
ldr x21, [x21, _IB_MULTICAST_LID_BASE@GOTPAGEOFF]
ldr w0, [x21]
bl _be16_to_cpu
Lloh2:
adrp x22, _IB_LID_PERMISSIVE@GOTPAGE
Lloh3:
ldr x22, [x22, _IB_LID_PERMISSIVE@GOTPAGEOFF]
cmp x20, x0
b.lt LBB0_5
; %bb.3:
ldr w0, [x22]
bl _be16_to_cpu
cmp x20, x0
b.eq LBB0_5
; %bb.4:
Lloh4:
adrp x8, _OPA_LID_PERMISSIVE@GOTPAGE
Lloh5:
ldr x8, [x8, _OPA_LID_PERMISSIVE@GOTPAGEOFF]
Lloh6:
ldr w0, [x8]
bl _be32_to_cpu
cmp x20, x0
b.ne LBB0_9
LBB0_5:
ldr w0, [x22]
bl _be16_to_cpu
cmp x20, x0
b.ne LBB0_8
; %bb.6:
Lloh7:
adrp x8, _OPA_LID_PERMISSIVE@GOTPAGE
Lloh8:
ldr x8, [x8, _OPA_LID_PERMISSIVE@GOTPAGEOFF]
Lloh9:
ldr w0, [x8]
bl _be32_to_cpu
LBB0_7:
mov x20, x0
LBB0_8:
mov x0, x19
mov x1, x20
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 _rdma_ah_set_dlid
LBB0_9:
ldr w0, [x21]
bl _be16_to_cpu
sub x20, x20, x0
Lloh10:
adrp x8, _OPA_MCAST_NR@GOTPAGE
Lloh11:
ldr x8, [x8, _OPA_MCAST_NR@GOTPAGEOFF]
Lloh12:
ldr w0, [x8]
bl _opa_get_mcast_base
add x20, x20, x0
b LBB0_8
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.cfi_endproc
; -- End function
.comm _IB_MULTICAST_LID_BASE,4,2 ; @IB_MULTICAST_LID_BASE
.comm _IB_LID_PERMISSIVE,4,2 ; @IB_LID_PERMISSIVE
.comm _OPA_LID_PERMISSIVE,4,2 ; @OPA_LID_PERMISSIVE
.comm _OPA_MCAST_NR,4,2 ; @OPA_MCAST_NR
.no_dead_strip _hfi1_make_opa_lid
.subsections_via_symbols
| AnghaBench/linux/drivers/infiniband/hw/hfi1/extr_hfi.h_hfi1_make_opa_lid.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _BotFreeMoveState ## -- Begin function BotFreeMoveState
.p2align 4, 0x90
_BotFreeMoveState: ## @BotFreeMoveState
.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 %edi, %edx
testl %edi, %edi
jle LBB0_2
## %bb.1:
movq _MAX_CLIENTS@GOTPCREL(%rip), %rax
cmpl %edx, (%rax)
jl LBB0_2
## %bb.4:
movq _botmovestates@GOTPCREL(%rip), %r14
movq (%r14), %rax
movl %edx, %ebx
movq (%rax,%rbx,8), %rdi
testq %rdi, %rdi
je LBB0_5
## %bb.6:
callq _FreeMemory
movq (%r14), %rax
movq $0, (%rax,%rbx,8)
popq %rbx
popq %r14
popq %rbp
retq
LBB0_2:
movq _botimport@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq _PRT_FATAL@GOTPCREL(%rip), %rcx
movl (%rcx), %edi
leaq L_.str(%rip), %rsi
jmp LBB0_3
LBB0_5:
movq _botimport@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq _PRT_FATAL@GOTPCREL(%rip), %rcx
movl (%rcx), %edi
leaq L_.str.1(%rip), %rsi
LBB0_3:
popq %rbx
popq %r14
popq %rbp
jmpq *%rax ## TAILCALL
.cfi_endproc
## -- End function
.comm _MAX_CLIENTS,4,2 ## @MAX_CLIENTS
.comm _botimport,8,3 ## @botimport
.comm _PRT_FATAL,4,2 ## @PRT_FATAL
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "move state handle %d out of range\n"
.comm _botmovestates,8,3 ## @botmovestates
L_.str.1: ## @.str.1
.asciz "invalid move state %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _BotFreeMoveState ; -- Begin function BotFreeMoveState
.p2align 2
_BotFreeMoveState: ; @BotFreeMoveState
.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 x2, x0
cmp w0, #1
b.lt LBB0_4
; %bb.1:
Lloh0:
adrp x8, _MAX_CLIENTS@GOTPAGE
Lloh1:
ldr x8, [x8, _MAX_CLIENTS@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
cmp w8, w2
b.lt LBB0_4
; %bb.2:
Lloh3:
adrp x19, _botmovestates@GOTPAGE
Lloh4:
ldr x19, [x19, _botmovestates@GOTPAGEOFF]
ldr x8, [x19]
ldr x0, [x8, w2, uxtw #3]
cbz x0, LBB0_5
; %bb.3:
mov w20, w2
bl _FreeMemory
ldr x8, [x19]
str xzr, [x8, x20, lsl #3]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_4:
Lloh5:
adrp x8, _botimport@GOTPAGE
Lloh6:
ldr x8, [x8, _botimport@GOTPAGEOFF]
Lloh7:
ldr x3, [x8]
Lloh8:
adrp x8, _PRT_FATAL@GOTPAGE
Lloh9:
ldr x8, [x8, _PRT_FATAL@GOTPAGEOFF]
Lloh10:
ldr w0, [x8]
Lloh11:
adrp x1, l_.str@PAGE
Lloh12:
add x1, x1, l_.str@PAGEOFF
b LBB0_6
LBB0_5:
Lloh13:
adrp x8, _botimport@GOTPAGE
Lloh14:
ldr x8, [x8, _botimport@GOTPAGEOFF]
Lloh15:
ldr x3, [x8]
Lloh16:
adrp x8, _PRT_FATAL@GOTPAGE
Lloh17:
ldr x8, [x8, _PRT_FATAL@GOTPAGEOFF]
Lloh18:
ldr w0, [x8]
Lloh19:
adrp x1, l_.str.1@PAGE
Lloh20:
add x1, x1, l_.str.1@PAGEOFF
LBB0_6:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
br x3
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpAdd Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpAdd Lloh19, Lloh20
.loh AdrpLdrGotLdr Lloh16, Lloh17, Lloh18
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.cfi_endproc
; -- End function
.comm _MAX_CLIENTS,4,2 ; @MAX_CLIENTS
.comm _botimport,8,3 ; @botimport
.comm _PRT_FATAL,4,2 ; @PRT_FATAL
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "move state handle %d out of range\n"
.comm _botmovestates,8,3 ; @botmovestates
l_.str.1: ; @.str.1
.asciz "invalid move state %d\n"
.subsections_via_symbols
| AnghaBench/lab/engine/code/botlib/extr_be_ai_move.c_BotFreeMoveState.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ahd_insb ## -- Begin function ahd_insb
.p2align 4, 0x90
_ahd_insb: ## @ahd_insb
.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
testl %ecx, %ecx
jle LBB0_3
## %bb.1:
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl %ecx, %r13d
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r12, %rdi
movq %r15, %rsi
callq _ahd_inb
movl %eax, (%r14,%rbx,4)
incq %rbx
cmpl %ebx, %r13d
jne LBB0_2
LBB0_3:
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 _ahd_insb ; -- Begin function ahd_insb
.p2align 2
_ahd_insb: ; @ahd_insb
.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
cmp w3, #1
b.lt LBB0_3
; %bb.1:
mov x19, x3
mov x20, x2
mov x21, x1
mov x22, x0
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov x0, x22
mov x1, x21
bl _ahd_inb
str w0, [x20], #4
subs w19, w19, #1
b.ne LBB0_2
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/linux/drivers/scsi/aic7xxx/extr_aic79xx_osm.c_ahd_insb.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _crypto_private_key_decrypt_pkcs1_v15 ## -- Begin function crypto_private_key_decrypt_pkcs1_v15
.p2align 4, 0x90
_crypto_private_key_decrypt_pkcs1_v15: ## @crypto_private_key_decrypt_pkcs1_v15
.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 _pkcs1_v15_private_key_decrypt ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _crypto_private_key_decrypt_pkcs1_v15 ; -- Begin function crypto_private_key_decrypt_pkcs1_v15
.p2align 2
_crypto_private_key_decrypt_pkcs1_v15: ; @crypto_private_key_decrypt_pkcs1_v15
.cfi_startproc
; %bb.0:
b _pkcs1_v15_private_key_decrypt
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/esp-idf/components/wpa_supplicant/src/crypto/extr_crypto_internal-rsa.c_crypto_private_key_decrypt_pkcs1_v15.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function reset_ms
_reset_ms: ## @reset_ms
.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 %rdi, %r13
movq %rsp, %rbx
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movq _MS_EXTRA_SIZE@GOTPCREL(%rip), %r14
movl (%r14), %eax
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %r15
movq %r13, %rdi
callq _ms_prepare_reset
movq _STATUS_SUCCESS@GOTPCREL(%rip), %r12
cmpl (%r12), %eax
jne LBB0_6
## %bb.1:
movq _TYPE_MS@GOTPCREL(%rip), %rax
movl (%rax), %eax
orl %eax, 52(%r13)
movq _MS_RESET@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _NO_WAIT_INT@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %r13, %rdi
callq _ms_send_cmd
cmpl (%r12), %eax
jne LBB0_6
## %bb.2:
movq %r13, %rdi
callq _ms_read_status_reg
cmpl (%r12), %eax
jne LBB0_6
## %bb.3:
movq _PPBUF_BASE2@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq -68(%rbp), %rdx
movq %r13, %rdi
callq _rtsx_read_register
testl %eax, %eax
jne LBB0_7
## %bb.4:
movq _WRT_PRTCT@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq _MS_CARD@GOTPCREL(%rip), %rax
movq (%rax), %rax
testl %ecx, -68(%rbp)
movq %rbx, -56(%rbp) ## 8-byte Spill
je LBB0_9
## %bb.5:
orq %rax, (%r13)
jmp LBB0_10
LBB0_6:
movq _STATUS_FAIL@GOTPCREL(%rip), %rax
movl (%rax), %eax
LBB0_7:
movq %rbx, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -48(%rbp), %rcx
jne LBB0_62
## %bb.8:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_9:
notq %rax
andq %rax, (%r13)
LBB0_10:
leaq 32(%r13), %rax
movq %rax, -64(%rbp) ## 8-byte Spill
xorl %ebx, %ebx
jmp LBB0_13
LBB0_11: ## in Loop: Header=BB0_13 Depth=1
movq _MS_FLASH_WRITE_ERROR@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %r13, %rdi
callq _ms_check_err_code
testq %rax, %rax
je LBB0_17
LBB0_12: ## in Loop: Header=BB0_13 Depth=1
movl 32(%r13), %ebx
movq _MS_NO_ERROR@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %r13, %rdi
callq _ms_set_err_code
incl %ebx
LBB0_13: ## =>This Loop Header: Depth=1
## Child Loop BB0_36 Depth 2
## Child Loop BB0_23 Depth 2
## Child Loop BB0_26 Depth 2
## Child Loop BB0_28 Depth 2
movq _MAX_DEFECTIVE_BLOCK@GOTPCREL(%rip), %rax
movl (%rax), %eax
leal 2(%rax), %ecx
cmpl %ecx, %ebx
jl LBB0_36
LBB0_14: ## in Loop: Header=BB0_13 Depth=1
movl %ebx, %ecx
LBB0_15: ## in Loop: Header=BB0_13 Depth=1
addl $2, %eax
cmpl %eax, %ecx
je LBB0_45
## %bb.16: ## in Loop: Header=BB0_13 Depth=1
movl 32(%r13), %esi
movq %r13, %rdi
xorl %edx, %edx
callq _ms_read_page
cmpl (%r12), %eax
jne LBB0_11
LBB0_17: ## in Loop: Header=BB0_13 Depth=1
movl 32(%r13), %esi
movq %r13, %rdi
movl $1, %edx
callq _ms_read_page
cmpl (%r12), %eax
je LBB0_19
## %bb.18: ## in Loop: Header=BB0_13 Depth=1
movq _MS_FLASH_WRITE_ERROR@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %r13, %rdi
callq _ms_check_err_code
testq %rax, %rax
jne LBB0_12
LBB0_19: ## in Loop: Header=BB0_13 Depth=1
movl 32(%r13), %esi
movq %r13, %rdi
movl $2, %edx
callq _ms_read_page
cmpl (%r12), %eax
je LBB0_21
## %bb.20: ## in Loop: Header=BB0_13 Depth=1
movq _MS_FLASH_WRITE_ERROR@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %r13, %rdi
callq _ms_check_err_code
testq %rax, %rax
jne LBB0_12
LBB0_21: ## in Loop: Header=BB0_13 Depth=1
movl 32(%r13), %esi
movq %r13, %rdi
xorl %edx, %edx
callq _ms_read_page
cmpl (%r12), %eax
jne LBB0_43
## %bb.22: ## in Loop: Header=BB0_13 Depth=1
movq %r13, %rdi
callq _rtsx_init_cmd
movl $416, %ebx ## imm = 0x1A0
movq _PPBUF_BASE2@GOTPCREL(%rip), %r14
movq _READ_REG_CMD@GOTPCREL(%rip), %r12
.p2align 4, 0x90
LBB0_23: ## Parent Loop BB0_13 Depth=1
## => This Inner Loop Header: Depth=2
movl (%r12), %esi
movl (%r14), %edx
addl %ebx, %edx
movq %r13, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq _rtsx_add_cmd
incl %ebx
cmpl $512, %ebx ## imm = 0x200
jne LBB0_23
## %bb.24: ## in Loop: Header=BB0_13 Depth=1
movq _MS_CARD@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movq %r13, %rdi
movl $100, %edx
callq _rtsx_send_cmd
testl %eax, %eax
js LBB0_43
## %bb.25: ## in Loop: Header=BB0_13 Depth=1
movq %r15, -80(%rbp) ## 8-byte Spill
movq %r13, %rdi
callq _rtsx_get_cmd_data
movl 56(%r13), %edi
movq %rax, %rsi
movl $96, %edx
callq _memcpy
movq %r13, %rdi
callq _rtsx_init_cmd
movq _READ_REG_CMD@GOTPCREL(%rip), %r14
movl (%r14), %esi
movq _HEADER_ID0@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %r13, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq _rtsx_add_cmd
movl (%r14), %esi
movq _HEADER_ID1@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %r13, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq _rtsx_add_cmd
movq _DISABLED_BLOCK0@GOTPCREL(%rip), %rax
movl (%rax), %ebx
movq _DISABLED_BLOCK3@GOTPCREL(%rip), %r12
cmpl (%r12), %ebx
jg LBB0_27
.p2align 4, 0x90
LBB0_26: ## Parent Loop BB0_13 Depth=1
## => This Inner Loop Header: Depth=2
movl (%r14), %esi
movq %r13, %rdi
movl %ebx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq _rtsx_add_cmd
leal 1(%rbx), %eax
cmpl (%r12), %ebx
movl %eax, %ebx
jl LBB0_26
LBB0_27: ## in Loop: Header=BB0_13 Depth=1
movq _BLOCK_SIZE_0@GOTPCREL(%rip), %rax
movl (%rax), %ebx
movq _PAGE_SIZE_1@GOTPCREL(%rip), %r15
cmpl (%r15), %ebx
movq %r14, %r12
movq _MS_EXTRA_SIZE@GOTPCREL(%rip), %r14
jg LBB0_29
.p2align 4, 0x90
LBB0_28: ## Parent Loop BB0_13 Depth=1
## => This Inner Loop Header: Depth=2
movl (%r12), %esi
movq %r13, %rdi
movl %ebx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq _rtsx_add_cmd
leal 1(%rbx), %eax
cmpl (%r15), %ebx
movl %eax, %ebx
jl LBB0_28
LBB0_29: ## in Loop: Header=BB0_13 Depth=1
movl (%r12), %esi
movq _MS_Device_Type@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %r13, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq _rtsx_add_cmd
movl (%r12), %esi
movq _MS_4bit_Support@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %r13, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq _rtsx_add_cmd
movq _MS_CARD@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movq %r13, %rdi
movl $100, %edx
callq _rtsx_send_cmd
testl %eax, %eax
js LBB0_43
## %bb.30: ## in Loop: Header=BB0_13 Depth=1
movq %r13, %rdi
callq _rtsx_get_cmd_data
movq %rax, %rbx
movq %r13, %rdi
callq _rtsx_dev
movl %eax, %edi
leaq L_.str.1(%rip), %rsi
xorl %eax, %eax
callq _dev_dbg
movq %r13, %rdi
callq _rtsx_dev
movl %eax, %edi
leaq L_.str.2(%rip), %rsi
movl $16, %edx
movq %rbx, %rcx
xorl %eax, %eax
callq _dev_dbg
cmpl $0, (%rbx)
jne LBB0_41
## %bb.31: ## in Loop: Header=BB0_13 Depth=1
cmpl $1, 4(%rbx)
jne LBB0_41
## %bb.32: ## in Loop: Header=BB0_13 Depth=1
cmpl $2, 48(%rbx)
movq _STATUS_SUCCESS@GOTPCREL(%rip), %r12
movq -80(%rbp), %r15 ## 8-byte Reload
jne LBB0_34
## %bb.33: ## in Loop: Header=BB0_13 Depth=1
cmpl $0, 52(%rbx)
je LBB0_46
LBB0_34: ## in Loop: Header=BB0_13 Depth=1
movq -64(%rbp), %rax ## 8-byte Reload
movl (%rax), %ebx
incl %ebx
jmp LBB0_13
.p2align 4, 0x90
LBB0_35: ## in Loop: Header=BB0_36 Depth=2
leal 1(%rbx), %ecx
movq _MAX_DEFECTIVE_BLOCK@GOTPCREL(%rip), %rax
movl (%rax), %eax
cmpl %eax, %ebx
movl %ecx, %ebx
jg LBB0_15
LBB0_36: ## Parent Loop BB0_13 Depth=1
## => This Inner Loop Header: Depth=2
movq _MS_CARD@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movq %r13, %rdi
callq _detect_card_cd
cmpl (%r12), %eax
jne LBB0_42
## %bb.37: ## in Loop: Header=BB0_36 Depth=2
movl (%r14), %r8d
movq %r13, %rdi
movl %ebx, %esi
xorl %edx, %edx
movq %r15, %rcx
callq _ms_read_extra_data
cmpl (%r12), %eax
jne LBB0_35
## %bb.38: ## in Loop: Header=BB0_36 Depth=2
movq _BLOCK_OK@GOTPCREL(%rip), %rax
movl (%rax), %eax
testl %eax, (%r15)
je LBB0_35
## %bb.39: ## in Loop: Header=BB0_36 Depth=2
movq _NOT_BOOT_BLOCK@GOTPCREL(%rip), %rax
movl (%rax), %eax
testl %eax, 4(%r15)
jne LBB0_35
## %bb.40: ## in Loop: Header=BB0_13 Depth=1
movq -64(%rbp), %rax ## 8-byte Reload
movl %ebx, (%rax)
movq _MAX_DEFECTIVE_BLOCK@GOTPCREL(%rip), %rax
movl (%rax), %eax
jmp LBB0_14
LBB0_41: ## in Loop: Header=BB0_13 Depth=1
movq -64(%rbp), %rax ## 8-byte Reload
movl (%rax), %ebx
incl %ebx
movq _STATUS_SUCCESS@GOTPCREL(%rip), %r12
movq -80(%rbp), %r15 ## 8-byte Reload
jmp LBB0_13
LBB0_42:
movq _MS_NO_CARD@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %r13, %rdi
callq _ms_set_err_code
LBB0_43:
movq _STATUS_FAIL@GOTPCREL(%rip), %rax
LBB0_44:
movl (%rax), %eax
movq -56(%rbp), %rbx ## 8-byte Reload
jmp LBB0_7
LBB0_45:
movq %r13, %rdi
callq _rtsx_dev
leaq L_.str(%rip), %rsi
movl %eax, %edi
xorl %eax, %eax
callq _dev_dbg
jmp LBB0_43
LBB0_46:
movl 56(%rbx), %eax
orl $2, %eax
cmpl $3, %eax
jne LBB0_48
## %bb.47:
movq _MS_CARD@GOTPCREL(%rip), %rax
movq (%rax), %rax
orq %rax, (%r13)
LBB0_48:
movl 24(%rbx), %eax
shll $8, %eax
orl 28(%rbx), %eax
cmpl $8, %eax
je LBB0_51
## %bb.49:
cmpl $16, %eax
jne LBB0_52
## %bb.50:
movabsq $133143986181, %rax ## imm = 0x1F00000005
movq %rax, 36(%r13)
movl $5, %ecx
jmp LBB0_53
LBB0_51:
movabsq $64424509444, %rax ## imm = 0xF00000004
movq %rax, 36(%r13)
movl $4, %ecx
jmp LBB0_53
LBB0_52:
movl 36(%r13), %ecx
LBB0_53:
movl 32(%rbx), %eax
shll $8, %eax
orl 36(%rbx), %eax
movl %eax, 44(%r13)
movl 40(%rbx), %eax
shll $8, %eax
orl 44(%rbx), %eax
addl $-2, %eax
## kill: def $cl killed $cl killed $ecx
shll %cl, %eax
movl %eax, 48(%r13)
movq 8(%r13), %rcx
movq 16(%r13), %rdx
movq _MS_CARD@GOTPCREL(%rip), %rsi
movq (%rsi), %rsi
movq (%rdx,%rsi,8), %rdx
movl %eax, (%rcx,%rdx,4)
cmpl $0, 60(%rbx)
je LBB0_60
## %bb.54:
movq _SystemParm@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
movl $1, %r8d
callq _ms_set_rw_reg_addr
movq _STATUS_SUCCESS@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jne LBB0_43
## %bb.55:
movq _PPBUF_BASE2@GOTPCREL(%rip), %r15
movl (%r15), %esi
movq %r13, %rdi
movl $255, %edx
movl $136, %ecx
callq _rtsx_write_register
testl %eax, %eax
movq -56(%rbp), %rbx ## 8-byte Reload
movq _NO_WAIT_INT@GOTPCREL(%rip), %r14
movq _STATUS_SUCCESS@GOTPCREL(%rip), %r12
jne LBB0_7
## %bb.56:
movl (%r15), %esi
incl %esi
movq %r13, %rdi
movl $255, %edx
xorl %ecx, %ecx
callq _rtsx_write_register
testl %eax, %eax
jne LBB0_7
## %bb.57:
movq _MS_TM_WRITE_BYTES@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _WRITE_REG@GOTPCREL(%rip), %rax
movl (%rax), %edx
movl (%r14), %r8d
movq %r13, %rdi
movl $1, %ecx
callq _ms_transfer_tpc
cmpl (%r12), %eax
jne LBB0_43
## %bb.58:
movq _MS_CFG@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _MS_NO_CHECK_INT@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movl %ecx, %edx
orl $88, %edx
movq _MS_BUS_WIDTH_4@GOTPCREL(%rip), %rax
movq _PUSH_TIME_ODD@GOTPCREL(%rip), %rdi
orl (%rax), %ecx
orl (%rdi), %ecx
movq %r13, %rdi
callq _rtsx_write_register
testl %eax, %eax
movq -56(%rbp), %rbx ## 8-byte Reload
jne LBB0_7
## %bb.59:
movq _MS_4BIT@GOTPCREL(%rip), %rax
movl (%rax), %eax
orl %eax, 52(%r13)
LBB0_60:
movq -64(%rbp), %rdi ## 8-byte Reload
callq _CHK_MS4BIT
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movq 16(%r13), %rax
movq 24(%r13), %rdx
movq _MS_CARD@GOTPCREL(%rip), %rsi
movq (%rsi), %rsi
movq (%rax,%rsi,8), %rax
leal (%rcx,%rcx,2), %ecx
incl %ecx
movl %ecx, (%rdx,%rax,4)
movq _STATUS_SUCCESS@GOTPCREL(%rip), %rax
jmp LBB0_44
LBB0_62:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _MS_EXTRA_SIZE,4,2 ## @MS_EXTRA_SIZE
.comm _STATUS_SUCCESS,4,2 ## @STATUS_SUCCESS
.comm _STATUS_FAIL,4,2 ## @STATUS_FAIL
.comm _TYPE_MS,4,2 ## @TYPE_MS
.comm _MS_RESET,4,2 ## @MS_RESET
.comm _NO_WAIT_INT,4,2 ## @NO_WAIT_INT
.comm _PPBUF_BASE2,4,2 ## @PPBUF_BASE2
.comm _WRT_PRTCT,4,2 ## @WRT_PRTCT
.comm _MS_CARD,8,3 ## @MS_CARD
.comm _MAX_DEFECTIVE_BLOCK,4,2 ## @MAX_DEFECTIVE_BLOCK
.comm _MS_NO_CARD,4,2 ## @MS_NO_CARD
.comm _BLOCK_OK,4,2 ## @BLOCK_OK
.comm _NOT_BOOT_BLOCK,4,2 ## @NOT_BOOT_BLOCK
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "No boot block found!"
.comm _MS_FLASH_WRITE_ERROR,4,2 ## @MS_FLASH_WRITE_ERROR
.comm _MS_NO_ERROR,4,2 ## @MS_NO_ERROR
.comm _READ_REG_CMD,4,2 ## @READ_REG_CMD
.comm _HEADER_ID0,4,2 ## @HEADER_ID0
.comm _HEADER_ID1,4,2 ## @HEADER_ID1
.comm _DISABLED_BLOCK0,4,2 ## @DISABLED_BLOCK0
.comm _DISABLED_BLOCK3,4,2 ## @DISABLED_BLOCK3
.comm _BLOCK_SIZE_0,4,2 ## @BLOCK_SIZE_0
.comm _PAGE_SIZE_1,4,2 ## @PAGE_SIZE_1
.comm _MS_Device_Type,4,2 ## @MS_Device_Type
.comm _MS_4bit_Support,4,2 ## @MS_4bit_Support
L_.str.1: ## @.str.1
.asciz "Boot block data:\n"
L_.str.2: ## @.str.2
.asciz "%*ph\n"
.comm _SystemParm,4,2 ## @SystemParm
.comm _MS_TM_WRITE_BYTES,4,2 ## @MS_TM_WRITE_BYTES
.comm _WRITE_REG,4,2 ## @WRITE_REG
.comm _MS_CFG,4,2 ## @MS_CFG
.comm _MS_NO_CHECK_INT,4,2 ## @MS_NO_CHECK_INT
.comm _MS_BUS_WIDTH_4,4,2 ## @MS_BUS_WIDTH_4
.comm _PUSH_TIME_ODD,4,2 ## @PUSH_TIME_ODD
.comm _MS_4BIT,4,2 ## @MS_4BIT
.no_dead_strip _reset_ms
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function reset_ms
lCPI0_0:
.long 4 ; 0x4
.long 15 ; 0xf
lCPI0_1:
.long 5 ; 0x5
.long 31 ; 0x1f
.section __TEXT,__text,regular,pure_instructions
.p2align 2
_reset_ms: ; @reset_ms
.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, #32
mov x19, x0
mov x25, sp
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 x23, _MS_EXTRA_SIZE@GOTPAGE
Lloh4:
ldr x23, [x23, _MS_EXTRA_SIZE@GOTPAGEOFF]
ldr w8, [x23]
lsl x8, x8, #2
mov x9, x8
Lloh5:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh6:
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
bl _ms_prepare_reset
Lloh7:
adrp x26, _STATUS_SUCCESS@GOTPAGE
Lloh8:
ldr x26, [x26, _STATUS_SUCCESS@GOTPAGEOFF]
ldr w8, [x26]
cmp w0, w8
b.ne LBB0_38
; %bb.1:
Lloh9:
adrp x8, _TYPE_MS@GOTPAGE
Lloh10:
ldr x8, [x8, _TYPE_MS@GOTPAGEOFF]
Lloh11:
ldr w8, [x8]
ldr w9, [x19, #52]
orr w8, w9, w8
str w8, [x19, #52]
Lloh12:
adrp x8, _MS_RESET@GOTPAGE
Lloh13:
ldr x8, [x8, _MS_RESET@GOTPAGEOFF]
Lloh14:
ldr w1, [x8]
Lloh15:
adrp x8, _NO_WAIT_INT@GOTPAGE
Lloh16:
ldr x8, [x8, _NO_WAIT_INT@GOTPAGEOFF]
Lloh17:
ldr w2, [x8]
mov x0, x19
bl _ms_send_cmd
ldr w8, [x26]
cmp w0, w8
b.ne LBB0_38
; %bb.2:
mov x0, x19
bl _ms_read_status_reg
ldr w8, [x26]
cmp w0, w8
b.ne LBB0_38
; %bb.3:
Lloh18:
adrp x22, _PPBUF_BASE2@GOTPAGE
Lloh19:
ldr x22, [x22, _PPBUF_BASE2@GOTPAGEOFF]
ldr w1, [x22]
sub x2, x29, #92
mov x0, x19
bl _rtsx_read_register
cbnz w0, LBB0_39
; %bb.4:
Lloh20:
adrp x8, _WRT_PRTCT@GOTPAGE
Lloh21:
ldr x8, [x8, _WRT_PRTCT@GOTPAGEOFF]
ldur w9, [x29, #-92]
Lloh22:
ldr w10, [x8]
Lloh23:
adrp x27, _MS_CARD@GOTPAGE
Lloh24:
ldr x27, [x27, _MS_CARD@GOTPAGEOFF]
ldr x8, [x27]
tst w10, w9
b.eq LBB0_6
; %bb.5:
ldr x9, [x19]
orr x8, x9, x8
b LBB0_7
LBB0_6:
ldr x9, [x19]
bic x8, x9, x8
LBB0_7:
str x8, [x19]
mov w8, #0
Lloh25:
adrp x20, _MAX_DEFECTIVE_BLOCK@GOTPAGE
Lloh26:
ldr x20, [x20, _MAX_DEFECTIVE_BLOCK@GOTPAGEOFF]
Lloh27:
adrp x28, _READ_REG_CMD@GOTPAGE
Lloh28:
ldr x28, [x28, _READ_REG_CMD@GOTPAGEOFF]
add x9, x19, #32
stur x9, [x29, #-104] ; 8-byte Folded Spill
b LBB0_10
LBB0_8: ; in Loop: Header=BB0_10 Depth=1
Lloh29:
adrp x8, _MS_FLASH_WRITE_ERROR@GOTPAGE
Lloh30:
ldr x8, [x8, _MS_FLASH_WRITE_ERROR@GOTPAGEOFF]
Lloh31:
ldr w1, [x8]
mov x0, x19
bl _ms_check_err_code
cbz x0, LBB0_13
LBB0_9: ; in Loop: Header=BB0_10 Depth=1
ldr w24, [x19, #32]
Lloh32:
adrp x8, _MS_NO_ERROR@GOTPAGE
Lloh33:
ldr x8, [x8, _MS_NO_ERROR@GOTPAGEOFF]
Lloh34:
ldr w1, [x8]
mov x0, x19
bl _ms_set_err_code
add w8, w24, #1
LBB0_10: ; =>This Loop Header: Depth=1
; Child Loop BB0_32 Depth 2
; Child Loop BB0_19 Depth 2
; Child Loop BB0_22 Depth 2
; Child Loop BB0_24 Depth 2
ldr w9, [x20]
add w10, w9, #2
cmp w8, w10
b.lt LBB0_32
LBB0_11: ; in Loop: Header=BB0_10 Depth=1
add w9, w9, #2
cmp w8, w9
b.eq LBB0_41
; %bb.12: ; in Loop: Header=BB0_10 Depth=1
ldr w1, [x19, #32]
mov x0, x19
mov w2, #0
bl _ms_read_page
ldr w8, [x26]
cmp w0, w8
b.ne LBB0_8
LBB0_13: ; in Loop: Header=BB0_10 Depth=1
ldr w1, [x19, #32]
mov x0, x19
mov w2, #1
bl _ms_read_page
ldr w8, [x26]
cmp w0, w8
b.eq LBB0_15
; %bb.14: ; in Loop: Header=BB0_10 Depth=1
Lloh35:
adrp x8, _MS_FLASH_WRITE_ERROR@GOTPAGE
Lloh36:
ldr x8, [x8, _MS_FLASH_WRITE_ERROR@GOTPAGEOFF]
Lloh37:
ldr w1, [x8]
mov x0, x19
bl _ms_check_err_code
cbnz x0, LBB0_9
LBB0_15: ; in Loop: Header=BB0_10 Depth=1
ldr w1, [x19, #32]
mov x0, x19
mov w2, #2
bl _ms_read_page
ldr w8, [x26]
cmp w0, w8
b.eq LBB0_17
; %bb.16: ; in Loop: Header=BB0_10 Depth=1
Lloh38:
adrp x8, _MS_FLASH_WRITE_ERROR@GOTPAGE
Lloh39:
ldr x8, [x8, _MS_FLASH_WRITE_ERROR@GOTPAGEOFF]
Lloh40:
ldr w1, [x8]
mov x0, x19
bl _ms_check_err_code
cbnz x0, LBB0_9
LBB0_17: ; in Loop: Header=BB0_10 Depth=1
ldr w1, [x19, #32]
mov x0, x19
mov w2, #0
bl _ms_read_page
ldr w8, [x26]
cmp w0, w8
b.ne LBB0_38
; %bb.18: ; in Loop: Header=BB0_10 Depth=1
mov x0, x19
bl _rtsx_init_cmd
mov w24, #416
LBB0_19: ; Parent Loop BB0_10 Depth=1
; => This Inner Loop Header: Depth=2
ldr w1, [x28]
ldr w8, [x22]
add w2, w24, w8
mov x0, x19
mov w3, #0
mov w4, #0
bl _rtsx_add_cmd
add w24, w24, #1
cmp w24, #512
b.ne LBB0_19
; %bb.20: ; in Loop: Header=BB0_10 Depth=1
ldr x1, [x27]
mov x0, x19
mov w2, #100
bl _rtsx_send_cmd
tbnz w0, #31, LBB0_38
; %bb.21: ; in Loop: Header=BB0_10 Depth=1
mov x0, x19
bl _rtsx_get_cmd_data
mov x1, x0
ldr w0, [x19, #56]
mov w2, #96
bl _memcpy
mov x0, x19
bl _rtsx_init_cmd
ldr w1, [x28]
Lloh41:
adrp x8, _HEADER_ID0@GOTPAGE
Lloh42:
ldr x8, [x8, _HEADER_ID0@GOTPAGEOFF]
Lloh43:
ldr w2, [x8]
mov x0, x19
mov w3, #0
mov w4, #0
bl _rtsx_add_cmd
ldr w1, [x28]
Lloh44:
adrp x8, _HEADER_ID1@GOTPAGE
Lloh45:
ldr x8, [x8, _HEADER_ID1@GOTPAGEOFF]
Lloh46:
ldr w2, [x8]
mov x0, x19
mov w3, #0
mov w4, #0
bl _rtsx_add_cmd
Lloh47:
adrp x8, _DISABLED_BLOCK0@GOTPAGE
Lloh48:
ldr x8, [x8, _DISABLED_BLOCK0@GOTPAGEOFF]
Lloh49:
ldr w24, [x8]
Lloh50:
adrp x27, _DISABLED_BLOCK3@GOTPAGE
Lloh51:
ldr x27, [x27, _DISABLED_BLOCK3@GOTPAGEOFF]
ldr w8, [x27]
cmp w24, w8
b.gt LBB0_23
LBB0_22: ; Parent Loop BB0_10 Depth=1
; => This Inner Loop Header: Depth=2
ldr w1, [x28]
mov x0, x19
mov x2, x24
mov w3, #0
mov w4, #0
bl _rtsx_add_cmd
add w8, w24, #1
ldr w9, [x27]
cmp w24, w9
mov x24, x8
b.lt LBB0_22
LBB0_23: ; in Loop: Header=BB0_10 Depth=1
Lloh52:
adrp x8, _BLOCK_SIZE_0@GOTPAGE
Lloh53:
ldr x8, [x8, _BLOCK_SIZE_0@GOTPAGEOFF]
Lloh54:
ldr w24, [x8]
Lloh55:
adrp x27, _PAGE_SIZE_1@GOTPAGE
Lloh56:
ldr x27, [x27, _PAGE_SIZE_1@GOTPAGEOFF]
ldr w8, [x27]
cmp w24, w8
b.gt LBB0_25
LBB0_24: ; Parent Loop BB0_10 Depth=1
; => This Inner Loop Header: Depth=2
ldr w1, [x28]
mov x0, x19
mov x2, x24
mov w3, #0
mov w4, #0
bl _rtsx_add_cmd
add w8, w24, #1
ldr w9, [x27]
cmp w24, w9
mov x24, x8
b.lt LBB0_24
LBB0_25: ; in Loop: Header=BB0_10 Depth=1
ldr w1, [x28]
Lloh57:
adrp x8, _MS_Device_Type@GOTPAGE
Lloh58:
ldr x8, [x8, _MS_Device_Type@GOTPAGEOFF]
Lloh59:
ldr w2, [x8]
mov x0, x19
mov w3, #0
mov w4, #0
bl _rtsx_add_cmd
ldr w1, [x28]
Lloh60:
adrp x8, _MS_4bit_Support@GOTPAGE
Lloh61:
ldr x8, [x8, _MS_4bit_Support@GOTPAGEOFF]
Lloh62:
ldr w2, [x8]
mov x0, x19
mov w3, #0
mov w4, #0
bl _rtsx_add_cmd
Lloh63:
adrp x27, _MS_CARD@GOTPAGE
Lloh64:
ldr x27, [x27, _MS_CARD@GOTPAGEOFF]
ldr x1, [x27]
mov x0, x19
mov w2, #100
bl _rtsx_send_cmd
tbnz w0, #31, LBB0_38
; %bb.26: ; in Loop: Header=BB0_10 Depth=1
mov x0, x19
bl _rtsx_get_cmd_data
mov x24, x0
mov x0, x19
bl _rtsx_dev
Lloh65:
adrp x1, l_.str.1@PAGE
Lloh66:
add x1, x1, l_.str.1@PAGEOFF
bl _dev_dbg
mov x0, x19
bl _rtsx_dev
mov w8, #16
stp x8, x24, [sp, #-16]!
Lloh67:
adrp x1, l_.str.2@PAGE
Lloh68:
add x1, x1, l_.str.2@PAGEOFF
bl _dev_dbg
add sp, sp, #16
ldr w8, [x24]
cbnz w8, LBB0_30
; %bb.27: ; in Loop: Header=BB0_10 Depth=1
ldr w8, [x24, #4]
cmp w8, #1
b.ne LBB0_30
; %bb.28: ; in Loop: Header=BB0_10 Depth=1
ldr w8, [x24, #48]
cmp w8, #2
b.ne LBB0_30
; %bb.29: ; in Loop: Header=BB0_10 Depth=1
ldr w8, [x24, #52]
cbz w8, LBB0_42
LBB0_30: ; in Loop: Header=BB0_10 Depth=1
ldur x8, [x29, #-104] ; 8-byte Folded Reload
ldr w24, [x8]
add w8, w24, #1
b LBB0_10
LBB0_31: ; in Loop: Header=BB0_32 Depth=2
add w8, w24, #1
ldr w9, [x20]
cmp w24, w9
b.gt LBB0_11
LBB0_32: ; Parent Loop BB0_10 Depth=1
; => This Inner Loop Header: Depth=2
mov x24, x8
ldr x1, [x27]
mov x0, x19
bl _detect_card_cd
ldr w8, [x26]
cmp w0, w8
b.ne LBB0_37
; %bb.33: ; in Loop: Header=BB0_32 Depth=2
ldr w4, [x23]
mov x0, x19
mov x1, x24
mov w2, #0
mov x3, x21
bl _ms_read_extra_data
ldr w8, [x26]
cmp w0, w8
b.ne LBB0_31
; %bb.34: ; in Loop: Header=BB0_32 Depth=2
ldr w8, [x21]
Lloh69:
adrp x9, _BLOCK_OK@GOTPAGE
Lloh70:
ldr x9, [x9, _BLOCK_OK@GOTPAGEOFF]
Lloh71:
ldr w9, [x9]
tst w9, w8
b.eq LBB0_31
; %bb.35: ; in Loop: Header=BB0_32 Depth=2
ldr w8, [x21, #4]
Lloh72:
adrp x9, _NOT_BOOT_BLOCK@GOTPAGE
Lloh73:
ldr x9, [x9, _NOT_BOOT_BLOCK@GOTPAGEOFF]
Lloh74:
ldr w9, [x9]
tst w9, w8
b.ne LBB0_31
; %bb.36: ; in Loop: Header=BB0_10 Depth=1
ldur x8, [x29, #-104] ; 8-byte Folded Reload
str w24, [x8]
ldr w9, [x20]
mov x8, x24
b LBB0_11
LBB0_37:
Lloh75:
adrp x8, _MS_NO_CARD@GOTPAGE
Lloh76:
ldr x8, [x8, _MS_NO_CARD@GOTPAGEOFF]
Lloh77:
ldr w1, [x8]
mov x0, x19
bl _ms_set_err_code
LBB0_38:
Lloh78:
adrp x8, _STATUS_FAIL@GOTPAGE
Lloh79:
ldr x8, [x8, _STATUS_FAIL@GOTPAGEOFF]
Lloh80:
ldr w0, [x8]
LBB0_39:
mov sp, x25
ldur x8, [x29, #-88]
Lloh81:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh82:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh83:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_57
; %bb.40:
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_41:
mov x0, x19
bl _rtsx_dev
Lloh84:
adrp x1, l_.str@PAGE
Lloh85:
add x1, x1, l_.str@PAGEOFF
bl _dev_dbg
b LBB0_38
LBB0_42:
ldr w8, [x24, #56]
orr w8, w8, #0x2
cmp w8, #3
b.ne LBB0_44
; %bb.43:
ldr x8, [x27]
ldr x9, [x19]
orr x8, x9, x8
str x8, [x19]
LBB0_44:
ldp w8, w9, [x24, #24]
orr w8, w9, w8, lsl #8
cmp w8, #8
b.eq LBB0_47
; %bb.45:
cmp w8, #16
b.ne LBB0_48
; %bb.46:
Lloh86:
adrp x8, lCPI0_1@PAGE
Lloh87:
ldr d0, [x8, lCPI0_1@PAGEOFF]
stur d0, [x19, #36]
mov w8, #5
b LBB0_49
LBB0_47:
Lloh88:
adrp x8, lCPI0_0@PAGE
Lloh89:
ldr d0, [x8, lCPI0_0@PAGEOFF]
stur d0, [x19, #36]
mov w8, #4
b LBB0_49
LBB0_48:
ldr w8, [x19, #36]
LBB0_49:
ldp w9, w10, [x24, #32]
orr w9, w10, w9, lsl #8
str w9, [x19, #44]
ldp w9, w10, [x24, #40]
orr w9, w10, w9, lsl #8
sub w9, w9, #2
lsl w8, w9, w8
str w8, [x19, #48]
ldp x9, x10, [x19, #8]
Lloh90:
adrp x20, _MS_CARD@GOTPAGE
Lloh91:
ldr x20, [x20, _MS_CARD@GOTPAGEOFF]
ldr x11, [x20]
ldr x10, [x10, x11, lsl #3]
str w8, [x9, x10, lsl #2]
ldr w8, [x24, #60]
cbz w8, LBB0_56
; %bb.50:
Lloh92:
adrp x8, _SystemParm@GOTPAGE
Lloh93:
ldr x8, [x8, _SystemParm@GOTPAGEOFF]
Lloh94:
ldr w3, [x8]
mov x0, x19
mov w1, #0
mov w2, #0
mov w4, #1
bl _ms_set_rw_reg_addr
ldr w8, [x26]
cmp w0, w8
b.ne LBB0_38
; %bb.51:
ldr w1, [x22]
mov x0, x19
mov w2, #255
mov w3, #136
bl _rtsx_write_register
Lloh95:
adrp x20, _NO_WAIT_INT@GOTPAGE
Lloh96:
ldr x20, [x20, _NO_WAIT_INT@GOTPAGEOFF]
cbnz w0, LBB0_39
; %bb.52:
ldr w8, [x22]
add w1, w8, #1
mov x0, x19
mov w2, #255
mov w3, #0
bl _rtsx_write_register
cbnz w0, LBB0_39
; %bb.53:
Lloh97:
adrp x8, _MS_TM_WRITE_BYTES@GOTPAGE
Lloh98:
ldr x8, [x8, _MS_TM_WRITE_BYTES@GOTPAGEOFF]
Lloh99:
ldr w1, [x8]
Lloh100:
adrp x8, _WRITE_REG@GOTPAGE
Lloh101:
ldr x8, [x8, _WRITE_REG@GOTPAGEOFF]
Lloh102:
ldr w2, [x8]
ldr w4, [x20]
mov x0, x19
mov w3, #1
bl _ms_transfer_tpc
ldr w8, [x26]
cmp w0, w8
b.ne LBB0_38
; %bb.54:
Lloh103:
adrp x8, _MS_CFG@GOTPAGE
Lloh104:
ldr x8, [x8, _MS_CFG@GOTPAGEOFF]
Lloh105:
adrp x9, _MS_NO_CHECK_INT@GOTPAGE
Lloh106:
ldr x9, [x9, _MS_NO_CHECK_INT@GOTPAGEOFF]
Lloh107:
ldr w1, [x8]
Lloh108:
ldr w8, [x9]
mov w9, #88
orr w2, w8, w9
Lloh109:
adrp x9, _MS_BUS_WIDTH_4@GOTPAGE
Lloh110:
ldr x9, [x9, _MS_BUS_WIDTH_4@GOTPAGEOFF]
Lloh111:
ldr w9, [x9]
Lloh112:
adrp x10, _PUSH_TIME_ODD@GOTPAGE
Lloh113:
ldr x10, [x10, _PUSH_TIME_ODD@GOTPAGEOFF]
Lloh114:
ldr w10, [x10]
orr w8, w9, w8
orr w3, w8, w10
mov x0, x19
bl _rtsx_write_register
cbnz w0, LBB0_39
; %bb.55:
Lloh115:
adrp x8, _MS_4BIT@GOTPAGE
Lloh116:
ldr x8, [x8, _MS_4BIT@GOTPAGEOFF]
Lloh117:
ldr w8, [x8]
ldr w9, [x19, #52]
orr w8, w9, w8
str w8, [x19, #52]
Lloh118:
adrp x20, _MS_CARD@GOTPAGE
Lloh119:
ldr x20, [x20, _MS_CARD@GOTPAGEOFF]
LBB0_56:
ldur x0, [x29, #-104] ; 8-byte Folded Reload
bl _CHK_MS4BIT
ldp x9, x8, [x19, #16]
ldr x10, [x20]
ldr x9, [x9, x10, lsl #3]
cmp x0, #0
mov w10, #4
csinc w10, w10, wzr, ne
str w10, [x8, x9, lsl #2]
ldr w0, [x26]
b LBB0_39
LBB0_57:
bl ___stack_chk_fail
.loh AdrpLdrGot Lloh7, Lloh8
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGot Lloh18, Lloh19
.loh AdrpLdrGot Lloh23, Lloh24
.loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22
.loh AdrpLdrGot Lloh27, Lloh28
.loh AdrpLdrGot Lloh25, Lloh26
.loh AdrpLdrGotLdr Lloh29, Lloh30, Lloh31
.loh AdrpLdrGotLdr Lloh32, Lloh33, Lloh34
.loh AdrpLdrGotLdr Lloh35, Lloh36, Lloh37
.loh AdrpLdrGotLdr Lloh38, Lloh39, Lloh40
.loh AdrpLdrGot Lloh50, Lloh51
.loh AdrpLdrGotLdr Lloh47, Lloh48, Lloh49
.loh AdrpLdrGotLdr Lloh44, Lloh45, Lloh46
.loh AdrpLdrGotLdr Lloh41, Lloh42, Lloh43
.loh AdrpLdrGot Lloh55, Lloh56
.loh AdrpLdrGotLdr Lloh52, Lloh53, Lloh54
.loh AdrpLdrGot Lloh63, Lloh64
.loh AdrpLdrGotLdr Lloh60, Lloh61, Lloh62
.loh AdrpLdrGotLdr Lloh57, Lloh58, Lloh59
.loh AdrpAdd Lloh67, Lloh68
.loh AdrpAdd Lloh65, Lloh66
.loh AdrpLdrGotLdr Lloh69, Lloh70, Lloh71
.loh AdrpLdrGotLdr Lloh72, Lloh73, Lloh74
.loh AdrpLdrGotLdr Lloh75, Lloh76, Lloh77
.loh AdrpLdrGotLdr Lloh78, Lloh79, Lloh80
.loh AdrpLdrGotLdr Lloh81, Lloh82, Lloh83
.loh AdrpAdd Lloh84, Lloh85
.loh AdrpLdr Lloh86, Lloh87
.loh AdrpLdr Lloh88, Lloh89
.loh AdrpLdrGot Lloh90, Lloh91
.loh AdrpLdrGotLdr Lloh92, Lloh93, Lloh94
.loh AdrpLdrGot Lloh95, Lloh96
.loh AdrpLdrGotLdr Lloh100, Lloh101, Lloh102
.loh AdrpLdrGotLdr Lloh97, Lloh98, Lloh99
.loh AdrpLdrGotLdr Lloh112, Lloh113, Lloh114
.loh AdrpLdrGotLdr Lloh109, Lloh110, Lloh111
.loh AdrpLdrGotLdr Lloh105, Lloh106, Lloh108
.loh AdrpLdrGotLdr Lloh103, Lloh104, Lloh107
.loh AdrpLdrGot Lloh118, Lloh119
.loh AdrpLdrGotLdr Lloh115, Lloh116, Lloh117
.cfi_endproc
; -- End function
.comm _MS_EXTRA_SIZE,4,2 ; @MS_EXTRA_SIZE
.comm _STATUS_SUCCESS,4,2 ; @STATUS_SUCCESS
.comm _STATUS_FAIL,4,2 ; @STATUS_FAIL
.comm _TYPE_MS,4,2 ; @TYPE_MS
.comm _MS_RESET,4,2 ; @MS_RESET
.comm _NO_WAIT_INT,4,2 ; @NO_WAIT_INT
.comm _PPBUF_BASE2,4,2 ; @PPBUF_BASE2
.comm _WRT_PRTCT,4,2 ; @WRT_PRTCT
.comm _MS_CARD,8,3 ; @MS_CARD
.comm _MAX_DEFECTIVE_BLOCK,4,2 ; @MAX_DEFECTIVE_BLOCK
.comm _MS_NO_CARD,4,2 ; @MS_NO_CARD
.comm _BLOCK_OK,4,2 ; @BLOCK_OK
.comm _NOT_BOOT_BLOCK,4,2 ; @NOT_BOOT_BLOCK
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "No boot block found!"
.comm _MS_FLASH_WRITE_ERROR,4,2 ; @MS_FLASH_WRITE_ERROR
.comm _MS_NO_ERROR,4,2 ; @MS_NO_ERROR
.comm _READ_REG_CMD,4,2 ; @READ_REG_CMD
.comm _HEADER_ID0,4,2 ; @HEADER_ID0
.comm _HEADER_ID1,4,2 ; @HEADER_ID1
.comm _DISABLED_BLOCK0,4,2 ; @DISABLED_BLOCK0
.comm _DISABLED_BLOCK3,4,2 ; @DISABLED_BLOCK3
.comm _BLOCK_SIZE_0,4,2 ; @BLOCK_SIZE_0
.comm _PAGE_SIZE_1,4,2 ; @PAGE_SIZE_1
.comm _MS_Device_Type,4,2 ; @MS_Device_Type
.comm _MS_4bit_Support,4,2 ; @MS_4bit_Support
l_.str.1: ; @.str.1
.asciz "Boot block data:\n"
l_.str.2: ; @.str.2
.asciz "%*ph\n"
.comm _SystemParm,4,2 ; @SystemParm
.comm _MS_TM_WRITE_BYTES,4,2 ; @MS_TM_WRITE_BYTES
.comm _WRITE_REG,4,2 ; @WRITE_REG
.comm _MS_CFG,4,2 ; @MS_CFG
.comm _MS_NO_CHECK_INT,4,2 ; @MS_NO_CHECK_INT
.comm _MS_BUS_WIDTH_4,4,2 ; @MS_BUS_WIDTH_4
.comm _PUSH_TIME_ODD,4,2 ; @PUSH_TIME_ODD
.comm _MS_4BIT,4,2 ; @MS_4BIT
.no_dead_strip _reset_ms
.subsections_via_symbols
| AnghaBench/linux/drivers/staging/rts5208/extr_ms.c_reset_ms.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _utf8_check_full ## -- Begin function utf8_check_full
.p2align 4, 0x90
_utf8_check_full: ## @utf8_check_full
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movzbl (%rdi), %r9d
movb $31, %al
cmpq $2, %rsi
je LBB0_5
## %bb.1:
cmpq $3, %rsi
je LBB0_4
## %bb.2:
cmpq $4, %rsi
jne LBB0_14
## %bb.3:
movb $7, %al
jmp LBB0_5
LBB0_4:
movb $15, %al
LBB0_5:
movzbl %al, %eax
andl %eax, %r9d
movl $1, %ecx
xorl %eax, %eax
.p2align 4, 0x90
LBB0_6: ## =>This Inner Loop Header: Depth=1
movl %r9d, %r8d
movzbl (%rdi,%rcx), %r9d
cmpb $-65, %r9b
jg LBB0_20
## %bb.7: ## in Loop: Header=BB0_6 Depth=1
movl %r8d, %r10d
shll $6, %r10d
andl $63, %r9d
orl %r10d, %r9d
incq %rcx
cmpq %rcx, %rsi
jne LBB0_6
## %bb.8:
cmpq $2, %rsi
sete %dil
cmpl $128, %r9d
setl %cl
xorl %eax, %eax
testb %cl, %dil
jne LBB0_20
## %bb.9:
cmpl $1114111, %r9d ## imm = 0x10FFFF
jg LBB0_20
## %bb.10:
andl $67108832, %r8d ## imm = 0x3FFFFE0
cmpl $864, %r8d ## imm = 0x360
je LBB0_20
## %bb.11:
cmpq $3, %rsi
jne LBB0_15
## %bb.12:
cmpl $2048, %r9d ## imm = 0x800
jl LBB0_14
LBB0_15:
cmpq $4, %rsi
jne LBB0_18
## %bb.16:
cmpl $65536, %r9d ## imm = 0x10000
jge LBB0_18
LBB0_14:
xorl %eax, %eax
popq %rbp
retq
LBB0_18:
movl $1, %eax
testq %rdx, %rdx
je LBB0_20
## %bb.19:
movl %r9d, (%rdx)
LBB0_20:
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 _utf8_check_full ; -- Begin function utf8_check_full
.p2align 2
_utf8_check_full: ; @utf8_check_full
.cfi_startproc
; %bb.0:
ldrb w8, [x0]
cmp x1, #2
b.ne LBB0_2
; %bb.1:
mov w9, #31
b LBB0_6
LBB0_2:
cmp x1, #3
b.eq LBB0_5
; %bb.3:
cmp x1, #4
b.ne LBB0_16
; %bb.4:
mov w9, #7
b LBB0_6
LBB0_5:
mov w9, #15
LBB0_6:
and w8, w8, w9
mov w10, #1
LBB0_7: ; =>This Inner Loop Header: Depth=1
mov x9, x8
ldrsb w8, [x0, x10]
cmn w8, #65
b.gt LBB0_16
; %bb.8: ; in Loop: Header=BB0_7 Depth=1
and w8, w8, #0xff
bfi w8, w9, #6, #26
add x10, x10, #1
cmp x1, x10
b.ne LBB0_7
; %bb.9:
mov x0, #0
cmp w8, #128
ccmp x1, #2, #0, lt
b.eq LBB0_20
; %bb.10:
cmp w8, #272, lsl #12 ; =1114112
b.ge LBB0_20
; %bb.11:
and w9, w9, #0x3ffffe0
cmp w9, #864
b.eq LBB0_20
; %bb.12:
cmp x1, #3
b.ne LBB0_14
; %bb.13:
cmp w8, #2048
b.lt LBB0_16
LBB0_14:
cmp x1, #4
b.ne LBB0_17
; %bb.15:
cmp w8, #16, lsl #12 ; =65536
b.ge LBB0_17
LBB0_16:
mov x0, #0
ret
LBB0_17:
cbz x2, LBB0_19
; %bb.18:
str w8, [x2]
LBB0_19:
mov w0, #1
LBB0_20:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/obs-studio/deps/jansson/src/extr_utf.c_utf8_check_full.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mesh_add_ht_oper_ie ## -- Begin function mesh_add_ht_oper_ie
.p2align 4, 0x90
_mesh_add_ht_oper_ie: ## @mesh_add_ht_oper_ie
.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, %r15
movq %rdi, %r13
movq 24(%rdi), %r12
xorl %r14d, %r14d
xorl %eax, %eax
callq _rcu_read_lock
movl 16(%r13), %edi
callq _rcu_dereference
movq %rax, %rbx
xorl %edi, %edi
testq %rax, %rax
sete %dil
callq _WARN_ON
testq %rax, %rax
je LBB0_4
## %bb.1:
xorl %eax, %eax
callq _rcu_read_unlock
movq _EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
subl (%rax), %r14d
LBB0_3:
movl %r14d, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_4:
movq (%rbx), %rbx
xorl %eax, %eax
callq _rcu_read_unlock
movq (%r12), %rax
movq (%rax), %rax
movq (%rbx), %rcx
movq (%rax,%rcx,8), %r12
cmpl $0, (%r12)
je LBB0_3
## %bb.5:
movq 8(%r13), %rax
movq _NL80211_CHAN_WIDTH_20_NOHT@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_3
## %bb.6:
movq _NL80211_CHAN_WIDTH_5@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_3
## %bb.7:
movq _NL80211_CHAN_WIDTH_10@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_3
## %bb.8:
movq %r15, %rdi
callq _skb_tailroom
cmpl $5, %eax
ja LBB0_10
## %bb.9:
movq _ENOMEM@GOTPCREL(%rip), %rax
xorl %r14d, %r14d
jmp LBB0_2
LBB0_10:
leaq 8(%r13), %rbx
movq %r15, %rdi
movl $6, %esi
callq _skb_put
movl (%r13), %ecx
xorl %r14d, %r14d
movq %rax, %rdi
movq %r12, %rsi
movq %rbx, %rdx
xorl %r8d, %r8d
callq _ieee80211_ie_build_ht_oper
jmp LBB0_3
.cfi_endproc
## -- End function
.comm _EINVAL,4,2 ## @EINVAL
.comm _NL80211_CHAN_WIDTH_20_NOHT,8,3 ## @NL80211_CHAN_WIDTH_20_NOHT
.comm _NL80211_CHAN_WIDTH_5,8,3 ## @NL80211_CHAN_WIDTH_5
.comm _NL80211_CHAN_WIDTH_10,8,3 ## @NL80211_CHAN_WIDTH_10
.comm _ENOMEM,4,2 ## @ENOMEM
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mesh_add_ht_oper_ie ; -- Begin function mesh_add_ht_oper_ie
.p2align 2
_mesh_add_ht_oper_ie: ; @mesh_add_ht_oper_ie
.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 x22, [x0, #24]
bl _rcu_read_lock
ldr w0, [x19, #16]
bl _rcu_dereference
mov x21, x0
cmp x0, #0
cset w0, eq
bl _WARN_ON
cbz x0, LBB0_3
; %bb.1:
bl _rcu_read_unlock
Lloh0:
adrp x8, _EINVAL@GOTPAGE
Lloh1:
ldr x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
ldr w8, [x8]
neg w0, w8
b LBB0_9
LBB0_3:
ldr x21, [x21]
bl _rcu_read_unlock
ldr x8, [x22]
ldr x8, [x8]
ldr x9, [x21]
ldr x21, [x8, x9, lsl #3]
ldr w8, [x21]
cbz w8, LBB0_8
; %bb.4:
mov x22, x19
ldr x8, [x22, #8]!
Lloh2:
adrp x9, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGE
Lloh3:
ldr x9, [x9, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGEOFF]
Lloh4:
ldr x9, [x9]
Lloh5:
adrp x10, _NL80211_CHAN_WIDTH_5@GOTPAGE
Lloh6:
ldr x10, [x10, _NL80211_CHAN_WIDTH_5@GOTPAGEOFF]
Lloh7:
ldr x10, [x10]
Lloh8:
adrp x11, _NL80211_CHAN_WIDTH_10@GOTPAGE
Lloh9:
ldr x11, [x11, _NL80211_CHAN_WIDTH_10@GOTPAGEOFF]
Lloh10:
ldr x11, [x11]
cmp x8, x9
ccmp x8, x10, #4, ne
ccmp x8, x11, #4, ne
b.eq LBB0_8
; %bb.5:
mov x0, x20
bl _skb_tailroom
cmp w0, #5
b.hi LBB0_7
; %bb.6:
Lloh11:
adrp x8, _ENOMEM@GOTPAGE
Lloh12:
ldr x8, [x8, _ENOMEM@GOTPAGEOFF]
b LBB0_2
LBB0_7:
mov x0, x20
mov w1, #6
bl _skb_put
ldr w3, [x19]
mov x1, x21
mov x2, x22
mov w4, #0
bl _ieee80211_ie_build_ht_oper
LBB0_8:
mov w0, #0
LBB0_9:
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 AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh11, Lloh12
.cfi_endproc
; -- End function
.comm _EINVAL,4,2 ; @EINVAL
.comm _NL80211_CHAN_WIDTH_20_NOHT,8,3 ; @NL80211_CHAN_WIDTH_20_NOHT
.comm _NL80211_CHAN_WIDTH_5,8,3 ; @NL80211_CHAN_WIDTH_5
.comm _NL80211_CHAN_WIDTH_10,8,3 ; @NL80211_CHAN_WIDTH_10
.comm _ENOMEM,4,2 ; @ENOMEM
.subsections_via_symbols
| AnghaBench/linux/net/mac80211/extr_mesh.c_mesh_add_ht_oper_ie.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 %r14
pushq %rbx
subq $96, %rsp
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
leaq -112(%rbp), %rdi
callq _gets
movl $1953068401, %r14d ## imm = 0x74697571
movl -112(%rbp), %eax
xorl %r14d, %eax
movzbl -108(%rbp), %ecx
orl %eax, %ecx
je LBB0_3
## %bb.1:
leaq -112(%rbp), %rbx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %rbx, %rdi
callq _puts
movq %rbx, %rdi
callq _gets
movl -112(%rbp), %eax
xorl %r14d, %eax
movzbl -108(%rbp), %ecx
orl %eax, %ecx
jne LBB0_2
LBB0_3:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -24(%rbp), %rax
jne LBB0_5
## %bb.4:
xorl %eax, %eax
addq $96, %rsp
popq %rbx
popq %r14
popq %rbp
retq
LBB0_5:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "quit"
.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, #128
.cfi_def_cfa_offset 128
stp x20, x19, [sp, #96] ; 16-byte Folded Spill
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.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]
mov w19, #30065
movk w19, #29801, lsl #16
LBB0_1: ; =>This Inner Loop Header: Depth=1
add x0, sp, #8
bl _gets
ldr w8, [sp, #8]
eor w8, w8, w19
ldrb w9, [sp, #12]
orr w8, w8, w9
cbz w8, LBB0_3
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #8
bl _puts
b LBB0_1
LBB0_3:
ldur x8, [x29, #-24]
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_5
; %bb.4:
mov w0, #0
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
ldp x20, x19, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #128
ret
LBB0_5:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "quit"
.subsections_via_symbols
| the_stack_data/93887519.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _xdr_read_pages ## -- Begin function xdr_read_pages
.p2align 4, 0x90
_xdr_read_pages: ## @xdr_read_pages
.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
movl %esi, %r12d
movq %rdi, %r14
movq 40(%rdi), %r15
movl %esi, %edi
callq _XDR_QUADLEN
movq %rax, %rbx
movl (%r14), %eax
testl %eax, %eax
je LBB0_6
## %bb.1:
leal (,%rax,4), %ecx
cmpl %ebx, %eax
cmovbl %eax, %ebx
cmovbl %ecx, %r12d
movq 24(%r15), %rax
movl 8(%rax), %esi
addl (%rax), %esi
subl 24(%r14), %esi
testl %esi, %esi
jle LBB0_3
## %bb.2:
movq %r15, %rdi
callq _xdr_shrink_bufhead
LBB0_3:
movl (%r15), %esi
subl %r12d, %esi
jbe LBB0_5
## %bb.4:
movq %r15, %rdi
callq _xdr_shrink_pagelen
LBB0_5:
shll $2, %ebx
subl %r12d, %ebx
movq 16(%r15), %rax
movq %rax, 32(%r14)
movl (%rax), %ecx
movl 4(%r15), %edx
subl 8(%r15), %edx
movl %ecx, %edi
subl %edx, %edi
addl %ebx, %edx
cmpl %edx, %ecx
cmovbel %ebx, %edi
movq 8(%rax), %rax
movslq %ebx, %rcx
leaq (%rax,%rcx), %rdx
movq %rdx, 24(%r14)
addq %rdi, %rax
movq %rax, 16(%r14)
movq $0, 8(%r14)
subl %ecx, %edi
## kill: def $edi killed $edi killed $rdi
callq _XDR_QUADLEN
movl %eax, (%r14)
LBB0_6:
popq %rbx
popq %r12
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 _xdr_read_pages ; -- Begin function xdr_read_pages
.p2align 2
_xdr_read_pages: ; @xdr_read_pages
.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 x21, x1
mov x19, x0
ldr x20, [x0, #40]
mov x0, x1
bl _XDR_QUADLEN
ldr w8, [x19]
cbz w8, LBB0_6
; %bb.1:
lsl w9, w8, #2
cmp w8, w0
csel w22, w8, w0, lo
csel w21, w9, w21, lo
ldr x8, [x20, #24]
ldr w9, [x8, #8]
ldr w8, [x8]
ldr w10, [x19, #24]
add w8, w9, w8
sub w1, w8, w10
cmp w1, #1
b.lt LBB0_3
; %bb.2:
mov x0, x20
bl _xdr_shrink_bufhead
LBB0_3:
ldr w8, [x20]
subs w1, w8, w21
b.ls LBB0_5
; %bb.4:
mov x0, x20
bl _xdr_shrink_pagelen
LBB0_5:
lsl w8, w22, #2
sub w8, w8, w21
ldr x9, [x20, #16]
ldr w10, [x9]
ldp w11, w12, [x20, #4]
sub w11, w11, w12
add w12, w11, w8
sub w11, w10, w11
cmp w10, w12
csel w10, w11, w8, hi
ldr x11, [x9, #8]
sub w0, w10, w8
add x8, x11, w8, sxtw
stp x8, x9, [x19, #24]
add x8, x11, x10
stp xzr, x8, [x19, #8]
bl _XDR_QUADLEN
str w0, [x19]
LBB0_6:
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/fastsocket/kernel/net/sunrpc/extr_xdr.c_xdr_read_pages.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function mcuctl_read
_mcuctl_read: ## @mcuctl_read
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %esi, %eax
addq (%rdi), %rax
movq %rax, %rdi
popq %rbp
jmp _readl ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _mcuctl_read
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function mcuctl_read
_mcuctl_read: ; @mcuctl_read
.cfi_startproc
; %bb.0:
ldr x8, [x0]
add x0, x8, w1, uxtw
b _readl
.cfi_endproc
; -- End function
.no_dead_strip _mcuctl_read
.subsections_via_symbols
| AnghaBench/linux/drivers/media/platform/exynos4-is/extr_fimc-is.h_mcuctl_read.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl ___oldXMLWDcompatibility ## -- Begin function __oldXMLWDcompatibility
.p2align 4, 0x90
___oldXMLWDcompatibility: ## @__oldXMLWDcompatibility
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _IS_MAIN_THREAD@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_2
## %bb.1:
movq _oldXMLWDcompatibility@GOTPCREL(%rip), %rax
popq %rbp
retq
LBB0_2:
xorl %eax, %eax
popq %rbp
jmp _xmlGetGlobalState ## TAILCALL
.cfi_endproc
## -- End function
.comm _IS_MAIN_THREAD,8,3 ## @IS_MAIN_THREAD
.comm _oldXMLWDcompatibility,4,2 ## @oldXMLWDcompatibility
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl ___oldXMLWDcompatibility ; -- Begin function __oldXMLWDcompatibility
.p2align 2
___oldXMLWDcompatibility: ; @__oldXMLWDcompatibility
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _IS_MAIN_THREAD@GOTPAGE
Lloh1:
ldr x8, [x8, _IS_MAIN_THREAD@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
cbz x8, LBB0_2
; %bb.1:
Lloh3:
adrp x0, _oldXMLWDcompatibility@GOTPAGE
Lloh4:
ldr x0, [x0, _oldXMLWDcompatibility@GOTPAGEOFF]
ret
LBB0_2:
b _xmlGetGlobalState
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGot Lloh3, Lloh4
.cfi_endproc
; -- End function
.comm _IS_MAIN_THREAD,8,3 ; @IS_MAIN_THREAD
.comm _oldXMLWDcompatibility,4,2 ; @oldXMLWDcompatibility
.subsections_via_symbols
| AnghaBench/reactos/sdk/lib/3rdparty/libxml2/extr_globals.c___oldXMLWDcompatibility.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.section __TEXT,__literal8,8byte_literals
.p2align 3, 0x0 ## -- Begin function i_APCI3200_CommandTestAnalogInput
LCPI0_0:
.quad 0x3ff0000000000000 ## double 1
LCPI0_1:
.quad 0x408f400000000000 ## double 1000
.section __TEXT,__text,regular,pure_instructions
.globl _i_APCI3200_CommandTestAnalogInput
.p2align 4, 0x90
_i_APCI3200_CommandTestAnalogInput: ## @i_APCI3200_CommandTestAnalogInput
.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 _TRIG_NOW@GOTPCREL(%rip), %rsi
movq _TRIG_EXT@GOTPCREL(%rip), %rcx
movl (%rcx), %eax
orl (%rsi), %eax
movl (%rdx), %r8d
movl 4(%rdx), %r9d
andl %r8d, %eax
movl %eax, (%rdx)
sete %r10b
cmpl %eax, %r8d
setne %r8b
orb %r10b, %r8b
movzbl %r8b, %r8d
movq _TRIG_TIMER@GOTPCREL(%rip), %r10
movl (%r10), %r10d
movq _TRIG_FOLLOW@GOTPCREL(%rip), %r11
movl (%r11), %r11d
orl %r10d, %r11d
movl %r11d, %ebx
andl %r9d, %ebx
leal 1(%r8), %r14d
cmpl %ebx, %r9d
cmovnel %r14d, %r8d
andl %r9d, %r11d
cmovel %r14d, %r8d
movl %r11d, 4(%rdx)
movl 8(%rdx), %r11d
andl %r11d, %r10d
movl %r10d, 8(%rdx)
sete %r9b
cmpl %r10d, %r11d
setne %r10b
movl 12(%rdx), %ebx
movq _TRIG_COUNT@GOTPCREL(%rip), %r11
movl (%r11), %r12d
movl %r12d, %r14d
andl %ebx, %r14d
sete %r11b
cmpl %r14d, %ebx
movl %r14d, 12(%rdx)
setne %r14b
movq _TRIG_NONE@GOTPCREL(%rip), %rbx
orl (%rbx), %r12d
movl 16(%rdx), %ebx
andl %ebx, %r12d
sete %r13b
cmpl %r12d, %ebx
movl %r12d, 16(%rdx)
setne %r12b
movq (%rdi), %rbx
shlq $4, %rbx
movq _s_BoardInfos@GOTPCREL(%rip), %r15
movq (%r15), %r15
cmpq $0, (%r15,%rbx)
movl $1, %ebx
je LBB0_36
## %bb.1:
orb %r10b, %r9b
movzbl %r9b, %r9d
orb %r14b, %r11b
movzbl %r11b, %r10d
addl %r9d, %r10d
addl %r10d, %r8d
orb %r12b, %r13b
movzbl %r13b, %r9d
orl %r8d, %r9d
jne LBB0_36
## %bb.2:
cmpl (%rsi), %eax
setne %sil
movl (%rcx), %ecx
cmpl %ecx, %eax
setne %r8b
andb %sil, %r8b
movzbl %r8b, %r14d
cmpl %ecx, %eax
jne LBB0_8
## %bb.3:
movq %rdi, %rbx
movl 20(%rdx), %r12d
movzwl %r12w, %eax
addl $-4, %eax
cmpl $-4, %eax
ja LBB0_5
## %bb.4:
leaq L_.str(%rip), %rdi
movq %rdx, %r14
callq _printk
movq %r14, %rdx
movl $1, %r14d
LBB0_5:
andl $-65536, %r12d ## imm = 0xFFFF0000
cmpl $131072, %r12d ## imm = 0x20000
je LBB0_7
## %bb.6:
incl %r14d
leaq L_.str.1(%rip), %rdi
movq %rdx, %r12
callq _printk
movq %r12, %rdx
LBB0_7:
movq %rbx, %rdi
LBB0_8:
movl 4(%rdx), %eax
movq _TRIG_TIMER@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
cmpl %ecx, %eax
setne %r8b
movq _TRIG_FOLLOW@GOTPCREL(%rip), %rsi
cmpl (%rsi), %eax
movl 8(%rdx), %eax
setne %r9b
xorl %esi, %esi
cmpl %ecx, %eax
setne %r10b
movq _TRIG_COUNT@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
cmpl %ecx, 12(%rdx)
jne LBB0_10
## %bb.9:
andb %r9b, %r8b
movzbl %r8b, %r8d
movb %r10b, %sil
addl %r8d, %esi
addl %esi, %r14d
jmp LBB0_11
LBB0_10:
movl %ecx, 12(%rdx)
movl $1, %r14d
LBB0_11:
movl 16(%rdx), %esi
movq _TRIG_NONE@GOTPCREL(%rip), %r8
cmpl (%r8), %esi
setne %r8b
cmpl %ecx, %esi
setne %cl
andb %r8b, %cl
movzbl %cl, %ecx
movl $2, %ebx
orl %r14d, %ecx
je LBB0_12
LBB0_36:
callq _i_APCI3200_Reset
LBB0_37:
movl %ebx, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_12:
movq 24(%rdx), %rcx
movl (%rcx), %esi
movq _s_BoardInfos@GOTPCREL(%rip), %r8
movq (%r8), %r8
movq (%rdi), %r9
shlq $4, %r9
movl %esi, 8(%r8,%r9)
movl 4(%rcx), %ecx
movl %ecx, 12(%r8,%r9)
xorl %r12d, %r12d
movl $0, %r15d
movq _TRIG_TIMER@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jne LBB0_19
## %bb.13:
movl 32(%rdx), %ebx
movzwl %bx, %r15d
xorl %r12d, %r12d
leal -20(%r15), %eax
cmpl $60, %eax
ja LBB0_14
## %bb.16:
movabsq $1152921504607895553, %rcx ## imm = 0x1000000000100001
btq %rax, %rcx
jb LBB0_17
LBB0_14:
cmpl $160, %r15d
je LBB0_17
## %bb.15:
leaq L_.str.2(%rip), %rax
movq %rdi, %r14
movq %rax, %rdi
movq %rdx, %r12
callq _printk
movq %r12, %rdx
movq %r14, %rdi
movl $1, %r12d
LBB0_17:
andl $-65536, %ebx ## imm = 0xFFFF0000
cmpl $131072, %ebx ## imm = 0x20000
je LBB0_19
## %bb.18:
leaq L_.str.3(%rip), %rax
movq %rdi, %rbx
movq %rax, %rdi
movq %rdx, %r14
callq _printk
movq %r14, %rdx
movq %rbx, %rdi
incl %r12d
LBB0_19:
movl 4(%rdx), %eax
movq _TRIG_FOLLOW@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jne LBB0_20
LBB0_32:
movl $4, %ebx
testl %r12d, %r12d
jne LBB0_36
## %bb.33:
xorl %ebx, %ebx
jmp LBB0_37
LBB0_20:
movl 36(%rdx), %r14d
movzwl %r14w, %r13d
sarl $16, %r14d
leal -4(%r14), %eax
cmpl $-2, %eax
jae LBB0_21
## %bb.34:
leaq L_.str.4(%rip), %rax
movq %rdi, %rbx
movq %rax, %rdi
callq _printk
movq %rbx, %rdi
addl $-1024, %r13d ## imm = 0xFC00
movl $3, %ebx
cmpl $-1024, %r13d ## imm = 0xFC00
ja LBB0_36
jmp LBB0_35
LBB0_21:
leal -1024(%r13), %eax
cmpl $-1023, %eax ## imm = 0xFC01
jae LBB0_22
LBB0_35:
leaq L_.str.5(%rip), %rax
movq %rdi, %rbx
movq %rax, %rdi
callq _printk
movq %rbx, %rdi
movl $3, %ebx
jmp LBB0_36
LBB0_22:
movl $3, %ebx
testl %r12d, %r12d
jne LBB0_36
## %bb.23:
xorl %r12d, %r12d
xorl %eax, %eax
movq %rdi, %rbx
callq _fpu_begin
cvtsi2sd %r13d, %xmm0
movq _s_BoardInfos@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rbx), %rax
shlq $4, %rax
movl 12(%rcx,%rax), %edx
subl 8(%rcx,%rax), %edx
cvtsi2sd %r15d, %xmm3
addl $4, %edx
cvtsi2sd %edx, %xmm1
divsd %xmm1, %xmm3
movsd LCPI0_0(%rip), %xmm2 ## xmm2 = [1.0E+0,0.0E+0]
movapd %xmm2, %xmm1
divsd %xmm3, %xmm1
cmpl $3, %r14d
je LBB0_29
## %bb.24:
movl %r14d, %eax
orl $4, %eax
cmpl $7, %eax
jb LBB0_27
## %bb.25:
xorl %eax, %eax
movsd LCPI0_1(%rip), %xmm3 ## xmm3 = [1.0E+3,0.0E+0]
LBB0_26: ## =>This Inner Loop Header: Depth=1
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
addl $-8, %eax
jne LBB0_26
LBB0_27:
addl $-3, %r14d
movsd LCPI0_1(%rip), %xmm3 ## xmm3 = [1.0E+3,0.0E+0]
LBB0_28: ## =>This Inner Loop Header: Depth=1
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
incl %r14d
jne LBB0_28
LBB0_29:
ucomisd %xmm0, %xmm1
jb LBB0_31
## %bb.30:
leaq L_.str.6(%rip), %rdi
callq _printk
movl $1, %r12d
LBB0_31:
xorl %eax, %eax
callq _fpu_end
movq %rbx, %rdi
jmp LBB0_32
.cfi_endproc
## -- End function
.comm _TRIG_NOW,4,2 ## @TRIG_NOW
.comm _TRIG_EXT,4,2 ## @TRIG_EXT
.comm _TRIG_TIMER,4,2 ## @TRIG_TIMER
.comm _TRIG_FOLLOW,4,2 ## @TRIG_FOLLOW
.comm _TRIG_COUNT,4,2 ## @TRIG_COUNT
.comm _TRIG_NONE,4,2 ## @TRIG_NONE
.comm _s_BoardInfos,8,3 ## @s_BoardInfos
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\nThe trigger edge selection is in error\n"
L_.str.1: ## @.str.1
.asciz "\nThe trigger mode selection is in error\n"
L_.str.2: ## @.str.2
.asciz "\nThe selection of conversion time reload value is in error\n"
L_.str.3: ## @.str.3
.asciz "\nThe selection of conversion time unit is in error\n"
L_.str.4: ## @.str.4
.asciz "\nThe Delay time base selection is in error\n"
L_.str.5: ## @.str.5
.asciz "\nThe Delay time value is in error\n"
L_.str.6: ## @.str.6
.asciz "\nSCAN Delay value cannot be used\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _i_APCI3200_CommandTestAnalogInput ; -- Begin function i_APCI3200_CommandTestAnalogInput
.p2align 2
_i_APCI3200_CommandTestAnalogInput: ; @i_APCI3200_CommandTestAnalogInput
.cfi_startproc
; %bb.0:
stp x26, x25, [sp, #-80]! ; 16-byte Folded Spill
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 x9, _TRIG_NOW@GOTPAGE
Lloh1:
ldr x9, [x9, _TRIG_NOW@GOTPAGEOFF]
ldr w10, [x9]
Lloh2:
adrp x8, _TRIG_EXT@GOTPAGE
Lloh3:
ldr x8, [x8, _TRIG_EXT@GOTPAGEOFF]
ldr w11, [x8]
orr w10, w11, w10
ldp w11, w12, [x2]
ands w10, w10, w11
str w10, [x2]
cset w13, eq
cmp w11, w10
csinc w11, w13, wzr, eq
Lloh4:
adrp x22, _TRIG_TIMER@GOTPAGE
Lloh5:
ldr x22, [x22, _TRIG_TIMER@GOTPAGEOFF]
Lloh6:
adrp x20, _TRIG_FOLLOW@GOTPAGE
Lloh7:
ldr x20, [x20, _TRIG_FOLLOW@GOTPAGEOFF]
ldr w13, [x22]
ldr w14, [x20]
orr w14, w14, w13
and w14, w14, w12
cmp w11, #0
mov w19, #1 ; =0x1
cinc w15, w19, ne
cmp w12, w14
ccmp w14, #0, #4, eq
csel w11, w11, w15, ne
ldp w12, w15, [x2, #8]
ands w13, w12, w13
stp w14, w13, [x2, #4]
cset w14, eq
cmp w12, w13
csinc w12, w14, wzr, eq
Lloh8:
adrp x24, _TRIG_COUNT@GOTPAGE
Lloh9:
ldr x24, [x24, _TRIG_COUNT@GOTPAGEOFF]
ldr w13, [x24]
ands w14, w13, w15
cset w16, eq
cmp w15, w14
csinc w15, w16, wzr, eq
add w12, w12, w15
add w11, w11, w12
ldr w12, [x2, #16]
Lloh10:
adrp x23, _TRIG_NONE@GOTPAGE
Lloh11:
ldr x23, [x23, _TRIG_NONE@GOTPAGEOFF]
ldr w15, [x23]
orr w13, w15, w13
ands w13, w13, w12
stp w14, w13, [x2, #12]
cset w14, eq
cmp w12, w13
csinc w12, w14, wzr, eq
Lloh12:
adrp x21, _s_BoardInfos@GOTPAGE
Lloh13:
ldr x21, [x21, _s_BoardInfos@GOTPAGEOFF]
ldr x13, [x21]
ldr x14, [x0]
lsl x14, x14, #4
ldr x13, [x13, x14]
orr w11, w11, w12
cmp x13, #0
ccmp w11, #0, #0, ne
b.ne LBB0_28
; %bb.1:
ldr w9, [x9]
cmp w10, w9
cset w9, ne
ldr w8, [x8]
cmp w10, w8
csel w19, wzr, w9, eq
b.ne LBB0_7
; %bb.2:
mov x25, x0
ldr w26, [x2, #20]
and w8, w26, #0xffff
sub w8, w8, #4
cmn w8, #4
b.hi LBB0_4
; %bb.3:
Lloh14:
adrp x0, l_.str@PAGE
Lloh15:
add x0, x0, l_.str@PAGEOFF
mov x19, x2
bl _printk
mov x2, x19
mov w19, #1 ; =0x1
LBB0_4:
and w8, w26, #0xffff0000
cmp w8, #32, lsl #12 ; =131072
b.eq LBB0_6
; %bb.5:
add w19, w19, #1
Lloh16:
adrp x0, l_.str.1@PAGE
Lloh17:
add x0, x0, l_.str.1@PAGEOFF
mov x26, x2
bl _printk
mov x2, x26
LBB0_6:
mov x0, x25
LBB0_7:
ldr w9, [x22]
ldp w10, w8, [x2, #4]
cmp w10, w9
ldr w11, [x20]
ccmp w10, w11, #4, ne
cinc w10, w19, ne
cmp w8, w9
cinc w9, w10, ne
ldr w11, [x2, #12]
ldr w10, [x24]
cmp w11, w10
b.eq LBB0_9
; %bb.8:
str w10, [x2, #12]
mov w9, #1 ; =0x1
LBB0_9:
ldr w11, [x2, #16]
ldr w12, [x23]
cmp w11, w10
ccmp w11, w12, #4, ne
cset w10, ne
orr w9, w9, w10
cbz w9, LBB0_11
; %bb.10:
mov w19, #2 ; =0x2
b LBB0_28
LBB0_11:
ldr x9, [x2, #24]
ldr w10, [x9]
ldr x11, [x21]
ldr x12, [x0]
add x11, x11, x12, lsl #4
str w10, [x11, #8]
ldr w9, [x9, #4]
str w9, [x11, #12]
ldr w9, [x22]
cmp w8, w9
b.ne LBB0_18
; %bb.12:
mov w22, #0 ; =0x0
ldr w23, [x2, #32]
and w19, w23, #0xffff
sub w8, w19, #20
cmp w8, #60
b.hi LBB0_14
; %bb.13:
mov w9, #1 ; =0x1
lsl x8, x9, x8
mov x9, #1 ; =0x1
movk x9, #16, lsl #16
movk x9, #4096, lsl #48
tst x8, x9
b.ne LBB0_16
LBB0_14:
cmp w19, #160
b.eq LBB0_16
; %bb.15:
Lloh18:
adrp x8, l_.str.2@PAGE
Lloh19:
add x8, x8, l_.str.2@PAGEOFF
mov x22, x0
mov x0, x8
mov x24, x2
bl _printk
mov x2, x24
mov x0, x22
mov w22, #1 ; =0x1
LBB0_16:
and w8, w23, #0xffff0000
cmp w8, #32, lsl #12 ; =131072
b.eq LBB0_19
; %bb.17:
Lloh20:
adrp x8, l_.str.3@PAGE
Lloh21:
add x8, x8, l_.str.3@PAGEOFF
mov x23, x0
mov x0, x8
mov x24, x2
bl _printk
mov x2, x24
mov x0, x23
add w22, w22, #1
b LBB0_19
LBB0_18:
mov w22, #0 ; =0x0
mov w19, #0 ; =0x0
LBB0_19:
ldr w8, [x2, #4]
ldr w9, [x20]
cmp w8, w9
b.ne LBB0_22
; %bb.20:
cbz w22, LBB0_37
LBB0_21:
mov w19, #4 ; =0x4
b LBB0_28
LBB0_22:
mov x20, x0
ldr w8, [x2, #36]
and w24, w8, #0xffff
asr w23, w8, #16
sub w8, w23, #4
cmn w8, #2
b.hs LBB0_24
; %bb.23:
Lloh22:
adrp x0, l_.str.4@PAGE
Lloh23:
add x0, x0, l_.str.4@PAGEOFF
bl _printk
sub w8, w24, #1024
cmn w8, #1024
b.ls LBB0_25
b LBB0_27
LBB0_24:
sub w8, w24, #1024
cmn w8, #1023
b.hs LBB0_26
LBB0_25:
Lloh24:
adrp x0, l_.str.5@PAGE
Lloh25:
add x0, x0, l_.str.5@PAGEOFF
bl _printk
b LBB0_27
LBB0_26:
cbz w22, LBB0_30
LBB0_27:
mov w19, #3 ; =0x3
mov x0, x20
LBB0_28:
bl _i_APCI3200_Reset
LBB0_29:
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
LBB0_30:
bl _fpu_begin
ucvtf d0, w24
ldr x8, [x21]
ldr x9, [x20]
add x8, x8, x9, lsl #4
ldp w8, w9, [x8, #8]
sub w8, w9, w8
add w8, w8, #4
ucvtf d1, w19
scvtf d2, w8
fdiv d1, d1, d2
fmov d2, #1.00000000
fdiv d1, d2, d1
subs w8, w23, #3
b.eq LBB0_33
; %bb.31:
mov x9, #70368744177664 ; =0x400000000000
movk x9, #16527, lsl #48
fmov d3, x9
LBB0_32: ; =>This Inner Loop Header: Depth=1
fmul d1, d1, d3
fadd d1, d1, d2
adds w8, w8, #1
b.lo LBB0_32
LBB0_33:
fcmp d1, d0
b.ge LBB0_35
; %bb.34:
mov w22, #0 ; =0x0
b LBB0_36
LBB0_35:
Lloh26:
adrp x0, l_.str.6@PAGE
Lloh27:
add x0, x0, l_.str.6@PAGEOFF
bl _printk
mov w22, #1 ; =0x1
LBB0_36:
bl _fpu_end
mov x0, x20
cbnz w22, LBB0_21
LBB0_37:
mov w19, #0 ; =0x0
b LBB0_29
.loh AdrpLdrGot Lloh12, Lloh13
.loh AdrpLdrGot Lloh10, Lloh11
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh14, Lloh15
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpAdd Lloh18, Lloh19
.loh AdrpAdd Lloh20, Lloh21
.loh AdrpAdd Lloh22, Lloh23
.loh AdrpAdd Lloh24, Lloh25
.loh AdrpAdd Lloh26, Lloh27
.cfi_endproc
; -- End function
.comm _TRIG_NOW,4,2 ; @TRIG_NOW
.comm _TRIG_EXT,4,2 ; @TRIG_EXT
.comm _TRIG_TIMER,4,2 ; @TRIG_TIMER
.comm _TRIG_FOLLOW,4,2 ; @TRIG_FOLLOW
.comm _TRIG_COUNT,4,2 ; @TRIG_COUNT
.comm _TRIG_NONE,4,2 ; @TRIG_NONE
.comm _s_BoardInfos,8,3 ; @s_BoardInfos
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\nThe trigger edge selection is in error\n"
l_.str.1: ; @.str.1
.asciz "\nThe trigger mode selection is in error\n"
l_.str.2: ; @.str.2
.asciz "\nThe selection of conversion time reload value is in error\n"
l_.str.3: ; @.str.3
.asciz "\nThe selection of conversion time unit is in error\n"
l_.str.4: ; @.str.4
.asciz "\nThe Delay time base selection is in error\n"
l_.str.5: ; @.str.5
.asciz "\nThe Delay time value is in error\n"
l_.str.6: ; @.str.6
.asciz "\nSCAN Delay value cannot be used\n"
.subsections_via_symbols
| assembly_file_71428.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function cmd640_qc_issue
_cmd640_qc_issue: ## @cmd640_qc_issue
.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 %rdi, %r12
movq (%rdi), %r14
movq 8(%rdi), %rbx
movq 16(%rbx), %rax
movl (%rax), %edi
callq _to_pci_dev
cmpq $0, (%rbx)
je LBB0_3
## %bb.1:
movq 8(%rbx), %r15
movq (%r14), %rcx
cmpq (%r15), %rcx
je LBB0_3
## %bb.2:
movq _DRWTIM23@GOTPCREL(%rip), %rdx
movl (%rdx), %esi
movq 8(%r15), %rdx
movl (%rdx,%rcx,4), %edx
movq %rax, %rdi
callq _pci_write_config_byte
movq (%r14), %rax
movq %rax, (%r15)
LBB0_3:
movq %r12, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp _ata_sff_qc_issue ## TAILCALL
.cfi_endproc
## -- End function
.comm _DRWTIM23,4,2 ## @DRWTIM23
.no_dead_strip _cmd640_qc_issue
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function cmd640_qc_issue
_cmd640_qc_issue: ; @cmd640_qc_issue
.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, x0
ldp x20, x21, [x0]
ldr x8, [x21, #16]
ldr w0, [x8]
bl _to_pci_dev
ldr x8, [x21]
cbz x8, LBB0_3
; %bb.1:
ldr x21, [x21, #8]
ldr x8, [x20]
ldr x9, [x21]
cmp x8, x9
b.eq LBB0_3
; %bb.2:
Lloh0:
adrp x9, _DRWTIM23@GOTPAGE
Lloh1:
ldr x9, [x9, _DRWTIM23@GOTPAGEOFF]
Lloh2:
ldr w1, [x9]
ldr x9, [x21, #8]
ldr w2, [x9, x8, lsl #2]
bl _pci_write_config_byte
ldr x8, [x20]
str x8, [x21]
LBB0_3:
mov x0, 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 _ata_sff_qc_issue
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _DRWTIM23,4,2 ; @DRWTIM23
.no_dead_strip _cmd640_qc_issue
.subsections_via_symbols
| AnghaBench/linux/drivers/ata/extr_pata_cmd640.c_cmd640_qc_issue.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function fRegisterVdevice
_fRegisterVdevice: ## @fRegisterVdevice
.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 _MV_SATA_CHANNELS_NUM@GOTPCREL(%rip), %r15
cmpl $0, (%r15)
js LBB0_24
## %bb.1:
movq %rdi, %rbx
xorl %r12d, %r12d
jmp LBB0_2
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
movq $0, 16(%r14)
movq $0, 16(%r13)
LBB0_23: ## in Loop: Header=BB0_2 Depth=1
leaq 1(%r12), %rax
movslq (%r15), %rcx
cmpq %rcx, %r12
movq %rax, %r12
jge LBB0_24
LBB0_2: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
## Child Loop BB0_12 Depth 2
## Child Loop BB0_19 Depth 2
## Child Loop BB0_21 Depth 2
leaq (%r12,%r12,4), %r13
shlq $3, %r13
addq 8(%rbx), %r13
movq %r13, %rax
.p2align 4, 0x90
LBB0_3: ## Parent Loop BB0_2 Depth=1
## => This Inner Loop Header: Depth=2
movq %rax, %r14
movq 32(%rax), %rax
testq %rax, %rax
jne LBB0_3
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
cmpq $0, (%r14)
je LBB0_5
## %bb.6: ## in Loop: Header=BB0_2 Depth=1
movq 8(%r14), %rax
movq _VD_SPARE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_9
## %bb.7: ## in Loop: Header=BB0_2 Depth=1
movq %r14, %rdi
callq _fGetFirstChild
testq %rbx, %rbx
je LBB0_23
## %bb.8: ## in Loop: Header=BB0_2 Depth=1
cmpq %rax, %r13
je LBB0_10
jmp LBB0_23
.p2align 4, 0x90
LBB0_9: ## in Loop: Header=BB0_2 Depth=1
testq %rbx, %rbx
je LBB0_23
LBB0_10: ## in Loop: Header=BB0_2 Depth=1
movq _MAX_VDEVICE_PER_VBUS@GOTPCREL(%rip), %rax
movslq (%rax), %rdx
testq %rdx, %rdx
jle LBB0_23
## %bb.11: ## in Loop: Header=BB0_2 Depth=1
movq (%rbx), %rsi
xorl %ecx, %ecx
xorl %eax, %eax
.p2align 4, 0x90
LBB0_12: ## Parent Loop BB0_2 Depth=1
## => This Inner Loop Header: Depth=2
cmpq $0, (%rsi,%rax,8)
je LBB0_14
## %bb.13: ## in Loop: Header=BB0_12 Depth=2
incq %rax
incb %cl
cmpq %rax, %rdx
jne LBB0_12
jmp LBB0_23
LBB0_14: ## in Loop: Header=BB0_2 Depth=1
movq %r14, (%rsi,%rax,8)
movq %rbx, 24(%r14)
testq %rax, %rax
je LBB0_23
## %bb.15: ## in Loop: Header=BB0_2 Depth=1
cmpq $0, 16(%r14)
je LBB0_23
## %bb.16: ## in Loop: Header=BB0_2 Depth=1
movq (%rbx), %rdx
movq (%rdx), %rdx
cmpq $0, 16(%rdx)
je LBB0_17
## %bb.25: ## in Loop: Header=BB0_2 Depth=1
movq %r14, %rdi
callq _fResetBootMark
jmp LBB0_23
LBB0_17: ## in Loop: Header=BB0_2 Depth=1
movq %rax, %rdx
testb $3, %al
je LBB0_20
## %bb.18: ## in Loop: Header=BB0_2 Depth=1
movzbl %cl, %ecx
andl $3, %ecx
movq %rax, %rdx
.p2align 4, 0x90
LBB0_19: ## Parent Loop BB0_2 Depth=1
## => This Inner Loop Header: Depth=2
movq (%rbx), %rsi
movq -8(%rsi,%rdx,8), %rdi
movq %rdi, (%rsi,%rdx,8)
decq %rdx
decq %rcx
jne LBB0_19
LBB0_20: ## in Loop: Header=BB0_2 Depth=1
cmpq $4, %rax
jb LBB0_22
.p2align 4, 0x90
LBB0_21: ## Parent Loop BB0_2 Depth=1
## => This Inner Loop Header: Depth=2
movq (%rbx), %rax
movq -8(%rax,%rdx,8), %rcx
movq %rcx, (%rax,%rdx,8)
movq (%rbx), %rax
movq -16(%rax,%rdx,8), %rcx
movq %rcx, -8(%rax,%rdx,8)
movq (%rbx), %rax
movq -24(%rax,%rdx,8), %rcx
movq %rcx, -16(%rax,%rdx,8)
movq (%rbx), %rax
movq -32(%rax,%rdx,8), %rcx
movq %rcx, -24(%rax,%rdx,8)
addq $-4, %rdx
jne LBB0_21
LBB0_22: ## in Loop: Header=BB0_2 Depth=1
movq (%rbx), %rax
movq %r14, (%rax)
jmp LBB0_23
LBB0_24:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _MV_SATA_CHANNELS_NUM,4,2 ## @MV_SATA_CHANNELS_NUM
.comm _VD_SPARE,8,3 ## @VD_SPARE
.comm _MAX_VDEVICE_PER_VBUS,4,2 ## @MAX_VDEVICE_PER_VBUS
.no_dead_strip _fRegisterVdevice
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function fRegisterVdevice
_fRegisterVdevice: ; @fRegisterVdevice
.cfi_startproc
; %bb.0:
stp x26, x25, [sp, #-80]! ; 16-byte Folded Spill
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, _MV_SATA_CHANNELS_NUM@GOTPAGE
Lloh1:
ldr x21, [x21, _MV_SATA_CHANNELS_NUM@GOTPAGEOFF]
ldr w8, [x21]
tbnz w8, #31, LBB0_21
; %bb.1:
mov x19, x0
mov x22, #0 ; =0x0
mov w23, #40 ; =0x28
Lloh2:
adrp x24, _VD_SPARE@GOTPAGE
Lloh3:
ldr x24, [x24, _VD_SPARE@GOTPAGEOFF]
Lloh4:
adrp x25, _MAX_VDEVICE_PER_VBUS@GOTPAGE
Lloh5:
ldr x25, [x25, _MAX_VDEVICE_PER_VBUS@GOTPAGEOFF]
b LBB0_4
LBB0_2: ; in Loop: Header=BB0_4 Depth=1
str xzr, [x20, #16]
str xzr, [x26, #16]
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
add x8, x22, #1
ldrsw x9, [x21]
cmp x22, x9
mov x22, x8
b.ge LBB0_21
LBB0_4: ; =>This Loop Header: Depth=1
; Child Loop BB0_5 Depth 2
; Child Loop BB0_13 Depth 2
; Child Loop BB0_19 Depth 2
ldr x8, [x19, #8]
madd x26, x22, x23, x8
mov x8, x26
LBB0_5: ; Parent Loop BB0_4 Depth=1
; => This Inner Loop Header: Depth=2
mov x20, x8
ldr x8, [x8, #32]
cbnz x8, LBB0_5
; %bb.6: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x20]
cbz x8, LBB0_2
; %bb.7: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x20, #8]
ldr x9, [x24]
cmp x8, x9
b.ne LBB0_10
; %bb.8: ; in Loop: Header=BB0_4 Depth=1
mov x0, x20
bl _fGetFirstChild
cbz x19, LBB0_3
; %bb.9: ; in Loop: Header=BB0_4 Depth=1
cmp x26, x0
b.eq LBB0_11
b LBB0_3
LBB0_10: ; in Loop: Header=BB0_4 Depth=1
cbz x19, LBB0_3
LBB0_11: ; in Loop: Header=BB0_4 Depth=1
ldr w9, [x25]
cmp w9, #1
b.lt LBB0_3
; %bb.12: ; in Loop: Header=BB0_4 Depth=1
mov x8, #0 ; =0x0
mov x10, #0 ; =0x0
ldr x11, [x19]
LBB0_13: ; Parent Loop BB0_4 Depth=1
; => This Inner Loop Header: Depth=2
ldr x12, [x11, x10, lsl #3]
cbz x12, LBB0_15
; %bb.14: ; in Loop: Header=BB0_13 Depth=2
add x10, x10, #1
add x8, x8, #8
cmp x9, x10
b.ne LBB0_13
b LBB0_3
LBB0_15: ; in Loop: Header=BB0_4 Depth=1
str x20, [x11, x10, lsl #3]
str x19, [x20, #24]
cbz x10, LBB0_3
; %bb.16: ; in Loop: Header=BB0_4 Depth=1
ldr x9, [x20, #16]
cbz x9, LBB0_3
; %bb.17: ; in Loop: Header=BB0_4 Depth=1
ldr x9, [x19]
ldr x9, [x9]
ldr x9, [x9, #16]
cbz x9, LBB0_19
; %bb.18: ; in Loop: Header=BB0_4 Depth=1
mov x0, x20
bl _fResetBootMark
b LBB0_3
LBB0_19: ; Parent Loop BB0_4 Depth=1
; => This Inner Loop Header: Depth=2
ldr x9, [x19]
add x9, x9, x8
ldur x10, [x9, #-8]
str x10, [x9]
subs x8, x8, #8
b.ne LBB0_19
; %bb.20: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x19]
str x20, [x8]
b LBB0_3
LBB0_21:
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 Lloh0, Lloh1
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpLdrGot Lloh2, Lloh3
.cfi_endproc
; -- End function
.comm _MV_SATA_CHANNELS_NUM,4,2 ; @MV_SATA_CHANNELS_NUM
.comm _VD_SPARE,8,3 ; @VD_SPARE
.comm _MAX_VDEVICE_PER_VBUS,4,2 ; @MAX_VDEVICE_PER_VBUS
.no_dead_strip _fRegisterVdevice
.subsections_via_symbols
| assembly_file_7169.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ldns_zone_rr_count ## -- Begin function ldns_zone_rr_count
.p2align 4, 0x90
_ldns_zone_rr_count: ## @ldns_zone_rr_count
.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), %edi
popq %rbp
jmp _ldns_rr_list_rr_count ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ldns_zone_rr_count ; -- Begin function ldns_zone_rr_count
.p2align 2
_ldns_zone_rr_count: ; @ldns_zone_rr_count
.cfi_startproc
; %bb.0:
ldr w0, [x0]
b _ldns_rr_list_rr_count
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/freebsd/contrib/ldns/extr_zone.c_ldns_zone_rr_count.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI0_0:
.quad 0x3fa47ae147ae147b ## double 0.040000000000000001
LCPI0_2:
.quad 0x3fbc28f5c28f5c29 ## double 0.11
.section __TEXT,__literal16,16byte_literals
.p2align 4
LCPI0_1:
.quad 0x3fa47ae147ae147b ## double 0.040000000000000001
.quad 0x3ff8000000000000 ## double 1.5
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
subq $72, %rsp
.cfi_offset %rbx, -24
movl $0, -24(%rbp)
movl $0, -20(%rbp)
movl $0, -16(%rbp)
movl $0, -12(%rbp)
leaq L_.str(%rip), %rdi
xorl %eax, %eax
callq _printf
movl $10, %edi
callq _putchar
leaq L_.str.2(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.3(%rip), %rdi
leaq -12(%rbp), %rsi
xorl %eax, %eax
callq _scanf
leaq L_.str.4(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.5(%rip), %rbx
leaq -24(%rbp), %rsi
movq %rbx, %rdi
xorl %eax, %eax
callq _scanf
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movaps %xmm0, -48(%rbp) ## 16-byte Spill
movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movaps %xmm0, -64(%rbp) ## 16-byte Spill
leaq L_.str.6(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq -20(%rbp), %rsi
movq %rbx, %rdi
xorl %eax, %eax
callq _scanf
movdqa -64(%rbp), %xmm0 ## 16-byte Reload
pinsrd $1, -20(%rbp), %xmm0
cvtdq2pd %xmm0, %xmm0
movss -12(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
mulsd LCPI0_0(%rip), %xmm1
movapd -48(%rbp), %xmm2 ## 16-byte Reload
unpcklpd %xmm1, %xmm2 ## xmm2 = xmm2[0],xmm1[0]
mulpd LCPI0_1(%rip), %xmm2
mulpd %xmm0, %xmm2
cvtpd2ps %xmm2, %xmm0
movapd %xmm0, -48(%rbp) ## 16-byte Spill
leaq L_.str.7(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq -16(%rbp), %rsi
movq %rbx, %rdi
xorl %eax, %eax
callq _scanf
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl -16(%rbp), %xmm1
movsd LCPI0_0(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm0, %xmm2
mulsd %xmm2, %xmm1
cvtsd2ss %xmm1, %xmm3
movss %xmm3, -28(%rbp) ## 4-byte Spill
mulsd LCPI0_2(%rip), %xmm0
xorps %xmm1, %xmm1
cvtsd2ss %xmm0, %xmm1
movss %xmm1, -32(%rbp) ## 4-byte Spill
movaps -48(%rbp), %xmm0 ## 16-byte Reload
movshdup %xmm0, %xmm4 ## xmm4 = xmm0[1,1,3,3]
movaps %xmm4, -80(%rbp) ## 16-byte Spill
addss %xmm4, %xmm0
subss %xmm3, %xmm0
subss %xmm1, %xmm0
movaps %xmm0, -64(%rbp) ## 16-byte Spill
leaq L_str(%rip), %rdi
callq _puts
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.9(%rip), %rdi
movb $1, %al
callq _printf
movl -24(%rbp), %esi
movaps -48(%rbp), %xmm0 ## 16-byte Reload
cvtss2sd %xmm0, %xmm0
leaq L_.str.10(%rip), %rdi
movb $1, %al
callq _printf
movl -20(%rbp), %esi
movaps -80(%rbp), %xmm0 ## 16-byte Reload
cvtss2sd %xmm0, %xmm0
leaq L_.str.11(%rip), %rdi
movb $1, %al
callq _printf
movl -16(%rbp), %esi
movss -28(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.12(%rip), %rdi
movb $1, %al
callq _printf
movss -32(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.13(%rip), %rdi
movb $1, %al
callq _printf
movaps -64(%rbp), %xmm0 ## 16-byte Reload
cvtss2sd %xmm0, %xmm0
leaq L_.str.14(%rip), %rdi
movb $1, %al
callq _printf
xorl %eax, %eax
addq $72, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "***** Folha de Pagamento *****"
L_.str.2: ## @.str.2
.asciz "Por favor, informe o valor atual do salario minimo:"
L_.str.3: ## @.str.3
.asciz "%f"
L_.str.4: ## @.str.4
.asciz "Informe a quantidade de horas trabalhadas:"
L_.str.5: ## @.str.5
.asciz "%d"
L_.str.6: ## @.str.6
.asciz "Informe a quantidade de horas extras:"
L_.str.7: ## @.str.7
.asciz "Informe a quantidade de horas ausentes:"
L_.str.9: ## @.str.9
.asciz "Salario Minimo.: R$%.2f \n"
L_.str.10: ## @.str.10
.asciz "Quantidade de Horas Trabalhadas | Valor: %5d | R$%5.2f \n"
L_.str.11: ## @.str.11
.asciz "Quantidade de Horas Extras | Valor: %5d | R$%5.2f \n"
L_.str.12: ## @.str.12
.asciz "Quantidade de Horas Ausentes | Valor: %5d | R$%5.2f \n"
L_.str.13: ## @.str.13
.asciz "11% INSS: R$%5.2f \n"
L_.str.14: ## @.str.14
.asciz "Salario Final: R$%5.2f"
L_str: ## @str
.asciz "========== Salario final do(a) trabalhador(a) =============== "
.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 d13, d12, [sp, #32] ; 16-byte Folded Spill
stp d11, d10, [sp, #48] ; 16-byte Folded Spill
stp d9, d8, [sp, #64] ; 16-byte Folded Spill
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
.cfi_offset b8, -40
.cfi_offset b9, -48
.cfi_offset b10, -56
.cfi_offset b11, -64
.cfi_offset b12, -72
.cfi_offset b13, -80
stp xzr, xzr, [sp, #16]
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w0, #10
bl _putchar
Lloh2:
adrp x0, l_.str.2@PAGE
Lloh3:
add x0, x0, l_.str.2@PAGEOFF
bl _printf
add x8, sp, #16
str x8, [sp]
Lloh4:
adrp x0, l_.str.3@PAGE
Lloh5:
add x0, x0, l_.str.3@PAGEOFF
bl _scanf
Lloh6:
adrp x0, l_.str.4@PAGE
Lloh7:
add x0, x0, l_.str.4@PAGEOFF
bl _printf
add x8, sp, #28
str x8, [sp]
Lloh8:
adrp x19, l_.str.5@PAGE
Lloh9:
add x19, x19, l_.str.5@PAGEOFF
mov x0, x19
bl _scanf
ldr s0, [sp, #16]
fcvt d0, s0
mov x8, #5243
movk x8, #18350, lsl #16
movk x8, #31457, lsl #32
movk x8, #16292, lsl #48
fmov d9, x8
fmul d0, d0, d9
ldr s1, [sp, #28]
sshll.2d v1, v1, #0
scvtf d1, d1
fmul d0, d0, d1
fcvt s8, d0
Lloh10:
adrp x0, l_.str.6@PAGE
Lloh11:
add x0, x0, l_.str.6@PAGEOFF
bl _printf
add x8, sp, #24
str x8, [sp]
mov x0, x19
bl _scanf
ldr s0, [sp, #24]
sshll.2d v0, v0, #0
scvtf d0, d0
ldr s1, [sp, #16]
fcvt d1, s1
fmul d1, d1, d9
fmov d2, #1.50000000
fmul d1, d1, d2
fmul d0, d1, d0
fcvt s10, d0
Lloh12:
adrp x0, l_.str.7@PAGE
Lloh13:
add x0, x0, l_.str.7@PAGEOFF
bl _printf
add x8, sp, #20
str x8, [sp]
mov x0, x19
bl _scanf
ldp s0, s2, [sp, #16]
fcvt d0, s0
fmul d1, d0, d9
sshll.2d v2, v2, #0
scvtf d2, d2
fmul d1, d1, d2
fcvt s9, d1
mov x8, #23593
movk x8, #49807, lsl #16
movk x8, #10485, lsl #32
movk x8, #16316, lsl #48
fmov d1, x8
fmul d0, d0, d1
fcvt s11, d0
fadd s0, s8, s10
fsub s0, s0, s9
fsub s12, s0, s11
Lloh14:
adrp x0, l_str@PAGE
Lloh15:
add x0, x0, l_str@PAGEOFF
bl _puts
ldr s0, [sp, #16]
fcvt d0, s0
str d0, [sp]
Lloh16:
adrp x0, l_.str.9@PAGE
Lloh17:
add x0, x0, l_.str.9@PAGEOFF
bl _printf
fcvt d0, s8
ldr w8, [sp, #28]
str d0, [sp, #8]
str x8, [sp]
Lloh18:
adrp x0, l_.str.10@PAGE
Lloh19:
add x0, x0, l_.str.10@PAGEOFF
bl _printf
fcvt d0, s10
ldr w8, [sp, #24]
str d0, [sp, #8]
str x8, [sp]
Lloh20:
adrp x0, l_.str.11@PAGE
Lloh21:
add x0, x0, l_.str.11@PAGEOFF
bl _printf
fcvt d0, s9
ldr w8, [sp, #20]
str d0, [sp, #8]
str x8, [sp]
Lloh22:
adrp x0, l_.str.12@PAGE
Lloh23:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
fcvt d0, s11
str d0, [sp]
Lloh24:
adrp x0, l_.str.13@PAGE
Lloh25:
add x0, x0, l_.str.13@PAGEOFF
bl _printf
fcvt d0, s12
str d0, [sp]
Lloh26:
adrp x0, l_.str.14@PAGE
Lloh27:
add x0, x0, l_.str.14@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
ldp x20, x19, [sp, #80] ; 16-byte Folded Reload
ldp d9, d8, [sp, #64] ; 16-byte Folded Reload
ldp d11, d10, [sp, #48] ; 16-byte Folded Reload
ldp d13, d12, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #112
ret
.loh AdrpAdd Lloh26, Lloh27
.loh AdrpAdd Lloh24, Lloh25
.loh AdrpAdd Lloh22, Lloh23
.loh AdrpAdd Lloh20, Lloh21
.loh AdrpAdd Lloh18, Lloh19
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpAdd Lloh14, Lloh15
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "***** Folha de Pagamento *****"
l_.str.2: ; @.str.2
.asciz "Por favor, informe o valor atual do salario minimo:"
l_.str.3: ; @.str.3
.asciz "%f"
l_.str.4: ; @.str.4
.asciz "Informe a quantidade de horas trabalhadas:"
l_.str.5: ; @.str.5
.asciz "%d"
l_.str.6: ; @.str.6
.asciz "Informe a quantidade de horas extras:"
l_.str.7: ; @.str.7
.asciz "Informe a quantidade de horas ausentes:"
l_.str.9: ; @.str.9
.asciz "Salario Minimo.: R$%.2f \n"
l_.str.10: ; @.str.10
.asciz "Quantidade de Horas Trabalhadas | Valor: %5d | R$%5.2f \n"
l_.str.11: ; @.str.11
.asciz "Quantidade de Horas Extras | Valor: %5d | R$%5.2f \n"
l_.str.12: ; @.str.12
.asciz "Quantidade de Horas Ausentes | Valor: %5d | R$%5.2f \n"
l_.str.13: ; @.str.13
.asciz "11% INSS: R$%5.2f \n"
l_.str.14: ; @.str.14
.asciz "Salario Final: R$%5.2f"
l_str: ; @str
.asciz "========== Salario final do(a) trabalhador(a) =============== "
.subsections_via_symbols
| the_stack_data/3362.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_rsa_round_trip
_test_rsa_round_trip: ## @test_rsa_round_trip
.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 $1064, %rsp ## imm = 0x428
.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 _szContainer@GOTPCREL(%rip), %r15
movl (%r15), %esi
movq _PROV_RSA_FULL@GOTPCREL(%rip), %rbx
movl (%rbx), %ecx
movq _CRYPT_DELETEKEYSET@GOTPCREL(%rip), %rax
movl (%rax), %r8d
leaq -1080(%rbp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq _CryptAcquireContextA
movl (%r15), %esi
movl (%rbx), %ecx
movq _CRYPT_NEWKEYSET@GOTPCREL(%rip), %rax
movl (%rax), %r8d
movq %r14, %rdi
xorl %edx, %edx
callq _CryptAcquireContextA
movl %eax, %ebx
xorl %eax, %eax
callq _GetLastError
leaq L_.str(%rip), %rsi
movl %ebx, %edi
movq %rax, %rdx
xorl %eax, %eax
callq _ok
movl -1080(%rbp), %edi
movq _CALG_RSA_KEYX@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _CRYPT_EXPORTABLE@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -1092(%rbp), %rcx
callq _CryptGenKey
movl %eax, %ebx
xorl %eax, %eax
callq _GetLastError
leaq L_.str.1(%rip), %rsi
movl %ebx, %edi
movq %rax, %rdx
xorl %eax, %eax
callq _ok
movl -1080(%rbp), %edi
movq _AT_KEYEXCHANGE@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq -1076(%rbp), %rdx
callq _CryptGetUserKey
movl %eax, %ebx
xorl %eax, %eax
callq _GetLastError
leaq L_.str.2(%rip), %rsi
movl %ebx, %edi
movq %rax, %rdx
xorl %eax, %eax
callq _ok
leaq _test_rsa_round_trip.test_string(%rip), %rbx
movq %rbx, %rdi
callq _strlen
## kill: def $eax killed $eax def $rax
leal 1(%rax), %edx
leaq -1072(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq _memcpy
movq %rbx, %rdi
callq _strlen
incl %eax
movl %eax, -1084(%rbp)
movl -1076(%rbp), %edi
movq _TRUE@GOTPCREL(%rip), %rax
movl (%rax), %edx
movl $1024, (%rsp) ## imm = 0x400
leaq -1084(%rbp), %r9
xorl %esi, %esi
xorl %ecx, %ecx
movq %r14, %r8
callq _CryptEncrypt
movl $1, %ebx
testl %eax, %eax
jne LBB0_3
## %bb.1:
xorl %eax, %eax
callq _GetLastError
movq _NTE_BAD_KEY@GOTPCREL(%rip), %rcx
xorl %edi, %edi
cmpq (%rcx), %rax
sete %dil
callq _broken
testq %rax, %rax
jne LBB0_3
## %bb.2:
xorl %eax, %eax
callq _GetLastError
movq _NTE_PERM@GOTPCREL(%rip), %rcx
xorl %edi, %edi
cmpq (%rcx), %rax
sete %dil
callq _broken
xorl %ebx, %ebx
testq %rax, %rax
setne %bl
LBB0_3:
xorl %eax, %eax
callq _GetLastError
leaq L_.str.3(%rip), %rsi
movl %ebx, %edi
movq %rax, %rdx
xorl %eax, %eax
callq _ok
movl -1076(%rbp), %edi
movq _PRIVATEKEYBLOB@GOTPCREL(%rip), %r13
movl (%r13), %edx
leaq -1088(%rbp), %r14
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %r14, %r9
callq _CryptExportKey
movl %eax, %ebx
xorl %eax, %eax
callq _GetLastError
leaq L_.str.4(%rip), %r15
movl %ebx, %edi
movq %r15, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq _ok
xorl %eax, %eax
callq _GetProcessHeap
movl -1088(%rbp), %edx
movl %eax, %edi
xorl %esi, %esi
callq _HeapAlloc
movq %rax, %r12
movl -1076(%rbp), %edi
movl (%r13), %edx
xorl %esi, %esi
xorl %ecx, %ecx
movq %rax, %r8
movq %r14, %r9
callq _CryptExportKey
movl %eax, %ebx
xorl %eax, %eax
callq _GetLastError
movl %ebx, %edi
movq %r15, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq _ok
movl -1076(%rbp), %edi
callq _CryptDestroyKey
movl -1092(%rbp), %edi
callq _CryptDestroyKey
movl -1080(%rbp), %edi
movl -1088(%rbp), %edx
leaq -1076(%rbp), %r9
movq %r12, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq _CryptImportKey
movl %eax, %ebx
xorl %eax, %eax
callq _GetLastError
leaq L_.str.5(%rip), %rsi
movl %ebx, %edi
movq %rax, %rdx
xorl %eax, %eax
callq _ok
xorl %eax, %eax
callq _GetProcessHeap
movl %eax, %edi
xorl %esi, %esi
movq %r12, %rdx
callq _HeapFree
movl -1076(%rbp), %edi
movq _TRUE@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -1072(%rbp), %r8
leaq -1084(%rbp), %r9
xorl %esi, %esi
xorl %ecx, %ecx
callq _CryptDecrypt
movl %eax, %ebx
xorl %eax, %eax
callq _GetLastError
testl %ebx, %ebx
je LBB0_4
## %bb.7:
leaq L_.str.6(%rip), %rsi
movl $1, %edi
movq %rax, %rdx
xorl %eax, %eax
callq _ok
movl -1084(%rbp), %edx
xorl %edi, %edi
cmpl $35, %edx
sete %dil
leaq L_.str.7(%rip), %rsi
xorl %eax, %eax
callq _ok
leaq _test_rsa_round_trip.test_string(%rip), %rsi
leaq -1072(%rbp), %rdi
movl $35, %edx
callq _memcmp
xorl %edi, %edi
testl %eax, %eax
sete %dil
leaq L_.str.8(%rip), %rsi
xorl %eax, %eax
callq _ok
jmp LBB0_8
LBB0_4:
movq _NTE_BAD_KEY@GOTPCREL(%rip), %rcx
xorl %edi, %edi
cmpq (%rcx), %rax
sete %dil
callq _broken
movl $1, %ebx
testq %rax, %rax
jne LBB0_6
## %bb.5:
xorl %eax, %eax
callq _GetLastError
movq _NTE_PERM@GOTPCREL(%rip), %rcx
xorl %edi, %edi
cmpq (%rcx), %rax
sete %dil
callq _broken
xorl %ebx, %ebx
testq %rax, %rax
setne %bl
LBB0_6:
xorl %eax, %eax
callq _GetLastError
leaq L_.str.6(%rip), %rsi
movl %ebx, %edi
movq %rax, %rdx
xorl %eax, %eax
callq _ok
LBB0_8:
movl -1076(%rbp), %edi
callq _CryptDestroyKey
movl -1080(%rbp), %edi
xorl %esi, %esi
callq _CryptReleaseContext
movq _szContainer@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _PROV_RSA_FULL@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq _CRYPT_DELETEKEYSET@GOTPCREL(%rip), %rax
movl (%rax), %r8d
leaq -1080(%rbp), %rdi
xorl %edx, %edx
callq _CryptAcquireContextA
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB0_10
## %bb.9:
addq $1064, %rsp ## imm = 0x428
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_10:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 4 ## @test_rsa_round_trip.test_string
_test_rsa_round_trip.test_string:
.asciz "Well this is a fine how-do-you-do."
.comm _szContainer,4,2 ## @szContainer
.comm _PROV_RSA_FULL,4,2 ## @PROV_RSA_FULL
.comm _CRYPT_DELETEKEYSET,4,2 ## @CRYPT_DELETEKEYSET
.comm _CRYPT_NEWKEYSET,4,2 ## @CRYPT_NEWKEYSET
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "CryptAcquireContextA failed: %08x\n"
.comm _CALG_RSA_KEYX,4,2 ## @CALG_RSA_KEYX
.comm _CRYPT_EXPORTABLE,4,2 ## @CRYPT_EXPORTABLE
L_.str.1: ## @.str.1
.asciz "CryptGenKey with CALG_RSA_KEYX failed with error %08x\n"
.comm _AT_KEYEXCHANGE,4,2 ## @AT_KEYEXCHANGE
L_.str.2: ## @.str.2
.asciz "CryptGetUserKey failed: %08x\n"
.comm _TRUE,4,2 ## @TRUE
.comm _NTE_BAD_KEY,8,3 ## @NTE_BAD_KEY
.comm _NTE_PERM,8,3 ## @NTE_PERM
L_.str.3: ## @.str.3
.asciz "CryptEncrypt failed: %08x\n"
.comm _PRIVATEKEYBLOB,4,2 ## @PRIVATEKEYBLOB
L_.str.4: ## @.str.4
.asciz "CryptExportKey failed: %08x\n"
L_.str.5: ## @.str.5
.asciz "CryptImportKey failed: %08x\n"
L_.str.6: ## @.str.6
.asciz "CryptDecrypt failed: %08x\n"
L_.str.7: ## @.str.7
.asciz "unexpected size %d\n"
L_.str.8: ## @.str.8
.asciz "unexpected value\n"
.no_dead_strip _test_rsa_round_trip
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_rsa_round_trip
_test_rsa_round_trip: ; @test_rsa_round_trip
.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, #1072
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-72]
Lloh3:
adrp x22, _szContainer@GOTPAGE
Lloh4:
ldr x22, [x22, _szContainer@GOTPAGEOFF]
ldr w1, [x22]
Lloh5:
adrp x23, _PROV_RSA_FULL@GOTPAGE
Lloh6:
ldr x23, [x23, _PROV_RSA_FULL@GOTPAGEOFF]
ldr w3, [x23]
Lloh7:
adrp x24, _CRYPT_DELETEKEYSET@GOTPAGE
Lloh8:
ldr x24, [x24, _CRYPT_DELETEKEYSET@GOTPAGEOFF]
ldr w4, [x24]
add x0, sp, #36
mov x2, #0
bl _CryptAcquireContextA
ldr w1, [x22]
ldr w3, [x23]
Lloh9:
adrp x8, _CRYPT_NEWKEYSET@GOTPAGE
Lloh10:
ldr x8, [x8, _CRYPT_NEWKEYSET@GOTPAGEOFF]
Lloh11:
ldr w4, [x8]
add x0, sp, #36
mov x2, #0
bl _CryptAcquireContextA
mov x19, x0
bl _GetLastError
str x0, [sp]
Lloh12:
adrp x1, l_.str@PAGE
Lloh13:
add x1, x1, l_.str@PAGEOFF
mov x0, x19
bl _ok
ldr w0, [sp, #36]
Lloh14:
adrp x8, _CALG_RSA_KEYX@GOTPAGE
Lloh15:
ldr x8, [x8, _CALG_RSA_KEYX@GOTPAGEOFF]
Lloh16:
ldr w1, [x8]
Lloh17:
adrp x8, _CRYPT_EXPORTABLE@GOTPAGE
Lloh18:
ldr x8, [x8, _CRYPT_EXPORTABLE@GOTPAGEOFF]
Lloh19:
ldr w2, [x8]
add x3, sp, #32
bl _CryptGenKey
mov x19, x0
bl _GetLastError
str x0, [sp]
Lloh20:
adrp x1, l_.str.1@PAGE
Lloh21:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x19
bl _ok
ldr w0, [sp, #36]
Lloh22:
adrp x8, _AT_KEYEXCHANGE@GOTPAGE
Lloh23:
ldr x8, [x8, _AT_KEYEXCHANGE@GOTPAGEOFF]
Lloh24:
ldr w1, [x8]
add x2, sp, #28
bl _CryptGetUserKey
mov x19, x0
bl _GetLastError
str x0, [sp]
Lloh25:
adrp x1, l_.str.2@PAGE
Lloh26:
add x1, x1, l_.str.2@PAGEOFF
mov x0, x19
bl _ok
Lloh27:
adrp x19, _test_rsa_round_trip.test_string@PAGE
Lloh28:
add x19, x19, _test_rsa_round_trip.test_string@PAGEOFF
mov x0, x19
bl _strlen
add w2, w0, #1
add x0, sp, #40
mov x1, x19
bl _memcpy
mov x0, x19
bl _strlen
add w8, w0, #1
str w8, [sp, #24]
ldr w0, [sp, #28]
Lloh29:
adrp x25, _TRUE@GOTPAGE
Lloh30:
ldr x25, [x25, _TRUE@GOTPAGEOFF]
ldr w2, [x25]
add x4, sp, #40
add x5, sp, #24
mov w1, #0
mov w3, #0
mov w6, #1024
bl _CryptEncrypt
cbnz w0, LBB0_2
; %bb.1:
bl _GetLastError
Lloh31:
adrp x8, _NTE_BAD_KEY@GOTPAGE
Lloh32:
ldr x8, [x8, _NTE_BAD_KEY@GOTPAGEOFF]
Lloh33:
ldr x8, [x8]
cmp x0, x8
cset w0, eq
bl _broken
cbz x0, LBB0_7
LBB0_2:
mov w19, #1
LBB0_3:
bl _GetLastError
str x0, [sp]
Lloh34:
adrp x1, l_.str.3@PAGE
Lloh35:
add x1, x1, l_.str.3@PAGEOFF
mov x0, x19
bl _ok
ldr w0, [sp, #28]
Lloh36:
adrp x21, _PRIVATEKEYBLOB@GOTPAGE
Lloh37:
ldr x21, [x21, _PRIVATEKEYBLOB@GOTPAGEOFF]
ldr w2, [x21]
add x5, sp, #20
mov w1, #0
mov w3, #0
mov x4, #0
bl _CryptExportKey
mov x19, x0
bl _GetLastError
str x0, [sp]
Lloh38:
adrp x20, l_.str.4@PAGE
Lloh39:
add x20, x20, l_.str.4@PAGEOFF
mov x0, x19
mov x1, x20
bl _ok
bl _GetProcessHeap
ldr w2, [sp, #20]
mov w1, #0
bl _HeapAlloc
mov x19, x0
ldr w0, [sp, #28]
ldr w2, [x21]
add x5, sp, #20
mov w1, #0
mov w3, #0
mov x4, x19
bl _CryptExportKey
mov x21, x0
bl _GetLastError
str x0, [sp]
mov x0, x21
mov x1, x20
bl _ok
ldr w0, [sp, #28]
bl _CryptDestroyKey
ldr w0, [sp, #32]
bl _CryptDestroyKey
ldr w0, [sp, #36]
ldr w2, [sp, #20]
add x5, sp, #28
mov x1, x19
mov w3, #0
mov w4, #0
bl _CryptImportKey
mov x20, x0
bl _GetLastError
str x0, [sp]
Lloh40:
adrp x1, l_.str.5@PAGE
Lloh41:
add x1, x1, l_.str.5@PAGEOFF
mov x0, x20
bl _ok
bl _GetProcessHeap
mov w1, #0
mov x2, x19
bl _HeapFree
ldr w0, [sp, #28]
ldr w2, [x25]
add x4, sp, #40
add x5, sp, #24
mov w1, #0
mov w3, #0
bl _CryptDecrypt
mov x19, x0
bl _GetLastError
cbz w19, LBB0_5
; %bb.4:
str x0, [sp]
Lloh42:
adrp x1, l_.str.6@PAGE
Lloh43:
add x1, x1, l_.str.6@PAGEOFF
mov w0, #1
bl _ok
ldr w8, [sp, #24]
cmp w8, #35
cset w0, eq
str x8, [sp]
Lloh44:
adrp x1, l_.str.7@PAGE
Lloh45:
add x1, x1, l_.str.7@PAGEOFF
bl _ok
Lloh46:
adrp x1, _test_rsa_round_trip.test_string@PAGE
Lloh47:
add x1, x1, _test_rsa_round_trip.test_string@PAGEOFF
add x0, sp, #40
mov w2, #35
bl _memcmp
cmp w0, #0
cset w0, eq
Lloh48:
adrp x1, l_.str.8@PAGE
Lloh49:
add x1, x1, l_.str.8@PAGEOFF
b LBB0_10
LBB0_5:
Lloh50:
adrp x8, _NTE_BAD_KEY@GOTPAGE
Lloh51:
ldr x8, [x8, _NTE_BAD_KEY@GOTPAGEOFF]
Lloh52:
ldr x8, [x8]
cmp x0, x8
cset w0, eq
bl _broken
cbz x0, LBB0_8
; %bb.6:
mov w19, #1
b LBB0_9
LBB0_7:
bl _GetLastError
Lloh53:
adrp x8, _NTE_PERM@GOTPAGE
Lloh54:
ldr x8, [x8, _NTE_PERM@GOTPAGEOFF]
Lloh55:
ldr x8, [x8]
cmp x0, x8
cset w0, eq
bl _broken
cmp x0, #0
cset w19, ne
b LBB0_3
LBB0_8:
bl _GetLastError
Lloh56:
adrp x8, _NTE_PERM@GOTPAGE
Lloh57:
ldr x8, [x8, _NTE_PERM@GOTPAGEOFF]
Lloh58:
ldr x8, [x8]
cmp x0, x8
cset w0, eq
bl _broken
cmp x0, #0
cset w19, ne
LBB0_9:
bl _GetLastError
str x0, [sp]
Lloh59:
adrp x1, l_.str.6@PAGE
Lloh60:
add x1, x1, l_.str.6@PAGEOFF
mov x0, x19
LBB0_10:
bl _ok
ldr w0, [sp, #28]
bl _CryptDestroyKey
ldr w0, [sp, #36]
mov w1, #0
bl _CryptReleaseContext
ldr w1, [x22]
ldr w3, [x23]
ldr w4, [x24]
add x0, sp, #36
mov x2, #0
bl _CryptAcquireContextA
ldur x8, [x29, #-72]
Lloh61:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh62:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh63:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_12
; %bb.11:
add sp, sp, #1072
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_12:
bl ___stack_chk_fail
.loh AdrpLdrGot Lloh29, Lloh30
.loh AdrpAdd Lloh27, Lloh28
.loh AdrpAdd Lloh25, Lloh26
.loh AdrpLdrGotLdr Lloh22, Lloh23, Lloh24
.loh AdrpAdd Lloh20, Lloh21
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.loh AdrpLdrGotLdr Lloh14, Lloh15, Lloh16
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGot Lloh7, Lloh8
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh31, Lloh32, Lloh33
.loh AdrpAdd Lloh40, Lloh41
.loh AdrpAdd Lloh38, Lloh39
.loh AdrpLdrGot Lloh36, Lloh37
.loh AdrpAdd Lloh34, Lloh35
.loh AdrpAdd Lloh48, Lloh49
.loh AdrpAdd Lloh46, Lloh47
.loh AdrpAdd Lloh44, Lloh45
.loh AdrpAdd Lloh42, Lloh43
.loh AdrpLdrGotLdr Lloh50, Lloh51, Lloh52
.loh AdrpLdrGotLdr Lloh53, Lloh54, Lloh55
.loh AdrpLdrGotLdr Lloh56, Lloh57, Lloh58
.loh AdrpAdd Lloh59, Lloh60
.loh AdrpLdrGotLdr Lloh61, Lloh62, Lloh63
.cfi_endproc
; -- End function
.section __TEXT,__const
_test_rsa_round_trip.test_string: ; @test_rsa_round_trip.test_string
.asciz "Well this is a fine how-do-you-do."
.comm _szContainer,4,2 ; @szContainer
.comm _PROV_RSA_FULL,4,2 ; @PROV_RSA_FULL
.comm _CRYPT_DELETEKEYSET,4,2 ; @CRYPT_DELETEKEYSET
.comm _CRYPT_NEWKEYSET,4,2 ; @CRYPT_NEWKEYSET
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "CryptAcquireContextA failed: %08x\n"
.comm _CALG_RSA_KEYX,4,2 ; @CALG_RSA_KEYX
.comm _CRYPT_EXPORTABLE,4,2 ; @CRYPT_EXPORTABLE
l_.str.1: ; @.str.1
.asciz "CryptGenKey with CALG_RSA_KEYX failed with error %08x\n"
.comm _AT_KEYEXCHANGE,4,2 ; @AT_KEYEXCHANGE
l_.str.2: ; @.str.2
.asciz "CryptGetUserKey failed: %08x\n"
.comm _TRUE,4,2 ; @TRUE
.comm _NTE_BAD_KEY,8,3 ; @NTE_BAD_KEY
.comm _NTE_PERM,8,3 ; @NTE_PERM
l_.str.3: ; @.str.3
.asciz "CryptEncrypt failed: %08x\n"
.comm _PRIVATEKEYBLOB,4,2 ; @PRIVATEKEYBLOB
l_.str.4: ; @.str.4
.asciz "CryptExportKey failed: %08x\n"
l_.str.5: ; @.str.5
.asciz "CryptImportKey failed: %08x\n"
l_.str.6: ; @.str.6
.asciz "CryptDecrypt failed: %08x\n"
l_.str.7: ; @.str.7
.asciz "unexpected size %d\n"
l_.str.8: ; @.str.8
.asciz "unexpected value\n"
.no_dead_strip _test_rsa_round_trip
.subsections_via_symbols
| AnghaBench/reactos/modules/rostests/winetests/rsaenh/extr_rsaenh.c_test_rsa_round_trip.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 pmap_unmapbios
LCPI0_0:
.space 16
.section __TEXT,__text,regular,pure_instructions
.globl _pmap_unmapbios
.p2align 4, 0x90
_pmap_unmapbios: ## @pmap_unmapbios
.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 %rsi, %r15
movq %rdi, %r13
addq %rsi, %rdi
movq _L2_SIZE@GOTPCREL(%rip), %r14
movl (%r14), %esi
callq _roundup2
movq %rax, %rbx
movl (%r14), %esi
movq %r13, %rdi
callq _rounddown2
subq %rax, %rbx
movq _L2_SHIFT@GOTPCREL(%rip), %rax
movb (%rax), %cl
sarq %cl, %rbx
xorl %edi, %edi
movq %rbx, -56(%rbp) ## 8-byte Spill
testl %ebx, %ebx
setg %dil
movq %r15, -72(%rbp) ## 8-byte Spill
movq %r15, %rsi
callq _KASSERT
movq _PMAP_PREINIT_MAPPING_COUNT@GOTPCREL(%rip), %rax
movl (%rax), %eax
testl %eax, %eax
jle LBB0_8
## %bb.1:
movq -56(%rbp), %rcx ## 8-byte Reload
decl %ecx
movq %rcx, -56(%rbp) ## 8-byte Spill
xorl %r14d, %r14d
movq _pmap_preinit_mapping@GOTPCREL(%rip), %rsi
xorl %r15d, %r15d
xorl %ecx, %ecx
xorl %r12d, %r12d
jmp LBB0_2
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
incq %r15
movslq %eax, %rdx
addq $24, %r14
cmpq %rdx, %r15
jge LBB0_6
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq (%rsi), %rbx
cmpq %r13, (%rbx,%r14)
jne LBB0_5
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
xorl %edi, %edi
movq -72(%rbp), %rax ## 8-byte Reload
cmpq %rax, 8(%rbx,%r14)
sete %dil
leaq L_.str.1(%rip), %rsi
callq _KASSERT
xorps %xmm0, %xmm0
movups %xmm0, (%rbx,%r14)
movq $0, 16(%rbx,%r14)
movq _L2_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl %esi, %eax
imull %r12d, %eax
movl %r12d, -60(%rbp) ## 4-byte Spill
movslq %eax, %r12
movq %r13, %rdi
callq _rounddown2
addq %rax, %r12
movq _kernel_pmap@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %r12, %rsi
leaq -44(%rbp), %rdx
callq _pmap_pde
movq %r13, %rbx
movq %rax, %r13
xorl %edi, %edi
testq %rax, %rax
setne %dil
movq %r12, %rsi
callq _KASSERT
movq %r13, %rdi
movq %rbx, %r13
movq %r12, %rsi
movl -60(%rbp), %r12d ## 4-byte Reload
callq _pmap_l1_to_l2
movq %rax, %rdi
callq _pmap_clear
cmpl -56(%rbp), %r12d ## 4-byte Folded Reload
je LBB0_7
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
incl %r12d
movq _PMAP_PREINIT_MAPPING_COUNT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl $1, %ecx
movq _pmap_preinit_mapping@GOTPCREL(%rip), %rsi
jmp LBB0_5
LBB0_6:
testl %ecx, %ecx
je LBB0_8
LBB0_7:
movq _kernel_pmap@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _pmap_invalidate_all
jmp LBB0_13
LBB0_8:
movq _vm_initialized@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_13
## %bb.9:
movq _PAGE_MASK@GOTPCREL(%rip), %rax
movq (%rax), %rdi
andq %r13, %rdi
addq -72(%rbp), %rdi ## 8-byte Folded Reload
callq _round_page
movq %rax, %r14
movq %r13, %rdi
callq _trunc_page
movq %rax, %r15
movq _kernel_pmap@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq -44(%rbp), %rdx
movq %r15, %rsi
callq _pmap_pde
xorl %edi, %edi
testq %rax, %rax
setne %dil
movq %r15, %rsi
callq _KASSERT
movslq -44(%rbp), %rsi
xorl %edi, %edi
cmpq $2, %rsi
sete %dil
callq _KASSERT
testq %r14, %r14
jle LBB0_12
## %bb.10:
xorl %ebx, %ebx
movq _PAGE_SIZE@GOTPCREL(%rip), %r12
.p2align 4, 0x90
LBB0_11: ## =>This Inner Loop Header: Depth=1
leaq (%rbx,%r15), %rdi
callq _pmap_kremove
addq (%r12), %rbx
cmpq %r14, %rbx
jl LBB0_11
LBB0_12:
movq %r15, %rdi
movq %r14, %rsi
callq _kva_free
LBB0_13:
addq $40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _L2_SIZE,4,2 ## @L2_SIZE
.comm _L2_SHIFT,8,3 ## @L2_SHIFT
.comm _PMAP_PREINIT_MAPPING_COUNT,4,2 ## @PMAP_PREINIT_MAPPING_COUNT
.comm _pmap_preinit_mapping,8,3 ## @pmap_preinit_mapping
.section __TEXT,__cstring,cstring_literals
L_.str.1: ## @.str.1
.asciz "pmap_unmapbios: size mismatch"
.comm _kernel_pmap,4,2 ## @kernel_pmap
.comm _vm_initialized,8,3 ## @vm_initialized
.comm _PAGE_MASK,8,3 ## @PAGE_MASK
.comm _PAGE_SIZE,8,3 ## @PAGE_SIZE
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pmap_unmapbios ; -- Begin function pmap_unmapbios
.p2align 2
_pmap_unmapbios: ; @pmap_unmapbios
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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 x20, x1
mov x19, x0
add x0, x1, x0
Lloh0:
adrp x22, _L2_SIZE@GOTPAGE
Lloh1:
ldr x22, [x22, _L2_SIZE@GOTPAGEOFF]
ldr w1, [x22]
bl _roundup2
mov x21, x0
ldr w1, [x22]
mov x0, x19
bl _rounddown2
sub x8, x21, x0
Lloh2:
adrp x9, _L2_SHIFT@GOTPAGE
Lloh3:
ldr x9, [x9, _L2_SHIFT@GOTPAGEOFF]
Lloh4:
ldr x9, [x9]
asr x21, x8, x9
cmp w21, #0
cset w0, gt
mov x1, x20
bl _KASSERT
Lloh5:
adrp x25, _PMAP_PREINIT_MAPPING_COUNT@GOTPAGE
Lloh6:
ldr x25, [x25, _PMAP_PREINIT_MAPPING_COUNT@GOTPAGEOFF]
ldr w8, [x25]
cmp w8, #1
b.lt LBB0_8
; %bb.1:
mov x26, #0
mov x27, #0
mov w9, #0
mov w28, #0
sub w24, w21, #1
Lloh7:
adrp x21, _pmap_preinit_mapping@GOTPAGE
Lloh8:
ldr x21, [x21, _pmap_preinit_mapping@GOTPAGEOFF]
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
add x27, x27, #1
add x26, x26, #24
cmp x27, w8, sxtw
b.ge LBB0_6
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x10, [x21]
ldr x11, [x10, x26]
cmp x11, x19
b.ne LBB0_2
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
add x22, x10, x26
ldr x8, [x22, #8]
cmp x8, x20
cset w0, eq
Lloh9:
adrp x1, l_.str.1@PAGE
Lloh10:
add x1, x1, l_.str.1@PAGEOFF
bl _KASSERT
stp xzr, xzr, [x22, #8]
str xzr, [x22]
Lloh11:
adrp x8, _L2_SIZE@GOTPAGE
Lloh12:
ldr x8, [x8, _L2_SIZE@GOTPAGEOFF]
Lloh13:
ldr w1, [x8]
mul w22, w1, w28
mov x0, x19
bl _rounddown2
add x22, x0, w22, sxtw
Lloh14:
adrp x8, _kernel_pmap@GOTPAGE
Lloh15:
ldr x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh16:
ldr w0, [x8]
add x2, sp, #12
mov x1, x22
bl _pmap_pde
mov x23, x0
cmp x0, #0
cset w0, ne
mov x1, x22
bl _KASSERT
mov x0, x23
mov x1, x22
bl _pmap_l1_to_l2
bl _pmap_clear
cmp w28, w24
b.eq LBB0_7
; %bb.5: ; in Loop: Header=BB0_3 Depth=1
add w28, w28, #1
ldr w8, [x25]
mov w9, #1
b LBB0_2
LBB0_6:
cbz w9, LBB0_8
LBB0_7:
Lloh17:
adrp x8, _kernel_pmap@GOTPAGE
Lloh18:
ldr x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh19:
ldr w0, [x8]
bl _pmap_invalidate_all
b LBB0_13
LBB0_8:
Lloh20:
adrp x8, _vm_initialized@GOTPAGE
Lloh21:
ldr x8, [x8, _vm_initialized@GOTPAGEOFF]
Lloh22:
ldr x8, [x8]
cbz x8, LBB0_13
; %bb.9:
Lloh23:
adrp x8, _PAGE_MASK@GOTPAGE
Lloh24:
ldr x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh25:
ldr x8, [x8]
and x8, x8, x19
add x0, x8, x20
bl _round_page
mov x20, x0
mov x0, x19
bl _trunc_page
mov x19, x0
Lloh26:
adrp x8, _kernel_pmap@GOTPAGE
Lloh27:
ldr x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh28:
ldr w0, [x8]
add x2, sp, #12
mov x1, x19
bl _pmap_pde
cmp x0, #0
cset w0, ne
mov x1, x19
bl _KASSERT
ldrsw x1, [sp, #12]
cmp x1, #2
cset w0, eq
bl _KASSERT
cmp x20, #1
b.lt LBB0_12
; %bb.10:
mov x21, #0
Lloh29:
adrp x22, _PAGE_SIZE@GOTPAGE
Lloh30:
ldr x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
LBB0_11: ; =>This Inner Loop Header: Depth=1
add x0, x21, x19
bl _pmap_kremove
ldr x8, [x22]
add x21, x8, x21
cmp x21, x20
b.lt LBB0_11
LBB0_12:
mov x0, x19
mov x1, x20
bl _kva_free
LBB0_13:
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
ldp x20, x19, [sp, #80] ; 16-byte Folded Reload
ldp x22, x21, [sp, #64] ; 16-byte Folded Reload
ldp x24, x23, [sp, #48] ; 16-byte Folded Reload
ldp x26, x25, [sp, #32] ; 16-byte Folded Reload
ldp x28, x27, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #112
ret
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh14, Lloh15, Lloh16
.loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13
.loh AdrpAdd Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22
.loh AdrpLdrGotLdr Lloh26, Lloh27, Lloh28
.loh AdrpLdrGotLdr Lloh23, Lloh24, Lloh25
.loh AdrpLdrGot Lloh29, Lloh30
.cfi_endproc
; -- End function
.comm _L2_SIZE,4,2 ; @L2_SIZE
.comm _L2_SHIFT,8,3 ; @L2_SHIFT
.comm _PMAP_PREINIT_MAPPING_COUNT,4,2 ; @PMAP_PREINIT_MAPPING_COUNT
.comm _pmap_preinit_mapping,8,3 ; @pmap_preinit_mapping
.section __TEXT,__cstring,cstring_literals
l_.str.1: ; @.str.1
.asciz "pmap_unmapbios: size mismatch"
.comm _kernel_pmap,4,2 ; @kernel_pmap
.comm _vm_initialized,8,3 ; @vm_initialized
.comm _PAGE_MASK,8,3 ; @PAGE_MASK
.comm _PAGE_SIZE,8,3 ; @PAGE_SIZE
.subsections_via_symbols
| AnghaBench/freebsd/sys/arm64/arm64/extr_pmap.c_pmap_unmapbios.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function oploop
_oploop: ## @oploop
.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, %r14
movq %rdi, %r15
movq %rdx, %rdi
callq _is_valid_registers
movl $226, (%r14)
movq (%rbx), %rax
movl (%rax), %eax
subl (%r15), %eax
addl $-2, %eax
movl %eax, -4(%r14)
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _oploop
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function oploop
_oploop: ; @oploop
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
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, x2
mov x20, x1
mov x21, x0
mov x0, x2
bl _is_valid_registers
mov w8, #226 ; =0xe2
ldr x9, [x19]
ldr w9, [x9]
ldr w10, [x21]
sub w9, w9, w10
sub w9, w9, #2
stp w9, w8, [x20, #-4]
mov w0, #0 ; =0x0
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 _oploop
.subsections_via_symbols
| assembly_file_101020.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ipoib_path_free ## -- Begin function ipoib_path_free
.p2align 4, 0x90
_ipoib_path_free: ## @ipoib_path_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 %rsi, %rbx
leaq 8(%rsi), %rdi
callq __IF_DRAIN
movq (%rbx), %rdi
testq %rdi, %rdi
je LBB0_2
## %bb.1:
callq _ipoib_put_ah
LBB0_2:
movq %rbx, %rdi
callq _ipoib_cm_get
testq %rax, %rax
je LBB0_4
## %bb.3:
movq %rbx, %rdi
callq _ipoib_cm_get
movq %rax, %rdi
callq _ipoib_cm_destroy_tx
LBB0_4:
movq %rbx, %rdi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _kfree ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ipoib_path_free ; -- Begin function ipoib_path_free
.p2align 2
_ipoib_path_free: ; @ipoib_path_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, x1
add x0, x1, #8
bl __IF_DRAIN
ldr x0, [x19]
cbz x0, LBB0_2
; %bb.1:
bl _ipoib_put_ah
LBB0_2:
mov x0, x19
bl _ipoib_cm_get
cbz x0, LBB0_4
; %bb.3:
mov x0, x19
bl _ipoib_cm_get
bl _ipoib_cm_destroy_tx
LBB0_4:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _kfree
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/extr_ipoib_main.c_ipoib_path_free.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ecdh_simple_compute_key ## -- Begin function ecdh_simple_compute_key
.p2align 4, 0x90
_ecdh_simple_compute_key: ## @ecdh_simple_compute_key
.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 %rcx, %r15
movq %rdx, %r12
movq %rsi, -72(%rbp) ## 8-byte Spill
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %eax, %eax
callq _BN_CTX_new
movq %rax, %r13
testq %rax, %rax
je LBB0_17
## %bb.1:
movq %r13, %rdi
callq _BN_CTX_start
movq %r13, %rdi
callq _BN_CTX_get
movq %rax, -56(%rbp) ## 8-byte Spill
testq %rax, %rax
je LBB0_15
## %bb.2:
movq %r12, -48(%rbp) ## 8-byte Spill
movq %rbx, -64(%rbp) ## 8-byte Spill
movq %r15, %rdi
callq _EC_KEY_get0_private_key
testq %rax, %rax
je LBB0_8
## %bb.3:
movq %rax, %r12
movq %r15, %rdi
callq _EC_KEY_get0_group
movq %rax, %rbx
movq %r15, %rdi
callq _EC_KEY_get_flags
movq _EC_FLAG_COFACTOR_ECDH@GOTPCREL(%rip), %rcx
testl %eax, (%rcx)
je LBB0_9
## %bb.4:
xorl %r14d, %r14d
movq %rbx, %r15
movq %rbx, %rdi
movq -56(%rbp), %rbx ## 8-byte Reload
movq %rbx, %rsi
xorl %edx, %edx
callq _EC_GROUP_get_cofactor
testl %eax, %eax
je LBB0_6
## %bb.5:
movq %rbx, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq _BN_mul
movq %rbx, %r12
testl %eax, %eax
jne LBB0_10
LBB0_6:
movq _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _ECerr
jmp LBB0_17
LBB0_8:
movq _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _EC_R_MISSING_PRIVATE_KEY@GOTPCREL(%rip), %rax
jmp LBB0_16
LBB0_9:
movq %rbx, %r15
LBB0_10:
movq %r15, %rbx
movq %r15, %rdi
callq _EC_POINT_new
testq %rax, %rax
je LBB0_15
## %bb.11:
movq %rax, %r15
xorl %r14d, %r14d
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
movq -48(%rbp), %rcx ## 8-byte Reload
movq %r12, %r8
movq %r13, %r9
callq _EC_POINT_mul
testl %eax, %eax
je LBB0_20
## %bb.12:
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r15, %rsi
movq -56(%rbp), %r12 ## 8-byte Reload
movq %r12, %rdx
xorl %ecx, %ecx
movq %r13, %r8
callq _EC_POINT_get_affine_coordinates
testl %eax, %eax
je LBB0_20
## %bb.13:
movq %rbx, %rdi
callq _EC_GROUP_get_degree
## kill: def $eax killed $eax def $rax
leal 7(%rax), %ecx
addl $14, %eax
testl %ecx, %ecx
cmovnsl %ecx, %eax
sarl $3, %eax
movslq %eax, %r14
movq %r12, %rdi
callq _BN_num_bytes
cmpq %r14, %rax
jbe LBB0_21
## %bb.14:
movq _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
jmp LBB0_25
LBB0_15:
movq _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_16:
movl (%rax), %esi
callq _ECerr
xorl %r14d, %r14d
LBB0_17:
xorl %r15d, %r15d
LBB0_18:
xorl %ebx, %ebx
LBB0_19:
movq %r15, %rdi
callq _EC_POINT_clear_free
movq %r13, %rdi
callq _BN_CTX_end
movq %r13, %rdi
callq _BN_CTX_free
movq %rbx, %rdi
callq _OPENSSL_free
movl %r14d, %eax
addq $40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_20:
movq _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _EC_R_POINT_ARITHMETIC_FAILURE@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _ECerr
jmp LBB0_18
LBB0_21:
movq %rax, %r12
movq %r14, %rdi
callq _OPENSSL_malloc
testq %rax, %rax
je LBB0_24
## %bb.22:
movq %rax, %rbx
movq %r14, %rdx
subq %r12, %rdx
movq %r14, -48(%rbp) ## 8-byte Spill
xorl %r14d, %r14d
movq %rax, %rdi
xorl %esi, %esi
callq _memset
movq %rbx, %rsi
addq -48(%rbp), %rsi ## 8-byte Folded Reload
subq %r12, %rsi
movq -56(%rbp), %rdi ## 8-byte Reload
callq _BN_bn2bin
cmpq %rax, %r12
jne LBB0_26
## %bb.23:
movq -64(%rbp), %rax ## 8-byte Reload
movq %rbx, (%rax)
movq -72(%rbp), %rax ## 8-byte Reload
movq -48(%rbp), %rcx ## 8-byte Reload
movq %rcx, (%rax)
movl $1, %r14d
jmp LBB0_18
LBB0_24:
movq _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_25:
movl (%rax), %esi
callq _ECerr
xorl %r14d, %r14d
jmp LBB0_18
LBB0_26:
movq _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _ERR_R_BN_LIB@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _ECerr
jmp LBB0_19
.cfi_endproc
## -- End function
.comm _EC_F_ECDH_SIMPLE_COMPUTE_KEY,4,2 ## @EC_F_ECDH_SIMPLE_COMPUTE_KEY
.comm _ERR_R_MALLOC_FAILURE,4,2 ## @ERR_R_MALLOC_FAILURE
.comm _EC_R_MISSING_PRIVATE_KEY,4,2 ## @EC_R_MISSING_PRIVATE_KEY
.comm _EC_FLAG_COFACTOR_ECDH,4,2 ## @EC_FLAG_COFACTOR_ECDH
.comm _EC_R_POINT_ARITHMETIC_FAILURE,4,2 ## @EC_R_POINT_ARITHMETIC_FAILURE
.comm _ERR_R_INTERNAL_ERROR,4,2 ## @ERR_R_INTERNAL_ERROR
.comm _ERR_R_BN_LIB,4,2 ## @ERR_R_BN_LIB
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ecdh_simple_compute_key ; -- Begin function ecdh_simple_compute_key
.p2align 2
_ecdh_simple_compute_key: ; @ecdh_simple_compute_key
.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, x3
mov x24, x2
mov x21, x1
mov x22, x0
bl _BN_CTX_new
mov x19, x0
cbz x0, LBB0_14
; %bb.1:
mov x0, x19
bl _BN_CTX_start
mov x0, x19
bl _BN_CTX_get
cbz x0, LBB0_11
; %bb.2:
mov x23, x0
mov x0, x20
bl _EC_KEY_get0_private_key
cbz x0, LBB0_12
; %bb.3:
mov x26, x0
mov x0, x20
bl _EC_KEY_get0_group
mov x25, x0
mov x0, x20
bl _EC_KEY_get_flags
Lloh0:
adrp x8, _EC_FLAG_COFACTOR_ECDH@GOTPAGE
Lloh1:
ldr x8, [x8, _EC_FLAG_COFACTOR_ECDH@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
tst w8, w0
b.eq LBB0_6
; %bb.4:
mov x0, x25
mov x1, x23
mov x2, #0
bl _EC_GROUP_get_cofactor
cbz w0, LBB0_11
; %bb.5:
mov x0, x23
mov x1, x23
mov x2, x26
mov x3, x19
bl _BN_mul
mov x26, x23
cbz w0, LBB0_11
LBB0_6:
mov x0, x25
bl _EC_POINT_new
mov x20, x0
cbz x0, LBB0_18
; %bb.7:
mov x0, x25
mov x1, x20
mov x2, #0
mov x3, x24
mov x4, x26
mov x5, x19
bl _EC_POINT_mul
cbz w0, LBB0_17
; %bb.8:
mov x0, x25
mov x1, x20
mov x2, x23
mov x3, #0
mov x4, x19
bl _EC_POINT_get_affine_coordinates
cbz w0, LBB0_17
; %bb.9:
mov x0, x25
bl _EC_GROUP_get_degree
add w8, w0, #7
add w9, w0, #14
cmp w8, #0
csel w8, w9, w8, lt
sbfx x25, x8, #3, #29
mov x0, x23
bl _BN_num_bytes
cmp x0, x25
b.ls LBB0_20
; %bb.10:
Lloh3:
adrp x8, _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPAGE
Lloh4:
ldr x8, [x8, _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPAGEOFF]
Lloh5:
ldr w0, [x8]
Lloh6:
adrp x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh7:
ldr x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
b LBB0_19
LBB0_11:
Lloh8:
adrp x8, _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPAGE
Lloh9:
ldr x8, [x8, _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPAGEOFF]
Lloh10:
ldr w0, [x8]
Lloh11:
adrp x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh12:
ldr x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
b LBB0_13
LBB0_12:
Lloh13:
adrp x8, _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPAGE
Lloh14:
ldr x8, [x8, _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPAGEOFF]
Lloh15:
ldr w0, [x8]
Lloh16:
adrp x8, _EC_R_MISSING_PRIVATE_KEY@GOTPAGE
Lloh17:
ldr x8, [x8, _EC_R_MISSING_PRIVATE_KEY@GOTPAGEOFF]
LBB0_13:
ldr w1, [x8]
bl _ECerr
LBB0_14:
mov w21, #0
mov x20, #0
LBB0_15:
mov x24, #0
LBB0_16:
mov x0, x20
bl _EC_POINT_clear_free
mov x0, x19
bl _BN_CTX_end
mov x0, x19
bl _BN_CTX_free
mov x0, x24
bl _OPENSSL_free
mov x0, x21
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_17:
Lloh18:
adrp x8, _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPAGE
Lloh19:
ldr x8, [x8, _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPAGEOFF]
Lloh20:
ldr w0, [x8]
Lloh21:
adrp x8, _EC_R_POINT_ARITHMETIC_FAILURE@GOTPAGE
Lloh22:
ldr x8, [x8, _EC_R_POINT_ARITHMETIC_FAILURE@GOTPAGEOFF]
b LBB0_19
LBB0_18:
Lloh23:
adrp x8, _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPAGE
Lloh24:
ldr x8, [x8, _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPAGEOFF]
Lloh25:
ldr w0, [x8]
Lloh26:
adrp x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh27:
ldr x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_19:
ldr w1, [x8]
bl _ECerr
mov w21, #0
b LBB0_15
LBB0_20:
mov x26, x0
mov x0, x25
bl _OPENSSL_malloc
mov x24, x0
cbz x0, LBB0_23
; %bb.21:
sub x2, x25, x26
mov x0, x24
mov w1, #0
bl _memset
add x8, x24, x25
sub x1, x8, x26
mov x0, x23
bl _BN_bn2bin
cmp x26, x0
b.ne LBB0_24
; %bb.22:
str x24, [x22]
str x25, [x21]
mov w21, #1
b LBB0_15
LBB0_23:
Lloh28:
adrp x8, _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPAGE
Lloh29:
ldr x8, [x8, _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPAGEOFF]
Lloh30:
ldr w0, [x8]
Lloh31:
adrp x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh32:
ldr x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
b LBB0_25
LBB0_24:
Lloh33:
adrp x8, _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPAGE
Lloh34:
ldr x8, [x8, _EC_F_ECDH_SIMPLE_COMPUTE_KEY@GOTPAGEOFF]
Lloh35:
ldr w0, [x8]
Lloh36:
adrp x8, _ERR_R_BN_LIB@GOTPAGE
Lloh37:
ldr x8, [x8, _ERR_R_BN_LIB@GOTPAGEOFF]
LBB0_25:
ldr w1, [x8]
bl _ECerr
mov w21, #0
b LBB0_16
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGot Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGot Lloh16, Lloh17
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpLdrGot Lloh21, Lloh22
.loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20
.loh AdrpLdrGot Lloh26, Lloh27
.loh AdrpLdrGotLdr Lloh23, Lloh24, Lloh25
.loh AdrpLdrGot Lloh31, Lloh32
.loh AdrpLdrGotLdr Lloh28, Lloh29, Lloh30
.loh AdrpLdrGot Lloh36, Lloh37
.loh AdrpLdrGotLdr Lloh33, Lloh34, Lloh35
.cfi_endproc
; -- End function
.comm _EC_F_ECDH_SIMPLE_COMPUTE_KEY,4,2 ; @EC_F_ECDH_SIMPLE_COMPUTE_KEY
.comm _ERR_R_MALLOC_FAILURE,4,2 ; @ERR_R_MALLOC_FAILURE
.comm _EC_R_MISSING_PRIVATE_KEY,4,2 ; @EC_R_MISSING_PRIVATE_KEY
.comm _EC_FLAG_COFACTOR_ECDH,4,2 ; @EC_FLAG_COFACTOR_ECDH
.comm _EC_R_POINT_ARITHMETIC_FAILURE,4,2 ; @EC_R_POINT_ARITHMETIC_FAILURE
.comm _ERR_R_INTERNAL_ERROR,4,2 ; @ERR_R_INTERNAL_ERROR
.comm _ERR_R_BN_LIB,4,2 ; @ERR_R_BN_LIB
.subsections_via_symbols
| AnghaBench/freebsd/crypto/openssl/crypto/ec/extr_ecdh_ossl.c_ecdh_simple_compute_key.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function mn10300_serial_receive_interrupt
_mn10300_serial_receive_interrupt: ## @mn10300_serial_receive_interrupt
.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 %rdi, %r14
movq 64(%rdi), %rax
movq (%rax), %rbx
movl 72(%rdi), %esi
leaq L_.str(%rip), %rdi
callq __enter
movl (%r14), %edi
movl 4(%r14), %esi
movq _MNSC_BUFFER_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %edx
callq _CIRC_CNT
movq %rbx, %rdi
movl %eax, %esi
callq _tty_buffer_request_room
testl %eax, %eax
je LBB0_12
## %bb.1:
movl 4(%r14), %edi
cmpl (%r14), %edi
je LBB0_12
## %bb.2:
leaq 24(%r14), %rcx
movq %rcx, -64(%rbp) ## 8-byte Spill
movb $1, %cl
movq _SC01STR_OEF@GOTPCREL(%rip), %r15
movq %rbx, -48(%rbp) ## 8-byte Spill
LBB0_3: ## =>This Loop Header: Depth=1
## Child Loop BB0_4 Depth 2
movl %ecx, -56(%rbp) ## 4-byte Spill
movl %eax, -52(%rbp) ## 4-byte Spill
jmp LBB0_4
LBB0_27: ## in Loop: Header=BB0_4 Depth=2
movl $1, 16(%r14)
.p2align 4, 0x90
LBB0_10: ## in Loop: Header=BB0_4 Depth=2
cmpl (%r14), %edi
je LBB0_11
LBB0_4: ## Parent Loop BB0_3 Depth=1
## => This Inner Loop Header: Depth=2
movl %edi, %r12d
movq 8(%r14), %rax
leal -1(%r12), %ecx
movl %edi, %edx
movq (%rax,%rdx,8), %r13
movq (%rax,%rcx,8), %rbx
xorl %eax, %eax
callq _smp_rmb
movq _MNSC_BUFFER_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %edi
decl %edi
andl %r12d, %edi
movl %edi, 4(%r14)
incl 56(%r14)
movq _SC01STR_FEF@GOTPCREL(%rip), %rax
movq (%rax), %rdx
movq _SC01STR_PEF@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movq (%r15), %r12
orq %rcx, %r12
orq %rdx, %r12
andq %rbx, %r12
movl 16(%r14), %esi
testl %esi, %esi
je LBB0_23
## %bb.5: ## in Loop: Header=BB0_4 Depth=2
cmpl $2, %esi
je LBB0_15
## %bb.6: ## in Loop: Header=BB0_4 Depth=2
cmpl $1, %esi
jne LBB0_19
## %bb.7: ## in Loop: Header=BB0_4 Depth=2
testq %rbx, %rdx
je LBB0_51
## %bb.8: ## in Loop: Header=BB0_4 Depth=2
testq %r13, %r13
jne LBB0_51
## %bb.9: ## in Loop: Header=BB0_4 Depth=2
movl $2, 16(%r14)
jmp LBB0_10
.p2align 4, 0x90
LBB0_15: ## in Loop: Header=BB0_4 Depth=2
testq %rbx, %rdx
je LBB0_51
## %bb.16: ## in Loop: Header=BB0_4 Depth=2
testq %r13, %r13
je LBB0_17
LBB0_51: ## in Loop: Header=BB0_4 Depth=2
movl $0, 16(%r14)
LBB0_23: ## in Loop: Header=BB0_4 Depth=2
testq %rbx, %rdx
je LBB0_24
## %bb.26: ## in Loop: Header=BB0_4 Depth=2
testq %r13, %r13
je LBB0_27
## %bb.28: ## in Loop: Header=BB0_4 Depth=2
leaq L_.str.2(%rip), %rdi
callq __proto
incl 48(%r14)
movq _TTY_FRAME@GOTPCREL(%rip), %rax
movzbl (%rax), %ecx
movl $1, %eax
shll %cl, %eax
cltq
movq _SC01STR_PEF@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
testq %r12, %rcx
je LBB0_31
LBB0_30: ## in Loop: Header=BB0_4 Depth=2
leaq L_.str.3(%rip), %rdi
callq __proto
incl 44(%r14)
movq _TTY_PARITY@GOTPCREL(%rip), %rax
movslq (%rax), %rax
LBB0_31: ## in Loop: Header=BB0_4 Depth=2
testq %rax, %rax
jne LBB0_34
## %bb.32: ## in Loop: Header=BB0_4 Depth=2
movq -64(%rbp), %rdi ## 8-byte Reload
movq %r13, %rsi
callq _uart_handle_sysrq_char
testq %rax, %rax
jne LBB0_18
## %bb.33: ## in Loop: Header=BB0_4 Depth=2
movq _TTY_NORMAL@GOTPCREL(%rip), %rax
movzbl (%rax), %ecx
movl $1, %eax
shll %cl, %eax
cltq
LBB0_34: ## in Loop: Header=BB0_4 Depth=2
testq %r12, (%r15)
je LBB0_38
## %bb.35: ## in Loop: Header=BB0_4 Depth=2
cmpl $0, 16(%r14)
je LBB0_44
## %bb.36: ## in Loop: Header=BB0_4 Depth=2
movl 4(%r14), %edi
jmp LBB0_10
.p2align 4, 0x90
LBB0_19: ## in Loop: Header=BB0_4 Depth=2
testq %r12, %r12
jne LBB0_10
## %bb.20: ## in Loop: Header=BB0_4 Depth=2
movl $0, 16(%r14)
leaq -192(%r13), %rsi
cmpq $63, %rsi
ja LBB0_21
## %bb.25: ## in Loop: Header=BB0_4 Depth=2
movabsq $-3386425440510935039, %rax ## imm = 0xD101000100000001
btq %rsi, %rax
jb LBB0_10
LBB0_21: ## in Loop: Header=BB0_4 Depth=2
testq %r13, %r13
je LBB0_10
## %bb.22: ## in Loop: Header=BB0_4 Depth=2
cmpq $128, %r13
je LBB0_10
jmp LBB0_23
.p2align 4, 0x90
LBB0_24: ## in Loop: Header=BB0_4 Depth=2
xorl %eax, %eax
testq %r12, %rcx
jne LBB0_30
jmp LBB0_31
LBB0_44: ## in Loop: Header=BB0_3 Depth=1
leaq L_.str.4(%rip), %rdi
callq __proto
incl 40(%r14)
movq _TTY_OVERRUN@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq -48(%rbp), %rdi ## 8-byte Reload
xorl %esi, %esi
jmp LBB0_45
LBB0_17: ## in Loop: Header=BB0_3 Depth=1
movl $3, 16(%r14)
leaq L_.str.1(%rip), %rdi
callq __proto
incl 52(%r14)
movq -64(%rbp), %rdi ## 8-byte Reload
callq _uart_handle_break
testl %eax, %eax
je LBB0_37
LBB0_18: ## in Loop: Header=BB0_3 Depth=1
movq -48(%rbp), %rbx ## 8-byte Reload
movl -52(%rbp), %eax ## 4-byte Reload
jmp LBB0_48
LBB0_37: ## in Loop: Header=BB0_3 Depth=1
movq _TTY_BREAK@GOTPCREL(%rip), %rax
movzbl (%rax), %ecx
movl $1, %eax
shll %cl, %eax
cltq
xorl %r13d, %r13d
LBB0_38: ## in Loop: Header=BB0_3 Depth=1
andq 24(%r14), %rax
testq %rax, 32(%r14)
jne LBB0_46
## %bb.39: ## in Loop: Header=BB0_3 Depth=1
movq _TTY_BREAK@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl $1, %edx
shll %cl, %edx
movslq %edx, %rdx
testq %rdx, %rax
jne LBB0_43
## %bb.40: ## in Loop: Header=BB0_3 Depth=1
movq _TTY_PARITY@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl $1, %edx
shll %cl, %edx
movslq %edx, %rdx
testq %rdx, %rax
jne LBB0_43
## %bb.41: ## in Loop: Header=BB0_3 Depth=1
movq _TTY_FRAME@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl $1, %edx
shll %cl, %edx
movslq %edx, %rdx
testq %rdx, %rax
jne LBB0_43
## %bb.42: ## in Loop: Header=BB0_3 Depth=1
movq _TTY_NORMAL@GOTPCREL(%rip), %rax
movl (%rax), %ecx
LBB0_43: ## in Loop: Header=BB0_3 Depth=1
movq -48(%rbp), %rdi ## 8-byte Reload
movq %r13, %rsi
movl %ecx, %edx
LBB0_45: ## in Loop: Header=BB0_3 Depth=1
callq _tty_insert_flip_char
LBB0_46: ## in Loop: Header=BB0_3 Depth=1
movl -52(%rbp), %eax ## 4-byte Reload
cmpl $1, %eax
jle LBB0_49
## %bb.47: ## in Loop: Header=BB0_3 Depth=1
decl %eax
movq -48(%rbp), %rbx ## 8-byte Reload
LBB0_48: ## in Loop: Header=BB0_3 Depth=1
movl 4(%r14), %edi
xorl %ecx, %ecx
cmpl (%r14), %edi
jne LBB0_3
jmp LBB0_13
LBB0_11:
testb $1, -56(%rbp) ## 1-byte Folded Reload
movq -48(%rbp), %rbx ## 8-byte Reload
je LBB0_13
LBB0_12:
cmpl $0, (%rbx)
je LBB0_13
LBB0_14:
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_13:
movq %rbx, %rdi
LBB0_50:
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _tty_flip_buffer_push ## TAILCALL
LBB0_49:
movq -48(%rbp), %rdi ## 8-byte Reload
cmpl $0, (%rdi)
jne LBB0_14
jmp LBB0_50
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s"
.comm _MNSC_BUFFER_SIZE,4,2 ## @MNSC_BUFFER_SIZE
.comm _SC01STR_FEF,8,3 ## @SC01STR_FEF
.comm _SC01STR_PEF,8,3 ## @SC01STR_PEF
.comm _SC01STR_OEF,8,3 ## @SC01STR_OEF
L_.str.1: ## @.str.1
.asciz "Rx Break Detected"
.comm _TTY_BREAK,4,2 ## @TTY_BREAK
L_.str.2: ## @.str.2
.asciz "Rx Framing Error"
.comm _TTY_FRAME,4,2 ## @TTY_FRAME
L_.str.3: ## @.str.3
.asciz "Rx Parity Error"
.comm _TTY_PARITY,4,2 ## @TTY_PARITY
.comm _TTY_NORMAL,4,2 ## @TTY_NORMAL
L_.str.4: ## @.str.4
.asciz "Rx Overrun Error"
.comm _TTY_OVERRUN,4,2 ## @TTY_OVERRUN
.no_dead_strip _mn10300_serial_receive_interrupt
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function mn10300_serial_receive_interrupt
_mn10300_serial_receive_interrupt: ; @mn10300_serial_receive_interrupt
.cfi_startproc
; %bb.0:
sub sp, sp, #112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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 x20, x0
ldr x8, [x0, #64]
ldr x19, [x8]
ldr w1, [x0, #72]
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl __enter
ldp w0, w1, [x20]
Lloh2:
adrp x27, _MNSC_BUFFER_SIZE@GOTPAGE
Lloh3:
ldr x27, [x27, _MNSC_BUFFER_SIZE@GOTPAGEOFF]
ldr w2, [x27]
bl _CIRC_CNT
mov x1, x0
mov x0, x19
bl _tty_buffer_request_room
cbz w0, LBB0_42
; %bb.1:
ldp w8, w23, [x20]
cmp w23, w8
b.eq LBB0_42
; %bb.2:
mov w21, #1 ; =0x1
Lloh4:
adrp x25, _SC01STR_FEF@GOTPAGE
Lloh5:
ldr x25, [x25, _SC01STR_FEF@GOTPAGEOFF]
Lloh6:
adrp x22, _SC01STR_PEF@GOTPAGE
Lloh7:
ldr x22, [x22, _SC01STR_PEF@GOTPAGEOFF]
Lloh8:
adrp x24, _SC01STR_OEF@GOTPAGE
Lloh9:
ldr x24, [x24, _SC01STR_OEF@GOTPAGEOFF]
mov w9, #1 ; =0x1
str x19, [sp, #8] ; 8-byte Folded Spill
LBB0_3: ; =>This Loop Header: Depth=1
; Child Loop BB0_6 Depth 2
stp w9, w0, [sp] ; 8-byte Folded Spill
b LBB0_6
LBB0_4: ; in Loop: Header=BB0_6 Depth=2
str w21, [x20, #16]
LBB0_5: ; in Loop: Header=BB0_6 Depth=2
ldr w8, [x20]
cmp w23, w8
b.eq LBB0_41
LBB0_6: ; Parent Loop BB0_3 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [x20, #8]
sub w9, w23, #1
ldr x26, [x8, w23, uxtw #3]
ldr x28, [x8, w9, uxtw #3]
bl _smp_rmb
ldr w8, [x27]
sub w8, w8, #1
and w23, w8, w23
str w23, [x20, #4]
ldr w8, [x20, #56]
add w8, w8, #1
str w8, [x20, #56]
ldr x9, [x25]
ldr x8, [x22]
ldr x10, [x24]
orr x10, x8, x10
orr x10, x10, x9
and x19, x10, x28
ldr w10, [x20, #16]
cbz w10, LBB0_13
; %bb.7: ; in Loop: Header=BB0_6 Depth=2
cmp w10, #2
b.eq LBB0_11
; %bb.8: ; in Loop: Header=BB0_6 Depth=2
cmp w10, #1
b.ne LBB0_23
; %bb.9: ; in Loop: Header=BB0_6 Depth=2
and x10, x9, x28
cmp x10, #0
ccmp x26, #0, #0, ne
b.ne LBB0_12
; %bb.10: ; in Loop: Header=BB0_6 Depth=2
mov w8, #2 ; =0x2
str w8, [x20, #16]
b LBB0_5
LBB0_11: ; in Loop: Header=BB0_6 Depth=2
and x10, x9, x28
cmp x10, #0
ccmp x26, #0, #0, ne
b.eq LBB0_28
LBB0_12: ; in Loop: Header=BB0_6 Depth=2
str wzr, [x20, #16]
LBB0_13: ; in Loop: Header=BB0_6 Depth=2
tst x9, x28
b.eq LBB0_26
; %bb.14: ; in Loop: Header=BB0_6 Depth=2
cbz x26, LBB0_4
; %bb.15: ; in Loop: Header=BB0_6 Depth=2
Lloh10:
adrp x0, l_.str.2@PAGE
Lloh11:
add x0, x0, l_.str.2@PAGEOFF
bl __proto
ldr w8, [x20, #48]
add w8, w8, #1
str w8, [x20, #48]
Lloh12:
adrp x8, _TTY_FRAME@GOTPAGE
Lloh13:
ldr x8, [x8, _TTY_FRAME@GOTPAGEOFF]
Lloh14:
ldr w8, [x8]
mov w21, #1 ; =0x1
lsl w8, w21, w8
sxtw x9, w8
ldr x8, [x22]
tst x8, x19
b.eq LBB0_17
LBB0_16: ; in Loop: Header=BB0_6 Depth=2
Lloh15:
adrp x0, l_.str.3@PAGE
Lloh16:
add x0, x0, l_.str.3@PAGEOFF
bl __proto
ldr w8, [x20, #44]
add w8, w8, #1
str w8, [x20, #44]
Lloh17:
adrp x8, _TTY_PARITY@GOTPAGE
Lloh18:
ldr x8, [x8, _TTY_PARITY@GOTPAGEOFF]
Lloh19:
ldrsw x9, [x8]
LBB0_17: ; in Loop: Header=BB0_6 Depth=2
cbnz x9, LBB0_20
; %bb.18: ; in Loop: Header=BB0_6 Depth=2
add x0, x20, #24
mov x1, x26
bl _uart_handle_sysrq_char
cbnz x0, LBB0_38
; %bb.19: ; in Loop: Header=BB0_6 Depth=2
Lloh20:
adrp x8, _TTY_NORMAL@GOTPAGE
Lloh21:
ldr x8, [x8, _TTY_NORMAL@GOTPAGEOFF]
Lloh22:
ldr w8, [x8]
lsl w8, w21, w8
sxtw x9, w8
LBB0_20: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [x24]
tst x8, x19
b.eq LBB0_30
; %bb.21: ; in Loop: Header=BB0_6 Depth=2
ldr w8, [x20, #16]
cbz w8, LBB0_27
; %bb.22: ; in Loop: Header=BB0_6 Depth=2
mov w21, #1 ; =0x1
ldr w23, [x20, #4]
b LBB0_5
LBB0_23: ; in Loop: Header=BB0_6 Depth=2
cbnz x19, LBB0_5
; %bb.24: ; in Loop: Header=BB0_6 Depth=2
str wzr, [x20, #16]
sub x10, x26, #192
cmp x10, #63
lsl x10, x21, x10
mov x11, #4294967297 ; =0x100000001
movk x11, #53505, lsl #48
and x10, x10, x11
ccmp x10, #0, #4, ls
ccmp x26, #0, #4, eq
b.eq LBB0_5
; %bb.25: ; in Loop: Header=BB0_6 Depth=2
cmp x26, #128
b.eq LBB0_5
b LBB0_13
LBB0_26: ; in Loop: Header=BB0_6 Depth=2
mov x9, #0 ; =0x0
mov w21, #1 ; =0x1
tst x8, x19
b.ne LBB0_16
b LBB0_17
LBB0_27: ; in Loop: Header=BB0_3 Depth=1
Lloh23:
adrp x0, l_.str.4@PAGE
Lloh24:
add x0, x0, l_.str.4@PAGEOFF
bl __proto
ldr w8, [x20, #40]
add w8, w8, #1
str w8, [x20, #40]
Lloh25:
adrp x8, _TTY_OVERRUN@GOTPAGE
Lloh26:
ldr x8, [x8, _TTY_OVERRUN@GOTPAGEOFF]
Lloh27:
ldr w2, [x8]
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov x1, #0 ; =0x0
b LBB0_35
LBB0_28: ; in Loop: Header=BB0_3 Depth=1
mov w8, #3 ; =0x3
str w8, [x20, #16]
Lloh28:
adrp x0, l_.str.1@PAGE
Lloh29:
add x0, x0, l_.str.1@PAGEOFF
bl __proto
ldr w8, [x20, #52]
add w8, w8, #1
str w8, [x20, #52]
add x0, x20, #24
bl _uart_handle_break
cbnz w0, LBB0_39
; %bb.29: ; in Loop: Header=BB0_3 Depth=1
mov x26, #0 ; =0x0
Lloh30:
adrp x8, _TTY_BREAK@GOTPAGE
Lloh31:
ldr x8, [x8, _TTY_BREAK@GOTPAGEOFF]
Lloh32:
ldr w8, [x8]
mov w21, #1 ; =0x1
lsl w8, w21, w8
sxtw x9, w8
LBB0_30: ; in Loop: Header=BB0_3 Depth=1
ldp x8, x10, [x20, #24]
and x8, x8, x9
tst x8, x10
b.ne LBB0_36
; %bb.31: ; in Loop: Header=BB0_3 Depth=1
Lloh33:
adrp x9, _TTY_BREAK@GOTPAGE
Lloh34:
ldr x9, [x9, _TTY_BREAK@GOTPAGEOFF]
Lloh35:
ldr w2, [x9]
lsl w9, w21, w2
sxtw x9, w9
tst x8, x9
b.ne LBB0_34
; %bb.32: ; in Loop: Header=BB0_3 Depth=1
Lloh36:
adrp x9, _TTY_PARITY@GOTPAGE
Lloh37:
ldr x9, [x9, _TTY_PARITY@GOTPAGEOFF]
Lloh38:
ldr w2, [x9]
lsl w9, w21, w2
sxtw x9, w9
; kill: def $w2 killed $w2 killed $x2 def $x2
tst x8, x9
b.ne LBB0_34
; %bb.33: ; in Loop: Header=BB0_3 Depth=1
Lloh39:
adrp x9, _TTY_FRAME@GOTPAGE
Lloh40:
ldr x9, [x9, _TTY_FRAME@GOTPAGEOFF]
Lloh41:
ldr w9, [x9]
lsl w10, w21, w9
sxtw x10, w10
Lloh42:
adrp x11, _TTY_NORMAL@GOTPAGE
Lloh43:
ldr x11, [x11, _TTY_NORMAL@GOTPAGEOFF]
Lloh44:
ldr w11, [x11]
tst x8, x10
csel w2, w11, w9, eq
LBB0_34: ; in Loop: Header=BB0_3 Depth=1
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov x1, x26
; kill: def $w2 killed $w2 killed $x2
LBB0_35: ; in Loop: Header=BB0_3 Depth=1
bl _tty_insert_flip_char
LBB0_36: ; in Loop: Header=BB0_3 Depth=1
ldr w0, [sp, #4] ; 4-byte Folded Reload
subs w0, w0, #1
b.le LBB0_46
; %bb.37: ; in Loop: Header=BB0_3 Depth=1
mov w21, #1 ; =0x1
ldr x19, [sp, #8] ; 8-byte Folded Reload
b LBB0_40
LBB0_38: ; in Loop: Header=BB0_3 Depth=1
mov w21, #1 ; =0x1
LBB0_39: ; in Loop: Header=BB0_3 Depth=1
ldr x19, [sp, #8] ; 8-byte Folded Reload
ldr w0, [sp, #4] ; 4-byte Folded Reload
LBB0_40: ; in Loop: Header=BB0_3 Depth=1
mov w9, #0 ; =0x0
ldp w8, w23, [x20]
cmp w23, w8
b.ne LBB0_3
b LBB0_44
LBB0_41:
ldr x19, [sp, #8] ; 8-byte Folded Reload
ldr w8, [sp] ; 4-byte Folded Reload
tbz w8, #0, LBB0_44
LBB0_42:
ldr w8, [x19]
cbz w8, LBB0_44
LBB0_43:
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
ldp x20, x19, [sp, #80] ; 16-byte Folded Reload
ldp x22, x21, [sp, #64] ; 16-byte Folded Reload
ldp x24, x23, [sp, #48] ; 16-byte Folded Reload
ldp x26, x25, [sp, #32] ; 16-byte Folded Reload
ldp x28, x27, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #112
ret
LBB0_44:
mov x0, x19
LBB0_45:
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
ldp x20, x19, [sp, #80] ; 16-byte Folded Reload
ldp x22, x21, [sp, #64] ; 16-byte Folded Reload
ldp x24, x23, [sp, #48] ; 16-byte Folded Reload
ldp x26, x25, [sp, #32] ; 16-byte Folded Reload
ldp x28, x27, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #112
b _tty_flip_buffer_push
LBB0_46:
ldr x0, [sp, #8] ; 8-byte Folded Reload
ldr w8, [x0]
cbnz w8, LBB0_43
b LBB0_45
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.loh AdrpAdd Lloh15, Lloh16
.loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22
.loh AdrpLdrGotLdr Lloh25, Lloh26, Lloh27
.loh AdrpAdd Lloh23, Lloh24
.loh AdrpAdd Lloh28, Lloh29
.loh AdrpLdrGotLdr Lloh30, Lloh31, Lloh32
.loh AdrpLdrGotLdr Lloh33, Lloh34, Lloh35
.loh AdrpLdrGotLdr Lloh36, Lloh37, Lloh38
.loh AdrpLdrGotLdr Lloh42, Lloh43, Lloh44
.loh AdrpLdrGotLdr Lloh39, Lloh40, Lloh41
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s"
.comm _MNSC_BUFFER_SIZE,4,2 ; @MNSC_BUFFER_SIZE
.comm _SC01STR_FEF,8,3 ; @SC01STR_FEF
.comm _SC01STR_PEF,8,3 ; @SC01STR_PEF
.comm _SC01STR_OEF,8,3 ; @SC01STR_OEF
l_.str.1: ; @.str.1
.asciz "Rx Break Detected"
.comm _TTY_BREAK,4,2 ; @TTY_BREAK
l_.str.2: ; @.str.2
.asciz "Rx Framing Error"
.comm _TTY_FRAME,4,2 ; @TTY_FRAME
l_.str.3: ; @.str.3
.asciz "Rx Parity Error"
.comm _TTY_PARITY,4,2 ; @TTY_PARITY
.comm _TTY_NORMAL,4,2 ; @TTY_NORMAL
l_.str.4: ; @.str.4
.asciz "Rx Overrun Error"
.comm _TTY_OVERRUN,4,2 ; @TTY_OVERRUN
.no_dead_strip _mn10300_serial_receive_interrupt
.subsections_via_symbols
| assembly_file_135422.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function cgtcon_
LCPI0_0:
.long 0x3f800000 ## float 1
.section __TEXT,__text,regular,pure_instructions
.globl _cgtcon_
.p2align 4, 0x90
_cgtcon_: ## @cgtcon_
.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 $72, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %r9, -104(%rbp) ## 8-byte Spill
movq %r8, -96(%rbp) ## 8-byte Spill
movq %rcx, %r13
movq %rdx, -88(%rbp) ## 8-byte Spill
movq %rsi, %rbx
movq 48(%rbp), %r15
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movl $0, (%r15)
movl $1, %r12d
cmpb $49, (%rdi)
je LBB0_5
## %bb.1:
movq %rdi, %r14
leaq L_.str(%rip), %rsi
callq _lsame_
testl %eax, %eax
jne LBB0_5
## %bb.2:
leaq L_.str.1(%rip), %rsi
movq %r14, %rdi
callq _lsame_
movl $2, %r12d
testl %eax, %eax
je LBB0_3
LBB0_5:
movl (%rbx), %eax
testl %eax, %eax
js LBB0_6
## %bb.7:
movq 24(%rbp), %rdx
movl $-8, %ecx
xorps %xmm0, %xmm0
ucomiss (%rdx), %xmm0
jbe LBB0_8
LBB0_4:
movl %ecx, (%r15)
jmp LBB0_9
LBB0_6:
movl $-2, %ecx
movl %ecx, (%r15)
jmp LBB0_9
LBB0_8:
movl (%r15), %ecx
testl %ecx, %ecx
je LBB0_10
LBB0_9:
negl %ecx
movl %ecx, -60(%rbp)
leaq L_.str.2(%rip), %rdi
leaq -60(%rbp), %rsi
movl $6, %edx
callq _xerbla_
LBB0_24:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB0_26
## %bb.25:
xorl %eax, %eax
addq $72, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_10:
movq 32(%rbp), %rcx
movl $0, (%rcx)
testq %rax, %rax
je LBB0_11
## %bb.12:
movss (%rdx), %xmm1 ## xmm1 = mem[0],zero,zero,zero
xorps %xmm0, %xmm0
ucomiss %xmm0, %xmm1
jne LBB0_13
jnp LBB0_24
LBB0_13:
movq 40(%rbp), %rcx
addq $-8, %rcx
movq %rcx, -80(%rbp) ## 8-byte Spill
leal 1(%rax), %ecx
xorl %edx, %edx
jmp LBB0_14
.p2align 4, 0x90
LBB0_16: ## in Loop: Header=BB0_14 Depth=1
incq %rdx
cmpq %rdx, %rax
je LBB0_17
LBB0_14: ## =>This Inner Loop Header: Depth=1
movss (%r13,%rdx,8), %xmm1 ## xmm1 = mem[0],zero,zero,zero
ucomiss %xmm0, %xmm1
jne LBB0_16
jp LBB0_16
## %bb.15: ## in Loop: Header=BB0_14 Depth=1
movss 4(%r13,%rdx,8), %xmm1 ## xmm1 = mem[0],zero,zero,zero
ucomiss %xmm0, %xmm1
jne LBB0_16
jp LBB0_16
jmp LBB0_24
LBB0_3:
movl $-1, %ecx
jmp LBB0_4
LBB0_11:
movl $1065353216, (%rcx) ## imm = 0x3F800000
jmp LBB0_24
LBB0_17:
movl $0, -68(%rbp)
movl $0, -64(%rbp)
movslq %ecx, %rax
movq -80(%rbp), %rcx ## 8-byte Reload
leaq (%rcx,%rax,8), %rsi
leaq -68(%rbp), %rcx
leaq -64(%rbp), %r8
leaq -60(%rbp), %r9
movq %rbx, %rdi
movq 40(%rbp), %rdx
jmp LBB0_18
.p2align 4, 0x90
LBB0_21: ## in Loop: Header=BB0_18 Depth=1
subq $8, %rsp
movq %rbx, %rsi
leaq _c__1(%rip), %rdx
movq -88(%rbp), %rcx ## 8-byte Reload
movq %r13, %r8
movq -96(%rbp), %r9 ## 8-byte Reload
pushq %r15
pushq %rbx
movq 40(%rbp), %r14
pushq %r14
pushq 16(%rbp)
pushq -104(%rbp) ## 8-byte Folded Reload
callq _cgttrs_
addq $48, %rsp
movslq (%rbx), %rax
movq -80(%rbp), %rcx ## 8-byte Reload
leaq (%rcx,%rax,8), %rsi
addq $8, %rsi
movq %rbx, %rdi
movq %r14, %rdx
leaq -68(%rbp), %rcx
leaq -64(%rbp), %r8
leaq -60(%rbp), %r9
LBB0_18: ## =>This Inner Loop Header: Depth=1
callq _clacn2_
movl -64(%rbp), %eax
testl %eax, %eax
je LBB0_22
## %bb.19: ## in Loop: Header=BB0_18 Depth=1
leaq L_.str.3(%rip), %rdi
cmpl %r12d, %eax
je LBB0_21
## %bb.20: ## in Loop: Header=BB0_18 Depth=1
leaq L_.str.4(%rip), %rdi
jmp LBB0_21
LBB0_22:
movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
movq 32(%rbp), %rax
movq 24(%rbp), %rcx
jne LBB0_23
jnp LBB0_24
LBB0_23:
movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
divss %xmm0, %xmm1
divss (%rcx), %xmm1
movss %xmm1, (%rax)
jmp LBB0_24
LBB0_26:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "O"
L_.str.1: ## @.str.1
.asciz "I"
L_.str.2: ## @.str.2
.asciz "CGTCON"
L_.str.3: ## @.str.3
.asciz "No transpose"
.section __DATA,__data
.p2align 2 ## @c__1
_c__1:
.long 1 ## 0x1
.section __TEXT,__cstring,cstring_literals
L_.str.4: ## @.str.4
.asciz "Conjugate transpose"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _cgtcon_ ; -- Begin function cgtcon_
.p2align 2
_cgtcon_: ; @cgtcon_
.cfi_startproc
; %bb.0:
sub sp, sp, #176
.cfi_def_cfa_offset 176
stp x28, x27, [sp, #80] ; 16-byte Folded Spill
stp x26, x25, [sp, #96] ; 16-byte Folded Spill
stp x24, x23, [sp, #112] ; 16-byte Folded Spill
stp x22, x21, [sp, #128] ; 16-byte Folded Spill
stp x20, x19, [sp, #144] ; 16-byte Folded Spill
stp x29, x30, [sp, #160] ; 16-byte Folded Spill
add x29, sp, #160
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.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, x7
mov x20, x6
mov x21, x5
mov x22, x4
mov x23, x3
mov x24, x2
mov x25, x1
ldr x28, [x29, #32]
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
str x8, [sp, #72]
str wzr, [x28]
ldrb w8, [x0]
cmp w8, #49
b.eq LBB0_2
; %bb.1:
mov x26, x0
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
bl _lsame_
cbz w0, LBB0_12
LBB0_2:
mov w27, #1
ldr w8, [x25]
tbnz w8, #31, LBB0_14
LBB0_3:
ldr s0, [x19]
fcmp s0, #0.0
b.pl LBB0_5
; %bb.4:
mov w9, #-8
b LBB0_15
LBB0_5:
ldr w9, [x28]
cbnz w9, LBB0_16
; %bb.6:
ldr x12, [x29, #16]
str wzr, [x12]
cbz w8, LBB0_20
; %bb.7:
ldr s0, [x19]
fcmp s0, #0.0
b.eq LBB0_17
; %bb.8:
mov x9, #0
ldr x26, [x29, #24]
sub x13, x26, #8
add x8, x8, #1
lsl x10, x8, #3
sub x10, x10, #8
b LBB0_10
LBB0_9: ; in Loop: Header=BB0_10 Depth=1
add x9, x9, #8
cmp x10, x9
b.eq LBB0_21
LBB0_10: ; =>This Inner Loop Header: Depth=1
ldr s0, [x23, x9]
fcmp s0, #0.0
b.ne LBB0_9
; %bb.11: ; in Loop: Header=BB0_10 Depth=1
add x11, x23, x9
ldr s0, [x11, #4]
fcmp s0, #0.0
b.ne LBB0_9
b LBB0_17
LBB0_12:
Lloh5:
adrp x1, l_.str.1@PAGE
Lloh6:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x26
bl _lsame_
cbz w0, LBB0_19
; %bb.13:
mov w27, #2
ldr w8, [x25]
tbz w8, #31, LBB0_3
LBB0_14:
mov w9, #-2
LBB0_15:
str w9, [x28]
LBB0_16:
neg w8, w9
str w8, [sp, #60]
Lloh7:
adrp x0, l_.str.2@PAGE
Lloh8:
add x0, x0, l_.str.2@PAGEOFF
add x1, sp, #60
mov w2, #6
bl _xerbla_
LBB0_17:
ldr x8, [sp, #72]
Lloh9:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh10:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_26
; %bb.18:
mov w0, #0
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
ldp x20, x19, [sp, #144] ; 16-byte Folded Reload
ldp x22, x21, [sp, #128] ; 16-byte Folded Reload
ldp x24, x23, [sp, #112] ; 16-byte Folded Reload
ldp x26, x25, [sp, #96] ; 16-byte Folded Reload
ldp x28, x27, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #176
ret
LBB0_19:
mov w9, #-1
b LBB0_15
LBB0_20:
mov w8, #1065353216
str w8, [x12]
b LBB0_17
LBB0_21:
stp x12, x13, [sp, #32] ; 16-byte Folded Spill
stp wzr, wzr, [sp, #52]
add x1, x13, w8, sxtw #3
add x3, sp, #52
add x4, sp, #56
add x5, sp, #60
mov x0, x25
mov x2, x26
LBB0_22: ; =>This Inner Loop Header: Depth=1
bl _clacn2_
ldr w8, [sp, #56]
cbz w8, LBB0_24
; %bb.23: ; in Loop: Header=BB0_22 Depth=1
cmp w8, w27
Lloh12:
adrp x8, l_.str.4@PAGE
Lloh13:
add x8, x8, l_.str.4@PAGEOFF
Lloh14:
adrp x9, l_.str.3@PAGE
Lloh15:
add x9, x9, l_.str.3@PAGEOFF
csel x0, x9, x8, eq
stp x25, x28, [sp, #8]
str x26, [sp]
mov x1, x25
Lloh16:
adrp x2, _c__1@PAGE
Lloh17:
add x2, x2, _c__1@PAGEOFF
mov x3, x24
mov x4, x23
mov x5, x22
mov x6, x21
mov x7, x20
bl _cgttrs_
ldrsw x8, [x25]
ldr x9, [sp, #40] ; 8-byte Folded Reload
add x8, x9, x8, lsl #3
add x1, x8, #8
add x3, sp, #52
add x4, sp, #56
add x5, sp, #60
mov x0, x25
mov x2, x26
b LBB0_22
LBB0_24:
ldr s0, [sp, #52]
fcmp s0, #0.0
ldr x8, [sp, #32] ; 8-byte Folded Reload
b.eq LBB0_17
; %bb.25:
fmov s1, #1.00000000
fdiv s0, s1, s0
ldr s1, [x19]
fdiv s0, s0, s1
str s0, [x8]
b LBB0_17
LBB0_26:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpAdd Lloh5, Lloh6
.loh AdrpAdd Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpAdd Lloh14, Lloh15
.loh AdrpAdd Lloh12, Lloh13
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "O"
l_.str.1: ; @.str.1
.asciz "I"
l_.str.2: ; @.str.2
.asciz "CGTCON"
l_.str.3: ; @.str.3
.asciz "No transpose"
.section __DATA,__data
.p2align 2 ; @c__1
_c__1:
.long 1 ; 0x1
.section __TEXT,__cstring,cstring_literals
l_.str.4: ; @.str.4
.asciz "Conjugate transpose"
.subsections_via_symbols
| the_stack_data/1188989.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function longlong_hexchars
_longlong_hexchars: ## @longlong_hexchars
.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 %rsi, %r14
testq %rdi, %rdi
je LBB0_1
## %bb.3:
movq %rdi, _longlong_hexchars.disbuf(%rip)
leaq _longlong_hexchars.disbuf(%rip), %rbx
movq %rbx, %rdi
callq _longlongendswap
movb $1, %dl
leaq _longlong_hexchars.disbuf+8(%rip), %rax
movq _hexlate@GOTPCREL(%rip), %rdi
.p2align 4, 0x90
LBB0_4: ## =>This Inner Loop Header: Depth=1
cmpq %rax, %rbx
jae LBB0_2
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movzbl (%rbx), %esi
incq %rbx
testq %rsi, %rsi
sete %cl
testb %cl, %dl
movb $1, %dl
jne LBB0_4
## %bb.6: ## in Loop: Header=BB0_4 Depth=1
movq %rsi, %rcx
shrq $4, %rcx
movq (%rdi), %rdx
movzbl (%rdx,%rcx,8), %ecx
movb %cl, (%r14)
movq (%rdi), %rcx
andl $15, %esi
movzbl (%rcx,%rsi,8), %ecx
movb %cl, 1(%r14)
addq $2, %r14
xorl %edx, %edx
jmp LBB0_4
LBB0_1:
movb $48, (%r14)
incq %r14
LBB0_2:
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_longlong_hexchars.disbuf,8,3 ## @longlong_hexchars.disbuf
.comm _hexlate,8,3 ## @hexlate
.no_dead_strip _longlong_hexchars
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function longlong_hexchars
_longlong_hexchars: ; @longlong_hexchars
.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
cbz x0, LBB0_5
; %bb.1:
Lloh0:
adrp x20, _longlong_hexchars.disbuf@PAGE
Lloh1:
add x20, x20, _longlong_hexchars.disbuf@PAGEOFF
str x0, [x20]
mov x0, x20
bl _longlongendswap
mov w8, #1
Lloh2:
adrp x9, _longlong_hexchars.disbuf@PAGE+8
Lloh3:
add x9, x9, _longlong_hexchars.disbuf@PAGEOFF+8
Lloh4:
adrp x10, _hexlate@GOTPAGE
Lloh5:
ldr x10, [x10, _hexlate@GOTPAGEOFF]
LBB0_2: ; =>This Inner Loop Header: Depth=1
cmp x20, x9
b.hs LBB0_6
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
ldrb w11, [x20], #1
cmp w11, #0
cset w12, eq
and w12, w8, w12
mov w8, #1
tbnz w12, #0, LBB0_2
; %bb.4: ; in Loop: Header=BB0_2 Depth=1
mov w8, #0
lsr w12, w11, #4
ldr x13, [x10]
ldr x12, [x13, w12, uxtw #3]
strb w12, [x19]
and w11, w11, #0xf
ldr x12, [x10]
ldr x11, [x12, w11, uxtw #3]
strb w11, [x19, #1]
add x19, x19, #2
b LBB0_2
LBB0_5:
mov w8, #48
strb w8, [x19], #1
LBB0_6:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_longlong_hexchars.disbuf,8,3 ; @longlong_hexchars.disbuf
.comm _hexlate,8,3 ; @hexlate
.no_dead_strip _longlong_hexchars
.subsections_via_symbols
| AnghaBench/freebsd/contrib/gdb/gdb/extr_monitor.c_longlong_hexchars.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _f1 ## -- Begin function f1
.p2align 4, 0x90
_f1: ## @f1
.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
.globl _f2 ## -- Begin function f2
.p2align 4, 0x90
_f2: ## @f2
.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
.globl _f3 ## -- Begin function f3
.p2align 4, 0x90
_f3: ## @f3
.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 _f1 ; -- Begin function f1
.p2align 2
_f1: ; @f1
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.globl _f2 ; -- Begin function f2
.p2align 2
_f2: ; @f2
.cfi_startproc
; %bb.0:
mov w0, #0
ret
.cfi_endproc
; -- End function
.globl _f3 ; -- Begin function f3
.p2align 2
_f3: ; @f3
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| the_stack_data/252387.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _AAS_HashEdge ## -- Begin function AAS_HashEdge
.p2align 4, 0x90
_AAS_HashEdge: ## @AAS_HashEdge
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cmpl %esi, %edi
movl %esi, %ecx
cmovll %edi, %ecx
cmovgl %edi, %esi
addl %esi, %ecx
movq _EDGE_HASH_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %eax
decl %eax
andl %ecx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EDGE_HASH_SIZE,4,2 ## @EDGE_HASH_SIZE
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _AAS_HashEdge ; -- Begin function AAS_HashEdge
.p2align 2
_AAS_HashEdge: ; @AAS_HashEdge
.cfi_startproc
; %bb.0:
cmp w0, w1
csel w8, w0, w1, lt
Lloh0:
adrp x9, _EDGE_HASH_SIZE@GOTPAGE
Lloh1:
ldr x9, [x9, _EDGE_HASH_SIZE@GOTPAGEOFF]
csel w10, w0, w1, gt
Lloh2:
ldr w9, [x9]
sub w9, w9, #1
add w8, w8, w10
and w0, w9, w8
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _EDGE_HASH_SIZE,4,2 ; @EDGE_HASH_SIZE
.subsections_via_symbols
| AnghaBench/Quake-III-Arena/code/bspc/extr_aas_store.c_AAS_HashEdge.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _usb_deregister_dev ## -- Begin function usb_deregister_dev
.p2align 4, 0x90
_usb_deregister_dev: ## @usb_deregister_dev
.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 (%rdi), %edx
cmpl $-1, %edx
je LBB0_1
## %bb.2:
movq %rdi, %rbx
addq $16, %rdi
leaq L_.str(%rip), %rsi
callq _dev_dbg
movq _usb_class@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl (%rax), %r14d
movq _USB_MAJOR@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl (%rbx), %esi
callq _MKDEV
movl %r14d, %edi
movl %eax, %esi
callq _device_destroy
movq _minor_rwsem@GOTPCREL(%rip), %r14
movq %r14, %rdi
callq _down_write
movq _usb_minors@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq (%rbx), %rcx
movq $0, (%rax,%rcx,8)
movq %r14, %rdi
callq _up_write
movq $0, 8(%rbx)
movl $-1, (%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp _destroy_usb_class ## TAILCALL
LBB0_1:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "removing %d minor\n"
.comm _usb_class,8,3 ## @usb_class
.comm _USB_MAJOR,4,2 ## @USB_MAJOR
.comm _minor_rwsem,4,2 ## @minor_rwsem
.comm _usb_minors,8,3 ## @usb_minors
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _usb_deregister_dev ; -- Begin function usb_deregister_dev
.p2align 2
_usb_deregister_dev: ; @usb_deregister_dev
.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
ldr w2, [x0]
cmn w2, #1
b.eq LBB0_2
; %bb.1:
mov x19, x0
add x0, x0, #16
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
bl _dev_dbg
Lloh2:
adrp x8, _usb_class@GOTPAGE
Lloh3:
ldr x8, [x8, _usb_class@GOTPAGEOFF]
Lloh4:
ldr x8, [x8]
ldr w20, [x8]
Lloh5:
adrp x8, _USB_MAJOR@GOTPAGE
Lloh6:
ldr x8, [x8, _USB_MAJOR@GOTPAGEOFF]
Lloh7:
ldr w0, [x8]
ldr w1, [x19]
bl _MKDEV
mov x1, x0
mov x0, x20
bl _device_destroy
Lloh8:
adrp x20, _minor_rwsem@GOTPAGE
Lloh9:
ldr x20, [x20, _minor_rwsem@GOTPAGEOFF]
mov x0, x20
bl _down_write
Lloh10:
adrp x8, _usb_minors@GOTPAGE
Lloh11:
ldr x8, [x8, _usb_minors@GOTPAGEOFF]
Lloh12:
ldr x8, [x8]
ldrsw x9, [x19]
str xzr, [x8, x9, lsl #3]
mov x0, x20
bl _up_write
str xzr, [x19, #8]
mov w8, #-1
str w8, [x19]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _destroy_usb_class
LBB0_2:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "removing %d minor\n"
.comm _usb_class,8,3 ; @usb_class
.comm _USB_MAJOR,4,2 ; @USB_MAJOR
.comm _minor_rwsem,4,2 ; @minor_rwsem
.comm _usb_minors,8,3 ; @usb_minors
.subsections_via_symbols
| AnghaBench/linux/drivers/usb/core/extr_file.c_usb_deregister_dev.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function iwl_mvm_query_wakeup_reasons
_iwl_mvm_query_wakeup_reasons: ## @iwl_mvm_query_wakeup_reasons
.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 _iwl_mvm_get_wakeup_status
movq %rax, %r14
movq %rax, %rdi
callq _IS_ERR_OR_NULL
testq %rax, %rax
je LBB0_1
## %bb.3:
addq $4, %rbx
movq %rbx, %rdi
callq _mutex_unlock
LBB0_2:
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
LBB0_1:
movq %r14, %rdi
callq _iwl_mvm_query_wakeup_reasons.cold.1
jmp LBB0_2
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function iwl_mvm_query_wakeup_reasons.cold.1
_iwl_mvm_query_wakeup_reasons.cold.1: ## @iwl_mvm_query_wakeup_reasons.cold.1
.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
movl 24(%rdi), %edi
callq _le16_to_cpu
movq 16(%rbx), %rax
movl (%rax), %edi
callq _le16_to_cpu
ud2
.cfi_endproc
## -- End function
.comm _IWL_MAX_TID_COUNT,4,2 ## @IWL_MAX_TID_COUNT
.comm _IWL_DEVICE_FAMILY_22000,8,3 ## @IWL_DEVICE_FAMILY_22000
.no_dead_strip _iwl_mvm_query_wakeup_reasons
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function iwl_mvm_query_wakeup_reasons
_iwl_mvm_query_wakeup_reasons: ; @iwl_mvm_query_wakeup_reasons
.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 _iwl_mvm_get_wakeup_status
mov x20, x0
bl _IS_ERR_OR_NULL
cbz x0, LBB0_2
; %bb.1:
add x0, x19, #4
bl _mutex_unlock
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_2:
mov x0, x20
bl _iwl_mvm_query_wakeup_reasons.cold.1
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function iwl_mvm_query_wakeup_reasons.cold.1
_iwl_mvm_query_wakeup_reasons.cold.1: ; @iwl_mvm_query_wakeup_reasons.cold.1
.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 w0, [x0, #24]
bl _le16_to_cpu
ldr x8, [x19, #16]
ldr w0, [x8]
bl _le16_to_cpu
brk #0x1
.cfi_endproc
; -- End function
.comm _IWL_MAX_TID_COUNT,4,2 ; @IWL_MAX_TID_COUNT
.comm _IWL_DEVICE_FAMILY_22000,8,3 ; @IWL_DEVICE_FAMILY_22000
.no_dead_strip _iwl_mvm_query_wakeup_reasons
.subsections_via_symbols
| AnghaBench/linux/drivers/net/wireless/intel/iwlwifi/mvm/extr_d3.c_iwl_mvm_query_wakeup_reasons.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _create_announce_request ## -- Begin function create_announce_request
.p2align 4, 0x90
_create_announce_request: ## @create_announce_request
.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 %rdi, %r13
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movq _ONION_ANNOUNCE_REQUEST_SIZE@GOTPCREL(%rip), %rdi
movl $-1, %eax
cmpq %rsi, (%rdi)
jg LBB0_4
## %bb.1:
movq %r9, %r15
movq %rcx, -56(%rbp) ## 8-byte Spill
movq %rsp, -80(%rbp) ## 8-byte Spill
movq _ONION_PING_ID_SIZE@GOTPCREL(%rip), %r12
movq _crypto_box_PUBLICKEYBYTES@GOTPCREL(%rip), %rax
movl (%rax), %ebx
addl %ebx, %ebx
addl (%r12), %ebx
movq _ONION_ANNOUNCE_SENDBACK_DATA_LENGTH@GOTPCREL(%rip), %rax
addl (%rax), %ebx
leaq (,%rbx,4), %rax
movq %r8, -72(%rbp) ## 8-byte Spill
movq %rdx, -64(%rbp) ## 8-byte Spill
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %r14
movl (%r12), %edx
movq %r14, %rdi
movq %r15, %rsi
callq _memcpy
movslq (%r12), %rax
leaq (%r14,%rax,4), %rdi
movq _crypto_box_PUBLICKEYBYTES@GOTPCREL(%rip), %r15
movl (%r15), %edx
movq 16(%rbp), %rsi
callq _memcpy
movslq (%r12), %rax
leaq (%r14,%rax,4), %rax
movslq (%r15), %rdx
leaq (%rax,%rdx,4), %rdi
movq 24(%rbp), %rsi
## kill: def $edx killed $edx killed $rdx
callq _memcpy
movslq (%r12), %rax
leaq (%r14,%rax,4), %rax
movslq (%r15), %rcx
leaq (%rax,%rcx,4), %rax
leaq (%rax,%rcx,4), %rdi
leaq 32(%rbp), %rsi
movl $4, %edx
callq _memcpy
movq _NET_PACKET_ANNOUNCE_REQUEST@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, (%r13)
leaq 4(%r13), %r15
movq %r15, %rdi
callq _random_nonce
shll $2, %ebx
movq _crypto_box_NONCEBYTES@GOTPCREL(%rip), %r12
movslq (%r12), %rax
leaq 4(,%rax,4), %rax
addq %r13, %rax
movq _crypto_box_PUBLICKEYBYTES@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
leaq (%rax,%rcx,4), %r9
movq -64(%rbp), %rdi ## 8-byte Reload
movq -72(%rbp), %rsi ## 8-byte Reload
movq %r15, %rdx
movq %r14, %rcx
movl %ebx, %r8d
movq _ONION_ANNOUNCE_REQUEST_SIZE@GOTPCREL(%rip), %rbx
callq _encrypt_data
## kill: def $eax killed $eax def $rax
movslq (%r12), %rcx
addl %ecx, %eax
movq _crypto_box_PUBLICKEYBYTES@GOTPCREL(%rip), %rdx
movl (%rdx), %edx
addl %edx, %eax
incl %eax
movslq %eax, %rsi
movl $-1, %eax
cmpq %rsi, (%rbx)
jne LBB0_3
## %bb.2:
leaq (%r15,%rcx,4), %rdi
movq -56(%rbp), %rsi ## 8-byte Reload
## kill: def $edx killed $edx killed $rdx
callq _memcpy
movl (%rbx), %eax
LBB0_3:
movq -80(%rbp), %rsp ## 8-byte Reload
LBB0_4:
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -48(%rbp), %rcx
jne LBB0_6
## %bb.5:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_6:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _ONION_ANNOUNCE_REQUEST_SIZE,8,3 ## @ONION_ANNOUNCE_REQUEST_SIZE
.comm _ONION_PING_ID_SIZE,4,2 ## @ONION_PING_ID_SIZE
.comm _crypto_box_PUBLICKEYBYTES,4,2 ## @crypto_box_PUBLICKEYBYTES
.comm _ONION_ANNOUNCE_SENDBACK_DATA_LENGTH,4,2 ## @ONION_ANNOUNCE_SENDBACK_DATA_LENGTH
.comm _NET_PACKET_ANNOUNCE_REQUEST,4,2 ## @NET_PACKET_ANNOUNCE_REQUEST
.comm _crypto_box_NONCEBYTES,4,2 ## @crypto_box_NONCEBYTES
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _create_announce_request ; -- Begin function create_announce_request
.p2align 2
_create_announce_request: ; @create_announce_request
.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, #32
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 x27, _ONION_ANNOUNCE_REQUEST_SIZE@GOTPAGE
Lloh4:
ldr x27, [x27, _ONION_ANNOUNCE_REQUEST_SIZE@GOTPAGEOFF]
ldr x8, [x27]
cmp x8, x1
b.le LBB0_2
; %bb.1:
mov w0, #-1
b LBB0_6
LBB0_2:
mov x24, x7
mov x25, x6
mov x21, x4
mov x22, x2
mov x20, x0
mov x8, sp
stp x3, x8, [x29, #-104] ; 16-byte Folded Spill
Lloh5:
adrp x19, _ONION_PING_ID_SIZE@GOTPAGE
Lloh6:
ldr x19, [x19, _ONION_PING_ID_SIZE@GOTPAGEOFF]
ldr w8, [x19]
Lloh7:
adrp x28, _crypto_box_PUBLICKEYBYTES@GOTPAGE
Lloh8:
ldr x28, [x28, _crypto_box_PUBLICKEYBYTES@GOTPAGEOFF]
ldr w9, [x28]
Lloh9:
adrp x10, _ONION_ANNOUNCE_SENDBACK_DATA_LENGTH@GOTPAGE
Lloh10:
ldr x10, [x10, _ONION_ANNOUNCE_SENDBACK_DATA_LENGTH@GOTPAGEOFF]
add w8, w8, w9, lsl #1
Lloh11:
ldr w9, [x10]
add w26, w8, w9
lsl x9, x26, #2
add x8, x9, #15
and x8, x8, #0x7fffffff0
Lloh12:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh13:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x9, sp
sub x23, x9, x8
mov sp, x23
ldr w2, [x19]
mov x0, x23
mov x1, x5
bl _memcpy
ldrsw x8, [x19]
add x0, x23, x8, lsl #2
ldr w2, [x28]
mov x1, x25
bl _memcpy
ldrsw x8, [x19]
add x8, x23, x8, lsl #2
ldrsw x2, [x28]
add x0, x8, x2, lsl #2
mov x1, x24
; kill: def $w2 killed $w2 killed $x2
bl _memcpy
ldrsw x8, [x19]
add x8, x23, x8, lsl #2
ldrsw x9, [x28]
lsl x9, x9, #2
add x8, x8, x9
add x0, x8, x9
add x1, x29, #16
mov w2, #4
bl _memcpy
Lloh14:
adrp x8, _NET_PACKET_ANNOUNCE_REQUEST@GOTPAGE
Lloh15:
ldr x8, [x8, _NET_PACKET_ANNOUNCE_REQUEST@GOTPAGEOFF]
Lloh16:
ldr w8, [x8]
str w8, [x20], #4
mov x0, x20
bl _random_nonce
lsl w4, w26, #2
Lloh17:
adrp x19, _crypto_box_NONCEBYTES@GOTPAGE
Lloh18:
ldr x19, [x19, _crypto_box_NONCEBYTES@GOTPAGEOFF]
ldrsw x8, [x19]
add x8, x20, x8, lsl #2
ldrsw x9, [x28]
add x5, x8, x9, lsl #2
mov x0, x22
mov x1, x21
mov x2, x20
mov x3, x23
bl _encrypt_data
ldrsw x8, [x19]
ldr w2, [x28]
add w9, w0, w8
add w9, w9, w2
add w9, w9, #1
ldr x10, [x27]
cmp x10, w9, sxtw
b.ne LBB0_4
; %bb.3:
add x0, x20, x8, lsl #2
ldur x1, [x29, #-104] ; 8-byte Folded Reload
bl _memcpy
ldr w0, [x27]
b LBB0_5
LBB0_4:
mov w0, #-1
LBB0_5:
ldur x8, [x29, #-96] ; 8-byte Folded Reload
mov sp, x8
LBB0_6:
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_8
; %bb.7:
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_8:
bl ___stack_chk_fail
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGot Lloh17, Lloh18
.loh AdrpLdrGotLdr Lloh14, Lloh15, Lloh16
.loh AdrpLdrGot Lloh12, Lloh13
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGot Lloh7, Lloh8
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh19, Lloh20, Lloh21
.cfi_endproc
; -- End function
.comm _ONION_ANNOUNCE_REQUEST_SIZE,8,3 ; @ONION_ANNOUNCE_REQUEST_SIZE
.comm _ONION_PING_ID_SIZE,4,2 ; @ONION_PING_ID_SIZE
.comm _crypto_box_PUBLICKEYBYTES,4,2 ; @crypto_box_PUBLICKEYBYTES
.comm _ONION_ANNOUNCE_SENDBACK_DATA_LENGTH,4,2 ; @ONION_ANNOUNCE_SENDBACK_DATA_LENGTH
.comm _NET_PACKET_ANNOUNCE_REQUEST,4,2 ; @NET_PACKET_ANNOUNCE_REQUEST
.comm _crypto_box_NONCEBYTES,4,2 ; @crypto_box_NONCEBYTES
.subsections_via_symbols
| AnghaBench/toxcore/toxcore/extr_onion_announce.c_create_announce_request.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function walk_in_the_forest
_walk_in_the_forest: ## @walk_in_the_forest
.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, -64(%rbp) ## 8-byte Spill
testq %rdi, %rdi
je LBB0_1
## %bb.2:
movq 24(%rdi), %rbx
jmp LBB0_3
LBB0_1:
xorl %ebx, %ebx
LBB0_3:
xorl %r13d, %r13d
testq %rsi, %rsi
je LBB0_4
## %bb.5:
movq 24(%rsi), %r14
jmp LBB0_6
LBB0_4:
xorl %r14d, %r14d
LBB0_6:
testq %rbx, %rbx
setne %cl
testq %r14, %r14
setne %al
movq %rbx, %rdx
orq %r14, %rdx
je LBB0_34
## %bb.7:
xorl %r13d, %r13d
jmp LBB0_8
.p2align 4, 0x90
LBB0_27: ## in Loop: Header=BB0_8 Depth=1
xorl %ebx, %ebx
LBB0_32: ## in Loop: Header=BB0_8 Depth=1
movq %rbx, %rdi
movq %r15, %rsi
movq -64(%rbp), %rdx ## 8-byte Reload
callq _compare_nodes
LBB0_33: ## in Loop: Header=BB0_8 Depth=1
movq -48(%rbp), %rbx ## 8-byte Reload
addl %eax, %r13d
testq %rbx, %rbx
setne %cl
testq %r12, %r12
setne %al
movq %rbx, %rdx
orq %r12, %rdx
movq %r12, %r14
je LBB0_34
LBB0_8: ## =>This Inner Loop Header: Depth=1
testb $1, %cl
je LBB0_11
## %bb.9: ## in Loop: Header=BB0_8 Depth=1
movq 16(%rbx), %r15
testb $1, %al
je LBB0_10
## %bb.13: ## in Loop: Header=BB0_8 Depth=1
movq (%r14), %rax
movq 16(%r14), %r12
movq (%rbx), %rcx
movq _F_DIR@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
cmpq %rdx, %rcx
jne LBB0_14
## %bb.16: ## in Loop: Header=BB0_8 Depth=1
cmpq %rcx, %rax
je LBB0_18
jmp LBB0_17
.p2align 4, 0x90
LBB0_11: ## in Loop: Header=BB0_8 Depth=1
testb $1, %al
je LBB0_12
## %bb.23: ## in Loop: Header=BB0_8 Depth=1
movq %r14, %r15
movq 16(%r14), %r14
testq %rbx, %rbx
je LBB0_25
LBB0_29: ## in Loop: Header=BB0_8 Depth=1
movl $0, %eax
movq %rax, -48(%rbp) ## 8-byte Spill
movq %r14, %r12
testq %r15, %r15
je LBB0_30
LBB0_20: ## in Loop: Header=BB0_8 Depth=1
movq (%rbx), %rax
movq _F_DIR@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_32
## %bb.21: ## in Loop: Header=BB0_8 Depth=1
cmpq %rax, (%r15)
jne LBB0_32
## %bb.22: ## in Loop: Header=BB0_8 Depth=1
movl 8(%rbx), %ecx
leaq -56(%rbp), %rdi
leaq L_.str(%rip), %rsi
movq -64(%rbp), %r14 ## 8-byte Reload
movq %r14, %rdx
callq _asprintf
movq -56(%rbp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq _walk_in_the_forest
movl %eax, -68(%rbp) ## 4-byte Spill
movq -56(%rbp), %rdi
callq _free
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq _compare_nodes
addl -68(%rbp), %eax ## 4-byte Folded Reload
jmp LBB0_33
.p2align 4, 0x90
LBB0_10: ## in Loop: Header=BB0_8 Depth=1
movq %r15, -48(%rbp) ## 8-byte Spill
xorl %r14d, %r14d
LBB0_30: ## in Loop: Header=BB0_8 Depth=1
movq (%rbx), %rax
movq _F_DIR@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_31
## %bb.35: ## in Loop: Header=BB0_8 Depth=1
movl 8(%rbx), %ecx
leaq -56(%rbp), %rdi
leaq L_.str(%rip), %rsi
movq -64(%rbp), %r12 ## 8-byte Reload
movq %r12, %rdx
callq _asprintf
movq -56(%rbp), %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq _walk_in_the_forest
movl %eax, %r15d
movq -56(%rbp), %rdi
callq _free
movq %rbx, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq _compare_nodes
addl %r15d, %eax
movq %r14, %r12
jmp LBB0_33
.p2align 4, 0x90
LBB0_12: ## in Loop: Header=BB0_8 Depth=1
xorl %r15d, %r15d
xorl %r14d, %r14d
testq %rbx, %rbx
jne LBB0_29
LBB0_25: ## in Loop: Header=BB0_8 Depth=1
movq %r14, %r12
xorl %eax, %eax
movq %rax, -48(%rbp) ## 8-byte Spill
jmp LBB0_26
.p2align 4, 0x90
LBB0_31: ## in Loop: Header=BB0_8 Depth=1
movq %r14, %r12
xorl %r15d, %r15d
jmp LBB0_32
LBB0_14: ## in Loop: Header=BB0_8 Depth=1
cmpq %rdx, %rax
jne LBB0_18
## %bb.15: ## in Loop: Header=BB0_8 Depth=1
movq %r15, -48(%rbp) ## 8-byte Spill
jmp LBB0_30
LBB0_18: ## in Loop: Header=BB0_8 Depth=1
movl 8(%rbx), %edi
movl 8(%r14), %esi
callq _strcmp
testl %eax, %eax
jle LBB0_19
LBB0_17: ## in Loop: Header=BB0_8 Depth=1
movq %rbx, -48(%rbp) ## 8-byte Spill
movq %r14, %r15
LBB0_26: ## in Loop: Header=BB0_8 Depth=1
movq (%r15), %rax
movq _F_DIR@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_27
## %bb.28: ## in Loop: Header=BB0_8 Depth=1
movl 8(%r15), %ecx
leaq -56(%rbp), %rdi
leaq L_.str(%rip), %rsi
movq -64(%rbp), %rbx ## 8-byte Reload
movq %rbx, %rdx
callq _asprintf
movq -56(%rbp), %rdx
xorl %edi, %edi
movq %r15, %rsi
callq _walk_in_the_forest
movl %eax, %r14d
movq -56(%rbp), %rdi
callq _free
xorl %edi, %edi
movq %r15, %rsi
movq %rbx, %rdx
callq _compare_nodes
addl %r14d, %eax
jmp LBB0_33
LBB0_19: ## in Loop: Header=BB0_8 Depth=1
movq %r15, -48(%rbp) ## 8-byte Spill
movq %r14, %r15
jne LBB0_30
jmp LBB0_20
LBB0_34:
movl %r13d, %eax
addq $40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _F_DIR,8,3 ## @F_DIR
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s%s/"
.no_dead_strip _walk_in_the_forest
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function walk_in_the_forest
_walk_in_the_forest: ; @walk_in_the_forest
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.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, x2
cbz x0, LBB0_3
; %bb.1:
ldr x22, [x0, #24]
cbz x1, LBB0_4
LBB0_2:
ldr x24, [x1, #24]
b LBB0_5
LBB0_3:
mov x22, #0
cbnz x1, LBB0_2
LBB0_4:
mov x24, #0
LBB0_5:
cmp x22, #0
cset w9, ne
cmp x24, #0
cset w8, ne
mov w20, #0
orr x10, x22, x24
cbz x10, LBB0_32
; %bb.6:
Lloh0:
adrp x25, _F_DIR@GOTPAGE
Lloh1:
ldr x25, [x25, _F_DIR@GOTPAGEOFF]
Lloh2:
adrp x21, l_.str@PAGE
Lloh3:
add x21, x21, l_.str@PAGEOFF
b LBB0_10
LBB0_7: ; in Loop: Header=BB0_10 Depth=1
mov x22, #0
LBB0_8: ; in Loop: Header=BB0_10 Depth=1
mov x0, x22
mov x1, x23
mov x2, x19
bl _compare_nodes
LBB0_9: ; in Loop: Header=BB0_10 Depth=1
add w20, w0, w20
cmp x26, #0
cset w9, ne
cmp x27, #0
cset w8, ne
mov x24, x27
mov x22, x26
orr x10, x26, x27
cbz x10, LBB0_32
LBB0_10: ; =>This Inner Loop Header: Depth=1
tbz w9, #0, LBB0_14
; %bb.11: ; in Loop: Header=BB0_10 Depth=1
ldr x26, [x22, #16]
tbz w8, #0, LBB0_20
; %bb.12: ; in Loop: Header=BB0_10 Depth=1
ldr x27, [x24, #16]
ldr x8, [x22]
ldr x10, [x25]
ldr x9, [x24]
cmp x8, x10
b.ne LBB0_26
; %bb.13: ; in Loop: Header=BB0_10 Depth=1
cmp x9, x8
b.eq LBB0_27
b LBB0_28
LBB0_14: ; in Loop: Header=BB0_10 Depth=1
tbz w8, #0, LBB0_23
; %bb.15: ; in Loop: Header=BB0_10 Depth=1
mov x23, x24
ldr x24, [x24, #16]
mov x26, #0
cbz x22, LBB0_24
LBB0_16: ; in Loop: Header=BB0_10 Depth=1
mov x27, x24
cbz x23, LBB0_21
LBB0_17: ; in Loop: Header=BB0_10 Depth=1
ldr x8, [x22]
ldr x9, [x25]
cmp x8, x9
b.ne LBB0_8
; %bb.18: ; in Loop: Header=BB0_10 Depth=1
ldr x9, [x23]
cmp x9, x8
b.ne LBB0_8
; %bb.19: ; in Loop: Header=BB0_10 Depth=1
ldr w3, [x22, #8]
add x0, sp, #8
mov x1, x21
mov x2, x19
bl _asprintf
ldr x2, [sp, #8]
mov x0, x22
mov x1, x23
bl _walk_in_the_forest
mov x24, x0
ldr x0, [sp, #8]
bl _free
mov x0, x22
mov x1, x23
mov x2, x19
bl _compare_nodes
add w0, w0, w24
b LBB0_9
LBB0_20: ; in Loop: Header=BB0_10 Depth=1
mov x24, #0
LBB0_21: ; in Loop: Header=BB0_10 Depth=1
ldr x8, [x22]
ldr x9, [x25]
cmp x8, x9
b.ne LBB0_25
; %bb.22: ; in Loop: Header=BB0_10 Depth=1
ldr w3, [x22, #8]
add x0, sp, #8
mov x1, x21
mov x2, x19
bl _asprintf
ldr x2, [sp, #8]
mov x0, x22
mov x1, #0
bl _walk_in_the_forest
mov x23, x0
ldr x0, [sp, #8]
bl _free
mov x0, x22
mov x1, #0
mov x2, x19
bl _compare_nodes
add w0, w0, w23
mov x27, x24
b LBB0_9
LBB0_23: ; in Loop: Header=BB0_10 Depth=1
mov x23, #0
mov x24, #0
mov x26, #0
cbnz x22, LBB0_16
LBB0_24: ; in Loop: Header=BB0_10 Depth=1
mov x27, x24
b LBB0_29
LBB0_25: ; in Loop: Header=BB0_10 Depth=1
mov x23, #0
mov x27, x24
b LBB0_8
LBB0_26: ; in Loop: Header=BB0_10 Depth=1
cmp x9, x10
b.eq LBB0_21
LBB0_27: ; in Loop: Header=BB0_10 Depth=1
ldr w0, [x22, #8]
ldr w1, [x24, #8]
bl _strcmp
cmp w0, #0
b.le LBB0_31
LBB0_28: ; in Loop: Header=BB0_10 Depth=1
mov x26, x22
mov x23, x24
LBB0_29: ; in Loop: Header=BB0_10 Depth=1
ldr x8, [x23]
ldr x9, [x25]
cmp x8, x9
b.ne LBB0_7
; %bb.30: ; in Loop: Header=BB0_10 Depth=1
ldr w3, [x23, #8]
add x0, sp, #8
mov x1, x21
mov x2, x19
bl _asprintf
ldr x2, [sp, #8]
mov x0, #0
mov x1, x23
bl _walk_in_the_forest
mov x22, x0
ldr x0, [sp, #8]
bl _free
mov x0, #0
mov x1, x23
mov x2, x19
bl _compare_nodes
add w0, w0, w22
b LBB0_9
LBB0_31: ; in Loop: Header=BB0_10 Depth=1
mov x23, x24
cbnz w0, LBB0_21
b LBB0_17
LBB0_32:
mov x0, x20
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
ldp x20, x19, [sp, #80] ; 16-byte Folded Reload
ldp x22, x21, [sp, #64] ; 16-byte Folded Reload
ldp x24, x23, [sp, #48] ; 16-byte Folded Reload
ldp x26, x25, [sp, #32] ; 16-byte Folded Reload
ldp x28, x27, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #112
ret
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _F_DIR,8,3 ; @F_DIR
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s%s/"
.no_dead_strip _walk_in_the_forest
.subsections_via_symbols
| AnghaBench/freebsd/contrib/mtree/extr_specspec.c_walk_in_the_forest.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function sdhci_tegra_cqhci_irq
_sdhci_tegra_cqhci_irq: ## @sdhci_tegra_cqhci_irq
.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 $16, %rsp
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movl %esi, %ebx
movq %rdi, %r14
movl $0, -24(%rbp)
movl $0, -20(%rbp)
leaq -24(%rbp), %rdx
leaq -20(%rbp), %rcx
callq _sdhci_cqe_irq
testl %eax, %eax
je LBB0_2
## %bb.1:
movl (%r14), %edi
movl -24(%rbp), %edx
movl -20(%rbp), %ecx
movl %ebx, %esi
callq _cqhci_irq
xorl %ebx, %ebx
LBB0_2:
movl %ebx, %eax
addq $16, %rsp
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _sdhci_tegra_cqhci_irq
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function sdhci_tegra_cqhci_irq
_sdhci_tegra_cqhci_irq: ; @sdhci_tegra_cqhci_irq
.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 x19, x1
mov x20, x0
str xzr, [sp, #8]
add x2, sp, #12
add x3, sp, #8
bl _sdhci_cqe_irq
cbz w0, LBB0_2
; %bb.1:
ldr w0, [x20]
ldp w3, w2, [sp, #8]
mov x1, x19
bl _cqhci_irq
mov w19, #0
LBB0_2:
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
.no_dead_strip _sdhci_tegra_cqhci_irq
.subsections_via_symbols
| AnghaBench/linux/drivers/mmc/host/extr_sdhci-tegra.c_sdhci_tegra_cqhci_irq.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vivid_vid_cap_g_parm ## -- Begin function vivid_vid_cap_g_parm
.p2align 4, 0x90
_vivid_vid_cap_g_parm: ## @vivid_vid_cap_g_parm
.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 %rdx, %rbx
callq _video_drvdata
movq (%rbx), %rcx
cmpq $0, 8(%rax)
jne LBB0_1
## %bb.2:
movq _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rdx
cmpq (%rdx), %rcx
je LBB0_5
LBB0_4:
movq _EINVAL@GOTPCREL(%rip), %rcx
xorl %eax, %eax
subl (%rcx), %eax
jmp LBB0_6
LBB0_1:
movq _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %rdx
cmpq (%rdx), %rcx
jne LBB0_4
LBB0_5:
movq _V4L2_CAP_TIMEPERFRAME@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl %ecx, 16(%rbx)
movl (%rax), %eax
movl %eax, 12(%rbx)
movl $1, 8(%rbx)
xorl %eax, %eax
LBB0_6:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
.comm _V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
.comm _EINVAL,4,2 ## @EINVAL
.comm _V4L2_CAP_TIMEPERFRAME,4,2 ## @V4L2_CAP_TIMEPERFRAME
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vivid_vid_cap_g_parm ; -- Begin function vivid_vid_cap_g_parm
.p2align 2
_vivid_vid_cap_g_parm: ; @vivid_vid_cap_g_parm
.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, x2
bl _video_drvdata
ldr x9, [x19]
ldr x10, [x0, #8]
Lloh0:
adrp x11, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh1:
ldr x11, [x11, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
Lloh2:
adrp x12, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh3:
ldr x12, [x12, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
cmp x10, #0
csel x10, x12, x11, eq
ldr x10, [x10]
cmp x9, x10
b.ne LBB0_2
; %bb.1:
mov x8, x0
mov w0, #0
Lloh4:
adrp x9, _V4L2_CAP_TIMEPERFRAME@GOTPAGE
Lloh5:
ldr x9, [x9, _V4L2_CAP_TIMEPERFRAME@GOTPAGEOFF]
Lloh6:
ldr w9, [x9]
str w9, [x19, #16]
ldr w8, [x8]
mov w9, #1
stp w9, w8, [x19, #8]
b LBB0_3
LBB0_2:
Lloh7:
adrp x8, _EINVAL@GOTPAGE
Lloh8:
ldr x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
ldr w8, [x8]
neg w0, w8
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.cfi_endproc
; -- End function
.comm _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
.comm _V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
.comm _EINVAL,4,2 ; @EINVAL
.comm _V4L2_CAP_TIMEPERFRAME,4,2 ; @V4L2_CAP_TIMEPERFRAME
.subsections_via_symbols
| AnghaBench/linux/drivers/media/platform/vivid/extr_vivid-vid-cap.c_vivid_vid_cap_g_parm.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
movl $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 _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
mov w0, #4
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| the_stack_data/111077531.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sub_string ## -- Begin function sub_string
.p2align 4, 0x90
_sub_string: ## @sub_string
.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
movl %edx, %r12d
movl %esi, %r15d
movq %rdi, %r14
movl %edx, %eax
subl %esi, %eax
incl %eax
movslq %eax, %rdi
callq _malloc
subl %r15d, %r12d
jle LBB0_5
## %bb.1:
movb (%r14), %cl
movslq %r15d, %rdx
addq %r14, %rdx
xorl %esi, %esi
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
testb %cl, %cl
je LBB0_5
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movzbl (%rdx,%rsi), %ebx
movb %bl, (%rax,%rsi)
incq %rsi
cmpl %esi, %r12d
jne LBB0_2
## %bb.4:
addq %rsi, %rax
LBB0_5:
movb $0, (%rax)
movslq %r12d, %rcx
subq %rcx, %rax
popq %rbx
popq %r12
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 _sub_string ; -- Begin function sub_string
.p2align 2
_sub_string: ; @sub_string
.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 x21, x2
mov x19, x1
mov x20, x0
subs w8, w2, w1
add w8, w8, #1
sxtw x0, w8
bl _malloc
subs w8, w21, w19
b.le LBB0_5
; %bb.1:
mov x9, #0
ldrb w10, [x20]
add x11, x20, w19, sxtw
LBB0_2: ; =>This Inner Loop Header: Depth=1
cbz w10, LBB0_5
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
ldrb w12, [x11, x9]
strb w12, [x0, x9]
add x9, x9, #1
cmp w8, w9
b.ne LBB0_2
; %bb.4:
add x0, x0, x9
LBB0_5:
strb wzr, [x0]
sub x0, x0, w8, sxtw
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
| the_stack_data/193892931.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _svn_client__elide_mergeinfo ## -- Begin function svn_client__elide_mergeinfo
.p2align 4, 0x90
_svn_client__elide_mergeinfo: ## @svn_client__elide_mergeinfo
.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 %rcx, %r15
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
callq _svn_dirent_is_absolute
movl %eax, %edi
callq _SVN_ERR_ASSERT
testq %rbx, %rbx
je LBB0_3
## %bb.1:
movq %rbx, %rdi
callq _svn_dirent_is_absolute
xorl %edi, %edi
testl %eax, %eax
setne %dil
callq _SVN_ERR_ASSERT
movq %r12, %rdi
movq %rbx, %rsi
callq _strcmp
testq %rax, %rax
jne LBB0_4
jmp LBB0_2
LBB0_3:
movl $1, %edi
callq _SVN_ERR_ASSERT
LBB0_4:
movq $0, -48(%rbp)
movq _svn_mergeinfo_explicit@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq _FALSE@GOTPCREL(%rip), %r13
movl (%r13), %eax
leaq -56(%rbp), %rdi
xorl %esi, %esi
movq %r12, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r15
pushq %r15
pushq %r14
pushq %rax
callq _svn_client__get_wc_mergeinfo
addq $32, %rsp
testq %rax, %rax
je LBB0_7
LBB0_5:
movq (%rax), %rcx
movq _SVN_ERR_MERGEINFO_PARSE_ERROR@GOTPCREL(%rip), %rdx
cmpq (%rdx), %rcx
jne LBB0_16
## %bb.6:
movq %rax, %rdi
callq _svn_error_clear
jmp LBB0_2
LBB0_16:
movq %rax, %rdi
callq _svn_error_trace
jmp LBB0_17
LBB0_7:
cmpq $0, -56(%rbp)
je LBB0_2
## %bb.8:
movq _svn_mergeinfo_nearest_ancestor@GOTPCREL(%rip), %rax
movl (%rax), %edx
movl (%r13), %eax
leaq -48(%rbp), %rdi
xorl %esi, %esi
movq %r12, %rcx
movq %rbx, %r8
xorl %r9d, %r9d
pushq %r15
pushq %r15
pushq %r14
pushq %rax
callq _svn_client__get_wc_mergeinfo
addq $32, %rsp
testq %rax, %rax
jne LBB0_5
## %bb.9:
movq _svn_mergeinfo_nearest_ancestor@GOTPCREL(%rip), %rdx
movq -48(%rbp), %rdi
testq %rbx, %rbx
jne LBB0_13
## %bb.10:
testq %rdi, %rdi
jne LBB0_13
## %bb.11:
movq _TRUE@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movl (%rdx), %r8d
subq $8, %rsp
leaq -48(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %r9d, %r9d
pushq %r15
pushq %r14
pushq %r12
callq _svn_client__get_wc_or_repos_mergeinfo
addq $32, %rsp
testq %rax, %rax
jne LBB0_5
## %bb.12:
movq -48(%rbp), %rdi
LBB0_13:
testq %rbx, %rbx
je LBB0_15
## %bb.14:
testq %rdi, %rdi
je LBB0_2
LBB0_15:
movq -56(%rbp), %rsi
movq %r12, %rdx
movq %r14, %rcx
movq %r15, %r8
callq _elide_mergeinfo
movl %eax, %edi
callq _SVN_ERR
LBB0_2:
movq _SVN_NO_ERROR@GOTPCREL(%rip), %rax
movq (%rax), %rax
LBB0_17:
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _svn_mergeinfo_explicit,4,2 ## @svn_mergeinfo_explicit
.comm _FALSE,4,2 ## @FALSE
.comm _SVN_ERR_MERGEINFO_PARSE_ERROR,8,3 ## @SVN_ERR_MERGEINFO_PARSE_ERROR
.comm _SVN_NO_ERROR,8,3 ## @SVN_NO_ERROR
.comm _svn_mergeinfo_nearest_ancestor,4,2 ## @svn_mergeinfo_nearest_ancestor
.comm _TRUE,4,2 ## @TRUE
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _svn_client__elide_mergeinfo ; -- Begin function svn_client__elide_mergeinfo
.p2align 2
_svn_client__elide_mergeinfo: ; @svn_client__elide_mergeinfo
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
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
mov x19, x3
mov x20, x2
mov x22, x1
mov x21, x0
bl _svn_dirent_is_absolute
bl _SVN_ERR_ASSERT
cbz x22, LBB0_2
; %bb.1:
mov x0, x22
bl _svn_dirent_is_absolute
cmp w0, #0
cset w0, ne
bl _SVN_ERR_ASSERT
mov x0, x21
mov x1, x22
bl _strcmp
cbnz x0, LBB0_3
b LBB0_16
LBB0_2:
mov w0, #1
bl _SVN_ERR_ASSERT
LBB0_3:
str xzr, [sp, #16]
Lloh0:
adrp x8, _svn_mergeinfo_explicit@GOTPAGE
Lloh1:
ldr x8, [x8, _svn_mergeinfo_explicit@GOTPAGEOFF]
Lloh2:
ldr w2, [x8]
Lloh3:
adrp x24, _FALSE@GOTPAGE
Lloh4:
ldr x24, [x24, _FALSE@GOTPAGEOFF]
ldr w6, [x24]
stp x19, x19, [sp]
add x0, sp, #24
mov x1, #0
mov x3, x21
mov x4, #0
mov x5, #0
mov x7, x20
bl _svn_client__get_wc_mergeinfo
cbz x0, LBB0_7
LBB0_4:
ldr x8, [x0]
Lloh5:
adrp x9, _SVN_ERR_MERGEINFO_PARSE_ERROR@GOTPAGE
Lloh6:
ldr x9, [x9, _SVN_ERR_MERGEINFO_PARSE_ERROR@GOTPAGEOFF]
Lloh7:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_6
; %bb.5:
bl _svn_error_clear
b LBB0_16
LBB0_6:
bl _svn_error_trace
b LBB0_17
LBB0_7:
ldr x8, [sp, #24]
cbz x8, LBB0_16
; %bb.8:
Lloh8:
adrp x23, _svn_mergeinfo_nearest_ancestor@GOTPAGE
Lloh9:
ldr x23, [x23, _svn_mergeinfo_nearest_ancestor@GOTPAGEOFF]
ldr w2, [x23]
ldr w6, [x24]
stp x19, x19, [sp]
add x0, sp, #16
mov x1, #0
mov x3, x21
mov x4, x22
mov x5, #0
mov x7, x20
bl _svn_client__get_wc_mergeinfo
cbnz x0, LBB0_4
; %bb.9:
ldr x0, [sp, #16]
cbnz x22, LBB0_13
; %bb.10:
cbnz x0, LBB0_13
; %bb.11:
Lloh10:
adrp x8, _TRUE@GOTPAGE
Lloh11:
ldr x8, [x8, _TRUE@GOTPAGEOFF]
Lloh12:
ldr w3, [x8]
ldr w4, [x23]
str x19, [sp]
add x0, sp, #16
mov x1, #0
mov x2, #0
mov x5, #0
mov x6, x21
mov x7, x20
bl _svn_client__get_wc_or_repos_mergeinfo
cbnz x0, LBB0_4
; %bb.12:
ldr x0, [sp, #16]
LBB0_13:
cbz x22, LBB0_15
; %bb.14:
cbz x0, LBB0_16
LBB0_15:
ldr x1, [sp, #24]
mov x2, x21
mov x3, x20
mov x4, x19
bl _elide_mergeinfo
bl _SVN_ERR
LBB0_16:
Lloh13:
adrp x8, _SVN_NO_ERROR@GOTPAGE
Lloh14:
ldr x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh15:
ldr x0, [x8]
LBB0_17:
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
add sp, sp, #96
ret
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.cfi_endproc
; -- End function
.comm _svn_mergeinfo_explicit,4,2 ; @svn_mergeinfo_explicit
.comm _FALSE,4,2 ; @FALSE
.comm _SVN_ERR_MERGEINFO_PARSE_ERROR,8,3 ; @SVN_ERR_MERGEINFO_PARSE_ERROR
.comm _SVN_NO_ERROR,8,3 ; @SVN_NO_ERROR
.comm _svn_mergeinfo_nearest_ancestor,4,2 ; @svn_mergeinfo_nearest_ancestor
.comm _TRUE,4,2 ; @TRUE
.subsections_via_symbols
| AnghaBench/freebsd/contrib/subversion/subversion/libsvn_client/extr_mergeinfo.c_svn_client__elide_mergeinfo.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function mousevsc_on_receive
_mousevsc_on_receive: ## @mousevsc_on_receive
.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
callq _hv_get_drvdata
movq %rax, %r14
movl (%rbx), %eax
shll $3, %eax
movslq %eax, %r15
movq (%r15,%rbx), %rax
movq _PIPE_MESSAGE_DATA@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_10
## %bb.1:
addq %rbx, %r15
movq 16(%r15), %rbx
movl (%rbx), %esi
cmpl $130, %esi
je LBB0_6
## %bb.2:
cmpl $129, %esi
je LBB0_7
## %bb.3:
cmpl $128, %esi
jne LBB0_9
## %bb.4:
movslq 8(%r15), %rdx
addq $23, %rdx
cmpq $5, %rdx
jb LBB0_5
## %bb.11:
movl $1, %edi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _WARN_ON ## TAILCALL
LBB0_6:
xorl %edi, %edi
cmpl $4, 8(%r15)
setb %dil
callq _WARN_ON
movq 16(%r15), %rsi
movq %r14, %rdi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _mousevsc_on_receive_device_info ## TAILCALL
LBB0_7:
cmpl $0, 20(%r14)
je LBB0_10
## %bb.8:
movl 8(%rbx), %edi
movl $8, %esi
callq _min
movq %rax, %r15
movq 8(%r14), %rdi
movq (%rbx), %rsi
movq %rax, %rdx
callq _memcpy
movl 16(%r14), %edi
movq _HID_INPUT_REPORT@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq 8(%r14), %rdx
movq %r15, %rcx
movl $1, %r8d
callq _hid_input_report
movq (%r14), %rdi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _pm_wakeup_hard_event ## TAILCALL
LBB0_10:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
LBB0_9:
movl 4(%rbx), %edx
leaq L_.str(%rip), %rdi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _pr_err ## TAILCALL
LBB0_5:
leaq 28(%r14), %rdi
movq %r15, %rsi
callq _memcpy
addq $24, %r14
movq %r14, %rdi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _complete ## TAILCALL
.cfi_endproc
## -- End function
.comm _PIPE_MESSAGE_DATA,8,3 ## @PIPE_MESSAGE_DATA
.comm _HID_INPUT_REPORT,4,2 ## @HID_INPUT_REPORT
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "unsupported hid msg type - type %d len %d\n"
.no_dead_strip _mousevsc_on_receive
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function mousevsc_on_receive
_mousevsc_on_receive: ; @mousevsc_on_receive
.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
bl _hv_get_drvdata
ldr w8, [x20]
lsl w8, w8, #3
add x20, x20, w8, sxtw
ldr x8, [x20]
Lloh0:
adrp x9, _PIPE_MESSAGE_DATA@GOTPAGE
Lloh1:
ldr x9, [x9, _PIPE_MESSAGE_DATA@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_9
; %bb.1:
mov x19, x0
ldr x21, [x20, #16]
ldr w1, [x21]
cmp w1, #130
b.eq LBB0_6
; %bb.2:
cmp w1, #129
b.eq LBB0_7
; %bb.3:
cmp w1, #128
b.ne LBB0_10
; %bb.4:
ldrsw x8, [x20, #8]
add x2, x8, #23
cmp x2, #5
b.lo LBB0_11
; %bb.5:
mov w0, #1
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 _WARN_ON
LBB0_6:
ldr w8, [x20, #8]
cmp w8, #4
cset w0, lo
bl _WARN_ON
ldr x1, [x20, #16]
mov x0, 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 _mousevsc_on_receive_device_info
LBB0_7:
ldr w8, [x19, #20]
cbz w8, LBB0_9
; %bb.8:
ldr w0, [x21, #8]
mov w1, #8
bl _min
mov x20, x0
ldr x0, [x19, #8]
ldr x1, [x21]
mov x2, x20
bl _memcpy
ldr w0, [x19, #16]
Lloh3:
adrp x8, _HID_INPUT_REPORT@GOTPAGE
Lloh4:
ldr x8, [x8, _HID_INPUT_REPORT@GOTPAGEOFF]
Lloh5:
ldr w1, [x8]
ldr x2, [x19, #8]
mov x3, x20
mov w4, #1
bl _hid_input_report
ldr x0, [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 _pm_wakeup_hard_event
LBB0_9:
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_10:
ldr w2, [x21, #4]
Lloh6:
adrp x0, l_.str@PAGE
Lloh7:
add x0, x0, l_.str@PAGEOFF
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 _pr_err
LBB0_11:
add x0, x19, #28
mov x1, x20
bl _memcpy
add x0, x19, #24
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 _complete
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpAdd Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _PIPE_MESSAGE_DATA,8,3 ; @PIPE_MESSAGE_DATA
.comm _HID_INPUT_REPORT,4,2 ; @HID_INPUT_REPORT
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "unsupported hid msg type - type %d len %d\n"
.no_dead_strip _mousevsc_on_receive
.subsections_via_symbols
| AnghaBench/linux/drivers/hid/extr_hid-hyperv.c_mousevsc_on_receive.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _canonical_type_variant ## -- Begin function canonical_type_variant
.p2align 4, 0x90
_canonical_type_variant: ## @canonical_type_variant
.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 %edi, %ebx
callq _TYPE_MAIN_VARIANT
movl %eax, %r14d
movl %ebx, %edi
callq _cp_type_quals
movl %r14d, %edi
movl %eax, %esi
popq %rbx
popq %r14
popq %rbp
jmp _cp_build_qualified_type ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _canonical_type_variant ; -- Begin function canonical_type_variant
.p2align 2
_canonical_type_variant: ; @canonical_type_variant
.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 _TYPE_MAIN_VARIANT
mov x20, x0
mov x0, x19
bl _cp_type_quals
mov x1, x0
mov x0, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _cp_build_qualified_type
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/freebsd/contrib/gcc/cp/extr_tree.c_canonical_type_variant.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function vt8623fb_release
_vt8623fb_release: ## @vt8623fb_release
.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
leaq 4(%rbx), %r14
movq %r14, %rdi
callq _mutex_lock
movl (%rbx), %eax
cmpl $1, %eax
je LBB0_3
## %bb.1:
testl %eax, %eax
jne LBB0_4
## %bb.2:
movq %r14, %rdi
callq _mutex_unlock
movq _EINVAL@GOTPCREL(%rip), %rcx
xorl %eax, %eax
subl (%rcx), %eax
jmp LBB0_5
LBB0_3:
leaq 8(%rbx), %rdi
callq _restore_vga
movl (%rbx), %eax
LBB0_4:
decl %eax
movl %eax, (%rbx)
movq %r14, %rdi
callq _mutex_unlock
xorl %eax, %eax
LBB0_5:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EINVAL,4,2 ## @EINVAL
.no_dead_strip _vt8623fb_release
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function vt8623fb_release
_vt8623fb_release: ; @vt8623fb_release
.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
ldr x20, [x0]
add x19, x20, #4
mov x0, x19
bl _mutex_lock
ldr w8, [x20]
cmp w8, #1
b.eq LBB0_3
; %bb.1:
cbnz w8, LBB0_4
; %bb.2:
mov x0, x19
bl _mutex_unlock
Lloh0:
adrp x8, _EINVAL@GOTPAGE
Lloh1:
ldr x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
neg w0, w8
b LBB0_5
LBB0_3:
add x0, x20, #8
bl _restore_vga
ldr w8, [x20]
LBB0_4:
sub w8, w8, #1
str w8, [x20]
mov x0, x19
bl _mutex_unlock
mov w0, #0
LBB0_5:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _EINVAL,4,2 ; @EINVAL
.no_dead_strip _vt8623fb_release
.subsections_via_symbols
| AnghaBench/linux/drivers/video/fbdev/extr_vt8623fb.c_vt8623fb_release.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _dev_addr_flush ## -- Begin function dev_addr_flush
.p2align 4, 0x90
_dev_addr_flush: ## @dev_addr_flush
.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
addq $8, %rdi
callq ___hw_addr_flush
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 _dev_addr_flush ; -- Begin function dev_addr_flush
.p2align 2
_dev_addr_flush: ; @dev_addr_flush
.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
add x0, x0, #8
bl ___hw_addr_flush
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/linux/net/core/extr_dev_addr_lists.c_dev_addr_flush.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function hpet_find_irq_rid
_hpet_find_irq_rid: ## @hpet_find_irq_rid
.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 _SYS_RES_IRQ@GOTPCREL(%rip), %rax
movl (%rax), %esi
xorl %ebx, %ebx
leaq -48(%rbp), %rcx
xorl %edx, %edx
xorl %r8d, %r8d
callq _bus_get_resource
testl %eax, %eax
jne LBB0_5
## %bb.1:
xorl %ebx, %ebx
leaq -48(%rbp), %r13
jmp LBB0_2
.p2align 4, 0x90
LBB0_4: ## in Loop: Header=BB0_2 Depth=1
incl %ebx
movq _SYS_RES_IRQ@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl %r12d, %edi
movl %ebx, %edx
movq %r13, %rcx
xorl %r8d, %r8d
callq _bus_get_resource
testl %eax, %eax
jne LBB0_5
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq -48(%rbp), %rax
cmpq %r15, %rax
jl LBB0_4
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
cmpq %r14, %rax
jg LBB0_4
LBB0_5:
movl %ebx, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _SYS_RES_IRQ,4,2 ## @SYS_RES_IRQ
.no_dead_strip _hpet_find_irq_rid
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function hpet_find_irq_rid
_hpet_find_irq_rid: ; @hpet_find_irq_rid
.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 x23, _SYS_RES_IRQ@GOTPAGE
Lloh1:
ldr x23, [x23, _SYS_RES_IRQ@GOTPAGEOFF]
ldr w1, [x23]
add x3, sp, #8
mov w2, #0
mov x4, #0
bl _bus_get_resource
mov w22, #0
cbnz w0, LBB0_4
; %bb.1:
mov w22, #0
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
cmp x8, x20
ccmp x8, x19, #0, ge
b.le LBB0_4
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
add w22, w22, #1
ldr w1, [x23]
add x3, sp, #8
mov x0, x21
mov x2, x22
mov x4, #0
bl _bus_get_resource
cbz w0, LBB0_2
LBB0_4:
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
add sp, sp, #80
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _SYS_RES_IRQ,4,2 ; @SYS_RES_IRQ
.no_dead_strip _hpet_find_irq_rid
.subsections_via_symbols
| AnghaBench/freebsd/sys/dev/acpica/extr_acpi_hpet.c_hpet_find_irq_rid.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _createStack ## -- Begin function createStack
.p2align 4, 0x90
_createStack: ## @createStack
.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 %edi, %r14d
movl $16, %edi
callq _malloc
movq %rax, %rbx
movl $-1, (%rax)
movl %r14d, 4(%rax)
movslq %r14d, %rdi
callq _malloc
movq %rax, 8(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _push ## -- Begin function push
.p2align 4, 0x90
_push: ## @push
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movslq (%rdi), %rax
movl 4(%rdi), %ecx
decl %ecx
cmpl %ecx, %eax
je LBB1_2
## %bb.1:
movq 8(%rdi), %rcx
leaq 1(%rax), %rdx
movl %edx, (%rdi)
movb %sil, 1(%rcx,%rax)
LBB1_2:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _pop ## -- Begin function pop
.p2align 4, 0x90
_pop: ## @pop
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movslq (%rdi), %rax
cmpq $-1, %rax
je LBB2_1
## %bb.2:
movq 8(%rdi), %rcx
leal -1(%rax), %edx
movl %edx, (%rdi)
movb (%rcx,%rax), %al
jmp LBB2_3
LBB2_1:
movb $-1, %al
LBB2_3:
movsbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _prec ## -- Begin function prec
.p2align 4, 0x90
_prec: ## @prec
.cfi_startproc
## %bb.0:
## kill: def $edi killed $edi def $rdi
leal -42(%rdi), %ecx
cmpl $5, %ecx
ja LBB3_1
## %bb.3:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $1, %eax
leaq LJTI3_0(%rip), %rdx
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
popq %rbp
jmpq *%rcx
LBB3_4:
movl $2, %eax
retq
LBB3_1:
cmpl $94, %edi
jne LBB3_5
## %bb.2:
movl $3, %eax
retq
LBB3_5:
movl $-1, %eax
LBB3_6:
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L3_0_set_4, LBB3_4-LJTI3_0
.set L3_0_set_6, LBB3_6-LJTI3_0
.set L3_0_set_5, LBB3_5-LJTI3_0
LJTI3_0:
.long L3_0_set_4
.long L3_0_set_6
.long L3_0_set_5
.long L3_0_set_6
.long L3_0_set_5
.long L3_0_set_4
.end_data_region
## -- End function
.section __TEXT,__literal16,16byte_literals
.p2align 4 ## -- Begin function infixtopost
LCPI4_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 _infixtopost
.p2align 4, 0x90
_infixtopost: ## @infixtopost
.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 $72, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %r12
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
callq _strlen
movq %rax, %rbx
movl %ebx, %eax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %r14
movslq %ebx, %rdi
callq _malloc
movb (%r12), %cl
testb %cl, %cl
je LBB4_1
## %bb.17:
decl %ebx
xorl %r13d, %r13d
movl $-1, %esi
movl $-1, %edi
movq %rbx, %r9
movl $-1, %ebx
movl $-1, %r8d
xorl %r15d, %r15d
movq %r14, -88(%rbp) ## 8-byte Spill
movq %rax, -80(%rbp) ## 8-byte Spill
movq %r12, -72(%rbp) ## 8-byte Spill
movq %r9, -64(%rbp) ## 8-byte Spill
jmp LBB4_18
.p2align 4, 0x90
LBB4_19: ## in Loop: Header=BB4_18 Depth=1
movslq %r15d, %rdx
incl %r15d
movb %cl, (%r14,%rdx)
LBB4_20: ## in Loop: Header=BB4_18 Depth=1
movb 1(%r12,%r13), %cl
incq %r13
testb %cl, %cl
je LBB4_4
LBB4_18: ## =>This Loop Header: Depth=1
## Child Loop BB4_38 Depth 2
## Child Loop BB4_30 Depth 2
movl %ecx, %edx
andb $-33, %dl
addb $-65, %dl
cmpb $25, %dl
jbe LBB4_19
## %bb.21: ## in Loop: Header=BB4_18 Depth=1
cmpb $41, %cl
je LBB4_28
## %bb.22: ## in Loop: Header=BB4_18 Depth=1
cmpb $40, %cl
jne LBB4_35
## %bb.23: ## in Loop: Header=BB4_18 Depth=1
cmpl %r9d, %ebx
jne LBB4_25
## %bb.24: ## in Loop: Header=BB4_18 Depth=1
movl %r9d, %ebx
movl %r9d, %r8d
jmp LBB4_20
LBB4_28: ## in Loop: Header=BB4_18 Depth=1
cmpl $-1, %r8d
je LBB4_33
## %bb.29: ## in Loop: Header=BB4_18 Depth=1
movslq %r15d, %rcx
movslq %r8d, %rsi
leaq (%rax,%rsi), %rbx
notq %rsi
addq %r14, %rcx
xorl %edi, %edi
.p2align 4, 0x90
LBB4_30: ## Parent Loop BB4_18 Depth=1
## => This Inner Loop Header: Depth=2
movzbl (%rbx,%rdi), %edx
cmpb $40, %dl
je LBB4_34
## %bb.31: ## in Loop: Header=BB4_30 Depth=2
movb %dl, (%rcx)
decq %rdi
incq %rcx
cmpq %rdi, %rsi
jne LBB4_30
## %bb.32: ## in Loop: Header=BB4_18 Depth=1
subl %edi, %r15d
movl $-1, %esi
movl $-1, %edi
movl $-1, %ebx
LBB4_33: ## in Loop: Header=BB4_18 Depth=1
movl $-1, %r8d
jmp LBB4_20
LBB4_35: ## in Loop: Header=BB4_18 Depth=1
cmpl $-1, %edi
je LBB4_36
## %bb.37: ## in Loop: Header=BB4_18 Depth=1
movsbl %cl, %r11d
movq %rdi, %rdx
movslq %r15d, %rdi
movslq %edx, %rbx
movq %r15, -104(%rbp) ## 8-byte Spill
movq %rdx, -96(%rbp) ## 8-byte Spill
leal 1(%r15,%rdx), %edx
movl %edx, -52(%rbp) ## 4-byte Spill
movq %rbx, %r15
notq %r15
addq %rbx, %rax
movq %rax, -112(%rbp) ## 8-byte Spill
addq %r14, %rdi
xorl %r14d, %r14d
.p2align 4, 0x90
LBB4_38: ## Parent Loop BB4_18 Depth=1
## => This Inner Loop Header: Depth=2
leal -42(%r11), %eax
cmpl $5, %eax
ja LBB4_39
## %bb.41: ## in Loop: Header=BB4_38 Depth=2
movl $1, %r8d
leaq LJTI4_0(%rip), %rdx
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
LBB4_42: ## in Loop: Header=BB4_38 Depth=2
movl $2, %r8d
jmp LBB4_44
.p2align 4, 0x90
LBB4_39: ## in Loop: Header=BB4_38 Depth=2
cmpl $94, %r11d
jne LBB4_43
## %bb.40: ## in Loop: Header=BB4_38 Depth=2
movl $3, %r8d
jmp LBB4_44
LBB4_43: ## in Loop: Header=BB4_38 Depth=2
movl $-1, %r8d
.p2align 4, 0x90
LBB4_44: ## in Loop: Header=BB4_38 Depth=2
movq -112(%rbp), %rax ## 8-byte Reload
movzbl (%rax,%r14), %eax
movsbl %al, %edx
leal -42(%rdx), %r10d
cmpl $5, %r10d
ja LBB4_45
## %bb.47: ## in Loop: Header=BB4_38 Depth=2
movl $1, %r9d
leaq LJTI4_1(%rip), %r12
movslq (%r12,%r10,4), %rdx
addq %r12, %rdx
jmpq *%rdx
LBB4_48: ## in Loop: Header=BB4_38 Depth=2
movl $2, %r9d
jmp LBB4_50
.p2align 4, 0x90
LBB4_45: ## in Loop: Header=BB4_38 Depth=2
cmpl $94, %edx
jne LBB4_49
## %bb.46: ## in Loop: Header=BB4_38 Depth=2
movl $3, %r9d
jmp LBB4_50
LBB4_49: ## in Loop: Header=BB4_38 Depth=2
movl $-1, %r9d
.p2align 4, 0x90
LBB4_50: ## in Loop: Header=BB4_38 Depth=2
cmpl %r9d, %r8d
jg LBB4_53
## %bb.51: ## in Loop: Header=BB4_38 Depth=2
decq %rbx
movb %al, (%rdi)
decq %r14
incq %rdi
movl %ebx, %esi
cmpq %r14, %r15
jne LBB4_38
## %bb.52: ## in Loop: Header=BB4_18 Depth=1
movl $-1, %esi
movl $-1, %edi
movl -52(%rbp), %eax ## 4-byte Reload
movl %eax, %r15d
jmp LBB4_54
LBB4_25: ## in Loop: Header=BB4_18 Depth=1
movslq %ebx, %rsi
movb $40, 1(%rax,%rsi)
jmp LBB4_26
LBB4_36: ## in Loop: Header=BB4_18 Depth=1
movl $-1, %edi
cmpl %r9d, %edi
je LBB4_56
LBB4_57: ## in Loop: Header=BB4_18 Depth=1
movslq %edi, %rsi
movb %cl, 1(%rax,%rsi)
LBB4_26: ## in Loop: Header=BB4_18 Depth=1
incq %rsi
jmp LBB4_27
LBB4_34: ## in Loop: Header=BB4_18 Depth=1
subl %edi, %r15d
leal (%r8,%rdi), %esi
decl %esi
LBB4_27: ## in Loop: Header=BB4_18 Depth=1
movl %esi, %edi
movl %esi, %ebx
movl %esi, %r8d
jmp LBB4_20
LBB4_53: ## in Loop: Header=BB4_18 Depth=1
movq -104(%rbp), %r15 ## 8-byte Reload
subl %r14d, %r15d
movq -96(%rbp), %rdi ## 8-byte Reload
addl %r14d, %edi
LBB4_54: ## in Loop: Header=BB4_18 Depth=1
movq -88(%rbp), %r14 ## 8-byte Reload
movq -80(%rbp), %rax ## 8-byte Reload
movq -72(%rbp), %r12 ## 8-byte Reload
movq -64(%rbp), %r9 ## 8-byte Reload
cmpl %r9d, %edi
jne LBB4_57
LBB4_56: ## in Loop: Header=BB4_18 Depth=1
movl %edi, %ebx
movl %edi, %r8d
jmp LBB4_20
LBB4_4:
cmpl $-1, %esi
je LBB4_2
## %bb.5:
movslq %r15d, %r15
movslq %esi, %rcx
leaq 1(%rcx), %r8
cmpq $32, %r8
jb LBB4_15
## %bb.6:
movq %r8, %r9
andq $-32, %r9
leaq -32(%r9), %rdx
movq %rdx, %r10
shrq $5, %r10
incq %r10
testq %rdx, %rdx
je LBB4_7
## %bb.8:
movq %r10, %rbx
andq $-2, %rbx
leaq (%r14,%r15), %rdx
addq $48, %rdx
leaq (%rax,%rcx), %rsi
addq $-15, %rsi
xorl %edi, %edi
movdqa LCPI4_0(%rip), %xmm0 ## xmm0 = [15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]
.p2align 4, 0x90
LBB4_9: ## =>This Inner Loop Header: Depth=1
movdqu -16(%rsi,%rdi), %xmm1
movdqu (%rsi,%rdi), %xmm2
pshufb %xmm0, %xmm2
pshufb %xmm0, %xmm1
movdqu %xmm2, -48(%rdx)
movdqu %xmm1, -32(%rdx)
movdqu -48(%rsi,%rdi), %xmm1
movdqu -32(%rsi,%rdi), %xmm2
pshufb %xmm0, %xmm2
pshufb %xmm0, %xmm1
movdqu %xmm2, -16(%rdx)
movdqu %xmm1, (%rdx)
addq $64, %rdx
addq $-64, %rdi
addq $-2, %rbx
jne LBB4_9
## %bb.10:
negq %rdi
testb $1, %r10b
je LBB4_13
LBB4_12:
movq %rcx, %rdx
subq %rdi, %rdx
addq %r15, %rdi
movdqu -31(%rax,%rdx), %xmm0
movdqu -15(%rax,%rdx), %xmm1
movdqa LCPI4_0(%rip), %xmm2 ## xmm2 = [15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]
pshufb %xmm2, %xmm1
pshufb %xmm2, %xmm0
movdqu %xmm1, (%r14,%rdi)
movdqu %xmm0, 16(%r14,%rdi)
LBB4_13:
addq %r9, %r15
cmpq %r9, %r8
je LBB4_2
## %bb.14:
subq %r9, %rcx
LBB4_15:
movq %r15, %rsi
.p2align 4, 0x90
LBB4_16: ## =>This Inner Loop Header: Depth=1
leaq 1(%rsi), %r15
movzbl (%rax,%rcx), %edx
movb %dl, (%r14,%rsi)
movq %r15, %rsi
addq $-1, %rcx
jb LBB4_16
jmp LBB4_2
LBB4_1:
xorl %r15d, %r15d
LBB4_2:
movslq %r15d, %rax
movb $0, (%r14,%rax)
movq %r14, %rdi
callq _puts
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB4_3
## %bb.58:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB4_7:
xorl %edi, %edi
testb $1, %r10b
jne LBB4_12
jmp LBB4_13
LBB4_3:
callq ___stack_chk_fail
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L4_0_set_42, LBB4_42-LJTI4_0
.set L4_0_set_44, LBB4_44-LJTI4_0
.set L4_0_set_43, LBB4_43-LJTI4_0
LJTI4_0:
.long L4_0_set_42
.long L4_0_set_44
.long L4_0_set_43
.long L4_0_set_44
.long L4_0_set_43
.long L4_0_set_42
.set L4_1_set_48, LBB4_48-LJTI4_1
.set L4_1_set_50, LBB4_50-LJTI4_1
.set L4_1_set_49, LBB4_49-LJTI4_1
LJTI4_1:
.long L4_1_set_48
.long L4_1_set_50
.long L4_1_set_49
.long L4_1_set_50
.long L4_1_set_49
.long L4_1_set_48
.end_data_region
## -- End function
.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 %r14
pushq %rbx
subq $64, %rsp
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
leaq L_.str.1(%rip), %rdi
leaq -68(%rbp), %rsi
xorl %eax, %eax
callq _scanf
subl $1, -68(%rbp)
jb LBB5_3
## %bb.1:
leaq L_.str.2(%rip), %r14
leaq -64(%rbp), %rbx
.p2align 4, 0x90
LBB5_2: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq _scanf
movq %rbx, %rdi
callq _infixtopost
subl $1, -68(%rbp)
jae LBB5_2
LBB5_3:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -24(%rbp), %rax
jne LBB5_5
## %bb.4:
xorl %eax, %eax
addq $64, %rsp
popq %rbx
popq %r14
popq %rbp
retq
LBB5_5:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "%s"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _createStack ; -- Begin function createStack
.p2align 2
_createStack: ; @createStack
.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 w0, #16
bl _malloc
mov x20, x0
mov w8, #-1
stp w8, w19, [x0]
sxtw x0, w19
bl _malloc
str x0, [x20, #8]
mov x0, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _push ; -- Begin function push
.p2align 2
_push: ; @push
.cfi_startproc
; %bb.0:
ldp w8, w9, [x0]
; kill: def $w8 killed $w8 def $x8
sxtw x8, w8
sub w9, w9, #1
cmp w8, w9
b.eq LBB1_2
; %bb.1:
ldr x9, [x0, #8]
add x8, x8, #1
str w8, [x0]
strb w1, [x9, x8]
LBB1_2:
ret
.cfi_endproc
; -- End function
.globl _pop ; -- Begin function pop
.p2align 2
_pop: ; @pop
.cfi_startproc
; %bb.0:
ldrsw x8, [x0]
cmn w8, #1
b.eq LBB2_2
; %bb.1:
ldr x9, [x0, #8]
sub w10, w8, #1
str w10, [x0]
ldrb w8, [x9, x8]
sxtb w0, w8
ret
LBB2_2:
mov w8, #255
sxtb w0, w8
ret
.cfi_endproc
; -- End function
.globl _prec ; -- Begin function prec
.p2align 2
_prec: ; @prec
.cfi_startproc
; %bb.0:
sub w8, w0, #42
cmp w8, #5
b.hi LBB3_3
; %bb.1:
mov w0, #1
Lloh0:
adrp x9, lJTI3_0@PAGE
Lloh1:
add x9, x9, lJTI3_0@PAGEOFF
adr x10, LBB3_2
ldrb w11, [x9, x8]
add x10, x10, x11, lsl #2
br x10
LBB3_2:
mov w0, #2
ret
LBB3_3:
cmp w0, #94
b.ne LBB3_5
; %bb.4:
mov w0, #3
ret
LBB3_5:
mov w0, #-1
LBB3_6:
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
.section __TEXT,__const
lJTI3_0:
.byte (LBB3_2-LBB3_2)>>2
.byte (LBB3_6-LBB3_2)>>2
.byte (LBB3_5-LBB3_2)>>2
.byte (LBB3_6-LBB3_2)>>2
.byte (LBB3_5-LBB3_2)>>2
.byte (LBB3_2-LBB3_2)>>2
; -- End function
.section __TEXT,__text,regular,pure_instructions
.globl _infixtopost ; -- Begin function infixtopost
.p2align 2
_infixtopost: ; @infixtopost
.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, #16
mov x20, x0
Lloh2:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh3:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
ldr x8, [x8]
stur x8, [x29, #-40]
bl _strlen
mov x21, x0
and x8, x0, #0xffffffff
mov x9, x8
Lloh5:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh6:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x9, sp
add x8, x8, #15
and x8, x8, #0x1fffffff0
sub x19, x9, x8
mov sp, x19
sxtw x0, w0
bl _malloc
ldrb w15, [x20]
cbz w15, LBB4_41
; %bb.1:
mov x9, #0
mov w8, #0
sub w10, w21, #1
mov w14, #-1
Lloh7:
adrp x11, lJTI4_1@PAGE
Lloh8:
add x11, x11, lJTI4_1@PAGEOFF
mov w12, #40
mov x16, x14
mov x17, x14
mov x1, x14
Lloh9:
adrp x13, lJTI4_0@PAGE
Lloh10:
add x13, x13, lJTI4_0@PAGEOFF
b LBB4_4
LBB4_2: ; in Loop: Header=BB4_4 Depth=1
strb w15, [x19, w8, sxtw]
add w8, w8, #1
; kill: def $w8 killed $w8 def $x8
LBB4_3: ; in Loop: Header=BB4_4 Depth=1
add x9, x9, #1
ldrb w15, [x20, x9]
cbz w15, LBB4_38
LBB4_4: ; =>This Loop Header: Depth=1
; Child Loop BB4_17 Depth 2
; Child Loop BB4_11 Depth 2
and w2, w15, #0xffffffdf
sub w2, w2, #65
and w2, w2, #0xff
cmp w2, #25
b.ls LBB4_2
; %bb.5: ; in Loop: Header=BB4_4 Depth=1
and w2, w15, #0xff
cmp w2, #41
b.eq LBB4_9
; %bb.6: ; in Loop: Header=BB4_4 Depth=1
cmp w2, #40
b.ne LBB4_15
; %bb.7: ; in Loop: Header=BB4_4 Depth=1
cmp w17, w10
b.ne LBB4_32
; %bb.8: ; in Loop: Header=BB4_4 Depth=1
mov x17, x10
mov x1, x10
b LBB4_3
LBB4_9: ; in Loop: Header=BB4_4 Depth=1
cmn w1, #1
b.eq LBB4_33
; %bb.10: ; in Loop: Header=BB4_4 Depth=1
sxtw x15, w1
sub w14, w1, #1
add x16, x19, w8, sxtw
LBB4_11: ; Parent Loop BB4_4 Depth=1
; => This Inner Loop Header: Depth=2
ldrb w17, [x0, x15]
cmp w17, #40
b.eq LBB4_14
; %bb.12: ; in Loop: Header=BB4_11 Depth=2
sub x15, x15, #1
strb w17, [x16], #1
sub w14, w14, #1
add w8, w8, #1
cmn x15, #1
b.ne LBB4_11
; %bb.13: ; in Loop: Header=BB4_4 Depth=1
mov w14, #-1
LBB4_14: ; in Loop: Header=BB4_4 Depth=1
mov x16, x14
mov x17, x14
mov x1, x14
b LBB4_3
LBB4_15: ; in Loop: Header=BB4_4 Depth=1
cmn w16, #1
b.eq LBB4_34
; %bb.16: ; in Loop: Header=BB4_4 Depth=1
sxtb w1, w15
mov x17, x16
sxtw x2, w17
add w16, w8, w16
add w17, w16, #1
add x16, x19, w8, sxtw
LBB4_17: ; Parent Loop BB4_4 Depth=1
; => This Inner Loop Header: Depth=2
sub w4, w1, #42
cmp w4, #5
b.hi LBB4_20
; %bb.18: ; in Loop: Header=BB4_17 Depth=2
mov w3, #1
adr x5, LBB4_19
ldrb w6, [x13, x4]
add x5, x5, x6, lsl #2
br x5
LBB4_19: ; in Loop: Header=BB4_17 Depth=2
mov w3, #2
b LBB4_23
LBB4_20: ; in Loop: Header=BB4_17 Depth=2
cmp w1, #94
b.ne LBB4_22
; %bb.21: ; in Loop: Header=BB4_17 Depth=2
mov w3, #3
b LBB4_23
LBB4_22: ; in Loop: Header=BB4_17 Depth=2
mov w3, #-1
LBB4_23: ; in Loop: Header=BB4_17 Depth=2
ldrsb w4, [x0, x2]
sub w6, w4, #42
cmp w6, #5
b.hi LBB4_26
; %bb.24: ; in Loop: Header=BB4_17 Depth=2
mov w5, #1
adr x7, LBB4_25
ldrb w21, [x11, x6]
add x7, x7, x21, lsl #2
br x7
LBB4_25: ; in Loop: Header=BB4_17 Depth=2
mov w5, #2
b LBB4_29
LBB4_26: ; in Loop: Header=BB4_17 Depth=2
cmp w4, #94
b.ne LBB4_28
; %bb.27: ; in Loop: Header=BB4_17 Depth=2
mov w5, #3
b LBB4_29
LBB4_28: ; in Loop: Header=BB4_17 Depth=2
mov w5, #-1
LBB4_29: ; in Loop: Header=BB4_17 Depth=2
cmp w3, w5
b.gt LBB4_36
; %bb.30: ; in Loop: Header=BB4_17 Depth=2
and w3, w4, #0xff
sub x14, x2, #1
strb w3, [x16], #1
add w8, w8, #1
mov x2, x14
cmn x14, #1
b.ne LBB4_17
; %bb.31: ; in Loop: Header=BB4_4 Depth=1
mov w14, #-1
mov x16, x14
mov x8, x17
cmp w16, w10
b.eq LBB4_35
b LBB4_37
LBB4_32: ; in Loop: Header=BB4_4 Depth=1
sxtw x14, w17
add x16, x14, #1
strb w12, [x0, x16]
mov x14, x16
b LBB4_35
LBB4_33: ; in Loop: Header=BB4_4 Depth=1
mov w1, #-1
b LBB4_3
LBB4_34: ; in Loop: Header=BB4_4 Depth=1
mov w16, #-1
cmp w16, w10
b.ne LBB4_37
LBB4_35: ; in Loop: Header=BB4_4 Depth=1
mov x17, x16
mov x1, x16
b LBB4_3
LBB4_36: ; in Loop: Header=BB4_4 Depth=1
mov x16, x2
cmp w16, w10
b.eq LBB4_35
LBB4_37: ; in Loop: Header=BB4_4 Depth=1
; kill: def $w16 killed $w16 killed $x16 def $x16
sxtw x14, w16
add x14, x14, #1
strb w15, [x0, x14]
mov x16, x14
mov x17, x14
mov x1, x14
; kill: def $w14 killed $w14 killed $x14 def $x14
b LBB4_3
LBB4_38:
cmn w14, #1
b.eq LBB4_48
; %bb.39:
sxtw x13, w8
; kill: def $w14 killed $w14 killed $x14 def $x14
sxtw x12, w14
add x10, x12, #1
cmp x10, #8
b.hs LBB4_42
; %bb.40:
mov x8, x12
mov x9, x13
b LBB4_45
LBB4_41:
mov w8, #0
b LBB4_48
LBB4_42:
and x11, x10, #0xfffffffffffffff8
sub x8, x12, x11
add x9, x11, x13
add x12, x0, x12
sub x12, x12, #7
add x13, x19, x13
mov x14, x11
LBB4_43: ; =>This Inner Loop Header: Depth=1
ldr d0, [x12], #-8
rev64.8b v0, v0
str d0, [x13], #8
subs x14, x14, #8
b.ne LBB4_43
; %bb.44:
cmp x10, x11
b.eq LBB4_47
LBB4_45:
mov x10, x9
LBB4_46: ; =>This Inner Loop Header: Depth=1
ldrb w11, [x0, x8]
sub x12, x8, #1
add x9, x10, #1
strb w11, [x19, x10]
mov x8, x12
mov x10, x9
cmn x12, #1
b.ne LBB4_46
LBB4_47:
mov x8, x9
LBB4_48:
strb wzr, [x19, w8, sxtw]
mov x0, x19
bl _puts
ldur x8, [x29, #-40]
Lloh11:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh12:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
ldr x9, [x9]
cmp x9, x8
b.ne LBB4_50
; %bb.49:
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
LBB4_50:
bl ___stack_chk_fail
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpAdd Lloh9, Lloh10
.loh AdrpAdd Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13
.cfi_endproc
.section __TEXT,__const
lJTI4_0:
.byte (LBB4_19-LBB4_19)>>2
.byte (LBB4_23-LBB4_19)>>2
.byte (LBB4_22-LBB4_19)>>2
.byte (LBB4_23-LBB4_19)>>2
.byte (LBB4_22-LBB4_19)>>2
.byte (LBB4_19-LBB4_19)>>2
lJTI4_1:
.byte (LBB4_25-LBB4_25)>>2
.byte (LBB4_29-LBB4_25)>>2
.byte (LBB4_28-LBB4_25)>>2
.byte (LBB4_29-LBB4_25)>>2
.byte (LBB4_28-LBB4_25)>>2
.byte (LBB4_25-LBB4_25)>>2
; -- End function
.section __TEXT,__text,regular,pure_instructions
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
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
Lloh14:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh15:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
ldr x8, [x8]
stur x8, [x29, #-24]
add x8, sp, #20
str x8, [sp]
Lloh17:
adrp x0, l_.str.1@PAGE
Lloh18:
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldr w8, [sp, #20]
sub w9, w8, #1
str w9, [sp, #20]
cbz w8, LBB5_3
; %bb.1:
add x20, sp, #26
Lloh19:
adrp x19, l_.str.2@PAGE
Lloh20:
add x19, x19, l_.str.2@PAGEOFF
LBB5_2: ; =>This Inner Loop Header: Depth=1
str x20, [sp]
mov x0, x19
bl _scanf
add x0, sp, #26
bl _infixtopost
ldr w8, [sp, #20]
sub w9, w8, #1
str w9, [sp, #20]
cbnz w8, LBB5_2
LBB5_3:
ldur x8, [x29, #-24]
Lloh21:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh22:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
ldr x9, [x9]
cmp x9, x8
b.ne LBB5_5
; %bb.4:
mov w0, #0
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #96
ret
LBB5_5:
bl ___stack_chk_fail
.loh AdrpAdd Lloh17, Lloh18
.loh AdrpLdrGotLdr Lloh14, Lloh15, Lloh16
.loh AdrpAdd Lloh19, Lloh20
.loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "%s"
.subsections_via_symbols
| the_stack_data/117326913.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _synctex_node_visible_width ## -- Begin function synctex_node_visible_width
.p2align 4, 0x90
_synctex_node_visible_width: ## @synctex_node_visible_width
.cfi_startproc
## %bb.0:
testq %rdi, %rdi
je LBB0_1
## %bb.2:
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
callq _SYNCTEX_WIDTH
movq (%rbx), %rax
movq (%rax), %rax
mulss (%rax), %xmm0
addq $8, %rsp
popq %rbx
popq %rbp
retq
LBB0_1:
xorps %xmm0, %xmm0
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _synctex_node_visible_width ; -- Begin function synctex_node_visible_width
.p2align 2
_synctex_node_visible_width: ; @synctex_node_visible_width
.cfi_startproc
; %bb.0:
cbz x0, LBB0_2
; %bb.1:
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 _SYNCTEX_WIDTH
ldr x8, [x19]
ldr x8, [x8]
ldr s1, [x8]
fmul s0, s0, s1
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_2:
.cfi_def_cfa wsp, 0
.cfi_same_value w30
.cfi_same_value w29
.cfi_same_value w19
.cfi_same_value w20
movi d0, #0000000000000000
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/sumatrapdf/ext/synctex/extr_synctex_parser.c_synctex_node_visible_width.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function vorbis_encode_setup_vbr
LCPI0_0:
.quad 0x3e7ad7f29abcaf48 ## double 9.9999999999999995E-8
.section __TEXT,__literal4,4byte_literals
.p2align 2
LCPI0_1:
.long 0x3f800000 ## float 1
LCPI0_2:
.long 0x3f7ff972 ## float 0.999899983
.section __TEXT,__text,regular,pure_instructions
.globl _vorbis_encode_setup_vbr
.p2align 4, 0x90
_vorbis_encode_setup_vbr: ## @vorbis_encode_setup_vbr
.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
movq %rdi, %r12
movq (%rdi), %rbx
cvtss2sd %xmm0, %xmm0
addsd LCPI0_0(%rip), %xmm0
cvtsd2ss %xmm0, %xmm1
movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cmpnless %xmm1, %xmm0
andps %xmm0, %xmm1
movss LCPI0_2(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero
andnps %xmm2, %xmm0
orps %xmm1, %xmm0
movss %xmm0, (%rbx)
leaq 20(%rbx), %rcx
xorl %r13d, %r13d
movq %rsi, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq _get_setup_template
movl %eax, 16(%rbx)
testl %eax, %eax
je LBB0_1
## %bb.2:
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq _vorbis_encode_setup_setting
movq $0, 8(%rbx)
movl $1, 4(%rbx)
jmp LBB0_3
LBB0_1:
movq _OV_EIMPL@GOTPCREL(%rip), %rax
movl (%rax), %r13d
LBB0_3:
movl %r13d, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _OV_EIMPL,4,2 ## @OV_EIMPL
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vorbis_encode_setup_vbr ; -- Begin function vorbis_encode_setup_vbr
.p2align 2
_vorbis_encode_setup_vbr: ; @vorbis_encode_setup_vbr
.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, x2
mov x20, x1
mov x21, x0
ldr x22, [x0]
fcvt d0, s0
mov x8, #44872
movk x8, #39612, lsl #16
movk x8, #55282, lsl #32
movk x8, #15994, lsl #48
fmov d1, x8
fadd d0, d0, d1
fcvt s0, d0
fmov s1, #1.00000000
fcmp s0, s1
mov w8, #63858
movk w8, #16255, lsl #16
fmov s1, w8
fcsel s0, s0, s1, lt
str s0, [x22]
add x3, x22, #20
mov x0, x1
mov x1, x2
mov w2, #0
bl _get_setup_template
str w0, [x22, #16]
cbz w0, LBB0_2
; %bb.1:
mov x0, x21
mov x1, x20
mov x2, x19
bl _vorbis_encode_setup_setting
mov w0, #0
str xzr, [x22, #8]
mov w8, #1
str w8, [x22, #4]
b LBB0_3
LBB0_2:
Lloh0:
adrp x8, _OV_EIMPL@GOTPAGE
Lloh1:
ldr x8, [x8, _OV_EIMPL@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
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
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _OV_EIMPL,4,2 ; @OV_EIMPL
.subsections_via_symbols
| AnghaBench/Cinder/src/oggvorbis/vorbis/extr_vorbisenc.c_vorbis_encode_setup_vbr.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _wpa_parse_cipher ## -- Begin function wpa_parse_cipher
.p2align 4, 0x90
_wpa_parse_cipher: ## @wpa_parse_cipher
.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
callq _os_strdup
testq %rax, %rax
je LBB0_1
## %bb.2:
movq %rax, %r12
movb (%rax), %r15b
xorl %ebx, %ebx
testb %r15b, %r15b
je LBB0_27
## %bb.3:
movabsq $4294967809, %rcx ## imm = 0x100000201
leaq L_.str(%rip), %rsi
movq %r12, %r14
LBB0_5: ## =>This Loop Header: Depth=1
## Child Loop BB0_6 Depth 2
## Child Loop BB0_9 Depth 2
movq %r14, %r13
incq %r14
jmp LBB0_6
.p2align 4, 0x90
LBB0_29: ## in Loop: Header=BB0_6 Depth=2
movzbl 1(%r13), %r15d
incq %r13
incq %r14
LBB0_6: ## Parent Loop BB0_5 Depth=1
## => This Inner Loop Header: Depth=2
cmpb $9, %r15b
je LBB0_29
## %bb.7: ## in Loop: Header=BB0_6 Depth=2
cmpb $32, %r15b
je LBB0_29
## %bb.8: ## in Loop: Header=BB0_5 Depth=1
testb %r15b, %r15b
je LBB0_27
jmp LBB0_9
.p2align 4, 0x90
LBB0_11: ## in Loop: Header=BB0_9 Depth=2
movzbl (%r14), %r15d
incq %r14
LBB0_9: ## Parent Loop BB0_5 Depth=1
## => This Inner Loop Header: Depth=2
cmpb $32, %r15b
ja LBB0_11
## %bb.10: ## in Loop: Header=BB0_9 Depth=2
movzbl %r15b, %eax
btq %rax, %rcx
jae LBB0_11
## %bb.12: ## in Loop: Header=BB0_5 Depth=1
movb $0, -1(%r14)
movq %r13, %rdi
callq _os_strcmp
movq _WPA_CIPHER_CCMP_256@GOTPCREL(%rip), %rcx
testq %rax, %rax
je LBB0_26
## %bb.13: ## in Loop: Header=BB0_5 Depth=1
movq %r13, %rdi
leaq L_.str.1(%rip), %rsi
callq _os_strcmp
movq _WPA_CIPHER_GCMP_256@GOTPCREL(%rip), %rcx
testq %rax, %rax
je LBB0_26
## %bb.14: ## in Loop: Header=BB0_5 Depth=1
movq %r13, %rdi
leaq L_.str.2(%rip), %rsi
callq _os_strcmp
movq _WPA_CIPHER_CCMP@GOTPCREL(%rip), %rcx
testq %rax, %rax
je LBB0_26
## %bb.15: ## in Loop: Header=BB0_5 Depth=1
movq %r13, %rdi
leaq L_.str.3(%rip), %rsi
callq _os_strcmp
movq _WPA_CIPHER_GCMP@GOTPCREL(%rip), %rcx
testq %rax, %rax
je LBB0_26
## %bb.16: ## in Loop: Header=BB0_5 Depth=1
movq %r13, %rdi
leaq L_.str.4(%rip), %rsi
callq _os_strcmp
movq _WPA_CIPHER_TKIP@GOTPCREL(%rip), %rcx
testq %rax, %rax
je LBB0_26
## %bb.17: ## in Loop: Header=BB0_5 Depth=1
movq %r13, %rdi
leaq L_.str.5(%rip), %rsi
callq _os_strcmp
movq _WPA_CIPHER_WEP104@GOTPCREL(%rip), %rcx
testq %rax, %rax
je LBB0_26
## %bb.18: ## in Loop: Header=BB0_5 Depth=1
movq %r13, %rdi
leaq L_.str.6(%rip), %rsi
callq _os_strcmp
movq _WPA_CIPHER_WEP40@GOTPCREL(%rip), %rcx
testq %rax, %rax
je LBB0_26
## %bb.19: ## in Loop: Header=BB0_5 Depth=1
movq %r13, %rdi
leaq L_.str.7(%rip), %rsi
callq _os_strcmp
movq _WPA_CIPHER_NONE@GOTPCREL(%rip), %rcx
testq %rax, %rax
je LBB0_26
## %bb.20: ## in Loop: Header=BB0_5 Depth=1
movq %r13, %rdi
leaq L_.str.8(%rip), %rsi
callq _os_strcmp
movq _WPA_CIPHER_GTK_NOT_USED@GOTPCREL(%rip), %rcx
testq %rax, %rax
je LBB0_26
## %bb.21: ## in Loop: Header=BB0_5 Depth=1
movq %r13, %rdi
leaq L_.str.9(%rip), %rsi
callq _os_strcmp
movq _WPA_CIPHER_AES_128_CMAC@GOTPCREL(%rip), %rcx
testq %rax, %rax
je LBB0_26
## %bb.22: ## in Loop: Header=BB0_5 Depth=1
movq %r13, %rdi
leaq L_.str.10(%rip), %rsi
callq _os_strcmp
movq _WPA_CIPHER_BIP_GMAC_128@GOTPCREL(%rip), %rcx
testq %rax, %rax
je LBB0_26
## %bb.23: ## in Loop: Header=BB0_5 Depth=1
movq %r13, %rdi
leaq L_.str.11(%rip), %rsi
callq _os_strcmp
movq _WPA_CIPHER_BIP_GMAC_256@GOTPCREL(%rip), %rcx
testq %rax, %rax
je LBB0_26
## %bb.24: ## in Loop: Header=BB0_5 Depth=1
movq %r13, %rdi
leaq L_.str.12(%rip), %rsi
callq _os_strcmp
movq _WPA_CIPHER_BIP_CMAC_256@GOTPCREL(%rip), %rcx
testq %rax, %rax
jne LBB0_25
.p2align 4, 0x90
LBB0_26: ## in Loop: Header=BB0_5 Depth=1
orl (%rcx), %ebx
testb %r15b, %r15b
je LBB0_27
## %bb.4: ## in Loop: Header=BB0_5 Depth=1
movb (%r14), %r15b
testb %r15b, %r15b
movabsq $4294967809, %rcx ## imm = 0x100000201
leaq L_.str(%rip), %rsi
jne LBB0_5
LBB0_27:
movq %r12, %rdi
callq _os_free
jmp LBB0_28
LBB0_1:
movl $-1, %ebx
LBB0_28:
movl %ebx, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_25:
movl $-1, %ebx
jmp LBB0_27
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "CCMP-256"
.comm _WPA_CIPHER_CCMP_256,4,2 ## @WPA_CIPHER_CCMP_256
L_.str.1: ## @.str.1
.asciz "GCMP-256"
.comm _WPA_CIPHER_GCMP_256,4,2 ## @WPA_CIPHER_GCMP_256
L_.str.2: ## @.str.2
.asciz "CCMP"
.comm _WPA_CIPHER_CCMP,4,2 ## @WPA_CIPHER_CCMP
L_.str.3: ## @.str.3
.asciz "GCMP"
.comm _WPA_CIPHER_GCMP,4,2 ## @WPA_CIPHER_GCMP
L_.str.4: ## @.str.4
.asciz "TKIP"
.comm _WPA_CIPHER_TKIP,4,2 ## @WPA_CIPHER_TKIP
L_.str.5: ## @.str.5
.asciz "WEP104"
.comm _WPA_CIPHER_WEP104,4,2 ## @WPA_CIPHER_WEP104
L_.str.6: ## @.str.6
.asciz "WEP40"
.comm _WPA_CIPHER_WEP40,4,2 ## @WPA_CIPHER_WEP40
L_.str.7: ## @.str.7
.asciz "NONE"
.comm _WPA_CIPHER_NONE,4,2 ## @WPA_CIPHER_NONE
L_.str.8: ## @.str.8
.asciz "GTK_NOT_USED"
.comm _WPA_CIPHER_GTK_NOT_USED,4,2 ## @WPA_CIPHER_GTK_NOT_USED
L_.str.9: ## @.str.9
.asciz "AES-128-CMAC"
.comm _WPA_CIPHER_AES_128_CMAC,4,2 ## @WPA_CIPHER_AES_128_CMAC
L_.str.10: ## @.str.10
.asciz "BIP-GMAC-128"
.comm _WPA_CIPHER_BIP_GMAC_128,4,2 ## @WPA_CIPHER_BIP_GMAC_128
L_.str.11: ## @.str.11
.asciz "BIP-GMAC-256"
.comm _WPA_CIPHER_BIP_GMAC_256,4,2 ## @WPA_CIPHER_BIP_GMAC_256
L_.str.12: ## @.str.12
.asciz "BIP-CMAC-256"
.comm _WPA_CIPHER_BIP_CMAC_256,4,2 ## @WPA_CIPHER_BIP_CMAC_256
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _wpa_parse_cipher ; -- Begin function wpa_parse_cipher
.p2align 2
_wpa_parse_cipher: ; @wpa_parse_cipher
.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
bl _os_strdup
cbz x0, LBB0_38
; %bb.1:
mov x25, x0
ldrb w26, [x0]
cbz w26, LBB0_39
; %bb.2:
mov w20, #0
mov w28, #1
Lloh0:
adrp x21, l_.str@PAGE
Lloh1:
add x21, x21, l_.str@PAGEOFF
Lloh2:
adrp x22, l_.str.1@PAGE
Lloh3:
add x22, x22, l_.str.1@PAGEOFF
Lloh4:
adrp x23, l_.str.2@PAGE
Lloh5:
add x23, x23, l_.str.2@PAGEOFF
mov x24, #513
movk x24, #1, lsl #32
mov x19, x25
LBB0_3: ; =>This Loop Header: Depth=1
; Child Loop BB0_5 Depth 2
; Child Loop BB0_9 Depth 2
mov x27, x19
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_5 Depth=2
ldrb w26, [x27, #1]!
LBB0_5: ; Parent Loop BB0_3 Depth=1
; => This Inner Loop Header: Depth=2
add x19, x19, #1
cmp w26, #9
b.eq LBB0_4
; %bb.6: ; in Loop: Header=BB0_5 Depth=2
cmp w26, #32
b.eq LBB0_4
; %bb.7: ; in Loop: Header=BB0_3 Depth=1
cbz w26, LBB0_40
b LBB0_9
LBB0_8: ; in Loop: Header=BB0_9 Depth=2
ldrb w26, [x19], #1
LBB0_9: ; Parent Loop BB0_3 Depth=1
; => This Inner Loop Header: Depth=2
cmp w26, #32
b.hi LBB0_8
; %bb.10: ; in Loop: Header=BB0_9 Depth=2
mov w8, w26
lsl x8, x28, x8
tst x8, x24
b.eq LBB0_8
; %bb.11: ; in Loop: Header=BB0_3 Depth=1
sturb wzr, [x19, #-1]
mov x0, x27
mov x1, x21
bl _os_strcmp
cbz x0, LBB0_24
; %bb.12: ; in Loop: Header=BB0_3 Depth=1
mov x0, x27
mov x1, x22
bl _os_strcmp
cbz x0, LBB0_25
; %bb.13: ; in Loop: Header=BB0_3 Depth=1
mov x0, x27
mov x1, x23
bl _os_strcmp
cbz x0, LBB0_26
; %bb.14: ; in Loop: Header=BB0_3 Depth=1
mov x0, x27
Lloh6:
adrp x1, l_.str.3@PAGE
Lloh7:
add x1, x1, l_.str.3@PAGEOFF
bl _os_strcmp
cbz x0, LBB0_27
; %bb.15: ; in Loop: Header=BB0_3 Depth=1
mov x0, x27
Lloh8:
adrp x1, l_.str.4@PAGE
Lloh9:
add x1, x1, l_.str.4@PAGEOFF
bl _os_strcmp
cbz x0, LBB0_28
; %bb.16: ; in Loop: Header=BB0_3 Depth=1
mov x0, x27
Lloh10:
adrp x1, l_.str.5@PAGE
Lloh11:
add x1, x1, l_.str.5@PAGEOFF
bl _os_strcmp
cbz x0, LBB0_29
; %bb.17: ; in Loop: Header=BB0_3 Depth=1
mov x0, x27
Lloh12:
adrp x1, l_.str.6@PAGE
Lloh13:
add x1, x1, l_.str.6@PAGEOFF
bl _os_strcmp
cbz x0, LBB0_30
; %bb.18: ; in Loop: Header=BB0_3 Depth=1
mov x0, x27
Lloh14:
adrp x1, l_.str.7@PAGE
Lloh15:
add x1, x1, l_.str.7@PAGEOFF
bl _os_strcmp
cbz x0, LBB0_31
; %bb.19: ; in Loop: Header=BB0_3 Depth=1
mov x0, x27
Lloh16:
adrp x1, l_.str.8@PAGE
Lloh17:
add x1, x1, l_.str.8@PAGEOFF
bl _os_strcmp
cbz x0, LBB0_32
; %bb.20: ; in Loop: Header=BB0_3 Depth=1
mov x0, x27
Lloh18:
adrp x1, l_.str.9@PAGE
Lloh19:
add x1, x1, l_.str.9@PAGEOFF
bl _os_strcmp
cbz x0, LBB0_33
; %bb.21: ; in Loop: Header=BB0_3 Depth=1
mov x0, x27
Lloh20:
adrp x1, l_.str.10@PAGE
Lloh21:
add x1, x1, l_.str.10@PAGEOFF
bl _os_strcmp
cbz x0, LBB0_34
; %bb.22: ; in Loop: Header=BB0_3 Depth=1
mov x0, x27
Lloh22:
adrp x1, l_.str.11@PAGE
Lloh23:
add x1, x1, l_.str.11@PAGEOFF
bl _os_strcmp
cbz x0, LBB0_35
; %bb.23: ; in Loop: Header=BB0_3 Depth=1
mov x0, x27
Lloh24:
adrp x1, l_.str.12@PAGE
Lloh25:
add x1, x1, l_.str.12@PAGEOFF
bl _os_strcmp
Lloh26:
adrp x8, _WPA_CIPHER_BIP_CMAC_256@GOTPAGE
Lloh27:
ldr x8, [x8, _WPA_CIPHER_BIP_CMAC_256@GOTPAGEOFF]
cbz x0, LBB0_36
b LBB0_42
LBB0_24: ; in Loop: Header=BB0_3 Depth=1
Lloh28:
adrp x8, _WPA_CIPHER_CCMP_256@GOTPAGE
Lloh29:
ldr x8, [x8, _WPA_CIPHER_CCMP_256@GOTPAGEOFF]
b LBB0_36
LBB0_25: ; in Loop: Header=BB0_3 Depth=1
Lloh30:
adrp x8, _WPA_CIPHER_GCMP_256@GOTPAGE
Lloh31:
ldr x8, [x8, _WPA_CIPHER_GCMP_256@GOTPAGEOFF]
b LBB0_36
LBB0_26: ; in Loop: Header=BB0_3 Depth=1
Lloh32:
adrp x8, _WPA_CIPHER_CCMP@GOTPAGE
Lloh33:
ldr x8, [x8, _WPA_CIPHER_CCMP@GOTPAGEOFF]
b LBB0_36
LBB0_27: ; in Loop: Header=BB0_3 Depth=1
Lloh34:
adrp x8, _WPA_CIPHER_GCMP@GOTPAGE
Lloh35:
ldr x8, [x8, _WPA_CIPHER_GCMP@GOTPAGEOFF]
b LBB0_36
LBB0_28: ; in Loop: Header=BB0_3 Depth=1
Lloh36:
adrp x8, _WPA_CIPHER_TKIP@GOTPAGE
Lloh37:
ldr x8, [x8, _WPA_CIPHER_TKIP@GOTPAGEOFF]
b LBB0_36
LBB0_29: ; in Loop: Header=BB0_3 Depth=1
Lloh38:
adrp x8, _WPA_CIPHER_WEP104@GOTPAGE
Lloh39:
ldr x8, [x8, _WPA_CIPHER_WEP104@GOTPAGEOFF]
b LBB0_36
LBB0_30: ; in Loop: Header=BB0_3 Depth=1
Lloh40:
adrp x8, _WPA_CIPHER_WEP40@GOTPAGE
Lloh41:
ldr x8, [x8, _WPA_CIPHER_WEP40@GOTPAGEOFF]
b LBB0_36
LBB0_31: ; in Loop: Header=BB0_3 Depth=1
Lloh42:
adrp x8, _WPA_CIPHER_NONE@GOTPAGE
Lloh43:
ldr x8, [x8, _WPA_CIPHER_NONE@GOTPAGEOFF]
b LBB0_36
LBB0_32: ; in Loop: Header=BB0_3 Depth=1
Lloh44:
adrp x8, _WPA_CIPHER_GTK_NOT_USED@GOTPAGE
Lloh45:
ldr x8, [x8, _WPA_CIPHER_GTK_NOT_USED@GOTPAGEOFF]
b LBB0_36
LBB0_33: ; in Loop: Header=BB0_3 Depth=1
Lloh46:
adrp x8, _WPA_CIPHER_AES_128_CMAC@GOTPAGE
Lloh47:
ldr x8, [x8, _WPA_CIPHER_AES_128_CMAC@GOTPAGEOFF]
b LBB0_36
LBB0_34: ; in Loop: Header=BB0_3 Depth=1
Lloh48:
adrp x8, _WPA_CIPHER_BIP_GMAC_128@GOTPAGE
Lloh49:
ldr x8, [x8, _WPA_CIPHER_BIP_GMAC_128@GOTPAGEOFF]
b LBB0_36
LBB0_35: ; in Loop: Header=BB0_3 Depth=1
Lloh50:
adrp x8, _WPA_CIPHER_BIP_GMAC_256@GOTPAGE
Lloh51:
ldr x8, [x8, _WPA_CIPHER_BIP_GMAC_256@GOTPAGEOFF]
LBB0_36: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [x8]
orr w20, w8, w20
cbz w26, LBB0_40
; %bb.37: ; in Loop: Header=BB0_3 Depth=1
ldrb w26, [x19]
cbnz w26, LBB0_3
b LBB0_40
LBB0_38:
mov w20, #-1
b LBB0_41
LBB0_39:
mov w20, #0
LBB0_40:
mov x0, x25
bl _os_free
LBB0_41:
mov x0, x20
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_42:
mov w20, #-1
b LBB0_40
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpAdd Lloh14, Lloh15
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpAdd Lloh18, Lloh19
.loh AdrpAdd Lloh20, Lloh21
.loh AdrpAdd Lloh22, Lloh23
.loh AdrpLdrGot Lloh26, Lloh27
.loh AdrpAdd Lloh24, Lloh25
.loh AdrpLdrGot Lloh28, Lloh29
.loh AdrpLdrGot Lloh30, Lloh31
.loh AdrpLdrGot Lloh32, Lloh33
.loh AdrpLdrGot Lloh34, Lloh35
.loh AdrpLdrGot Lloh36, Lloh37
.loh AdrpLdrGot Lloh38, Lloh39
.loh AdrpLdrGot Lloh40, Lloh41
.loh AdrpLdrGot Lloh42, Lloh43
.loh AdrpLdrGot Lloh44, Lloh45
.loh AdrpLdrGot Lloh46, Lloh47
.loh AdrpLdrGot Lloh48, Lloh49
.loh AdrpLdrGot Lloh50, Lloh51
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "CCMP-256"
.comm _WPA_CIPHER_CCMP_256,4,2 ; @WPA_CIPHER_CCMP_256
l_.str.1: ; @.str.1
.asciz "GCMP-256"
.comm _WPA_CIPHER_GCMP_256,4,2 ; @WPA_CIPHER_GCMP_256
l_.str.2: ; @.str.2
.asciz "CCMP"
.comm _WPA_CIPHER_CCMP,4,2 ; @WPA_CIPHER_CCMP
l_.str.3: ; @.str.3
.asciz "GCMP"
.comm _WPA_CIPHER_GCMP,4,2 ; @WPA_CIPHER_GCMP
l_.str.4: ; @.str.4
.asciz "TKIP"
.comm _WPA_CIPHER_TKIP,4,2 ; @WPA_CIPHER_TKIP
l_.str.5: ; @.str.5
.asciz "WEP104"
.comm _WPA_CIPHER_WEP104,4,2 ; @WPA_CIPHER_WEP104
l_.str.6: ; @.str.6
.asciz "WEP40"
.comm _WPA_CIPHER_WEP40,4,2 ; @WPA_CIPHER_WEP40
l_.str.7: ; @.str.7
.asciz "NONE"
.comm _WPA_CIPHER_NONE,4,2 ; @WPA_CIPHER_NONE
l_.str.8: ; @.str.8
.asciz "GTK_NOT_USED"
.comm _WPA_CIPHER_GTK_NOT_USED,4,2 ; @WPA_CIPHER_GTK_NOT_USED
l_.str.9: ; @.str.9
.asciz "AES-128-CMAC"
.comm _WPA_CIPHER_AES_128_CMAC,4,2 ; @WPA_CIPHER_AES_128_CMAC
l_.str.10: ; @.str.10
.asciz "BIP-GMAC-128"
.comm _WPA_CIPHER_BIP_GMAC_128,4,2 ; @WPA_CIPHER_BIP_GMAC_128
l_.str.11: ; @.str.11
.asciz "BIP-GMAC-256"
.comm _WPA_CIPHER_BIP_GMAC_256,4,2 ; @WPA_CIPHER_BIP_GMAC_256
l_.str.12: ; @.str.12
.asciz "BIP-CMAC-256"
.comm _WPA_CIPHER_BIP_CMAC_256,4,2 ; @WPA_CIPHER_BIP_CMAC_256
.subsections_via_symbols
| AnghaBench/freebsd/contrib/wpa/src/common/extr_wpa_common.c_wpa_parse_cipher.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 $40, %rsp
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
xorl %r14d, %r14d
jmp LBB0_3
.p2align 4, 0x90
LBB0_1: ## in Loop: Header=BB0_3 Depth=1
movb $10, -42(%rbp,%rcx)
movb $0, -41(%rbp,%rcx)
incq %rcx
movl %ecx, %ebx
LBB0_2: ## in Loop: Header=BB0_3 Depth=1
cmpl %r14d, %ebx
ja LBB0_26
LBB0_3: ## =>This Loop Header: Depth=1
## Child Loop BB0_27 Depth 2
xorl %r15d, %r15d
callq _getchar
cmpl $-1, %eax
je LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
cmpl $10, %eax
jne LBB0_7
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
xorl %ebx, %ebx
LBB0_24: ## in Loop: Header=BB0_3 Depth=1
movl %ebx, %ecx
cmpl $10, %eax
je LBB0_1
## %bb.25: ## in Loop: Header=BB0_3 Depth=1
movb $0, -42(%rbp,%rcx)
testb %r15b, %r15b
jne LBB0_2
jmp LBB0_29
.p2align 4, 0x90
LBB0_7: ## in Loop: Header=BB0_3 Depth=1
movb %al, -42(%rbp)
movl $1, %ebx
movb $1, %r15b
callq _getchar
cmpl $-1, %eax
je LBB0_24
## %bb.8: ## in Loop: Header=BB0_3 Depth=1
cmpl $10, %eax
je LBB0_24
## %bb.9: ## in Loop: Header=BB0_3 Depth=1
movb %al, -41(%rbp)
movl $2, %ebx
callq _getchar
cmpl $-1, %eax
je LBB0_24
## %bb.10: ## in Loop: Header=BB0_3 Depth=1
cmpl $10, %eax
je LBB0_24
## %bb.11: ## in Loop: Header=BB0_3 Depth=1
movb %al, -40(%rbp)
movl $3, %ebx
callq _getchar
cmpl $-1, %eax
je LBB0_24
## %bb.12: ## in Loop: Header=BB0_3 Depth=1
cmpl $10, %eax
je LBB0_24
## %bb.13: ## in Loop: Header=BB0_3 Depth=1
movb %al, -39(%rbp)
movl $4, %ebx
callq _getchar
cmpl $-1, %eax
je LBB0_24
## %bb.14: ## in Loop: Header=BB0_3 Depth=1
cmpl $10, %eax
je LBB0_24
## %bb.15: ## in Loop: Header=BB0_3 Depth=1
movb %al, -38(%rbp)
movl $5, %ebx
callq _getchar
cmpl $-1, %eax
je LBB0_24
## %bb.16: ## in Loop: Header=BB0_3 Depth=1
cmpl $10, %eax
je LBB0_24
## %bb.17: ## in Loop: Header=BB0_3 Depth=1
movb %al, -37(%rbp)
movl $6, %ebx
callq _getchar
cmpl $-1, %eax
je LBB0_24
## %bb.18: ## in Loop: Header=BB0_3 Depth=1
cmpl $10, %eax
je LBB0_24
## %bb.19: ## in Loop: Header=BB0_3 Depth=1
movb %al, -36(%rbp)
movl $7, %ebx
callq _getchar
cmpl $-1, %eax
je LBB0_24
## %bb.20: ## in Loop: Header=BB0_3 Depth=1
cmpl $10, %eax
je LBB0_24
## %bb.21: ## in Loop: Header=BB0_3 Depth=1
movb %al, -35(%rbp)
movl $8, %ebx
callq _getchar
cmpl $-1, %eax
je LBB0_24
## %bb.22: ## in Loop: Header=BB0_3 Depth=1
cmpl $10, %eax
je LBB0_24
## %bb.23: ## in Loop: Header=BB0_3 Depth=1
movb %al, -34(%rbp)
movl $9, %ebx
jmp LBB0_24
LBB0_26: ## in Loop: Header=BB0_3 Depth=1
xorl %eax, %eax
.p2align 4, 0x90
LBB0_27: ## Parent Loop BB0_3 Depth=1
## => This Inner Loop Header: Depth=2
movzbl -42(%rbp,%rax), %ecx
movb %cl, -52(%rbp,%rax)
incq %rax
testb %cl, %cl
jne LBB0_27
## %bb.28: ## in Loop: Header=BB0_3 Depth=1
movl %ebx, %r14d
jmp LBB0_3
LBB0_29:
testl %r14d, %r14d
jle LBB0_31
## %bb.30:
leaq L_.str(%rip), %rdi
leaq -52(%rbp), %rsi
xorl %eax, %eax
callq _printf
LBB0_31:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -32(%rbp), %rax
jne LBB0_33
## %bb.32:
xorl %eax, %eax
addq $40, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
LBB0_33:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.globl _getlin ## -- Begin function getlin
.p2align 4, 0x90
_getlin: ## @getlin
.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 %rdi, %r15
xorl %ecx, %ecx
cmpl $2, %esi
jl LBB1_7
## %bb.1:
movl %esi, %r14d
decl %r14d
movl %r14d, %r12d
xorl %ebx, %ebx
.p2align 4, 0x90
LBB1_2: ## =>This Inner Loop Header: Depth=1
callq _getchar
cmpl $-1, %eax
je LBB1_5
## %bb.3: ## in Loop: Header=BB1_2 Depth=1
cmpl $10, %eax
je LBB1_5
## %bb.4: ## in Loop: Header=BB1_2 Depth=1
movb %al, (%r15,%rbx)
incq %rbx
cmpq %rbx, %r12
jne LBB1_2
jmp LBB1_6
LBB1_5:
movl %ebx, %r14d
LBB1_6:
movl %r14d, %ecx
cmpl $10, %eax
jne LBB1_8
LBB1_7:
movl %ecx, %eax
movb $10, (%r15,%rax)
incl %ecx
movl %ecx, %r14d
LBB1_8:
movslq %r14d, %rax
movb $0, (%r15,%rax)
## kill: def $eax killed $eax killed $rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _copy ## -- Begin function copy
.p2align 4, 0x90
_copy: ## @copy
.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
.p2align 4, 0x90
LBB2_1: ## =>This Inner Loop Header: Depth=1
movzbl (%rsi,%rax), %ecx
movb %cl, (%rdi,%rax)
incq %rax
testb %cl, %cl
jne LBB2_1
## %bb.2:
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s"
.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 x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
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
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
mov w21, #0
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
str x8, [sp, #40]
add x19, sp, #30
mov w20, #10
b LBB0_3
LBB0_1: ; in Loop: Header=BB0_3 Depth=1
strb w20, [x19, x8]
add x22, x8, #1
strb wzr, [x19, x22]
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
cmp w22, w21
b.hi LBB0_26
LBB0_3: ; =>This Loop Header: Depth=1
; Child Loop BB0_27 Depth 2
mov w23, #0
bl _getchar
cmn w0, #1
b.eq LBB0_5
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
cmp w0, #10
b.ne LBB0_6
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
mov x22, x23
b LBB0_9
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
strb w0, [sp, #30]
mov w23, #1
bl _getchar
cmn w0, #1
b.eq LBB0_8
; %bb.7: ; in Loop: Header=BB0_3 Depth=1
cmp w0, #10
b.ne LBB0_11
LBB0_8: ; in Loop: Header=BB0_3 Depth=1
mov w22, #1
LBB0_9: ; in Loop: Header=BB0_3 Depth=1
mov w8, w22
cmp w0, #10
b.eq LBB0_1
; %bb.10: ; in Loop: Header=BB0_3 Depth=1
strb wzr, [x19, x8]
cbnz w23, LBB0_2
b LBB0_29
LBB0_11: ; in Loop: Header=BB0_3 Depth=1
strb w0, [sp, #31]
mov w22, #2
mov w23, #1
bl _getchar
cmn w0, #1
b.eq LBB0_9
; %bb.12: ; in Loop: Header=BB0_3 Depth=1
cmp w0, #10
b.eq LBB0_9
; %bb.13: ; in Loop: Header=BB0_3 Depth=1
strb w0, [sp, #32]
mov w22, #3
mov w23, #1
bl _getchar
cmn w0, #1
b.eq LBB0_9
; %bb.14: ; in Loop: Header=BB0_3 Depth=1
cmp w0, #10
b.eq LBB0_9
; %bb.15: ; in Loop: Header=BB0_3 Depth=1
strb w0, [sp, #33]
mov w22, #4
mov w23, #1
bl _getchar
cmn w0, #1
b.eq LBB0_9
; %bb.16: ; in Loop: Header=BB0_3 Depth=1
cmp w0, #10
b.eq LBB0_9
; %bb.17: ; in Loop: Header=BB0_3 Depth=1
strb w0, [sp, #34]
mov w22, #5
mov w23, #1
bl _getchar
cmn w0, #1
b.eq LBB0_9
; %bb.18: ; in Loop: Header=BB0_3 Depth=1
cmp w0, #10
b.eq LBB0_9
; %bb.19: ; in Loop: Header=BB0_3 Depth=1
strb w0, [sp, #35]
mov w22, #6
mov w23, #1
bl _getchar
cmn w0, #1
b.eq LBB0_9
; %bb.20: ; in Loop: Header=BB0_3 Depth=1
cmp w0, #10
b.eq LBB0_9
; %bb.21: ; in Loop: Header=BB0_3 Depth=1
strb w0, [sp, #36]
mov w22, #7
mov w23, #1
bl _getchar
cmn w0, #1
b.eq LBB0_9
; %bb.22: ; in Loop: Header=BB0_3 Depth=1
cmp w0, #10
b.eq LBB0_9
; %bb.23: ; in Loop: Header=BB0_3 Depth=1
strb w0, [sp, #37]
mov w22, #8
mov w23, #1
bl _getchar
cmn w0, #1
b.eq LBB0_9
; %bb.24: ; in Loop: Header=BB0_3 Depth=1
cmp w0, #10
b.eq LBB0_9
; %bb.25: ; in Loop: Header=BB0_3 Depth=1
strb w0, [sp, #38]
mov w22, #9
mov w23, #1
b LBB0_9
LBB0_26: ; in Loop: Header=BB0_3 Depth=1
add x8, sp, #20
add x9, sp, #30
LBB0_27: ; Parent Loop BB0_3 Depth=1
; => This Inner Loop Header: Depth=2
ldrb w10, [x9], #1
strb w10, [x8], #1
cbnz w10, LBB0_27
; %bb.28: ; in Loop: Header=BB0_3 Depth=1
mov x21, x22
b LBB0_3
LBB0_29:
cmp w21, #1
b.lt LBB0_31
; %bb.30:
add x8, sp, #20
str x8, [sp]
Lloh3:
adrp x0, l_.str@PAGE
Lloh4:
add x0, x0, l_.str@PAGEOFF
bl _printf
LBB0_31:
ldr x8, [sp, #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_33
; %bb.32:
mov w0, #0
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
ldp x20, x19, [sp, #80] ; 16-byte Folded Reload
ldp x22, x21, [sp, #64] ; 16-byte Folded Reload
ldp x24, x23, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #112
ret
LBB0_33:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.cfi_endproc
; -- End function
.globl _getlin ; -- Begin function getlin
.p2align 2
_getlin: ; @getlin
.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, x0
cmp w1, #2
b.lt LBB1_6
; %bb.1:
mov x21, #0
sub w20, w1, #1
LBB1_2: ; =>This Inner Loop Header: Depth=1
bl _getchar
cmn w0, #1
b.eq LBB1_7
; %bb.3: ; in Loop: Header=BB1_2 Depth=1
cmp w0, #10
b.eq LBB1_7
; %bb.4: ; in Loop: Header=BB1_2 Depth=1
strb w0, [x19, x21]
add x21, x21, #1
cmp x20, x21
b.ne LBB1_2
; %bb.5:
cmp w0, #10
b.eq LBB1_8
b LBB1_9
LBB1_6:
mov w20, #0
b LBB1_8
LBB1_7:
mov x20, x21
cmp w0, #10
b.ne LBB1_9
LBB1_8:
mov w8, #10
strb w8, [x19, w20, uxtw]
add w20, w20, #1
LBB1_9:
strb wzr, [x19, w20, sxtw]
mov x0, x20
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
.globl _copy ; -- Begin function copy
.p2align 2
_copy: ; @copy
.cfi_startproc
; %bb.0:
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldrb w8, [x1], #1
strb w8, [x0], #1
cbnz w8, LBB2_1
; %bb.2:
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s"
.subsections_via_symbols
| the_stack_data/211080577.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function __ftrace_event_enable_disable
___ftrace_event_enable_disable: ## @__ftrace_event_enable_disable
.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 %rdi, %rbx
movq 24(%rdi), %r15
movq (%rdi), %r13
xorl %r14d, %r14d
cmpl $1, %esi
je LBB0_15
## %bb.1:
testl %esi, %esi
jne LBB0_32
## %bb.2:
testl %edx, %edx
je LBB0_5
## %bb.3:
leaq 8(%rbx), %rdi
callq _atomic_dec_return
testl %eax, %eax
jg LBB0_32
## %bb.4:
movq _EVENT_FILE_FL_SOFT_DISABLED@GOTPCREL(%rip), %rax
movl (%rax), %r12d
andl (%rbx), %r12d
movq _EVENT_FILE_FL_SOFT_MODE_BIT@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %rbx, %rsi
callq _clear_bit
testl %r12d, %r12d
jne LBB0_7
jmp LBB0_13
LBB0_15:
movq 16(%rbx), %r12
testl %edx, %edx
je LBB0_19
## %bb.16:
leaq 8(%rbx), %rdi
callq _atomic_inc_return
cmpl $1, %eax
jg LBB0_32
## %bb.17:
movq _EVENT_FILE_FL_SOFT_MODE_BIT@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %rbx, %rsi
callq _set_bit
movq _EVENT_FILE_FL_ENABLED@GOTPCREL(%rip), %rax
movslq (%rax), %rax
testq %rax, (%rbx)
jne LBB0_32
## %bb.18:
movq _EVENT_FILE_FL_SOFT_DISABLED_BIT@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %rbx, %rsi
callq _set_bit
jmp LBB0_20
LBB0_5:
movq _EVENT_FILE_FL_SOFT_MODE@GOTPCREL(%rip), %rax
movslq (%rax), %rax
xorl %r12d, %r12d
testq %rax, %r13
sete %r12b
testl %r12d, %r12d
je LBB0_13
LBB0_7:
movq _EVENT_FILE_FL_ENABLED@GOTPCREL(%rip), %rax
movslq (%rax), %rax
testq %rax, (%rbx)
je LBB0_13
## %bb.8:
movq _EVENT_FILE_FL_ENABLED_BIT@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %rbx, %rsi
callq _clear_bit
movq (%rbx), %rax
movq _EVENT_FILE_FL_RECORDED_CMD@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
testq %rcx, %rax
je LBB0_10
## %bb.9:
xorl %eax, %eax
callq _tracing_stop_cmdline_record
movq _EVENT_FILE_FL_RECORDED_CMD_BIT@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %rbx, %rsi
callq _clear_bit
movq (%rbx), %rax
LBB0_10:
movq _EVENT_FILE_FL_RECORDED_TGID@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
testq %rcx, %rax
je LBB0_12
## %bb.11:
xorl %eax, %eax
callq _tracing_stop_tgid_record
movq _EVENT_FILE_FL_RECORDED_TGID_BIT@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %rbx, %rsi
callq _clear_bit
LBB0_12:
movq (%r15), %rax
movq _TRACE_REG_UNREGISTER@GOTPCREL(%rip), %rcx
movl (%rcx), %esi
movq %r15, %rdi
movq %rbx, %rdx
callq *(%rax)
LBB0_13:
movq _EVENT_FILE_FL_SOFT_MODE@GOTPCREL(%rip), %rax
movslq (%rax), %rax
movq _EVENT_FILE_FL_SOFT_DISABLED_BIT@GOTPCREL(%rip), %rcx
movl (%rcx), %edi
testq %rax, (%rbx)
jne LBB0_31
## %bb.14:
movq %rbx, %rsi
callq _clear_bit
jmp LBB0_32
LBB0_19:
movq _EVENT_FILE_FL_SOFT_DISABLED_BIT@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %rbx, %rsi
callq _clear_bit
movq _EVENT_FILE_FL_ENABLED@GOTPCREL(%rip), %rax
movslq (%rax), %rax
testq %rax, (%rbx)
jne LBB0_32
LBB0_20:
movl (%r12), %ecx
movq _TRACE_ITER_RECORD_CMD@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %ecx, %edx
movl %ecx, -52(%rbp) ## 4-byte Spill
movl %eax, -48(%rbp) ## 4-byte Spill
testl %ecx, %eax
je LBB0_22
## %bb.21:
xorl %eax, %eax
callq _tracing_start_cmdline_record
movq _EVENT_FILE_FL_RECORDED_CMD_BIT@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %rbx, %rsi
callq _set_bit
movl (%r12), %edx
LBB0_22:
movq _TRACE_ITER_RECORD_TGID@GOTPCREL(%rip), %rax
andl (%rax), %edx
movl %edx, -44(%rbp) ## 4-byte Spill
je LBB0_24
## %bb.23:
xorl %eax, %eax
callq _tracing_start_tgid_record
movq _EVENT_FILE_FL_RECORDED_TGID_BIT@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %rbx, %rsi
callq _set_bit
LBB0_24:
movq (%r15), %rax
movq _TRACE_REG_REGISTER@GOTPCREL(%rip), %rcx
movl (%rcx), %esi
movq %r15, %rdi
movq %rbx, %rdx
callq *(%rax)
testl %eax, %eax
je LBB0_30
## %bb.25:
movl %eax, %r12d
movl -48(%rbp), %eax ## 4-byte Reload
testl %eax, -52(%rbp) ## 4-byte Folded Reload
je LBB0_27
## %bb.26:
xorl %eax, %eax
callq _tracing_stop_cmdline_record
LBB0_27:
cmpl $0, -44(%rbp) ## 4-byte Folded Reload
je LBB0_29
## %bb.28:
xorl %eax, %eax
callq _tracing_stop_tgid_record
LBB0_29:
movq %r15, %rdi
callq _trace_event_name
leaq L_.str(%rip), %rdi
movl %eax, %esi
callq _pr_info
movl %r12d, %r14d
jmp LBB0_32
LBB0_30:
movq _EVENT_FILE_FL_ENABLED_BIT@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %rbx, %rsi
callq _set_bit
movq _EVENT_FILE_FL_WAS_ENABLED_BIT@GOTPCREL(%rip), %rax
movl (%rax), %edi
LBB0_31:
movq %rbx, %rsi
callq _set_bit
LBB0_32:
movq _EVENT_FILE_FL_SOFT_DISABLED@GOTPCREL(%rip), %rax
movq (%rax), %rax
andq %rax, %r13
andq (%rbx), %rax
cmpq %rax, %r13
je LBB0_36
## %bb.33:
testq %rax, %rax
je LBB0_35
## %bb.34:
xorl %eax, %eax
callq _trace_buffered_event_enable
jmp LBB0_36
LBB0_35:
xorl %eax, %eax
callq _trace_buffered_event_disable
LBB0_36:
movl %r14d, %eax
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EVENT_FILE_FL_SOFT_DISABLED,8,3 ## @EVENT_FILE_FL_SOFT_DISABLED
.comm _EVENT_FILE_FL_SOFT_MODE_BIT,4,2 ## @EVENT_FILE_FL_SOFT_MODE_BIT
.comm _EVENT_FILE_FL_SOFT_MODE,4,2 ## @EVENT_FILE_FL_SOFT_MODE
.comm _EVENT_FILE_FL_ENABLED,4,2 ## @EVENT_FILE_FL_ENABLED
.comm _EVENT_FILE_FL_ENABLED_BIT,4,2 ## @EVENT_FILE_FL_ENABLED_BIT
.comm _EVENT_FILE_FL_RECORDED_CMD,4,2 ## @EVENT_FILE_FL_RECORDED_CMD
.comm _EVENT_FILE_FL_RECORDED_CMD_BIT,4,2 ## @EVENT_FILE_FL_RECORDED_CMD_BIT
.comm _EVENT_FILE_FL_RECORDED_TGID,4,2 ## @EVENT_FILE_FL_RECORDED_TGID
.comm _EVENT_FILE_FL_RECORDED_TGID_BIT,4,2 ## @EVENT_FILE_FL_RECORDED_TGID_BIT
.comm _TRACE_REG_UNREGISTER,4,2 ## @TRACE_REG_UNREGISTER
.comm _EVENT_FILE_FL_SOFT_DISABLED_BIT,4,2 ## @EVENT_FILE_FL_SOFT_DISABLED_BIT
.comm _TRACE_ITER_RECORD_CMD,4,2 ## @TRACE_ITER_RECORD_CMD
.comm _TRACE_ITER_RECORD_TGID,4,2 ## @TRACE_ITER_RECORD_TGID
.comm _TRACE_REG_REGISTER,4,2 ## @TRACE_REG_REGISTER
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "event trace: Could not enable event %s\n"
.comm _EVENT_FILE_FL_WAS_ENABLED_BIT,4,2 ## @EVENT_FILE_FL_WAS_ENABLED_BIT
.no_dead_strip ___ftrace_event_enable_disable
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function __ftrace_event_enable_disable
___ftrace_event_enable_disable: ; @__ftrace_event_enable_disable
.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, x0
ldr x20, [x0, #24]
ldr x22, [x0]
Lloh0:
adrp x23, _EVENT_FILE_FL_SOFT_DISABLED@GOTPAGE
Lloh1:
ldr x23, [x23, _EVENT_FILE_FL_SOFT_DISABLED@GOTPAGEOFF]
cmp w1, #1
b.eq LBB0_5
; %bb.1:
cbnz w1, LBB0_19
; %bb.2:
cbz w2, LBB0_9
; %bb.3:
add x0, x19, #8
bl _atomic_dec_return
cmp w0, #0
b.gt LBB0_19
; %bb.4:
ldr w8, [x19]
ldr w9, [x23]
and w21, w9, w8
Lloh2:
adrp x8, _EVENT_FILE_FL_SOFT_MODE_BIT@GOTPAGE
Lloh3:
ldr x8, [x8, _EVENT_FILE_FL_SOFT_MODE_BIT@GOTPAGEOFF]
Lloh4:
ldr w0, [x8]
mov x1, x19
bl _clear_bit
cbnz w21, LBB0_10
b LBB0_16
LBB0_5:
ldr x21, [x19, #16]
cbz w2, LBB0_18
; %bb.6:
add x0, x19, #8
bl _atomic_inc_return
cmp w0, #1
b.gt LBB0_19
; %bb.7:
Lloh5:
adrp x8, _EVENT_FILE_FL_SOFT_MODE_BIT@GOTPAGE
Lloh6:
ldr x8, [x8, _EVENT_FILE_FL_SOFT_MODE_BIT@GOTPAGEOFF]
Lloh7:
ldr w0, [x8]
mov x1, x19
bl _set_bit
ldr x8, [x19]
Lloh8:
adrp x9, _EVENT_FILE_FL_ENABLED@GOTPAGE
Lloh9:
ldr x9, [x9, _EVENT_FILE_FL_ENABLED@GOTPAGEOFF]
Lloh10:
ldrsw x9, [x9]
tst x8, x9
b.ne LBB0_19
; %bb.8:
Lloh11:
adrp x8, _EVENT_FILE_FL_SOFT_DISABLED_BIT@GOTPAGE
Lloh12:
ldr x8, [x8, _EVENT_FILE_FL_SOFT_DISABLED_BIT@GOTPAGEOFF]
Lloh13:
ldr w0, [x8]
mov x1, x19
bl _set_bit
b LBB0_25
LBB0_9:
Lloh14:
adrp x8, _EVENT_FILE_FL_SOFT_MODE@GOTPAGE
Lloh15:
ldr x8, [x8, _EVENT_FILE_FL_SOFT_MODE@GOTPAGEOFF]
Lloh16:
ldrsw x8, [x8]
tst x22, x8
cset w21, eq
cbz w21, LBB0_16
LBB0_10:
ldr x8, [x19]
Lloh17:
adrp x9, _EVENT_FILE_FL_ENABLED@GOTPAGE
Lloh18:
ldr x9, [x9, _EVENT_FILE_FL_ENABLED@GOTPAGEOFF]
Lloh19:
ldrsw x9, [x9]
tst x8, x9
b.eq LBB0_16
; %bb.11:
Lloh20:
adrp x8, _EVENT_FILE_FL_ENABLED_BIT@GOTPAGE
Lloh21:
ldr x8, [x8, _EVENT_FILE_FL_ENABLED_BIT@GOTPAGEOFF]
Lloh22:
ldr w0, [x8]
mov x1, x19
bl _clear_bit
ldr x8, [x19]
Lloh23:
adrp x9, _EVENT_FILE_FL_RECORDED_CMD@GOTPAGE
Lloh24:
ldr x9, [x9, _EVENT_FILE_FL_RECORDED_CMD@GOTPAGEOFF]
Lloh25:
ldrsw x9, [x9]
tst x8, x9
b.eq LBB0_13
; %bb.12:
bl _tracing_stop_cmdline_record
Lloh26:
adrp x8, _EVENT_FILE_FL_RECORDED_CMD_BIT@GOTPAGE
Lloh27:
ldr x8, [x8, _EVENT_FILE_FL_RECORDED_CMD_BIT@GOTPAGEOFF]
Lloh28:
ldr w0, [x8]
mov x1, x19
bl _clear_bit
ldr x8, [x19]
LBB0_13:
Lloh29:
adrp x9, _EVENT_FILE_FL_RECORDED_TGID@GOTPAGE
Lloh30:
ldr x9, [x9, _EVENT_FILE_FL_RECORDED_TGID@GOTPAGEOFF]
Lloh31:
ldrsw x9, [x9]
tst x8, x9
b.eq LBB0_15
; %bb.14:
bl _tracing_stop_tgid_record
Lloh32:
adrp x8, _EVENT_FILE_FL_RECORDED_TGID_BIT@GOTPAGE
Lloh33:
ldr x8, [x8, _EVENT_FILE_FL_RECORDED_TGID_BIT@GOTPAGEOFF]
Lloh34:
ldr w0, [x8]
mov x1, x19
bl _clear_bit
LBB0_15:
ldr x8, [x20]
ldr x8, [x8]
Lloh35:
adrp x9, _TRACE_REG_UNREGISTER@GOTPAGE
Lloh36:
ldr x9, [x9, _TRACE_REG_UNREGISTER@GOTPAGEOFF]
Lloh37:
ldr w1, [x9]
mov x0, x20
mov x2, x19
blr x8
LBB0_16:
Lloh38:
adrp x8, _EVENT_FILE_FL_SOFT_MODE@GOTPAGE
Lloh39:
ldr x8, [x8, _EVENT_FILE_FL_SOFT_MODE@GOTPAGEOFF]
ldr x9, [x19]
Lloh40:
ldrsw x8, [x8]
Lloh41:
adrp x10, _EVENT_FILE_FL_SOFT_DISABLED_BIT@GOTPAGE
Lloh42:
ldr x10, [x10, _EVENT_FILE_FL_SOFT_DISABLED_BIT@GOTPAGEOFF]
Lloh43:
ldr w0, [x10]
mov x1, x19
tst x9, x8
b.eq LBB0_35
; %bb.17:
bl _set_bit
mov w21, #0
b LBB0_20
LBB0_18:
Lloh44:
adrp x8, _EVENT_FILE_FL_SOFT_DISABLED_BIT@GOTPAGE
Lloh45:
ldr x8, [x8, _EVENT_FILE_FL_SOFT_DISABLED_BIT@GOTPAGEOFF]
Lloh46:
ldr w0, [x8]
mov x1, x19
bl _clear_bit
ldr x8, [x19]
Lloh47:
adrp x9, _EVENT_FILE_FL_ENABLED@GOTPAGE
Lloh48:
ldr x9, [x9, _EVENT_FILE_FL_ENABLED@GOTPAGEOFF]
Lloh49:
ldrsw x9, [x9]
tst x8, x9
b.eq LBB0_25
LBB0_19:
mov w21, #0
LBB0_20:
ldr x8, [x23]
and x9, x8, x22
ldr x10, [x19]
and x8, x10, x8
cmp x9, x8
b.eq LBB0_24
; %bb.21:
cbz x8, LBB0_23
; %bb.22:
bl _trace_buffered_event_enable
b LBB0_24
LBB0_23:
bl _trace_buffered_event_disable
LBB0_24:
mov x0, x21
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_25:
ldr w8, [x21]
Lloh50:
adrp x9, _TRACE_ITER_RECORD_CMD@GOTPAGE
Lloh51:
ldr x9, [x9, _TRACE_ITER_RECORD_CMD@GOTPAGEOFF]
Lloh52:
ldr w9, [x9]
ands w24, w9, w8
b.eq LBB0_27
; %bb.26:
bl _tracing_start_cmdline_record
Lloh53:
adrp x8, _EVENT_FILE_FL_RECORDED_CMD_BIT@GOTPAGE
Lloh54:
ldr x8, [x8, _EVENT_FILE_FL_RECORDED_CMD_BIT@GOTPAGEOFF]
Lloh55:
ldr w0, [x8]
mov x1, x19
bl _set_bit
ldr w8, [x21]
LBB0_27:
Lloh56:
adrp x9, _TRACE_ITER_RECORD_TGID@GOTPAGE
Lloh57:
ldr x9, [x9, _TRACE_ITER_RECORD_TGID@GOTPAGEOFF]
Lloh58:
ldr w9, [x9]
ands w25, w9, w8
b.eq LBB0_29
; %bb.28:
bl _tracing_start_tgid_record
Lloh59:
adrp x8, _EVENT_FILE_FL_RECORDED_TGID_BIT@GOTPAGE
Lloh60:
ldr x8, [x8, _EVENT_FILE_FL_RECORDED_TGID_BIT@GOTPAGEOFF]
Lloh61:
ldr w0, [x8]
mov x1, x19
bl _set_bit
LBB0_29:
ldr x8, [x20]
ldr x8, [x8]
Lloh62:
adrp x9, _TRACE_REG_REGISTER@GOTPAGE
Lloh63:
ldr x9, [x9, _TRACE_REG_REGISTER@GOTPAGEOFF]
Lloh64:
ldr w1, [x9]
mov x0, x20
mov x2, x19
blr x8
mov x21, x0
cbz w0, LBB0_36
; %bb.30:
cbz w24, LBB0_32
; %bb.31:
bl _tracing_stop_cmdline_record
LBB0_32:
cbz w25, LBB0_34
; %bb.33:
bl _tracing_stop_tgid_record
LBB0_34:
mov x0, x20
bl _trace_event_name
mov x1, x0
Lloh65:
adrp x0, l_.str@PAGE
Lloh66:
add x0, x0, l_.str@PAGEOFF
bl _pr_info
b LBB0_20
LBB0_35:
bl _clear_bit
mov w21, #0
b LBB0_20
LBB0_36:
Lloh67:
adrp x8, _EVENT_FILE_FL_ENABLED_BIT@GOTPAGE
Lloh68:
ldr x8, [x8, _EVENT_FILE_FL_ENABLED_BIT@GOTPAGEOFF]
Lloh69:
ldr w0, [x8]
mov x1, x19
bl _set_bit
Lloh70:
adrp x8, _EVENT_FILE_FL_WAS_ENABLED_BIT@GOTPAGE
Lloh71:
ldr x8, [x8, _EVENT_FILE_FL_WAS_ENABLED_BIT@GOTPAGEOFF]
Lloh72:
ldr w0, [x8]
mov x1, x19
bl _set_bit
b LBB0_20
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13
.loh AdrpLdrGotLdr Lloh14, Lloh15, Lloh16
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.loh AdrpLdrGotLdr Lloh23, Lloh24, Lloh25
.loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22
.loh AdrpLdrGotLdr Lloh26, Lloh27, Lloh28
.loh AdrpLdrGotLdr Lloh29, Lloh30, Lloh31
.loh AdrpLdrGotLdr Lloh32, Lloh33, Lloh34
.loh AdrpLdrGotLdr Lloh35, Lloh36, Lloh37
.loh AdrpLdrGotLdr Lloh41, Lloh42, Lloh43
.loh AdrpLdrGotLdr Lloh38, Lloh39, Lloh40
.loh AdrpLdrGotLdr Lloh47, Lloh48, Lloh49
.loh AdrpLdrGotLdr Lloh44, Lloh45, Lloh46
.loh AdrpLdrGotLdr Lloh50, Lloh51, Lloh52
.loh AdrpLdrGotLdr Lloh53, Lloh54, Lloh55
.loh AdrpLdrGotLdr Lloh56, Lloh57, Lloh58
.loh AdrpLdrGotLdr Lloh59, Lloh60, Lloh61
.loh AdrpLdrGotLdr Lloh62, Lloh63, Lloh64
.loh AdrpAdd Lloh65, Lloh66
.loh AdrpLdrGotLdr Lloh70, Lloh71, Lloh72
.loh AdrpLdrGotLdr Lloh67, Lloh68, Lloh69
.cfi_endproc
; -- End function
.comm _EVENT_FILE_FL_SOFT_DISABLED,8,3 ; @EVENT_FILE_FL_SOFT_DISABLED
.comm _EVENT_FILE_FL_SOFT_MODE_BIT,4,2 ; @EVENT_FILE_FL_SOFT_MODE_BIT
.comm _EVENT_FILE_FL_SOFT_MODE,4,2 ; @EVENT_FILE_FL_SOFT_MODE
.comm _EVENT_FILE_FL_ENABLED,4,2 ; @EVENT_FILE_FL_ENABLED
.comm _EVENT_FILE_FL_ENABLED_BIT,4,2 ; @EVENT_FILE_FL_ENABLED_BIT
.comm _EVENT_FILE_FL_RECORDED_CMD,4,2 ; @EVENT_FILE_FL_RECORDED_CMD
.comm _EVENT_FILE_FL_RECORDED_CMD_BIT,4,2 ; @EVENT_FILE_FL_RECORDED_CMD_BIT
.comm _EVENT_FILE_FL_RECORDED_TGID,4,2 ; @EVENT_FILE_FL_RECORDED_TGID
.comm _EVENT_FILE_FL_RECORDED_TGID_BIT,4,2 ; @EVENT_FILE_FL_RECORDED_TGID_BIT
.comm _TRACE_REG_UNREGISTER,4,2 ; @TRACE_REG_UNREGISTER
.comm _EVENT_FILE_FL_SOFT_DISABLED_BIT,4,2 ; @EVENT_FILE_FL_SOFT_DISABLED_BIT
.comm _TRACE_ITER_RECORD_CMD,4,2 ; @TRACE_ITER_RECORD_CMD
.comm _TRACE_ITER_RECORD_TGID,4,2 ; @TRACE_ITER_RECORD_TGID
.comm _TRACE_REG_REGISTER,4,2 ; @TRACE_REG_REGISTER
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "event trace: Could not enable event %s\n"
.comm _EVENT_FILE_FL_WAS_ENABLED_BIT,4,2 ; @EVENT_FILE_FL_WAS_ENABLED_BIT
.no_dead_strip ___ftrace_event_enable_disable
.subsections_via_symbols
| AnghaBench/linux/kernel/trace/extr_trace_events.c___ftrace_event_enable_disable.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ice_chk_pkg_version
_ice_chk_pkg_version: ## @ice_chk_pkg_version
.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
movq _ICE_PKG_SUPP_VER_MAJ@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_2
## %bb.1:
movq 8(%rdi), %rcx
movq _ICE_PKG_SUPP_VER_MNR@GOTPCREL(%rip), %rdx
xorl %eax, %eax
cmpq (%rdx), %rcx
je LBB0_3
LBB0_2:
movq _ICE_ERR_NOT_SUPPORTED@GOTPCREL(%rip), %rax
movl (%rax), %eax
LBB0_3:
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ICE_PKG_SUPP_VER_MAJ,8,3 ## @ICE_PKG_SUPP_VER_MAJ
.comm _ICE_PKG_SUPP_VER_MNR,8,3 ## @ICE_PKG_SUPP_VER_MNR
.comm _ICE_ERR_NOT_SUPPORTED,4,2 ## @ICE_ERR_NOT_SUPPORTED
.no_dead_strip _ice_chk_pkg_version
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ice_chk_pkg_version
_ice_chk_pkg_version: ; @ice_chk_pkg_version
.cfi_startproc
; %bb.0:
ldr x8, [x0]
Lloh0:
adrp x9, _ICE_PKG_SUPP_VER_MAJ@GOTPAGE
Lloh1:
ldr x9, [x9, _ICE_PKG_SUPP_VER_MAJ@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_3
; %bb.1:
ldr x8, [x0, #8]
Lloh3:
adrp x9, _ICE_PKG_SUPP_VER_MNR@GOTPAGE
Lloh4:
ldr x9, [x9, _ICE_PKG_SUPP_VER_MNR@GOTPAGEOFF]
Lloh5:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_3
; %bb.2:
mov w0, #0
ret
LBB0_3:
Lloh6:
adrp x8, _ICE_ERR_NOT_SUPPORTED@GOTPAGE
Lloh7:
ldr x8, [x8, _ICE_ERR_NOT_SUPPORTED@GOTPAGEOFF]
Lloh8:
ldr w0, [x8]
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.cfi_endproc
; -- End function
.comm _ICE_PKG_SUPP_VER_MAJ,8,3 ; @ICE_PKG_SUPP_VER_MAJ
.comm _ICE_PKG_SUPP_VER_MNR,8,3 ; @ICE_PKG_SUPP_VER_MNR
.comm _ICE_ERR_NOT_SUPPORTED,4,2 ; @ICE_ERR_NOT_SUPPORTED
.no_dead_strip _ice_chk_pkg_version
.subsections_via_symbols
| AnghaBench/linux/drivers/net/ethernet/intel/ice/extr_ice_flex_pipe.c_ice_chk_pkg_version.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function safe_div
_safe_div: ## @safe_div
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorpd %xmm2, %xmm2
ucomisd %xmm2, %xmm1
jbe LBB0_2
## %bb.1:
divsd %xmm1, %xmm0
movapd %xmm0, %xmm2
LBB0_2:
movapd %xmm2, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _safe_div
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function safe_div
_safe_div: ; @safe_div
.cfi_startproc
; %bb.0:
fdiv d0, d0, d1
fcmp d1, #0.0
movi d1, #0000000000000000
fcsel d0, d0, d1, gt
ret
.cfi_endproc
; -- End function
.no_dead_strip _safe_div
.subsections_via_symbols
| AnghaBench/kphp-kdb/money/extr_money-engine.c_safe_div.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _checkDup ## -- Begin function checkDup
.p2align 4, 0x90
_checkDup: ## @checkDup
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
testl %esi, %esi
jle LBB0_1
## %bb.2:
movl $1, %eax
cmpl %edx, (%rdi)
je LBB0_7
## %bb.3:
movl %esi, %ecx
movl $1, %eax
.p2align 4, 0x90
LBB0_4: ## =>This Inner Loop Header: Depth=1
movq %rax, %rsi
cmpq %rax, %rcx
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
leaq 1(%rsi), %rax
cmpl %edx, (%rdi,%rsi,4)
jne LBB0_4
LBB0_6:
xorl %eax, %eax
cmpq %rcx, %rsi
setb %al
LBB0_7:
popq %rbp
retq
LBB0_1:
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.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 %r12
pushq %rbx
subq $48, %rsp
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -40(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -64(%rbp)
movq $0, -48(%rbp)
xorl %r14d, %r14d
xorl %edi, %edi
callq _time
movl %eax, %edi
callq _srand
xorl %r15d, %r15d
.p2align 4, 0x90
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_2 Depth 2
movl -60(%rbp), %r12d
movups -56(%rbp), %xmm0
movaps %xmm0, -80(%rbp) ## 16-byte Spill
.p2align 4, 0x90
LBB1_2: ## Parent Loop BB1_1 Depth=1
## => This Inner Loop Header: Depth=2
callq _rand
cltq
imulq $1402438301, %rax, %rcx ## imm = 0x5397829D
movq %rcx, %rdx
shrq $63, %rdx
sarq $36, %rcx
addl %edx, %ecx
imull $49, %ecx, %ecx
negl %ecx
addl %ecx, %eax
incl %eax
cmpl %eax, %r15d
je LBB1_2
## %bb.3: ## in Loop: Header=BB1_2 Depth=2
movd %eax, %xmm0
pshufd $0, %xmm0, %xmm0 ## xmm0 = xmm0[0,0,0,0]
pcmpeqd -80(%rbp), %xmm0 ## 16-byte Folded Reload
movmskps %xmm0, %ecx
movl %ecx, %edx
andb $2, %dl
cmpl %eax, %r12d
je LBB1_2
## %bb.4: ## in Loop: Header=BB1_2 Depth=2
movl %ecx, %ebx
andb $4, %bl
shrb %dl
testb $1, %cl
jne LBB1_2
## %bb.5: ## in Loop: Header=BB1_2 Depth=2
shrb $2, %bl
testb %dl, %dl
jne LBB1_2
## %bb.6: ## in Loop: Header=BB1_2 Depth=2
shrb $3, %cl
testb %bl, %bl
jne LBB1_2
## %bb.7: ## in Loop: Header=BB1_2 Depth=2
testb %cl, %cl
jne LBB1_2
## %bb.8: ## in Loop: Header=BB1_1 Depth=1
movl %eax, -64(%rbp,%r14,4)
incq %r14
movl -64(%rbp), %r15d
cmpq $6, %r14
jne LBB1_1
## %bb.9:
leaq L_.str(%rip), %r14
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq _printf
movl -60(%rbp), %esi
movq %r14, %rdi
xorl %eax, %eax
callq _printf
movl -56(%rbp), %esi
movq %r14, %rdi
xorl %eax, %eax
callq _printf
movl -52(%rbp), %esi
movq %r14, %rdi
xorl %eax, %eax
callq _printf
movl -48(%rbp), %esi
movq %r14, %rdi
xorl %eax, %eax
callq _printf
movl -44(%rbp), %esi
movq %r14, %rdi
xorl %eax, %eax
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -40(%rbp), %rax
jne LBB1_11
## %bb.10:
xorl %eax, %eax
addq $48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
LBB1_11:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _checkDup ; -- Begin function checkDup
.p2align 2
_checkDup: ; @checkDup
.cfi_startproc
; %bb.0:
cmp w1, #1
b.lt LBB0_3
; %bb.1:
ldr w8, [x0]
cmp w8, w2
b.ne LBB0_4
; %bb.2:
mov w0, #1
ret
LBB0_3:
mov w0, #0
ret
LBB0_4:
mov w8, w1
mov w10, #1
LBB0_5: ; =>This Inner Loop Header: Depth=1
mov x9, x10
cmp x8, x10
b.eq LBB0_7
; %bb.6: ; in Loop: Header=BB0_5 Depth=1
ldr w11, [x0, x9, lsl #2]
add x10, x9, #1
cmp w11, w2
b.ne LBB0_5
LBB0_7:
cmp x9, x8
cset w0, lo
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
stp x28, x27, [sp, #48] ; 16-byte Folded Spill
stp x26, x25, [sp, #64] ; 16-byte Folded Spill
stp x24, x23, [sp, #80] ; 16-byte Folded Spill
stp x22, x21, [sp, #96] ; 16-byte Folded Spill
stp x20, x19, [sp, #112] ; 16-byte Folded Spill
stp x29, x30, [sp, #128] ; 16-byte Folded Spill
add x29, sp, #128
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.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
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
str x8, [sp, #40]
stp xzr, xzr, [sp, #16]
str xzr, [sp, #32]
mov x0, #0
bl _time
; kill: def $w0 killed $w0 killed $x0
bl _srand
mov x19, #0
mov w20, #0
mov w21, #33437
movk w21, #21399, lsl #16
mov w22, #49
add x23, sp, #16
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_2 Depth 2
ldp w24, w25, [sp, #20]
ldp w26, w27, [sp, #28]
ldr w28, [sp, #36]
LBB1_2: ; Parent Loop BB1_1 Depth=1
; => This Inner Loop Header: Depth=2
bl _rand
smull x8, w0, w21
lsr x9, x8, #63
asr x8, x8, #36
add w8, w8, w9
msub w8, w8, w22, w0
add w8, w8, #1
cmp w20, w8
ccmp w24, w8, #4, ne
ccmp w25, w8, #4, ne
ccmp w26, w8, #4, ne
ccmp w27, w8, #4, ne
ccmp w28, w8, #4, ne
b.eq LBB1_2
; %bb.3: ; in Loop: Header=BB1_1 Depth=1
str w8, [x23, x19, lsl #2]
add x19, x19, #1
ldr w20, [sp, #16]
cmp x19, #6
b.ne LBB1_1
; %bb.4:
str x20, [sp]
Lloh3:
adrp x19, l_.str@PAGE
Lloh4:
add x19, x19, l_.str@PAGEOFF
mov x0, x19
bl _printf
ldr w8, [sp, #20]
str x8, [sp]
mov x0, x19
bl _printf
ldr w8, [sp, #24]
str x8, [sp]
mov x0, x19
bl _printf
ldr w8, [sp, #28]
str x8, [sp]
mov x0, x19
bl _printf
ldr w8, [sp, #32]
str x8, [sp]
mov x0, x19
bl _printf
ldr w8, [sp, #36]
str x8, [sp]
mov x0, x19
bl _printf
ldr x8, [sp, #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 LBB1_6
; %bb.5:
mov w0, #0
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
ldp x20, x19, [sp, #112] ; 16-byte Folded Reload
ldp x22, x21, [sp, #96] ; 16-byte Folded Reload
ldp x24, x23, [sp, #80] ; 16-byte Folded Reload
ldp x26, x25, [sp, #64] ; 16-byte Folded Reload
ldp x28, x27, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #144
ret
LBB1_6:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpAdd Lloh3, Lloh4
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/86389.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function v4l2_prepare_contexts
_v4l2_prepare_contexts: ## @v4l2_prepare_contexts
.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 %esi, %r15d
movq %rdi, %rbx
movq 64(%rdi), %r14
movq $0, 16(%rdi)
movq $0, 40(%rdi)
leaq L_.str(%rip), %rax
movq %rax, 24(%rdi)
leaq L_.str.1(%rip), %rax
movq %rax, (%rdi)
addq $56, %rdi
xorl %esi, %esi
callq _atomic_init
leaq 52(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq _sem_init
leaq -48(%rbp), %r12
movq %r12, %rdi
xorl %esi, %esi
movl $8, %edx
callq _memset
movl 48(%rbx), %edi
movq _VIDIOC_QUERYCAP@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %r12, %rdx
callq _ioctl
testl %eax, %eax
js LBB0_13
## %bb.1:
testl %r15d, %r15d
jne LBB0_2
## %bb.3:
movq _AV_LOG_INFO@GOTPCREL(%rip), %rax
jmp LBB0_4
LBB0_2:
movq _AV_LOG_DEBUG@GOTPCREL(%rip), %rax
LBB0_4:
movl (%rax), %r12d
movl -48(%rbp), %r15d
movl -44(%rbp), %r13d
leaq -48(%rbp), %rdi
callq _v4l2_mplane_video
testq %rax, %rax
je LBB0_6
## %bb.5:
leaq L_.str.3(%rip), %r9
jmp LBB0_7
LBB0_6:
leaq -48(%rbp), %rdi
callq _v4l2_splane_video
testq %rax, %rax
leaq L_.str.5(%rip), %rax
leaq L_.str.4(%rip), %r9
cmoveq %rax, %r9
LBB0_7:
leaq L_.str.2(%rip), %rdx
movq %r14, %rdi
movl %r12d, %esi
movl %r13d, %ecx
movl %r15d, %r8d
callq _av_log
leaq -48(%rbp), %rdi
callq _v4l2_mplane_video
testq %rax, %rax
je LBB0_10
## %bb.8:
movq _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, 32(%rbx)
movq _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %rax
jmp LBB0_9
LBB0_10:
leaq -48(%rbp), %rdi
callq _v4l2_splane_video
testq %rax, %rax
je LBB0_12
## %bb.11:
movq _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, 32(%rbx)
movq _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %rax
LBB0_9:
movl (%rax), %eax
movl %eax, 8(%rbx)
xorl %eax, %eax
LBB0_13:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_12:
movq _EINVAL@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _AVERROR
jmp LBB0_13
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "capture"
L_.str.1: ## @.str.1
.asciz "output"
.comm _VIDIOC_QUERYCAP,4,2 ## @VIDIOC_QUERYCAP
.comm _AV_LOG_DEBUG,4,2 ## @AV_LOG_DEBUG
.comm _AV_LOG_INFO,4,2 ## @AV_LOG_INFO
L_.str.2: ## @.str.2
.asciz "driver '%s' on card '%s' in %s mode\n"
L_.str.3: ## @.str.3
.asciz "mplane"
L_.str.4: ## @.str.4
.asciz "splane"
L_.str.5: ## @.str.5
.asciz "unknown"
.comm _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
.comm _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,2 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
.comm _V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
.comm _V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
.comm _EINVAL,4,2 ## @EINVAL
.no_dead_strip _v4l2_prepare_contexts
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function v4l2_prepare_contexts
_v4l2_prepare_contexts: ; @v4l2_prepare_contexts
.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 x21, x1
mov x19, x0
ldr x20, [x0, #64]
str xzr, [x0, #40]
Lloh0:
adrp x8, l_.str@PAGE
Lloh1:
add x8, x8, l_.str@PAGEOFF
stp xzr, x8, [x0, #16]
Lloh2:
adrp x8, l_.str.1@PAGE
Lloh3:
add x8, x8, l_.str.1@PAGEOFF
str x8, [x0], #56
mov w1, #0
bl _atomic_init
add x0, x19, #52
mov w1, #0
mov w2, #0
bl _sem_init
add x0, sp, #8
mov w1, #0
mov w2, #8
bl _memset
ldr w0, [x19, #48]
Lloh4:
adrp x8, _VIDIOC_QUERYCAP@GOTPAGE
Lloh5:
ldr x8, [x8, _VIDIOC_QUERYCAP@GOTPAGEOFF]
Lloh6:
ldr w1, [x8]
add x2, sp, #8
bl _ioctl
tbnz w0, #31, LBB0_9
; %bb.1:
Lloh7:
adrp x8, _AV_LOG_DEBUG@GOTPAGE
Lloh8:
ldr x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh9:
adrp x9, _AV_LOG_INFO@GOTPAGE
Lloh10:
ldr x9, [x9, _AV_LOG_INFO@GOTPAGEOFF]
cmp w21, #0
csel x8, x9, x8, eq
ldr w21, [x8]
ldp w23, w22, [sp, #8]
add x0, sp, #8
bl _v4l2_mplane_video
cbz x0, LBB0_3
; %bb.2:
Lloh11:
adrp x5, l_.str.3@PAGE
Lloh12:
add x5, x5, l_.str.3@PAGEOFF
b LBB0_4
LBB0_3:
add x0, sp, #8
bl _v4l2_splane_video
Lloh13:
adrp x8, l_.str.4@PAGE
Lloh14:
add x8, x8, l_.str.4@PAGEOFF
Lloh15:
adrp x9, l_.str.5@PAGE
Lloh16:
add x9, x9, l_.str.5@PAGEOFF
cmp x0, #0
csel x5, x9, x8, eq
LBB0_4:
Lloh17:
adrp x2, l_.str.2@PAGE
Lloh18:
add x2, x2, l_.str.2@PAGEOFF
mov x0, x20
mov x1, x21
mov x3, x22
mov x4, x23
bl _av_log
add x0, sp, #8
bl _v4l2_mplane_video
cbz x0, LBB0_6
; %bb.5:
mov w0, #0
Lloh19:
adrp x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh20:
ldr x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
Lloh21:
ldr w8, [x8]
str w8, [x19, #32]
Lloh22:
adrp x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGE
Lloh23:
ldr x8, [x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGEOFF]
b LBB0_8
LBB0_6:
add x0, sp, #8
bl _v4l2_splane_video
cbz x0, LBB0_10
; %bb.7:
mov w0, #0
Lloh24:
adrp x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh25:
ldr x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh26:
ldr w8, [x8]
str w8, [x19, #32]
Lloh27:
adrp x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh28:
ldr x8, [x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
LBB0_8:
ldr w8, [x8]
str w8, [x19, #8]
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
add sp, sp, #80
ret
LBB0_10:
Lloh29:
adrp x8, _EINVAL@GOTPAGE
Lloh30:
ldr x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
ldr w0, [x8]
bl _AVERROR
b LBB0_9
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpLdrGot Lloh9, Lloh10
.loh AdrpLdrGot Lloh7, Lloh8
.loh AdrpAdd Lloh11, Lloh12
.loh AdrpAdd Lloh15, Lloh16
.loh AdrpAdd Lloh13, Lloh14
.loh AdrpAdd Lloh17, Lloh18
.loh AdrpLdrGot Lloh22, Lloh23
.loh AdrpLdrGotLdr Lloh19, Lloh20, Lloh21
.loh AdrpLdrGot Lloh27, Lloh28
.loh AdrpLdrGotLdr Lloh24, Lloh25, Lloh26
.loh AdrpLdrGotLdr Lloh29, Lloh30, Lloh31
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "capture"
l_.str.1: ; @.str.1
.asciz "output"
.comm _VIDIOC_QUERYCAP,4,2 ; @VIDIOC_QUERYCAP
.comm _AV_LOG_DEBUG,4,2 ; @AV_LOG_DEBUG
.comm _AV_LOG_INFO,4,2 ; @AV_LOG_INFO
l_.str.2: ; @.str.2
.asciz "driver '%s' on card '%s' in %s mode\n"
l_.str.3: ; @.str.3
.asciz "mplane"
l_.str.4: ; @.str.4
.asciz "splane"
l_.str.5: ; @.str.5
.asciz "unknown"
.comm _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
.comm _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,2 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
.comm _V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
.comm _V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
.comm _EINVAL,4,2 ; @EINVAL
.no_dead_strip _v4l2_prepare_contexts
.subsections_via_symbols
| AnghaBench/FFmpeg/libavcodec/extr_v4l2_m2m.c_v4l2_prepare_contexts.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function aica_chn_halt
_aica_chn_halt: ## @aica_chn_halt
.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
callq _spu_write_wait
callq _local_irq_save
movq _AICA_CMD_KICK@GOTPCREL(%rip), %rax
movq _AICA_CMD_STOP@GOTPCREL(%rip), %rcx
movl (%rcx), %edi
orl (%rax), %edi
movq _AICA_CONTROL_POINT@GOTPCREL(%rip), %rax
movq (%rax), %rsi
callq _writel
popq %rbp
jmp _local_irq_restore ## TAILCALL
.cfi_endproc
## -- End function
.comm _AICA_CMD_KICK,4,2 ## @AICA_CMD_KICK
.comm _AICA_CMD_STOP,4,2 ## @AICA_CMD_STOP
.comm _AICA_CONTROL_POINT,8,3 ## @AICA_CONTROL_POINT
.no_dead_strip _aica_chn_halt
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function aica_chn_halt
_aica_chn_halt: ; @aica_chn_halt
.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 _spu_write_wait
bl _local_irq_save
Lloh0:
adrp x8, _AICA_CMD_KICK@GOTPAGE
Lloh1:
ldr x8, [x8, _AICA_CMD_KICK@GOTPAGEOFF]
Lloh2:
adrp x9, _AICA_CMD_STOP@GOTPAGE
Lloh3:
ldr x9, [x9, _AICA_CMD_STOP@GOTPAGEOFF]
Lloh4:
ldr w8, [x8]
Lloh5:
ldr w9, [x9]
orr w0, w9, w8
Lloh6:
adrp x8, _AICA_CONTROL_POINT@GOTPAGE
Lloh7:
ldr x8, [x8, _AICA_CONTROL_POINT@GOTPAGEOFF]
Lloh8:
ldr x1, [x8]
bl _writel
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _local_irq_restore
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh4
.cfi_endproc
; -- End function
.comm _AICA_CMD_KICK,4,2 ; @AICA_CMD_KICK
.comm _AICA_CMD_STOP,4,2 ; @AICA_CMD_STOP
.comm _AICA_CONTROL_POINT,8,3 ; @AICA_CONTROL_POINT
.no_dead_strip _aica_chn_halt
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/sound/sh/extr_aica.c_aica_chn_halt.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _dn_nsp_send_conninit ## -- Begin function dn_nsp_send_conninit
.p2align 4, 0x90
_dn_nsp_send_conninit: ## @dn_nsp_send_conninit
.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 %esi, %r13d
movq %rdi, %r14
callq _DN_SK
movq %rax, %r15
movq _NSP_CI@GOTPCREL(%rip), %rcx
movq %r14, %rax
cmpb %r13b, (%rcx)
je LBB0_2
## %bb.1:
movq _GFP_ATOMIC@GOTPCREL(%rip), %rax
LBB0_2:
movl (%rax), %edx
movq %r14, %rdi
movl $200, %esi
callq _dn_alloc_skb
testq %rax, %rax
je LBB0_12
## %bb.3:
movq %rax, %r12
movq %rax, %rdi
callq _DN_SKB_CB
movq %rax, -48(%rbp) ## 8-byte Spill
movq %r12, %rdi
movl $24, %esi
callq _skb_put
movq %rax, %rbx
movb %r13b, (%rax)
movl $0, 4(%rax)
movl 76(%r15), %eax
movl %eax, 20(%rbx)
movl 72(%r15), %eax
movl %eax, 16(%rbx)
movl 68(%r15), %eax
movl %eax, 12(%rbx)
movl 64(%r15), %edi
callq _cpu_to_le16
movl %eax, 8(%rbx)
leaq 32(%r15), %r13
xorl %ebx, %ebx
cmpq $0, 40(%r15)
sete %bl
movq %r12, %rdi
callq _skb_tail_pointer
movq %r13, %rdi
movl %eax, %esi
movl %ebx, %edx
callq _dn_sockaddr2username
movzbl %al, %esi
movq %r12, %rdi
callq _skb_put
movq %r15, %rbx
addq $48, %rbx
movq %r12, %rdi
callq _skb_tail_pointer
movq %rbx, %rdi
movl %eax, %esi
movl $2, %edx
callq _dn_sockaddr2username
movzbl %al, %esi
movq %r12, %rdi
callq _skb_put
movq _DN_MENUVER_ACC@GOTPCREL(%rip), %rax
movq _DN_MENUVER_USR@GOTPCREL(%rip), %rcx
movb (%rcx), %cl
orb (%rax), %cl
movl 32(%r15), %eax
movq _SDF_PROXY@GOTPCREL(%rip), %rdx
movl (%rdx), %edx
andl %eax, %edx
movq _DN_MENUVER_PRX@GOTPCREL(%rip), %rsi
movzbl (%rsi), %esi
cmovel %edx, %esi
orb %cl, %sil
movq _SDF_UICPROXY@GOTPCREL(%rip), %rcx
andl (%rcx), %eax
movq _DN_MENUVER_UIC@GOTPCREL(%rip), %rcx
movzbl (%rcx), %ebx
cmovel %eax, %ebx
orb %sil, %bl
movq %r12, %rdi
movl $1, %esi
callq _skb_put
movb %bl, (%rax)
movb 16(%r15), %bl
movq %r12, %rdi
movl $1, %esi
callq _skb_put
movb %bl, (%rax)
testb %bl, %bl
je LBB0_5
## %bb.4:
movzbl %bl, %ebx
movq %r12, %rdi
movl %ebx, %esi
callq _skb_put
movl 28(%r15), %esi
movq %rax, %rdi
movl %ebx, %edx
callq _memcpy
LBB0_5:
movb 17(%r15), %bl
movq %r12, %rdi
movl $1, %esi
callq _skb_put
movb %bl, (%rax)
testb %bl, %bl
je LBB0_7
## %bb.6:
movzbl %bl, %ebx
movq %r12, %rdi
movl %ebx, %esi
callq _skb_put
movl 24(%r15), %esi
movq %rax, %rdi
movl %ebx, %edx
callq _memcpy
LBB0_7:
movb 18(%r15), %bl
movq %r12, %rdi
movl $1, %esi
callq _skb_put
movb %bl, (%rax)
testb %bl, %bl
je LBB0_9
## %bb.8:
movzbl %bl, %ebx
movq %r12, %rdi
movl %ebx, %esi
callq _skb_put
movl 20(%r15), %esi
movq %rax, %rdi
movl %ebx, %edx
callq _memcpy
LBB0_9:
movl 12(%r15), %edi
callq _le16_to_cpu
movq %rax, %rbx
movq %r12, %rdi
movl $1, %esi
callq _skb_put
movb %bl, (%rax)
testb %bl, %bl
je LBB0_11
## %bb.10:
movzbl %bl, %ebx
movq %r12, %rdi
movl %ebx, %esi
callq _skb_put
movl 8(%r15), %esi
movq %rax, %rdi
movl %ebx, %edx
callq _memcpy
LBB0_11:
movq %r14, %rdi
callq _dn_nsp_persist
movl %eax, 4(%r15)
movq _dn_nsp_retrans_conninit@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, (%r15)
movq _DN_RT_F_RQR@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq -48(%rbp), %rcx ## 8-byte Reload
movl %eax, (%rcx)
movq %r12, %rdi
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _dn_nsp_send ## TAILCALL
LBB0_12:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _NSP_CI,1,0 ## @NSP_CI
.comm _GFP_ATOMIC,4,2 ## @GFP_ATOMIC
.comm _DN_MENUVER_ACC,1,0 ## @DN_MENUVER_ACC
.comm _DN_MENUVER_USR,1,0 ## @DN_MENUVER_USR
.comm _SDF_PROXY,4,2 ## @SDF_PROXY
.comm _DN_MENUVER_PRX,1,0 ## @DN_MENUVER_PRX
.comm _SDF_UICPROXY,4,2 ## @SDF_UICPROXY
.comm _DN_MENUVER_UIC,1,0 ## @DN_MENUVER_UIC
.comm _dn_nsp_retrans_conninit,4,2 ## @dn_nsp_retrans_conninit
.comm _DN_RT_F_RQR,4,2 ## @DN_RT_F_RQR
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _dn_nsp_send_conninit ; -- Begin function dn_nsp_send_conninit
.p2align 2
_dn_nsp_send_conninit: ; @dn_nsp_send_conninit
.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 x23, x1
mov x20, x0
bl _DN_SK
mov x19, x0
Lloh0:
adrp x8, _NSP_CI@GOTPAGE
Lloh1:
ldr x8, [x8, _NSP_CI@GOTPAGEOFF]
ldrb w8, [x8]
Lloh2:
adrp x9, _GFP_ATOMIC@GOTPAGE
Lloh3:
ldr x9, [x9, _GFP_ATOMIC@GOTPAGEOFF]
cmp w8, w23
csel x8, x20, x9, eq
ldr w2, [x8]
mov x0, x20
mov w1, #200
bl _dn_alloc_skb
cbz x0, LBB0_10
; %bb.1:
mov x21, x0
bl _DN_SKB_CB
mov x22, x0
mov x0, x21
mov w1, #24
bl _skb_put
mov x24, x0
strb w23, [x0]
str wzr, [x0, #4]
ldr w8, [x19, #76]
str w8, [x0, #20]
ldur d0, [x19, #68]
stur d0, [x0, #12]
ldr w0, [x19, #64]
bl _cpu_to_le16
str w0, [x24, #8]
add x23, x19, #32
ldr x8, [x19, #40]
cmp x8, #0
cset w24, eq
mov x0, x21
bl _skb_tail_pointer
mov x1, x0
mov x0, x23
mov x2, x24
bl _dn_sockaddr2username
mov x1, x0
mov x0, x21
bl _skb_put
add x23, x19, #48
mov x0, x21
bl _skb_tail_pointer
mov x1, x0
mov x0, x23
mov w2, #2
bl _dn_sockaddr2username
mov x1, x0
mov x0, x21
bl _skb_put
Lloh4:
adrp x8, _DN_MENUVER_ACC@GOTPAGE
Lloh5:
ldr x8, [x8, _DN_MENUVER_ACC@GOTPAGEOFF]
ldrb w8, [x8]
Lloh6:
adrp x9, _DN_MENUVER_USR@GOTPAGE
Lloh7:
ldr x9, [x9, _DN_MENUVER_USR@GOTPAGEOFF]
ldrb w9, [x9]
orr w8, w9, w8
ldr w9, [x19, #32]
Lloh8:
adrp x10, _SDF_PROXY@GOTPAGE
Lloh9:
ldr x10, [x10, _SDF_PROXY@GOTPAGEOFF]
Lloh10:
ldr w10, [x10]
Lloh11:
adrp x11, _DN_MENUVER_PRX@GOTPAGE
Lloh12:
ldr x11, [x11, _DN_MENUVER_PRX@GOTPAGEOFF]
ldrb w11, [x11]
tst w10, w9
csel w10, wzr, w11, eq
orr w8, w8, w10
Lloh13:
adrp x10, _SDF_UICPROXY@GOTPAGE
Lloh14:
ldr x10, [x10, _SDF_UICPROXY@GOTPAGEOFF]
Lloh15:
ldr w10, [x10]
Lloh16:
adrp x11, _DN_MENUVER_UIC@GOTPAGE
Lloh17:
ldr x11, [x11, _DN_MENUVER_UIC@GOTPAGEOFF]
ldrb w11, [x11]
tst w10, w9
csel w9, wzr, w11, eq
orr w23, w8, w9
mov x0, x21
mov w1, #1
bl _skb_put
strb w23, [x0]
ldrb w23, [x19, #16]
mov x0, x21
mov w1, #1
bl _skb_put
strb w23, [x0]
cbz w23, LBB0_3
; %bb.2:
mov x0, x21
mov x1, x23
bl _skb_put
ldr w1, [x19, #28]
mov x2, x23
bl _memcpy
LBB0_3:
ldrb w23, [x19, #17]
mov x0, x21
mov w1, #1
bl _skb_put
strb w23, [x0]
cbz w23, LBB0_5
; %bb.4:
mov x0, x21
mov x1, x23
bl _skb_put
ldr w1, [x19, #24]
mov x2, x23
bl _memcpy
LBB0_5:
ldrb w23, [x19, #18]
mov x0, x21
mov w1, #1
bl _skb_put
strb w23, [x0]
cbz w23, LBB0_7
; %bb.6:
mov x0, x21
mov x1, x23
bl _skb_put
ldr w1, [x19, #20]
mov x2, x23
bl _memcpy
LBB0_7:
ldr w0, [x19, #12]
bl _le16_to_cpu
mov x23, x0
mov x0, x21
mov w1, #1
bl _skb_put
strb w23, [x0]
tst x23, #0xff
b.eq LBB0_9
; %bb.8:
and w23, w23, #0xff
mov x0, x21
mov x1, x23
bl _skb_put
ldr w1, [x19, #8]
mov x2, x23
bl _memcpy
LBB0_9:
mov x0, x20
bl _dn_nsp_persist
Lloh18:
adrp x8, _dn_nsp_retrans_conninit@GOTPAGE
Lloh19:
ldr x8, [x8, _dn_nsp_retrans_conninit@GOTPAGEOFF]
Lloh20:
ldr w8, [x8]
stp w8, w0, [x19]
Lloh21:
adrp x8, _DN_RT_F_RQR@GOTPAGE
Lloh22:
ldr x8, [x8, _DN_RT_F_RQR@GOTPAGEOFF]
Lloh23:
ldr w8, [x8]
str w8, [x22]
mov x0, x21
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
b _dn_nsp_send
LBB0_10:
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 Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh16, Lloh17
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpLdrGot Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23
.loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20
.cfi_endproc
; -- End function
.comm _NSP_CI,1,0 ; @NSP_CI
.comm _GFP_ATOMIC,4,2 ; @GFP_ATOMIC
.comm _DN_MENUVER_ACC,1,0 ; @DN_MENUVER_ACC
.comm _DN_MENUVER_USR,1,0 ; @DN_MENUVER_USR
.comm _SDF_PROXY,4,2 ; @SDF_PROXY
.comm _DN_MENUVER_PRX,1,0 ; @DN_MENUVER_PRX
.comm _SDF_UICPROXY,4,2 ; @SDF_UICPROXY
.comm _DN_MENUVER_UIC,1,0 ; @DN_MENUVER_UIC
.comm _dn_nsp_retrans_conninit,4,2 ; @dn_nsp_retrans_conninit
.comm _DN_RT_F_RQR,4,2 ; @DN_RT_F_RQR
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/net/decnet/extr_dn_nsp_out.c_dn_nsp_send_conninit.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _AcpiDbDisplayStatistics ## -- Begin function AcpiDbDisplayStatistics
.p2align 4, 0x90
_AcpiDbDisplayStatistics: ## @AcpiDbDisplayStatistics
.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
callq _AcpiUtStrupr
movq _AcpiDbStatTypes@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq _AcpiDbMatchArgument
## kill: def $eax killed $eax def $rax
movq _ACPI_TYPE_NOT_FOUND@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %r13
LBB0_13:
movq %r13, %rdi
xorl %eax, %eax
callq _AcpiOsPrintf
movq _AE_OK@GOTPCREL(%rip), %rax
movl (%rax), %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_2:
leaq L_.str.38(%rip), %r13
addl $-128, %eax
cmpl $4, %eax
ja LBB0_13
## %bb.3:
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_4:
leaq L_.str.1(%rip), %rdi
xorl %eax, %eax
callq _AcpiOsPrintf
jmp LBB0_13
LBB0_12:
leaq L_.str.15(%rip), %rdi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.16(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.17(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.18(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.19(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.20(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.21(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.22(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.23(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.24(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.25(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.26(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.27(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.28(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.29(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.30(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.31(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.32(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.33(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.34(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.35(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.36(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.37(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.38(%rip), %r13
movq %r13, %rdi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.39(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.40(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.41(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.42(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.43(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.44(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
movq %r13, %rdi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.45(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.46(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.47(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.48(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.49(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.50(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.51(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.52(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.53(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.54(%rip), %rdi
movl $4, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
jmp LBB0_13
LBB0_5:
xorl %eax, %eax
callq _AcpiDbCountNamespaceObjects
leaq L_.str.2(%rip), %rdi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.3(%rip), %rdi
leaq L_.str.4(%rip), %rsi
leaq L_.str.5(%rip), %rdx
leaq L_.str.6(%rip), %rcx
xorl %eax, %eax
callq _AcpiOsPrintf
movq _ACPI_TYPE_NS_NODE_MAX@GOTPCREL(%rip), %r12
cmpl $0, (%r12)
jle LBB0_8
## %bb.6:
movq _AcpiGbl_NodeTypeCount@GOTPCREL(%rip), %r13
movq _AcpiGbl_ObjTypeCount@GOTPCREL(%rip), %r14
leaq L_.str.7(%rip), %r15
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_7: ## =>This Inner Loop Header: Depth=1
movl %ebx, %edi
callq _AcpiUtGetTypeName
movq (%r13), %rcx
movl (%rcx,%rbx,4), %edx
movq (%r14), %rcx
movl (%rcx,%rbx,4), %ecx
movq %r15, %rdi
movl %eax, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
incq %rbx
movslq (%r12), %rax
cmpq %rax, %rbx
jl LBB0_7
LBB0_8:
movq _AcpiGbl_NodeTypeCountMisc@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq _AcpiGbl_ObjTypeCountMisc@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq L_.str.7(%rip), %rbx
leaq L_.str.8(%rip), %rsi
movq %rbx, %rdi
xorl %eax, %eax
callq _AcpiOsPrintf
movq _AcpiGbl_NumNodes@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq _AcpiGbl_NumObjects@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq L_.str.9(%rip), %rsi
movq %rbx, %rdi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.38(%rip), %r13
jmp LBB0_13
LBB0_9:
leaq L_.str.10(%rip), %rdi
xorl %eax, %eax
callq _AcpiOsPrintf
movq _AcpiGbl_PsFindCount@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq L_.str.11(%rip), %rbx
leaq L_.str.12(%rip), %rsi
movq %rbx, %rdi
xorl %eax, %eax
callq _AcpiOsPrintf
movq _AcpiGbl_NsLookupCount@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq L_.str.13(%rip), %rsi
movq %rbx, %rdi
xorl %eax, %eax
callq _AcpiOsPrintf
leaq L_.str.14(%rip), %rdi
xorl %eax, %eax
callq _AcpiOsPrintf
movq _ACPI_NUM_MUTEX@GOTPCREL(%rip), %r12
cmpl $0, (%r12)
jle LBB0_13
## %bb.10:
movq _AcpiGbl_MutexInfo@GOTPCREL(%rip), %r14
leaq L_.str.11(%rip), %r15
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_11: ## =>This Inner Loop Header: Depth=1
movl %ebx, %edi
callq _AcpiUtGetMutexName
movq (%r14), %rcx
movl (%rcx,%rbx,4), %edx
movq %r15, %rdi
movl %eax, %esi
xorl %eax, %eax
callq _AcpiOsPrintf
incq %rbx
movslq (%r12), %rax
cmpq %rax, %rbx
jl LBB0_11
jmp LBB0_13
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
.long L0_0_set_4
.long L0_0_set_13
.long L0_0_set_12
.long L0_0_set_5
.long L0_0_set_9
.end_data_region
## -- End function
.comm _AcpiDbStatTypes,4,2 ## @AcpiDbStatTypes
.comm _ACPI_TYPE_NOT_FOUND,4,2 ## @ACPI_TYPE_NOT_FOUND
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Invalid or unsupported argument\n"
.comm _AE_OK,4,2 ## @AE_OK
L_.str.1: ## @.str.1
.asciz "ACPI Table Information (not implemented):\n\n"
L_.str.2: ## @.str.2
.asciz "\nObjects defined in the current namespace:\n\n"
L_.str.3: ## @.str.3
.asciz "%16.16s %10.10s %10.10s\n"
L_.str.4: ## @.str.4
.asciz "ACPI_TYPE"
L_.str.5: ## @.str.5
.asciz "NODES"
L_.str.6: ## @.str.6
.asciz "OBJECTS"
.comm _ACPI_TYPE_NS_NODE_MAX,4,2 ## @ACPI_TYPE_NS_NODE_MAX
L_.str.7: ## @.str.7
.asciz "%16.16s %10u %10u\n"
.comm _AcpiGbl_NodeTypeCount,8,3 ## @AcpiGbl_NodeTypeCount
.comm _AcpiGbl_ObjTypeCount,8,3 ## @AcpiGbl_ObjTypeCount
L_.str.8: ## @.str.8
.asciz "Misc/Unknown"
.comm _AcpiGbl_NodeTypeCountMisc,4,2 ## @AcpiGbl_NodeTypeCountMisc
.comm _AcpiGbl_ObjTypeCountMisc,4,2 ## @AcpiGbl_ObjTypeCountMisc
L_.str.9: ## @.str.9
.asciz "TOTALS:"
.comm _AcpiGbl_NumNodes,4,2 ## @AcpiGbl_NumNodes
.comm _AcpiGbl_NumObjects,4,2 ## @AcpiGbl_NumObjects
L_.str.10: ## @.str.10
.asciz "\nMiscellaneous Statistics:\n\n"
L_.str.11: ## @.str.11
.asciz "%-28s: %7u\n"
L_.str.12: ## @.str.12
.asciz "Calls to AcpiPsFind"
.comm _AcpiGbl_PsFindCount,4,2 ## @AcpiGbl_PsFindCount
L_.str.13: ## @.str.13
.asciz "Calls to AcpiNsLookup"
.comm _AcpiGbl_NsLookupCount,4,2 ## @AcpiGbl_NsLookupCount
L_.str.14: ## @.str.14
.asciz "\nMutex usage:\n\n"
.comm _ACPI_NUM_MUTEX,4,2 ## @ACPI_NUM_MUTEX
.comm _AcpiGbl_MutexInfo,8,3 ## @AcpiGbl_MutexInfo
L_.str.15: ## @.str.15
.asciz "\nInternal object sizes:\n\n"
L_.str.16: ## @.str.16
.asciz "Common %3d\n"
L_.str.17: ## @.str.17
.asciz "Number %3d\n"
L_.str.18: ## @.str.18
.asciz "String %3d\n"
L_.str.19: ## @.str.19
.asciz "Buffer %3d\n"
L_.str.20: ## @.str.20
.asciz "Package %3d\n"
L_.str.21: ## @.str.21
.asciz "BufferField %3d\n"
L_.str.22: ## @.str.22
.asciz "Device %3d\n"
L_.str.23: ## @.str.23
.asciz "Event %3d\n"
L_.str.24: ## @.str.24
.asciz "Method %3d\n"
L_.str.25: ## @.str.25
.asciz "Mutex %3d\n"
L_.str.26: ## @.str.26
.asciz "Region %3d\n"
L_.str.27: ## @.str.27
.asciz "PowerResource %3d\n"
L_.str.28: ## @.str.28
.asciz "Processor %3d\n"
L_.str.29: ## @.str.29
.asciz "ThermalZone %3d\n"
L_.str.30: ## @.str.30
.asciz "RegionField %3d\n"
L_.str.31: ## @.str.31
.asciz "BankField %3d\n"
L_.str.32: ## @.str.32
.asciz "IndexField %3d\n"
L_.str.33: ## @.str.33
.asciz "Reference %3d\n"
L_.str.34: ## @.str.34
.asciz "Notify %3d\n"
L_.str.35: ## @.str.35
.asciz "AddressSpace %3d\n"
L_.str.36: ## @.str.36
.asciz "Extra %3d\n"
L_.str.37: ## @.str.37
.asciz "Data %3d\n"
L_.str.38: ## @.str.38
.asciz "\n"
L_.str.39: ## @.str.39
.asciz "ParseObject %3d\n"
L_.str.40: ## @.str.40
.asciz "ParseObjectNamed %3d\n"
L_.str.41: ## @.str.41
.asciz "ParseObjectAsl %3d\n"
L_.str.42: ## @.str.42
.asciz "OperandObject %3d\n"
L_.str.43: ## @.str.43
.asciz "NamespaceNode %3d\n"
L_.str.44: ## @.str.44
.asciz "AcpiObject %3d\n"
L_.str.45: ## @.str.45
.asciz "Generic State %3d\n"
L_.str.46: ## @.str.46
.asciz "Common State %3d\n"
L_.str.47: ## @.str.47
.asciz "Control State %3d\n"
L_.str.48: ## @.str.48
.asciz "Update State %3d\n"
L_.str.49: ## @.str.49
.asciz "Scope State %3d\n"
L_.str.50: ## @.str.50
.asciz "Parse Scope %3d\n"
L_.str.51: ## @.str.51
.asciz "Package State %3d\n"
L_.str.52: ## @.str.52
.asciz "Thread State %3d\n"
L_.str.53: ## @.str.53
.asciz "Result Values %3d\n"
L_.str.54: ## @.str.54
.asciz "Notify Info %3d\n"
.comm _AcpiGbl_DeepestNesting,4,2 ## @AcpiGbl_DeepestNesting
.comm _AcpiGbl_EntryStackPointer,4,2 ## @AcpiGbl_EntryStackPointer
.comm _AcpiGbl_GlobalList,4,2 ## @AcpiGbl_GlobalList
.comm _AcpiGbl_LowestStackPointer,4,2 ## @AcpiGbl_LowestStackPointer
.comm _AcpiGbl_NsNodeList,4,2 ## @AcpiGbl_NsNodeList
.comm _AcpiGbl_OperandCache,4,2 ## @AcpiGbl_OperandCache
.comm _AcpiGbl_PsNodeCache,4,2 ## @AcpiGbl_PsNodeCache
.comm _AcpiGbl_PsNodeExtCache,4,2 ## @AcpiGbl_PsNodeExtCache
.comm _AcpiGbl_StateCache,4,2 ## @AcpiGbl_StateCache
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _AcpiDbDisplayStatistics ; -- Begin function AcpiDbDisplayStatistics
.p2align 2
_AcpiDbDisplayStatistics: ; @AcpiDbDisplayStatistics
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
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
mov x19, x0
bl _AcpiUtStrupr
Lloh0:
adrp x8, _AcpiDbStatTypes@GOTPAGE
Lloh1:
ldr x8, [x8, _AcpiDbStatTypes@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
mov x0, x19
bl _AcpiDbMatchArgument
Lloh3:
adrp x8, _ACPI_TYPE_NOT_FOUND@GOTPAGE
Lloh4:
ldr x8, [x8, _ACPI_TYPE_NOT_FOUND@GOTPAGEOFF]
Lloh5:
ldr w8, [x8]
cmp w0, w8
b.ne LBB0_2
; %bb.1:
Lloh6:
adrp x19, l_.str@PAGE
Lloh7:
add x19, x19, l_.str@PAGEOFF
b LBB0_15
LBB0_2:
Lloh8:
adrp x19, l_.str.38@PAGE
Lloh9:
add x19, x19, l_.str.38@PAGEOFF
sub w8, w0, #128
cmp w8, #4
b.hi LBB0_15
; %bb.3:
Lloh10:
adrp x9, lJTI0_0@PAGE
Lloh11:
add x9, x9, lJTI0_0@PAGEOFF
adr x10, LBB0_4
ldrh w11, [x9, x8, lsl #1]
add x10, x10, x11, lsl #2
br x10
LBB0_4:
Lloh12:
adrp x0, l_.str.1@PAGE
Lloh13:
add x0, x0, l_.str.1@PAGEOFF
b LBB0_10
LBB0_5:
Lloh14:
adrp x0, l_.str.15@PAGE
Lloh15:
add x0, x0, l_.str.15@PAGEOFF
bl _AcpiOsPrintf
mov w20, #4
str x20, [sp]
Lloh16:
adrp x0, l_.str.16@PAGE
Lloh17:
add x0, x0, l_.str.16@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh18:
adrp x0, l_.str.17@PAGE
Lloh19:
add x0, x0, l_.str.17@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh20:
adrp x0, l_.str.18@PAGE
Lloh21:
add x0, x0, l_.str.18@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh22:
adrp x0, l_.str.19@PAGE
Lloh23:
add x0, x0, l_.str.19@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh24:
adrp x0, l_.str.20@PAGE
Lloh25:
add x0, x0, l_.str.20@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh26:
adrp x0, l_.str.21@PAGE
Lloh27:
add x0, x0, l_.str.21@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh28:
adrp x0, l_.str.22@PAGE
Lloh29:
add x0, x0, l_.str.22@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh30:
adrp x0, l_.str.23@PAGE
Lloh31:
add x0, x0, l_.str.23@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh32:
adrp x0, l_.str.24@PAGE
Lloh33:
add x0, x0, l_.str.24@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh34:
adrp x0, l_.str.25@PAGE
Lloh35:
add x0, x0, l_.str.25@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh36:
adrp x0, l_.str.26@PAGE
Lloh37:
add x0, x0, l_.str.26@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh38:
adrp x0, l_.str.27@PAGE
Lloh39:
add x0, x0, l_.str.27@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh40:
adrp x0, l_.str.28@PAGE
Lloh41:
add x0, x0, l_.str.28@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh42:
adrp x0, l_.str.29@PAGE
Lloh43:
add x0, x0, l_.str.29@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh44:
adrp x0, l_.str.30@PAGE
Lloh45:
add x0, x0, l_.str.30@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh46:
adrp x0, l_.str.31@PAGE
Lloh47:
add x0, x0, l_.str.31@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh48:
adrp x0, l_.str.32@PAGE
Lloh49:
add x0, x0, l_.str.32@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh50:
adrp x0, l_.str.33@PAGE
Lloh51:
add x0, x0, l_.str.33@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh52:
adrp x0, l_.str.34@PAGE
Lloh53:
add x0, x0, l_.str.34@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh54:
adrp x0, l_.str.35@PAGE
Lloh55:
add x0, x0, l_.str.35@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh56:
adrp x0, l_.str.36@PAGE
Lloh57:
add x0, x0, l_.str.36@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh58:
adrp x0, l_.str.37@PAGE
Lloh59:
add x0, x0, l_.str.37@PAGEOFF
bl _AcpiOsPrintf
Lloh60:
adrp x19, l_.str.38@PAGE
Lloh61:
add x19, x19, l_.str.38@PAGEOFF
mov x0, x19
bl _AcpiOsPrintf
str x20, [sp]
Lloh62:
adrp x0, l_.str.39@PAGE
Lloh63:
add x0, x0, l_.str.39@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh64:
adrp x0, l_.str.40@PAGE
Lloh65:
add x0, x0, l_.str.40@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh66:
adrp x0, l_.str.41@PAGE
Lloh67:
add x0, x0, l_.str.41@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh68:
adrp x0, l_.str.42@PAGE
Lloh69:
add x0, x0, l_.str.42@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh70:
adrp x0, l_.str.43@PAGE
Lloh71:
add x0, x0, l_.str.43@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh72:
adrp x0, l_.str.44@PAGE
Lloh73:
add x0, x0, l_.str.44@PAGEOFF
bl _AcpiOsPrintf
mov x0, x19
bl _AcpiOsPrintf
str x20, [sp]
Lloh74:
adrp x0, l_.str.45@PAGE
Lloh75:
add x0, x0, l_.str.45@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh76:
adrp x0, l_.str.46@PAGE
Lloh77:
add x0, x0, l_.str.46@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh78:
adrp x0, l_.str.47@PAGE
Lloh79:
add x0, x0, l_.str.47@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh80:
adrp x0, l_.str.48@PAGE
Lloh81:
add x0, x0, l_.str.48@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh82:
adrp x0, l_.str.49@PAGE
Lloh83:
add x0, x0, l_.str.49@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh84:
adrp x0, l_.str.50@PAGE
Lloh85:
add x0, x0, l_.str.50@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh86:
adrp x0, l_.str.51@PAGE
Lloh87:
add x0, x0, l_.str.51@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh88:
adrp x0, l_.str.52@PAGE
Lloh89:
add x0, x0, l_.str.52@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh90:
adrp x0, l_.str.53@PAGE
Lloh91:
add x0, x0, l_.str.53@PAGEOFF
bl _AcpiOsPrintf
str x20, [sp]
Lloh92:
adrp x0, l_.str.54@PAGE
Lloh93:
add x0, x0, l_.str.54@PAGEOFF
bl _AcpiOsPrintf
b LBB0_15
LBB0_6:
bl _AcpiDbCountNamespaceObjects
Lloh94:
adrp x0, l_.str.2@PAGE
Lloh95:
add x0, x0, l_.str.2@PAGEOFF
bl _AcpiOsPrintf
Lloh96:
adrp x8, l_.str.6@PAGE
Lloh97:
add x8, x8, l_.str.6@PAGEOFF
Lloh98:
adrp x9, l_.str.5@PAGE
Lloh99:
add x9, x9, l_.str.5@PAGEOFF
Lloh100:
adrp x10, l_.str.4@PAGE
Lloh101:
add x10, x10, l_.str.4@PAGEOFF
stp x9, x8, [sp, #8]
str x10, [sp]
Lloh102:
adrp x0, l_.str.3@PAGE
Lloh103:
add x0, x0, l_.str.3@PAGEOFF
bl _AcpiOsPrintf
Lloh104:
adrp x21, _ACPI_TYPE_NS_NODE_MAX@GOTPAGE
Lloh105:
ldr x21, [x21, _ACPI_TYPE_NS_NODE_MAX@GOTPAGEOFF]
ldr w8, [x21]
cmp w8, #1
b.lt LBB0_9
; %bb.7:
mov x19, #0
Lloh106:
adrp x22, _AcpiGbl_NodeTypeCount@GOTPAGE
Lloh107:
ldr x22, [x22, _AcpiGbl_NodeTypeCount@GOTPAGEOFF]
Lloh108:
adrp x23, _AcpiGbl_ObjTypeCount@GOTPAGE
Lloh109:
ldr x23, [x23, _AcpiGbl_ObjTypeCount@GOTPAGEOFF]
Lloh110:
adrp x20, l_.str.7@PAGE
Lloh111:
add x20, x20, l_.str.7@PAGEOFF
LBB0_8: ; =>This Inner Loop Header: Depth=1
mov x0, x19
bl _AcpiUtGetTypeName
; kill: def $w0 killed $w0 def $x0
ldr x8, [x22]
lsl x9, x19, #2
ldr x10, [x23]
ldr w8, [x8, x9]
ldr w9, [x10, x9]
stp x8, x9, [sp, #8]
str x0, [sp]
mov x0, x20
bl _AcpiOsPrintf
add x19, x19, #1
ldrsw x8, [x21]
cmp x19, x8
b.lt LBB0_8
LBB0_9:
Lloh112:
adrp x8, _AcpiGbl_NodeTypeCountMisc@GOTPAGE
Lloh113:
ldr x8, [x8, _AcpiGbl_NodeTypeCountMisc@GOTPAGEOFF]
Lloh114:
adrp x9, _AcpiGbl_ObjTypeCountMisc@GOTPAGE
Lloh115:
ldr x9, [x9, _AcpiGbl_ObjTypeCountMisc@GOTPAGEOFF]
Lloh116:
ldr w8, [x8]
Lloh117:
ldr w9, [x9]
Lloh118:
adrp x10, l_.str.8@PAGE
Lloh119:
add x10, x10, l_.str.8@PAGEOFF
stp x8, x9, [sp, #8]
str x10, [sp]
Lloh120:
adrp x19, l_.str.7@PAGE
Lloh121:
add x19, x19, l_.str.7@PAGEOFF
mov x0, x19
bl _AcpiOsPrintf
Lloh122:
adrp x8, _AcpiGbl_NumNodes@GOTPAGE
Lloh123:
ldr x8, [x8, _AcpiGbl_NumNodes@GOTPAGEOFF]
Lloh124:
adrp x9, _AcpiGbl_NumObjects@GOTPAGE
Lloh125:
ldr x9, [x9, _AcpiGbl_NumObjects@GOTPAGEOFF]
Lloh126:
ldr w8, [x8]
Lloh127:
ldr w9, [x9]
stp x8, x9, [sp, #8]
Lloh128:
adrp x9, l_.str.9@PAGE
Lloh129:
add x9, x9, l_.str.9@PAGEOFF
str x9, [sp]
mov x0, x19
LBB0_10:
bl _AcpiOsPrintf
LBB0_11:
Lloh130:
adrp x19, l_.str.38@PAGE
Lloh131:
add x19, x19, l_.str.38@PAGEOFF
b LBB0_15
LBB0_12:
Lloh132:
adrp x0, l_.str.10@PAGE
Lloh133:
add x0, x0, l_.str.10@PAGEOFF
bl _AcpiOsPrintf
Lloh134:
adrp x8, _AcpiGbl_PsFindCount@GOTPAGE
Lloh135:
ldr x8, [x8, _AcpiGbl_PsFindCount@GOTPAGEOFF]
Lloh136:
ldr w8, [x8]
Lloh137:
adrp x9, l_.str.12@PAGE
Lloh138:
add x9, x9, l_.str.12@PAGEOFF
stp x9, x8, [sp]
Lloh139:
adrp x19, l_.str.11@PAGE
Lloh140:
add x19, x19, l_.str.11@PAGEOFF
mov x0, x19
bl _AcpiOsPrintf
Lloh141:
adrp x8, _AcpiGbl_NsLookupCount@GOTPAGE
Lloh142:
ldr x8, [x8, _AcpiGbl_NsLookupCount@GOTPAGEOFF]
Lloh143:
ldr w8, [x8]
Lloh144:
adrp x9, l_.str.13@PAGE
Lloh145:
add x9, x9, l_.str.13@PAGEOFF
stp x9, x8, [sp]
mov x0, x19
bl _AcpiOsPrintf
Lloh146:
adrp x0, l_.str.14@PAGE
Lloh147:
add x0, x0, l_.str.14@PAGEOFF
bl _AcpiOsPrintf
Lloh148:
adrp x22, _ACPI_NUM_MUTEX@GOTPAGE
Lloh149:
ldr x22, [x22, _ACPI_NUM_MUTEX@GOTPAGEOFF]
ldr w8, [x22]
cmp w8, #1
b.lt LBB0_11
; %bb.13:
mov x20, #0
Lloh150:
adrp x23, _AcpiGbl_MutexInfo@GOTPAGE
Lloh151:
ldr x23, [x23, _AcpiGbl_MutexInfo@GOTPAGEOFF]
Lloh152:
adrp x21, l_.str.11@PAGE
Lloh153:
add x21, x21, l_.str.11@PAGEOFF
Lloh154:
adrp x19, l_.str.38@PAGE
Lloh155:
add x19, x19, l_.str.38@PAGEOFF
LBB0_14: ; =>This Inner Loop Header: Depth=1
mov x0, x20
bl _AcpiUtGetMutexName
; kill: def $w0 killed $w0 def $x0
ldr x8, [x23]
ldr w8, [x8, x20, lsl #2]
stp x0, x8, [sp]
mov x0, x21
bl _AcpiOsPrintf
add x20, x20, #1
ldrsw x8, [x22]
cmp x20, x8
b.lt LBB0_14
LBB0_15:
mov x0, x19
bl _AcpiOsPrintf
Lloh156:
adrp x8, _AE_OK@GOTPAGE
Lloh157:
ldr x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh158:
ldr w0, [x8]
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
add sp, sp, #96
ret
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpAdd Lloh92, Lloh93
.loh AdrpAdd Lloh90, Lloh91
.loh AdrpAdd Lloh88, Lloh89
.loh AdrpAdd Lloh86, Lloh87
.loh AdrpAdd Lloh84, Lloh85
.loh AdrpAdd Lloh82, Lloh83
.loh AdrpAdd Lloh80, Lloh81
.loh AdrpAdd Lloh78, Lloh79
.loh AdrpAdd Lloh76, Lloh77
.loh AdrpAdd Lloh74, Lloh75
.loh AdrpAdd Lloh72, Lloh73
.loh AdrpAdd Lloh70, Lloh71
.loh AdrpAdd Lloh68, Lloh69
.loh AdrpAdd Lloh66, Lloh67
.loh AdrpAdd Lloh64, Lloh65
.loh AdrpAdd Lloh62, Lloh63
.loh AdrpAdd Lloh60, Lloh61
.loh AdrpAdd Lloh58, Lloh59
.loh AdrpAdd Lloh56, Lloh57
.loh AdrpAdd Lloh54, Lloh55
.loh AdrpAdd Lloh52, Lloh53
.loh AdrpAdd Lloh50, Lloh51
.loh AdrpAdd Lloh48, Lloh49
.loh AdrpAdd Lloh46, Lloh47
.loh AdrpAdd Lloh44, Lloh45
.loh AdrpAdd Lloh42, Lloh43
.loh AdrpAdd Lloh40, Lloh41
.loh AdrpAdd Lloh38, Lloh39
.loh AdrpAdd Lloh36, Lloh37
.loh AdrpAdd Lloh34, Lloh35
.loh AdrpAdd Lloh32, Lloh33
.loh AdrpAdd Lloh30, Lloh31
.loh AdrpAdd Lloh28, Lloh29
.loh AdrpAdd Lloh26, Lloh27
.loh AdrpAdd Lloh24, Lloh25
.loh AdrpAdd Lloh22, Lloh23
.loh AdrpAdd Lloh20, Lloh21
.loh AdrpAdd Lloh18, Lloh19
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpAdd Lloh14, Lloh15
.loh AdrpLdrGot Lloh104, Lloh105
.loh AdrpAdd Lloh102, Lloh103
.loh AdrpAdd Lloh100, Lloh101
.loh AdrpAdd Lloh98, Lloh99
.loh AdrpAdd Lloh96, Lloh97
.loh AdrpAdd Lloh94, Lloh95
.loh AdrpAdd Lloh110, Lloh111
.loh AdrpLdrGot Lloh108, Lloh109
.loh AdrpLdrGot Lloh106, Lloh107
.loh AdrpAdd Lloh128, Lloh129
.loh AdrpLdrGotLdr Lloh124, Lloh125, Lloh127
.loh AdrpLdrGotLdr Lloh122, Lloh123, Lloh126
.loh AdrpAdd Lloh120, Lloh121
.loh AdrpAdd Lloh118, Lloh119
.loh AdrpLdrGotLdr Lloh114, Lloh115, Lloh117
.loh AdrpLdrGotLdr Lloh112, Lloh113, Lloh116
.loh AdrpAdd Lloh130, Lloh131
.loh AdrpLdrGot Lloh148, Lloh149
.loh AdrpAdd Lloh146, Lloh147
.loh AdrpAdd Lloh144, Lloh145
.loh AdrpLdrGotLdr Lloh141, Lloh142, Lloh143
.loh AdrpAdd Lloh139, Lloh140
.loh AdrpAdd Lloh137, Lloh138
.loh AdrpLdrGotLdr Lloh134, Lloh135, Lloh136
.loh AdrpAdd Lloh132, Lloh133
.loh AdrpAdd Lloh154, Lloh155
.loh AdrpAdd Lloh152, Lloh153
.loh AdrpLdrGot Lloh150, Lloh151
.loh AdrpLdrGotLdr Lloh156, Lloh157, Lloh158
.cfi_endproc
.section __TEXT,__const
.p2align 1
lJTI0_0:
.short (LBB0_4-LBB0_4)>>2
.short (LBB0_15-LBB0_4)>>2
.short (LBB0_5-LBB0_4)>>2
.short (LBB0_6-LBB0_4)>>2
.short (LBB0_12-LBB0_4)>>2
; -- End function
.comm _AcpiDbStatTypes,4,2 ; @AcpiDbStatTypes
.comm _ACPI_TYPE_NOT_FOUND,4,2 ; @ACPI_TYPE_NOT_FOUND
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Invalid or unsupported argument\n"
.comm _AE_OK,4,2 ; @AE_OK
l_.str.1: ; @.str.1
.asciz "ACPI Table Information (not implemented):\n\n"
l_.str.2: ; @.str.2
.asciz "\nObjects defined in the current namespace:\n\n"
l_.str.3: ; @.str.3
.asciz "%16.16s %10.10s %10.10s\n"
l_.str.4: ; @.str.4
.asciz "ACPI_TYPE"
l_.str.5: ; @.str.5
.asciz "NODES"
l_.str.6: ; @.str.6
.asciz "OBJECTS"
.comm _ACPI_TYPE_NS_NODE_MAX,4,2 ; @ACPI_TYPE_NS_NODE_MAX
l_.str.7: ; @.str.7
.asciz "%16.16s %10u %10u\n"
.comm _AcpiGbl_NodeTypeCount,8,3 ; @AcpiGbl_NodeTypeCount
.comm _AcpiGbl_ObjTypeCount,8,3 ; @AcpiGbl_ObjTypeCount
l_.str.8: ; @.str.8
.asciz "Misc/Unknown"
.comm _AcpiGbl_NodeTypeCountMisc,4,2 ; @AcpiGbl_NodeTypeCountMisc
.comm _AcpiGbl_ObjTypeCountMisc,4,2 ; @AcpiGbl_ObjTypeCountMisc
l_.str.9: ; @.str.9
.asciz "TOTALS:"
.comm _AcpiGbl_NumNodes,4,2 ; @AcpiGbl_NumNodes
.comm _AcpiGbl_NumObjects,4,2 ; @AcpiGbl_NumObjects
l_.str.10: ; @.str.10
.asciz "\nMiscellaneous Statistics:\n\n"
l_.str.11: ; @.str.11
.asciz "%-28s: %7u\n"
l_.str.12: ; @.str.12
.asciz "Calls to AcpiPsFind"
.comm _AcpiGbl_PsFindCount,4,2 ; @AcpiGbl_PsFindCount
l_.str.13: ; @.str.13
.asciz "Calls to AcpiNsLookup"
.comm _AcpiGbl_NsLookupCount,4,2 ; @AcpiGbl_NsLookupCount
l_.str.14: ; @.str.14
.asciz "\nMutex usage:\n\n"
.comm _ACPI_NUM_MUTEX,4,2 ; @ACPI_NUM_MUTEX
.comm _AcpiGbl_MutexInfo,8,3 ; @AcpiGbl_MutexInfo
l_.str.15: ; @.str.15
.asciz "\nInternal object sizes:\n\n"
l_.str.16: ; @.str.16
.asciz "Common %3d\n"
l_.str.17: ; @.str.17
.asciz "Number %3d\n"
l_.str.18: ; @.str.18
.asciz "String %3d\n"
l_.str.19: ; @.str.19
.asciz "Buffer %3d\n"
l_.str.20: ; @.str.20
.asciz "Package %3d\n"
l_.str.21: ; @.str.21
.asciz "BufferField %3d\n"
l_.str.22: ; @.str.22
.asciz "Device %3d\n"
l_.str.23: ; @.str.23
.asciz "Event %3d\n"
l_.str.24: ; @.str.24
.asciz "Method %3d\n"
l_.str.25: ; @.str.25
.asciz "Mutex %3d\n"
l_.str.26: ; @.str.26
.asciz "Region %3d\n"
l_.str.27: ; @.str.27
.asciz "PowerResource %3d\n"
l_.str.28: ; @.str.28
.asciz "Processor %3d\n"
l_.str.29: ; @.str.29
.asciz "ThermalZone %3d\n"
l_.str.30: ; @.str.30
.asciz "RegionField %3d\n"
l_.str.31: ; @.str.31
.asciz "BankField %3d\n"
l_.str.32: ; @.str.32
.asciz "IndexField %3d\n"
l_.str.33: ; @.str.33
.asciz "Reference %3d\n"
l_.str.34: ; @.str.34
.asciz "Notify %3d\n"
l_.str.35: ; @.str.35
.asciz "AddressSpace %3d\n"
l_.str.36: ; @.str.36
.asciz "Extra %3d\n"
l_.str.37: ; @.str.37
.asciz "Data %3d\n"
l_.str.38: ; @.str.38
.asciz "\n"
l_.str.39: ; @.str.39
.asciz "ParseObject %3d\n"
l_.str.40: ; @.str.40
.asciz "ParseObjectNamed %3d\n"
l_.str.41: ; @.str.41
.asciz "ParseObjectAsl %3d\n"
l_.str.42: ; @.str.42
.asciz "OperandObject %3d\n"
l_.str.43: ; @.str.43
.asciz "NamespaceNode %3d\n"
l_.str.44: ; @.str.44
.asciz "AcpiObject %3d\n"
l_.str.45: ; @.str.45
.asciz "Generic State %3d\n"
l_.str.46: ; @.str.46
.asciz "Common State %3d\n"
l_.str.47: ; @.str.47
.asciz "Control State %3d\n"
l_.str.48: ; @.str.48
.asciz "Update State %3d\n"
l_.str.49: ; @.str.49
.asciz "Scope State %3d\n"
l_.str.50: ; @.str.50
.asciz "Parse Scope %3d\n"
l_.str.51: ; @.str.51
.asciz "Package State %3d\n"
l_.str.52: ; @.str.52
.asciz "Thread State %3d\n"
l_.str.53: ; @.str.53
.asciz "Result Values %3d\n"
l_.str.54: ; @.str.54
.asciz "Notify Info %3d\n"
.comm _AcpiGbl_DeepestNesting,4,2 ; @AcpiGbl_DeepestNesting
.comm _AcpiGbl_EntryStackPointer,4,2 ; @AcpiGbl_EntryStackPointer
.comm _AcpiGbl_GlobalList,4,2 ; @AcpiGbl_GlobalList
.comm _AcpiGbl_LowestStackPointer,4,2 ; @AcpiGbl_LowestStackPointer
.comm _AcpiGbl_NsNodeList,4,2 ; @AcpiGbl_NsNodeList
.comm _AcpiGbl_OperandCache,4,2 ; @AcpiGbl_OperandCache
.comm _AcpiGbl_PsNodeCache,4,2 ; @AcpiGbl_PsNodeCache
.comm _AcpiGbl_PsNodeExtCache,4,2 ; @AcpiGbl_PsNodeExtCache
.comm _AcpiGbl_StateCache,4,2 ; @AcpiGbl_StateCache
.subsections_via_symbols
| AnghaBench/freebsd/sys/contrib/dev/acpica/components/debugger/extr_dbstats.c_AcpiDbDisplayStatistics.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function _get_local_va
__get_local_va: ## @_get_local_va
.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 8(%rsi), %rax
movq _SCIF_WINDOW_SELF@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_1
## %bb.2:
movq _PAGE_MASK@GOTPCREL(%rip), %rax
movl (%rax), %ebx
notl %ebx
andl %edi, %ebx
subl (%rsi), %edi
movq _PAGE_SHIFT@GOTPCREL(%rip), %rax
movb (%rax), %cl
sarl %cl, %edi
movq 16(%rsi), %rax
movq (%rax), %rax
movslq %edi, %rcx
movq (%rax,%rcx,8), %rdi
callq _page_address
movq %rax, %rcx
movslq %ebx, %rax
addq %rcx, %rax
jmp LBB0_3
LBB0_1:
xorl %eax, %eax
LBB0_3:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _PAGE_SHIFT,4,2 ## @PAGE_SHIFT
.comm _PAGE_MASK,4,2 ## @PAGE_MASK
.comm _SCIF_WINDOW_SELF,8,3 ## @SCIF_WINDOW_SELF
.no_dead_strip __get_local_va
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function _get_local_va
__get_local_va: ; @_get_local_va
.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
ldr x8, [x1, #8]
Lloh0:
adrp x9, _SCIF_WINDOW_SELF@GOTPAGE
Lloh1:
ldr x9, [x9, _SCIF_WINDOW_SELF@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_2
; %bb.1:
Lloh3:
adrp x8, _PAGE_MASK@GOTPAGE
Lloh4:
ldr x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh5:
ldr w8, [x8]
bic w19, w0, w8
ldr w8, [x1]
sub w8, w0, w8
Lloh6:
adrp x9, _PAGE_SHIFT@GOTPAGE
Lloh7:
ldr x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh8:
ldr w9, [x9]
asr w8, w8, w9
ldr x9, [x1, #16]
ldr x9, [x9]
ldr x0, [x9, w8, sxtw #3]
bl _page_address
add x0, x0, w19, sxtw
b LBB0_3
LBB0_2:
mov x0, #0
LBB0_3:
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 Lloh6, Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.cfi_endproc
; -- End function
.comm _PAGE_SHIFT,4,2 ; @PAGE_SHIFT
.comm _PAGE_MASK,4,2 ; @PAGE_MASK
.comm _SCIF_WINDOW_SELF,8,3 ; @SCIF_WINDOW_SELF
.no_dead_strip __get_local_va
.subsections_via_symbols
| AnghaBench/linux/drivers/misc/mic/scif/extr_scif_dma.c__get_local_va.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function _align2string
__align2string: ## @_align2string
.cfi_startproc
## %bb.0:
addl $-128, %edi
cmpl $9, %edi
ja LBB0_1
## %bb.2:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movslq %edi, %rax
leaq l_reltable._align2string(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
popq %rbp
retq
LBB0_1:
leaq L_.str.10(%rip), %rax
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "nothing"
L_.str.1: ## @.str.1
.asciz "aligned"
L_.str.2: ## @.str.2
.asciz "asciidoc"
L_.str.3: ## @.str.3
.asciz "csv"
L_.str.4: ## @.str.4
.asciz "html"
L_.str.5: ## @.str.5
.asciz "latex"
L_.str.6: ## @.str.6
.asciz "latex-longtable"
L_.str.7: ## @.str.7
.asciz "troff-ms"
L_.str.8: ## @.str.8
.asciz "unaligned"
L_.str.9: ## @.str.9
.asciz "wrapped"
L_.str.10: ## @.str.10
.asciz "unknown"
.no_dead_strip __align2string
.section __TEXT,__const
.p2align 2 ## @reltable._align2string
l_reltable._align2string:
.long L_.str.9-l_reltable._align2string
.long L_.str.8-l_reltable._align2string
.long L_.str.7-l_reltable._align2string
.long L_.str-l_reltable._align2string
.long L_.str.6-l_reltable._align2string
.long L_.str.5-l_reltable._align2string
.long L_.str.4-l_reltable._align2string
.long L_.str.3-l_reltable._align2string
.long L_.str.2-l_reltable._align2string
.long L_.str.1-l_reltable._align2string
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function _align2string
__align2string: ; @_align2string
.cfi_startproc
; %bb.0:
sub w8, w0, #128
cmp w8, #9
b.hi LBB0_2
; %bb.1:
Lloh0:
adrp x9, l_switch.table._align2string@PAGE
Lloh1:
add x9, x9, l_switch.table._align2string@PAGEOFF
ldr x0, [x9, w8, sxtw #3]
ret
LBB0_2:
Lloh2:
adrp x0, l_.str.10@PAGE
Lloh3:
add x0, x0, l_.str.10@PAGEOFF
ret
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "nothing"
l_.str.1: ; @.str.1
.asciz "aligned"
l_.str.2: ; @.str.2
.asciz "asciidoc"
l_.str.3: ; @.str.3
.asciz "csv"
l_.str.4: ; @.str.4
.asciz "html"
l_.str.5: ; @.str.5
.asciz "latex"
l_.str.6: ; @.str.6
.asciz "latex-longtable"
l_.str.7: ; @.str.7
.asciz "troff-ms"
l_.str.8: ; @.str.8
.asciz "unaligned"
l_.str.9: ; @.str.9
.asciz "wrapped"
l_.str.10: ; @.str.10
.asciz "unknown"
.no_dead_strip __align2string
.section __DATA,__const
.p2align 3 ; @switch.table._align2string
l_switch.table._align2string:
.quad l_.str.9
.quad l_.str.8
.quad l_.str.7
.quad l_.str
.quad l_.str.6
.quad l_.str.5
.quad l_.str.4
.quad l_.str.3
.quad l_.str.2
.quad l_.str.1
.subsections_via_symbols
| AnghaBench/postgres/src/bin/psql/extr_command.c__align2string.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _cmdline_parts_find ## -- Begin function cmdline_parts_find
.p2align 4, 0x90
_cmdline_parts_find: ## @cmdline_parts_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 %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rsi, %rbx
movq %rdi, %r14
jmp LBB0_1
.p2align 4, 0x90
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movq (%r14), %r14
LBB0_1: ## =>This Inner Loop Header: Depth=1
testq %r14, %r14
jne LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl 8, %esi
movq %rbx, %rdi
movl $4, %edx
callq _strncmp
testq %rax, %rax
jne LBB0_3
## %bb.4:
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _cmdline_parts_find ; -- Begin function cmdline_parts_find
.p2align 2
_cmdline_parts_find: ; @cmdline_parts_find
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
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
mov w21, #8 ; =0x8
b LBB0_2
LBB0_1: ; in Loop: Header=BB0_2 Depth=1
ldr x20, [x20]
LBB0_2: ; =>This Inner Loop Header: Depth=1
cbnz x20, LBB0_1
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
ldr w1, [x21]
mov x0, x19
mov w2, #4 ; =0x4
bl _strncmp
cbnz x0, LBB0_1
; %bb.4:
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
| assembly_file_60635.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function VIDDCVdp2SetPriorityNBG2
_VIDDCVdp2SetPriorityNBG2: ## @VIDDCVdp2SetPriorityNBG2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _nbg2priority@GOTPCREL(%rip), %rax
movl %edi, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _nbg2priority,4,2 ## @nbg2priority
.no_dead_strip _VIDDCVdp2SetPriorityNBG2
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function VIDDCVdp2SetPriorityNBG2
_VIDDCVdp2SetPriorityNBG2: ; @VIDDCVdp2SetPriorityNBG2
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _nbg2priority@GOTPAGE
Lloh1:
ldr x8, [x8, _nbg2priority@GOTPAGEOFF]
Lloh2:
str w0, [x8]
ret
.loh AdrpLdrGotStr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _nbg2priority,4,2 ; @nbg2priority
.no_dead_strip _VIDDCVdp2SetPriorityNBG2
.subsections_via_symbols
| AnghaBench/Provenance/Cores/Yabause/yabause/src/dreamcast/extr_viddc.c_VIDDCVdp2SetPriorityNBG2.c | anghabench |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.