x86
stringlengths 122
99k
| arm
stringlengths 122
86.4k
|
---|---|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function close_files
_close_files: ## @close_files
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %rbx
callq _files_fdtable
movq %rax, %r14
movl (%rax), %eax
testl %eax, %eax
jle LBB0_10
## %bb.1:
xorl %r12d, %r12d
xorl %ecx, %ecx
jmp LBB0_4
.p2align 4, 0x90
LBB0_2: ## in Loop: Header=BB0_4 Depth=1
movl (%r14), %eax
LBB0_3: ## in Loop: Header=BB0_4 Depth=1
decq %r12
movq ___NFDBITS@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
imull %r12d, %ecx
cmpl %eax, %ecx
jge LBB0_10
LBB0_4: ## =>This Loop Header: Depth=1
## Child Loop BB0_6 Depth 2
movq 16(%r14), %rdx
movq (%rdx), %rdx
movq (%rdx,%r12,8), %r13
testq %r13, %r13
je LBB0_3
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movslq %ecx, %r15
shlq $2, %r15
jmp LBB0_6
.p2align 4, 0x90
LBB0_9: ## in Loop: Header=BB0_6 Depth=2
movq %r13, %rax
shrq %rax
addq $4, %r15
cmpq $2, %r13
movq %rax, %r13
jb LBB0_2
LBB0_6: ## Parent Loop BB0_4 Depth=1
## => This Inner Loop Header: Depth=2
testb $1, %r13b
je LBB0_9
## %bb.7: ## in Loop: Header=BB0_6 Depth=2
movq 8(%r14), %rdi
addq %r15, %rdi
xorl %esi, %esi
callq _xchg
testq %rax, %rax
je LBB0_9
## %bb.8: ## in Loop: Header=BB0_6 Depth=2
movq %rax, %rdi
movq %rbx, %rsi
callq _filp_close
xorl %eax, %eax
callq _cond_resched
jmp LBB0_9
LBB0_10:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm ___NFDBITS,4,2 ## @__NFDBITS
.no_dead_strip _close_files
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function close_files
_close_files: ; @close_files
.cfi_startproc
; %bb.0:
stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
mov x19, x0
bl _files_fdtable
ldr w8, [x0]
cmp w8, #1
b.lt LBB0_10
; %bb.1:
mov x20, x0
mov x21, #0 ; =0x0
mov w9, #0 ; =0x0
Lloh0:
adrp x22, ___NFDBITS@GOTPAGE
Lloh1:
ldr x22, [x22, ___NFDBITS@GOTPAGEOFF]
b LBB0_4
LBB0_2: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [x20]
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
sub x21, x21, #1
ldr w9, [x22]
mul w9, w9, w21
cmp w9, w8
b.ge LBB0_10
LBB0_4: ; =>This Loop Header: Depth=1
; Child Loop BB0_7 Depth 2
ldr x10, [x20, #16]
ldr x10, [x10]
ldr x23, [x10, x21, lsl #3]
cbz x23, LBB0_3
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
sbfiz x24, x9, #2, #32
b LBB0_7
LBB0_6: ; in Loop: Header=BB0_7 Depth=2
lsr x8, x23, #1
add x24, x24, #4
cmp x23, #2
mov x23, x8
b.lo LBB0_2
LBB0_7: ; Parent Loop BB0_4 Depth=1
; => This Inner Loop Header: Depth=2
tbz w23, #0, LBB0_6
; %bb.8: ; in Loop: Header=BB0_7 Depth=2
ldr x8, [x20, #8]
add x0, x8, x24
mov x1, #0 ; =0x0
bl _xchg
cbz x0, LBB0_6
; %bb.9: ; in Loop: Header=BB0_7 Depth=2
mov x1, x19
bl _filp_close
bl _cond_resched
b LBB0_6
LBB0_10:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm ___NFDBITS,4,2 ; @__NFDBITS
.no_dead_strip _close_files
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function pump_io_round
_pump_io_round: ## @pump_io_round
.cfi_startproc
## %bb.0:
testl %esi, %esi
js LBB0_1
## %bb.3:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %esi, %r15d
movq %rdi, %rbx
leal 1(%r15), %esi
xorl %eax, %eax
movq %rdx, %rcx
.p2align 4, 0x90
LBB0_4: ## =>This Inner Loop Header: Depth=1
movq (%rdi), %r8
testq %r8, %r8
js LBB0_6
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movq %r8, (%rcx)
movl 8(%rdi), %r8d
movl %r8d, 8(%rcx)
incq %rax
movq %rcx, 48(%rdi)
addq $56, %rdi
addq $16, %rcx
cmpq %rax, %rsi
jne LBB0_4
jmp LBB0_9
LBB0_1:
xorl %eax, %eax
retq
LBB0_6:
testq %rax, %rax
je LBB0_7
## %bb.8:
movl %eax, %esi
LBB0_9:
movq %rdx, %rdi
## kill: def $esi killed $esi killed $rsi
movl $-1, %edx
callq _poll
testq %rax, %rax
jns LBB0_12
## %bb.10:
movq _errno@GOTPCREL(%rip), %rax
movq (%rax), %rdx
movq _EINTR@GOTPCREL(%rip), %rcx
movl $1, %eax
cmpq (%rcx), %rdx
je LBB0_28
## %bb.11:
leaq L_.str(%rip), %rdi
callq _die_errno
LBB0_12:
movl $1, %eax
testl %r15d, %r15d
je LBB0_28
## %bb.13:
movl %r15d, %eax
imulq $56, %rax, %r15
xorl %r12d, %r12d
movq _POLLIN@GOTPCREL(%rip), %r14
movq _POLLNVAL@GOTPCREL(%rip), %r13
jmp LBB0_14
LBB0_23: ## in Loop: Header=BB0_14 Depth=1
movq _errno@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, 16(%rbx,%r12)
LBB0_25: ## in Loop: Header=BB0_14 Depth=1
movq (%rbx,%r12), %rdi
callq _close
movq $-1, (%rbx,%r12)
.p2align 4, 0x90
LBB0_26: ## in Loop: Header=BB0_14 Depth=1
addq $56, %r12
cmpq %r12, %r15
je LBB0_27
LBB0_14: ## =>This Inner Loop Header: Depth=1
movq (%rbx,%r12), %rdi
testq %rdi, %rdi
js LBB0_26
## %bb.15: ## in Loop: Header=BB0_14 Depth=1
movq 48(%rbx,%r12), %rcx
movl (%r14), %edx
movq _POLLHUP@GOTPCREL(%rip), %rax
orl (%rax), %edx
movq _POLLERR@GOTPCREL(%rip), %rax
orl (%rax), %edx
orl (%r13), %edx
movq _POLLOUT@GOTPCREL(%rip), %rax
movl (%rax), %eax
orl %eax, %edx
testl %edx, 12(%rcx)
je LBB0_26
## %bb.16: ## in Loop: Header=BB0_14 Depth=1
cmpl %eax, 8(%rbx,%r12)
jne LBB0_21
## %bb.17: ## in Loop: Header=BB0_14 Depth=1
movl 40(%rbx,%r12), %esi
movq 32(%rbx,%r12), %rdx
callq _xwrite
testq %rax, %rax
js LBB0_18
## %bb.19: ## in Loop: Header=BB0_14 Depth=1
addl %eax, 40(%rbx,%r12)
subq %rax, 32(%rbx,%r12)
je LBB0_20
jmp LBB0_21
LBB0_18: ## in Loop: Header=BB0_14 Depth=1
movq _errno@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, 16(%rbx,%r12)
LBB0_20: ## in Loop: Header=BB0_14 Depth=1
movq (%rbx,%r12), %rdi
callq _close
movq $-1, (%rbx,%r12)
LBB0_21: ## in Loop: Header=BB0_14 Depth=1
movl 8(%rbx,%r12), %eax
cmpl (%r14), %eax
jne LBB0_26
## %bb.22: ## in Loop: Header=BB0_14 Depth=1
movl 28(%rbx,%r12), %edi
movl (%rbx,%r12), %esi
movl 24(%rbx,%r12), %edx
callq _strbuf_read_once
testq %rax, %rax
js LBB0_23
## %bb.24: ## in Loop: Header=BB0_14 Depth=1
jne LBB0_26
jmp LBB0_25
LBB0_27:
movl $1, %eax
jmp LBB0_28
LBB0_7:
xorl %eax, %eax
LBB0_28:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _errno,8,3 ## @errno
.comm _EINTR,8,3 ## @EINTR
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "poll failed"
.comm _POLLOUT,4,2 ## @POLLOUT
.comm _POLLIN,4,2 ## @POLLIN
.comm _POLLHUP,4,2 ## @POLLHUP
.comm _POLLERR,4,2 ## @POLLERR
.comm _POLLNVAL,4,2 ## @POLLNVAL
.no_dead_strip _pump_io_round
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function pump_io_round
_pump_io_round: ; @pump_io_round
.cfi_startproc
; %bb.0:
tbnz w1, #31, LBB0_5
; %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 x20, x1
mov x19, x0
mov w1, #0 ; =0x0
mov x8, #0 ; =0x0
add w9, w20, #1
mov w10, #56 ; =0x38
umull x10, w9, w10
mov x11, x2
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldr x12, [x19, x8]
tbnz x12, #63, LBB0_6
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
str x12, [x11]
add x12, x19, x8
ldr w13, [x12, #8]
str w13, [x11, #8]
str x11, [x12, #48]
add x8, x8, #56
add w1, w1, #1
add x11, x11, #16
cmp x10, x8
b.ne LBB0_2
; %bb.4:
mov x1, x9
b LBB0_7
LBB0_5:
mov w0, #0 ; =0x0
ret
LBB0_6:
cbz x8, LBB0_27
LBB0_7:
mov x0, x2
mov w2, #-1 ; =0xffffffff
bl _poll
tbnz x0, #63, LBB0_23
; %bb.8:
cbz w20, LBB0_25
LBB0_9:
Lloh0:
adrp x21, _POLLOUT@GOTPAGE
Lloh1:
ldr x21, [x21, _POLLOUT@GOTPAGEOFF]
Lloh2:
adrp x22, _POLLIN@GOTPAGE
Lloh3:
ldr x22, [x22, _POLLIN@GOTPAGEOFF]
Lloh4:
adrp x23, _POLLHUP@GOTPAGE
Lloh5:
ldr x23, [x23, _POLLHUP@GOTPAGEOFF]
Lloh6:
adrp x24, _POLLERR@GOTPAGE
Lloh7:
ldr x24, [x24, _POLLERR@GOTPAGEOFF]
mov w20, w20
Lloh8:
adrp x25, _POLLNVAL@GOTPAGE
Lloh9:
ldr x25, [x25, _POLLNVAL@GOTPAGEOFF]
mov x26, #-1 ; =0xffffffffffffffff
Lloh10:
adrp x27, _errno@GOTPAGE
Lloh11:
ldr x27, [x27, _errno@GOTPAGEOFF]
b LBB0_13
LBB0_10: ; in Loop: Header=BB0_13 Depth=1
ldr x8, [x27]
str x8, [x19, #16]
LBB0_11: ; in Loop: Header=BB0_13 Depth=1
ldr x0, [x19]
bl _close
str x26, [x19]
LBB0_12: ; in Loop: Header=BB0_13 Depth=1
add x19, x19, #56
subs x20, x20, #1
b.eq LBB0_25
LBB0_13: ; =>This Inner Loop Header: Depth=1
ldr x0, [x19]
tbnz x0, #63, LBB0_12
; %bb.14: ; in Loop: Header=BB0_13 Depth=1
ldr x8, [x19, #48]
ldr w9, [x8, #12]
ldr w8, [x21]
ldr w10, [x22]
ldr w11, [x23]
ldr w12, [x24]
ldr w13, [x25]
orr w10, w10, w11
orr w11, w12, w13
orr w10, w10, w11
orr w10, w10, w8
tst w10, w9
b.eq LBB0_12
; %bb.15: ; in Loop: Header=BB0_13 Depth=1
ldr w9, [x19, #8]
cmp w9, w8
b.ne LBB0_20
; %bb.16: ; in Loop: Header=BB0_13 Depth=1
ldr w1, [x19, #40]
ldr x2, [x19, #32]
bl _xwrite
tbnz x0, #63, LBB0_18
; %bb.17: ; in Loop: Header=BB0_13 Depth=1
ldr w8, [x19, #40]
add w8, w8, w0
str w8, [x19, #40]
ldr x8, [x19, #32]
subs x8, x8, x0
str x8, [x19, #32]
b.eq LBB0_19
b LBB0_20
LBB0_18: ; in Loop: Header=BB0_13 Depth=1
ldr x8, [x27]
str x8, [x19, #16]
LBB0_19: ; in Loop: Header=BB0_13 Depth=1
ldr x0, [x19]
bl _close
str x26, [x19]
LBB0_20: ; in Loop: Header=BB0_13 Depth=1
ldr w8, [x19, #8]
ldr w9, [x22]
cmp w8, w9
b.ne LBB0_12
; %bb.21: ; in Loop: Header=BB0_13 Depth=1
ldr w1, [x19]
ldp w2, w0, [x19, #24]
bl _strbuf_read_once
tbnz x0, #63, LBB0_10
; %bb.22: ; in Loop: Header=BB0_13 Depth=1
cbnz x0, LBB0_12
b LBB0_11
LBB0_23:
Lloh12:
adrp x8, _errno@GOTPAGE
Lloh13:
ldr x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
ldr x8, [x8]
Lloh15:
adrp x9, _EINTR@GOTPAGE
Lloh16:
ldr x9, [x9, _EINTR@GOTPAGEOFF]
Lloh17:
ldr x9, [x9]
cmp x8, x9
b.eq LBB0_25
; %bb.24:
Lloh18:
adrp x0, l_.str@PAGE
Lloh19:
add x0, x0, l_.str@PAGEOFF
bl _die_errno
cbnz w20, LBB0_9
LBB0_25:
mov w0, #1 ; =0x1
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
ldp x28, x27, [sp], #96 ; 16-byte Folded Reload
ret
LBB0_27:
mov w0, #0 ; =0x0
b LBB0_26
.loh AdrpLdrGot Lloh10, Lloh11
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.loh AdrpAdd Lloh18, Lloh19
.cfi_endproc
; -- End function
.comm _errno,8,3 ; @errno
.comm _EINTR,8,3 ; @EINTR
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "poll failed"
.comm _POLLOUT,4,2 ; @POLLOUT
.comm _POLLIN,4,2 ; @POLLIN
.comm _POLLHUP,4,2 ; @POLLHUP
.comm _POLLERR,4,2 ; @POLLERR
.comm _POLLNVAL,4,2 ; @POLLNVAL
.no_dead_strip _pump_io_round
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function local_book_besterror
_local_book_besterror: ## @local_book_besterror
.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 $104, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movl (%rdi), %r9d
movl 4(%rdi), %r14d
movl 8(%rdi), %r15d
movq %rdi, -128(%rbp) ## 8-byte Spill
movl 12(%rdi), %r12d
movl %r12d, %r13d
sarl %r13d
pxor %xmm0, %xmm0
movdqa %xmm0, -64(%rbp)
movdqa %xmm0, -80(%rbp)
cmpl $1, %r15d
movq %r9, -120(%rbp) ## 8-byte Spill
jne LBB0_7
## %bb.1:
testl %r9d, %r9d
jle LBB0_18
## %bb.2:
leal -1(%r12), %ebx
leaq (,%r9,4), %rdx
leaq -4(,%r9,4), %rax
leal -1(%r9), %ecx
shlq $2, %rcx
subq %rcx, %rax
leaq (%rax,%rbp), %rdi
addq $-80, %rdi
addq %rsi, %rax
movq %rsi, -136(%rbp) ## 8-byte Spill
movq %rax, %rsi
callq _memcpy
movq -136(%rbp), %rsi ## 8-byte Reload
movq -120(%rbp), %rcx ## 8-byte Reload
leaq (%rsi,%rcx,4), %rax
addq $-4, %rax
xorl %edx, %edx
movl %ecx, %r8d
xorl %ecx, %ecx
jmp LBB0_5
.p2align 4, 0x90
LBB0_3: ## in Loop: Header=BB0_5 Depth=1
addl %r9d, %r9d
LBB0_4: ## in Loop: Header=BB0_5 Depth=1
imull %r12d, %ecx
cmpl %r12d, %r9d
movl %ebx, %edi
cmovll %r9d, %edi
testl %r9d, %r9d
cmovsl %edx, %edi
addl %edi, %ecx
addq $-4, %rax
decl %r8d
je LBB0_19
LBB0_5: ## =>This Inner Loop Header: Depth=1
movl (%rax), %edi
subl %r14d, %edi
movl %edi, %r9d
subl %r13d, %r9d
jge LBB0_3
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl %r13d, %r9d
subl %edi, %r9d
leal -1(,%r9,2), %r9d
jmp LBB0_4
LBB0_7:
testl %r9d, %r9d
js LBB0_18
## %bb.8:
movl %r15d, %r8d
sarl %r8d
subl %r14d, %r8d
leal -1(%r12), %edi
leaq -1(%r9), %r10
leal 1(%r9), %r11d
xorl %ecx, %ecx
jmp LBB0_10
.p2align 4, 0x90
LBB0_9: ## in Loop: Header=BB0_10 Depth=1
imull %r12d, %ecx
addl %ebx, %ecx
imull %r15d, %eax
addl %r14d, %eax
movl %eax, -80(%rbp,%r10,4)
decq %r10
decl %r11d
je LBB0_19
LBB0_10: ## =>This Inner Loop Header: Depth=1
movl (%rsi,%r10,4), %eax
addl %r8d, %eax
cltd
idivl %r15d
movl %eax, %edx
subl %r13d, %edx
jge LBB0_12
## %bb.11: ## in Loop: Header=BB0_10 Depth=1
movl %r13d, %edx
subl %eax, %edx
leal -1(,%rdx,2), %edx
jmp LBB0_13
.p2align 4, 0x90
LBB0_12: ## in Loop: Header=BB0_10 Depth=1
addl %edx, %edx
LBB0_13: ## in Loop: Header=BB0_10 Depth=1
movl %edx, %r9d
cmpl %r12d, %edx
jl LBB0_15
## %bb.14: ## in Loop: Header=BB0_10 Depth=1
movl %edi, %r9d
LBB0_15: ## in Loop: Header=BB0_10 Depth=1
xorl %ebx, %ebx
testl %edx, %edx
js LBB0_9
## %bb.16: ## in Loop: Header=BB0_10 Depth=1
movl %r9d, %ebx
jmp LBB0_9
LBB0_18:
xorl %ecx, %ecx
LBB0_19:
movq -128(%rbp), %rax ## 8-byte Reload
movq 24(%rax), %rax
movq (%rax), %rax
movslq %ecx, %rdx
cmpq $0, (%rax,%rdx,8)
jle LBB0_23
LBB0_20:
testl %ecx, %ecx
setns %al
movq -120(%rbp), %r9 ## 8-byte Reload
testl %r9d, %r9d
setg %dl
andb %al, %dl
cmpb $1, %dl
jne LBB0_34
## %bb.21:
cmpl $8, %r9d
jae LBB0_29
## %bb.22:
xorl %edx, %edx
movq %rsi, %rax
jmp LBB0_32
LBB0_23:
pxor %xmm0, %xmm0
movdqa %xmm0, -96(%rbp)
movdqa %xmm0, -112(%rbp)
movq -128(%rbp), %rax ## 8-byte Reload
movslq 16(%rax), %rax
testq %rax, %rax
jle LBB0_20
## %bb.24:
decl %r12d
imull %r15d, %r12d
subl %r12d, %r14d
xorl %edx, %edx
leaq -112(%rbp), %rdi
xorl %r8d, %r8d
jmp LBB0_26
.p2align 4, 0x90
LBB0_25: ## in Loop: Header=BB0_26 Depth=1
testl %r10d, %r10d
movl %r15d, %r11d
cmovsl %edx, %r11d
addl %r10d, %r11d
negl %r11d
movl %r11d, (%r9)
incq %r8
cmpq %rax, %r8
jae LBB0_20
LBB0_26: ## =>This Loop Header: Depth=1
## Child Loop BB0_28 Depth 2
movl -112(%rbp), %r10d
movq %rdi, %r9
cmpl %r14d, %r10d
jl LBB0_25
## %bb.27: ## in Loop: Header=BB0_26 Depth=1
movq %rdi, %r9
.p2align 4, 0x90
LBB0_28: ## Parent Loop BB0_26 Depth=1
## => This Inner Loop Header: Depth=2
movl $0, (%r9)
movl 4(%r9), %r10d
addq $4, %r9
cmpl %r14d, %r10d
jge LBB0_28
jmp LBB0_25
LBB0_29:
movl %r9d, %edx
andl $2147483640, %edx ## imm = 0x7FFFFFF8
leaq (,%rdx,4), %rdi
leaq (%rsi,%rdx,4), %rax
xorl %r8d, %r8d
.p2align 4, 0x90
LBB0_30: ## =>This Inner Loop Header: Depth=1
movdqu (%rsi,%r8), %xmm0
movdqu 16(%rsi,%r8), %xmm1
psubd -80(%rbp,%r8), %xmm0
psubd -64(%rbp,%r8), %xmm1
movdqu %xmm0, (%rsi,%r8)
movdqu %xmm1, 16(%rsi,%r8)
addq $32, %r8
cmpq %r8, %rdi
jne LBB0_30
## %bb.31:
cmpl %r9d, %edx
je LBB0_34
LBB0_32:
leaq -80(,%rdx,4), %rsi
addq %rbp, %rsi
subq %rdx, %r9
xorl %edx, %edx
.p2align 4, 0x90
LBB0_33: ## =>This Inner Loop Header: Depth=1
movl (%rsi,%rdx,4), %edi
subl %edi, (%rax,%rdx,4)
incq %rdx
cmpq %rdx, %r9
jne LBB0_33
LBB0_34:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB0_36
## %bb.35:
movl %ecx, %eax
addq $104, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_36:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.no_dead_strip _local_book_besterror
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function local_book_besterror
_local_book_besterror: ; @local_book_besterror
.cfi_startproc
; %bb.0:
sub sp, sp, #176
stp x28, x27, [sp, #80] ; 16-byte Folded Spill
stp x26, x25, [sp, #96] ; 16-byte Folded Spill
stp x24, x23, [sp, #112] ; 16-byte Folded Spill
stp x22, x21, [sp, #128] ; 16-byte Folded Spill
stp x20, x19, [sp, #144] ; 16-byte Folded Spill
stp x29, x30, [sp, #160] ; 16-byte Folded Spill
add x29, sp, #160
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
mov x19, x0
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
str x8, [sp, #72]
ldp w20, w22, [x0]
ldp w21, w23, [x0, #8]
asr w24, w23, #1
movi.2d v0, #0000000000000000
stp q0, q0, [sp, #32]
cmp w21, #1
b.ne LBB0_4
; %bb.1:
subs w8, w20, #1
b.lt LBB0_7
; %bb.2:
sub w25, w23, #1
lsl x2, x20, #2
sub x27, x2, #4
sub x8, x27, w8, uxtw #2
add x9, sp, #32
add x0, x9, x8
mov x26, x1
add x1, x1, x8
bl _memcpy
mov x1, x26
mov w0, #0 ; =0x0
add x8, x26, x27
mov x9, x20
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w10, [x8], #-4
sub w10, w10, w22
sub w11, w10, w24
lsl w11, w11, #1
sub w12, w24, w10
lsl w12, w12, #1
sub w12, w12, #1
cmp w10, w24
csel w10, w11, w12, ge
cmp w10, w23
csel w11, w10, w25, lt
cmp w10, #0
csel w10, wzr, w11, lt
madd w0, w0, w23, w10
subs w9, w9, #1
b.ne LBB0_3
b LBB0_8
LBB0_4:
mov w0, #0 ; =0x0
tbnz w20, #31, LBB0_8
; %bb.5:
asr w8, w21, #1
sub w8, w8, w22
sub w9, w23, #1
lsl x10, x20, #2
sub x11, x10, #4
add x10, x1, x11
add x12, sp, #32
add x11, x12, x11
add w12, w20, #1
LBB0_6: ; =>This Inner Loop Header: Depth=1
ldr w13, [x10], #-4
add w13, w8, w13
sdiv w13, w13, w21
sub w14, w13, w24
lsl w14, w14, #1
sub w15, w24, w13
lsl w15, w15, #1
sub w15, w15, #1
cmp w13, w24
csel w14, w14, w15, ge
cmp w14, w23
csel w15, w14, w9, lt
cmp w14, #0
csel w14, wzr, w15, lt
madd w0, w0, w23, w14
madd w13, w13, w21, w22
str w13, [x11], #-4
subs w12, w12, #1
b.ne LBB0_6
b LBB0_8
LBB0_7:
mov w0, #0 ; =0x0
LBB0_8:
ldr x8, [x19, #24]
ldr x8, [x8]
ldr x8, [x8, w0, sxtw #3]
cmp x8, #0
b.le LBB0_13
LBB0_9:
tbnz w0, #31, LBB0_23
; %bb.10:
cmp w20, #1
b.lt LBB0_23
; %bb.11:
cmp w20, #16
b.hs LBB0_18
; %bb.12:
mov x9, #0 ; =0x0
mov x8, x1
b LBB0_21
LBB0_13:
movi.2d v0, #0000000000000000
stp q0, q0, [sp]
ldr w8, [x19, #16]
cmp w8, #1
b.lt LBB0_9
; %bb.14:
mov x9, #0 ; =0x0
sub w10, w23, #1
msub w10, w10, w21, w22
b LBB0_16
LBB0_15: ; in Loop: Header=BB0_16 Depth=1
cmp w12, #0
csel w13, wzr, w21, lt
neg w12, w12
sub w12, w12, w13
str w12, [x11]
add x9, x9, #1
cmp x9, x8
b.hs LBB0_9
LBB0_16: ; =>This Loop Header: Depth=1
; Child Loop BB0_17 Depth 2
ldr w12, [sp]
mov x11, sp
cmp w12, w10
b.lt LBB0_15
LBB0_17: ; Parent Loop BB0_16 Depth=1
; => This Inner Loop Header: Depth=2
str wzr, [x11]
ldr w12, [x11, #4]!
cmp w12, w10
b.ge LBB0_17
b LBB0_15
LBB0_18:
and x9, x20, #0x7ffffff0
add x8, x1, x9, lsl #2
add x10, sp, #32
add x10, x10, #32
add x11, x1, #32
mov x12, x9
LBB0_19: ; =>This Inner Loop Header: Depth=1
ldp q0, q1, [x10, #-32]
ldp q2, q3, [x10], #64
ldp q4, q5, [x11, #-32]
ldp q6, q7, [x11]
sub.4s v0, v4, v0
sub.4s v1, v5, v1
sub.4s v2, v6, v2
sub.4s v3, v7, v3
stp q0, q1, [x11, #-32]
stp q2, q3, [x11], #64
subs x12, x12, #16
b.ne LBB0_19
; %bb.20:
cmp x9, x20
b.eq LBB0_23
LBB0_21:
add x10, sp, #32
add x10, x10, x9, lsl #2
sub x9, x20, x9
LBB0_22: ; =>This Inner Loop Header: Depth=1
ldr w11, [x10], #4
ldr w12, [x8]
sub w11, w12, w11
str w11, [x8], #4
subs x9, x9, #1
b.ne LBB0_22
LBB0_23:
ldr x8, [sp, #72]
Lloh3:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh4:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_25
; %bb.24:
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
ldp x20, x19, [sp, #144] ; 16-byte Folded Reload
ldp x22, x21, [sp, #128] ; 16-byte Folded Reload
ldp x24, x23, [sp, #112] ; 16-byte Folded Reload
ldp x26, x25, [sp, #96] ; 16-byte Folded Reload
ldp x28, x27, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #176
ret
LBB0_25:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.cfi_endproc
; -- End function
.no_dead_strip _local_book_besterror
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _copy_msg_leaf_setup_fail ## -- Begin function copy_msg_leaf_setup_fail
.p2align 4, 0x90
_copy_msg_leaf_setup_fail: ## @copy_msg_leaf_setup_fail
.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
movq %rdi, %r14
movl 28(%rdi), %edi
callq _IE_ISGOOD
testq %rax, %rax
je LBB0_2
## %bb.1:
movl 28(%r14), %eax
movl %eax, 28(%rbx)
LBB0_2:
movl 24(%r14), %edi
callq _IE_ISGOOD
testq %rax, %rax
je LBB0_4
## %bb.3:
movl 24(%r14), %eax
movl %eax, 24(%rbx)
LBB0_4:
movl 20(%r14), %edi
callq _IE_ISGOOD
testq %rax, %rax
je LBB0_6
## %bb.5:
movl 20(%r14), %eax
movl %eax, 20(%rbx)
LBB0_6:
movl 16(%r14), %edi
callq _IE_ISGOOD
testq %rax, %rax
je LBB0_8
## %bb.7:
movl 16(%r14), %eax
movl %eax, 16(%rbx)
LBB0_8:
xorl %r15d, %r15d
movq _UNI_NUM_IE_TNS@GOTPCREL(%rip), %r12
xorl %r13d, %r13d
jmp LBB0_9
.p2align 4, 0x90
LBB0_11: ## in Loop: Header=BB0_9 Depth=1
incq %r13
cmpq (%r12), %r13
ja LBB0_12
LBB0_9: ## =>This Inner Loop Header: Depth=1
movq 8(%r14), %rax
movl (%rax,%r13,4), %edi
callq _IE_ISGOOD
testq %rax, %rax
je LBB0_11
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movq 8(%r14), %rax
movl (%rax,%r13,4), %eax
movq 8(%rbx), %rcx
movl %eax, (%rcx,%r15,4)
incq %r15
jmp LBB0_11
LBB0_12:
movl (%r14), %edi
callq _IE_ISGOOD
testq %rax, %rax
je LBB0_14
## %bb.13:
movl (%r14), %eax
movl %eax, (%rbx)
LBB0_14:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _UNI_NUM_IE_TNS,8,3 ## @UNI_NUM_IE_TNS
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _copy_msg_leaf_setup_fail ; -- Begin function copy_msg_leaf_setup_fail
.p2align 2
_copy_msg_leaf_setup_fail: ; @copy_msg_leaf_setup_fail
.cfi_startproc
; %bb.0:
stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill
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, x1
mov x20, x0
ldr w0, [x0, #28]
bl _IE_ISGOOD
cbz x0, LBB0_2
; %bb.1:
ldr w8, [x20, #28]
str w8, [x19, #28]
LBB0_2:
ldr w0, [x20, #24]
bl _IE_ISGOOD
cbz x0, LBB0_4
; %bb.3:
ldr w8, [x20, #24]
str w8, [x19, #24]
LBB0_4:
ldr w0, [x20, #20]
bl _IE_ISGOOD
cbz x0, LBB0_6
; %bb.5:
ldr w8, [x20, #20]
str w8, [x19, #20]
LBB0_6:
ldr w0, [x20, #16]
bl _IE_ISGOOD
cbz x0, LBB0_8
; %bb.7:
ldr w8, [x20, #16]
str w8, [x19, #16]
LBB0_8:
mov x21, #0 ; =0x0
mov x22, #0 ; =0x0
Lloh0:
adrp x23, _UNI_NUM_IE_TNS@GOTPAGE
Lloh1:
ldr x23, [x23, _UNI_NUM_IE_TNS@GOTPAGEOFF]
b LBB0_10
LBB0_9: ; in Loop: Header=BB0_10 Depth=1
add x22, x22, #1
ldr x8, [x23]
cmp x22, x8
b.hi LBB0_12
LBB0_10: ; =>This Inner Loop Header: Depth=1
ldr x8, [x20, #8]
ldr w0, [x8, x22, lsl #2]
bl _IE_ISGOOD
cbz x0, LBB0_9
; %bb.11: ; in Loop: Header=BB0_10 Depth=1
ldr x8, [x20, #8]
ldr w8, [x8, x22, lsl #2]
ldr x9, [x19, #8]
str w8, [x9, x21, lsl #2]
add x21, x21, #1
b LBB0_9
LBB0_12:
ldr w0, [x20]
bl _IE_ISGOOD
cbz x0, LBB0_14
; %bb.13:
ldr w8, [x20]
str w8, [x19]
LBB0_14:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _UNI_NUM_IE_TNS,8,3 ; @UNI_NUM_IE_TNS
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function LayoutParagraph
_LayoutParagraph: ## @LayoutParagraph
.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 %ecx, %eax
movl %edx, %r11d
movq %rsi, %rbx
movq (%rsi), %rdx
movq 8(%rsi), %rcx
testq %rdx, %rdx
setle %sil
testq %rcx, %rcx
setle %r10b
orb %sil, %r10b
cmpb $1, %r10b
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rsi
xorl %eax, %eax
callq _msg_Err
jmp LBB0_9
LBB0_2:
movl %r11d, %r12d
subl %eax, %r12d
jbe LBB0_8
## %bb.3:
movl %r8d, -72(%rbp) ## 4-byte Spill
movq %rdi, -88(%rbp) ## 8-byte Spill
movl %r9d, -48(%rbp) ## 4-byte Spill
shll $6, %r11d
movl %r11d, -52(%rbp) ## 4-byte Spill
movq $0, -96(%rbp)
xorl %r15d, %r15d
movl $-1, %r13d
xorl %r14d, %r14d
jmp LBB0_6
.p2align 4, 0x90
LBB0_4: ## in Loop: Header=BB0_6 Depth=1
movq 24(%rbx), %rax
addl (%rax,%r15,4), %r14d
LBB0_5: ## in Loop: Header=BB0_6 Depth=1
leaq -1(%r15), %rax
movq (%rbx), %rsi
cmpq %r15, %rsi
movq %rax, %r15
jl LBB0_10
LBB0_6: ## =>This Inner Loop Header: Depth=1
movq %rbx, %rdi
movl %r15d, %esi
callq _IsWhitespaceAt
testq %rax, %rax
setne %al
leal -1(%r13), %ecx
cmpl %ecx, %r15d
sete %cl
andb %al, %cl
cmpb $1, %cl
jne LBB0_4
## %bb.7: ## in Loop: Header=BB0_6 Depth=1
movl %r15d, %r13d
jmp LBB0_5
LBB0_8:
leaq L_.str.1(%rip), %rsi
xorl %eax, %eax
callq _msg_Err
LBB0_9:
movq _VLC_EGENERIC@GOTPCREL(%rip), %rax
movl (%rax), %eax
jmp LBB0_65
LBB0_10:
testl %r14d, %r14d
je LBB0_54
## %bb.11:
movl -52(%rbp), %eax ## 4-byte Reload
movl %eax, -68(%rbp) ## 4-byte Spill
cmpl $0, -48(%rbp) ## 4-byte Folded Reload
je LBB0_13
## %bb.12:
shll $6, %r12d
movl %r14d, %eax
xorl %edx, %edx
divl %r12d
movl %eax, %ecx
incl %ecx
movl %r14d, %eax
xorl %edx, %edx
divl %ecx
movl %eax, -68(%rbp) ## 4-byte Spill
LBB0_13:
testq %rsi, %rsi
js LBB0_63
## %bb.14:
movl $-1, %eax
movq %rax, -64(%rbp) ## 8-byte Spill
leaq -96(%rbp), %rax
movq %rax, -80(%rbp) ## 8-byte Spill
xorl %r14d, %r14d
xorl %r12d, %r12d
xorl %r13d, %r13d
movq $0, -48(%rbp) ## 8-byte Folded Spill
xorl %r15d, %r15d
jmp LBB0_17
LBB0_15: ## in Loop: Header=BB0_17 Depth=1
movl (%rax), %eax
cmpl %eax, %edi
cmovgl %edi, %eax
movq -48(%rbp), %rcx ## 8-byte Reload
addl %eax, %ecx
movq %rcx, -48(%rbp) ## 8-byte Spill
.p2align 4, 0x90
LBB0_16: ## in Loop: Header=BB0_17 Depth=1
incl %r13d
movslq %r13d, %r14
movq (%rbx), %rsi
cmpq %r14, %rsi
jl LBB0_63
LBB0_17: ## =>This Loop Header: Depth=1
## Child Loop BB0_30 Depth 2
cmpq %r14, %rsi
jne LBB0_25
## %bb.18: ## in Loop: Header=BB0_17 Depth=1
cmpl %r13d, %r12d
jge LBB0_16
## %bb.19: ## in Loop: Header=BB0_17 Depth=1
leal -1(%r13), %ecx
movq -88(%rbp), %rdi ## 8-byte Reload
movq %rbx, %rsi
movq %r12, %rdx
## kill: def $edx killed $edx killed $rdx
movl -72(%rbp), %r8d ## 4-byte Reload
movq -80(%rbp), %r9 ## 8-byte Reload
callq _LayoutLine
testq %rax, %rax
je LBB0_16
jmp LBB0_20
.p2align 4, 0x90
LBB0_25: ## in Loop: Header=BB0_17 Depth=1
movq 40(%rbx), %rcx
testq %rcx, %rcx
je LBB0_32
## %bb.26: ## in Loop: Header=BB0_17 Depth=1
movq (%rcx,%r14,8), %rdx
testq %rdx, %rdx
je LBB0_32
## %bb.27: ## in Loop: Header=BB0_17 Depth=1
movq (%rdx), %rax
testq %rax, %rax
je LBB0_32
## %bb.28: ## in Loop: Header=BB0_17 Depth=1
leal 1(%r13), %edi
movslq %edi, %r8
xorl %edi, %edi
cmpq %r8, %rsi
jle LBB0_15
## %bb.29: ## in Loop: Header=BB0_17 Depth=1
xorl %edi, %edi
.p2align 4, 0x90
LBB0_30: ## Parent Loop BB0_17 Depth=1
## => This Inner Loop Header: Depth=2
cmpq (%rcx,%r8,8), %rdx
jne LBB0_15
## %bb.31: ## in Loop: Header=BB0_30 Depth=2
movq 24(%rbx), %r9
movslq %r13d, %r13
addl (%r9,%r13,4), %edi
incq %r8
incl %r13d
cmpq %r8, %rsi
jg LBB0_30
jmp LBB0_15
.p2align 4, 0x90
LBB0_32: ## in Loop: Header=BB0_17 Depth=1
movq %rbx, %rdi
movl %r13d, %esi
callq _IsWhitespaceAt
testq %rax, %rax
je LBB0_37
## %bb.33: ## in Loop: Header=BB0_17 Depth=1
cmpl %r13d, %r12d
jne LBB0_35
## %bb.34: ## in Loop: Header=BB0_17 Depth=1
shlq $2, %r14
addq 24(%rbx), %r14
movq %r14, %rdi
callq _ReleaseGlyphBitMaps
movl %r12d, %r13d
leal 1(%r12), %eax
movl %eax, %r12d
jmp LBB0_16
LBB0_37: ## in Loop: Header=BB0_17 Depth=1
movl %r15d, %esi
movq -64(%rbp), %r15 ## 8-byte Reload
movq -48(%rbp), %rdx ## 8-byte Reload
jmp LBB0_38
LBB0_35: ## in Loop: Header=BB0_17 Depth=1
movl %r15d, %ecx
leal -1(%r13), %eax
movq -48(%rbp), %rdx ## 8-byte Reload
movl %edx, %esi
cmpl %eax, -64(%rbp) ## 4-byte Folded Reload
movl %r13d, %r15d
jne LBB0_38
## %bb.36: ## in Loop: Header=BB0_17 Depth=1
movl %r13d, %eax
movq %rax, -64(%rbp) ## 8-byte Spill
movl %ecx, %r15d
jmp LBB0_16
.p2align 4, 0x90
LBB0_38: ## in Loop: Header=BB0_17 Depth=1
movq 32(%rbx), %rdi
movq 16(%rbx), %rax
movq 24(%rbx), %rcx
movq (%rax,%r14,8), %r9
movl (%rcx,%r14,4), %r8d
leal (%r8,%rsi), %eax
cmpl -68(%rbp), %eax ## 4-byte Folded Reload
movq %r15, -64(%rbp) ## 8-byte Spill
jbe LBB0_40
## %bb.39: ## in Loop: Header=BB0_17 Depth=1
movq (%rdi,%r9,8), %rax
movq (%rax), %rax
movq _STYLE_WRAP_DEFAULT@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_43
LBB0_40: ## in Loop: Header=BB0_17 Depth=1
leal (%r8,%rdx), %eax
cmpl -52(%rbp), %eax ## 4-byte Folded Reload
ja LBB0_43
## %bb.41: ## in Loop: Header=BB0_17 Depth=1
movl %esi, %r15d
jmp LBB0_53
LBB0_43: ## in Loop: Header=BB0_17 Depth=1
cmpl %r13d, %r12d
je LBB0_57
## %bb.44: ## in Loop: Header=BB0_17 Depth=1
movq %r8, -104(%rbp) ## 8-byte Spill
movq %rsi, -112(%rbp) ## 8-byte Spill
movq %r12, %rax
cmpl %eax, %r15d
jle LBB0_46
## %bb.45: ## in Loop: Header=BB0_17 Depth=1
movq (%rdi,%r9,8), %rax
movq (%rax), %rax
movl %r15d, %edx
movq _STYLE_WRAP_DEFAULT@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_47
LBB0_46: ## in Loop: Header=BB0_17 Depth=1
movl %r13d, %edx
LBB0_47: ## in Loop: Header=BB0_17 Depth=1
movq %r9, %r15
movq %rdi, %r14
movq %rdx, -120(%rbp) ## 8-byte Spill
leal -1(%rdx), %ecx
movq -88(%rbp), %rdi ## 8-byte Reload
movq %rbx, %rsi
movl %r12d, %edx
movl -72(%rbp), %r8d ## 4-byte Reload
movq -80(%rbp), %r9 ## 8-byte Reload
callq _LayoutLine
testq %rax, %rax
jne LBB0_20
## %bb.48: ## in Loop: Header=BB0_17 Depth=1
movq (%r14,%r15,8), %rax
movq (%rax), %rax
movq _STYLE_WRAP_NONE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_60
## %bb.49: ## in Loop: Header=BB0_17 Depth=1
movq -80(%rbp), %rax ## 8-byte Reload
movq (%rax), %rax
movq %rax, -80(%rbp) ## 8-byte Spill
movq -64(%rbp), %rcx ## 8-byte Reload
movq -120(%rbp), %r12 ## 8-byte Reload
cmpl %ecx, %r12d
jne LBB0_51
## %bb.50: ## in Loop: Header=BB0_17 Depth=1
movq -48(%rbp), %rdx ## 8-byte Reload
subl -112(%rbp), %edx ## 4-byte Folded Reload
leal 1(%rcx), %eax
movslq %eax, %r12
cmpq %r12, (%rbx)
cmovlel %ecx, %r12d
jmp LBB0_52
LBB0_51: ## in Loop: Header=BB0_17 Depth=1
xorl %edx, %edx
## kill: def $r12d killed $r12d killed $r12 def $r12
LBB0_52: ## in Loop: Header=BB0_17 Depth=1
xorl %r15d, %r15d
movq -104(%rbp), %r8 ## 8-byte Reload
LBB0_53: ## in Loop: Header=BB0_17 Depth=1
addl %r8d, %edx
movq %rdx, -48(%rbp) ## 8-byte Spill
jmp LBB0_16
LBB0_54:
movq _VLC_SUCCESS@GOTPCREL(%rip), %r14
testq %rsi, %rsi
jle LBB0_64
## %bb.55:
xorl %r15d, %r15d
xorl %r12d, %r12d
.p2align 4, 0x90
LBB0_56: ## =>This Inner Loop Header: Depth=1
movq 24(%rbx), %rdi
addq %r15, %rdi
callq _ReleaseGlyphBitMaps
incq %r12
addq $4, %r15
cmpq %r12, (%rbx)
jg LBB0_56
jmp LBB0_64
LBB0_20:
movslq %r12d, %r14
cmpq %r14, (%rbx)
jle LBB0_23
## %bb.21:
leaq (,%r14,4), %r15
.p2align 4, 0x90
LBB0_22: ## =>This Inner Loop Header: Depth=1
movq 24(%rbx), %rdi
addq %r15, %rdi
callq _ReleaseGlyphBitMaps
incq %r14
addq $4, %r15
cmpq %r14, (%rbx)
jg LBB0_22
LBB0_23:
movq -96(%rbp), %rdi
movq _VLC_EGENERIC@GOTPCREL(%rip), %r14
testq %rdi, %rdi
je LBB0_64
## %bb.24:
callq _FreeLines
jmp LBB0_64
LBB0_57:
leaq L_.str.2(%rip), %rsi
movq -88(%rbp), %rdi ## 8-byte Reload
callq _msg_Dbg
movslq %r12d, %r15
movq _VLC_SUCCESS@GOTPCREL(%rip), %r14
cmpq %r15, (%rbx)
jle LBB0_64
## %bb.58:
leaq (,%r15,4), %r12
LBB0_59: ## =>This Inner Loop Header: Depth=1
movq 24(%rbx), %rdi
addq %r12, %rdi
callq _ReleaseGlyphBitMaps
incq %r15
addq $4, %r12
cmpq %r15, (%rbx)
jg LBB0_59
jmp LBB0_64
LBB0_60:
movslq %r13d, %r14
cmpq %r14, (%rbx)
jle LBB0_63
## %bb.61:
leaq (,%r14,4), %r15
LBB0_62: ## =>This Inner Loop Header: Depth=1
movq 24(%rbx), %rdi
addq %r15, %rdi
callq _ReleaseGlyphBitMaps
incq %r14
addq $4, %r15
cmpq %r14, (%rbx)
jg LBB0_62
LBB0_63:
movq -96(%rbp), %rax
movq 16(%rbp), %rcx
movq %rax, (%rcx)
movq _VLC_SUCCESS@GOTPCREL(%rip), %r14
LBB0_64:
movl (%r14), %eax
LBB0_65:
addq $88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "LayoutParagraph() invalid parameters. Paragraph size: %d. Runs count %d"
.comm _VLC_EGENERIC,4,2 ## @VLC_EGENERIC
L_.str.1: ## @.str.1
.asciz "LayoutParagraph(): Invalid max width"
.comm _VLC_SUCCESS,4,2 ## @VLC_SUCCESS
.comm _STYLE_WRAP_DEFAULT,8,3 ## @STYLE_WRAP_DEFAULT
L_.str.2: ## @.str.2
.asciz "LayoutParagraph(): First glyph width in line exceeds maximum, skipping"
.comm _STYLE_WRAP_NONE,8,3 ## @STYLE_WRAP_NONE
.no_dead_strip _LayoutParagraph
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function LayoutParagraph
_LayoutParagraph: ; @LayoutParagraph
.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
mov x21, x0
ldp x8, x9, [x1]
cmp x8, #1
ccmp x9, #0, #4, ge
b.gt LBB0_2
; %bb.1:
stp x8, x9, [sp]
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
b LBB0_10
LBB0_2:
subs w20, w2, w3
b.ls LBB0_9
; %bb.3:
mov x19, x1
mov x27, x4
mov x26, x6
mov x25, x5
mov x23, #0 ; =0x0
mov w24, #0 ; =0x0
lsl w8, w2, #6
stp w8, w8, [sp, #28] ; 8-byte Folded Spill
str xzr, [sp, #56]
mov w22, #-1 ; =0xffffffff
b LBB0_6
LBB0_4: ; in Loop: Header=BB0_6 Depth=1
ldr x8, [x19, #24]
ldr w8, [x8, x23, lsl #2]
add w24, w8, w24
LBB0_5: ; in Loop: Header=BB0_6 Depth=1
sub x9, x23, #1
ldr x8, [x19]
cmp x8, x23
mov x23, x9
b.lt LBB0_11
LBB0_6: ; =>This Inner Loop Header: Depth=1
mov x0, x19
mov x1, x23
bl _IsWhitespaceAt
cbz x0, LBB0_4
; %bb.7: ; in Loop: Header=BB0_6 Depth=1
sub w8, w22, #1
cmp w23, w8
b.ne LBB0_4
; %bb.8: ; in Loop: Header=BB0_6 Depth=1
mov x22, x23
b LBB0_5
LBB0_9:
Lloh2:
adrp x1, l_.str.1@PAGE
Lloh3:
add x1, x1, l_.str.1@PAGEOFF
LBB0_10:
mov x0, x21
bl _msg_Err
Lloh4:
adrp x8, _VLC_EGENERIC@GOTPAGE
Lloh5:
ldr x8, [x8, _VLC_EGENERIC@GOTPAGEOFF]
Lloh6:
ldr w0, [x8]
b LBB0_67
LBB0_11:
cbz w24, LBB0_49
; %bb.12:
str w27, [sp, #36] ; 4-byte Folded Spill
str x26, [sp, #16] ; 8-byte Folded Spill
cbz w25, LBB0_14
; %bb.13:
lsl w9, w20, #6
udiv w9, w24, w9
add w9, w9, #1
udiv w9, w24, w9
str w9, [sp, #32] ; 4-byte Folded Spill
LBB0_14:
tbnz x8, #63, LBB0_64
; %bb.15:
mov x20, #0 ; =0x0
mov w25, #0 ; =0x0
mov w24, #0 ; =0x0
mov w28, #0 ; =0x0
mov w22, #0 ; =0x0
mov w9, #-1 ; =0xffffffff
str w9, [sp, #52] ; 4-byte Folded Spill
add x9, sp, #56
str x9, [sp, #40] ; 8-byte Folded Spill
b LBB0_18
LBB0_16: ; in Loop: Header=BB0_18 Depth=1
ldr x8, [x19, #24]
add x0, x8, x20, lsl #2
bl _ReleaseGlyphBitMaps
mov x24, x25
add w8, w25, #1
mov x25, x8
LBB0_17: ; in Loop: Header=BB0_18 Depth=1
add w24, w24, #1
sxtw x20, w24
ldr x8, [x19]
cmp x8, x20
b.lt LBB0_64
LBB0_18: ; =>This Loop Header: Depth=1
; Child Loop BB0_26 Depth 2
cmp x8, x20
b.ne LBB0_21
; %bb.19: ; in Loop: Header=BB0_18 Depth=1
cmp w25, w24
b.ge LBB0_17
; %bb.20: ; in Loop: Header=BB0_18 Depth=1
sub w3, w24, #1
mov x0, x21
mov x1, x19
mov x2, x25
ldr w4, [sp, #36] ; 4-byte Folded Reload
ldr x5, [sp, #40] ; 8-byte Folded Reload
bl _LayoutLine
cbz x0, LBB0_17
b LBB0_52
LBB0_21: ; in Loop: Header=BB0_18 Depth=1
ldr x10, [x19, #40]
cbz x10, LBB0_28
; %bb.22: ; in Loop: Header=BB0_18 Depth=1
ldr x11, [x10, x20, lsl #3]
cbz x11, LBB0_28
; %bb.23: ; in Loop: Header=BB0_18 Depth=1
ldr x9, [x11]
cbz x9, LBB0_28
; %bb.24: ; in Loop: Header=BB0_18 Depth=1
add w12, w24, #1
sxtw x13, w12
cmp x8, x13
b.le LBB0_45
; %bb.25: ; in Loop: Header=BB0_18 Depth=1
mov w12, #0 ; =0x0
LBB0_26: ; Parent Loop BB0_18 Depth=1
; => This Inner Loop Header: Depth=2
ldr x14, [x10, x13, lsl #3]
cmp x11, x14
b.ne LBB0_46
; %bb.27: ; in Loop: Header=BB0_26 Depth=2
ldr x14, [x19, #24]
ldr w14, [x14, w24, sxtw #2]
add w12, w14, w12
add x13, x13, #1
add w24, w24, #1
cmp x8, x13
b.gt LBB0_26
b LBB0_46
LBB0_28: ; in Loop: Header=BB0_18 Depth=1
mov x0, x19
mov x1, x24
bl _IsWhitespaceAt
cbz x0, LBB0_32
; %bb.29: ; in Loop: Header=BB0_18 Depth=1
cmp w25, w24
b.eq LBB0_16
; %bb.30: ; in Loop: Header=BB0_18 Depth=1
sub w8, w24, #1
mov x26, x28
ldr w9, [sp, #52] ; 4-byte Folded Reload
cmp w9, w8
str w24, [sp, #52] ; 4-byte Folded Spill
b.ne LBB0_33
; %bb.31: ; in Loop: Header=BB0_18 Depth=1
str w24, [sp, #52] ; 4-byte Folded Spill
b LBB0_17
LBB0_32: ; in Loop: Header=BB0_18 Depth=1
mov x26, x22
LBB0_33: ; in Loop: Header=BB0_18 Depth=1
ldp x9, x22, [x19, #24]
ldr x8, [x19, #16]
ldr x23, [x8, x20, lsl #3]
ldr w20, [x9, x20, lsl #2]
add w8, w20, w26
ldr w9, [sp, #32] ; 4-byte Folded Reload
cmp w8, w9
b.ls LBB0_36
; %bb.34: ; in Loop: Header=BB0_18 Depth=1
ldr x8, [x22, x23, lsl #3]
ldr x8, [x8]
Lloh7:
adrp x9, _STYLE_WRAP_DEFAULT@GOTPAGE
Lloh8:
ldr x9, [x9, _STYLE_WRAP_DEFAULT@GOTPAGEOFF]
Lloh9:
ldr x9, [x9]
add w10, w20, w28
cmp x8, x9
ldr w8, [sp, #28] ; 4-byte Folded Reload
ccmp w10, w8, #2, ne
b.hi LBB0_37
LBB0_35: ; in Loop: Header=BB0_18 Depth=1
mov x27, x25
b LBB0_48
LBB0_36: ; in Loop: Header=BB0_18 Depth=1
add w8, w20, w28
ldr w9, [sp, #28] ; 4-byte Folded Reload
cmp w8, w9
b.ls LBB0_35
LBB0_37: ; in Loop: Header=BB0_18 Depth=1
cmp w25, w24
b.eq LBB0_58
; %bb.38: ; in Loop: Header=BB0_18 Depth=1
ldr w8, [sp, #52] ; 4-byte Folded Reload
cmp w8, w25
b.le LBB0_40
; %bb.39: ; in Loop: Header=BB0_18 Depth=1
ldr x8, [x22, x23, lsl #3]
ldr x8, [x8]
Lloh10:
adrp x9, _STYLE_WRAP_DEFAULT@GOTPAGE
Lloh11:
ldr x9, [x9, _STYLE_WRAP_DEFAULT@GOTPAGEOFF]
Lloh12:
ldr x9, [x9]
ldr w27, [sp, #52] ; 4-byte Folded Reload
cmp x8, x9
b.eq LBB0_41
LBB0_40: ; in Loop: Header=BB0_18 Depth=1
mov x27, x24
LBB0_41: ; in Loop: Header=BB0_18 Depth=1
sub w3, w27, #1
mov x0, x21
mov x1, x19
mov x2, x25
ldr w4, [sp, #36] ; 4-byte Folded Reload
ldr x5, [sp, #40] ; 8-byte Folded Reload
bl _LayoutLine
cbnz x0, LBB0_52
; %bb.42: ; in Loop: Header=BB0_18 Depth=1
ldr x8, [x22, x23, lsl #3]
ldr x8, [x8]
Lloh13:
adrp x9, _STYLE_WRAP_NONE@GOTPAGE
Lloh14:
ldr x9, [x9, _STYLE_WRAP_NONE@GOTPAGEOFF]
Lloh15:
ldr x9, [x9]
cmp x8, x9
b.eq LBB0_61
; %bb.43: ; in Loop: Header=BB0_18 Depth=1
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #40] ; 8-byte Folded Spill
ldr w10, [sp, #52] ; 4-byte Folded Reload
cmp w27, w10
b.ne LBB0_47
; %bb.44: ; in Loop: Header=BB0_18 Depth=1
sub w28, w28, w26
add w8, w10, #1
ldr x9, [x19]
cmp x9, w8, sxtw
cinc w27, w10, gt
mov w26, #0 ; =0x0
b LBB0_48
LBB0_45: ; in Loop: Header=BB0_18 Depth=1
mov w12, #0 ; =0x0
LBB0_46: ; in Loop: Header=BB0_18 Depth=1
ldr w8, [x9]
cmp w12, w8
csel w8, w12, w8, gt
add w28, w8, w28
b LBB0_17
LBB0_47: ; in Loop: Header=BB0_18 Depth=1
mov w26, #0 ; =0x0
mov w28, #0 ; =0x0
LBB0_48: ; in Loop: Header=BB0_18 Depth=1
add w28, w28, w20
mov x22, x26
mov x25, x27
b LBB0_17
LBB0_49:
cmp x8, #1
b.lt LBB0_65
; %bb.50:
mov x21, #0 ; =0x0
mov x22, #0 ; =0x0
Lloh16:
adrp x20, _VLC_SUCCESS@GOTPAGE
Lloh17:
ldr x20, [x20, _VLC_SUCCESS@GOTPAGEOFF]
LBB0_51: ; =>This Inner Loop Header: Depth=1
ldr x8, [x19, #24]
add x0, x8, x21
bl _ReleaseGlyphBitMaps
add x22, x22, #1
ldr x8, [x19]
add x21, x21, #4
cmp x8, x22
b.gt LBB0_51
b LBB0_66
LBB0_52:
sxtw x20, w25
ldr x8, [x19]
cmp x8, x20
b.le LBB0_55
; %bb.53:
lsl x21, x20, #2
LBB0_54: ; =>This Inner Loop Header: Depth=1
ldr x8, [x19, #24]
add x0, x8, x21
bl _ReleaseGlyphBitMaps
add x20, x20, #1
ldr x8, [x19]
add x21, x21, #4
cmp x8, x20
b.gt LBB0_54
LBB0_55:
ldr x0, [sp, #56]
cbz x0, LBB0_57
; %bb.56:
bl _FreeLines
LBB0_57:
Lloh18:
adrp x20, _VLC_EGENERIC@GOTPAGE
Lloh19:
ldr x20, [x20, _VLC_EGENERIC@GOTPAGEOFF]
b LBB0_66
LBB0_58:
Lloh20:
adrp x1, l_.str.2@PAGE
Lloh21:
add x1, x1, l_.str.2@PAGEOFF
mov x0, x21
bl _msg_Dbg
; kill: def $w25 killed $w25 killed $x25 def $x25
sxtw x21, w25
ldr x8, [x19]
cmp x8, x21
b.le LBB0_65
; %bb.59:
lsl x22, x21, #2
Lloh22:
adrp x20, _VLC_SUCCESS@GOTPAGE
Lloh23:
ldr x20, [x20, _VLC_SUCCESS@GOTPAGEOFF]
LBB0_60: ; =>This Inner Loop Header: Depth=1
ldr x8, [x19, #24]
add x0, x8, x22
bl _ReleaseGlyphBitMaps
add x21, x21, #1
ldr x8, [x19]
add x22, x22, #4
cmp x8, x21
b.gt LBB0_60
b LBB0_66
LBB0_61:
; kill: def $w24 killed $w24 killed $x24 def $x24
sxtw x20, w24
ldr x8, [x19]
cmp x8, x20
b.le LBB0_64
; %bb.62:
lsl x21, x20, #2
LBB0_63: ; =>This Inner Loop Header: Depth=1
ldr x8, [x19, #24]
add x0, x8, x21
bl _ReleaseGlyphBitMaps
add x20, x20, #1
ldr x8, [x19]
add x21, x21, #4
cmp x8, x20
b.gt LBB0_63
LBB0_64:
ldr x8, [sp, #56]
ldr x9, [sp, #16] ; 8-byte Folded Reload
str x8, [x9]
LBB0_65:
Lloh24:
adrp x20, _VLC_SUCCESS@GOTPAGE
Lloh25:
ldr x20, [x20, _VLC_SUCCESS@GOTPAGEOFF]
LBB0_66:
ldr w0, [x20]
LBB0_67:
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 AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpLdrGot Lloh16, Lloh17
.loh AdrpLdrGot Lloh18, Lloh19
.loh AdrpAdd Lloh20, Lloh21
.loh AdrpLdrGot Lloh22, Lloh23
.loh AdrpLdrGot Lloh24, Lloh25
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "LayoutParagraph() invalid parameters. Paragraph size: %d. Runs count %d"
.comm _VLC_EGENERIC,4,2 ; @VLC_EGENERIC
l_.str.1: ; @.str.1
.asciz "LayoutParagraph(): Invalid max width"
.comm _VLC_SUCCESS,4,2 ; @VLC_SUCCESS
.comm _STYLE_WRAP_DEFAULT,8,3 ; @STYLE_WRAP_DEFAULT
l_.str.2: ; @.str.2
.asciz "LayoutParagraph(): First glyph width in line exceeds maximum, skipping"
.comm _STYLE_WRAP_NONE,8,3 ; @STYLE_WRAP_NONE
.no_dead_strip _LayoutParagraph
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _utf16_conv_utf8 ## -- Begin function utf16_conv_utf8
.p2align 4, 0x90
_utf16_conv_utf8: ## @utf16_conv_utf8
.cfi_startproc
## %bb.0:
testq %rcx, %rcx
je LBB0_1
## %bb.3:
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 %rcx, %r8
xorl %ebx, %ebx
movl $1, %r10d
leaq _utf16_conv_utf8.kUtf8Limits(%rip), %r11
xorl %r9d, %r9d
jmp LBB0_4
.p2align 4, 0x90
LBB0_17: ## in Loop: Header=BB0_4 Depth=1
movq %rbx, %r14
cmpq %r8, %r14
je LBB0_19
LBB0_4: ## =>This Loop Header: Depth=1
## Child Loop BB0_14 Depth 2
leaq -1(%rbx), %r14
movl (%rdx,%rbx,4), %ecx
cmpl $127, %ecx
jg LBB0_8
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
testq %rdi, %rdi
je LBB0_7
## %bb.6: ## in Loop: Header=BB0_4 Depth=1
movsbl %cl, %eax
movl %eax, (%rdi,%r9,4)
LBB0_7: ## in Loop: Header=BB0_4 Depth=1
incq %r9
movq %r14, %rbx
cmpq %r8, %r14
jne LBB0_4
jmp LBB0_19
.p2align 4, 0x90
LBB0_8: ## in Loop: Header=BB0_4 Depth=1
xorl %eax, %eax
cmpq %r8, %r14
je LBB0_20
## %bb.9: ## in Loop: Header=BB0_4 Depth=1
cmpl $56319, %ecx ## imm = 0xDBFF
ja LBB0_20
## %bb.10: ## in Loop: Header=BB0_4 Depth=1
movl -4(%rdx,%rbx,4), %r14d
leal -57344(%r14), %r15d
cmpl $-1024, %r15d ## imm = 0xFC00
jb LBB0_20
## %bb.11: ## in Loop: Header=BB0_4 Depth=1
shll $10, %ecx
leal (%rcx,%r14), %eax
addl $-56744960, %eax ## imm = 0xFC9E2400
cmpl $65536, %eax ## imm = 0x10000
movl $3, %r14d
sbbl $0, %r14d
cmpl $2048, %eax ## imm = 0x800
cmovll %r10d, %r14d
testq %rdi, %rdi
je LBB0_13
## %bb.12: ## in Loop: Header=BB0_4 Depth=1
leal -1(%r14), %r15d
leal (%r14,%r14), %ecx
leal (%rcx,%rcx,2), %ecx
movl %eax, %r12d
## kill: def $cl killed $cl killed $ecx
sarl %cl, %r12d
addl (%r11,%r15,4), %r12d
movsbl %r12b, %ecx
movl %ecx, (%rdi,%r9,4)
LBB0_13: ## in Loop: Header=BB0_4 Depth=1
incq %r9
leal (%r14,%r14,2), %ecx
leal -6(,%rcx,2), %ecx
jmp LBB0_14
.p2align 4, 0x90
LBB0_16: ## in Loop: Header=BB0_14 Depth=2
decl %r14d
incq %r9
addl $-6, %ecx
testl %r14d, %r14d
je LBB0_17
LBB0_14: ## Parent Loop BB0_4 Depth=1
## => This Inner Loop Header: Depth=2
testq %rdi, %rdi
je LBB0_16
## %bb.15: ## in Loop: Header=BB0_14 Depth=2
movl %eax, %r15d
sarl %cl, %r15d
andl $63, %r15d
orl $-128, %r15d
movl %r15d, (%rdi,%r9,4)
jmp LBB0_16
LBB0_1:
movl $1, %eax
xorl %r9d, %r9d
movq %r9, (%rsi)
retq
LBB0_19:
movl $1, %eax
LBB0_20:
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
movq %r9, (%rsi)
retq
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 4, 0x0 ## @utf16_conv_utf8.kUtf8Limits
_utf16_conv_utf8.kUtf8Limits:
.long 192 ## 0xc0
.long 224 ## 0xe0
.long 240 ## 0xf0
.long 248 ## 0xf8
.long 252 ## 0xfc
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _utf16_conv_utf8 ; -- Begin function utf16_conv_utf8
.p2align 2
_utf16_conv_utf8: ; @utf16_conv_utf8
.cfi_startproc
; %bb.0:
cbz x3, LBB0_16
; %bb.1:
mov x14, #0 ; =0x0
mov x8, #0 ; =0x0
mov w9, #9216 ; =0x2400
movk w9, #64670, lsl #16
mov w10, #2 ; =0x2
mov w11, #6 ; =0x6
mov w12, #-6 ; =0xfffffffa
Lloh0:
adrp x13, _utf16_conv_utf8.kUtf8Limits@PAGE
Lloh1:
add x13, x13, _utf16_conv_utf8.kUtf8Limits@PAGEOFF
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
mov x15, x14
cmp x15, x3
b.eq LBB0_17
LBB0_3: ; =>This Loop Header: Depth=1
; Child Loop BB0_14 Depth 2
sub x15, x14, #1
ldr w16, [x2, x14, lsl #2]
cmp w16, #127
b.gt LBB0_7
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
cbz x0, LBB0_6
; %bb.5: ; in Loop: Header=BB0_3 Depth=1
sxtb w14, w16
str w14, [x0, x8, lsl #2]
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
add x8, x8, #1
mov x14, x15
cmp x15, x3
b.ne LBB0_3
b LBB0_17
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
cmp x15, x3
b.eq LBB0_18
; %bb.8: ; in Loop: Header=BB0_3 Depth=1
lsr w17, w16, #10
cmp w17, #54
b.hi LBB0_18
; %bb.9: ; in Loop: Header=BB0_3 Depth=1
ldr w15, [x2, x15, lsl #2]
sub w17, w15, #14, lsl #12 ; =57344
cmn w17, #1024
b.lo LBB0_18
; %bb.10: ; in Loop: Header=BB0_3 Depth=1
add w15, w15, w16, lsl #10
add w15, w15, w9
cmp w15, #16, lsl #12 ; =65536
cinc w16, w10, hs
cmp w15, #2048
csinc w16, w16, wzr, ge
cbz x0, LBB0_12
; %bb.11: ; in Loop: Header=BB0_3 Depth=1
sub w17, w16, #1
ldr w17, [x13, w17, uxtw #2]
add w4, w16, w16, lsl #1
lsl w4, w4, #1
asr w4, w15, w4
add w17, w17, w4
sxtb w17, w17
str w17, [x0, x8, lsl #2]
LBB0_12: ; in Loop: Header=BB0_3 Depth=1
add x8, x8, #1
madd w17, w16, w11, w12
b LBB0_14
LBB0_13: ; in Loop: Header=BB0_14 Depth=2
add x8, x8, #1
sub w17, w17, #6
sub w16, w16, #1
cbz w16, LBB0_2
LBB0_14: ; Parent Loop BB0_3 Depth=1
; => This Inner Loop Header: Depth=2
cbz x0, LBB0_13
; %bb.15: ; in Loop: Header=BB0_14 Depth=2
asr w4, w15, w17
mov w5, #-128 ; =0xffffff80
bfxil w5, w4, #0, #6
str w5, [x0, x8, lsl #2]
b LBB0_13
LBB0_16:
mov x8, #0 ; =0x0
LBB0_17:
mov w0, #1 ; =0x1
str x8, [x1]
ret
LBB0_18:
mov w0, #0 ; =0x0
str x8, [x1]
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2, 0x0 ; @utf16_conv_utf8.kUtf8Limits
_utf16_conv_utf8.kUtf8Limits:
.long 192 ; 0xc0
.long 224 ; 0xe0
.long 240 ; 0xf0
.long 248 ; 0xf8
.long 252 ; 0xfc
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _message_sort ## -- Begin function message_sort
.p2align 4, 0x90
_message_sort: ## @message_sort
.cfi_startproc
## %bb.0:
testl %esi, %esi
jle LBB0_13
## %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
subq $24, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %rbx
movl %esi, %r12d
jmp LBB0_2
.p2align 4, 0x90
LBB0_11: ## in Loop: Header=BB0_2 Depth=1
movslq %ecx, %rax
leaq (%rbx,%rax,8), %rdi
movl -44(%rbp), %esi ## 4-byte Reload
subl %ecx, %esi
callq _message_sort
movl %r12d, %esi
testl %r12d, %r12d
jle LBB0_12
LBB0_2: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
## Child Loop BB0_4 Depth 3
## Child Loop BB0_6 Depth 3
movl %esi, -44(%rbp) ## 4-byte Spill
movl %esi, %eax
shrl %eax
movq (%rbx,%rax,8), %r15
xorl %ecx, %ecx
movq %r15, -56(%rbp) ## 8-byte Spill
jmp LBB0_3
.p2align 4, 0x90
LBB0_9: ## in Loop: Header=BB0_3 Depth=2
movq (%r15,%r13,8), %rax
movq (%r15,%rbx,8), %rcx
movq %rcx, (%r15,%r13,8)
movq %rax, (%r15,%rbx,8)
movq %r15, %rbx
movl %r14d, %ecx
LBB0_10: ## in Loop: Header=BB0_3 Depth=2
cmpl %r12d, %ecx
movq %rdx, %r15
jg LBB0_11
LBB0_3: ## Parent Loop BB0_2 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_4 Depth 3
## Child Loop BB0_6 Depth 3
movslq %ecx, %r13
leal 2(%r13), %r14d
incq %r13
.p2align 4, 0x90
LBB0_4: ## Parent Loop BB0_2 Depth=1
## Parent Loop BB0_3 Depth=2
## => This Inner Loop Header: Depth=3
movq -8(%rbx,%r13,8), %rdi
movq %r15, %rsi
callq _message_cmp
decl %r14d
decq %r13
testq %rax, %rax
js LBB0_4
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
leal -1(%r14), %eax
movl %eax, -48(%rbp) ## 4-byte Spill
movq %rbx, %r15
movslq %r12d, %rbx
incq %rbx
.p2align 4, 0x90
LBB0_6: ## Parent Loop BB0_2 Depth=1
## Parent Loop BB0_3 Depth=2
## => This Inner Loop Header: Depth=3
movq -8(%r15,%rbx,8), %rdi
movq -56(%rbp), %rsi ## 8-byte Reload
callq _message_cmp
decl %r12d
decq %rbx
testq %rax, %rax
jg LBB0_6
## %bb.7: ## in Loop: Header=BB0_3 Depth=2
movq -56(%rbp), %rdx ## 8-byte Reload
cmpq %rbx, %r13
jle LBB0_9
## %bb.8: ## in Loop: Header=BB0_3 Depth=2
incl %r12d
movq %r15, %rbx
movl -48(%rbp), %ecx ## 4-byte Reload
jmp LBB0_10
LBB0_12:
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
LBB0_13:
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _message_sort ; -- Begin function message_sort
.p2align 2
_message_sort: ; @message_sort
.cfi_startproc
; %bb.0:
cmp w1, #1
b.lt LBB0_12
; %bb.1:
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
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
add x0, x19, w24, sxtw #3
sub w1, w20, w24
bl _message_sort
mov x20, x22
cmp w22, #0
b.le LBB0_11
LBB0_3: ; =>This Loop Header: Depth=1
; Child Loop BB0_5 Depth 2
; Child Loop BB0_6 Depth 3
; Child Loop BB0_8 Depth 3
mov w24, #0 ; =0x0
lsr w8, w20, #1
ldr x21, [x19, w8, uxtw #3]
mov x22, x20
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_5 Depth=2
add x8, x19, x22, lsl #3
ldr x9, [x25, #8]
ldr x10, [x8, #8]
str x10, [x25, #8]
str x9, [x8, #8]
mov x24, x23
cmp w24, w22
b.gt LBB0_2
LBB0_5: ; Parent Loop BB0_3 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_6 Depth 3
; Child Loop BB0_8 Depth 3
sxtw x26, w24
add w23, w24, #2
LBB0_6: ; Parent Loop BB0_3 Depth=1
; Parent Loop BB0_5 Depth=2
; => This Inner Loop Header: Depth=3
ldr x0, [x19, x26, lsl #3]
mov x1, x21
bl _message_cmp
sub x26, x26, #1
sub w23, w23, #1
tbnz x0, #63, LBB0_6
; %bb.7: ; in Loop: Header=BB0_5 Depth=2
add x25, x19, x26, lsl #3
sub w24, w23, #1
; kill: def $w22 killed $w22 killed $x22 def $x22
sxtw x22, w22
add x26, x26, #1
LBB0_8: ; Parent Loop BB0_3 Depth=1
; Parent Loop BB0_5 Depth=2
; => This Inner Loop Header: Depth=3
ldr x0, [x19, x22, lsl #3]
mov x1, x21
bl _message_cmp
sub x22, x22, #1
cmp x0, #0
b.gt LBB0_8
; %bb.9: ; in Loop: Header=BB0_5 Depth=2
add x8, x22, #1
cmp x26, x8
b.le LBB0_4
; %bb.10: ; in Loop: Header=BB0_5 Depth=2
add w22, w22, #1
cmp w24, w22
b.le LBB0_5
b LBB0_2
LBB0_11:
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
LBB0_12:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function init_vmcs_shadow_fields
_init_vmcs_shadow_fields: ## @init_vmcs_shadow_fields
.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 _vmx_vmread_bitmap@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _PAGE_SIZE@GOTPCREL(%rip), %rbx
movl (%rbx), %edx
movl $255, %esi
callq _memset
movq _vmx_vmwrite_bitmap@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl (%rbx), %edx
movl $255, %esi
callq _memset
movq _max_shadow_read_only_fields@GOTPCREL(%rip), %r15
movl $0, -44(%rbp) ## 4-byte Folded Spill
cmpl $0, (%r15)
movl $0, %ecx
jle LBB0_7
## %bb.1:
movq _shadow_read_only_fields@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl $1, %ebx
xorl %r12d, %r12d
jmp LBB0_2
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
leal 1(%r14), %esi
leaq L_.str(%rip), %rdi
callq _pr_err
LBB0_6: ## in Loop: Header=BB0_2 Depth=1
movq _vmx_vmread_bitmap@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl %r14d, %edi
callq _clear_bit
addl $4, %r13d
movq _shadow_read_only_fields@GOTPCREL(%rip), %rax
movq (%rax), %rax
leaq 1(%r12), %rcx
movl %r14d, (%rax,%r12,8)
movl %r13d, 4(%rax,%r12,8)
movslq (%r15), %rdx
decq %rbx
movq %rcx, %r12
cmpq %rdx, %rbx
jg LBB0_7
LBB0_2: ## =>This Inner Loop Header: Depth=1
movl -8(%rax,%rbx,8), %r14d
movl -4(%rax,%rbx,8), %r13d
movl %r14d, %edi
callq _vmcs_field_width
movq _VMCS_FIELD_WIDTH_U64@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_5
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
cmpl (%r15), %ebx
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
movq _shadow_read_only_fields@GOTPCREL(%rip), %rax
movq (%rax), %rax
leal 1(%r14), %ecx
cmpl %ecx, (%rax,%rbx,8)
jne LBB0_5
jmp LBB0_6
LBB0_7:
movl %ecx, (%r15)
movq _max_shadow_read_write_fields@GOTPCREL(%rip), %rax
movq %rax, %r13
cmpl $0, (%rax)
jle LBB0_23
## %bb.8:
movq _shadow_read_write_fields@GOTPCREL(%rip), %r12
xorl %r14d, %r14d
movl $0, -44(%rbp) ## 4-byte Folded Spill
jmp LBB0_9
.p2align 4, 0x90
LBB0_21: ## in Loop: Header=BB0_9 Depth=1
movq _vmx_vmwrite_bitmap@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl %r15d, %edi
callq _clear_bit
movq _vmx_vmread_bitmap@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl %r15d, %edi
callq _clear_bit
movl %r15d, %eax
andl $1, %eax
leal (%rbx,%rax,4), %eax
movq (%r12), %rcx
movl -44(%rbp), %esi ## 4-byte Reload
movslq %esi, %rdx
incl %esi
movl %esi, -44(%rbp) ## 4-byte Spill
movl %r15d, (%rcx,%rdx,8)
movl %eax, 4(%rcx,%rdx,8)
LBB0_22: ## in Loop: Header=BB0_9 Depth=1
incq %r14
movslq (%r13), %rax
cmpq %rax, %r14
jge LBB0_23
LBB0_9: ## =>This Inner Loop Header: Depth=1
movq (%r12), %rax
movl (%rax,%r14,8), %r15d
movl 4(%rax,%r14,8), %ebx
movl %r15d, %edi
callq _vmcs_field_width
movq _VMCS_FIELD_WIDTH_U64@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_14
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
leaq 1(%r14), %rax
movl (%r13), %ecx
cmpq %rcx, %rax
jne LBB0_12
## %bb.11: ## in Loop: Header=BB0_9 Depth=1
leal 1(%r15), %esi
jmp LBB0_13
.p2align 4, 0x90
LBB0_12: ## in Loop: Header=BB0_9 Depth=1
movq (%r12), %rax
leal 1(%r15), %esi
cmpl %esi, 8(%rax,%r14,8)
je LBB0_14
LBB0_13: ## in Loop: Header=BB0_9 Depth=1
leaq L_.str.1(%rip), %rdi
callq _pr_err
LBB0_14: ## in Loop: Header=BB0_9 Depth=1
movq _GUEST_ES_AR_BYTES@GOTPCREL(%rip), %rax
cmpl (%rax), %r15d
setge %al
movq _GUEST_TR_AR_BYTES@GOTPCREL(%rip), %rcx
cmpl (%rcx), %r15d
setle %cl
andb %al, %cl
movzbl %cl, %edi
leaq L_.str.2(%rip), %rsi
callq _WARN_ONCE
cmpl $128, %r15d
je LBB0_18
## %bb.15: ## in Loop: Header=BB0_9 Depth=1
cmpl $130, %r15d
je LBB0_19
## %bb.16: ## in Loop: Header=BB0_9 Depth=1
cmpl $129, %r15d
jne LBB0_21
## %bb.17: ## in Loop: Header=BB0_9 Depth=1
xorl %eax, %eax
callq _cpu_has_vmx_pml
jmp LBB0_22
.p2align 4, 0x90
LBB0_19: ## in Loop: Header=BB0_9 Depth=1
xorl %eax, %eax
callq _cpu_has_vmx_apicv
testl %eax, %eax
jne LBB0_21
jmp LBB0_22
.p2align 4, 0x90
LBB0_18: ## in Loop: Header=BB0_9 Depth=1
xorl %eax, %eax
callq _cpu_has_vmx_preemption_timer
testl %eax, %eax
jne LBB0_21
jmp LBB0_22
LBB0_23:
movl -44(%rbp), %eax ## 4-byte Reload
movl %eax, (%r13)
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _vmx_vmread_bitmap,4,2 ## @vmx_vmread_bitmap
.comm _PAGE_SIZE,4,2 ## @PAGE_SIZE
.comm _vmx_vmwrite_bitmap,4,2 ## @vmx_vmwrite_bitmap
.comm _max_shadow_read_only_fields,4,2 ## @max_shadow_read_only_fields
.comm _shadow_read_only_fields,8,3 ## @shadow_read_only_fields
.comm _VMCS_FIELD_WIDTH_U64,8,3 ## @VMCS_FIELD_WIDTH_U64
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Missing field from shadow_read_only_field %x\n"
.comm _max_shadow_read_write_fields,4,2 ## @max_shadow_read_write_fields
.comm _shadow_read_write_fields,8,3 ## @shadow_read_write_fields
L_.str.1: ## @.str.1
.asciz "Missing field from shadow_read_write_field %x\n"
.comm _GUEST_ES_AR_BYTES,4,2 ## @GUEST_ES_AR_BYTES
.comm _GUEST_TR_AR_BYTES,4,2 ## @GUEST_TR_AR_BYTES
L_.str.2: ## @.str.2
.asciz "Update vmcs12_write_any() to drop reserved bits from AR_BYTES"
.no_dead_strip _init_vmcs_shadow_fields
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function init_vmcs_shadow_fields
_init_vmcs_shadow_fields: ; @init_vmcs_shadow_fields
.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
.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 x28, _vmx_vmread_bitmap@GOTPAGE
Lloh1:
ldr x28, [x28, _vmx_vmread_bitmap@GOTPAGEOFF]
ldr w0, [x28]
Lloh2:
adrp x19, _PAGE_SIZE@GOTPAGE
Lloh3:
ldr x19, [x19, _PAGE_SIZE@GOTPAGEOFF]
ldr w2, [x19]
mov w1, #255 ; =0xff
bl _memset
Lloh4:
adrp x8, _vmx_vmwrite_bitmap@GOTPAGE
Lloh5:
ldr x8, [x8, _vmx_vmwrite_bitmap@GOTPAGEOFF]
Lloh6:
ldr w0, [x8]
ldr w2, [x19]
mov w1, #255 ; =0xff
bl _memset
Lloh7:
adrp x21, _max_shadow_read_only_fields@GOTPAGE
Lloh8:
ldr x21, [x21, _max_shadow_read_only_fields@GOTPAGEOFF]
ldr w8, [x21]
Lloh9:
adrp x24, _VMCS_FIELD_WIDTH_U64@GOTPAGE
Lloh10:
ldr x24, [x24, _VMCS_FIELD_WIDTH_U64@GOTPAGEOFF]
cmp w8, #1
b.lt LBB0_8
; %bb.1:
mov x22, #0 ; =0x0
mov x23, #0 ; =0x0
mov x26, #0 ; =0x0
Lloh11:
adrp x25, _shadow_read_only_fields@GOTPAGE
Lloh12:
ldr x25, [x25, _shadow_read_only_fields@GOTPAGEOFF]
ldr x8, [x25]
Lloh13:
adrp x19, l_.str@PAGE
Lloh14:
add x19, x19, l_.str@PAGEOFF
b LBB0_4
LBB0_2: ; in Loop: Header=BB0_4 Depth=1
add w1, w20, #1
mov x0, x19
bl _pr_err
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
ldr w1, [x28]
mov x0, x20
bl _clear_bit
add w9, w27, #4
ldr x8, [x25]
add x10, x8, x23
stp w20, w9, [x10]
sub x9, x26, #1
ldrsw x10, [x21]
add x23, x23, #8
sub x22, x22, #8
cmp x26, x10
mov x26, x9
b.gt LBB0_7
LBB0_4: ; =>This Inner Loop Header: Depth=1
add x8, x8, x22
ldp w20, w27, [x8]
mov x0, x20
bl _vmcs_field_width
ldr x8, [x24]
cmp x0, x8
b.eq LBB0_2
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [x21]
add w9, w26, #1
cmp w9, w8
b.eq LBB0_2
; %bb.6: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x25]
add x8, x8, x22
ldr w8, [x8, #8]
add w9, w20, #1
cmp w8, w9
b.ne LBB0_2
b LBB0_3
LBB0_7:
neg w8, w9
b LBB0_9
LBB0_8:
mov w8, #0 ; =0x0
LBB0_9:
str w8, [x21]
Lloh15:
adrp x25, _max_shadow_read_write_fields@GOTPAGE
Lloh16:
ldr x25, [x25, _max_shadow_read_write_fields@GOTPAGEOFF]
ldr w8, [x25]
cmp w8, #1
b.lt LBB0_24
; %bb.10:
mov x27, #0 ; =0x0
mov w26, #0 ; =0x0
mov w28, #1 ; =0x1
Lloh17:
adrp x23, _shadow_read_write_fields@GOTPAGE
Lloh18:
ldr x23, [x23, _shadow_read_write_fields@GOTPAGEOFF]
Lloh19:
adrp x22, _GUEST_TR_AR_BYTES@GOTPAGE
Lloh20:
ldr x22, [x22, _GUEST_TR_AR_BYTES@GOTPAGEOFF]
Lloh21:
adrp x20, l_.str.2@PAGE
Lloh22:
add x20, x20, l_.str.2@PAGEOFF
b LBB0_14
LBB0_11: ; in Loop: Header=BB0_14 Depth=1
bl _cpu_has_vmx_apicv
cbz w0, LBB0_13
LBB0_12: ; in Loop: Header=BB0_14 Depth=1
Lloh23:
adrp x8, _vmx_vmwrite_bitmap@GOTPAGE
Lloh24:
ldr x8, [x8, _vmx_vmwrite_bitmap@GOTPAGEOFF]
Lloh25:
ldr w1, [x8]
mov x0, x21
bl _clear_bit
Lloh26:
adrp x8, _vmx_vmread_bitmap@GOTPAGE
Lloh27:
ldr x8, [x8, _vmx_vmread_bitmap@GOTPAGEOFF]
Lloh28:
ldr w1, [x8]
mov x0, x21
bl _clear_bit
ubfiz w8, w21, #2, #1
add w8, w8, w19
ldr x9, [x23]
add x9, x9, w26, sxtw #3
add w26, w26, #1
stp w21, w8, [x9]
LBB0_13: ; in Loop: Header=BB0_14 Depth=1
ldrsw x8, [x25]
add x27, x27, #8
add x9, x28, #1
cmp x28, x8
mov x28, x9
b.ge LBB0_25
LBB0_14: ; =>This Inner Loop Header: Depth=1
ldr x8, [x23]
add x8, x8, x27
ldp w21, w19, [x8]
mov x0, x21
bl _vmcs_field_width
ldr x8, [x24]
cmp x0, x8
b.ne LBB0_19
; %bb.15: ; in Loop: Header=BB0_14 Depth=1
ldr w8, [x25]
cmp x28, x8
b.ne LBB0_17
; %bb.16: ; in Loop: Header=BB0_14 Depth=1
add w1, w21, #1
b LBB0_18
LBB0_17: ; in Loop: Header=BB0_14 Depth=1
ldr x8, [x23]
add x8, x8, x27
ldr w8, [x8, #8]
add w1, w21, #1
cmp w8, w1
b.eq LBB0_19
LBB0_18: ; in Loop: Header=BB0_14 Depth=1
Lloh29:
adrp x0, l_.str.1@PAGE
Lloh30:
add x0, x0, l_.str.1@PAGEOFF
bl _pr_err
LBB0_19: ; in Loop: Header=BB0_14 Depth=1
Lloh31:
adrp x8, _GUEST_ES_AR_BYTES@GOTPAGE
Lloh32:
ldr x8, [x8, _GUEST_ES_AR_BYTES@GOTPAGEOFF]
Lloh33:
ldr w8, [x8]
cmp w21, w8
ldr w8, [x22]
ccmp w21, w8, #0, ge
cset w0, le
mov x1, x20
bl _WARN_ONCE
cmp w21, #128
b.eq LBB0_23
; %bb.20: ; in Loop: Header=BB0_14 Depth=1
cmp w21, #130
b.eq LBB0_11
; %bb.21: ; in Loop: Header=BB0_14 Depth=1
cmp w21, #129
b.ne LBB0_12
; %bb.22: ; in Loop: Header=BB0_14 Depth=1
bl _cpu_has_vmx_pml
b LBB0_13
LBB0_23: ; in Loop: Header=BB0_14 Depth=1
bl _cpu_has_vmx_preemption_timer
cbnz w0, LBB0_12
b LBB0_13
LBB0_24:
mov w26, #0 ; =0x0
LBB0_25:
str w26, [x25]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
ldp x22, x21, [sp, #48] ; 16-byte Folded Reload
ldp x24, x23, [sp, #32] ; 16-byte Folded Reload
ldp x26, x25, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #96 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh9, Lloh10
.loh AdrpLdrGot Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh13, Lloh14
.loh AdrpLdrGot Lloh11, Lloh12
.loh AdrpLdrGot Lloh15, Lloh16
.loh AdrpAdd Lloh21, Lloh22
.loh AdrpLdrGot Lloh19, Lloh20
.loh AdrpLdrGot Lloh17, Lloh18
.loh AdrpLdrGotLdr Lloh26, Lloh27, Lloh28
.loh AdrpLdrGotLdr Lloh23, Lloh24, Lloh25
.loh AdrpAdd Lloh29, Lloh30
.loh AdrpLdrGotLdr Lloh31, Lloh32, Lloh33
.cfi_endproc
; -- End function
.comm _vmx_vmread_bitmap,4,2 ; @vmx_vmread_bitmap
.comm _PAGE_SIZE,4,2 ; @PAGE_SIZE
.comm _vmx_vmwrite_bitmap,4,2 ; @vmx_vmwrite_bitmap
.comm _max_shadow_read_only_fields,4,2 ; @max_shadow_read_only_fields
.comm _shadow_read_only_fields,8,3 ; @shadow_read_only_fields
.comm _VMCS_FIELD_WIDTH_U64,8,3 ; @VMCS_FIELD_WIDTH_U64
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Missing field from shadow_read_only_field %x\n"
.comm _max_shadow_read_write_fields,4,2 ; @max_shadow_read_write_fields
.comm _shadow_read_write_fields,8,3 ; @shadow_read_write_fields
l_.str.1: ; @.str.1
.asciz "Missing field from shadow_read_write_field %x\n"
.comm _GUEST_ES_AR_BYTES,4,2 ; @GUEST_ES_AR_BYTES
.comm _GUEST_TR_AR_BYTES,4,2 ; @GUEST_TR_AR_BYTES
l_.str.2: ; @.str.2
.asciz "Update vmcs12_write_any() to drop reserved bits from AR_BYTES"
.no_dead_strip _init_vmcs_shadow_fields
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function sort_ref_dir
_sort_ref_dir: ## @sort_ref_dir
.cfi_startproc
## %bb.0:
movl 4(%rdi), %esi
cmpl %esi, (%rdi)
je LBB0_10
## %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 %rdi, %rbx
movq 8(%rdi), %rdi
movq _ref_entry_cmp@GOTPCREL(%rip), %rax
movl (%rax), %edx
callq _QSORT
cmpl $0, 4(%rbx)
js LBB0_2
## %bb.3:
xorl %r12d, %r12d
xorl %r15d, %r15d
xorl %r13d, %r13d
jmp LBB0_4
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_4 Depth=1
movq %r14, %rdi
callq _free_ref_entry
LBB0_8: ## in Loop: Header=BB0_4 Depth=1
decq %r12
movslq 4(%rbx), %rax
cmpq %rax, %r12
jg LBB0_9
LBB0_4: ## =>This Inner Loop Header: Depth=1
movq 8(%rbx), %rax
movq (%rax,%r12,8), %r14
testq %r13, %r13
jne LBB0_6
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
xorl %edi, %edi
movq %r14, %rsi
callq _is_dup_ref
testq %rax, %rax
jne LBB0_6
## %bb.7: ## in Loop: Header=BB0_4 Depth=1
movq 8(%rbx), %rax
movslq %r15d, %rcx
incl %r15d
movq %r14, (%rax,%rcx,8)
movq %r14, %r13
jmp LBB0_8
LBB0_2:
xorl %r15d, %r15d
LBB0_9:
movl %r15d, 4(%rbx)
movl %r15d, (%rbx)
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
LBB0_10:
retq
.cfi_endproc
## -- End function
.comm _ref_entry_cmp,4,2 ## @ref_entry_cmp
.no_dead_strip _sort_ref_dir
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function sort_ref_dir
_sort_ref_dir: ; @sort_ref_dir
.cfi_startproc
; %bb.0:
ldp w8, w1, [x0]
cmp w8, w1
b.eq LBB0_10
; %bb.1:
stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
mov x19, x0
ldr x0, [x0, #8]
Lloh0:
adrp x8, _ref_entry_cmp@GOTPAGE
Lloh1:
ldr x8, [x8, _ref_entry_cmp@GOTPAGEOFF]
Lloh2:
ldr w2, [x8]
bl _QSORT
ldr w8, [x19, #4]
tbnz w8, #31, LBB0_8
; %bb.2:
mov x22, #0 ; =0x0
mov w21, #0 ; =0x0
mov x23, #0 ; =0x0
b LBB0_5
LBB0_3: ; in Loop: Header=BB0_5 Depth=1
mov x0, x20
bl _free_ref_entry
LBB0_4: ; in Loop: Header=BB0_5 Depth=1
sub x22, x22, #1
ldrsw x8, [x19, #4]
cmp x22, x8
b.gt LBB0_9
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [x19, #8]
ldr x20, [x8, x22, lsl #3]
cbnz x23, LBB0_3
; %bb.6: ; in Loop: Header=BB0_5 Depth=1
mov x0, #0 ; =0x0
mov x1, x20
bl _is_dup_ref
cbnz x0, LBB0_3
; %bb.7: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [x19, #8]
str x20, [x8, w21, sxtw #3]
add w21, w21, #1
mov x23, x20
b LBB0_4
LBB0_8:
mov w21, #0 ; =0x0
LBB0_9:
stp w21, w21, [x19]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
LBB0_10:
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _ref_entry_cmp,4,2 ; @ref_entry_cmp
.no_dead_strip _sort_ref_dir
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl ___tcf_em_tree_match ## -- Begin function __tcf_em_tree_match
.p2align 4, 0x90
___tcf_em_tree_match: ## @__tcf_em_tree_match
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $56, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdx, -88(%rbp) ## 8-byte Spill
movq %rsi, %rbx
movq %rdi, -80(%rbp) ## 8-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movq _CONFIG_NET_EMATCH_STACK@GOTPCREL(%rip), %rax
movl (%rax), %eax
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %rax
movq %rax, -64(%rbp) ## 8-byte Spill
addq $-4, %rax
movq %rax, -72(%rbp) ## 8-byte Spill
xorl %r13d, %r13d
xorl %r12d, %r12d
xorl %r15d, %r15d
movq %rbx, -56(%rbp) ## 8-byte Spill
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_7 Depth 2
## Child Loop BB0_3 Depth 2
cmpl (%rbx), %r13d
jge LBB0_2
.p2align 4, 0x90
LBB0_7: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movq %rbx, %rdi
movl %r13d, %esi
callq _tcf_em_get_match
movq %rbx, %r14
movq %rax, %rbx
movq %rax, %rdi
callq _tcf_em_is_container
testq %rax, %rax
jne LBB0_8
## %bb.6: ## in Loop: Header=BB0_7 Depth=2
movq -80(%rbp), %rdi ## 8-byte Reload
movq %rbx, %rsi
movq -88(%rbp), %rdx ## 8-byte Reload
callq _tcf_em_match
movl %eax, %r12d
movq %rbx, %rdi
movl %eax, %esi
callq _tcf_em_early_end
cmpq $1, %rax
adcl $0, %r13d
cmpl (%r14), %r13d
movq %r14, %rbx
jl LBB0_7
.p2align 4, 0x90
LBB0_2: ## in Loop: Header=BB0_1 Depth=1
movl %r15d, %eax
movq -72(%rbp), %rcx ## 8-byte Reload
leaq (%rcx,%rax,4), %r14
.p2align 4, 0x90
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
testl %r15d, %r15d
jle LBB0_11
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movl (%r14), %r13d
movq %rbx, %rdi
movl %r13d, %esi
callq _tcf_em_get_match
movq %rax, %rbx
movq %rax, %rdi
callq _tcf_em_is_inverted
xorl %ecx, %ecx
testl %r12d, %r12d
sete %cl
testq %rax, %rax
cmovnel %ecx, %r12d
movq %rbx, %rdi
movq -56(%rbp), %rbx ## 8-byte Reload
movl %r12d, %esi
callq _tcf_em_early_end
decl %r15d
addq $-4, %r14
testq %rax, %rax
jne LBB0_3
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
incl %r13d
jmp LBB0_1
.p2align 4, 0x90
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
xorl %edi, %edi
movq _CONFIG_NET_EMATCH_STACK@GOTPCREL(%rip), %rax
cmpl (%rax), %r15d
setge %dil
callq _unlikely
testq %rax, %rax
jne LBB0_10
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
movslq %r15d, %rax
decl %r15d
movq -64(%rbp), %rcx ## 8-byte Reload
movl %r13d, (%rcx,%rax,4)
movl (%rbx), %r13d
movq -56(%rbp), %rbx ## 8-byte Reload
jmp LBB0_1
LBB0_10:
leaq L_.str(%rip), %rdi
callq _net_warn_ratelimited
movl $-1, %r12d
LBB0_11:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -48(%rbp), %rax
jne LBB0_13
## %bb.12:
movl %r12d, %eax
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_13:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _CONFIG_NET_EMATCH_STACK,4,2 ## @CONFIG_NET_EMATCH_STACK
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "tc ematch: local stack overflow, increase NET_EMATCH_STACK\n"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl ___tcf_em_tree_match ; -- Begin function __tcf_em_tree_match
.p2align 2
___tcf_em_tree_match: ; @__tcf_em_tree_match
.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, #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, x2
mov x20, x1
mov x21, x0
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-88]
Lloh3:
adrp x8, _CONFIG_NET_EMATCH_STACK@GOTPAGE
Lloh4:
ldr x8, [x8, _CONFIG_NET_EMATCH_STACK@GOTPAGEOFF]
Lloh5:
ldr w8, [x8]
lsl x8, x8, #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 x26, x9, x8
mov sp, x26
mov w23, #0 ; =0x0
mov w22, #0 ; =0x0
mov w28, #0 ; =0x0
sub x27, x26, #4
b LBB0_2
LBB0_1: ; in Loop: Header=BB0_2 Depth=1
mov x0, x21
mov x1, x24
mov x2, x19
bl _tcf_em_match
mov x22, x0
mov x0, x24
mov x1, x22
bl _tcf_em_early_end
cmp x0, #0
cinc w23, w23, eq
LBB0_2: ; =>This Loop Header: Depth=1
; Child Loop BB0_7 Depth 2
ldr w8, [x20]
cmp w23, w8
b.ge LBB0_6
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
mov x0, x20
mov x1, x23
bl _tcf_em_get_match
mov x24, x0
bl _tcf_em_is_container
cbz x0, LBB0_1
; %bb.4: ; in Loop: Header=BB0_2 Depth=1
Lloh8:
adrp x8, _CONFIG_NET_EMATCH_STACK@GOTPAGE
Lloh9:
ldr x8, [x8, _CONFIG_NET_EMATCH_STACK@GOTPAGEOFF]
Lloh10:
ldr w8, [x8]
cmp w28, w8
cset w0, ge
bl _unlikely
cbnz x0, LBB0_10
; %bb.5: ; in Loop: Header=BB0_2 Depth=1
str w23, [x26, w28, sxtw #2]
sub w28, w28, #1
ldr w23, [x24]
b LBB0_2
LBB0_6: ; in Loop: Header=BB0_2 Depth=1
add x25, x27, w28, uxtw #2
LBB0_7: ; Parent Loop BB0_2 Depth=1
; => This Inner Loop Header: Depth=2
subs w28, w28, #1
b.lt LBB0_11
; %bb.8: ; in Loop: Header=BB0_7 Depth=2
ldr w23, [x25], #-4
mov x0, x20
mov x1, x23
bl _tcf_em_get_match
mov x24, x0
bl _tcf_em_is_inverted
cmp w22, #0
cset w8, eq
cmp x0, #0
csel w22, w22, w8, eq
mov x0, x24
mov x1, x22
bl _tcf_em_early_end
cbnz x0, LBB0_7
; %bb.9: ; in Loop: Header=BB0_2 Depth=1
add w23, w23, #1
b LBB0_2
LBB0_10:
Lloh11:
adrp x0, l_.str@PAGE
Lloh12:
add x0, x0, l_.str@PAGEOFF
bl _net_warn_ratelimited
mov w22, #-1 ; =0xffffffff
LBB0_11:
ldur x8, [x29, #-88]
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_13
; %bb.12:
mov x0, x22
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_13:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpAdd Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpLdrGot Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _CONFIG_NET_EMATCH_STACK,4,2 ; @CONFIG_NET_EMATCH_STACK
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "tc ematch: local stack overflow, increase NET_EMATCH_STACK\n"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function virtio_crypto_alg_ablkcipher_init_session
_virtio_crypto_alg_ablkcipher_init_session: ## @virtio_crypto_alg_ablkcipher_init_session
.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 %r8d, %ebx
movl %ecx, %r13d
movq %rdx, %rax
movl %esi, -88(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rcx, -48(%rbp)
movq %rdi, -104(%rbp) ## 8-byte Spill
movq 16(%rdi), %r14
movq _VIRTIO_CRYPTO_OP_ENCRYPT@GOTPCREL(%rip), %rcx
movl (%rcx), %r12d
movq _VIRTIO_CRYPTO_OP_DECRYPT@GOTPCREL(%rip), %rcx
movl (%rcx), %r15d
movq _GFP_ATOMIC@GOTPCREL(%rip), %rcx
movl (%rcx), %edx
movq %rax, %rdi
movl %r13d, %esi
callq _kmemdup
testq %rax, %rax
je LBB0_1
## %bb.3:
movl %ebx, -92(%rbp) ## 4-byte Spill
testl %ebx, %ebx
cmovel %r15d, %r12d
movq %r14, %rdi
movq %rax, %rbx
callq _spin_lock
movq _VIRTIO_CRYPTO_CIPHER_CREATE_SESSION@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _cpu_to_le32
leaq 88(%r14), %r15
movq %rax, 152(%r14)
movl -88(%rbp), %edi ## 4-byte Reload
callq _cpu_to_le32
movq %rax, 136(%r14)
movq $0, 144(%r14)
movq _VIRTIO_CRYPTO_ERR@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _cpu_to_le32
leaq 8(%r14), %rcx
movq %rcx, -88(%rbp) ## 8-byte Spill
movq %rax, 16(%r14)
movq _VIRTIO_CRYPTO_SYM_OP_CIPHER@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _cpu_to_le32
movq %rax, 128(%r14)
movq 136(%r14), %rax
movq %rax, 120(%r14)
movl %r13d, %edi
callq _cpu_to_le32
movq %rax, 112(%r14)
movl %r12d, %edi
callq _cpu_to_le32
movq %rax, 104(%r14)
leaq -120(%rbp), %rdi
movq %r15, %rsi
movl $72, %edx
callq _sg_init_one
leaq -116(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movl %r13d, %edx
callq _sg_init_one
movabsq $34359738360, %rax ## imm = 0x7FFFFFFF8
movq %r15, -80(%rbp,%rax)
leaq -112(%rbp), %r15
movq %r15, %rdi
movq -88(%rbp), %rsi ## 8-byte Reload
movl $72, %edx
callq _sg_init_one
movq %r15, -80(%rbp)
movl 80(%r14), %edi
movq _GFP_ATOMIC@GOTPCREL(%rip), %rax
movl (%rax), %r9d
leaq -80(%rbp), %rsi
xorl %edx, %edx
movl $1, %ecx
movq %r14, %r8
callq _virtqueue_add_sgs
testl %eax, %eax
movq %rbx, %r15
jle LBB0_4
## %bb.5:
movl 80(%r14), %edi
callq _virtqueue_kick
leaq -108(%rbp), %rbx
movl -92(%rbp), %r12d ## 4-byte Reload
jmp LBB0_6
.p2align 4, 0x90
LBB0_8: ## in Loop: Header=BB0_6 Depth=1
xorl %eax, %eax
callq _cpu_relax
LBB0_6: ## =>This Inner Loop Header: Depth=1
movl 80(%r14), %edi
movq %rbx, %rsi
callq _virtqueue_get_buf
testl %eax, %eax
je LBB0_8
## %bb.7: ## in Loop: Header=BB0_6 Depth=1
movl 80(%r14), %edi
callq _virtqueue_is_broken
testl %eax, %eax
je LBB0_8
## %bb.9:
movq 16(%r14), %rdi
callq _le32_to_cpu
movq _VIRTIO_CRYPTO_OK@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_10
## %bb.11:
xorl %ebx, %ebx
testl %r12d, %r12d
setne %bl
movl 8(%r14), %edi
callq _le64_to_cpu
movq -104(%rbp), %rcx ## 8-byte Reload
movq %rax, (%rcx,%rbx,8)
movq %r14, %rdi
callq _spin_unlock
movq %r15, %rdi
callq _kzfree
xorl %eax, %eax
jmp LBB0_12
LBB0_1:
movq _ENOMEM@GOTPCREL(%rip), %rcx
jmp LBB0_2
LBB0_4:
movq %r14, %rdi
movl %eax, %ebx
callq _spin_unlock
movq %r15, %rdi
callq _kzfree
movl %ebx, %eax
jmp LBB0_12
LBB0_10:
movq %r14, %rdi
callq _spin_unlock
movq 16(%r14), %rdi
callq _le32_to_cpu
leaq L_.str(%rip), %rdi
movq %rax, %rsi
callq _pr_err
movq %r15, %rdi
callq _kzfree
movq _EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
xorl %eax, %eax
subl (%rcx), %eax
LBB0_12:
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -48(%rbp), %rcx
jne LBB0_14
## %bb.13:
addq $88, %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 _VIRTIO_CRYPTO_OP_ENCRYPT,4,2 ## @VIRTIO_CRYPTO_OP_ENCRYPT
.comm _VIRTIO_CRYPTO_OP_DECRYPT,4,2 ## @VIRTIO_CRYPTO_OP_DECRYPT
.comm _GFP_ATOMIC,4,2 ## @GFP_ATOMIC
.comm _ENOMEM,4,2 ## @ENOMEM
.comm _VIRTIO_CRYPTO_CIPHER_CREATE_SESSION,4,2 ## @VIRTIO_CRYPTO_CIPHER_CREATE_SESSION
.comm _VIRTIO_CRYPTO_ERR,4,2 ## @VIRTIO_CRYPTO_ERR
.comm _VIRTIO_CRYPTO_SYM_OP_CIPHER,4,2 ## @VIRTIO_CRYPTO_SYM_OP_CIPHER
.comm _VIRTIO_CRYPTO_OK,8,3 ## @VIRTIO_CRYPTO_OK
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "virtio_crypto: Create session failed status: %u\n"
.comm _EINVAL,4,2 ## @EINVAL
.no_dead_strip _virtio_crypto_alg_ablkcipher_init_session
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function virtio_crypto_alg_ablkcipher_init_session
_virtio_crypto_alg_ablkcipher_init_session: ; @virtio_crypto_alg_ablkcipher_init_session
.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 x22, x4
mov x23, x3
mov x8, x2
mov x24, x1
mov x21, x0
Lloh0:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
str x9, [sp, #40]
ldr x20, [x0, #16]
Lloh3:
adrp x9, _VIRTIO_CRYPTO_OP_ENCRYPT@GOTPAGE
Lloh4:
ldr x9, [x9, _VIRTIO_CRYPTO_OP_ENCRYPT@GOTPAGEOFF]
Lloh5:
ldr w25, [x9]
Lloh6:
adrp x9, _VIRTIO_CRYPTO_OP_DECRYPT@GOTPAGE
Lloh7:
ldr x9, [x9, _VIRTIO_CRYPTO_OP_DECRYPT@GOTPAGEOFF]
Lloh8:
ldr w27, [x9]
Lloh9:
adrp x26, _GFP_ATOMIC@GOTPAGE
Lloh10:
ldr x26, [x26, _GFP_ATOMIC@GOTPAGEOFF]
ldr w2, [x26]
mov x0, x8
mov x1, x3
bl _kmemdup
cbz x0, LBB0_8
; %bb.1:
mov x19, x0
cmp w22, #0
csel w25, w27, w25, eq
mov x0, x20
bl _spin_lock
Lloh11:
adrp x8, _VIRTIO_CRYPTO_CIPHER_CREATE_SESSION@GOTPAGE
Lloh12:
ldr x8, [x8, _VIRTIO_CRYPTO_CIPHER_CREATE_SESSION@GOTPAGEOFF]
Lloh13:
ldr w0, [x8]
bl _cpu_to_le32
str x0, [x20, #152]
mov x0, x24
bl _cpu_to_le32
stp x0, xzr, [x20, #136]
Lloh14:
adrp x8, _VIRTIO_CRYPTO_ERR@GOTPAGE
Lloh15:
ldr x8, [x8, _VIRTIO_CRYPTO_ERR@GOTPAGEOFF]
Lloh16:
ldr w0, [x8]
bl _cpu_to_le32
str x0, [x20, #16]
Lloh17:
adrp x8, _VIRTIO_CRYPTO_SYM_OP_CIPHER@GOTPAGE
Lloh18:
ldr x8, [x8, _VIRTIO_CRYPTO_SYM_OP_CIPHER@GOTPAGEOFF]
Lloh19:
ldr w0, [x8]
bl _cpu_to_le32
ldr x8, [x20, #136]
stp x8, x0, [x20, #120]
mov x0, x23
bl _cpu_to_le32
str x0, [x20, #112]
mov x0, x25
bl _cpu_to_le32
str x0, [x20, #104]
add x0, sp, #12
add x1, x20, #88
mov w2, #72 ; =0x48
bl _sg_init_one
add x24, sp, #8
add x0, sp, #8
mov x1, x19
mov x2, x23
bl _sg_init_one
mov x8, #34359738360 ; =0x7fffffff8
add x9, sp, #16
str x24, [x9, x8]
add x23, sp, #4
add x0, sp, #4
add x1, x20, #8
mov w2, #72 ; =0x48
bl _sg_init_one
str x23, [sp, #16]
ldr w0, [x20, #80]
ldr w5, [x26]
add x1, sp, #16
mov w2, #0 ; =0x0
mov w3, #1 ; =0x1
mov x4, x20
bl _virtqueue_add_sgs
cmp w0, #0
b.le LBB0_9
; %bb.2:
ldr w0, [x20, #80]
bl _virtqueue_kick
b LBB0_4
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
bl _cpu_relax
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr w0, [x20, #80]
mov x1, sp
bl _virtqueue_get_buf
cbz w0, LBB0_3
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
ldr w0, [x20, #80]
bl _virtqueue_is_broken
cbz w0, LBB0_3
; %bb.6:
ldr x0, [x20, #16]
bl _le32_to_cpu
Lloh20:
adrp x8, _VIRTIO_CRYPTO_OK@GOTPAGE
Lloh21:
ldr x8, [x8, _VIRTIO_CRYPTO_OK@GOTPAGEOFF]
Lloh22:
ldr x8, [x8]
cmp x0, x8
b.ne LBB0_10
; %bb.7:
cmp w22, #0
cset w22, ne
ldr w0, [x20, #8]
bl _le64_to_cpu
str x0, [x21, w22, uxtw #3]
mov x0, x20
bl _spin_unlock
mov x0, x19
bl _kzfree
mov w0, #0 ; =0x0
b LBB0_12
LBB0_8:
Lloh23:
adrp x8, _ENOMEM@GOTPAGE
Lloh24:
ldr x8, [x8, _ENOMEM@GOTPAGEOFF]
b LBB0_11
LBB0_9:
mov x21, x0
mov x0, x20
bl _spin_unlock
mov x0, x19
bl _kzfree
mov x0, x21
b LBB0_12
LBB0_10:
mov x0, x20
bl _spin_unlock
ldr x0, [x20, #16]
bl _le32_to_cpu
mov x1, x0
Lloh25:
adrp x0, l_.str@PAGE
Lloh26:
add x0, x0, l_.str@PAGEOFF
bl _pr_err
mov x0, x19
bl _kzfree
Lloh27:
adrp x8, _EINVAL@GOTPAGE
Lloh28:
ldr x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
ldr w8, [x8]
neg w0, w8
LBB0_12:
ldr x8, [sp, #40]
Lloh29:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh30:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_14
; %bb.13:
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_14:
bl ___stack_chk_fail
.loh AdrpLdrGot Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.loh AdrpLdrGotLdr Lloh14, Lloh15, Lloh16
.loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13
.loh AdrpLdrGotLdr Lloh20, Lloh21, Lloh22
.loh AdrpLdrGot Lloh23, Lloh24
.loh AdrpLdrGot Lloh27, Lloh28
.loh AdrpAdd Lloh25, Lloh26
.loh AdrpLdrGotLdr Lloh29, Lloh30, Lloh31
.cfi_endproc
; -- End function
.comm _VIRTIO_CRYPTO_OP_ENCRYPT,4,2 ; @VIRTIO_CRYPTO_OP_ENCRYPT
.comm _VIRTIO_CRYPTO_OP_DECRYPT,4,2 ; @VIRTIO_CRYPTO_OP_DECRYPT
.comm _GFP_ATOMIC,4,2 ; @GFP_ATOMIC
.comm _ENOMEM,4,2 ; @ENOMEM
.comm _VIRTIO_CRYPTO_CIPHER_CREATE_SESSION,4,2 ; @VIRTIO_CRYPTO_CIPHER_CREATE_SESSION
.comm _VIRTIO_CRYPTO_ERR,4,2 ; @VIRTIO_CRYPTO_ERR
.comm _VIRTIO_CRYPTO_SYM_OP_CIPHER,4,2 ; @VIRTIO_CRYPTO_SYM_OP_CIPHER
.comm _VIRTIO_CRYPTO_OK,8,3 ; @VIRTIO_CRYPTO_OK
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "virtio_crypto: Create session failed status: %u\n"
.comm _EINVAL,4,2 ; @EINVAL
.no_dead_strip _virtio_crypto_alg_ablkcipher_init_session
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _ssl3_digest_master_key_set_params ## -- Begin function ssl3_digest_master_key_set_params
.p2align 4, 0x90
_ssl3_digest_master_key_set_params: ## @ssl3_digest_master_key_set_params
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
movq %rsi, %rbx
movq _OSSL_DIGEST_PARAM_SSL3_MS@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq 8(%rdi), %rsi
movl (%rdi), %edx
movl %eax, %edi
callq _OSSL_PARAM_construct_octet_string
movl %eax, (%rbx)
xorl %eax, %eax
callq _OSSL_PARAM_construct_end
movl %eax, 4(%rbx)
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _OSSL_DIGEST_PARAM_SSL3_MS,4,2 ## @OSSL_DIGEST_PARAM_SSL3_MS
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _ssl3_digest_master_key_set_params ; -- Begin function ssl3_digest_master_key_set_params
.p2align 2
_ssl3_digest_master_key_set_params: ; @ssl3_digest_master_key_set_params
.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, x1
Lloh0:
adrp x8, _OSSL_DIGEST_PARAM_SSL3_MS@GOTPAGE
Lloh1:
ldr x8, [x8, _OSSL_DIGEST_PARAM_SSL3_MS@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
ldr x1, [x0, #8]
ldr w2, [x0]
mov x0, x8
bl _OSSL_PARAM_construct_octet_string
str w0, [x19]
bl _OSSL_PARAM_construct_end
str w0, [x19, #4]
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 _OSSL_DIGEST_PARAM_SSL3_MS,4,2 ; @OSSL_DIGEST_PARAM_SSL3_MS
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function apply_cheats
_apply_cheats: ## @apply_cheats
.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
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq _maxRAMcheats@GOTPCREL(%rip), %rax
movq $0, (%rax)
movq _maxROMcheats@GOTPCREL(%rip), %rcx
movq $0, (%rcx)
movq _maxcheats@GOTPCREL(%rip), %rdx
cmpl $0, (%rdx)
jle LBB0_12
## %bb.1:
movl $1, %esi
xorl %edi, %edi
movq _cheatlist@GOTPCREL(%rip), %r8
movq _cart@GOTPCREL(%rip), %r9
movq _SYSTEM_PBC@GOTPCREL(%rip), %r11
movq _SYSTEM_MD@GOTPCREL(%rip), %rbx
movq _cheatIndexes@GOTPCREL(%rip), %r14
jmp LBB0_2
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
movq 8(%r9), %r10
andl $16777214, %r15d ## imm = 0xFFFFFE
movq %r10, %r12
subq %r15, %r12
movq (%r12), %r12
movq %r12, 8(%r13,%rdi)
movq 16(%r13,%rdi), %r12
movq %r12, (%r10,%r15)
.p2align 4, 0x90
LBB0_11: ## in Loop: Header=BB0_2 Depth=1
movslq (%rdx), %r10
decq %rsi
addq $-40, %rdi
cmpq %r10, %rsi
jg LBB0_12
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq (%r8), %r13
cmpq $0, 32(%r13,%rdi)
je LBB0_11
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movl (%r13,%rdi), %r15d
cmpl (%r9), %r15d
jge LBB0_9
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
movl (%r11), %r12d
movq _system_hw@GOTPCREL(%rip), %r10
andl (%r10), %r12d
cmpl (%rbx), %r12d
je LBB0_5
## %bb.6: ## in Loop: Header=BB0_2 Depth=1
movq (%rcx), %r10
incq %r10
movq %r10, (%rcx)
movq (%r14), %r15
movq _MAX_CHEATS@GOTPCREL(%rip), %r12
movq (%r12), %r12
subq %r10, %r12
leal -1(%rsi), %r10d
movl %r10d, (%r15,%r12,4)
movq _z80_readmap@GOTPCREL(%rip), %r10
movq (%r10), %r10
movl (%r13,%rdi), %r15d
movl %r15d, %r12d
sarl $10, %r12d
movslq %r12d, %r12
movq (%r10,%r12,8), %r12
andl $1023, %r15d ## imm = 0x3FF
movq 8(%r13,%rdi), %r10
cmpq (%r12,%r15,8), %r10
jne LBB0_8
## %bb.7: ## in Loop: Header=BB0_2 Depth=1
leaq (%r12,%r15,8), %r10
movq 16(%r13,%rdi), %r15
movq %r15, (%r10)
movq %r10, 24(%r13,%rdi)
jmp LBB0_11
.p2align 4, 0x90
LBB0_9: ## in Loop: Header=BB0_2 Depth=1
cmpl $16711680, %r15d ## imm = 0xFF0000
jl LBB0_11
## %bb.10: ## in Loop: Header=BB0_2 Depth=1
movq (%r14), %r10
movq (%rax), %r15
leaq 1(%r15), %r12
movq %r12, (%rax)
leal -1(%rsi), %r12d
movl %r12d, (%r10,%r15,4)
jmp LBB0_11
LBB0_8: ## in Loop: Header=BB0_2 Depth=1
movq $0, 24(%r13,%rdi)
jmp LBB0_11
LBB0_12:
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _maxRAMcheats,8,3 ## @maxRAMcheats
.comm _maxROMcheats,8,3 ## @maxROMcheats
.comm _maxcheats,4,2 ## @maxcheats
.comm _cheatlist,8,3 ## @cheatlist
.comm _cart,16,3 ## @cart
.comm _system_hw,4,2 ## @system_hw
.comm _SYSTEM_PBC,4,2 ## @SYSTEM_PBC
.comm _SYSTEM_MD,4,2 ## @SYSTEM_MD
.comm _cheatIndexes,8,3 ## @cheatIndexes
.comm _MAX_CHEATS,8,3 ## @MAX_CHEATS
.comm _z80_readmap,8,3 ## @z80_readmap
.no_dead_strip _apply_cheats
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function apply_cheats
_apply_cheats: ; @apply_cheats
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _maxRAMcheats@GOTPAGE
Lloh1:
ldr x8, [x8, _maxRAMcheats@GOTPAGEOFF]
Lloh2:
adrp x9, _maxROMcheats@GOTPAGE
Lloh3:
ldr x9, [x9, _maxROMcheats@GOTPAGEOFF]
str xzr, [x8]
str xzr, [x9]
Lloh4:
adrp x10, _maxcheats@GOTPAGE
Lloh5:
ldr x10, [x10, _maxcheats@GOTPAGEOFF]
ldr w11, [x10]
cmp w11, #1
b.lt LBB0_12
; %bb.1:
mov x11, #0 ; =0x0
mov w12, #1 ; =0x1
Lloh6:
adrp x13, _cheatlist@GOTPAGE
Lloh7:
ldr x13, [x13, _cheatlist@GOTPAGEOFF]
Lloh8:
adrp x14, _cart@GOTPAGE
Lloh9:
ldr x14, [x14, _cart@GOTPAGEOFF]
Lloh10:
adrp x15, _system_hw@GOTPAGE
Lloh11:
ldr x15, [x15, _system_hw@GOTPAGEOFF]
Lloh12:
adrp x16, _SYSTEM_PBC@GOTPAGE
Lloh13:
ldr x16, [x16, _SYSTEM_PBC@GOTPAGEOFF]
Lloh14:
adrp x17, _SYSTEM_MD@GOTPAGE
Lloh15:
ldr x17, [x17, _SYSTEM_MD@GOTPAGEOFF]
Lloh16:
adrp x0, _cheatIndexes@GOTPAGE
Lloh17:
ldr x0, [x0, _cheatIndexes@GOTPAGEOFF]
Lloh18:
adrp x1, _MAX_CHEATS@GOTPAGE
Lloh19:
ldr x1, [x1, _MAX_CHEATS@GOTPAGEOFF]
Lloh20:
adrp x2, _z80_readmap@GOTPAGE
Lloh21:
ldr x2, [x2, _z80_readmap@GOTPAGEOFF]
b LBB0_4
LBB0_2: ; in Loop: Header=BB0_4 Depth=1
ldr x5, [x14, #8]
and x4, x4, #0xfffffe
sub x6, x5, x4
ldr x6, [x6]
add x3, x3, x11
str x6, [x3, #8]
ldr x3, [x3, #16]
str x3, [x5, x4]
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
ldrsw x3, [x10]
sub x12, x12, #1
sub x11, x11, #40
cmp x12, x3
b.gt LBB0_12
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr x3, [x13]
add x4, x3, x11
ldr x5, [x4, #32]
cbz x5, LBB0_3
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
ldr w4, [x4]
ldr w5, [x14]
cmp w4, w5
b.ge LBB0_9
; %bb.6: ; in Loop: Header=BB0_4 Depth=1
ldr w5, [x15]
ldr w6, [x16]
and w5, w6, w5
ldr w6, [x17]
cmp w5, w6
b.eq LBB0_2
; %bb.7: ; in Loop: Header=BB0_4 Depth=1
ldr x4, [x9]
add x4, x4, #1
ldr x5, [x0]
ldr x6, [x1]
sub x6, x6, x4
sub w7, w12, #1
str w7, [x5, x6, lsl #2]
ldr x5, [x2]
add x3, x3, x11
ldr w6, [x3]
asr w7, w6, #10
ldr x5, [x5, w7, sxtw #3]
str x4, [x9]
and x4, x6, #0x3ff
add x4, x5, x4, lsl #3
ldr x5, [x3, #8]
ldr x6, [x4]
cmp x5, x6
b.ne LBB0_11
; %bb.8: ; in Loop: Header=BB0_4 Depth=1
ldr x5, [x3, #16]
str x5, [x4]
str x4, [x3, #24]
b LBB0_3
LBB0_9: ; in Loop: Header=BB0_4 Depth=1
cmp w4, #4080, lsl #12 ; =16711680
b.lt LBB0_3
; %bb.10: ; in Loop: Header=BB0_4 Depth=1
ldr x3, [x0]
ldr x4, [x8]
add x5, x4, #1
str x5, [x8]
sub w5, w12, #1
str w5, [x3, x4, lsl #2]
b LBB0_3
LBB0_11: ; in Loop: Header=BB0_4 Depth=1
str xzr, [x3, #24]
b LBB0_3
LBB0_12:
ret
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh20, Lloh21
.loh AdrpLdrGot Lloh18, Lloh19
.loh AdrpLdrGot Lloh16, Lloh17
.loh AdrpLdrGot Lloh14, Lloh15
.loh AdrpLdrGot Lloh12, Lloh13
.loh AdrpLdrGot Lloh10, Lloh11
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _maxRAMcheats,8,3 ; @maxRAMcheats
.comm _maxROMcheats,8,3 ; @maxROMcheats
.comm _maxcheats,4,2 ; @maxcheats
.comm _cheatlist,8,3 ; @cheatlist
.comm _cart,16,3 ; @cart
.comm _system_hw,4,2 ; @system_hw
.comm _SYSTEM_PBC,4,2 ; @SYSTEM_PBC
.comm _SYSTEM_MD,4,2 ; @SYSTEM_MD
.comm _cheatIndexes,8,3 ; @cheatIndexes
.comm _MAX_CHEATS,8,3 ; @MAX_CHEATS
.comm _z80_readmap,8,3 ; @z80_readmap
.no_dead_strip _apply_cheats
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function do_case_conv
_do_case_conv: ## @do_case_conv
.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
cmpl $4, %ecx
je LBB0_4
## %bb.1:
cmpl $3, %ecx
je LBB0_9
## %bb.2:
cmpl $2, %ecx
jne LBB0_5
## %bb.3:
movq (%rdx), %r9
movq %r9, (%rsi)
movl $8, %eax
xorl %r11d, %r11d
xorl %r10d, %r10d
jmp LBB0_10
LBB0_9:
movq (%rdx), %r10
movq %r10, (%rsi)
movq 8(%rdx), %r9
movq %r9, 8(%rsi)
movl $16, %eax
xorl %r11d, %r11d
jmp LBB0_10
LBB0_4:
movq (%rdx), %r11
movq %r11, (%rsi)
movq 8(%rdx), %r10
movq %r10, 8(%rsi)
movq 16(%rdx), %r9
movq %r9, 16(%rsi)
movl $24, %eax
LBB0_10:
movq (%rdx,%rax), %rdx
movq %rdx, (%rsi,%rax)
movl %ecx, %eax
movq $0, (%rsi,%rax,8)
movq _u8_common_b1_tbl@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movslq %edi, %rdi
movq (%rcx,%rdi,8), %rcx
movq (%rcx,%r11,8), %r11
movq _U8_TBL_ELEMENT_NOT_DEF@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq %rcx, %r11
je LBB0_32
## %bb.11:
movq _u8_case_common_b2_tbl@GOTPCREL(%rip), %rbx
movq (%rbx), %rbx
movq (%rbx,%rdi,8), %rbx
movq (%rbx,%r11,8), %r11
movq (%r11,%r10,8), %r10
cmpq %rcx, %r10
je LBB0_32
## %bb.12:
testq %r8, %r8
je LBB0_18
## %bb.13:
movq _u8_toupper_b3_tbl@GOTPCREL(%rip), %r8
movq (%r8), %r8
movq (%r8,%rdi,8), %r8
movq (%r8,%r10,8), %r10
shlq $4, %r9
movq (%r10,%r9), %r8
cmpq %rcx, %r8
je LBB0_32
## %bb.14:
movq _u8_toupper_b4_tbl@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rcx,%rdi,8), %rcx
movq (%rcx,%r8,8), %rcx
movq -8(%rcx,%rdx,8), %r8
movq (%rcx,%rdx,8), %rdx
movq %r8, %rcx
subq %rdx, %rcx
jbe LBB0_32
## %bb.15:
movq _U8_MB_CUR_MAX@GOTPCREL(%rip), %r11
cmpq (%r11), %rcx
ja LBB0_32
## %bb.16:
addq %r9, %r10
movq 8(%r10), %r9
movq _u8_toupper_final_tbl@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
shlq $3, %r9
addq (%rcx,%rdi,8), %r9
xorl %ecx, %ecx
.p2align 4, 0x90
LBB0_17: ## =>This Inner Loop Header: Depth=1
movq (%r9,%rdx,8), %rdi
movq %rdi, (%rsi,%rcx,8)
incq %rcx
decq %rdx
cmpq %r8, %rdx
jbe LBB0_17
jmp LBB0_29
LBB0_5:
movq %rsi, %rbx
movq (%rdx), %rdi
testq %r8, %r8
je LBB0_7
## %bb.6:
callq _U8_ASCII_TOUPPER
jmp LBB0_8
LBB0_7:
callq _U8_ASCII_TOLOWER
LBB0_8:
movq %rbx, %rsi
movq %rax, (%rbx)
addq $8, %rsi
movl $1, %ecx
LBB0_31:
movq $0, (%rsi)
movq %rcx, %rax
LBB0_32:
popq %rbx
popq %r14
popq %rbp
retq
LBB0_18:
movq _u8_tolower_b3_tbl@GOTPCREL(%rip), %r8
movq (%r8), %r8
movq (%r8,%rdi,8), %r8
movq (%r8,%r10,8), %r10
shlq $4, %r9
movq (%r10,%r9), %r8
cmpq %rcx, %r8
je LBB0_32
## %bb.19:
movq _u8_tolower_b4_tbl@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rcx,%rdi,8), %rcx
movq (%rcx,%r8,8), %rcx
movq (%rcx,%rdx,8), %r8
movq 8(%rcx,%rdx,8), %rdx
movq %rdx, %rcx
subq %r8, %rcx
jbe LBB0_32
## %bb.20:
movq _U8_MB_CUR_MAX@GOTPCREL(%rip), %r11
cmpq (%r11), %rcx
ja LBB0_32
## %bb.21:
addq %r9, %r10
movq 8(%r10), %r9
movq _u8_tolower_final_tbl@GOTPCREL(%rip), %r10
movq (%r10), %r10
movq (%r10,%rdi,8), %rdi
cmpq $12, %rcx
jb LBB0_22
## %bb.23:
leaq (%r8,%r9), %r10
leaq (%rdi,%r10,8), %r10
movq %rsi, %r11
subq %r10, %r11
cmpq $32, %r11
jae LBB0_24
LBB0_22:
xorl %r10d, %r10d
movq %r8, %r11
LBB0_27:
shlq $3, %r9
leaq (%r9,%r11,8), %r9
addq %r9, %rdi
subq %r10, %rdx
subq %r8, %rdx
leaq (%rsi,%r10,8), %r8
xorl %r9d, %r9d
.p2align 4, 0x90
LBB0_28: ## =>This Inner Loop Header: Depth=1
movq (%rdi,%r9,8), %r10
movq %r10, (%r8,%r9,8)
incq %r9
cmpq %r9, %rdx
jne LBB0_28
LBB0_29:
testq %rcx, %rcx
je LBB0_32
## %bb.30:
leaq (%rsi,%rcx,8), %rsi
jmp LBB0_31
LBB0_24:
movq %rcx, %r10
andq $-4, %r10
leaq (%r8,%r10), %r11
leaq (,%r8,8), %rbx
leaq (%rbx,%r9,8), %rbx
addq %rdi, %rbx
addq $16, %rbx
xorl %r14d, %r14d
LBB0_25: ## =>This Inner Loop Header: Depth=1
movups -16(%rbx,%r14,8), %xmm0
movups (%rbx,%r14,8), %xmm1
movups %xmm0, (%rsi,%r14,8)
movups %xmm1, 16(%rsi,%r14,8)
addq $4, %r14
cmpq %r14, %r10
jne LBB0_25
## %bb.26:
cmpq %r10, %rcx
jne LBB0_27
jmp LBB0_29
.cfi_endproc
## -- End function
.comm _u8_common_b1_tbl,8,3 ## @u8_common_b1_tbl
.comm _U8_TBL_ELEMENT_NOT_DEF,8,3 ## @U8_TBL_ELEMENT_NOT_DEF
.comm _u8_case_common_b2_tbl,8,3 ## @u8_case_common_b2_tbl
.comm _u8_toupper_b3_tbl,8,3 ## @u8_toupper_b3_tbl
.comm _u8_toupper_b4_tbl,8,3 ## @u8_toupper_b4_tbl
.comm _U8_MB_CUR_MAX,8,3 ## @U8_MB_CUR_MAX
.comm _u8_toupper_final_tbl,8,3 ## @u8_toupper_final_tbl
.comm _u8_tolower_b3_tbl,8,3 ## @u8_tolower_b3_tbl
.comm _u8_tolower_b4_tbl,8,3 ## @u8_tolower_b4_tbl
.comm _u8_tolower_final_tbl,8,3 ## @u8_tolower_final_tbl
.no_dead_strip _do_case_conv
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function do_case_conv
_do_case_conv: ; @do_case_conv
.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 x8, x0
cmp w3, #4
b.eq LBB0_5
; %bb.1:
cmp w3, #3
b.eq LBB0_4
; %bb.2:
cmp w3, #2
b.ne LBB0_14
; %bb.3:
mov x12, #0 ; =0x0
mov x10, #0 ; =0x0
ldr x9, [x2]
str x9, [x1]
mov w13, #8 ; =0x8
b LBB0_6
LBB0_4:
mov x12, #0 ; =0x0
ldr x10, [x2]
str x10, [x1]
ldr x9, [x2, #8]
str x9, [x1, #8]
mov w13, #16 ; =0x10
b LBB0_6
LBB0_5:
ldr x12, [x2]
str x12, [x1]
ldr x10, [x2, #8]
str x10, [x1, #8]
ldr x9, [x2, #16]
str x9, [x1, #16]
mov w13, #24 ; =0x18
LBB0_6:
ldr x11, [x2, x13]
str x11, [x1, x13]
str xzr, [x1, w3, uxtw #3]
mov w0, w3
Lloh0:
adrp x13, _u8_common_b1_tbl@GOTPAGE
Lloh1:
ldr x13, [x13, _u8_common_b1_tbl@GOTPAGEOFF]
Lloh2:
ldr x13, [x13]
ldr x13, [x13, w8, sxtw #3]
ldr x13, [x13, x12, lsl #3]
Lloh3:
adrp x12, _U8_TBL_ELEMENT_NOT_DEF@GOTPAGE
Lloh4:
ldr x12, [x12, _U8_TBL_ELEMENT_NOT_DEF@GOTPAGEOFF]
Lloh5:
ldr x12, [x12]
cmp x13, x12
b.eq LBB0_19
; %bb.7:
Lloh6:
adrp x14, _u8_case_common_b2_tbl@GOTPAGE
Lloh7:
ldr x14, [x14, _u8_case_common_b2_tbl@GOTPAGEOFF]
Lloh8:
ldr x14, [x14]
ldr x14, [x14, w8, sxtw #3]
ldr x13, [x14, x13, lsl #3]
ldr x10, [x13, x10, lsl #3]
cmp x10, x12
b.eq LBB0_19
; %bb.8:
cbz x4, LBB0_20
; %bb.9:
Lloh9:
adrp x13, _u8_toupper_b3_tbl@GOTPAGE
Lloh10:
ldr x13, [x13, _u8_toupper_b3_tbl@GOTPAGEOFF]
Lloh11:
ldr x13, [x13]
ldr x13, [x13, w8, sxtw #3]
ldr x10, [x13, x10, lsl #3]
add x9, x10, x9, lsl #4
ldr x10, [x9]
cmp x10, x12
b.eq LBB0_19
; %bb.10:
Lloh12:
adrp x12, _u8_toupper_b4_tbl@GOTPAGE
Lloh13:
ldr x12, [x12, _u8_toupper_b4_tbl@GOTPAGEOFF]
Lloh14:
ldr x12, [x12]
ldr x12, [x12, w8, sxtw #3]
ldr x10, [x12, x10, lsl #3]
add x11, x10, x11, lsl #3
ldp x11, x10, [x11, #-8]
subs x12, x11, x10
b.ls LBB0_19
; %bb.11:
Lloh15:
adrp x13, _U8_MB_CUR_MAX@GOTPAGE
Lloh16:
ldr x13, [x13, _U8_MB_CUR_MAX@GOTPAGEOFF]
Lloh17:
ldr x13, [x13]
cmp x12, x13
b.hi LBB0_19
; %bb.12:
mov x12, #0 ; =0x0
ldr x9, [x9, #8]
Lloh18:
adrp x13, _u8_toupper_final_tbl@GOTPAGE
Lloh19:
ldr x13, [x13, _u8_toupper_final_tbl@GOTPAGEOFF]
Lloh20:
ldr x13, [x13]
ldr x8, [x13, w8, sxtw #3]
add x8, x8, x9, lsl #3
LBB0_13: ; =>This Inner Loop Header: Depth=1
ldr x13, [x8, x10, lsl #3]
add x9, x12, #1
str x13, [x1, x12, lsl #3]
sub x10, x10, #1
mov x12, x9
cmp x10, x11
b.ls LBB0_13
b LBB0_28
LBB0_14:
mov x19, x1
ldr x0, [x2]
cbz x4, LBB0_16
; %bb.15:
bl _U8_ASCII_TOUPPER
b LBB0_17
LBB0_16:
bl _U8_ASCII_TOLOWER
LBB0_17:
mov x1, x19
str x0, [x1], #8
mov w9, #1 ; =0x1
LBB0_18:
str xzr, [x1]
mov x0, x9
LBB0_19:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_20:
Lloh21:
adrp x13, _u8_tolower_b3_tbl@GOTPAGE
Lloh22:
ldr x13, [x13, _u8_tolower_b3_tbl@GOTPAGEOFF]
Lloh23:
ldr x13, [x13]
ldr x13, [x13, w8, sxtw #3]
ldr x10, [x13, x10, lsl #3]
add x13, x10, x9, lsl #4
ldr x9, [x13]
cmp x9, x12
b.eq LBB0_19
; %bb.21:
Lloh24:
adrp x10, _u8_tolower_b4_tbl@GOTPAGE
Lloh25:
ldr x10, [x10, _u8_tolower_b4_tbl@GOTPAGEOFF]
Lloh26:
ldr x10, [x10]
ldr x10, [x10, w8, sxtw #3]
ldr x9, [x10, x9, lsl #3]
add x9, x9, x11, lsl #3
ldp x10, x11, [x9]
subs x9, x11, x10
b.ls LBB0_19
; %bb.22:
Lloh27:
adrp x12, _U8_MB_CUR_MAX@GOTPAGE
Lloh28:
ldr x12, [x12, _U8_MB_CUR_MAX@GOTPAGEOFF]
Lloh29:
ldr x12, [x12]
cmp x9, x12
b.hi LBB0_19
; %bb.23:
ldr x12, [x13, #8]
Lloh30:
adrp x13, _u8_tolower_final_tbl@GOTPAGE
Lloh31:
ldr x13, [x13, _u8_tolower_final_tbl@GOTPAGEOFF]
Lloh32:
ldr x13, [x13]
ldr x8, [x13, w8, sxtw #3]
cmp x9, #10
b.lo LBB0_25
; %bb.24:
add x13, x10, x12
add x13, x8, x13, lsl #3
sub x13, x1, x13
cmp x13, #64
b.hs LBB0_30
LBB0_25:
mov x13, #0 ; =0x0
mov x14, x10
LBB0_26:
lsl x14, x14, #3
add x12, x14, x12, lsl #3
add x8, x8, x12
add x10, x13, x10
sub x10, x10, x11
add x11, x1, x13, lsl #3
LBB0_27: ; =>This Inner Loop Header: Depth=1
ldr x12, [x8], #8
str x12, [x11], #8
adds x10, x10, #1
b.lo LBB0_27
LBB0_28:
cbz x9, LBB0_19
; %bb.29:
add x1, x1, x9, lsl #3
b LBB0_18
LBB0_30:
and x13, x9, #0xfffffffffffffff8
add x14, x10, x13
add x15, x1, #32
lsl x16, x10, #3
add x16, x16, x12, lsl #3
add x16, x16, x8
add x16, x16, #32
mov x17, x13
LBB0_31: ; =>This Inner Loop Header: Depth=1
ldp q0, q1, [x16, #-32]
ldp q2, q3, [x16], #64
stp q0, q1, [x15, #-32]
stp q2, q3, [x15], #64
subs x17, x17, #8
b.ne LBB0_31
; %bb.32:
cmp x9, x13
b.ne LBB0_26
b LBB0_28
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17
.loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20
.loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23
.loh AdrpLdrGotLdr Lloh24, Lloh25, Lloh26
.loh AdrpLdrGotLdr Lloh27, Lloh28, Lloh29
.loh AdrpLdrGotLdr Lloh30, Lloh31, Lloh32
.cfi_endproc
; -- End function
.comm _u8_common_b1_tbl,8,3 ; @u8_common_b1_tbl
.comm _U8_TBL_ELEMENT_NOT_DEF,8,3 ; @U8_TBL_ELEMENT_NOT_DEF
.comm _u8_case_common_b2_tbl,8,3 ; @u8_case_common_b2_tbl
.comm _u8_toupper_b3_tbl,8,3 ; @u8_toupper_b3_tbl
.comm _u8_toupper_b4_tbl,8,3 ; @u8_toupper_b4_tbl
.comm _U8_MB_CUR_MAX,8,3 ; @U8_MB_CUR_MAX
.comm _u8_toupper_final_tbl,8,3 ; @u8_toupper_final_tbl
.comm _u8_tolower_b3_tbl,8,3 ; @u8_tolower_b3_tbl
.comm _u8_tolower_b4_tbl,8,3 ; @u8_tolower_b4_tbl
.comm _u8_tolower_final_tbl,8,3 ; @u8_tolower_final_tbl
.no_dead_strip _do_case_conv
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function parse_pci_addr
_parse_pci_addr: ## @parse_pci_addr
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
subq $16, %rsp
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
testq %rdi, %rdi
je LBB0_1
## %bb.2:
movq %rdi, %rbx
leaq L_.str.1(%rip), %rsi
movl $3, %edx
callq _strncmp
testq %rax, %rax
je LBB0_3
## %bb.5:
leaq L_.str.2(%rip), %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq _warnx
jmp LBB0_6
LBB0_1:
leaq L_.str(%rip), %rdi
xorl %eax, %eax
callq _warnx
LBB0_6:
movl $1, %eax
addq $16, %rsp
popq %rbx
popq %r14
popq %rbp
retq
LBB0_3:
movsbl 3(%rbx), %edi
addq $3, %rbx
callq _isdigit
leaq -24(%rbp), %r14
.p2align 4, 0x90
LBB0_4: ## =>This Inner Loop Header: Depth=1
movq %rbx, %rdi
movq %r14, %rsi
movl $10, %edx
callq _strtoul
movq -24(%rbp), %rax
xorl %ecx, %ecx
cmpb $58, (%rax)
sete %cl
leaq (%rax,%rcx), %rbx
movsbl (%rax,%rcx), %edi
callq _isdigit
jmp LBB0_4
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "no pci address specified"
L_.str.1: ## @.str.1
.asciz "pci"
L_.str.2: ## @.str.2
.asciz "invalid pci address %s"
.no_dead_strip _parse_pci_addr
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function parse_pci_addr
_parse_pci_addr: ; @parse_pci_addr
.cfi_startproc
; %bb.0:
sub sp, sp, #48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
cbz x0, LBB0_3
; %bb.1:
mov x19, x0
Lloh0:
adrp x1, l_.str.1@PAGE
Lloh1:
add x1, x1, l_.str.1@PAGEOFF
mov w2, #3 ; =0x3
bl _strncmp
cbz x0, LBB0_5
; %bb.2:
str x19, [sp]
Lloh2:
adrp x0, l_.str.2@PAGE
Lloh3:
add x0, x0, l_.str.2@PAGEOFF
b LBB0_4
LBB0_3:
Lloh4:
adrp x0, l_.str@PAGE
Lloh5:
add x0, x0, l_.str@PAGEOFF
LBB0_4:
bl _warnx
mov w0, #1 ; =0x1
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #48
ret
LBB0_5:
ldrsb w0, [x19, #3]!
bl _isdigit
LBB0_6: ; =>This Inner Loop Header: Depth=1
add x1, sp, #8
mov x0, x19
mov w2, #10 ; =0xa
bl _strtoul
ldr x8, [sp, #8]
mov x9, x8
ldrb w10, [x9], #1
cmp w10, #58
csel x19, x8, x9, ne
ldrsb w0, [x19]
bl _isdigit
b LBB0_6
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh4, Lloh5
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "no pci address specified"
l_.str.1: ; @.str.1
.asciz "pci"
l_.str.2: ; @.str.2
.asciz "invalid pci address %s"
.no_dead_strip _parse_pci_addr
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function SiS_CheckScaling
_SiS_CheckScaling: ## @SiS_CheckScaling
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movzbl (%rdx), %eax
movzwl %ax, %ecx
cmpl $255, %ecx
je LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
incq %rdx
cmpw %si, %ax
jne LBB0_1
## %bb.3:
movq _SetCRT2ToLCD@GOTPCREL(%rip), %rax
movl (%rax), %eax
orl (%rdi), %eax
je LBB0_6
## %bb.4:
cmpl $-1, 4(%rdi)
je LBB0_5
LBB0_6:
popq %rbp
retq
LBB0_5:
movq _DontExpandLCD@GOTPCREL(%rip), %rax
movl (%rax), %eax
orl %eax, 8(%rdi)
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _SetCRT2ToLCD,4,2 ## @SetCRT2ToLCD
.comm _DontExpandLCD,4,2 ## @DontExpandLCD
.no_dead_strip _SiS_CheckScaling
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function SiS_CheckScaling
_SiS_CheckScaling: ; @SiS_CheckScaling
.cfi_startproc
; %bb.0:
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldrb w8, [x2], #1
cmp w8, #255
b.eq LBB0_5
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
cmp w8, w1
b.ne LBB0_1
; %bb.3:
ldr w8, [x0]
Lloh0:
adrp x9, _SetCRT2ToLCD@GOTPAGE
Lloh1:
ldr x9, [x9, _SetCRT2ToLCD@GOTPAGEOFF]
Lloh2:
ldr w9, [x9]
orr w8, w9, w8
cbz w8, LBB0_5
; %bb.4:
ldr w8, [x0, #4]
cmn w8, #1
b.eq LBB0_6
LBB0_5:
ret
LBB0_6:
Lloh3:
adrp x8, _DontExpandLCD@GOTPAGE
Lloh4:
ldr x8, [x8, _DontExpandLCD@GOTPAGEOFF]
Lloh5:
ldr w8, [x8]
ldr w9, [x0, #8]
orr w8, w9, w8
str w8, [x0, #8]
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.cfi_endproc
; -- End function
.comm _SetCRT2ToLCD,4,2 ; @SetCRT2ToLCD
.comm _DontExpandLCD,4,2 ; @DontExpandLCD
.no_dead_strip _SiS_CheckScaling
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _str2mac ## -- Begin function str2mac
.p2align 4, 0x90
_str2mac: ## @str2mac
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rsi, %rbx
movq %rdi, %r14
callq _strlen
testl %eax, %eax
js LBB0_7
## %bb.1:
xorl %ecx, %ecx
movl $55, %edx
xorl %esi, %esi
jmp LBB0_2
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_2 Depth=1
movb %r8b, (%rbx,%rcx)
incq %rcx
cmpl %eax, %edi
jge LBB0_7
LBB0_2: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movl %esi, %edi
movslq %esi, %rsi
incq %rsi
xorl %r8d, %r8d
.p2align 4, 0x90
LBB0_3: ## Parent Loop BB0_2 Depth=1
## => This Inner Loop Header: Depth=2
movzbl -1(%r14,%rsi), %r9d
testl %r9d, %r9d
je LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
cmpl $58, %r9d
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
shlb $4, %r8b
cmpb $58, %r9b
movl $48, %r10d
cmovgel %edx, %r10d
addb %r9b, %r8b
addb %r10b, %r8b
incq %rsi
incl %edi
jmp LBB0_3
LBB0_7:
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _str2mac ; -- Begin function str2mac
.p2align 2
_str2mac: ; @str2mac
.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, x1
mov x20, x0
bl _strlen
tbnz w0, #31, LBB0_6
; %bb.1:
mov x9, #0 ; =0x0
mov x13, #0 ; =0x0
mov w8, #48 ; =0x30
mov w10, #55 ; =0x37
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
strb w12, [x19, x9]
add x9, x9, #1
add x13, x13, #1
cmp w11, w0
b.ge LBB0_6
LBB0_3: ; =>This Loop Header: Depth=1
; Child Loop BB0_4 Depth 2
mov w12, #0 ; =0x0
sxtw x11, w13
mov x13, x11
ldrb w14, [x20, x13]
cbz w14, LBB0_2
LBB0_4: ; Parent Loop BB0_3 Depth=1
; => This Inner Loop Header: Depth=2
cmp w14, #58
b.eq LBB0_2
; %bb.5: ; in Loop: Header=BB0_4 Depth=2
sxtb w14, w14
cmp w14, #57
csel w15, w10, w8, gt
add w12, w14, w12, lsl #4
add w12, w12, w15
add x13, x13, #1
add w11, w11, #1
ldrb w14, [x20, x13]
cbnz w14, LBB0_4
b LBB0_2
LBB0_6:
mov w0, #0 ; =0x0
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
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function parse_line
_parse_line: ## @parse_line
.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, %rbx
movq %rsi, %r15
movq %rdi, %r14
xorl %esi, %esi
callq _skip_whitespace
movslq %eax, %rcx
movzbl (%r14,%rcx), %edx
movq _LINE_EMPTY@GOTPCREL(%rip), %rax
testl %edx, %edx
je LBB0_14
## %bb.1:
cmpl $35, %edx
je LBB0_14
## %bb.2:
cmpl $61, %edx
jne LBB0_3
LBB0_13:
movq _LINE_ERROR@GOTPCREL(%rip), %rax
LBB0_14:
movl (%rax), %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
LBB0_3:
movq %r14, %rax
subq %rcx, %rax
movq %rax, (%r15)
leal 2(%rcx), %r15d
leaq (%rcx,%r14), %r12
incq %r12
jmp LBB0_4
.p2align 4, 0x90
LBB0_7: ## in Loop: Header=BB0_4 Depth=1
incl %r15d
incq %r12
LBB0_4: ## =>This Inner Loop Header: Depth=1
movsbl (%r12), %edi
callq _UCH
movl %eax, %edi
callq _isblank
testq %rax, %rax
je LBB0_7
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movzbl (%r12), %eax
testl %eax, %eax
je LBB0_13
## %bb.6: ## in Loop: Header=BB0_4 Depth=1
cmpl $61, %eax
jne LBB0_7
## %bb.8:
movb $0, (%r12)
movq %r14, %rdi
movl %r15d, %esi
callq _skip_whitespace
cltq
cmpb $0, (%r14,%rax)
je LBB0_13
## %bb.9:
addq %rax, %r14
movq %r14, (%rbx)
movq %r14, %rdi
callq _strlen
movslq %eax, %r15
shlq $32, %rax
movabsq $4294967296, %r14 ## imm = 0x100000000
addq %rax, %r14
movabsq $-4294967296, %r12 ## imm = 0xFFFFFFFF00000000
.p2align 4, 0x90
LBB0_10: ## =>This Inner Loop Header: Depth=1
addq %r12, %r14
movq (%rbx), %rax
movsbl -1(%rax,%r15), %edi
callq _UCH
movl %eax, %edi
callq _isblank
cmpq $2, %r15
jl LBB0_12
## %bb.11: ## in Loop: Header=BB0_10 Depth=1
decq %r15
testq %rax, %rax
jne LBB0_10
LBB0_12:
movq (%rbx), %rax
sarq $32, %r14
movb $0, (%rax,%r14)
movq _LINE_EQUALS@GOTPCREL(%rip), %rax
jmp LBB0_14
.cfi_endproc
## -- End function
.comm _LINE_EMPTY,4,2 ## @LINE_EMPTY
.comm _LINE_ERROR,4,2 ## @LINE_ERROR
.comm _LINE_EQUALS,4,2 ## @LINE_EQUALS
.no_dead_strip _parse_line
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function parse_line
_parse_line: ; @parse_line
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x2
mov x21, x1
mov x20, x0
mov w1, #0 ; =0x0
bl _skip_whitespace
; kill: def $w0 killed $w0 def $x0
sxtw x9, w0
ldrb w10, [x20, x9]
Lloh0:
adrp x8, _LINE_EMPTY@GOTPAGE
Lloh1:
ldr x8, [x8, _LINE_EMPTY@GOTPAGEOFF]
cbz w10, LBB0_4
; %bb.1:
cmp w10, #35
b.eq LBB0_4
; %bb.2:
cmp w10, #61
b.ne LBB0_5
LBB0_3:
Lloh2:
adrp x8, _LINE_ERROR@GOTPAGE
Lloh3:
ldr x8, [x8, _LINE_ERROR@GOTPAGEOFF]
LBB0_4:
ldr w0, [x8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
LBB0_5:
sub x8, x20, x9
str x8, [x21]
add w21, w9, #2
add x22, x9, #1
b LBB0_7
LBB0_6: ; in Loop: Header=BB0_7 Depth=1
add w21, w21, #1
add x22, x22, #1
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldrsb w0, [x20, x22]
bl _UCH
bl _isblank
cbz x0, LBB0_6
; %bb.8: ; in Loop: Header=BB0_7 Depth=1
ldrb w8, [x20, x22]
cbz w8, LBB0_3
; %bb.9: ; in Loop: Header=BB0_7 Depth=1
cmp w8, #61
b.ne LBB0_6
; %bb.10:
strb wzr, [x20, x22]
mov x0, x20
mov x1, x21
bl _skip_whitespace
add x0, x20, w0, sxtw
ldrb w8, [x0]
cbz w8, LBB0_3
; %bb.11:
str x0, [x19]
bl _strlen
sxtw x20, w0
mov x8, #4294967296 ; =0x100000000
add x21, x8, x0, lsl #32
mov x22, #-4294967296 ; =0xffffffff00000000
LBB0_12: ; =>This Inner Loop Header: Depth=1
ldr x8, [x19]
add x8, x8, x20
ldursb w0, [x8, #-1]
bl _UCH
bl _isblank
add x21, x21, x22
cmp x20, #2
b.lt LBB0_14
; %bb.13: ; in Loop: Header=BB0_12 Depth=1
sub x20, x20, #1
cbnz x0, LBB0_12
LBB0_14:
ldr x8, [x19]
asr x9, x21, #32
strb wzr, [x8, x9]
Lloh4:
adrp x8, _LINE_EQUALS@GOTPAGE
Lloh5:
ldr x8, [x8, _LINE_EQUALS@GOTPAGEOFF]
b LBB0_4
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh4, Lloh5
.cfi_endproc
; -- End function
.comm _LINE_EMPTY,4,2 ; @LINE_EMPTY
.comm _LINE_ERROR,4,2 ; @LINE_ERROR
.comm _LINE_EQUALS,4,2 ; @LINE_EQUALS
.no_dead_strip _parse_line
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.section __TEXT,__literal16,16byte_literals
.p2align 4, 0x0 ## -- Begin function png_ascii_from_fixed
LCPI0_0:
.byte 15 ## 0xf
.byte 14 ## 0xe
.byte 13 ## 0xd
.byte 12 ## 0xc
.byte 11 ## 0xb
.byte 10 ## 0xa
.byte 9 ## 0x9
.byte 8 ## 0x8
.byte 7 ## 0x7
.byte 6 ## 0x6
.byte 5 ## 0x5
.byte 4 ## 0x4
.byte 3 ## 0x3
.byte 2 ## 0x2
.byte 1 ## 0x1
.byte 0 ## 0x0
.section __TEXT,__text,regular,pure_instructions
.globl _png_ascii_from_fixed
.p2align 4, 0x90
_png_ascii_from_fixed: ## @png_ascii_from_fixed
.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 $32, %rsp
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -40(%rbp)
cmpq $13, %rdx
jb LBB0_36
## %bb.1:
testq %rcx, %rcx
jle LBB0_2
## %bb.3:
cmpl $-2147483648, %ecx ## imm = 0x80000000
jbe LBB0_4
LBB0_36:
cmpq -40(%rbp), %rax
jne LBB0_38
## %bb.37:
leaq L_.str(%rip), %rsi
addq $32, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp _png_error ## TAILCALL
LBB0_2:
movq $45, (%rsi)
addq $-8, %rsi
negl %ecx
cmpl $-2147483648, %ecx ## imm = 0x80000000
ja LBB0_36
LBB0_4:
testl %ecx, %ecx
je LBB0_33
## %bb.5:
xorl %r14d, %r14d
movl $16, %ebx
.p2align 4, 0x90
LBB0_6: ## =>This Inner Loop Header: Depth=1
movslq %ecx, %rax
imulq $1717986919, %rax, %rcx ## imm = 0x66666667
movq %rcx, %rdx
shrq $63, %rdx
sarq $34, %rcx
addl %edx, %ecx
leal (%rcx,%rcx), %edx
leal (%rdx,%rdx,4), %edx
movl %eax, %edi
subl %edx, %edi
leal 48(%rdi), %edx
movl %r14d, %r8d
incl %r14d
movb %dl, -50(%rbp,%r8)
testl %edi, %edi
movl %ebx, %edx
cmovgl %r14d, %edx
cmpl $16, %ebx
movl %edx, %ebx
cmovel %r14d, %ebx
addl $9, %eax
cmpl $18, %eax
ja LBB0_6
## %bb.7:
testl %r14d, %r14d
je LBB0_33
## %bb.8:
cmpl $6, %r14d
jb LBB0_9
## %bb.10:
movl %r14d, %ecx
leaq -5(%rcx), %rdx
cmpq $16, %rdx
jae LBB0_12
## %bb.11:
movq %rcx, %rax
movq %rsi, %r15
jmp LBB0_15
LBB0_33:
movq $48, (%rsi)
addq $8, %rsi
movq %rsi, %r15
jmp LBB0_34
LBB0_9:
movq %rsi, %r15
jmp LBB0_17
LBB0_12:
movq %rdx, %rdi
andq $-16, %rdi
movq %rcx, %rax
subq %rdi, %rax
leaq (%rsi,%rdi,8), %r15
leaq (%rcx,%rbp), %r8
addq $-66, %r8
addq $-5, %rcx
andq $-16, %rcx
xorl %r9d, %r9d
movdqa LCPI0_0(%rip), %xmm0 ## xmm0 = [15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]
.p2align 4, 0x90
LBB0_13: ## =>This Inner Loop Header: Depth=1
movdqu (%r8), %xmm1
pshufb %xmm0, %xmm1
movdqa %xmm1, %xmm2
psrld $16, %xmm2
pmovsxbq %xmm2, %xmm2
pshufd $85, %xmm1, %xmm3 ## xmm3 = xmm1[1,1,1,1]
pmovsxbq %xmm3, %xmm3
movdqa %xmm1, %xmm4
psrlq $48, %xmm4
pmovsxbq %xmm4, %xmm4
pshufd $238, %xmm1, %xmm5 ## xmm5 = xmm1[2,3,2,3]
pmovsxbq %xmm5, %xmm5
movdqa %xmm1, %xmm6
psrldq $10, %xmm6 ## xmm6 = xmm6[10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
pmovsxbq %xmm6, %xmm6
pshufd $255, %xmm1, %xmm7 ## xmm7 = xmm1[3,3,3,3]
pmovsxbq %xmm7, %xmm7
pmovsxbq %xmm1, %xmm8
psrldq $14, %xmm1 ## xmm1 = xmm1[14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
pmovsxbq %xmm1, %xmm1
movdqu %xmm8, (%rsi,%r9,8)
movdqu %xmm1, 112(%rsi,%r9,8)
movdqu %xmm7, 96(%rsi,%r9,8)
movdqu %xmm6, 80(%rsi,%r9,8)
movdqu %xmm5, 64(%rsi,%r9,8)
movdqu %xmm4, 48(%rsi,%r9,8)
movdqu %xmm3, 32(%rsi,%r9,8)
movdqu %xmm2, 16(%rsi,%r9,8)
addq $16, %r9
addq $-16, %r8
cmpq %r9, %rcx
jne LBB0_13
## %bb.14:
movl $5, %r14d
cmpq %rdi, %rdx
je LBB0_17
.p2align 4, 0x90
LBB0_15: ## =>This Inner Loop Header: Depth=1
movsbq -51(%rbp,%rax), %rcx
decq %rax
movq %rcx, (%r15)
addq $8, %r15
cmpq $5, %rax
ja LBB0_15
## %bb.16:
movl $5, %r14d
LBB0_17:
cmpl $5, %ebx
ja LBB0_34
## %bb.18:
movq $46, (%r15)
leaq 8(%r15), %rdi
cmpl $4, %r14d
ja LBB0_20
## %bb.19:
leal (,%r14,8), %eax
movl $32, %r12d
subl %eax, %r12d
leaq 8(%r12), %rdx
leaq L_.memset_pattern(%rip), %rsi
callq _memset_pattern16
leaq (%r12,%r15), %rdi
addq $16, %rdi
LBB0_20:
cmpl %ebx, %r14d
jae LBB0_22
## %bb.21:
movq %rdi, %r15
jmp LBB0_34
LBB0_22:
movl %ebx, %ecx
negl %ecx
movl %r14d, %eax
negl %eax
cmpl %eax, %ecx
cmoval %ecx, %eax
addl %r14d, %eax
cmpl $63, %eax
jae LBB0_24
## %bb.23:
movq %rdi, %r15
jmp LBB0_32
LBB0_24:
leal -1(%rbx), %edx
leal -1(%r14), %ecx
cmpl %ecx, %edx
movl %ecx, %esi
cmovbl %edx, %esi
notl %esi
addl %r14d, %esi
cmpl %ecx, %esi
jbe LBB0_26
## %bb.25:
movq %rdi, %r15
jmp LBB0_32
LBB0_26:
leal -1(%r14), %esi
cmpl %esi, %edx
cmovael %esi, %edx
leaq (%rsi,%rbp), %r8
addq $-49, %r8
cmpq %r8, %rdi
jae LBB0_29
## %bb.27:
notl %edx
addl %r14d, %edx
leaq (%rdi,%rdx,8), %r8
addq $8, %r8
subq %rdx, %rsi
leaq (%rsi,%rbp), %rdx
addq $-50, %rdx
cmpq %r8, %rdx
jae LBB0_29
## %bb.28:
movq %rdi, %r15
jmp LBB0_32
LBB0_29:
incq %rax
movq %rax, %rdx
andq $-16, %rdx
leaq (%rdi,%rdx,8), %r15
subl %edx, %r14d
xorl %esi, %esi
movdqa LCPI0_0(%rip), %xmm0 ## xmm0 = [15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]
LBB0_30: ## =>This Inner Loop Header: Depth=1
movl %ecx, %r8d
movdqu -65(%rbp,%r8), %xmm1
pshufb %xmm0, %xmm1
movdqa %xmm1, %xmm2
psrld $16, %xmm2
pmovsxbq %xmm2, %xmm2
pshufd $85, %xmm1, %xmm3 ## xmm3 = xmm1[1,1,1,1]
pmovsxbq %xmm3, %xmm3
movdqa %xmm1, %xmm4
psrlq $48, %xmm4
pmovsxbq %xmm4, %xmm4
pshufd $238, %xmm1, %xmm5 ## xmm5 = xmm1[2,3,2,3]
pmovsxbq %xmm5, %xmm5
movdqa %xmm1, %xmm6
psrldq $10, %xmm6 ## xmm6 = xmm6[10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
pmovsxbq %xmm6, %xmm6
pshufd $255, %xmm1, %xmm7 ## xmm7 = xmm1[3,3,3,3]
pmovsxbq %xmm7, %xmm7
pmovsxbq %xmm1, %xmm8
psrldq $14, %xmm1 ## xmm1 = xmm1[14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
pmovsxbq %xmm1, %xmm1
movdqu %xmm8, (%rdi,%rsi,8)
movdqu %xmm1, 112(%rdi,%rsi,8)
movdqu %xmm7, 96(%rdi,%rsi,8)
movdqu %xmm6, 80(%rdi,%rsi,8)
movdqu %xmm5, 64(%rdi,%rsi,8)
movdqu %xmm4, 48(%rdi,%rsi,8)
movdqu %xmm3, 32(%rdi,%rsi,8)
movdqu %xmm2, 16(%rdi,%rsi,8)
addq $16, %rsi
addl $-16, %ecx
cmpq %rsi, %rdx
jne LBB0_30
## %bb.31:
cmpq %rdx, %rax
je LBB0_34
.p2align 4, 0x90
LBB0_32: ## =>This Inner Loop Header: Depth=1
decl %r14d
movsbq -50(%rbp,%r14), %rax
movq %rax, (%r15)
addq $8, %r15
cmpl %ebx, %r14d
jae LBB0_32
LBB0_34:
movq $0, (%r15)
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -40(%rbp), %rax
jne LBB0_38
## %bb.35:
addq $32, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
LBB0_38:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "ASCII conversion buffer too small"
.section __TEXT,__literal16,16byte_literals
.p2align 4, 0x0 ## @.memset_pattern
L_.memset_pattern:
.quad 48 ## 0x30
.quad 48 ## 0x30
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _png_ascii_from_fixed ; -- Begin function png_ascii_from_fixed
.p2align 2
_png_ascii_from_fixed: ; @png_ascii_from_fixed
.cfi_startproc
; %bb.0:
sub sp, sp, #80
stp x22, x21, [sp, #32] ; 16-byte Folded Spill
stp x20, x19, [sp, #48] ; 16-byte Folded Spill
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
str x8, [sp, #24]
cmp x2, #13
b.lo LBB0_4
; %bb.1:
cmp x3, #0
b.gt LBB0_3
; %bb.2:
mov w8, #45 ; =0x2d
str x8, [x1], #-8
neg w3, w3
LBB0_3:
mov w8, #-2147483648 ; =0x80000000
cmp w3, w8
b.ls LBB0_6
LBB0_4:
ldr x8, [sp, #24]
Lloh3:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh4:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_38
; %bb.5:
Lloh6:
adrp x1, l_.str@PAGE
Lloh7:
add x1, x1, l_.str@PAGEOFF
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
ldp x22, x21, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #80
b _png_error
LBB0_6:
cbz w3, LBB0_13
; %bb.7:
mov w20, #0 ; =0x0
mov w19, #16 ; =0x10
mov w8, #26215 ; =0x6667
movk w8, #26214, lsl #16
mov w9, #-10 ; =0xfffffff6
add x10, sp, #14
LBB0_8: ; =>This Inner Loop Header: Depth=1
smull x12, w3, w8
lsr x13, x12, #63
asr x12, x12, #34
add w12, w12, w13
madd w13, w12, w9, w3
add w14, w13, #48
strb w14, [x10, w20, uxtw]
cmp w13, #0
ccmp w19, #16, #4, le
csinc w19, w19, w20, ne
add w20, w20, #1
add w11, w3, #9
mov x3, x12
cmp w11, #18
b.hi LBB0_8
; %bb.9:
cbz w20, LBB0_13
; %bb.10:
cmp w20, #6
b.lo LBB0_16
; %bb.11:
sub x8, x20, #5
cmp x8, #16
b.hs LBB0_17
; %bb.12:
mov x21, x1
b LBB0_21
LBB0_13:
mov w8, #48 ; =0x30
str x8, [x1], #8
mov x21, x1
LBB0_14:
str xzr, [x21]
ldr x8, [sp, #24]
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_38
; %bb.15:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
ldp x22, x21, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #80
ret
LBB0_16:
mov x21, x1
cmp w19, #5
b.ls LBB0_24
b LBB0_14
LBB0_17:
and x10, x8, #0xfffffffffffffff0
sub x9, x20, x10
add x21, x1, x10, lsl #3
add x11, sp, #14
add x11, x11, x20
sub x11, x11, #16
sub x12, x20, #5
and x12, x12, #0xfffffffffffffff0
LBB0_18: ; =>This Inner Loop Header: Depth=1
ldr q0, [x11], #-16
rev64.16b v0, v0
ext.16b v0, v0, v0, #8
sshll.8h v1, v0, #0
sshll.4s v2, v1, #0
sshll.2d v3, v2, #0
sshll2.4s v1, v1, #0
sshll.2d v4, v1, #0
sshll2.8h v0, v0, #0
sshll2.4s v5, v0, #0
sshll.2d v6, v5, #0
sshll2.2d v5, v5, #0
stp q6, q5, [x1, #96]
sshll.4s v0, v0, #0
sshll.2d v5, v0, #0
sshll2.2d v1, v1, #0
sshll2.2d v0, v0, #0
stp q5, q0, [x1, #64]
stp q4, q1, [x1, #32]
sshll2.2d v0, v2, #0
stp q3, q0, [x1], #128
subs x12, x12, #16
b.ne LBB0_18
; %bb.19:
cmp x8, x10
b.eq LBB0_23
; %bb.20:
mov x20, x9
LBB0_21:
add x8, sp, #14
sub x8, x8, #1
LBB0_22: ; =>This Inner Loop Header: Depth=1
ldrsb x9, [x8, x20]
sub x10, x20, #1
str x9, [x21], #8
mov x20, x10
cmp x10, #5
b.hi LBB0_22
LBB0_23:
mov w20, #5 ; =0x5
cmp w19, #5
b.hi LBB0_14
LBB0_24:
mov w8, #46 ; =0x2e
mov x0, x21
str x8, [x0], #8
cmp w20, #4
b.hi LBB0_26
; %bb.25:
mov w8, #32 ; =0x20
sub w22, w8, w20, lsl #3
Lloh11:
adrp x1, l_.memset_pattern@PAGE
Lloh12:
add x1, x1, l_.memset_pattern@PAGEOFF
add x2, x22, #8
bl _memset_pattern16
add x8, x22, x21
add x0, x8, #16
LBB0_26:
cmp w20, w19
b.hs LBB0_28
; %bb.27:
mov x21, x0
b LBB0_14
LBB0_28:
neg w8, w19
neg w9, w20
cmp w8, w9
csneg w8, w9, w19, ls
add w9, w8, w20
cmp w9, #47
b.lo LBB0_32
; %bb.29:
sub w10, w19, #1
sub w8, w20, #1
cmp w10, w8
csel w11, w10, w8, lo
mvn w11, w11
add w11, w20, w11
cmp w11, w8
b.hi LBB0_32
; %bb.30:
cmp w10, w8
csel w10, w10, w8, lo
add x11, sp, #14
add x12, x11, x8
add x12, x12, #1
cmp x0, x12
b.hs LBB0_35
; %bb.31:
mvn w10, w10
add w10, w20, w10
sub x12, x8, x10
add x10, x0, w10, uxtw #3
add x10, x10, #8
add x12, x11, x12
cmp x12, x10
b.hs LBB0_35
LBB0_32:
mov x21, x0
LBB0_33:
add x8, sp, #14
LBB0_34: ; =>This Inner Loop Header: Depth=1
sub w20, w20, #1
ldrsb x9, [x8, w20, uxtw]
str x9, [x21], #8
cmp w20, w19
b.hs LBB0_34
b LBB0_14
LBB0_35:
add x9, x9, #1
and x10, x9, #0x1fffffff0
add x21, x0, x10, lsl #3
sub w20, w20, w10
sub x11, x11, #15
mov x12, x10
LBB0_36: ; =>This Inner Loop Header: Depth=1
ldr q0, [x11, w8, uxtw]
rev64.16b v0, v0
ext.16b v0, v0, v0, #8
sshll.8h v1, v0, #0
sshll.4s v2, v1, #0
sshll.2d v3, v2, #0
sshll2.4s v1, v1, #0
sshll.2d v4, v1, #0
sshll2.8h v0, v0, #0
sshll2.4s v5, v0, #0
sshll.2d v6, v5, #0
sshll2.2d v5, v5, #0
stp q6, q5, [x0, #96]
sshll.4s v0, v0, #0
sshll.2d v5, v0, #0
sshll2.2d v1, v1, #0
sshll2.2d v0, v0, #0
stp q5, q0, [x0, #64]
stp q4, q1, [x0, #32]
sshll2.2d v0, v2, #0
stp q3, q0, [x0], #128
sub w8, w8, #16
sub x12, x12, #16
cbnz x12, LBB0_36
; %bb.37:
cmp x9, x10
b.eq LBB0_14
b LBB0_33
LBB0_38:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpAdd Lloh11, Lloh12
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "ASCII conversion buffer too small"
.section __TEXT,__literal16,16byte_literals
.p2align 4, 0x0 ; @.memset_pattern
l_.memset_pattern:
.quad 48 ; 0x30
.quad 48 ; 0x30
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _RemoveColorEscapeSequences ## -- Begin function RemoveColorEscapeSequences
.p2align 4, 0x90
_RemoveColorEscapeSequences: ## @RemoveColorEscapeSequences
.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
xorl %r15d, %r15d
cmpb $0, (%rdi)
je LBB0_7
## %bb.1:
movq %rbx, %r14
jmp LBB0_2
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
cmpb $0, -1(%r14)
leaq -1(%r14), %r14
je LBB0_6
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
callq _Q_IsColorString
testq %rax, %rax
jne LBB0_6
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movzbl (%r14), %eax
cmpb $127, %al
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
movslq %r15d, %rcx
incl %r15d
movb %al, (%rbx,%rcx)
jmp LBB0_5
LBB0_6:
movslq %r15d, %r15
LBB0_7:
movb $0, (%rbx,%r15)
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.globl _RemoveColorEscapeSequences ; -- Begin function RemoveColorEscapeSequences
.p2align 2
_RemoveColorEscapeSequences: ; @RemoveColorEscapeSequences
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x0
ldrb w8, [x0]
cbz w8, LBB0_7
; %bb.1:
mov w21, #0 ; =0x0
mov x20, x19
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
ldrb w8, [x20, #-1]!
cbz w8, LBB0_6
LBB0_3: ; =>This Inner Loop Header: Depth=1
mov x0, x20
bl _Q_IsColorString
cbnz x0, LBB0_6
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
ldrb w8, [x20]
cmp w8, #127
b.eq LBB0_2
; %bb.5: ; in Loop: Header=BB0_3 Depth=1
strb w8, [x19, w21, sxtw]
add w8, w21, #1
mov x21, x8
b LBB0_2
LBB0_6:
sxtw x8, w21
b LBB0_8
LBB0_7:
mov x8, #0 ; =0x0
LBB0_8:
strb wzr, [x19, x8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 4, 0x90 ## -- Begin function stbi__hdr_gettoken
_stbi__hdr_gettoken: ## @stbi__hdr_gettoken
.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
movq %rdi, %r14
callq _stbi__get8
movl %eax, %r15d
movq %r14, %rdi
callq _stbi__at_eof
testl %eax, %eax
sete %al
cmpb $10, %r15b
setne %cl
andb %al, %cl
cmpb $1, %cl
jne LBB0_1
## %bb.2:
xorl %eax, %eax
movq _STBI__HDR_BUFLEN@GOTPCREL(%rip), %r13
.p2align 4, 0x90
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq %rax, %r12
movb %r15b, (%rbx,%rax)
movl (%r13), %eax
addl $-2, %eax
cmpq %rax, %r12
je LBB0_4
## %bb.7: ## in Loop: Header=BB0_3 Depth=1
movq %r14, %rdi
callq _stbi__get8
movl %eax, %r15d
movq %r14, %rdi
callq _stbi__at_eof
testl %eax, %eax
jne LBB0_9
## %bb.8: ## in Loop: Header=BB0_3 Depth=1
leaq 1(%r12), %rax
cmpb $10, %r15b
jne LBB0_3
LBB0_9:
incq %r12
jmp LBB0_10
LBB0_1:
xorl %r12d, %r12d
LBB0_10:
movslq %r12d, %rax
movb $0, (%rbx,%rax)
movq %rbx, %rax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_4:
incq %r12
.p2align 4, 0x90
LBB0_5: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
callq _stbi__at_eof
testl %eax, %eax
jne LBB0_10
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq %r14, %rdi
callq _stbi__get8
cmpb $10, %al
jne LBB0_5
jmp LBB0_10
.cfi_endproc
## -- End function
.comm _STBI__HDR_BUFLEN,4,2 ## @STBI__HDR_BUFLEN
.no_dead_strip _stbi__hdr_gettoken
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 5
.p2align 2 ; -- Begin function stbi__hdr_gettoken
_stbi__hdr_gettoken: ; @stbi__hdr_gettoken
.cfi_startproc
; %bb.0:
stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill
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, x1
mov x20, x0
bl _stbi__get8
mov x21, x0
mov x0, x20
bl _stbi__at_eof
mov x22, #0 ; =0x0
cbnz w0, LBB0_9
; %bb.1:
cmp w21, #10
b.eq LBB0_9
; %bb.2:
mov x22, #0 ; =0x0
Lloh0:
adrp x23, _STBI__HDR_BUFLEN@GOTPAGE
Lloh1:
ldr x23, [x23, _STBI__HDR_BUFLEN@GOTPAGEOFF]
LBB0_3: ; =>This Inner Loop Header: Depth=1
strb w21, [x19, x22]
ldr w8, [x23]
sub w8, w8, #2
cmp x22, x8
b.eq LBB0_6
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
mov x0, x20
bl _stbi__get8
mov x21, x0
mov x0, x20
bl _stbi__at_eof
add x22, x22, #1
cbnz w0, LBB0_9
; %bb.5: ; in Loop: Header=BB0_3 Depth=1
cmp w21, #10
b.ne LBB0_3
b LBB0_9
LBB0_6:
add x22, x22, #1
LBB0_7: ; =>This Inner Loop Header: Depth=1
mov x0, x20
bl _stbi__at_eof
cbnz w0, LBB0_9
; %bb.8: ; in Loop: Header=BB0_7 Depth=1
mov x0, x20
bl _stbi__get8
cmp w0, #10
b.ne LBB0_7
LBB0_9:
strb wzr, [x19, w22, sxtw]
mov x0, x19
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _STBI__HDR_BUFLEN,4,2 ; @STBI__HDR_BUFLEN
.no_dead_strip _stbi__hdr_gettoken
.subsections_via_symbols
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.