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, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function iwl_mvm_set_chan_info
_iwl_mvm_set_chan_info: ## @iwl_mvm_set_chan_info
.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 %r9, %r14
movq %r8, %r15
movq %rcx, %r12
movl %edx, %r13d
movq %rsi, %rbx
callq _iwl_mvm_has_ultra_hb_channel
testq %rax, %rax
je LBB0_2
## %bb.1:
movl %r13d, %edi
callq _cpu_to_le32
movl %eax, %r13d
LBB0_2:
movl %r13d, 24(%rbx)
movq %r12, 16(%rbx)
movq %r15, 8(%rbx)
movq %r14, (%rbx)
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _iwl_mvm_set_chan_info
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function iwl_mvm_set_chan_info
_iwl_mvm_set_chan_info: ; @iwl_mvm_set_chan_info
.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, x5
mov x20, x4
mov x22, x3
mov x23, x2
mov x21, x1
bl _iwl_mvm_has_ultra_hb_channel
cbz x0, LBB0_2
; %bb.1:
mov x0, x23
bl _cpu_to_le32
mov x23, x0
LBB0_2:
str w23, [x21, #24]
stp x20, x22, [x21, #8]
str x19, [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
ret
.cfi_endproc
; -- End function
.no_dead_strip _iwl_mvm_set_chan_info
.subsections_via_symbols
| AnghaBench/linux/drivers/net/wireless/intel/iwlwifi/mvm/extr_mvm.h_iwl_mvm_set_chan_info.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function hn_fixup_tx_data
_hn_fixup_tx_data: ## @hn_fixup_tx_data
.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
movq (%rdi), %rsi
callq _hn_set_chim_size
movq _hn_tx_chimney_size@GOTPCREL(%rip), %rax
movq (%rax), %rsi
testq %rsi, %rsi
jg LBB0_2
## %bb.1:
cmpq (%rbx), %rsi
jge LBB0_3
LBB0_2:
movq %rbx, %rdi
callq _hn_set_chim_size
LBB0_3:
movl 8(%rbx), %eax
movq _HN_CAP_IPCS@GOTPCREL(%rip), %rcx
xorl %esi, %esi
movl (%rcx), %ecx
orl %eax, %ecx
movl $0, %edi
je LBB0_5
## %bb.4:
movq _CSUM_IP@GOTPCREL(%rip), %rcx
movl (%rcx), %edi
LBB0_5:
movq _HN_CAP_TCP4CS@GOTPCREL(%rip), %rcx
movl (%rcx), %r8d
andl %eax, %r8d
je LBB0_7
## %bb.6:
movq _CSUM_IP_TCP@GOTPCREL(%rip), %rcx
movl (%rcx), %r8d
LBB0_7:
movq _HN_CAP_UDP4CS@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
andl %eax, %ecx
movq _hn_enable_udp4cs@GOTPCREL(%rip), %rdx
cmpq $0, (%rdx)
movl $0, %r9d
je LBB0_9
## %bb.8:
movq _CSUM_IP_UDP@GOTPCREL(%rip), %rdx
movl (%rdx), %r9d
LBB0_9:
testl %ecx, %ecx
cmovel %ecx, %r9d
movq _HN_CAP_TCP6CS@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
andl %eax, %ecx
je LBB0_11
## %bb.10:
movq _CSUM_IP6_TCP@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
LBB0_11:
movq _HN_CAP_UDP6CS@GOTPCREL(%rip), %rdx
movl (%rdx), %edx
andl %eax, %edx
movq _hn_enable_udp6cs@GOTPCREL(%rip), %r10
cmpq $0, (%r10)
je LBB0_13
## %bb.12:
movq _CSUM_IP6_UDP@GOTPCREL(%rip), %rsi
movl (%rsi), %esi
LBB0_13:
testl %edx, %edx
cmovel %edx, %esi
movslq 12(%rbx), %rdx
testq %rdx, %rdx
jle LBB0_21
## %bb.14:
orl %edi, %r8d
orl %r9d, %r8d
orl %esi, %ecx
orl %r8d, %ecx
movq 16(%rbx), %rdi
movl %edx, %esi
andl $7, %esi
cmpl $8, %edx
jae LBB0_16
## %bb.15:
xorl %r8d, %r8d
jmp LBB0_18
LBB0_16:
movl %edx, %r9d
andl $2147483640, %r9d ## imm = 0x7FFFFFF8
xorl %r8d, %r8d
.p2align 4, 0x90
LBB0_17: ## =>This Inner Loop Header: Depth=1
movl %ecx, 4(%rdi,%r8,8)
movl %ecx, 12(%rdi,%r8,8)
movl %ecx, 20(%rdi,%r8,8)
movl %ecx, 28(%rdi,%r8,8)
movl %ecx, 36(%rdi,%r8,8)
movl %ecx, 44(%rdi,%r8,8)
movl %ecx, 52(%rdi,%r8,8)
movl %ecx, 60(%rdi,%r8,8)
addq $8, %r8
cmpq %r8, %r9
jne LBB0_17
LBB0_18:
testq %rsi, %rsi
je LBB0_21
## %bb.19:
leaq (%rdi,%r8,8), %rdi
addq $4, %rdi
xorl %r8d, %r8d
.p2align 4, 0x90
LBB0_20: ## =>This Inner Loop Header: Depth=1
movl %ecx, (%rdi,%r8,8)
incq %r8
cmpq %r8, %rsi
jne LBB0_20
LBB0_21:
movq _HN_CAP_HASHVAL@GOTPCREL(%rip), %rcx
testl %eax, (%rcx)
je LBB0_38
## %bb.22:
movq _bootverbose@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_24
## %bb.23:
movl 24(%rbx), %edi
leaq L_.str(%rip), %rsi
callq _if_printf
movl 12(%rbx), %edx
LBB0_24:
testl %edx, %edx
jle LBB0_38
## %bb.25:
movq 16(%rbx), %rax
movl %edx, %ecx
cmpl $13, %edx
jb LBB0_26
## %bb.27:
movq _HN_TX_FLAG_HASHVAL@GOTPCREL(%rip), %rsi
leaq 4(%rsi), %rdx
cmpq %rdx, %rax
jae LBB0_30
## %bb.28:
leaq (%rax,%rcx,8), %rdx
addq $-4, %rdx
cmpq _HN_TX_FLAG_HASHVAL@GOTPCREL(%rip), %rdx
jbe LBB0_30
LBB0_26:
xorl %edx, %edx
jmp LBB0_32
LBB0_30:
movl %ecx, %edx
andl $7, %edx
movl $8, %edi
cmovneq %rdx, %rdi
movq %rcx, %rdx
subq %rdi, %rdx
movd (%rsi), %xmm0 ## xmm0 = mem[0],zero,zero,zero
pshufd $0, %xmm0, %xmm0 ## xmm0 = xmm0[0,0,0,0]
xorl %esi, %esi
.p2align 4, 0x90
LBB0_31: ## =>This Inner Loop Header: Depth=1
movups (%rax,%rsi,8), %xmm1
movups 16(%rax,%rsi,8), %xmm2
shufps $136, %xmm2, %xmm1 ## xmm1 = xmm1[0,2],xmm2[0,2]
movups 32(%rax,%rsi,8), %xmm2
movups 48(%rax,%rsi,8), %xmm3
orps %xmm0, %xmm1
movss %xmm1, (%rax,%rsi,8)
extractps $1, %xmm1, 8(%rax,%rsi,8)
extractps $2, %xmm1, 16(%rax,%rsi,8)
extractps $3, %xmm1, 24(%rax,%rsi,8)
shufps $136, %xmm3, %xmm2 ## xmm2 = xmm2[0,2],xmm3[0,2]
orps %xmm0, %xmm2
movss %xmm2, 32(%rax,%rsi,8)
extractps $1, %xmm2, 40(%rax,%rsi,8)
extractps $2, %xmm2, 48(%rax,%rsi,8)
extractps $3, %xmm2, 56(%rax,%rsi,8)
addq $8, %rsi
cmpq %rsi, %rdx
jne LBB0_31
LBB0_32:
movl %ecx, %edi
subl %edx, %edi
movq %rdx, %rsi
andl $3, %edi
je LBB0_35
## %bb.33:
movq _HN_TX_FLAG_HASHVAL@GOTPCREL(%rip), %r8
movq %rdx, %rsi
.p2align 4, 0x90
LBB0_34: ## =>This Inner Loop Header: Depth=1
movl (%r8), %r9d
orl %r9d, (%rax,%rsi,8)
incq %rsi
decq %rdi
jne LBB0_34
LBB0_35:
subq %rcx, %rdx
cmpq $-4, %rdx
ja LBB0_38
## %bb.36:
movq _HN_TX_FLAG_HASHVAL@GOTPCREL(%rip), %rdx
.p2align 4, 0x90
LBB0_37: ## =>This Inner Loop Header: Depth=1
movl (%rdx), %edi
orl %edi, (%rax,%rsi,8)
movl (%rdx), %edi
orl %edi, 8(%rax,%rsi,8)
movl (%rdx), %edi
orl %edi, 16(%rax,%rsi,8)
movl (%rdx), %edi
orl %edi, 24(%rax,%rsi,8)
addq $4, %rsi
cmpq %rsi, %rcx
jne LBB0_37
LBB0_38:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _hn_tx_chimney_size,8,3 ## @hn_tx_chimney_size
.comm _HN_CAP_IPCS,4,2 ## @HN_CAP_IPCS
.comm _CSUM_IP,4,2 ## @CSUM_IP
.comm _HN_CAP_TCP4CS,4,2 ## @HN_CAP_TCP4CS
.comm _CSUM_IP_TCP,4,2 ## @CSUM_IP_TCP
.comm _HN_CAP_UDP4CS,4,2 ## @HN_CAP_UDP4CS
.comm _hn_enable_udp4cs,8,3 ## @hn_enable_udp4cs
.comm _CSUM_IP_UDP,4,2 ## @CSUM_IP_UDP
.comm _HN_CAP_TCP6CS,4,2 ## @HN_CAP_TCP6CS
.comm _CSUM_IP6_TCP,4,2 ## @CSUM_IP6_TCP
.comm _HN_CAP_UDP6CS,4,2 ## @HN_CAP_UDP6CS
.comm _hn_enable_udp6cs,8,3 ## @hn_enable_udp6cs
.comm _CSUM_IP6_UDP,4,2 ## @CSUM_IP6_UDP
.comm _HN_CAP_HASHVAL,4,2 ## @HN_CAP_HASHVAL
.comm _bootverbose,8,3 ## @bootverbose
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "support HASHVAL pktinfo\n"
.comm _HN_TX_FLAG_HASHVAL,4,2 ## @HN_TX_FLAG_HASHVAL
.no_dead_strip _hn_fixup_tx_data
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function hn_fixup_tx_data
_hn_fixup_tx_data: ; @hn_fixup_tx_data
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
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 x1, [x0]
bl _hn_set_chim_size
Lloh0:
adrp x8, _hn_tx_chimney_size@GOTPAGE
Lloh1:
ldr x8, [x8, _hn_tx_chimney_size@GOTPAGEOFF]
Lloh2:
ldr x1, [x8]
cmp x1, #0
b.gt LBB0_2
; %bb.1:
ldr x8, [x19]
cmp x1, x8
b.ge LBB0_3
LBB0_2:
mov x0, x19
bl _hn_set_chim_size
LBB0_3:
Lloh3:
adrp x8, _HN_CAP_IPCS@GOTPAGE
Lloh4:
ldr x8, [x8, _HN_CAP_IPCS@GOTPAGEOFF]
Lloh5:
ldr w10, [x8]
ldp w8, w9, [x19, #8]
orr w10, w10, w8
Lloh6:
adrp x11, _CSUM_IP@GOTPAGE
Lloh7:
ldr x11, [x11, _CSUM_IP@GOTPAGEOFF]
Lloh8:
ldr w11, [x11]
Lloh9:
adrp x12, _HN_CAP_TCP4CS@GOTPAGE
Lloh10:
ldr x12, [x12, _HN_CAP_TCP4CS@GOTPAGEOFF]
cmp w10, #0
csel w10, wzr, w11, eq
Lloh11:
ldr w11, [x12]
Lloh12:
adrp x12, _CSUM_IP_TCP@GOTPAGE
Lloh13:
ldr x12, [x12, _CSUM_IP_TCP@GOTPAGEOFF]
Lloh14:
ldr w12, [x12]
tst w11, w8
csel w11, wzr, w12, eq
Lloh15:
adrp x12, _HN_CAP_UDP4CS@GOTPAGE
Lloh16:
ldr x12, [x12, _HN_CAP_UDP4CS@GOTPAGEOFF]
Lloh17:
ldr w12, [x12]
Lloh18:
adrp x13, _hn_enable_udp4cs@GOTPAGE
Lloh19:
ldr x13, [x13, _hn_enable_udp4cs@GOTPAGEOFF]
and w12, w12, w8
Lloh20:
ldr x13, [x13]
cmp x13, #0
ccmp w12, #0, #4, ne
Lloh21:
adrp x12, _CSUM_IP_UDP@GOTPAGE
Lloh22:
ldr x12, [x12, _CSUM_IP_UDP@GOTPAGEOFF]
Lloh23:
ldr w12, [x12]
csel w12, w12, wzr, ne
Lloh24:
adrp x13, _HN_CAP_TCP6CS@GOTPAGE
Lloh25:
ldr x13, [x13, _HN_CAP_TCP6CS@GOTPAGEOFF]
Lloh26:
adrp x14, _CSUM_IP6_TCP@GOTPAGE
Lloh27:
ldr x14, [x14, _CSUM_IP6_TCP@GOTPAGEOFF]
Lloh28:
ldr w13, [x13]
Lloh29:
ldr w14, [x14]
tst w13, w8
csel w13, wzr, w14, eq
Lloh30:
adrp x14, _hn_enable_udp6cs@GOTPAGE
Lloh31:
ldr x14, [x14, _hn_enable_udp6cs@GOTPAGEOFF]
Lloh32:
ldr x14, [x14]
cmp x14, #0
Lloh33:
adrp x14, _HN_CAP_UDP6CS@GOTPAGE
Lloh34:
ldr x14, [x14, _HN_CAP_UDP6CS@GOTPAGEOFF]
Lloh35:
ldr w14, [x14]
and w14, w14, w8
ccmp w14, #0, #4, ne
Lloh36:
adrp x14, _CSUM_IP6_UDP@GOTPAGE
Lloh37:
ldr x14, [x14, _CSUM_IP6_UDP@GOTPAGEOFF]
Lloh38:
ldr w14, [x14]
csel w14, w14, wzr, ne
cmp w9, #1
b.lt LBB0_11
; %bb.4:
orr w10, w11, w10
orr w11, w12, w13
orr w10, w10, w11
orr w10, w10, w14
ldr x11, [x19, #16]
cmp w9, #4
b.hs LBB0_6
; %bb.5:
mov x12, #0 ; =0x0
b LBB0_9
LBB0_6:
and x12, x9, #0x7ffffffc
add x13, x11, #20
mov x14, x12
LBB0_7: ; =>This Inner Loop Header: Depth=1
stur w10, [x13, #-16]
stur w10, [x13, #-8]
str w10, [x13]
str w10, [x13, #8]
add x13, x13, #32
subs x14, x14, #4
b.ne LBB0_7
; %bb.8:
cmp x12, x9
b.eq LBB0_11
LBB0_9:
add x11, x11, x12, lsl #3
add x11, x11, #4
sub x12, x9, x12
LBB0_10: ; =>This Inner Loop Header: Depth=1
str w10, [x11], #8
subs x12, x12, #1
b.ne LBB0_10
LBB0_11:
Lloh39:
adrp x10, _HN_CAP_HASHVAL@GOTPAGE
Lloh40:
ldr x10, [x10, _HN_CAP_HASHVAL@GOTPAGEOFF]
Lloh41:
ldr w10, [x10]
tst w10, w8
b.eq LBB0_23
; %bb.12:
Lloh42:
adrp x8, _bootverbose@GOTPAGE
Lloh43:
ldr x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh44:
ldr x8, [x8]
cbz x8, LBB0_14
; %bb.13:
ldr w0, [x19, #24]
Lloh45:
adrp x1, l_.str@PAGE
Lloh46:
add x1, x1, l_.str@PAGEOFF
bl _if_printf
ldr w9, [x19, #12]
LBB0_14:
cmp w9, #1
b.lt LBB0_23
; %bb.15:
ldr x11, [x19, #16]
mov w10, w9
Lloh47:
adrp x8, _HN_TX_FLAG_HASHVAL@GOTPAGE
Lloh48:
ldr x8, [x8, _HN_TX_FLAG_HASHVAL@GOTPAGEOFF]
cmp w9, #9
b.lo LBB0_18
; %bb.16:
add x9, x8, #4
cmp x11, x9
b.hs LBB0_19
; %bb.17:
add x9, x11, x10, lsl #3
sub x9, x9, #4
cmp x9, x8
b.ls LBB0_19
LBB0_18:
mov x9, #0 ; =0x0
b LBB0_21
LBB0_19:
ands x9, x10, #0x3
mov w12, #4 ; =0x4
csel x9, x12, x9, eq
sub x9, x10, x9
ld1r.4s { v0 }, [x8]
mov x12, x9
mov x14, x11
mov x13, x11
LBB0_20: ; =>This Inner Loop Header: Depth=1
add x15, x14, #8
ld2.4s { v1, v2 }, [x13], #32
add x16, x14, #16
add x17, x14, #24
orr.16b v1, v1, v0
str s1, [x14]
st1.s { v1 }[1], [x15]
st1.s { v1 }[2], [x16]
st1.s { v1 }[3], [x17]
mov x14, x13
subs x12, x12, #4
b.ne LBB0_20
LBB0_21:
add x11, x11, x9, lsl #3
sub x9, x10, x9
LBB0_22: ; =>This Inner Loop Header: Depth=1
ldr w10, [x8]
ldr w12, [x11]
orr w10, w12, w10
str w10, [x11], #8
subs x9, x9, #1
b.ne LBB0_22
LBB0_23:
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 Lloh36, Lloh37, Lloh38
.loh AdrpLdrGotLdr Lloh33, Lloh34, Lloh35
.loh AdrpLdrGotLdr Lloh30, Lloh31, Lloh32
.loh AdrpLdrGotLdr Lloh26, Lloh27, Lloh29
.loh AdrpLdrGotLdr Lloh24, Lloh25, Lloh28
.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 Lloh39, Lloh40, Lloh41
.loh AdrpLdrGotLdr Lloh42, Lloh43, Lloh44
.loh AdrpAdd Lloh45, Lloh46
.loh AdrpLdrGot Lloh47, Lloh48
.cfi_endproc
; -- End function
.comm _hn_tx_chimney_size,8,3 ; @hn_tx_chimney_size
.comm _HN_CAP_IPCS,4,2 ; @HN_CAP_IPCS
.comm _CSUM_IP,4,2 ; @CSUM_IP
.comm _HN_CAP_TCP4CS,4,2 ; @HN_CAP_TCP4CS
.comm _CSUM_IP_TCP,4,2 ; @CSUM_IP_TCP
.comm _HN_CAP_UDP4CS,4,2 ; @HN_CAP_UDP4CS
.comm _hn_enable_udp4cs,8,3 ; @hn_enable_udp4cs
.comm _CSUM_IP_UDP,4,2 ; @CSUM_IP_UDP
.comm _HN_CAP_TCP6CS,4,2 ; @HN_CAP_TCP6CS
.comm _CSUM_IP6_TCP,4,2 ; @CSUM_IP6_TCP
.comm _HN_CAP_UDP6CS,4,2 ; @HN_CAP_UDP6CS
.comm _hn_enable_udp6cs,8,3 ; @hn_enable_udp6cs
.comm _CSUM_IP6_UDP,4,2 ; @CSUM_IP6_UDP
.comm _HN_CAP_HASHVAL,4,2 ; @HN_CAP_HASHVAL
.comm _bootverbose,8,3 ; @bootverbose
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "support HASHVAL pktinfo\n"
.comm _HN_TX_FLAG_HASHVAL,4,2 ; @HN_TX_FLAG_HASHVAL
.no_dead_strip _hn_fixup_tx_data
.subsections_via_symbols
| assembly_file_11765.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function mv64xxx_i2c_fsm
_mv64xxx_i2c_fsm: ## @mv64xxx_i2c_fsm
.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
movq (%rdi), %rdx
movq _MV64XXX_I2C_STATE_IDLE@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq %rax, %rdx
jne LBB0_2
## %bb.1:
movq _MV64XXX_I2C_ACTION_SEND_STOP@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, 16(%rbx)
jmp LBB0_26
LBB0_2:
movl %esi, %ecx
leal -128(%rcx), %esi
cmpl $11, %esi
ja LBB0_6
## %bb.3:
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rsi,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
LBB0_4:
movq _MV64XXX_I2C_ACTION_SEND_STOP@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rcx, 16(%rbx)
movq %rax, (%rbx)
movq _ENODEV@GOTPCREL(%rip), %rax
jmp LBB0_7
LBB0_5:
movq _MV64XXX_I2C_ACTION_SEND_ADDR_1@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, 16(%rbx)
movq _MV64XXX_I2C_STATE_WAITING_FOR_ADDR_1_ACK@GOTPCREL(%rip), %rax
jmp LBB0_17
LBB0_6:
leaq 32(%rbx), %rdi
movq 24(%rbx), %rax
movl (%rax), %r9d
movl 4(%rax), %r8d
leaq L_.str(%rip), %rsi
## kill: def $ecx killed $ecx killed $rcx
callq _dev_err
movq _MV64XXX_I2C_ACTION_SEND_STOP@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, 16(%rbx)
movq %rbx, %rdi
callq _mv64xxx_i2c_hw_init
movq _EIO@GOTPCREL(%rip), %rax
LBB0_7:
xorl %ecx, %ecx
subl (%rax), %ecx
movl %ecx, 12(%rbx)
jmp LBB0_26
LBB0_8:
movq 24(%rbx), %rcx
movq _I2C_M_TEN@GOTPCREL(%rip), %rdx
movl (%rdx), %edx
testl %edx, (%rcx)
jne LBB0_16
LBB0_9:
movl 8(%rbx), %ecx
testl %ecx, %ecx
je LBB0_23
## %bb.10:
cmpl $0, 40(%rbx)
je LBB0_12
## %bb.11:
cmpl $0, 44(%rbx)
jne LBB0_23
LBB0_12:
movq _MV64XXX_I2C_ACTION_SEND_DATA@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, 16(%rbx)
movq _MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_ACK@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, (%rbx)
decl %ecx
movl %ecx, 8(%rbx)
jmp LBB0_26
LBB0_13:
movq _MV64XXX_I2C_ACTION_RCV_DATA_STOP@GOTPCREL(%rip), %rcx
jmp LBB0_24
LBB0_14:
movq _MV64XXX_I2C_ACTION_RCV_DATA@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, 16(%rbx)
movl 8(%rbx), %ecx
decl %ecx
movl %ecx, 8(%rbx)
jmp LBB0_20
LBB0_15:
movq 24(%rbx), %rcx
movq _I2C_M_TEN@GOTPCREL(%rip), %rdx
movl (%rdx), %edx
testl %edx, (%rcx)
je LBB0_18
LBB0_16:
movq _MV64XXX_I2C_ACTION_SEND_ADDR_2@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, 16(%rbx)
movq _MV64XXX_I2C_STATE_WAITING_FOR_ADDR_2_ACK@GOTPCREL(%rip), %rax
LBB0_17:
movq (%rax), %rax
jmp LBB0_25
LBB0_18:
movl 8(%rbx), %ecx
testl %ecx, %ecx
je LBB0_23
## %bb.19:
movq _MV64XXX_I2C_ACTION_CONTINUE@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, 16(%rbx)
LBB0_20:
movq _MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_DATA@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, (%rbx)
cmpl $1, %ecx
je LBB0_22
## %bb.21:
cmpl $0, 40(%rbx)
je LBB0_26
LBB0_22:
movq _MV64XXX_I2C_REG_CONTROL_ACK@GOTPCREL(%rip), %rax
movl (%rax), %eax
notl %eax
andl %eax, 36(%rbx)
jmp LBB0_26
LBB0_23:
movq _MV64XXX_I2C_ACTION_SEND_STOP@GOTPCREL(%rip), %rcx
LBB0_24:
movq (%rcx), %rcx
movq %rcx, 16(%rbx)
LBB0_25:
movq %rax, (%rbx)
LBB0_26:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
.long L0_0_set_4
.long L0_0_set_4
.long L0_0_set_8
.long L0_0_set_9
.long L0_0_set_9
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_13
.long L0_0_set_14
.long L0_0_set_4
.long L0_0_set_15
.long L0_0_set_18
.end_data_region
## -- End function
.comm _MV64XXX_I2C_STATE_IDLE,8,3 ## @MV64XXX_I2C_STATE_IDLE
.comm _MV64XXX_I2C_ACTION_SEND_STOP,8,3 ## @MV64XXX_I2C_ACTION_SEND_STOP
.comm _MV64XXX_I2C_ACTION_SEND_ADDR_1,8,3 ## @MV64XXX_I2C_ACTION_SEND_ADDR_1
.comm _MV64XXX_I2C_STATE_WAITING_FOR_ADDR_1_ACK,8,3 ## @MV64XXX_I2C_STATE_WAITING_FOR_ADDR_1_ACK
.comm _I2C_M_TEN,4,2 ## @I2C_M_TEN
.comm _MV64XXX_I2C_ACTION_SEND_ADDR_2,8,3 ## @MV64XXX_I2C_ACTION_SEND_ADDR_2
.comm _MV64XXX_I2C_STATE_WAITING_FOR_ADDR_2_ACK,8,3 ## @MV64XXX_I2C_STATE_WAITING_FOR_ADDR_2_ACK
.comm _MV64XXX_I2C_ACTION_SEND_DATA,8,3 ## @MV64XXX_I2C_ACTION_SEND_DATA
.comm _MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_ACK,8,3 ## @MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_ACK
.comm _MV64XXX_I2C_ACTION_CONTINUE,8,3 ## @MV64XXX_I2C_ACTION_CONTINUE
.comm _MV64XXX_I2C_ACTION_RCV_DATA,8,3 ## @MV64XXX_I2C_ACTION_RCV_DATA
.comm _MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_DATA,8,3 ## @MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_DATA
.comm _MV64XXX_I2C_REG_CONTROL_ACK,4,2 ## @MV64XXX_I2C_REG_CONTROL_ACK
.comm _MV64XXX_I2C_ACTION_RCV_DATA_STOP,8,3 ## @MV64XXX_I2C_ACTION_RCV_DATA_STOP
.comm _ENODEV,4,2 ## @ENODEV
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "mv64xxx_i2c_fsm: Ctlr Error -- state: 0x%x, status: 0x%x, addr: 0x%x, flags: 0x%x\n"
.comm _EIO,4,2 ## @EIO
.no_dead_strip _mv64xxx_i2c_fsm
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function mv64xxx_i2c_fsm
_mv64xxx_i2c_fsm: ; @mv64xxx_i2c_fsm
.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 x2, [x0]
Lloh0:
adrp x8, _MV64XXX_I2C_STATE_IDLE@GOTPAGE
Lloh1:
ldr x8, [x8, _MV64XXX_I2C_STATE_IDLE@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
cmp x2, x8
b.ne LBB0_2
; %bb.1:
Lloh3:
adrp x8, _MV64XXX_I2C_ACTION_SEND_STOP@GOTPAGE
Lloh4:
ldr x8, [x8, _MV64XXX_I2C_ACTION_SEND_STOP@GOTPAGEOFF]
Lloh5:
ldr x8, [x8]
str x8, [x19, #16]
b LBB0_26
LBB0_2:
mov x3, x1
sub w9, w1, #128
cmp w9, #11
b.hi LBB0_6
; %bb.3:
Lloh6:
adrp x10, lJTI0_0@PAGE
Lloh7:
add x10, x10, lJTI0_0@PAGEOFF
adr x11, LBB0_4
ldrb w12, [x10, x9]
add x11, x11, x12, lsl #2
br x11
LBB0_4:
Lloh8:
adrp x9, _MV64XXX_I2C_ACTION_SEND_STOP@GOTPAGE
Lloh9:
ldr x9, [x9, _MV64XXX_I2C_ACTION_SEND_STOP@GOTPAGEOFF]
Lloh10:
ldr x9, [x9]
str x9, [x19, #16]
str x8, [x19]
Lloh11:
adrp x8, _ENODEV@GOTPAGE
Lloh12:
ldr x8, [x8, _ENODEV@GOTPAGEOFF]
b LBB0_7
LBB0_5:
Lloh13:
adrp x8, _MV64XXX_I2C_ACTION_SEND_ADDR_1@GOTPAGE
Lloh14:
ldr x8, [x8, _MV64XXX_I2C_ACTION_SEND_ADDR_1@GOTPAGEOFF]
Lloh15:
ldr x8, [x8]
str x8, [x19, #16]
Lloh16:
adrp x8, _MV64XXX_I2C_STATE_WAITING_FOR_ADDR_1_ACK@GOTPAGE
Lloh17:
ldr x8, [x8, _MV64XXX_I2C_STATE_WAITING_FOR_ADDR_1_ACK@GOTPAGEOFF]
b LBB0_17
LBB0_6:
add x0, x19, #32
ldr x8, [x19, #24]
ldp w5, w4, [x8]
Lloh18:
adrp x1, l_.str@PAGE
Lloh19:
add x1, x1, l_.str@PAGEOFF
bl _dev_err
Lloh20:
adrp x8, _MV64XXX_I2C_ACTION_SEND_STOP@GOTPAGE
Lloh21:
ldr x8, [x8, _MV64XXX_I2C_ACTION_SEND_STOP@GOTPAGEOFF]
Lloh22:
ldr x8, [x8]
str x8, [x19, #16]
mov x0, x19
bl _mv64xxx_i2c_hw_init
Lloh23:
adrp x8, _EIO@GOTPAGE
Lloh24:
ldr x8, [x8, _EIO@GOTPAGEOFF]
LBB0_7:
ldr w8, [x8]
neg w8, w8
str w8, [x19, #12]
b LBB0_26
LBB0_8:
ldr x9, [x19, #24]
ldr w9, [x9]
Lloh25:
adrp x10, _I2C_M_TEN@GOTPAGE
Lloh26:
ldr x10, [x10, _I2C_M_TEN@GOTPAGEOFF]
Lloh27:
ldr w10, [x10]
tst w10, w9
b.ne LBB0_16
LBB0_9:
ldr w9, [x19, #8]
cbz w9, LBB0_23
; %bb.10:
ldr w10, [x19, #40]
cbz w10, LBB0_12
; %bb.11:
ldr w10, [x19, #44]
cbnz w10, LBB0_23
LBB0_12:
Lloh28:
adrp x8, _MV64XXX_I2C_ACTION_SEND_DATA@GOTPAGE
Lloh29:
ldr x8, [x8, _MV64XXX_I2C_ACTION_SEND_DATA@GOTPAGEOFF]
Lloh30:
ldr x8, [x8]
str x8, [x19, #16]
Lloh31:
adrp x8, _MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_ACK@GOTPAGE
Lloh32:
ldr x8, [x8, _MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_ACK@GOTPAGEOFF]
Lloh33:
ldr x8, [x8]
str x8, [x19]
sub w8, w9, #1
str w8, [x19, #8]
b LBB0_26
LBB0_13:
Lloh34:
adrp x9, _MV64XXX_I2C_ACTION_RCV_DATA_STOP@GOTPAGE
Lloh35:
ldr x9, [x9, _MV64XXX_I2C_ACTION_RCV_DATA_STOP@GOTPAGEOFF]
b LBB0_24
LBB0_14:
Lloh36:
adrp x8, _MV64XXX_I2C_ACTION_RCV_DATA@GOTPAGE
Lloh37:
ldr x8, [x8, _MV64XXX_I2C_ACTION_RCV_DATA@GOTPAGEOFF]
Lloh38:
ldr x8, [x8]
str x8, [x19, #16]
ldr w8, [x19, #8]
sub w9, w8, #1
str w9, [x19, #8]
b LBB0_20
LBB0_15:
ldr x9, [x19, #24]
ldr w9, [x9]
Lloh39:
adrp x10, _I2C_M_TEN@GOTPAGE
Lloh40:
ldr x10, [x10, _I2C_M_TEN@GOTPAGEOFF]
Lloh41:
ldr w10, [x10]
tst w10, w9
b.eq LBB0_18
LBB0_16:
Lloh42:
adrp x8, _MV64XXX_I2C_ACTION_SEND_ADDR_2@GOTPAGE
Lloh43:
ldr x8, [x8, _MV64XXX_I2C_ACTION_SEND_ADDR_2@GOTPAGEOFF]
Lloh44:
ldr x8, [x8]
str x8, [x19, #16]
Lloh45:
adrp x8, _MV64XXX_I2C_STATE_WAITING_FOR_ADDR_2_ACK@GOTPAGE
Lloh46:
ldr x8, [x8, _MV64XXX_I2C_STATE_WAITING_FOR_ADDR_2_ACK@GOTPAGEOFF]
LBB0_17:
ldr x8, [x8]
b LBB0_25
LBB0_18:
ldr w9, [x19, #8]
cbz w9, LBB0_23
; %bb.19:
Lloh47:
adrp x8, _MV64XXX_I2C_ACTION_CONTINUE@GOTPAGE
Lloh48:
ldr x8, [x8, _MV64XXX_I2C_ACTION_CONTINUE@GOTPAGEOFF]
Lloh49:
ldr x8, [x8]
str x8, [x19, #16]
LBB0_20:
Lloh50:
adrp x8, _MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_DATA@GOTPAGE
Lloh51:
ldr x8, [x8, _MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_DATA@GOTPAGEOFF]
Lloh52:
ldr x8, [x8]
str x8, [x19]
cmp w9, #1
b.eq LBB0_22
; %bb.21:
ldr w8, [x19, #40]
cbz w8, LBB0_26
LBB0_22:
Lloh53:
adrp x8, _MV64XXX_I2C_REG_CONTROL_ACK@GOTPAGE
Lloh54:
ldr x8, [x8, _MV64XXX_I2C_REG_CONTROL_ACK@GOTPAGEOFF]
Lloh55:
ldr w8, [x8]
ldr w9, [x19, #36]
bic w8, w9, w8
str w8, [x19, #36]
b LBB0_26
LBB0_23:
Lloh56:
adrp x9, _MV64XXX_I2C_ACTION_SEND_STOP@GOTPAGE
Lloh57:
ldr x9, [x9, _MV64XXX_I2C_ACTION_SEND_STOP@GOTPAGEOFF]
LBB0_24:
ldr x9, [x9]
str x9, [x19, #16]
LBB0_25:
str x8, [x19]
LBB0_26:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpLdrGot Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGot Lloh16, Lloh17
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpLdrGot Lloh23, Lloh24
.loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22
.loh AdrpAdd Lloh18, Lloh19
.loh AdrpLdrGotLdr Lloh25, Lloh26, Lloh27
.loh AdrpLdrGotLdr Lloh31, Lloh32, Lloh33
.loh AdrpLdrGotLdr Lloh28, Lloh29, Lloh30
.loh AdrpLdrGot Lloh34, Lloh35
.loh AdrpLdrGotLdr Lloh36, Lloh37, Lloh38
.loh AdrpLdrGotLdr Lloh39, Lloh40, Lloh41
.loh AdrpLdrGot Lloh45, Lloh46
.loh AdrpLdrGotLdr Lloh42, Lloh43, Lloh44
.loh AdrpLdrGotLdr Lloh47, Lloh48, Lloh49
.loh AdrpLdrGotLdr Lloh50, Lloh51, Lloh52
.loh AdrpLdrGotLdr Lloh53, Lloh54, Lloh55
.loh AdrpLdrGot Lloh56, Lloh57
.cfi_endproc
.section __TEXT,__const
lJTI0_0:
.byte (LBB0_4-LBB0_4)>>2
.byte (LBB0_4-LBB0_4)>>2
.byte (LBB0_8-LBB0_4)>>2
.byte (LBB0_9-LBB0_4)>>2
.byte (LBB0_9-LBB0_4)>>2
.byte (LBB0_5-LBB0_4)>>2
.byte (LBB0_5-LBB0_4)>>2
.byte (LBB0_13-LBB0_4)>>2
.byte (LBB0_14-LBB0_4)>>2
.byte (LBB0_4-LBB0_4)>>2
.byte (LBB0_15-LBB0_4)>>2
.byte (LBB0_18-LBB0_4)>>2
; -- End function
.comm _MV64XXX_I2C_STATE_IDLE,8,3 ; @MV64XXX_I2C_STATE_IDLE
.comm _MV64XXX_I2C_ACTION_SEND_STOP,8,3 ; @MV64XXX_I2C_ACTION_SEND_STOP
.comm _MV64XXX_I2C_ACTION_SEND_ADDR_1,8,3 ; @MV64XXX_I2C_ACTION_SEND_ADDR_1
.comm _MV64XXX_I2C_STATE_WAITING_FOR_ADDR_1_ACK,8,3 ; @MV64XXX_I2C_STATE_WAITING_FOR_ADDR_1_ACK
.comm _I2C_M_TEN,4,2 ; @I2C_M_TEN
.comm _MV64XXX_I2C_ACTION_SEND_ADDR_2,8,3 ; @MV64XXX_I2C_ACTION_SEND_ADDR_2
.comm _MV64XXX_I2C_STATE_WAITING_FOR_ADDR_2_ACK,8,3 ; @MV64XXX_I2C_STATE_WAITING_FOR_ADDR_2_ACK
.comm _MV64XXX_I2C_ACTION_SEND_DATA,8,3 ; @MV64XXX_I2C_ACTION_SEND_DATA
.comm _MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_ACK,8,3 ; @MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_ACK
.comm _MV64XXX_I2C_ACTION_CONTINUE,8,3 ; @MV64XXX_I2C_ACTION_CONTINUE
.comm _MV64XXX_I2C_ACTION_RCV_DATA,8,3 ; @MV64XXX_I2C_ACTION_RCV_DATA
.comm _MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_DATA,8,3 ; @MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_DATA
.comm _MV64XXX_I2C_REG_CONTROL_ACK,4,2 ; @MV64XXX_I2C_REG_CONTROL_ACK
.comm _MV64XXX_I2C_ACTION_RCV_DATA_STOP,8,3 ; @MV64XXX_I2C_ACTION_RCV_DATA_STOP
.comm _ENODEV,4,2 ; @ENODEV
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "mv64xxx_i2c_fsm: Ctlr Error -- state: 0x%x, status: 0x%x, addr: 0x%x, flags: 0x%x\n"
.comm _EIO,4,2 ; @EIO
.no_dead_strip _mv64xxx_i2c_fsm
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/drivers/i2c/busses/extr_i2c-mv64xxx.c_mv64xxx_i2c_fsm.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ext4_es_is_referenced
_ext4_es_is_referenced: ## @ext4_es_is_referenced
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _ext4_es_status
movq _EXTENT_STATUS_REFERENCED@GOTPCREL(%rip), %rdx
xorl %ecx, %ecx
testl %eax, (%rdx)
setne %cl
movl %ecx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EXTENT_STATUS_REFERENCED,4,2 ## @EXTENT_STATUS_REFERENCED
.no_dead_strip _ext4_es_is_referenced
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ext4_es_is_referenced
_ext4_es_is_referenced: ; @ext4_es_is_referenced
.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 _ext4_es_status
Lloh0:
adrp x8, _EXTENT_STATUS_REFERENCED@GOTPAGE
Lloh1:
ldr x8, [x8, _EXTENT_STATUS_REFERENCED@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
tst w8, w0
cset w0, ne
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _EXTENT_STATUS_REFERENCED,4,2 ; @EXTENT_STATUS_REFERENCED
.no_dead_strip _ext4_es_is_referenced
.subsections_via_symbols
| AnghaBench/linux/fs/ext4/extr_extents_status.h_ext4_es_is_referenced.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _hcreate ## -- Begin function hcreate
.p2align 4, 0x90
_hcreate: ## @hcreate
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq ___error
movl $78, (%rax)
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _hdestroy ## -- Begin function hdestroy
.p2align 4, 0x90
_hdestroy: ## @hdestroy
.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 _hsearch ## -- Begin function hsearch
.p2align 4, 0x90
_hsearch: ## @hsearch
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq ___error
movl $78, (%rax)
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _insque ## -- Begin function insque
.p2align 4, 0x90
_insque: ## @insque
.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 _lfind ## -- Begin function lfind
.p2align 4, 0x90
_lfind: ## @lfind
.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 _lsearch ## -- Begin function lsearch
.p2align 4, 0x90
_lsearch: ## @lsearch
.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 _remque ## -- Begin function remque
.p2align 4, 0x90
_remque: ## @remque
.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 _tdelete ## -- Begin function tdelete
.p2align 4, 0x90
_tdelete: ## @tdelete
.cfi_startproc
## %bb.0:
testq %rsi, %rsi
je LBB7_2
## %bb.1:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq ___error
movl $78, (%rax)
popq %rbp
LBB7_2:
xorl %eax, %eax
retq
.cfi_endproc
## -- End function
.globl _tfind ## -- Begin function tfind
.p2align 4, 0x90
_tfind: ## @tfind
.cfi_startproc
## %bb.0:
testq %rsi, %rsi
je LBB8_2
## %bb.1:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq ___error
movl $78, (%rax)
popq %rbp
LBB8_2:
xorl %eax, %eax
retq
.cfi_endproc
## -- End function
.globl _tsearch ## -- Begin function tsearch
.p2align 4, 0x90
_tsearch: ## @tsearch
.cfi_startproc
## %bb.0:
testq %rsi, %rsi
je LBB9_2
## %bb.1:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq ___error
movl $78, (%rax)
popq %rbp
LBB9_2:
xorl %eax, %eax
retq
.cfi_endproc
## -- End function
.globl _twalk ## -- Begin function twalk
.p2align 4, 0x90
_twalk: ## @twalk
.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 _hcreate ; -- Begin function hcreate
.p2align 2
_hcreate: ; @hcreate
.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 ___error
mov w8, #78
str w8, [x0]
mov w0, #0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _hdestroy ; -- Begin function hdestroy
.p2align 2
_hdestroy: ; @hdestroy
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.globl _hsearch ; -- Begin function hsearch
.p2align 2
_hsearch: ; @hsearch
.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 ___error
mov w8, #78
str w8, [x0]
mov x0, #0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _insque ; -- Begin function insque
.p2align 2
_insque: ; @insque
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.globl _lfind ; -- Begin function lfind
.p2align 2
_lfind: ; @lfind
.cfi_startproc
; %bb.0:
mov x0, #0
ret
.cfi_endproc
; -- End function
.globl _lsearch ; -- Begin function lsearch
.p2align 2
_lsearch: ; @lsearch
.cfi_startproc
; %bb.0:
mov x0, #0
ret
.cfi_endproc
; -- End function
.globl _remque ; -- Begin function remque
.p2align 2
_remque: ; @remque
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.globl _tdelete ; -- Begin function tdelete
.p2align 2
_tdelete: ; @tdelete
.cfi_startproc
; %bb.0:
cbz x1, LBB7_2
; %bb.1:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl ___error
mov w8, #78
str w8, [x0]
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
LBB7_2:
.cfi_def_cfa wsp, 0
.cfi_same_value w30
.cfi_same_value w29
mov x0, #0
ret
.cfi_endproc
; -- End function
.globl _tfind ; -- Begin function tfind
.p2align 2
_tfind: ; @tfind
.cfi_startproc
; %bb.0:
cbz x1, LBB8_2
; %bb.1:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl ___error
mov w8, #78
str w8, [x0]
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
LBB8_2:
.cfi_def_cfa wsp, 0
.cfi_same_value w30
.cfi_same_value w29
mov x0, #0
ret
.cfi_endproc
; -- End function
.globl _tsearch ; -- Begin function tsearch
.p2align 2
_tsearch: ; @tsearch
.cfi_startproc
; %bb.0:
cbz x1, LBB9_2
; %bb.1:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl ___error
mov w8, #78
str w8, [x0]
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
LBB9_2:
.cfi_def_cfa wsp, 0
.cfi_same_value w30
.cfi_same_value w29
mov x0, #0
ret
.cfi_endproc
; -- End function
.globl _twalk ; -- Begin function twalk
.p2align 2
_twalk: ; @twalk
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| the_stack_data/22011584.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _stackRoll ## -- Begin function stackRoll
.p2align 4, 0x90
_stackRoll: ## @stackRoll
.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
testl %esi, %esi
je LBB0_11
## %bb.1:
movl %esi, %r14d
movslq (%rdi), %rax
jle LBB0_3
## %bb.2:
movl %r14d, %ecx
notl %ecx
addl %eax, %ecx
movslq %ecx, %rbx
movl (%rbx), %r15d
leaq 4(%rbx), %rsi
movl %r14d, %edx
shlq $2, %rdx
movq %rbx, %rdi
callq _memmove
decl %r14d
movl %r15d, 4(%rbx,%r14,4)
jmp LBB0_11
LBB0_3:
movl -1(%rax), %ecx
decq %rax
movl %r14d, %edx
negl %edx
andl $7, %edx
je LBB0_4
## %bb.5:
negl %edx
xorl %esi, %esi
.p2align 4, 0x90
LBB0_6: ## =>This Inner Loop Header: Depth=1
movl -4(%rax), %edi
movl %edi, (%rax)
addq $-4, %rax
decq %rsi
cmpl %esi, %edx
jne LBB0_6
## %bb.7:
movl %r14d, %edx
subl %esi, %edx
cmpl $-8, %r14d
ja LBB0_10
.p2align 4, 0x90
LBB0_9: ## =>This Inner Loop Header: Depth=1
movups -16(%rax), %xmm0
movups %xmm0, -12(%rax)
movq -32(%rax), %rsi
movq -24(%rax), %rdi
movq %rdi, -20(%rax)
movq %rsi, -28(%rax)
addq $-32, %rax
addl $8, %edx
jne LBB0_9
LBB0_10:
movl %ecx, (%rax)
LBB0_11:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
LBB0_4:
movl %r14d, %edx
cmpl $-8, %r14d
jbe LBB0_9
jmp LBB0_10
.cfi_endproc
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _stackRoll ; -- Begin function stackRoll
.p2align 2
_stackRoll: ; @stackRoll
.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
cbz w1, LBB0_6
; %bb.1:
ldrsw x8, [x0]
subs w20, w1, #1
b.lt LBB0_3
; %bb.2:
mvn w9, w1
add w8, w8, w9
sxtw x19, w8
mov x8, x19
ldr w21, [x8], #4
mov w9, w1
lsl x2, x9, #2
mov x0, x19
mov x1, x8
bl _memmove
add x8, x19, w20, uxtw #2
str w21, [x8, #4]
b LBB0_6
LBB0_3:
ldr w9, [x8, #-1]!
LBB0_4: ; =>This Inner Loop Header: Depth=1
mov x10, x8
ldr w11, [x8, #-4]!
str w11, [x10]
adds w1, w1, #1
b.lo LBB0_4
; %bb.5:
str w9, [x8]
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/freebsd/stand/ficl/extr_stack.c_stackRoll.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function hdmi_find_phy_conf
_hdmi_find_phy_conf: ## @hdmi_find_phy_conf
.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, %rdx
movq 8(%rdi), %rax
movl (%rax), %ecx
testl %ecx, %ecx
jle LBB0_4
## %bb.1:
movq 8(%rax), %rsi
xorl %eax, %eax
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
cmpq %rdx, (%rsi,%rax,8)
je LBB0_5
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
incq %rax
cmpq %rax, %rcx
jne LBB0_2
LBB0_4:
movl (%rdi), %edi
leaq L_.str(%rip), %rsi
callq _DRM_DEV_DEBUG_KMS
movq _EINVAL@GOTPCREL(%rip), %rcx
xorl %eax, %eax
subl (%rcx), %eax
LBB0_5:
## kill: def $eax killed $eax killed $rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Could not find phy config for %d\n"
.comm _EINVAL,4,2 ## @EINVAL
.no_dead_strip _hdmi_find_phy_conf
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function hdmi_find_phy_conf
_hdmi_find_phy_conf: ; @hdmi_find_phy_conf
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x2, x1
ldr x10, [x0, #8]
ldr w9, [x10]
cmp w9, #1
b.lt LBB0_4
; %bb.1:
mov x8, #0
ldr x10, [x10, #8]
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldr x11, [x10, x8, lsl #3]
cmp x11, x2
b.eq LBB0_5
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
add x8, x8, #1
cmp x9, x8
b.ne LBB0_2
LBB0_4:
ldr w0, [x0]
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
bl _DRM_DEV_DEBUG_KMS
Lloh2:
adrp x8, _EINVAL@GOTPAGE
Lloh3:
ldr x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
ldr w8, [x8]
neg w8, w8
LBB0_5:
mov x0, x8
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Could not find phy config for %d\n"
.comm _EINVAL,4,2 ; @EINVAL
.no_dead_strip _hdmi_find_phy_conf
.subsections_via_symbols
| AnghaBench/linux/drivers/gpu/drm/exynos/extr_exynos_hdmi.c_hdmi_find_phy_conf.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function maccalc_do_mac2bin
_maccalc_do_mac2bin: ## @maccalc_do_mac2bin
.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, %r15
movl %edi, %ebx
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -40(%rbp)
movq _MAC_ADDRESS_LEN@GOTPCREL(%rip), %rax
movl (%rax), %r12d
movq %r12, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %r14
cmpl $1, %ebx
jne LBB0_1
## %bb.2:
movq (%r15), %rdi
movq %r14, %rsi
callq _parse_mac
testl %eax, %eax
jne LBB0_6
## %bb.3:
movq _STDOUT_FILENO@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %r14, %rsi
movl %r12d, %edx
callq _write
movslq %eax, %rcx
xorl %eax, %eax
cmpq %r12, %rcx
je LBB0_6
## %bb.4:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str(%rip), %rsi
callq _fprintf
movq _ERR_IO@GOTPCREL(%rip), %rax
jmp LBB0_5
LBB0_1:
xorl %eax, %eax
callq _usage
movq _ERR_INVALID@GOTPCREL(%rip), %rax
LBB0_5:
movl (%rax), %eax
LBB0_6:
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -40(%rbp), %rcx
jne LBB0_8
## %bb.7:
leaq -32(%rbp), %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
LBB0_8:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _MAC_ADDRESS_LEN,4,2 ## @MAC_ADDRESS_LEN
.comm _ERR_INVALID,4,2 ## @ERR_INVALID
.comm _STDOUT_FILENO,4,2 ## @STDOUT_FILENO
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "failed to write to stdout\n"
.comm _ERR_IO,4,2 ## @ERR_IO
.no_dead_strip _maccalc_do_mac2bin
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function maccalc_do_mac2bin
_maccalc_do_mac2bin: ; @maccalc_do_mac2bin
.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
sub sp, sp, #16
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-24]
Lloh3:
adrp x8, _MAC_ADDRESS_LEN@GOTPAGE
Lloh4:
ldr x8, [x8, _MAC_ADDRESS_LEN@GOTPAGEOFF]
Lloh5:
ldr w19, [x8]
mov x9, x19
Lloh6:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh7:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x8, sp
add x9, x19, #15
and x9, x9, #0x1fffffff0
sub x20, x8, x9
mov sp, x20
cmp w0, #1
b.ne LBB0_4
; %bb.1:
ldr x0, [x1]
mov x1, x20
bl _parse_mac
cbnz w0, LBB0_6
; %bb.2:
Lloh8:
adrp x8, _STDOUT_FILENO@GOTPAGE
Lloh9:
ldr x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh10:
ldr w0, [x8]
mov x1, x20
mov x2, x19
bl _write
; kill: def $w0 killed $w0 def $x0
sxtw x8, w0
cmp x8, x19
b.ne LBB0_8
; %bb.3:
mov w0, #0
b LBB0_6
LBB0_4:
bl _usage
Lloh11:
adrp x8, _ERR_INVALID@GOTPAGE
Lloh12:
ldr x8, [x8, _ERR_INVALID@GOTPAGEOFF]
LBB0_5:
ldr w0, [x8]
LBB0_6:
ldur x8, [x29, #-24]
Lloh13:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh14:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_9
; %bb.7:
sub sp, x29, #16
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_8:
Lloh16:
adrp x8, _stderr@GOTPAGE
Lloh17:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
ldr w0, [x8]
Lloh19:
adrp x1, l_.str@PAGE
Lloh20:
add x1, x1, l_.str@PAGEOFF
bl _fprintf
Lloh21:
adrp x8, _ERR_IO@GOTPAGE
Lloh22:
ldr x8, [x8, _ERR_IO@GOTPAGEOFF]
b LBB0_5
LBB0_9:
bl ___stack_chk_fail
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGot Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpLdrGot Lloh21, Lloh22
.loh AdrpAdd Lloh19, Lloh20
.loh AdrpLdrGotLdr Lloh16, Lloh17, Lloh18
.cfi_endproc
; -- End function
.comm _MAC_ADDRESS_LEN,4,2 ; @MAC_ADDRESS_LEN
.comm _ERR_INVALID,4,2 ; @ERR_INVALID
.comm _STDOUT_FILENO,4,2 ; @STDOUT_FILENO
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "failed to write to stdout\n"
.comm _ERR_IO,4,2 ; @ERR_IO
.no_dead_strip _maccalc_do_mac2bin
.subsections_via_symbols
| AnghaBench/lede/package/network/utils/maccalc/src/extr_main.c_maccalc_do_mac2bin.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function dma_set_pte_writable
_dma_set_pte_writable: ## @dma_set_pte_writable
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _DMA_PTE_WRITE@GOTPCREL(%rip), %rax
movl (%rax), %eax
orl %eax, (%rdi)
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _DMA_PTE_WRITE,4,2 ## @DMA_PTE_WRITE
.no_dead_strip _dma_set_pte_writable
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function dma_set_pte_writable
_dma_set_pte_writable: ; @dma_set_pte_writable
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _DMA_PTE_WRITE@GOTPAGE
Lloh1:
ldr x8, [x8, _DMA_PTE_WRITE@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
ldr w9, [x0]
orr w8, w9, w8
str w8, [x0]
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _DMA_PTE_WRITE,4,2 ; @DMA_PTE_WRITE
.no_dead_strip _dma_set_pte_writable
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/drivers/pci/extr_intel-iommu.c_dma_set_pte_writable.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function PlcrProfileUnlock
_PlcrProfileUnlock: ## @PlcrProfileUnlock
.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, %r14d
movq %rdi, %rbx
callq _ASSERT_COND
movl (%rbx), %edi
movl %r14d, %esi
popq %rbx
popq %r14
popq %rbp
jmp _FmPcdUnlockSpinlock ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _PlcrProfileUnlock
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function PlcrProfileUnlock
_PlcrProfileUnlock: ; @PlcrProfileUnlock
.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
bl _ASSERT_COND
ldr w0, [x20]
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _FmPcdUnlockSpinlock
.cfi_endproc
; -- End function
.no_dead_strip _PlcrProfileUnlock
.subsections_via_symbols
| AnghaBench/freebsd/sys/contrib/ncsw/Peripherals/FM/Pcd/extr_fm_plcr.c_PlcrProfileUnlock.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
movl $6, -12(%rbp)
leaq L_.str(%rip), %rbx
movq %rbx, %rdi
movl $6, %esi
xorl %eax, %eax
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -12(%rbp), %rsi
xorl %eax, %eax
callq _printf
movl -12(%rbp), %esi
movq %rbx, %rdi
xorl %eax, %eax
callq _printf
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "The value of variable a is %d\n"
L_.str.1: ## @.str.1
.asciz "The address of variable a is %u\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #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 w8, #6
str w8, [sp, #12]
str x8, [sp]
Lloh0:
adrp x19, l_.str@PAGE
Lloh1:
add x19, x19, l_.str@PAGEOFF
mov x0, x19
bl _printf
add x8, sp, #12
str x8, [sp]
Lloh2:
adrp x0, l_.str.1@PAGE
Lloh3:
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr w8, [sp, #12]
str x8, [sp]
mov x0, x19
bl _printf
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 Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "The value of variable a is %d\n"
l_.str.1: ; @.str.1
.asciz "The address of variable a is %u\n"
.subsections_via_symbols
| the_stack_data/611278.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
subq $120, %rsp
.cfi_offset %rbx, -24
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
movabsq $7022364302190601580, %rax ## imm = 0x617473207374656C
movq %rax, -128(%rbp)
movl $7631457, -121(%rbp) ## imm = 0x747261
movl $200, %edi
callq _malloc
movq %rax, %rbx
testq %rax, %rax
je LBB0_1
## %bb.2:
movabsq $29113321687703922, %rax ## imm = 0x676E696D6D6172
movq %rax, 7(%rbx)
movabsq $8243680180223090787, %rax ## imm = 0x72676F7270202063
movq %rax, (%rbx)
jmp LBB0_3
LBB0_1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rcx
leaq L_.str.1(%rip), %rdi
movl $43, %esi
movl $1, %edx
callq _fwrite
LBB0_3:
leaq L_.str.3(%rip), %rdi
leaq -128(%rbp), %rsi
xorl %eax, %eax
callq _printf
leaq L_.str.4(%rip), %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -16(%rbp), %rax
jne LBB0_5
## %bb.4:
xorl %eax, %eax
addq $120, %rsp
popq %rbx
popq %rbp
retq
LBB0_5:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "lets start"
L_.str.1: ## @.str.1
.asciz "Error - unable to allocate required memory\n"
L_.str.2: ## @.str.2
.asciz "c programming"
L_.str.3: ## @.str.3
.asciz "Name = %s\n"
L_.str.4: ## @.str.4
.asciz "Description: %s\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x20, x19, [sp, #128] ; 16-byte Folded Spill
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-24]
Lloh3:
adrp x8, l_.str@PAGE
Lloh4:
add x8, x8, l_.str@PAGEOFF
Lloh5:
ldr x8, [x8]
str x8, [sp, #16]
mov w8, #29281
movk w8, #116, lsl #16
stur w8, [sp, #23]
mov w0, #200
bl _malloc
mov x19, x0
cbz x0, LBB0_2
; %bb.1:
Lloh6:
adrp x8, l_.str.2@PAGE
Lloh7:
add x8, x8, l_.str.2@PAGEOFF
ldr x9, [x8]
str x9, [x19]
ldur x8, [x8, #7]
stur x8, [x19, #7]
b LBB0_3
LBB0_2:
Lloh8:
adrp x8, ___stderrp@GOTPAGE
Lloh9:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh10:
ldr x3, [x8]
Lloh11:
adrp x0, l_.str.1@PAGE
Lloh12:
add x0, x0, l_.str.1@PAGEOFF
mov w1, #43
mov w2, #1
bl _fwrite
LBB0_3:
add x8, sp, #16
str x8, [sp]
Lloh13:
adrp x0, l_.str.3@PAGE
Lloh14:
add x0, x0, l_.str.3@PAGEOFF
bl _printf
str x19, [sp]
Lloh15:
adrp x0, l_.str.4@PAGE
Lloh16:
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldur x8, [x29, #-24]
Lloh17:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh18:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_5
; %bb.4:
mov w0, #0
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
ldp x20, x19, [sp, #128] ; 16-byte Folded Reload
add sp, sp, #160
ret
LBB0_5:
bl ___stack_chk_fail
.loh AdrpAddLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.loh AdrpAdd Lloh15, Lloh16
.loh AdrpAdd Lloh13, Lloh14
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "lets start"
l_.str.1: ; @.str.1
.asciz "Error - unable to allocate required memory\n"
l_.str.2: ; @.str.2
.asciz "c programming"
l_.str.3: ; @.str.3
.asciz "Name = %s\n"
l_.str.4: ; @.str.4
.asciz "Description: %s\n"
.subsections_via_symbols
| the_stack_data/154830845.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function snd_wss_busy_wait
_snd_wss_busy_wait: ## @snd_wss_busy_wait
.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
movq _REGSEL@GOTPCREL(%rip), %r14
movl (%r14), %edi
callq _CS4231P
movq %r15, %rdi
movl %eax, %esi
callq _wss_inb
movl (%r14), %edi
callq _CS4231P
movq %r15, %rdi
movl %eax, %esi
callq _wss_inb
movl (%r14), %edi
callq _CS4231P
movq %r15, %rdi
movl %eax, %esi
callq _wss_inb
movl (%r14), %edi
callq _CS4231P
movq %r15, %rdi
movl %eax, %esi
callq _wss_inb
movl (%r14), %edi
callq _CS4231P
movq %r15, %rdi
movl %eax, %esi
callq _wss_inb
movl $25001, %ebx ## imm = 0x61A9
movq _CS4231_INIT@GOTPCREL(%rip), %r12
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl (%r14), %edi
callq _CS4231P
movq %r15, %rdi
movl %eax, %esi
callq _wss_inb
testl %eax, (%r12)
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $10, %edi
callq _udelay
decl %ebx
cmpl $1, %ebx
ja LBB0_1
LBB0_3:
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _REGSEL,4,2 ## @REGSEL
.comm _CS4231_INIT,4,2 ## @CS4231_INIT
.no_dead_strip _snd_wss_busy_wait
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function snd_wss_busy_wait
_snd_wss_busy_wait: ; @snd_wss_busy_wait
.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, _REGSEL@GOTPAGE
Lloh1:
ldr x20, [x20, _REGSEL@GOTPAGEOFF]
ldr w0, [x20]
bl _CS4231P
mov x1, x0
mov x0, x19
bl _wss_inb
ldr w0, [x20]
bl _CS4231P
mov x1, x0
mov x0, x19
bl _wss_inb
ldr w0, [x20]
bl _CS4231P
mov x1, x0
mov x0, x19
bl _wss_inb
ldr w0, [x20]
bl _CS4231P
mov x1, x0
mov x0, x19
bl _wss_inb
ldr w0, [x20]
bl _CS4231P
mov x1, x0
mov x0, x19
bl _wss_inb
mov w21, #25001
Lloh2:
adrp x22, _CS4231_INIT@GOTPAGE
Lloh3:
ldr x22, [x22, _CS4231_INIT@GOTPAGEOFF]
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w0, [x20]
bl _CS4231P
mov x1, x0
mov x0, x19
bl _wss_inb
ldr w8, [x22]
tst w8, w0
b.eq LBB0_3
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
mov w0, #10
bl _udelay
sub w21, w21, #1
cmp w21, #1
b.hi LBB0_1
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 AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _REGSEL,4,2 ; @REGSEL
.comm _CS4231_INIT,4,2 ; @CS4231_INIT
.no_dead_strip _snd_wss_busy_wait
.subsections_via_symbols
| AnghaBench/linux/sound/isa/wss/extr_wss_lib.c_snd_wss_busy_wait.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _textbox_get_estimated_height ## -- Begin function textbox_get_estimated_height
.p2align 4, 0x90
_textbox_get_estimated_height: ## @textbox_get_estimated_height
.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 %esi, %r14d
movq %rdi, %rbx
movl (%rdi), %edi
callq _pango_font_metrics_get_ascent
movl %eax, %r15d
movl (%rbx), %edi
callq _pango_font_metrics_get_descent
addl %r15d, %eax
imull %r14d, %eax
movq _PANGO_SCALE@GOTPCREL(%rip), %rcx
cltd
idivl (%rcx)
movl %eax, %r14d
movq %rbx, %rdi
callq _WIDGET
movl %eax, %edi
callq _widget_padding_get_padding_height
addl %r14d, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _PANGO_SCALE,4,2 ## @PANGO_SCALE
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _textbox_get_estimated_height ; -- Begin function textbox_get_estimated_height
.p2align 2
_textbox_get_estimated_height: ; @textbox_get_estimated_height
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x1
mov x20, x0
ldr w0, [x0]
bl _pango_font_metrics_get_ascent
mov x21, x0
ldr w0, [x20]
bl _pango_font_metrics_get_descent
add w8, w0, w21
mul w8, w8, w19
Lloh0:
adrp x9, _PANGO_SCALE@GOTPAGE
Lloh1:
ldr x9, [x9, _PANGO_SCALE@GOTPAGEOFF]
Lloh2:
ldr w9, [x9]
sdiv w19, w8, w9
mov x0, x20
bl _WIDGET
bl _widget_padding_get_padding_height
add w0, w0, w19
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 _PANGO_SCALE,4,2 ; @PANGO_SCALE
.subsections_via_symbols
| AnghaBench/rofi/source/widgets/extr_textbox.c_textbox_get_estimated_height.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ntfs_dir_open
_ntfs_dir_open: ## @ntfs_dir_open
.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
.comm _EFBIG,4,2 ## @EFBIG
.comm _MAX_LFS_FILESIZE,8,3 ## @MAX_LFS_FILESIZE
.no_dead_strip _ntfs_dir_open
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ntfs_dir_open
_ntfs_dir_open: ; @ntfs_dir_open
.cfi_startproc
; %bb.0:
mov w0, #0
ret
.cfi_endproc
; -- End function
.comm _EFBIG,4,2 ; @EFBIG
.comm _MAX_LFS_FILESIZE,8,3 ; @MAX_LFS_FILESIZE
.no_dead_strip _ntfs_dir_open
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/fs/ntfs/extr_dir.c_ntfs_dir_open.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _single_open ## -- Begin function single_open
.p2align 4, 0x90
_single_open: ## @single_open
.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 %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
movq _GFP_KERNEL@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $24, %edi
callq _kmalloc
testq %rax, %rax
je LBB0_1
## %bb.2:
movq %rax, %rbx
movq _single_start@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, 16(%rbx)
movq _single_next@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, 12(%rbx)
movq _single_stop@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, 8(%rbx)
movq %r12, (%rbx)
movq %r15, %rdi
movq %rbx, %rsi
callq _seq_open
testl %eax, %eax
je LBB0_3
## %bb.4:
movl %eax, %r12d
movq %rbx, %rdi
callq _kfree
jmp LBB0_5
LBB0_1:
movq _ENOMEM@GOTPCREL(%rip), %rax
xorl %r12d, %r12d
subl (%rax), %r12d
jmp LBB0_5
LBB0_3:
movq (%r15), %rax
movq %r14, (%rax)
xorl %r12d, %r12d
LBB0_5:
movl %r12d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _GFP_KERNEL,4,2 ## @GFP_KERNEL
.comm _ENOMEM,4,2 ## @ENOMEM
.comm _single_start,4,2 ## @single_start
.comm _single_next,4,2 ## @single_next
.comm _single_stop,4,2 ## @single_stop
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _single_open ; -- Begin function single_open
.p2align 2
_single_open: ; @single_open
.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 x22, x1
mov x20, x0
Lloh0:
adrp x8, _GFP_KERNEL@GOTPAGE
Lloh1:
ldr x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
mov w0, #24
bl _kmalloc
cbz x0, LBB0_3
; %bb.1:
mov x21, x0
Lloh3:
adrp x8, _single_start@GOTPAGE
Lloh4:
ldr x8, [x8, _single_start@GOTPAGEOFF]
Lloh5:
ldr w8, [x8]
str w8, [x0, #16]
Lloh6:
adrp x8, _single_next@GOTPAGE
Lloh7:
ldr x8, [x8, _single_next@GOTPAGEOFF]
Lloh8:
ldr w8, [x8]
Lloh9:
adrp x9, _single_stop@GOTPAGE
Lloh10:
ldr x9, [x9, _single_stop@GOTPAGEOFF]
Lloh11:
ldr w9, [x9]
stp w9, w8, [x0, #8]
str x22, [x0]
mov x0, x20
mov x1, x21
bl _seq_open
mov x22, x0
cbz w0, LBB0_4
; %bb.2:
mov x0, x21
bl _kfree
b LBB0_5
LBB0_3:
Lloh12:
adrp x8, _ENOMEM@GOTPAGE
Lloh13:
ldr x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
ldr w8, [x8]
neg w22, w8
b LBB0_5
LBB0_4:
ldr x8, [x20]
str x19, [x8]
LBB0_5:
mov x0, x22
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
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.cfi_endproc
; -- End function
.comm _GFP_KERNEL,4,2 ; @GFP_KERNEL
.comm _ENOMEM,4,2 ; @ENOMEM
.comm _single_start,4,2 ; @single_start
.comm _single_next,4,2 ; @single_next
.comm _single_stop,4,2 ; @single_stop
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/fs/extr_seq_file.c_single_open.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ae_pcie_init
_ae_pcie_init: ## @ae_pcie_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 %rbx
pushq %rax
.cfi_offset %rbx, -24
movq %rdi, %rbx
movq _AE_PCIE_LTSSM_TESTMODE_REG@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _AE_PCIE_LTSSM_TESTMODE_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %edx
callq _AE_WRITE_4
movq _AE_PCIE_DLL_TX_CTRL_REG@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _AE_PCIE_DLL_TX_CTRL_DEFAULT@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %rbx, %rdi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _AE_WRITE_4 ## TAILCALL
.cfi_endproc
## -- End function
.comm _AE_PCIE_LTSSM_TESTMODE_REG,4,2 ## @AE_PCIE_LTSSM_TESTMODE_REG
.comm _AE_PCIE_LTSSM_TESTMODE_DEFAULT,4,2 ## @AE_PCIE_LTSSM_TESTMODE_DEFAULT
.comm _AE_PCIE_DLL_TX_CTRL_REG,4,2 ## @AE_PCIE_DLL_TX_CTRL_REG
.comm _AE_PCIE_DLL_TX_CTRL_DEFAULT,4,2 ## @AE_PCIE_DLL_TX_CTRL_DEFAULT
.no_dead_strip _ae_pcie_init
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ae_pcie_init
_ae_pcie_init: ; @ae_pcie_init
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
Lloh0:
adrp x8, _AE_PCIE_LTSSM_TESTMODE_REG@GOTPAGE
Lloh1:
ldr x8, [x8, _AE_PCIE_LTSSM_TESTMODE_REG@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
Lloh3:
adrp x8, _AE_PCIE_LTSSM_TESTMODE_DEFAULT@GOTPAGE
Lloh4:
ldr x8, [x8, _AE_PCIE_LTSSM_TESTMODE_DEFAULT@GOTPAGEOFF]
Lloh5:
ldr w2, [x8]
bl _AE_WRITE_4
Lloh6:
adrp x8, _AE_PCIE_DLL_TX_CTRL_REG@GOTPAGE
Lloh7:
ldr x8, [x8, _AE_PCIE_DLL_TX_CTRL_REG@GOTPAGEOFF]
Lloh8:
ldr w1, [x8]
Lloh9:
adrp x8, _AE_PCIE_DLL_TX_CTRL_DEFAULT@GOTPAGE
Lloh10:
ldr x8, [x8, _AE_PCIE_DLL_TX_CTRL_DEFAULT@GOTPAGEOFF]
Lloh11:
ldr w2, [x8]
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _AE_WRITE_4
.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 _AE_PCIE_LTSSM_TESTMODE_REG,4,2 ; @AE_PCIE_LTSSM_TESTMODE_REG
.comm _AE_PCIE_LTSSM_TESTMODE_DEFAULT,4,2 ; @AE_PCIE_LTSSM_TESTMODE_DEFAULT
.comm _AE_PCIE_DLL_TX_CTRL_REG,4,2 ; @AE_PCIE_DLL_TX_CTRL_REG
.comm _AE_PCIE_DLL_TX_CTRL_DEFAULT,4,2 ; @AE_PCIE_DLL_TX_CTRL_DEFAULT
.no_dead_strip _ae_pcie_init
.subsections_via_symbols
| AnghaBench/freebsd/sys/dev/ae/extr_if_ae.c_ae_pcie_init.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function charlen_to_bytelen
_charlen_to_bytelen: ## @charlen_to_bytelen
.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 %esi, %r15d
movq %rdi, %r14
xorl %eax, %eax
callq _pg_database_encoding_max_length
cmpl $1, %eax
je LBB0_5
## %bb.1:
movq %r14, %rbx
testl %r15d, %r15d
jle LBB0_4
## %bb.2:
incl %r15d
movq %r14, %rbx
.p2align 4, 0x90
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq %rbx, %rdi
callq _pg_mblen
cltq
addq %rax, %rbx
decl %r15d
cmpl $1, %r15d
ja LBB0_3
LBB0_4:
subl %r14d, %ebx
movl %ebx, %r15d
LBB0_5:
movl %r15d, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _charlen_to_bytelen
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function charlen_to_bytelen
_charlen_to_bytelen: ; @charlen_to_bytelen
.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
bl _pg_database_encoding_max_length
cmp w0, #1
b.eq LBB0_5
; %bb.1:
mov x20, x19
cmp w21, #1
b.lt LBB0_4
; %bb.2:
add w21, w21, #1
mov x20, x19
LBB0_3: ; =>This Inner Loop Header: Depth=1
mov x0, x20
bl _pg_mblen
add x20, x20, w0, sxtw
sub w21, w21, #1
cmp w21, #1
b.hi LBB0_3
LBB0_4:
sub w21, w20, w19
LBB0_5:
mov x0, x21
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _charlen_to_bytelen
.subsections_via_symbols
| AnghaBench/postgres/src/backend/utils/adt/extr_varlena.c_charlen_to_bytelen.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/61074096.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function legalType
_legalType: ## @legalType
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
addl $-128, %edi
cmpl $20, %edi
jae LBB0_1
## %bb.2:
movq _GL_TRUE@GOTPCREL(%rip), %rax
jmp LBB0_3
LBB0_1:
movq _GL_FALSE@GOTPCREL(%rip), %rax
LBB0_3:
movl (%rax), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _GL_TRUE,4,2 ## @GL_TRUE
.comm _GL_FALSE,4,2 ## @GL_FALSE
.no_dead_strip _legalType
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function legalType
_legalType: ; @legalType
.cfi_startproc
; %bb.0:
sub w8, w0, #128
Lloh0:
adrp x9, _GL_TRUE@GOTPAGE
Lloh1:
ldr x9, [x9, _GL_TRUE@GOTPAGEOFF]
Lloh2:
adrp x10, _GL_FALSE@GOTPAGE
Lloh3:
ldr x10, [x10, _GL_FALSE@GOTPAGEOFF]
cmp w8, #20
csel x8, x9, x10, lo
ldr w0, [x8]
ret
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _GL_TRUE,4,2 ; @GL_TRUE
.comm _GL_FALSE,4,2 ; @GL_FALSE
.no_dead_strip _legalType
.subsections_via_symbols
| AnghaBench/reactos/dll/opengl/glu32/src/libutil/extr_mipmap.c_legalType.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function store_amb_max
_store_amb_max: ## @store_amb_max
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rcx, %r14
movq %rdx, %r13
movq %rdi, %rbx
movq %rsi, %rdi
callq _to_sensor_dev_attr
movq %rax, %r12
movq %rbx, %rdi
callq _dev_get_drvdata
movq %rax, %r15
leaq -48(%rbp), %rdx
movq %r13, %rdi
movl $10, %esi
callq _kstrtoul
testl %eax, %eax
js LBB0_2
## %bb.1:
movq -48(%rbp), %rax
shrq $2, %rax
movabsq $2361183241434822607, %rcx ## imm = 0x20C49BA5E353F7CF
mulq %rcx
shrq $4, %rdx
cmpq $255, %rdx
movl $255, %eax
cmovbq %rdx, %rax
movq %rax, -48(%rbp)
movl (%r12), %edi
callq _amb_reg_temp_max
movq -48(%rbp), %rdx
movq %r15, %rdi
movl %eax, %esi
callq _amb_write_byte
movl %r14d, %eax
LBB0_2:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _store_amb_max
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function store_amb_max
_store_amb_max: ; @store_amb_max
.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, x3
mov x22, x2
mov x20, x0
mov x0, x1
bl _to_sensor_dev_attr
mov x21, x0
mov x0, x20
bl _dev_get_drvdata
mov x20, x0
add x2, sp, #8
mov x0, x22
mov w1, #10
bl _kstrtoul
tbnz w0, #31, LBB0_2
; %bb.1:
ldr x8, [sp, #8]
lsr x8, x8, #2
mov x9, #63439
movk x9, #58195, lsl #16
movk x9, #39845, lsl #32
movk x9, #8388, lsl #48
umulh x8, x8, x9
lsr x8, x8, #4
mov w9, #255
cmp x8, #255
csel x8, x8, x9, lo
str x8, [sp, #8]
ldr w0, [x21]
bl _amb_reg_temp_max
mov x1, x0
ldr x2, [sp, #8]
mov x0, x20
bl _amb_write_byte
mov x0, x19
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
.cfi_endproc
; -- End function
.no_dead_strip _store_amb_max
.subsections_via_symbols
| AnghaBench/linux/drivers/hwmon/extr_i5k_amb.c_store_amb_max.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _dev_get_by_index ## -- Begin function dev_get_by_index
.p2align 4, 0x90
_dev_get_by_index: ## @dev_get_by_index
.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, %r14d
movq %rdi, %rbx
movq _dev_base_lock@GOTPCREL(%rip), %rdi
callq _read_lock
movq %rbx, %rdi
movl %r14d, %esi
callq ___dev_get_by_index
movq %rax, %rbx
testq %rax, %rax
je LBB0_2
## %bb.1:
movq %rbx, %rdi
callq _dev_hold
LBB0_2:
movq _dev_base_lock@GOTPCREL(%rip), %rdi
callq _read_unlock
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _dev_base_lock,4,2 ## @dev_base_lock
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _dev_get_by_index ; -- Begin function dev_get_by_index
.p2align 2
_dev_get_by_index: ; @dev_get_by_index
.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
Lloh0:
adrp x0, _dev_base_lock@GOTPAGE
Lloh1:
ldr x0, [x0, _dev_base_lock@GOTPAGEOFF]
bl _read_lock
mov x0, x20
mov x1, x19
bl ___dev_get_by_index
mov x19, x0
cbz x0, LBB0_2
; %bb.1:
mov x0, x19
bl _dev_hold
LBB0_2:
Lloh2:
adrp x0, _dev_base_lock@GOTPAGE
Lloh3:
ldr x0, [x0, _dev_base_lock@GOTPAGEOFF]
bl _read_unlock
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh2, Lloh3
.cfi_endproc
; -- End function
.comm _dev_base_lock,4,2 ; @dev_base_lock
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/net/core/extr_dev.c_dev_get_by_index.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function goya_hw_init
_goya_hw_init: ## @goya_hw_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 %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %r14
movl (%rdi), %edi
leaq L_.str(%rip), %rsi
callq _dev_info
movq _mmPCIE_DBI_DEVICE_ID_VENDOR_ID_REG@GOTPCREL(%rip), %r15
movl (%r15), %edi
callq _RREG32
movq _mmHW_STATE@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _HL_DEVICE_HW_STATE_DIRTY@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _WREG32
movq _GOYA_CPU_TIMEOUT_USEC@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %r14, %rdi
callq _goya_init_cpu
testl %eax, %eax
je LBB0_2
## %bb.1:
movl %eax, %ebx
movl (%r14), %edi
leaq L_.str.1(%rip), %rsi
callq _dev_err
jmp LBB0_8
LBB0_2:
movq %r14, %rdi
callq _goya_tpc_mbist_workaround
movq %r14, %rdi
callq _goya_init_golden_registers
movq _DRAM_PHYS_BASE@GOTPCREL(%rip), %rax
movq _MMU_PAGE_TABLES_ADDR@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
movslq 4(%r14), %rsi
negq %rsi
andq %rcx, %rsi
addq (%rax), %rsi
movq %r14, %rdi
callq _goya_set_ddr_bar_base
movq _U64_MAX@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_4
## %bb.3:
movl (%r14), %edi
leaq L_.str.2(%rip), %rsi
callq _dev_err
movq _EIO@GOTPCREL(%rip), %rax
xorl %ebx, %ebx
subl (%rax), %ebx
jmp LBB0_8
LBB0_4:
movq %r14, %rdi
callq _goya_mmu_init
movl %eax, %ebx
testl %eax, %eax
jne LBB0_8
## %bb.5:
movq %r14, %rdi
callq _goya_init_security
movq %r14, %rdi
callq _goya_init_dma_qmans
movq %r14, %rdi
callq _goya_init_mme_qmans
movq %r14, %rdi
callq _goya_init_tpc_qmans
movq %r14, %rdi
callq _goya_enable_timestamp
movq %r14, %rdi
callq _goya_enable_msix
testl %eax, %eax
je LBB0_6
## %bb.7:
movl %eax, %ebx
movq %r14, %rdi
callq _goya_disable_internal_queues
movq %r14, %rdi
callq _goya_disable_external_queues
jmp LBB0_8
LBB0_6:
movl (%r15), %edi
callq _RREG32
xorl %ebx, %ebx
LBB0_8:
movl %ebx, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Starting initialization of H/W\n"
.comm _mmPCIE_DBI_DEVICE_ID_VENDOR_ID_REG,4,2 ## @mmPCIE_DBI_DEVICE_ID_VENDOR_ID_REG
.comm _mmHW_STATE,4,2 ## @mmHW_STATE
.comm _HL_DEVICE_HW_STATE_DIRTY,4,2 ## @HL_DEVICE_HW_STATE_DIRTY
.comm _GOYA_CPU_TIMEOUT_USEC,4,2 ## @GOYA_CPU_TIMEOUT_USEC
L_.str.1: ## @.str.1
.asciz "failed to initialize CPU\n"
.comm _DRAM_PHYS_BASE,8,3 ## @DRAM_PHYS_BASE
.comm _MMU_PAGE_TABLES_ADDR,4,2 ## @MMU_PAGE_TABLES_ADDR
.comm _U64_MAX,8,3 ## @U64_MAX
L_.str.2: ## @.str.2
.asciz "failed to map DDR bar to MMU page tables\n"
.comm _EIO,4,2 ## @EIO
.no_dead_strip _goya_hw_init
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function goya_hw_init
_goya_hw_init: ; @goya_hw_init
.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
ldr w0, [x0]
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
bl _dev_info
Lloh2:
adrp x21, _mmPCIE_DBI_DEVICE_ID_VENDOR_ID_REG@GOTPAGE
Lloh3:
ldr x21, [x21, _mmPCIE_DBI_DEVICE_ID_VENDOR_ID_REG@GOTPAGEOFF]
ldr w0, [x21]
bl _RREG32
Lloh4:
adrp x8, _mmHW_STATE@GOTPAGE
Lloh5:
ldr x8, [x8, _mmHW_STATE@GOTPAGEOFF]
Lloh6:
ldr w0, [x8]
Lloh7:
adrp x8, _HL_DEVICE_HW_STATE_DIRTY@GOTPAGE
Lloh8:
ldr x8, [x8, _HL_DEVICE_HW_STATE_DIRTY@GOTPAGEOFF]
Lloh9:
ldr w1, [x8]
bl _WREG32
Lloh10:
adrp x8, _GOYA_CPU_TIMEOUT_USEC@GOTPAGE
Lloh11:
ldr x8, [x8, _GOYA_CPU_TIMEOUT_USEC@GOTPAGEOFF]
Lloh12:
ldr w1, [x8]
mov x0, x19
bl _goya_init_cpu
cbz w0, LBB0_2
; %bb.1:
mov x20, x0
ldr w0, [x19]
Lloh13:
adrp x1, l_.str.1@PAGE
Lloh14:
add x1, x1, l_.str.1@PAGEOFF
bl _dev_err
b LBB0_8
LBB0_2:
mov x0, x19
bl _goya_tpc_mbist_workaround
mov x0, x19
bl _goya_init_golden_registers
Lloh15:
adrp x8, _DRAM_PHYS_BASE@GOTPAGE
Lloh16:
ldr x8, [x8, _DRAM_PHYS_BASE@GOTPAGEOFF]
Lloh17:
adrp x9, _MMU_PAGE_TABLES_ADDR@GOTPAGE
Lloh18:
ldr x9, [x9, _MMU_PAGE_TABLES_ADDR@GOTPAGEOFF]
Lloh19:
ldr x8, [x8]
Lloh20:
ldrsw x9, [x9]
ldrsw x10, [x19, #4]
neg x10, x10
and x9, x10, x9
add x1, x9, x8
mov x0, x19
bl _goya_set_ddr_bar_base
Lloh21:
adrp x8, _U64_MAX@GOTPAGE
Lloh22:
ldr x8, [x8, _U64_MAX@GOTPAGEOFF]
Lloh23:
ldr x8, [x8]
cmp x0, x8
b.ne LBB0_4
; %bb.3:
ldr w0, [x19]
Lloh24:
adrp x1, l_.str.2@PAGE
Lloh25:
add x1, x1, l_.str.2@PAGEOFF
bl _dev_err
Lloh26:
adrp x8, _EIO@GOTPAGE
Lloh27:
ldr x8, [x8, _EIO@GOTPAGEOFF]
Lloh28:
ldr w8, [x8]
neg w20, w8
b LBB0_8
LBB0_4:
mov x0, x19
bl _goya_mmu_init
mov x20, x0
cbnz w0, LBB0_8
; %bb.5:
mov x0, x19
bl _goya_init_security
mov x0, x19
bl _goya_init_dma_qmans
mov x0, x19
bl _goya_init_mme_qmans
mov x0, x19
bl _goya_init_tpc_qmans
mov x0, x19
bl _goya_enable_timestamp
mov x0, x19
bl _goya_enable_msix
mov x20, x0
cbz w0, LBB0_7
; %bb.6:
mov x0, x19
bl _goya_disable_internal_queues
mov x0, x19
bl _goya_disable_external_queues
b LBB0_8
LBB0_7:
ldr w0, [x21]
bl _RREG32
LBB0_8:
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
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh20
.loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh19
.loh AdrpLdrGotLdr Lloh26, Lloh27, Lloh28
.loh AdrpAdd Lloh24, Lloh25
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Starting initialization of H/W\n"
.comm _mmPCIE_DBI_DEVICE_ID_VENDOR_ID_REG,4,2 ; @mmPCIE_DBI_DEVICE_ID_VENDOR_ID_REG
.comm _mmHW_STATE,4,2 ; @mmHW_STATE
.comm _HL_DEVICE_HW_STATE_DIRTY,4,2 ; @HL_DEVICE_HW_STATE_DIRTY
.comm _GOYA_CPU_TIMEOUT_USEC,4,2 ; @GOYA_CPU_TIMEOUT_USEC
l_.str.1: ; @.str.1
.asciz "failed to initialize CPU\n"
.comm _DRAM_PHYS_BASE,8,3 ; @DRAM_PHYS_BASE
.comm _MMU_PAGE_TABLES_ADDR,4,2 ; @MMU_PAGE_TABLES_ADDR
.comm _U64_MAX,8,3 ; @U64_MAX
l_.str.2: ; @.str.2
.asciz "failed to map DDR bar to MMU page tables\n"
.comm _EIO,4,2 ; @EIO
.no_dead_strip _goya_hw_init
.subsections_via_symbols
| AnghaBench/linux/drivers/misc/habanalabs/goya/extr_goya.c_goya_hw_init.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function hasHotJournal
_hasHotJournal: ## @hasHotJournal
.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, %r14
movq %rdi, %rbx
movq 32(%rdi), %r13
movq _SQLITE_OK@GOTPCREL(%rip), %rax
movl (%rax), %r15d
movl $1, -48(%rbp)
movl 16(%rdi), %edi
callq _isOpen
movl %eax, %r12d
movl (%rbx), %edi
callq _assert
movl 28(%rbx), %edi
callq _isOpen
movl %eax, %edi
callq _assert
movq 8(%rbx), %rax
movq _PAGER_OPEN@GOTPCREL(%rip), %rcx
xorl %edi, %edi
cmpq (%rcx), %rax
sete %dil
callq _assert
testl %r12d, %r12d
movq %r13, -64(%rbp) ## 8-byte Spill
movq %r14, -72(%rbp) ## 8-byte Spill
je LBB0_2
## %bb.1:
movl 16(%rbx), %edi
callq _sqlite3OsDeviceCharacteristics
movq _SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN@GOTPCREL(%rip), %rcx
xorl %edi, %edi
andl (%rcx), %eax
setne %dil
callq _assert
movl $0, (%r14)
movb $1, %al
jmp LBB0_3
LBB0_2:
movl $1, %edi
callq _assert
movl $0, (%r14)
movl 20(%rbx), %esi
movq _SQLITE_ACCESS_EXISTS@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -48(%rbp), %rcx
movq %r13, %rdi
callq _sqlite3OsAccess
movl %eax, %r15d
cmpl $0, -48(%rbp)
setne %al
LBB0_3:
movq _SQLITE_OK@GOTPCREL(%rip), %r13
cmpl (%r13), %r15d
jne LBB0_22
## %bb.4:
testb %al, %al
je LBB0_22
## %bb.5:
movl $0, -44(%rbp)
movl 28(%rbx), %edi
leaq -44(%rbp), %rsi
callq _sqlite3OsCheckReservedLock
movl %eax, %r15d
cmpl (%r13), %eax
jne LBB0_22
## %bb.6:
cmpl $0, -44(%rbp)
jne LBB0_22
## %bb.7:
leaq -80(%rbp), %rsi
movq %rbx, %rdi
callq _pagerPagecount
movl %eax, %r15d
cmpl (%r13), %eax
jne LBB0_22
## %bb.8:
cmpq $0, -80(%rbp)
je LBB0_9
## %bb.13:
testl %r12d, %r12d
jne LBB0_15
## %bb.14:
movq _SQLITE_OPEN_READONLY@GOTPCREL(%rip), %rax
movq _SQLITE_OPEN_MAIN_JOURNAL@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
orl (%rax), %ecx
movl %ecx, -56(%rbp)
movl 16(%rbx), %edx
movl 20(%rbx), %esi
leaq -56(%rbp), %r8
movq -64(%rbp), %rdi ## 8-byte Reload
callq _sqlite3OsOpen
cmpl (%r13), %eax
jne LBB0_20
LBB0_15:
movq $0, -56(%rbp)
movl 16(%rbx), %edi
leaq -56(%rbp), %rsi
movl $1, %edx
xorl %ecx, %ecx
callq _sqlite3OsRead
movl %eax, %r15d
movq _SQLITE_IOERR_SHORT_READ@GOTPCREL(%rip), %rax
cmpl (%rax), %r15d
jne LBB0_17
## %bb.16:
movl (%r13), %r15d
LBB0_17:
testl %r12d, %r12d
movq -72(%rbp), %r14 ## 8-byte Reload
jne LBB0_19
## %bb.18:
movl 16(%rbx), %edi
callq _sqlite3OsClose
LBB0_19:
xorl %eax, %eax
cmpq $0, -56(%rbp)
setne %al
movl %eax, (%r14)
jmp LBB0_22
LBB0_9:
xorl %eax, %eax
callq _sqlite3BeginBenignMalloc
movq _RESERVED_LOCK@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq _pagerLockDb
cmpl (%r13), %eax
jne LBB0_12
## %bb.10:
movl 20(%rbx), %esi
movq -64(%rbp), %rdi ## 8-byte Reload
xorl %edx, %edx
callq _sqlite3OsDelete
cmpl $0, 24(%rbx)
jne LBB0_12
## %bb.11:
movq _SHARED_LOCK@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq _pagerUnlockDb
LBB0_12:
xorl %eax, %eax
callq _sqlite3EndBenignMalloc
LBB0_22:
movl %r15d, %eax
addq $40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_20:
movl %eax, %r15d
movq _SQLITE_CANTOPEN@GOTPCREL(%rip), %rax
cmpl (%rax), %r15d
jne LBB0_22
## %bb.21:
movq -72(%rbp), %rax ## 8-byte Reload
movl $1, (%rax)
movl (%r13), %r15d
jmp LBB0_22
.cfi_endproc
## -- End function
.comm _SQLITE_OK,4,2 ## @SQLITE_OK
.comm _PAGER_OPEN,8,3 ## @PAGER_OPEN
.comm _SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN,4,2 ## @SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN
.comm _SQLITE_ACCESS_EXISTS,4,2 ## @SQLITE_ACCESS_EXISTS
.comm _RESERVED_LOCK,4,2 ## @RESERVED_LOCK
.comm _SHARED_LOCK,4,2 ## @SHARED_LOCK
.comm _SQLITE_OPEN_READONLY,4,2 ## @SQLITE_OPEN_READONLY
.comm _SQLITE_OPEN_MAIN_JOURNAL,4,2 ## @SQLITE_OPEN_MAIN_JOURNAL
.comm _SQLITE_IOERR_SHORT_READ,4,2 ## @SQLITE_IOERR_SHORT_READ
.comm _SQLITE_CANTOPEN,4,2 ## @SQLITE_CANTOPEN
.no_dead_strip _hasHotJournal
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function hasHotJournal
_hasHotJournal: ; @hasHotJournal
.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 x20, x1
mov x19, x0
ldr x22, [x0, #32]
Lloh0:
adrp x24, _SQLITE_OK@GOTPAGE
Lloh1:
ldr x24, [x24, _SQLITE_OK@GOTPAGEOFF]
ldr w21, [x24]
mov w8, #1
str w8, [sp, #28]
ldr w0, [x0, #16]
bl _isOpen
mov x23, x0
ldr w0, [x19]
bl _assert
ldr w0, [x19, #28]
bl _isOpen
bl _assert
ldr x8, [x19, #8]
Lloh2:
adrp x9, _PAGER_OPEN@GOTPAGE
Lloh3:
ldr x9, [x9, _PAGER_OPEN@GOTPAGEOFF]
Lloh4:
ldr x9, [x9]
cmp x8, x9
cset w0, eq
bl _assert
cbz w23, LBB0_2
; %bb.1:
ldr w0, [x19, #16]
bl _sqlite3OsDeviceCharacteristics
Lloh5:
adrp x8, _SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN@GOTPAGE
Lloh6:
ldr x8, [x8, _SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN@GOTPAGEOFF]
Lloh7:
ldr w8, [x8]
tst w8, w0
cset w0, ne
bl _assert
str wzr, [x20]
mov w8, #1
b LBB0_3
LBB0_2:
mov w0, #1
bl _assert
str wzr, [x20]
ldr w1, [x19, #20]
Lloh8:
adrp x8, _SQLITE_ACCESS_EXISTS@GOTPAGE
Lloh9:
ldr x8, [x8, _SQLITE_ACCESS_EXISTS@GOTPAGEOFF]
Lloh10:
ldr w2, [x8]
add x3, sp, #28
mov x0, x22
bl _sqlite3OsAccess
mov x21, x0
ldr w8, [sp, #28]
cmp w8, #0
cset w8, ne
LBB0_3:
ldr w9, [x24]
cmp w21, w9
ccmp w8, #0, #4, eq
b.ne LBB0_5
LBB0_4:
mov x0, x21
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_5:
str wzr, [sp, #24]
ldr w0, [x19, #28]
add x1, sp, #24
bl _sqlite3OsCheckReservedLock
mov x21, x0
ldr w8, [x24]
cmp w0, w8
b.ne LBB0_4
; %bb.6:
ldr w8, [sp, #24]
cbnz w8, LBB0_4
; %bb.7:
add x1, sp, #16
mov x0, x19
bl _pagerPagecount
mov x21, x0
ldr w8, [x24]
cmp w0, w8
b.ne LBB0_4
; %bb.8:
ldr x8, [sp, #16]
cbz x8, LBB0_14
; %bb.9:
cbnz w23, LBB0_11
; %bb.10:
Lloh11:
adrp x8, _SQLITE_OPEN_READONLY@GOTPAGE
Lloh12:
ldr x8, [x8, _SQLITE_OPEN_READONLY@GOTPAGEOFF]
Lloh13:
adrp x9, _SQLITE_OPEN_MAIN_JOURNAL@GOTPAGE
Lloh14:
ldr x9, [x9, _SQLITE_OPEN_MAIN_JOURNAL@GOTPAGEOFF]
Lloh15:
ldr w8, [x8]
Lloh16:
ldr w9, [x9]
orr w3, w9, w8
str w3, [sp, #8]
ldp w2, w1, [x19, #16]
add x4, sp, #8
mov x0, x22
bl _sqlite3OsOpen
ldr w8, [x24]
cmp w0, w8
b.ne LBB0_18
LBB0_11:
str xzr, [sp, #8]
ldr w0, [x19, #16]
add x1, sp, #8
mov w2, #1
mov w3, #0
bl _sqlite3OsRead
Lloh17:
adrp x8, _SQLITE_IOERR_SHORT_READ@GOTPAGE
Lloh18:
ldr x8, [x8, _SQLITE_IOERR_SHORT_READ@GOTPAGEOFF]
Lloh19:
ldr w8, [x8]
ldr w9, [x24]
cmp w0, w8
csel w21, w9, w0, eq
cbnz w23, LBB0_13
; %bb.12:
ldr w0, [x19, #16]
bl _sqlite3OsClose
LBB0_13:
ldr x8, [sp, #8]
cmp x8, #0
cset w8, ne
str w8, [x20]
b LBB0_4
LBB0_14:
bl _sqlite3BeginBenignMalloc
Lloh20:
adrp x8, _RESERVED_LOCK@GOTPAGE
Lloh21:
ldr x8, [x8, _RESERVED_LOCK@GOTPAGEOFF]
Lloh22:
ldr w1, [x8]
mov x0, x19
bl _pagerLockDb
ldr w8, [x24]
cmp w0, w8
b.ne LBB0_17
; %bb.15:
ldr w1, [x19, #20]
mov x0, x22
mov w2, #0
bl _sqlite3OsDelete
ldr w8, [x19, #24]
cbnz w8, LBB0_17
; %bb.16:
Lloh23:
adrp x8, _SHARED_LOCK@GOTPAGE
Lloh24:
ldr x8, [x8, _SHARED_LOCK@GOTPAGEOFF]
Lloh25:
ldr w1, [x8]
mov x0, x19
bl _pagerUnlockDb
LBB0_17:
bl _sqlite3EndBenignMalloc
b LBB0_4
LBB0_18:
mov x21, x0
Lloh26:
adrp x8, _SQLITE_CANTOPEN@GOTPAGE
Lloh27:
ldr x8, [x8, _SQLITE_CANTOPEN@GOTPAGEOFF]
Lloh28:
ldr w8, [x8]
cmp w0, w8
b.ne LBB0_4
; %bb.19:
mov w8, #1
str w8, [x20]
ldr w21, [x24]
b LBB0_4
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh16
.loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh15
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22
.loh AdrpLdrGotLdr Lloh23, Lloh24, Lloh25
.loh AdrpLdrGotLdr Lloh26, Lloh27, Lloh28
.cfi_endproc
; -- End function
.comm _SQLITE_OK,4,2 ; @SQLITE_OK
.comm _PAGER_OPEN,8,3 ; @PAGER_OPEN
.comm _SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN,4,2 ; @SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN
.comm _SQLITE_ACCESS_EXISTS,4,2 ; @SQLITE_ACCESS_EXISTS
.comm _RESERVED_LOCK,4,2 ; @RESERVED_LOCK
.comm _SHARED_LOCK,4,2 ; @SHARED_LOCK
.comm _SQLITE_OPEN_READONLY,4,2 ; @SQLITE_OPEN_READONLY
.comm _SQLITE_OPEN_MAIN_JOURNAL,4,2 ; @SQLITE_OPEN_MAIN_JOURNAL
.comm _SQLITE_IOERR_SHORT_READ,4,2 ; @SQLITE_IOERR_SHORT_READ
.comm _SQLITE_CANTOPEN,4,2 ; @SQLITE_CANTOPEN
.no_dead_strip _hasHotJournal
.subsections_via_symbols
| AnghaBench/mongoose/examples/api_server/extr_sqlite3.c_hasHotJournal.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function checkpasswd
_checkpasswd: ## @checkpasswd
.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 $536, %rsp ## imm = 0x218
.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 (%rcx), %rax
testq %rax, %rax
je LBB0_13
## %bb.1:
movq %rcx, %rbx
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, -568(%rbp) ## 8-byte Spill
movq %rax, %rdi
movl $58, %esi
callq _strchr
movq %rax, %r13
movq (%rbx), %rdi
movl $59, %esi
callq _strchr
testq %r13, %r13
jne LBB0_13
## %bb.2:
movq (%rbx), %rdi
cmpb $59, (%rdi)
je LBB0_13
## %bb.3:
movq %rax, %r14
xorps %xmm0, %xmm0
movaps %xmm0, -64(%rbp)
movaps %xmm0, -80(%rbp)
movaps %xmm0, -96(%rbp)
movaps %xmm0, -112(%rbp)
movaps %xmm0, -128(%rbp)
movaps %xmm0, -144(%rbp)
movaps %xmm0, -160(%rbp)
movaps %xmm0, -176(%rbp)
movaps %xmm0, -192(%rbp)
movaps %xmm0, -208(%rbp)
movaps %xmm0, -224(%rbp)
movaps %xmm0, -240(%rbp)
movaps %xmm0, -256(%rbp)
movaps %xmm0, -272(%rbp)
movaps %xmm0, -288(%rbp)
movaps %xmm0, -304(%rbp)
callq _strlen
movq %rax, %r13
testq %r14, %r14
je LBB0_5
## %bb.4:
movb $0, (%r14)
LBB0_5:
testq %r12, %r12
setne %al
testl %r15d, %r15d
sete %cl
movq (%rbx), %r8
orb %al, %cl
jne LBB0_7
## %bb.6:
leaq L_.str(%rip), %rdx
leaq -560(%rbp), %rdi
movl $256, %esi ## imm = 0x100
movq -568(%rbp), %rcx ## 8-byte Reload
xorl %eax, %eax
callq _curlx_msnprintf
jmp LBB0_8
LBB0_7:
incq %r12
leaq L_.str.1(%rip), %rdx
leaq -560(%rbp), %rdi
movl $256, %esi ## imm = 0x100
movq -568(%rbp), %rcx ## 8-byte Reload
movq %r12, %r9
xorl %eax, %eax
callq _curlx_msnprintf
LBB0_8:
leaq -560(%rbp), %rdi
leaq -304(%rbp), %r15
movq %r15, %rsi
movl $256, %edx ## imm = 0x100
callq _getpass_r
movq %r15, %rdi
callq _strlen
movq %rax, %r15
testq %r14, %r14
je LBB0_10
## %bb.9:
movb $59, (%r14)
LBB0_10:
movq (%rbx), %rdi
leaq (%r15,%r13), %rsi
addq $2, %rsi
callq _realloc
testq %rax, %rax
je LBB0_11
## %bb.12:
incq %r15
movb $58, (%rax,%r13)
leaq (%rax,%r13), %rdi
incq %rdi
leaq -304(%rbp), %rsi
movq %r15, %rdx
movq %rax, %r14
callq _memcpy
movq %r14, (%rbx)
LBB0_13:
movq _CURLE_OK@GOTPCREL(%rip), %rax
LBB0_14:
movl (%rax), %eax
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -48(%rbp), %rcx
jne LBB0_16
## %bb.15:
addq $536, %rsp ## imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_11:
movq _CURLE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
jmp LBB0_14
LBB0_16:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _CURLE_OK,4,2 ## @CURLE_OK
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter %s password for user '%s':"
L_.str.1: ## @.str.1
.asciz "Enter %s password for user '%s' on URL #%zu:"
.comm _CURLE_OUT_OF_MEMORY,4,2 ## @CURLE_OUT_OF_MEMORY
.no_dead_strip _checkpasswd
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function checkpasswd
_checkpasswd: ; @checkpasswd
.cfi_startproc
; %bb.0:
stp x28, x27, [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
sub sp, sp, #544
.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 w27, -72
.cfi_offset w28, -80
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-72]
ldr x8, [x3]
cbz x8, LBB0_13
; %bb.1:
mov x19, x3
mov x24, x2
mov x23, x1
mov x21, x0
mov x0, x8
mov w1, #58 ; =0x3a
bl _strchr
mov x22, x0
ldr x0, [x19]
mov w1, #59 ; =0x3b
bl _strchr
cbnz x22, LBB0_13
; %bb.2:
mov x20, x0
ldr x0, [x19]
ldrb w8, [x0]
cmp w8, #59
b.eq LBB0_13
; %bb.3:
movi.2d v0, #0000000000000000
stp q0, q0, [sp, #496]
stp q0, q0, [sp, #464]
stp q0, q0, [sp, #432]
stp q0, q0, [sp, #400]
stp q0, q0, [sp, #368]
stp q0, q0, [sp, #336]
stp q0, q0, [sp, #304]
stp q0, q0, [sp, #272]
bl _strlen
mov x22, x0
cbz x20, LBB0_5
; %bb.4:
strb wzr, [x20]
LBB0_5:
ldr x4, [x19]
cbnz x23, LBB0_8
; %bb.6:
cbz w24, LBB0_8
; %bb.7:
Lloh3:
adrp x2, l_.str@PAGE
Lloh4:
add x2, x2, l_.str@PAGEOFF
b LBB0_9
LBB0_8:
add x8, x23, #1
Lloh5:
adrp x2, l_.str.1@PAGE
Lloh6:
add x2, x2, l_.str.1@PAGEOFF
str x8, [sp]
LBB0_9:
add x0, sp, #16
mov w1, #256 ; =0x100
mov x3, x21
bl _curlx_msnprintf
add x0, sp, #16
add x1, sp, #272
mov w2, #256 ; =0x100
bl _getpass_r
add x0, sp, #272
bl _strlen
cbz x20, LBB0_11
; %bb.10:
mov w8, #59 ; =0x3b
strb w8, [x20]
LBB0_11:
ldr x8, [x19]
add x20, x0, #1
add x9, x22, x20
add x1, x9, #1
mov x0, x8
bl _realloc
cbz x0, LBB0_16
; %bb.12:
add x8, x0, x22
mov w9, #58 ; =0x3a
strb w9, [x8], #1
add x1, sp, #272
mov x21, x0
mov x0, x8
mov x2, x20
bl _memcpy
str x21, [x19]
LBB0_13:
Lloh7:
adrp x8, _CURLE_OK@GOTPAGE
Lloh8:
ldr x8, [x8, _CURLE_OK@GOTPAGEOFF]
LBB0_14:
ldr w0, [x8]
ldur x8, [x29, #-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_17
; %bb.15:
add sp, sp, #544
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 x28, x27, [sp], #80 ; 16-byte Folded Reload
ret
LBB0_16:
Lloh12:
adrp x8, _CURLE_OUT_OF_MEMORY@GOTPAGE
Lloh13:
ldr x8, [x8, _CURLE_OUT_OF_MEMORY@GOTPAGEOFF]
b LBB0_14
LBB0_17:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpAdd Lloh5, Lloh6
.loh AdrpLdrGot Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGot Lloh12, Lloh13
.cfi_endproc
; -- End function
.comm _CURLE_OK,4,2 ; @CURLE_OK
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Enter %s password for user '%s':"
l_.str.1: ; @.str.1
.asciz "Enter %s password for user '%s' on URL #%zu:"
.comm _CURLE_OUT_OF_MEMORY,4,2 ; @CURLE_OUT_OF_MEMORY
.no_dead_strip _checkpasswd
.subsections_via_symbols
| assembly_file_87128.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sctp_opt_info ## -- Begin function sctp_opt_info
.p2align 4, 0x90
_sctp_opt_info: ## @sctp_opt_info
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
testq %rcx, %rcx
je LBB0_6
## %bb.1:
movq _SCTP_CURRENT_ASSOC@GOTPCREL(%rip), %rax
cmpq %rsi, (%rax)
je LBB0_6
## %bb.2:
movq _SCTP_ALL_ASSOC@GOTPCREL(%rip), %rax
cmpq %rsi, (%rax)
je LBB0_6
## %bb.3:
movl %edx, %eax
andl $-32, %eax
cmpl $128, %eax
jne LBB0_5
## %bb.4:
movq %rsi, (%rcx)
LBB0_5:
movq _IPPROTO_SCTP@GOTPCREL(%rip), %rax
movl (%rax), %esi
popq %rbp
jmp _getsockopt ## TAILCALL
LBB0_6:
movq _EINVAL@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq _errno@GOTPCREL(%rip), %rcx
movl %eax, (%rcx)
movl $-1, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EINVAL,4,2 ## @EINVAL
.comm _errno,4,2 ## @errno
.comm _SCTP_CURRENT_ASSOC,8,3 ## @SCTP_CURRENT_ASSOC
.comm _SCTP_ALL_ASSOC,8,3 ## @SCTP_ALL_ASSOC
.comm _IPPROTO_SCTP,4,2 ## @IPPROTO_SCTP
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sctp_opt_info ; -- Begin function sctp_opt_info
.p2align 2
_sctp_opt_info: ; @sctp_opt_info
.cfi_startproc
; %bb.0:
cbz x3, LBB0_2
; %bb.1:
Lloh0:
adrp x8, _SCTP_CURRENT_ASSOC@GOTPAGE
Lloh1:
ldr x8, [x8, _SCTP_CURRENT_ASSOC@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
Lloh3:
adrp x9, _SCTP_ALL_ASSOC@GOTPAGE
Lloh4:
ldr x9, [x9, _SCTP_ALL_ASSOC@GOTPAGEOFF]
Lloh5:
ldr x9, [x9]
cmp x8, x1
ccmp x9, x1, #4, ne
b.ne LBB0_3
LBB0_2:
Lloh6:
adrp x8, _EINVAL@GOTPAGE
Lloh7:
ldr x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
ldr w8, [x8]
Lloh9:
adrp x9, _errno@GOTPAGE
Lloh10:
ldr x9, [x9, _errno@GOTPAGEOFF]
Lloh11:
str w8, [x9]
mov w0, #-1
ret
LBB0_3:
and w8, w2, #0xffffffe0
cmp w8, #128
b.ne LBB0_5
; %bb.4:
str x1, [x3]
LBB0_5:
Lloh12:
adrp x8, _IPPROTO_SCTP@GOTPAGE
Lloh13:
ldr x8, [x8, _IPPROTO_SCTP@GOTPAGEOFF]
Lloh14:
ldr w1, [x8]
b _getsockopt
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotStr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.cfi_endproc
; -- End function
.comm _EINVAL,4,2 ; @EINVAL
.comm _errno,4,2 ; @errno
.comm _SCTP_CURRENT_ASSOC,8,3 ; @SCTP_CURRENT_ASSOC
.comm _SCTP_ALL_ASSOC,8,3 ; @SCTP_ALL_ASSOC
.comm _IPPROTO_SCTP,4,2 ; @IPPROTO_SCTP
.subsections_via_symbols
| AnghaBench/freebsd/lib/libc/net/extr_sctp_sys_calls.c_sctp_opt_info.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function getcurrenv
_getcurrenv: ## @getcurrenv
.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
movq (%rdi), %rax
cmpq 8(%rdi), %rax
je LBB0_3
## %bb.1:
movq %rbx, %rdi
callq _curr_func
testq %rax, %rax
je LBB0_3
## %bb.2:
movq (%rax), %rax
addq $8, %rsp
popq %rbx
popq %rbp
retq
LBB0_3:
movq %rbx, %rdi
callq _gt
movl %eax, %edi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _hvalue ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _getcurrenv
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function getcurrenv
_getcurrenv: ; @getcurrenv
.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 x8, x9, [x0]
cmp x8, x9
b.eq LBB0_3
; %bb.1:
mov x0, x19
bl _curr_func
cbz x0, LBB0_3
; %bb.2:
ldr x0, [x0]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_3:
mov x0, x19
bl _gt
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _hvalue
.cfi_endproc
; -- End function
.no_dead_strip _getcurrenv
.subsections_via_symbols
| AnghaBench/nodemcu-firmware/app/lua/extr_lapi.c_getcurrenv.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function add_path_to_index
_add_path_to_index: ## @add_path_to_index
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $88, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rcx, %rbx
movq 32(%rbp), %r15
cmpb $0, (%rcx)
movq %rdx, -56(%rbp) ## 8-byte Spill
je LBB0_16
## %bb.1:
movq %rdi, -112(%rbp) ## 8-byte Spill
movq %rsi, -104(%rbp) ## 8-byte Spill
movq %r8, -120(%rbp) ## 8-byte Spill
movq %r9, -96(%rbp) ## 8-byte Spill
movq (%r9), %r13
testq %r13, %r13
je LBB0_7
## %bb.2:
leaq L_.str.2(%rip), %r12
.p2align 4, 0x90
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq (%r13), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq _strcmp
testq %rax, %rax
je LBB0_4
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq _g_strconcat
movq %rax, %r15
movq %rax, %rdi
callq _strlen
movq %r15, %rdi
movq %rbx, %rsi
movl %eax, %edx
callq _strncmp
movq %rax, %r14
movq %r15, %rdi
callq _g_free
testq %r14, %r14
je LBB0_4
## %bb.6: ## in Loop: Header=BB0_3 Depth=1
movq 8(%r13), %r13
testq %r13, %r13
jne LBB0_3
LBB0_7:
movq -112(%rbp), %r13 ## 8-byte Reload
movl (%r13), %edi
movq %rbx, %rsi
movq -120(%rbp), %r15 ## 8-byte Reload
movq %r15, %rdx
callq _check_full_path_ignore
xorl %r12d, %r12d
testq %rax, %rax
jne LBB0_15
## %bb.8:
movl (%r13), %edi
movq %rbx, %rsi
xorl %edx, %edx
callq _g_build_filename
movq %rax, %r12
leaq -44(%rbp), %rsi
movq %rax, %rdi
callq _seaf_stat
testq %rax, %rax
js LBB0_9
## %bb.12:
movq %r12, -88(%rbp) ## 8-byte Spill
movl -44(%rbp), %edi
callq _S_ISDIR
testq %rax, %rax
je LBB0_14
## %bb.13:
movq -96(%rbp), %r12 ## 8-byte Reload
movq (%r12), %r14
movq %rbx, %rdi
callq _g_strdup
movq %r14, %rdi
movl %eax, %esi
callq _g_list_prepend
movq %rax, (%r12)
LBB0_14:
leaq -80(%rbp), %r14
xorl %r12d, %r12d
movq %r14, %rdi
xorl %esi, %esi
movl $24, %edx
callq _memset
movq 32(%rbp), %rax
movq %rax, -72(%rbp)
movq 16(%r13), %rax
movq %rax, -80(%rbp)
movl 12(%r13), %edi
movl 8(%r13), %esi
movl (%r13), %r8d
movl 4(%r13), %edx
movq _FALSE@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq -104(%rbp), %rcx ## 8-byte Reload
movq %rbx, %r9
pushq %r14
pushq 24(%rbp)
pushq 16(%rbp)
pushq %r15
pushq %rax
pushq -56(%rbp) ## 8-byte Folded Reload
callq _add_recursive
addq $48, %rsp
movq -88(%rbp), %rdi ## 8-byte Reload
callq _g_free
jmp LBB0_15
LBB0_16:
movq %rdi, %r14
movq %rsi, %rdi
movl (%r14), %esi
movl 12(%r14), %r9d
movl 20(%r14), %eax
movl 16(%r14), %r10d
leaq L_.str(%rip), %rdx
movq %r8, %rcx
movq %r8, %r13
movq %r15, %r8
pushq %r10
pushq %rax
movq %rdi, %r15
callq _remove_deleted
addq $16, %rsp
leaq -80(%rbp), %rdi
xorl %r12d, %r12d
xorl %esi, %esi
movl $24, %edx
callq _memset
movq 32(%rbp), %rax
movq %rax, -72(%rbp)
movq _TRUE@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -64(%rbp)
movq 16(%r14), %rax
movq %rax, -80(%rbp)
movl 12(%r14), %edi
movl 8(%r14), %esi
movl (%r14), %r8d
movl 4(%r14), %edx
movq _FALSE@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq %r15, %rcx
movq %rbx, %r9
leaq -80(%rbp), %r10
pushq %r10
pushq 24(%rbp)
pushq 16(%rbp)
pushq %r13
pushq %rax
pushq -56(%rbp) ## 8-byte Folded Reload
callq _add_recursive
addq $48, %rsp
jmp LBB0_15
LBB0_4:
leaq L_.str.1(%rip), %rdi
movq %rbx, %rsi
callq _seaf_debug
xorl %r12d, %r12d
LBB0_15:
movl %r12d, %eax
addq $88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_9:
movq _errno@GOTPCREL(%rip), %r14
movq (%r14), %rdi
movq _ENOENT@GOTPCREL(%rip), %rax
cmpq (%rax), %rdi
je LBB0_11
## %bb.10:
movl 12(%r13), %edi
movl 24(%r13), %esi
movq _SYNC_ERROR_ID_INDEX_ERROR@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq %rbx, %rdx
callq _send_file_sync_error_notification
movq (%r14), %rdi
LBB0_11:
callq _strerror
leaq L_.str.3(%rip), %rdi
movq %rbx, %rsi
movl %eax, %edx
callq _seaf_warning
movq %r12, %rdi
callq _g_free
movl $-1, %r12d
jmp LBB0_15
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.space 1
.comm _TRUE,4,2 ## @TRUE
.comm _FALSE,4,2 ## @FALSE
L_.str.1: ## @.str.1
.asciz "%s has been scanned before, skip adding.\n"
L_.str.2: ## @.str.2
.asciz "/"
.comm _errno,8,3 ## @errno
.comm _ENOENT,8,3 ## @ENOENT
.comm _SYNC_ERROR_ID_INDEX_ERROR,4,2 ## @SYNC_ERROR_ID_INDEX_ERROR
L_.str.3: ## @.str.3
.asciz "Failed to stat %s: %s.\n"
.no_dead_strip _add_path_to_index
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function add_path_to_index
_add_path_to_index: ; @add_path_to_index
.cfi_startproc
; %bb.0:
sub sp, sp, #192
stp x28, x27, [sp, #96] ; 16-byte Folded Spill
stp x26, x25, [sp, #112] ; 16-byte Folded Spill
stp x24, x23, [sp, #128] ; 16-byte Folded Spill
stp x22, x21, [sp, #144] ; 16-byte Folded Spill
stp x20, x19, [sp, #160] ; 16-byte Folded Spill
stp x29, x30, [sp, #176] ; 16-byte Folded Spill
add x29, sp, #176
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.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 x24, x7
mov x22, x4
mov x19, x3
mov x21, x1
mov x25, x0
ldr x26, [x29, #16]
ldrb w8, [x3]
cbz w8, LBB0_11
; %bb.1:
stp x6, x2, [sp, #48] ; 16-byte Folded Spill
str x5, [sp, #40] ; 8-byte Folded Spill
ldr x23, [x5]
cbz x23, LBB0_6
; %bb.2:
Lloh0:
adrp x27, l_.str.2@PAGE
Lloh1:
add x27, x27, l_.str.2@PAGEOFF
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x28, [x23]
mov x0, x28
mov x1, x19
bl _strcmp
cbz x0, LBB0_12
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
mov x0, x28
mov x1, x27
mov x2, #0 ; =0x0
bl _g_strconcat
mov x28, x0
bl _strlen
mov x2, x0
mov x0, x28
mov x1, x19
bl _strncmp
mov x20, x0
mov x0, x28
bl _g_free
cbz x20, LBB0_12
; %bb.5: ; in Loop: Header=BB0_3 Depth=1
ldr x23, [x23, #8]
cbnz x23, LBB0_3
LBB0_6:
ldr w0, [x25]
mov x1, x19
mov x2, x22
bl _check_full_path_ignore
cbnz x0, LBB0_13
; %bb.7:
ldr w0, [x25]
mov x1, x19
mov x2, #0 ; =0x0
bl _g_build_filename
mov x27, x0
sub x1, x29, #84
bl _seaf_stat
tbnz x0, #63, LBB0_15
; %bb.8:
ldur w0, [x29, #-84]
bl _S_ISDIR
cbz x0, LBB0_10
; %bb.9:
ldr x23, [sp, #40] ; 8-byte Folded Reload
ldr x20, [x23]
mov x0, x19
bl _g_strdup
mov x1, x0
mov x0, x20
bl _g_list_prepend
str x0, [x23]
LBB0_10:
add x20, sp, #64
add x0, sp, #64
mov w1, #0 ; =0x0
mov w2, #24 ; =0x18
bl _memset
str x26, [sp, #72]
ldr d0, [x25, #16]
str d0, [sp, #64]
ldp w1, w0, [x25, #8]
ldp w4, w2, [x25]
Lloh2:
adrp x8, _FALSE@GOTPAGE
Lloh3:
ldr x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
ldr w7, [x8]
stp x24, x20, [sp, #16]
ldp x8, x6, [sp, #48] ; 16-byte Folded Reload
stp x22, x8, [sp]
mov x3, x21
mov x5, x19
bl _add_recursive
mov x0, x27
bl _g_free
b LBB0_13
LBB0_11:
ldr w1, [x25]
mov x27, x6
ldp w7, w6, [x25, #16]
ldr w5, [x25, #12]
mov x23, x2
Lloh5:
adrp x2, l_.str@PAGE
Lloh6:
add x2, x2, l_.str@PAGEOFF
mov x0, x21
mov x3, x22
mov x4, x26
bl _remove_deleted
add x20, sp, #64
add x0, sp, #64
mov w1, #0 ; =0x0
mov w2, #24 ; =0x18
bl _memset
Lloh7:
adrp x8, _TRUE@GOTPAGE
Lloh8:
ldr x8, [x8, _TRUE@GOTPAGEOFF]
str x26, [sp, #72]
Lloh9:
ldr w8, [x8]
str w8, [sp, #80]
ldr d0, [x25, #16]
str d0, [sp, #64]
ldp w1, w0, [x25, #8]
ldp w4, w2, [x25]
Lloh10:
adrp x8, _FALSE@GOTPAGE
Lloh11:
ldr x8, [x8, _FALSE@GOTPAGEOFF]
Lloh12:
ldr w7, [x8]
stp x24, x20, [sp, #16]
stp x22, x27, [sp]
mov x3, x21
mov x5, x19
mov x6, x23
bl _add_recursive
b LBB0_13
LBB0_12:
Lloh13:
adrp x0, l_.str.1@PAGE
Lloh14:
add x0, x0, l_.str.1@PAGEOFF
mov x1, x19
bl _seaf_debug
LBB0_13:
mov w0, #0 ; =0x0
LBB0_14:
ldp x29, x30, [sp, #176] ; 16-byte Folded Reload
ldp x20, x19, [sp, #160] ; 16-byte Folded Reload
ldp x22, x21, [sp, #144] ; 16-byte Folded Reload
ldp x24, x23, [sp, #128] ; 16-byte Folded Reload
ldp x26, x25, [sp, #112] ; 16-byte Folded Reload
ldp x28, x27, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #192
ret
LBB0_15:
Lloh15:
adrp x20, _errno@GOTPAGE
Lloh16:
ldr x20, [x20, _errno@GOTPAGEOFF]
ldr x0, [x20]
Lloh17:
adrp x8, _ENOENT@GOTPAGE
Lloh18:
ldr x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh19:
ldr x8, [x8]
cmp x0, x8
b.eq LBB0_17
; %bb.16:
ldr w0, [x25, #12]
ldr w1, [x25, #24]
Lloh20:
adrp x8, _SYNC_ERROR_ID_INDEX_ERROR@GOTPAGE
Lloh21:
ldr x8, [x8, _SYNC_ERROR_ID_INDEX_ERROR@GOTPAGEOFF]
Lloh22:
ldr w3, [x8]
mov x2, x19
bl _send_file_sync_error_notification
ldr x0, [x20]
LBB0_17:
bl _strerror
mov x2, x0
Lloh23:
adrp x0, l_.str.3@PAGE
Lloh24:
add x0, x0, l_.str.3@PAGEOFF
mov x1, x19
bl _seaf_warning
mov x0, x27
bl _g_free
mov w0, #-1 ; =0xffffffff
b LBB0_14
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpAdd Lloh5, Lloh6
.loh AdrpAdd Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.loh AdrpLdrGot Lloh15, Lloh16
.loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22
.loh AdrpAdd Lloh23, Lloh24
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.space 1
.comm _TRUE,4,2 ; @TRUE
.comm _FALSE,4,2 ; @FALSE
l_.str.1: ; @.str.1
.asciz "%s has been scanned before, skip adding.\n"
l_.str.2: ; @.str.2
.asciz "/"
.comm _errno,8,3 ; @errno
.comm _ENOENT,8,3 ; @ENOENT
.comm _SYNC_ERROR_ID_INDEX_ERROR,4,2 ; @SYNC_ERROR_ID_INDEX_ERROR
l_.str.3: ; @.str.3
.asciz "Failed to stat %s: %s.\n"
.no_dead_strip _add_path_to_index
.subsections_via_symbols
| assembly_file_78414.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _SCR_DrawScreenField ## -- Begin function SCR_DrawScreenField
.p2align 4, 0x90
_SCR_DrawScreenField: ## @SCR_DrawScreenField
.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, %r12d
movl %edi, %ebx
testl %edx, %edx
jne LBB0_2
## %bb.1:
movq _re@GOTPCREL(%rip), %rax
movl %ebx, %edi
callq *16(%rax)
LBB0_2:
movl %ebx, -44(%rbp) ## 4-byte Spill
movq _uivm@GOTPCREL(%rip), %r14
movq (%r14), %rdi
testq %rdi, %rdi
je LBB0_3
## %bb.4:
movq _UI_IS_FULLSCREEN@GOTPCREL(%rip), %rax
movl (%rax), %esi
xorl %eax, %eax
callq _VM_Call
testq %rax, %rax
setne %bl
jmp LBB0_5
LBB0_3:
xorl %ebx, %ebx
LBB0_5:
movq _clc@GOTPCREL(%rip), %r13
testb %bl, %bl
jne LBB0_7
## %bb.6:
cmpl $128, (%r13)
jg LBB0_9
LBB0_7:
movq _cls@GOTPCREL(%rip), %r15
imull $480, 8(%r15), %eax ## imm = 0x1E0
movl 12(%r15), %ecx
shll $7, %ecx
leal (%rcx,%rcx,4), %ecx
cmpl %ecx, %eax
jle LBB0_9
## %bb.8:
movq _g_color_table@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq (%rax), %rdi
movq _re@GOTPCREL(%rip), %rax
callq *(%rax)
movl 4(%r15), %eax
movl 8(%r15), %edx
movl 12(%r15), %ecx
subq $8, %rsp
xorl %edi, %edi
xorl %esi, %esi
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %rax
pushq $0
pushq $0
movq _re@GOTPCREL(%rip), %r15
callq *8(%r15)
addq $32, %rsp
xorl %edi, %edi
callq *(%r15)
LBB0_9:
movq (%r14), %rdi
testq %rdi, %rdi
sete %al
orb %bl, %al
je LBB0_10
## %bb.24:
testl %r12d, %r12d
jne LBB0_31
jmp LBB0_25
LBB0_10:
movl (%r13), %eax
addl $-128, %eax
cmpl $7, %eax
ja LBB0_23
## %bb.11:
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_17:
testl %r12d, %r12d
jne LBB0_31
## %bb.18:
movq _UI_REFRESH@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _cls@GOTPCREL(%rip), %rax
movl (%rax), %edx
xorl %eax, %eax
callq _VM_Call
movq (%r14), %rdi
movq _UI_DRAW_CONNECT_SCREEN@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _qfalse@GOTPCREL(%rip), %rax
jmp LBB0_16
LBB0_19:
movl -44(%rbp), %edi ## 4-byte Reload
movl %r12d, %esi
callq _CL_CGameRendering
testl %r12d, %r12d
jne LBB0_31
## %bb.20:
movq (%r14), %rdi
movq _UI_REFRESH@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _cls@GOTPCREL(%rip), %rax
movl (%rax), %edx
xorl %eax, %eax
callq _VM_Call
movq (%r14), %rdi
movq _UI_DRAW_CONNECT_SCREEN@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _qtrue@GOTPCREL(%rip), %rax
jmp LBB0_16
LBB0_23:
movq _ERR_FATAL@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str(%rip), %rsi
callq _Com_Error
testl %r12d, %r12d
jne LBB0_31
jmp LBB0_25
LBB0_14:
testl %r12d, %r12d
jne LBB0_31
## %bb.15:
xorl %eax, %eax
callq _S_StopAllSounds
movq (%r14), %rdi
movq _UI_SET_ACTIVE_MENU@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _UIMENU_MAIN@GOTPCREL(%rip), %rax
LBB0_16:
movl (%rax), %edx
xorl %eax, %eax
callq _VM_Call
LBB0_25:
xorl %eax, %eax
callq _Key_GetCatcher
movq _KEYCATCH_UI@GOTPCREL(%rip), %rcx
testl %eax, (%rcx)
je LBB0_28
## %bb.26:
movq (%r14), %rdi
testq %rdi, %rdi
je LBB0_28
## %bb.27:
movq _UI_REFRESH@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _cls@GOTPCREL(%rip), %rax
movl (%rax), %edx
xorl %eax, %eax
callq _VM_Call
LBB0_28:
xorl %eax, %eax
callq _Con_DrawConsole
movq _cl_debuggraph@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq $0, (%rax)
jne LBB0_32
## %bb.29:
movq _cl_timegraph@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq $0, (%rax)
jne LBB0_32
## %bb.30:
movq _cl_debugMove@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq $0, (%rax)
je LBB0_31
LBB0_32:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _SCR_DrawDebugGraph ## TAILCALL
LBB0_12:
testl %r12d, %r12d
jne LBB0_31
## %bb.13:
xorl %eax, %eax
callq _SCR_DrawCinematic
jmp LBB0_25
LBB0_21:
movl -44(%rbp), %edi ## 4-byte Reload
movl %r12d, %esi
callq _CL_CGameRendering
testl %r12d, %r12d
je LBB0_22
LBB0_31:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_22:
xorl %eax, %eax
callq _SCR_DrawDemoRecording
jmp LBB0_25
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
LJTI0_0:
.long L0_0_set_19
.long L0_0_set_19
.long L0_0_set_14
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_12
.long L0_0_set_17
.long L0_0_set_21
.end_data_region
## -- End function
.comm _re,24,3 ## @re
.comm _uivm,8,3 ## @uivm
.comm _UI_IS_FULLSCREEN,4,2 ## @UI_IS_FULLSCREEN
.comm _clc,4,2 ## @clc
.comm _cls,16,2 ## @cls
.comm _g_color_table,8,3 ## @g_color_table
.comm _ERR_FATAL,4,2 ## @ERR_FATAL
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "SCR_DrawScreenField: bad clc.state"
.comm _UI_SET_ACTIVE_MENU,4,2 ## @UI_SET_ACTIVE_MENU
.comm _UIMENU_MAIN,4,2 ## @UIMENU_MAIN
.comm _UI_REFRESH,4,2 ## @UI_REFRESH
.comm _UI_DRAW_CONNECT_SCREEN,4,2 ## @UI_DRAW_CONNECT_SCREEN
.comm _qfalse,4,2 ## @qfalse
.comm _qtrue,4,2 ## @qtrue
.comm _KEYCATCH_UI,4,2 ## @KEYCATCH_UI
.comm _cl_debuggraph,8,3 ## @cl_debuggraph
.comm _cl_timegraph,8,3 ## @cl_timegraph
.comm _cl_debugMove,8,3 ## @cl_debugMove
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _SCR_DrawScreenField ; -- Begin function SCR_DrawScreenField
.p2align 2
_SCR_DrawScreenField: ; @SCR_DrawScreenField
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.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
mov x19, x2
mov x20, x0
cbnz w2, LBB0_2
; %bb.1:
Lloh0:
adrp x8, _re@GOTPAGE
Lloh1:
ldr x8, [x8, _re@GOTPAGEOFF]
Lloh2:
ldr x8, [x8, #16]
mov x0, x20
blr x8
LBB0_2:
Lloh3:
adrp x21, _uivm@GOTPAGE
Lloh4:
ldr x21, [x21, _uivm@GOTPAGEOFF]
ldr x0, [x21]
cbz x0, LBB0_4
; %bb.3:
Lloh5:
adrp x8, _UI_IS_FULLSCREEN@GOTPAGE
Lloh6:
ldr x8, [x8, _UI_IS_FULLSCREEN@GOTPAGEOFF]
Lloh7:
ldr w1, [x8]
bl _VM_Call
cmp x0, #0
cset w22, ne
b LBB0_5
LBB0_4:
mov w22, #0
LBB0_5:
Lloh8:
adrp x23, _clc@GOTPAGE
Lloh9:
ldr x23, [x23, _clc@GOTPAGEOFF]
tbnz w22, #0, LBB0_7
; %bb.6:
ldr w8, [x23]
cmp w8, #128
b.gt LBB0_9
LBB0_7:
Lloh10:
adrp x24, _cls@GOTPAGE
Lloh11:
ldr x24, [x24, _cls@GOTPAGEOFF]
mov w8, #480
ldp w9, w10, [x24, #8]
mul w8, w9, w8
add w9, w10, w10, lsl #2
cmp w8, w9, lsl #7
b.le LBB0_9
; %bb.8:
Lloh12:
adrp x25, _re@GOTPAGE
Lloh13:
ldr x25, [x25, _re@GOTPAGEOFF]
ldr x8, [x25]
Lloh14:
adrp x9, _g_color_table@GOTPAGE
Lloh15:
ldr x9, [x9, _g_color_table@GOTPAGEOFF]
Lloh16:
ldr x9, [x9]
ldr x0, [x9]
blr x8
ldr x8, [x25, #8]
ldp w2, w3, [x24, #8]
ldr w9, [x24, #4]
str w9, [sp]
mov w0, #0
mov w1, #0
mov w4, #0
mov w5, #0
mov w6, #0
mov w7, #0
blr x8
ldr x8, [x25]
mov x0, #0
blr x8
LBB0_9:
ldr x0, [x21]
cmp x0, #0
cset w8, eq
orr w8, w8, w22
tbz w8, #0, LBB0_11
; %bb.10:
cbnz w19, LBB0_30
b LBB0_21
LBB0_11:
ldr w8, [x23]
sub w8, w8, #128
cmp w8, #7
b.hi LBB0_17
; %bb.12:
Lloh17:
adrp x9, lJTI0_0@PAGE
Lloh18:
add x9, x9, lJTI0_0@PAGEOFF
adr x10, LBB0_13
ldrb w11, [x9, x8]
add x10, x10, x11, lsl #2
br x10
LBB0_13:
cbnz w19, LBB0_30
; %bb.14:
Lloh19:
adrp x8, _UI_REFRESH@GOTPAGE
Lloh20:
ldr x8, [x8, _UI_REFRESH@GOTPAGEOFF]
Lloh21:
ldr w1, [x8]
Lloh22:
adrp x8, _cls@GOTPAGE
Lloh23:
ldr x8, [x8, _cls@GOTPAGEOFF]
Lloh24:
ldr w8, [x8]
str x8, [sp]
bl _VM_Call
ldr x0, [x21]
Lloh25:
adrp x8, _UI_DRAW_CONNECT_SCREEN@GOTPAGE
Lloh26:
ldr x8, [x8, _UI_DRAW_CONNECT_SCREEN@GOTPAGEOFF]
Lloh27:
ldr w1, [x8]
Lloh28:
adrp x8, _qfalse@GOTPAGE
Lloh29:
ldr x8, [x8, _qfalse@GOTPAGEOFF]
b LBB0_20
LBB0_15:
mov x0, x20
mov x1, x19
bl _CL_CGameRendering
cbnz w19, LBB0_30
; %bb.16:
ldr x0, [x21]
Lloh30:
adrp x8, _UI_REFRESH@GOTPAGE
Lloh31:
ldr x8, [x8, _UI_REFRESH@GOTPAGEOFF]
Lloh32:
ldr w1, [x8]
Lloh33:
adrp x8, _cls@GOTPAGE
Lloh34:
ldr x8, [x8, _cls@GOTPAGEOFF]
Lloh35:
ldr w8, [x8]
str x8, [sp]
bl _VM_Call
ldr x0, [x21]
Lloh36:
adrp x8, _UI_DRAW_CONNECT_SCREEN@GOTPAGE
Lloh37:
ldr x8, [x8, _UI_DRAW_CONNECT_SCREEN@GOTPAGEOFF]
Lloh38:
ldr w1, [x8]
Lloh39:
adrp x8, _qtrue@GOTPAGE
Lloh40:
ldr x8, [x8, _qtrue@GOTPAGEOFF]
b LBB0_20
LBB0_17:
Lloh41:
adrp x8, _ERR_FATAL@GOTPAGE
Lloh42:
ldr x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh43:
ldr w0, [x8]
Lloh44:
adrp x1, l_.str@PAGE
Lloh45:
add x1, x1, l_.str@PAGEOFF
bl _Com_Error
cbnz w19, LBB0_30
b LBB0_21
LBB0_18:
cbnz w19, LBB0_30
; %bb.19:
bl _S_StopAllSounds
ldr x0, [x21]
Lloh46:
adrp x8, _UI_SET_ACTIVE_MENU@GOTPAGE
Lloh47:
ldr x8, [x8, _UI_SET_ACTIVE_MENU@GOTPAGEOFF]
Lloh48:
ldr w1, [x8]
Lloh49:
adrp x8, _UIMENU_MAIN@GOTPAGE
Lloh50:
ldr x8, [x8, _UIMENU_MAIN@GOTPAGEOFF]
LBB0_20:
ldr w8, [x8]
str x8, [sp]
bl _VM_Call
LBB0_21:
bl _Key_GetCatcher
Lloh51:
adrp x8, _KEYCATCH_UI@GOTPAGE
Lloh52:
ldr x8, [x8, _KEYCATCH_UI@GOTPAGEOFF]
Lloh53:
ldr w8, [x8]
and w8, w8, w0
ldr x0, [x21]
cmp w8, #0
ccmp x0, #0, #4, ne
b.eq LBB0_23
; %bb.22:
Lloh54:
adrp x8, _UI_REFRESH@GOTPAGE
Lloh55:
ldr x8, [x8, _UI_REFRESH@GOTPAGEOFF]
Lloh56:
ldr w1, [x8]
Lloh57:
adrp x8, _cls@GOTPAGE
Lloh58:
ldr x8, [x8, _cls@GOTPAGEOFF]
Lloh59:
ldr w8, [x8]
str x8, [sp]
bl _VM_Call
LBB0_23:
bl _Con_DrawConsole
Lloh60:
adrp x8, _cl_debuggraph@GOTPAGE
Lloh61:
ldr x8, [x8, _cl_debuggraph@GOTPAGEOFF]
Lloh62:
ldr x8, [x8]
ldr x8, [x8]
cbnz x8, LBB0_26
; %bb.24:
Lloh63:
adrp x8, _cl_timegraph@GOTPAGE
Lloh64:
ldr x8, [x8, _cl_timegraph@GOTPAGEOFF]
Lloh65:
ldr x8, [x8]
ldr x8, [x8]
cbnz x8, LBB0_26
; %bb.25:
Lloh66:
adrp x8, _cl_debugMove@GOTPAGE
Lloh67:
ldr x8, [x8, _cl_debugMove@GOTPAGEOFF]
Lloh68:
ldr x8, [x8]
ldr x8, [x8]
cbz x8, LBB0_30
LBB0_26:
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
add sp, sp, #96
b _SCR_DrawDebugGraph
LBB0_27:
cbnz w19, LBB0_30
; %bb.28:
bl _SCR_DrawCinematic
b LBB0_21
LBB0_29:
mov x0, x20
mov x1, x19
bl _CL_CGameRendering
cbz w19, LBB0_31
LBB0_30:
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
add sp, sp, #96
ret
LBB0_31:
bl _SCR_DrawDemoRecording
b LBB0_21
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGot Lloh10, Lloh11
.loh AdrpLdrGotLdr Lloh14, Lloh15, Lloh16
.loh AdrpLdrGot Lloh12, Lloh13
.loh AdrpAdd Lloh17, Lloh18
.loh AdrpLdrGot Lloh28, Lloh29
.loh AdrpLdrGotLdr Lloh25, Lloh26, Lloh27
.loh AdrpLdrGotLdr Lloh22, Lloh23, Lloh24
.loh AdrpLdrGotLdr Lloh19, Lloh20, Lloh21
.loh AdrpLdrGot Lloh39, Lloh40
.loh AdrpLdrGotLdr Lloh36, Lloh37, Lloh38
.loh AdrpLdrGotLdr Lloh33, Lloh34, Lloh35
.loh AdrpLdrGotLdr Lloh30, Lloh31, Lloh32
.loh AdrpAdd Lloh44, Lloh45
.loh AdrpLdrGotLdr Lloh41, Lloh42, Lloh43
.loh AdrpLdrGot Lloh49, Lloh50
.loh AdrpLdrGotLdr Lloh46, Lloh47, Lloh48
.loh AdrpLdrGotLdr Lloh51, Lloh52, Lloh53
.loh AdrpLdrGotLdr Lloh57, Lloh58, Lloh59
.loh AdrpLdrGotLdr Lloh54, Lloh55, Lloh56
.loh AdrpLdrGotLdr Lloh60, Lloh61, Lloh62
.loh AdrpLdrGotLdr Lloh63, Lloh64, Lloh65
.loh AdrpLdrGotLdr Lloh66, Lloh67, Lloh68
.cfi_endproc
.section __TEXT,__const
lJTI0_0:
.byte (LBB0_15-LBB0_13)>>2
.byte (LBB0_15-LBB0_13)>>2
.byte (LBB0_18-LBB0_13)>>2
.byte (LBB0_13-LBB0_13)>>2
.byte (LBB0_13-LBB0_13)>>2
.byte (LBB0_27-LBB0_13)>>2
.byte (LBB0_13-LBB0_13)>>2
.byte (LBB0_29-LBB0_13)>>2
; -- End function
.comm _re,24,3 ; @re
.comm _uivm,8,3 ; @uivm
.comm _UI_IS_FULLSCREEN,4,2 ; @UI_IS_FULLSCREEN
.comm _clc,4,2 ; @clc
.comm _cls,16,2 ; @cls
.comm _g_color_table,8,3 ; @g_color_table
.comm _ERR_FATAL,4,2 ; @ERR_FATAL
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "SCR_DrawScreenField: bad clc.state"
.comm _UI_SET_ACTIVE_MENU,4,2 ; @UI_SET_ACTIVE_MENU
.comm _UIMENU_MAIN,4,2 ; @UIMENU_MAIN
.comm _UI_REFRESH,4,2 ; @UI_REFRESH
.comm _UI_DRAW_CONNECT_SCREEN,4,2 ; @UI_DRAW_CONNECT_SCREEN
.comm _qfalse,4,2 ; @qfalse
.comm _qtrue,4,2 ; @qtrue
.comm _KEYCATCH_UI,4,2 ; @KEYCATCH_UI
.comm _cl_debuggraph,8,3 ; @cl_debuggraph
.comm _cl_timegraph,8,3 ; @cl_timegraph
.comm _cl_debugMove,8,3 ; @cl_debugMove
.subsections_via_symbols
| AnghaBench/lab/engine/code/client/extr_cl_scrn.c_SCR_DrawScreenField.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
leaq L_.str(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -44(%rbp), %rsi
xorl %eax, %eax
callq _scanf
movl -44(%rbp), %eax
testl %eax, %eax
jle LBB0_7
## %bb.1:
movq _a@GOTPCREL(%rip), %r13
addq $84, %r13
movl $1, %r12d
leaq L_.str.2(%rip), %r14
leaq L_.str.1(%rip), %r15
jmp LBB0_2
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_2 Depth=1
movslq %eax, %rcx
leaq 1(%r12), %rdx
addq $80, %r13
cmpq %rcx, %r12
movq %rdx, %r12
jge LBB0_7
LBB0_2: ## =>This Loop Header: Depth=1
## Child Loop BB0_4 Depth 2
testl %eax, %eax
jle LBB0_6
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movq %r13, -64(%rbp) ## 8-byte Spill
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_4: ## Parent Loop BB0_2 Depth=1
## => This Inner Loop Header: Depth=2
incq %rbx
movq %r14, %rdi
movl %r12d, %esi
movl %ebx, %edx
xorl %eax, %eax
callq _printf
movq %r15, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq _scanf
movslq -44(%rbp), %rax
addq $4, %r13
cmpq %rax, %rbx
jl LBB0_4
## %bb.5: ## in Loop: Header=BB0_2 Depth=1
movq -64(%rbp), %r13 ## 8-byte Reload
jmp LBB0_6
LBB0_7:
leaq L_str(%rip), %rdi
callq _puts
movl -44(%rbp), %eax
testl %eax, %eax
jle LBB0_13
## %bb.8:
movq _a@GOTPCREL(%rip), %r12
addq $84, %r12
movl $1, %r15d
leaq L_.str.4(%rip), %r14
jmp LBB0_9
.p2align 4, 0x90
LBB0_12: ## in Loop: Header=BB0_9 Depth=1
movl $10, %edi
callq _putchar
leaq 1(%r15), %rcx
movslq -44(%rbp), %rax
addq $80, %r12
cmpq %rax, %r15
movq %rcx, %r15
jge LBB0_13
LBB0_9: ## =>This Loop Header: Depth=1
## Child Loop BB0_11 Depth 2
testl %eax, %eax
jle LBB0_12
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_11: ## Parent Loop BB0_9 Depth=1
## => This Inner Loop Header: Depth=2
movl (%r12,%rbx,4), %esi
movq %r14, %rdi
xorl %eax, %eax
callq _printf
movslq -44(%rbp), %rax
incq %rbx
cmpq %rax, %rbx
jl LBB0_11
jmp LBB0_12
LBB0_13:
leaq L_.str.1(%rip), %rbx
leaq L_.str.12(%rip), %r14
leaq -46(%rbp), %r15
leaq -45(%rbp), %r12
movq _vis@GOTPCREL(%rip), %r13
addq $4, %r13
testl %eax, %eax
jle LBB0_16
.p2align 4, 0x90
LBB0_15:
movl %eax, %esi
shlq $2, %rsi
movq %r13, %rdi
callq ___bzero
LBB0_16: ## =>This Inner Loop Header: Depth=1
leaq L_.str.6(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.7(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.8(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.9(%rip), %rdi
xorl %eax, %eax
callq _printf
movq %rbx, %rdi
leaq -56(%rbp), %rsi
xorl %eax, %eax
callq _scanf
leaq L_.str.10(%rip), %rdi
xorl %eax, %eax
callq _printf
movq %rbx, %rdi
leaq -52(%rbp), %rsi
xorl %eax, %eax
callq _scanf
movl -56(%rbp), %eax
cmpl $2, %eax
je LBB0_19
## %bb.17: ## in Loop: Header=BB0_16 Depth=1
cmpl $1, %eax
jne LBB0_20
## %bb.18: ## in Loop: Header=BB0_16 Depth=1
movl -52(%rbp), %edi
movl -44(%rbp), %esi
callq _bfs
jmp LBB0_20
.p2align 4, 0x90
LBB0_19: ## in Loop: Header=BB0_16 Depth=1
movl -52(%rbp), %edi
movl -44(%rbp), %esi
callq _dfs
LBB0_20: ## in Loop: Header=BB0_16 Depth=1
leaq L_.str.11(%rip), %rdi
xorl %eax, %eax
callq _printf
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq _scanf
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq _scanf
movzbl -45(%rbp), %eax
andb $-33, %al
cmpb $89, %al
jne LBB0_22
## %bb.21: ## in Loop: Header=BB0_16 Depth=1
movl -44(%rbp), %eax
testl %eax, %eax
jg LBB0_15
jmp LBB0_16
LBB0_22:
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _bfs ## -- Begin function bfs
.p2align 4, 0x90
_bfs: ## @bfs
.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, %r12d
movl %edi, %ebx
movslq _rear(%rip), %rcx
cmpq $-1, %rcx
je LBB1_3
## %bb.1:
cmpl $19, %ecx
jne LBB1_4
## %bb.2:
leaq L_.str.14(%rip), %rdi
xorl %eax, %eax
callq _printf
movl _rear(%rip), %eax
jmp LBB1_5
LBB1_3:
movl $0, _rear(%rip)
movq _q@GOTPCREL(%rip), %rax
movl %ebx, (%rax)
incl _front(%rip)
xorl %eax, %eax
jmp LBB1_5
LBB1_4:
leaq 1(%rcx), %rax
movl %eax, _rear(%rip)
movq _q@GOTPCREL(%rip), %rdx
movl %ebx, 4(%rdx,%rcx,4)
LBB1_5:
movslq %ebx, %rcx
movq _vis@GOTPCREL(%rip), %r13
movl $1, (%r13,%rcx,4)
movslq _front(%rip), %rcx
cmpq $-1, %rcx
je LBB1_16
## %bb.6:
cmpl %eax, %ecx
jg LBB1_16
## %bb.7:
leal 1(%rcx), %eax
movl %eax, _front(%rip)
movq _q@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %ebx
testl %ebx, %ebx
je LBB1_16
## %bb.8:
leaq L_.str.4(%rip), %rdi
movl %ebx, %esi
xorl %eax, %eax
callq _printf
leal 1(%r12), %r15d
.p2align 4, 0x90
LBB1_9: ## =>This Loop Header: Depth=1
## Child Loop BB1_11 Depth 2
movq %r12, %r14
testl %r12d, %r12d
jle LBB1_26
## %bb.10: ## in Loop: Header=BB1_9 Depth=1
movslq %ebx, %rax
leaq (%rax,%rax,4), %rbx
shlq $4, %rbx
addq _a@GOTPCREL(%rip), %rbx
movl $1, %r12d
jmp LBB1_11
LBB1_23: ## in Loop: Header=BB1_11 Depth=2
leaq 1(%rax), %rcx
movl %ecx, _rear(%rip)
movq _q@GOTPCREL(%rip), %rcx
movl %r12d, 4(%rcx,%rax,4)
LBB1_24: ## in Loop: Header=BB1_11 Depth=2
movl $1, (%r13,%r12,4)
LBB1_25: ## in Loop: Header=BB1_11 Depth=2
incq %r12
cmpq %r12, %r15
je LBB1_26
LBB1_11: ## Parent Loop BB1_9 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $0, (%rbx,%r12,4)
je LBB1_25
## %bb.12: ## in Loop: Header=BB1_11 Depth=2
cmpl $0, (%r13,%r12,4)
jne LBB1_25
## %bb.13: ## in Loop: Header=BB1_11 Depth=2
movslq _rear(%rip), %rax
cmpq $-1, %rax
je LBB1_22
## %bb.14: ## in Loop: Header=BB1_11 Depth=2
cmpl $19, %eax
jne LBB1_23
## %bb.15: ## in Loop: Header=BB1_11 Depth=2
leaq L_.str.14(%rip), %rdi
xorl %eax, %eax
callq _printf
jmp LBB1_24
LBB1_22: ## in Loop: Header=BB1_11 Depth=2
movl $0, _rear(%rip)
movq _q@GOTPCREL(%rip), %rax
movl %r12d, (%rax)
incl _front(%rip)
jmp LBB1_24
.p2align 4, 0x90
LBB1_26: ## in Loop: Header=BB1_9 Depth=1
movslq _front(%rip), %rax
cmpq $-1, %rax
movq %r14, %r12
je LBB1_16
## %bb.27: ## in Loop: Header=BB1_9 Depth=1
cmpl _rear(%rip), %eax
jg LBB1_16
## %bb.28: ## in Loop: Header=BB1_9 Depth=1
leal 1(%rax), %ecx
movl %ecx, _front(%rip)
movq _q@GOTPCREL(%rip), %rcx
movl (%rcx,%rax,4), %ebx
testl %ebx, %ebx
je LBB1_16
## %bb.29: ## in Loop: Header=BB1_9 Depth=1
leaq L_.str.13(%rip), %rdi
movl %ebx, %esi
xorl %eax, %eax
callq _printf
jmp LBB1_9
LBB1_16:
testl %r12d, %r12d
jle LBB1_21
## %bb.17:
leal 1(%r12), %r14d
movl $1, %ebx
jmp LBB1_18
.p2align 4, 0x90
LBB1_20: ## in Loop: Header=BB1_18 Depth=1
incq %rbx
cmpq %rbx, %r14
je LBB1_21
LBB1_18: ## =>This Inner Loop Header: Depth=1
cmpl $0, (%r13,%rbx,4)
jne LBB1_20
## %bb.19: ## in Loop: Header=BB1_18 Depth=1
movl %ebx, %edi
movl %r12d, %esi
callq _bfs
jmp LBB1_20
LBB1_21:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _dfs ## -- Begin function dfs
.p2align 4, 0x90
_dfs: ## @dfs
.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, %r12d
movl %edi, %ebx
movslq _top(%rip), %rcx
cmpq $19, %rcx
jne LBB2_2
## %bb.1:
leaq L_.str.15(%rip), %rdi
xorl %eax, %eax
callq _printf
movl _top(%rip), %eax
jmp LBB2_3
LBB2_2:
leaq 1(%rcx), %rax
movl %eax, _top(%rip)
movq _stack@GOTPCREL(%rip), %rdx
movl %ebx, 4(%rdx,%rcx,4)
LBB2_3:
movslq %ebx, %rcx
movq _vis@GOTPCREL(%rip), %r13
movl $1, (%r13,%rcx,4)
cmpl $-1, %eax
je LBB2_12
## %bb.4:
leal -1(%rax), %ecx
movl %ecx, _top(%rip)
cltq
movq _stack@GOTPCREL(%rip), %rcx
movl (%rcx,%rax,4), %ebx
testl %ebx, %ebx
je LBB2_12
## %bb.5:
leaq L_.str.13(%rip), %rdi
movl %ebx, %esi
xorl %eax, %eax
callq _printf
leal 1(%r12), %r15d
.p2align 4, 0x90
LBB2_6: ## =>This Loop Header: Depth=1
## Child Loop BB2_8 Depth 2
movq %r12, %r14
testl %r12d, %r12d
jle LBB2_21
## %bb.7: ## in Loop: Header=BB2_6 Depth=1
movslq %ebx, %rax
leaq (%rax,%rax,4), %rbx
shlq $4, %rbx
addq _a@GOTPCREL(%rip), %rbx
movl $1, %r12d
jmp LBB2_8
LBB2_18: ## in Loop: Header=BB2_8 Depth=2
leaq 1(%rax), %rcx
movl %ecx, _top(%rip)
movq _stack@GOTPCREL(%rip), %rcx
movl %r12d, 4(%rcx,%rax,4)
LBB2_19: ## in Loop: Header=BB2_8 Depth=2
movl $1, (%r13,%r12,4)
LBB2_20: ## in Loop: Header=BB2_8 Depth=2
incq %r12
cmpq %r12, %r15
je LBB2_21
LBB2_8: ## Parent Loop BB2_6 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $0, (%rbx,%r12,4)
je LBB2_20
## %bb.9: ## in Loop: Header=BB2_8 Depth=2
cmpl $0, (%r13,%r12,4)
jne LBB2_20
## %bb.10: ## in Loop: Header=BB2_8 Depth=2
movslq _top(%rip), %rax
cmpq $19, %rax
jne LBB2_18
## %bb.11: ## in Loop: Header=BB2_8 Depth=2
leaq L_.str.15(%rip), %rdi
xorl %eax, %eax
callq _printf
jmp LBB2_19
.p2align 4, 0x90
LBB2_21: ## in Loop: Header=BB2_6 Depth=1
movslq _top(%rip), %rax
cmpq $-1, %rax
movq %r14, %r12
je LBB2_12
## %bb.22: ## in Loop: Header=BB2_6 Depth=1
leal -1(%rax), %ecx
movl %ecx, _top(%rip)
movq _stack@GOTPCREL(%rip), %rcx
movl (%rcx,%rax,4), %ebx
testl %ebx, %ebx
je LBB2_12
## %bb.23: ## in Loop: Header=BB2_6 Depth=1
leaq L_.str.13(%rip), %rdi
movl %ebx, %esi
xorl %eax, %eax
callq _printf
jmp LBB2_6
LBB2_12:
testl %r12d, %r12d
jle LBB2_17
## %bb.13:
leal 1(%r12), %r14d
movl $1, %ebx
jmp LBB2_14
.p2align 4, 0x90
LBB2_16: ## in Loop: Header=BB2_14 Depth=1
incq %rbx
cmpq %rbx, %r14
je LBB2_17
LBB2_14: ## =>This Inner Loop Header: Depth=1
cmpl $0, (%r13,%rbx,4)
jne LBB2_16
## %bb.15: ## in Loop: Header=BB2_14 Depth=1
movl %ebx, %edi
movl %r12d, %esi
callq _dfs
jmp LBB2_16
LBB2_17:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _add ## -- Begin function add
.p2align 4, 0x90
_add: ## @add
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movslq _rear(%rip), %rax
cmpq $-1, %rax
je LBB3_3
## %bb.1:
cmpl $19, %eax
jne LBB3_4
## %bb.2:
leaq L_.str.14(%rip), %rdi
xorl %eax, %eax
popq %rbp
jmp _printf ## TAILCALL
LBB3_3:
movl $0, _rear(%rip)
movq _q@GOTPCREL(%rip), %rax
movl %edi, (%rax)
incl _front(%rip)
popq %rbp
retq
LBB3_4:
leaq 1(%rax), %rcx
movl %ecx, _rear(%rip)
movq _q@GOTPCREL(%rip), %rcx
movl %edi, 4(%rcx,%rax,4)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _delete ## -- Begin function delete
.p2align 4, 0x90
_delete: ## @delete
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movslq _front(%rip), %rcx
xorl %eax, %eax
cmpq $-1, %rcx
je LBB4_3
## %bb.1:
cmpl _rear(%rip), %ecx
jg LBB4_3
## %bb.2:
leal 1(%rcx), %eax
movl %eax, _front(%rip)
movq _q@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %eax
LBB4_3:
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 _top(%rip), %rax
cmpq $19, %rax
jne LBB5_1
## %bb.2:
leaq L_.str.15(%rip), %rdi
xorl %eax, %eax
popq %rbp
jmp _printf ## TAILCALL
LBB5_1:
leaq 1(%rax), %rcx
movl %ecx, _top(%rip)
movq _stack@GOTPCREL(%rip), %rcx
movl %edi, 4(%rcx,%rax,4)
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 _top(%rip), %rax
cmpq $-1, %rax
je LBB6_1
## %bb.2:
leal -1(%rax), %ecx
movl %ecx, _top(%rip)
movq _stack@GOTPCREL(%rip), %rcx
movl (%rcx,%rax,4), %eax
popq %rbp
retq
LBB6_1:
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.globl _top ## @top
.p2align 2
_top:
.long 4294967295 ## 0xffffffff
.globl _front ## @front
.p2align 2
_front:
.long 4294967295 ## 0xffffffff
.globl _rear ## @rear
.p2align 2
_rear:
.long 4294967295 ## 0xffffffff
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "ENTER THE NUMBER VERTICES "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "ENTER 1 IF %d HAS A NODE WITH %d ELSE 0 "
.comm _a,1600,4 ## @a
L_.str.4: ## @.str.4
.asciz " %d"
.comm _vis,80,4 ## @vis
L_.str.6: ## @.str.6
.asciz "\nMENU"
L_.str.7: ## @.str.7
.asciz "\n1.B.F.S"
L_.str.8: ## @.str.8
.asciz "\n2.D.F.S"
L_.str.9: ## @.str.9
.asciz "\nENTER YOUR CHOICE"
L_.str.10: ## @.str.10
.asciz "ENTER THE SOURCE VERTEX :"
L_.str.11: ## @.str.11
.asciz "DO U WANT TO CONTINUE(Y/N) ? "
L_.str.12: ## @.str.12
.asciz "%c"
L_.str.13: ## @.str.13
.asciz " %d "
L_.str.14: ## @.str.14
.asciz "QUEUE FULL"
.comm _q,80,4 ## @q
L_.str.15: ## @.str.15
.asciz "Stack overflow "
.comm _stack,80,4 ## @stack
L_str: ## @str
.asciz "THE ADJACENCY MATRIX IS"
.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 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
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _printf
add x8, sp, #28
str x8, [sp]
Lloh2:
adrp x0, l_.str.1@PAGE
Lloh3:
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldr w8, [sp, #28]
Lloh4:
adrp x21, _a@GOTPAGE
Lloh5:
ldr x21, [x21, _a@GOTPAGEOFF]
cmp w8, #1
b.lt LBB0_6
; %bb.1:
add x22, x21, #84
mov w23, #1
Lloh6:
adrp x19, l_.str.2@PAGE
Lloh7:
add x19, x19, l_.str.2@PAGEOFF
Lloh8:
adrp x20, l_.str.1@PAGE
Lloh9:
add x20, x20, l_.str.1@PAGEOFF
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
cmp x23, w8, sxtw
add x23, x23, #1
add x22, x22, #80
b.ge LBB0_6
LBB0_3: ; =>This Loop Header: Depth=1
; Child Loop BB0_5 Depth 2
cmp w8, #1
b.lt LBB0_2
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
mov x24, #0
mov x25, x23
mov x26, x22
LBB0_5: ; Parent Loop BB0_3 Depth=1
; => This Inner Loop Header: Depth=2
add x24, x24, #1
stp x25, x24, [sp]
mov x0, x19
bl _printf
str x26, [sp]
mov x0, x20
bl _scanf
ldrsw x8, [sp, #28]
add x26, x26, #4
cmp x24, x8
b.lt LBB0_5
b LBB0_2
LBB0_6:
Lloh10:
adrp x0, l_str@PAGE
Lloh11:
add x0, x0, l_str@PAGEOFF
bl _puts
ldr w8, [sp, #28]
cmp w8, #1
b.lt LBB0_12
; %bb.7:
add x20, x21, #84
mov w21, #1
Lloh12:
adrp x19, l_.str.4@PAGE
Lloh13:
add x19, x19, l_.str.4@PAGEOFF
b LBB0_9
LBB0_8: ; in Loop: Header=BB0_9 Depth=1
mov w0, #10
bl _putchar
add x9, x21, #1
ldrsw x8, [sp, #28]
add x20, x20, #80
cmp x21, x8
mov x21, x9
b.ge LBB0_12
LBB0_9: ; =>This Loop Header: Depth=1
; Child Loop BB0_11 Depth 2
cmp w8, #1
b.lt LBB0_8
; %bb.10: ; in Loop: Header=BB0_9 Depth=1
mov x22, #0
LBB0_11: ; Parent Loop BB0_9 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [x20, x22, lsl #2]
str x8, [sp]
mov x0, x19
bl _printf
ldrsw x8, [sp, #28]
add x22, x22, #1
cmp x22, x8
b.lt LBB0_11
b LBB0_8
LBB0_12:
Lloh14:
adrp x22, l_.str.9@PAGE
Lloh15:
add x22, x22, l_.str.9@PAGEOFF
add x28, sp, #20
Lloh16:
adrp x23, l_.str.1@PAGE
Lloh17:
add x23, x23, l_.str.1@PAGEOFF
Lloh18:
adrp x24, l_.str.10@PAGE
Lloh19:
add x24, x24, l_.str.10@PAGEOFF
add x19, sp, #24
Lloh20:
adrp x25, l_.str.11@PAGE
Lloh21:
add x25, x25, l_.str.11@PAGEOFF
add x20, sp, #18
Lloh22:
adrp x26, l_.str.12@PAGE
Lloh23:
add x26, x26, l_.str.12@PAGEOFF
add x21, sp, #19
Lloh24:
adrp x9, _vis@GOTPAGE
Lloh25:
ldr x9, [x9, _vis@GOTPAGEOFF]
add x27, x9, #4
cmp w8, #1
b.lt LBB0_14
LBB0_13:
mov w8, w8
lsl x1, x8, #2
mov x0, x27
bl _bzero
LBB0_14: ; =>This Inner Loop Header: Depth=1
Lloh26:
adrp x0, l_.str.6@PAGE
Lloh27:
add x0, x0, l_.str.6@PAGEOFF
bl _printf
Lloh28:
adrp x0, l_.str.7@PAGE
Lloh29:
add x0, x0, l_.str.7@PAGEOFF
bl _printf
Lloh30:
adrp x0, l_.str.8@PAGE
Lloh31:
add x0, x0, l_.str.8@PAGEOFF
bl _printf
mov x0, x22
bl _printf
str x28, [sp]
mov x0, x23
bl _scanf
mov x0, x24
bl _printf
str x19, [sp]
mov x0, x23
bl _scanf
ldr w8, [sp, #20]
cmp w8, #2
b.eq LBB0_17
; %bb.15: ; in Loop: Header=BB0_14 Depth=1
cmp w8, #1
b.ne LBB0_18
; %bb.16: ; in Loop: Header=BB0_14 Depth=1
ldp w0, w1, [sp, #24]
bl _bfs
b LBB0_18
LBB0_17: ; in Loop: Header=BB0_14 Depth=1
ldp w0, w1, [sp, #24]
bl _dfs
LBB0_18: ; in Loop: Header=BB0_14 Depth=1
mov x0, x25
bl _printf
str x20, [sp]
mov x0, x26
bl _scanf
str x21, [sp]
mov x0, x26
bl _scanf
ldrb w8, [sp, #19]
and w8, w8, #0xffffffdf
cmp w8, #89
b.ne LBB0_20
; %bb.19: ; in Loop: Header=BB0_14 Depth=1
ldr w8, [sp, #28]
cmp w8, #1
b.ge LBB0_13
b LBB0_14
LBB0_20:
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 Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpLdrGot Lloh24, Lloh25
.loh AdrpAdd Lloh22, Lloh23
.loh AdrpAdd Lloh20, Lloh21
.loh AdrpAdd Lloh18, Lloh19
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpAdd Lloh14, Lloh15
.loh AdrpAdd Lloh30, Lloh31
.loh AdrpAdd Lloh28, Lloh29
.loh AdrpAdd Lloh26, Lloh27
.cfi_endproc
; -- End function
.globl _bfs ; -- Begin function bfs
.p2align 2
_bfs: ; @bfs
.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, x1
mov x20, x0
adrp x22, _rear@PAGE
ldr w8, [x22, _rear@PAGEOFF]
adrp x23, _front@PAGE
cmn w8, #1
b.eq LBB1_3
; %bb.1:
cmp w8, #19
b.ne LBB1_4
; %bb.2:
Lloh32:
adrp x0, l_.str.14@PAGE
Lloh33:
add x0, x0, l_.str.14@PAGEOFF
bl _printf
ldr w8, [x22, _rear@PAGEOFF]
b LBB1_5
LBB1_3:
mov w8, #0
str wzr, [x22, _rear@PAGEOFF]
Lloh34:
adrp x9, _q@GOTPAGE
Lloh35:
ldr x9, [x9, _q@GOTPAGEOFF]
Lloh36:
str w20, [x9]
ldr w9, [x23, _front@PAGEOFF]
add w9, w9, #1
str w9, [x23, _front@PAGEOFF]
b LBB1_5
LBB1_4:
add w8, w8, #1
str w8, [x22, _rear@PAGEOFF]
Lloh37:
adrp x9, _q@GOTPAGE
Lloh38:
ldr x9, [x9, _q@GOTPAGEOFF]
str w20, [x9, w8, sxtw #2]
LBB1_5:
Lloh39:
adrp x24, _vis@GOTPAGE
Lloh40:
ldr x24, [x24, _vis@GOTPAGEOFF]
mov w9, #1
str w9, [x24, w20, sxtw #2]
ldr w9, [x23, _front@PAGEOFF]
cmn w9, #1
ccmp w9, w8, #0, ne
b.gt LBB1_21
; %bb.6:
sxtw x8, w9
add w9, w8, #1
str w9, [x23, _front@PAGEOFF]
Lloh41:
adrp x25, _q@GOTPAGE
Lloh42:
ldr x25, [x25, _q@GOTPAGEOFF]
ldr w20, [x25, x8, lsl #2]
cbz w20, LBB1_21
; %bb.7:
str x20, [sp]
Lloh43:
adrp x0, l_.str.4@PAGE
Lloh44:
add x0, x0, l_.str.4@PAGEOFF
bl _printf
add w27, w19, #1
mov w26, #1
; kill: def $w20 killed $w20 killed $x20 def $x20
Lloh45:
adrp x21, l_.str.14@PAGE
Lloh46:
add x21, x21, l_.str.14@PAGEOFF
cmp w19, #1
b.lt LBB1_18
LBB1_8:
Lloh47:
adrp x8, _a@GOTPAGE
Lloh48:
ldr x8, [x8, _a@GOTPAGEOFF]
mov w9, #80
smaddl x28, w20, w9, x8
mov w20, #1
b LBB1_12
LBB1_9: ; in Loop: Header=BB1_12 Depth=1
add w8, w8, #1
str w8, [x22, _rear@PAGEOFF]
str w20, [x25, w8, sxtw #2]
LBB1_10: ; in Loop: Header=BB1_12 Depth=1
str w26, [x24, x20, lsl #2]
LBB1_11: ; in Loop: Header=BB1_12 Depth=1
add x20, x20, #1
cmp x27, x20
b.eq LBB1_18
LBB1_12: ; =>This Inner Loop Header: Depth=1
ldr w8, [x28, x20, lsl #2]
cbz w8, LBB1_11
; %bb.13: ; in Loop: Header=BB1_12 Depth=1
ldr w8, [x24, x20, lsl #2]
cbnz w8, LBB1_11
; %bb.14: ; in Loop: Header=BB1_12 Depth=1
ldr w8, [x22, _rear@PAGEOFF]
cmn w8, #1
b.eq LBB1_17
; %bb.15: ; in Loop: Header=BB1_12 Depth=1
cmp w8, #19
b.ne LBB1_9
; %bb.16: ; in Loop: Header=BB1_12 Depth=1
mov x0, x21
bl _printf
b LBB1_10
LBB1_17: ; in Loop: Header=BB1_12 Depth=1
str wzr, [x22, _rear@PAGEOFF]
str w20, [x25]
ldr w8, [x23, _front@PAGEOFF]
add w8, w8, #1
str w8, [x23, _front@PAGEOFF]
b LBB1_10
LBB1_18: ; =>This Inner Loop Header: Depth=1
ldr w8, [x23, _front@PAGEOFF]
ldr w9, [x22, _rear@PAGEOFF]
cmn w8, #1
ccmp w8, w9, #0, ne
b.gt LBB1_21
; %bb.19: ; in Loop: Header=BB1_18 Depth=1
sxtw x8, w8
add w9, w8, #1
str w9, [x23, _front@PAGEOFF]
ldr w20, [x25, x8, lsl #2]
cbz w20, LBB1_21
; %bb.20: ; in Loop: Header=BB1_18 Depth=1
str x20, [sp]
Lloh49:
adrp x0, l_.str.13@PAGE
Lloh50:
add x0, x0, l_.str.13@PAGEOFF
bl _printf
cmp w19, #1
b.ge LBB1_8
b LBB1_18
LBB1_21:
cmp w19, #1
b.lt LBB1_26
; %bb.22:
add w21, w19, #1
mov w20, #1
b LBB1_24
LBB1_23: ; in Loop: Header=BB1_24 Depth=1
add x20, x20, #1
cmp x21, x20
b.eq LBB1_26
LBB1_24: ; =>This Inner Loop Header: Depth=1
ldr w8, [x24, x20, lsl #2]
cbnz w8, LBB1_23
; %bb.25: ; in Loop: Header=BB1_24 Depth=1
mov x0, x20
mov x1, x19
bl _bfs
b LBB1_23
LBB1_26:
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 Lloh32, Lloh33
.loh AdrpLdrGotStr Lloh34, Lloh35, Lloh36
.loh AdrpLdrGot Lloh37, Lloh38
.loh AdrpLdrGot Lloh39, Lloh40
.loh AdrpLdrGot Lloh41, Lloh42
.loh AdrpAdd Lloh45, Lloh46
.loh AdrpAdd Lloh43, Lloh44
.loh AdrpLdrGot Lloh47, Lloh48
.loh AdrpAdd Lloh49, Lloh50
.cfi_endproc
; -- End function
.globl _dfs ; -- Begin function dfs
.p2align 2
_dfs: ; @dfs
.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, x1
mov x20, x0
adrp x23, _top@PAGE
ldr w8, [x23, _top@PAGEOFF]
Lloh51:
adrp x24, _stack@GOTPAGE
Lloh52:
ldr x24, [x24, _stack@GOTPAGEOFF]
cmp w8, #19
b.ne LBB2_2
; %bb.1:
Lloh53:
adrp x0, l_.str.15@PAGE
Lloh54:
add x0, x0, l_.str.15@PAGEOFF
bl _printf
ldr w8, [x23, _top@PAGEOFF]
b LBB2_3
LBB2_2:
add w8, w8, #1
str w8, [x23, _top@PAGEOFF]
str w20, [x24, w8, sxtw #2]
LBB2_3:
Lloh55:
adrp x22, _vis@GOTPAGE
Lloh56:
ldr x22, [x22, _vis@GOTPAGEOFF]
mov w9, #1
str w9, [x22, w20, sxtw #2]
cmn w8, #1
b.eq LBB2_17
; %bb.4:
sub w9, w8, #1
str w9, [x23, _top@PAGEOFF]
ldr w25, [x24, w8, sxtw #2]
cbz w25, LBB2_17
; %bb.5:
str x25, [sp]
Lloh57:
adrp x20, l_.str.13@PAGE
Lloh58:
add x20, x20, l_.str.13@PAGEOFF
mov x0, x20
bl _printf
add w26, w19, #1
mov w28, #1
; kill: def $w25 killed $w25 killed $x25 def $x25
Lloh59:
adrp x21, l_.str.15@PAGE
Lloh60:
add x21, x21, l_.str.15@PAGEOFF
cmp w19, #1
b.lt LBB2_14
LBB2_6:
Lloh61:
adrp x8, _a@GOTPAGE
Lloh62:
ldr x8, [x8, _a@GOTPAGEOFF]
mov w9, #80
smaddl x25, w25, w9, x8
mov w27, #1
b LBB2_10
LBB2_7: ; in Loop: Header=BB2_10 Depth=1
add w8, w8, #1
str w8, [x23, _top@PAGEOFF]
str w27, [x24, w8, sxtw #2]
LBB2_8: ; in Loop: Header=BB2_10 Depth=1
str w28, [x22, x27, lsl #2]
LBB2_9: ; in Loop: Header=BB2_10 Depth=1
add x27, x27, #1
cmp x26, x27
b.eq LBB2_14
LBB2_10: ; =>This Inner Loop Header: Depth=1
ldr w8, [x25, x27, lsl #2]
cbz w8, LBB2_9
; %bb.11: ; in Loop: Header=BB2_10 Depth=1
ldr w8, [x22, x27, lsl #2]
cbnz w8, LBB2_9
; %bb.12: ; in Loop: Header=BB2_10 Depth=1
ldr w8, [x23, _top@PAGEOFF]
cmp w8, #19
b.ne LBB2_7
; %bb.13: ; in Loop: Header=BB2_10 Depth=1
mov x0, x21
bl _printf
b LBB2_8
LBB2_14: ; =>This Inner Loop Header: Depth=1
ldrsw x8, [x23, _top@PAGEOFF]
cmn w8, #1
b.eq LBB2_17
; %bb.15: ; in Loop: Header=BB2_14 Depth=1
sub w9, w8, #1
str w9, [x23, _top@PAGEOFF]
ldr w25, [x24, x8, lsl #2]
cbz w25, LBB2_17
; %bb.16: ; in Loop: Header=BB2_14 Depth=1
str x25, [sp]
mov x0, x20
bl _printf
cmp w19, #1
b.ge LBB2_6
b LBB2_14
LBB2_17:
cmp w19, #1
b.lt LBB2_22
; %bb.18:
add w21, w19, #1
mov w20, #1
b LBB2_20
LBB2_19: ; in Loop: Header=BB2_20 Depth=1
add x20, x20, #1
cmp x21, x20
b.eq LBB2_22
LBB2_20: ; =>This Inner Loop Header: Depth=1
ldr w8, [x22, x20, lsl #2]
cbnz w8, LBB2_19
; %bb.21: ; in Loop: Header=BB2_20 Depth=1
mov x0, x20
mov x1, x19
bl _dfs
b LBB2_19
LBB2_22:
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 Lloh51, Lloh52
.loh AdrpAdd Lloh53, Lloh54
.loh AdrpLdrGot Lloh55, Lloh56
.loh AdrpAdd Lloh59, Lloh60
.loh AdrpAdd Lloh57, Lloh58
.loh AdrpLdrGot Lloh61, Lloh62
.cfi_endproc
; -- End function
.globl _add ; -- Begin function add
.p2align 2
_add: ; @add
.cfi_startproc
; %bb.0:
adrp x8, _rear@PAGE
ldr w9, [x8, _rear@PAGEOFF]
cmn w9, #1
b.eq LBB3_3
; %bb.1:
cmp w9, #19
b.ne LBB3_4
; %bb.2:
Lloh63:
adrp x0, l_.str.14@PAGE
Lloh64:
add x0, x0, l_.str.14@PAGEOFF
b _printf
LBB3_3:
Lloh65:
adrp x9, _q@GOTPAGE
Lloh66:
ldr x9, [x9, _q@GOTPAGEOFF]
str wzr, [x8, _rear@PAGEOFF]
Lloh67:
str w0, [x9]
adrp x8, _front@PAGE
ldr w9, [x8, _front@PAGEOFF]
add w9, w9, #1
str w9, [x8, _front@PAGEOFF]
ret
LBB3_4:
add w9, w9, #1
str w9, [x8, _rear@PAGEOFF]
Lloh68:
adrp x8, _q@GOTPAGE
Lloh69:
ldr x8, [x8, _q@GOTPAGEOFF]
str w0, [x8, w9, sxtw #2]
ret
.loh AdrpAdd Lloh63, Lloh64
.loh AdrpLdrGotStr Lloh65, Lloh66, Lloh67
.loh AdrpLdrGot Lloh68, Lloh69
.cfi_endproc
; -- End function
.globl _delete ; -- Begin function delete
.p2align 2
_delete: ; @delete
.cfi_startproc
; %bb.0:
adrp x8, _front@PAGE
ldr w9, [x8, _front@PAGEOFF]
Lloh70:
adrp x10, _rear@PAGE
Lloh71:
ldr w10, [x10, _rear@PAGEOFF]
cmn w9, #1
ccmp w9, w10, #0, ne
b.le LBB4_2
; %bb.1:
mov w0, #0
ret
LBB4_2:
sxtw x9, w9
add w10, w9, #1
str w10, [x8, _front@PAGEOFF]
Lloh72:
adrp x8, _q@GOTPAGE
Lloh73:
ldr x8, [x8, _q@GOTPAGEOFF]
ldr w0, [x8, x9, lsl #2]
ret
.loh AdrpLdr Lloh70, Lloh71
.loh AdrpLdrGot Lloh72, Lloh73
.cfi_endproc
; -- End function
.globl _push ; -- Begin function push
.p2align 2
_push: ; @push
.cfi_startproc
; %bb.0:
adrp x8, _top@PAGE
ldr w9, [x8, _top@PAGEOFF]
cmp w9, #19
b.ne LBB5_2
; %bb.1:
Lloh74:
adrp x0, l_.str.15@PAGE
Lloh75:
add x0, x0, l_.str.15@PAGEOFF
b _printf
LBB5_2:
add w9, w9, #1
str w9, [x8, _top@PAGEOFF]
Lloh76:
adrp x8, _stack@GOTPAGE
Lloh77:
ldr x8, [x8, _stack@GOTPAGEOFF]
str w0, [x8, w9, sxtw #2]
ret
.loh AdrpAdd Lloh74, Lloh75
.loh AdrpLdrGot Lloh76, Lloh77
.cfi_endproc
; -- End function
.globl _pop ; -- Begin function pop
.p2align 2
_pop: ; @pop
.cfi_startproc
; %bb.0:
adrp x9, _top@PAGE
ldrsw x8, [x9, _top@PAGEOFF]
cmn w8, #1
b.eq LBB6_2
; %bb.1:
sub w10, w8, #1
str w10, [x9, _top@PAGEOFF]
Lloh78:
adrp x9, _stack@GOTPAGE
Lloh79:
ldr x9, [x9, _stack@GOTPAGEOFF]
ldr w0, [x9, x8, lsl #2]
ret
LBB6_2:
mov w0, #0
ret
.loh AdrpLdrGot Lloh78, Lloh79
.cfi_endproc
; -- End function
.section __DATA,__data
.globl _top ; @top
.p2align 2
_top:
.long 4294967295 ; 0xffffffff
.globl _front ; @front
.p2align 2
_front:
.long 4294967295 ; 0xffffffff
.globl _rear ; @rear
.p2align 2
_rear:
.long 4294967295 ; 0xffffffff
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "ENTER THE NUMBER VERTICES "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "ENTER 1 IF %d HAS A NODE WITH %d ELSE 0 "
.comm _a,1600,2 ; @a
l_.str.4: ; @.str.4
.asciz " %d"
.comm _vis,80,2 ; @vis
l_.str.6: ; @.str.6
.asciz "\nMENU"
l_.str.7: ; @.str.7
.asciz "\n1.B.F.S"
l_.str.8: ; @.str.8
.asciz "\n2.D.F.S"
l_.str.9: ; @.str.9
.asciz "\nENTER YOUR CHOICE"
l_.str.10: ; @.str.10
.asciz "ENTER THE SOURCE VERTEX :"
l_.str.11: ; @.str.11
.asciz "DO U WANT TO CONTINUE(Y/N) ? "
l_.str.12: ; @.str.12
.asciz "%c"
l_.str.13: ; @.str.13
.asciz " %d "
l_.str.14: ; @.str.14
.asciz "QUEUE FULL"
.comm _q,80,2 ; @q
l_.str.15: ; @.str.15
.asciz "Stack overflow "
.comm _stack,80,2 ; @stack
l_str: ; @str
.asciz "THE ADJACENCY MATRIX IS"
.subsections_via_symbols
| the_stack_data/49501.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function update_metadata
_update_metadata: ## @update_metadata
.cfi_startproc
## %bb.0:
cmpb $0, (%rsi)
je LBB0_6
## %bb.1:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %r15
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
leaq L_.str(%rip), %rsi
callq _strstr
testq %rax, %rax
je LBB0_5
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movq %rax, %r13
movq %rax, %rdi
leaq L_.str.1(%rip), %rsi
callq _strstr
testq %rax, %rax
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
movq %rax, %r12
movb $0, (%r13)
movb $0, (%rax)
addq $2, %r13
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
callq _av_dict_set
movq _AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
leaq L_.str.2(%rip), %rdx
movq %r14, %rcx
movq %r13, %r8
callq _av_log
movq %r12, %r14
addq $-2, %r14
cmpb $0, -2(%r12)
jne LBB0_2
LBB0_5:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
LBB0_6:
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "='"
L_.str.1: ## @.str.1
.asciz "';"
.comm _AV_LOG_VERBOSE,4,2 ## @AV_LOG_VERBOSE
L_.str.2: ## @.str.2
.asciz "Metadata update for %s: %s\n"
.no_dead_strip _update_metadata
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function update_metadata
_update_metadata: ; @update_metadata
.cfi_startproc
; %bb.0:
ldrb w8, [x1]
cbz w8, LBB0_6
; %bb.1:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
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 x21, x1
mov x19, x0
ldr x20, [x0]
Lloh0:
adrp x22, l_.str@PAGE
Lloh1:
add x22, x22, l_.str@PAGEOFF
Lloh2:
adrp x23, l_.str.1@PAGE
Lloh3:
add x23, x23, l_.str.1@PAGEOFF
Lloh4:
adrp x27, _AV_LOG_VERBOSE@GOTPAGE
Lloh5:
ldr x27, [x27, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh6:
adrp x24, l_.str.2@PAGE
Lloh7:
add x24, x24, l_.str.2@PAGEOFF
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov x0, x21
mov x1, x22
bl _strstr
cbz x0, LBB0_5
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
mov x25, x0
mov x1, x23
bl _strstr
cbz x0, LBB0_5
; %bb.4: ; in Loop: Header=BB0_2 Depth=1
mov x26, x0
strb wzr, [x25], #2
strb wzr, [x0]
mov x0, x20
mov x1, x21
mov x2, x25
mov w3, #0 ; =0x0
bl _av_dict_set
ldr w1, [x27]
mov x0, x19
mov x2, x24
mov x3, x21
mov x4, x25
bl _av_log
ldrb w8, [x26, #-2]!
mov x21, x26
cbnz w8, LBB0_2
LBB0_5:
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
LBB0_6:
ret
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "='"
l_.str.1: ; @.str.1
.asciz "';"
.comm _AV_LOG_VERBOSE,4,2 ; @AV_LOG_VERBOSE
l_.str.2: ; @.str.2
.asciz "Metadata update for %s: %s\n"
.no_dead_strip _update_metadata
.subsections_via_symbols
| assembly_file_70790.c | assembly_dataset |
.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/1139773.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function bnad_rxq_alloc_init
_bnad_rxq_alloc_init: ## @bnad_rxq_alloc_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 %r12
pushq %rbx
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %r15
movq %rdi, %rbx
movq 16(%rsi), %r12
callq _bnad_rxq_alloc_uninit
movq %rbx, %rdi
callq _bna_enet_mtu_get
movl %eax, %edi
callq _get_order
movl %eax, %r14d
movl 8(%r15), %edi
callq _bna_is_small_rxq
testq %rax, %rax
je LBB0_2
## %bb.1:
movl $0, (%r12)
movq (%r15), %rax
movl (%rax), %esi
movq _PAGE_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %r14d, %ecx
shll %cl, %eax
jmp LBB0_3
LBB0_2:
movl %r14d, (%r12)
movq _PAGE_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %r14d, %ecx
shll %cl, %eax
movq (%r15), %rcx
cmpl $2049, (%rcx) ## imm = 0x801
movl $2048, %esi ## imm = 0x800
cmovgel %eax, %esi
LBB0_3:
movl %esi, 4(%r12)
cltd
idivl %esi
movl %edx, %edi
callq _BUG_ON
movq _BNAD_RXBUF_PAGE@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, 8(%r12)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _PAGE_SIZE,4,2 ## @PAGE_SIZE
.comm _BNAD_RXBUF_PAGE,4,2 ## @BNAD_RXBUF_PAGE
.no_dead_strip _bnad_rxq_alloc_init
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function bnad_rxq_alloc_init
_bnad_rxq_alloc_init: ; @bnad_rxq_alloc_init
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x1
mov x20, x0
ldr x21, [x1, #16]
bl _bnad_rxq_alloc_uninit
mov x0, x20
bl _bna_enet_mtu_get
bl _get_order
mov x20, x0
ldr w0, [x19, #8]
bl _bna_is_small_rxq
cbz x0, LBB0_2
; %bb.1:
str wzr, [x21]
ldr x8, [x19]
ldr w9, [x8]
Lloh0:
adrp x8, _PAGE_SIZE@GOTPAGE
Lloh1:
ldr x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
lsl w8, w8, w20
b LBB0_3
LBB0_2:
str w20, [x21]
ldr x8, [x19]
Lloh3:
adrp x9, _PAGE_SIZE@GOTPAGE
Lloh4:
ldr x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
ldr w10, [x8]
Lloh5:
ldr w8, [x9]
lsl w8, w8, w20
mov w9, #2048
cmp w10, #2048
csel w9, w8, w9, gt
LBB0_3:
str w9, [x21, #4]
sdiv w10, w8, w9
msub w0, w10, w9, w8
bl _BUG_ON
Lloh6:
adrp x8, _BNAD_RXBUF_PAGE@GOTPAGE
Lloh7:
ldr x8, [x8, _BNAD_RXBUF_PAGE@GOTPAGEOFF]
Lloh8:
ldr w8, [x8]
str w8, [x21, #8]
mov w0, #0
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
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.cfi_endproc
; -- End function
.comm _PAGE_SIZE,4,2 ; @PAGE_SIZE
.comm _BNAD_RXBUF_PAGE,4,2 ; @BNAD_RXBUF_PAGE
.no_dead_strip _bnad_rxq_alloc_init
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/drivers/net/bna/extr_bnad.c_bnad_rxq_alloc_init.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _show_hello ## -- Begin function show_hello
.p2align 4, 0x90
_show_hello: ## @show_hello
.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
popq %rbp
jmp _puts ## TAILCALL
.cfi_endproc
## -- End function
.globl _show_world ## -- Begin function show_world
.p2align 4, 0x90
_show_world: ## @show_world
.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.2(%rip), %rdi
popq %rbp
jmp _puts ## TAILCALL
.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
callq *_show(%rip)
callq *_show+8(%rip)
callq *_show+16(%rip)
callq *_show+24(%rip)
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.globl _show ## @show
.p2align 4
_show:
.quad _show_hello
.quad _show_world
.quad _show_world
.quad _show_hello
.section __TEXT,__cstring,cstring_literals
L_str: ## @str
.asciz "Hello"
L_str.2: ## @str.2
.asciz "World"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _show_hello ; -- Begin function show_hello
.p2align 2
_show_hello: ; @show_hello
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, l_str@PAGE
Lloh1:
add x0, x0, l_str@PAGEOFF
b _puts
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.globl _show_world ; -- Begin function show_world
.p2align 2
_show_world: ; @show_world
.cfi_startproc
; %bb.0:
Lloh2:
adrp x0, l_str.2@PAGE
Lloh3:
add x0, x0, l_str.2@PAGEOFF
b _puts
.loh AdrpAdd Lloh2, Lloh3
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.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
Lloh4:
adrp x19, _show@PAGE
Lloh5:
add x19, x19, _show@PAGEOFF
ldr x8, [x19]
blr x8
ldr x8, [x19, #8]
blr x8
ldr x8, [x19, #16]
blr x8
ldr x8, [x19, #24]
blr x8
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh4, Lloh5
.cfi_endproc
; -- End function
.section __DATA,__data
.globl _show ; @show
.p2align 3
_show:
.quad _show_hello
.quad _show_world
.quad _show_world
.quad _show_hello
.section __TEXT,__cstring,cstring_literals
l_str: ; @str
.asciz "Hello"
l_str.2: ; @str.2
.asciz "World"
.subsections_via_symbols
| the_stack_data/48576496.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function mergeWorkerPageOffset
_mergeWorkerPageOffset: ## @mergeWorkerPageOffset
.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, %r14d
movq %rdi, %rbx
movl %esi, %edi
callq _SEGMENT_NRECORD_OFFSET
leaq (%rbx,%rax,4), %rdi
callq _lsmGetU16
## kill: def $eax killed $eax def $rax
leal -1(%rax), %esi
movl %r14d, %edi
callq _SEGMENT_CELLPTR_OFFSET
leaq (%rbx,%rax,4), %rdi
callq _lsmGetU16
movslq %eax, %r12
movl (%rbx,%r12,4), %r15d
movq _LSM_SEPARATOR@GOTPCREL(%rip), %rax
movl (%rax), %eax
testl %r15d, %r15d
jne LBB0_3
## %bb.1:
movq _LSM_SYSTEMKEY@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
orl %eax, %ecx
je LBB0_2
LBB0_3:
xorl %edi, %edi
cmpl %eax, %r15d
sete %dil
LBB0_4:
callq _assert
leaq (%rbx,%r12,4), %rdi
addq $4, %rdi
leaq -44(%rbp), %r14
movq %r14, %rsi
callq _lsmVarintGet32
movl %r12d, %r13d
addl %eax, %r13d
addl %r12d, %eax
incl %eax
cltq
leaq (%rbx,%rax,4), %rdi
movq %r14, %rsi
callq _lsmVarintGet32
addl %r13d, %eax
incl %eax
testl %r15d, %r15d
je LBB0_6
## %bb.5:
movl -44(%rbp), %r15d
LBB0_6:
subl %r15d, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_2:
movl $1, %edi
jmp LBB0_4
.cfi_endproc
## -- End function
.comm _LSM_SYSTEMKEY,4,2 ## @LSM_SYSTEMKEY
.comm _LSM_SEPARATOR,4,2 ## @LSM_SEPARATOR
.no_dead_strip _mergeWorkerPageOffset
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function mergeWorkerPageOffset
_mergeWorkerPageOffset: ; @mergeWorkerPageOffset
.cfi_startproc
; %bb.0:
sub sp, sp, #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, x1
mov x19, x0
mov x0, x1
bl _SEGMENT_NRECORD_OFFSET
add x0, x19, x0, lsl #2
bl _lsmGetU16
sub w1, w0, #1
mov x0, x20
bl _SEGMENT_CELLPTR_OFFSET
add x0, x19, x0, lsl #2
bl _lsmGetU16
; kill: def $w0 killed $w0 def $x0
sxtw x8, w0
ldr w20, [x19, w0, sxtw #2]
Lloh0:
adrp x9, _LSM_SEPARATOR@GOTPAGE
Lloh1:
ldr x9, [x9, _LSM_SEPARATOR@GOTPAGEOFF]
Lloh2:
ldr w9, [x9]
cbnz w20, LBB0_2
; %bb.1:
Lloh3:
adrp x10, _LSM_SYSTEMKEY@GOTPAGE
Lloh4:
ldr x10, [x10, _LSM_SYSTEMKEY@GOTPAGEOFF]
Lloh5:
ldr w10, [x10]
orr w10, w9, w10
cbz w10, LBB0_4
LBB0_2:
cmp w20, w9
cset w0, eq
LBB0_3:
add x21, x8, #1
bl _assert
add x0, x19, x21, lsl #2
add x1, sp, #12
bl _lsmVarintGet32
add w21, w21, w0
add x0, x19, w21, sxtw #2
add x1, sp, #12
bl _lsmVarintGet32
ldr w8, [sp, #12]
cmp w20, #0
csel w8, wzr, w8, eq
add w9, w21, w0
sub w0, w9, w8
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #64
ret
LBB0_4:
mov w0, #1 ; =0x1
b LBB0_3
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.cfi_endproc
; -- End function
.comm _LSM_SYSTEMKEY,4,2 ; @LSM_SYSTEMKEY
.comm _LSM_SEPARATOR,4,2 ; @LSM_SEPARATOR
.no_dead_strip _mergeWorkerPageOffset
.subsections_via_symbols
| assembly_file_29966.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function gfx_v7_0_cp_pg_table_num
_gfx_v7_0_cp_pg_table_num: ## @gfx_v7_0_cp_pg_table_num
.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), %rcx
movq _CHIP_KAVERI@GOTPCREL(%rip), %rdx
xorl %eax, %eax
cmpq (%rdx), %rcx
sete %al
orl $4, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _CHIP_KAVERI,8,3 ## @CHIP_KAVERI
.no_dead_strip _gfx_v7_0_cp_pg_table_num
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function gfx_v7_0_cp_pg_table_num
_gfx_v7_0_cp_pg_table_num: ; @gfx_v7_0_cp_pg_table_num
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _CHIP_KAVERI@GOTPAGE
Lloh1:
ldr x8, [x8, _CHIP_KAVERI@GOTPAGEOFF]
ldr x9, [x0]
Lloh2:
ldr x8, [x8]
cmp x9, x8
mov w8, #4
cinc w0, w8, eq
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _CHIP_KAVERI,8,3 ; @CHIP_KAVERI
.no_dead_strip _gfx_v7_0_cp_pg_table_num
.subsections_via_symbols
| AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_gfx_v7_0.c_gfx_v7_0_cp_pg_table_num.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function rpc_ntop6_noscopeid
_rpc_ntop6_noscopeid: ## @rpc_ntop6_noscopeid
.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
.no_dead_strip _rpc_ntop6_noscopeid
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function rpc_ntop6_noscopeid
_rpc_ntop6_noscopeid: ; @rpc_ntop6_noscopeid
.cfi_startproc
; %bb.0:
mov x0, #0
ret
.cfi_endproc
; -- End function
.no_dead_strip _rpc_ntop6_noscopeid
.subsections_via_symbols
| AnghaBench/linux/net/sunrpc/extr_addr.c_rpc_ntop6_noscopeid.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function del_accepted
_del_accepted: ## @del_accepted
.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
movslq %esi, %rbx
movl $-1, %r14d
cmpq %rbx, (%rdi)
jle LBB0_5
## %bb.1:
movl %esi, %edx
movq %rdi, %r15
movq 16(%rdi), %rax
shlq $4, %rbx
movq (%rax,%rbx), %rcx
movq _TCP_STATUS_NO_STATUS@GOTPCREL(%rip), %rsi
cmpq (%rsi), %rcx
je LBB0_5
## %bb.2:
leaq 24(%r15), %rdi
movl 12(%rax,%rbx), %esi
callq _bs_list_remove
testl %eax, %eax
je LBB0_5
## %bb.3:
movq 16(%r15), %rax
movl 8(%rax,%rbx), %edi
callq _wipe_priority_list
addq 16(%r15), %rbx
movq %rbx, %rdi
movl $4, %esi
callq _sodium_memzero
xorl %r14d, %r14d
decq 8(%r15)
jne LBB0_5
## %bb.4:
xorl %r14d, %r14d
movq %r15, %rdi
xorl %esi, %esi
callq _realloc_connection
LBB0_5:
movl %r14d, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TCP_STATUS_NO_STATUS,8,3 ## @TCP_STATUS_NO_STATUS
.no_dead_strip _del_accepted
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function del_accepted
_del_accepted: ; @del_accepted
.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, x1
sxtw x8, w2
ldr x9, [x0]
cmp x9, x8
b.le LBB0_6
; %bb.1:
mov x19, x0
ldr x9, [x0, #16]
lsl x20, x8, #4
ldr x10, [x9, x20]
Lloh0:
adrp x11, _TCP_STATUS_NO_STATUS@GOTPAGE
Lloh1:
ldr x11, [x11, _TCP_STATUS_NO_STATUS@GOTPAGEOFF]
Lloh2:
ldr x11, [x11]
cmp x10, x11
b.eq LBB0_6
; %bb.2:
add x0, x19, #24
add x8, x9, x8, lsl #4
ldr w1, [x8, #12]
; kill: def $w2 killed $w2 killed $x2
bl _bs_list_remove
cbz w0, LBB0_6
; %bb.3:
ldr x8, [x19, #16]
add x8, x8, x20
ldr w0, [x8, #8]
bl _wipe_priority_list
ldr x8, [x19, #16]
add x0, x8, x20
mov w1, #4
bl _sodium_memzero
ldr x8, [x19, #8]
subs x8, x8, #1
str x8, [x19, #8]
b.ne LBB0_5
; %bb.4:
mov x0, x19
mov w1, #0
bl _realloc_connection
LBB0_5:
mov w0, #0
b LBB0_7
LBB0_6:
mov w0, #-1
LBB0_7:
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 _TCP_STATUS_NO_STATUS,8,3 ; @TCP_STATUS_NO_STATUS
.no_dead_strip _del_accepted
.subsections_via_symbols
| AnghaBench/toxcore/toxcore/extr_TCP_server.c_del_accepted.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ZSTDMT_expandJobsTable
_ZSTDMT_expandJobsTable: ## @ZSTDMT_expandJobsTable
.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 %esi, %eax
addl $2, %eax
movl %eax, -12(%rbp)
movl (%rdi), %esi
incl %esi
cmpl %esi, %eax
jle LBB0_7
## %bb.1:
movq %rdi, %rbx
movq 8(%rdi), %rdi
movl 16(%rbx), %edx
callq _ZSTDMT_freeJobsTable
movl $0, (%rbx)
movl 16(%rbx), %esi
leaq -12(%rbp), %rdi
callq _ZSTDMT_createJobsTable
movq %rax, 8(%rbx)
testq %rax, %rax
je LBB0_2
## %bb.3:
movl -12(%rbp), %eax
testl %eax, %eax
je LBB0_4
## %bb.5:
leal -1(%rax), %ecx
xorl %edi, %edi
testl %ecx, %eax
sete %dil
jmp LBB0_6
LBB0_2:
movq _memory_allocation@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _ERROR
jmp LBB0_8
LBB0_4:
xorl %edi, %edi
LBB0_6:
callq _assert
movl -12(%rbp), %eax
decl %eax
movl %eax, (%rbx)
LBB0_7:
xorl %eax, %eax
LBB0_8:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _memory_allocation,4,2 ## @memory_allocation
.no_dead_strip _ZSTDMT_expandJobsTable
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ZSTDMT_expandJobsTable
_ZSTDMT_expandJobsTable: ; @ZSTDMT_expandJobsTable
.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
add w8, w1, #2
str w8, [sp, #12]
ldr w9, [x0]
add w1, w9, #1
cmp w8, w1
b.le LBB0_3
; %bb.1:
mov x19, x0
ldr x0, [x0, #8]
ldr w2, [x19, #16]
bl _ZSTDMT_freeJobsTable
str wzr, [x19]
ldr w1, [x19, #16]
add x0, sp, #12
bl _ZSTDMT_createJobsTable
str x0, [x19, #8]
cbz x0, LBB0_4
; %bb.2:
ldr w8, [sp, #12]
sub w9, w8, #1
tst w8, w9
cset w9, eq
cmp w8, #0
csel w0, wzr, w9, eq
bl _assert
mov x0, #0
ldr w8, [sp, #12]
sub w8, w8, #1
str w8, [x19]
b LBB0_5
LBB0_3:
mov x0, #0
b LBB0_5
LBB0_4:
Lloh0:
adrp x8, _memory_allocation@GOTPAGE
Lloh1:
ldr x8, [x8, _memory_allocation@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
bl _ERROR
LBB0_5:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #48
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _memory_allocation,4,2 ; @memory_allocation
.no_dead_strip _ZSTDMT_expandJobsTable
.subsections_via_symbols
| AnghaBench/freebsd/sys/contrib/zstd/lib/compress/extr_zstdmt_compress.c_ZSTDMT_expandJobsTable.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _connectCallback ## -- Begin function connectCallback
.p2align 4, 0x90
_connectCallback: ## @connectCallback
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _REDIS_OK@GOTPCREL(%rip), %rax
cmpl %esi, (%rax)
jne LBB0_1
## %bb.2:
leaq L_str(%rip), %rdi
popq %rbp
jmp _puts ## TAILCALL
LBB0_1:
movq (%rdi), %rsi
leaq L_.str(%rip), %rdi
xorl %eax, %eax
popq %rbp
jmp _printf ## TAILCALL
.cfi_endproc
## -- End function
.comm _REDIS_OK,4,2 ## @REDIS_OK
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Error: %s\n"
L_str: ## @str
.asciz "Connected..."
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _connectCallback ; -- Begin function connectCallback
.p2align 2
_connectCallback: ; @connectCallback
.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, _REDIS_OK@GOTPAGE
Lloh1:
ldr x8, [x8, _REDIS_OK@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
cmp w8, w1
b.ne LBB0_2
; %bb.1:
Lloh3:
adrp x0, l_str@PAGE
Lloh4:
add x0, x0, l_str@PAGEOFF
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
b _puts
LBB0_2:
ldr x8, [x0]
str x8, [sp]
Lloh5:
adrp x0, l_.str@PAGE
Lloh6:
add x0, x0, l_.str@PAGEOFF
bl _printf
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpAdd Lloh5, Lloh6
.cfi_endproc
; -- End function
.comm _REDIS_OK,4,2 ; @REDIS_OK
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Error: %s\n"
l_str: ; @str
.asciz "Connected..."
.subsections_via_symbols
| AnghaBench/hiredis/examples/extr_example-libev.c_connectCallback.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function mt312_send_master_cmd
_mt312_send_master_cmd: ## @mt312_send_master_cmd
.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 (%rsi), %eax
addl $-9, %eax
cmpl $-9, %eax
ja LBB0_2
## %bb.1:
movq _EINVAL@GOTPCREL(%rip), %rcx
xorl %eax, %eax
subl (%rcx), %eax
jmp LBB0_8
LBB0_2:
movq %rsi, %rbx
movq (%rdi), %r14
movq _DISEQC_MODE@GOTPCREL(%rip), %r15
movl (%r15), %esi
leaq -28(%rbp), %rdx
movq %r14, %rdi
callq _mt312_readreg
testl %eax, %eax
js LBB0_8
## %bb.3:
movq _DISEQC_INSTR@GOTPCREL(%rip), %rax
movl $128, %esi
orl (%rax), %esi
movq 8(%rbx), %rdx
movl (%rbx), %ecx
movq %r14, %rdi
callq _mt312_write
testl %eax, %eax
js LBB0_8
## %bb.4:
movl (%r15), %esi
movl -28(%rbp), %eax
andl $64, %eax
movl (%rbx), %ecx
leal -8(,%rcx,8), %edx
orl %eax, %edx
orl $4, %edx
movq %r14, %rdi
callq _mt312_writereg
testl %eax, %eax
js LBB0_8
## %bb.5:
movl $100, %edi
callq _msleep
movq 8(%rbx), %rax
testb $2, (%rax)
je LBB0_7
## %bb.6:
movl (%r15), %esi
movl -28(%rbp), %edx
andl $64, %edx
movq %r14, %rdi
callq _mt312_writereg
testl %eax, %eax
js LBB0_8
LBB0_7:
xorl %eax, %eax
LBB0_8:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EINVAL,4,2 ## @EINVAL
.comm _DISEQC_MODE,4,2 ## @DISEQC_MODE
.comm _DISEQC_INSTR,4,2 ## @DISEQC_INSTR
.no_dead_strip _mt312_send_master_cmd
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function mt312_send_master_cmd
_mt312_send_master_cmd: ; @mt312_send_master_cmd
.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
ldr w8, [x1]
sub w8, w8, #9
cmn w8, #9
b.hi LBB0_2
; %bb.1:
Lloh0:
adrp x8, _EINVAL@GOTPAGE
Lloh1:
ldr x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
neg w0, w8
b LBB0_8
LBB0_2:
mov x20, x1
ldr x19, [x0]
Lloh3:
adrp x21, _DISEQC_MODE@GOTPAGE
Lloh4:
ldr x21, [x21, _DISEQC_MODE@GOTPAGEOFF]
ldr w1, [x21]
add x2, sp, #12
mov x0, x19
bl _mt312_readreg
tbnz w0, #31, LBB0_8
; %bb.3:
Lloh5:
adrp x8, _DISEQC_INSTR@GOTPAGE
Lloh6:
ldr x8, [x8, _DISEQC_INSTR@GOTPAGEOFF]
Lloh7:
ldr w8, [x8]
orr w1, w8, #0x80
ldr x2, [x20, #8]
ldr w3, [x20]
mov x0, x19
bl _mt312_write
tbnz w0, #31, LBB0_8
; %bb.4:
ldr w1, [x21]
ldr w8, [sp, #12]
and w8, w8, #0x40
ldr w9, [x20]
lsl w9, w9, #3
sub w9, w9, #8
orr w8, w8, w9
orr w2, w8, #0x4
mov x0, x19
bl _mt312_writereg
tbnz w0, #31, LBB0_8
; %bb.5:
mov w0, #100
bl _msleep
ldr x8, [x20, #8]
ldrb w8, [x8]
tbz w8, #1, LBB0_7
; %bb.6:
ldr w1, [x21]
ldr w8, [sp, #12]
and w2, w8, #0x40
mov x0, x19
bl _mt312_writereg
tbnz w0, #31, LBB0_8
LBB0_7:
mov w0, #0
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 AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _EINVAL,4,2 ; @EINVAL
.comm _DISEQC_MODE,4,2 ; @DISEQC_MODE
.comm _DISEQC_INSTR,4,2 ; @DISEQC_INSTR
.no_dead_strip _mt312_send_master_cmd
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/drivers/media/dvb/frontends/extr_mt312.c_mt312_send_master_cmd.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function fastsockfs_get_sb
_fastsockfs_get_sb: ## @fastsockfs_get_sb
.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), %rsi
movq _fastsockfs_ops@GOTPCREL(%rip), %rdx
movl $1397703500, %ecx ## imm = 0x534F434C
popq %rbp
jmp _get_sb_pseudo ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "fastsocket:"
.comm _fastsockfs_ops,4,2 ## @fastsockfs_ops
.no_dead_strip _fastsockfs_get_sb
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function fastsockfs_get_sb
_fastsockfs_get_sb: ; @fastsockfs_get_sb
.cfi_startproc
; %bb.0:
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
Lloh2:
adrp x2, _fastsockfs_ops@GOTPAGE
Lloh3:
ldr x2, [x2, _fastsockfs_ops@GOTPAGEOFF]
mov w3, #17228
movk w3, #21327, lsl #16
b _get_sb_pseudo
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "fastsocket:"
.comm _fastsockfs_ops,4,2 ; @fastsockfs_ops
.no_dead_strip _fastsockfs_get_sb
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/net/fastsocket/extr_fastsocket_api.c_fastsockfs_get_sb.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function rose_release
_rose_release: ## @rose_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 %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq (%rdi), %rbx
testq %rbx, %rbx
je LBB0_7
## %bb.1:
movq %rdi, %r14
movq %rbx, %rdi
callq _sock_hold
movq %rbx, %rdi
callq _sock_orphan
movq %rbx, %rdi
callq _lock_sock
movq %rbx, %rdi
callq _rose_sk
movq %rax, %r15
movl (%rax), %eax
addl $-128, %eax
cmpl $5, %eax
ja LBB0_6
## %bb.2:
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_5:
movq %rbx, %rdi
callq _rose_clear_queues
movq %rbx, %rdi
callq _rose_stop_idletimer
movq _ROSE_CLEAR_REQUEST@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq _rose_write_internal
movq %rbx, %rdi
callq _rose_start_t3timer
movl $131, (%r15)
movq _TCP_CLOSE@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, 12(%rbx)
movq _SEND_SHUTDOWN@GOTPCREL(%rip), %rax
movl (%rax), %eax
orl %eax, 8(%rbx)
movq %rbx, %rdi
callq *(%rbx)
movq _SOCK_DEAD@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq _sock_set_flag
movq _SOCK_DESTROY@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq _sock_set_flag
jmp LBB0_6
LBB0_3:
movq 8(%r15), %rax
decl (%rax)
LBB0_4:
movq %rbx, %rdi
callq _release_sock
movq %rbx, %rdi
xorl %esi, %esi
movl $-1, %edx
movl $-1, %ecx
callq _rose_disconnect
movq %rbx, %rdi
callq _lock_sock
movq %rbx, %rdi
callq _rose_destroy_socket
LBB0_6:
movq $0, (%r14)
movq %rbx, %rdi
callq _release_sock
movq %rbx, %rdi
callq _sock_put
LBB0_7:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_5
.long L0_0_set_3
.long L0_0_set_5
.long L0_0_set_4
.end_data_region
## -- End function
.comm _ROSE_CLEAR_REQUEST,4,2 ## @ROSE_CLEAR_REQUEST
.comm _TCP_CLOSE,4,2 ## @TCP_CLOSE
.comm _SEND_SHUTDOWN,4,2 ## @SEND_SHUTDOWN
.comm _SOCK_DEAD,4,2 ## @SOCK_DEAD
.comm _SOCK_DESTROY,4,2 ## @SOCK_DESTROY
.no_dead_strip _rose_release
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function rose_release
_rose_release: ; @rose_release
.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
ldr x19, [x0]
cbz x19, LBB0_7
; %bb.1:
mov x20, x0
mov x0, x19
bl _sock_hold
mov x0, x19
bl _sock_orphan
mov x0, x19
bl _lock_sock
mov x0, x19
bl _rose_sk
ldr w8, [x0]
sub w8, w8, #128
cmp w8, #5
b.hi LBB0_6
; %bb.2:
mov x21, x0
Lloh0:
adrp x9, lJTI0_0@PAGE
Lloh1:
add x9, x9, lJTI0_0@PAGEOFF
adr x10, LBB0_3
ldrb w11, [x9, x8]
add x10, x10, x11, lsl #2
br x10
LBB0_3:
mov x0, x19
bl _rose_clear_queues
mov x0, x19
bl _rose_stop_idletimer
Lloh2:
adrp x8, _ROSE_CLEAR_REQUEST@GOTPAGE
Lloh3:
ldr x8, [x8, _ROSE_CLEAR_REQUEST@GOTPAGEOFF]
Lloh4:
ldr w1, [x8]
mov x0, x19
bl _rose_write_internal
mov x0, x19
bl _rose_start_t3timer
mov w8, #131
str w8, [x21]
Lloh5:
adrp x8, _TCP_CLOSE@GOTPAGE
Lloh6:
ldr x8, [x8, _TCP_CLOSE@GOTPAGEOFF]
Lloh7:
ldr w8, [x8]
Lloh8:
adrp x9, _SEND_SHUTDOWN@GOTPAGE
Lloh9:
ldr x9, [x9, _SEND_SHUTDOWN@GOTPAGEOFF]
Lloh10:
ldr w9, [x9]
ldr w10, [x19, #8]
orr w9, w10, w9
stp w9, w8, [x19, #8]
ldr x8, [x19]
mov x0, x19
blr x8
Lloh11:
adrp x8, _SOCK_DEAD@GOTPAGE
Lloh12:
ldr x8, [x8, _SOCK_DEAD@GOTPAGEOFF]
Lloh13:
ldr w1, [x8]
mov x0, x19
bl _sock_set_flag
Lloh14:
adrp x8, _SOCK_DESTROY@GOTPAGE
Lloh15:
ldr x8, [x8, _SOCK_DESTROY@GOTPAGEOFF]
Lloh16:
ldr w1, [x8]
mov x0, x19
bl _sock_set_flag
b LBB0_6
LBB0_4:
ldr x8, [x21, #8]
ldr w9, [x8]
sub w9, w9, #1
str w9, [x8]
LBB0_5:
mov x0, x19
bl _release_sock
mov x0, x19
mov w1, #0
mov w2, #-1
mov w3, #-1
bl _rose_disconnect
mov x0, x19
bl _lock_sock
mov x0, x19
bl _rose_destroy_socket
LBB0_6:
str xzr, [x20]
mov x0, x19
bl _release_sock
mov x0, x19
bl _sock_put
LBB0_7:
mov w0, #0
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 AdrpLdrGotLdr Lloh14, Lloh15, Lloh16
.loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.cfi_endproc
.section __TEXT,__const
lJTI0_0:
.byte (LBB0_3-LBB0_3)>>2
.byte (LBB0_3-LBB0_3)>>2
.byte (LBB0_3-LBB0_3)>>2
.byte (LBB0_4-LBB0_3)>>2
.byte (LBB0_3-LBB0_3)>>2
.byte (LBB0_5-LBB0_3)>>2
; -- End function
.comm _ROSE_CLEAR_REQUEST,4,2 ; @ROSE_CLEAR_REQUEST
.comm _TCP_CLOSE,4,2 ; @TCP_CLOSE
.comm _SEND_SHUTDOWN,4,2 ; @SEND_SHUTDOWN
.comm _SOCK_DEAD,4,2 ; @SOCK_DEAD
.comm _SOCK_DESTROY,4,2 ; @SOCK_DESTROY
.no_dead_strip _rose_release
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/net/rose/extr_af_rose.c_rose_release.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ssl_get_cipher_by_char ## -- Begin function ssl_get_cipher_by_char
.p2align 4, 0x90
_ssl_get_cipher_by_char: ## @ssl_get_cipher_by_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 %rbx
pushq %rax
.cfi_offset %rbx, -24
movl %edx, %ebx
movq (%rdi), %rax
movq %rsi, %rdi
callq *(%rax)
testq %rax, %rax
je LBB0_3
## %bb.1:
testl %ebx, %ebx
jne LBB0_4
## %bb.2:
cmpq $0, (%rax)
jne LBB0_4
LBB0_3:
xorl %eax, %eax
LBB0_4:
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 _ssl_get_cipher_by_char ; -- Begin function ssl_get_cipher_by_char
.p2align 2
_ssl_get_cipher_by_char: ; @ssl_get_cipher_by_char
.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
ldr x8, [x0]
ldr x8, [x8]
mov x0, x1
blr x8
cbz x0, LBB0_4
; %bb.1:
cbnz w19, LBB0_4
; %bb.2:
ldr x8, [x0]
cbnz x8, LBB0_4
; %bb.3:
mov x0, #0
LBB0_4:
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/freebsd/crypto/openssl/ssl/extr_ssl_ciph.c_ssl_get_cipher_by_char.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function __die_find_inline_cb
___die_find_inline_cb: ## @__die_find_inline_cb
.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
callq _dwarf_tag
movq _DW_TAG_inlined_subroutine@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_3
## %bb.1:
movl (%r14), %esi
movq %rbx, %rdi
callq _dwarf_haspc
testq %rax, %rax
je LBB0_3
## %bb.2:
movq _DIE_FIND_CB_END@GOTPCREL(%rip), %rax
jmp LBB0_4
LBB0_3:
movq _DIE_FIND_CB_CONTINUE@GOTPCREL(%rip), %rax
LBB0_4:
movl (%rax), %eax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _DW_TAG_inlined_subroutine,8,3 ## @DW_TAG_inlined_subroutine
.comm _DIE_FIND_CB_END,4,2 ## @DIE_FIND_CB_END
.comm _DIE_FIND_CB_CONTINUE,4,2 ## @DIE_FIND_CB_CONTINUE
.no_dead_strip ___die_find_inline_cb
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function __die_find_inline_cb
___die_find_inline_cb: ; @__die_find_inline_cb
.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
mov x19, x0
bl _dwarf_tag
Lloh0:
adrp x8, _DW_TAG_inlined_subroutine@GOTPAGE
Lloh1:
ldr x8, [x8, _DW_TAG_inlined_subroutine@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
cmp x0, x8
b.ne LBB0_3
; %bb.1:
ldr w1, [x20]
mov x0, x19
bl _dwarf_haspc
cbz x0, LBB0_3
; %bb.2:
Lloh3:
adrp x8, _DIE_FIND_CB_END@GOTPAGE
Lloh4:
ldr x8, [x8, _DIE_FIND_CB_END@GOTPAGEOFF]
b LBB0_4
LBB0_3:
Lloh5:
adrp x8, _DIE_FIND_CB_CONTINUE@GOTPAGE
Lloh6:
ldr x8, [x8, _DIE_FIND_CB_CONTINUE@GOTPAGEOFF]
LBB0_4:
ldr w0, [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
.cfi_endproc
; -- End function
.comm _DW_TAG_inlined_subroutine,8,3 ; @DW_TAG_inlined_subroutine
.comm _DIE_FIND_CB_END,4,2 ; @DIE_FIND_CB_END
.comm _DIE_FIND_CB_CONTINUE,4,2 ; @DIE_FIND_CB_CONTINUE
.no_dead_strip ___die_find_inline_cb
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/tools/perf/util/extr_dwarf-aux.c___die_find_inline_cb.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function SurfaceAsTristrip
_SurfaceAsTristrip: ## @SurfaceAsTristrip
.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, %r14
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movq _MAX_INDICES@GOTPCREL(%rip), %rax
movl (%rax), %ebx
movq %rbx, %rax
shlq $2, %rax
callq ____chkstk_darwin
movq %r14, %r8
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, -80(%rbp) ## 8-byte Spill
movl (%r14), %esi
leal (%rsi,%rsi,2), %eax
addl $-6, %eax
movl %eax, -56(%rbp) ## 4-byte Spill
cmpl %ebx, %eax
movq %r14, -88(%rbp) ## 8-byte Spill
jle LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
callq _Error
movq -88(%rbp), %r8 ## 8-byte Reload
movl (%r8), %esi
LBB0_2:
testl %esi, %esi
js LBB0_3
## %bb.8:
movq $0, -72(%rbp) ## 8-byte Folded Spill
.p2align 4, 0x90
LBB0_10: ## =>This Loop Header: Depth=1
## Child Loop BB0_12 Depth 2
leal -2(%rsi), %ecx
movl $0, -52(%rbp) ## 4-byte Folded Spill
testl %ecx, %ecx
jle LBB0_19
## %bb.11: ## in Loop: Header=BB0_10 Depth=1
movq -72(%rbp), %rax ## 8-byte Reload
addl $-2, %eax
movl %eax, -100(%rbp) ## 4-byte Spill
xorl %r15d, %r15d
xorl %r13d, %r13d
movl $0, -52(%rbp) ## 4-byte Folded Spill
jmp LBB0_12
.p2align 4, 0x90
LBB0_13: ## in Loop: Header=BB0_12 Depth=2
leal 1(%r13), %r12d
LBB0_18: ## in Loop: Header=BB0_12 Depth=2
movl %esi, %ecx
subl %r13d, %ecx
addl $-3, %ecx
movl %r12d, %r13d
cmpl %ecx, %r12d
jge LBB0_19
LBB0_12: ## Parent Loop BB0_10 Depth=1
## => This Inner Loop Header: Depth=2
movl %r15d, -60(%rbp) ## 4-byte Spill
movl %r13d, %r15d
notl %r15d
movl %r15d, %eax
movq -72(%rbp), %rdi ## 8-byte Reload
subl %edi, %eax
addl %esi, %eax
cltd
idivl %esi
movl %edx, %r9d
leal (%rdi,%r13), %r12d
movl %r12d, %eax
cltd
idivl %esi
movl %edx, %r14d
addl %edi, %ecx
movl %ecx, %eax
cltd
idivl %esi
movl %edx, %ebx
movq 16(%r8), %rdi
movq _drawVerts@GOTPCREL(%rip), %rax
addq (%rax), %rdi
movl %r9d, -96(%rbp) ## 4-byte Spill
movl %r9d, %esi
movl %r14d, %edx
movl %ebx, %ecx
callq _IsTriangleDegenerate
movq -88(%rbp), %r8 ## 8-byte Reload
movl (%r8), %esi
testq %rax, %rax
jne LBB0_13
## %bb.14: ## in Loop: Header=BB0_12 Depth=2
movl %r12d, %r9d
movl -60(%rbp), %edx ## 4-byte Reload
movslq -52(%rbp), %rdi ## 4-byte Folded Reload
movq -80(%rbp), %rax ## 8-byte Reload
movl -96(%rbp), %ecx ## 4-byte Reload
movl %ecx, (%rax,%rdi,4)
movl %r14d, 4(%rax,%rdi,4)
leal 3(%rdi), %ecx
movl %ecx, -52(%rbp) ## 4-byte Spill
movl %ebx, 8(%rax,%rdi,4)
leal 1(%r13), %r12d
leal (%rsi,%r15), %eax
cmpl %eax, %r12d
je LBB0_18
## %bb.15: ## in Loop: Header=BB0_12 Depth=2
movq %r15, -112(%rbp) ## 8-byte Spill
movq %rdi, -96(%rbp) ## 8-byte Spill
movl %edx, %eax
addl -100(%rbp), %eax ## 4-byte Folded Reload
addl %esi, %eax
cltd
idivl %esi
movl %edx, %r10d
movl %r9d, %eax
cltd
idivl %esi
movl %edx, %r9d
movq -72(%rbp), %rax ## 8-byte Reload
addl %r12d, %eax
cltd
idivl %esi
movl %edx, %ecx
movq 16(%r8), %rdi
movq _drawVerts@GOTPCREL(%rip), %rax
addq (%rax), %rdi
movl %r10d, %ebx
movl %r10d, %esi
movl %r9d, %r15d
movl %r9d, %edx
movl %ecx, -60(%rbp) ## 4-byte Spill
movq %r8, %r14
callq _IsTriangleDegenerate
testq %rax, %rax
jne LBB0_16
## %bb.17: ## in Loop: Header=BB0_12 Depth=2
movslq -52(%rbp), %rax ## 4-byte Folded Reload
movq -80(%rbp), %rcx ## 8-byte Reload
movl %ebx, (%rcx,%rax,4)
movq -96(%rbp), %rdx ## 8-byte Reload
movl %r15d, 16(%rcx,%rdx,4)
leal 6(%rdx), %eax
movl %eax, -52(%rbp) ## 4-byte Spill
movl -60(%rbp), %eax ## 4-byte Reload
movl %eax, 20(%rcx,%rdx,4)
movl (%r14), %esi
movq %r14, %r8
movq -112(%rbp), %r15 ## 8-byte Reload
jmp LBB0_18
LBB0_16: ## in Loop: Header=BB0_10 Depth=1
movq %r14, %r8
.p2align 4, 0x90
LBB0_19: ## in Loop: Header=BB0_10 Depth=1
movl -52(%rbp), %edx ## 4-byte Reload
cmpl -56(%rbp), %edx ## 4-byte Folded Reload
je LBB0_20
## %bb.9: ## in Loop: Header=BB0_10 Depth=1
movq -72(%rbp), %rcx ## 8-byte Reload
leal 1(%rcx), %eax
movl (%r8), %esi
cmpl %esi, %ecx
## kill: def $eax killed $eax def $rax
movq %rax, -72(%rbp) ## 8-byte Spill
jl LBB0_10
## %bb.21:
cmpl -56(%rbp), %edx ## 4-byte Folded Reload
jge LBB0_4
## %bb.22:
movq _c_fanSurfaces@GOTPCREL(%rip), %rax
incl (%rax)
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB0_24
## %bb.23:
movq %r8, %rdi
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _SurfaceAsTriFan ## TAILCALL
LBB0_3:
## implicit-def: $edx
jmp LBB0_4
LBB0_20:
movl -56(%rbp), %edx ## 4-byte Reload
LBB0_4:
movq _c_stripSurfaces@GOTPCREL(%rip), %rax
incl (%rax)
movq _numDrawIndexes@GOTPCREL(%rip), %rbx
movq (%rbx), %rdi
movslq %edx, %r14
leaq (%rdi,%r14), %rax
movq _MAX_MAP_DRAW_INDEXES@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jle LBB0_6
## %bb.5:
leaq L_.str.1(%rip), %rdi
callq _Error
movq -88(%rbp), %r8 ## 8-byte Reload
movq (%rbx), %rdi
LBB0_6:
movq %rdi, 8(%r8)
movl %r14d, 4(%r8)
movq _drawIndexes@GOTPCREL(%rip), %rax
addq (%rax), %rdi
leal (,%r14,4), %edx
movq -80(%rbp), %rsi ## 8-byte Reload
callq _memcpy
addq %r14, (%rbx)
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB0_24
## %bb.7:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_24:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _MAX_INDICES,4,2 ## @MAX_INDICES
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "MAX_INDICES exceeded for surface"
.comm _drawVerts,8,3 ## @drawVerts
.comm _c_fanSurfaces,4,2 ## @c_fanSurfaces
.comm _c_stripSurfaces,4,2 ## @c_stripSurfaces
.comm _numDrawIndexes,8,3 ## @numDrawIndexes
.comm _MAX_MAP_DRAW_INDEXES,8,3 ## @MAX_MAP_DRAW_INDEXES
L_.str.1: ## @.str.1
.asciz "MAX_MAP_DRAW_INDEXES"
.comm _drawIndexes,8,3 ## @drawIndexes
.no_dead_strip _SurfaceAsTristrip
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function SurfaceAsTristrip
_SurfaceAsTristrip: ; @SurfaceAsTristrip
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
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
sub sp, 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
.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]
stur x8, [x29, #-88]
Lloh3:
adrp x8, _MAX_INDICES@GOTPAGE
Lloh4:
ldr x8, [x8, _MAX_INDICES@GOTPAGEOFF]
Lloh5:
ldr w12, [x8]
lsl x8, x12, #2
mov x9, x8
Lloh6:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh7:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x9, sp
add x8, x8, #15
and x8, x8, #0x7fffffff0
sub x8, x9, x8
stur x8, [x29, #-120] ; 8-byte Folded Spill
mov sp, x8
stur x0, [x29, #-104] ; 8-byte Folded Spill
ldr w8, [x0]
add w9, w8, w8, lsl #1
sub w9, w9, #6
stur w9, [x29, #-128] ; 4-byte Folded Spill
cmp w9, w12
b.le LBB0_2
; %bb.1:
Lloh8:
adrp x0, l_.str@PAGE
Lloh9:
add x0, x0, l_.str@PAGEOFF
bl _Error
ldur x8, [x29, #-104] ; 8-byte Folded Reload
ldr w8, [x8]
LBB0_2:
tbnz w8, #31, LBB0_19
; %bb.3:
stur wzr, [x29, #-108] ; 4-byte Folded Spill
LBB0_4: ; =>This Loop Header: Depth=1
; Child Loop BB0_8 Depth 2
sub w9, w8, #2
cmp w9, #1
b.lt LBB0_13
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
mov w27, #0 ; =0x0
mov w24, #0 ; =0x0
mov w11, #0 ; =0x0
ldur w10, [x29, #-108] ; 4-byte Folded Reload
sub w10, w10, #2
stur w10, [x29, #-124] ; 4-byte Folded Spill
b LBB0_8
LBB0_6: ; in Loop: Header=BB0_8 Depth=2
add w26, w24, #1
ldur x11, [x29, #-96] ; 8-byte Folded Reload
LBB0_7: ; in Loop: Header=BB0_8 Depth=2
sub w9, w8, w24
sub w9, w9, #3
mov x27, x19
mov x24, x26
mov x28, x11
cmp w26, w9
b.ge LBB0_14
LBB0_8: ; Parent Loop BB0_4 Depth=1
; => This Inner Loop Header: Depth=2
stur x11, [x29, #-96] ; 8-byte Folded Spill
mvn w19, w24
ldur w12, [x29, #-108] ; 4-byte Folded Reload
sub w10, w19, w12
add w10, w10, w8
sdiv w11, w10, w8
msub w21, w11, w8, w10
add w25, w24, w12
sdiv w10, w25, w8
msub w22, w10, w8, w25
add w9, w9, w12
sdiv w10, w9, w8
msub w23, w10, w8, w9
Lloh10:
adrp x8, _drawVerts@GOTPAGE
Lloh11:
ldr x8, [x8, _drawVerts@GOTPAGEOFF]
Lloh12:
ldr x8, [x8]
ldur x20, [x29, #-104] ; 8-byte Folded Reload
ldr x9, [x20, #16]
add x0, x9, x8
mov x1, x21
mov x2, x22
mov x3, x23
bl _IsTriangleDegenerate
ldr w8, [x20]
cbnz x0, LBB0_6
; %bb.9: ; in Loop: Header=BB0_8 Depth=2
ldur x11, [x29, #-96] ; 8-byte Folded Reload
sxtw x9, w11
ldur x10, [x29, #-120] ; 8-byte Folded Reload
add x20, x10, w11, sxtw #2
stp w21, w22, [x20]
add x28, x9, #3
str w23, [x20, #8]
add w26, w24, #1
add w9, w8, w19
cmp w26, w9
b.ne LBB0_11
; %bb.10: ; in Loop: Header=BB0_8 Depth=2
mov x11, x28
b LBB0_7
LBB0_11: ; in Loop: Header=BB0_8 Depth=2
ldur w9, [x29, #-124] ; 4-byte Folded Reload
add w9, w9, w27
add w9, w9, w8
sdiv w10, w9, w8
msub w22, w10, w8, w9
sdiv w9, w25, w8
msub w21, w9, w8, w25
ldur w9, [x29, #-108] ; 4-byte Folded Reload
add w9, w26, w9
sdiv w10, w9, w8
msub w23, w10, w8, w9
Lloh13:
adrp x8, _drawVerts@GOTPAGE
Lloh14:
ldr x8, [x8, _drawVerts@GOTPAGEOFF]
Lloh15:
ldr x8, [x8]
ldur x9, [x29, #-104] ; 8-byte Folded Reload
ldr x9, [x9, #16]
add x0, x9, x8
mov x1, x22
mov x2, x21
mov x3, x23
bl _IsTriangleDegenerate
ldur x11, [x29, #-96] ; 8-byte Folded Reload
cbnz x0, LBB0_14
; %bb.12: ; in Loop: Header=BB0_8 Depth=2
ldur x8, [x29, #-120] ; 8-byte Folded Reload
str w22, [x8, x28, lsl #2]
add w11, w11, #6
stp w21, w23, [x20, #16]
ldur x8, [x29, #-104] ; 8-byte Folded Reload
ldr w8, [x8]
b LBB0_7
LBB0_13: ; in Loop: Header=BB0_4 Depth=1
mov w28, #0 ; =0x0
LBB0_14: ; in Loop: Header=BB0_4 Depth=1
ldur w8, [x29, #-128] ; 4-byte Folded Reload
cmp w28, w8
b.eq LBB0_20
; %bb.15: ; in Loop: Header=BB0_4 Depth=1
ldur w10, [x29, #-108] ; 4-byte Folded Reload
add w9, w10, #1
ldur x8, [x29, #-104] ; 8-byte Folded Reload
ldr w8, [x8]
cmp w10, w8
stur w9, [x29, #-108] ; 4-byte Folded Spill
b.lt LBB0_4
; %bb.16:
ldur w8, [x29, #-128] ; 4-byte Folded Reload
cmp w28, w8
b.ge LBB0_21
; %bb.17:
Lloh16:
adrp x8, _c_fanSurfaces@GOTPAGE
Lloh17:
ldr x8, [x8, _c_fanSurfaces@GOTPAGEOFF]
ldr w9, [x8]
add w9, w9, #1
str w9, [x8]
ldur x8, [x29, #-88]
Lloh18:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh19:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_25
; %bb.18:
ldur x0, [x29, #-104] ; 8-byte Folded Reload
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
b _SurfaceAsTriFan
LBB0_19:
; implicit-def: $w28
b LBB0_21
LBB0_20:
ldur w28, [x29, #-128] ; 4-byte Folded Reload
LBB0_21:
Lloh21:
adrp x8, _c_stripSurfaces@GOTPAGE
Lloh22:
ldr x8, [x8, _c_stripSurfaces@GOTPAGEOFF]
ldr w9, [x8]
add w9, w9, #1
str w9, [x8]
Lloh23:
adrp x19, _numDrawIndexes@GOTPAGE
Lloh24:
ldr x19, [x19, _numDrawIndexes@GOTPAGEOFF]
ldr x8, [x19]
mov x9, x28
sxtw x20, w9
Lloh25:
adrp x9, _MAX_MAP_DRAW_INDEXES@GOTPAGE
Lloh26:
ldr x9, [x9, _MAX_MAP_DRAW_INDEXES@GOTPAGEOFF]
Lloh27:
ldr x9, [x9]
add x10, x8, x20
cmp x10, x9
b.le LBB0_23
; %bb.22:
Lloh28:
adrp x0, l_.str.1@PAGE
Lloh29:
add x0, x0, l_.str.1@PAGEOFF
bl _Error
ldr x8, [x19]
LBB0_23:
ldur x9, [x29, #-104] ; 8-byte Folded Reload
str x8, [x9, #8]
str w28, [x9, #4]
Lloh30:
adrp x9, _drawIndexes@GOTPAGE
Lloh31:
ldr x9, [x9, _drawIndexes@GOTPAGEOFF]
Lloh32:
ldr x9, [x9]
lsl w2, w28, #2
add x0, x9, x8
ldur x1, [x29, #-120] ; 8-byte Folded Reload
bl _memcpy
ldr x8, [x19]
add x8, x8, x20
str x8, [x19]
ldur x8, [x29, #-88]
Lloh33:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh34:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_25
; %bb.24:
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_25:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20
.loh AdrpLdrGot Lloh16, Lloh17
.loh AdrpLdrGotLdr Lloh25, Lloh26, Lloh27
.loh AdrpLdrGot Lloh23, Lloh24
.loh AdrpLdrGot Lloh21, Lloh22
.loh AdrpAdd Lloh28, Lloh29
.loh AdrpLdrGotLdr Lloh33, Lloh34, Lloh35
.loh AdrpLdrGotLdr Lloh30, Lloh31, Lloh32
.loh AdrpLdrGot Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _MAX_INDICES,4,2 ; @MAX_INDICES
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "MAX_INDICES exceeded for surface"
.comm _drawVerts,8,3 ; @drawVerts
.comm _c_fanSurfaces,4,2 ; @c_fanSurfaces
.comm _c_stripSurfaces,4,2 ; @c_stripSurfaces
.comm _numDrawIndexes,8,3 ; @numDrawIndexes
.comm _MAX_MAP_DRAW_INDEXES,8,3 ; @MAX_MAP_DRAW_INDEXES
l_.str.1: ; @.str.1
.asciz "MAX_MAP_DRAW_INDEXES"
.comm _drawIndexes,8,3 ; @drawIndexes
.no_dead_strip _SurfaceAsTristrip
.subsections_via_symbols
| assembly_file_119739.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function snd_intel8x0_setup_periods
_snd_intel8x0_setup_periods: ## @snd_intel8x0_setup_periods
.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 %rsi, %r15
movq %rdi, %rbx
movq 80(%rsi), %r13
movq (%rsi), %r14
movq _ICH_REG_OFF_BDBAR@GOTPCREL(%rip), %rax
movq (%rax), %rsi
addq %r14, %rsi
movl 72(%r15), %edx
callq _iputdword
movl 8(%r15), %eax
movl 12(%r15), %esi
cmpl %esi, %eax
jne LBB0_5
## %bb.1:
movabsq $8589934594, %rcx ## imm = 0x200000002
movq %rcx, 16(%r15)
sarl %eax
movl %eax, 24(%r15)
movq _ICH_REG_LVI_MASK@GOTPCREL(%rip), %r12
movl (%r12), %ecx
leal 2(,%rcx,2), %edx
movl $2, %eax
testl %edx, %edx
jle LBB0_10
## %bb.2:
movq %r14, -48(%rbp) ## 8-byte Spill
movq %rbx, -56(%rbp) ## 8-byte Spill
xorl %ebx, %ebx
movl $-2147483648, %r14d ## imm = 0x80000000
.p2align 4, 0x90
LBB0_3: ## =>This Inner Loop Header: Depth=1
movl 28(%r15), %edi
callq _cpu_to_le32
movl %eax, (%r13,%rbx,4)
movl 24(%r15), %edi
andl %r14d, %edi
callq _cpu_to_le32
movl %eax, 4(%r13,%rbx,4)
movl 8(%r15), %edi
sarl %edi
addl 28(%r15), %edi
callq _cpu_to_le32
movl %eax, 8(%r13,%rbx,4)
movl 24(%r15), %edi
movzbl 32(%r15), %ecx
sarl %cl, %edi
orl $-2147483648, %edi ## imm = 0x80000000
callq _cpu_to_le32
movl %eax, 12(%r13,%rbx,4)
addq $4, %rbx
movl (%r12), %ecx
leal 2(,%rcx,2), %eax
cmpl %ebx, %eax
jg LBB0_3
## %bb.4:
movq -56(%rbp), %rbx ## 8-byte Reload
movq -48(%rbp), %r14 ## 8-byte Reload
movl $2, %eax
jmp LBB0_10
LBB0_5:
movabsq $4294967297, %rcx ## imm = 0x100000001
movq %rcx, 16(%r15)
movl %esi, 24(%r15)
movq _ICH_REG_LVI_MASK@GOTPCREL(%rip), %r12
movl (%r12), %ecx
leal 2(,%rcx,2), %edx
testl %edx, %edx
jle LBB0_9
## %bb.6:
movq %r14, -48(%rbp) ## 8-byte Spill
movq %rbx, -56(%rbp) ## 8-byte Spill
xorl %ebx, %ebx
xorl %r14d, %r14d
.p2align 4, 0x90
LBB0_7: ## =>This Inner Loop Header: Depth=1
movl 12(%r15), %eax
imull %ebx, %eax
cltd
idivl 8(%r15)
movl %edx, %edi
addl 28(%r15), %edi
callq _cpu_to_le32
movl %eax, (%r13,%r14,4)
movl 12(%r15), %edi
movzbl 32(%r15), %ecx
sarl %cl, %edi
orl $-2147483648, %edi ## imm = 0x80000000
callq _cpu_to_le32
movl %eax, 4(%r13,%r14,4)
addq $2, %r14
movl (%r12), %ecx
leal 2(,%rcx,2), %eax
cltq
incl %ebx
cmpq %rax, %r14
jl LBB0_7
## %bb.8:
movl 8(%r15), %eax
movl 12(%r15), %esi
movq -56(%rbp), %rbx ## 8-byte Reload
movq -48(%rbp), %r14 ## 8-byte Reload
LBB0_9:
cltd
idivl %esi
LBB0_10:
movl %eax, 36(%r15)
movq _ICH_REG_OFF_LVI@GOTPCREL(%rip), %rax
movq (%rax), %rsi
addq %r14, %rsi
movl %ecx, 40(%r15)
movq %rbx, %rdi
movl %ecx, %edx
callq _iputbyte
movq $0, 64(%r15)
movq _ICH_REG_OFF_CIV@GOTPCREL(%rip), %rax
movq (%rax), %rsi
addq %r14, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq _iputbyte
movq _ICH_REG_LVI_MASK@GOTPCREL(%rip), %rax
movl (%rax), %eax
cltd
idivl 36(%r15)
movl %edx, 44(%r15)
movq $0, 56(%r15)
addq 48(%r15), %r14
movq _ICH_FIFOE@GOTPCREL(%rip), %rax
movq _ICH_BCIS@GOTPCREL(%rip), %rcx
movl (%rcx), %edx
orl (%rax), %edx
movq _ICH_LVBCI@GOTPCREL(%rip), %rax
orl (%rax), %edx
movq %rbx, %rdi
movq %r14, %rsi
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _iputbyte ## TAILCALL
.cfi_endproc
## -- End function
.comm _ICH_REG_OFF_BDBAR,8,3 ## @ICH_REG_OFF_BDBAR
.comm _ICH_REG_LVI_MASK,4,2 ## @ICH_REG_LVI_MASK
.comm _ICH_REG_OFF_LVI,8,3 ## @ICH_REG_OFF_LVI
.comm _ICH_REG_OFF_CIV,8,3 ## @ICH_REG_OFF_CIV
.comm _ICH_FIFOE,4,2 ## @ICH_FIFOE
.comm _ICH_BCIS,4,2 ## @ICH_BCIS
.comm _ICH_LVBCI,4,2 ## @ICH_LVBCI
.no_dead_strip _snd_intel8x0_setup_periods
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function snd_intel8x0_setup_periods
_snd_intel8x0_setup_periods: ; @snd_intel8x0_setup_periods
.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
mov x20, x1
mov x19, x0
ldr x25, [x1, #80]
ldr x21, [x1]
Lloh0:
adrp x8, _ICH_REG_OFF_BDBAR@GOTPAGE
Lloh1:
ldr x8, [x8, _ICH_REG_OFF_BDBAR@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
ldr w2, [x1, #72]
add x1, x8, x21
bl _iputdword
ldp w8, w9, [x20, #8]
Lloh3:
adrp x22, _ICH_REG_LVI_MASK@GOTPAGE
Lloh4:
ldr x22, [x22, _ICH_REG_LVI_MASK@GOTPAGEOFF]
cmp w8, w9
b.ne LBB0_5
; %bb.1:
movi.2s v0, #2
str d0, [x20, #16]
asr w8, w8, #1
str w8, [x20, #24]
ldr w2, [x22]
lsl w8, w2, #1
add w8, w8, #2
cmp w8, #1
b.lt LBB0_4
; %bb.2:
mov w23, #0 ; =0x0
add x24, x25, #8
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w0, [x20, #28]
bl _cpu_to_le32
stur w0, [x24, #-8]
ldr w8, [x20, #24]
and w0, w8, #0x80000000
bl _cpu_to_le32
stur w0, [x24, #-4]
ldr w8, [x20, #28]
ldr w9, [x20, #8]
add w0, w8, w9, asr #1
bl _cpu_to_le32
str w0, [x24]
ldr w8, [x20, #24]
ldr w9, [x20, #32]
asr w8, w8, w9
orr w0, w8, #0x80000000
bl _cpu_to_le32
str w0, [x24, #4]
ldr w2, [x22]
lsl w8, w2, #1
add w8, w8, #2
add x24, x24, #16
add w23, w23, #4
cmp w8, w23
b.gt LBB0_3
LBB0_4:
mov w8, #2 ; =0x2
b LBB0_10
LBB0_5:
movi.2s v0, #1
str d0, [x20, #16]
str w9, [x20, #24]
ldr w2, [x22]
lsl w10, w2, #1
add w10, w10, #2
cmp w10, #1
b.lt LBB0_9
; %bb.6:
mov w23, #0 ; =0x0
mov x24, #0 ; =0x0
add x25, x25, #4
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldr w8, [x20, #28]
ldp w10, w9, [x20, #8]
mul w9, w9, w23
sdiv w11, w9, w10
msub w9, w11, w10, w9
add w0, w9, w8
bl _cpu_to_le32
stur w0, [x25, #-4]
ldr w8, [x20, #12]
ldr w9, [x20, #32]
asr w8, w8, w9
orr w0, w8, #0x80000000
bl _cpu_to_le32
str w0, [x25], #8
add x24, x24, #2
ldr w2, [x22]
lsl w8, w2, #1
add w8, w8, #2
add w23, w23, #1
cmp x24, w8, sxtw
b.lt LBB0_7
; %bb.8:
ldp w8, w9, [x20, #8]
LBB0_9:
sdiv w8, w8, w9
LBB0_10:
Lloh5:
adrp x9, _ICH_REG_OFF_LVI@GOTPAGE
Lloh6:
ldr x9, [x9, _ICH_REG_OFF_LVI@GOTPAGEOFF]
Lloh7:
ldr x9, [x9]
stp w8, w2, [x20, #36]
add x1, x9, x21
mov x0, x19
bl _iputbyte
str xzr, [x20, #64]
Lloh8:
adrp x8, _ICH_REG_OFF_CIV@GOTPAGE
Lloh9:
ldr x8, [x8, _ICH_REG_OFF_CIV@GOTPAGEOFF]
Lloh10:
ldr x8, [x8]
add x1, x8, x21
mov x0, x19
mov w2, #0 ; =0x0
bl _iputbyte
ldr w8, [x22]
ldr w9, [x20, #36]
sdiv w10, w8, w9
msub w8, w10, w9, w8
str w8, [x20, #44]
str xzr, [x20, #56]
Lloh11:
adrp x8, _ICH_FIFOE@GOTPAGE
Lloh12:
ldr x8, [x8, _ICH_FIFOE@GOTPAGEOFF]
ldr x9, [x20, #48]
Lloh13:
ldr w8, [x8]
Lloh14:
adrp x10, _ICH_BCIS@GOTPAGE
Lloh15:
ldr x10, [x10, _ICH_BCIS@GOTPAGEOFF]
Lloh16:
ldr w10, [x10]
orr w8, w10, w8
Lloh17:
adrp x10, _ICH_LVBCI@GOTPAGE
Lloh18:
ldr x10, [x10, _ICH_LVBCI@GOTPAGEOFF]
Lloh19:
ldr w10, [x10]
add x1, x9, x21
orr w2, w8, w10
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
b _iputbyte
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.loh AdrpLdrGotLdr Lloh14, Lloh15, Lloh16
.loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _ICH_REG_OFF_BDBAR,8,3 ; @ICH_REG_OFF_BDBAR
.comm _ICH_REG_LVI_MASK,4,2 ; @ICH_REG_LVI_MASK
.comm _ICH_REG_OFF_LVI,8,3 ; @ICH_REG_OFF_LVI
.comm _ICH_REG_OFF_CIV,8,3 ; @ICH_REG_OFF_CIV
.comm _ICH_FIFOE,4,2 ; @ICH_FIFOE
.comm _ICH_BCIS,4,2 ; @ICH_BCIS
.comm _ICH_LVBCI,4,2 ; @ICH_LVBCI
.no_dead_strip _snd_intel8x0_setup_periods
.subsections_via_symbols
| assembly_file_694.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _printEvenOrOdd ## -- Begin function printEvenOrOdd
.p2align 4, 0x90
_printEvenOrOdd: ## @printEvenOrOdd
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
testb $1, %dil
leaq L_str.2(%rip), %rax
leaq L_str(%rip), %rdi
cmoveq %rax, %rdi
popq %rbp
jmp _puts ## TAILCALL
.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 %rbx
pushq %rax
.cfi_offset %rbx, -24
leaq L_str(%rip), %rbx
movq %rbx, %rdi
callq _puts
leaq L_str.2(%rip), %rdi
callq _puts
movq %rbx, %rdi
callq _puts
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_str: ## @str
.asciz "Odd!"
L_str.2: ## @str.2
.asciz "Even!"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _printEvenOrOdd ; -- Begin function printEvenOrOdd
.p2align 2
_printEvenOrOdd: ; @printEvenOrOdd
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, l_str@PAGE
Lloh1:
add x8, x8, l_str@PAGEOFF
Lloh2:
adrp x9, l_str.2@PAGE
Lloh3:
add x9, x9, l_str.2@PAGEOFF
tst w0, #0x1
csel x0, x9, x8, eq
b _puts
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.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
Lloh4:
adrp x19, l_str@PAGE
Lloh5:
add x19, x19, l_str@PAGEOFF
mov x0, x19
bl _puts
Lloh6:
adrp x0, l_str.2@PAGE
Lloh7:
add x0, x0, l_str.2@PAGEOFF
bl _puts
mov x0, x19
bl _puts
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh4, Lloh5
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_str: ; @str
.asciz "Odd!"
l_str.2: ; @str.2
.asciz "Even!"
.subsections_via_symbols
| the_stack_data/231394519.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ltq_wdt_stop
_ltq_wdt_stop: ## @ltq_wdt_stop
.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
callq _ltq_wdt_get_priv
movq %rax, %rbx
movq _LTQ_WDT_CR_PW_MASK@GOTPCREL(%rip), %r14
movl (%r14), %esi
movq _LTQ_WDT_CR_PW1@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq _LTQ_WDT_CR@GOTPCREL(%rip), %r15
movl (%r15), %ecx
movq %rbx, %rdi
callq _ltq_wdt_mask
movq _LTQ_WDT_CR_GEN@GOTPCREL(%rip), %rax
movl (%r14), %esi
orl (%rax), %esi
movq _LTQ_WDT_CR_PW2@GOTPCREL(%rip), %rax
movl (%rax), %edx
movl (%r15), %ecx
movq %rbx, %rdi
callq _ltq_wdt_mask
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _LTQ_WDT_CR_PW_MASK,4,2 ## @LTQ_WDT_CR_PW_MASK
.comm _LTQ_WDT_CR_PW1,4,2 ## @LTQ_WDT_CR_PW1
.comm _LTQ_WDT_CR,4,2 ## @LTQ_WDT_CR
.comm _LTQ_WDT_CR_GEN,4,2 ## @LTQ_WDT_CR_GEN
.comm _LTQ_WDT_CR_PW2,4,2 ## @LTQ_WDT_CR_PW2
.no_dead_strip _ltq_wdt_stop
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ltq_wdt_stop
_ltq_wdt_stop: ; @ltq_wdt_stop
.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
bl _ltq_wdt_get_priv
mov x19, x0
Lloh0:
adrp x20, _LTQ_WDT_CR_PW_MASK@GOTPAGE
Lloh1:
ldr x20, [x20, _LTQ_WDT_CR_PW_MASK@GOTPAGEOFF]
ldr w1, [x20]
Lloh2:
adrp x8, _LTQ_WDT_CR_PW1@GOTPAGE
Lloh3:
ldr x8, [x8, _LTQ_WDT_CR_PW1@GOTPAGEOFF]
Lloh4:
ldr w2, [x8]
Lloh5:
adrp x21, _LTQ_WDT_CR@GOTPAGE
Lloh6:
ldr x21, [x21, _LTQ_WDT_CR@GOTPAGEOFF]
ldr w3, [x21]
bl _ltq_wdt_mask
Lloh7:
adrp x8, _LTQ_WDT_CR_GEN@GOTPAGE
Lloh8:
ldr x8, [x8, _LTQ_WDT_CR_GEN@GOTPAGEOFF]
Lloh9:
ldr w8, [x8]
ldr w9, [x20]
orr w1, w9, w8
Lloh10:
adrp x8, _LTQ_WDT_CR_PW2@GOTPAGE
Lloh11:
ldr x8, [x8, _LTQ_WDT_CR_PW2@GOTPAGEOFF]
Lloh12:
ldr w2, [x8]
ldr w3, [x21]
mov x0, x19
bl _ltq_wdt_mask
mov w0, #0
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 Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _LTQ_WDT_CR_PW_MASK,4,2 ; @LTQ_WDT_CR_PW_MASK
.comm _LTQ_WDT_CR_PW1,4,2 ; @LTQ_WDT_CR_PW1
.comm _LTQ_WDT_CR,4,2 ; @LTQ_WDT_CR
.comm _LTQ_WDT_CR_GEN,4,2 ; @LTQ_WDT_CR_GEN
.comm _LTQ_WDT_CR_PW2,4,2 ; @LTQ_WDT_CR_PW2
.no_dead_strip _ltq_wdt_stop
.subsections_via_symbols
| AnghaBench/linux/drivers/watchdog/extr_lantiq_wdt.c_ltq_wdt_stop.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 $1128, %rsp ## imm = 0x468
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq $1000, -128(%rbp) ## imm = 0x3E8
cmpl $2, %edi
jg LBB0_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
movl $10, %edi
callq _fputc
movq (%rbx), %rcx
leaq L_.str.1(%rip), %r14
movl $71, %esi
movl $1, %edx
movq %r14, %rdi
callq _fwrite
movq (%rbx), %rdi
leaq L_.str.2(%rip), %rsi
leaq L_.str.3(%rip), %rdx
xorl %eax, %eax
callq _fprintf
movq (%rbx), %rcx
movl $71, %esi
movl $1, %edx
movq %r14, %rdi
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.4(%rip), %rdi
movl $61, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.5(%rip), %rdi
movl $42, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.6(%rip), %rdi
movl $45, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.7(%rip), %rdi
movl $66, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.8(%rip), %rdi
movl $61, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.9(%rip), %rdi
movl $51, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rdi
leaq L_.str.10(%rip), %rsi
leaq L_.str.11(%rip), %r15
movq %r15, %rdx
xorl %eax, %eax
callq _fprintf
movq (%rbx), %rcx
leaq L_.str.12(%rip), %rdi
movl $31, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.13(%rip), %rdi
movl $49, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.14(%rip), %rdi
movl $33, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rdi
leaq L_.str.15(%rip), %rsi
xorl %edx, %edx
xorl %eax, %eax
callq _fprintf
movq (%rbx), %rdi
leaq L_.str.16(%rip), %rsi
xorl %edx, %edx
xorl %eax, %eax
callq _fprintf
movq (%rbx), %rcx
leaq L_.str.17(%rip), %rdi
movl $48, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.18(%rip), %rdi
movl $50, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rdi
leaq L_.str.19(%rip), %rsi
xorl %edx, %edx
xorl %eax, %eax
callq _fprintf
movq (%rbx), %rcx
leaq L_.str.20(%rip), %rdi
movl $65, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.21(%rip), %rdi
movl $12, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.22(%rip), %rdi
movl $39, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.23(%rip), %rdi
movl $65, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.24(%rip), %rdi
movl $55, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.25(%rip), %rdi
movl $10, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.26(%rip), %rdi
movl $52, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.27(%rip), %rdi
movl $59, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.28(%rip), %rdi
movl $59, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.29(%rip), %rdi
movl $48, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rdi
leaq L_.str.30(%rip), %rsi
xorl %edx, %edx
xorl %eax, %eax
callq _fprintf
movq (%rbx), %rcx
leaq L_.str.31(%rip), %rdi
movl $11, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rdi
leaq L_.str.32(%rip), %rsi
movq %r15, %rdx
xorl %eax, %eax
callq _fprintf
movq (%rbx), %rdi
leaq L_.str.33(%rip), %rsi
movq %r15, %rdx
xorl %eax, %eax
callq _fprintf
movq (%rbx), %rcx
leaq L_.str.34(%rip), %rdi
movl $9, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
leaq L_.str.35(%rip), %rdi
movl $57, %esi
movl $1, %edx
callq _fwrite
movq (%rbx), %rcx
movl $71, %esi
movl $1, %edx
movq %r14, %rdi
callq _fwrite
movq (%rbx), %rsi
movl $10, %edi
callq _fputc
xorl %edi, %edi
callq _exit
LBB0_2:
movq %rsi, %rbx
movq 8(%rsi), %r12
movq 16(%rsi), %rax
movq %rax, -56(%rbp) ## 8-byte Spill
xorl %r13d, %r13d
movl $0, -44(%rbp) ## 4-byte Folded Spill
movl $0, %r15d
movl $0, %r14d
cmpl $3, %edi
jne LBB0_7
LBB0_3:
leaq L_.str.47(%rip), %rcx
leaq -100(%rbp), %rdi
movl $4, %edx
xorl %esi, %esi
xorl %eax, %eax
callq ___sprintf_chk
movb $1, %al
movl %eax, -104(%rbp) ## 4-byte Spill
cmpl $2, %r14d
jae LBB0_41
LBB0_4:
movl %r14d, -68(%rbp) ## 4-byte Spill
movq -56(%rbp), %rbx ## 8-byte Reload
movq %rbx, %rdi
callq _strlen
leaq (,%rax,8), %rdi
callq _malloc
testq %rax, %rax
jne LBB0_30
LBB0_5:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.50(%rip), %rsi
LBB0_6:
leaq L_.str.11(%rip), %rdx
xorl %eax, %eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_7:
movq %r12, -120(%rbp) ## 8-byte Spill
movl %edi, %r13d
movl $3, %r15d
movl $0, -68(%rbp) ## 4-byte Folded Spill
movl $0, -76(%rbp) ## 4-byte Folded Spill
movl $0, -44(%rbp) ## 4-byte Folded Spill
movl $0, -72(%rbp) ## 4-byte Folded Spill
movl $0, -64(%rbp) ## 4-byte Folded Spill
jmp LBB0_10
.p2align 4, 0x90
LBB0_8: ## in Loop: Header=BB0_10 Depth=1
movq %r15, %r14
LBB0_9: ## in Loop: Header=BB0_10 Depth=1
incq %r14
movq %r14, %r15
cmpq %r13, %r14
jge LBB0_22
LBB0_10: ## =>This Inner Loop Header: Depth=1
movq (%rbx,%r15,8), %r12
cmpb $45, (%r12)
jne LBB0_8
## %bb.11: ## in Loop: Header=BB0_10 Depth=1
leaq 1(%r15), %r14
cmpq %r13, %r14
jge LBB0_27
## %bb.12: ## in Loop: Header=BB0_10 Depth=1
movq %r12, %rdi
leaq L_.str.37(%rip), %rsi
callq _strcmp
testl %eax, %eax
je LBB0_18
## %bb.13: ## in Loop: Header=BB0_10 Depth=1
movq %r12, %rdi
leaq L_.str.38(%rip), %rsi
callq _strcmp
testl %eax, %eax
je LBB0_19
## %bb.14: ## in Loop: Header=BB0_10 Depth=1
movq %r12, %rdi
leaq L_.str.39(%rip), %rsi
callq _strcmp
testl %eax, %eax
je LBB0_20
## %bb.15: ## in Loop: Header=BB0_10 Depth=1
movq %r12, %rdi
leaq L_.str.40(%rip), %rsi
callq _strcmp
testl %eax, %eax
je LBB0_21
## %bb.16: ## in Loop: Header=BB0_10 Depth=1
movq %r12, %rdi
leaq L_.str.42(%rip), %rsi
callq _strcmp
testl %eax, %eax
jne LBB0_39
## %bb.17: ## in Loop: Header=BB0_10 Depth=1
movq 8(%rbx,%r15,8), %rdi
callq _atoi
movl %eax, -68(%rbp) ## 4-byte Spill
jmp LBB0_9
LBB0_18: ## in Loop: Header=BB0_10 Depth=1
movq 8(%rbx,%r15,8), %rdi
callq _atoi
movl %eax, -76(%rbp) ## 4-byte Spill
jmp LBB0_9
LBB0_19: ## in Loop: Header=BB0_10 Depth=1
movq 8(%rbx,%r15,8), %rdi
callq _atoi
movl %eax, -44(%rbp) ## 4-byte Spill
jmp LBB0_9
LBB0_20: ## in Loop: Header=BB0_10 Depth=1
movq 8(%rbx,%r15,8), %rdi
callq _atoi
movl %eax, -72(%rbp) ## 4-byte Spill
jmp LBB0_9
LBB0_21: ## in Loop: Header=BB0_10 Depth=1
movq 8(%rbx,%r15,8), %rdi
callq _xf_strescape1
movl $1000, %edx ## imm = 0x3E8
leaq -1168(%rbp), %rdi
xorl %esi, %esi
leaq L_.str.41(%rip), %rcx
movq %rax, %r8
xorl %eax, %eax
callq ___sprintf_chk
movl $1, -64(%rbp) ## 4-byte Folded Spill
jmp LBB0_9
LBB0_22:
movl -72(%rbp), %r13d ## 4-byte Reload
cmpl $2, %r13d
jae LBB0_29
## %bb.23:
movl -44(%rbp), %ecx ## 4-byte Reload
cmpl $2, %ecx
jae LBB0_33
## %bb.24:
movl -76(%rbp), %r15d ## 4-byte Reload
cmpl $2, %r15d
movq -120(%rbp), %r12 ## 8-byte Reload
jae LBB0_36
## %bb.25:
cmpl $0, -64(%rbp) ## 4-byte Folded Reload
jne LBB0_40
## %bb.26:
movl -68(%rbp), %r14d ## 4-byte Reload
jmp LBB0_3
LBB0_27:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.36(%rip), %rsi
LBB0_28:
leaq L_.str.11(%rip), %rdx
movq %r12, %rcx
xorl %eax, %eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_29:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.44(%rip), %rsi
leaq L_.str.11(%rip), %rdx
movl %r13d, %ecx
jmp LBB0_42
LBB0_30:
movq %rax, %r14
movl %r15d, -76(%rbp) ## 4-byte Spill
movq $0, -96(%rbp)
leaq L_.str.51(%rip), %rsi
leaq -96(%rbp), %rdx
movq %rbx, %rdi
callq _xf_lineparse2
movq -96(%rbp), %r15
testq %r15, %r15
movq %rax, -88(%rbp) ## 8-byte Spill
jle LBB0_34
## %bb.31:
cmpq $4, %r15
movl %r13d, -72(%rbp) ## 4-byte Spill
jae LBB0_37
## %bb.32:
movq %r12, %r13
xorl %ebx, %ebx
movq -56(%rbp), %rdx ## 8-byte Reload
jmp LBB0_49
LBB0_33:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.45(%rip), %rsi
leaq L_.str.11(%rip), %rdx
jmp LBB0_42
LBB0_34:
shlq $3, %r15
movq %r15, %rdi
callq _malloc
movq %rax, -64(%rbp) ## 8-byte Spill
testq %rax, %rax
je LBB0_5
## %bb.35:
movl %r13d, -72(%rbp) ## 4-byte Spill
jmp LBB0_57
LBB0_36:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.46(%rip), %rsi
leaq L_.str.11(%rip), %rdx
movl %r15d, %ecx
jmp LBB0_42
LBB0_37:
movq %r15, %rbx
andq $-4, %rbx
leaq -4(%rbx), %rsi
movq %rsi, %rdx
shrq $2, %rdx
incq %rdx
movl %edx, %ecx
andl $3, %ecx
movq -56(%rbp), %xmm0 ## 8-byte Folded Reload
## xmm0 = mem[0],zero
cmpq $12, %rsi
jae LBB0_43
## %bb.38:
xorl %esi, %esi
jmp LBB0_45
LBB0_39:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.43(%rip), %rsi
jmp LBB0_28
LBB0_40:
movsbl -1168(%rbp), %r8d
leaq L_.str.48(%rip), %rcx
movl $0, -104(%rbp) ## 4-byte Folded Spill
leaq -100(%rbp), %rdi
movl $4, %edx
xorl %esi, %esi
xorl %eax, %eax
callq ___sprintf_chk
movl -68(%rbp), %r14d ## 4-byte Reload
cmpl $2, %r14d
jb LBB0_4
LBB0_41:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.49(%rip), %rsi
leaq L_.str.11(%rip), %rdx
movl %r14d, %ecx
LBB0_42:
xorl %eax, %eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_43:
andq $-4, %rdx
xorl %esi, %esi
pshufd $68, %xmm0, %xmm1 ## xmm1 = xmm0[0,1,0,1]
.p2align 4, 0x90
LBB0_44: ## =>This Inner Loop Header: Depth=1
movdqu (%rax,%rsi,8), %xmm2
movdqu 16(%rax,%rsi,8), %xmm3
paddq %xmm1, %xmm2
paddq %xmm1, %xmm3
movdqu %xmm2, (%r14,%rsi,8)
movdqu %xmm3, 16(%r14,%rsi,8)
movdqu 32(%rax,%rsi,8), %xmm2
movdqu 48(%rax,%rsi,8), %xmm3
paddq %xmm1, %xmm2
paddq %xmm1, %xmm3
movdqu %xmm2, 32(%r14,%rsi,8)
movdqu %xmm3, 48(%r14,%rsi,8)
movdqu 64(%rax,%rsi,8), %xmm2
movdqu 80(%rax,%rsi,8), %xmm3
paddq %xmm1, %xmm2
paddq %xmm1, %xmm3
movdqu %xmm2, 64(%r14,%rsi,8)
movdqu %xmm3, 80(%r14,%rsi,8)
movdqu 96(%rax,%rsi,8), %xmm2
movdqu 112(%rax,%rsi,8), %xmm3
paddq %xmm1, %xmm2
paddq %xmm1, %xmm3
movdqu %xmm2, 96(%r14,%rsi,8)
movdqu %xmm3, 112(%r14,%rsi,8)
addq $16, %rsi
addq $-4, %rdx
jne LBB0_44
LBB0_45:
testq %rcx, %rcx
je LBB0_48
## %bb.46:
leaq (%r14,%rsi,8), %rdx
addq $16, %rdx
leaq (%rax,%rsi,8), %rsi
addq $16, %rsi
shlq $5, %rcx
xorl %edi, %edi
pshufd $68, %xmm0, %xmm0 ## xmm0 = xmm0[0,1,0,1]
.p2align 4, 0x90
LBB0_47: ## =>This Inner Loop Header: Depth=1
movdqu -16(%rsi,%rdi), %xmm1
movdqu (%rsi,%rdi), %xmm2
paddq %xmm0, %xmm1
paddq %xmm0, %xmm2
movdqu %xmm1, -16(%rdx,%rdi)
movdqu %xmm2, (%rdx,%rdi)
addq $32, %rdi
cmpq %rdi, %rcx
jne LBB0_47
LBB0_48:
movq %r12, %r13
cmpq %rbx, %r15
movq -56(%rbp), %rdx ## 8-byte Reload
je LBB0_50
.p2align 4, 0x90
LBB0_49: ## =>This Inner Loop Header: Depth=1
movq (%rax,%rbx,8), %rcx
addq %rdx, %rcx
movq %rcx, (%r14,%rbx,8)
incq %rbx
cmpq %rbx, %r15
jne LBB0_49
LBB0_50:
leaq (,%r15,8), %r12
movq %r12, %rdi
callq _malloc
movq %rax, -64(%rbp) ## 8-byte Spill
testq %rax, %rax
je LBB0_5
## %bb.51:
testq %r15, %r15
jle LBB0_56
## %bb.52:
movq -64(%rbp), %rdi ## 8-byte Reload
movl $255, %esi
movq %r12, %rdx
callq _memset
cmpl $1, -76(%rbp) ## 4-byte Folded Reload
jne LBB0_56
## %bb.53:
xorl %ebx, %ebx
movq %r13, -120(%rbp) ## 8-byte Spill
movq -64(%rbp), %r12 ## 8-byte Reload
movq -56(%rbp), %r13 ## 8-byte Reload
.p2align 4, 0x90
LBB0_54: ## =>This Inner Loop Header: Depth=1
movq -88(%rbp), %rax ## 8-byte Reload
movq (%rax,%rbx,8), %rdi
addq %r13, %rdi
callq _atol
decq %rax
movq %rax, (%r12,%rbx,8)
incq %rbx
cmpq %rbx, %r15
jne LBB0_54
## %bb.55:
movl -44(%rbp), %r13d ## 4-byte Reload
movq -120(%rbp), %r12 ## 8-byte Reload
jmp LBB0_58
LBB0_56:
movq %r13, %r12
LBB0_57:
movl -44(%rbp), %r13d ## 4-byte Reload
LBB0_58:
leaq L_.str.52(%rip), %rsi
movq %r12, %rdi
callq _strcmp
testl %eax, %eax
jne LBB0_60
## %bb.59:
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %r15
jmp LBB0_62
LBB0_60:
leaq L_.str.53(%rip), %rsi
movq %r12, %rdi
callq _fopen
movq %rax, %r15
testq %rax, %rax
jne LBB0_62
## %bb.61:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.54(%rip), %rsi
jmp LBB0_28
LBB0_62:
movq %r12, -120(%rbp) ## 8-byte Spill
leaq -128(%rbp), %rsi
xorl %edi, %edi
movq %r15, %rdx
callq _xf_lineread1
testq %rax, %rax
jne LBB0_67
LBB0_63:
leaq L_.str.52(%rip), %rsi
movq -120(%rbp), %rdi ## 8-byte Reload
callq _strcmp
testl %eax, %eax
je LBB0_65
## %bb.64:
movq %r15, %rdi
callq _fclose
LBB0_65:
movq -64(%rbp), %rdi ## 8-byte Reload
callq _free
movq -88(%rbp), %rdi ## 8-byte Reload
testq %rdi, %rdi
jne LBB0_129
LBB0_66:
xorl %edi, %edi
callq _exit
LBB0_67:
movq %rax, %rbx
movq -64(%rbp), %rax ## 8-byte Reload
addq $56, %rax
movq %rax, -152(%rbp) ## 8-byte Spill
xorl %r12d, %r12d
movq %r15, -136(%rbp) ## 8-byte Spill
jmp LBB0_70
.p2align 4, 0x90
LBB0_68: ## in Loop: Header=BB0_70 Depth=1
leaq L_.str.56(%rip), %rdi
xorl %eax, %eax
callq _printf
movl $1, %eax
movq %rax, -144(%rbp) ## 8-byte Spill
LBB0_69: ## in Loop: Header=BB0_70 Depth=1
movq %rbx, %rdi
leaq -128(%rbp), %rsi
movq %r15, %rdx
callq _xf_lineread1
movq %rax, %rbx
movq -144(%rbp), %r12 ## 8-byte Reload
testq %rax, %rax
je LBB0_63
LBB0_70: ## =>This Loop Header: Depth=1
## Child Loop BB0_72 Depth 2
## Child Loop BB0_119 Depth 2
## Child Loop BB0_88 Depth 2
## Child Loop BB0_91 Depth 3
## Child Loop BB0_99 Depth 2
## Child Loop BB0_105 Depth 3
## Child Loop BB0_110 Depth 3
## Child Loop BB0_127 Depth 2
movq %rbx, -56(%rbp) ## 8-byte Spill
jmp LBB0_72
.p2align 4, 0x90
LBB0_71: ## in Loop: Header=BB0_72 Depth=2
movq %rbx, %rdi
leaq -128(%rbp), %rsi
movq %r15, %rdx
callq _xf_lineread1
movq %rax, %rbx
testq %rax, %rax
je LBB0_63
LBB0_72: ## Parent Loop BB0_70 Depth=1
## => This Inner Loop Header: Depth=2
cmpq $-1, -128(%rbp)
je LBB0_130
## %bb.73: ## in Loop: Header=BB0_72 Depth=2
cmpl $1, %r13d
jne LBB0_76
## %bb.74: ## in Loop: Header=BB0_72 Depth=2
cmpb $35, (%rbx)
je LBB0_71
## %bb.75: ## in Loop: Header=BB0_72 Depth=2
movq %rbx, %rdi
callq _strlen
cmpq $1, %rax
jbe LBB0_71
jmp LBB0_77
.p2align 4, 0x90
LBB0_76: ## in Loop: Header=BB0_70 Depth=1
movq -56(%rbp), %rbx ## 8-byte Reload
LBB0_77: ## in Loop: Header=BB0_70 Depth=1
leaq 1(%r12), %rax
testq %r12, %r12
movq %rax, -144(%rbp) ## 8-byte Spill
jne LBB0_81
## %bb.78: ## in Loop: Header=BB0_70 Depth=1
cmpl $0, -76(%rbp) ## 4-byte Folded Reload
jne LBB0_81
## %bb.79: ## in Loop: Header=BB0_70 Depth=1
cmpb $0, -104(%rbp) ## 1-byte Folded Reload
je LBB0_83
## %bb.80: ## in Loop: Header=BB0_70 Depth=1
movq %rbx, %rdi
leaq -112(%rbp), %rsi
callq _xf_lineparse1
jmp LBB0_84
.p2align 4, 0x90
LBB0_81: ## in Loop: Header=BB0_70 Depth=1
cmpb $0, -104(%rbp) ## 1-byte Folded Reload
je LBB0_93
## %bb.82: ## in Loop: Header=BB0_70 Depth=1
movq %rbx, %rdi
leaq -112(%rbp), %rsi
callq _xf_lineparse1
jmp LBB0_94
.p2align 4, 0x90
LBB0_83: ## in Loop: Header=BB0_70 Depth=1
movq %rbx, %rdi
leaq -1168(%rbp), %rsi
leaq -112(%rbp), %rdx
callq _xf_lineparse2
LBB0_84: ## in Loop: Header=BB0_70 Depth=1
movq %rax, -88(%rbp) ## 8-byte Spill
movq -112(%rbp), %rsi
cmpl $1, -68(%rbp) ## 4-byte Folded Reload
je LBB0_68
## %bb.85: ## in Loop: Header=BB0_70 Depth=1
movq %rbx, -56(%rbp) ## 8-byte Spill
movq -96(%rbp), %rbx
testq %rsi, %rsi
jle LBB0_96
## %bb.86: ## in Loop: Header=BB0_70 Depth=1
xorl %r13d, %r13d
movq %rsi, -160(%rbp) ## 8-byte Spill
jmp LBB0_88
.p2align 4, 0x90
LBB0_87: ## in Loop: Header=BB0_88 Depth=2
incq %r13
movq -160(%rbp), %rsi ## 8-byte Reload
cmpq %rsi, %r13
je LBB0_96
LBB0_88: ## Parent Loop BB0_70 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_91 Depth 3
testq %rbx, %rbx
jle LBB0_87
## %bb.89: ## in Loop: Header=BB0_88 Depth=2
movq -88(%rbp), %rax ## 8-byte Reload
movq (%rax,%r13,8), %r12
addq -56(%rbp), %r12 ## 8-byte Folded Reload
xorl %r15d, %r15d
jmp LBB0_91
.p2align 4, 0x90
LBB0_90: ## in Loop: Header=BB0_91 Depth=3
incq %r15
cmpq %r15, %rbx
je LBB0_87
LBB0_91: ## Parent Loop BB0_70 Depth=1
## Parent Loop BB0_88 Depth=2
## => This Inner Loop Header: Depth=3
movq (%r14,%r15,8), %rdi
movq %r12, %rsi
callq _strcmp
testl %eax, %eax
jne LBB0_90
## %bb.92: ## in Loop: Header=BB0_91 Depth=3
movq -64(%rbp), %rax ## 8-byte Reload
movq %r13, (%rax,%r15,8)
jmp LBB0_90
.p2align 4, 0x90
LBB0_93: ## in Loop: Header=BB0_70 Depth=1
movq %rbx, %rdi
leaq -1168(%rbp), %rsi
leaq -112(%rbp), %rdx
callq _xf_lineparse2
LBB0_94: ## in Loop: Header=BB0_70 Depth=1
movq -112(%rbp), %rsi
cmpl $1, -68(%rbp) ## 4-byte Folded Reload
movq %rax, -88(%rbp) ## 8-byte Spill
jne LBB0_111
## %bb.95: ## in Loop: Header=BB0_70 Depth=1
leaq L_.str.56(%rip), %rdi
xorl %eax, %eax
callq _printf
jmp LBB0_69
.p2align 4, 0x90
LBB0_96: ## in Loop: Header=BB0_70 Depth=1
testq %rbx, %rbx
jle LBB0_131
## %bb.97: ## in Loop: Header=BB0_70 Depth=1
leaq -1(%rbx), %r11
leaq -5(%rbx), %r12
movq -152(%rbp), %rsi ## 8-byte Reload
xorl %eax, %eax
movq %rbx, %r8
movl -44(%rbp), %r13d ## 4-byte Reload
movq -64(%rbp), %rcx ## 8-byte Reload
movq -136(%rbp), %r15 ## 8-byte Reload
jmp LBB0_99
.p2align 4, 0x90
LBB0_98: ## in Loop: Header=BB0_99 Depth=2
incq %rax
addq $8, %rsi
decq %r12
cmpq %rbx, %rax
je LBB0_123
LBB0_99: ## Parent Loop BB0_70 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_105 Depth 3
## Child Loop BB0_110 Depth 3
cmpq $0, (%rcx,%rax,8)
jns LBB0_98
## %bb.100: ## in Loop: Header=BB0_99 Depth=2
decq %r8
cmpq %rax, %r11
jle LBB0_98
## %bb.101: ## in Loop: Header=BB0_99 Depth=2
movq %r11, %r10
subq %rax, %r10
movq %rax, %rdi
cmpq $4, %r10
jb LBB0_110
## %bb.102: ## in Loop: Header=BB0_99 Depth=2
leaq -4(%r10), %rdx
movq %rdx, %r9
shrq $2, %r9
incq %r9
cmpq $4, %rdx
jae LBB0_104
## %bb.103: ## in Loop: Header=BB0_99 Depth=2
xorl %edx, %edx
jmp LBB0_106
LBB0_104: ## in Loop: Header=BB0_99 Depth=2
movq %r12, %rdi
shrq $2, %rdi
incq %rdi
andq $-2, %rdi
xorl %edx, %edx
.p2align 4, 0x90
LBB0_105: ## Parent Loop BB0_70 Depth=1
## Parent Loop BB0_99 Depth=2
## => This Inner Loop Header: Depth=3
movdqu -48(%rsi,%rdx,8), %xmm0
movdqu -32(%rsi,%rdx,8), %xmm1
movdqu -16(%rsi,%rdx,8), %xmm2
movdqu (%rsi,%rdx,8), %xmm3
movdqu %xmm0, -56(%rsi,%rdx,8)
movdqu %xmm1, -40(%rsi,%rdx,8)
movdqu %xmm2, -24(%rsi,%rdx,8)
movdqu %xmm3, -8(%rsi,%rdx,8)
addq $8, %rdx
addq $-2, %rdi
jne LBB0_105
LBB0_106: ## in Loop: Header=BB0_99 Depth=2
movq %r10, %rdi
andq $-4, %rdi
testb $1, %r9b
je LBB0_108
## %bb.107: ## in Loop: Header=BB0_99 Depth=2
addq %rax, %rdx
movdqu 8(%rcx,%rdx,8), %xmm0
movdqu 24(%rcx,%rdx,8), %xmm1
movdqu %xmm0, (%rcx,%rdx,8)
movdqu %xmm1, 16(%rcx,%rdx,8)
LBB0_108: ## in Loop: Header=BB0_99 Depth=2
cmpq %rdi, %r10
je LBB0_98
## %bb.109: ## in Loop: Header=BB0_99 Depth=2
addq %rax, %rdi
.p2align 4, 0x90
LBB0_110: ## Parent Loop BB0_70 Depth=1
## Parent Loop BB0_99 Depth=2
## => This Inner Loop Header: Depth=3
movq 8(%rcx,%rdi,8), %rdx
movq %rdx, (%rcx,%rdi,8)
leaq 1(%rdi), %rdx
movq %rdx, %rdi
cmpq %r11, %rdx
jl LBB0_110
jmp LBB0_98
.p2align 4, 0x90
LBB0_111: ## in Loop: Header=BB0_70 Depth=1
movq %rbx, -56(%rbp) ## 8-byte Spill
testq %rsi, %rsi
movq -64(%rbp), %r12 ## 8-byte Reload
jle LBB0_122
## %bb.112: ## in Loop: Header=BB0_70 Depth=1
movq (%r12), %rcx
movq (%rax,%rcx,8), %rdx
testq %rdx, %rdx
js LBB0_115
## %bb.113: ## in Loop: Header=BB0_70 Depth=1
cmpq %rsi, %rcx
jge LBB0_115
## %bb.114: ## in Loop: Header=BB0_70 Depth=1
addq -56(%rbp), %rdx ## 8-byte Folded Reload
leaq L_.str.41(%rip), %rdi
movq %rdx, %rsi
xorl %eax, %eax
callq _printf
movq -88(%rbp), %rax ## 8-byte Reload
LBB0_115: ## in Loop: Header=BB0_70 Depth=1
cmpq $2, -96(%rbp)
jl LBB0_122
## %bb.116: ## in Loop: Header=BB0_70 Depth=1
movl $1, %ebx
jmp LBB0_119
.p2align 4, 0x90
LBB0_117: ## in Loop: Header=BB0_119 Depth=2
leaq L_.str.41(%rip), %rdi
leaq -100(%rbp), %rsi
xorl %eax, %eax
callq _printf
LBB0_118: ## in Loop: Header=BB0_119 Depth=2
incq %rbx
cmpq -96(%rbp), %rbx
movq -88(%rbp), %rax ## 8-byte Reload
jge LBB0_122
LBB0_119: ## Parent Loop BB0_70 Depth=1
## => This Inner Loop Header: Depth=2
movq (%r12,%rbx,8), %rcx
movq (%rax,%rcx,8), %rdx
testq %rdx, %rdx
js LBB0_117
## %bb.120: ## in Loop: Header=BB0_119 Depth=2
cmpq -112(%rbp), %rcx
jge LBB0_117
## %bb.121: ## in Loop: Header=BB0_119 Depth=2
addq -56(%rbp), %rdx ## 8-byte Folded Reload
leaq L_.str.57(%rip), %rdi
leaq -100(%rbp), %rsi
xorl %eax, %eax
callq _printf
jmp LBB0_118
.p2align 4, 0x90
LBB0_122: ## in Loop: Header=BB0_70 Depth=1
movl $10, %edi
callq _putchar
movq -56(%rbp), %rbx ## 8-byte Reload
jmp LBB0_69
.p2align 4, 0x90
LBB0_123: ## in Loop: Header=BB0_70 Depth=1
movq %r8, -96(%rbp)
testq %r8, %r8
jle LBB0_66
## %bb.124: ## in Loop: Header=BB0_70 Depth=1
cmpl $0, -72(%rbp) ## 4-byte Folded Reload
movq -56(%rbp), %rbx ## 8-byte Reload
jne LBB0_69
## %bb.125: ## in Loop: Header=BB0_70 Depth=1
movq (%rcx), %rax
movq %rcx, -64(%rbp) ## 8-byte Spill
movq -88(%rbp), %rcx ## 8-byte Reload
movq (%rcx,%rax,8), %rsi
addq %rbx, %rsi
leaq L_.str.41(%rip), %rdi
xorl %eax, %eax
callq _printf
cmpq $2, -96(%rbp)
leaq L_.str.57(%rip), %r15
leaq -100(%rbp), %r12
jl LBB0_128
## %bb.126: ## in Loop: Header=BB0_70 Depth=1
movl $1, %ebx
.p2align 4, 0x90
LBB0_127: ## Parent Loop BB0_70 Depth=1
## => This Inner Loop Header: Depth=2
movq -64(%rbp), %rax ## 8-byte Reload
movq (%rax,%rbx,8), %rax
movq -88(%rbp), %rcx ## 8-byte Reload
movq (%rcx,%rax,8), %rdx
addq -56(%rbp), %rdx ## 8-byte Folded Reload
movq %r15, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq _printf
incq %rbx
cmpq -96(%rbp), %rbx
jl LBB0_127
LBB0_128: ## in Loop: Header=BB0_70 Depth=1
movl $10, %edi
callq _putchar
movq -136(%rbp), %r15 ## 8-byte Reload
movq -56(%rbp), %rbx ## 8-byte Reload
jmp LBB0_69
LBB0_129:
callq _free
xorl %edi, %edi
callq _exit
LBB0_130:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.55(%rip), %rsi
jmp LBB0_6
LBB0_131:
movq %rbx, -96(%rbp)
xorl %edi, %edi
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str.1: ## @.str.1
.asciz "----------------------------------------------------------------------\n"
L_.str.2: ## @.str.2
.asciz "%s\n"
L_.str.3: ## @.str.3
.asciz "xe-cut1 v 4: 11.November.2018 [JRH]"
L_.str.4: ## @.str.4
.asciz "Extract columns from input based on labels in the first line\n"
L_.str.5: ## @.str.5
.asciz "\t- the order of columns can be rearranged\n"
L_.str.6: ## @.str.6
.asciz "\t- multiple copies of a column can be output\n"
L_.str.7: ## @.str.7
.asciz "\t- for duplicated labels, only the last column matching is output\n"
L_.str.8: ## @.str.8
.asciz "\t- the line-count will be preserved (blank lines are output)\n"
L_.str.9: ## @.str.9
.asciz "\t- missing columns will be replaced by a delimiter\n"
L_.str.10: ## @.str.10
.asciz "\nUSAGE: %s [input] [labels] [options]\n"
L_.str.11: ## @.str.11
.asciz "xe-cut1"
L_.str.12: ## @.str.12
.asciz "\t[input]: file name or \"stdin\"\n"
L_.str.13: ## @.str.13
.asciz "\t[labels]: comma-separated list of column labels\n"
L_.str.14: ## @.str.14
.asciz "\nVALID OPTIONS (defaults in []):\n"
L_.str.15: ## @.str.15
.asciz "\t[-n]: labels are numeric (1) instead of defined by header (0) [%d]\n"
L_.str.16: ## @.str.16
.asciz "\t[-s]: skip #-comments and blank lines (0=NO 1=YES) [%d]\n"
L_.str.17: ## @.str.17
.asciz "\t\tNOTE: \"#\" must be first character on the line\n"
L_.str.18: ## @.str.18
.asciz "\t\tNOTE: blank lines cannot contain spaces or tabs\n"
L_.str.19: ## @.str.19
.asciz "\t[-o]: omit outputting header-line (0=NO, 1=YES) [%d]\n"
L_.str.20: ## @.str.20
.asciz "\t[-d]: characters to use as column-delimiters (unset by default)\n"
L_.str.21: ## @.str.21
.asciz "\t\tif unset:\n"
L_.str.22: ## @.str.22
.asciz "\t\t- white-space (blanks,tabs) are used\n"
L_.str.23: ## @.str.23
.asciz "\t\t- multiple consecutive delimiters are treated as one delimiter\n"
L_.str.24: ## @.str.24
.asciz "\t\t- suitable for reading files without \"empty\" columns\n"
L_.str.25: ## @.str.25
.asciz "\t\tif set:\n"
L_.str.26: ## @.str.26
.asciz "\t\t- behaviour is similar to the linux \"cut\" command\n"
L_.str.27: ## @.str.27
.asciz "\t\t- any matching delimiter in the input marks a new column\n"
L_.str.28: ## @.str.28
.asciz "\t\t- multiple consecutive delimiters signify \"empty\" colmns\n"
L_.str.29: ## @.str.29
.asciz "\t\t- suitable for reading CSV files, for example\n"
L_.str.30: ## @.str.30
.asciz "\t[-c]: just count the words on each line (0=NO 1=YES) [%d]\n"
L_.str.31: ## @.str.31
.asciz "\nEXAMPLES:\n"
L_.str.32: ## @.str.32
.asciz "\t%s data.txt name,phone,address\n"
L_.str.33: ## @.str.33
.asciz "\tcat temp.txt | %s stdin phone,name,name -d \"\\t \"\n"
L_.str.34: ## @.str.34
.asciz "\nOUTPUT:\n"
L_.str.35: ## @.str.35
.asciz "\tthe labelled columns, in the order and number specified\n"
L_.str.36: ## @.str.36
.asciz "\n--- Error [%s]: missing value for argument \"%s\"\n\n"
L_.str.37: ## @.str.37
.asciz "-n"
L_.str.38: ## @.str.38
.asciz "-s"
L_.str.39: ## @.str.39
.asciz "-o"
L_.str.40: ## @.str.40
.asciz "-d"
L_.str.41: ## @.str.41
.asciz "%s"
L_.str.42: ## @.str.42
.asciz "-c"
L_.str.43: ## @.str.43
.asciz "\n--- Error [%s]: invalid command line argument \"%s\"\n\n"
L_.str.44: ## @.str.44
.asciz "\n--- Error [%s]: invalid -o [%d] must be 0 or 1\n\n"
L_.str.45: ## @.str.45
.asciz "\n--- Error [%s]: invalid -s [%d] must be 0 or 1\n\n"
L_.str.46: ## @.str.46
.asciz "\n--- Error [%s]: invalid -n [%d] must be 0 or 1\n\n"
L_.str.47: ## @.str.47
.asciz "\t"
L_.str.48: ## @.str.48
.asciz "%c"
L_.str.49: ## @.str.49
.asciz "\n--- Error [%s]: invalid -c [%d] must be 0 or 1\n\n"
L_.str.50: ## @.str.50
.asciz "\n--- Error [%s]: insufficient memory\n\n"
L_.str.51: ## @.str.51
.asciz ","
L_.str.52: ## @.str.52
.asciz "stdin"
L_.str.53: ## @.str.53
.asciz "r"
L_.str.54: ## @.str.54
.asciz "\n--- Error [%s]: file \"%s\" not found\n\n"
L_.str.55: ## @.str.55
.asciz "\n--- Error [%s]: readline function encountered insufficient memory\n\n"
L_.str.56: ## @.str.56
.asciz "%ld\n"
L_.str.57: ## @.str.57
.asciz "%s%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:
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, #1152
sub x26, x29, #112
mov w8, #1000
str x8, [x26, #16]
cmp w0, #2
b.gt LBB0_2
; %bb.1:
Lloh0:
adrp x20, ___stderrp@GOTPAGE
Lloh1:
ldr x20, [x20, ___stderrp@GOTPAGEOFF]
ldr x1, [x20]
mov w0, #10
bl _fputc
ldr x3, [x20]
Lloh2:
adrp x19, l_.str.1@PAGE
Lloh3:
add x19, x19, l_.str.1@PAGEOFF
mov x0, x19
mov w1, #71
mov w2, #1
bl _fwrite
ldr x0, [x20]
Lloh4:
adrp x8, l_.str.3@PAGE
Lloh5:
add x8, x8, l_.str.3@PAGEOFF
str x8, [sp]
Lloh6:
adrp x1, l_.str.2@PAGE
Lloh7:
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
ldr x3, [x20]
mov x0, x19
mov w1, #71
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh8:
adrp x0, l_.str.4@PAGE
Lloh9:
add x0, x0, l_.str.4@PAGEOFF
mov w1, #61
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh10:
adrp x0, l_.str.5@PAGE
Lloh11:
add x0, x0, l_.str.5@PAGEOFF
mov w1, #42
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh12:
adrp x0, l_.str.6@PAGE
Lloh13:
add x0, x0, l_.str.6@PAGEOFF
mov w1, #45
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh14:
adrp x0, l_.str.7@PAGE
Lloh15:
add x0, x0, l_.str.7@PAGEOFF
mov w1, #66
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh16:
adrp x0, l_.str.8@PAGE
Lloh17:
add x0, x0, l_.str.8@PAGEOFF
mov w1, #61
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh18:
adrp x0, l_.str.9@PAGE
Lloh19:
add x0, x0, l_.str.9@PAGEOFF
mov w1, #51
mov w2, #1
bl _fwrite
ldr x0, [x20]
Lloh20:
adrp x21, l_.str.11@PAGE
Lloh21:
add x21, x21, l_.str.11@PAGEOFF
str x21, [sp]
Lloh22:
adrp x1, l_.str.10@PAGE
Lloh23:
add x1, x1, l_.str.10@PAGEOFF
bl _fprintf
ldr x3, [x20]
Lloh24:
adrp x0, l_.str.12@PAGE
Lloh25:
add x0, x0, l_.str.12@PAGEOFF
mov w1, #31
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh26:
adrp x0, l_.str.13@PAGE
Lloh27:
add x0, x0, l_.str.13@PAGEOFF
mov w1, #49
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh28:
adrp x0, l_.str.14@PAGE
Lloh29:
add x0, x0, l_.str.14@PAGEOFF
mov w1, #33
mov w2, #1
bl _fwrite
ldr x0, [x20]
str xzr, [sp]
Lloh30:
adrp x1, l_.str.15@PAGE
Lloh31:
add x1, x1, l_.str.15@PAGEOFF
bl _fprintf
ldr x0, [x20]
str xzr, [sp]
Lloh32:
adrp x1, l_.str.16@PAGE
Lloh33:
add x1, x1, l_.str.16@PAGEOFF
bl _fprintf
ldr x3, [x20]
Lloh34:
adrp x0, l_.str.17@PAGE
Lloh35:
add x0, x0, l_.str.17@PAGEOFF
mov w1, #48
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh36:
adrp x0, l_.str.18@PAGE
Lloh37:
add x0, x0, l_.str.18@PAGEOFF
mov w1, #50
mov w2, #1
bl _fwrite
ldr x0, [x20]
str xzr, [sp]
Lloh38:
adrp x1, l_.str.19@PAGE
Lloh39:
add x1, x1, l_.str.19@PAGEOFF
bl _fprintf
ldr x3, [x20]
Lloh40:
adrp x0, l_.str.20@PAGE
Lloh41:
add x0, x0, l_.str.20@PAGEOFF
mov w1, #65
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh42:
adrp x0, l_.str.21@PAGE
Lloh43:
add x0, x0, l_.str.21@PAGEOFF
mov w1, #12
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh44:
adrp x0, l_.str.22@PAGE
Lloh45:
add x0, x0, l_.str.22@PAGEOFF
mov w1, #39
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh46:
adrp x0, l_.str.23@PAGE
Lloh47:
add x0, x0, l_.str.23@PAGEOFF
mov w1, #65
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh48:
adrp x0, l_.str.24@PAGE
Lloh49:
add x0, x0, l_.str.24@PAGEOFF
mov w1, #55
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh50:
adrp x0, l_.str.25@PAGE
Lloh51:
add x0, x0, l_.str.25@PAGEOFF
mov w1, #10
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh52:
adrp x0, l_.str.26@PAGE
Lloh53:
add x0, x0, l_.str.26@PAGEOFF
mov w1, #52
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh54:
adrp x0, l_.str.27@PAGE
Lloh55:
add x0, x0, l_.str.27@PAGEOFF
mov w1, #59
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh56:
adrp x0, l_.str.28@PAGE
Lloh57:
add x0, x0, l_.str.28@PAGEOFF
mov w1, #59
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh58:
adrp x0, l_.str.29@PAGE
Lloh59:
add x0, x0, l_.str.29@PAGEOFF
mov w1, #48
mov w2, #1
bl _fwrite
ldr x0, [x20]
str xzr, [sp]
Lloh60:
adrp x1, l_.str.30@PAGE
Lloh61:
add x1, x1, l_.str.30@PAGEOFF
bl _fprintf
ldr x3, [x20]
Lloh62:
adrp x0, l_.str.31@PAGE
Lloh63:
add x0, x0, l_.str.31@PAGEOFF
mov w1, #11
mov w2, #1
bl _fwrite
ldr x0, [x20]
str x21, [sp]
Lloh64:
adrp x1, l_.str.32@PAGE
Lloh65:
add x1, x1, l_.str.32@PAGEOFF
bl _fprintf
ldr x0, [x20]
str x21, [sp]
Lloh66:
adrp x1, l_.str.33@PAGE
Lloh67:
add x1, x1, l_.str.33@PAGEOFF
bl _fprintf
ldr x3, [x20]
Lloh68:
adrp x0, l_.str.34@PAGE
Lloh69:
add x0, x0, l_.str.34@PAGEOFF
mov w1, #9
mov w2, #1
bl _fwrite
ldr x3, [x20]
Lloh70:
adrp x0, l_.str.35@PAGE
Lloh71:
add x0, x0, l_.str.35@PAGEOFF
mov w1, #57
mov w2, #1
bl _fwrite
ldr x3, [x20]
mov x0, x19
mov w1, #71
mov w2, #1
bl _fwrite
ldr x1, [x20]
mov w0, #10
bl _fputc
mov w0, #0
bl _exit
LBB0_2:
mov x24, x1
ldp x23, x19, [x1, #8]
cmp w0, #3
b.ne LBB0_7
; %bb.3:
mov w24, #0
stp xzr, xzr, [sp, #96] ; 16-byte Folded Spill
mov w22, #0
LBB0_4:
Lloh72:
adrp x3, l_.str.47@PAGE
Lloh73:
add x3, x3, l_.str.47@PAGEOFF
add x0, sp, #116
mov w1, #0
mov w2, #4
bl ___sprintf_chk
mov w8, #1
str w8, [sp, #76] ; 4-byte Folded Spill
cmp w22, #2
b.hs LBB0_116
LBB0_5:
mov x0, x19
bl _strlen
lsl x0, x0, #3
bl _malloc
str x0, [sp, #80] ; 8-byte Folded Spill
cbnz x0, LBB0_28
LBB0_6:
Lloh74:
adrp x8, ___stderrp@GOTPAGE
Lloh75:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh76:
ldr x0, [x8]
Lloh77:
adrp x8, l_.str.11@PAGE
Lloh78:
add x8, x8, l_.str.11@PAGEOFF
str x8, [sp]
Lloh79:
adrp x1, l_.str.50@PAGE
Lloh80:
add x1, x1, l_.str.50@PAGEOFF
b LBB0_117
LBB0_7:
str x23, [sp, #24] ; 8-byte Folded Spill
mov w28, #0
stp xzr, xzr, [sp, #96] ; 16-byte Folded Spill
mov w22, #0
str wzr, [sp, #88] ; 4-byte Folded Spill
mov w21, w0
mov w23, #3
Lloh81:
adrp x25, l_.str.37@PAGE
Lloh82:
add x25, x25, l_.str.37@PAGEOFF
Lloh83:
adrp x26, l_.str.38@PAGE
Lloh84:
add x26, x26, l_.str.38@PAGEOFF
Lloh85:
adrp x27, l_.str.39@PAGE
Lloh86:
add x27, x27, l_.str.39@PAGEOFF
b LBB0_10
LBB0_8: ; in Loop: Header=BB0_10 Depth=1
ldr x0, [x24, x23, lsl #3]
bl _atoi
str x0, [sp, #104] ; 8-byte Folded Spill
LBB0_9: ; in Loop: Header=BB0_10 Depth=1
add x23, x23, #1
cmp x23, x21
b.ge LBB0_21
LBB0_10: ; =>This Inner Loop Header: Depth=1
ldr x20, [x24, x23, lsl #3]
ldrb w8, [x20]
cmp w8, #45
b.ne LBB0_9
; %bb.11: ; in Loop: Header=BB0_10 Depth=1
add x23, x23, #1
cmp x23, x21
b.ge LBB0_26
; %bb.12: ; in Loop: Header=BB0_10 Depth=1
mov x0, x20
mov x1, x25
bl _strcmp
cbz w0, LBB0_8
; %bb.13: ; in Loop: Header=BB0_10 Depth=1
mov x0, x20
mov x1, x26
bl _strcmp
cbz w0, LBB0_18
; %bb.14: ; in Loop: Header=BB0_10 Depth=1
mov x0, x20
mov x1, x27
bl _strcmp
cbz w0, LBB0_19
; %bb.15: ; in Loop: Header=BB0_10 Depth=1
mov x0, x20
Lloh87:
adrp x1, l_.str.40@PAGE
Lloh88:
add x1, x1, l_.str.40@PAGEOFF
bl _strcmp
cbz w0, LBB0_20
; %bb.16: ; in Loop: Header=BB0_10 Depth=1
mov x0, x20
Lloh89:
adrp x1, l_.str.42@PAGE
Lloh90:
add x1, x1, l_.str.42@PAGEOFF
bl _strcmp
cbnz w0, LBB0_114
; %bb.17: ; in Loop: Header=BB0_10 Depth=1
ldr x0, [x24, x23, lsl #3]
bl _atoi
mov x28, x0
b LBB0_9
LBB0_18: ; in Loop: Header=BB0_10 Depth=1
ldr x0, [x24, x23, lsl #3]
bl _atoi
str x0, [sp, #96] ; 8-byte Folded Spill
b LBB0_9
LBB0_19: ; in Loop: Header=BB0_10 Depth=1
ldr x0, [x24, x23, lsl #3]
bl _atoi
mov x22, x0
b LBB0_9
LBB0_20: ; in Loop: Header=BB0_10 Depth=1
ldr x0, [x24, x23, lsl #3]
bl _xf_strescape1
str x0, [sp]
add x0, sp, #120
mov w1, #0
mov w2, #1000
Lloh91:
adrp x3, l_.str.41@PAGE
Lloh92:
add x3, x3, l_.str.41@PAGEOFF
bl ___sprintf_chk
mov w8, #1
str w8, [sp, #88] ; 4-byte Folded Spill
b LBB0_9
LBB0_21:
mov x24, x22
cmp w24, #2
b.hs LBB0_27
; %bb.22:
ldr x9, [sp, #96] ; 8-byte Folded Reload
cmp w9, #2
b.hs LBB0_31
; %bb.23:
ldr x9, [sp, #104] ; 8-byte Folded Reload
cmp w9, #2
b.hs LBB0_34
; %bb.24:
ldr w8, [sp, #88] ; 4-byte Folded Reload
cbnz w8, LBB0_115
; %bb.25:
ldr x23, [sp, #24] ; 8-byte Folded Reload
sub x26, x29, #112
mov x22, x28
b LBB0_4
LBB0_26:
Lloh93:
adrp x8, ___stderrp@GOTPAGE
Lloh94:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh95:
ldr x0, [x8]
Lloh96:
adrp x8, l_.str.11@PAGE
Lloh97:
add x8, x8, l_.str.11@PAGEOFF
stp x8, x20, [sp]
Lloh98:
adrp x1, l_.str.36@PAGE
Lloh99:
add x1, x1, l_.str.36@PAGEOFF
b LBB0_117
LBB0_27:
Lloh100:
adrp x8, ___stderrp@GOTPAGE
Lloh101:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh102:
ldr x0, [x8]
Lloh103:
adrp x8, l_.str.11@PAGE
Lloh104:
add x8, x8, l_.str.11@PAGEOFF
stp x8, x24, [sp]
Lloh105:
adrp x1, l_.str.44@PAGE
Lloh106:
add x1, x1, l_.str.44@PAGEOFF
b LBB0_117
LBB0_28:
str xzr, [x26]
Lloh107:
adrp x1, l_.str.51@PAGE
Lloh108:
add x1, x1, l_.str.51@PAGEOFF
sub x2, x29, #112
mov x0, x19
bl _xf_lineparse2
mov x25, x0
ldr x21, [x26]
cmp x21, #1
str x22, [sp, #64] ; 8-byte Folded Spill
b.lt LBB0_32
; %bb.29:
cmp x21, #8
b.hs LBB0_35
; %bb.30:
mov x8, #0
b LBB0_38
LBB0_31:
Lloh109:
adrp x8, ___stderrp@GOTPAGE
Lloh110:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh111:
ldr x0, [x8]
Lloh112:
adrp x8, l_.str.11@PAGE
Lloh113:
add x8, x8, l_.str.11@PAGEOFF
stp x8, x9, [sp]
Lloh114:
adrp x1, l_.str.45@PAGE
Lloh115:
add x1, x1, l_.str.45@PAGEOFF
b LBB0_117
LBB0_32:
lsl x0, x21, #3
bl _malloc
cbz x0, LBB0_6
; %bb.33:
mov x28, x0
b LBB0_46
LBB0_34:
Lloh116:
adrp x8, ___stderrp@GOTPAGE
Lloh117:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh118:
ldr x0, [x8]
Lloh119:
adrp x8, l_.str.11@PAGE
Lloh120:
add x8, x8, l_.str.11@PAGEOFF
stp x8, x9, [sp]
Lloh121:
adrp x1, l_.str.46@PAGE
Lloh122:
add x1, x1, l_.str.46@PAGEOFF
b LBB0_117
LBB0_35:
and x8, x21, #0xfffffffffffffff8
add x9, x25, #32
ldr x10, [sp, #80] ; 8-byte Folded Reload
add x10, x10, #32
dup.2d v0, x19
mov x11, x8
LBB0_36: ; =>This Inner Loop Header: Depth=1
ldp q1, q2, [x9, #-32]
ldp q3, q4, [x9], #64
add.2d v1, v0, v1
add.2d v2, v0, v2
add.2d v3, v0, v3
add.2d v4, v0, v4
stp q1, q2, [x10, #-32]
stp q3, q4, [x10], #64
subs x11, x11, #8
b.ne LBB0_36
; %bb.37:
cmp x21, x8
b.eq LBB0_40
LBB0_38:
sub x9, x21, x8
lsl x10, x8, #3
ldr x8, [sp, #80] ; 8-byte Folded Reload
add x8, x8, x10
add x10, x25, x10
LBB0_39: ; =>This Inner Loop Header: Depth=1
ldr x11, [x10], #8
add x11, x19, x11
str x11, [x8], #8
subs x9, x9, #1
b.ne LBB0_39
LBB0_40:
lsl x20, x21, #3
mov x0, x20
bl _malloc
cbz x0, LBB0_6
; %bb.41:
mov x28, x0
cmp x21, #0
b.le LBB0_46
; %bb.42:
mov x0, x28
mov w1, #255
mov x2, x20
bl _memset
ldr x8, [sp, #104] ; 8-byte Folded Reload
cmp w8, #1
b.ne LBB0_46
; %bb.43:
mov x20, #0
LBB0_44: ; =>This Inner Loop Header: Depth=1
lsl x22, x20, #3
ldr x8, [x25, x22]
add x0, x19, x8
bl _atol
sub x8, x0, #1
str x8, [x28, x22]
add x20, x20, #1
cmp x21, x20
b.ne LBB0_44
; %bb.45:
ldr x22, [sp, #64] ; 8-byte Folded Reload
LBB0_46:
Lloh123:
adrp x1, l_.str.52@PAGE
Lloh124:
add x1, x1, l_.str.52@PAGEOFF
mov x0, x23
bl _strcmp
str x23, [sp, #24] ; 8-byte Folded Spill
cbnz w0, LBB0_48
; %bb.47:
Lloh125:
adrp x8, ___stdinp@GOTPAGE
Lloh126:
ldr x8, [x8, ___stdinp@GOTPAGEOFF]
Lloh127:
ldr x27, [x8]
b LBB0_50
LBB0_48:
Lloh128:
adrp x1, l_.str.53@PAGE
Lloh129:
add x1, x1, l_.str.53@PAGEOFF
mov x0, x23
bl _fopen
mov x27, x0
cbnz x0, LBB0_50
; %bb.49:
Lloh130:
adrp x8, ___stderrp@GOTPAGE
Lloh131:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh132:
ldr x0, [x8]
Lloh133:
adrp x8, l_.str.11@PAGE
Lloh134:
add x8, x8, l_.str.11@PAGEOFF
ldr x9, [sp, #24] ; 8-byte Folded Reload
stp x8, x9, [sp]
Lloh135:
adrp x1, l_.str.54@PAGE
Lloh136:
add x1, x1, l_.str.54@PAGEOFF
b LBB0_117
LBB0_50:
sub x1, x29, #96
mov x0, #0
mov x2, x27
bl _xf_lineread1
cbnz x0, LBB0_55
LBB0_51:
Lloh137:
adrp x1, l_.str.52@PAGE
Lloh138:
add x1, x1, l_.str.52@PAGEOFF
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _strcmp
cbz w0, LBB0_53
; %bb.52:
mov x0, x27
bl _fclose
LBB0_53:
mov x0, x28
bl _free
cbnz x25, LBB0_118
LBB0_54:
mov w0, #0
bl _exit
LBB0_55:
mov x21, #0
add x9, x28, #32
add x8, x28, #8
stp x8, x9, [sp, #32] ; 16-byte Folded Spill
ldr x23, [sp, #96] ; 8-byte Folded Reload
str x24, [sp, #48] ; 8-byte Folded Spill
b LBB0_58
LBB0_56: ; in Loop: Header=BB0_58 Depth=1
str x22, [sp]
Lloh139:
adrp x0, l_.str.56@PAGE
Lloh140:
add x0, x0, l_.str.56@PAGEOFF
bl _printf
mov w19, #1
ldr x22, [sp, #64] ; 8-byte Folded Reload
LBB0_57: ; in Loop: Header=BB0_58 Depth=1
sub x1, x29, #96
mov x0, x21
mov x2, x27
bl _xf_lineread1
mov x21, x19
cbz x0, LBB0_51
LBB0_58: ; =>This Loop Header: Depth=1
; Child Loop BB0_60 Depth 2
; Child Loop BB0_103 Depth 2
; Child Loop BB0_76 Depth 2
; Child Loop BB0_79 Depth 3
; Child Loop BB0_87 Depth 2
; Child Loop BB0_91 Depth 3
; Child Loop BB0_94 Depth 3
; Child Loop BB0_111 Depth 2
str x0, [sp, #88] ; 8-byte Folded Spill
mov x20, x0
b LBB0_60
LBB0_59: ; in Loop: Header=BB0_60 Depth=2
sub x1, x29, #96
mov x0, x20
mov x2, x27
bl _xf_lineread1
mov x20, x0
cbz x0, LBB0_51
LBB0_60: ; Parent Loop BB0_58 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [x26, #16]
cmn x8, #1
b.eq LBB0_119
; %bb.61: ; in Loop: Header=BB0_60 Depth=2
cmp w23, #1
b.ne LBB0_65
; %bb.62: ; in Loop: Header=BB0_60 Depth=2
ldrb w8, [x20]
cmp w8, #35
b.eq LBB0_59
; %bb.63: ; in Loop: Header=BB0_60 Depth=2
mov x0, x20
bl _strlen
cmp x0, #1
b.ls LBB0_59
; %bb.64: ; in Loop: Header=BB0_58 Depth=1
str x20, [sp, #88] ; 8-byte Folded Spill
LBB0_65: ; in Loop: Header=BB0_58 Depth=1
add x19, x21, #1
cbnz x21, LBB0_69
; %bb.66: ; in Loop: Header=BB0_58 Depth=1
ldr x8, [sp, #104] ; 8-byte Folded Reload
cbnz w8, LBB0_69
; %bb.67: ; in Loop: Header=BB0_58 Depth=1
ldr w8, [sp, #76] ; 4-byte Folded Reload
cbz w8, LBB0_71
; %bb.68: ; in Loop: Header=BB0_58 Depth=1
sub x1, x29, #104
ldr x21, [sp, #88] ; 8-byte Folded Reload
mov x0, x21
bl _xf_lineparse1
b LBB0_72
LBB0_69: ; in Loop: Header=BB0_58 Depth=1
ldr w8, [sp, #76] ; 4-byte Folded Reload
cbz w8, LBB0_81
; %bb.70: ; in Loop: Header=BB0_58 Depth=1
sub x1, x29, #104
ldr x21, [sp, #88] ; 8-byte Folded Reload
mov x0, x21
bl _xf_lineparse1
b LBB0_82
LBB0_71: ; in Loop: Header=BB0_58 Depth=1
add x1, sp, #120
sub x2, x29, #104
ldr x21, [sp, #88] ; 8-byte Folded Reload
mov x0, x21
bl _xf_lineparse2
LBB0_72: ; in Loop: Header=BB0_58 Depth=1
mov x25, x0
ldr x22, [x26, #8]
ldr x8, [sp, #64] ; 8-byte Folded Reload
cmp w8, #1
b.eq LBB0_56
; %bb.73: ; in Loop: Header=BB0_58 Depth=1
str x19, [sp, #56] ; 8-byte Folded Spill
ldr x19, [x26]
cmp x22, #1
b.lt LBB0_84
; %bb.74: ; in Loop: Header=BB0_58 Depth=1
mov x23, #0
b LBB0_76
LBB0_75: ; in Loop: Header=BB0_76 Depth=2
add x23, x23, #1
cmp x23, x22
b.eq LBB0_84
LBB0_76: ; Parent Loop BB0_58 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_79 Depth 3
cmp x19, #1
b.lt LBB0_75
; %bb.77: ; in Loop: Header=BB0_76 Depth=2
ldr x8, [x25, x23, lsl #3]
ldp x24, x9, [sp, #80] ; 16-byte Folded Reload
add x20, x9, x8
mov x26, x28
mov x21, x19
b LBB0_79
LBB0_78: ; in Loop: Header=BB0_79 Depth=3
add x26, x26, #8
add x24, x24, #8
subs x21, x21, #1
b.eq LBB0_75
LBB0_79: ; Parent Loop BB0_58 Depth=1
; Parent Loop BB0_76 Depth=2
; => This Inner Loop Header: Depth=3
ldr x0, [x24]
mov x1, x20
bl _strcmp
cbnz w0, LBB0_78
; %bb.80: ; in Loop: Header=BB0_79 Depth=3
str x23, [x26]
b LBB0_78
LBB0_81: ; in Loop: Header=BB0_58 Depth=1
add x1, sp, #120
sub x2, x29, #104
ldr x21, [sp, #88] ; 8-byte Folded Reload
mov x0, x21
bl _xf_lineparse2
LBB0_82: ; in Loop: Header=BB0_58 Depth=1
mov x25, x0
ldr x8, [x26, #8]
cmp w22, #1
b.ne LBB0_95
; %bb.83: ; in Loop: Header=BB0_58 Depth=1
str x8, [sp]
Lloh141:
adrp x0, l_.str.56@PAGE
Lloh142:
add x0, x0, l_.str.56@PAGEOFF
bl _printf
b LBB0_57
LBB0_84: ; in Loop: Header=BB0_58 Depth=1
subs x8, x19, #1
b.lt LBB0_120
; %bb.85: ; in Loop: Header=BB0_58 Depth=1
mov x9, #0
ldp x10, x22, [sp, #40] ; 16-byte Folded Reload
mov x12, x8
mov x11, x19
sub x26, x29, #112
ldp x21, x23, [sp, #88] ; 16-byte Folded Reload
ldr x0, [sp, #32] ; 8-byte Folded Reload
b LBB0_87
LBB0_86: ; in Loop: Header=BB0_87 Depth=2
add x9, x9, #1
sub x12, x12, #1
add x10, x10, #8
cmp x9, x19
b.eq LBB0_107
LBB0_87: ; Parent Loop BB0_58 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_91 Depth 3
; Child Loop BB0_94 Depth 3
ldr x13, [x28, x9, lsl #3]
tbz x13, #63, LBB0_86
; %bb.88: ; in Loop: Header=BB0_87 Depth=2
sub x11, x11, #1
cmp x8, x9
b.le LBB0_86
; %bb.89: ; in Loop: Header=BB0_87 Depth=2
sub x14, x8, x9
mov x13, x9
cmp x14, #8
b.lo LBB0_93
; %bb.90: ; in Loop: Header=BB0_87 Depth=2
and x15, x12, #0xfffffffffffffff8
and x16, x14, #0xfffffffffffffff8
add x13, x9, x16
mov x17, x10
LBB0_91: ; Parent Loop BB0_58 Depth=1
; Parent Loop BB0_87 Depth=2
; => This Inner Loop Header: Depth=3
ldur q0, [x17, #-24]
ldur q1, [x17, #-8]
ldur q2, [x17, #8]
ldur q3, [x17, #24]
stp q0, q1, [x17, #-32]
stp q2, q3, [x17], #64
subs x15, x15, #8
b.ne LBB0_91
; %bb.92: ; in Loop: Header=BB0_87 Depth=2
cmp x14, x16
b.eq LBB0_86
LBB0_93: ; in Loop: Header=BB0_87 Depth=2
add x14, x0, x13, lsl #3
sub x13, x8, x13
LBB0_94: ; Parent Loop BB0_58 Depth=1
; Parent Loop BB0_87 Depth=2
; => This Inner Loop Header: Depth=3
ldr x15, [x14]
stur x15, [x14, #-8]
add x14, x14, #8
subs x13, x13, #1
b.ne LBB0_94
b LBB0_86
LBB0_95: ; in Loop: Header=BB0_58 Depth=1
str x19, [sp, #56] ; 8-byte Folded Spill
mov x19, x22
mov x22, x24
add x24, sp, #116
cmp x8, #1
b.lt LBB0_106
; %bb.96: ; in Loop: Header=BB0_58 Depth=1
ldr x10, [x28]
ldr x9, [x25, x10, lsl #3]
tbnz x9, #63, LBB0_99
; %bb.97: ; in Loop: Header=BB0_58 Depth=1
cmp x10, x8
b.ge LBB0_99
; %bb.98: ; in Loop: Header=BB0_58 Depth=1
add x8, x21, x9
str x8, [sp]
Lloh143:
adrp x0, l_.str.41@PAGE
Lloh144:
add x0, x0, l_.str.41@PAGEOFF
bl _printf
LBB0_99: ; in Loop: Header=BB0_58 Depth=1
ldr x8, [x26]
cmp x8, #2
b.lt LBB0_106
; %bb.100: ; in Loop: Header=BB0_58 Depth=1
mov w20, #1
b LBB0_103
LBB0_101: ; in Loop: Header=BB0_103 Depth=2
str x24, [sp]
Lloh145:
adrp x0, l_.str.41@PAGE
Lloh146:
add x0, x0, l_.str.41@PAGEOFF
LBB0_102: ; in Loop: Header=BB0_103 Depth=2
bl _printf
add x20, x20, #1
ldr x8, [x26]
cmp x20, x8
b.ge LBB0_106
LBB0_103: ; Parent Loop BB0_58 Depth=1
; => This Inner Loop Header: Depth=2
ldr x9, [x28, x20, lsl #3]
ldr x8, [x25, x9, lsl #3]
tbnz x8, #63, LBB0_101
; %bb.104: ; in Loop: Header=BB0_103 Depth=2
ldr x10, [x26, #8]
cmp x9, x10
b.ge LBB0_101
; %bb.105: ; in Loop: Header=BB0_103 Depth=2
add x8, x21, x8
stp x24, x8, [sp]
Lloh147:
adrp x0, l_.str.57@PAGE
Lloh148:
add x0, x0, l_.str.57@PAGEOFF
b LBB0_102
LBB0_106: ; in Loop: Header=BB0_58 Depth=1
mov w0, #10
bl _putchar
mov x24, x22
mov x22, x19
ldr x19, [sp, #56] ; 8-byte Folded Reload
b LBB0_57
LBB0_107: ; in Loop: Header=BB0_58 Depth=1
str x11, [x26]
cmp x11, #0
b.le LBB0_54
; %bb.108: ; in Loop: Header=BB0_58 Depth=1
Lloh149:
adrp x24, l_.str.57@PAGE
Lloh150:
add x24, x24, l_.str.57@PAGEOFF
cbnz w22, LBB0_113
; %bb.109: ; in Loop: Header=BB0_58 Depth=1
ldr x8, [x28]
ldr x8, [x25, x8, lsl #3]
add x8, x21, x8
str x8, [sp]
Lloh151:
adrp x0, l_.str.41@PAGE
Lloh152:
add x0, x0, l_.str.41@PAGEOFF
add x20, sp, #116
bl _printf
ldr x8, [x26]
cmp x8, #2
b.lt LBB0_112
; %bb.110: ; in Loop: Header=BB0_58 Depth=1
mov w19, #1
LBB0_111: ; Parent Loop BB0_58 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [x28, x19, lsl #3]
ldr x8, [x25, x8, lsl #3]
add x8, x21, x8
stp x20, x8, [sp]
mov x0, x24
bl _printf
add x19, x19, #1
ldr x8, [x26]
cmp x19, x8
b.lt LBB0_111
LBB0_112: ; in Loop: Header=BB0_58 Depth=1
mov w0, #10
bl _putchar
LBB0_113: ; in Loop: Header=BB0_58 Depth=1
mov x24, x22
ldp x19, x22, [sp, #56] ; 16-byte Folded Reload
b LBB0_57
LBB0_114:
Lloh153:
adrp x8, ___stderrp@GOTPAGE
Lloh154:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh155:
ldr x0, [x8]
Lloh156:
adrp x8, l_.str.11@PAGE
Lloh157:
add x8, x8, l_.str.11@PAGEOFF
stp x8, x20, [sp]
Lloh158:
adrp x1, l_.str.43@PAGE
Lloh159:
add x1, x1, l_.str.43@PAGEOFF
b LBB0_117
LBB0_115:
ldrsb x8, [sp, #120]
str x8, [sp]
Lloh160:
adrp x3, l_.str.48@PAGE
Lloh161:
add x3, x3, l_.str.48@PAGEOFF
add x0, sp, #116
mov w1, #0
mov w2, #4
bl ___sprintf_chk
str wzr, [sp, #76] ; 4-byte Folded Spill
ldr x23, [sp, #24] ; 8-byte Folded Reload
sub x26, x29, #112
mov x22, x28
cmp w22, #2
b.lo LBB0_5
LBB0_116:
Lloh162:
adrp x8, ___stderrp@GOTPAGE
Lloh163:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh164:
ldr x0, [x8]
Lloh165:
adrp x8, l_.str.11@PAGE
Lloh166:
add x8, x8, l_.str.11@PAGEOFF
stp x8, x22, [sp]
Lloh167:
adrp x1, l_.str.49@PAGE
Lloh168:
add x1, x1, l_.str.49@PAGEOFF
LBB0_117:
bl _fprintf
mov w0, #1
bl _exit
LBB0_118:
mov x0, x25
bl _free
mov w0, #0
bl _exit
LBB0_119:
Lloh169:
adrp x8, ___stderrp@GOTPAGE
Lloh170:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh171:
ldr x0, [x8]
Lloh172:
adrp x8, l_.str.11@PAGE
Lloh173:
add x8, x8, l_.str.11@PAGEOFF
str x8, [sp]
Lloh174:
adrp x1, l_.str.55@PAGE
Lloh175:
add x1, x1, l_.str.55@PAGEOFF
b LBB0_117
LBB0_120:
sub x8, x29, #112
str x19, [x8]
mov w0, #0
bl _exit
.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 AdrpAdd Lloh12, Lloh13
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh72, Lloh73
.loh AdrpAdd Lloh79, Lloh80
.loh AdrpAdd Lloh77, Lloh78
.loh AdrpLdrGotLdr Lloh74, Lloh75, Lloh76
.loh AdrpAdd Lloh85, Lloh86
.loh AdrpAdd Lloh83, Lloh84
.loh AdrpAdd Lloh81, Lloh82
.loh AdrpAdd Lloh87, Lloh88
.loh AdrpAdd Lloh89, Lloh90
.loh AdrpAdd Lloh91, Lloh92
.loh AdrpAdd Lloh98, Lloh99
.loh AdrpAdd Lloh96, Lloh97
.loh AdrpLdrGotLdr Lloh93, Lloh94, Lloh95
.loh AdrpAdd Lloh105, Lloh106
.loh AdrpAdd Lloh103, Lloh104
.loh AdrpLdrGotLdr Lloh100, Lloh101, Lloh102
.loh AdrpAdd Lloh107, Lloh108
.loh AdrpAdd Lloh114, Lloh115
.loh AdrpAdd Lloh112, Lloh113
.loh AdrpLdrGotLdr Lloh109, Lloh110, Lloh111
.loh AdrpAdd Lloh121, Lloh122
.loh AdrpAdd Lloh119, Lloh120
.loh AdrpLdrGotLdr Lloh116, Lloh117, Lloh118
.loh AdrpAdd Lloh123, Lloh124
.loh AdrpLdrGotLdr Lloh125, Lloh126, Lloh127
.loh AdrpAdd Lloh128, Lloh129
.loh AdrpAdd Lloh135, Lloh136
.loh AdrpAdd Lloh133, Lloh134
.loh AdrpLdrGotLdr Lloh130, Lloh131, Lloh132
.loh AdrpAdd Lloh137, Lloh138
.loh AdrpAdd Lloh139, Lloh140
.loh AdrpAdd Lloh141, Lloh142
.loh AdrpAdd Lloh143, Lloh144
.loh AdrpAdd Lloh145, Lloh146
.loh AdrpAdd Lloh147, Lloh148
.loh AdrpAdd Lloh149, Lloh150
.loh AdrpAdd Lloh151, Lloh152
.loh AdrpAdd Lloh158, Lloh159
.loh AdrpAdd Lloh156, Lloh157
.loh AdrpLdrGotLdr Lloh153, Lloh154, Lloh155
.loh AdrpAdd Lloh160, Lloh161
.loh AdrpAdd Lloh167, Lloh168
.loh AdrpAdd Lloh165, Lloh166
.loh AdrpLdrGotLdr Lloh162, Lloh163, Lloh164
.loh AdrpAdd Lloh174, Lloh175
.loh AdrpAdd Lloh172, Lloh173
.loh AdrpLdrGotLdr Lloh169, Lloh170, Lloh171
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str.1: ; @.str.1
.asciz "----------------------------------------------------------------------\n"
l_.str.2: ; @.str.2
.asciz "%s\n"
l_.str.3: ; @.str.3
.asciz "xe-cut1 v 4: 11.November.2018 [JRH]"
l_.str.4: ; @.str.4
.asciz "Extract columns from input based on labels in the first line\n"
l_.str.5: ; @.str.5
.asciz "\t- the order of columns can be rearranged\n"
l_.str.6: ; @.str.6
.asciz "\t- multiple copies of a column can be output\n"
l_.str.7: ; @.str.7
.asciz "\t- for duplicated labels, only the last column matching is output\n"
l_.str.8: ; @.str.8
.asciz "\t- the line-count will be preserved (blank lines are output)\n"
l_.str.9: ; @.str.9
.asciz "\t- missing columns will be replaced by a delimiter\n"
l_.str.10: ; @.str.10
.asciz "\nUSAGE: %s [input] [labels] [options]\n"
l_.str.11: ; @.str.11
.asciz "xe-cut1"
l_.str.12: ; @.str.12
.asciz "\t[input]: file name or \"stdin\"\n"
l_.str.13: ; @.str.13
.asciz "\t[labels]: comma-separated list of column labels\n"
l_.str.14: ; @.str.14
.asciz "\nVALID OPTIONS (defaults in []):\n"
l_.str.15: ; @.str.15
.asciz "\t[-n]: labels are numeric (1) instead of defined by header (0) [%d]\n"
l_.str.16: ; @.str.16
.asciz "\t[-s]: skip #-comments and blank lines (0=NO 1=YES) [%d]\n"
l_.str.17: ; @.str.17
.asciz "\t\tNOTE: \"#\" must be first character on the line\n"
l_.str.18: ; @.str.18
.asciz "\t\tNOTE: blank lines cannot contain spaces or tabs\n"
l_.str.19: ; @.str.19
.asciz "\t[-o]: omit outputting header-line (0=NO, 1=YES) [%d]\n"
l_.str.20: ; @.str.20
.asciz "\t[-d]: characters to use as column-delimiters (unset by default)\n"
l_.str.21: ; @.str.21
.asciz "\t\tif unset:\n"
l_.str.22: ; @.str.22
.asciz "\t\t- white-space (blanks,tabs) are used\n"
l_.str.23: ; @.str.23
.asciz "\t\t- multiple consecutive delimiters are treated as one delimiter\n"
l_.str.24: ; @.str.24
.asciz "\t\t- suitable for reading files without \"empty\" columns\n"
l_.str.25: ; @.str.25
.asciz "\t\tif set:\n"
l_.str.26: ; @.str.26
.asciz "\t\t- behaviour is similar to the linux \"cut\" command\n"
l_.str.27: ; @.str.27
.asciz "\t\t- any matching delimiter in the input marks a new column\n"
l_.str.28: ; @.str.28
.asciz "\t\t- multiple consecutive delimiters signify \"empty\" colmns\n"
l_.str.29: ; @.str.29
.asciz "\t\t- suitable for reading CSV files, for example\n"
l_.str.30: ; @.str.30
.asciz "\t[-c]: just count the words on each line (0=NO 1=YES) [%d]\n"
l_.str.31: ; @.str.31
.asciz "\nEXAMPLES:\n"
l_.str.32: ; @.str.32
.asciz "\t%s data.txt name,phone,address\n"
l_.str.33: ; @.str.33
.asciz "\tcat temp.txt | %s stdin phone,name,name -d \"\\t \"\n"
l_.str.34: ; @.str.34
.asciz "\nOUTPUT:\n"
l_.str.35: ; @.str.35
.asciz "\tthe labelled columns, in the order and number specified\n"
l_.str.36: ; @.str.36
.asciz "\n--- Error [%s]: missing value for argument \"%s\"\n\n"
l_.str.37: ; @.str.37
.asciz "-n"
l_.str.38: ; @.str.38
.asciz "-s"
l_.str.39: ; @.str.39
.asciz "-o"
l_.str.40: ; @.str.40
.asciz "-d"
l_.str.41: ; @.str.41
.asciz "%s"
l_.str.42: ; @.str.42
.asciz "-c"
l_.str.43: ; @.str.43
.asciz "\n--- Error [%s]: invalid command line argument \"%s\"\n\n"
l_.str.44: ; @.str.44
.asciz "\n--- Error [%s]: invalid -o [%d] must be 0 or 1\n\n"
l_.str.45: ; @.str.45
.asciz "\n--- Error [%s]: invalid -s [%d] must be 0 or 1\n\n"
l_.str.46: ; @.str.46
.asciz "\n--- Error [%s]: invalid -n [%d] must be 0 or 1\n\n"
l_.str.47: ; @.str.47
.asciz "\t"
l_.str.48: ; @.str.48
.asciz "%c"
l_.str.49: ; @.str.49
.asciz "\n--- Error [%s]: invalid -c [%d] must be 0 or 1\n\n"
l_.str.50: ; @.str.50
.asciz "\n--- Error [%s]: insufficient memory\n\n"
l_.str.51: ; @.str.51
.asciz ","
l_.str.52: ; @.str.52
.asciz "stdin"
l_.str.53: ; @.str.53
.asciz "r"
l_.str.54: ; @.str.54
.asciz "\n--- Error [%s]: file \"%s\" not found\n\n"
l_.str.55: ; @.str.55
.asciz "\n--- Error [%s]: readline function encountered insufficient memory\n\n"
l_.str.56: ; @.str.56
.asciz "%ld\n"
l_.str.57: ; @.str.57
.asciz "%s%s"
.subsections_via_symbols
| the_stack_data/89200115.c | stack |
.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
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
mov w0, #0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| the_stack_data/105148.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _alphanum ## -- Begin function alphanum
.p2align 4, 0x90
_alphanum: ## @alphanum
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $0, (%rsi)
movb (%rdi), %cl
testb %cl, %cl
je LBB0_13
## %bb.1:
movb 1(%rdi), %al
testb %al, %al
je LBB0_13
## %bb.2:
leal -97(%rcx), %edx
cmpb $5, %dl
jbe LBB0_3
## %bb.4:
leal -65(%rcx), %edx
cmpb $5, %dl
ja LBB0_5
LBB0_3:
shlb $4, %cl
addb $-112, %cl
LBB0_7:
leal -97(%rax), %edx
cmpb $5, %dl
ja LBB0_9
## %bb.8:
addb $-87, %al
jmp LBB0_11
LBB0_9:
leal -65(%rax), %edx
cmpb $5, %dl
ja LBB0_12
## %bb.10:
addb $-55, %al
jmp LBB0_11
LBB0_5:
leal -48(%rcx), %edx
cmpb $9, %dl
ja LBB0_13
## %bb.6:
shlb $4, %cl
jmp LBB0_7
LBB0_12:
addb $-48, %al
cmpb $9, %al
ja LBB0_13
LBB0_11:
addb %cl, %al
movl $1, (%rsi)
jmp LBB0_14
LBB0_13:
xorl %eax, %eax
LBB0_14:
movsbl %al, %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 _alphanum ; -- Begin function alphanum
.p2align 2
_alphanum: ; @alphanum
.cfi_startproc
; %bb.0:
str wzr, [x1]
ldrb w9, [x0]
cbz w9, LBB0_13
; %bb.1:
ldrb w8, [x0, #1]
cbz w8, LBB0_14
; %bb.2:
sub w10, w9, #97
cmp w10, #5
b.ls LBB0_4
; %bb.3:
sub w10, w9, #65
cmp w10, #5
b.hi LBB0_9
LBB0_4:
lsl w9, w9, #4
sub w9, w9, #112
LBB0_5:
sub w10, w8, #97
cmp w10, #5
b.hi LBB0_7
; %bb.6:
sub w8, w8, #87
b LBB0_12
LBB0_7:
sub w10, w8, #65
cmp w10, #5
b.hi LBB0_11
; %bb.8:
sub w8, w8, #55
b LBB0_12
LBB0_9:
sub w10, w9, #48
cmp w10, #9
b.hi LBB0_13
; %bb.10:
lsl w9, w9, #4
b LBB0_5
LBB0_11:
sub w8, w8, #48
cmp w8, #9
b.hi LBB0_13
LBB0_12:
add w8, w8, w9
mov w9, #1
str w9, [x1]
sxtb w0, w8
ret
LBB0_13:
mov w8, #0
LBB0_14:
sxtb w0, w8
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/exploitdb/exploits/php/webapps/extr_697.c_alphanum.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vulkan_buffer_chain_init ## -- Begin function vulkan_buffer_chain_init
.p2align 4, 0x90
_vulkan_buffer_chain_init: ## @vulkan_buffer_chain_init
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, %rax
movq %rsi, 40(%rdi)
movq %rdx, 32(%rdi)
movq $0, 24(%rdi)
movl %ecx, 16(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%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 _vulkan_buffer_chain_init ; -- Begin function vulkan_buffer_chain_init
.p2align 2
_vulkan_buffer_chain_init: ; @vulkan_buffer_chain_init
.cfi_startproc
; %bb.0:
stp x1, x0, [x8, #32]
str xzr, [x8, #24]
str w2, [x8, #16]
stp xzr, xzr, [x8]
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/RetroArch/gfx/common/extr_vulkan_common.c_vulkan_buffer_chain_init.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function eb64p_startup_irq
_eb64p_startup_irq: ## @eb64p_startup_irq
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _eb64p_enable_irq
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _eb64p_startup_irq
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function eb64p_startup_irq
_eb64p_startup_irq: ; @eb64p_startup_irq
.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 _eb64p_enable_irq
mov w0, #0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _eb64p_startup_irq
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/arch/alpha/kernel/extr_sys_eb64p.c_eb64p_startup_irq.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _evergreen_irq_set ## -- Begin function evergreen_irq_set
.p2align 4, 0x90
_evergreen_irq_set: ## @evergreen_irq_set
.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
cmpl $0, 56(%rdi)
je LBB0_5
## %bb.1:
movq %rdi, %r13
cmpl $0, 64(%rdi)
je LBB0_6
## %bb.2:
movq _CNTX_BUSY_INT_ENABLE@GOTPCREL(%rip), %rax
movq _CNTX_EMPTY_INT_ENABLE@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
orl (%rax), %ecx
movl %ecx, -44(%rbp) ## 4-byte Spill
movq _DC_HPD1_INT_CONTROL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _RREG32
movl %eax, -80(%rbp) ## 4-byte Spill
movq _DC_HPDx_INT_EN@GOTPCREL(%rip), %rbx
movl (%rbx), %eax
movl %eax, -48(%rbp) ## 4-byte Spill
movq _DC_HPD2_INT_CONTROL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _RREG32
movl %eax, -88(%rbp) ## 4-byte Spill
movl (%rbx), %eax
movl %eax, -152(%rbp) ## 4-byte Spill
movq _DC_HPD3_INT_CONTROL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _RREG32
movl %eax, -76(%rbp) ## 4-byte Spill
movl (%rbx), %eax
movl %eax, -52(%rbp) ## 4-byte Spill
movq _DC_HPD4_INT_CONTROL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _RREG32
movl %eax, -72(%rbp) ## 4-byte Spill
movl (%rbx), %eax
movl %eax, -156(%rbp) ## 4-byte Spill
movq _DC_HPD5_INT_CONTROL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _RREG32
movl %eax, -108(%rbp) ## 4-byte Spill
movl (%rbx), %eax
movl %eax, -160(%rbp) ## 4-byte Spill
movq _DC_HPD6_INT_CONTROL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _RREG32
movl %eax, -120(%rbp) ## 4-byte Spill
movl (%rbx), %eax
movl %eax, -164(%rbp) ## 4-byte Spill
movq _AFMT_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %r15
movq _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%r15), %rdi
callq _RREG32
movl %eax, -68(%rbp) ## 4-byte Spill
movq _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPCREL(%rip), %rbx
movl (%rbx), %eax
movl %eax, -140(%rbp) ## 4-byte Spill
movq _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%r15), %rdi
callq _RREG32
movl %eax, -104(%rbp) ## 4-byte Spill
movl (%rbx), %eax
movl %eax, -144(%rbp) ## 4-byte Spill
movq _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%r15), %rdi
callq _RREG32
movl %eax, -100(%rbp) ## 4-byte Spill
movl (%rbx), %eax
movl %eax, -168(%rbp) ## 4-byte Spill
movq _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%r15), %rdi
callq _RREG32
movl %eax, -64(%rbp) ## 4-byte Spill
movl (%rbx), %eax
movl %eax, -172(%rbp) ## 4-byte Spill
movq _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%r15), %rdi
callq _RREG32
movl %eax, -96(%rbp) ## 4-byte Spill
movl (%rbx), %eax
movl %eax, -176(%rbp) ## 4-byte Spill
movq _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%r15), %rdi
callq _RREG32
movl %eax, -92(%rbp) ## 4-byte Spill
movl (%rbx), %eax
movl %eax, -180(%rbp) ## 4-byte Spill
movq _DMA_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _RREG32
movl %eax, %r14d
movq _TRAP_ENABLE@GOTPCREL(%rip), %rax
movl (%rax), %r12d
notl %r12d
movq (%r13), %rbx
movq _CHIP_CAYMAN@GOTPCREL(%rip), %rax
movq (%rax), %r15
movq _RADEON_RING_TYPE_GFX_INDEX@GOTPCREL(%rip), %rax
movq (%rax), %rdi
shlq $2, %rdi
addq 48(%r13), %rdi
callq _atomic_read
cmpq %r15, %rbx
jge LBB0_7
## %bb.3:
testq %rax, %rax
je LBB0_13
## %bb.4:
movl $0, -60(%rbp) ## 4-byte Folded Spill
leaq L_.str.1(%rip), %rdi
callq _DRM_DEBUG
movq _RB_INT_ENABLE@GOTPCREL(%rip), %rax
movl -44(%rbp), %ecx ## 4-byte Reload
orl (%rax), %ecx
movq _TIME_STAMP_INT_ENABLE@GOTPCREL(%rip), %rax
orl (%rax), %ecx
movl %ecx, -44(%rbp) ## 4-byte Spill
jmp LBB0_14
LBB0_5:
leaq L_.str(%rip), %rsi
movl $1, %edi
callq _WARN
movq _EINVAL@GOTPCREL(%rip), %rax
xorl %r12d, %r12d
subl (%rax), %r12d
jmp LBB0_76
LBB0_6:
movq %r13, %rdi
callq _r600_disable_interrupts
movq %r13, %rdi
callq _evergreen_disable_interrupt_state
xorl %r12d, %r12d
jmp LBB0_76
LBB0_7:
testq %rax, %rax
movl %r14d, -56(%rbp) ## 4-byte Spill
je LBB0_9
## %bb.8:
leaq L_.str.1(%rip), %rdi
callq _DRM_DEBUG
movq _TIME_STAMP_INT_ENABLE@GOTPCREL(%rip), %rax
movl -44(%rbp), %ecx ## 4-byte Reload
orl (%rax), %ecx
movl %ecx, -44(%rbp) ## 4-byte Spill
LBB0_9:
movq _CAYMAN_RING_TYPE_CP1_INDEX@GOTPCREL(%rip), %rax
movq (%rax), %rdi
shlq $2, %rdi
addq 48(%r13), %rdi
callq _atomic_read
movl $0, -60(%rbp) ## 4-byte Folded Spill
movl $0, %ecx
testq %rax, %rax
je LBB0_11
## %bb.10:
leaq L_.str.2(%rip), %rdi
callq _DRM_DEBUG
movq _TIME_STAMP_INT_ENABLE@GOTPCREL(%rip), %rax
movl (%rax), %ecx
LBB0_11:
movl %ecx, -84(%rbp) ## 4-byte Spill
movq _CAYMAN_RING_TYPE_CP2_INDEX@GOTPCREL(%rip), %rax
movq (%rax), %rdi
shlq $2, %rdi
addq 48(%r13), %rdi
callq _atomic_read
testq %rax, %rax
je LBB0_15
## %bb.12:
leaq L_.str.3(%rip), %rdi
callq _DRM_DEBUG
movq _TIME_STAMP_INT_ENABLE@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -60(%rbp) ## 4-byte Spill
LBB0_15:
movl -56(%rbp), %r15d ## 4-byte Reload
jmp LBB0_16
LBB0_13:
movl $0, -60(%rbp) ## 4-byte Folded Spill
LBB0_14:
movl $0, -84(%rbp) ## 4-byte Folded Spill
movl %r14d, %r15d
LBB0_16:
andl %r12d, %r15d
movq _R600_RING_TYPE_DMA_INDEX@GOTPCREL(%rip), %rax
movq (%rax), %rdi
shlq $2, %rdi
addq 48(%r13), %rdi
callq _atomic_read
testq %rax, %rax
je LBB0_18
## %bb.17:
leaq L_.str.4(%rip), %rdi
callq _DRM_DEBUG
movq _TRAP_ENABLE@GOTPCREL(%rip), %rax
orl (%rax), %r15d
LBB0_18:
movl %r15d, -56(%rbp) ## 4-byte Spill
movl -48(%rbp), %r12d ## 4-byte Reload
movq (%r13), %rax
xorl %r14d, %r14d
movq _CHIP_CAYMAN@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jl LBB0_21
## %bb.19:
movq _CAYMAN_DMA1_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _RREG32
movq _TRAP_ENABLE@GOTPCREL(%rip), %r15
movl (%r15), %r14d
notl %r14d
andl %eax, %r14d
movq _CAYMAN_RING_TYPE_DMA1_INDEX@GOTPCREL(%rip), %rax
movq (%rax), %rdi
shlq $2, %rdi
addq 48(%r13), %rdi
callq _atomic_read
testq %rax, %rax
je LBB0_21
## %bb.20:
leaq L_.str.5(%rip), %rdi
callq _DRM_DEBUG
orl (%r15), %r14d
LBB0_21:
movl %r14d, -148(%rbp) ## 4-byte Spill
movq 40(%r13), %rax
cmpq $0, (%rax)
jne LBB0_23
## %bb.22:
movq 32(%r13), %rdi
callq _atomic_read
testq %rax, %rax
je LBB0_77
LBB0_23:
leaq L_.str.6(%rip), %rdi
callq _DRM_DEBUG
movq _VBLANK_INT_MASK@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -48(%rbp) ## 4-byte Spill
LBB0_24:
movl -52(%rbp), %ebx ## 4-byte Reload
movq 40(%r13), %rax
cmpq $0, 8(%rax)
jne LBB0_26
## %bb.25:
movq 32(%r13), %rdi
addq $4, %rdi
callq _atomic_read
testq %rax, %rax
je LBB0_78
LBB0_26:
leaq L_.str.7(%rip), %rdi
callq _DRM_DEBUG
movq _VBLANK_INT_MASK@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -52(%rbp) ## 4-byte Spill
LBB0_27:
movq 40(%r13), %rax
cmpq $0, 16(%rax)
jne LBB0_29
## %bb.28:
movq 32(%r13), %rdi
addq $8, %rdi
callq _atomic_read
testq %rax, %rax
je LBB0_79
LBB0_29:
leaq L_.str.8(%rip), %rdi
callq _DRM_DEBUG
movq _VBLANK_INT_MASK@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -136(%rbp) ## 4-byte Spill
LBB0_30:
movq 40(%r13), %rax
cmpq $0, 24(%rax)
jne LBB0_32
## %bb.31:
movq 32(%r13), %rdi
addq $12, %rdi
callq _atomic_read
testq %rax, %rax
je LBB0_80
LBB0_32:
leaq L_.str.9(%rip), %rdi
callq _DRM_DEBUG
movq _VBLANK_INT_MASK@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -132(%rbp) ## 4-byte Spill
LBB0_33:
movq 40(%r13), %rax
cmpq $0, 32(%rax)
jne LBB0_35
## %bb.34:
movq 32(%r13), %rdi
addq $16, %rdi
callq _atomic_read
testq %rax, %rax
je LBB0_81
LBB0_35:
leaq L_.str.10(%rip), %rdi
callq _DRM_DEBUG
movq _VBLANK_INT_MASK@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -128(%rbp) ## 4-byte Spill
LBB0_36:
notl %r12d
movq 40(%r13), %rax
cmpq $0, 40(%rax)
jne LBB0_38
## %bb.37:
movq 32(%r13), %rdi
addq $20, %rdi
callq _atomic_read
testq %rax, %rax
je LBB0_82
LBB0_38:
leaq L_.str.11(%rip), %rdi
callq _DRM_DEBUG
movq _VBLANK_INT_MASK@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -124(%rbp) ## 4-byte Spill
LBB0_39:
movl -152(%rbp), %ecx ## 4-byte Reload
notl %ecx
movl -80(%rbp), %r15d ## 4-byte Reload
andl %r12d, %r15d
movq 24(%r13), %rax
cmpq $0, (%rax)
je LBB0_41
## %bb.40:
leaq L_.str.12(%rip), %rdi
movl %ecx, %r12d
callq _DRM_DEBUG
movl %r12d, %ecx
movq _DC_HPDx_INT_EN@GOTPCREL(%rip), %r12
orl (%r12), %r15d
movq 24(%r13), %rax
LBB0_41:
notl %ebx
movl -88(%rbp), %r14d ## 4-byte Reload
andl %ecx, %r14d
cmpq $0, 8(%rax)
movl -156(%rbp), %r12d ## 4-byte Reload
je LBB0_43
## %bb.42:
leaq L_.str.13(%rip), %rdi
callq _DRM_DEBUG
movq _DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
orl (%rax), %r14d
movq 24(%r13), %rax
LBB0_43:
notl %r12d
movl -76(%rbp), %ecx ## 4-byte Reload
andl %ebx, %ecx
movl %ecx, %ebx
cmpq $0, 16(%rax)
je LBB0_45
## %bb.44:
leaq L_.str.14(%rip), %rdi
callq _DRM_DEBUG
movq _DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
orl (%rax), %ebx
movl %ebx, -76(%rbp) ## 4-byte Spill
movq 24(%r13), %rax
jmp LBB0_46
LBB0_45:
movl %ebx, -76(%rbp) ## 4-byte Spill
LBB0_46:
movl -72(%rbp), %ebx ## 4-byte Reload
movl -160(%rbp), %esi ## 4-byte Reload
notl %esi
andl %r12d, %ebx
cmpq $0, 24(%rax)
je LBB0_48
## %bb.47:
leaq L_.str.15(%rip), %rdi
movl %esi, %r12d
callq _DRM_DEBUG
movl %r12d, %esi
movq _DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
orl (%rax), %ebx
movq 24(%r13), %rax
LBB0_48:
movl %ebx, -72(%rbp) ## 4-byte Spill
movl %r14d, -88(%rbp) ## 4-byte Spill
movl %r15d, -80(%rbp) ## 4-byte Spill
movl -164(%rbp), %edx ## 4-byte Reload
notl %edx
movl -108(%rbp), %ecx ## 4-byte Reload
andl %esi, %ecx
cmpq $0, 32(%rax)
je LBB0_50
## %bb.49:
leaq L_.str.16(%rip), %rdi
movl %ecx, %r15d
movl %edx, %ebx
callq _DRM_DEBUG
movl %ebx, %edx
movl %r15d, %ecx
movq _DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
orl (%rax), %ecx
movq 24(%r13), %rax
LBB0_50:
movl -68(%rbp), %r12d ## 4-byte Reload
movq _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPCREL(%rip), %r15
movl -144(%rbp), %r14d ## 4-byte Reload
movl -140(%rbp), %ebx ## 4-byte Reload
movl %ecx, -108(%rbp) ## 4-byte Spill
notl %ebx
movl -120(%rbp), %ecx ## 4-byte Reload
andl %edx, %ecx
cmpq $0, 40(%rax)
je LBB0_52
## %bb.51:
leaq L_.str.17(%rip), %rdi
movq %r13, -120(%rbp) ## 8-byte Spill
movq %r15, %r13
movl %ecx, %r15d
callq _DRM_DEBUG
movl %r15d, %ecx
movq %r13, %r15
movq -120(%rbp), %r13 ## 8-byte Reload
movq _DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
orl (%rax), %ecx
LBB0_52:
movl %ecx, -120(%rbp) ## 4-byte Spill
notl %r14d
andl %ebx, %r12d
movq 16(%r13), %rax
cmpq $0, (%rax)
je LBB0_54
## %bb.53:
leaq L_.str.18(%rip), %rdi
callq _DRM_DEBUG
orl (%r15), %r12d
movq 16(%r13), %rax
LBB0_54:
movl %r12d, -68(%rbp) ## 4-byte Spill
movl -168(%rbp), %edx ## 4-byte Reload
notl %edx
movl -104(%rbp), %ecx ## 4-byte Reload
andl %r14d, %ecx
cmpq $0, 8(%rax)
je LBB0_56
## %bb.55:
leaq L_.str.19(%rip), %rdi
movl %ecx, %r12d
movl %edx, %ebx
callq _DRM_DEBUG
movl %ebx, %edx
movl %r12d, %ecx
orl (%r15), %ecx
movq 16(%r13), %rax
LBB0_56:
movl -64(%rbp), %r12d ## 4-byte Reload
movl %ecx, -104(%rbp) ## 4-byte Spill
movl -172(%rbp), %ebx ## 4-byte Reload
notl %ebx
movl -100(%rbp), %r14d ## 4-byte Reload
andl %edx, %r14d
cmpq $0, 16(%rax)
je LBB0_58
## %bb.57:
leaq L_.str.20(%rip), %rdi
callq _DRM_DEBUG
orl (%r15), %r14d
movq 16(%r13), %rax
LBB0_58:
movl -176(%rbp), %esi ## 4-byte Reload
notl %esi
andl %ebx, %r12d
cmpq $0, 24(%rax)
je LBB0_60
## %bb.59:
leaq L_.str.21(%rip), %rdi
movl %esi, %ebx
callq _DRM_DEBUG
movl %ebx, %esi
orl (%r15), %r12d
movq 16(%r13), %rax
LBB0_60:
movl -180(%rbp), %edx ## 4-byte Reload
notl %edx
movl -96(%rbp), %ecx ## 4-byte Reload
andl %esi, %ecx
cmpq $0, 32(%rax)
je LBB0_62
## %bb.61:
leaq L_.str.22(%rip), %rdi
movl %ecx, %r15d
movl %edx, %ebx
callq _DRM_DEBUG
movl %ebx, %edx
movl %r15d, %ecx
movq _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPCREL(%rip), %r15
orl (%r15), %ecx
movq 16(%r13), %rax
LBB0_62:
movl %ecx, -96(%rbp) ## 4-byte Spill
movl -92(%rbp), %ebx ## 4-byte Reload
andl %edx, %ebx
cmpq $0, 40(%rax)
je LBB0_64
## %bb.63:
leaq L_.str.23(%rip), %rdi
callq _DRM_DEBUG
orl (%r15), %ebx
LBB0_64:
movl -80(%rbp), %r15d ## 4-byte Reload
movq (%r13), %rax
movq _CHIP_CAYMAN@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
movl %r14d, -100(%rbp) ## 4-byte Spill
movl %r12d, -64(%rbp) ## 4-byte Spill
movl %ebx, -92(%rbp) ## 4-byte Spill
jge LBB0_66
## %bb.65:
movq _CP_INT_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -44(%rbp), %esi ## 4-byte Reload
callq _WREG32
jmp LBB0_67
LBB0_66:
movq %r13, %rdi
xorl %esi, %esi
movl -44(%rbp), %edx ## 4-byte Reload
callq _cayman_cp_int_cntl_setup
movq %r13, %rdi
movl $1, %esi
movl -84(%rbp), %edx ## 4-byte Reload
callq _cayman_cp_int_cntl_setup
movq %r13, %rdi
movl $2, %esi
movl -60(%rbp), %edx ## 4-byte Reload
callq _cayman_cp_int_cntl_setup
LBB0_67:
movq _DMA_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -56(%rbp), %esi ## 4-byte Reload
callq _WREG32
movq (%r13), %rax
movq _CHIP_CAYMAN@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jl LBB0_69
## %bb.68:
movq _CAYMAN_DMA1_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -148(%rbp), %esi ## 4-byte Reload
callq _WREG32
LBB0_69:
movq _GRBM_INT_CNTL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
xorl %esi, %esi
callq _WREG32
movq _INT_MASK@GOTPCREL(%rip), %rbx
movq _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%rbx), %rdi
movl -48(%rbp), %esi ## 4-byte Reload
callq _WREG32
movq _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%rbx), %rdi
movl -52(%rbp), %esi ## 4-byte Reload
callq _WREG32
cmpl $4, 8(%r13)
jl LBB0_72
## %bb.70:
movq _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%rbx), %rdi
movl -136(%rbp), %esi ## 4-byte Reload
callq _WREG32
movq _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%rbx), %rdi
movl -132(%rbp), %esi ## 4-byte Reload
callq _WREG32
cmpl $6, 8(%r13)
jl LBB0_72
## %bb.71:
movq _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%rbx), %rdi
movl -128(%rbp), %esi ## 4-byte Reload
callq _WREG32
movq _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%rbx), %rdi
movl -124(%rbp), %esi ## 4-byte Reload
callq _WREG32
LBB0_72:
movq _GRPH_INT_CONTROL@GOTPCREL(%rip), %r14
movq _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%r14), %rdi
xorl %r12d, %r12d
xorl %esi, %esi
callq _WREG32
movq _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%r14), %rdi
xorl %esi, %esi
callq _WREG32
cmpl $4, 8(%r13)
jl LBB0_75
## %bb.73:
movq _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%r14), %rdi
xorl %esi, %esi
callq _WREG32
movq _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%r14), %rdi
xorl %esi, %esi
callq _WREG32
cmpl $6, 8(%r13)
jl LBB0_75
## %bb.74:
movq _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%r14), %rdi
xorl %esi, %esi
callq _WREG32
movq _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%r14), %rdi
xorl %esi, %esi
callq _WREG32
LBB0_75:
movq _DC_HPD1_INT_CONTROL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl %r15d, %esi
callq _WREG32
movq _DC_HPD2_INT_CONTROL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -88(%rbp), %esi ## 4-byte Reload
callq _WREG32
movq _DC_HPD3_INT_CONTROL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -76(%rbp), %esi ## 4-byte Reload
callq _WREG32
movq _DC_HPD4_INT_CONTROL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -72(%rbp), %esi ## 4-byte Reload
callq _WREG32
movq _DC_HPD5_INT_CONTROL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -108(%rbp), %esi ## 4-byte Reload
callq _WREG32
movq _DC_HPD6_INT_CONTROL@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -120(%rbp), %esi ## 4-byte Reload
callq _WREG32
movq _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq _AFMT_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %rbx
addq (%rbx), %rdi
movl -68(%rbp), %esi ## 4-byte Reload
callq _WREG32
movq _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%rbx), %rdi
movl -104(%rbp), %esi ## 4-byte Reload
callq _WREG32
movq _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%rbx), %rdi
movl -100(%rbp), %esi ## 4-byte Reload
callq _WREG32
movq _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%rbx), %rdi
movl -64(%rbp), %esi ## 4-byte Reload
callq _WREG32
movq _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%rbx), %rdi
movl -96(%rbp), %esi ## 4-byte Reload
callq _WREG32
movq _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPCREL(%rip), %rax
movq (%rax), %rdi
addq (%rbx), %rdi
movl -92(%rbp), %esi ## 4-byte Reload
callq _WREG32
LBB0_76:
movl %r12d, %eax
addq $152, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_77:
movl $0, -48(%rbp) ## 4-byte Folded Spill
jmp LBB0_24
LBB0_78:
movl $0, -52(%rbp) ## 4-byte Folded Spill
jmp LBB0_27
LBB0_79:
movl $0, -136(%rbp) ## 4-byte Folded Spill
jmp LBB0_30
LBB0_80:
movl $0, -132(%rbp) ## 4-byte Folded Spill
jmp LBB0_33
LBB0_81:
movl $0, -128(%rbp) ## 4-byte Folded Spill
jmp LBB0_36
LBB0_82:
movl $0, -124(%rbp) ## 4-byte Folded Spill
jmp LBB0_39
.cfi_endproc
## -- End function
.comm _CNTX_BUSY_INT_ENABLE,4,2 ## @CNTX_BUSY_INT_ENABLE
.comm _CNTX_EMPTY_INT_ENABLE,4,2 ## @CNTX_EMPTY_INT_ENABLE
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Can't enable IRQ/MSI because no handler is installed\n"
.comm _EINVAL,4,2 ## @EINVAL
.comm _DC_HPD1_INT_CONTROL,8,3 ## @DC_HPD1_INT_CONTROL
.comm _DC_HPDx_INT_EN,4,2 ## @DC_HPDx_INT_EN
.comm _DC_HPD2_INT_CONTROL,8,3 ## @DC_HPD2_INT_CONTROL
.comm _DC_HPD3_INT_CONTROL,8,3 ## @DC_HPD3_INT_CONTROL
.comm _DC_HPD4_INT_CONTROL,8,3 ## @DC_HPD4_INT_CONTROL
.comm _DC_HPD5_INT_CONTROL,8,3 ## @DC_HPD5_INT_CONTROL
.comm _DC_HPD6_INT_CONTROL,8,3 ## @DC_HPD6_INT_CONTROL
.comm _AFMT_AUDIO_PACKET_CONTROL,8,3 ## @AFMT_AUDIO_PACKET_CONTROL
.comm _EVERGREEN_CRTC0_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC0_REGISTER_OFFSET
.comm _AFMT_AZ_FORMAT_WTRIG_MASK,4,2 ## @AFMT_AZ_FORMAT_WTRIG_MASK
.comm _EVERGREEN_CRTC1_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC1_REGISTER_OFFSET
.comm _EVERGREEN_CRTC2_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC2_REGISTER_OFFSET
.comm _EVERGREEN_CRTC3_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC3_REGISTER_OFFSET
.comm _EVERGREEN_CRTC4_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC4_REGISTER_OFFSET
.comm _EVERGREEN_CRTC5_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC5_REGISTER_OFFSET
.comm _DMA_CNTL,8,3 ## @DMA_CNTL
.comm _TRAP_ENABLE,4,2 ## @TRAP_ENABLE
.comm _CHIP_CAYMAN,8,3 ## @CHIP_CAYMAN
.comm _RADEON_RING_TYPE_GFX_INDEX,8,3 ## @RADEON_RING_TYPE_GFX_INDEX
L_.str.1: ## @.str.1
.asciz "evergreen_irq_set: sw int gfx\n"
.comm _TIME_STAMP_INT_ENABLE,4,2 ## @TIME_STAMP_INT_ENABLE
.comm _CAYMAN_RING_TYPE_CP1_INDEX,8,3 ## @CAYMAN_RING_TYPE_CP1_INDEX
L_.str.2: ## @.str.2
.asciz "evergreen_irq_set: sw int cp1\n"
.comm _CAYMAN_RING_TYPE_CP2_INDEX,8,3 ## @CAYMAN_RING_TYPE_CP2_INDEX
L_.str.3: ## @.str.3
.asciz "evergreen_irq_set: sw int cp2\n"
.comm _RB_INT_ENABLE,4,2 ## @RB_INT_ENABLE
.comm _R600_RING_TYPE_DMA_INDEX,8,3 ## @R600_RING_TYPE_DMA_INDEX
L_.str.4: ## @.str.4
.asciz "r600_irq_set: sw int dma\n"
.comm _CAYMAN_DMA1_CNTL,8,3 ## @CAYMAN_DMA1_CNTL
.comm _CAYMAN_RING_TYPE_DMA1_INDEX,8,3 ## @CAYMAN_RING_TYPE_DMA1_INDEX
L_.str.5: ## @.str.5
.asciz "r600_irq_set: sw int dma1\n"
L_.str.6: ## @.str.6
.asciz "evergreen_irq_set: vblank 0\n"
.comm _VBLANK_INT_MASK,4,2 ## @VBLANK_INT_MASK
L_.str.7: ## @.str.7
.asciz "evergreen_irq_set: vblank 1\n"
L_.str.8: ## @.str.8
.asciz "evergreen_irq_set: vblank 2\n"
L_.str.9: ## @.str.9
.asciz "evergreen_irq_set: vblank 3\n"
L_.str.10: ## @.str.10
.asciz "evergreen_irq_set: vblank 4\n"
L_.str.11: ## @.str.11
.asciz "evergreen_irq_set: vblank 5\n"
L_.str.12: ## @.str.12
.asciz "evergreen_irq_set: hpd 1\n"
L_.str.13: ## @.str.13
.asciz "evergreen_irq_set: hpd 2\n"
L_.str.14: ## @.str.14
.asciz "evergreen_irq_set: hpd 3\n"
L_.str.15: ## @.str.15
.asciz "evergreen_irq_set: hpd 4\n"
L_.str.16: ## @.str.16
.asciz "evergreen_irq_set: hpd 5\n"
L_.str.17: ## @.str.17
.asciz "evergreen_irq_set: hpd 6\n"
L_.str.18: ## @.str.18
.asciz "evergreen_irq_set: hdmi 0\n"
L_.str.19: ## @.str.19
.asciz "evergreen_irq_set: hdmi 1\n"
L_.str.20: ## @.str.20
.asciz "evergreen_irq_set: hdmi 2\n"
L_.str.21: ## @.str.21
.asciz "evergreen_irq_set: hdmi 3\n"
L_.str.22: ## @.str.22
.asciz "evergreen_irq_set: hdmi 4\n"
L_.str.23: ## @.str.23
.asciz "evergreen_irq_set: hdmi 5\n"
.comm _CP_INT_CNTL,8,3 ## @CP_INT_CNTL
.comm _GRBM_INT_CNTL,8,3 ## @GRBM_INT_CNTL
.comm _INT_MASK,8,3 ## @INT_MASK
.comm _GRPH_INT_CONTROL,8,3 ## @GRPH_INT_CONTROL
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _evergreen_irq_set ; -- Begin function evergreen_irq_set
.p2align 2
_evergreen_irq_set: ; @evergreen_irq_set
.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
ldr w8, [x0, #56]
cbz w8, LBB0_5
; %bb.1:
mov x19, x0
ldr w8, [x0, #64]
cbz w8, LBB0_6
; %bb.2:
Lloh0:
adrp x8, _CNTX_BUSY_INT_ENABLE@GOTPAGE
Lloh1:
ldr x8, [x8, _CNTX_BUSY_INT_ENABLE@GOTPAGEOFF]
Lloh2:
adrp x9, _CNTX_EMPTY_INT_ENABLE@GOTPAGE
Lloh3:
ldr x9, [x9, _CNTX_EMPTY_INT_ENABLE@GOTPAGEOFF]
Lloh4:
ldr w8, [x8]
Lloh5:
ldr w9, [x9]
orr w23, w9, w8
Lloh6:
adrp x8, _DC_HPD1_INT_CONTROL@GOTPAGE
Lloh7:
ldr x8, [x8, _DC_HPD1_INT_CONTROL@GOTPAGEOFF]
Lloh8:
ldr x0, [x8]
bl _RREG32
str w0, [sp, #44] ; 4-byte Folded Spill
Lloh9:
adrp x24, _DC_HPDx_INT_EN@GOTPAGE
Lloh10:
ldr x24, [x24, _DC_HPDx_INT_EN@GOTPAGEOFF]
ldr w8, [x24]
str w8, [sp, #40] ; 4-byte Folded Spill
Lloh11:
adrp x8, _DC_HPD2_INT_CONTROL@GOTPAGE
Lloh12:
ldr x8, [x8, _DC_HPD2_INT_CONTROL@GOTPAGEOFF]
Lloh13:
ldr x0, [x8]
bl _RREG32
ldr w8, [x24]
stp w8, w0, [sp, #52] ; 8-byte Folded Spill
Lloh14:
adrp x8, _DC_HPD3_INT_CONTROL@GOTPAGE
Lloh15:
ldr x8, [x8, _DC_HPD3_INT_CONTROL@GOTPAGEOFF]
Lloh16:
ldr x0, [x8]
bl _RREG32
ldr w8, [x24]
stp w8, w0, [sp, #64] ; 8-byte Folded Spill
Lloh17:
adrp x8, _DC_HPD4_INT_CONTROL@GOTPAGE
Lloh18:
ldr x8, [x8, _DC_HPD4_INT_CONTROL@GOTPAGEOFF]
Lloh19:
ldr x0, [x8]
bl _RREG32
ldr w8, [x24]
stp w8, w0, [sp, #72] ; 8-byte Folded Spill
Lloh20:
adrp x8, _DC_HPD5_INT_CONTROL@GOTPAGE
Lloh21:
ldr x8, [x8, _DC_HPD5_INT_CONTROL@GOTPAGEOFF]
Lloh22:
ldr x0, [x8]
bl _RREG32
mov x21, x0
ldr w8, [x24]
str w8, [sp, #80] ; 4-byte Folded Spill
Lloh23:
adrp x8, _DC_HPD6_INT_CONTROL@GOTPAGE
Lloh24:
ldr x8, [x8, _DC_HPD6_INT_CONTROL@GOTPAGEOFF]
Lloh25:
ldr x0, [x8]
bl _RREG32
str w0, [sp, #48] ; 4-byte Folded Spill
Lloh26:
adrp x20, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh27:
ldr x20, [x20, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
ldr w8, [x24]
str w8, [sp, #84] ; 4-byte Folded Spill
ldr x8, [x20]
Lloh28:
adrp x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGE
Lloh29:
ldr x9, [x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGEOFF]
Lloh30:
ldr x9, [x9]
add x0, x9, x8
bl _RREG32
str w0, [sp, #60] ; 4-byte Folded Spill
Lloh31:
adrp x22, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh32:
ldr x22, [x22, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
ldr w8, [x22]
str w8, [sp, #28] ; 4-byte Folded Spill
ldr x8, [x20]
Lloh33:
adrp x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGE
Lloh34:
ldr x9, [x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGEOFF]
Lloh35:
ldr x9, [x9]
add x0, x9, x8
bl _RREG32
ldr w8, [x22]
stp w8, w0, [sp, #92] ; 8-byte Folded Spill
ldr x8, [x20]
Lloh36:
adrp x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGE
Lloh37:
ldr x9, [x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGEOFF]
Lloh38:
ldr x9, [x9]
add x0, x9, x8
bl _RREG32
ldr w8, [x22]
stp w8, w0, [sp, #100] ; 8-byte Folded Spill
ldr x8, [x20]
Lloh39:
adrp x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGE
Lloh40:
ldr x9, [x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGEOFF]
Lloh41:
ldr x9, [x9]
add x0, x9, x8
bl _RREG32
ldr w8, [x22]
stp w8, w0, [x29, #-100] ; 8-byte Folded Spill
ldr x8, [x20]
Lloh42:
adrp x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGE
Lloh43:
ldr x9, [x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGEOFF]
Lloh44:
ldr x9, [x9]
add x0, x9, x8
bl _RREG32
mov x27, x0
ldr w8, [x22]
stur w8, [x29, #-92] ; 4-byte Folded Spill
ldr x8, [x20]
Lloh45:
adrp x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGE
Lloh46:
ldr x9, [x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGEOFF]
Lloh47:
ldr x9, [x9]
add x0, x9, x8
bl _RREG32
ldr w8, [x22]
stp w8, w0, [x29, #-88] ; 8-byte Folded Spill
Lloh48:
adrp x8, _DMA_CNTL@GOTPAGE
Lloh49:
ldr x8, [x8, _DMA_CNTL@GOTPAGEOFF]
Lloh50:
ldr x0, [x8]
bl _RREG32
mov x20, x0
Lloh51:
adrp x28, _TRAP_ENABLE@GOTPAGE
Lloh52:
ldr x28, [x28, _TRAP_ENABLE@GOTPAGEOFF]
ldr w26, [x28]
ldr x25, [x19]
Lloh53:
adrp x8, _CHIP_CAYMAN@GOTPAGE
Lloh54:
ldr x8, [x8, _CHIP_CAYMAN@GOTPAGEOFF]
Lloh55:
ldr x22, [x8]
ldr x8, [x19, #48]
Lloh56:
adrp x9, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGE
Lloh57:
ldr x9, [x9, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGEOFF]
Lloh58:
ldr x9, [x9]
add x0, x8, x9, lsl #2
bl _atomic_read
cmp x25, x22
str w21, [sp, #32] ; 4-byte Folded Spill
b.ge LBB0_7
; %bb.3:
cbz x0, LBB0_11
; %bb.4:
Lloh59:
adrp x0, l_.str.1@PAGE
Lloh60:
add x0, x0, l_.str.1@PAGEOFF
bl _DRM_DEBUG
stp wzr, wzr, [sp, #12] ; 8-byte Folded Spill
Lloh61:
adrp x8, _RB_INT_ENABLE@GOTPAGE
Lloh62:
ldr x8, [x8, _RB_INT_ENABLE@GOTPAGEOFF]
Lloh63:
ldr w8, [x8]
orr w8, w8, w23
Lloh64:
adrp x9, _TIME_STAMP_INT_ENABLE@GOTPAGE
Lloh65:
ldr x9, [x9, _TIME_STAMP_INT_ENABLE@GOTPAGEOFF]
Lloh66:
ldr w9, [x9]
orr w23, w8, w9
b LBB0_16
LBB0_5:
Lloh67:
adrp x1, l_.str@PAGE
Lloh68:
add x1, x1, l_.str@PAGEOFF
mov w0, #1
bl _WARN
Lloh69:
adrp x8, _EINVAL@GOTPAGE
Lloh70:
ldr x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh71:
ldr w8, [x8]
neg w0, w8
b LBB0_79
LBB0_6:
mov x0, x19
bl _r600_disable_interrupts
mov x0, x19
bl _evergreen_disable_interrupt_state
b LBB0_78
LBB0_7:
Lloh72:
adrp x25, _TIME_STAMP_INT_ENABLE@GOTPAGE
Lloh73:
ldr x25, [x25, _TIME_STAMP_INT_ENABLE@GOTPAGEOFF]
cbz x0, LBB0_9
; %bb.8:
Lloh74:
adrp x0, l_.str.1@PAGE
Lloh75:
add x0, x0, l_.str.1@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x25]
orr w23, w8, w23
LBB0_9:
ldr x8, [x19, #48]
Lloh76:
adrp x9, _CAYMAN_RING_TYPE_CP1_INDEX@GOTPAGE
Lloh77:
ldr x9, [x9, _CAYMAN_RING_TYPE_CP1_INDEX@GOTPAGEOFF]
Lloh78:
ldr x9, [x9]
add x0, x8, x9, lsl #2
bl _atomic_read
cbz x0, LBB0_12
; %bb.10:
Lloh79:
adrp x0, l_.str.2@PAGE
Lloh80:
add x0, x0, l_.str.2@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x25]
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_13
LBB0_11:
stp wzr, wzr, [sp, #12] ; 8-byte Folded Spill
b LBB0_16
LBB0_12:
str wzr, [sp, #16] ; 4-byte Folded Spill
LBB0_13:
ldr x8, [x19, #48]
Lloh81:
adrp x9, _CAYMAN_RING_TYPE_CP2_INDEX@GOTPAGE
Lloh82:
ldr x9, [x9, _CAYMAN_RING_TYPE_CP2_INDEX@GOTPAGEOFF]
Lloh83:
ldr x9, [x9]
add x0, x8, x9, lsl #2
bl _atomic_read
cbz x0, LBB0_15
; %bb.14:
Lloh84:
adrp x0, l_.str.3@PAGE
Lloh85:
add x0, x0, l_.str.3@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x25]
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_16
LBB0_15:
str wzr, [sp, #12] ; 4-byte Folded Spill
LBB0_16:
Lloh86:
adrp x25, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh87:
ldr x25, [x25, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
bic w20, w20, w26
ldr x8, [x19, #48]
Lloh88:
adrp x9, _R600_RING_TYPE_DMA_INDEX@GOTPAGE
Lloh89:
ldr x9, [x9, _R600_RING_TYPE_DMA_INDEX@GOTPAGEOFF]
Lloh90:
ldr x9, [x9]
add x0, x8, x9, lsl #2
bl _atomic_read
cbz x0, LBB0_18
; %bb.17:
Lloh91:
adrp x0, l_.str.4@PAGE
Lloh92:
add x0, x0, l_.str.4@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x28]
orr w20, w8, w20
LBB0_18:
ldr x8, [x19]
Lloh93:
adrp x9, _CHIP_CAYMAN@GOTPAGE
Lloh94:
ldr x9, [x9, _CHIP_CAYMAN@GOTPAGEOFF]
Lloh95:
ldr x9, [x9]
Lloh96:
adrp x10, _CAYMAN_DMA1_CNTL@GOTPAGE
Lloh97:
ldr x10, [x10, _CAYMAN_DMA1_CNTL@GOTPAGEOFF]
cmp x8, x9
str w20, [sp, #88] ; 4-byte Folded Spill
str w23, [sp, #36] ; 4-byte Folded Spill
b.ge LBB0_20
; %bb.19:
str wzr, [sp, #20] ; 4-byte Folded Spill
b LBB0_23
LBB0_20:
ldr x0, [x10]
bl _RREG32
ldr w8, [x28]
bic w21, w0, w8
ldr x8, [x19, #48]
Lloh98:
adrp x9, _CAYMAN_RING_TYPE_DMA1_INDEX@GOTPAGE
Lloh99:
ldr x9, [x9, _CAYMAN_RING_TYPE_DMA1_INDEX@GOTPAGEOFF]
Lloh100:
ldr x9, [x9]
add x0, x8, x9, lsl #2
bl _atomic_read
cbz x0, LBB0_22
; %bb.21:
Lloh101:
adrp x0, l_.str.5@PAGE
Lloh102:
add x0, x0, l_.str.5@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x28]
orr w21, w8, w21
LBB0_22:
str w21, [sp, #20] ; 4-byte Folded Spill
LBB0_23:
mov x28, x27
ldr w23, [sp, #60] ; 4-byte Folded Reload
ldr w27, [sp, #28] ; 4-byte Folded Reload
ldr w21, [sp, #48] ; 4-byte Folded Reload
ldr x8, [x19, #40]
ldr x8, [x8]
Lloh103:
adrp x20, _VBLANK_INT_MASK@GOTPAGE
Lloh104:
ldr x20, [x20, _VBLANK_INT_MASK@GOTPAGEOFF]
cbnz x8, LBB0_25
; %bb.24:
ldr x0, [x19, #32]
bl _atomic_read
cbz x0, LBB0_80
LBB0_25:
Lloh105:
adrp x0, l_.str.6@PAGE
Lloh106:
add x0, x0, l_.str.6@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x20]
str w8, [sp, #60] ; 4-byte Folded Spill
LBB0_26:
ldr x8, [x19, #40]
ldr x8, [x8, #8]
cbnz x8, LBB0_28
; %bb.27:
ldr x8, [x19, #32]
add x0, x8, #4
bl _atomic_read
cbz x0, LBB0_81
LBB0_28:
Lloh107:
adrp x0, l_.str.7@PAGE
Lloh108:
add x0, x0, l_.str.7@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x20]
str w8, [sp, #48] ; 4-byte Folded Spill
LBB0_29:
ldr x8, [x19, #40]
ldr x8, [x8, #16]
cbnz x8, LBB0_31
; %bb.30:
ldr x8, [x19, #32]
add x0, x8, #8
bl _atomic_read
cbz x0, LBB0_82
LBB0_31:
Lloh109:
adrp x0, l_.str.8@PAGE
Lloh110:
add x0, x0, l_.str.8@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x20]
str w8, [sp, #28] ; 4-byte Folded Spill
LBB0_32:
ldr x8, [x19, #40]
ldr x8, [x8, #24]
cbnz x8, LBB0_34
; %bb.33:
ldr x8, [x19, #32]
add x0, x8, #12
bl _atomic_read
cbz x0, LBB0_83
LBB0_34:
Lloh111:
adrp x0, l_.str.9@PAGE
Lloh112:
add x0, x0, l_.str.9@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x20]
str w8, [sp, #24] ; 4-byte Folded Spill
LBB0_35:
ldr x8, [x19, #40]
ldr x8, [x8, #32]
cbnz x8, LBB0_37
; %bb.36:
ldr x8, [x19, #32]
add x0, x8, #16
bl _atomic_read
cbz x0, LBB0_84
LBB0_37:
Lloh113:
adrp x0, l_.str.10@PAGE
Lloh114:
add x0, x0, l_.str.10@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x20]
str w8, [sp, #8] ; 4-byte Folded Spill
LBB0_38:
ldr x8, [x19, #40]
ldr x8, [x8, #40]
cbnz x8, LBB0_40
; %bb.39:
ldr x8, [x19, #32]
add x0, x8, #20
bl _atomic_read
cbz x0, LBB0_85
LBB0_40:
Lloh115:
adrp x0, l_.str.11@PAGE
Lloh116:
add x0, x0, l_.str.11@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x20]
str w8, [sp, #4] ; 4-byte Folded Spill
LBB0_41:
ldp w9, w8, [sp, #40] ; 8-byte Folded Reload
bic w20, w8, w9
ldr x8, [x19, #24]
ldr x9, [x8]
cbz x9, LBB0_43
; %bb.42:
Lloh117:
adrp x0, l_.str.12@PAGE
Lloh118:
add x0, x0, l_.str.12@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x24]
orr w20, w8, w20
ldr x8, [x19, #24]
LBB0_43:
ldp w10, w9, [sp, #52] ; 8-byte Folded Reload
bic w26, w9, w10
ldr x9, [x8, #8]
cbz x9, LBB0_45
; %bb.44:
Lloh119:
adrp x0, l_.str.13@PAGE
Lloh120:
add x0, x0, l_.str.13@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x24]
orr w26, w8, w26
ldr x8, [x19, #24]
LBB0_45:
ldp w10, w9, [sp, #64] ; 8-byte Folded Reload
bic w10, w9, w10
ldr x9, [x8, #16]
cbz x9, LBB0_47
; %bb.46:
Lloh121:
adrp x0, l_.str.14@PAGE
Lloh122:
add x0, x0, l_.str.14@PAGEOFF
mov x22, x28
mov x28, x10
bl _DRM_DEBUG
mov x10, x28
mov x28, x22
ldr w8, [x24]
orr w10, w8, w10
ldr x8, [x19, #24]
LBB0_47:
str w10, [sp, #68] ; 4-byte Folded Spill
ldp w10, w9, [sp, #72] ; 8-byte Folded Reload
bic w22, w9, w10
ldr x9, [x8, #24]
cbz x9, LBB0_49
; %bb.48:
Lloh123:
adrp x0, l_.str.15@PAGE
Lloh124:
add x0, x0, l_.str.15@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x24]
orr w22, w8, w22
str w22, [sp, #76] ; 4-byte Folded Spill
ldr x8, [x19, #24]
b LBB0_50
LBB0_49:
str w22, [sp, #76] ; 4-byte Folded Spill
LBB0_50:
ldr w9, [sp, #80] ; 4-byte Folded Reload
ldr w10, [sp, #32] ; 4-byte Folded Reload
bic w22, w10, w9
ldr x9, [x8, #32]
str w26, [sp, #56] ; 4-byte Folded Spill
cbz x9, LBB0_52
; %bb.51:
Lloh125:
adrp x0, l_.str.16@PAGE
Lloh126:
add x0, x0, l_.str.16@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x24]
orr w22, w8, w22
ldr x8, [x19, #24]
LBB0_52:
ldr w9, [sp, #84] ; 4-byte Folded Reload
bic w26, w21, w9
ldr x8, [x8, #40]
cbz x8, LBB0_54
; %bb.53:
Lloh127:
adrp x0, l_.str.17@PAGE
Lloh128:
add x0, x0, l_.str.17@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x24]
orr w26, w8, w26
LBB0_54:
bic w27, w23, w27
ldr x8, [x19, #16]
ldr x9, [x8]
str w20, [sp, #44] ; 4-byte Folded Spill
cbz x9, LBB0_56
; %bb.55:
Lloh129:
adrp x0, l_.str.18@PAGE
Lloh130:
add x0, x0, l_.str.18@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x25]
orr w27, w8, w27
ldr x8, [x19, #16]
LBB0_56:
ldp w10, w9, [sp, #92] ; 8-byte Folded Reload
bic w20, w9, w10
ldr x9, [x8, #8]
cbz x9, LBB0_58
; %bb.57:
Lloh131:
adrp x0, l_.str.19@PAGE
Lloh132:
add x0, x0, l_.str.19@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x25]
orr w20, w8, w20
ldr x8, [x19, #16]
LBB0_58:
ldp w10, w9, [sp, #100] ; 8-byte Folded Reload
bic w24, w9, w10
ldr x9, [x8, #16]
cbz x9, LBB0_60
; %bb.59:
Lloh133:
adrp x0, l_.str.20@PAGE
Lloh134:
add x0, x0, l_.str.20@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x25]
orr w24, w8, w24
ldr x8, [x19, #16]
LBB0_60:
ldp w10, w9, [x29, #-100] ; 8-byte Folded Reload
bic w21, w9, w10
ldr x9, [x8, #24]
cbz x9, LBB0_62
; %bb.61:
Lloh135:
adrp x0, l_.str.21@PAGE
Lloh136:
add x0, x0, l_.str.21@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x25]
orr w21, w8, w21
ldr x8, [x19, #16]
LBB0_62:
ldur w9, [x29, #-92] ; 4-byte Folded Reload
bic w28, w28, w9
ldr x9, [x8, #32]
cbz x9, LBB0_64
; %bb.63:
Lloh137:
adrp x0, l_.str.22@PAGE
Lloh138:
add x0, x0, l_.str.22@PAGEOFF
bl _DRM_DEBUG
ldr w8, [x25]
orr w28, w8, w28
ldr x8, [x19, #16]
LBB0_64:
ldp w10, w9, [x29, #-88] ; 8-byte Folded Reload
bic w25, w9, w10
ldr x8, [x8, #40]
cbz x8, LBB0_66
; %bb.65:
Lloh139:
adrp x0, l_.str.23@PAGE
Lloh140:
add x0, x0, l_.str.23@PAGEOFF
bl _DRM_DEBUG
Lloh141:
adrp x8, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh142:
ldr x8, [x8, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
Lloh143:
ldr w8, [x8]
orr w25, w8, w25
LBB0_66:
ldr x8, [x19]
Lloh144:
adrp x9, _CHIP_CAYMAN@GOTPAGE
Lloh145:
ldr x9, [x9, _CHIP_CAYMAN@GOTPAGEOFF]
Lloh146:
ldr x9, [x9]
cmp x8, x9
b.ge LBB0_68
; %bb.67:
Lloh147:
adrp x8, _CP_INT_CNTL@GOTPAGE
Lloh148:
ldr x8, [x8, _CP_INT_CNTL@GOTPAGEOFF]
Lloh149:
ldr x0, [x8]
ldr w1, [sp, #36] ; 4-byte Folded Reload
bl _WREG32
b LBB0_69
LBB0_68:
mov x0, x19
mov w1, #0
ldr w2, [sp, #36] ; 4-byte Folded Reload
bl _cayman_cp_int_cntl_setup
mov x0, x19
mov w1, #1
ldr w2, [sp, #16] ; 4-byte Folded Reload
bl _cayman_cp_int_cntl_setup
mov x0, x19
mov w1, #2
ldr w2, [sp, #12] ; 4-byte Folded Reload
bl _cayman_cp_int_cntl_setup
LBB0_69:
Lloh150:
adrp x8, _DMA_CNTL@GOTPAGE
Lloh151:
ldr x8, [x8, _DMA_CNTL@GOTPAGEOFF]
Lloh152:
ldr x0, [x8]
ldr w1, [sp, #88] ; 4-byte Folded Reload
bl _WREG32
ldr x8, [x19]
Lloh153:
adrp x9, _CHIP_CAYMAN@GOTPAGE
Lloh154:
ldr x9, [x9, _CHIP_CAYMAN@GOTPAGEOFF]
Lloh155:
ldr x9, [x9]
cmp x8, x9
b.lt LBB0_71
; %bb.70:
Lloh156:
adrp x8, _CAYMAN_DMA1_CNTL@GOTPAGE
Lloh157:
ldr x8, [x8, _CAYMAN_DMA1_CNTL@GOTPAGEOFF]
Lloh158:
ldr x0, [x8]
ldr w1, [sp, #20] ; 4-byte Folded Reload
bl _WREG32
LBB0_71:
Lloh159:
adrp x8, _GRBM_INT_CNTL@GOTPAGE
Lloh160:
ldr x8, [x8, _GRBM_INT_CNTL@GOTPAGEOFF]
Lloh161:
ldr x0, [x8]
mov w1, #0
bl _WREG32
Lloh162:
adrp x23, _INT_MASK@GOTPAGE
Lloh163:
ldr x23, [x23, _INT_MASK@GOTPAGEOFF]
ldr x8, [x23]
Lloh164:
adrp x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGE
Lloh165:
ldr x9, [x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGEOFF]
Lloh166:
ldr x9, [x9]
add x0, x9, x8
ldr w1, [sp, #60] ; 4-byte Folded Reload
bl _WREG32
ldr x8, [x23]
Lloh167:
adrp x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGE
Lloh168:
ldr x9, [x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGEOFF]
Lloh169:
ldr x9, [x9]
add x0, x9, x8
ldr w1, [sp, #48] ; 4-byte Folded Reload
bl _WREG32
ldr w8, [x19, #8]
cmp w8, #4
b.lt LBB0_74
; %bb.72:
ldr x8, [x23]
Lloh170:
adrp x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGE
Lloh171:
ldr x9, [x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGEOFF]
Lloh172:
ldr x9, [x9]
add x0, x9, x8
ldr w1, [sp, #28] ; 4-byte Folded Reload
bl _WREG32
ldr x8, [x23]
Lloh173:
adrp x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGE
Lloh174:
ldr x9, [x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGEOFF]
Lloh175:
ldr x9, [x9]
add x0, x9, x8
ldr w1, [sp, #24] ; 4-byte Folded Reload
bl _WREG32
ldr w8, [x19, #8]
cmp w8, #6
b.lt LBB0_74
; %bb.73:
ldr x8, [x23]
Lloh176:
adrp x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGE
Lloh177:
ldr x9, [x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGEOFF]
Lloh178:
ldr x9, [x9]
add x0, x9, x8
ldr w1, [sp, #8] ; 4-byte Folded Reload
bl _WREG32
ldr x8, [x23]
Lloh179:
adrp x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGE
Lloh180:
ldr x9, [x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGEOFF]
Lloh181:
ldr x9, [x9]
add x0, x9, x8
ldr w1, [sp, #4] ; 4-byte Folded Reload
bl _WREG32
LBB0_74:
Lloh182:
adrp x23, _GRPH_INT_CONTROL@GOTPAGE
Lloh183:
ldr x23, [x23, _GRPH_INT_CONTROL@GOTPAGEOFF]
ldr x8, [x23]
Lloh184:
adrp x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGE
Lloh185:
ldr x9, [x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGEOFF]
Lloh186:
ldr x9, [x9]
add x0, x9, x8
mov w1, #0
bl _WREG32
ldr x8, [x23]
Lloh187:
adrp x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGE
Lloh188:
ldr x9, [x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGEOFF]
Lloh189:
ldr x9, [x9]
add x0, x9, x8
mov w1, #0
bl _WREG32
ldr w8, [x19, #8]
cmp w8, #4
b.lt LBB0_77
; %bb.75:
ldr x8, [x23]
Lloh190:
adrp x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGE
Lloh191:
ldr x9, [x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGEOFF]
Lloh192:
ldr x9, [x9]
add x0, x9, x8
mov w1, #0
bl _WREG32
ldr x8, [x23]
Lloh193:
adrp x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGE
Lloh194:
ldr x9, [x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGEOFF]
Lloh195:
ldr x9, [x9]
add x0, x9, x8
mov w1, #0
bl _WREG32
ldr w8, [x19, #8]
cmp w8, #6
b.lt LBB0_77
; %bb.76:
ldr x8, [x23]
Lloh196:
adrp x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGE
Lloh197:
ldr x9, [x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGEOFF]
Lloh198:
ldr x9, [x9]
add x0, x9, x8
mov w1, #0
bl _WREG32
ldr x8, [x23]
Lloh199:
adrp x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGE
Lloh200:
ldr x9, [x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGEOFF]
Lloh201:
ldr x9, [x9]
add x0, x9, x8
mov w1, #0
bl _WREG32
LBB0_77:
Lloh202:
adrp x8, _DC_HPD1_INT_CONTROL@GOTPAGE
Lloh203:
ldr x8, [x8, _DC_HPD1_INT_CONTROL@GOTPAGEOFF]
Lloh204:
ldr x0, [x8]
ldr w1, [sp, #44] ; 4-byte Folded Reload
bl _WREG32
Lloh205:
adrp x8, _DC_HPD2_INT_CONTROL@GOTPAGE
Lloh206:
ldr x8, [x8, _DC_HPD2_INT_CONTROL@GOTPAGEOFF]
Lloh207:
ldr x0, [x8]
ldr w1, [sp, #56] ; 4-byte Folded Reload
bl _WREG32
Lloh208:
adrp x8, _DC_HPD3_INT_CONTROL@GOTPAGE
Lloh209:
ldr x8, [x8, _DC_HPD3_INT_CONTROL@GOTPAGEOFF]
Lloh210:
ldr x0, [x8]
ldr w1, [sp, #68] ; 4-byte Folded Reload
bl _WREG32
Lloh211:
adrp x8, _DC_HPD4_INT_CONTROL@GOTPAGE
Lloh212:
ldr x8, [x8, _DC_HPD4_INT_CONTROL@GOTPAGEOFF]
Lloh213:
ldr x0, [x8]
ldr w1, [sp, #76] ; 4-byte Folded Reload
bl _WREG32
Lloh214:
adrp x8, _DC_HPD5_INT_CONTROL@GOTPAGE
Lloh215:
ldr x8, [x8, _DC_HPD5_INT_CONTROL@GOTPAGEOFF]
Lloh216:
ldr x0, [x8]
mov x1, x22
bl _WREG32
Lloh217:
adrp x8, _DC_HPD6_INT_CONTROL@GOTPAGE
Lloh218:
ldr x8, [x8, _DC_HPD6_INT_CONTROL@GOTPAGEOFF]
Lloh219:
ldr x0, [x8]
mov x1, x26
bl _WREG32
Lloh220:
adrp x19, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh221:
ldr x19, [x19, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
ldr x8, [x19]
Lloh222:
adrp x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGE
Lloh223:
ldr x9, [x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGEOFF]
Lloh224:
ldr x9, [x9]
add x0, x9, x8
mov x1, x27
bl _WREG32
ldr x8, [x19]
Lloh225:
adrp x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGE
Lloh226:
ldr x9, [x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGEOFF]
Lloh227:
ldr x9, [x9]
add x0, x9, x8
mov x1, x20
bl _WREG32
ldr x8, [x19]
Lloh228:
adrp x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGE
Lloh229:
ldr x9, [x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGEOFF]
Lloh230:
ldr x9, [x9]
add x0, x9, x8
mov x1, x24
bl _WREG32
ldr x8, [x19]
Lloh231:
adrp x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGE
Lloh232:
ldr x9, [x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGEOFF]
Lloh233:
ldr x9, [x9]
add x0, x9, x8
mov x1, x21
bl _WREG32
ldr x8, [x19]
Lloh234:
adrp x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGE
Lloh235:
ldr x9, [x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGEOFF]
Lloh236:
ldr x9, [x9]
add x0, x9, x8
mov x1, x28
bl _WREG32
ldr x8, [x19]
Lloh237:
adrp x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGE
Lloh238:
ldr x9, [x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGEOFF]
Lloh239:
ldr x9, [x9]
add x0, x9, x8
mov x1, x25
bl _WREG32
LBB0_78:
mov w0, #0
LBB0_79:
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_80:
str wzr, [sp, #60] ; 4-byte Folded Spill
b LBB0_26
LBB0_81:
str wzr, [sp, #48] ; 4-byte Folded Spill
b LBB0_29
LBB0_82:
str wzr, [sp, #28] ; 4-byte Folded Spill
b LBB0_32
LBB0_83:
str wzr, [sp, #24] ; 4-byte Folded Spill
b LBB0_35
LBB0_84:
str wzr, [sp, #8] ; 4-byte Folded Spill
b LBB0_38
LBB0_85:
str wzr, [sp, #4] ; 4-byte Folded Spill
b LBB0_41
.loh AdrpLdrGotLdr Lloh56, Lloh57, Lloh58
.loh AdrpLdrGotLdr Lloh53, Lloh54, Lloh55
.loh AdrpLdrGot Lloh51, Lloh52
.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 AdrpLdrGot Lloh31, Lloh32
.loh AdrpLdrGotLdr Lloh28, Lloh29, Lloh30
.loh AdrpLdrGot Lloh26, Lloh27
.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 AdrpLdrGot Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh4
.loh AdrpLdrGotLdr Lloh64, Lloh65, Lloh66
.loh AdrpLdrGotLdr Lloh61, Lloh62, Lloh63
.loh AdrpAdd Lloh59, Lloh60
.loh AdrpLdrGotLdr Lloh69, Lloh70, Lloh71
.loh AdrpAdd Lloh67, Lloh68
.loh AdrpLdrGot Lloh72, Lloh73
.loh AdrpAdd Lloh74, Lloh75
.loh AdrpLdrGotLdr Lloh76, Lloh77, Lloh78
.loh AdrpAdd Lloh79, Lloh80
.loh AdrpLdrGotLdr Lloh81, Lloh82, Lloh83
.loh AdrpAdd Lloh84, Lloh85
.loh AdrpLdrGotLdr Lloh88, Lloh89, Lloh90
.loh AdrpLdrGot Lloh86, Lloh87
.loh AdrpAdd Lloh91, Lloh92
.loh AdrpLdrGot Lloh96, Lloh97
.loh AdrpLdrGotLdr Lloh93, Lloh94, Lloh95
.loh AdrpLdrGotLdr Lloh98, Lloh99, Lloh100
.loh AdrpAdd Lloh101, Lloh102
.loh AdrpLdrGot Lloh103, Lloh104
.loh AdrpAdd Lloh105, Lloh106
.loh AdrpAdd Lloh107, Lloh108
.loh AdrpAdd Lloh109, Lloh110
.loh AdrpAdd Lloh111, Lloh112
.loh AdrpAdd Lloh113, Lloh114
.loh AdrpAdd Lloh115, Lloh116
.loh AdrpAdd Lloh117, Lloh118
.loh AdrpAdd Lloh119, Lloh120
.loh AdrpAdd Lloh121, Lloh122
.loh AdrpAdd Lloh123, Lloh124
.loh AdrpAdd Lloh125, Lloh126
.loh AdrpAdd Lloh127, Lloh128
.loh AdrpAdd Lloh129, Lloh130
.loh AdrpAdd Lloh131, Lloh132
.loh AdrpAdd Lloh133, Lloh134
.loh AdrpAdd Lloh135, Lloh136
.loh AdrpAdd Lloh137, Lloh138
.loh AdrpLdrGotLdr Lloh141, Lloh142, Lloh143
.loh AdrpAdd Lloh139, Lloh140
.loh AdrpLdrGotLdr Lloh144, Lloh145, Lloh146
.loh AdrpLdrGotLdr Lloh147, Lloh148, Lloh149
.loh AdrpLdrGotLdr Lloh153, Lloh154, Lloh155
.loh AdrpLdrGotLdr Lloh150, Lloh151, Lloh152
.loh AdrpLdrGotLdr Lloh156, Lloh157, Lloh158
.loh AdrpLdrGotLdr Lloh167, Lloh168, Lloh169
.loh AdrpLdrGotLdr Lloh164, Lloh165, Lloh166
.loh AdrpLdrGot Lloh162, Lloh163
.loh AdrpLdrGotLdr Lloh159, Lloh160, Lloh161
.loh AdrpLdrGotLdr Lloh173, Lloh174, Lloh175
.loh AdrpLdrGotLdr Lloh170, Lloh171, Lloh172
.loh AdrpLdrGotLdr Lloh179, Lloh180, Lloh181
.loh AdrpLdrGotLdr Lloh176, Lloh177, Lloh178
.loh AdrpLdrGotLdr Lloh187, Lloh188, Lloh189
.loh AdrpLdrGotLdr Lloh184, Lloh185, Lloh186
.loh AdrpLdrGot Lloh182, Lloh183
.loh AdrpLdrGotLdr Lloh193, Lloh194, Lloh195
.loh AdrpLdrGotLdr Lloh190, Lloh191, Lloh192
.loh AdrpLdrGotLdr Lloh199, Lloh200, Lloh201
.loh AdrpLdrGotLdr Lloh196, Lloh197, Lloh198
.loh AdrpLdrGotLdr Lloh237, Lloh238, Lloh239
.loh AdrpLdrGotLdr Lloh234, Lloh235, Lloh236
.loh AdrpLdrGotLdr Lloh231, Lloh232, Lloh233
.loh AdrpLdrGotLdr Lloh228, Lloh229, Lloh230
.loh AdrpLdrGotLdr Lloh225, Lloh226, Lloh227
.loh AdrpLdrGotLdr Lloh222, Lloh223, Lloh224
.loh AdrpLdrGot Lloh220, Lloh221
.loh AdrpLdrGotLdr Lloh217, Lloh218, Lloh219
.loh AdrpLdrGotLdr Lloh214, Lloh215, Lloh216
.loh AdrpLdrGotLdr Lloh211, Lloh212, Lloh213
.loh AdrpLdrGotLdr Lloh208, Lloh209, Lloh210
.loh AdrpLdrGotLdr Lloh205, Lloh206, Lloh207
.loh AdrpLdrGotLdr Lloh202, Lloh203, Lloh204
.cfi_endproc
; -- End function
.comm _CNTX_BUSY_INT_ENABLE,4,2 ; @CNTX_BUSY_INT_ENABLE
.comm _CNTX_EMPTY_INT_ENABLE,4,2 ; @CNTX_EMPTY_INT_ENABLE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Can't enable IRQ/MSI because no handler is installed\n"
.comm _EINVAL,4,2 ; @EINVAL
.comm _DC_HPD1_INT_CONTROL,8,3 ; @DC_HPD1_INT_CONTROL
.comm _DC_HPDx_INT_EN,4,2 ; @DC_HPDx_INT_EN
.comm _DC_HPD2_INT_CONTROL,8,3 ; @DC_HPD2_INT_CONTROL
.comm _DC_HPD3_INT_CONTROL,8,3 ; @DC_HPD3_INT_CONTROL
.comm _DC_HPD4_INT_CONTROL,8,3 ; @DC_HPD4_INT_CONTROL
.comm _DC_HPD5_INT_CONTROL,8,3 ; @DC_HPD5_INT_CONTROL
.comm _DC_HPD6_INT_CONTROL,8,3 ; @DC_HPD6_INT_CONTROL
.comm _AFMT_AUDIO_PACKET_CONTROL,8,3 ; @AFMT_AUDIO_PACKET_CONTROL
.comm _EVERGREEN_CRTC0_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC0_REGISTER_OFFSET
.comm _AFMT_AZ_FORMAT_WTRIG_MASK,4,2 ; @AFMT_AZ_FORMAT_WTRIG_MASK
.comm _EVERGREEN_CRTC1_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC1_REGISTER_OFFSET
.comm _EVERGREEN_CRTC2_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC2_REGISTER_OFFSET
.comm _EVERGREEN_CRTC3_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC3_REGISTER_OFFSET
.comm _EVERGREEN_CRTC4_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC4_REGISTER_OFFSET
.comm _EVERGREEN_CRTC5_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC5_REGISTER_OFFSET
.comm _DMA_CNTL,8,3 ; @DMA_CNTL
.comm _TRAP_ENABLE,4,2 ; @TRAP_ENABLE
.comm _CHIP_CAYMAN,8,3 ; @CHIP_CAYMAN
.comm _RADEON_RING_TYPE_GFX_INDEX,8,3 ; @RADEON_RING_TYPE_GFX_INDEX
l_.str.1: ; @.str.1
.asciz "evergreen_irq_set: sw int gfx\n"
.comm _TIME_STAMP_INT_ENABLE,4,2 ; @TIME_STAMP_INT_ENABLE
.comm _CAYMAN_RING_TYPE_CP1_INDEX,8,3 ; @CAYMAN_RING_TYPE_CP1_INDEX
l_.str.2: ; @.str.2
.asciz "evergreen_irq_set: sw int cp1\n"
.comm _CAYMAN_RING_TYPE_CP2_INDEX,8,3 ; @CAYMAN_RING_TYPE_CP2_INDEX
l_.str.3: ; @.str.3
.asciz "evergreen_irq_set: sw int cp2\n"
.comm _RB_INT_ENABLE,4,2 ; @RB_INT_ENABLE
.comm _R600_RING_TYPE_DMA_INDEX,8,3 ; @R600_RING_TYPE_DMA_INDEX
l_.str.4: ; @.str.4
.asciz "r600_irq_set: sw int dma\n"
.comm _CAYMAN_DMA1_CNTL,8,3 ; @CAYMAN_DMA1_CNTL
.comm _CAYMAN_RING_TYPE_DMA1_INDEX,8,3 ; @CAYMAN_RING_TYPE_DMA1_INDEX
l_.str.5: ; @.str.5
.asciz "r600_irq_set: sw int dma1\n"
l_.str.6: ; @.str.6
.asciz "evergreen_irq_set: vblank 0\n"
.comm _VBLANK_INT_MASK,4,2 ; @VBLANK_INT_MASK
l_.str.7: ; @.str.7
.asciz "evergreen_irq_set: vblank 1\n"
l_.str.8: ; @.str.8
.asciz "evergreen_irq_set: vblank 2\n"
l_.str.9: ; @.str.9
.asciz "evergreen_irq_set: vblank 3\n"
l_.str.10: ; @.str.10
.asciz "evergreen_irq_set: vblank 4\n"
l_.str.11: ; @.str.11
.asciz "evergreen_irq_set: vblank 5\n"
l_.str.12: ; @.str.12
.asciz "evergreen_irq_set: hpd 1\n"
l_.str.13: ; @.str.13
.asciz "evergreen_irq_set: hpd 2\n"
l_.str.14: ; @.str.14
.asciz "evergreen_irq_set: hpd 3\n"
l_.str.15: ; @.str.15
.asciz "evergreen_irq_set: hpd 4\n"
l_.str.16: ; @.str.16
.asciz "evergreen_irq_set: hpd 5\n"
l_.str.17: ; @.str.17
.asciz "evergreen_irq_set: hpd 6\n"
l_.str.18: ; @.str.18
.asciz "evergreen_irq_set: hdmi 0\n"
l_.str.19: ; @.str.19
.asciz "evergreen_irq_set: hdmi 1\n"
l_.str.20: ; @.str.20
.asciz "evergreen_irq_set: hdmi 2\n"
l_.str.21: ; @.str.21
.asciz "evergreen_irq_set: hdmi 3\n"
l_.str.22: ; @.str.22
.asciz "evergreen_irq_set: hdmi 4\n"
l_.str.23: ; @.str.23
.asciz "evergreen_irq_set: hdmi 5\n"
.comm _CP_INT_CNTL,8,3 ; @CP_INT_CNTL
.comm _GRBM_INT_CNTL,8,3 ; @GRBM_INT_CNTL
.comm _INT_MASK,8,3 ; @INT_MASK
.comm _GRPH_INT_CONTROL,8,3 ; @GRPH_INT_CONTROL
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/drivers/gpu/drm/radeon/extr_evergreen.c_evergreen_irq_set.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function strstrW
_strstrW: ## @strstrW
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq -8(%rdi), %rcx
.p2align 4, 0x90
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movq %rdi, %rax
cmpq $0, (%rdi)
movq %rcx, %rdi
movq %rsi, %rdx
je LBB0_2
.p2align 4, 0x90
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
addq $8, %rdx
cmpq $0, (%rdi)
leaq -8(%rdi), %rdi
jne LBB0_3
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
leaq 8(%rax), %rdi
addq $8, %rcx
cmpq $0, (%rdx)
jne LBB0_1
## %bb.5:
popq %rbp
retq
LBB0_2:
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _strstrW
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function strstrW
_strstrW: ; @strstrW
.cfi_startproc
; %bb.0:
mov x8, x0
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
mov x0, x8
ldr x8, [x8]
cbz x8, LBB0_6
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
mov x8, #-8 ; =0xfffffffffffffff8
mov x9, x1
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
add x9, x9, #8
ldr x10, [x0, x8]
sub x8, x8, #8
cbnz x10, LBB0_3
; %bb.4: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [x9]
add x8, x0, #8
cbnz x9, LBB0_1
; %bb.5:
ret
LBB0_6:
mov x0, #0 ; =0x0
ret
.cfi_endproc
; -- End function
.no_dead_strip _strstrW
.subsections_via_symbols
| assembly_file_17675.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function mwl_rxdma_cleanup
_mwl_rxdma_cleanup: ## @mwl_rxdma_cleanup
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %rbx
cmpq $0, (%rdi)
je LBB0_2
## %bb.1:
movl 32(%rbx), %esi
movl 36(%rbx), %edi
callq _bus_dmamap_unload
movq $0, (%rbx)
LBB0_2:
movq 24(%rbx), %rsi
testq %rsi, %rsi
je LBB0_4
## %bb.3:
movl 32(%rbx), %edx
movl 36(%rbx), %edi
callq _bus_dmamem_free
movq $0, 24(%rbx)
LBB0_4:
leaq 8(%rbx), %r14
movq 16(%rbx), %rdi
testq %rdi, %rdi
je LBB0_6
## %bb.5:
movq _M_MWLDEV@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _free
movq $0, 16(%rbx)
LBB0_6:
cmpq $0, (%r14)
je LBB0_7
## %bb.8:
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %rbp
jmp _mwl_desc_cleanup ## TAILCALL
LBB0_7:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _M_MWLDEV,4,2 ## @M_MWLDEV
.no_dead_strip _mwl_rxdma_cleanup
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function mwl_rxdma_cleanup
_mwl_rxdma_cleanup: ; @mwl_rxdma_cleanup
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
ldr x8, [x0]
cbz x8, LBB0_2
; %bb.1:
ldp w1, w0, [x19, #32]
bl _bus_dmamap_unload
str xzr, [x19]
LBB0_2:
ldr x1, [x19, #24]
cbz x1, LBB0_4
; %bb.3:
ldp w2, w0, [x19, #32]
bl _bus_dmamem_free
str xzr, [x19, #24]
LBB0_4:
add x20, x19, #8
ldr x0, [x19, #16]
cbz x0, LBB0_6
; %bb.5:
Lloh0:
adrp x8, _M_MWLDEV@GOTPAGE
Lloh1:
ldr x8, [x8, _M_MWLDEV@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
bl _free
str xzr, [x19, #16]
LBB0_6:
ldr x8, [x20]
cbz x8, LBB0_8
; %bb.7:
mov x0, x19
mov x1, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _mwl_desc_cleanup
LBB0_8:
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 _M_MWLDEV,4,2 ; @M_MWLDEV
.no_dead_strip _mwl_rxdma_cleanup
.subsections_via_symbols
| AnghaBench/freebsd/sys/dev/mwl/extr_if_mwl.c_mwl_rxdma_cleanup.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function tpo_td043_mode_show
_tpo_td043_mode_show: ## @tpo_td043_mode_show
.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 _dev_get_drvdata
movq _PAGE_SIZE@GOTPCREL(%rip), %rcx
movl (%rcx), %esi
movl (%rax), %ecx
leaq L_.str(%rip), %rdx
movq %rbx, %rdi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _snprintf ## TAILCALL
.cfi_endproc
## -- End function
.comm _PAGE_SIZE,4,2 ## @PAGE_SIZE
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d\n"
.no_dead_strip _tpo_td043_mode_show
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function tpo_td043_mode_show
_tpo_td043_mode_show: ; @tpo_td043_mode_show
.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 _dev_get_drvdata
Lloh0:
adrp x8, _PAGE_SIZE@GOTPAGE
Lloh1:
ldr x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
ldr w3, [x0]
Lloh3:
adrp x2, l_.str@PAGE
Lloh4:
add x2, x2, l_.str@PAGEOFF
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _snprintf
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _PAGE_SIZE,4,2 ; @PAGE_SIZE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d\n"
.no_dead_strip _tpo_td043_mode_show
.subsections_via_symbols
| AnghaBench/linux/drivers/video/fbdev/omap2/omapfb/displays/extr_panel-tpo-td043mtea1.c_tpo_td043_mode_show.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netdata_cleanup_and_exit ## -- Begin function netdata_cleanup_and_exit
.p2align 4, 0x90
_netdata_cleanup_and_exit: ## @netdata_cleanup_and_exit
.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
xorl %eax, %eax
callq _error_log_limit_unlimited
leaq L_.str(%rip), %rdi
movl %ebx, %esi
xorl %eax, %eax
callq _info
testl %ebx, %ebx
leaq L_.str.3(%rip), %rax
leaq L_.str.2(%rip), %rsi
cmoveq %rax, %rsi
leaq L_.str.1(%rip), %rdi
leaq L_.str.4(%rip), %rdx
callq _send_statistics
leaq L_.str.5(%rip), %rdi
xorl %eax, %eax
callq _info
xorl %eax, %eax
callq _rrdhost_cleanup_all
testl %ebx, %ebx
jne LBB0_2
## %bb.1:
leaq L_.str.6(%rip), %rdi
xorl %eax, %eax
callq _info
xorl %eax, %eax
callq _cancel_main_threads
leaq L_.str.7(%rip), %rdi
xorl %eax, %eax
callq _info
xorl %eax, %eax
callq _rrdhost_free_all
LBB0_2:
movq _pidfile@GOTPCREL(%rip), %r14
movq (%r14), %rsi
cmpq $0, (%rsi)
je LBB0_5
## %bb.3:
leaq L_.str.8(%rip), %rdi
xorl %eax, %eax
callq _info
movq (%r14), %rdi
callq _unlink
testq %rax, %rax
je LBB0_5
## %bb.4:
movq (%r14), %rsi
leaq L_.str.9(%rip), %rdi
callq _error
LBB0_5:
leaq L_.str.10(%rip), %rdi
xorl %eax, %eax
callq _info
movl %ebx, %edi
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "EXIT: netdata prepares to exit with code %d..."
L_.str.1: ## @.str.1
.asciz "EXIT"
L_.str.2: ## @.str.2
.asciz "ERROR"
L_.str.3: ## @.str.3
.asciz "OK"
L_.str.4: ## @.str.4
.asciz "-"
L_.str.5: ## @.str.5
.asciz "EXIT: cleaning up the database..."
L_.str.6: ## @.str.6
.asciz "EXIT: stopping master threads..."
L_.str.7: ## @.str.7
.asciz "EXIT: freeing database memory..."
.comm _pidfile,8,3 ## @pidfile
L_.str.8: ## @.str.8
.asciz "EXIT: removing netdata PID file '%s'..."
L_.str.9: ## @.str.9
.asciz "EXIT: cannot unlink pidfile '%s'."
L_.str.10: ## @.str.10
.asciz "EXIT: all done - netdata is now exiting - bye bye..."
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _netdata_cleanup_and_exit ; -- Begin function netdata_cleanup_and_exit
.p2align 2
_netdata_cleanup_and_exit: ; @netdata_cleanup_and_exit
.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
bl _error_log_limit_unlimited
str x19, [sp]
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _info
Lloh2:
adrp x8, l_.str.2@PAGE
Lloh3:
add x8, x8, l_.str.2@PAGEOFF
Lloh4:
adrp x9, l_.str.3@PAGE
Lloh5:
add x9, x9, l_.str.3@PAGEOFF
cmp w19, #0
csel x1, x9, x8, eq
Lloh6:
adrp x0, l_.str.1@PAGE
Lloh7:
add x0, x0, l_.str.1@PAGEOFF
Lloh8:
adrp x2, l_.str.4@PAGE
Lloh9:
add x2, x2, l_.str.4@PAGEOFF
bl _send_statistics
Lloh10:
adrp x0, l_.str.5@PAGE
Lloh11:
add x0, x0, l_.str.5@PAGEOFF
bl _info
bl _rrdhost_cleanup_all
cbnz w19, LBB0_2
; %bb.1:
Lloh12:
adrp x0, l_.str.6@PAGE
Lloh13:
add x0, x0, l_.str.6@PAGEOFF
bl _info
bl _cancel_main_threads
Lloh14:
adrp x0, l_.str.7@PAGE
Lloh15:
add x0, x0, l_.str.7@PAGEOFF
bl _info
bl _rrdhost_free_all
LBB0_2:
Lloh16:
adrp x20, _pidfile@GOTPAGE
Lloh17:
ldr x20, [x20, _pidfile@GOTPAGEOFF]
ldr x8, [x20]
ldr x9, [x8]
cbz x9, LBB0_5
; %bb.3:
str x8, [sp]
Lloh18:
adrp x0, l_.str.8@PAGE
Lloh19:
add x0, x0, l_.str.8@PAGEOFF
bl _info
ldr x0, [x20]
bl _unlink
cbz x0, LBB0_5
; %bb.4:
ldr x1, [x20]
Lloh20:
adrp x0, l_.str.9@PAGE
Lloh21:
add x0, x0, l_.str.9@PAGEOFF
bl _error
LBB0_5:
Lloh22:
adrp x0, l_.str.10@PAGE
Lloh23:
add x0, x0, l_.str.10@PAGEOFF
bl _info
mov x0, x19
bl _exit
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh14, Lloh15
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpLdrGot Lloh16, Lloh17
.loh AdrpAdd Lloh18, Lloh19
.loh AdrpAdd Lloh20, Lloh21
.loh AdrpAdd Lloh22, Lloh23
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "EXIT: netdata prepares to exit with code %d..."
l_.str.1: ; @.str.1
.asciz "EXIT"
l_.str.2: ; @.str.2
.asciz "ERROR"
l_.str.3: ; @.str.3
.asciz "OK"
l_.str.4: ; @.str.4
.asciz "-"
l_.str.5: ; @.str.5
.asciz "EXIT: cleaning up the database..."
l_.str.6: ; @.str.6
.asciz "EXIT: stopping master threads..."
l_.str.7: ; @.str.7
.asciz "EXIT: freeing database memory..."
.comm _pidfile,8,3 ; @pidfile
l_.str.8: ; @.str.8
.asciz "EXIT: removing netdata PID file '%s'..."
l_.str.9: ; @.str.9
.asciz "EXIT: cannot unlink pidfile '%s'."
l_.str.10: ; @.str.10
.asciz "EXIT: all done - netdata is now exiting - bye bye..."
.subsections_via_symbols
| AnghaBench/netdata/daemon/extr_main.c_netdata_cleanup_and_exit.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _udf_get_last_block ## -- Begin function udf_get_last_block
.p2align 4, 0x90
_udf_get_last_block: ## @udf_get_last_block
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
subq $16, %rsp
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
movq 8(%rdi), %rbx
movq $0, -24(%rbp)
movq _CDROM_LAST_WRITTEN@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq -24(%rbp), %rdx
movq %rbx, %rdi
callq _ioctl_by_bdev
testq %rax, %rax
jne LBB0_2
## %bb.1:
movq -24(%rbp), %rdx
testq %rdx, %rdx
jne LBB0_3
LBB0_2:
movq (%rbx), %rax
movq (%rax), %rdx
movb (%r14), %cl
shrq %cl, %rdx
LBB0_3:
xorl %eax, %eax
subq $1, %rdx
cmovaeq %rdx, %rax
addq $16, %rsp
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _CDROM_LAST_WRITTEN,4,2 ## @CDROM_LAST_WRITTEN
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _udf_get_last_block ; -- Begin function udf_get_last_block
.p2align 2
_udf_get_last_block: ; @udf_get_last_block
.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
ldr x20, [x0, #8]
str xzr, [sp, #8]
Lloh0:
adrp x8, _CDROM_LAST_WRITTEN@GOTPAGE
Lloh1:
ldr x8, [x8, _CDROM_LAST_WRITTEN@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
add x2, sp, #8
mov x0, x20
bl _ioctl_by_bdev
ldr x8, [sp, #8]
cmp x0, #0
ccmp x8, #0, #4, eq
b.ne LBB0_2
; %bb.1:
ldr x8, [x20]
ldr x8, [x8]
ldr x9, [x19]
lsr x8, x8, x9
LBB0_2:
sub x9, x8, #1
cmp x8, #0
csel x0, xzr, x9, eq
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #48
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _CDROM_LAST_WRITTEN,4,2 ; @CDROM_LAST_WRITTEN
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/fs/udf/extr_lowlevel.c_udf_get_last_block.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function do_free_pn_space
_do_free_pn_space: ## @do_free_pn_space
.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
callq _quicly_ranges_clear
movq %rbx, %rdi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _free ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _do_free_pn_space
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function do_free_pn_space
_do_free_pn_space: ; @do_free_pn_space
.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 _quicly_ranges_clear
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _free
.cfi_endproc
; -- End function
.no_dead_strip _do_free_pn_space
.subsections_via_symbols
| AnghaBench/h2o/deps/quicly/lib/extr_quicly.c_do_free_pn_space.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _zend_accel_shared_protect ## -- Begin function zend_accel_shared_protect
.p2align 4, 0x90
_zend_accel_shared_protect: ## @zend_accel_shared_protect
.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 _zend_accel_shared_protect ; -- Begin function zend_accel_shared_protect
.p2align 2
_zend_accel_shared_protect: ; @zend_accel_shared_protect
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/php-src/ext/opcache/extr_zend_shared_alloc.c_zend_accel_shared_protect.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function sdhci_xenon_get_card_present
_sdhci_xenon_get_card_present: ## @sdhci_xenon_get_card_present
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _device_get_softc
movl (%rax), %edi
popq %rbp
jmp _sdhci_fdt_gpio_get_present ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _sdhci_xenon_get_card_present
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function sdhci_xenon_get_card_present
_sdhci_xenon_get_card_present: ; @sdhci_xenon_get_card_present
.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 _device_get_softc
ldr w0, [x0]
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _sdhci_fdt_gpio_get_present
.cfi_endproc
; -- End function
.no_dead_strip _sdhci_xenon_get_card_present
.subsections_via_symbols
| AnghaBench/freebsd/sys/dev/sdhci/extr_sdhci_xenon.c_sdhci_xenon_get_card_present.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function irsr_write
_irsr_write: ## @irsr_write
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _IRSR@GOTPCREL(%rip), %rax
movl (%rax), %esi
popq %rbp
jmp _write_sysreg ## TAILCALL
.cfi_endproc
## -- End function
.comm _IRSR,4,2 ## @IRSR
.no_dead_strip _irsr_write
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function irsr_write
_irsr_write: ; @irsr_write
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _IRSR@GOTPAGE
Lloh1:
ldr x8, [x8, _IRSR@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
b _write_sysreg
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _IRSR,4,2 ; @IRSR
.no_dead_strip _irsr_write
.subsections_via_symbols
| AnghaBench/linux/arch/arm/mm/extr_pmsa-v7.c_irsr_write.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 0x4091300000000000 ## double 1100
LCPI0_1:
.quad 0x4092e80000000000 ## double 1210
LCPI0_2:
.quad 0x4094cc0000000000 ## double 1331
.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
pushq %rax
.cfi_offset %rbx, -24
leaq L_.str(%rip), %rbx
movq %rbx, %rdi
movl $1, %esi
xorl %eax, %eax
callq _printf
movq %rbx, %rdi
movl $2, %esi
xorl %eax, %eax
callq _printf
movq %rbx, %rdi
movl $3, %esi
xorl %eax, %eax
callq _printf
leaq L_.str.1(%rip), %rbx
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movq %rbx, %rdi
movb $1, %al
callq _printf
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movq %rbx, %rdi
movb $1, %al
callq _printf
movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero
movq %rbx, %rdi
movb $1, %al
callq _printf
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "page views %d \n"
L_.str.1: ## @.str.1
.asciz "balance %f \n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #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 w8, #1
str x8, [sp]
Lloh0:
adrp x19, l_.str@PAGE
Lloh1:
add x19, x19, l_.str@PAGEOFF
mov x0, x19
bl _printf
mov w8, #2
str x8, [sp]
mov x0, x19
bl _printf
mov w8, #3
str x8, [sp]
mov x0, x19
bl _printf
mov x8, #52776558133248
movk x8, #16529, lsl #48
str x8, [sp]
Lloh2:
adrp x19, l_.str.1@PAGE
Lloh3:
add x19, x19, l_.str.1@PAGEOFF
mov x0, x19
bl _printf
mov x8, #255086697644032
movk x8, #16530, lsl #48
str x8, [sp]
mov x0, x19
bl _printf
mov x8, #224300372066304
movk x8, #16532, lsl #48
str x8, [sp]
mov x0, x19
bl _printf
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 Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "page views %d \n"
l_.str.1: ; @.str.1
.asciz "balance %f \n"
.subsections_via_symbols
| the_stack_data/212644500.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _xgethostbyname ## -- Begin function xgethostbyname
.p2align 4, 0x90
_xgethostbyname: ## @xgethostbyname
.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
callq _gethostbyname
movq %rax, %rbx
testq %rax, %rax
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rsi
movl $1, %edi
callq _err
LBB0_2:
movq %rbx, %rax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "cannot gethostbyname"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _xgethostbyname ; -- Begin function xgethostbyname
.p2align 2
_xgethostbyname: ; @xgethostbyname
.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
bl _gethostbyname
mov x19, x0
cbnz x0, LBB0_2
; %bb.1:
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
mov w0, #1
bl _err
LBB0_2:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "cannot gethostbyname"
.subsections_via_symbols
| AnghaBench/exploitdb/exploits/multiple/remote/extr_19560.c_xgethostbyname.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function bxe_config_rss_eth
_bxe_config_rss_eth: ## @bxe_config_rss_eth
.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, %edx
movq %rdi, %rsi
popq %rbp
jmp _bxe_config_rss_pf ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _bxe_config_rss_eth
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function bxe_config_rss_eth
_bxe_config_rss_eth: ; @bxe_config_rss_eth
.cfi_startproc
; %bb.0:
mov x2, x1
mov x1, x0
b _bxe_config_rss_pf
.cfi_endproc
; -- End function
.no_dead_strip _bxe_config_rss_eth
.subsections_via_symbols
| AnghaBench/freebsd/sys/dev/bxe/extr_bxe.c_bxe_config_rss_eth.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function block_matching_multi
_block_matching_multi: ## @block_matching_multi
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $88, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %r9d, %r15d
movl %r8d, %ebx
movl %ecx, %r8d
movq %r8, -56(%rbp) ## 8-byte Spill
movl %edx, -76(%rbp) ## 4-byte Spill
movq %rsi, -104(%rbp) ## 8-byte Spill
movslq 24(%rbp), %rax
movslq 16(%rbp), %rdx
movq %rax, -112(%rbp) ## 8-byte Spill
leaq (%rax,%rax,2), %rax
shlq $3, %rax
addq 32(%rdi), %rax
movq %rax, -88(%rbp) ## 8-byte Spill
movq (%rdi), %rax
movq 8(%rdi), %rcx
movl (%rax,%rdx,4), %r14d
movq %rdx, -120(%rbp) ## 8-byte Spill
movl (%rcx,%rdx,4), %eax
movl %eax, -72(%rbp) ## 4-byte Spill
movl 24(%rdi), %ecx
movl %ecx, %eax
cltd
movl 16(%rdi), %esi
movl %esi, -48(%rbp) ## 4-byte Spill
movq %rdi, -96(%rbp) ## 8-byte Spill
movl 20(%rdi), %r13d
idivl %r13d
subl %edx, %ecx
movl %ecx, -44(%rbp) ## 4-byte Spill
xorl %r12d, %r12d
xorl %edi, %edi
movl %ecx, %esi
movl %r13d, %edx
xorl %ecx, %ecx
## kill: def $r8d killed $r8d killed $r8
movl %ebx, %r9d
movq %rbx, -64(%rbp) ## 8-byte Spill
callq _search_boundary
movl %eax, -68(%rbp) ## 4-byte Spill
subl -48(%rbp), %r14d ## 4-byte Folded Reload
movl %r14d, %edi
movl -44(%rbp), %r14d ## 4-byte Reload
movl %r14d, %esi
movl %r13d, %edx
xorl %ecx, %ecx
movq -56(%rbp), %r8 ## 8-byte Reload
## kill: def $r8d killed $r8d killed $r8
movl %ebx, %r9d
callq _search_boundary
movl %eax, %ebx
xorl %edi, %edi
movl %r14d, %esi
movl %r13d, %edx
movl $1, %ecx
movq -56(%rbp), %r8 ## 8-byte Reload
## kill: def $r8d killed $r8d killed $r8
movq -64(%rbp), %r9 ## 8-byte Reload
## kill: def $r9d killed $r9d killed $r9
callq _search_boundary
movl %eax, %r14d
movl -72(%rbp), %edi ## 4-byte Reload
subl -48(%rbp), %edi ## 4-byte Folded Reload
movl -44(%rbp), %esi ## 4-byte Reload
movl %r13d, %edx
movl $1, %ecx
movq -56(%rbp), %r8 ## 8-byte Reload
## kill: def $r8d killed $r8d killed $r8
movq -64(%rbp), %r9 ## 8-byte Reload
## kill: def $r9d killed $r9d killed $r9
callq _search_boundary
movl -68(%rbp), %r9d ## 4-byte Reload
movq -88(%rbp), %r8 ## 8-byte Reload
movq -64(%rbp), %r11 ## 8-byte Reload
movq -56(%rbp), %r10 ## 8-byte Reload
cmpl %eax, %r14d
jle LBB0_1
LBB0_9:
cmpl $1, %r15d
jne LBB0_11
## %bb.10:
movq 16(%r8), %rax
movq $0, 8(%rax)
movl %r10d, (%rax)
movl %r11d, 4(%rax)
movl $1, (%r8)
LBB0_11:
movq 8(%r8), %r8
movq -96(%rbp), %rdi ## 8-byte Reload
movl 24(%rdi), %ecx
movl 28(%rdi), %eax
subq $8, %rsp
movq -104(%rbp), %rsi ## 8-byte Reload
movl -76(%rbp), %edx ## 4-byte Reload
movl %r12d, %r9d
pushq -112(%rbp) ## 8-byte Folded Reload
pushq -120(%rbp) ## 8-byte Folded Reload
pushq %r11
pushq %r10
pushq %rax
callq _do_block_matching_multi
addq $136, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_1:
xorl %r12d, %r12d
jmp LBB0_2
.p2align 4, 0x90
LBB0_8: ## in Loop: Header=BB0_2 Depth=1
addl %r13d, %r14d
cmpl %eax, %r14d
jg LBB0_9
LBB0_2: ## =>This Loop Header: Depth=1
## Child Loop BB0_4 Depth 2
cmpl %ebx, %r9d
jg LBB0_8
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movl %r14d, %ecx
xorl %r10d, %ecx
movl %r9d, %edx
jmp LBB0_4
.p2align 4, 0x90
LBB0_7: ## in Loop: Header=BB0_4 Depth=2
addl %r13d, %edx
cmpl %ebx, %edx
jg LBB0_8
LBB0_4: ## Parent Loop BB0_2 Depth=1
## => This Inner Loop Header: Depth=2
movl %r11d, %esi
xorl %edx, %esi
orl %ecx, %esi
sete %sil
testl %r15d, %r15d
jns LBB0_7
## %bb.5: ## in Loop: Header=BB0_4 Depth=2
testb %sil, %sil
jne LBB0_7
## %bb.6: ## in Loop: Header=BB0_4 Depth=2
movq 8(%r8), %rsi
movslq %r12d, %rdi
incl %r12d
movl %r14d, (%rsi,%rdi,8)
movl %edx, 4(%rsi,%rdi,8)
jmp LBB0_7
.cfi_endproc
## -- End function
.no_dead_strip _block_matching_multi
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function block_matching_multi
_block_matching_multi: ; @block_matching_multi
.cfi_startproc
; %bb.0:
sub sp, sp, #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
mov x26, x5
mov x23, x4
mov x19, x3
stp w6, w2, [sp, #40] ; 8-byte Folded Spill
str x1, [sp, #24] ; 8-byte Folded Spill
mov x25, x0
ldr x8, [x0, #32]
mov w9, #24 ; =0x18
ldp x10, x11, [x0]
ldr w20, [x10, w6, sxtw #2]
ldr w10, [x11, w6, sxtw #2]
str w7, [sp, #36] ; 4-byte Folded Spill
smaddl x21, w7, w9, x8
ldp w24, w27, [x0, #16]
stp w24, w10, [sp, #16] ; 8-byte Folded Spill
ldr w8, [x0, #24]
sdiv w8, w8, w27
mul w22, w8, w27
mov w0, #0 ; =0x0
mov x1, x22
mov x2, x27
mov w3, #0 ; =0x0
mov x4, x19
mov x5, x23
bl _search_boundary
mov x28, x0
sub w0, w20, w24
mov x1, x22
mov x2, x27
mov w3, #0 ; =0x0
mov x4, x19
mov x5, x23
bl _search_boundary
mov x20, x0
mov w0, #0 ; =0x0
mov x1, x22
mov x2, x27
mov w3, #1 ; =0x1
mov x4, x19
mov x5, x23
bl _search_boundary
mov x24, x0
ldp w9, w8, [sp, #16] ; 8-byte Folded Reload
sub w0, w8, w9
mov x1, x22
mov x2, x27
mov w3, #1 ; =0x1
mov x4, x19
mov x5, x23
bl _search_boundary
mov w5, #0 ; =0x0
cmp w24, w0
b.le LBB0_4
LBB0_1:
cmp w26, #1
b.ne LBB0_3
; %bb.2:
ldr x8, [x21, #16]
str xzr, [x8, #8]
stp w19, w23, [x8]
mov w8, #1 ; =0x1
str w8, [x21]
LBB0_3:
ldr x4, [x21, #8]
ldp w3, w6, [x25, #24]
ldp w9, w8, [sp, #36] ; 8-byte Folded Reload
stp w8, w9, [sp, #4]
str w23, [sp]
mov x0, x25
ldr x1, [sp, #24] ; 8-byte Folded Reload
ldr w2, [sp, #44] ; 4-byte Folded Reload
mov x7, x19
bl _do_block_matching_multi
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
LBB0_4:
mov w5, #0 ; =0x0
b LBB0_6
LBB0_5: ; in Loop: Header=BB0_6 Depth=1
add w24, w24, w27
cmp w24, w0
b.gt LBB0_1
LBB0_6: ; =>This Loop Header: Depth=1
; Child Loop BB0_9 Depth 2
cmp w28, w20
b.gt LBB0_5
; %bb.7: ; in Loop: Header=BB0_6 Depth=1
mov x8, x28
b LBB0_9
LBB0_8: ; in Loop: Header=BB0_9 Depth=2
add w8, w8, w27
cmp w8, w20
b.gt LBB0_5
LBB0_9: ; Parent Loop BB0_6 Depth=1
; => This Inner Loop Header: Depth=2
cmp w24, w19
ccmp w23, w8, #0, eq
cset w9, eq
tbz w26, #31, LBB0_8
; %bb.10: ; in Loop: Header=BB0_9 Depth=2
tbnz w9, #0, LBB0_8
; %bb.11: ; in Loop: Header=BB0_9 Depth=2
ldr x9, [x21, #8]
add x9, x9, w5, sxtw #3
add w5, w5, #1
stp w24, w8, [x9]
b LBB0_8
.cfi_endproc
; -- End function
.no_dead_strip _block_matching_multi
.subsections_via_symbols
| assembly_file_129601.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function write_scan_unevictable_node
_write_scan_unevictable_node: ## @write_scan_unevictable_node
.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
movl (%rdi), %edi
callq _NODE_DATA
movq (%rax), %r15
leaq -32(%rbp), %rdx
movq %r14, %rdi
movl $10, %esi
callq _strict_strtoul
testq %rax, %rax
je LBB0_6
## %bb.1:
movq _MAX_NR_ZONES@GOTPCREL(%rip), %r14
cmpl $0, (%r14)
jle LBB0_6
## %bb.2:
movl $4, %ebx
jmp LBB0_3
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_3 Depth=1
addq $4, %r15
movq %rbx, %rax
sarq $2, %rax
movslq (%r14), %rcx
addq $4, %rbx
cmpq %rcx, %rax
jge LBB0_6
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
callq _populated_zone
testl %eax, %eax
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq %r15, %rdi
callq _scan_zone_unevictable_pages
jmp LBB0_5
LBB0_6:
movl $1, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _MAX_NR_ZONES,4,2 ## @MAX_NR_ZONES
.no_dead_strip _write_scan_unevictable_node
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function write_scan_unevictable_node
_write_scan_unevictable_node: ; @write_scan_unevictable_node
.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
ldr w0, [x0]
bl _NODE_DATA
ldr x20, [x0]
add x2, sp, #8
mov x0, x19
mov w1, #10
bl _strict_strtoul
cbz x0, LBB0_6
; %bb.1:
Lloh0:
adrp x21, _MAX_NR_ZONES@GOTPAGE
Lloh1:
ldr x21, [x21, _MAX_NR_ZONES@GOTPAGEOFF]
ldr w8, [x21]
cmp w8, #1
b.lt LBB0_6
; %bb.2:
mov x22, #0
b LBB0_4
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
add x22, x22, #4
ldrsw x8, [x21]
cmp x8, x22, asr #2
b.le LBB0_6
LBB0_4: ; =>This Inner Loop Header: Depth=1
add x19, x20, x22
mov x0, x19
bl _populated_zone
cbz w0, LBB0_3
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
mov x0, x19
bl _scan_zone_unevictable_pages
b LBB0_3
LBB0_6:
mov w0, #1
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 AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _MAX_NR_ZONES,4,2 ; @MAX_NR_ZONES
.no_dead_strip _write_scan_unevictable_node
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/mm/extr_vmscan.c_write_scan_unevictable_node.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _acpi_ns_opens_scope ## -- Begin function acpi_ns_opens_scope
.p2align 4, 0x90
_acpi_ns_opens_scope: ## @acpi_ns_opens_scope
.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
xorl %eax, %eax
callq _ACPI_FUNCTION_ENTRY
movq _ACPI_TYPE_LOCAL_MAX@GOTPCREL(%rip), %rax
cmpq %rbx, (%rax)
jae LBB0_2
## %bb.1:
movl %ebx, %edi
callq _ACPI_WARNING
movq _ACPI_NS_NORMAL@GOTPCREL(%rip), %rax
movl (%rax), %eax
jmp LBB0_3
LBB0_2:
movq _acpi_gbl_ns_properties@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movq _ACPI_NS_NEWSCOPE@GOTPCREL(%rip), %rax
movl (%rax), %eax
andl (%rcx,%rbx,8), %eax
LBB0_3:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ACPI_TYPE_LOCAL_MAX,8,3 ## @ACPI_TYPE_LOCAL_MAX
.comm _AE_INFO,4,2 ## @AE_INFO
.comm _ACPI_NS_NORMAL,4,2 ## @ACPI_NS_NORMAL
.comm _acpi_gbl_ns_properties,8,3 ## @acpi_gbl_ns_properties
.comm _ACPI_NS_NEWSCOPE,4,2 ## @ACPI_NS_NEWSCOPE
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _acpi_ns_opens_scope ; -- Begin function acpi_ns_opens_scope
.p2align 2
_acpi_ns_opens_scope: ; @acpi_ns_opens_scope
.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 _ACPI_FUNCTION_ENTRY
Lloh0:
adrp x8, _ACPI_TYPE_LOCAL_MAX@GOTPAGE
Lloh1:
ldr x8, [x8, _ACPI_TYPE_LOCAL_MAX@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
cmp x8, x19
b.hs LBB0_2
; %bb.1:
mov x0, x19
bl _ACPI_WARNING
Lloh3:
adrp x8, _ACPI_NS_NORMAL@GOTPAGE
Lloh4:
ldr x8, [x8, _ACPI_NS_NORMAL@GOTPAGEOFF]
Lloh5:
ldr w0, [x8]
b LBB0_3
LBB0_2:
Lloh6:
adrp x8, _acpi_gbl_ns_properties@GOTPAGE
Lloh7:
ldr x8, [x8, _acpi_gbl_ns_properties@GOTPAGEOFF]
Lloh8:
ldr x8, [x8]
ldr x8, [x8, x19, lsl #3]
Lloh9:
adrp x9, _ACPI_NS_NEWSCOPE@GOTPAGE
Lloh10:
ldr x9, [x9, _ACPI_NS_NEWSCOPE@GOTPAGEOFF]
Lloh11:
ldr w9, [x9]
and w0, w9, w8
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 Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.cfi_endproc
; -- End function
.comm _ACPI_TYPE_LOCAL_MAX,8,3 ; @ACPI_TYPE_LOCAL_MAX
.comm _AE_INFO,4,2 ; @AE_INFO
.comm _ACPI_NS_NORMAL,4,2 ; @ACPI_NS_NORMAL
.comm _acpi_gbl_ns_properties,8,3 ; @acpi_gbl_ns_properties
.comm _ACPI_NS_NEWSCOPE,4,2 ; @ACPI_NS_NEWSCOPE
.subsections_via_symbols
| AnghaBench/linux/drivers/acpi/acpica/extr_nsutils.c_acpi_ns_opens_scope.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function get_all_registers
_get_all_registers: ## @get_all_registers
.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 $120, %rsp
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %esi, %ebx
movq %rdi, %r14
movq _get_efer@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq _get_all@GOTPCREL(%rip), %r15
orq (%r15), %rax
je LBB0_1
## %bb.2:
movq _VM_REG_GUEST_EFER@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -88(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.3:
movl -88(%rbp), %edx
leaq L_.str(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_4
LBB0_1:
xorl %eax, %eax
LBB0_4:
movq _get_cr0@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_5
## %bb.6:
movq _VM_REG_GUEST_CR0@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -140(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.7:
movl -140(%rbp), %edx
leaq L_.str.1(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_8
LBB0_5:
xorl %eax, %eax
LBB0_8:
movq _get_cr2@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_9
## %bb.10:
movq _VM_REG_GUEST_CR2@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -136(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.11:
movl -136(%rbp), %edx
leaq L_.str.2(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_12
LBB0_9:
xorl %eax, %eax
LBB0_12:
movq _get_cr3@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_13
## %bb.14:
movq _VM_REG_GUEST_CR3@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -132(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.15:
movl -132(%rbp), %edx
leaq L_.str.3(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_16
LBB0_13:
xorl %eax, %eax
LBB0_16:
movq _get_cr4@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_17
## %bb.18:
movq _VM_REG_GUEST_CR4@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -128(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.19:
movl -128(%rbp), %edx
leaq L_.str.4(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_20
LBB0_17:
xorl %eax, %eax
LBB0_20:
movq _get_dr0@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_21
## %bb.22:
movq _VM_REG_GUEST_DR0@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -124(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.23:
movl -124(%rbp), %edx
leaq L_.str.5(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_24
LBB0_21:
xorl %eax, %eax
LBB0_24:
movq _get_dr1@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_25
## %bb.26:
movq _VM_REG_GUEST_DR1@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -120(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.27:
movl -120(%rbp), %edx
leaq L_.str.6(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_28
LBB0_25:
xorl %eax, %eax
LBB0_28:
movq _get_dr2@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_29
## %bb.30:
movq _VM_REG_GUEST_DR2@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -116(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.31:
movl -116(%rbp), %edx
leaq L_.str.7(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_32
LBB0_29:
xorl %eax, %eax
LBB0_32:
movq _get_dr3@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_33
## %bb.34:
movq _VM_REG_GUEST_DR3@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -112(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.35:
movl -112(%rbp), %edx
leaq L_.str.8(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_36
LBB0_33:
xorl %eax, %eax
LBB0_36:
movq _get_dr6@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_37
## %bb.38:
movq _VM_REG_GUEST_DR6@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -108(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.39:
movl -108(%rbp), %edx
leaq L_.str.9(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_40
LBB0_37:
xorl %eax, %eax
LBB0_40:
movq _get_dr7@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_41
## %bb.42:
movq _VM_REG_GUEST_DR7@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -104(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.43:
movl -104(%rbp), %edx
leaq L_.str.10(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_44
LBB0_41:
xorl %eax, %eax
LBB0_44:
movq _get_rsp@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_45
## %bb.46:
movq _VM_REG_GUEST_RSP@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -100(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.47:
movl -100(%rbp), %edx
leaq L_.str.11(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_48
LBB0_45:
xorl %eax, %eax
LBB0_48:
movq _get_rip@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_49
## %bb.50:
movq _VM_REG_GUEST_RIP@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -96(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.51:
movl -96(%rbp), %edx
leaq L_.str.12(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_52
LBB0_49:
xorl %eax, %eax
LBB0_52:
movq _get_rax@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_53
## %bb.54:
movq _VM_REG_GUEST_RAX@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -84(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.55:
movl -84(%rbp), %edx
leaq L_.str.13(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_56
LBB0_53:
xorl %eax, %eax
LBB0_56:
movq _get_rbx@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_57
## %bb.58:
movq _VM_REG_GUEST_RBX@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -80(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.59:
movl -80(%rbp), %edx
leaq L_.str.14(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_60
LBB0_57:
xorl %eax, %eax
LBB0_60:
movq _get_rcx@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_61
## %bb.62:
movq _VM_REG_GUEST_RCX@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -76(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.63:
movl -76(%rbp), %edx
leaq L_.str.15(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_64
LBB0_61:
xorl %eax, %eax
LBB0_64:
movq _get_rdx@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_65
## %bb.66:
movq _VM_REG_GUEST_RDX@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -72(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.67:
movl -72(%rbp), %edx
leaq L_.str.16(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_68
LBB0_65:
xorl %eax, %eax
LBB0_68:
movq _get_rsi@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_69
## %bb.70:
movq _VM_REG_GUEST_RSI@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -68(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.71:
movl -68(%rbp), %edx
leaq L_.str.17(%rip), %rdi
movl %ebx, %esi
callq _printf
movq (%r15), %rax
jmp LBB0_72
LBB0_69:
xorl %eax, %eax
LBB0_72:
movq _get_rdi@GOTPCREL(%rip), %rcx
orq (%rcx), %rax
je LBB0_73
## %bb.74:
movq _VM_REG_GUEST_RDI@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -64(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.75:
movl -64(%rbp), %edx
leaq L_.str.18(%rip), %rdi
movl %ebx, %esi
callq _printf
cmpq $0, (%r15)
setne %al
jmp LBB0_76
LBB0_73:
xorl %eax, %eax
LBB0_76:
movq _get_rbp@GOTPCREL(%rip), %rcx
cmpq $0, (%rcx)
jne LBB0_79
## %bb.77:
testb %al, %al
jne LBB0_79
## %bb.78:
xorl %eax, %eax
jmp LBB0_81
LBB0_79:
movq _VM_REG_GUEST_RBP@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -60(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.80:
movl -60(%rbp), %edx
leaq L_.str.19(%rip), %rdi
movl %ebx, %esi
callq _printf
cmpq $0, (%r15)
setne %al
LBB0_81:
movq _get_r8@GOTPCREL(%rip), %rcx
cmpq $0, (%rcx)
jne LBB0_84
## %bb.82:
testb %al, %al
jne LBB0_84
## %bb.83:
xorl %eax, %eax
jmp LBB0_86
LBB0_84:
movq _VM_REG_GUEST_R8@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -56(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.85:
movl -56(%rbp), %edx
leaq L_.str.20(%rip), %rdi
movl %ebx, %esi
callq _printf
cmpq $0, (%r15)
setne %al
LBB0_86:
movq _get_r9@GOTPCREL(%rip), %rcx
cmpq $0, (%rcx)
jne LBB0_89
## %bb.87:
testb %al, %al
jne LBB0_89
## %bb.88:
xorl %eax, %eax
jmp LBB0_91
LBB0_89:
movq _VM_REG_GUEST_R9@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -52(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.90:
movl -52(%rbp), %edx
leaq L_.str.21(%rip), %rdi
movl %ebx, %esi
callq _printf
cmpq $0, (%r15)
setne %al
LBB0_91:
movq _get_r10@GOTPCREL(%rip), %rcx
cmpq $0, (%rcx)
jne LBB0_94
## %bb.92:
testb %al, %al
jne LBB0_94
## %bb.93:
xorl %eax, %eax
jmp LBB0_96
LBB0_94:
movq _VM_REG_GUEST_R10@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -48(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.95:
movl -48(%rbp), %edx
leaq L_.str.22(%rip), %rdi
movl %ebx, %esi
callq _printf
cmpq $0, (%r15)
setne %al
LBB0_96:
movq _get_r11@GOTPCREL(%rip), %rcx
cmpq $0, (%rcx)
jne LBB0_99
## %bb.97:
testb %al, %al
jne LBB0_99
## %bb.98:
xorl %eax, %eax
jmp LBB0_101
LBB0_99:
movq _VM_REG_GUEST_R11@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -44(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.100:
movl -44(%rbp), %edx
leaq L_.str.23(%rip), %rdi
movl %ebx, %esi
callq _printf
cmpq $0, (%r15)
setne %al
LBB0_101:
movq _get_r12@GOTPCREL(%rip), %rcx
cmpq $0, (%rcx)
jne LBB0_104
## %bb.102:
testb %al, %al
jne LBB0_104
## %bb.103:
xorl %eax, %eax
jmp LBB0_106
LBB0_104:
movq _VM_REG_GUEST_R12@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -40(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.105:
movl -40(%rbp), %edx
leaq L_.str.24(%rip), %rdi
movl %ebx, %esi
callq _printf
cmpq $0, (%r15)
setne %al
LBB0_106:
movq _get_r13@GOTPCREL(%rip), %rcx
cmpq $0, (%rcx)
jne LBB0_109
## %bb.107:
testb %al, %al
jne LBB0_109
## %bb.108:
xorl %eax, %eax
jmp LBB0_111
LBB0_109:
movq _VM_REG_GUEST_R13@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -36(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.110:
movl -36(%rbp), %edx
leaq L_.str.25(%rip), %rdi
movl %ebx, %esi
callq _printf
cmpq $0, (%r15)
setne %al
LBB0_111:
movq _get_r14@GOTPCREL(%rip), %rcx
cmpq $0, (%rcx)
jne LBB0_114
## %bb.112:
testb %al, %al
jne LBB0_114
## %bb.113:
xorl %eax, %eax
jmp LBB0_116
LBB0_114:
movq _VM_REG_GUEST_R14@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -32(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.115:
movl -32(%rbp), %edx
leaq L_.str.26(%rip), %rdi
movl %ebx, %esi
callq _printf
cmpq $0, (%r15)
setne %al
LBB0_116:
movq _get_r15@GOTPCREL(%rip), %rcx
cmpq $0, (%rcx)
jne LBB0_119
## %bb.117:
testb %al, %al
jne LBB0_119
## %bb.118:
xorl %ecx, %ecx
jmp LBB0_121
LBB0_119:
movq _VM_REG_GUEST_R15@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -28(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.120:
movl -28(%rbp), %edx
leaq L_.str.27(%rip), %rdi
movl %ebx, %esi
callq _printf
cmpq $0, (%r15)
setne %cl
LBB0_121:
movq _get_rflags@GOTPCREL(%rip), %rdx
xorl %eax, %eax
cmpq $0, (%rdx)
jne LBB0_123
## %bb.122:
testb %cl, %cl
je LBB0_125
LBB0_123:
movq _VM_REG_GUEST_RFLAGS@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq -92(%rbp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq _vm_get_register
testl %eax, %eax
jne LBB0_125
## %bb.124:
movl -92(%rbp), %edx
leaq L_.str.28(%rip), %rdi
movl %ebx, %esi
callq _printf
xorl %eax, %eax
LBB0_125:
addq $120, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _get_efer,8,3 ## @get_efer
.comm _get_all,8,3 ## @get_all
.comm _VM_REG_GUEST_EFER,4,2 ## @VM_REG_GUEST_EFER
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "efer[%d]\t\t0x%016lx\n"
.comm _get_cr0,8,3 ## @get_cr0
.comm _VM_REG_GUEST_CR0,4,2 ## @VM_REG_GUEST_CR0
L_.str.1: ## @.str.1
.asciz "cr0[%d]\t\t0x%016lx\n"
.comm _get_cr2,8,3 ## @get_cr2
.comm _VM_REG_GUEST_CR2,4,2 ## @VM_REG_GUEST_CR2
L_.str.2: ## @.str.2
.asciz "cr2[%d]\t\t0x%016lx\n"
.comm _get_cr3,8,3 ## @get_cr3
.comm _VM_REG_GUEST_CR3,4,2 ## @VM_REG_GUEST_CR3
L_.str.3: ## @.str.3
.asciz "cr3[%d]\t\t0x%016lx\n"
.comm _get_cr4,8,3 ## @get_cr4
.comm _VM_REG_GUEST_CR4,4,2 ## @VM_REG_GUEST_CR4
L_.str.4: ## @.str.4
.asciz "cr4[%d]\t\t0x%016lx\n"
.comm _get_dr0,8,3 ## @get_dr0
.comm _VM_REG_GUEST_DR0,4,2 ## @VM_REG_GUEST_DR0
L_.str.5: ## @.str.5
.asciz "dr0[%d]\t\t0x%016lx\n"
.comm _get_dr1,8,3 ## @get_dr1
.comm _VM_REG_GUEST_DR1,4,2 ## @VM_REG_GUEST_DR1
L_.str.6: ## @.str.6
.asciz "dr1[%d]\t\t0x%016lx\n"
.comm _get_dr2,8,3 ## @get_dr2
.comm _VM_REG_GUEST_DR2,4,2 ## @VM_REG_GUEST_DR2
L_.str.7: ## @.str.7
.asciz "dr2[%d]\t\t0x%016lx\n"
.comm _get_dr3,8,3 ## @get_dr3
.comm _VM_REG_GUEST_DR3,4,2 ## @VM_REG_GUEST_DR3
L_.str.8: ## @.str.8
.asciz "dr3[%d]\t\t0x%016lx\n"
.comm _get_dr6,8,3 ## @get_dr6
.comm _VM_REG_GUEST_DR6,4,2 ## @VM_REG_GUEST_DR6
L_.str.9: ## @.str.9
.asciz "dr6[%d]\t\t0x%016lx\n"
.comm _get_dr7,8,3 ## @get_dr7
.comm _VM_REG_GUEST_DR7,4,2 ## @VM_REG_GUEST_DR7
L_.str.10: ## @.str.10
.asciz "dr7[%d]\t\t0x%016lx\n"
.comm _get_rsp,8,3 ## @get_rsp
.comm _VM_REG_GUEST_RSP,4,2 ## @VM_REG_GUEST_RSP
L_.str.11: ## @.str.11
.asciz "rsp[%d]\t\t0x%016lx\n"
.comm _get_rip,8,3 ## @get_rip
.comm _VM_REG_GUEST_RIP,4,2 ## @VM_REG_GUEST_RIP
L_.str.12: ## @.str.12
.asciz "rip[%d]\t\t0x%016lx\n"
.comm _get_rax,8,3 ## @get_rax
.comm _VM_REG_GUEST_RAX,4,2 ## @VM_REG_GUEST_RAX
L_.str.13: ## @.str.13
.asciz "rax[%d]\t\t0x%016lx\n"
.comm _get_rbx,8,3 ## @get_rbx
.comm _VM_REG_GUEST_RBX,4,2 ## @VM_REG_GUEST_RBX
L_.str.14: ## @.str.14
.asciz "rbx[%d]\t\t0x%016lx\n"
.comm _get_rcx,8,3 ## @get_rcx
.comm _VM_REG_GUEST_RCX,4,2 ## @VM_REG_GUEST_RCX
L_.str.15: ## @.str.15
.asciz "rcx[%d]\t\t0x%016lx\n"
.comm _get_rdx,8,3 ## @get_rdx
.comm _VM_REG_GUEST_RDX,4,2 ## @VM_REG_GUEST_RDX
L_.str.16: ## @.str.16
.asciz "rdx[%d]\t\t0x%016lx\n"
.comm _get_rsi,8,3 ## @get_rsi
.comm _VM_REG_GUEST_RSI,4,2 ## @VM_REG_GUEST_RSI
L_.str.17: ## @.str.17
.asciz "rsi[%d]\t\t0x%016lx\n"
.comm _get_rdi,8,3 ## @get_rdi
.comm _VM_REG_GUEST_RDI,4,2 ## @VM_REG_GUEST_RDI
L_.str.18: ## @.str.18
.asciz "rdi[%d]\t\t0x%016lx\n"
.comm _get_rbp,8,3 ## @get_rbp
.comm _VM_REG_GUEST_RBP,4,2 ## @VM_REG_GUEST_RBP
L_.str.19: ## @.str.19
.asciz "rbp[%d]\t\t0x%016lx\n"
.comm _get_r8,8,3 ## @get_r8
.comm _VM_REG_GUEST_R8,4,2 ## @VM_REG_GUEST_R8
L_.str.20: ## @.str.20
.asciz "r8[%d]\t\t0x%016lx\n"
.comm _get_r9,8,3 ## @get_r9
.comm _VM_REG_GUEST_R9,4,2 ## @VM_REG_GUEST_R9
L_.str.21: ## @.str.21
.asciz "r9[%d]\t\t0x%016lx\n"
.comm _get_r10,8,3 ## @get_r10
.comm _VM_REG_GUEST_R10,4,2 ## @VM_REG_GUEST_R10
L_.str.22: ## @.str.22
.asciz "r10[%d]\t\t0x%016lx\n"
.comm _get_r11,8,3 ## @get_r11
.comm _VM_REG_GUEST_R11,4,2 ## @VM_REG_GUEST_R11
L_.str.23: ## @.str.23
.asciz "r11[%d]\t\t0x%016lx\n"
.comm _get_r12,8,3 ## @get_r12
.comm _VM_REG_GUEST_R12,4,2 ## @VM_REG_GUEST_R12
L_.str.24: ## @.str.24
.asciz "r12[%d]\t\t0x%016lx\n"
.comm _get_r13,8,3 ## @get_r13
.comm _VM_REG_GUEST_R13,4,2 ## @VM_REG_GUEST_R13
L_.str.25: ## @.str.25
.asciz "r13[%d]\t\t0x%016lx\n"
.comm _get_r14,8,3 ## @get_r14
.comm _VM_REG_GUEST_R14,4,2 ## @VM_REG_GUEST_R14
L_.str.26: ## @.str.26
.asciz "r14[%d]\t\t0x%016lx\n"
.comm _get_r15,8,3 ## @get_r15
.comm _VM_REG_GUEST_R15,4,2 ## @VM_REG_GUEST_R15
L_.str.27: ## @.str.27
.asciz "r15[%d]\t\t0x%016lx\n"
.comm _get_rflags,8,3 ## @get_rflags
.comm _VM_REG_GUEST_RFLAGS,4,2 ## @VM_REG_GUEST_RFLAGS
L_.str.28: ## @.str.28
.asciz "rflags[%d]\t0x%016lx\n"
.no_dead_strip _get_all_registers
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function get_all_registers
_get_all_registers: ; @get_all_registers
.cfi_startproc
; %bb.0:
sub sp, sp, #176
.cfi_def_cfa_offset 176
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
mov x19, x1
mov x20, x0
Lloh0:
adrp x8, _get_efer@GOTPAGE
Lloh1:
ldr x8, [x8, _get_efer@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
Lloh3:
adrp x21, _get_all@GOTPAGE
Lloh4:
ldr x21, [x21, _get_all@GOTPAGEOFF]
ldr x9, [x21]
orr x8, x8, x9
cbz x8, LBB0_3
; %bb.1:
Lloh5:
adrp x8, _VM_REG_GUEST_EFER@GOTPAGE
Lloh6:
ldr x8, [x8, _VM_REG_GUEST_EFER@GOTPAGEOFF]
Lloh7:
ldr w2, [x8]
add x3, sp, #72
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.2:
ldr w2, [sp, #72]
Lloh8:
adrp x0, l_.str@PAGE
Lloh9:
add x0, x0, l_.str@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_3:
Lloh10:
adrp x9, _get_cr0@GOTPAGE
Lloh11:
ldr x9, [x9, _get_cr0@GOTPAGEOFF]
Lloh12:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_6
; %bb.4:
Lloh13:
adrp x8, _VM_REG_GUEST_CR0@GOTPAGE
Lloh14:
ldr x8, [x8, _VM_REG_GUEST_CR0@GOTPAGEOFF]
Lloh15:
ldr w2, [x8]
sub x3, x29, #36
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.5:
ldur w2, [x29, #-36]
Lloh16:
adrp x0, l_.str.1@PAGE
Lloh17:
add x0, x0, l_.str.1@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_6:
Lloh18:
adrp x9, _get_cr2@GOTPAGE
Lloh19:
ldr x9, [x9, _get_cr2@GOTPAGEOFF]
Lloh20:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_9
; %bb.7:
Lloh21:
adrp x8, _VM_REG_GUEST_CR2@GOTPAGE
Lloh22:
ldr x8, [x8, _VM_REG_GUEST_CR2@GOTPAGEOFF]
Lloh23:
ldr w2, [x8]
sub x3, x29, #40
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.8:
ldur w2, [x29, #-40]
Lloh24:
adrp x0, l_.str.2@PAGE
Lloh25:
add x0, x0, l_.str.2@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_9:
Lloh26:
adrp x9, _get_cr3@GOTPAGE
Lloh27:
ldr x9, [x9, _get_cr3@GOTPAGEOFF]
Lloh28:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_12
; %bb.10:
Lloh29:
adrp x8, _VM_REG_GUEST_CR3@GOTPAGE
Lloh30:
ldr x8, [x8, _VM_REG_GUEST_CR3@GOTPAGEOFF]
Lloh31:
ldr w2, [x8]
sub x3, x29, #44
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.11:
ldur w2, [x29, #-44]
Lloh32:
adrp x0, l_.str.3@PAGE
Lloh33:
add x0, x0, l_.str.3@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_12:
Lloh34:
adrp x9, _get_cr4@GOTPAGE
Lloh35:
ldr x9, [x9, _get_cr4@GOTPAGEOFF]
Lloh36:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_15
; %bb.13:
Lloh37:
adrp x8, _VM_REG_GUEST_CR4@GOTPAGE
Lloh38:
ldr x8, [x8, _VM_REG_GUEST_CR4@GOTPAGEOFF]
Lloh39:
ldr w2, [x8]
sub x3, x29, #48
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.14:
ldur w2, [x29, #-48]
Lloh40:
adrp x0, l_.str.4@PAGE
Lloh41:
add x0, x0, l_.str.4@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_15:
Lloh42:
adrp x9, _get_dr0@GOTPAGE
Lloh43:
ldr x9, [x9, _get_dr0@GOTPAGEOFF]
Lloh44:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_18
; %bb.16:
Lloh45:
adrp x8, _VM_REG_GUEST_DR0@GOTPAGE
Lloh46:
ldr x8, [x8, _VM_REG_GUEST_DR0@GOTPAGEOFF]
Lloh47:
ldr w2, [x8]
sub x3, x29, #52
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.17:
ldur w2, [x29, #-52]
Lloh48:
adrp x0, l_.str.5@PAGE
Lloh49:
add x0, x0, l_.str.5@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_18:
Lloh50:
adrp x9, _get_dr1@GOTPAGE
Lloh51:
ldr x9, [x9, _get_dr1@GOTPAGEOFF]
Lloh52:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_21
; %bb.19:
Lloh53:
adrp x8, _VM_REG_GUEST_DR1@GOTPAGE
Lloh54:
ldr x8, [x8, _VM_REG_GUEST_DR1@GOTPAGEOFF]
Lloh55:
ldr w2, [x8]
sub x3, x29, #56
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.20:
ldur w2, [x29, #-56]
Lloh56:
adrp x0, l_.str.6@PAGE
Lloh57:
add x0, x0, l_.str.6@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_21:
Lloh58:
adrp x9, _get_dr2@GOTPAGE
Lloh59:
ldr x9, [x9, _get_dr2@GOTPAGEOFF]
Lloh60:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_24
; %bb.22:
Lloh61:
adrp x8, _VM_REG_GUEST_DR2@GOTPAGE
Lloh62:
ldr x8, [x8, _VM_REG_GUEST_DR2@GOTPAGEOFF]
Lloh63:
ldr w2, [x8]
sub x3, x29, #60
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.23:
ldur w2, [x29, #-60]
Lloh64:
adrp x0, l_.str.7@PAGE
Lloh65:
add x0, x0, l_.str.7@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_24:
Lloh66:
adrp x9, _get_dr3@GOTPAGE
Lloh67:
ldr x9, [x9, _get_dr3@GOTPAGEOFF]
Lloh68:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_27
; %bb.25:
Lloh69:
adrp x8, _VM_REG_GUEST_DR3@GOTPAGE
Lloh70:
ldr x8, [x8, _VM_REG_GUEST_DR3@GOTPAGEOFF]
Lloh71:
ldr w2, [x8]
sub x3, x29, #64
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.26:
ldur w2, [x29, #-64]
Lloh72:
adrp x0, l_.str.8@PAGE
Lloh73:
add x0, x0, l_.str.8@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_27:
Lloh74:
adrp x9, _get_dr6@GOTPAGE
Lloh75:
ldr x9, [x9, _get_dr6@GOTPAGEOFF]
Lloh76:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_30
; %bb.28:
Lloh77:
adrp x8, _VM_REG_GUEST_DR6@GOTPAGE
Lloh78:
ldr x8, [x8, _VM_REG_GUEST_DR6@GOTPAGEOFF]
Lloh79:
ldr w2, [x8]
sub x3, x29, #68
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.29:
ldur w2, [x29, #-68]
Lloh80:
adrp x0, l_.str.9@PAGE
Lloh81:
add x0, x0, l_.str.9@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_30:
Lloh82:
adrp x9, _get_dr7@GOTPAGE
Lloh83:
ldr x9, [x9, _get_dr7@GOTPAGEOFF]
Lloh84:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_33
; %bb.31:
Lloh85:
adrp x8, _VM_REG_GUEST_DR7@GOTPAGE
Lloh86:
ldr x8, [x8, _VM_REG_GUEST_DR7@GOTPAGEOFF]
Lloh87:
ldr w2, [x8]
sub x3, x29, #72
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.32:
ldur w2, [x29, #-72]
Lloh88:
adrp x0, l_.str.10@PAGE
Lloh89:
add x0, x0, l_.str.10@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_33:
Lloh90:
adrp x9, _get_rsp@GOTPAGE
Lloh91:
ldr x9, [x9, _get_rsp@GOTPAGEOFF]
Lloh92:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_36
; %bb.34:
Lloh93:
adrp x8, _VM_REG_GUEST_RSP@GOTPAGE
Lloh94:
ldr x8, [x8, _VM_REG_GUEST_RSP@GOTPAGEOFF]
Lloh95:
ldr w2, [x8]
sub x3, x29, #76
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.35:
ldur w2, [x29, #-76]
Lloh96:
adrp x0, l_.str.11@PAGE
Lloh97:
add x0, x0, l_.str.11@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_36:
Lloh98:
adrp x9, _get_rip@GOTPAGE
Lloh99:
ldr x9, [x9, _get_rip@GOTPAGEOFF]
Lloh100:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_39
; %bb.37:
Lloh101:
adrp x8, _VM_REG_GUEST_RIP@GOTPAGE
Lloh102:
ldr x8, [x8, _VM_REG_GUEST_RIP@GOTPAGEOFF]
Lloh103:
ldr w2, [x8]
add x3, sp, #80
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.38:
ldr w2, [sp, #80]
Lloh104:
adrp x0, l_.str.12@PAGE
Lloh105:
add x0, x0, l_.str.12@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_39:
Lloh106:
adrp x9, _get_rax@GOTPAGE
Lloh107:
ldr x9, [x9, _get_rax@GOTPAGEOFF]
Lloh108:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_42
; %bb.40:
Lloh109:
adrp x8, _VM_REG_GUEST_RAX@GOTPAGE
Lloh110:
ldr x8, [x8, _VM_REG_GUEST_RAX@GOTPAGEOFF]
Lloh111:
ldr w2, [x8]
add x3, sp, #68
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.41:
ldr w2, [sp, #68]
Lloh112:
adrp x0, l_.str.13@PAGE
Lloh113:
add x0, x0, l_.str.13@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_42:
Lloh114:
adrp x9, _get_rbx@GOTPAGE
Lloh115:
ldr x9, [x9, _get_rbx@GOTPAGEOFF]
Lloh116:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_45
; %bb.43:
Lloh117:
adrp x8, _VM_REG_GUEST_RBX@GOTPAGE
Lloh118:
ldr x8, [x8, _VM_REG_GUEST_RBX@GOTPAGEOFF]
Lloh119:
ldr w2, [x8]
add x3, sp, #64
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.44:
ldr w2, [sp, #64]
Lloh120:
adrp x0, l_.str.14@PAGE
Lloh121:
add x0, x0, l_.str.14@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_45:
Lloh122:
adrp x9, _get_rcx@GOTPAGE
Lloh123:
ldr x9, [x9, _get_rcx@GOTPAGEOFF]
Lloh124:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_48
; %bb.46:
Lloh125:
adrp x8, _VM_REG_GUEST_RCX@GOTPAGE
Lloh126:
ldr x8, [x8, _VM_REG_GUEST_RCX@GOTPAGEOFF]
Lloh127:
ldr w2, [x8]
add x3, sp, #60
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.47:
ldr w2, [sp, #60]
Lloh128:
adrp x0, l_.str.15@PAGE
Lloh129:
add x0, x0, l_.str.15@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_48:
Lloh130:
adrp x9, _get_rdx@GOTPAGE
Lloh131:
ldr x9, [x9, _get_rdx@GOTPAGEOFF]
Lloh132:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_51
; %bb.49:
Lloh133:
adrp x8, _VM_REG_GUEST_RDX@GOTPAGE
Lloh134:
ldr x8, [x8, _VM_REG_GUEST_RDX@GOTPAGEOFF]
Lloh135:
ldr w2, [x8]
add x3, sp, #56
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.50:
ldr w2, [sp, #56]
Lloh136:
adrp x0, l_.str.16@PAGE
Lloh137:
add x0, x0, l_.str.16@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_51:
Lloh138:
adrp x9, _get_rsi@GOTPAGE
Lloh139:
ldr x9, [x9, _get_rsi@GOTPAGEOFF]
Lloh140:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_54
; %bb.52:
Lloh141:
adrp x8, _VM_REG_GUEST_RSI@GOTPAGE
Lloh142:
ldr x8, [x8, _VM_REG_GUEST_RSI@GOTPAGEOFF]
Lloh143:
ldr w2, [x8]
add x3, sp, #52
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.53:
ldr w2, [sp, #52]
Lloh144:
adrp x0, l_.str.17@PAGE
Lloh145:
add x0, x0, l_.str.17@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
LBB0_54:
Lloh146:
adrp x9, _get_rdi@GOTPAGE
Lloh147:
ldr x9, [x9, _get_rdi@GOTPAGEOFF]
Lloh148:
ldr x9, [x9]
orr x8, x9, x8
cbz x8, LBB0_57
; %bb.55:
Lloh149:
adrp x8, _VM_REG_GUEST_RDI@GOTPAGE
Lloh150:
ldr x8, [x8, _VM_REG_GUEST_RDI@GOTPAGEOFF]
Lloh151:
ldr w2, [x8]
add x3, sp, #48
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.56:
ldr w2, [sp, #48]
Lloh152:
adrp x0, l_.str.18@PAGE
Lloh153:
add x0, x0, l_.str.18@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
cmp x8, #0
cset w8, ne
LBB0_57:
Lloh154:
adrp x9, _get_rbp@GOTPAGE
Lloh155:
ldr x9, [x9, _get_rbp@GOTPAGEOFF]
Lloh156:
ldr x9, [x9]
cbnz x9, LBB0_59
; %bb.58:
cbz w8, LBB0_61
LBB0_59:
Lloh157:
adrp x8, _VM_REG_GUEST_RBP@GOTPAGE
Lloh158:
ldr x8, [x8, _VM_REG_GUEST_RBP@GOTPAGEOFF]
Lloh159:
ldr w2, [x8]
add x3, sp, #44
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.60:
ldr w2, [sp, #44]
Lloh160:
adrp x0, l_.str.19@PAGE
Lloh161:
add x0, x0, l_.str.19@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
cmp x8, #0
cset w8, ne
LBB0_61:
Lloh162:
adrp x9, _get_r8@GOTPAGE
Lloh163:
ldr x9, [x9, _get_r8@GOTPAGEOFF]
Lloh164:
ldr x9, [x9]
cbnz x9, LBB0_63
; %bb.62:
cbz w8, LBB0_65
LBB0_63:
Lloh165:
adrp x8, _VM_REG_GUEST_R8@GOTPAGE
Lloh166:
ldr x8, [x8, _VM_REG_GUEST_R8@GOTPAGEOFF]
Lloh167:
ldr w2, [x8]
add x3, sp, #40
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.64:
ldr w2, [sp, #40]
Lloh168:
adrp x0, l_.str.20@PAGE
Lloh169:
add x0, x0, l_.str.20@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
cmp x8, #0
cset w8, ne
LBB0_65:
Lloh170:
adrp x9, _get_r9@GOTPAGE
Lloh171:
ldr x9, [x9, _get_r9@GOTPAGEOFF]
Lloh172:
ldr x9, [x9]
cbnz x9, LBB0_67
; %bb.66:
cbz w8, LBB0_69
LBB0_67:
Lloh173:
adrp x8, _VM_REG_GUEST_R9@GOTPAGE
Lloh174:
ldr x8, [x8, _VM_REG_GUEST_R9@GOTPAGEOFF]
Lloh175:
ldr w2, [x8]
add x3, sp, #36
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.68:
ldr w2, [sp, #36]
Lloh176:
adrp x0, l_.str.21@PAGE
Lloh177:
add x0, x0, l_.str.21@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
cmp x8, #0
cset w8, ne
LBB0_69:
Lloh178:
adrp x9, _get_r10@GOTPAGE
Lloh179:
ldr x9, [x9, _get_r10@GOTPAGEOFF]
Lloh180:
ldr x9, [x9]
cbnz x9, LBB0_71
; %bb.70:
cbz w8, LBB0_73
LBB0_71:
Lloh181:
adrp x8, _VM_REG_GUEST_R10@GOTPAGE
Lloh182:
ldr x8, [x8, _VM_REG_GUEST_R10@GOTPAGEOFF]
Lloh183:
ldr w2, [x8]
add x3, sp, #32
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.72:
ldr w2, [sp, #32]
Lloh184:
adrp x0, l_.str.22@PAGE
Lloh185:
add x0, x0, l_.str.22@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
cmp x8, #0
cset w8, ne
LBB0_73:
Lloh186:
adrp x9, _get_r11@GOTPAGE
Lloh187:
ldr x9, [x9, _get_r11@GOTPAGEOFF]
Lloh188:
ldr x9, [x9]
cbnz x9, LBB0_75
; %bb.74:
cbz w8, LBB0_77
LBB0_75:
Lloh189:
adrp x8, _VM_REG_GUEST_R11@GOTPAGE
Lloh190:
ldr x8, [x8, _VM_REG_GUEST_R11@GOTPAGEOFF]
Lloh191:
ldr w2, [x8]
add x3, sp, #28
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.76:
ldr w2, [sp, #28]
Lloh192:
adrp x0, l_.str.23@PAGE
Lloh193:
add x0, x0, l_.str.23@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
cmp x8, #0
cset w8, ne
LBB0_77:
Lloh194:
adrp x9, _get_r12@GOTPAGE
Lloh195:
ldr x9, [x9, _get_r12@GOTPAGEOFF]
Lloh196:
ldr x9, [x9]
cbnz x9, LBB0_79
; %bb.78:
cbz w8, LBB0_81
LBB0_79:
Lloh197:
adrp x8, _VM_REG_GUEST_R12@GOTPAGE
Lloh198:
ldr x8, [x8, _VM_REG_GUEST_R12@GOTPAGEOFF]
Lloh199:
ldr w2, [x8]
add x3, sp, #24
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.80:
ldr w2, [sp, #24]
Lloh200:
adrp x0, l_.str.24@PAGE
Lloh201:
add x0, x0, l_.str.24@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
cmp x8, #0
cset w8, ne
LBB0_81:
Lloh202:
adrp x9, _get_r13@GOTPAGE
Lloh203:
ldr x9, [x9, _get_r13@GOTPAGEOFF]
Lloh204:
ldr x9, [x9]
cbnz x9, LBB0_83
; %bb.82:
cbz w8, LBB0_85
LBB0_83:
Lloh205:
adrp x8, _VM_REG_GUEST_R13@GOTPAGE
Lloh206:
ldr x8, [x8, _VM_REG_GUEST_R13@GOTPAGEOFF]
Lloh207:
ldr w2, [x8]
add x3, sp, #20
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.84:
ldr w2, [sp, #20]
Lloh208:
adrp x0, l_.str.25@PAGE
Lloh209:
add x0, x0, l_.str.25@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
cmp x8, #0
cset w8, ne
LBB0_85:
Lloh210:
adrp x9, _get_r14@GOTPAGE
Lloh211:
ldr x9, [x9, _get_r14@GOTPAGEOFF]
Lloh212:
ldr x9, [x9]
cbnz x9, LBB0_87
; %bb.86:
cbz w8, LBB0_89
LBB0_87:
Lloh213:
adrp x8, _VM_REG_GUEST_R14@GOTPAGE
Lloh214:
ldr x8, [x8, _VM_REG_GUEST_R14@GOTPAGEOFF]
Lloh215:
ldr w2, [x8]
add x3, sp, #16
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.88:
ldr w2, [sp, #16]
Lloh216:
adrp x0, l_.str.26@PAGE
Lloh217:
add x0, x0, l_.str.26@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
cmp x8, #0
cset w8, ne
LBB0_89:
Lloh218:
adrp x9, _get_r15@GOTPAGE
Lloh219:
ldr x9, [x9, _get_r15@GOTPAGEOFF]
Lloh220:
ldr x9, [x9]
cbnz x9, LBB0_91
; %bb.90:
cbz w8, LBB0_93
LBB0_91:
Lloh221:
adrp x8, _VM_REG_GUEST_R15@GOTPAGE
Lloh222:
ldr x8, [x8, _VM_REG_GUEST_R15@GOTPAGEOFF]
Lloh223:
ldr w2, [x8]
add x3, sp, #12
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.92:
ldr w2, [sp, #12]
Lloh224:
adrp x0, l_.str.27@PAGE
Lloh225:
add x0, x0, l_.str.27@PAGEOFF
mov x1, x19
bl _printf
ldr x8, [x21]
cmp x8, #0
cset w8, ne
LBB0_93:
Lloh226:
adrp x9, _get_rflags@GOTPAGE
Lloh227:
ldr x9, [x9, _get_rflags@GOTPAGEOFF]
Lloh228:
ldr x9, [x9]
cbnz x9, LBB0_95
; %bb.94:
cbz w8, LBB0_97
LBB0_95:
Lloh229:
adrp x8, _VM_REG_GUEST_RFLAGS@GOTPAGE
Lloh230:
ldr x8, [x8, _VM_REG_GUEST_RFLAGS@GOTPAGEOFF]
Lloh231:
ldr w2, [x8]
add x3, sp, #76
mov x0, x20
mov x1, x19
bl _vm_get_register
cbnz w0, LBB0_98
; %bb.96:
ldr w2, [sp, #76]
Lloh232:
adrp x0, l_.str.28@PAGE
Lloh233:
add x0, x0, l_.str.28@PAGEOFF
mov x1, x19
bl _printf
LBB0_97:
mov w0, #0
LBB0_98:
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
add sp, sp, #176
ret
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20
.loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23
.loh AdrpAdd Lloh24, Lloh25
.loh AdrpLdrGotLdr Lloh26, Lloh27, Lloh28
.loh AdrpLdrGotLdr Lloh29, Lloh30, Lloh31
.loh AdrpAdd Lloh32, Lloh33
.loh AdrpLdrGotLdr Lloh34, Lloh35, Lloh36
.loh AdrpLdrGotLdr Lloh37, Lloh38, Lloh39
.loh AdrpAdd Lloh40, Lloh41
.loh AdrpLdrGotLdr Lloh42, Lloh43, Lloh44
.loh AdrpLdrGotLdr Lloh45, Lloh46, Lloh47
.loh AdrpAdd Lloh48, Lloh49
.loh AdrpLdrGotLdr Lloh50, Lloh51, Lloh52
.loh AdrpLdrGotLdr Lloh53, Lloh54, Lloh55
.loh AdrpAdd Lloh56, Lloh57
.loh AdrpLdrGotLdr Lloh58, Lloh59, Lloh60
.loh AdrpLdrGotLdr Lloh61, Lloh62, Lloh63
.loh AdrpAdd Lloh64, Lloh65
.loh AdrpLdrGotLdr Lloh66, Lloh67, Lloh68
.loh AdrpLdrGotLdr Lloh69, Lloh70, Lloh71
.loh AdrpAdd Lloh72, Lloh73
.loh AdrpLdrGotLdr Lloh74, Lloh75, Lloh76
.loh AdrpLdrGotLdr Lloh77, Lloh78, Lloh79
.loh AdrpAdd Lloh80, Lloh81
.loh AdrpLdrGotLdr Lloh82, Lloh83, Lloh84
.loh AdrpLdrGotLdr Lloh85, Lloh86, Lloh87
.loh AdrpAdd Lloh88, Lloh89
.loh AdrpLdrGotLdr Lloh90, Lloh91, Lloh92
.loh AdrpLdrGotLdr Lloh93, Lloh94, Lloh95
.loh AdrpAdd Lloh96, Lloh97
.loh AdrpLdrGotLdr Lloh98, Lloh99, Lloh100
.loh AdrpLdrGotLdr Lloh101, Lloh102, Lloh103
.loh AdrpAdd Lloh104, Lloh105
.loh AdrpLdrGotLdr Lloh106, Lloh107, Lloh108
.loh AdrpLdrGotLdr Lloh109, Lloh110, Lloh111
.loh AdrpAdd Lloh112, Lloh113
.loh AdrpLdrGotLdr Lloh114, Lloh115, Lloh116
.loh AdrpLdrGotLdr Lloh117, Lloh118, Lloh119
.loh AdrpAdd Lloh120, Lloh121
.loh AdrpLdrGotLdr Lloh122, Lloh123, Lloh124
.loh AdrpLdrGotLdr Lloh125, Lloh126, Lloh127
.loh AdrpAdd Lloh128, Lloh129
.loh AdrpLdrGotLdr Lloh130, Lloh131, Lloh132
.loh AdrpLdrGotLdr Lloh133, Lloh134, Lloh135
.loh AdrpAdd Lloh136, Lloh137
.loh AdrpLdrGotLdr Lloh138, Lloh139, Lloh140
.loh AdrpLdrGotLdr Lloh141, Lloh142, Lloh143
.loh AdrpAdd Lloh144, Lloh145
.loh AdrpLdrGotLdr Lloh146, Lloh147, Lloh148
.loh AdrpLdrGotLdr Lloh149, Lloh150, Lloh151
.loh AdrpAdd Lloh152, Lloh153
.loh AdrpLdrGotLdr Lloh154, Lloh155, Lloh156
.loh AdrpLdrGotLdr Lloh157, Lloh158, Lloh159
.loh AdrpAdd Lloh160, Lloh161
.loh AdrpLdrGotLdr Lloh162, Lloh163, Lloh164
.loh AdrpLdrGotLdr Lloh165, Lloh166, Lloh167
.loh AdrpAdd Lloh168, Lloh169
.loh AdrpLdrGotLdr Lloh170, Lloh171, Lloh172
.loh AdrpLdrGotLdr Lloh173, Lloh174, Lloh175
.loh AdrpAdd Lloh176, Lloh177
.loh AdrpLdrGotLdr Lloh178, Lloh179, Lloh180
.loh AdrpLdrGotLdr Lloh181, Lloh182, Lloh183
.loh AdrpAdd Lloh184, Lloh185
.loh AdrpLdrGotLdr Lloh186, Lloh187, Lloh188
.loh AdrpLdrGotLdr Lloh189, Lloh190, Lloh191
.loh AdrpAdd Lloh192, Lloh193
.loh AdrpLdrGotLdr Lloh194, Lloh195, Lloh196
.loh AdrpLdrGotLdr Lloh197, Lloh198, Lloh199
.loh AdrpAdd Lloh200, Lloh201
.loh AdrpLdrGotLdr Lloh202, Lloh203, Lloh204
.loh AdrpLdrGotLdr Lloh205, Lloh206, Lloh207
.loh AdrpAdd Lloh208, Lloh209
.loh AdrpLdrGotLdr Lloh210, Lloh211, Lloh212
.loh AdrpLdrGotLdr Lloh213, Lloh214, Lloh215
.loh AdrpAdd Lloh216, Lloh217
.loh AdrpLdrGotLdr Lloh218, Lloh219, Lloh220
.loh AdrpLdrGotLdr Lloh221, Lloh222, Lloh223
.loh AdrpAdd Lloh224, Lloh225
.loh AdrpLdrGotLdr Lloh226, Lloh227, Lloh228
.loh AdrpLdrGotLdr Lloh229, Lloh230, Lloh231
.loh AdrpAdd Lloh232, Lloh233
.cfi_endproc
; -- End function
.comm _get_efer,8,3 ; @get_efer
.comm _get_all,8,3 ; @get_all
.comm _VM_REG_GUEST_EFER,4,2 ; @VM_REG_GUEST_EFER
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "efer[%d]\t\t0x%016lx\n"
.comm _get_cr0,8,3 ; @get_cr0
.comm _VM_REG_GUEST_CR0,4,2 ; @VM_REG_GUEST_CR0
l_.str.1: ; @.str.1
.asciz "cr0[%d]\t\t0x%016lx\n"
.comm _get_cr2,8,3 ; @get_cr2
.comm _VM_REG_GUEST_CR2,4,2 ; @VM_REG_GUEST_CR2
l_.str.2: ; @.str.2
.asciz "cr2[%d]\t\t0x%016lx\n"
.comm _get_cr3,8,3 ; @get_cr3
.comm _VM_REG_GUEST_CR3,4,2 ; @VM_REG_GUEST_CR3
l_.str.3: ; @.str.3
.asciz "cr3[%d]\t\t0x%016lx\n"
.comm _get_cr4,8,3 ; @get_cr4
.comm _VM_REG_GUEST_CR4,4,2 ; @VM_REG_GUEST_CR4
l_.str.4: ; @.str.4
.asciz "cr4[%d]\t\t0x%016lx\n"
.comm _get_dr0,8,3 ; @get_dr0
.comm _VM_REG_GUEST_DR0,4,2 ; @VM_REG_GUEST_DR0
l_.str.5: ; @.str.5
.asciz "dr0[%d]\t\t0x%016lx\n"
.comm _get_dr1,8,3 ; @get_dr1
.comm _VM_REG_GUEST_DR1,4,2 ; @VM_REG_GUEST_DR1
l_.str.6: ; @.str.6
.asciz "dr1[%d]\t\t0x%016lx\n"
.comm _get_dr2,8,3 ; @get_dr2
.comm _VM_REG_GUEST_DR2,4,2 ; @VM_REG_GUEST_DR2
l_.str.7: ; @.str.7
.asciz "dr2[%d]\t\t0x%016lx\n"
.comm _get_dr3,8,3 ; @get_dr3
.comm _VM_REG_GUEST_DR3,4,2 ; @VM_REG_GUEST_DR3
l_.str.8: ; @.str.8
.asciz "dr3[%d]\t\t0x%016lx\n"
.comm _get_dr6,8,3 ; @get_dr6
.comm _VM_REG_GUEST_DR6,4,2 ; @VM_REG_GUEST_DR6
l_.str.9: ; @.str.9
.asciz "dr6[%d]\t\t0x%016lx\n"
.comm _get_dr7,8,3 ; @get_dr7
.comm _VM_REG_GUEST_DR7,4,2 ; @VM_REG_GUEST_DR7
l_.str.10: ; @.str.10
.asciz "dr7[%d]\t\t0x%016lx\n"
.comm _get_rsp,8,3 ; @get_rsp
.comm _VM_REG_GUEST_RSP,4,2 ; @VM_REG_GUEST_RSP
l_.str.11: ; @.str.11
.asciz "rsp[%d]\t\t0x%016lx\n"
.comm _get_rip,8,3 ; @get_rip
.comm _VM_REG_GUEST_RIP,4,2 ; @VM_REG_GUEST_RIP
l_.str.12: ; @.str.12
.asciz "rip[%d]\t\t0x%016lx\n"
.comm _get_rax,8,3 ; @get_rax
.comm _VM_REG_GUEST_RAX,4,2 ; @VM_REG_GUEST_RAX
l_.str.13: ; @.str.13
.asciz "rax[%d]\t\t0x%016lx\n"
.comm _get_rbx,8,3 ; @get_rbx
.comm _VM_REG_GUEST_RBX,4,2 ; @VM_REG_GUEST_RBX
l_.str.14: ; @.str.14
.asciz "rbx[%d]\t\t0x%016lx\n"
.comm _get_rcx,8,3 ; @get_rcx
.comm _VM_REG_GUEST_RCX,4,2 ; @VM_REG_GUEST_RCX
l_.str.15: ; @.str.15
.asciz "rcx[%d]\t\t0x%016lx\n"
.comm _get_rdx,8,3 ; @get_rdx
.comm _VM_REG_GUEST_RDX,4,2 ; @VM_REG_GUEST_RDX
l_.str.16: ; @.str.16
.asciz "rdx[%d]\t\t0x%016lx\n"
.comm _get_rsi,8,3 ; @get_rsi
.comm _VM_REG_GUEST_RSI,4,2 ; @VM_REG_GUEST_RSI
l_.str.17: ; @.str.17
.asciz "rsi[%d]\t\t0x%016lx\n"
.comm _get_rdi,8,3 ; @get_rdi
.comm _VM_REG_GUEST_RDI,4,2 ; @VM_REG_GUEST_RDI
l_.str.18: ; @.str.18
.asciz "rdi[%d]\t\t0x%016lx\n"
.comm _get_rbp,8,3 ; @get_rbp
.comm _VM_REG_GUEST_RBP,4,2 ; @VM_REG_GUEST_RBP
l_.str.19: ; @.str.19
.asciz "rbp[%d]\t\t0x%016lx\n"
.comm _get_r8,8,3 ; @get_r8
.comm _VM_REG_GUEST_R8,4,2 ; @VM_REG_GUEST_R8
l_.str.20: ; @.str.20
.asciz "r8[%d]\t\t0x%016lx\n"
.comm _get_r9,8,3 ; @get_r9
.comm _VM_REG_GUEST_R9,4,2 ; @VM_REG_GUEST_R9
l_.str.21: ; @.str.21
.asciz "r9[%d]\t\t0x%016lx\n"
.comm _get_r10,8,3 ; @get_r10
.comm _VM_REG_GUEST_R10,4,2 ; @VM_REG_GUEST_R10
l_.str.22: ; @.str.22
.asciz "r10[%d]\t\t0x%016lx\n"
.comm _get_r11,8,3 ; @get_r11
.comm _VM_REG_GUEST_R11,4,2 ; @VM_REG_GUEST_R11
l_.str.23: ; @.str.23
.asciz "r11[%d]\t\t0x%016lx\n"
.comm _get_r12,8,3 ; @get_r12
.comm _VM_REG_GUEST_R12,4,2 ; @VM_REG_GUEST_R12
l_.str.24: ; @.str.24
.asciz "r12[%d]\t\t0x%016lx\n"
.comm _get_r13,8,3 ; @get_r13
.comm _VM_REG_GUEST_R13,4,2 ; @VM_REG_GUEST_R13
l_.str.25: ; @.str.25
.asciz "r13[%d]\t\t0x%016lx\n"
.comm _get_r14,8,3 ; @get_r14
.comm _VM_REG_GUEST_R14,4,2 ; @VM_REG_GUEST_R14
l_.str.26: ; @.str.26
.asciz "r14[%d]\t\t0x%016lx\n"
.comm _get_r15,8,3 ; @get_r15
.comm _VM_REG_GUEST_R15,4,2 ; @VM_REG_GUEST_R15
l_.str.27: ; @.str.27
.asciz "r15[%d]\t\t0x%016lx\n"
.comm _get_rflags,8,3 ; @get_rflags
.comm _VM_REG_GUEST_RFLAGS,4,2 ; @VM_REG_GUEST_RFLAGS
l_.str.28: ; @.str.28
.asciz "rflags[%d]\t0x%016lx\n"
.no_dead_strip _get_all_registers
.subsections_via_symbols
| AnghaBench/freebsd/usr.sbin/bhyvectl/extr_bhyvectl.c_get_all_registers.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
movq 8(%rsi), %rdi
movq 16(%rsi), %rsi
callq _virtual_Memory
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _virtual_Memory ## -- Begin function virtual_Memory
.p2align 4, 0x90
_virtual_Memory: ## @virtual_Memory
.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, %rbx
leaq L_.str(%rip), %rsi
callq _fopen
movq %rax, %r13
leaq L_.str.1(%rip), %rsi
movq %rbx, %rdi
callq _fopen
movq %rax, -48(%rbp) ## 8-byte Spill
movq %r13, %rdi
callq _feof
xorl %r15d, %r15d
testl %eax, %eax
je LBB1_1
LBB1_20:
leaq L_.str.2(%rip), %rdi
movl %r15d, %esi
xorl %eax, %eax
callq _printf
movq %r13, %rdi
callq _fclose
movq -48(%rbp), %rdi ## 8-byte Reload
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _fclose ## TAILCALL
LBB1_1:
xorl %r15d, %r15d
movq _LA@GOTPCREL(%rip), %rbx
jmp LBB1_2
.p2align 4, 0x90
LBB1_14: ## in Loop: Header=BB1_2 Depth=1
movl %ebx, %r14d
movq _LA@GOTPCREL(%rip), %rbx
LBB1_19: ## in Loop: Header=BB1_2 Depth=1
leaq _revmap(%rip), %rax
movl %r12d, (%rax,%r14,4)
movl _CLK(%rip), %eax
leaq _LRUcount(%rip), %rcx
movl %eax, (%rcx,%r14,4)
movq %r13, %rdi
callq _feof
testl %eax, %eax
jne LBB1_20
LBB1_2: ## =>This Inner Loop Header: Depth=1
movl $8, %esi
movl $1, %edx
movq %rbx, %rdi
movq %r13, %rcx
callq _fread
cmpq $1, %rax
jne LBB1_20
## %bb.3: ## in Loop: Header=BB1_2 Depth=1
incl _CLK(%rip)
movq (%rbx), %r12
movl %r12d, %eax
movl _d(%rip), %ecx
shrq %cl, %r12
andl $127, %eax
movl %r12d, %edx
movq _PT@GOTPCREL(%rip), %rdi
cmpl $1, 4(%rdi,%rdx,8)
jne LBB1_5
## %bb.4: ## in Loop: Header=BB1_2 Depth=1
movl (%rdi,%rdx,8), %r14d
movl %r14d, %esi
## kill: def $cl killed $cl killed $ecx
shll %cl, %esi
movl $1, 4(%rdi,%rdx,8)
addl %eax, %esi
movq _PA@GOTPCREL(%rip), %rdi
movq %rsi, (%rdi)
movl $8, %esi
movl $1, %edx
movq -48(%rbp), %rcx ## 8-byte Reload
callq _fwrite
cmpq $1, %rax
je LBB1_19
LBB1_18: ## in Loop: Header=BB1_2 Depth=1
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movl $15, %esi
movl $1, %edx
leaq L_.str.3(%rip), %rdi
callq _fwrite
jmp LBB1_19
.p2align 4, 0x90
LBB1_5: ## in Loop: Header=BB1_2 Depth=1
incl %r15d
movl $1, %ebx
cmpl $0, _freeFrame+4(%rip)
leaq _freeFrame+4(%rip), %rsi
jg LBB1_12
## %bb.6: ## in Loop: Header=BB1_2 Depth=1
movl $2, %ebx
cmpl $0, _freeFrame+8(%rip)
leaq _freeFrame+8(%rip), %rsi
jg LBB1_12
## %bb.7: ## in Loop: Header=BB1_2 Depth=1
movl $3, %ebx
cmpl $0, _freeFrame+12(%rip)
leaq _freeFrame+12(%rip), %rsi
jg LBB1_12
## %bb.8: ## in Loop: Header=BB1_2 Depth=1
movl $4, %ebx
cmpl $0, _freeFrame+16(%rip)
leaq _freeFrame+16(%rip), %rsi
jg LBB1_12
## %bb.9: ## in Loop: Header=BB1_2 Depth=1
movl $5, %ebx
cmpl $0, _freeFrame+20(%rip)
leaq _freeFrame+20(%rip), %rsi
jg LBB1_12
## %bb.10: ## in Loop: Header=BB1_2 Depth=1
movl $6, %ebx
cmpl $0, _freeFrame+24(%rip)
leaq _freeFrame+24(%rip), %rsi
jg LBB1_12
## %bb.11: ## in Loop: Header=BB1_2 Depth=1
movl $7, %ebx
cmpl $0, _freeFrame+28(%rip)
leaq _freeFrame+28(%rip), %rsi
jle LBB1_15
.p2align 4, 0x90
LBB1_12: ## in Loop: Header=BB1_2 Depth=1
movl $0, (%rsi)
movl %ebx, %esi
## kill: def $cl killed $cl killed $ecx
shll %cl, %esi
movl %ebx, (%rdi,%rdx,8)
movl $1, 4(%rdi,%rdx,8)
addl %eax, %esi
movq _PA@GOTPCREL(%rip), %rdi
movq %rsi, (%rdi)
movl $8, %esi
movl $1, %edx
movq -48(%rbp), %rcx ## 8-byte Reload
callq _fwrite
cmpq $1, %rax
je LBB1_14
## %bb.13: ## in Loop: Header=BB1_2 Depth=1
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movl $15, %esi
movl $1, %edx
leaq L_.str.3(%rip), %rdi
callq _fwrite
jmp LBB1_14
LBB1_15: ## in Loop: Header=BB1_2 Depth=1
movl _LRUcount+4(%rip), %esi
movl _LRUcount+8(%rip), %r8d
xorl %r9d, %r9d
cmpl %esi, %r8d
cmovll %r8d, %esi
setl %r9b
incl %r9d
movl _LRUcount+12(%rip), %r8d
cmpl %esi, %r8d
movl $3, %ebx
cmovll %ebx, %r9d
cmovll %r8d, %esi
movl _LRUcount+16(%rip), %r8d
cmpl %esi, %r8d
movl $4, %ebx
cmovll %ebx, %r9d
cmovll %r8d, %esi
movl _LRUcount+20(%rip), %r8d
cmpl %esi, %r8d
movl $5, %ebx
cmovll %ebx, %r9d
cmovll %r8d, %esi
movl _LRUcount+24(%rip), %r8d
movl $6, %r14d
cmpl %esi, %r8d
jl LBB1_17
## %bb.16: ## in Loop: Header=BB1_2 Depth=1
movl %r9d, %r14d
movl %esi, %r8d
LBB1_17: ## in Loop: Header=BB1_2 Depth=1
cmpl %r8d, _LRUcount+28(%rip)
movl $7, %esi
cmovll %esi, %r14d
leaq _revmap(%rip), %rsi
movslq (%rsi,%r14,4), %rsi
movl $0, 4(%rdi,%rsi,8)
movl %r14d, %esi
## kill: def $cl killed $cl killed $ecx
shll %cl, %esi
movl %r14d, (%rdi,%rdx,8)
movl $1, 4(%rdi,%rdx,8)
addl %eax, %esi
movq _PA@GOTPCREL(%rip), %rdi
movq %rsi, (%rdi)
movl $8, %esi
movl $1, %edx
movq -48(%rbp), %rcx ## 8-byte Reload
callq _fwrite
cmpq $1, %rax
movq _LA@GOTPCREL(%rip), %rbx
je LBB1_19
jmp LBB1_18
.cfi_endproc
## -- End function
.globl _write_PA_and_update_tables ## -- Begin function write_PA_and_update_tables
.p2align 4, 0x90
_write_PA_and_update_tables: ## @write_PA_and_update_tables
.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 %rcx, %r8
movl %edx, %ebx
movl %edi, %r14d
movl %edi, %edx
movq _PT@GOTPCREL(%rip), %rdi
movl %ebx, (%rdi,%rdx,8)
movb _d(%rip), %cl
movl %ebx, %eax
shll %cl, %eax
movl $1, 4(%rdi,%rdx,8)
addl %esi, %eax
movq _PA@GOTPCREL(%rip), %rdi
movq %rax, (%rdi)
movl $8, %esi
movl $1, %edx
movq %r8, %rcx
callq _fwrite
cmpq $1, %rax
je LBB2_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rcx
leaq L_.str.3(%rip), %rdi
movl $15, %esi
movl $1, %edx
callq _fwrite
LBB2_2:
movl %ebx, %eax
leaq _revmap(%rip), %rcx
movl %r14d, (%rcx,%rax,4)
movl _CLK(%rip), %ecx
leaq _LRUcount(%rip), %rdx
movl %ecx, (%rdx,%rax,4)
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _find_empty_frame_index ## -- Begin function find_empty_frame_index
.p2align 4, 0x90
_find_empty_frame_index: ## @find_empty_frame_index
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cmpl $0, _freeFrame+4(%rip)
jle LBB3_3
## %bb.1:
leaq _freeFrame+4(%rip), %rcx
movl $1, %eax
jmp LBB3_2
LBB3_3:
cmpl $0, _freeFrame+8(%rip)
jle LBB3_5
## %bb.4:
leaq _freeFrame+8(%rip), %rcx
movl $2, %eax
jmp LBB3_2
LBB3_5:
cmpl $0, _freeFrame+12(%rip)
jle LBB3_7
## %bb.6:
leaq _freeFrame+12(%rip), %rcx
movl $3, %eax
jmp LBB3_2
LBB3_7:
cmpl $0, _freeFrame+16(%rip)
jle LBB3_9
## %bb.8:
leaq _freeFrame+16(%rip), %rcx
movl $4, %eax
jmp LBB3_2
LBB3_9:
cmpl $0, _freeFrame+20(%rip)
jle LBB3_11
## %bb.10:
leaq _freeFrame+20(%rip), %rcx
movl $5, %eax
jmp LBB3_2
LBB3_11:
cmpl $0, _freeFrame+24(%rip)
jle LBB3_13
## %bb.12:
leaq _freeFrame+24(%rip), %rcx
movl $6, %eax
jmp LBB3_2
LBB3_13:
cmpl $0, _freeFrame+28(%rip)
jle LBB3_15
## %bb.14:
leaq _freeFrame+28(%rip), %rcx
movl $7, %eax
LBB3_2:
movl $0, (%rcx)
popq %rbp
retq
LBB3_15:
movl $-1, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _find_LRU_index ## -- Begin function find_LRU_index
.p2align 4, 0x90
_find_LRU_index: ## @find_LRU_index
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl _LRUcount+4(%rip), %eax
movl _LRUcount+8(%rip), %ecx
xorl %edx, %edx
cmpl %eax, %ecx
setl %dl
cmovll %ecx, %eax
incl %edx
movl _LRUcount+12(%rip), %ecx
cmpl %eax, %ecx
movl $3, %esi
cmovgel %edx, %esi
cmovll %ecx, %eax
movl _LRUcount+16(%rip), %ecx
cmpl %eax, %ecx
movl $4, %edx
cmovgel %esi, %edx
cmovll %ecx, %eax
movl _LRUcount+20(%rip), %ecx
cmpl %eax, %ecx
movl $5, %esi
cmovgel %edx, %esi
cmovll %ecx, %eax
movl _LRUcount+24(%rip), %ecx
cmpl %eax, %ecx
movl $6, %edx
cmovgel %esi, %edx
cmovll %ecx, %eax
cmpl %eax, _LRUcount+28(%rip)
movl $7, %eax
cmovgel %edx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.globl _freeFrame ## @freeFrame
.p2align 4
_freeFrame:
.long 0 ## 0x0
.long 1 ## 0x1
.long 1 ## 0x1
.long 1 ## 0x1
.long 1 ## 0x1
.long 1 ## 0x1
.long 1 ## 0x1
.long 1 ## 0x1
.globl _LRUcount ## @LRUcount
.zerofill __DATA,__common,_LRUcount,32,4
.globl _revmap ## @revmap
.p2align 4
_revmap:
.long 4294967295 ## 0xffffffff
.long 0 ## 0x0
.long 0 ## 0x0
.long 0 ## 0x0
.long 0 ## 0x0
.long 0 ## 0x0
.long 0 ## 0x0
.long 0 ## 0x0
.globl _CLK ## @CLK
.zerofill __DATA,__common,_CLK,4,2
.globl _p ## @p
.p2align 2
_p:
.long 5 ## 0x5
.globl _f ## @f
.p2align 2
_f:
.long 3 ## 0x3
.globl _d ## @d
.p2align 2
_d:
.long 7 ## 0x7
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "rb+"
L_.str.1: ## @.str.1
.asciz "wb+"
.comm _LA,8,3 ## @LA
.comm _PT,256,4 ## @PT
L_.str.2: ## @.str.2
.asciz "Page Faults: %d\n"
.comm _PA,8,3 ## @PA
L_.str.3: ## @.str.3
.asciz "Writing error!\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
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
ldp x0, x1, [x1, #8]
bl _virtual_Memory
mov w0, #0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _virtual_Memory ; -- Begin function virtual_Memory
.p2align 2
_virtual_Memory: ; @virtual_Memory
.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
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
bl _fopen
mov x19, x0
Lloh2:
adrp x1, l_.str.1@PAGE
Lloh3:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x20
bl _fopen
mov x20, x0
mov x0, x19
bl _feof
mov w24, #0
cbz w0, LBB1_2
LBB1_1:
str x24, [sp]
Lloh4:
adrp x0, l_.str.2@PAGE
Lloh5:
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov x0, x19
bl _fclose
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
b _fclose
LBB1_2:
Lloh6:
adrp x21, _LA@GOTPAGE
Lloh7:
ldr x21, [x21, _LA@GOTPAGEOFF]
mov w25, #1
adrp x26, _CLK@PAGE
Lloh8:
adrp x27, _PT@GOTPAGE
Lloh9:
ldr x27, [x27, _PT@GOTPAGEOFF]
Lloh10:
adrp x22, _PA@GOTPAGE
Lloh11:
ldr x22, [x22, _PA@GOTPAGEOFF]
b LBB1_5
LBB1_3: ; in Loop: Header=BB1_5 Depth=1
mov w23, w23
LBB1_4: ; in Loop: Header=BB1_5 Depth=1
lsl x8, x23, #2
Lloh12:
adrp x9, _revmap@PAGE
Lloh13:
add x9, x9, _revmap@PAGEOFF
str w28, [x9, x8]
ldr w9, [x26, _CLK@PAGEOFF]
Lloh14:
adrp x10, _LRUcount@PAGE
Lloh15:
add x10, x10, _LRUcount@PAGEOFF
str w9, [x10, x8]
mov x0, x19
bl _feof
cbnz w0, LBB1_1
LBB1_5: ; =>This Inner Loop Header: Depth=1
mov x0, x21
mov w1, #8
mov w2, #1
mov x3, x19
bl _fread
cmp x0, #1
b.ne LBB1_1
; %bb.6: ; in Loop: Header=BB1_5 Depth=1
ldr w8, [x26, _CLK@PAGEOFF]
add w8, w8, #1
str w8, [x26, _CLK@PAGEOFF]
ldr x10, [x21]
and w8, w10, #0x7f
Lloh16:
adrp x9, _d@PAGE
Lloh17:
ldr w9, [x9, _d@PAGEOFF]
lsr x28, x10, x9
and x11, x28, #0xffffffff
add x10, x27, w28, uxtw #3
ldr w12, [x10, #4]!
cmp w12, #1
b.ne LBB1_10
; %bb.7: ; in Loop: Header=BB1_5 Depth=1
lsl x11, x11, #3
ldr w23, [x27, x11]
str w25, [x10]
LBB1_8: ; in Loop: Header=BB1_5 Depth=1
lsl w9, w23, w9
add w8, w9, w8
str x8, [x22]
mov x0, x22
mov w1, #8
mov w2, #1
mov x3, x20
bl _fwrite
cmp x0, #1
b.eq LBB1_4
; %bb.9: ; in Loop: Header=BB1_5 Depth=1
Lloh18:
adrp x8, ___stderrp@GOTPAGE
Lloh19:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh20:
ldr x3, [x8]
Lloh21:
adrp x0, l_.str.3@PAGE
Lloh22:
add x0, x0, l_.str.3@PAGEOFF
mov w1, #15
mov w2, #1
bl _fwrite
b LBB1_4
LBB1_10: ; in Loop: Header=BB1_5 Depth=1
add w24, w24, #1
Lloh23:
adrp x13, _freeFrame@PAGE+4
Lloh24:
add x13, x13, _freeFrame@PAGEOFF+4
ldr w12, [x13]
cmp w12, #0
b.le LBB1_12
; %bb.11: ; in Loop: Header=BB1_5 Depth=1
mov w23, #1
b LBB1_24
LBB1_12: ; in Loop: Header=BB1_5 Depth=1
Lloh25:
adrp x13, _freeFrame@PAGE+8
Lloh26:
add x13, x13, _freeFrame@PAGEOFF+8
ldr w12, [x13]
cmp w12, #0
b.le LBB1_14
; %bb.13: ; in Loop: Header=BB1_5 Depth=1
mov w23, #2
b LBB1_24
LBB1_14: ; in Loop: Header=BB1_5 Depth=1
Lloh27:
adrp x13, _freeFrame@PAGE+12
Lloh28:
add x13, x13, _freeFrame@PAGEOFF+12
ldr w12, [x13]
cmp w12, #0
b.le LBB1_16
; %bb.15: ; in Loop: Header=BB1_5 Depth=1
mov w23, #3
b LBB1_24
LBB1_16: ; in Loop: Header=BB1_5 Depth=1
Lloh29:
adrp x13, _freeFrame@PAGE+16
Lloh30:
add x13, x13, _freeFrame@PAGEOFF+16
ldr w12, [x13]
cmp w12, #0
b.le LBB1_18
; %bb.17: ; in Loop: Header=BB1_5 Depth=1
mov w23, #4
b LBB1_24
LBB1_18: ; in Loop: Header=BB1_5 Depth=1
Lloh31:
adrp x13, _freeFrame@PAGE+20
Lloh32:
add x13, x13, _freeFrame@PAGEOFF+20
ldr w12, [x13]
cmp w12, #0
b.le LBB1_20
; %bb.19: ; in Loop: Header=BB1_5 Depth=1
mov w23, #5
b LBB1_24
LBB1_20: ; in Loop: Header=BB1_5 Depth=1
Lloh33:
adrp x13, _freeFrame@PAGE+24
Lloh34:
add x13, x13, _freeFrame@PAGEOFF+24
ldr w12, [x13]
cmp w12, #0
b.le LBB1_22
; %bb.21: ; in Loop: Header=BB1_5 Depth=1
mov w23, #6
b LBB1_24
LBB1_22: ; in Loop: Header=BB1_5 Depth=1
Lloh35:
adrp x13, _freeFrame@PAGE+28
Lloh36:
add x13, x13, _freeFrame@PAGEOFF+28
ldr w12, [x13]
cmp w12, #1
b.lt LBB1_26
; %bb.23: ; in Loop: Header=BB1_5 Depth=1
mov w23, #7
LBB1_24: ; in Loop: Header=BB1_5 Depth=1
str wzr, [x13]
lsl x11, x11, #3
str w23, [x27, x11]
str w25, [x10]
lsl w9, w23, w9
add w8, w9, w8
str x8, [x22]
mov x0, x22
mov w1, #8
mov w2, #1
mov x3, x20
bl _fwrite
cmp x0, #1
b.eq LBB1_3
; %bb.25: ; in Loop: Header=BB1_5 Depth=1
Lloh37:
adrp x8, ___stderrp@GOTPAGE
Lloh38:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh39:
ldr x3, [x8]
Lloh40:
adrp x0, l_.str.3@PAGE
Lloh41:
add x0, x0, l_.str.3@PAGEOFF
mov w1, #15
mov w2, #1
bl _fwrite
b LBB1_3
LBB1_26: ; in Loop: Header=BB1_5 Depth=1
Lloh42:
adrp x0, _LRUcount@PAGE+4
Lloh43:
add x0, x0, _LRUcount@PAGEOFF+4
ldp w12, w13, [x0]
cmp w13, w12
csel w12, w13, w12, lt
mov w16, #1
cinc w13, w16, lt
ldp w14, w15, [x0, #8]
cmp w14, w12
mov w17, #3
csel w13, w17, w13, lt
csel w12, w14, w12, lt
cmp w15, w12
mov w14, #4
csel w13, w14, w13, lt
csel w12, w15, w12, lt
ldp w14, w15, [x0, #16]
cmp w14, w12
mov w17, #5
csel w13, w17, w13, lt
csel w12, w14, w12, lt
cmp w15, w12
mov w14, #6
csel w13, w14, w13, lt
csel w12, w15, w12, lt
ldr w14, [x0, #24]
cmp w14, w12
mov w12, #7
csel w23, w12, w13, lt
Lloh44:
adrp x12, _revmap@PAGE
Lloh45:
add x12, x12, _revmap@PAGEOFF
ldrsw x12, [x12, w23, uxtw #2]
add x12, x27, x12, lsl #3
str wzr, [x12, #4]
lsl x11, x11, #3
str w23, [x27, x11]
mov w25, #1
str w16, [x10]
b LBB1_8
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpLdrGot Lloh10, Lloh11
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpAdd Lloh14, Lloh15
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpLdr Lloh16, Lloh17
.loh AdrpAdd Lloh21, Lloh22
.loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20
.loh AdrpAdd Lloh23, Lloh24
.loh AdrpAdd Lloh25, Lloh26
.loh AdrpAdd Lloh27, Lloh28
.loh AdrpAdd Lloh29, Lloh30
.loh AdrpAdd Lloh31, Lloh32
.loh AdrpAdd Lloh33, Lloh34
.loh AdrpAdd Lloh35, Lloh36
.loh AdrpAdd Lloh40, Lloh41
.loh AdrpLdrGotLdr Lloh37, Lloh38, Lloh39
.loh AdrpAdd Lloh44, Lloh45
.loh AdrpAdd Lloh42, Lloh43
.cfi_endproc
; -- End function
.globl _write_PA_and_update_tables ; -- Begin function write_PA_and_update_tables
.p2align 2
_write_PA_and_update_tables: ; @write_PA_and_update_tables
.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, x2
mov x19, x0
Lloh46:
adrp x8, _PT@GOTPAGE
Lloh47:
ldr x8, [x8, _PT@GOTPAGEOFF]
add x8, x8, w0, uxtw #3
mov w9, #1
stp w2, w9, [x8]
Lloh48:
adrp x8, _d@PAGE
Lloh49:
ldr w8, [x8, _d@PAGEOFF]
lsl w8, w2, w8
add w8, w8, w1
Lloh50:
adrp x0, _PA@GOTPAGE
Lloh51:
ldr x0, [x0, _PA@GOTPAGEOFF]
str x8, [x0]
mov w1, #8
mov w2, #1
bl _fwrite
cmp x0, #1
b.eq LBB2_2
; %bb.1:
Lloh52:
adrp x8, ___stderrp@GOTPAGE
Lloh53:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh54:
ldr x3, [x8]
Lloh55:
adrp x0, l_.str.3@PAGE
Lloh56:
add x0, x0, l_.str.3@PAGEOFF
mov w1, #15
mov w2, #1
bl _fwrite
LBB2_2:
mov w8, w20
lsl x8, x8, #2
Lloh57:
adrp x9, _revmap@PAGE
Lloh58:
add x9, x9, _revmap@PAGEOFF
str w19, [x9, x8]
Lloh59:
adrp x9, _CLK@PAGE
Lloh60:
ldr w9, [x9, _CLK@PAGEOFF]
Lloh61:
adrp x10, _LRUcount@PAGE
Lloh62:
add x10, x10, _LRUcount@PAGEOFF
str w9, [x10, x8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh50, Lloh51
.loh AdrpLdr Lloh48, Lloh49
.loh AdrpLdrGot Lloh46, Lloh47
.loh AdrpAdd Lloh55, Lloh56
.loh AdrpLdrGotLdr Lloh52, Lloh53, Lloh54
.loh AdrpAdd Lloh61, Lloh62
.loh AdrpLdr Lloh59, Lloh60
.loh AdrpAdd Lloh57, Lloh58
.cfi_endproc
; -- End function
.globl _find_empty_frame_index ; -- Begin function find_empty_frame_index
.p2align 2
_find_empty_frame_index: ; @find_empty_frame_index
.cfi_startproc
; %bb.0:
Lloh63:
adrp x8, _freeFrame@PAGE+4
Lloh64:
add x8, x8, _freeFrame@PAGEOFF+4
ldr w9, [x8]
cmp w9, #1
b.lt LBB3_2
; %bb.1:
mov w0, #1
str wzr, [x8]
ret
LBB3_2:
Lloh65:
adrp x8, _freeFrame@PAGE+8
Lloh66:
add x8, x8, _freeFrame@PAGEOFF+8
ldr w9, [x8]
cmp w9, #0
b.le LBB3_4
; %bb.3:
mov w0, #2
str wzr, [x8]
ret
LBB3_4:
Lloh67:
adrp x8, _freeFrame@PAGE+12
Lloh68:
add x8, x8, _freeFrame@PAGEOFF+12
ldr w9, [x8]
cmp w9, #0
b.le LBB3_6
; %bb.5:
mov w0, #3
str wzr, [x8]
ret
LBB3_6:
Lloh69:
adrp x8, _freeFrame@PAGE+16
Lloh70:
add x8, x8, _freeFrame@PAGEOFF+16
ldr w9, [x8]
cmp w9, #0
b.le LBB3_8
; %bb.7:
mov w0, #4
str wzr, [x8]
ret
LBB3_8:
Lloh71:
adrp x8, _freeFrame@PAGE+20
Lloh72:
add x8, x8, _freeFrame@PAGEOFF+20
ldr w9, [x8]
cmp w9, #0
b.le LBB3_10
; %bb.9:
mov w0, #5
str wzr, [x8]
ret
LBB3_10:
Lloh73:
adrp x8, _freeFrame@PAGE+24
Lloh74:
add x8, x8, _freeFrame@PAGEOFF+24
ldr w9, [x8]
cmp w9, #0
b.le LBB3_12
; %bb.11:
mov w0, #6
str wzr, [x8]
ret
LBB3_12:
Lloh75:
adrp x8, _freeFrame@PAGE+28
Lloh76:
add x8, x8, _freeFrame@PAGEOFF+28
ldr w9, [x8]
cmp w9, #0
b.le LBB3_14
; %bb.13:
mov w0, #7
str wzr, [x8]
ret
LBB3_14:
mov w0, #-1
ret
.loh AdrpAdd Lloh63, Lloh64
.loh AdrpAdd Lloh65, Lloh66
.loh AdrpAdd Lloh67, Lloh68
.loh AdrpAdd Lloh69, Lloh70
.loh AdrpAdd Lloh71, Lloh72
.loh AdrpAdd Lloh73, Lloh74
.loh AdrpAdd Lloh75, Lloh76
.cfi_endproc
; -- End function
.globl _find_LRU_index ; -- Begin function find_LRU_index
.p2align 2
_find_LRU_index: ; @find_LRU_index
.cfi_startproc
; %bb.0:
Lloh77:
adrp x8, _LRUcount@PAGE+4
Lloh78:
add x8, x8, _LRUcount@PAGEOFF+4
ldp w9, w10, [x8]
mov w11, #1
cmp w10, w9
csel w9, w10, w9, lt
cinc w10, w11, lt
mov w11, #3
ldp w12, w13, [x8, #8]
cmp w12, w9
csel w10, w11, w10, lt
csel w9, w12, w9, lt
mov w11, #4
cmp w13, w9
csel w10, w11, w10, lt
csel w9, w13, w9, lt
mov w11, #5
ldp w12, w13, [x8, #16]
cmp w12, w9
csel w10, w11, w10, lt
csel w9, w12, w9, lt
mov w11, #6
cmp w13, w9
csel w10, w11, w10, lt
csel w9, w13, w9, lt
ldr w8, [x8, #24]
mov w11, #7
cmp w8, w9
csel w0, w11, w10, lt
ret
.loh AdrpAdd Lloh77, Lloh78
.cfi_endproc
; -- End function
.section __DATA,__data
.globl _freeFrame ; @freeFrame
.p2align 2
_freeFrame:
.long 0 ; 0x0
.long 1 ; 0x1
.long 1 ; 0x1
.long 1 ; 0x1
.long 1 ; 0x1
.long 1 ; 0x1
.long 1 ; 0x1
.long 1 ; 0x1
.globl _LRUcount ; @LRUcount
.zerofill __DATA,__common,_LRUcount,32,2
.globl _revmap ; @revmap
.p2align 2
_revmap:
.long 4294967295 ; 0xffffffff
.long 0 ; 0x0
.long 0 ; 0x0
.long 0 ; 0x0
.long 0 ; 0x0
.long 0 ; 0x0
.long 0 ; 0x0
.long 0 ; 0x0
.globl _CLK ; @CLK
.zerofill __DATA,__common,_CLK,4,2
.globl _p ; @p
.p2align 2
_p:
.long 5 ; 0x5
.globl _f ; @f
.p2align 2
_f:
.long 3 ; 0x3
.globl _d ; @d
.p2align 2
_d:
.long 7 ; 0x7
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "rb+"
l_.str.1: ; @.str.1
.asciz "wb+"
.comm _LA,8,3 ; @LA
.comm _PT,256,2 ; @PT
l_.str.2: ; @.str.2
.asciz "Page Faults: %d\n"
.comm _PA,8,3 ; @PA
l_.str.3: ; @.str.3
.asciz "Writing error!\n"
.subsections_via_symbols
| the_stack_data/57949255.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function linux_ipc64_perm_to_ipc_perm
_linux_ipc64_perm_to_ipc_perm: ## @linux_ipc64_perm_to_ipc_perm
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl 44(%rdi), %eax
movl %eax, 44(%rsi)
movups (%rdi), %xmm0
movups %xmm0, (%rsi)
movups 16(%rdi), %xmm0
movups %xmm0, 16(%rsi)
movq 32(%rdi), %rax
movq %rax, 32(%rsi)
movl 40(%rdi), %eax
movl %eax, 40(%rsi)
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EOVERFLOW,4,2 ## @EOVERFLOW
.no_dead_strip _linux_ipc64_perm_to_ipc_perm
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function linux_ipc64_perm_to_ipc_perm
_linux_ipc64_perm_to_ipc_perm: ; @linux_ipc64_perm_to_ipc_perm
.cfi_startproc
; %bb.0:
ldr q0, [x0]
str q0, [x1]
ldr q0, [x0, #16]
str q0, [x1, #16]
ldr x8, [x0, #32]
str x8, [x1, #32]
ldr d0, [x0, #40]
str d0, [x1, #40]
mov w0, #0
ret
.cfi_endproc
; -- End function
.comm _EOVERFLOW,4,2 ; @EOVERFLOW
.no_dead_strip _linux_ipc64_perm_to_ipc_perm
.subsections_via_symbols
| AnghaBench/freebsd/sys/compat/linux/extr_linux_ipc.c_linux_ipc64_perm_to_ipc_perm.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ncsi_stop_channel_monitor ## -- Begin function ncsi_stop_channel_monitor
.p2align 4, 0x90
_ncsi_stop_channel_monitor: ## @ncsi_stop_channel_monitor
.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 8(%rdi), %r14
movq %r14, %rdi
callq _spin_lock_irqsave
cmpl $0, (%rbx)
je LBB0_1
## %bb.2:
movl $0, (%rbx)
movq %r14, %rdi
callq _spin_unlock_irqrestore
addq $4, %rbx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp _del_timer_sync ## TAILCALL
LBB0_1:
movq %r14, %rdi
popq %rbx
popq %r14
popq %rbp
jmp _spin_unlock_irqrestore ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ncsi_stop_channel_monitor ; -- Begin function ncsi_stop_channel_monitor
.p2align 2
_ncsi_stop_channel_monitor: ; @ncsi_stop_channel_monitor
.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 x20, x0, #8
mov x0, x20
bl _spin_lock_irqsave
ldr w8, [x19]
cbz w8, LBB0_2
; %bb.1:
str wzr, [x19], #4
mov x0, x20
bl _spin_unlock_irqrestore
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _del_timer_sync
LBB0_2:
mov x0, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _spin_unlock_irqrestore
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/linux/net/ncsi/extr_ncsi-manage.c_ncsi_stop_channel_monitor.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ngx_http_lua_inject_socket_udp_api ## -- Begin function ngx_http_lua_inject_socket_udp_api
.p2align 4, 0x90
_ngx_http_lua_inject_socket_udp_api: ## @ngx_http_lua_inject_socket_udp_api
.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
leaq L_.str(%rip), %rdx
movq %rsi, %rdi
movl $-1, %esi
callq _lua_getfield
movq _ngx_http_lua_socket_udp@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq _lua_pushcfunction
leaq L_.str.1(%rip), %rdx
movq %rbx, %rdi
movl $-2, %esi
callq _lua_setfield
movq _socket_udp_metatable_key@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _ngx_http_lua_lightudata_mask
movq %rbx, %rdi
movl %eax, %esi
callq _lua_pushlightuserdata
movq %rbx, %rdi
xorl %esi, %esi
movl $6, %edx
callq _lua_createtable
movq _ngx_http_lua_socket_udp_setpeername@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq _lua_pushcfunction
leaq L_.str.2(%rip), %rdx
movq %rbx, %rdi
movl $-2, %esi
callq _lua_setfield
movq _ngx_http_lua_socket_udp_send@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq _lua_pushcfunction
leaq L_.str.3(%rip), %rdx
movq %rbx, %rdi
movl $-2, %esi
callq _lua_setfield
movq _ngx_http_lua_socket_udp_receive@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq _lua_pushcfunction
leaq L_.str.4(%rip), %rdx
movq %rbx, %rdi
movl $-2, %esi
callq _lua_setfield
movq _ngx_http_lua_socket_udp_settimeout@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq _lua_pushcfunction
leaq L_.str.5(%rip), %rdx
movq %rbx, %rdi
movl $-2, %esi
callq _lua_setfield
movq _ngx_http_lua_socket_udp_close@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq _lua_pushcfunction
leaq L_.str.6(%rip), %rdx
movq %rbx, %rdi
movl $-2, %esi
callq _lua_setfield
movq %rbx, %rdi
movl $-1, %esi
callq _lua_pushvalue
leaq L_.str.7(%rip), %rdx
movq %rbx, %rdi
movl $-2, %esi
callq _lua_setfield
movq _LUA_REGISTRYINDEX@GOTPCREL(%rip), %r14
movl (%r14), %esi
movq %rbx, %rdi
callq _lua_rawset
movq _udp_udata_metatable_key@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _ngx_http_lua_lightudata_mask
movq %rbx, %rdi
movl %eax, %esi
callq _lua_pushlightuserdata
movq %rbx, %rdi
xorl %esi, %esi
movl $1, %edx
callq _lua_createtable
movq _ngx_http_lua_socket_udp_upstream_destroy@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq _lua_pushcfunction
leaq L_.str.8(%rip), %rdx
movq %rbx, %rdi
movl $-2, %esi
callq _lua_setfield
movl (%r14), %esi
movq %rbx, %rdi
callq _lua_rawset
movq %rbx, %rdi
movl $1, %esi
popq %rbx
popq %r14
popq %rbp
jmp _lua_pop ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "socket"
.comm _ngx_http_lua_socket_udp,4,2 ## @ngx_http_lua_socket_udp
L_.str.1: ## @.str.1
.asciz "udp"
.comm _socket_udp_metatable_key,4,2 ## @socket_udp_metatable_key
.comm _ngx_http_lua_socket_udp_setpeername,4,2 ## @ngx_http_lua_socket_udp_setpeername
L_.str.2: ## @.str.2
.asciz "setpeername"
.comm _ngx_http_lua_socket_udp_send,4,2 ## @ngx_http_lua_socket_udp_send
L_.str.3: ## @.str.3
.asciz "send"
.comm _ngx_http_lua_socket_udp_receive,4,2 ## @ngx_http_lua_socket_udp_receive
L_.str.4: ## @.str.4
.asciz "receive"
.comm _ngx_http_lua_socket_udp_settimeout,4,2 ## @ngx_http_lua_socket_udp_settimeout
L_.str.5: ## @.str.5
.asciz "settimeout"
.comm _ngx_http_lua_socket_udp_close,4,2 ## @ngx_http_lua_socket_udp_close
L_.str.6: ## @.str.6
.asciz "close"
L_.str.7: ## @.str.7
.asciz "__index"
.comm _LUA_REGISTRYINDEX,4,2 ## @LUA_REGISTRYINDEX
.comm _udp_udata_metatable_key,4,2 ## @udp_udata_metatable_key
.comm _ngx_http_lua_socket_udp_upstream_destroy,4,2 ## @ngx_http_lua_socket_udp_upstream_destroy
L_.str.8: ## @.str.8
.asciz "__gc"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ngx_http_lua_inject_socket_udp_api ; -- Begin function ngx_http_lua_inject_socket_udp_api
.p2align 2
_ngx_http_lua_inject_socket_udp_api: ; @ngx_http_lua_inject_socket_udp_api
.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
Lloh0:
adrp x2, l_.str@PAGE
Lloh1:
add x2, x2, l_.str@PAGEOFF
mov x0, x1
mov w1, #-1
bl _lua_getfield
Lloh2:
adrp x8, _ngx_http_lua_socket_udp@GOTPAGE
Lloh3:
ldr x8, [x8, _ngx_http_lua_socket_udp@GOTPAGEOFF]
Lloh4:
ldr w1, [x8]
mov x0, x19
bl _lua_pushcfunction
Lloh5:
adrp x2, l_.str.1@PAGE
Lloh6:
add x2, x2, l_.str.1@PAGEOFF
mov x0, x19
mov w1, #-2
bl _lua_setfield
Lloh7:
adrp x8, _socket_udp_metatable_key@GOTPAGE
Lloh8:
ldr x8, [x8, _socket_udp_metatable_key@GOTPAGEOFF]
Lloh9:
ldr w0, [x8]
bl _ngx_http_lua_lightudata_mask
mov x1, x0
mov x0, x19
bl _lua_pushlightuserdata
mov x0, x19
mov w1, #0
mov w2, #6
bl _lua_createtable
Lloh10:
adrp x8, _ngx_http_lua_socket_udp_setpeername@GOTPAGE
Lloh11:
ldr x8, [x8, _ngx_http_lua_socket_udp_setpeername@GOTPAGEOFF]
Lloh12:
ldr w1, [x8]
mov x0, x19
bl _lua_pushcfunction
Lloh13:
adrp x2, l_.str.2@PAGE
Lloh14:
add x2, x2, l_.str.2@PAGEOFF
mov x0, x19
mov w1, #-2
bl _lua_setfield
Lloh15:
adrp x8, _ngx_http_lua_socket_udp_send@GOTPAGE
Lloh16:
ldr x8, [x8, _ngx_http_lua_socket_udp_send@GOTPAGEOFF]
Lloh17:
ldr w1, [x8]
mov x0, x19
bl _lua_pushcfunction
Lloh18:
adrp x2, l_.str.3@PAGE
Lloh19:
add x2, x2, l_.str.3@PAGEOFF
mov x0, x19
mov w1, #-2
bl _lua_setfield
Lloh20:
adrp x8, _ngx_http_lua_socket_udp_receive@GOTPAGE
Lloh21:
ldr x8, [x8, _ngx_http_lua_socket_udp_receive@GOTPAGEOFF]
Lloh22:
ldr w1, [x8]
mov x0, x19
bl _lua_pushcfunction
Lloh23:
adrp x2, l_.str.4@PAGE
Lloh24:
add x2, x2, l_.str.4@PAGEOFF
mov x0, x19
mov w1, #-2
bl _lua_setfield
Lloh25:
adrp x8, _ngx_http_lua_socket_udp_settimeout@GOTPAGE
Lloh26:
ldr x8, [x8, _ngx_http_lua_socket_udp_settimeout@GOTPAGEOFF]
Lloh27:
ldr w1, [x8]
mov x0, x19
bl _lua_pushcfunction
Lloh28:
adrp x2, l_.str.5@PAGE
Lloh29:
add x2, x2, l_.str.5@PAGEOFF
mov x0, x19
mov w1, #-2
bl _lua_setfield
Lloh30:
adrp x8, _ngx_http_lua_socket_udp_close@GOTPAGE
Lloh31:
ldr x8, [x8, _ngx_http_lua_socket_udp_close@GOTPAGEOFF]
Lloh32:
ldr w1, [x8]
mov x0, x19
bl _lua_pushcfunction
Lloh33:
adrp x2, l_.str.6@PAGE
Lloh34:
add x2, x2, l_.str.6@PAGEOFF
mov x0, x19
mov w1, #-2
bl _lua_setfield
mov x0, x19
mov w1, #-1
bl _lua_pushvalue
Lloh35:
adrp x2, l_.str.7@PAGE
Lloh36:
add x2, x2, l_.str.7@PAGEOFF
mov x0, x19
mov w1, #-2
bl _lua_setfield
Lloh37:
adrp x20, _LUA_REGISTRYINDEX@GOTPAGE
Lloh38:
ldr x20, [x20, _LUA_REGISTRYINDEX@GOTPAGEOFF]
ldr w1, [x20]
mov x0, x19
bl _lua_rawset
Lloh39:
adrp x8, _udp_udata_metatable_key@GOTPAGE
Lloh40:
ldr x8, [x8, _udp_udata_metatable_key@GOTPAGEOFF]
Lloh41:
ldr w0, [x8]
bl _ngx_http_lua_lightudata_mask
mov x1, x0
mov x0, x19
bl _lua_pushlightuserdata
mov x0, x19
mov w1, #0
mov w2, #1
bl _lua_createtable
Lloh42:
adrp x8, _ngx_http_lua_socket_udp_upstream_destroy@GOTPAGE
Lloh43:
ldr x8, [x8, _ngx_http_lua_socket_udp_upstream_destroy@GOTPAGEOFF]
Lloh44:
ldr w1, [x8]
mov x0, x19
bl _lua_pushcfunction
Lloh45:
adrp x2, l_.str.8@PAGE
Lloh46:
add x2, x2, l_.str.8@PAGEOFF
mov x0, x19
mov w1, #-2
bl _lua_setfield
ldr w1, [x20]
mov x0, x19
bl _lua_rawset
mov x0, x19
mov w1, #1
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _lua_pop
.loh AdrpAdd Lloh45, Lloh46
.loh AdrpLdrGotLdr Lloh42, Lloh43, Lloh44
.loh AdrpLdrGotLdr Lloh39, Lloh40, Lloh41
.loh AdrpLdrGot Lloh37, Lloh38
.loh AdrpAdd Lloh35, Lloh36
.loh AdrpAdd Lloh33, Lloh34
.loh AdrpLdrGotLdr Lloh30, Lloh31, Lloh32
.loh AdrpAdd Lloh28, Lloh29
.loh AdrpLdrGotLdr Lloh25, Lloh26, Lloh27
.loh AdrpAdd Lloh23, Lloh24
.loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22
.loh AdrpAdd Lloh18, Lloh19
.loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17
.loh AdrpAdd Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpAdd Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "socket"
.comm _ngx_http_lua_socket_udp,4,2 ; @ngx_http_lua_socket_udp
l_.str.1: ; @.str.1
.asciz "udp"
.comm _socket_udp_metatable_key,4,2 ; @socket_udp_metatable_key
.comm _ngx_http_lua_socket_udp_setpeername,4,2 ; @ngx_http_lua_socket_udp_setpeername
l_.str.2: ; @.str.2
.asciz "setpeername"
.comm _ngx_http_lua_socket_udp_send,4,2 ; @ngx_http_lua_socket_udp_send
l_.str.3: ; @.str.3
.asciz "send"
.comm _ngx_http_lua_socket_udp_receive,4,2 ; @ngx_http_lua_socket_udp_receive
l_.str.4: ; @.str.4
.asciz "receive"
.comm _ngx_http_lua_socket_udp_settimeout,4,2 ; @ngx_http_lua_socket_udp_settimeout
l_.str.5: ; @.str.5
.asciz "settimeout"
.comm _ngx_http_lua_socket_udp_close,4,2 ; @ngx_http_lua_socket_udp_close
l_.str.6: ; @.str.6
.asciz "close"
l_.str.7: ; @.str.7
.asciz "__index"
.comm _LUA_REGISTRYINDEX,4,2 ; @LUA_REGISTRYINDEX
.comm _udp_udata_metatable_key,4,2 ; @udp_udata_metatable_key
.comm _ngx_http_lua_socket_udp_upstream_destroy,4,2 ; @ngx_http_lua_socket_udp_upstream_destroy
l_.str.8: ; @.str.8
.asciz "__gc"
.subsections_via_symbols
| AnghaBench/tengine/modules/ngx_http_lua_module/src/extr_ngx_http_lua_socket_udp.c_ngx_http_lua_inject_socket_udp_api.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function snd_emu10k1x_pcm_hw_free_capture
_snd_emu10k1x_pcm_hw_free_capture: ## @snd_emu10k1x_pcm_hw_free_capture
.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 (%rax), %rax
testq %rax, %rax
je LBB0_4
## %bb.1:
movq (%rax), %rcx
testq %rcx, %rcx
je LBB0_3
## %bb.2:
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movq $0, (%rax)
LBB0_3:
popq %rbp
jmp _snd_pcm_lib_free_pages ## TAILCALL
LBB0_4:
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _snd_emu10k1x_pcm_hw_free_capture
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function snd_emu10k1x_pcm_hw_free_capture
_snd_emu10k1x_pcm_hw_free_capture: ; @snd_emu10k1x_pcm_hw_free_capture
.cfi_startproc
; %bb.0:
ldr x8, [x0]
ldr x8, [x8]
cbz x8, LBB0_4
; %bb.1:
ldr x9, [x8]
cbz x9, LBB0_3
; %bb.2:
stp xzr, xzr, [x9]
str xzr, [x8]
LBB0_3:
b _snd_pcm_lib_free_pages
LBB0_4:
mov w0, #0
ret
.cfi_endproc
; -- End function
.no_dead_strip _snd_emu10k1x_pcm_hw_free_capture
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/sound/pci/emu10k1/extr_emu10k1x.c_snd_emu10k1x_pcm_hw_free_capture.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function mem_command
_mem_command: ## @mem_command
.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
testq %rdi, %rdi
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rax
movq %rdi, %rbx
movq %rax, %rdi
callq _error_no_arg
movq %rbx, %rdi
LBB0_2:
leaq L_.str.1(%rip), %rsi
callq _strtok
movq %rax, %rbx
testq %rax, %rax
jne LBB0_4
## %bb.3:
leaq L_.str.2(%rip), %rdi
xorl %eax, %eax
callq _error
LBB0_4:
movq %rbx, %rdi
callq _parse_and_eval_address
movl %eax, %r15d
leaq L_.str.1(%rip), %rsi
xorl %edi, %edi
callq _strtok
movq %rax, %rbx
testq %rax, %rax
jne LBB0_6
## %bb.5:
leaq L_.str.3(%rip), %rdi
xorl %eax, %eax
callq _error
LBB0_6:
movq %rbx, %rdi
callq _parse_and_eval_address
movl %eax, %ebx
movq _default_mem_attrib@GOTPCREL(%rip), %rax
movups (%rax), %xmm0
movaps %xmm0, -80(%rbp)
movl 16(%rax), %eax
movl %eax, -64(%rbp)
leaq L_.str.1(%rip), %rsi
xorl %edi, %edi
callq _strtok
testq %rax, %rax
je LBB0_37
## %bb.7:
movq %rax, %r14
movl %r15d, -60(%rbp) ## 4-byte Spill
movl %ebx, -56(%rbp) ## 4-byte Spill
orl %ebx, %r15d
testb $7, %r15b
sete -41(%rbp) ## 1-byte Folded Spill
testb $3, %r15b
sete -42(%rbp) ## 1-byte Folded Spill
testb $1, %r15b
sete -43(%rbp) ## 1-byte Folded Spill
movl -76(%rbp), %eax
movl %eax, -52(%rbp) ## 4-byte Spill
movl -68(%rbp), %eax
movl %eax, -48(%rbp) ## 4-byte Spill
movl -64(%rbp), %ebx
leaq L_.str.4(%rip), %r15
leaq L_.str.1(%rip), %r12
leaq L_.str.5(%rip), %r13
jmp LBB0_11
.p2align 4, 0x90
LBB0_8: ## in Loop: Header=BB0_11 Depth=1
movq _MEM_RW@GOTPCREL(%rip), %rax
LBB0_9: ## in Loop: Header=BB0_11 Depth=1
movl (%rax), %ebx
LBB0_10: ## in Loop: Header=BB0_11 Depth=1
xorl %edi, %edi
movq %r12, %rsi
callq _strtok
movq %rax, %r14
testq %rax, %rax
je LBB0_36
LBB0_11: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
movq %r15, %rsi
callq _strcmp
testq %rax, %rax
je LBB0_8
## %bb.12: ## in Loop: Header=BB0_11 Depth=1
movq %r14, %rdi
movq %r13, %rsi
callq _strcmp
testq %rax, %rax
je LBB0_21
## %bb.13: ## in Loop: Header=BB0_11 Depth=1
movq %r14, %rdi
leaq L_.str.6(%rip), %rsi
callq _strcmp
testq %rax, %rax
je LBB0_22
## %bb.14: ## in Loop: Header=BB0_11 Depth=1
movq %r14, %rdi
leaq L_.str.7(%rip), %rsi
callq _strcmp
testq %rax, %rax
je LBB0_23
## %bb.15: ## in Loop: Header=BB0_11 Depth=1
movq %r14, %rdi
leaq L_.str.8(%rip), %rsi
callq _strcmp
testq %rax, %rax
je LBB0_24
## %bb.16: ## in Loop: Header=BB0_11 Depth=1
movq %r14, %rdi
leaq L_.str.10(%rip), %rsi
callq _strcmp
testq %rax, %rax
je LBB0_27
## %bb.17: ## in Loop: Header=BB0_11 Depth=1
movq %r14, %rdi
leaq L_.str.12(%rip), %rsi
callq _strcmp
testq %rax, %rax
je LBB0_30
## %bb.18: ## in Loop: Header=BB0_11 Depth=1
movq %r14, %rdi
leaq L_.str.14(%rip), %rsi
callq _strcmp
testq %rax, %rax
je LBB0_34
## %bb.19: ## in Loop: Header=BB0_11 Depth=1
movq %r14, %rdi
leaq L_.str.15(%rip), %rsi
callq _strcmp
testq %rax, %rax
je LBB0_35
## %bb.20: ## in Loop: Header=BB0_11 Depth=1
leaq L_.str.16(%rip), %rdi
movq %r14, %rsi
xorl %eax, %eax
callq _error
jmp LBB0_10
.p2align 4, 0x90
LBB0_21: ## in Loop: Header=BB0_11 Depth=1
movq _MEM_RO@GOTPCREL(%rip), %rax
jmp LBB0_9
LBB0_22: ## in Loop: Header=BB0_11 Depth=1
movq _MEM_WO@GOTPCREL(%rip), %rax
jmp LBB0_9
LBB0_23: ## in Loop: Header=BB0_11 Depth=1
movq _MEM_WIDTH_8@GOTPCREL(%rip), %rax
jmp LBB0_33
LBB0_24: ## in Loop: Header=BB0_11 Depth=1
cmpb $0, -43(%rbp) ## 1-byte Folded Reload
jne LBB0_26
## %bb.25: ## in Loop: Header=BB0_11 Depth=1
leaq L_.str.9(%rip), %rdi
xorl %eax, %eax
callq _error
LBB0_26: ## in Loop: Header=BB0_11 Depth=1
movq _MEM_WIDTH_16@GOTPCREL(%rip), %rax
jmp LBB0_33
LBB0_27: ## in Loop: Header=BB0_11 Depth=1
cmpb $0, -42(%rbp) ## 1-byte Folded Reload
jne LBB0_29
## %bb.28: ## in Loop: Header=BB0_11 Depth=1
leaq L_.str.11(%rip), %rdi
xorl %eax, %eax
callq _error
LBB0_29: ## in Loop: Header=BB0_11 Depth=1
movq _MEM_WIDTH_32@GOTPCREL(%rip), %rax
jmp LBB0_33
LBB0_30: ## in Loop: Header=BB0_11 Depth=1
cmpb $0, -41(%rbp) ## 1-byte Folded Reload
jne LBB0_32
## %bb.31: ## in Loop: Header=BB0_11 Depth=1
leaq L_.str.13(%rip), %rdi
xorl %eax, %eax
callq _error
LBB0_32: ## in Loop: Header=BB0_11 Depth=1
movq _MEM_WIDTH_64@GOTPCREL(%rip), %rax
.p2align 4, 0x90
LBB0_33: ## in Loop: Header=BB0_11 Depth=1
movl (%rax), %eax
movl %eax, -48(%rbp) ## 4-byte Spill
jmp LBB0_10
LBB0_34: ## in Loop: Header=BB0_11 Depth=1
movl $1, -52(%rbp) ## 4-byte Folded Spill
jmp LBB0_10
LBB0_35: ## in Loop: Header=BB0_11 Depth=1
movl $0, -52(%rbp) ## 4-byte Folded Spill
jmp LBB0_10
LBB0_36:
movl -52(%rbp), %eax ## 4-byte Reload
movl %eax, -76(%rbp)
movl -48(%rbp), %eax ## 4-byte Reload
movl %eax, -68(%rbp)
movl %ebx, -64(%rbp)
movl -60(%rbp), %r15d ## 4-byte Reload
movl -56(%rbp), %ebx ## 4-byte Reload
LBB0_37:
leaq -80(%rbp), %rdx
movl %r15d, %edi
movl %ebx, %esi
callq _create_mem_region
addq $40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.globl _g_aug_volatile_3427 ## @g_aug_volatile_3427
.p2align 2, 0x0
_g_aug_volatile_3427:
.long 1 ## 0x1
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "No mem"
L_.str.1: ## @.str.1
.asciz " \t"
L_.str.2: ## @.str.2
.asciz "no lo address"
L_.str.3: ## @.str.3
.asciz "no hi address"
.comm _default_mem_attrib,20,2 ## @default_mem_attrib
L_.str.4: ## @.str.4
.asciz "rw"
.comm _MEM_RW,4,2 ## @MEM_RW
L_.str.5: ## @.str.5
.asciz "ro"
.comm _MEM_RO,4,2 ## @MEM_RO
L_.str.6: ## @.str.6
.asciz "wo"
.comm _MEM_WO,4,2 ## @MEM_WO
L_.str.7: ## @.str.7
.asciz "8"
.comm _MEM_WIDTH_8,4,2 ## @MEM_WIDTH_8
L_.str.8: ## @.str.8
.asciz "16"
L_.str.9: ## @.str.9
.asciz "region bounds not 16 bit aligned"
.comm _MEM_WIDTH_16,4,2 ## @MEM_WIDTH_16
L_.str.10: ## @.str.10
.asciz "32"
L_.str.11: ## @.str.11
.asciz "region bounds not 32 bit aligned"
.comm _MEM_WIDTH_32,4,2 ## @MEM_WIDTH_32
L_.str.12: ## @.str.12
.asciz "64"
L_.str.13: ## @.str.13
.asciz "region bounds not 64 bit aligned"
.comm _MEM_WIDTH_64,4,2 ## @MEM_WIDTH_64
L_.str.14: ## @.str.14
.asciz "cache"
L_.str.15: ## @.str.15
.asciz "nocache"
L_.str.16: ## @.str.16
.asciz "unknown attribute: %s"
.no_dead_strip _mem_command
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function mem_command
_mem_command: ; @mem_command
.cfi_startproc
; %bb.0:
sub sp, sp, #160
stp x28, x27, [sp, #64] ; 16-byte Folded Spill
stp x26, x25, [sp, #80] ; 16-byte Folded Spill
stp x24, x23, [sp, #96] ; 16-byte Folded Spill
stp x22, x21, [sp, #112] ; 16-byte Folded Spill
stp x20, x19, [sp, #128] ; 16-byte Folded Spill
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
cbnz x0, LBB0_2
; %bb.1:
Lloh0:
adrp x8, l_.str@PAGE
Lloh1:
add x8, x8, l_.str@PAGEOFF
mov x19, x0
mov x0, x8
bl _error_no_arg
mov x0, x19
LBB0_2:
Lloh2:
adrp x1, l_.str.1@PAGE
Lloh3:
add x1, x1, l_.str.1@PAGEOFF
bl _strtok
cbnz x0, LBB0_4
; %bb.3:
Lloh4:
adrp x8, l_.str.2@PAGE
Lloh5:
add x8, x8, l_.str.2@PAGEOFF
mov x19, x0
mov x0, x8
bl _error
mov x0, x19
LBB0_4:
bl _parse_and_eval_address
mov x20, x0
Lloh6:
adrp x1, l_.str.1@PAGE
Lloh7:
add x1, x1, l_.str.1@PAGEOFF
mov x0, #0 ; =0x0
bl _strtok
cbnz x0, LBB0_6
; %bb.5:
Lloh8:
adrp x8, l_.str.3@PAGE
Lloh9:
add x8, x8, l_.str.3@PAGEOFF
mov x19, x0
mov x0, x8
bl _error
mov x0, x19
LBB0_6:
bl _parse_and_eval_address
mov x19, x0
Lloh10:
adrp x8, _default_mem_attrib@GOTPAGE
Lloh11:
ldr x8, [x8, _default_mem_attrib@GOTPAGEOFF]
ldr q0, [x8]
str q0, [sp, #32]
ldr w8, [x8, #16]
str w8, [sp, #48]
Lloh12:
adrp x1, l_.str.1@PAGE
Lloh13:
add x1, x1, l_.str.1@PAGEOFF
mov x0, #0 ; =0x0
bl _strtok
cbz x0, LBB0_35
; %bb.7:
mov x27, x0
stp w19, w20, [sp, #12] ; 8-byte Folded Spill
orr w8, w20, w19
tst w8, #0x7
cset w9, eq
str w9, [sp, #8] ; 4-byte Folded Spill
tst w8, #0x3
cset w9, eq
tst w8, #0x1
cset w8, eq
str w8, [sp, #28] ; 4-byte Folded Spill
ldr w8, [sp, #36]
stp w9, w8, [sp, #20] ; 8-byte Folded Spill
ldp w20, w28, [sp, #44]
Lloh14:
adrp x21, l_.str.4@PAGE
Lloh15:
add x21, x21, l_.str.4@PAGEOFF
Lloh16:
adrp x26, _MEM_RW@GOTPAGE
Lloh17:
ldr x26, [x26, _MEM_RW@GOTPAGEOFF]
Lloh18:
adrp x22, l_.str.1@PAGE
Lloh19:
add x22, x22, l_.str.1@PAGEOFF
Lloh20:
adrp x23, l_.str.5@PAGE
Lloh21:
add x23, x23, l_.str.5@PAGEOFF
Lloh22:
adrp x19, _MEM_RO@GOTPAGE
Lloh23:
ldr x19, [x19, _MEM_RO@GOTPAGEOFF]
Lloh24:
adrp x24, l_.str.6@PAGE
Lloh25:
add x24, x24, l_.str.6@PAGEOFF
Lloh26:
adrp x25, l_.str.7@PAGE
Lloh27:
add x25, x25, l_.str.7@PAGEOFF
b LBB0_10
LBB0_8: ; in Loop: Header=BB0_10 Depth=1
ldr w28, [x26]
LBB0_9: ; in Loop: Header=BB0_10 Depth=1
mov x0, #0 ; =0x0
mov x1, x22
bl _strtok
mov x27, x0
cbz x0, LBB0_34
LBB0_10: ; =>This Inner Loop Header: Depth=1
mov x0, x27
mov x1, x21
bl _strcmp
cbz x0, LBB0_8
; %bb.11: ; in Loop: Header=BB0_10 Depth=1
mov x0, x27
mov x1, x23
bl _strcmp
cbz x0, LBB0_20
; %bb.12: ; in Loop: Header=BB0_10 Depth=1
mov x0, x27
mov x1, x24
bl _strcmp
cbz x0, LBB0_21
; %bb.13: ; in Loop: Header=BB0_10 Depth=1
mov x0, x27
mov x1, x25
bl _strcmp
cbz x0, LBB0_22
; %bb.14: ; in Loop: Header=BB0_10 Depth=1
mov x0, x27
Lloh28:
adrp x1, l_.str.8@PAGE
Lloh29:
add x1, x1, l_.str.8@PAGEOFF
bl _strcmp
cbz x0, LBB0_23
; %bb.15: ; in Loop: Header=BB0_10 Depth=1
mov x0, x27
Lloh30:
adrp x1, l_.str.10@PAGE
Lloh31:
add x1, x1, l_.str.10@PAGEOFF
bl _strcmp
cbz x0, LBB0_26
; %bb.16: ; in Loop: Header=BB0_10 Depth=1
mov x0, x27
Lloh32:
adrp x1, l_.str.12@PAGE
Lloh33:
add x1, x1, l_.str.12@PAGEOFF
bl _strcmp
cbz x0, LBB0_29
; %bb.17: ; in Loop: Header=BB0_10 Depth=1
mov x0, x27
Lloh34:
adrp x1, l_.str.14@PAGE
Lloh35:
add x1, x1, l_.str.14@PAGEOFF
bl _strcmp
cbz x0, LBB0_32
; %bb.18: ; in Loop: Header=BB0_10 Depth=1
mov x0, x27
Lloh36:
adrp x1, l_.str.15@PAGE
Lloh37:
add x1, x1, l_.str.15@PAGEOFF
bl _strcmp
cbz x0, LBB0_33
; %bb.19: ; in Loop: Header=BB0_10 Depth=1
str x27, [sp]
Lloh38:
adrp x0, l_.str.16@PAGE
Lloh39:
add x0, x0, l_.str.16@PAGEOFF
bl _error
b LBB0_9
LBB0_20: ; in Loop: Header=BB0_10 Depth=1
ldr w28, [x19]
b LBB0_9
LBB0_21: ; in Loop: Header=BB0_10 Depth=1
Lloh40:
adrp x8, _MEM_WO@GOTPAGE
Lloh41:
ldr x8, [x8, _MEM_WO@GOTPAGEOFF]
Lloh42:
ldr w28, [x8]
b LBB0_9
LBB0_22: ; in Loop: Header=BB0_10 Depth=1
Lloh43:
adrp x8, _MEM_WIDTH_8@GOTPAGE
Lloh44:
ldr x8, [x8, _MEM_WIDTH_8@GOTPAGEOFF]
Lloh45:
ldr w20, [x8]
b LBB0_9
LBB0_23: ; in Loop: Header=BB0_10 Depth=1
ldr w8, [sp, #28] ; 4-byte Folded Reload
tbnz w8, #0, LBB0_25
; %bb.24: ; in Loop: Header=BB0_10 Depth=1
Lloh46:
adrp x0, l_.str.9@PAGE
Lloh47:
add x0, x0, l_.str.9@PAGEOFF
bl _error
LBB0_25: ; in Loop: Header=BB0_10 Depth=1
Lloh48:
adrp x8, _MEM_WIDTH_16@GOTPAGE
Lloh49:
ldr x8, [x8, _MEM_WIDTH_16@GOTPAGEOFF]
Lloh50:
ldr w20, [x8]
b LBB0_9
LBB0_26: ; in Loop: Header=BB0_10 Depth=1
ldr w8, [sp, #20] ; 4-byte Folded Reload
tbnz w8, #0, LBB0_28
; %bb.27: ; in Loop: Header=BB0_10 Depth=1
Lloh51:
adrp x0, l_.str.11@PAGE
Lloh52:
add x0, x0, l_.str.11@PAGEOFF
bl _error
LBB0_28: ; in Loop: Header=BB0_10 Depth=1
Lloh53:
adrp x8, _MEM_WIDTH_32@GOTPAGE
Lloh54:
ldr x8, [x8, _MEM_WIDTH_32@GOTPAGEOFF]
Lloh55:
ldr w20, [x8]
b LBB0_9
LBB0_29: ; in Loop: Header=BB0_10 Depth=1
ldr w8, [sp, #8] ; 4-byte Folded Reload
tbnz w8, #0, LBB0_31
; %bb.30: ; in Loop: Header=BB0_10 Depth=1
Lloh56:
adrp x0, l_.str.13@PAGE
Lloh57:
add x0, x0, l_.str.13@PAGEOFF
bl _error
LBB0_31: ; in Loop: Header=BB0_10 Depth=1
Lloh58:
adrp x8, _MEM_WIDTH_64@GOTPAGE
Lloh59:
ldr x8, [x8, _MEM_WIDTH_64@GOTPAGEOFF]
Lloh60:
ldr w20, [x8]
b LBB0_9
LBB0_32: ; in Loop: Header=BB0_10 Depth=1
mov w8, #1 ; =0x1
str w8, [sp, #24] ; 4-byte Folded Spill
b LBB0_9
LBB0_33: ; in Loop: Header=BB0_10 Depth=1
str wzr, [sp, #24] ; 4-byte Folded Spill
b LBB0_9
LBB0_34:
ldr w8, [sp, #24] ; 4-byte Folded Reload
str w8, [sp, #36]
stp w20, w28, [sp, #44]
ldp w19, w20, [sp, #12] ; 8-byte Folded Reload
LBB0_35:
add x2, sp, #32
mov x0, x20
mov x1, x19
bl _create_mem_region
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
ldp x20, x19, [sp, #128] ; 16-byte Folded Reload
ldp x22, x21, [sp, #112] ; 16-byte Folded Reload
ldp x24, x23, [sp, #96] ; 16-byte Folded Reload
ldp x26, x25, [sp, #80] ; 16-byte Folded Reload
ldp x28, x27, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #160
ret
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpLdrGot Lloh10, Lloh11
.loh AdrpAdd Lloh26, Lloh27
.loh AdrpAdd Lloh24, Lloh25
.loh AdrpLdrGot Lloh22, Lloh23
.loh AdrpAdd Lloh20, Lloh21
.loh AdrpAdd Lloh18, Lloh19
.loh AdrpLdrGot Lloh16, Lloh17
.loh AdrpAdd Lloh14, Lloh15
.loh AdrpAdd Lloh28, Lloh29
.loh AdrpAdd Lloh30, Lloh31
.loh AdrpAdd Lloh32, Lloh33
.loh AdrpAdd Lloh34, Lloh35
.loh AdrpAdd Lloh36, Lloh37
.loh AdrpAdd Lloh38, Lloh39
.loh AdrpLdrGotLdr Lloh40, Lloh41, Lloh42
.loh AdrpLdrGotLdr Lloh43, Lloh44, Lloh45
.loh AdrpAdd Lloh46, Lloh47
.loh AdrpLdrGotLdr Lloh48, Lloh49, Lloh50
.loh AdrpAdd Lloh51, Lloh52
.loh AdrpLdrGotLdr Lloh53, Lloh54, Lloh55
.loh AdrpAdd Lloh56, Lloh57
.loh AdrpLdrGotLdr Lloh58, Lloh59, Lloh60
.cfi_endproc
; -- End function
.section __DATA,__data
.globl _g_aug_volatile_3427 ; @g_aug_volatile_3427
.p2align 2, 0x0
_g_aug_volatile_3427:
.long 1 ; 0x1
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "No mem"
l_.str.1: ; @.str.1
.asciz " \t"
l_.str.2: ; @.str.2
.asciz "no lo address"
l_.str.3: ; @.str.3
.asciz "no hi address"
.comm _default_mem_attrib,20,2 ; @default_mem_attrib
l_.str.4: ; @.str.4
.asciz "rw"
.comm _MEM_RW,4,2 ; @MEM_RW
l_.str.5: ; @.str.5
.asciz "ro"
.comm _MEM_RO,4,2 ; @MEM_RO
l_.str.6: ; @.str.6
.asciz "wo"
.comm _MEM_WO,4,2 ; @MEM_WO
l_.str.7: ; @.str.7
.asciz "8"
.comm _MEM_WIDTH_8,4,2 ; @MEM_WIDTH_8
l_.str.8: ; @.str.8
.asciz "16"
l_.str.9: ; @.str.9
.asciz "region bounds not 16 bit aligned"
.comm _MEM_WIDTH_16,4,2 ; @MEM_WIDTH_16
l_.str.10: ; @.str.10
.asciz "32"
l_.str.11: ; @.str.11
.asciz "region bounds not 32 bit aligned"
.comm _MEM_WIDTH_32,4,2 ; @MEM_WIDTH_32
l_.str.12: ; @.str.12
.asciz "64"
l_.str.13: ; @.str.13
.asciz "region bounds not 64 bit aligned"
.comm _MEM_WIDTH_64,4,2 ; @MEM_WIDTH_64
l_.str.14: ; @.str.14
.asciz "cache"
l_.str.15: ; @.str.15
.asciz "nocache"
l_.str.16: ; @.str.16
.asciz "unknown attribute: %s"
.no_dead_strip _mem_command
.subsections_via_symbols
| assembly_file_115189.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 main
LCPI0_0:
.long 0x30000000 ## float 4.65661287E-10
.section __TEXT,__literal8,8byte_literals
.p2align 3
LCPI0_1:
.quad 0x3eb0c6f7a0b5ed8d ## double 9.9999999999999995E-7
.section __TEXT,__literal16,16byte_literals
.p2align 4
LCPI0_2:
.space 16
.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
subq $2568, %rsp ## imm = 0xA08
.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)
callq _parse_arguments
movl _length(%rip), %r13d
movl $4, %esi
movq %r13, %rdi
callq _calloc
movq %rax, %r14
movl $4, %esi
movq %r13, %rdi
callq _calloc
movq %rax, %r12
movl $4, %esi
movq %r13, %rdi
callq _calloc
movq %rax, -2504(%rbp) ## 8-byte Spill
movl %r13d, -2488(%rbp)
testq %r13, %r13
je LBB0_3
## %bb.1:
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
callq _rand
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm1, %xmm0
movss %xmm0, (%r14,%rbx,4)
callq _rand
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss LCPI0_0(%rip), %xmm0
movss %xmm0, (%r12,%rbx,4)
incq %rbx
cmpq %rbx, %r13
jne LBB0_2
LBB0_3:
leaq -176(%rbp), %rdi
callq _get_device_list
movl _device_index(%rip), %ecx
cmpl %eax, %ecx
jae LBB0_4
## %bb.5:
movq -176(%rbp,%rcx,8), %rdi
movq %rdi, -2528(%rbp)
leaq -432(%rbp), %rbx
movl $256, %edx ## imm = 0x100
movl $4139, %esi ## imm = 0x102B
movq %rbx, %rcx
xorl %r8d, %r8d
callq _clGetDeviceInfo
leaq L_.str.2(%rip), %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq _printf
leaq -2528(%rbp), %rdx
leaq -2484(%rbp), %r9
xorl %edi, %edi
movl $1, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq _clCreateContext
movl -2484(%rbp), %edx
testl %edx, %edx
jne LBB0_6
## %bb.7:
movq %rax, %rbx
movq -2528(%rbp), %rsi
leaq -2484(%rbp), %rcx
movq %rax, %rdi
xorl %edx, %edx
callq _clCreateCommandQueue
movq %rax, -2496(%rbp) ## 8-byte Spill
movl -2484(%rbp), %edx
testl %edx, %edx
jne LBB0_8
## %bb.9:
leaq _KernelSource(%rip), %rdx
leaq -2484(%rbp), %r8
movq %rbx, %rdi
movl $1, %esi
xorl %ecx, %ecx
callq _clCreateProgramWithSource
movl -2484(%rbp), %edx
testl %edx, %edx
jne LBB0_10
## %bb.11:
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq _clBuildProgram
movl %eax, -2484(%rbp)
cmpl $-11, %eax
jne LBB0_13
## %bb.12:
leaq L_str(%rip), %rdi
callq _puts
movq -2528(%rbp), %rsi
leaq -2480(%rbp), %r8
leaq -2520(%rbp), %r9
movl $2048, %ecx ## imm = 0x800
movq %r15, %rdi
movl $4483, %edx ## imm = 0x1183
callq _clGetProgramBuildInfo
leaq -2480(%rbp), %rdi
callq _puts
movl -2484(%rbp), %eax
LBB0_13:
testl %eax, %eax
jne LBB0_14
## %bb.17:
leaq L_.str.9(%rip), %rsi
leaq -2484(%rbp), %rdx
movq %r15, %rdi
callq _clCreateKernel
movq %rax, -2536(%rbp) ## 8-byte Spill
movl -2484(%rbp), %edx
testl %edx, %edx
jne LBB0_18
## %bb.19:
shlq $2, %r13
leaq -2484(%rbp), %r8
movl $4, %esi
movq %rbx, %rdi
movq %r13, %rdx
xorl %ecx, %ecx
callq _clCreateBuffer
movq %rax, -2576(%rbp) ## 8-byte Spill
movq %rax, -2520(%rbp)
movl -2484(%rbp), %edx
testl %edx, %edx
jne LBB0_20
## %bb.21:
leaq -2484(%rbp), %r8
movl $4, %esi
movq %rbx, %rdi
movq %r13, %rdx
xorl %ecx, %ecx
callq _clCreateBuffer
movq %rax, -2568(%rbp) ## 8-byte Spill
movq %rax, -2544(%rbp)
movl -2484(%rbp), %edx
testl %edx, %edx
jne LBB0_22
## %bb.23:
movq %r15, -2552(%rbp) ## 8-byte Spill
leaq -2484(%rbp), %r8
movl $2, %esi
movq %rbx, -2560(%rbp) ## 8-byte Spill
movq %rbx, %rdi
movq %r13, %rdx
xorl %ecx, %ecx
callq _clCreateBuffer
movq %rax, -2512(%rbp)
movl -2484(%rbp), %edx
testl %edx, %edx
jne LBB0_24
## %bb.25:
xorps %xmm0, %xmm0
movups %xmm0, 8(%rsp)
movl $0, (%rsp)
movq -2496(%rbp), %r15 ## 8-byte Reload
movq %r15, %rdi
movq -2576(%rbp), %rsi ## 8-byte Reload
movl $1, %edx
xorl %ecx, %ecx
movq %r13, %r8
movq %r14, %r9
callq _clEnqueueWriteBuffer
movl %eax, -2484(%rbp)
testl %eax, %eax
jne LBB0_26
## %bb.27:
xorps %xmm0, %xmm0
movups %xmm0, 8(%rsp)
movl $0, (%rsp)
movq %r15, %rdi
movq -2568(%rbp), %rsi ## 8-byte Reload
movl $1, %edx
xorl %ecx, %ecx
movq %r13, %r8
movq %r12, %r9
callq _clEnqueueWriteBuffer
movl %eax, -2484(%rbp)
testl %eax, %eax
jne LBB0_28
## %bb.29:
leaq -2520(%rbp), %rcx
movl $8, %edx
movq -2536(%rbp), %rbx ## 8-byte Reload
movq %rbx, %rdi
xorl %esi, %esi
callq _clSetKernelArg
movl %eax, -2484(%rbp)
leaq -2544(%rbp), %rcx
movl $8, %edx
movq %rbx, %rdi
movl $1, %esi
callq _clSetKernelArg
orl %eax, -2484(%rbp)
leaq -2512(%rbp), %rcx
movl $8, %edx
movq %rbx, %rdi
movl $2, %esi
callq _clSetKernelArg
orl %eax, -2484(%rbp)
leaq -2488(%rbp), %rcx
movl $4, %edx
movq %rbx, %rdi
movl $3, %esi
callq _clSetKernelArg
orl -2484(%rbp), %eax
movl %eax, -2484(%rbp)
jne LBB0_30
## %bb.31:
movl -2488(%rbp), %eax
movq %rax, -2480(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 8(%rsp)
movl $0, (%rsp)
leaq -2480(%rbp), %r8
movq -2496(%rbp), %r13 ## 8-byte Reload
movq %r13, %rdi
movq %rbx, %rsi
movl $1, %edx
xorl %ecx, %ecx
xorl %r9d, %r9d
callq _clEnqueueNDRangeKernel
movl %eax, -2484(%rbp)
testl %eax, %eax
jne LBB0_32
## %bb.33:
movq %r13, %rdi
callq _clFinish
movl %eax, -2484(%rbp)
testl %eax, %eax
jne LBB0_34
## %bb.35:
leaq L_.str.19(%rip), %rdi
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
movq -2512(%rbp), %rsi
movl -2488(%rbp), %r8d
shlq $2, %r8
xorps %xmm0, %xmm0
movups %xmm0, 8(%rsp)
movl $0, (%rsp)
xorl %ebx, %ebx
movq %r13, %rdi
movl $1, %edx
xorl %ecx, %ecx
movq -2504(%rbp), %r9 ## 8-byte Reload
callq _clEnqueueReadBuffer
movl %eax, -2484(%rbp)
testl %eax, %eax
jne LBB0_45
## %bb.36:
movl -2488(%rbp), %eax
movl $0, %edx
testl %eax, %eax
je LBB0_42
## %bb.37:
xorl %r15d, %r15d
leaq L_.str.21(%rip), %r13
movl %eax, %edx
xorl %ebx, %ebx
jmp LBB0_38
.p2align 4, 0x90
LBB0_40: ## in Loop: Header=BB0_38 Depth=1
cvtss2sd %xmm0, %xmm0
cvtss2sd %xmm1, %xmm1
cvtss2sd %xmm2, %xmm2
cvtss2sd %xmm3, %xmm3
movq %r13, %rdi
movb $4, %al
callq _printf
movl -2488(%rbp), %edx
LBB0_41: ## in Loop: Header=BB0_38 Depth=1
incq %r15
movl %edx, %eax
cmpq %rax, %r15
jae LBB0_42
LBB0_38: ## =>This Inner Loop Header: Depth=1
movss (%r14,%r15,4), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss (%r12,%r15,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movaps %xmm1, %xmm0
addss %xmm2, %xmm0
movq -2504(%rbp), %rax ## 8-byte Reload
movss (%rax,%r15,4), %xmm3 ## xmm3 = mem[0],zero,zero,zero
subss %xmm3, %xmm0
movaps %xmm0, %xmm4
mulss %xmm0, %xmm4
cvtss2sd %xmm4, %xmm4
movsd LCPI0_1(%rip), %xmm5 ## xmm5 = mem[0],zero
ucomisd %xmm4, %xmm5
jbe LBB0_40
## %bb.39: ## in Loop: Header=BB0_38 Depth=1
incl %ebx
jmp LBB0_41
LBB0_4:
leaq L_str.42(%rip), %rdi
callq _puts
movl $1, %r13d
jmp LBB0_43
LBB0_42:
leaq L_.str.22(%rip), %rdi
xorl %r13d, %r13d
movl %ebx, %esi
xorl %eax, %eax
callq _printf
movq -2520(%rbp), %rdi
callq _clReleaseMemObject
movq -2544(%rbp), %rdi
callq _clReleaseMemObject
movq -2512(%rbp), %rdi
callq _clReleaseMemObject
movq -2552(%rbp), %rdi ## 8-byte Reload
callq _clReleaseProgram
movq -2536(%rbp), %rdi ## 8-byte Reload
callq _clReleaseKernel
movq -2496(%rbp), %rdi ## 8-byte Reload
callq _clReleaseCommandQueue
movq -2560(%rbp), %rdi ## 8-byte Reload
callq _clReleaseContext
movq %r14, %rdi
callq _free
movq %r12, %rdi
callq _free
movq -2504(%rbp), %rdi ## 8-byte Reload
callq _free
LBB0_43:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB0_46
## %bb.44:
movl %r13d, %eax
addq $2568, %rsp ## imm = 0xA08
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_46:
callq ___stack_chk_fail
LBB0_6:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.3(%rip), %rcx
jmp LBB0_16
LBB0_8:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.4(%rip), %rcx
jmp LBB0_16
LBB0_10:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.5(%rip), %rcx
jmp LBB0_16
LBB0_14:
movq ___stderrp@GOTPCREL(%rip), %rcx
movq (%rcx), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.8(%rip), %rcx
jmp LBB0_15
LBB0_18:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.10(%rip), %rcx
jmp LBB0_16
LBB0_20:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.11(%rip), %rcx
jmp LBB0_16
LBB0_22:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.12(%rip), %rcx
jmp LBB0_16
LBB0_24:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.13(%rip), %rcx
jmp LBB0_16
LBB0_26:
movq ___stderrp@GOTPCREL(%rip), %rcx
movq (%rcx), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.14(%rip), %rcx
jmp LBB0_15
LBB0_28:
movq ___stderrp@GOTPCREL(%rip), %rcx
movq (%rcx), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.15(%rip), %rcx
jmp LBB0_15
LBB0_30:
movq ___stderrp@GOTPCREL(%rip), %rcx
movq (%rcx), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.16(%rip), %rcx
jmp LBB0_15
LBB0_32:
movq ___stderrp@GOTPCREL(%rip), %rcx
movq (%rcx), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.17(%rip), %rcx
jmp LBB0_15
LBB0_34:
movq ___stderrp@GOTPCREL(%rip), %rcx
movq (%rcx), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.18(%rip), %rcx
jmp LBB0_15
LBB0_45:
movq ___stderrp@GOTPCREL(%rip), %rcx
movq (%rcx), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.20(%rip), %rcx
LBB0_15:
movl %eax, %edx
LBB0_16:
xorl %eax, %eax
callq _fprintf
movl $1, %edi
callq _exit
.cfi_endproc
## -- End function
.globl _parse_arguments ## -- Begin function parse_arguments
.p2align 4, 0x90
_parse_arguments: ## @parse_arguments
.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 $392, %rsp ## imm = 0x188
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
cmpl $2, %edi
jl LBB1_12
## %bb.1:
movq %rsi, %r14
movl %edi, %ebx
movl $1, %r12d
leaq -432(%rbp), %r13
jmp LBB1_3
.p2align 4, 0x90
LBB1_2: ## in Loop: Header=BB1_3 Depth=1
incl %r12d
cmpl %ebx, %r12d
jge LBB1_12
LBB1_3: ## =>This Inner Loop Header: Depth=1
movslq %r12d, %rax
movq (%r14,%rax,8), %r15
movq %r15, %rdi
leaq L_.str.26(%rip), %rsi
callq _strcmp
testl %eax, %eax
je LBB1_15
## %bb.4: ## in Loop: Header=BB1_3 Depth=1
movq %r15, %rdi
leaq L_.str.31(%rip), %rsi
callq _strcmp
testl %eax, %eax
je LBB1_9
## %bb.5: ## in Loop: Header=BB1_3 Depth=1
movq %r15, %rdi
leaq L_.str.33(%rip), %rsi
callq _strcmp
testl %eax, %eax
je LBB1_14
## %bb.6: ## in Loop: Header=BB1_3 Depth=1
movq %r15, %rdi
leaq L_.str.34(%rip), %rsi
callq _strcmp
testl %eax, %eax
je LBB1_14
## %bb.7: ## in Loop: Header=BB1_3 Depth=1
movq %r15, %rdi
movq %r13, %rsi
movl $10, %edx
callq _strtoul
movl %eax, _length(%rip)
movq -432(%rbp), %rax
cmpb $0, (%rax)
je LBB1_2
## %bb.8: ## in Loop: Header=BB1_3 Depth=1
leaq L_str.51(%rip), %rdi
callq _puts
jmp LBB1_2
.p2align 4, 0x90
LBB1_9: ## in Loop: Header=BB1_3 Depth=1
incl %r12d
cmpl %ebx, %r12d
jge LBB1_11
## %bb.10: ## in Loop: Header=BB1_3 Depth=1
movslq %r12d, %rax
movq (%r14,%rax,8), %rdi
movq %r13, %rsi
movl $10, %edx
callq _strtoul
movl %eax, _device_index(%rip)
movq -432(%rbp), %rax
cmpb $0, (%rax)
je LBB1_2
LBB1_11:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rcx
leaq L_.str.32(%rip), %rdi
movl $21, %esi
movl $1, %edx
callq _fwrite
movl $1, %edi
callq _exit
LBB1_12:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB1_20
## %bb.13:
addq $392, %rsp ## imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB1_14:
movl $10, %edi
callq _putchar
leaq L_str.45(%rip), %rdi
callq _puts
leaq L_str.46(%rip), %rdi
callq _puts
leaq L_str.47(%rip), %rdi
callq _puts
leaq L_str.48(%rip), %rdi
callq _puts
leaq L_str.49(%rip), %rdi
callq _puts
leaq L_str.50(%rip), %rdi
callq _puts
jmp LBB1_19
LBB1_15:
leaq -176(%rbp), %rdi
callq _get_device_list
testl %eax, %eax
jne LBB1_17
## %bb.16:
leaq L_str.44(%rip), %rdi
callq _puts
xorl %edi, %edi
callq _exit
LBB1_17:
movl %eax, %ebx
movl $10, %edi
callq _putchar
leaq L_str.43(%rip), %rdi
callq _puts
movl %ebx, %r12d
leaq -432(%rbp), %r15
leaq L_.str.30(%rip), %r14
xorl %ebx, %ebx
.p2align 4, 0x90
LBB1_18: ## =>This Inner Loop Header: Depth=1
movq -176(%rbp,%rbx,8), %rdi
movl $256, %edx ## imm = 0x100
movl $4139, %esi ## imm = 0x102B
movq %r15, %rcx
xorl %r8d, %r8d
callq _clGetDeviceInfo
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
xorl %eax, %eax
callq _printf
incq %rbx
cmpq %rbx, %r12
jne LBB1_18
LBB1_19:
movl $10, %edi
callq _putchar
xorl %edi, %edi
callq _exit
LBB1_20:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.globl _get_device_list ## -- Begin function get_device_list
.p2align 4, 0x90
_get_device_list: ## @get_device_list
.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 $96, %rsp
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %r14
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -40(%rbp)
movl $0, -116(%rbp)
leaq -112(%rbp), %rsi
leaq -116(%rbp), %rdx
movl $8, %edi
callq _clGetPlatformIDs
testl %eax, %eax
jne LBB2_5
## %bb.1:
cmpl $0, -116(%rbp)
je LBB2_2
## %bb.8:
xorl %ebx, %ebx
leaq -120(%rbp), %r15
xorl %r12d, %r12d
.p2align 4, 0x90
LBB2_9: ## =>This Inner Loop Header: Depth=1
movl $0, -120(%rbp)
movq -112(%rbp,%rbx,8), %rdi
movl $16, %edx
subl %r12d, %edx
movl %r12d, %eax
leaq (%r14,%rax,8), %rcx
movl $4294967295, %esi ## imm = 0xFFFFFFFF
movq %r15, %r8
callq _clGetDeviceIDs
testl %eax, %eax
jne LBB2_10
## %bb.11: ## in Loop: Header=BB2_9 Depth=1
addl -120(%rbp), %r12d
incq %rbx
movl -116(%rbp), %eax
cmpq %rax, %rbx
jb LBB2_9
jmp LBB2_3
LBB2_2:
xorl %r12d, %r12d
LBB2_3:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -40(%rbp), %rax
jne LBB2_4
## %bb.7:
movl %r12d, %eax
addq $96, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
LBB2_10:
movq ___stderrp@GOTPCREL(%rip), %rcx
movq (%rcx), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.25(%rip), %rcx
LBB2_6:
movl %eax, %edx
xorl %eax, %eax
callq _fprintf
movl $1, %edi
callq _exit
LBB2_5:
movq ___stderrp@GOTPCREL(%rip), %rcx
movq (%rcx), %rdi
leaq L_.str.23(%rip), %rsi
leaq L_.str.24(%rip), %rcx
jmp LBB2_6
LBB2_4:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.globl _check_error ## -- Begin function check_error
.p2align 4, 0x90
_check_error: ## @check_error
.cfi_startproc
## %bb.0:
testl %edi, %edi
jne LBB3_2
## %bb.1:
retq
LBB3_2:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rsi, %rcx
movl %edi, %edx
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.23(%rip), %rsi
xorl %eax, %eax
callq _fprintf
movl $1, %edi
callq _exit
.cfi_endproc
## -- End function
.globl _parse_uint ## -- Begin function parse_uint
.p2align 4, 0x90
_parse_uint: ## @parse_uint
.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 -16(%rbp), %rsi
movl $10, %edx
callq _strtoul
movl %eax, (%rbx)
movq -16(%rbp), %rcx
xorl %eax, %eax
cmpb $0, (%rcx)
sete %al
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\nkernel void vadd( \n global float* a, \n global float* b, \n global float* c, \n const unsigned int count) \n{ \n int i = get_global_id(0); \n if(i < count) \n c[i] = a[i] + b[i]; \n} \n\n"
.section __DATA,__data
.globl _KernelSource ## @KernelSource
.p2align 3
_KernelSource:
.quad L_.str
.p2align 2 ## @length
_length:
.long 1024 ## 0x400
.zerofill __DATA,__bss,_device_index,4,2 ## @device_index
.section __TEXT,__cstring,cstring_literals
L_.str.2: ## @.str.2
.asciz "\nUsing OpenCL device: %s\n"
L_.str.3: ## @.str.3
.asciz "Creating context"
L_.str.4: ## @.str.4
.asciz "Creating command queue"
L_.str.5: ## @.str.5
.asciz "Creating program"
L_.str.8: ## @.str.8
.asciz "Building program"
L_.str.9: ## @.str.9
.asciz "vadd"
L_.str.10: ## @.str.10
.asciz "Creating kernel"
L_.str.11: ## @.str.11
.asciz "Creating buffer d_a"
L_.str.12: ## @.str.12
.asciz "Creating buffer d_b"
L_.str.13: ## @.str.13
.asciz "Creating buffer d_c"
L_.str.14: ## @.str.14
.asciz "Copying h_a to device at d_a"
L_.str.15: ## @.str.15
.asciz "Copying h_b to device at d_b"
L_.str.16: ## @.str.16
.asciz "Setting kernel arguments"
L_.str.17: ## @.str.17
.asciz "Enqueueing kernel"
L_.str.18: ## @.str.18
.asciz "Waiting for kernel to finish"
L_.str.19: ## @.str.19
.asciz "\nThe kernel ran in %lf seconds\n"
L_.str.20: ## @.str.20
.asciz "Reading results"
L_.str.21: ## @.str.21
.asciz " tmp %f h_a %f h_b %f h_c %f \n"
L_.str.22: ## @.str.22
.asciz "C = A+B: %d out of %d results were correct.\n"
L_.str.23: ## @.str.23
.asciz "Error %d: %s\n"
L_.str.24: ## @.str.24
.asciz "getting platforms"
L_.str.25: ## @.str.25
.asciz "getting deviceS"
L_.str.26: ## @.str.26
.asciz "--list"
L_.str.30: ## @.str.30
.asciz "%2d: %s\n"
L_.str.31: ## @.str.31
.asciz "--device"
L_.str.32: ## @.str.32
.asciz "Invalid device index\n"
L_.str.33: ## @.str.33
.asciz "--help"
L_.str.34: ## @.str.34
.asciz "-h"
L_str: ## @str
.asciz "OpenCL build log:"
L_str.42: ## @str.42
.asciz "Invalid device index (try '--list')"
L_str.43: ## @str.43
.asciz "Devices:"
L_str.44: ## @str.44
.asciz "No devices found."
L_str.45: ## @str.45
.asciz "Usage: ./jac_solv_ocl_basic [OPTIONS]\n"
L_str.46: ## @str.46
.asciz "Options:"
L_str.47: ## @str.47
.asciz " -h --help Print the message"
L_str.48: ## @str.48
.asciz " --list List available devices"
L_str.49: ## @str.49
.asciz " --device INDEX Select device at INDEX"
L_str.50: ## @str.50
.asciz " LEN Set vector length to LEN"
L_str.51: ## @str.51
.asciz "Invalid Ndim value"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp d9, d8, [sp, #-112]! ; 16-byte Folded Spill
.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
.cfi_offset b8, -104
.cfi_offset b9, -112
sub sp, sp, #2544
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-112]
bl _parse_arguments
Lloh3:
adrp x8, _length@PAGE
Lloh4:
ldr w26, [x8, _length@PAGEOFF]
mov x0, x26
mov w1, #4
bl _calloc
mov x19, x0
mov x0, x26
mov w1, #4
bl _calloc
mov x20, x0
mov x0, x26
mov w1, #4
bl _calloc
mov x21, x0
str w26, [sp, #52]
cbz w26, LBB0_3
; %bb.1:
movi.2s v8, #48, lsl #24
mov x22, x26
mov x23, x20
mov x24, x19
LBB0_2: ; =>This Inner Loop Header: Depth=1
bl _rand
scvtf s0, w0
fmul s0, s0, s8
str s0, [x24], #4
bl _rand
scvtf s0, w0
fmul s0, s0, s8
str s0, [x23], #4
subs x22, x22, #1
b.ne LBB0_2
LBB0_3:
sub x22, x29, #240
sub x0, x29, #240
bl _get_device_list
Lloh5:
adrp x8, _device_index@PAGE
Lloh6:
ldr w8, [x8, _device_index@PAGEOFF]
cmp w8, w0
b.hs LBB0_26
; %bb.4:
ldr x0, [x22, x8, lsl #3]
str x0, [sp, #80]
add x22, sp, #2144
add x3, sp, #2144
mov w1, #4139
mov w2, #256
mov x4, #0
bl _clGetDeviceInfo
str x22, [sp]
Lloh7:
adrp x0, l_.str.2@PAGE
Lloh8:
add x0, x0, l_.str.2@PAGEOFF
bl _printf
add x2, sp, #80
add x5, sp, #92
mov x0, #0
mov w1, #1
mov x3, #0
mov x4, #0
bl _clCreateContext
ldr w8, [sp, #92]
cbnz w8, LBB0_32
; %bb.5:
mov x22, x0
ldr x1, [sp, #80]
add x3, sp, #92
mov x2, #0
bl _clCreateCommandQueue
ldr w8, [sp, #92]
cbnz w8, LBB0_33
; %bb.6:
mov x23, x0
Lloh9:
adrp x2, _KernelSource@PAGE
Lloh10:
add x2, x2, _KernelSource@PAGEOFF
add x4, sp, #92
mov x0, x22
mov w1, #1
mov x3, #0
bl _clCreateProgramWithSource
ldr w8, [sp, #92]
cbnz w8, LBB0_34
; %bb.7:
mov x24, x0
mov w1, #0
mov x2, #0
mov x3, #0
mov x4, #0
mov x5, #0
bl _clBuildProgram
; kill: def $w0 killed $w0 def $x0
str w0, [sp, #92]
cmn w0, #11
b.ne LBB0_9
; %bb.8:
Lloh11:
adrp x0, l_str@PAGE
Lloh12:
add x0, x0, l_str@PAGEOFF
bl _puts
ldr x1, [sp, #80]
add x4, sp, #96
add x5, sp, #72
mov x0, x24
mov w2, #4483
mov w3, #2048
bl _clGetProgramBuildInfo
add x0, sp, #96
bl _puts
ldr w0, [sp, #92]
LBB0_9:
cbnz w0, LBB0_35
; %bb.10:
Lloh13:
adrp x1, l_.str.9@PAGE
Lloh14:
add x1, x1, l_.str.9@PAGEOFF
add x2, sp, #92
mov x0, x24
bl _clCreateKernel
ldr w8, [sp, #92]
cbnz w8, LBB0_36
; %bb.11:
mov x25, x0
lsl x26, x26, #2
add x4, sp, #92
mov x0, x22
mov w1, #4
mov x2, x26
mov x3, #0
bl _clCreateBuffer
str x0, [sp, #72]
ldr w8, [sp, #92]
cbnz w8, LBB0_37
; %bb.12:
mov x28, x0
add x4, sp, #92
mov x0, x22
mov w1, #4
mov x2, x26
mov x3, #0
bl _clCreateBuffer
str x0, [sp, #64]
ldr w8, [sp, #92]
cbnz w8, LBB0_38
; %bb.13:
mov x27, x0
add x4, sp, #92
mov x0, x22
mov w1, #2
mov x2, x26
mov x3, #0
bl _clCreateBuffer
str x0, [sp, #56]
ldr w8, [sp, #92]
cbnz w8, LBB0_39
; %bb.14:
str xzr, [sp]
mov x0, x23
mov x1, x28
mov w2, #1
mov x3, #0
mov x4, x26
mov x5, x19
mov w6, #0
mov x7, #0
bl _clEnqueueWriteBuffer
; kill: def $w0 killed $w0 def $x0
str w0, [sp, #92]
cbnz w0, LBB0_40
; %bb.15:
str xzr, [sp]
mov x0, x23
mov x1, x27
mov w2, #1
mov x3, #0
mov x4, x26
mov x5, x20
mov w6, #0
mov x7, #0
bl _clEnqueueWriteBuffer
; kill: def $w0 killed $w0 def $x0
str w0, [sp, #92]
cbnz w0, LBB0_41
; %bb.16:
add x3, sp, #72
mov x0, x25
mov w1, #0
mov w2, #8
bl _clSetKernelArg
str w0, [sp, #92]
add x3, sp, #64
mov x0, x25
mov w1, #1
mov w2, #8
bl _clSetKernelArg
ldr w8, [sp, #92]
orr w8, w8, w0
str w8, [sp, #92]
add x3, sp, #56
mov x0, x25
mov w1, #2
mov w2, #8
bl _clSetKernelArg
ldr w8, [sp, #92]
orr w8, w8, w0
str w8, [sp, #92]
add x3, sp, #52
mov x0, x25
mov w1, #3
mov w2, #4
bl _clSetKernelArg
ldr w8, [sp, #92]
orr w8, w8, w0
str w8, [sp, #92]
cbnz w8, LBB0_42
; %bb.17:
ldr w8, [sp, #52]
str x8, [sp, #96]
str xzr, [sp]
add x4, sp, #96
mov x0, x23
mov x1, x25
mov w2, #1
mov x3, #0
mov x5, #0
mov w6, #0
mov x7, #0
bl _clEnqueueNDRangeKernel
; kill: def $w0 killed $w0 def $x0
str w0, [sp, #92]
cbnz w0, LBB0_44
; %bb.18:
mov x0, x23
bl _clFinish
; kill: def $w0 killed $w0 def $x0
str w0, [sp, #92]
cbnz w0, LBB0_45
; %bb.19:
str x22, [sp, #40] ; 8-byte Folded Spill
mov x8, #60813
movk x8, #41141, lsl #16
movk x8, #50935, lsl #32
movk x8, #16048, lsl #48
str x8, [sp]
Lloh15:
adrp x0, l_.str.19@PAGE
Lloh16:
add x0, x0, l_.str.19@PAGEOFF
bl _printf
ldr x1, [sp, #56]
ldr w8, [sp, #52]
lsl x4, x8, #2
str xzr, [sp]
mov x0, x23
mov w2, #1
mov x3, #0
mov x5, x21
mov w6, #0
mov x7, #0
bl _clEnqueueReadBuffer
; kill: def $w0 killed $w0 def $x0
str w0, [sp, #92]
cbnz w0, LBB0_46
; %bb.20:
mov x22, x24
ldr w8, [sp, #52]
cbz w8, LBB0_27
; %bb.21:
mov x28, #0
mov w27, #0
mov x24, #60813
movk x24, #41141, lsl #16
movk x24, #50935, lsl #32
movk x24, #16048, lsl #48
Lloh17:
adrp x26, l_.str.21@PAGE
Lloh18:
add x26, x26, l_.str.21@PAGEOFF
b LBB0_24
LBB0_22: ; in Loop: Header=BB0_24 Depth=1
fcvt d3, s3
fcvt d0, s0
fcvt d1, s1
fcvt d2, s2
stp d1, d2, [sp, #16]
stp d3, d0, [sp]
mov x0, x26
bl _printf
ldr w8, [sp, #52]
LBB0_23: ; in Loop: Header=BB0_24 Depth=1
add x28, x28, #1
cmp x28, w8, uxtw
b.hs LBB0_28
LBB0_24: ; =>This Inner Loop Header: Depth=1
lsl x9, x28, #2
ldr s0, [x19, x9]
ldr s1, [x20, x9]
ldr s2, [x21, x9]
fadd s3, s0, s1
fsub s3, s3, s2
fmul s4, s3, s3
fcvt d4, s4
fmov d5, x24
fcmp d4, d5
b.pl LBB0_22
; %bb.25: ; in Loop: Header=BB0_24 Depth=1
add w27, w27, #1
b LBB0_23
LBB0_26:
Lloh19:
adrp x0, l_str.42@PAGE
Lloh20:
add x0, x0, l_str.42@PAGEOFF
bl _puts
mov w0, #1
b LBB0_29
LBB0_27:
mov w27, #0
LBB0_28:
stp x27, x8, [sp]
Lloh21:
adrp x0, l_.str.22@PAGE
Lloh22:
add x0, x0, l_.str.22@PAGEOFF
bl _printf
ldr x0, [sp, #72]
bl _clReleaseMemObject
ldr x0, [sp, #64]
bl _clReleaseMemObject
ldr x0, [sp, #56]
bl _clReleaseMemObject
mov x0, x22
bl _clReleaseProgram
mov x0, x25
bl _clReleaseKernel
mov x0, x23
bl _clReleaseCommandQueue
ldr x0, [sp, #40] ; 8-byte Folded Reload
bl _clReleaseContext
mov x0, x19
bl _free
mov x0, x20
bl _free
mov x0, x21
bl _free
mov w0, #0
LBB0_29:
ldur x8, [x29, #-112]
Lloh23:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh24:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_31
; %bb.30:
add sp, sp, #2544
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
ldp d9, d8, [sp], #112 ; 16-byte Folded Reload
ret
LBB0_31:
bl ___stack_chk_fail
LBB0_32:
Lloh26:
adrp x9, ___stderrp@GOTPAGE
Lloh27:
ldr x9, [x9, ___stderrp@GOTPAGEOFF]
Lloh28:
ldr x0, [x9]
Lloh29:
adrp x9, l_.str.3@PAGE
Lloh30:
add x9, x9, l_.str.3@PAGEOFF
b LBB0_43
LBB0_33:
Lloh31:
adrp x9, ___stderrp@GOTPAGE
Lloh32:
ldr x9, [x9, ___stderrp@GOTPAGEOFF]
Lloh33:
ldr x0, [x9]
Lloh34:
adrp x9, l_.str.4@PAGE
Lloh35:
add x9, x9, l_.str.4@PAGEOFF
b LBB0_43
LBB0_34:
Lloh36:
adrp x9, ___stderrp@GOTPAGE
Lloh37:
ldr x9, [x9, ___stderrp@GOTPAGEOFF]
Lloh38:
ldr x0, [x9]
Lloh39:
adrp x9, l_.str.5@PAGE
Lloh40:
add x9, x9, l_.str.5@PAGEOFF
b LBB0_43
LBB0_35:
Lloh41:
adrp x8, ___stderrp@GOTPAGE
Lloh42:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh43:
ldr x8, [x8]
Lloh44:
adrp x9, l_.str.8@PAGE
Lloh45:
add x9, x9, l_.str.8@PAGEOFF
b LBB0_47
LBB0_36:
Lloh46:
adrp x9, ___stderrp@GOTPAGE
Lloh47:
ldr x9, [x9, ___stderrp@GOTPAGEOFF]
Lloh48:
ldr x0, [x9]
Lloh49:
adrp x9, l_.str.10@PAGE
Lloh50:
add x9, x9, l_.str.10@PAGEOFF
b LBB0_43
LBB0_37:
Lloh51:
adrp x9, ___stderrp@GOTPAGE
Lloh52:
ldr x9, [x9, ___stderrp@GOTPAGEOFF]
Lloh53:
ldr x0, [x9]
Lloh54:
adrp x9, l_.str.11@PAGE
Lloh55:
add x9, x9, l_.str.11@PAGEOFF
b LBB0_43
LBB0_38:
Lloh56:
adrp x9, ___stderrp@GOTPAGE
Lloh57:
ldr x9, [x9, ___stderrp@GOTPAGEOFF]
Lloh58:
ldr x0, [x9]
Lloh59:
adrp x9, l_.str.12@PAGE
Lloh60:
add x9, x9, l_.str.12@PAGEOFF
b LBB0_43
LBB0_39:
Lloh61:
adrp x9, ___stderrp@GOTPAGE
Lloh62:
ldr x9, [x9, ___stderrp@GOTPAGEOFF]
Lloh63:
ldr x0, [x9]
Lloh64:
adrp x9, l_.str.13@PAGE
Lloh65:
add x9, x9, l_.str.13@PAGEOFF
b LBB0_43
LBB0_40:
Lloh66:
adrp x8, ___stderrp@GOTPAGE
Lloh67:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh68:
ldr x8, [x8]
Lloh69:
adrp x9, l_.str.14@PAGE
Lloh70:
add x9, x9, l_.str.14@PAGEOFF
b LBB0_47
LBB0_41:
Lloh71:
adrp x8, ___stderrp@GOTPAGE
Lloh72:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh73:
ldr x8, [x8]
Lloh74:
adrp x9, l_.str.15@PAGE
Lloh75:
add x9, x9, l_.str.15@PAGEOFF
b LBB0_47
LBB0_42:
Lloh76:
adrp x9, ___stderrp@GOTPAGE
Lloh77:
ldr x9, [x9, ___stderrp@GOTPAGEOFF]
Lloh78:
ldr x0, [x9]
Lloh79:
adrp x9, l_.str.16@PAGE
Lloh80:
add x9, x9, l_.str.16@PAGEOFF
LBB0_43:
stp x8, x9, [sp]
Lloh81:
adrp x1, l_.str.23@PAGE
Lloh82:
add x1, x1, l_.str.23@PAGEOFF
b LBB0_48
LBB0_44:
Lloh83:
adrp x8, ___stderrp@GOTPAGE
Lloh84:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh85:
ldr x8, [x8]
Lloh86:
adrp x9, l_.str.17@PAGE
Lloh87:
add x9, x9, l_.str.17@PAGEOFF
b LBB0_47
LBB0_45:
Lloh88:
adrp x8, ___stderrp@GOTPAGE
Lloh89:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh90:
ldr x8, [x8]
Lloh91:
adrp x9, l_.str.18@PAGE
Lloh92:
add x9, x9, l_.str.18@PAGEOFF
b LBB0_47
LBB0_46:
Lloh93:
adrp x8, ___stderrp@GOTPAGE
Lloh94:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh95:
ldr x8, [x8]
Lloh96:
adrp x9, l_.str.20@PAGE
Lloh97:
add x9, x9, l_.str.20@PAGEOFF
LBB0_47:
stp x0, x9, [sp]
Lloh98:
adrp x1, l_.str.23@PAGE
Lloh99:
add x1, x1, l_.str.23@PAGEOFF
mov x0, x8
LBB0_48:
bl _fprintf
mov w0, #1
bl _exit
.loh AdrpLdr Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdr Lloh5, Lloh6
.loh AdrpAdd Lloh7, Lloh8
.loh AdrpAdd Lloh9, Lloh10
.loh AdrpAdd Lloh11, Lloh12
.loh AdrpAdd Lloh13, Lloh14
.loh AdrpAdd Lloh15, Lloh16
.loh AdrpAdd Lloh17, Lloh18
.loh AdrpAdd Lloh19, Lloh20
.loh AdrpAdd Lloh21, Lloh22
.loh AdrpLdrGotLdr Lloh23, Lloh24, Lloh25
.loh AdrpAdd Lloh29, Lloh30
.loh AdrpLdrGotLdr Lloh26, Lloh27, Lloh28
.loh AdrpAdd Lloh34, Lloh35
.loh AdrpLdrGotLdr Lloh31, Lloh32, Lloh33
.loh AdrpAdd Lloh39, Lloh40
.loh AdrpLdrGotLdr Lloh36, Lloh37, Lloh38
.loh AdrpAdd Lloh44, Lloh45
.loh AdrpLdrGotLdr Lloh41, Lloh42, Lloh43
.loh AdrpAdd Lloh49, Lloh50
.loh AdrpLdrGotLdr Lloh46, Lloh47, Lloh48
.loh AdrpAdd Lloh54, Lloh55
.loh AdrpLdrGotLdr Lloh51, Lloh52, Lloh53
.loh AdrpAdd Lloh59, Lloh60
.loh AdrpLdrGotLdr Lloh56, Lloh57, Lloh58
.loh AdrpAdd Lloh64, Lloh65
.loh AdrpLdrGotLdr Lloh61, Lloh62, Lloh63
.loh AdrpAdd Lloh69, Lloh70
.loh AdrpLdrGotLdr Lloh66, Lloh67, Lloh68
.loh AdrpAdd Lloh74, Lloh75
.loh AdrpLdrGotLdr Lloh71, Lloh72, Lloh73
.loh AdrpAdd Lloh79, Lloh80
.loh AdrpLdrGotLdr Lloh76, Lloh77, Lloh78
.loh AdrpAdd Lloh81, Lloh82
.loh AdrpAdd Lloh86, Lloh87
.loh AdrpLdrGotLdr Lloh83, Lloh84, Lloh85
.loh AdrpAdd Lloh91, Lloh92
.loh AdrpLdrGotLdr Lloh88, Lloh89, Lloh90
.loh AdrpAdd Lloh96, Lloh97
.loh AdrpLdrGotLdr Lloh93, Lloh94, Lloh95
.loh AdrpAdd Lloh98, Lloh99
.cfi_endproc
; -- End function
.globl _parse_arguments ; -- Begin function parse_arguments
.p2align 2
_parse_arguments: ; @parse_arguments
.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, #416
Lloh100:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh101:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh102:
ldr x8, [x8]
stur x8, [x29, #-96]
cmp w0, #2
b.lt LBB1_12
; %bb.1:
mov x19, x1
mov x20, x0
mov w27, #1
Lloh103:
adrp x21, l_.str.26@PAGE
Lloh104:
add x21, x21, l_.str.26@PAGEOFF
Lloh105:
adrp x22, l_.str.31@PAGE
Lloh106:
add x22, x22, l_.str.31@PAGEOFF
Lloh107:
adrp x23, l_.str.33@PAGE
Lloh108:
add x23, x23, l_.str.33@PAGEOFF
Lloh109:
adrp x24, l_.str.34@PAGE
Lloh110:
add x24, x24, l_.str.34@PAGEOFF
adrp x28, _length@PAGE
Lloh111:
adrp x25, l_str.51@PAGE
Lloh112:
add x25, x25, l_str.51@PAGEOFF
b LBB1_3
LBB1_2: ; in Loop: Header=BB1_3 Depth=1
add w27, w27, #1
cmp w27, w20
b.ge LBB1_12
LBB1_3: ; =>This Inner Loop Header: Depth=1
ldr x26, [x19, w27, sxtw #3]
mov x0, x26
mov x1, x21
bl _strcmp
cbz w0, LBB1_15
; %bb.4: ; in Loop: Header=BB1_3 Depth=1
mov x0, x26
mov x1, x22
bl _strcmp
cbz w0, LBB1_9
; %bb.5: ; in Loop: Header=BB1_3 Depth=1
mov x0, x26
mov x1, x23
bl _strcmp
cbz w0, LBB1_14
; %bb.6: ; in Loop: Header=BB1_3 Depth=1
mov x0, x26
mov x1, x24
bl _strcmp
cbz w0, LBB1_14
; %bb.7: ; in Loop: Header=BB1_3 Depth=1
add x1, sp, #16
mov x0, x26
mov w2, #10
bl _strtoul
str w0, [x28, _length@PAGEOFF]
ldr x8, [sp, #16]
ldrb w8, [x8]
cbz w8, LBB1_2
; %bb.8: ; in Loop: Header=BB1_3 Depth=1
mov x0, x25
bl _puts
b LBB1_2
LBB1_9: ; in Loop: Header=BB1_3 Depth=1
; kill: def $w27 killed $w27 killed $x27 def $x27
sxtw x8, w27
add x27, x8, #1
cmp w27, w20
b.ge LBB1_11
; %bb.10: ; in Loop: Header=BB1_3 Depth=1
ldr x0, [x19, x27, lsl #3]
add x1, sp, #16
mov w2, #10
bl _strtoul
adrp x8, _device_index@PAGE
str w0, [x8, _device_index@PAGEOFF]
ldr x8, [sp, #16]
ldrb w8, [x8]
cbz w8, LBB1_2
LBB1_11:
Lloh113:
adrp x8, ___stderrp@GOTPAGE
Lloh114:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh115:
ldr x3, [x8]
Lloh116:
adrp x0, l_.str.32@PAGE
Lloh117:
add x0, x0, l_.str.32@PAGEOFF
mov w1, #21
mov w2, #1
bl _fwrite
mov w0, #1
bl _exit
LBB1_12:
ldur x8, [x29, #-96]
Lloh118:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh119:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh120:
ldr x9, [x9]
cmp x9, x8
b.ne LBB1_20
; %bb.13:
add sp, sp, #416
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
LBB1_14:
mov w0, #10
bl _putchar
Lloh121:
adrp x0, l_str.45@PAGE
Lloh122:
add x0, x0, l_str.45@PAGEOFF
bl _puts
Lloh123:
adrp x0, l_str.46@PAGE
Lloh124:
add x0, x0, l_str.46@PAGEOFF
bl _puts
Lloh125:
adrp x0, l_str.47@PAGE
Lloh126:
add x0, x0, l_str.47@PAGEOFF
bl _puts
Lloh127:
adrp x0, l_str.48@PAGE
Lloh128:
add x0, x0, l_str.48@PAGEOFF
bl _puts
Lloh129:
adrp x0, l_str.49@PAGE
Lloh130:
add x0, x0, l_str.49@PAGEOFF
bl _puts
Lloh131:
adrp x0, l_str.50@PAGE
Lloh132:
add x0, x0, l_str.50@PAGEOFF
bl _puts
b LBB1_19
LBB1_15:
sub x20, x29, #224
sub x0, x29, #224
bl _get_device_list
cbnz w0, LBB1_17
; %bb.16:
Lloh133:
adrp x0, l_str.44@PAGE
Lloh134:
add x0, x0, l_str.44@PAGEOFF
bl _puts
mov w0, #0
bl _exit
LBB1_17:
mov x19, x0
mov w0, #10
bl _putchar
Lloh135:
adrp x0, l_str.43@PAGE
Lloh136:
add x0, x0, l_str.43@PAGEOFF
bl _puts
mov x21, #0
mov w22, w19
add x23, sp, #16
Lloh137:
adrp x19, l_.str.30@PAGE
Lloh138:
add x19, x19, l_.str.30@PAGEOFF
LBB1_18: ; =>This Inner Loop Header: Depth=1
ldr x0, [x20, x21, lsl #3]
add x3, sp, #16
mov w1, #4139
mov w2, #256
mov x4, #0
bl _clGetDeviceInfo
stp x21, x23, [sp]
mov x0, x19
bl _printf
add x21, x21, #1
cmp x22, x21
b.ne LBB1_18
LBB1_19:
mov w0, #10
bl _putchar
mov w0, #0
bl _exit
LBB1_20:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh100, Lloh101, Lloh102
.loh AdrpAdd Lloh111, Lloh112
.loh AdrpAdd Lloh109, Lloh110
.loh AdrpAdd Lloh107, Lloh108
.loh AdrpAdd Lloh105, Lloh106
.loh AdrpAdd Lloh103, Lloh104
.loh AdrpAdd Lloh116, Lloh117
.loh AdrpLdrGotLdr Lloh113, Lloh114, Lloh115
.loh AdrpLdrGotLdr Lloh118, Lloh119, Lloh120
.loh AdrpAdd Lloh131, Lloh132
.loh AdrpAdd Lloh129, Lloh130
.loh AdrpAdd Lloh127, Lloh128
.loh AdrpAdd Lloh125, Lloh126
.loh AdrpAdd Lloh123, Lloh124
.loh AdrpAdd Lloh121, Lloh122
.loh AdrpAdd Lloh133, Lloh134
.loh AdrpAdd Lloh137, Lloh138
.loh AdrpAdd Lloh135, Lloh136
.cfi_endproc
; -- End function
.globl _get_device_list ; -- Begin function get_device_list
.p2align 2
_get_device_list: ; @get_device_list
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x24, x23, [sp, #96] ; 16-byte Folded Spill
stp x22, x21, [sp, #112] ; 16-byte Folded Spill
stp x20, x19, [sp, #128] ; 16-byte Folded Spill
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
mov x19, x0
Lloh139:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh140:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh141:
ldr x8, [x8]
stur x8, [x29, #-56]
str wzr, [sp, #20]
add x1, sp, #24
add x2, sp, #20
mov w0, #8
bl _clGetPlatformIDs
; kill: def $w0 killed $w0 def $x0
cbnz w0, LBB2_10
; %bb.1:
ldr w8, [sp, #20]
cbz w8, LBB2_5
; %bb.2:
mov x21, #0
mov w20, #0
add x22, sp, #24
mov w23, #16
LBB2_3: ; =>This Inner Loop Header: Depth=1
str wzr, [sp, #16]
ldr x0, [x22, x21, lsl #3]
sub w2, w23, w20
add x3, x19, w20, uxtw #3
add x4, sp, #16
mov w1, #-1
bl _clGetDeviceIDs
; kill: def $w0 killed $w0 def $x0
cbnz w0, LBB2_8
; %bb.4: ; in Loop: Header=BB2_3 Depth=1
ldr w8, [sp, #16]
add w20, w8, w20
add x21, x21, #1
ldr w8, [sp, #20]
cmp x21, x8
b.lo LBB2_3
b LBB2_6
LBB2_5:
mov w20, #0
LBB2_6:
ldur x8, [x29, #-56]
Lloh142:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh143:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh144:
ldr x9, [x9]
cmp x9, x8
b.ne LBB2_11
; %bb.7:
mov x0, x20
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
ldp x20, x19, [sp, #128] ; 16-byte Folded Reload
ldp x22, x21, [sp, #112] ; 16-byte Folded Reload
ldp x24, x23, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #160
ret
LBB2_8:
Lloh145:
adrp x8, ___stderrp@GOTPAGE
Lloh146:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh147:
ldr x8, [x8]
Lloh148:
adrp x9, l_.str.25@PAGE
Lloh149:
add x9, x9, l_.str.25@PAGEOFF
LBB2_9:
stp x0, x9, [sp]
Lloh150:
adrp x1, l_.str.23@PAGE
Lloh151:
add x1, x1, l_.str.23@PAGEOFF
mov x0, x8
bl _fprintf
mov w0, #1
bl _exit
LBB2_10:
Lloh152:
adrp x8, ___stderrp@GOTPAGE
Lloh153:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh154:
ldr x8, [x8]
Lloh155:
adrp x9, l_.str.24@PAGE
Lloh156:
add x9, x9, l_.str.24@PAGEOFF
b LBB2_9
LBB2_11:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh139, Lloh140, Lloh141
.loh AdrpLdrGotLdr Lloh142, Lloh143, Lloh144
.loh AdrpAdd Lloh148, Lloh149
.loh AdrpLdrGotLdr Lloh145, Lloh146, Lloh147
.loh AdrpAdd Lloh150, Lloh151
.loh AdrpAdd Lloh155, Lloh156
.loh AdrpLdrGotLdr Lloh152, Lloh153, Lloh154
.cfi_endproc
; -- End function
.globl _check_error ; -- Begin function check_error
.p2align 2
_check_error: ; @check_error
.cfi_startproc
; %bb.0:
; kill: def $w0 killed $w0 def $x0
cbnz w0, LBB3_2
; %bb.1:
ret
LBB3_2:
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
Lloh157:
adrp x8, ___stderrp@GOTPAGE
Lloh158:
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
Lloh159:
ldr x8, [x8]
stp x0, x1, [sp]
Lloh160:
adrp x1, l_.str.23@PAGE
Lloh161:
add x1, x1, l_.str.23@PAGEOFF
mov x0, x8
bl _fprintf
mov w0, #1
bl _exit
.loh AdrpAdd Lloh160, Lloh161
.loh AdrpLdrGotLdr Lloh157, Lloh158, Lloh159
.cfi_endproc
; -- End function
.globl _parse_uint ; -- Begin function parse_uint
.p2align 2
_parse_uint: ; @parse_uint
.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
add x1, sp, #8
mov w2, #10
bl _strtoul
str w0, [x19]
ldr x8, [sp, #8]
ldrb w8, [x8]
cmp w8, #0
cset w0, eq
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
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\nkernel void vadd( \n global float* a, \n global float* b, \n global float* c, \n const unsigned int count) \n{ \n int i = get_global_id(0); \n if(i < count) \n c[i] = a[i] + b[i]; \n} \n\n"
.section __DATA,__data
.globl _KernelSource ; @KernelSource
.p2align 3
_KernelSource:
.quad l_.str
.p2align 2 ; @length
_length:
.long 1024 ; 0x400
.zerofill __DATA,__bss,_device_index,4,2 ; @device_index
.section __TEXT,__cstring,cstring_literals
l_.str.2: ; @.str.2
.asciz "\nUsing OpenCL device: %s\n"
l_.str.3: ; @.str.3
.asciz "Creating context"
l_.str.4: ; @.str.4
.asciz "Creating command queue"
l_.str.5: ; @.str.5
.asciz "Creating program"
l_.str.8: ; @.str.8
.asciz "Building program"
l_.str.9: ; @.str.9
.asciz "vadd"
l_.str.10: ; @.str.10
.asciz "Creating kernel"
l_.str.11: ; @.str.11
.asciz "Creating buffer d_a"
l_.str.12: ; @.str.12
.asciz "Creating buffer d_b"
l_.str.13: ; @.str.13
.asciz "Creating buffer d_c"
l_.str.14: ; @.str.14
.asciz "Copying h_a to device at d_a"
l_.str.15: ; @.str.15
.asciz "Copying h_b to device at d_b"
l_.str.16: ; @.str.16
.asciz "Setting kernel arguments"
l_.str.17: ; @.str.17
.asciz "Enqueueing kernel"
l_.str.18: ; @.str.18
.asciz "Waiting for kernel to finish"
l_.str.19: ; @.str.19
.asciz "\nThe kernel ran in %lf seconds\n"
l_.str.20: ; @.str.20
.asciz "Reading results"
l_.str.21: ; @.str.21
.asciz " tmp %f h_a %f h_b %f h_c %f \n"
l_.str.22: ; @.str.22
.asciz "C = A+B: %d out of %d results were correct.\n"
l_.str.23: ; @.str.23
.asciz "Error %d: %s\n"
l_.str.24: ; @.str.24
.asciz "getting platforms"
l_.str.25: ; @.str.25
.asciz "getting deviceS"
l_.str.26: ; @.str.26
.asciz "--list"
l_.str.30: ; @.str.30
.asciz "%2d: %s\n"
l_.str.31: ; @.str.31
.asciz "--device"
l_.str.32: ; @.str.32
.asciz "Invalid device index\n"
l_.str.33: ; @.str.33
.asciz "--help"
l_.str.34: ; @.str.34
.asciz "-h"
l_str: ; @str
.asciz "OpenCL build log:"
l_str.42: ; @str.42
.asciz "Invalid device index (try '--list')"
l_str.43: ; @str.43
.asciz "Devices:"
l_str.44: ; @str.44
.asciz "No devices found."
l_str.45: ; @str.45
.asciz "Usage: ./jac_solv_ocl_basic [OPTIONS]\n"
l_str.46: ; @str.46
.asciz "Options:"
l_str.47: ; @str.47
.asciz " -h --help Print the message"
l_str.48: ; @str.48
.asciz " --list List available devices"
l_str.49: ; @str.49
.asciz " --device INDEX Select device at INDEX"
l_str.50: ; @str.50
.asciz " LEN Set vector length to LEN"
l_str.51: ; @str.51
.asciz "Invalid Ndim value"
.subsections_via_symbols
| the_stack_data/1148681.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function sdma_v4_0_process_ecc_irq
_sdma_v4_0_process_ecc_irq: ## @sdma_v4_0_process_ecc_irq
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq (%rdi), %rax
movq %rdx, -8(%rbp)
testq %rax, %rax
je LBB0_2
## %bb.1:
movl (%rax), %eax
movl %eax, -16(%rbp)
leaq -16(%rbp), %rsi
callq _amdgpu_ras_interrupt_dispatch
LBB0_2:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _sdma_v4_0_process_ecc_irq
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function sdma_v4_0_process_ecc_irq
_sdma_v4_0_process_ecc_irq: ; @sdma_v4_0_process_ecc_irq
.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
ldr x8, [x0]
str x2, [sp, #8]
cbz x8, LBB0_2
; %bb.1:
ldr w8, [x8]
str w8, [sp]
mov x1, sp
bl _amdgpu_ras_interrupt_dispatch
LBB0_2:
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _sdma_v4_0_process_ecc_irq
.subsections_via_symbols
| AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_sdma_v4_0.c_sdma_v4_0_process_ecc_irq.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tboot_force_iommu ## -- Begin function tboot_force_iommu
.p2align 4, 0x90
_tboot_force_iommu: ## @tboot_force_iommu
.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
xorl %ebx, %ebx
xorl %eax, %eax
callq _tboot_enabled
testl %eax, %eax
je LBB0_6
## %bb.1:
movq _no_iommu@GOTPCREL(%rip), %rbx
cmpq $0, (%rbx)
movq _dmar_disabled@GOTPCREL(%rip), %r14
jne LBB0_4
## %bb.2:
movq _swiotlb@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_4
## %bb.3:
cmpq $0, (%r14)
je LBB0_5
LBB0_4:
leaq L_.str(%rip), %rdi
callq _pr_warning
LBB0_5:
movq $0, (%r14)
movq $0, (%rbx)
movl $1, %ebx
LBB0_6:
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _no_iommu,8,3 ## @no_iommu
.comm _swiotlb,8,3 ## @swiotlb
.comm _dmar_disabled,8,3 ## @dmar_disabled
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Forcing Intel-IOMMU to enabled\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tboot_force_iommu ; -- Begin function tboot_force_iommu
.p2align 2
_tboot_force_iommu: ; @tboot_force_iommu
.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
bl _tboot_enabled
cbz w0, LBB0_4
; %bb.1:
Lloh0:
adrp x19, _no_iommu@GOTPAGE
Lloh1:
ldr x19, [x19, _no_iommu@GOTPAGEOFF]
ldr x8, [x19]
Lloh2:
adrp x9, _swiotlb@GOTPAGE
Lloh3:
ldr x9, [x9, _swiotlb@GOTPAGEOFF]
Lloh4:
ldr x9, [x9]
Lloh5:
adrp x20, _dmar_disabled@GOTPAGE
Lloh6:
ldr x20, [x20, _dmar_disabled@GOTPAGEOFF]
ldr x10, [x20]
cmp x8, #0
ccmp x9, #0, #0, eq
ccmp x10, #0, #0, eq
b.eq LBB0_3
; %bb.2:
Lloh7:
adrp x0, l_.str@PAGE
Lloh8:
add x0, x0, l_.str@PAGEOFF
bl _pr_warning
LBB0_3:
str xzr, [x20]
str xzr, [x19]
mov w0, #1
LBB0_4:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh7, Lloh8
.cfi_endproc
; -- End function
.comm _no_iommu,8,3 ; @no_iommu
.comm _swiotlb,8,3 ; @swiotlb
.comm _dmar_disabled,8,3 ; @dmar_disabled
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Forcing Intel-IOMMU to enabled\n"
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/arch/x86/kernel/extr_tboot.c_tboot_force_iommu.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _cpio_stwr ## -- Begin function cpio_stwr
.p2align 4, 0x90
_cpio_stwr: ## @cpio_stwr
.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
jmp _dev_start ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _cpio_stwr ; -- Begin function cpio_stwr
.p2align 2
_cpio_stwr: ; @cpio_stwr
.cfi_startproc
; %bb.0:
b _dev_start
.cfi_endproc
; -- End function
.subsections_via_symbols
| AnghaBench/freebsd/bin/pax/extr_cpio.c_cpio_stwr.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function find_jump_table
_find_jump_table: ## @find_jump_table
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $24, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdx, %r14
movq %rsi, -56(%rbp) ## 8-byte Spill
movq %rdi, -48(%rbp) ## 8-byte Spill
leaq 4(%rdi), %rax
movq %rax, -64(%rbp) ## 8-byte Spill
movq %rdx, %r12
jmp LBB0_2
.p2align 4, 0x90
LBB0_1: ## in Loop: Header=BB0_2 Depth=1
movq %rax, %r12
LBB0_2: ## =>This Inner Loop Header: Depth=1
leaq 48(%r12), %rax
cmpq -64(%rbp), %rax ## 8-byte Folded Reload
jne LBB0_5
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movq (%r12), %rax
movq -56(%rbp), %rcx ## 8-byte Reload
cmpq (%rcx), %rax
jne LBB0_22
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
movq 8(%r12), %rax
cmpq 8(%rcx), %rax
jl LBB0_22
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
movq 16(%r12), %rax
cmpq %r14, %r12
je LBB0_7
## %bb.6: ## in Loop: Header=BB0_2 Depth=1
movq _INSN_JUMP_DYNAMIC@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_17
LBB0_7: ## in Loop: Header=BB0_2 Depth=1
movq _INSN_JUMP_UNCONDITIONAL@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_11
## %bb.8: ## in Loop: Header=BB0_2 Depth=1
movq 32(%r12), %rax
testq %rax, %rax
je LBB0_11
## %bb.9: ## in Loop: Header=BB0_2 Depth=1
movq (%rax), %rax
cmpq 8(%r12), %rax
jle LBB0_22
## %bb.10: ## in Loop: Header=BB0_2 Depth=1
cmpq 8(%r14), %rax
jg LBB0_22
LBB0_11: ## in Loop: Header=BB0_2 Depth=1
movq (%r12), %rdi
movq 8(%r12), %rsi
movl 24(%r12), %edx
callq _find_rela_by_dest_range
testq %rax, %rax
je LBB0_17
## %bb.12: ## in Loop: Header=BB0_2 Depth=1
movq %rax, %r13
movq 16(%rax), %rax
movq (%rax), %rcx
movq _STT_SECTION@GOTPCREL(%rip), %rdx
cmpq (%rdx), %rcx
jne LBB0_17
## %bb.13: ## in Loop: Header=BB0_2 Depth=1
movq 8(%rax), %rbx
cmpl $0, 4(%rbx)
je LBB0_17
## %bb.14: ## in Loop: Header=BB0_2 Depth=1
movq (%r13), %rax
movq 8(%r13), %rcx
leaq 4(%rax), %r15
movq _R_X86_64_PC32@GOTPCREL(%rip), %rdx
cmpq (%rdx), %rcx
cmovneq %rax, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq _find_symbol_containing
testq %rax, %rax
je LBB0_16
## %bb.15: ## in Loop: Header=BB0_2 Depth=1
movl (%rbx), %edi
movq _C_JUMP_TABLE_SECTION@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _strcmp
testq %rax, %rax
jne LBB0_17
LBB0_16: ## in Loop: Header=BB0_2 Depth=1
movq %rbx, %rdi
movq %r15, %rsi
callq _find_rela_by_dest
testq %rax, %rax
jne LBB0_24
.p2align 4, 0x90
LBB0_17: ## in Loop: Header=BB0_2 Depth=1
movq 40(%r12), %rax
testq %rax, %rax
jne LBB0_1
## %bb.18: ## in Loop: Header=BB0_2 Depth=1
movq _list@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %r12, %rdi
callq _list_prev_entry
movq %rax, %r12
jmp LBB0_2
LBB0_22:
xorl %eax, %eax
LBB0_23:
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_24:
movq 8(%r13), %rcx
movq _R_X86_64_PC32@GOTPCREL(%rip), %rdx
cmpq (%rdx), %rcx
jne LBB0_23
## %bb.25:
movq -48(%rbp), %rcx ## 8-byte Reload
movl $1, (%rcx)
jmp LBB0_23
.cfi_endproc
## -- End function
.comm _INSN_JUMP_DYNAMIC,8,3 ## @INSN_JUMP_DYNAMIC
.comm _INSN_JUMP_UNCONDITIONAL,8,3 ## @INSN_JUMP_UNCONDITIONAL
.comm _STT_SECTION,8,3 ## @STT_SECTION
.comm _R_X86_64_PC32,8,3 ## @R_X86_64_PC32
.comm _C_JUMP_TABLE_SECTION,4,2 ## @C_JUMP_TABLE_SECTION
.comm _list,4,2 ## @list
.no_dead_strip _find_jump_table
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function find_jump_table
_find_jump_table: ; @find_jump_table
.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, x2
mov x21, x1
Lloh0:
adrp x26, _INSN_JUMP_DYNAMIC@GOTPAGE
Lloh1:
ldr x26, [x26, _INSN_JUMP_DYNAMIC@GOTPAGEOFF]
Lloh2:
adrp x27, _list@GOTPAGE
Lloh3:
ldr x27, [x27, _list@GOTPAGEOFF]
Lloh4:
adrp x28, _INSN_JUMP_UNCONDITIONAL@GOTPAGE
Lloh5:
ldr x28, [x28, _INSN_JUMP_UNCONDITIONAL@GOTPAGEOFF]
str x0, [sp, #8] ; 8-byte Folded Spill
add x19, x0, #4
mov x22, x2
b LBB0_2
LBB0_1: ; in Loop: Header=BB0_2 Depth=1
mov x22, x8
LBB0_2: ; =>This Inner Loop Header: Depth=1
add x8, x22, #48
cmp x8, x19
b.ne LBB0_5
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
ldr x8, [x22]
ldr x9, [x21]
cmp x8, x9
b.ne LBB0_19
; %bb.4: ; in Loop: Header=BB0_2 Depth=1
ldr x8, [x22, #8]
ldr x9, [x21, #8]
cmp x8, x9
b.lt LBB0_19
LBB0_5: ; in Loop: Header=BB0_2 Depth=1
ldr x8, [x22, #16]
cmp x22, x20
b.eq LBB0_7
; %bb.6: ; in Loop: Header=BB0_2 Depth=1
ldr x9, [x26]
cmp x8, x9
b.eq LBB0_17
LBB0_7: ; in Loop: Header=BB0_2 Depth=1
ldr x9, [x28]
cmp x8, x9
b.ne LBB0_11
; %bb.8: ; in Loop: Header=BB0_2 Depth=1
ldr x8, [x22, #32]
cbz x8, LBB0_11
; %bb.9: ; in Loop: Header=BB0_2 Depth=1
ldr x8, [x8]
ldr x9, [x22, #8]
cmp x8, x9
b.le LBB0_19
; %bb.10: ; in Loop: Header=BB0_2 Depth=1
ldr x9, [x20, #8]
cmp x8, x9
b.gt LBB0_19
LBB0_11: ; in Loop: Header=BB0_2 Depth=1
ldp x0, x1, [x22]
ldr w2, [x22, #24]
bl _find_rela_by_dest_range
cbz x0, LBB0_17
; %bb.12: ; in Loop: Header=BB0_2 Depth=1
mov x23, x0
ldr x8, [x0, #16]
ldr x9, [x8]
Lloh6:
adrp x10, _STT_SECTION@GOTPAGE
Lloh7:
ldr x10, [x10, _STT_SECTION@GOTPAGEOFF]
Lloh8:
ldr x10, [x10]
cmp x9, x10
b.ne LBB0_17
; %bb.13: ; in Loop: Header=BB0_2 Depth=1
ldr x24, [x8, #8]
ldr w8, [x24, #4]
cbz w8, LBB0_17
; %bb.14: ; in Loop: Header=BB0_2 Depth=1
ldp x8, x9, [x23]
Lloh9:
adrp x10, _R_X86_64_PC32@GOTPAGE
Lloh10:
ldr x10, [x10, _R_X86_64_PC32@GOTPAGEOFF]
Lloh11:
ldr x10, [x10]
add x11, x8, #4
cmp x9, x10
csel x25, x11, x8, eq
mov x0, x24
mov x1, x25
bl _find_symbol_containing
cbz x0, LBB0_16
; %bb.15: ; in Loop: Header=BB0_2 Depth=1
ldr w0, [x24]
Lloh12:
adrp x8, _C_JUMP_TABLE_SECTION@GOTPAGE
Lloh13:
ldr x8, [x8, _C_JUMP_TABLE_SECTION@GOTPAGEOFF]
Lloh14:
ldr w1, [x8]
bl _strcmp
cbnz x0, LBB0_17
LBB0_16: ; in Loop: Header=BB0_2 Depth=1
mov x0, x24
mov x1, x25
bl _find_rela_by_dest
cbnz x0, LBB0_21
LBB0_17: ; in Loop: Header=BB0_2 Depth=1
ldr x8, [x22, #40]
cbnz x8, LBB0_1
; %bb.18: ; in Loop: Header=BB0_2 Depth=1
ldr w1, [x27]
mov x0, x22
bl _list_prev_entry
mov x22, x0
b LBB0_2
LBB0_19:
mov x0, #0 ; =0x0
LBB0_20:
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_21:
ldr x8, [x23, #8]
Lloh15:
adrp x9, _R_X86_64_PC32@GOTPAGE
Lloh16:
ldr x9, [x9, _R_X86_64_PC32@GOTPAGEOFF]
Lloh17:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_20
; %bb.22:
mov w8, #1 ; =0x1
ldr x9, [sp, #8] ; 8-byte Folded Reload
str w8, [x9]
b LBB0_20
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17
.cfi_endproc
; -- End function
.comm _INSN_JUMP_DYNAMIC,8,3 ; @INSN_JUMP_DYNAMIC
.comm _INSN_JUMP_UNCONDITIONAL,8,3 ; @INSN_JUMP_UNCONDITIONAL
.comm _STT_SECTION,8,3 ; @STT_SECTION
.comm _R_X86_64_PC32,8,3 ; @R_X86_64_PC32
.comm _C_JUMP_TABLE_SECTION,4,2 ; @C_JUMP_TABLE_SECTION
.comm _list,4,2 ; @list
.no_dead_strip _find_jump_table
.subsections_via_symbols
| assembly_file_82031.c | assembly_dataset |
.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 $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
cmpl $4, %edi
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq _printf
movl $-1, %eax
jmp LBB0_8
LBB0_2:
movq %rsi, %rbx
movq 8(%rsi), %r14
movq 16(%rsi), %rdi
callq _atoi
movl %eax, %r13d
movq 24(%rbx), %rdi
callq _atoi
movl %eax, %ebx
callq _getpid
xorl %edi, %edi
movl %eax, %esi
movl %ebx, %edx
callq _setpriority
cmpl $-1, %eax
je LBB0_3
LBB0_4:
leaq -72(%rbp), %rsi
xorl %edi, %edi
callq _clock_gettime
movq -72(%rbp), %r8
movq -64(%rbp), %r9
leaq L_.str.2(%rip), %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
callq _printf
testl %r13d, %r13d
jle LBB0_7
## %bb.5:
negl %r13d
movl $1, %ebx
leaq L_.str.3(%rip), %r12
.p2align 4, 0x90
LBB0_6: ## =>This Inner Loop Header: Depth=1
xorl %edi, %edi
leaq -56(%rbp), %rsi
callq _clock_gettime
movq -56(%rbp), %r8
movq -48(%rbp), %r9
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq _printf
leal (%rbx,%r13), %eax
incl %eax
movl %ebx, %ecx
incl %ecx
movl %ecx, %ebx
cmpl $1, %eax
jne LBB0_6
LBB0_7:
xorl %eax, %eax
LBB0_8:
addq $40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_3:
leaq L_.str.1(%rip), %rdi
callq _perror
jmp LBB0_4
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "usage: %s $LABEL, $NUM_SLICES, $PRIO, $LOAD"
L_.str.1: ## @.str.1
.asciz "Error when using setpriority()"
L_.str.2: ## @.str.2
.asciz "%s %s %3d %10ld %9ld\n"
L_.str.3: ## @.str.3
.asciz "%s %s %4d %10ld %9ld\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
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
ldr x21, [x1]
cmp w0, #4
b.ne LBB0_2
; %bb.1:
str x21, [sp]
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w0, #-1
b LBB0_7
LBB0_2:
mov x20, x1
ldp x22, x0, [x1, #8]
bl _atoi
mov x19, x0
ldr x0, [x20, #24]
bl _atoi
mov x20, x0
bl _getpid
mov x1, x0
mov w0, #0
mov x2, x20
bl _setpriority
cmn w0, #1
b.eq LBB0_8
LBB0_3:
add x1, sp, #64
mov w0, #0
bl _clock_gettime
ldp x8, x9, [sp, #64]
stp x8, x9, [sp, #24]
stp x22, xzr, [sp, #8]
str x21, [sp]
Lloh2:
adrp x0, l_.str.2@PAGE
Lloh3:
add x0, x0, l_.str.2@PAGEOFF
bl _printf
cmp w19, #1
b.lt LBB0_6
; %bb.4:
mov w23, #0
Lloh4:
adrp x20, l_.str.3@PAGE
Lloh5:
add x20, x20, l_.str.3@PAGEOFF
LBB0_5: ; =>This Inner Loop Header: Depth=1
add w23, w23, #1
add x1, sp, #48
mov w0, #0
bl _clock_gettime
ldp x8, x9, [sp, #48]
stp x8, x9, [sp, #24]
stp x22, x23, [sp, #8]
str x21, [sp]
mov x0, x20
bl _printf
cmp w19, w23
b.ne LBB0_5
LBB0_6:
mov w0, #0
LBB0_7:
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
add sp, sp, #144
ret
LBB0_8:
Lloh6:
adrp x0, l_.str.1@PAGE
Lloh7:
add x0, x0, l_.str.1@PAGEOFF
bl _perror
b LBB0_3
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh6, Lloh7
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "usage: %s $LABEL, $NUM_SLICES, $PRIO, $LOAD"
l_.str.1: ; @.str.1
.asciz "Error when using setpriority()"
l_.str.2: ; @.str.2
.asciz "%s %s %3d %10ld %9ld\n"
l_.str.3: ; @.str.3
.asciz "%s %s %4d %10ld %9ld\n"
.subsections_via_symbols
| the_stack_data/184518429.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _SV_SpawnServer ## -- Begin function SV_SpawnServer
.p2align 4, 0x90
_SV_SpawnServer: ## @SV_SpawnServer
.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
movl $16408, %eax ## imm = 0x4018
callq ____chkstk_darwin
subq %rax, %rsp
popq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, -16448(%rbp) ## 8-byte Spill
movq %rdi, %r14
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
xorl %eax, %eax
callq _SV_ShutdownGameProgs
leaq L_.str(%rip), %rdi
xorl %eax, %eax
callq _Com_Printf
leaq L_.str.1(%rip), %rdi
movq %r14, %rsi
xorl %eax, %eax
callq _Com_Printf
xorl %eax, %eax
callq _CL_MapLoading
movq _qfalse@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _CL_ShutdownAll
xorl %eax, %eax
callq _Hunk_Clear
xorl %eax, %eax
callq _CM_ClearMap
leaq L_.str.2(%rip), %rdi
callq _Cvar_VariableValue
testl %eax, %eax
je LBB0_1
## %bb.2:
movq _sv_maxclients@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq $0, 8(%rax)
je LBB0_4
## %bb.3:
xorl %eax, %eax
callq _SV_ChangeMaxClients
jmp LBB0_4
LBB0_1:
xorl %eax, %eax
callq _SV_Startup
LBB0_4:
xorl %edi, %edi
callq _FS_ClearPakReferences
movq _svs@GOTPCREL(%rip), %rbx
movl (%rbx), %edi
shll $2, %edi
movq _h_high@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _Hunk_Alloc
movl %eax, 32(%rbx)
movq $0, 24(%rbx)
movq _SNAPFLAG_SERVERCOUNT@GOTPCREL(%rip), %rax
movl (%rax), %eax
xorl %eax, 16(%rbx)
leaq L_.str.3(%rip), %rdi
leaq L_.str.4(%rip), %rsi
callq _Cvar_Set
movq _sv_maxclients@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl (%rax), %edi
testl %edi, %edi
js LBB0_16
## %bb.5:
movq 8(%rbx), %rax
movq _CS_CONNECTED@GOTPCREL(%rip), %rcx
movq (%rcx), %rdx
movq _sv@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
leaq 1(%rdi), %rsi
testq %rdi, %rdi
je LBB0_6
## %bb.7:
movl %esi, %r8d
andl $-2, %r8d
leaq 48(%rax), %r9
xorl %edi, %edi
jmp LBB0_8
.p2align 4, 0x90
LBB0_12: ## in Loop: Header=BB0_8 Depth=1
addq $2, %rdi
addq $80, %r9
cmpq %rdi, %r8
je LBB0_13
LBB0_8: ## =>This Inner Loop Header: Depth=1
cmpq %rdx, -48(%r9)
jl LBB0_10
## %bb.9: ## in Loop: Header=BB0_8 Depth=1
movl %ecx, -40(%r9)
LBB0_10: ## in Loop: Header=BB0_8 Depth=1
cmpq %rdx, -8(%r9)
jl LBB0_12
## %bb.11: ## in Loop: Header=BB0_8 Depth=1
movl %ecx, (%r9)
jmp LBB0_12
LBB0_6:
xorl %edi, %edi
LBB0_13:
testb $1, %sil
je LBB0_16
## %bb.14:
leaq (%rdi,%rdi,4), %rsi
cmpq %rdx, (%rax,%rsi,8)
jl LBB0_16
## %bb.15:
leaq (%rax,%rsi,8), %rax
movl %ecx, 8(%rax)
LBB0_16:
xorl %eax, %eax
callq _SV_ClearServer
movq _MAX_CONFIGSTRINGS@GOTPCREL(%rip), %rbx
cmpl $0, (%rbx)
jle LBB0_19
## %bb.17:
xorl %r12d, %r12d
leaq L_.str.5(%rip), %r15
movq _sv@GOTPCREL(%rip), %r13
.p2align 4, 0x90
LBB0_18: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
callq _CopyString
movq 24(%r13), %rcx
movl %eax, (%rcx,%r12,4)
incq %r12
movslq (%rbx), %rax
cmpq %rax, %r12
jl LBB0_18
LBB0_19:
leaq L_.str.6(%rip), %rdi
leaq L_.str.7(%rip), %rsi
callq _Cvar_Set
xorl %eax, %eax
callq _rand
movq %rax, %r15
shll $16, %r15d
xorl %eax, %eax
callq _rand
movq %rax, %r12
xorl %eax, %eax
callq _Com_Milliseconds
xorl %eax, %r12d
xorl %r15d, %r12d
movq _sv@GOTPCREL(%rip), %r15
movl %r12d, 4(%r15)
movl %r12d, %edi
callq _FS_Restart
leaq L_.str.8(%rip), %rdi
movq %r14, %rsi
xorl %eax, %eax
callq _va
movq _qfalse@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq -16436(%rbp), %rdx
movq %rax, %rdi
callq _CM_LoadMap
leaq L_.str.9(%rip), %rdi
movq %r14, %rsi
callq _Cvar_Set
movl -16436(%rbp), %esi
leaq L_.str.11(%rip), %r14
movq %r14, %rdi
xorl %eax, %eax
callq _va
leaq L_.str.10(%rip), %rdi
movq %rax, %rsi
callq _Cvar_Set
movq _com_frameTime@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl %esi, 8(%r15)
movl %esi, 12(%r15)
movl %esi, 16(%r15)
movq %r14, %rdi
xorl %eax, %eax
callq _va
leaq L_.str.12(%rip), %rdi
movq %rax, %rsi
callq _Cvar_Set
xorl %eax, %eax
callq _SV_ClearWorld
movq _SS_LOADING@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, 20(%r15)
xorl %eax, %eax
callq _SV_InitGameProgs
movq (%rbx), %rax
movq _sv_gametype@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rax, (%rcx)
movq _gvm@GOTPCREL(%rip), %rbx
movl (%rbx), %edi
movq _GAME_RUN_FRAME@GOTPCREL(%rip), %r14
movl (%r14), %esi
movl (%r15), %edx
xorl %eax, %eax
callq _VM_Call
movl (%r15), %edi
callq _SV_BotFrame
movl (%r15), %edx
movq _svs@GOTPCREL(%rip), %r13
addl $100, 4(%r13)
addl $100, %edx
movl %edx, (%r15)
movl (%rbx), %edi
movl (%r14), %esi
xorl %eax, %eax
callq _VM_Call
movl (%r15), %edi
callq _SV_BotFrame
movl (%r15), %edx
addl $100, 4(%r13)
addl $100, %edx
movl %edx, (%r15)
movl (%rbx), %edi
movl (%r14), %esi
xorl %eax, %eax
callq _VM_Call
movl (%r15), %edi
callq _SV_BotFrame
addl $100, (%r15)
addl $100, 4(%r13)
xorl %eax, %eax
callq _SV_CreateBaseline
movq _sv_maxclients@GOTPCREL(%rip), %r12
movq (%r12), %rax
cmpl $0, (%rax)
jle LBB0_33
## %bb.20:
movq _CS_CONNECTED@GOTPCREL(%rip), %r14
xorl %ebx, %ebx
xorl %r15d, %r15d
jmp LBB0_21
.p2align 4, 0x90
LBB0_23: ## in Loop: Header=BB0_21 Depth=1
addq %rbx, %rdi
leaq L_.str.5(%rip), %rsi
callq _SV_DropClient
LBB0_32: ## in Loop: Header=BB0_21 Depth=1
incq %r15
movq (%r12), %rax
movslq (%rax), %rax
addq $40, %rbx
cmpq %rax, %r15
jge LBB0_33
LBB0_21: ## =>This Inner Loop Header: Depth=1
movq 8(%r13), %rdi
movq (%rdi,%rbx), %rax
cmpq (%r14), %rax
jl LBB0_32
## %bb.22: ## in Loop: Header=BB0_21 Depth=1
cmpq $0, -16448(%rbp) ## 8-byte Folded Reload
sete %cl
movq 32(%rdi,%rbx), %rax
movq _NA_BOT@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
cmpq %rdx, %rax
setne %sil
orb %cl, %sil
je LBB0_23
## %bb.24: ## in Loop: Header=BB0_21 Depth=1
movq _qfalse@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rcx, %r12
cmpq %rdx, %rax
jne LBB0_26
## %bb.25: ## in Loop: Header=BB0_21 Depth=1
movq _qtrue@GOTPCREL(%rip), %rax
movq (%rax), %r12
LBB0_26: ## in Loop: Header=BB0_21 Depth=1
movq _gvm@GOTPCREL(%rip), %rax
movl (%rax), %r13d
movq _GAME_CLIENT_CONNECT@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl %r13d, %edi
movl %r15d, %edx
movq %r12, %r8
xorl %eax, %eax
callq _VM_Call
movl %r13d, %edi
movl %eax, %esi
callq _VM_ExplicitArgPtr
testq %rax, %rax
je LBB0_28
## %bb.27: ## in Loop: Header=BB0_21 Depth=1
movq _svs@GOTPCREL(%rip), %r13
movq 8(%r13), %rdi
addq %rbx, %rdi
movq %rax, %rsi
callq _SV_DropClient
jmp LBB0_31
LBB0_28: ## in Loop: Header=BB0_21 Depth=1
testq %r12, %r12
movq _svs@GOTPCREL(%rip), %r13
je LBB0_29
## %bb.30: ## in Loop: Header=BB0_21 Depth=1
movq 8(%r13), %r12
movq _CS_ACTIVE@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, (%r12,%rbx)
movl %r15d, %edi
callq _SV_GentityNum
movl %r15d, (%rax)
movq %rax, 24(%r12,%rbx)
movl $-1, 12(%r12,%rbx)
movq $0, 16(%r12,%rbx)
movq _gvm@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _GAME_CLIENT_BEGIN@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl %r15d, %edx
xorl %eax, %eax
callq _VM_Call
jmp LBB0_31
LBB0_29: ## in Loop: Header=BB0_21 Depth=1
movq (%r14), %rax
movq 8(%r13), %rcx
movq %rax, (%rcx,%rbx)
.p2align 4, 0x90
LBB0_31: ## in Loop: Header=BB0_21 Depth=1
movq _sv_maxclients@GOTPCREL(%rip), %r12
jmp LBB0_32
LBB0_33:
movq _gvm@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _GAME_RUN_FRAME@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _sv@GOTPCREL(%rip), %rbx
movl (%rbx), %edx
xorl %eax, %eax
callq _VM_Call
movl (%rbx), %edi
callq _SV_BotFrame
addl $100, (%rbx)
addl $100, 4(%r13)
movq _sv_pure@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq $0, (%rax)
je LBB0_37
## %bb.34:
xorl %eax, %eax
callq _FS_LoadedPakChecksums
movq %rax, %rbx
leaq L_.str.13(%rip), %rdi
movq %rax, %rsi
callq _Cvar_Set
cmpb $0, (%rbx)
jne LBB0_36
## %bb.35:
leaq L_.str.14(%rip), %rdi
xorl %eax, %eax
callq _Com_Printf
LBB0_36:
xorl %eax, %eax
callq _FS_LoadedPakNames
leaq L_.str.15(%rip), %rdi
movq %rax, %rsi
callq _Cvar_Set
leaq L_.str.16(%rip), %rdi
callq _SV_TouchFile
leaq L_.str.17(%rip), %rdi
callq _SV_TouchFile
jmp LBB0_38
LBB0_37:
leaq L_.str.13(%rip), %rdi
leaq L_.str.5(%rip), %rbx
movq %rbx, %rsi
callq _Cvar_Set
leaq L_.str.15(%rip), %rdi
movq %rbx, %rsi
callq _Cvar_Set
LBB0_38:
xorl %eax, %eax
callq _FS_ReferencedPakChecksums
leaq L_.str.18(%rip), %rdi
movq %rax, %rsi
callq _Cvar_Set
xorl %eax, %eax
callq _FS_ReferencedPakNames
leaq L_.str.19(%rip), %rdi
movq %rax, %rsi
callq _Cvar_Set
movq _CVAR_SYSTEMINFO@GOTPCREL(%rip), %r14
movl (%r14), %edi
callq _Cvar_InfoString_Big
leaq -16432(%rbp), %rbx
movq %rbx, %rdi
movl %eax, %esi
movl $16384, %edx ## imm = 0x4000
callq _Q_strncpyz
movl (%r14), %eax
notl %eax
movq _cvar_modifiedFlags@GOTPCREL(%rip), %r14
andl %eax, (%r14)
movq _CS_SYSTEMINFO@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %rbx, %rsi
callq _SV_SetConfigstring
movq _CS_SERVERINFO@GOTPCREL(%rip), %rax
movl (%rax), %ebx
movq _CVAR_SERVERINFO@GOTPCREL(%rip), %r15
movl (%r15), %edi
callq _Cvar_InfoString
movl %ebx, %edi
movq %rax, %rsi
callq _SV_SetConfigstring
movl (%r15), %eax
notl %eax
andl %eax, (%r14)
movq _SS_GAME@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq _sv@GOTPCREL(%rip), %rcx
movl %eax, 20(%rcx)
xorl %eax, %eax
callq _SV_Heartbeat_f
xorl %eax, %eax
callq _Hunk_SetMark
movq _com_dedicated@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq $0, (%rax)
je LBB0_40
## %bb.39:
movq _qtrue@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _CL_StartHunkUsers
LBB0_40:
leaq L_.str.20(%rip), %rdi
xorl %eax, %eax
callq _Com_Printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB0_42
## %bb.41:
addq $16408, %rsp ## imm = 0x4018
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_42:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "++---- Server Initialization ------\n"
L_.str.1: ## @.str.1
.asciz "Server: %s\n"
.comm _qfalse,8,3 ## @qfalse
L_.str.2: ## @.str.2
.asciz "sv_running"
.comm _sv_maxclients,8,3 ## @sv_maxclients
.comm _svs,40,3 ## @svs
.comm _h_high,4,2 ## @h_high
.comm _SNAPFLAG_SERVERCOUNT,4,2 ## @SNAPFLAG_SERVERCOUNT
L_.str.3: ## @.str.3
.asciz "nextmap"
L_.str.4: ## @.str.4
.asciz "map_restart 0"
.comm _CS_CONNECTED,8,3 ## @CS_CONNECTED
.comm _sv,32,3 ## @sv
.comm _MAX_CONFIGSTRINGS,4,2 ## @MAX_CONFIGSTRINGS
L_.str.5: ## @.str.5
.space 1
L_.str.6: ## @.str.6
.asciz "cl_paused"
L_.str.7: ## @.str.7
.asciz "0"
L_.str.8: ## @.str.8
.asciz "maps/%s.bsp"
L_.str.9: ## @.str.9
.asciz "mapname"
L_.str.10: ## @.str.10
.asciz "sv_mapChecksum"
L_.str.11: ## @.str.11
.asciz "%i"
.comm _com_frameTime,4,2 ## @com_frameTime
L_.str.12: ## @.str.12
.asciz "sv_serverid"
.comm _SS_LOADING,4,2 ## @SS_LOADING
.comm _sv_gametype,8,3 ## @sv_gametype
.comm _gvm,4,2 ## @gvm
.comm _GAME_RUN_FRAME,4,2 ## @GAME_RUN_FRAME
.comm _NA_BOT,8,3 ## @NA_BOT
.comm _qtrue,8,3 ## @qtrue
.comm _GAME_CLIENT_CONNECT,4,2 ## @GAME_CLIENT_CONNECT
.comm _CS_ACTIVE,8,3 ## @CS_ACTIVE
.comm _GAME_CLIENT_BEGIN,4,2 ## @GAME_CLIENT_BEGIN
.comm _sv_pure,8,3 ## @sv_pure
L_.str.13: ## @.str.13
.asciz "sv_paks"
L_.str.14: ## @.str.14
.asciz "WARNING: sv_pure set but no PK3 files loaded\n"
L_.str.15: ## @.str.15
.asciz "sv_pakNames"
L_.str.16: ## @.str.16
.asciz "vm/cgame.qvm"
L_.str.17: ## @.str.17
.asciz "vm/ui.qvm"
L_.str.18: ## @.str.18
.asciz "sv_referencedPaks"
L_.str.19: ## @.str.19
.asciz "sv_referencedPakNames"
.comm _CVAR_SYSTEMINFO,4,2 ## @CVAR_SYSTEMINFO
.comm _cvar_modifiedFlags,4,2 ## @cvar_modifiedFlags
.comm _CS_SYSTEMINFO,4,2 ## @CS_SYSTEMINFO
.comm _CS_SERVERINFO,4,2 ## @CS_SERVERINFO
.comm _CVAR_SERVERINFO,4,2 ## @CVAR_SERVERINFO
.comm _SS_GAME,4,2 ## @SS_GAME
.comm _com_dedicated,8,3 ## @com_dedicated
L_.str.20: ## @.str.20
.asciz "-----------------------------------\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _SV_SpawnServer ; -- Begin function SV_SpawnServer
.p2align 2
_SV_SpawnServer: ; @SV_SpawnServer
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
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
mov w9, #16432 ; =0x4030
Lloh0:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh1:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #4, lsl #12 ; =16384
sub sp, 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
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
str x1, [sp, #16] ; 8-byte Folded Spill
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, #-96]
bl _SV_ShutdownGameProgs
Lloh5:
adrp x0, l_.str@PAGE
Lloh6:
add x0, x0, l_.str@PAGEOFF
bl _Com_Printf
str x20, [sp]
Lloh7:
adrp x0, l_.str.1@PAGE
Lloh8:
add x0, x0, l_.str.1@PAGEOFF
bl _Com_Printf
bl _CL_MapLoading
Lloh9:
adrp x8, _qfalse@GOTPAGE
Lloh10:
ldr x8, [x8, _qfalse@GOTPAGEOFF]
Lloh11:
ldr x0, [x8]
bl _CL_ShutdownAll
bl _Hunk_Clear
bl _CM_ClearMap
Lloh12:
adrp x0, l_.str.2@PAGE
Lloh13:
add x0, x0, l_.str.2@PAGEOFF
bl _Cvar_VariableValue
Lloh14:
adrp x25, _sv_maxclients@GOTPAGE
Lloh15:
ldr x25, [x25, _sv_maxclients@GOTPAGEOFF]
cbz w0, LBB0_3
; %bb.1:
ldr x8, [x25]
ldr x8, [x8, #8]
cbz x8, LBB0_4
; %bb.2:
bl _SV_ChangeMaxClients
b LBB0_4
LBB0_3:
bl _SV_Startup
LBB0_4:
mov w0, #0 ; =0x0
bl _FS_ClearPakReferences
Lloh16:
adrp x26, _svs@GOTPAGE
Lloh17:
ldr x26, [x26, _svs@GOTPAGEOFF]
ldr w8, [x26]
lsl w0, w8, #2
Lloh18:
adrp x8, _h_high@GOTPAGE
Lloh19:
ldr x8, [x8, _h_high@GOTPAGEOFF]
Lloh20:
ldr w1, [x8]
bl _Hunk_Alloc
str w0, [x26, #32]
str xzr, [x26, #24]
Lloh21:
adrp x8, _SNAPFLAG_SERVERCOUNT@GOTPAGE
Lloh22:
ldr x8, [x8, _SNAPFLAG_SERVERCOUNT@GOTPAGEOFF]
Lloh23:
ldr w8, [x8]
ldr w9, [x26, #16]
eor w8, w9, w8
str w8, [x26, #16]
Lloh24:
adrp x0, l_.str.3@PAGE
Lloh25:
add x0, x0, l_.str.3@PAGEOFF
Lloh26:
adrp x1, l_.str.4@PAGE
Lloh27:
add x1, x1, l_.str.4@PAGEOFF
bl _Cvar_Set
ldr x8, [x25]
ldr w10, [x8]
Lloh28:
adrp x23, _sv@GOTPAGE
Lloh29:
ldr x23, [x23, _sv@GOTPAGEOFF]
Lloh30:
adrp x27, _CS_CONNECTED@GOTPAGE
Lloh31:
ldr x27, [x27, _CS_CONNECTED@GOTPAGEOFF]
tbnz w10, #31, LBB0_9
; %bb.5:
ldr x11, [x26, #8]
ldr x8, [x27]
ldr w9, [x23]
add x10, x10, #1
add x11, x11, #8
b LBB0_7
LBB0_6: ; in Loop: Header=BB0_7 Depth=1
add x11, x11, #40
subs x10, x10, #1
b.eq LBB0_9
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldur x12, [x11, #-8]
cmp x12, x8
b.lt LBB0_6
; %bb.8: ; in Loop: Header=BB0_7 Depth=1
str w9, [x11]
b LBB0_6
LBB0_9:
bl _SV_ClearServer
Lloh32:
adrp x22, _MAX_CONFIGSTRINGS@GOTPAGE
Lloh33:
ldr x22, [x22, _MAX_CONFIGSTRINGS@GOTPAGEOFF]
ldr w8, [x22]
cmp w8, #1
b.lt LBB0_12
; %bb.10:
mov x19, #0 ; =0x0
Lloh34:
adrp x21, l_.str.5@PAGE
Lloh35:
add x21, x21, l_.str.5@PAGEOFF
LBB0_11: ; =>This Inner Loop Header: Depth=1
mov x0, x21
bl _CopyString
ldr x8, [x23, #24]
str w0, [x8, x19, lsl #2]
add x19, x19, #1
ldrsw x8, [x22]
cmp x19, x8
b.lt LBB0_11
LBB0_12:
Lloh36:
adrp x0, l_.str.6@PAGE
Lloh37:
add x0, x0, l_.str.6@PAGEOFF
Lloh38:
adrp x1, l_.str.7@PAGE
Lloh39:
add x1, x1, l_.str.7@PAGEOFF
bl _Cvar_Set
bl _rand
mov x21, x0
bl _rand
eor w19, w0, w21, lsl #16
bl _Com_Milliseconds
eor w0, w19, w0
str w0, [x23, #4]
bl _FS_Restart
str x20, [sp]
Lloh40:
adrp x0, l_.str.8@PAGE
Lloh41:
add x0, x0, l_.str.8@PAGEOFF
bl _va
Lloh42:
adrp x19, _qfalse@GOTPAGE
Lloh43:
ldr x19, [x19, _qfalse@GOTPAGEOFF]
ldr x1, [x19]
add x2, sp, #28
bl _CM_LoadMap
Lloh44:
adrp x0, l_.str.9@PAGE
Lloh45:
add x0, x0, l_.str.9@PAGEOFF
mov x1, x20
bl _Cvar_Set
ldr w8, [sp, #28]
str x8, [sp]
Lloh46:
adrp x20, l_.str.11@PAGE
Lloh47:
add x20, x20, l_.str.11@PAGEOFF
mov x0, x20
bl _va
mov x1, x0
Lloh48:
adrp x0, l_.str.10@PAGE
Lloh49:
add x0, x0, l_.str.10@PAGEOFF
bl _Cvar_Set
Lloh50:
adrp x8, _com_frameTime@GOTPAGE
Lloh51:
ldr x8, [x8, _com_frameTime@GOTPAGEOFF]
Lloh52:
ldr w8, [x8]
stp w8, w8, [x23, #8]
str w8, [x23, #16]
str x8, [sp]
mov x0, x20
bl _va
mov x1, x0
Lloh53:
adrp x0, l_.str.12@PAGE
Lloh54:
add x0, x0, l_.str.12@PAGEOFF
bl _Cvar_Set
bl _SV_ClearWorld
Lloh55:
adrp x8, _SS_LOADING@GOTPAGE
Lloh56:
ldr x8, [x8, _SS_LOADING@GOTPAGEOFF]
Lloh57:
ldr w8, [x8]
str w8, [x23, #20]
bl _SV_InitGameProgs
ldr x8, [x19]
Lloh58:
adrp x9, _sv_gametype@GOTPAGE
Lloh59:
ldr x9, [x9, _sv_gametype@GOTPAGEOFF]
Lloh60:
ldr x9, [x9]
Lloh61:
adrp x24, _gvm@GOTPAGE
Lloh62:
ldr x24, [x24, _gvm@GOTPAGEOFF]
str x8, [x9]
ldr w0, [x24]
Lloh63:
adrp x19, _GAME_RUN_FRAME@GOTPAGE
Lloh64:
ldr x19, [x19, _GAME_RUN_FRAME@GOTPAGEOFF]
ldr w1, [x19]
ldr w2, [x23]
bl _VM_Call
ldr w0, [x23]
bl _SV_BotFrame
ldr w8, [x23]
add w2, w8, #100
str w2, [x23]
ldr w8, [x26, #4]
add w8, w8, #100
str w8, [x26, #4]
ldr w0, [x24]
ldr w1, [x19]
bl _VM_Call
ldr w0, [x23]
bl _SV_BotFrame
ldr w8, [x23]
add w2, w8, #100
str w2, [x23]
ldr w8, [x26, #4]
add w8, w8, #100
str w8, [x26, #4]
ldr w0, [x24]
ldr w1, [x19]
bl _VM_Call
ldr w0, [x23]
bl _SV_BotFrame
ldr w8, [x23]
add w8, w8, #100
str w8, [x23]
ldr w8, [x26, #4]
add w8, w8, #100
str w8, [x26, #4]
bl _SV_CreateBaseline
ldr x8, [x25]
ldr w8, [x8]
cmp w8, #1
b.lt LBB0_24
; %bb.13:
mov x28, #0 ; =0x0
mov x20, #0 ; =0x0
Lloh65:
adrp x21, _NA_BOT@GOTPAGE
Lloh66:
ldr x21, [x21, _NA_BOT@GOTPAGEOFF]
b LBB0_17
LBB0_14: ; in Loop: Header=BB0_17 Depth=1
Lloh67:
adrp x1, l_.str.5@PAGE
Lloh68:
add x1, x1, l_.str.5@PAGEOFF
LBB0_15: ; in Loop: Header=BB0_17 Depth=1
bl _SV_DropClient
LBB0_16: ; in Loop: Header=BB0_17 Depth=1
add x20, x20, #1
ldr x8, [x25]
ldrsw x8, [x8]
add x28, x28, #40
cmp x20, x8
b.ge LBB0_24
LBB0_17: ; =>This Inner Loop Header: Depth=1
ldr x8, [x26, #8]
add x0, x8, x28
ldr x8, [x0]
ldr x9, [x27]
cmp x8, x9
b.lt LBB0_16
; %bb.18: ; in Loop: Header=BB0_17 Depth=1
ldr x8, [x0, #32]
ldr x9, [x21]
cmp x8, x9
ldr x10, [sp, #16] ; 8-byte Folded Reload
ccmp x10, #0, #4, eq
b.ne LBB0_14
; %bb.19: ; in Loop: Header=BB0_17 Depth=1
Lloh69:
adrp x10, _qfalse@GOTPAGE
Lloh70:
ldr x10, [x10, _qfalse@GOTPAGEOFF]
Lloh71:
ldr x10, [x10]
Lloh72:
adrp x11, _qtrue@GOTPAGE
Lloh73:
ldr x11, [x11, _qtrue@GOTPAGEOFF]
Lloh74:
ldr x11, [x11]
cmp x8, x9
csel x19, x10, x11, ne
ldr w22, [x24]
Lloh75:
adrp x8, _GAME_CLIENT_CONNECT@GOTPAGE
Lloh76:
ldr x8, [x8, _GAME_CLIENT_CONNECT@GOTPAGEOFF]
Lloh77:
ldr w1, [x8]
stp x10, x19, [sp]
mov x0, x22
mov x2, x20
bl _VM_Call
mov x1, x0
mov x0, x22
bl _VM_ExplicitArgPtr
cbz x0, LBB0_21
; %bb.20: ; in Loop: Header=BB0_17 Depth=1
mov x1, x0
ldr x8, [x26, #8]
add x0, x8, x28
b LBB0_15
LBB0_21: ; in Loop: Header=BB0_17 Depth=1
cbz x19, LBB0_23
; %bb.22: ; in Loop: Header=BB0_17 Depth=1
ldr x8, [x26, #8]
add x19, x8, x28
Lloh78:
adrp x8, _CS_ACTIVE@GOTPAGE
Lloh79:
ldr x8, [x8, _CS_ACTIVE@GOTPAGEOFF]
Lloh80:
ldr x8, [x8]
str x8, [x19]
mov x0, x20
bl _SV_GentityNum
str w20, [x0]
mov w8, #-1 ; =0xffffffff
str w8, [x19, #12]
stp xzr, x0, [x19, #16]
ldr w0, [x24]
Lloh81:
adrp x8, _GAME_CLIENT_BEGIN@GOTPAGE
Lloh82:
ldr x8, [x8, _GAME_CLIENT_BEGIN@GOTPAGEOFF]
Lloh83:
ldr w1, [x8]
mov x2, x20
bl _VM_Call
b LBB0_16
LBB0_23: ; in Loop: Header=BB0_17 Depth=1
ldr x8, [x27]
ldr x9, [x26, #8]
str x8, [x9, x28]
b LBB0_16
LBB0_24:
ldr w0, [x24]
Lloh84:
adrp x8, _GAME_RUN_FRAME@GOTPAGE
Lloh85:
ldr x8, [x8, _GAME_RUN_FRAME@GOTPAGEOFF]
Lloh86:
ldr w1, [x8]
ldr w2, [x23]
bl _VM_Call
ldr w0, [x23]
bl _SV_BotFrame
ldr w8, [x23]
add w8, w8, #100
str w8, [x23]
ldr w8, [x26, #4]
add w8, w8, #100
str w8, [x26, #4]
Lloh87:
adrp x8, _sv_pure@GOTPAGE
Lloh88:
ldr x8, [x8, _sv_pure@GOTPAGEOFF]
Lloh89:
ldr x8, [x8]
ldr x8, [x8]
cbz x8, LBB0_28
; %bb.25:
bl _FS_LoadedPakChecksums
mov x19, x0
Lloh90:
adrp x0, l_.str.13@PAGE
Lloh91:
add x0, x0, l_.str.13@PAGEOFF
mov x1, x19
bl _Cvar_Set
ldrb w8, [x19]
cbnz w8, LBB0_27
; %bb.26:
Lloh92:
adrp x0, l_.str.14@PAGE
Lloh93:
add x0, x0, l_.str.14@PAGEOFF
bl _Com_Printf
LBB0_27:
bl _FS_LoadedPakNames
mov x1, x0
Lloh94:
adrp x0, l_.str.15@PAGE
Lloh95:
add x0, x0, l_.str.15@PAGEOFF
bl _Cvar_Set
Lloh96:
adrp x0, l_.str.16@PAGE
Lloh97:
add x0, x0, l_.str.16@PAGEOFF
bl _SV_TouchFile
Lloh98:
adrp x0, l_.str.17@PAGE
Lloh99:
add x0, x0, l_.str.17@PAGEOFF
bl _SV_TouchFile
b LBB0_29
LBB0_28:
Lloh100:
adrp x0, l_.str.13@PAGE
Lloh101:
add x0, x0, l_.str.13@PAGEOFF
Lloh102:
adrp x19, l_.str.5@PAGE
Lloh103:
add x19, x19, l_.str.5@PAGEOFF
mov x1, x19
bl _Cvar_Set
Lloh104:
adrp x0, l_.str.15@PAGE
Lloh105:
add x0, x0, l_.str.15@PAGEOFF
mov x1, x19
bl _Cvar_Set
LBB0_29:
bl _FS_ReferencedPakChecksums
mov x1, x0
Lloh106:
adrp x0, l_.str.18@PAGE
Lloh107:
add x0, x0, l_.str.18@PAGEOFF
bl _Cvar_Set
bl _FS_ReferencedPakNames
mov x1, x0
Lloh108:
adrp x0, l_.str.19@PAGE
Lloh109:
add x0, x0, l_.str.19@PAGEOFF
bl _Cvar_Set
Lloh110:
adrp x19, _CVAR_SYSTEMINFO@GOTPAGE
Lloh111:
ldr x19, [x19, _CVAR_SYSTEMINFO@GOTPAGEOFF]
ldr w0, [x19]
bl _Cvar_InfoString_Big
mov x1, x0
add x0, sp, #32
mov w2, #16384 ; =0x4000
bl _Q_strncpyz
ldr w8, [x19]
Lloh112:
adrp x20, _cvar_modifiedFlags@GOTPAGE
Lloh113:
ldr x20, [x20, _cvar_modifiedFlags@GOTPAGEOFF]
ldr w9, [x20]
bic w8, w9, w8
str w8, [x20]
Lloh114:
adrp x8, _CS_SYSTEMINFO@GOTPAGE
Lloh115:
ldr x8, [x8, _CS_SYSTEMINFO@GOTPAGEOFF]
Lloh116:
ldr w0, [x8]
add x1, sp, #32
bl _SV_SetConfigstring
Lloh117:
adrp x8, _CS_SERVERINFO@GOTPAGE
Lloh118:
ldr x8, [x8, _CS_SERVERINFO@GOTPAGEOFF]
Lloh119:
ldr w19, [x8]
Lloh120:
adrp x21, _CVAR_SERVERINFO@GOTPAGE
Lloh121:
ldr x21, [x21, _CVAR_SERVERINFO@GOTPAGEOFF]
ldr w0, [x21]
bl _Cvar_InfoString
mov x1, x0
mov x0, x19
bl _SV_SetConfigstring
ldr w8, [x21]
ldr w9, [x20]
bic w8, w9, w8
str w8, [x20]
Lloh122:
adrp x8, _SS_GAME@GOTPAGE
Lloh123:
ldr x8, [x8, _SS_GAME@GOTPAGEOFF]
Lloh124:
ldr w8, [x8]
str w8, [x23, #20]
bl _SV_Heartbeat_f
bl _Hunk_SetMark
Lloh125:
adrp x8, _com_dedicated@GOTPAGE
Lloh126:
ldr x8, [x8, _com_dedicated@GOTPAGEOFF]
Lloh127:
ldr x8, [x8]
ldr x8, [x8]
cbz x8, LBB0_31
; %bb.30:
Lloh128:
adrp x8, _qtrue@GOTPAGE
Lloh129:
ldr x8, [x8, _qtrue@GOTPAGEOFF]
Lloh130:
ldr x0, [x8]
bl _CL_StartHunkUsers
LBB0_31:
Lloh131:
adrp x0, l_.str.20@PAGE
Lloh132:
add x0, x0, l_.str.20@PAGEOFF
bl _Com_Printf
ldur x8, [x29, #-96]
Lloh133:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh134:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh135:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_33
; %bb.32:
add sp, sp, #4, lsl #12 ; =16384
add sp, sp, #48
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_33:
bl ___stack_chk_fail
.loh AdrpLdrGot Lloh14, Lloh15
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpAdd Lloh7, Lloh8
.loh AdrpAdd Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh30, Lloh31
.loh AdrpLdrGot Lloh28, Lloh29
.loh AdrpAdd Lloh26, Lloh27
.loh AdrpAdd Lloh24, Lloh25
.loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23
.loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20
.loh AdrpLdrGot Lloh16, Lloh17
.loh AdrpLdrGot Lloh32, Lloh33
.loh AdrpAdd Lloh34, Lloh35
.loh AdrpLdrGot Lloh63, Lloh64
.loh AdrpLdrGot Lloh61, Lloh62
.loh AdrpLdrGotLdr Lloh58, Lloh59, Lloh60
.loh AdrpLdrGotLdr Lloh55, Lloh56, Lloh57
.loh AdrpAdd Lloh53, Lloh54
.loh AdrpLdrGotLdr Lloh50, Lloh51, Lloh52
.loh AdrpAdd Lloh48, Lloh49
.loh AdrpAdd Lloh46, Lloh47
.loh AdrpAdd Lloh44, Lloh45
.loh AdrpLdrGot Lloh42, Lloh43
.loh AdrpAdd Lloh40, Lloh41
.loh AdrpAdd Lloh38, Lloh39
.loh AdrpAdd Lloh36, Lloh37
.loh AdrpLdrGot Lloh65, Lloh66
.loh AdrpAdd Lloh67, Lloh68
.loh AdrpLdrGotLdr Lloh75, Lloh76, Lloh77
.loh AdrpLdrGotLdr Lloh72, Lloh73, Lloh74
.loh AdrpLdrGotLdr Lloh69, Lloh70, Lloh71
.loh AdrpLdrGotLdr Lloh81, Lloh82, Lloh83
.loh AdrpLdrGotLdr Lloh78, Lloh79, Lloh80
.loh AdrpLdrGotLdr Lloh87, Lloh88, Lloh89
.loh AdrpLdrGotLdr Lloh84, Lloh85, Lloh86
.loh AdrpAdd Lloh90, Lloh91
.loh AdrpAdd Lloh92, Lloh93
.loh AdrpAdd Lloh98, Lloh99
.loh AdrpAdd Lloh96, Lloh97
.loh AdrpAdd Lloh94, Lloh95
.loh AdrpAdd Lloh104, Lloh105
.loh AdrpAdd Lloh102, Lloh103
.loh AdrpAdd Lloh100, Lloh101
.loh AdrpLdrGotLdr Lloh125, Lloh126, Lloh127
.loh AdrpLdrGotLdr Lloh122, Lloh123, Lloh124
.loh AdrpLdrGot Lloh120, Lloh121
.loh AdrpLdrGotLdr Lloh117, Lloh118, Lloh119
.loh AdrpLdrGotLdr Lloh114, Lloh115, Lloh116
.loh AdrpLdrGot Lloh112, Lloh113
.loh AdrpLdrGot Lloh110, Lloh111
.loh AdrpAdd Lloh108, Lloh109
.loh AdrpAdd Lloh106, Lloh107
.loh AdrpLdrGotLdr Lloh128, Lloh129, Lloh130
.loh AdrpLdrGotLdr Lloh133, Lloh134, Lloh135
.loh AdrpAdd Lloh131, Lloh132
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "++---- Server Initialization ------\n"
l_.str.1: ; @.str.1
.asciz "Server: %s\n"
.comm _qfalse,8,3 ; @qfalse
l_.str.2: ; @.str.2
.asciz "sv_running"
.comm _sv_maxclients,8,3 ; @sv_maxclients
.comm _svs,40,3 ; @svs
.comm _h_high,4,2 ; @h_high
.comm _SNAPFLAG_SERVERCOUNT,4,2 ; @SNAPFLAG_SERVERCOUNT
l_.str.3: ; @.str.3
.asciz "nextmap"
l_.str.4: ; @.str.4
.asciz "map_restart 0"
.comm _CS_CONNECTED,8,3 ; @CS_CONNECTED
.comm _sv,32,3 ; @sv
.comm _MAX_CONFIGSTRINGS,4,2 ; @MAX_CONFIGSTRINGS
l_.str.5: ; @.str.5
.space 1
l_.str.6: ; @.str.6
.asciz "cl_paused"
l_.str.7: ; @.str.7
.asciz "0"
l_.str.8: ; @.str.8
.asciz "maps/%s.bsp"
l_.str.9: ; @.str.9
.asciz "mapname"
l_.str.10: ; @.str.10
.asciz "sv_mapChecksum"
l_.str.11: ; @.str.11
.asciz "%i"
.comm _com_frameTime,4,2 ; @com_frameTime
l_.str.12: ; @.str.12
.asciz "sv_serverid"
.comm _SS_LOADING,4,2 ; @SS_LOADING
.comm _sv_gametype,8,3 ; @sv_gametype
.comm _gvm,4,2 ; @gvm
.comm _GAME_RUN_FRAME,4,2 ; @GAME_RUN_FRAME
.comm _NA_BOT,8,3 ; @NA_BOT
.comm _qtrue,8,3 ; @qtrue
.comm _GAME_CLIENT_CONNECT,4,2 ; @GAME_CLIENT_CONNECT
.comm _CS_ACTIVE,8,3 ; @CS_ACTIVE
.comm _GAME_CLIENT_BEGIN,4,2 ; @GAME_CLIENT_BEGIN
.comm _sv_pure,8,3 ; @sv_pure
l_.str.13: ; @.str.13
.asciz "sv_paks"
l_.str.14: ; @.str.14
.asciz "WARNING: sv_pure set but no PK3 files loaded\n"
l_.str.15: ; @.str.15
.asciz "sv_pakNames"
l_.str.16: ; @.str.16
.asciz "vm/cgame.qvm"
l_.str.17: ; @.str.17
.asciz "vm/ui.qvm"
l_.str.18: ; @.str.18
.asciz "sv_referencedPaks"
l_.str.19: ; @.str.19
.asciz "sv_referencedPakNames"
.comm _CVAR_SYSTEMINFO,4,2 ; @CVAR_SYSTEMINFO
.comm _cvar_modifiedFlags,4,2 ; @cvar_modifiedFlags
.comm _CS_SYSTEMINFO,4,2 ; @CS_SYSTEMINFO
.comm _CS_SERVERINFO,4,2 ; @CS_SERVERINFO
.comm _CVAR_SERVERINFO,4,2 ; @CVAR_SERVERINFO
.comm _SS_GAME,4,2 ; @SS_GAME
.comm _com_dedicated,8,3 ; @com_dedicated
l_.str.20: ; @.str.20
.asciz "-----------------------------------\n"
.subsections_via_symbols
| assembly_file_9894.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lireFichier ## -- Begin function lireFichier
.p2align 4, 0x90
_lireFichier: ## @lireFichier
.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 %rsi, %rbx
leaq L_.str(%rip), %rsi
callq _fopen
testq %rax, %rax
je LBB0_1
## %bb.2:
movq %rax, %r14
movq %rbx, -48(%rbp) ## 8-byte Spill
addq $32, %rbx
movl $-1, %r13d
.p2align 4, 0x90
LBB0_3: ## =>This Inner Loop Header: Depth=1
leaq 4(%rbx), %rcx
leaq 8(%rbx), %r8
leaq 12(%rbx), %r9
leaq 16(%rbx), %rax
movq %rax, -64(%rbp) ## 8-byte Spill
leaq 20(%rbx), %rax
movq %rax, -56(%rbp) ## 8-byte Spill
leaq 24(%rbx), %r11
leaq 28(%rbx), %r12
leaq 32(%rbx), %r15
leaq -32(%rbx), %r10
movq %r14, %rdi
leaq L_.str.1(%rip), %rsi
movq %rbx, %rdx
xorl %eax, %eax
pushq %r10
pushq %r15
pushq %r12
pushq %r11
pushq -56(%rbp) ## 8-byte Folded Reload
pushq -64(%rbp) ## 8-byte Folded Reload
callq _fscanf
addq $48, %rsp
incl %r13d
addq $68, %rbx
cmpl $-1, %eax
jne LBB0_3
## %bb.4:
movq -48(%rbp), %rax ## 8-byte Reload
movl %r13d, 3400(%rax)
movq %r14, %rdi
callq _fclose
movl $1, %eax
jmp LBB0_5
LBB0_1:
xorl %eax, %eax
LBB0_5:
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _afficherJoueur ## -- Begin function afficherJoueur
.p2align 4, 0x90
_afficherJoueur: ## @afficherJoueur
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, %rsi
movl 32(%rdi), %edx
movss 36(%rdi), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movss 44(%rdi), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
movss 52(%rdi), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movss 60(%rdi), %xmm3 ## xmm3 = mem[0],zero,zero,zero
addss 64(%rdi), %xmm3
cvtss2sd %xmm2, %xmm2
cvtss2sd %xmm3, %xmm3
leaq L_.str.2(%rip), %rdi
movb $4, %al
popq %rbp
jmp _printf ## TAILCALL
.cfi_endproc
## -- End function
.globl _afficherTable ## -- Begin function afficherTable
.p2align 4, 0x90
_afficherTable: ## @afficherTable
.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
cmpl $0, 3400(%rdi)
jle LBB2_3
## %bb.1:
movq %rdi, %r12
leaq L_.str.3(%rip), %r14
leaq L_.str.2(%rip), %r15
movq %rdi, %rbx
xorl %r13d, %r13d
.p2align 4, 0x90
LBB2_2: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
movl %r13d, %esi
xorl %eax, %eax
callq _printf
movl 32(%rbx), %edx
movss 36(%rbx), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movss 44(%rbx), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
movss 52(%rbx), %xmm2 ## xmm2 = mem[0],zero,zero,zero
cvtss2sd %xmm2, %xmm2
movss 60(%rbx), %xmm3 ## xmm3 = mem[0],zero,zero,zero
addss 64(%rbx), %xmm3
cvtss2sd %xmm3, %xmm3
movq %r15, %rdi
movq %rbx, %rsi
movb $4, %al
callq _printf
incq %r13
movslq 3400(%r12), %rax
addq $68, %rbx
cmpq %rax, %r13
jl LBB2_2
LBB2_3:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _joueur30ans ## -- Begin function joueur30ans
.p2align 4, 0x90
_joueur30ans: ## @joueur30ans
.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
cmpl $31, 48(%rbp)
setge %al
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function j30pr3pts
LCPI4_0:
.long 0x42c80000 ## float 100
LCPI4_1:
.long 0x41f00000 ## float 30
.section __TEXT,__text,regular,pure_instructions
.globl _j30pr3pts
.p2align 4, 0x90
_j30pr3pts: ## @j30pr3pts
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movss 60(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
divss 64(%rbp), %xmm0
mulss LCPI4_0(%rip), %xmm0
xorl %eax, %eax
ucomiss LCPI4_1(%rip), %xmm0
seta %al
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Select ## -- Begin function Select
.p2align 4, 0x90
_Select: ## @Select
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $168, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %r14
movq %rdi, %r15
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movl $3404, %edi ## imm = 0xD4C
callq _malloc
movq %rax, %r12
movl $0, 3400(%rax)
cmpl $0, 3400(%r15)
jle LBB5_5
## %bb.1:
xorl %r13d, %r13d
movq %r15, %rbx
jmp LBB5_2
.p2align 4, 0x90
LBB5_4: ## in Loop: Header=BB5_2 Depth=1
incq %r13
movslq 3400(%r15), %rax
addq $68, %rbx
cmpq %rax, %r13
jge LBB5_5
LBB5_2: ## =>This Inner Loop Header: Depth=1
movl 64(%rbx), %eax
movl %eax, -64(%rbp)
movups (%rbx), %xmm0
movups 16(%rbx), %xmm1
movups 32(%rbx), %xmm2
movups 48(%rbx), %xmm3
movaps %xmm3, -80(%rbp)
movaps %xmm2, -96(%rbp)
movaps %xmm1, -112(%rbp)
movaps %xmm0, -128(%rbp)
movl -64(%rbp), %eax
movl %eax, 64(%rsp)
movaps -128(%rbp), %xmm0
movaps -112(%rbp), %xmm1
movaps -96(%rbp), %xmm2
movaps -80(%rbp), %xmm3
movups %xmm3, 48(%rsp)
movups %xmm2, 32(%rsp)
movups %xmm1, 16(%rsp)
movups %xmm0, (%rsp)
callq *%r14
testl %eax, %eax
je LBB5_4
## %bb.3: ## in Loop: Header=BB5_2 Depth=1
movslq 3400(%r12), %rax
leal 1(%rax), %ecx
movl %ecx, 3400(%r12)
movq %rax, %rcx
shlq $6, %rcx
leaq (%rcx,%rax,4), %rax
movl 64(%rbx), %ecx
movl %ecx, 64(%r12,%rax)
movups (%rbx), %xmm0
movups 16(%rbx), %xmm1
movups 32(%rbx), %xmm2
movups 48(%rbx), %xmm3
movups %xmm3, 48(%r12,%rax)
movups %xmm2, 32(%r12,%rax)
movups %xmm1, 16(%r12,%rax)
movups %xmm0, (%r12,%rax)
jmp LBB5_4
LBB5_5:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB5_7
## %bb.6:
movq %r12, %rax
addq $168, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB5_7:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.globl _rechercheJoueurParNom ## -- Begin function rechercheJoueurParNom
.p2align 4, 0x90
_rechercheJoueurParNom: ## @rechercheJoueurParNom
.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 3400(%rsi), %r12d
movl $-1, %r14d
testl %r12d, %r12d
jle LBB6_5
## %bb.1:
movq %rsi, %r13
movq %rdi, %r15
xorl %ebx, %ebx
.p2align 4, 0x90
LBB6_2: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
movq %r13, %rsi
callq _strcoll
testl %eax, %eax
je LBB6_4
## %bb.3: ## in Loop: Header=BB6_2 Depth=1
incq %rbx
addq $68, %r13
cmpq %rbx, %r12
jne LBB6_2
jmp LBB6_5
LBB6_4:
movl %ebx, %r14d
LBB6_5:
movl %r14d, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _ecrireFichier ## -- Begin function ecrireFichier
.p2align 4, 0x90
_ecrireFichier: ## @ecrireFichier
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %r14
leaq L_.str.4(%rip), %rsi
callq _fopen
movq %rax, %r12
cmpl $0, 3400(%r14)
jle LBB7_3
## %bb.1:
xorl %r13d, %r13d
leaq L_.str.5(%rip), %r15
movq %r14, %rbx
.p2align 4, 0x90
LBB7_2: ## =>This Inner Loop Header: Depth=1
movl 32(%rbx), %edx
movss 36(%rbx), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movss 40(%rbx), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
movss 44(%rbx), %xmm2 ## xmm2 = mem[0],zero,zero,zero
cvtss2sd %xmm2, %xmm2
movss 48(%rbx), %xmm3 ## xmm3 = mem[0],zero,zero,zero
cvtss2sd %xmm3, %xmm3
movss 52(%rbx), %xmm4 ## xmm4 = mem[0],zero,zero,zero
cvtss2sd %xmm4, %xmm4
movss 56(%rbx), %xmm5 ## xmm5 = mem[0],zero,zero,zero
cvtss2sd %xmm5, %xmm5
movss 60(%rbx), %xmm6 ## xmm6 = mem[0],zero,zero,zero
cvtss2sd %xmm6, %xmm6
movss 64(%rbx), %xmm7 ## xmm7 = mem[0],zero,zero,zero
cvtss2sd %xmm7, %xmm7
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rcx
movb $8, %al
callq _fprintf
incq %r13
movslq 3400(%r14), %rax
addq $68, %rbx
cmpq %rax, %r13
jl LBB7_2
LBB7_3:
movq %r12, %rdi
callq _fclose
movl $1, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function main
LCPI8_0:
.long 0x42c80000 ## float 100
LCPI8_1:
.long 0x41f00000 ## float 30
.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
subq $3432, %rsp ## imm = 0xD68
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl $648, %edi ## imm = 0x288
callq _malloc
movq %rax, %rbx
leaq L_.str.6(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.7(%rip), %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq _scanf
leaq L_.str(%rip), %rsi
movq %rbx, %rdi
callq _fopen
testq %rax, %rax
jne LBB8_3
## %bb.1:
leaq L_str.18(%rip), %r15
leaq L_.str.6(%rip), %r12
leaq L_.str.7(%rip), %r13
leaq L_.str(%rip), %r14
.p2align 4, 0x90
LBB8_2: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
callq _puts
movq %r12, %rdi
xorl %eax, %eax
callq _printf
movq %r13, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq _scanf
movq %rbx, %rdi
movq %r14, %rsi
callq _fopen
testq %rax, %rax
je LBB8_2
LBB8_3:
movq %rbx, -56(%rbp) ## 8-byte Spill
movl $-1, %r14d
leaq -3472(%rbp), %rbx
movq %rax, -64(%rbp) ## 8-byte Spill
.p2align 4, 0x90
LBB8_4: ## =>This Inner Loop Header: Depth=1
leaq 32(%rbx), %rdx
leaq 36(%rbx), %rcx
leaq 40(%rbx), %r8
leaq 44(%rbx), %r9
leaq 48(%rbx), %r10
leaq 52(%rbx), %r11
leaq 56(%rbx), %r13
leaq 60(%rbx), %r15
leaq 64(%rbx), %r12
movq %rax, %rdi
leaq L_.str.1(%rip), %rsi
xorl %eax, %eax
pushq %rbx
pushq %r12
pushq %r15
pushq %r13
pushq %r11
pushq %r10
callq _fscanf
addq $48, %rsp
incl %r14d
addq $68, %rbx
cmpl $-1, %eax
movq -64(%rbp), %rax ## 8-byte Reload
jne LBB8_4
## %bb.5:
movl %r14d, -72(%rbp)
movq %rax, %rdi
callq _fclose
cmpl $0, -72(%rbp)
jle LBB8_8
## %bb.6:
leaq -3472(%rbp), %rbx
leaq L_.str.3(%rip), %r15
leaq L_.str.2(%rip), %r12
xorl %r13d, %r13d
.p2align 4, 0x90
LBB8_7: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
movl %r13d, %esi
xorl %eax, %eax
callq _printf
movl 32(%rbx), %edx
movss 36(%rbx), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movss 44(%rbx), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
movss 52(%rbx), %xmm2 ## xmm2 = mem[0],zero,zero,zero
cvtss2sd %xmm2, %xmm2
movss 60(%rbx), %xmm3 ## xmm3 = mem[0],zero,zero,zero
addss 64(%rbx), %xmm3
cvtss2sd %xmm3, %xmm3
movq %r12, %rdi
movq %rbx, %rsi
movb $4, %al
callq _printf
incq %r13
movslq -72(%rbp), %rax
addq $68, %rbx
cmpq %rax, %r13
jl LBB8_7
LBB8_8:
leaq L_.str.9(%rip), %r14
leaq L_.str.10(%rip), %r15
leaq -41(%rbp), %rbx
.p2align 4, 0x90
LBB8_9: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
xorl %eax, %eax
callq _printf
movq %r15, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq _scanf
movzbl -41(%rbp), %eax
movl %eax, %ecx
andb $-2, %cl
cmpb $110, %cl
jne LBB8_9
## %bb.10:
cmpb $111, %al
jne LBB8_11
## %bb.22:
movl $3404, %edi ## imm = 0xD4C
callq _malloc
movq %rax, %r13
movl $0, 3400(%rax)
movl -72(%rbp), %ecx
testl %ecx, %ecx
jle LBB8_30
## %bb.23:
leaq -3440(%rbp), %rax
movq %rcx, %rdx
shlq $6, %rdx
leaq (%rdx,%rcx,4), %rcx
xorl %edx, %edx
jmp LBB8_24
.p2align 4, 0x90
LBB8_26: ## in Loop: Header=BB8_24 Depth=1
addq $68, %rdx
cmpq %rdx, %rcx
je LBB8_27
LBB8_24: ## =>This Inner Loop Header: Depth=1
cmpl $31, -3440(%rbp,%rdx)
jl LBB8_26
## %bb.25: ## in Loop: Header=BB8_24 Depth=1
movslq 3400(%r13), %rsi
leal 1(%rsi), %edi
movl %edi, 3400(%r13)
movq %rsi, %rdi
shlq $6, %rdi
leaq (%rdi,%rsi,4), %rsi
movl 32(%rax,%rdx), %edi
movl %edi, 64(%r13,%rsi)
movups -32(%rax,%rdx), %xmm0
movups -16(%rax,%rdx), %xmm1
movups (%rax,%rdx), %xmm2
movups 16(%rax,%rdx), %xmm3
movups %xmm3, 48(%r13,%rsi)
movups %xmm2, 32(%r13,%rsi)
movups %xmm1, 16(%r13,%rsi)
movups %xmm0, (%r13,%rsi)
jmp LBB8_26
LBB8_11:
leaq L_.str.13(%rip), %r14
leaq L_.str.10(%rip), %r15
leaq -41(%rbp), %rbx
.p2align 4, 0x90
LBB8_12: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
xorl %eax, %eax
callq _printf
movq %r15, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq _scanf
movzbl -41(%rbp), %eax
movl %eax, %ecx
andb $-2, %cl
cmpb $110, %cl
jne LBB8_12
## %bb.13:
cmpb $111, %al
jne LBB8_14
## %bb.34:
movl $3404, %edi ## imm = 0xD4C
callq _malloc
movq %rax, %r13
movl $0, 3400(%rax)
movl -72(%rbp), %ecx
testl %ecx, %ecx
jle LBB8_42
## %bb.35:
leaq -3424(%rbp), %rax
movq %rcx, %rdx
shlq $6, %rdx
leaq (%rdx,%rcx,4), %rcx
xorl %edx, %edx
movss LCPI8_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss LCPI8_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
jmp LBB8_36
.p2align 4, 0x90
LBB8_38: ## in Loop: Header=BB8_36 Depth=1
addq $68, %rdx
cmpq %rdx, %rcx
je LBB8_39
LBB8_36: ## =>This Inner Loop Header: Depth=1
movss -3428(%rbp,%rdx), %xmm2 ## xmm2 = mem[0],zero,zero,zero
divss -3424(%rbp,%rdx), %xmm2
mulss %xmm0, %xmm2
ucomiss %xmm1, %xmm2
jbe LBB8_38
## %bb.37: ## in Loop: Header=BB8_36 Depth=1
movslq 3400(%r13), %rsi
leal 1(%rsi), %edi
movl %edi, 3400(%r13)
movq %rsi, %rdi
shlq $6, %rdi
leaq (%rdi,%rsi,4), %rsi
movl 16(%rax,%rdx), %edi
movl %edi, 64(%r13,%rsi)
movups -48(%rax,%rdx), %xmm2
movups -32(%rax,%rdx), %xmm3
movups -16(%rax,%rdx), %xmm4
movups (%rax,%rdx), %xmm5
movups %xmm5, 48(%r13,%rsi)
movups %xmm4, 32(%r13,%rsi)
movups %xmm3, 16(%r13,%rsi)
movups %xmm2, (%r13,%rsi)
jmp LBB8_38
LBB8_27:
cmpl $0, 3400(%r13)
jle LBB8_30
## %bb.28:
leaq L_.str.3(%rip), %r14
leaq L_.str.2(%rip), %r12
movq %r13, %rbx
xorl %r15d, %r15d
.p2align 4, 0x90
LBB8_29: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq _printf
movl 32(%rbx), %edx
movss 36(%rbx), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movss 44(%rbx), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
movss 52(%rbx), %xmm2 ## xmm2 = mem[0],zero,zero,zero
cvtss2sd %xmm2, %xmm2
movss 60(%rbx), %xmm3 ## xmm3 = mem[0],zero,zero,zero
addss 64(%rbx), %xmm3
cvtss2sd %xmm3, %xmm3
movq %r12, %rdi
movq %rbx, %rsi
movb $4, %al
callq _printf
incq %r15
movslq 3400(%r13), %rax
addq $68, %rbx
cmpq %rax, %r15
jl LBB8_29
LBB8_30:
leaq L_.str.11(%rip), %r14
leaq L_.str.10(%rip), %r15
leaq -41(%rbp), %rbx
.p2align 4, 0x90
LBB8_31: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
xorl %eax, %eax
callq _printf
movq %r15, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq _scanf
movzbl -41(%rbp), %eax
movl %eax, %ecx
andb $-2, %cl
cmpb $110, %cl
jne LBB8_31
jmp LBB8_32
LBB8_14:
leaq L_.str.14(%rip), %r14
leaq L_.str.10(%rip), %r15
leaq -41(%rbp), %rbx
movq -56(%rbp), %r12 ## 8-byte Reload
.p2align 4, 0x90
LBB8_15: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
xorl %eax, %eax
callq _printf
movq %r15, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq _scanf
movzbl -41(%rbp), %eax
movl %eax, %ecx
andb $-2, %cl
cmpb $110, %cl
jne LBB8_15
## %bb.16:
cmpb $111, %al
jne LBB8_46
## %bb.17:
callq _getchar
movl $208, %edi
callq _malloc
movq %rax, %r12
leaq L_.str.16(%rip), %r14
LBB8_18: ## =>This Loop Header: Depth=1
## Child Loop BB8_20 Depth 2
leaq L_.str.15(%rip), %rdi
xorl %eax, %eax
callq _printf
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq _scanf
movl -72(%rbp), %r13d
testl %r13d, %r13d
jle LBB8_45
## %bb.19: ## in Loop: Header=BB8_18 Depth=1
negq %r13
leaq -3472(%rbp), %rbx
xorl %r15d, %r15d
.p2align 4, 0x90
LBB8_20: ## Parent Loop BB8_18 Depth=1
## => This Inner Loop Header: Depth=2
movq %r12, %rdi
movq %rbx, %rsi
callq _strcoll
testl %eax, %eax
je LBB8_44
## %bb.21: ## in Loop: Header=BB8_20 Depth=2
decq %r15
addq $68, %rbx
cmpq %r15, %r13
jne LBB8_20
jmp LBB8_45
LBB8_44: ## in Loop: Header=BB8_18 Depth=1
cmpl $1, %r15d
jne LBB8_18
LBB8_45:
leaq L_str(%rip), %rdi
callq _puts
leaq -3540(%rbp), %rsi
movl -3508(%rbp), %edx
movss -3504(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movss -3496(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
movss -3488(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero
cvtss2sd %xmm2, %xmm2
movss -3480(%rbp), %xmm3 ## xmm3 = mem[0],zero,zero,zero
addss -3476(%rbp), %xmm3
cvtss2sd %xmm3, %xmm3
leaq L_.str.2(%rip), %rdi
movb $4, %al
callq _printf
jmp LBB8_46
LBB8_39:
cmpl $0, 3400(%r13)
jle LBB8_42
## %bb.40:
leaq L_.str.3(%rip), %r14
leaq L_.str.2(%rip), %r12
movq %r13, %rbx
xorl %r15d, %r15d
.p2align 4, 0x90
LBB8_41: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq _printf
movl 32(%rbx), %edx
movss 36(%rbx), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movss 44(%rbx), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
movss 52(%rbx), %xmm2 ## xmm2 = mem[0],zero,zero,zero
cvtss2sd %xmm2, %xmm2
movss 60(%rbx), %xmm3 ## xmm3 = mem[0],zero,zero,zero
addss 64(%rbx), %xmm3
cvtss2sd %xmm3, %xmm3
movq %r12, %rdi
movq %rbx, %rsi
movb $4, %al
callq _printf
incq %r15
movslq 3400(%r13), %rax
addq $68, %rbx
cmpq %rax, %r15
jl LBB8_41
LBB8_42:
leaq L_.str.11(%rip), %r14
leaq L_.str.10(%rip), %r15
leaq -41(%rbp), %rbx
.p2align 4, 0x90
LBB8_43: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
xorl %eax, %eax
callq _printf
movq %r15, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq _scanf
movzbl -41(%rbp), %eax
movl %eax, %ecx
andb $-2, %cl
cmpb $110, %cl
jne LBB8_43
LBB8_32:
cmpb $111, %al
movq -56(%rbp), %r12 ## 8-byte Reload
jne LBB8_46
## %bb.33:
leaq L_.str.12(%rip), %rdi
xorl %eax, %eax
callq _printf
leaq L_.str.7(%rip), %rdi
movq %r12, %rsi
xorl %eax, %eax
callq _scanf
movq %r12, %rdi
movq %r13, %rsi
callq _ecrireFichier
LBB8_46:
movq %r12, %rdi
callq _free
xorl %eax, %eax
addq $3432, %rsp ## imm = 0xD68
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "r"
L_.str.1: ## @.str.1
.asciz "%d;%f;%f;%f;%f;%f;%f;%f;%f;%[^\n]"
L_.str.2: ## @.str.2
.asciz "%-25s age=%d, fg=%5.2f, 3pts=%5.2f, ft=%5.2f, rb=%5.2f\n"
L_.str.3: ## @.str.3
.asciz "%2d:"
L_.str.4: ## @.str.4
.asciz "w"
L_.str.5: ## @.str.5
.asciz "%2d;%2.1f;%2.1f;%2.1f;%2.1f;%2.1f;%2.1f;%2.1f;%2.1f;%s\n"
L_.str.6: ## @.str.6
.asciz "Quel fichier voulez vous lire ? : "
L_.str.7: ## @.str.7
.asciz "%s"
L_.str.9: ## @.str.9
.asciz "Voulez vous trier les joueurs de plus de treinte ans ? (o/n) "
L_.str.10: ## @.str.10
.asciz "\n%c"
L_.str.11: ## @.str.11
.asciz "Voulez vous enregistrer cette chaine ? (o/n) "
L_.str.12: ## @.str.12
.asciz "Sous quel nom voulez vous l'enregistrer ? : "
L_.str.13: ## @.str.13
.asciz "Voulez vous trier les joueurs qui ont un pourcentage de r\303\251ussite sup\303\251rieur \303\240 30 %% aux 3 points ? (o/n) "
L_.str.14: ## @.str.14
.asciz "Voulez vous chercher un joueur ? (o/n) "
L_.str.15: ## @.str.15
.asciz "Quel est le nom de ce joueur : "
L_.str.16: ## @.str.16
.asciz "%[^\n]"
L_str: ## @str
.asciz "Ce joueur n'existe pas !"
L_str.18: ## @str.18
.asciz "Ce fichier n'existe pas !"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lireFichier ; -- Begin function lireFichier
.p2align 2
_lireFichier: ; @lireFichier
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
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
mov x19, x1
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
bl _fopen
cbz x0, LBB0_4
; %bb.1:
mov x20, x0
add x23, x19, #32
mov w22, #-1
Lloh2:
adrp x21, l_.str.1@PAGE
Lloh3:
add x21, x21, l_.str.1@PAGEOFF
LBB0_2: ; =>This Inner Loop Header: Depth=1
add x8, x23, #4
add x9, x23, #8
add x10, x23, #12
add x11, x23, #16
add x12, x23, #20
add x13, x23, #24
add x14, x23, #28
add x15, x23, #32
sub x16, x23, #32
stp x15, x16, [sp, #64]
stp x13, x14, [sp, #48]
stp x11, x12, [sp, #32]
stp x9, x10, [sp, #16]
stp x23, x8, [sp]
mov x0, x20
mov x1, x21
bl _fscanf
add w22, w22, #1
add x23, x23, #68
cmn w0, #1
b.ne LBB0_2
; %bb.3:
str w22, [x19, #3400]
mov x0, x20
bl _fclose
mov w0, #1
LBB0_4:
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
add sp, sp, #144
ret
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.cfi_endproc
; -- End function
.globl _afficherJoueur ; -- Begin function afficherJoueur
.p2align 2
_afficherJoueur: ; @afficherJoueur
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
ldr s0, [x0, #36]
fcvt d0, s0
ldr s1, [x0, #44]
fcvt d1, s1
ldr s2, [x0, #52]
fcvt d2, s2
ldp s3, s4, [x0, #60]
fadd s3, s3, s4
fcvt d3, s3
ldr w8, [x0, #32]
str d3, [sp, #40]
str d2, [sp, #32]
str d1, [sp, #24]
str d0, [sp, #16]
stp x0, x8, [sp]
Lloh4:
adrp x0, l_.str.2@PAGE
Lloh5:
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.loh AdrpAdd Lloh4, Lloh5
.cfi_endproc
; -- End function
.globl _afficherTable ; -- Begin function afficherTable
.p2align 2
_afficherTable: ; @afficherTable
.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
ldr w8, [x0, #3400]
cmp w8, #1
b.lt LBB2_3
; %bb.1:
mov x19, x0
mov x22, #0
Lloh6:
adrp x20, l_.str.3@PAGE
Lloh7:
add x20, x20, l_.str.3@PAGEOFF
mov x23, x0
Lloh8:
adrp x21, l_.str.2@PAGE
Lloh9:
add x21, x21, l_.str.2@PAGEOFF
LBB2_2: ; =>This Inner Loop Header: Depth=1
str x22, [sp]
mov x0, x20
bl _printf
ldr s0, [x23, #36]
fcvt d0, s0
ldr s1, [x23, #44]
fcvt d1, s1
ldr s2, [x23, #52]
fcvt d2, s2
ldp s3, s4, [x23, #60]
fadd s3, s3, s4
fcvt d3, s3
ldr w8, [x23, #32]
stp d2, d3, [sp, #32]
stp d0, d1, [sp, #16]
stp x23, x8, [sp]
mov x0, x21
bl _printf
add x22, x22, #1
ldrsw x8, [x19, #3400]
add x23, x23, #68
cmp x22, x8
b.lt LBB2_2
LBB2_3:
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
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh6, Lloh7
.cfi_endproc
; -- End function
.globl _joueur30ans ; -- Begin function joueur30ans
.p2align 2
_joueur30ans: ; @joueur30ans
.cfi_startproc
; %bb.0:
ldr w8, [x0, #32]
cmp w8, #30
cset w0, gt
ret
.cfi_endproc
; -- End function
.globl _j30pr3pts ; -- Begin function j30pr3pts
.p2align 2
_j30pr3pts: ; @j30pr3pts
.cfi_startproc
; %bb.0:
ldp s0, s1, [x0, #44]
fdiv s0, s0, s1
mov w8, #1120403456
fmov s1, w8
fmul s0, s0, s1
fmov s1, #30.00000000
fcmp s0, s1
cset w0, gt
ret
.cfi_endproc
; -- End function
.globl _Select ; -- Begin function Select
.p2align 2
_Select: ; @Select
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
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
mov x19, x1
mov x20, x0
Lloh10:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh11:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
ldr x8, [x8]
stur x8, [x29, #-56]
mov w0, #3404
bl _malloc
mov x21, x0
str wzr, [x0, #3400]
ldr w8, [x20, #3400]
cmp w8, #1
b.lt LBB5_5
; %bb.1:
mov x22, #0
mov w23, #68
mov x24, x20
b LBB5_3
LBB5_2: ; in Loop: Header=BB5_3 Depth=1
add x22, x22, #1
ldrsw x8, [x20, #3400]
add x24, x24, #68
cmp x22, x8
b.ge LBB5_5
LBB5_3: ; =>This Inner Loop Header: Depth=1
ldp q0, q1, [x24, #32]
stp q0, q1, [sp, #32]
ldr w8, [x24, #64]
str w8, [sp, #64]
ldp q1, q0, [x24]
stp q1, q0, [sp]
mov x0, sp
blr x19
cbz w0, LBB5_2
; %bb.4: ; in Loop: Header=BB5_3 Depth=1
ldrsw x8, [x21, #3400]
add w9, w8, #1
str w9, [x21, #3400]
madd x8, x8, x23, x21
ldp q0, q1, [x24, #32]
stp q0, q1, [x8, #32]
ldr w9, [x24, #64]
str w9, [x8, #64]
ldp q1, q0, [x24]
stp q1, q0, [x8]
b LBB5_2
LBB5_5:
ldur x8, [x29, #-56]
Lloh13:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh14:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
ldr x9, [x9]
cmp x9, x8
b.ne LBB5_7
; %bb.6:
mov x0, x21
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
add sp, sp, #144
ret
LBB5_7:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.cfi_endproc
; -- End function
.globl _rechercheJoueurParNom ; -- Begin function rechercheJoueurParNom
.p2align 2
_rechercheJoueurParNom: ; @rechercheJoueurParNom
.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
ldr w22, [x1, #3400]
cmp w22, #1
b.lt LBB6_4
; %bb.1:
mov x20, x1
mov x21, x0
mov x19, #0
LBB6_2: ; =>This Inner Loop Header: Depth=1
mov x0, x21
mov x1, x20
bl _strcoll
cbz w0, LBB6_5
; %bb.3: ; in Loop: Header=BB6_2 Depth=1
add x19, x19, #1
add x20, x20, #68
cmp x22, x19
b.ne LBB6_2
LBB6_4:
mov w19, #-1
LBB6_5:
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
.cfi_endproc
; -- End function
.globl _ecrireFichier ; -- Begin function ecrireFichier
.p2align 2
_ecrireFichier: ; @ecrireFichier
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
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
mov x19, x1
Lloh16:
adrp x1, l_.str.4@PAGE
Lloh17:
add x1, x1, l_.str.4@PAGEOFF
bl _fopen
mov x20, x0
ldr w8, [x19, #3400]
cmp w8, #1
b.lt LBB7_3
; %bb.1:
mov x22, #0
Lloh18:
adrp x21, l_.str.5@PAGE
Lloh19:
add x21, x21, l_.str.5@PAGEOFF
mov x23, x19
LBB7_2: ; =>This Inner Loop Header: Depth=1
ldp s0, s1, [x23, #36]
fcvt d0, s0
fcvt d1, s1
ldp s2, s3, [x23, #44]
fcvt d2, s2
fcvt d3, s3
ldp s4, s5, [x23, #52]
fcvt d4, s4
fcvt d5, s5
ldp s6, s7, [x23, #60]
fcvt d6, s6
fcvt d7, s7
ldr w8, [x23, #32]
str x23, [sp, #72]
stp d6, d7, [sp, #56]
stp d4, d5, [sp, #40]
stp d2, d3, [sp, #24]
stp d0, d1, [sp, #8]
str x8, [sp]
mov x0, x20
mov x1, x21
bl _fprintf
add x22, x22, #1
ldrsw x8, [x19, #3400]
add x23, x23, #68
cmp x22, x8
b.lt LBB7_2
LBB7_3:
mov x0, x20
bl _fclose
mov w0, #1
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
add sp, sp, #144
ret
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpAdd Lloh18, Lloh19
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x28, x27, [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 w27, -72
.cfi_offset w28, -80
sub sp, sp, #3488
mov w0, #648
bl _malloc
mov x19, x0
Lloh20:
adrp x0, l_.str.6@PAGE
Lloh21:
add x0, x0, l_.str.6@PAGEOFF
bl _printf
str x19, [sp]
Lloh22:
adrp x0, l_.str.7@PAGE
Lloh23:
add x0, x0, l_.str.7@PAGEOFF
bl _scanf
Lloh24:
adrp x1, l_.str@PAGE
Lloh25:
add x1, x1, l_.str@PAGEOFF
mov x0, x19
bl _fopen
mov x20, x0
cbnz x0, LBB8_4
; %bb.1:
Lloh26:
adrp x21, l_str.18@PAGE
Lloh27:
add x21, x21, l_str.18@PAGEOFF
Lloh28:
adrp x22, l_.str.6@PAGE
Lloh29:
add x22, x22, l_.str.6@PAGEOFF
Lloh30:
adrp x23, l_.str.7@PAGE
Lloh31:
add x23, x23, l_.str.7@PAGEOFF
Lloh32:
adrp x24, l_.str@PAGE
Lloh33:
add x24, x24, l_.str@PAGEOFF
LBB8_2: ; =>This Inner Loop Header: Depth=1
mov x0, x21
bl _puts
mov x0, x22
bl _printf
str x19, [sp]
mov x0, x23
bl _scanf
mov x0, x19
mov x1, x24
bl _fopen
cbz x0, LBB8_2
; %bb.3:
mov x20, x0
LBB8_4:
mov w22, #-1
add x23, sp, #80
Lloh34:
adrp x21, l_.str.1@PAGE
Lloh35:
add x21, x21, l_.str.1@PAGEOFF
LBB8_5: ; =>This Inner Loop Header: Depth=1
add x8, x23, #32
add x9, x23, #36
add x10, x23, #40
add x11, x23, #44
add x12, x23, #48
add x13, x23, #52
add x14, x23, #56
add x15, x23, #60
add x16, x23, #64
stp x16, x23, [sp, #64]
stp x14, x15, [sp, #48]
stp x12, x13, [sp, #32]
stp x10, x11, [sp, #16]
stp x8, x9, [sp]
mov x0, x20
mov x1, x21
bl _fscanf
add w22, w22, #1
add x23, x23, #68
cmn w0, #1
b.ne LBB8_5
; %bb.6:
str w22, [sp, #3480]
mov x0, x20
bl _fclose
ldr w8, [sp, #3480]
cmp w8, #1
b.lt LBB8_9
; %bb.7:
mov x22, #0
add x23, sp, #80
Lloh36:
adrp x20, l_.str.3@PAGE
Lloh37:
add x20, x20, l_.str.3@PAGEOFF
Lloh38:
adrp x21, l_.str.2@PAGE
Lloh39:
add x21, x21, l_.str.2@PAGEOFF
LBB8_8: ; =>This Inner Loop Header: Depth=1
str x22, [sp]
mov x0, x20
bl _printf
ldr s0, [x23, #36]
fcvt d0, s0
ldr s1, [x23, #44]
fcvt d1, s1
ldr s2, [x23, #52]
fcvt d2, s2
ldp s3, s4, [x23, #60]
fadd s3, s3, s4
fcvt d3, s3
ldr w8, [x23, #32]
stp d2, d3, [sp, #32]
stp d0, d1, [sp, #16]
stp x23, x8, [sp]
mov x0, x21
bl _printf
add x22, x22, #1
ldrsw x8, [sp, #3480]
add x23, x23, #68
cmp x22, x8
b.lt LBB8_8
LBB8_9:
Lloh40:
adrp x20, l_.str.9@PAGE
Lloh41:
add x20, x20, l_.str.9@PAGEOFF
sub x22, x29, #65
Lloh42:
adrp x21, l_.str.10@PAGE
Lloh43:
add x21, x21, l_.str.10@PAGEOFF
LBB8_10: ; =>This Inner Loop Header: Depth=1
mov x0, x20
bl _printf
str x22, [sp]
mov x0, x21
bl _scanf
ldurb w8, [x29, #-65]
and w9, w8, #0xfe
cmp w9, #110
b.ne LBB8_10
; %bb.11:
cmp w8, #111
b.ne LBB8_17
; %bb.12:
mov w0, #3404
bl _malloc
mov x20, x0
str wzr, [x0, #3400]
ldr w8, [sp, #3480]
cmp w8, #1
b.lt LBB8_28
; %bb.13:
add x9, sp, #80
add x9, x9, #32
mov w10, #68
b LBB8_15
LBB8_14: ; in Loop: Header=BB8_15 Depth=1
add x9, x9, #68
subs x8, x8, #1
b.eq LBB8_25
LBB8_15: ; =>This Inner Loop Header: Depth=1
ldr w11, [x9]
cmp w11, #31
b.lt LBB8_14
; %bb.16: ; in Loop: Header=BB8_15 Depth=1
ldrsw x11, [x20, #3400]
add w12, w11, #1
str w12, [x20, #3400]
madd x11, x11, x10, x20
ldp q0, q1, [x9]
stp q0, q1, [x11, #32]
ldr w12, [x9, #32]
str w12, [x11, #64]
ldp q1, q0, [x9, #-32]
stp q1, q0, [x11]
b LBB8_14
LBB8_17:
Lloh44:
adrp x20, l_.str.13@PAGE
Lloh45:
add x20, x20, l_.str.13@PAGEOFF
sub x22, x29, #65
Lloh46:
adrp x21, l_.str.10@PAGE
Lloh47:
add x21, x21, l_.str.10@PAGEOFF
LBB8_18: ; =>This Inner Loop Header: Depth=1
mov x0, x20
bl _printf
str x22, [sp]
mov x0, x21
bl _scanf
ldurb w8, [x29, #-65]
and w9, w8, #0xfe
cmp w9, #110
b.ne LBB8_18
; %bb.19:
cmp w8, #111
b.ne LBB8_30
; %bb.20:
mov w0, #3404
bl _malloc
mov x20, x0
str wzr, [x0, #3400]
ldr w8, [sp, #3480]
cmp w8, #1
b.lt LBB8_43
; %bb.21:
add x9, sp, #80
add x9, x9, #48
mov w10, #1120403456
fmov s0, #30.00000000
mov w11, #68
b LBB8_23
LBB8_22: ; in Loop: Header=BB8_23 Depth=1
add x9, x9, #68
subs x8, x8, #1
b.eq LBB8_40
LBB8_23: ; =>This Inner Loop Header: Depth=1
ldp s1, s2, [x9, #-4]
fdiv s1, s1, s2
fmov s2, w10
fmul s1, s1, s2
fcmp s1, s0
b.le LBB8_22
; %bb.24: ; in Loop: Header=BB8_23 Depth=1
ldrsw x12, [x20, #3400]
add w13, w12, #1
str w13, [x20, #3400]
madd x12, x12, x11, x20
ldp q1, q2, [x9, #-16]
stp q1, q2, [x12, #32]
ldr w13, [x9, #16]
str w13, [x12, #64]
ldp q2, q1, [x9, #-48]
stp q2, q1, [x12]
b LBB8_22
LBB8_25:
ldr w8, [x20, #3400]
cmp w8, #1
b.lt LBB8_28
; %bb.26:
mov x23, #0
Lloh48:
adrp x21, l_.str.3@PAGE
Lloh49:
add x21, x21, l_.str.3@PAGEOFF
mov x24, x20
Lloh50:
adrp x22, l_.str.2@PAGE
Lloh51:
add x22, x22, l_.str.2@PAGEOFF
LBB8_27: ; =>This Inner Loop Header: Depth=1
str x23, [sp]
mov x0, x21
bl _printf
ldr s0, [x24, #36]
fcvt d0, s0
ldr s1, [x24, #44]
fcvt d1, s1
ldr s2, [x24, #52]
fcvt d2, s2
ldp s3, s4, [x24, #60]
fadd s3, s3, s4
fcvt d3, s3
ldr w8, [x24, #32]
stp d2, d3, [sp, #32]
stp d0, d1, [sp, #16]
stp x24, x8, [sp]
mov x0, x22
bl _printf
add x23, x23, #1
ldrsw x8, [x20, #3400]
add x24, x24, #68
cmp x23, x8
b.lt LBB8_27
LBB8_28:
Lloh52:
adrp x21, l_.str.11@PAGE
Lloh53:
add x21, x21, l_.str.11@PAGEOFF
sub x23, x29, #65
Lloh54:
adrp x22, l_.str.10@PAGE
Lloh55:
add x22, x22, l_.str.10@PAGEOFF
LBB8_29: ; =>This Inner Loop Header: Depth=1
mov x0, x21
bl _printf
str x23, [sp]
mov x0, x22
bl _scanf
ldurb w8, [x29, #-65]
and w9, w8, #0xfe
cmp w9, #110
b.ne LBB8_29
b LBB8_45
LBB8_30:
Lloh56:
adrp x20, l_.str.14@PAGE
Lloh57:
add x20, x20, l_.str.14@PAGEOFF
sub x22, x29, #65
Lloh58:
adrp x21, l_.str.10@PAGE
Lloh59:
add x21, x21, l_.str.10@PAGEOFF
LBB8_31: ; =>This Inner Loop Header: Depth=1
mov x0, x20
bl _printf
str x22, [sp]
mov x0, x21
bl _scanf
ldurb w8, [x29, #-65]
and w9, w8, #0xfe
cmp w9, #110
b.ne LBB8_31
; %bb.32:
cmp w8, #111
b.ne LBB8_47
; %bb.33:
bl _getchar
mov w0, #208
bl _malloc
mov x19, x0
Lloh60:
adrp x20, l_.str.15@PAGE
Lloh61:
add x20, x20, l_.str.15@PAGEOFF
Lloh62:
adrp x21, l_.str.16@PAGE
Lloh63:
add x21, x21, l_.str.16@PAGEOFF
LBB8_34: ; =>This Loop Header: Depth=1
; Child Loop BB8_36 Depth 2
mov x0, x20
bl _printf
str x19, [sp]
mov x0, x21
bl _scanf
ldr w8, [sp, #3480]
cmp w8, #1
b.lt LBB8_39
; %bb.35: ; in Loop: Header=BB8_34 Depth=1
mov x23, #0
neg x24, x8
add x22, sp, #80
LBB8_36: ; Parent Loop BB8_34 Depth=1
; => This Inner Loop Header: Depth=2
mov x0, x19
mov x1, x22
bl _strcoll
cbz w0, LBB8_38
; %bb.37: ; in Loop: Header=BB8_36 Depth=2
sub x23, x23, #1
add x22, x22, #68
cmp x24, x23
b.ne LBB8_36
b LBB8_39
LBB8_38: ; in Loop: Header=BB8_34 Depth=1
cmp w23, #1
b.ne LBB8_34
LBB8_39:
Lloh64:
adrp x0, l_str@PAGE
Lloh65:
add x0, x0, l_str@PAGEOFF
bl _puts
add x8, sp, #80
sub x8, x8, #68
ldur s0, [sp, #48]
ldur s1, [sp, #56]
fcvt d0, s0
fcvt d1, s1
ldur s2, [sp, #64]
ldp s3, s4, [sp, #72]
fcvt d2, s2
fadd s3, s3, s4
fcvt d3, s3
ldur w9, [sp, #44]
str d3, [sp, #40]
str d2, [sp, #32]
str d1, [sp, #24]
str d0, [sp, #16]
stp x8, x9, [sp]
Lloh66:
adrp x0, l_.str.2@PAGE
Lloh67:
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB8_47
LBB8_40:
ldr w8, [x20, #3400]
cmp w8, #1
b.lt LBB8_43
; %bb.41:
mov x23, #0
Lloh68:
adrp x21, l_.str.3@PAGE
Lloh69:
add x21, x21, l_.str.3@PAGEOFF
mov x24, x20
Lloh70:
adrp x22, l_.str.2@PAGE
Lloh71:
add x22, x22, l_.str.2@PAGEOFF
LBB8_42: ; =>This Inner Loop Header: Depth=1
str x23, [sp]
mov x0, x21
bl _printf
ldr s0, [x24, #36]
fcvt d0, s0
ldr s1, [x24, #44]
fcvt d1, s1
ldr s2, [x24, #52]
fcvt d2, s2
ldp s3, s4, [x24, #60]
fadd s3, s3, s4
fcvt d3, s3
ldr w8, [x24, #32]
stp d2, d3, [sp, #32]
stp d0, d1, [sp, #16]
stp x24, x8, [sp]
mov x0, x22
bl _printf
add x23, x23, #1
ldrsw x8, [x20, #3400]
add x24, x24, #68
cmp x23, x8
b.lt LBB8_42
LBB8_43:
Lloh72:
adrp x21, l_.str.11@PAGE
Lloh73:
add x21, x21, l_.str.11@PAGEOFF
sub x23, x29, #65
Lloh74:
adrp x22, l_.str.10@PAGE
Lloh75:
add x22, x22, l_.str.10@PAGEOFF
LBB8_44: ; =>This Inner Loop Header: Depth=1
mov x0, x21
bl _printf
str x23, [sp]
mov x0, x22
bl _scanf
ldurb w8, [x29, #-65]
and w9, w8, #0xfe
cmp w9, #110
b.ne LBB8_44
LBB8_45:
cmp w8, #111
b.ne LBB8_47
; %bb.46:
Lloh76:
adrp x0, l_.str.12@PAGE
Lloh77:
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str x19, [sp]
Lloh78:
adrp x0, l_.str.7@PAGE
Lloh79:
add x0, x0, l_.str.7@PAGEOFF
bl _scanf
mov x0, x19
mov x1, x20
bl _ecrireFichier
LBB8_47:
mov x0, x19
bl _free
mov w0, #0
add sp, sp, #3488
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 x28, x27, [sp], #80 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh24, Lloh25
.loh AdrpAdd Lloh22, Lloh23
.loh AdrpAdd Lloh20, Lloh21
.loh AdrpAdd Lloh32, Lloh33
.loh AdrpAdd Lloh30, Lloh31
.loh AdrpAdd Lloh28, Lloh29
.loh AdrpAdd Lloh26, Lloh27
.loh AdrpAdd Lloh34, Lloh35
.loh AdrpAdd Lloh38, Lloh39
.loh AdrpAdd Lloh36, Lloh37
.loh AdrpAdd Lloh42, Lloh43
.loh AdrpAdd Lloh40, Lloh41
.loh AdrpAdd Lloh46, Lloh47
.loh AdrpAdd Lloh44, Lloh45
.loh AdrpAdd Lloh50, Lloh51
.loh AdrpAdd Lloh48, Lloh49
.loh AdrpAdd Lloh54, Lloh55
.loh AdrpAdd Lloh52, Lloh53
.loh AdrpAdd Lloh58, Lloh59
.loh AdrpAdd Lloh56, Lloh57
.loh AdrpAdd Lloh62, Lloh63
.loh AdrpAdd Lloh60, Lloh61
.loh AdrpAdd Lloh66, Lloh67
.loh AdrpAdd Lloh64, Lloh65
.loh AdrpAdd Lloh70, Lloh71
.loh AdrpAdd Lloh68, Lloh69
.loh AdrpAdd Lloh74, Lloh75
.loh AdrpAdd Lloh72, Lloh73
.loh AdrpAdd Lloh78, Lloh79
.loh AdrpAdd Lloh76, Lloh77
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "r"
l_.str.1: ; @.str.1
.asciz "%d;%f;%f;%f;%f;%f;%f;%f;%f;%[^\n]"
l_.str.2: ; @.str.2
.asciz "%-25s age=%d, fg=%5.2f, 3pts=%5.2f, ft=%5.2f, rb=%5.2f\n"
l_.str.3: ; @.str.3
.asciz "%2d:"
l_.str.4: ; @.str.4
.asciz "w"
l_.str.5: ; @.str.5
.asciz "%2d;%2.1f;%2.1f;%2.1f;%2.1f;%2.1f;%2.1f;%2.1f;%2.1f;%s\n"
l_.str.6: ; @.str.6
.asciz "Quel fichier voulez vous lire ? : "
l_.str.7: ; @.str.7
.asciz "%s"
l_.str.9: ; @.str.9
.asciz "Voulez vous trier les joueurs de plus de treinte ans ? (o/n) "
l_.str.10: ; @.str.10
.asciz "\n%c"
l_.str.11: ; @.str.11
.asciz "Voulez vous enregistrer cette chaine ? (o/n) "
l_.str.12: ; @.str.12
.asciz "Sous quel nom voulez vous l'enregistrer ? : "
l_.str.13: ; @.str.13
.asciz "Voulez vous trier les joueurs qui ont un pourcentage de r\303\251ussite sup\303\251rieur \303\240 30 %% aux 3 points ? (o/n) "
l_.str.14: ; @.str.14
.asciz "Voulez vous chercher un joueur ? (o/n) "
l_.str.15: ; @.str.15
.asciz "Quel est le nom de ce joueur : "
l_.str.16: ; @.str.16
.asciz "%[^\n]"
l_str: ; @str
.asciz "Ce joueur n'existe pas !"
l_str.18: ; @str.18
.asciz "Ce fichier n'existe pas !"
.subsections_via_symbols
| the_stack_data/242330022.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__const
.globl _SpectaVersionString ## @SpectaVersionString
.p2align 4
_SpectaVersionString:
.asciz "@(#)PROGRAM:Specta PROJECT:Pods-1.0.4\n"
.globl _SpectaVersionNumber ## @SpectaVersionNumber
.p2align 3
_SpectaVersionNumber:
.quad 0x3ff0000000000000 ## double 1
.no_dead_strip _SpectaVersionNumber
.no_dead_strip _SpectaVersionString
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__const
.globl _SpectaVersionString ; @SpectaVersionString
_SpectaVersionString:
.asciz "@(#)PROGRAM:Specta PROJECT:Pods-1.0.4\n"
.globl _SpectaVersionNumber ; @SpectaVersionNumber
.p2align 3
_SpectaVersionNumber:
.quad 0x3ff0000000000000 ; double 1
.no_dead_strip _SpectaVersionNumber
.no_dead_strip _SpectaVersionString
.subsections_via_symbols
| the_stack_data/107951973.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function usb3_set_halt
_usb3_set_halt: ## @usb3_set_halt
.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
je LBB0_2
## %bb.1:
cmpq $0, 8(%rdi)
je LBB0_2
## %bb.4:
movq _EAGAIN@GOTPCREL(%rip), %rcx
xorl %eax, %eax
subl (%rcx), %eax
popq %rbp
retq
LBB0_2:
cmpq $0, (%rdi)
je LBB0_3
## %bb.5:
popq %rbp
jmp _usb3_set_halt_pn ## TAILCALL
LBB0_3:
popq %rbp
jmp _usb3_set_halt_p0 ## TAILCALL
.cfi_endproc
## -- End function
.comm _EAGAIN,4,2 ## @EAGAIN
.no_dead_strip _usb3_set_halt
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function usb3_set_halt
_usb3_set_halt: ; @usb3_set_halt
.cfi_startproc
; %bb.0:
cbz w1, LBB0_3
; %bb.1:
ldr x8, [x0, #8]
cbz x8, LBB0_3
; %bb.2:
Lloh0:
adrp x8, _EAGAIN@GOTPAGE
Lloh1:
ldr x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
neg w0, w8
ret
LBB0_3:
ldr x8, [x0]
cbz x8, LBB0_5
; %bb.4:
b _usb3_set_halt_pn
LBB0_5:
b _usb3_set_halt_p0
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _EAGAIN,4,2 ; @EAGAIN
.no_dead_strip _usb3_set_halt
.subsections_via_symbols
| AnghaBench/linux/drivers/usb/gadget/udc/extr_renesas_usb3.c_usb3_set_halt.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function qede_ioctl
_qede_ioctl: ## @qede_ioctl
.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, %r15d
movq %rsi, %r14
movq %rdi, %rbx
callq _netdev_priv
movq %rax, %r12
movq %rbx, %rdi
callq _netif_running
testl %eax, %eax
je LBB0_1
## %bb.2:
cmpl $128, %r15d
jne LBB0_3
## %bb.5:
movq %r12, %rdi
movq %r14, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp _qede_ptp_hw_ts ## TAILCALL
LBB0_1:
movq _EAGAIN@GOTPCREL(%rip), %rcx
jmp LBB0_4
LBB0_3:
movq _QED_MSG_DEBUG@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str(%rip), %rdx
movq %r12, %rdi
movl %r15d, %ecx
callq _DP_VERBOSE
movq _EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_4:
xorl %eax, %eax
subl (%rcx), %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EAGAIN,4,2 ## @EAGAIN
.comm _QED_MSG_DEBUG,4,2 ## @QED_MSG_DEBUG
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "default IOCTL cmd 0x%x\n"
.comm _EOPNOTSUPP,4,2 ## @EOPNOTSUPP
.no_dead_strip _qede_ioctl
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function qede_ioctl
_qede_ioctl: ; @qede_ioctl
.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 x22, x0
bl _netdev_priv
mov x21, x0
mov x0, x22
bl _netif_running
cbz w0, LBB0_3
; %bb.1:
cmp w19, #128
b.ne LBB0_4
; %bb.2:
mov x0, x21
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 _qede_ptp_hw_ts
LBB0_3:
Lloh0:
adrp x8, _EAGAIN@GOTPAGE
Lloh1:
ldr x8, [x8, _EAGAIN@GOTPAGEOFF]
b LBB0_5
LBB0_4:
Lloh2:
adrp x8, _QED_MSG_DEBUG@GOTPAGE
Lloh3:
ldr x8, [x8, _QED_MSG_DEBUG@GOTPAGEOFF]
Lloh4:
ldr w1, [x8]
Lloh5:
adrp x2, l_.str@PAGE
Lloh6:
add x2, x2, l_.str@PAGEOFF
mov x0, x21
mov x3, x19
bl _DP_VERBOSE
Lloh7:
adrp x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
ldr x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_5:
ldr w8, [x8]
neg w0, w8
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh7, Lloh8
.loh AdrpAdd Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.cfi_endproc
; -- End function
.comm _EAGAIN,4,2 ; @EAGAIN
.comm _QED_MSG_DEBUG,4,2 ; @QED_MSG_DEBUG
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "default IOCTL cmd 0x%x\n"
.comm _EOPNOTSUPP,4,2 ; @EOPNOTSUPP
.no_dead_strip _qede_ioctl
.subsections_via_symbols
| AnghaBench/linux/drivers/net/ethernet/qlogic/qede/extr_qede_main.c_qede_ioctl.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function sxgbe_prepare_tx_desc
_sxgbe_prepare_tx_desc: ## @sxgbe_prepare_tx_desc
.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, 12(%rdi)
movl %edx, (%rdi)
movl %ecx, 8(%rdi)
testl %r8d, %r8d
je LBB0_2
## %bb.1:
movq _cic_full@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, 4(%rdi)
LBB0_2:
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _cic_full,4,2 ## @cic_full
.no_dead_strip _sxgbe_prepare_tx_desc
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function sxgbe_prepare_tx_desc
_sxgbe_prepare_tx_desc: ; @sxgbe_prepare_tx_desc
.cfi_startproc
; %bb.0:
str w2, [x0]
stp w3, w1, [x0, #8]
cbz w4, LBB0_2
; %bb.1:
Lloh0:
adrp x8, _cic_full@GOTPAGE
Lloh1:
ldr x8, [x8, _cic_full@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
str w8, [x0, #4]
LBB0_2:
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _cic_full,4,2 ; @cic_full
.no_dead_strip _sxgbe_prepare_tx_desc
.subsections_via_symbols
| AnghaBench/linux/drivers/net/ethernet/samsung/sxgbe/extr_sxgbe_desc.c_sxgbe_prepare_tx_desc.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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl $16424, %eax ## imm = 0x4028
callq ____chkstk_darwin
subq %rax, %rsp
popq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, -16440(%rbp) ## 8-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
leaq -16432(%rbp), %r13
movl $16384, %eax ## imm = 0x4000
movq %rax, -16448(%rbp) ## 8-byte Spill
movq $0, -16464(%rbp) ## 8-byte Folded Spill
movq _HKEY_PERFORMANCE_DATA@GOTPCREL(%rip), %rcx
leaq l_.str(%rip), %rdx
leaq -16452(%rbp), %r9
movq _ERROR_SUCCESS@GOTPCREL(%rip), %rsi
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16448(%rbp), %rax ## 8-byte Reload
movl %eax, -16452(%rbp)
movl (%rcx), %edi
movq %rdx, %r12
movq %rsi, %r14
movq %rdx, %rsi
xorl %edx, %edx
movq %rcx, %r15
xorl %ecx, %ecx
movq %r13, %r8
movq %r9, %rbx
callq _RegQueryValueExW
movq %r14, %rsi
movq %rbx, %r9
movq %r12, %rdx
movq %r15, %rcx
cmpq (%r14), %rax
je LBB0_1
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq _ERROR_MORE_DATA@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_3
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movq -16448(%rbp), %r13 ## 8-byte Reload
addq %r13, %r13
movq -16464(%rbp), %rdi ## 8-byte Reload
callq _uv__free
cmpq $1048576, %r13 ## imm = 0x100000
ja LBB0_8
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq %r13, -16448(%rbp) ## 8-byte Spill
movq %r13, %rdi
callq _uv__malloc
testq %rax, %rax
je LBB0_6
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movq %rax, %r13
movq %r13, -16464(%rbp) ## 8-byte Spill
movq %r15, %rcx
movq %r12, %rdx
movq %rbx, %r9
movq %r14, %rsi
jmp LBB0_1
LBB0_3:
movq -16440(%rbp), %rcx ## 8-byte Reload
movq $0, (%rcx)
movq %rax, %rdi
callq _uv_translate_sys_error
jmp LBB0_10
LBB0_8:
movq -16440(%rbp), %rax ## 8-byte Reload
movq $0, (%rax)
movq _UV_EIO@GOTPCREL(%rip), %rax
jmp LBB0_9
LBB0_6:
movq -16440(%rbp), %rax ## 8-byte Reload
movq $0, (%rax)
movq _UV_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
movl (%rax), %eax
LBB0_10:
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -48(%rbp), %rcx
jne LBB0_12
## %bb.11:
addq $16424, %rsp ## imm = 0x4028
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_12:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _HKEY_PERFORMANCE_DATA,4,2 ## @HKEY_PERFORMANCE_DATA
.section __TEXT,__const
.p2align 2, 0x0 ## @.str
l_.str:
.long 50 ## 0x32
.long 0 ## 0x0
.comm _ERROR_SUCCESS,8,3 ## @ERROR_SUCCESS
.comm _ERROR_MORE_DATA,8,3 ## @ERROR_MORE_DATA
.comm _UV_ENOMEM,4,2 ## @UV_ENOMEM
.comm _UV_EIO,4,2 ## @UV_EIO
.comm _PERF_NO_INSTANCES,8,3 ## @PERF_NO_INSTANCES
.comm _PERF_OBJECT_TIMER,4,2 ## @PERF_OBJECT_TIMER
.comm _UV_ENOSYS,4,2 ## @UV_ENOSYS
.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:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
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
mov w9, #16400 ; =0x4010
Lloh0:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh1:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #4, lsl #12 ; =16384
sub sp, sp, #16
.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, x0
mov x22, #0 ; =0x0
Lloh2:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh3:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
ldr x8, [x8]
stur x8, [x29, #-88]
add x23, sp, #8
mov w20, #16384 ; =0x4000
Lloh5:
adrp x24, _HKEY_PERFORMANCE_DATA@GOTPAGE
Lloh6:
ldr x24, [x24, _HKEY_PERFORMANCE_DATA@GOTPAGEOFF]
Lloh7:
adrp x21, l_.str@PAGE
Lloh8:
add x21, x21, l_.str@PAGEOFF
Lloh9:
adrp x25, _ERROR_SUCCESS@GOTPAGE
Lloh10:
ldr x25, [x25, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh11:
adrp x26, _ERROR_MORE_DATA@GOTPAGE
Lloh12:
ldr x26, [x26, _ERROR_MORE_DATA@GOTPAGEOFF]
LBB0_1: ; =>This Inner Loop Header: Depth=1
str w20, [sp, #4]
ldr w0, [x24]
add x5, sp, #4
mov x1, x21
mov x2, #0 ; =0x0
mov x3, #0 ; =0x0
mov x4, x23
bl _RegQueryValueExW
ldr x8, [x25]
cmp x0, x8
b.eq LBB0_1
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [x26]
cmp x0, x8
b.ne LBB0_6
; %bb.3: ; in Loop: Header=BB0_1 Depth=1
lsl x20, x20, #1
mov x0, x22
bl _uv__free
cmp x20, #256, lsl #12 ; =1048576
b.hi LBB0_7
; %bb.4: ; in Loop: Header=BB0_1 Depth=1
mov x0, x20
bl _uv__malloc
cbz x0, LBB0_8
; %bb.5: ; in Loop: Header=BB0_1 Depth=1
mov x23, x0
mov x22, x0
b LBB0_1
LBB0_6:
str xzr, [x19]
bl _uv_translate_sys_error
b LBB0_10
LBB0_7:
str xzr, [x19]
Lloh13:
adrp x8, _UV_EIO@GOTPAGE
Lloh14:
ldr x8, [x8, _UV_EIO@GOTPAGEOFF]
b LBB0_9
LBB0_8:
str xzr, [x19]
Lloh15:
adrp x8, _UV_ENOMEM@GOTPAGE
Lloh16:
ldr x8, [x8, _UV_ENOMEM@GOTPAGEOFF]
LBB0_9:
ldr w0, [x8]
LBB0_10:
ldur x8, [x29, #-88]
Lloh17:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh18:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_12
; %bb.11:
add sp, sp, #4, lsl #12 ; =16384
add sp, sp, #16
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_12:
bl ___stack_chk_fail
.loh AdrpLdrGot Lloh11, Lloh12
.loh AdrpLdrGot Lloh9, Lloh10
.loh AdrpAdd Lloh7, Lloh8
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh13, Lloh14
.loh AdrpLdrGot Lloh15, Lloh16
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _HKEY_PERFORMANCE_DATA,4,2 ; @HKEY_PERFORMANCE_DATA
.section __TEXT,__const
.p2align 2, 0x0 ; @.str
l_.str:
.long 50 ; 0x32
.long 0 ; 0x0
.comm _ERROR_SUCCESS,8,3 ; @ERROR_SUCCESS
.comm _ERROR_MORE_DATA,8,3 ; @ERROR_MORE_DATA
.comm _UV_ENOMEM,4,2 ; @UV_ENOMEM
.comm _UV_EIO,4,2 ; @UV_EIO
.comm _PERF_NO_INSTANCES,8,3 ; @PERF_NO_INSTANCES
.comm _PERF_OBJECT_TIMER,4,2 ; @PERF_OBJECT_TIMER
.comm _UV_ENOSYS,4,2 ; @UV_ENOSYS
.subsections_via_symbols
| assembly_file_104312.c | assembly_dataset |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _zslDeleteRangeByRank ## -- Begin function zslDeleteRangeByRank
.p2align 4, 0x90
_zslDeleteRangeByRank: ## @zslDeleteRangeByRank
.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, -72(%rbp) ## 8-byte Spill
movl %edx, %r12d
movl %esi, %r13d
movq %rdi, %rbx
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movq _ZSKIPLIST_MAXLEVEL@GOTPCREL(%rip), %rax
movl (%rax), %eax
shlq $3, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %r15
movq 8(%rbx), %rax
movq %rbx, -64(%rbp) ## 8-byte Spill
movslq (%rbx), %rcx
testq %rcx, %rcx
jle LBB0_1
## %bb.2:
movl %r13d, %edx
xorl %r13d, %r13d
.p2align 4, 0x90
LBB0_3: ## =>This Loop Header: Depth=1
## Child Loop BB0_4 Depth 2
leaq -1(%rcx), %rsi
movq %rsi, %rdi
shlq $4, %rdi
movq %r13, %r8
movq %rax, %r9
.p2align 4, 0x90
LBB0_4: ## Parent Loop BB0_3 Depth=1
## => This Inner Loop Header: Depth=2
movq %r9, %rax
movq %r8, %r13
movq 8(%r9), %r9
movq (%r9,%rdi), %r8
movq 8(%r9,%rdi), %r9
testq %r9, %r9
setne %r10b
movq %r13, %r11
subq %r8, %r11
cmpq %rdx, %r11
setb %r11b
orb %r10b, %r11b
addq %r13, %r8
testb %r11b, %r11b
jne LBB0_4
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movq %rax, (%r15,%rsi,8)
cmpq $1, %rcx
movq %rsi, %rcx
jg LBB0_3
## %bb.6:
incq %r13
jmp LBB0_7
LBB0_1:
movl $1, %r13d
LBB0_7:
movq 8(%rax), %rax
movq 8(%rax), %rbx
xorl %eax, %eax
testq %rbx, %rbx
je LBB0_12
## %bb.8:
movl %r12d, %ecx
movq %rcx, -56(%rbp) ## 8-byte Spill
cmpq %rcx, %r13
ja LBB0_12
## %bb.9:
xorl %r14d, %r14d
.p2align 4, 0x90
LBB0_10: ## =>This Inner Loop Header: Depth=1
movq %rbx, %r12
movq 8(%rbx), %rax
movq 8(%rax), %rbx
movq -64(%rbp), %rdi ## 8-byte Reload
movq %r12, %rsi
movq %r15, %rdx
callq _zslDeleteNode
movl (%r12), %esi
movq -72(%rbp), %rdi ## 8-byte Reload
callq _dictDelete
movq %r12, %rdi
callq _zslFreeNode
leaq 1(%r14), %rax
testq %rbx, %rbx
je LBB0_12
## %bb.11: ## in Loop: Header=BB0_10 Depth=1
addq %r13, %r14
cmpq -56(%rbp), %r14 ## 8-byte Folded Reload
movq %rax, %r14
jb LBB0_10
LBB0_12:
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -48(%rbp), %rcx
jne LBB0_14
## %bb.13:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_14:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _ZSKIPLIST_MAXLEVEL,4,2 ## @ZSKIPLIST_MAXLEVEL
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _zslDeleteRangeByRank ; -- Begin function zslDeleteRangeByRank
.p2align 2
_zslDeleteRangeByRank: ; @zslDeleteRangeByRank
.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
sub sp, sp, #16
.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, x3
mov x20, x0
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-72]
Lloh3:
adrp x8, _ZSKIPLIST_MAXLEVEL@GOTPAGE
Lloh4:
ldr x8, [x8, _ZSKIPLIST_MAXLEVEL@GOTPAGEOFF]
Lloh5:
ldr w8, [x8]
lsl x8, x8, #3
mov x9, x8
Lloh6:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh7:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x9, sp
add x8, x8, #15
and x8, x8, #0xffffffff0
sub x21, x9, x8
mov sp, x21
ldr x8, [x0, #8]
ldr w9, [x0]
cmp w9, #1
b.lt LBB0_6
; %bb.1:
mov x11, #0 ; =0x0
mov w10, w1
LBB0_2: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
sub x12, x9, #1
mov x14, x11
mov x13, x8
LBB0_3: ; Parent Loop BB0_2 Depth=1
; => This Inner Loop Header: Depth=2
mov x8, x13
mov x11, x14
ldr x13, [x13, #8]
add x14, x13, x12, lsl #4
ldp x14, x13, [x14]
sub x15, x11, x14
add x14, x14, x11
cmp x13, #0
ccmp x15, x10, #0, eq
b.lo LBB0_3
; %bb.4: ; in Loop: Header=BB0_2 Depth=1
str x8, [x21, x12, lsl #3]
cmp x9, #1
mov x9, x12
b.gt LBB0_2
; %bb.5:
add x24, x11, #1
b LBB0_7
LBB0_6:
mov w24, #1 ; =0x1
LBB0_7:
ldr x8, [x8, #8]
ldr x23, [x8, #8]
mov w25, w2
cmp x23, #0
mov x22, #0 ; =0x0
ccmp x24, x25, #2, ne
b.hi LBB0_9
LBB0_8: ; =>This Inner Loop Header: Depth=1
ldr x8, [x23, #8]
ldr x26, [x8, #8]
mov x0, x20
mov x1, x23
mov x2, x21
bl _zslDeleteNode
ldr w1, [x23]
mov x0, x19
bl _dictDelete
mov x0, x23
bl _zslFreeNode
add x22, x22, #1
cmp x26, #0
ccmp x24, x25, #2, ne
add x24, x24, #1
mov x23, x26
b.lo LBB0_8
LBB0_9:
ldur x8, [x29, #-72]
Lloh8:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh9:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_11
; %bb.10:
mov x0, x22
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_11:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGot Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _ZSKIPLIST_MAXLEVEL,4,2 ; @ZSKIPLIST_MAXLEVEL
.subsections_via_symbols
| assembly_file_71809.c | assembly_dataset |
.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/322220.c | stack |
.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
leaq L_str(%rip), %rdi
callq _puts
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_str: ## @str
.asciz "Hello World!"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_str@PAGE
Lloh1:
add x0, x0, l_str@PAGEOFF
bl _puts
mov w0, #0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_str: ; @str
.asciz "Hello World!"
.subsections_via_symbols
| the_stack_data/212643369.c | stack |
.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
leaq L_str(%rip), %rdi
callq _puts
callq _fork
testl %eax, %eax
jne LBB0_2
## %bb.1:
leaq L_.str.1(%rip), %rdi
leaq L_.str.2(%rip), %rdx
movq %rdi, %rsi
xorl %ecx, %ecx
xorl %eax, %eax
callq _execlp
xorl %edi, %edi
callq _exit
LBB0_2:
jns LBB0_3
## %bb.5:
leaq L_str.4(%rip), %rdi
callq _puts
movl $1, %edi
callq _exit
LBB0_3:
xorl %edi, %edi
callq _wait
xorl %edi, %edi
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str.1: ## @.str.1
.asciz "ps"
L_.str.2: ## @.str.2
.asciz "-ax"
L_str: ## @str
.asciz "Running ps with fork"
L_str.4: ## @str.4
.asciz "fork failed."
.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, #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 x0, l_str@PAGE
Lloh1:
add x0, x0, l_str@PAGEOFF
bl _puts
bl _fork
cbnz w0, LBB0_2
; %bb.1:
Lloh2:
adrp x8, l_.str.2@PAGE
Lloh3:
add x8, x8, l_.str.2@PAGEOFF
stp x8, xzr, [sp]
Lloh4:
adrp x0, l_.str.1@PAGE
Lloh5:
add x0, x0, l_.str.1@PAGEOFF
mov x1, x0
bl _execlp
mov w0, #0
bl _exit
LBB0_2:
tbz w0, #31, LBB0_4
; %bb.3:
Lloh6:
adrp x0, l_str.4@PAGE
Lloh7:
add x0, x0, l_str.4@PAGEOFF
bl _puts
mov w0, #1
bl _exit
LBB0_4:
mov x0, #0
bl _wait
mov w0, #0
bl _exit
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh6, Lloh7
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str.1: ; @.str.1
.asciz "ps"
l_.str.2: ; @.str.2
.asciz "-ax"
l_str: ; @str
.asciz "Running ps with fork"
l_str.4: ; @str.4
.asciz "fork failed."
.subsections_via_symbols
| the_stack_data/1051003.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function niu_init_classifier_hw
_niu_init_classifier_hw: ## @niu_init_classifier_hw
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %r15
movq 40(%rdi), %r12
movq _H1POLY@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl 36(%r15), %esi
callq _nw64
movq _H2POLY@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl 32(%r15), %esi
callq _nw64
movq %r15, %rdi
callq _niu_init_hostinfo
testl %eax, %eax
je LBB0_1
LBB0_16:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_1:
movq _ENET_VLAN_TBL_NUM_ENTRIES@GOTPCREL(%rip), %r14
cmpl $0, (%r14)
jle LBB0_4
## %bb.2:
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq 24(%r15), %rax
movl (%r15), %edx
movl (%rax,%rbx,8), %r8d
movl 4(%rax,%rbx,8), %ecx
movq %r15, %rdi
movl %ebx, %esi
callq _vlan_tbl_write
incq %rbx
movslq (%r14), %rax
cmpq %rax, %rbx
jl LBB0_3
LBB0_4:
cmpl $0, 8(%r15)
jle LBB0_8
## %bb.5:
movl $8, %ebx
xorl %r14d, %r14d
.p2align 4, 0x90
LBB0_7: ## =>This Inner Loop Header: Depth=1
movq 16(%r15), %rax
movl (%rax,%rbx), %esi
movl -8(%rax,%rbx), %ecx
movl -4(%rax,%rbx), %edx
movq %r15, %rdi
callq _niu_set_alt_mac_rdc_table
testl %eax, %eax
jne LBB0_16
## %bb.6: ## in Loop: Header=BB0_7 Depth=1
incq %r14
movslq 8(%r15), %rax
addq $12, %rbx
cmpq %rax, %r14
jl LBB0_7
LBB0_8:
movq _CLASS_CODE_USER_PROG1@GOTPCREL(%rip), %rax
movl (%rax), %r14d
movq _CLASS_CODE_SCTP_IPV6@GOTPCREL(%rip), %rax
cmpl (%rax), %r14d
jle LBB0_9
LBB0_14:
movq %r15, %rdi
callq _niu_set_ip_frag_rule
testl %eax, %eax
jne LBB0_16
## %bb.15:
movq %r15, %rdi
movl $1, %esi
callq _tcam_enable
xorl %eax, %eax
jmp LBB0_16
LBB0_9:
movq 8(%r12), %rax
movl (%rax), %edx
movq %r15, %rdi
movl %r14d, %esi
callq _niu_set_tcam_key
testl %eax, %eax
jne LBB0_16
## %bb.10:
incl %r14d
xorl %r13d, %r13d
.p2align 4, 0x90
LBB0_13: ## =>This Inner Loop Header: Depth=1
leal -1(%r14), %ebx
movq (%r12), %rax
movl (%rax,%r13,4), %edx
movq %r15, %rdi
movl %ebx, %esi
callq _niu_set_flow_key
testl %eax, %eax
jne LBB0_16
## %bb.11: ## in Loop: Header=BB0_13 Depth=1
movq _CLASS_CODE_SCTP_IPV6@GOTPCREL(%rip), %rax
cmpl (%rax), %ebx
jge LBB0_14
## %bb.12: ## in Loop: Header=BB0_13 Depth=1
movl %r14d, %eax
movq _CLASS_CODE_USER_PROG1@GOTPCREL(%rip), %rcx
subl (%rcx), %eax
movq 8(%r12), %rcx
movslq %eax, %r13
movl (%rcx,%r13,4), %edx
movq %r15, %rdi
movl %r14d, %esi
callq _niu_set_tcam_key
incl %r14d
testl %eax, %eax
je LBB0_13
jmp LBB0_16
.cfi_endproc
## -- End function
.comm _H1POLY,4,2 ## @H1POLY
.comm _H2POLY,4,2 ## @H2POLY
.comm _ENET_VLAN_TBL_NUM_ENTRIES,4,2 ## @ENET_VLAN_TBL_NUM_ENTRIES
.comm _CLASS_CODE_USER_PROG1,4,2 ## @CLASS_CODE_USER_PROG1
.comm _CLASS_CODE_SCTP_IPV6,4,2 ## @CLASS_CODE_SCTP_IPV6
.no_dead_strip _niu_init_classifier_hw
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function niu_init_classifier_hw
_niu_init_classifier_hw: ; @niu_init_classifier_hw
.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 x22, [x0, #40]
Lloh0:
adrp x8, _H1POLY@GOTPAGE
Lloh1:
ldr x8, [x8, _H1POLY@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
ldr w1, [x19, #36]
bl _nw64
Lloh3:
adrp x8, _H2POLY@GOTPAGE
Lloh4:
ldr x8, [x8, _H2POLY@GOTPAGEOFF]
Lloh5:
ldr w0, [x8]
ldr w1, [x19, #32]
bl _nw64
mov x0, x19
bl _niu_init_hostinfo
cbz w0, LBB0_2
LBB0_1:
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_2:
Lloh6:
adrp x21, _ENET_VLAN_TBL_NUM_ENTRIES@GOTPAGE
Lloh7:
ldr x21, [x21, _ENET_VLAN_TBL_NUM_ENTRIES@GOTPAGEOFF]
ldr w8, [x21]
cmp w8, #1
b.lt LBB0_5
; %bb.3:
mov x23, #0
mov x20, #0
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr x8, [x19, #24]
ldr w2, [x19]
add x8, x8, x23
ldp w4, w3, [x8]
mov x0, x19
mov x1, x20
bl _vlan_tbl_write
add x20, x20, #1
ldrsw x8, [x21]
add x23, x23, #8
cmp x20, x8
b.lt LBB0_4
LBB0_5:
ldr w8, [x19, #8]
cmp w8, #1
b.lt LBB0_9
; %bb.6:
mov x20, #0
mov x21, #0
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldr x8, [x19, #16]
add x8, x8, x20
ldp w2, w1, [x8, #4]
ldr w3, [x8]
mov x0, x19
bl _niu_set_alt_mac_rdc_table
cbnz w0, LBB0_1
; %bb.8: ; in Loop: Header=BB0_7 Depth=1
add x21, x21, #1
ldrsw x8, [x19, #8]
add x20, x20, #12
cmp x21, x8
b.lt LBB0_7
LBB0_9:
Lloh8:
adrp x23, _CLASS_CODE_USER_PROG1@GOTPAGE
Lloh9:
ldr x23, [x23, _CLASS_CODE_USER_PROG1@GOTPAGEOFF]
ldr w20, [x23]
Lloh10:
adrp x24, _CLASS_CODE_SCTP_IPV6@GOTPAGE
Lloh11:
ldr x24, [x24, _CLASS_CODE_SCTP_IPV6@GOTPAGEOFF]
ldr w8, [x24]
cmp w20, w8
b.le LBB0_12
LBB0_10:
mov x0, x19
bl _niu_set_ip_frag_rule
cbnz w0, LBB0_1
; %bb.11:
mov x0, x19
mov w1, #1
bl _tcam_enable
mov w0, #0
b LBB0_1
LBB0_12:
ldr x8, [x22, #8]
ldr w2, [x8]
mov x0, x19
mov x1, x20
bl _niu_set_tcam_key
cbnz w0, LBB0_1
; %bb.13:
mov x25, #0
add w20, w20, #1
LBB0_14: ; =>This Inner Loop Header: Depth=1
sub w21, w20, #1
ldr x8, [x22]
ldr w2, [x8, x25, lsl #2]
mov x0, x19
mov x1, x21
bl _niu_set_flow_key
cbnz w0, LBB0_1
; %bb.15: ; in Loop: Header=BB0_14 Depth=1
ldr w8, [x24]
cmp w21, w8
b.ge LBB0_10
; %bb.16: ; in Loop: Header=BB0_14 Depth=1
ldr w8, [x23]
sub w8, w20, w8
ldr x9, [x22, #8]
sxtw x25, w8
ldr w2, [x9, w8, sxtw #2]
mov x0, x19
mov x1, x20
bl _niu_set_tcam_key
add w20, w20, #1
cbz w0, LBB0_14
b LBB0_1
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGot Lloh10, Lloh11
.loh AdrpLdrGot Lloh8, Lloh9
.cfi_endproc
; -- End function
.comm _H1POLY,4,2 ; @H1POLY
.comm _H2POLY,4,2 ; @H2POLY
.comm _ENET_VLAN_TBL_NUM_ENTRIES,4,2 ; @ENET_VLAN_TBL_NUM_ENTRIES
.comm _CLASS_CODE_USER_PROG1,4,2 ; @CLASS_CODE_USER_PROG1
.comm _CLASS_CODE_SCTP_IPV6,4,2 ; @CLASS_CODE_SCTP_IPV6
.no_dead_strip _niu_init_classifier_hw
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/drivers/net/extr_niu.c_niu_init_classifier_hw.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function tune_hp_mute_led
_tune_hp_mute_led: ## @tune_hp_mute_led
.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, %rbx
leaq L_.str(%rip), %rsi
xorl %r14d, %r14d
xorl %edx, %edx
callq _ctl_find
movq %rax, %r15
leaq L_.str.1(%rip), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq _ctl_find
testq %r15, %r15
je LBB0_2
## %bb.1:
testq %rax, %rax
je LBB0_2
## %bb.3:
movq _hp_master_mute_sw_put@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl %ecx, (%r15)
movq _bind_hp_volsw_put@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl %ecx, (%rax)
leaq L_.str.2(%rip), %rsi
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %edx, %edx
callq _snd_ac97_remove_ctl
leaq L_.str.3(%rip), %r15
leaq L_.str.4(%rip), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq _snd_ac97_remove_ctl
leaq L_.str.5(%rip), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq _snd_ac97_remove_ctl
movq _AC97_POWERDOWN@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq %rbx, %rdi
movl $32768, %edx ## imm = 0x8000
movl $32768, %ecx ## imm = 0x8000
callq _snd_ac97_update_bits
jmp LBB0_4
LBB0_2:
movq _ENOENT@GOTPCREL(%rip), %rax
subl (%rax), %r14d
LBB0_4:
movl %r14d, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Master Playback Switch"
L_.str.1: ## @.str.1
.asciz "Master Playback Volume"
.comm _ENOENT,4,2 ## @ENOENT
.comm _hp_master_mute_sw_put,4,2 ## @hp_master_mute_sw_put
.comm _bind_hp_volsw_put,4,2 ## @bind_hp_volsw_put
L_.str.2: ## @.str.2
.asciz "External Amplifier"
L_.str.3: ## @.str.3
.asciz "Headphone Playback"
L_.str.4: ## @.str.4
.asciz "Switch"
L_.str.5: ## @.str.5
.asciz "Volume"
.comm _AC97_POWERDOWN,4,2 ## @AC97_POWERDOWN
.no_dead_strip _tune_hp_mute_led
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function tune_hp_mute_led
_tune_hp_mute_led: ; @tune_hp_mute_led
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
mov x2, #0
bl _ctl_find
mov x20, x0
Lloh2:
adrp x1, l_.str.1@PAGE
Lloh3:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x19
mov x2, #0
bl _ctl_find
cmp x20, #0
ccmp x0, #0, #4, ne
b.ne LBB0_2
; %bb.1:
Lloh4:
adrp x8, _ENOENT@GOTPAGE
Lloh5:
ldr x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh6:
ldr w8, [x8]
neg w0, w8
b LBB0_3
LBB0_2:
Lloh7:
adrp x8, _hp_master_mute_sw_put@GOTPAGE
Lloh8:
ldr x8, [x8, _hp_master_mute_sw_put@GOTPAGEOFF]
Lloh9:
ldr w8, [x8]
str w8, [x20]
Lloh10:
adrp x8, _bind_hp_volsw_put@GOTPAGE
Lloh11:
ldr x8, [x8, _bind_hp_volsw_put@GOTPAGEOFF]
Lloh12:
ldr w8, [x8]
str w8, [x0]
Lloh13:
adrp x1, l_.str.2@PAGE
Lloh14:
add x1, x1, l_.str.2@PAGEOFF
mov x0, x19
mov x2, #0
bl _snd_ac97_remove_ctl
Lloh15:
adrp x20, l_.str.3@PAGE
Lloh16:
add x20, x20, l_.str.3@PAGEOFF
Lloh17:
adrp x2, l_.str.4@PAGE
Lloh18:
add x2, x2, l_.str.4@PAGEOFF
mov x0, x19
mov x1, x20
bl _snd_ac97_remove_ctl
Lloh19:
adrp x2, l_.str.5@PAGE
Lloh20:
add x2, x2, l_.str.5@PAGEOFF
mov x0, x19
mov x1, x20
bl _snd_ac97_remove_ctl
Lloh21:
adrp x8, _AC97_POWERDOWN@GOTPAGE
Lloh22:
ldr x8, [x8, _AC97_POWERDOWN@GOTPAGEOFF]
Lloh23:
ldr w1, [x8]
mov x0, x19
mov w2, #32768
mov w3, #32768
bl _snd_ac97_update_bits
mov w0, #0
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23
.loh AdrpAdd Lloh19, Lloh20
.loh AdrpAdd Lloh17, Lloh18
.loh AdrpAdd Lloh15, Lloh16
.loh AdrpAdd Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Master Playback Switch"
l_.str.1: ; @.str.1
.asciz "Master Playback Volume"
.comm _ENOENT,4,2 ; @ENOENT
.comm _hp_master_mute_sw_put,4,2 ; @hp_master_mute_sw_put
.comm _bind_hp_volsw_put,4,2 ; @bind_hp_volsw_put
l_.str.2: ; @.str.2
.asciz "External Amplifier"
l_.str.3: ; @.str.3
.asciz "Headphone Playback"
l_.str.4: ; @.str.4
.asciz "Switch"
l_.str.5: ; @.str.5
.asciz "Volume"
.comm _AC97_POWERDOWN,4,2 ; @AC97_POWERDOWN
.no_dead_strip _tune_hp_mute_led
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/sound/pci/ac97/extr_ac97_codec.c_tune_hp_mute_led.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ds2782_get_capacity
_ds2782_get_capacity: ## @ds2782_get_capacity
.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
movq _DS2782_REG_RARC@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq -12(%rbp), %rdx
callq _ds2782_read_reg
testl %eax, %eax
jne LBB0_2
## %bb.1:
movl -12(%rbp), %eax
movl %eax, (%rbx)
LBB0_2:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _DS2782_REG_RARC,4,2 ## @DS2782_REG_RARC
.no_dead_strip _ds2782_get_capacity
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ds2782_get_capacity
_ds2782_get_capacity: ; @ds2782_get_capacity
.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
Lloh0:
adrp x8, _DS2782_REG_RARC@GOTPAGE
Lloh1:
ldr x8, [x8, _DS2782_REG_RARC@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
add x2, sp, #12
bl _ds2782_read_reg
cbnz w0, LBB0_2
; %bb.1:
ldr w0, [sp, #12]
str w0, [x19]
LBB0_2:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #48
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _DS2782_REG_RARC,4,2 ; @DS2782_REG_RARC
.no_dead_strip _ds2782_get_capacity
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/drivers/power/extr_ds2782_battery.c_ds2782_get_capacity.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function pb0100_set_natural
_pb0100_set_natural: ## @pb0100_set_natural
.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 _NATURAL_IDX@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movl %esi, (%rax,%rcx,4)
movq _AUTOGAIN_IDX@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movl (%rax,%rcx,4), %esi
popq %rbp
jmp _pb0100_set_autogain ## TAILCALL
.cfi_endproc
## -- End function
.comm _NATURAL_IDX,8,3 ## @NATURAL_IDX
.comm _AUTOGAIN_IDX,8,3 ## @AUTOGAIN_IDX
.no_dead_strip _pb0100_set_natural
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function pb0100_set_natural
_pb0100_set_natural: ; @pb0100_set_natural
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _NATURAL_IDX@GOTPAGE
Lloh1:
ldr x8, [x8, _NATURAL_IDX@GOTPAGEOFF]
ldr x9, [x0]
Lloh2:
ldr x8, [x8]
str w1, [x9, x8, lsl #2]
Lloh3:
adrp x8, _AUTOGAIN_IDX@GOTPAGE
Lloh4:
ldr x8, [x8, _AUTOGAIN_IDX@GOTPAGEOFF]
Lloh5:
ldr x8, [x8]
ldr w1, [x9, x8, lsl #2]
b _pb0100_set_autogain
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _NATURAL_IDX,8,3 ; @NATURAL_IDX
.comm _AUTOGAIN_IDX,8,3 ; @AUTOGAIN_IDX
.no_dead_strip _pb0100_set_natural
.subsections_via_symbols
| AnghaBench/fastsocket/kernel/drivers/media/video/gspca/stv06xx/extr_stv06xx_pb0100.c_pb0100_set_natural.c | anghabench |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _record_inet6_address_name_match ## -- Begin function record_inet6_address_name_match
.p2align 4, 0x90
_record_inet6_address_name_match: ## @record_inet6_address_name_match
.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 _record_inet_address_name_match ## -- Begin function record_inet_address_name_match
.p2align 4, 0x90
_record_inet_address_name_match: ## @record_inet_address_name_match
.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 _record_sa_address_name_match ## -- Begin function record_sa_address_name_match
.p2align 4, 0x90
_record_sa_address_name_match: ## @record_sa_address_name_match
.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 _record_hostent ## -- Begin function record_hostent
.p2align 4, 0x90
_record_hostent: ## @record_hostent
.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 _record_inet6_address_name_match ; -- Begin function record_inet6_address_name_match
.p2align 2
_record_inet6_address_name_match: ; @record_inet6_address_name_match
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.globl _record_inet_address_name_match ; -- Begin function record_inet_address_name_match
.p2align 2
_record_inet_address_name_match: ; @record_inet_address_name_match
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.globl _record_sa_address_name_match ; -- Begin function record_sa_address_name_match
.p2align 2
_record_sa_address_name_match: ; @record_sa_address_name_match
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.globl _record_hostent ; -- Begin function record_hostent
.p2align 2
_record_hostent: ; @record_hostent
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| the_stack_data/100140883.c | stack |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _evhttp_connection_free ## -- Begin function evhttp_connection_free
.p2align 4, 0x90
_evhttp_connection_free: ## @evhttp_connection_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 %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
cmpl $-1, (%rdi)
je LBB0_4
## %bb.1:
movq %r14, %rdi
callq _evhttp_connected
testq %rax, %rax
je LBB0_4
## %bb.2:
movq 56(%r14), %rax
testq %rax, %rax
je LBB0_4
## %bb.3:
movl 52(%r14), %esi
movq %r14, %rdi
callq *%rax
LBB0_4:
leaq 48(%r14), %rbx
.p2align 4, 0x90
LBB0_6: ## =>This Inner Loop Header: Depth=1
movq %rbx, %rdi
callq _TAILQ_FIRST
testq %rax, %rax
je LBB0_7
## %bb.5: ## in Loop: Header=BB0_6 Depth=1
movq %r14, %rdi
movq %rax, %rsi
callq _evhttp_request_free_
jmp LBB0_6
LBB0_7:
movq 40(%r14), %rdi
testq %rdi, %rdi
je LBB0_9
## %bb.8:
movq _next@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq %r14, %rsi
callq _TAILQ_REMOVE
LBB0_9:
leaq 36(%r14), %rbx
movq %rbx, %rdi
callq _event_initialized
testq %rax, %rax
je LBB0_11
## %bb.10:
movq %rbx, %rdi
callq _event_del
movq %rbx, %rdi
callq _event_debug_unassign
LBB0_11:
movq 24(%r14), %rdi
testq %rdi, %rdi
je LBB0_13
## %bb.12:
callq _bufferevent_free
LBB0_13:
movq %r14, %rdi
callq _get_deferred_queue
leaq 32(%r14), %rsi
movl %eax, %edi
callq _event_deferred_cb_cancel_
cmpl $-1, (%r14)
jne LBB0_15
## %bb.14:
movq 24(%r14), %rdi
callq _bufferevent_getfd
movl %eax, (%r14)
cmpl $-1, %eax
je LBB0_17
LBB0_15:
movq 24(%r14), %rdi
movq _EV_READ@GOTPCREL(%rip), %rax
movq _EV_WRITE@GOTPCREL(%rip), %rcx
movl (%rcx), %esi
orl (%rax), %esi
callq _bufferevent_disable
movl (%r14), %edi
movq _EVUTIL_SHUT_WR@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _shutdown
movq 24(%r14), %rdi
callq _bufferevent_get_options_
movq _BEV_OPT_CLOSE_ON_FREE@GOTPCREL(%rip), %rcx
testl %eax, (%rcx)
jne LBB0_17
## %bb.16:
movl (%r14), %edi
callq _evutil_closesocket
LBB0_17:
movq 16(%r14), %rdi
testq %rdi, %rdi
je LBB0_19
## %bb.18:
callq _mm_free
LBB0_19:
movq 8(%r14), %rdi
testq %rdi, %rdi
je LBB0_21
## %bb.20:
callq _mm_free
LBB0_21:
movq %r14, %rdi
popq %rbx
popq %r14
popq %rbp
jmp _mm_free ## TAILCALL
.cfi_endproc
## -- End function
.comm _next,4,2 ## @next
.comm _EV_READ,4,2 ## @EV_READ
.comm _EV_WRITE,4,2 ## @EV_WRITE
.comm _EVUTIL_SHUT_WR,4,2 ## @EVUTIL_SHUT_WR
.comm _BEV_OPT_CLOSE_ON_FREE,4,2 ## @BEV_OPT_CLOSE_ON_FREE
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _evhttp_connection_free ; -- Begin function evhttp_connection_free
.p2align 2
_evhttp_connection_free: ; @evhttp_connection_free
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
ldr w8, [x0]
cmn w8, #1
b.eq LBB0_4
; %bb.1:
mov x0, x19
bl _evhttp_connected
cbz x0, LBB0_4
; %bb.2:
ldr x8, [x19, #56]
cbz x8, LBB0_4
; %bb.3:
ldr w1, [x19, #52]
mov x0, x19
blr x8
LBB0_4:
add x20, x19, #48
mov x0, x20
bl _TAILQ_FIRST
cbz x0, LBB0_7
; %bb.5:
mov x1, x0
LBB0_6: ; =>This Inner Loop Header: Depth=1
mov x0, x19
bl _evhttp_request_free_
mov x0, x20
bl _TAILQ_FIRST
mov x1, x0
cbnz x0, LBB0_6
LBB0_7:
ldr x0, [x19, #40]
cbz x0, LBB0_9
; %bb.8:
Lloh0:
adrp x8, _next@GOTPAGE
Lloh1:
ldr x8, [x8, _next@GOTPAGEOFF]
Lloh2:
ldr w2, [x8]
mov x1, x19
bl _TAILQ_REMOVE
LBB0_9:
add x20, x19, #36
mov x0, x20
bl _event_initialized
cbz x0, LBB0_11
; %bb.10:
mov x0, x20
bl _event_del
mov x0, x20
bl _event_debug_unassign
LBB0_11:
ldr x0, [x19, #24]
cbz x0, LBB0_13
; %bb.12:
bl _bufferevent_free
LBB0_13:
mov x0, x19
bl _get_deferred_queue
add x1, x19, #32
bl _event_deferred_cb_cancel_
ldr w8, [x19]
cmn w8, #1
b.ne LBB0_15
; %bb.14:
ldr x0, [x19, #24]
bl _bufferevent_getfd
str w0, [x19]
cmn w0, #1
b.eq LBB0_16
LBB0_15:
Lloh3:
adrp x8, _EV_READ@GOTPAGE
Lloh4:
ldr x8, [x8, _EV_READ@GOTPAGEOFF]
ldr x0, [x19, #24]
Lloh5:
ldr w8, [x8]
Lloh6:
adrp x9, _EV_WRITE@GOTPAGE
Lloh7:
ldr x9, [x9, _EV_WRITE@GOTPAGEOFF]
Lloh8:
ldr w9, [x9]
orr w1, w9, w8
bl _bufferevent_disable
ldr w0, [x19]
Lloh9:
adrp x8, _EVUTIL_SHUT_WR@GOTPAGE
Lloh10:
ldr x8, [x8, _EVUTIL_SHUT_WR@GOTPAGEOFF]
Lloh11:
ldr w1, [x8]
bl _shutdown
ldr x0, [x19, #24]
bl _bufferevent_get_options_
Lloh12:
adrp x8, _BEV_OPT_CLOSE_ON_FREE@GOTPAGE
Lloh13:
ldr x8, [x8, _BEV_OPT_CLOSE_ON_FREE@GOTPAGEOFF]
Lloh14:
ldr w8, [x8]
tst w8, w0
b.eq LBB0_21
LBB0_16:
ldr x0, [x19, #16]
cbz x0, LBB0_18
LBB0_17:
bl _mm_free
LBB0_18:
ldr x0, [x19, #8]
cbz x0, LBB0_20
; %bb.19:
bl _mm_free
LBB0_20:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _mm_free
LBB0_21:
ldr w0, [x19]
bl _evutil_closesocket
ldr x0, [x19, #16]
cbnz x0, LBB0_17
b LBB0_18
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.cfi_endproc
; -- End function
.comm _next,4,2 ; @next
.comm _EV_READ,4,2 ; @EV_READ
.comm _EV_WRITE,4,2 ; @EV_WRITE
.comm _EVUTIL_SHUT_WR,4,2 ; @EVUTIL_SHUT_WR
.comm _BEV_OPT_CLOSE_ON_FREE,4,2 ; @BEV_OPT_CLOSE_ON_FREE
.subsections_via_symbols
| AnghaBench/freebsd/contrib/libevent/extr_http.c_evhttp_connection_free.c | anghabench |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.