arm
stringlengths 122
20M
| x86
stringlengths 122
20M
| filename
stringlengths 18
26
|
---|---|---|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_strlen ; -- Begin function ft_strlen
.p2align 2
_ft_strlen: ; @ft_strlen
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str wzr, [sp, #4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldrsw x9, [sp, #4]
ldrsb w8, [x8, x9]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_1
LBB0_3:
ldr w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_strlen ## -- Begin function ft_strlen
.p2align 4, 0x90
_ft_strlen: ## @ft_strlen
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl $0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0, %eax
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_1
LBB0_3:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/144403.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub sp, sp, #80
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-12]
sub sp, sp, #16
mov x9, sp
sub x8, x29, #16
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
add sp, sp, #16
ldur w8, [x29, #-16]
; kill: def $x8 killed $w8
mov x9, sp
stur x9, [x29, #-24]
lsl x9, x8, #2
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-72] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-72] ; 8-byte Folded Reload
mov x9, sp
subs x9, x9, x10
mov sp, x9
stur x9, [x29, #-64] ; 8-byte Folded Spill
stur x8, [x29, #-32]
stur wzr, [x29, #-44]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-44]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-64] ; 8-byte Folded Reload
ldursw x9, [x29, #-44]
add x8, x8, x9, lsl #2
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
add sp, sp, #16
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-44]
add w8, w8, #1
stur w8, [x29, #-44]
b LBB0_1
LBB0_4:
stur wzr, [x29, #-36]
b LBB0_5
LBB0_5: ; =>This Loop Header: Depth=1
; Child Loop BB0_7 Depth 2
; Child Loop BB0_11 Depth 3
ldur w8, [x29, #-36]
ldur w9, [x29, #-16]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_18
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-36]
add w8, w8, #1
stur w8, [x29, #-40]
b LBB0_7
LBB0_7: ; Parent Loop BB0_5 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_11 Depth 3
ldur w8, [x29, #-40]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_16
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=2
ldur x9, [x29, #-64] ; 8-byte Folded Reload
ldursw x8, [x29, #-36]
ldr w8, [x9, x8, lsl #2]
ldursw x10, [x29, #-40]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_7 Depth=2
ldur x9, [x29, #-64] ; 8-byte Folded Reload
ldursw x8, [x29, #-36]
ldr w8, [x9, x8, lsl #2]
stur w8, [x29, #-52]
ldursw x8, [x29, #-40]
ldr w8, [x9, x8, lsl #2]
ldursw x10, [x29, #-36]
str w8, [x9, x10, lsl #2]
ldur w8, [x29, #-52]
ldursw x10, [x29, #-40]
str w8, [x9, x10, lsl #2]
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_7 Depth=2
stur wzr, [x29, #-48]
b LBB0_11
LBB0_11: ; Parent Loop BB0_5 Depth=1
; Parent Loop BB0_7 Depth=2
; => This Inner Loop Header: Depth=3
ldur w8, [x29, #-48]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_14
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=3
ldur x8, [x29, #-64] ; 8-byte Folded Reload
ldursw x9, [x29, #-48]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
add sp, sp, #16
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_11 Depth=3
ldur w8, [x29, #-48]
add w8, w8, #1
stur w8, [x29, #-48]
b LBB0_11
LBB0_14: ; in Loop: Header=BB0_7 Depth=2
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_7 Depth=2
ldur w8, [x29, #-40]
add w8, w8, #1
stur w8, [x29, #-40]
b LBB0_7
LBB0_16: ; in Loop: Header=BB0_5 Depth=1
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-36]
add w8, w8, #1
stur w8, [x29, #-36]
b LBB0_5
LBB0_18:
stur wzr, [x29, #-12]
ldur x8, [x29, #-24]
mov sp, x8
ldur w8, [x29, #-12]
stur w8, [x29, #-76] ; 4-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19:
bl ___stack_chk_fail
LBB0_20:
ldur w0, [x29, #-76] ; 4-byte Folded Reload
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
l_.str.1: ; @.str.1
.asciz "%d "
l_.str.2: ; @.str.2
.asciz "\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -12(%rbp)
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
leaq -16(%rbp), %rsi
callq _scanf
movl -16(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -72(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -24(%rbp)
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -72(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -64(%rbp) ## 8-byte Spill
movq %rax, -32(%rbp)
movl $0, -44(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -64(%rbp), %rsi ## 8-byte Reload
movslq -44(%rbp), %rax
shlq $2, %rax
addq %rax, %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_1
LBB0_4:
movl $0, -36(%rbp)
LBB0_5: ## =>This Loop Header: Depth=1
## Child Loop BB0_7 Depth 2
## Child Loop BB0_11 Depth 3
movl -36(%rbp), %eax
movl -16(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB0_18
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
LBB0_7: ## Parent Loop BB0_5 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_11 Depth 3
movl -40(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB0_16
## %bb.8: ## in Loop: Header=BB0_7 Depth=2
movq -64(%rbp), %rcx ## 8-byte Reload
movslq -36(%rbp), %rax
movl (%rcx,%rax,4), %eax
movslq -40(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jle LBB0_10
## %bb.9: ## in Loop: Header=BB0_7 Depth=2
movq -64(%rbp), %rax ## 8-byte Reload
movslq -36(%rbp), %rcx
movl (%rax,%rcx,4), %ecx
movl %ecx, -52(%rbp)
movslq -40(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movslq -36(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -52(%rbp), %edx
movslq -40(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
LBB0_10: ## in Loop: Header=BB0_7 Depth=2
movl $0, -48(%rbp)
LBB0_11: ## Parent Loop BB0_5 Depth=1
## Parent Loop BB0_7 Depth=2
## => This Inner Loop Header: Depth=3
movl -48(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB0_14
## %bb.12: ## in Loop: Header=BB0_11 Depth=3
movq -64(%rbp), %rax ## 8-byte Reload
movslq -48(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.13: ## in Loop: Header=BB0_11 Depth=3
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
jmp LBB0_11
LBB0_14: ## in Loop: Header=BB0_7 Depth=2
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.15: ## in Loop: Header=BB0_7 Depth=2
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_7
LBB0_16: ## in Loop: Header=BB0_5 Depth=1
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.17: ## in Loop: Header=BB0_5 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB0_5
LBB0_18:
movl $0, -12(%rbp)
movq -24(%rbp), %rax
movq %rax, %rsp
movl -12(%rbp), %eax
movl %eax, -76(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_20
## %bb.19:
movl -76(%rbp), %eax ## 4-byte Reload
movq %rbp, %rsp
popq %rbp
retq
LBB0_20:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
L_.str.1: ## @.str.1
.asciz "%d "
L_.str.2: ## @.str.2
.asciz "\n"
.subsections_via_symbols
| the_stack_data/59511688.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _Create ; -- Begin function Create
.p2align 2
_Create: ; @Create
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str w1, [sp, #4]
ldrsw x0, [sp, #4]
mov x1, #4
bl _calloc
ldr x8, [sp, #8]
str x0, [x8]
ldr x8, [sp, #8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w0, #12
bl _exit
LBB0_2:
ldr x8, [sp, #8]
str wzr, [x8, #12]
ldr x8, [sp, #8]
str wzr, [x8, #8]
ldr x8, [sp, #8]
str wzr, [x8, #16]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _enqueue ; -- Begin function enqueue
.p2align 2
_enqueue: ; @enqueue
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str w1, [sp, #4]
str w2, [sp]
ldr x8, [sp, #8]
ldr w8, [x8, #16]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB1_3
b LBB1_1
LBB1_1:
ldr x8, [sp, #8]
ldr w8, [x8, #12]
ldr x9, [sp, #8]
ldr w9, [x9, #8]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2:
mov w0, #12
bl _exit
LBB1_3:
ldr w8, [sp, #4]
ldr x9, [sp, #8]
ldr x9, [x9]
ldr x10, [sp, #8]
ldrsw x10, [x10, #12]
str w8, [x9, x10, lsl #2]
ldr x8, [sp, #8]
ldr w8, [x8, #12]
add w8, w8, #1
ldr w10, [sp]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
ldr x9, [sp, #8]
str w8, [x9, #12]
ldr x8, [sp, #8]
ldr w8, [x8, #16]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4:
ldr x9, [sp, #8]
mov w8, #1
str w8, [x9, #16]
b LBB1_5
LBB1_5:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _dequeue ; -- Begin function dequeue
.p2align 2
_dequeue: ; @dequeue
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str w1, [sp, #4]
ldr x8, [sp, #8]
ldr w8, [x8, #16]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB2_3
b LBB2_1
LBB2_1:
ldr x8, [sp, #8]
ldr w8, [x8, #12]
ldr x9, [sp, #8]
ldr w9, [x9, #8]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2:
mov w0, #13
bl _exit
LBB2_3:
ldr x8, [sp, #8]
ldr x8, [x8]
ldr x9, [sp, #8]
ldrsw x9, [x9, #8]
ldr w8, [x8, x9, lsl #2]
str w8, [sp]
ldr x8, [sp, #8]
ldr w8, [x8, #8]
add w8, w8, #1
ldr w10, [sp, #4]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
ldr x9, [sp, #8]
str w8, [x9, #8]
ldr x8, [sp, #8]
ldr w8, [x8, #16]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB2_5
b LBB2_4
LBB2_4:
ldr x8, [sp, #8]
str wzr, [x8, #16]
b LBB2_5
LBB2_5:
ldr w0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
b LBB3_1
LBB3_1: ; =>This Loop Header: Depth=1
; Child Loop BB3_4 Depth 2
; Child Loop BB3_8 Depth 2
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB3_3
b LBB3_2
LBB3_2:
b LBB3_12
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldur w1, [x29, #-8]
add x0, sp, #32
bl _Create
str wzr, [sp, #24]
b LBB3_4
LBB3_4: ; Parent Loop BB3_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #24]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_7
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_4 Depth=2
mov x9, sp
add x8, sp, #28
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w1, [sp, #28]
ldur w2, [x29, #-8]
add x0, sp, #32
bl _enqueue
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_4 Depth=2
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB3_4
LBB3_7: ; in Loop: Header=BB3_1 Depth=1
str wzr, [sp, #20]
b LBB3_8
LBB3_8: ; Parent Loop BB3_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #20]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_11
b LBB3_9
LBB3_9: ; in Loop: Header=BB3_8 Depth=2
ldur w1, [x29, #-8]
add x0, sp, #32
bl _dequeue
ldr w8, [sp, #20]
ldur w9, [x29, #-8]
subs w9, w9, #1
subs w8, w8, w9
cset w8, eq
and w10, w8, #0x1
adrp x9, l_.str.3@PAGE
add x9, x9, l_.str.3@PAGEOFF
adrp x8, l_.str.2@PAGE
add x8, x8, l_.str.2@PAGEOFF
ands w10, w10, #0x1
csel x8, x8, x9, ne
mov x9, sp
; implicit-def: $x10
mov x10, x0
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB3_10
LBB3_10: ; in Loop: Header=BB3_8 Depth=2
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB3_8
LBB3_11: ; in Loop: Header=BB3_1 Depth=1
b LBB3_1
LBB3_12:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
l_.str.1: ; @.str.1
.asciz "%d%s"
l_.str.2: ; @.str.2
.asciz "\n"
l_.str.3: ; @.str.3
.asciz " "
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _Create ## -- Begin function Create
.p2align 4, 0x90
_Create: ## @Create
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movslq -12(%rbp), %rdi
movl $4, %esi
callq _calloc
movq %rax, %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
movq -8(%rbp), %rax
cmpq $0, (%rax)
jne LBB0_2
## %bb.1:
movl $12, %edi
callq _exit
LBB0_2:
movq -8(%rbp), %rax
movl $0, 12(%rax)
movq -8(%rbp), %rax
movl $0, 8(%rax)
movq -8(%rbp), %rax
movl $0, 16(%rax)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _enqueue ## -- Begin function enqueue
.p2align 4, 0x90
_enqueue: ## @enqueue
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movq -8(%rbp), %rax
cmpl $1, 16(%rax)
jne LBB1_3
## %bb.1:
movq -8(%rbp), %rax
movl 12(%rax), %eax
movq -8(%rbp), %rcx
cmpl 8(%rcx), %eax
jne LBB1_3
## %bb.2:
movl $12, %edi
callq _exit
LBB1_3:
movl -12(%rbp), %edx
movq -8(%rbp), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
movslq 12(%rcx), %rcx
movl %edx, (%rax,%rcx,4)
movq -8(%rbp), %rax
movl 12(%rax), %eax
addl $1, %eax
cltd
idivl -16(%rbp)
movq -8(%rbp), %rax
movl %edx, 12(%rax)
movq -8(%rbp), %rax
cmpl $0, 16(%rax)
jne LBB1_5
## %bb.4:
movq -8(%rbp), %rax
movl $1, 16(%rax)
LBB1_5:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _dequeue ## -- Begin function dequeue
.p2align 4, 0x90
_dequeue: ## @dequeue
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq -8(%rbp), %rax
cmpl $0, 16(%rax)
jne LBB2_3
## %bb.1:
movq -8(%rbp), %rax
movl 12(%rax), %eax
movq -8(%rbp), %rcx
cmpl 8(%rcx), %eax
jne LBB2_3
## %bb.2:
movl $13, %edi
callq _exit
LBB2_3:
movq -8(%rbp), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
movslq 8(%rcx), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -16(%rbp)
movq -8(%rbp), %rax
movl 8(%rax), %eax
addl $1, %eax
cltd
idivl -12(%rbp)
movq -8(%rbp), %rax
movl %edx, 8(%rax)
movq -8(%rbp), %rax
cmpl $1, 16(%rax)
jne LBB2_5
## %bb.4:
movq -8(%rbp), %rax
movl $0, 16(%rax)
LBB2_5:
movl -16(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
LBB3_1: ## =>This Loop Header: Depth=1
## Child Loop BB3_4 Depth 2
## Child Loop BB3_8 Depth 2
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $0, -8(%rbp)
jne LBB3_3
## %bb.2:
jmp LBB3_12
LBB3_3: ## in Loop: Header=BB3_1 Depth=1
movl -8(%rbp), %esi
leaq -32(%rbp), %rdi
callq _Create
movl $0, -40(%rbp)
LBB3_4: ## Parent Loop BB3_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -40(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB3_7
## %bb.5: ## in Loop: Header=BB3_4 Depth=2
leaq L_.str(%rip), %rdi
leaq -36(%rbp), %rsi
movb $0, %al
callq _scanf
movl -36(%rbp), %esi
movl -8(%rbp), %edx
leaq -32(%rbp), %rdi
callq _enqueue
## %bb.6: ## in Loop: Header=BB3_4 Depth=2
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB3_4
LBB3_7: ## in Loop: Header=BB3_1 Depth=1
movl $0, -44(%rbp)
LBB3_8: ## Parent Loop BB3_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -44(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB3_11
## %bb.9: ## in Loop: Header=BB3_8 Depth=2
movl -8(%rbp), %esi
leaq -32(%rbp), %rdi
callq _dequeue
movl %eax, %esi
movl -44(%rbp), %ecx
movl -8(%rbp), %edi
subl $1, %edi
leaq L_.str.3(%rip), %rdx
leaq L_.str.2(%rip), %rax
cmpl %edi, %ecx
cmoveq %rax, %rdx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.10: ## in Loop: Header=BB3_8 Depth=2
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB3_8
LBB3_11: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_1
LBB3_12:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
L_.str.1: ## @.str.1
.asciz "%d%s"
L_.str.2: ## @.str.2
.asciz "\n"
L_.str.3: ## @.str.3
.asciz " "
.subsections_via_symbols
| the_stack_data/73575759.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _push ; -- Begin function push
.p2align 2
_push: ; @push
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str d0, [sp, #8]
adrp x8, _sp@PAGE
ldr w8, [x8, _sp@PAGEOFF]
subs w8, w8, #100
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr d0, [sp, #8]
adrp x10, _sp@PAGE
ldrsw x9, [x10, _sp@PAGEOFF]
mov x8, x9
add w8, w8, #1
str w8, [x10, _sp@PAGEOFF]
adrp x8, _val@GOTPAGE
ldr x8, [x8, _val@GOTPAGEOFF]
str d0, [x8, x9, lsl #3]
b LBB0_3
LBB0_2:
ldr d0, [sp, #8]
mov x8, sp
str d0, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB0_3
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _pop ; -- Begin function pop
.p2align 2
_pop: ; @pop
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _sp@PAGE
ldr w8, [x8, _sp@PAGEOFF]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
adrp x8, _sp@PAGE
ldr w9, [x8, _sp@PAGEOFF]
subs w9, w9, #1
str w9, [x8, _sp@PAGEOFF]
adrp x8, _val@GOTPAGE
ldr x8, [x8, _val@GOTPAGEOFF]
ldr d0, [x8, w9, sxtw #3]
str d0, [sp, #8]
b LBB1_3
LBB1_2:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
movi d0, #0000000000000000
str d0, [sp, #8]
b LBB1_3
LBB1_3:
ldr d0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _print ; -- Begin function print
.p2align 2
_print: ; @print
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _sp@PAGE
ldr w8, [x8, _sp@PAGEOFF]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
adrp x8, _sp@PAGE
ldr w8, [x8, _sp@PAGEOFF]
subs w9, w8, #1
adrp x8, _val@GOTPAGE
ldr x8, [x8, _val@GOTPAGEOFF]
ldr d0, [x8, w9, sxtw #3]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB2_3
LBB2_2:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB2_3
LBB2_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _copy ; -- Begin function copy
.p2align 2
_copy: ; @copy
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _sp@PAGE
ldr w8, [x8, _sp@PAGEOFF]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
adrp x8, _sp@PAGE
ldr w8, [x8, _sp@PAGEOFF]
subs w9, w8, #1
adrp x8, _val@GOTPAGE
ldr x8, [x8, _val@GOTPAGEOFF]
ldr d0, [x8, w9, sxtw #3]
str d0, [sp, #8]
b LBB3_3
LBB3_2:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
movi d0, #0000000000000000
str d0, [sp, #8]
b LBB3_3
LBB3_3:
ldr d0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _change ; -- Begin function change
.p2align 2
_change: ; @change
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _val@GOTPAGE
ldr x8, [x8, _val@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
adrp x8, _sp@PAGE
ldr w8, [x8, _sp@PAGEOFF]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
ldr x8, [sp] ; 8-byte Folded Reload
adrp x9, _sp@PAGE
ldr w10, [x9, _sp@PAGEOFF]
subs w10, w10, #1
ldr d0, [x8, w10, sxtw #3]
str d0, [sp, #8]
ldr w10, [x9, _sp@PAGEOFF]
subs w10, w10, #2
ldr d0, [x8, w10, sxtw #3]
ldr w10, [x9, _sp@PAGEOFF]
subs w10, w10, #1
str d0, [x8, w10, sxtw #3]
ldr d0, [sp, #8]
ldr w9, [x9, _sp@PAGEOFF]
subs w9, w9, #2
str d0, [x8, w9, sxtw #3]
b LBB4_5
LBB4_2:
adrp x8, _sp@PAGE
ldr w8, [x8, _sp@PAGEOFF]
subs w8, w8, #1
cset w8, ge
tbnz w8, #0, LBB4_4
b LBB4_3
LBB4_3:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB4_4
LBB4_4:
b LBB4_5
LBB4_5:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _clear ; -- Begin function clear
.p2align 2
_clear: ; @clear
.cfi_startproc
; %bb.0:
adrp x8, _sp@PAGE
str wzr, [x8, _sp@PAGEOFF]
ret
.cfi_endproc
; -- End function
.globl _sp ; @sp
.zerofill __DATA,__common,_sp,4,2
.comm _val,800,3 ; @val
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "error: stack full, can't push %g\n"
l_.str.1: ; @.str.1
.asciz "error: stack empty\n"
l_.str.2: ; @.str.2
.asciz "%.8g"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _push ## -- Begin function push
.p2align 4, 0x90
_push: ## @push
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movsd %xmm0, -8(%rbp)
cmpl $100, _sp(%rip)
jge LBB0_2
## %bb.1:
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
movl _sp(%rip), %eax
movl %eax, %ecx
addl $1, %ecx
movl %ecx, _sp(%rip)
movslq %eax, %rcx
movq _val@GOTPCREL(%rip), %rax
movsd %xmm0, (%rax,%rcx,8)
jmp LBB0_3
LBB0_2:
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str(%rip), %rdi
movb $1, %al
callq _printf
LBB0_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _pop ## -- Begin function pop
.p2align 4, 0x90
_pop: ## @pop
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
cmpl $0, _sp(%rip)
jle LBB1_2
## %bb.1:
movl _sp(%rip), %eax
addl $-1, %eax
movl %eax, _sp(%rip)
movslq %eax, %rcx
movq _val@GOTPCREL(%rip), %rax
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -8(%rbp)
jmp LBB1_3
LBB1_2:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
xorps %xmm0, %xmm0
movsd %xmm0, -8(%rbp)
LBB1_3:
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _print ## -- Begin function print
.p2align 4, 0x90
_print: ## @print
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cmpl $0, _sp(%rip)
jle LBB2_2
## %bb.1:
movl _sp(%rip), %eax
subl $1, %eax
movslq %eax, %rcx
movq _val@GOTPCREL(%rip), %rax
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
jmp LBB2_3
LBB2_2:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
LBB2_3:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _copy ## -- Begin function copy
.p2align 4, 0x90
_copy: ## @copy
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
cmpl $0, _sp(%rip)
jle LBB3_2
## %bb.1:
movl _sp(%rip), %eax
subl $1, %eax
movslq %eax, %rcx
movq _val@GOTPCREL(%rip), %rax
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -8(%rbp)
jmp LBB3_3
LBB3_2:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
xorps %xmm0, %xmm0
movsd %xmm0, -8(%rbp)
LBB3_3:
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _change ## -- Begin function change
.p2align 4, 0x90
_change: ## @change
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
cmpl $1, _sp(%rip)
jle LBB4_2
## %bb.1:
movl _sp(%rip), %eax
subl $1, %eax
movslq %eax, %rcx
movq _val@GOTPCREL(%rip), %rax
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -8(%rbp)
movl _sp(%rip), %eax
subl $2, %eax
movslq %eax, %rcx
movq _val@GOTPCREL(%rip), %rax
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movl _sp(%rip), %eax
subl $1, %eax
movslq %eax, %rcx
movq _val@GOTPCREL(%rip), %rax
movsd %xmm0, (%rax,%rcx,8)
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
movl _sp(%rip), %eax
subl $2, %eax
movslq %eax, %rcx
movq _val@GOTPCREL(%rip), %rax
movsd %xmm0, (%rax,%rcx,8)
jmp LBB4_5
LBB4_2:
cmpl $1, _sp(%rip)
jge LBB4_4
## %bb.3:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
LBB4_4:
jmp LBB4_5
LBB4_5:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _clear ## -- Begin function clear
.p2align 4, 0x90
_clear: ## @clear
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $0, _sp(%rip)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _sp ## @sp
.zerofill __DATA,__common,_sp,4,2
.comm _val,800,4 ## @val
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "error: stack full, can't push %g\n"
L_.str.1: ## @.str.1
.asciz "error: stack empty\n"
L_.str.2: ## @.str.2
.asciz "%.8g"
.subsections_via_symbols
| the_stack_data/439468.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #8] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
bl _foo
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
callq _foo
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/29824383.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _reverse ; -- Begin function reverse
.p2align 2
_reverse: ; @reverse
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str wzr, [sp, #16]
ldur x0, [x29, #-8]
bl _strlen
subs x8, x0, #1
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldrsw x9, [sp, #16]
ldrsb w8, [x8, x9]
stur w8, [x29, #-12]
ldur x8, [x29, #-8]
ldrsw x9, [sp, #12]
add x8, x8, x9
ldrb w8, [x8]
ldur x9, [x29, #-8]
ldrsw x10, [sp, #16]
add x9, x9, x10
strb w8, [x9]
ldur w8, [x29, #-12]
ldur x9, [x29, #-8]
ldrsw x10, [sp, #12]
strb w8, [x9, x10]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
ldr w8, [sp, #12]
subs w8, w8, #1
str w8, [sp, #12]
b LBB0_1
LBB0_4:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _reverse ## -- Begin function reverse
.p2align 4, 0x90
_reverse: ## @reverse
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movl $0, -16(%rbp)
movq -8(%rbp), %rdi
callq _strlen
subq $1, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movl %eax, -12(%rbp)
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -12(%rbp), %eax
movb %al, %dl
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movb %dl, (%rax,%rcx)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
movl -20(%rbp), %eax
addl $-1, %eax
movl %eax, -20(%rbp)
jmp LBB0_1
LBB0_4:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/115765211.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _createNode ; -- Begin function createNode
.p2align 2
_createNode: ; @createNode
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
str x1, [sp, #16]
mov x0, #16
bl _malloc
str x0, [sp, #8]
ldur w8, [x29, #-4]
ldr x9, [sp, #8]
str w8, [x9]
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9, #8]
b LBB0_2
LBB0_2:
ldr x0, [sp, #8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #2020
mov x1, #0
bl _createNode
stur x0, [x29, #-8]
ldur x1, [x29, #-8]
mov w0, #2021
bl _createNode
stur x0, [x29, #-16]
ldur x1, [x29, #-16]
mov w0, #2022
bl _createNode
str x0, [sp, #24]
ldr x8, [sp, #24]
str x8, [sp, #16]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #16]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr x8, [sp, #16]
ldr x8, [x8, #8]
str x8, [sp, #16]
b LBB1_1
LBB1_3:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d, "
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _createNode ## -- Begin function createNode
.p2align 4, 0x90
_createNode: ## @createNode
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movl $16, %edi
callq _malloc
movq %rax, -24(%rbp)
movl -4(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
cmpq $0, -16(%rbp)
je LBB0_2
## %bb.1:
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
LBB0_2:
movq -24(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $2020, %edi ## imm = 0x7E4
xorl %eax, %eax
movl %eax, %esi
callq _createNode
movq %rax, -8(%rbp)
movq -8(%rbp), %rsi
movl $2021, %edi ## imm = 0x7E5
callq _createNode
movq %rax, -16(%rbp)
movq -16(%rbp), %rsi
movl $2022, %edi ## imm = 0x7E6
callq _createNode
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movq %rax, -32(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -32(%rbp)
je LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -32(%rbp), %rax
movl (%rax), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq -32(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
jmp LBB1_1
LBB1_3:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d, "
.subsections_via_symbols
| the_stack_data/675280.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #20
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #24
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
bl _scanf
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #28
str x8, [x9]
bl _scanf
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
add x8, sp, #32
str x8, [x9]
bl _scanf
ldur w8, [x29, #-20]
subs w8, w8, #1
; kill: def $x8 killed $w8
str x8, [sp, #24] ; 8-byte Folded Spill
subs x8, x8, #3
cset w8, hi
tbnz w8, #0, LBB0_6
; %bb.1:
ldr x11, [sp, #24] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_2:
ldur s0, [x29, #-24]
ldur s1, [x29, #-28]
fmul s0, s0, s1
ldr s1, [sp, #32]
fmul s0, s0, s1
fcvt d0, s0
bl _cbrt
mov x8, sp
str d0, [x8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB0_7
LBB0_3:
ldur s2, [x29, #-24]
ldur s0, [x29, #-28]
fmov s1, #2.00000000
fmadd s2, s0, s1, s2
ldr s0, [sp, #32]
fmov s1, #3.00000000
fmadd s0, s0, s1, s2
fmov s1, #6.00000000
fdiv s0, s0, s1
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB0_7
LBB0_4:
ldur s1, [x29, #-24]
fmov s0, #1.00000000
fdiv s1, s0, s1
ldur s2, [x29, #-28]
fdiv s2, s0, s2
fadd s1, s1, s2
ldr s2, [sp, #32]
fdiv s2, s0, s2
fadd s1, s1, s2
fdiv s0, s0, s1
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB0_7
LBB0_5:
ldur s0, [x29, #-24]
ldur s1, [x29, #-28]
fadd s0, s0, s1
ldr s1, [sp, #32]
fadd s0, s0, s1
fmov s1, #3.00000000
fdiv s0, s0, s1
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB0_7
LBB0_6:
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
b LBB0_7
LBB0_7:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_2-Ltmp0
.long LBB0_3-Ltmp0
.long LBB0_4-Ltmp0
.long LBB0_5-Ltmp0
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "O que gostaria de realizar com as notas?:\n1)Geom\303\251trica\n2)Ponderada\n3)Harm\303\264nica\n4)Aritm\303\251tica\n"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Insira as notas\n"
l_.str.3: ; @.str.3
.asciz "%f"
l_.str.4: ; @.str.4
.asciz "Geom\303\251trica: %f\n"
l_.str.5: ; @.str.5
.asciz "Ponderada: %f\n"
l_.str.6: ; @.str.6
.asciz "Harm\303\264nica:%f\n"
l_.str.7: ; @.str.7
.asciz "Aritm\303\251tica:%f\n"
l_.str.8: ; @.str.8
.asciz "Op\303\247\303\243o inv\303\241lida.\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function main
LCPI0_0:
.long 0x40400000 ## float 3
LCPI0_1:
.long 0x3f800000 ## float 1
LCPI0_2:
.long 0x40c00000 ## float 6
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movb %al, -41(%rbp) ## 1-byte Spill
callq _printf
## kill: def $ecx killed $eax
movb -41(%rbp), %al ## 1-byte Reload
leaq L_.str.1(%rip), %rdi
leaq -20(%rbp), %rsi
callq _scanf
## kill: def $ecx killed $eax
movb -41(%rbp), %al ## 1-byte Reload
leaq L_.str.2(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -41(%rbp), %al ## 1-byte Reload
leaq L_.str.3(%rip), %rdi
movq %rdi, -56(%rbp) ## 8-byte Spill
leaq -24(%rbp), %rsi
callq _scanf
movq -56(%rbp), %rdi ## 8-byte Reload
## kill: def $ecx killed $eax
movb -41(%rbp), %al ## 1-byte Reload
leaq -28(%rbp), %rsi
callq _scanf
movq -56(%rbp), %rdi ## 8-byte Reload
## kill: def $ecx killed $eax
movb -41(%rbp), %al ## 1-byte Reload
leaq -32(%rbp), %rsi
callq _scanf
movl -20(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -40(%rbp) ## 8-byte Spill
subl $3, %eax
ja LBB0_5
## %bb.7:
movq -40(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_1:
movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
mulss -28(%rbp), %xmm0
mulss -32(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
callq _cbrt
leaq L_.str.4(%rip), %rdi
movb $1, %al
callq _printf
jmp LBB0_6
LBB0_2:
movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss -28(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
addss %xmm1, %xmm1
addss %xmm0, %xmm1
movss -32(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss LCPI0_0(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
leaq L_.str.5(%rip), %rdi
movb $1, %al
callq _printf
jmp LBB0_6
LBB0_3:
movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
divss -24(%rbp), %xmm1
movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
divss -28(%rbp), %xmm0
addss %xmm0, %xmm1
movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
divss -32(%rbp), %xmm0
addss %xmm0, %xmm1
movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
leaq L_.str.6(%rip), %rdi
movb $1, %al
callq _printf
jmp LBB0_6
LBB0_4:
movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addss -28(%rbp), %xmm0
addss -32(%rbp), %xmm0
movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
leaq L_.str.7(%rip), %rdi
movb $1, %al
callq _printf
jmp LBB0_6
LBB0_5:
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
LBB0_6:
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
.long L0_0_set_1
.long L0_0_set_2
.long L0_0_set_3
.long L0_0_set_4
.end_data_region
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "O que gostaria de realizar com as notas?:\n1)Geom\303\251trica\n2)Ponderada\n3)Harm\303\264nica\n4)Aritm\303\251tica\n"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Insira as notas\n"
L_.str.3: ## @.str.3
.asciz "%f"
L_.str.4: ## @.str.4
.asciz "Geom\303\251trica: %f\n"
L_.str.5: ## @.str.5
.asciz "Ponderada: %f\n"
L_.str.6: ## @.str.6
.asciz "Harm\303\264nica:%f\n"
L_.str.7: ## @.str.7
.asciz "Aritm\303\251tica:%f\n"
L_.str.8: ## @.str.8
.asciz "Op\303\247\303\243o inv\303\241lida.\n"
.subsections_via_symbols
| the_stack_data/52990.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _prompt_error ; -- Begin function prompt_error
.p2align 2
_prompt_error: ; @prompt_error
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #12]
adrp x8, l___const.prompt_error.error_message@PAGE
add x8, x8, l___const.prompt_error.error_message@PAGEOFF
ldr q0, [x8]
add x0, sp, #16
str x0, [sp] ; 8-byte Folded Spill
str q0, [sp, #16]
ldur q0, [x8, #14]
stur q0, [x0, #14]
bl _strlen
ldr x1, [sp] ; 8-byte Folded Reload
mov x2, x0
mov w0, #2
bl _write
mov x8, x0
str w8, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
b LBB0_2
LBB0_2:
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
bl ___stack_chk_fail
LBB0_4:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _remove_new_line ; -- Begin function remove_new_line
.p2align 2
_remove_new_line: ; @remove_new_line
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str w1, [sp, #4]
ldr x8, [sp, #8]
ldr w9, [sp, #4]
subs w9, w9, #1
ldrsb w8, [x8, w9, sxtw]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr x8, [sp, #8]
ldr w9, [sp, #4]
subs w9, w9, #1
add x8, x8, w9, sxtw
strb wzr, [x8]
ldr w8, [sp, #4]
subs w8, w8, #1
str w8, [sp, #4]
b LBB1_2
LBB1_2:
ldr x0, [sp, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _parse_parallel_cmd ; -- Begin function parse_parallel_cmd
.p2align 2
_parse_parallel_cmd: ; @parse_parallel_cmd
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
mov x0, #256
bl _malloc
str x0, [sp]
ldur x0, [x29, #-8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _strtok
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x9, [sp]
ldr x12, [sp, #16]
ldrsw x10, [x12]
mov x11, x10
add w11, w11, #1
str w11, [x12]
str x8, [x9, x10, lsl #3]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
mov x0, #0
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _strtok
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x9, [sp]
ldr x12, [sp, #16]
ldrsw x10, [x12]
mov x11, x10
add w11, w11, #1
str w11, [x12]
str x8, [x9, x10, lsl #3]
b LBB2_1
LBB2_3:
ldr x0, [sp]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _parse_cmd ; -- Begin function parse_cmd
.p2align 2
_parse_cmd: ; @parse_cmd
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _cmdWithArgs@GOTPAGE
ldr x8, [x8, _cmdWithArgs@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur wzr, [x29, #-20]
adrp x8, l___const.parse_cmd.delimiter@PAGE
add x8, x8, l___const.parse_cmd.delimiter@PAGEOFF
ldr w8, [x8]
sub x1, x29, #24
stur w8, [x29, #-24]
ldur x0, [x29, #-8]
bl _strtok
ldr x9, [sp, #24] ; 8-byte Folded Reload
str x0, [sp, #32]
ldr x8, [sp, #32]
ldur x10, [x29, #-16]
ldrsw x10, [x10]
str x8, [x9, x10, lsl #3]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB3_8
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldr x0, [sp, #32]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x9, [x29, #-16]
ldrsw x9, [x9]
mov x0, #0
str x0, [x8, x9, lsl #3]
mov w8, #1
stur w8, [x29, #-20]
sub x1, x29, #24
bl _strtok
str x0, [sp, #32]
ldr x1, [sp, #32]
adrp x0, _output_file_name@GOTPAGE
ldr x0, [x0, _output_file_name@GOTPAGEOFF]
str x0, [sp, #16] ; 8-byte Folded Spill
mov x2, #100
str x2, [sp, #8] ; 8-byte Folded Spill
bl ___strcpy_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl ___strcat_chk
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_1 Depth=1
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB3_6
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x9, [x29, #-16]
ldrsw x9, [x9]
mov x0, #0
str x0, [x8, x9, lsl #3]
sub x1, x29, #24
bl _strtok
str x0, [sp, #32]
b LBB3_7
LBB3_6: ; in Loop: Header=BB3_1 Depth=1
mov x0, #0
sub x1, x29, #24
bl _strtok
ldr x9, [sp, #24] ; 8-byte Folded Reload
str x0, [sp, #32]
ldr x8, [sp, #32]
ldur x11, [x29, #-16]
ldr w10, [x11]
add w10, w10, #1
str w10, [x11]
str x8, [x9, w10, sxtw #3]
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_1 Depth=1
b LBB3_1
LBB3_8:
ldur w0, [x29, #-20]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _execute_cmd ; -- Begin function execute_cmd
.p2align 2
_execute_cmd: ; @execute_cmd
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
stur wzr, [x29, #-8]
stur wzr, [x29, #-12]
; kill: def $x8 killed $xzr
stur xzr, [x29, #-24]
adrp x8, _path_size@PAGE
ldr w8, [x8, _path_size@PAGEOFF]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB4_7
b LBB4_1
LBB4_1:
b LBB4_2
LBB4_2: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
adrp x9, _path_size@PAGE
ldr w9, [x9, _path_size@PAGEOFF]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB4_6
b LBB4_3
LBB4_3: ; in Loop: Header=BB4_2 Depth=1
ldursw x8, [x29, #-12]
mov x9, #100
str x9, [sp, #16] ; 8-byte Folded Spill
mul x9, x8, x9
adrp x8, _path_list@PAGE
add x8, x8, _path_list@PAGEOFF
str x8, [sp, #24] ; 8-byte Folded Spill
add x0, x8, x9
bl _strlen
mov x8, x0
stur w8, [x29, #-28]
ldursw x8, [x29, #-28]
lsr x0, x8, #0
bl _malloc
ldr x10, [sp, #16] ; 8-byte Folded Reload
ldr x8, [sp, #24] ; 8-byte Folded Reload
stur x0, [x29, #-40]
ldur x0, [x29, #-40]
ldursw x9, [x29, #-12]
mul x9, x9, x10
add x1, x8, x9
mov x2, #-1
str x2, [sp, #32] ; 8-byte Folded Spill
bl ___strcpy_chk
ldr x2, [sp, #32] ; 8-byte Folded Reload
ldur w8, [x29, #-12]
mov w9, #1
str w9, [sp, #40] ; 4-byte Folded Spill
add w8, w8, #1
stur w8, [x29, #-12]
ldur x0, [x29, #-40]
adrp x8, _cmdWithArgs@GOTPAGE
ldr x8, [x8, _cmdWithArgs@GOTPAGEOFF]
ldr x1, [x8]
bl ___strcat_chk
ldr w1, [sp, #40] ; 4-byte Folded Reload
ldur x0, [x29, #-40]
bl _access
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_5
b LBB4_4
LBB4_4:
mov w8, #1
stur w8, [x29, #-8]
ldur x8, [x29, #-40]
stur x8, [x29, #-24]
b LBB4_6
LBB4_5: ; in Loop: Header=BB4_2 Depth=1
b LBB4_2
LBB4_6:
b LBB4_7
LBB4_7:
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB4_19
b LBB4_8
LBB4_8:
bl _fork
str w0, [sp, #48]
ldr w8, [sp, #48]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB4_17
b LBB4_9
LBB4_9:
ldur w8, [x29, #-4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB4_14
b LBB4_10
LBB4_10:
mov x9, sp
mov x8, #1000
str x8, [x9]
adrp x0, _output_file_name@GOTPAGE
ldr x0, [x0, _output_file_name@GOTPAGEOFF]
mov w1, #1537
bl _open
str w0, [sp, #44]
ldr w8, [sp, #44]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB4_12
b LBB4_11
LBB4_11:
ldr w0, [sp, #44]
mov w1, #1
bl _dup2
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB4_13
b LBB4_12
LBB4_12:
bl _prompt_error
b LBB4_13
LBB4_13:
ldr w0, [sp, #44]
mov w1, #1
bl _dup2
ldr w0, [sp, #44]
bl _close
b LBB4_14
LBB4_14:
ldur x0, [x29, #-24]
adrp x1, _cmdWithArgs@GOTPAGE
ldr x1, [x1, _cmdWithArgs@GOTPAGEOFF]
bl _execv
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_16
b LBB4_15
LBB4_15:
b LBB4_16
LBB4_16:
mov x9, sp
adrp x8, l_.str.4@PAGE
add x8, x8, l_.str.4@PAGEOFF
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB4_18
LBB4_17:
sub x0, x29, #44
bl _wait
b LBB4_18
LBB4_18:
b LBB4_20
LBB4_19:
bl _prompt_error
b LBB4_20
LBB4_20:
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.globl _builtin_path ; -- Begin function builtin_path
.p2align 2
_builtin_path: ; @builtin_path
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
ldur w8, [x29, #-4]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
adrp x0, _path_list@PAGE
add x0, x0, _path_list@PAGEOFF
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
mov x2, #100
bl ___strcpy_chk
adrp x8, _path_size@PAGE
str wzr, [x8, _path_size@PAGEOFF]
b LBB5_7
LBB5_2:
adrp x8, _path_size@PAGE
str wzr, [x8, _path_size@PAGEOFF]
adrp x0, _path_list@PAGE
add x0, x0, _path_list@PAGEOFF
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
mov x2, #100
bl ___strcpy_chk
str wzr, [sp, #8]
b LBB5_3
LBB5_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
ldur w9, [x29, #-4]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_6
b LBB5_4
LBB5_4: ; in Loop: Header=BB5_3 Depth=1
ldrsw x8, [sp, #8]
mov x9, #100
mul x9, x8, x9
adrp x8, _path_list@PAGE
add x8, x8, _path_list@PAGEOFF
add x0, x8, x9
ldr w8, [sp, #8]
add w9, w8, #1
adrp x8, _cmdWithArgs@GOTPAGE
ldr x8, [x8, _cmdWithArgs@GOTPAGEOFF]
ldr x1, [x8, w9, sxtw #3]
mov x2, #-1
bl ___strcpy_chk
ldr w8, [sp, #8]
add w8, w8, #1
adrp x9, _path_size@PAGE
str w8, [x9, _path_size@PAGEOFF]
b LBB5_5
LBB5_5: ; in Loop: Header=BB5_3 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB5_3
LBB5_6:
b LBB5_7
LBB5_7:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _builtin_cd ; -- Begin function builtin_cd
.p2align 2
_builtin_cd: ; @builtin_cd
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _cmdWithArgs@GOTPAGE
ldr x8, [x8, _cmdWithArgs@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
stur w0, [x29, #-4]
str wzr, [sp, #8]
ldur w8, [x29, #-4]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB6_4
b LBB6_1
LBB6_1:
ldr x8, [sp] ; 8-byte Folded Reload
ldr x0, [x8, #8]
bl _chdir
str w0, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB6_3
b LBB6_2
LBB6_2:
b LBB6_5
LBB6_3:
b LBB6_5
LBB6_4:
bl _prompt_error
b LBB6_5
LBB6_5:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _check_builtin_and_excecute ; -- Begin function check_builtin_and_excecute
.p2align 2
_check_builtin_and_excecute: ; @check_builtin_and_excecute
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _cmdWithArgs@GOTPAGE
ldr x8, [x8, _cmdWithArgs@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x9, ___stack_chk_guard@GOTPAGE
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
ldr x9, [x9]
stur x9, [x29, #-8]
str w0, [sp, #20]
str w1, [sp, #16]
adrp x9, l___const.check_builtin_and_excecute.in_built@PAGE
add x9, x9, l___const.check_builtin_and_excecute.in_built@PAGEOFF
ldr x10, [x9]
add x0, sp, #24
str x10, [sp, #24]
ldur x9, [x9, #7]
stur x9, [x0, #7]
ldr x1, [x8]
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_2
b LBB7_1
LBB7_1:
mov w0, #0
bl _exit
LBB7_2:
ldr x8, [sp, #8] ; 8-byte Folded Reload
add x9, sp, #24
add x0, x9, #5
ldr x1, [x8]
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_4
b LBB7_3
LBB7_3:
ldr w0, [sp, #20]
bl _builtin_cd
b LBB7_8
LBB7_4:
ldr x8, [sp, #8] ; 8-byte Folded Reload
add x9, sp, #24
add x0, x9, #10
ldr x1, [x8]
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_6
b LBB7_5
LBB7_5:
ldr w0, [sp, #20]
bl _builtin_path
b LBB7_7
LBB7_6:
ldr w0, [sp, #16]
bl _execute_cmd
b LBB7_7
LBB7_7:
b LBB7_8
LBB7_8:
b LBB7_9
LBB7_9:
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB7_11
b LBB7_10
LBB7_10:
bl ___stack_chk_fail
LBB7_11:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #208
.cfi_def_cfa_offset 208
stp x29, x30, [sp, #192] ; 16-byte Folded Spill
add x29, sp, #192
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur w8, [x29, #-8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB8_12
b LBB8_1
LBB8_1:
b LBB8_2
LBB8_2: ; =>This Loop Header: Depth=1
; Child Loop BB8_6 Depth 2
sub x8, x29, #24
str x8, [sp, #40] ; 8-byte Folded Spill
; kill: def $x8 killed $xzr
stur xzr, [x29, #-24]
stur xzr, [x29, #-32]
stur wzr, [x29, #-44]
stur wzr, [x29, #-52]
sub x8, x29, #64
str x8, [sp, #32] ; 8-byte Folded Spill
stur xzr, [x29, #-64]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
ldr x1, [sp, #32] ; 8-byte Folded Reload
ldr x0, [sp, #40] ; 8-byte Folded Reload
adrp x8, ___stdinp@GOTPAGE
ldr x8, [x8, ___stdinp@GOTPAGEOFF]
ldr x2, [x8]
bl _getline
stur x0, [x29, #-72]
ldur x0, [x29, #-24]
ldur x8, [x29, #-72]
mov x1, x8
bl _remove_new_line
stur x0, [x29, #-32]
ldur x8, [x29, #-72]
subs x8, x8, #1
cset w8, ne
tbnz w8, #0, LBB8_4
b LBB8_3
LBB8_3: ; in Loop: Header=BB8_2 Depth=1
b LBB8_2
LBB8_4: ; in Loop: Header=BB8_2 Depth=1
ldur x0, [x29, #-24]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _strstr
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB8_10
b LBB8_5
LBB8_5: ; in Loop: Header=BB8_2 Depth=1
ldur x0, [x29, #-32]
sub x1, x29, #44
bl _parse_parallel_cmd
stur x0, [x29, #-40]
stur wzr, [x29, #-76]
b LBB8_6
LBB8_6: ; Parent Loop BB8_2 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-76]
ldur w9, [x29, #-44]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB8_9
b LBB8_7
LBB8_7: ; in Loop: Header=BB8_6 Depth=2
ldur x8, [x29, #-40]
ldursw x9, [x29, #-76]
ldr x0, [x8, x9, lsl #3]
sub x1, x29, #52
bl _parse_cmd
stur w0, [x29, #-48]
ldur w0, [x29, #-52]
ldur w1, [x29, #-48]
bl _check_builtin_and_excecute
stur wzr, [x29, #-52]
b LBB8_8
LBB8_8: ; in Loop: Header=BB8_6 Depth=2
ldur w8, [x29, #-76]
add w8, w8, #1
stur w8, [x29, #-76]
b LBB8_6
LBB8_9: ; in Loop: Header=BB8_2 Depth=1
b LBB8_11
LBB8_10: ; in Loop: Header=BB8_2 Depth=1
ldur x0, [x29, #-32]
sub x1, x29, #52
bl _parse_cmd
stur w0, [x29, #-48]
ldur w0, [x29, #-52]
ldur w1, [x29, #-48]
bl _check_builtin_and_excecute
b LBB8_11
LBB8_11: ; in Loop: Header=BB8_2 Depth=1
stur wzr, [x29, #-52]
adrp x8, _cmdWithArgs@GOTPAGE
ldr x8, [x8, _cmdWithArgs@GOTPAGEOFF]
; kill: def $x9 killed $xzr
str xzr, [x8]
ldur x0, [x29, #-24]
bl _free
stur xzr, [x29, #-24]
b LBB8_2
LBB8_12:
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB8_17
b LBB8_13
LBB8_13:
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
stur x8, [x29, #-88]
ldur x0, [x29, #-88]
adrp x1, l_.str.7@PAGE
add x1, x1, l_.str.7@PAGEOFF
bl _fopen
str x0, [sp, #96]
mov w8, #1
str w8, [sp, #92]
add x0, sp, #80
; kill: def $x8 killed $xzr
str xzr, [sp, #80]
str xzr, [sp, #72]
add x1, sp, #64
str xzr, [sp, #64]
ldr x2, [sp, #96]
bl _getline
str x0, [sp, #56]
b LBB8_14
LBB8_14: ; =>This Inner Loop Header: Depth=1
ldr x0, [sp, #96]
bl _feof
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB8_16
b LBB8_15
LBB8_15: ; in Loop: Header=BB8_14 Depth=1
add x8, sp, #52
str x8, [sp, #24] ; 8-byte Folded Spill
str wzr, [sp, #52]
ldr w8, [sp, #92]
; implicit-def: $x10
mov x10, x8
add x8, sp, #80
str x8, [sp, #16] ; 8-byte Folded Spill
ldr x8, [sp, #80]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldr w8, [sp, #92]
add w8, w8, #1
str w8, [sp, #92]
ldr x2, [sp, #96]
add x1, sp, #64
bl _getline
str x0, [sp, #56]
ldr x0, [sp, #80]
ldr x8, [sp, #56]
mov x1, x8
bl _remove_new_line
ldr x1, [sp, #24] ; 8-byte Folded Reload
str x0, [sp, #72]
ldr x0, [sp, #72]
bl _parse_cmd
str w0, [sp, #88]
ldr w0, [sp, #52]
ldr w1, [sp, #88]
bl _check_builtin_and_excecute
str wzr, [sp, #52]
b LBB8_14
LBB8_16:
adrp x8, _cmdWithArgs@GOTPAGE
ldr x8, [x8, _cmdWithArgs@GOTPAGEOFF]
; kill: def $x9 killed $xzr
str xzr, [x8]
ldr x0, [sp, #80]
bl _free
str xzr, [sp, #80]
ldr x0, [sp, #96]
bl _fclose
b LBB8_18
LBB8_17:
bl _prompt_error
b LBB8_18
LBB8_18:
b LBB8_19
LBB8_19:
mov w0, #0
ldp x29, x30, [sp, #192] ; 16-byte Folded Reload
add sp, sp, #208
ret
.cfi_endproc
; -- End function
.section __DATA,__data
.globl _path_list ; @path_list
_path_list:
.asciz "/bin/\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.space 9900
.globl _path_size ; @path_size
.p2align 2
_path_size:
.long 1 ; 0x1
.globl _redirection_flag_loc ; @redirection_flag_loc
.zerofill __DATA,__common,_redirection_flag_loc,4,2
.section __TEXT,__const
l___const.prompt_error.error_message: ; @__const.prompt_error.error_message
.asciz "An error has occurred\n\000\000\000\000\000\000\000"
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "&"
.section __TEXT,__literal4,4byte_literals
l___const.parse_cmd.delimiter: ; @__const.parse_cmd.delimiter
.asciz " \000\000"
.comm _cmdWithArgs,800,3 ; @cmdWithArgs
.section __TEXT,__cstring,cstring_literals
l_.str.1: ; @.str.1
.asciz ">"
.comm _output_file_name,100,0 ; @output_file_name
l_.str.2: ; @.str.2
.asciz ".txt"
l_.str.3: ; @.str.3
.asciz "%s\n"
l_.str.4: ; @.str.4
.asciz "command does not exist"
l_.str.5: ; @.str.5
.space 1
.section __TEXT,__const
l___const.check_builtin_and_excecute.in_built: ; @__const.check_builtin_and_excecute.in_built
.asciz "exit"
.asciz "cd\000\000"
.asciz "path"
.section __TEXT,__cstring,cstring_literals
l_.str.6: ; @.str.6
.asciz "dash> "
l_.str.7: ; @.str.7
.asciz "r"
l_.str.8: ; @.str.8
.asciz "\n line count%d , command:%s\n\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _prompt_error ## -- Begin function prompt_error
.p2align 4, 0x90
_prompt_error: ## @prompt_error
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -52(%rbp)
movq l___const.prompt_error.error_message(%rip), %rax
movq %rax, -48(%rbp)
movq l___const.prompt_error.error_message+8(%rip), %rax
movq %rax, -40(%rbp)
movq l___const.prompt_error.error_message+16(%rip), %rax
movq %rax, -32(%rbp)
movl l___const.prompt_error.error_message+24(%rip), %eax
movl %eax, -24(%rbp)
movw l___const.prompt_error.error_message+28(%rip), %ax
movw %ax, -20(%rbp)
leaq -48(%rbp), %rax
movq %rax, -64(%rbp) ## 8-byte Spill
leaq -48(%rbp), %rdi
callq _strlen
movq -64(%rbp), %rsi ## 8-byte Reload
movq %rax, %rdx
movl $2, %edi
callq _write
## kill: def $eax killed $eax killed $rax
movl %eax, -52(%rbp)
cmpl $0, -52(%rbp)
je LBB0_2
## %bb.1:
jmp LBB0_2
LBB0_2:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_4
## %bb.3:
addq $64, %rsp
popq %rbp
retq
LBB0_4:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _remove_new_line ## -- Begin function remove_new_line
.p2align 4, 0x90
_remove_new_line: ## @remove_new_line
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq -8(%rbp), %rax
movl -12(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $10, %eax
jne LBB1_2
## %bb.1:
movq -8(%rbp), %rax
movl -12(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movb $0, (%rax,%rcx)
movl -12(%rbp), %eax
addl $-1, %eax
movl %eax, -12(%rbp)
LBB1_2:
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _parse_parallel_cmd ## -- Begin function parse_parallel_cmd
.p2align 4, 0x90
_parse_parallel_cmd: ## @parse_parallel_cmd
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $256, %edi ## imm = 0x100
callq _malloc
movq %rax, -32(%rbp)
movq -8(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _strtok
movq %rax, -24(%rbp)
movq -24(%rbp), %rdx
movq -32(%rbp), %rax
movq -16(%rbp), %rsi
movl (%rsi), %ecx
movl %ecx, %edi
addl $1, %edi
movl %edi, (%rsi)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
LBB2_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -24(%rbp)
je LBB2_3
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
xorl %eax, %eax
movl %eax, %edi
leaq L_.str(%rip), %rsi
callq _strtok
movq %rax, -24(%rbp)
movq -24(%rbp), %rdx
movq -32(%rbp), %rax
movq -16(%rbp), %rsi
movl (%rsi), %ecx
movl %ecx, %edi
addl $1, %edi
movl %edi, (%rsi)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp LBB2_1
LBB2_3:
movq -32(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _parse_cmd ## -- Begin function parse_cmd
.p2align 4, 0x90
_parse_cmd: ## @parse_cmd
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $0, -20(%rbp)
movl L___const.parse_cmd.delimiter(%rip), %eax
movl %eax, -24(%rbp)
movq -8(%rbp), %rdi
leaq -24(%rbp), %rsi
callq _strtok
movq %rax, -32(%rbp)
movq -32(%rbp), %rdx
movq -16(%rbp), %rax
movslq (%rax), %rcx
movq _cmdWithArgs@GOTPCREL(%rip), %rax
movq %rdx, (%rax,%rcx,8)
LBB3_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -32(%rbp)
je LBB3_8
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movq -32(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB3_4
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
movq -16(%rbp), %rax
movslq (%rax), %rcx
movq _cmdWithArgs@GOTPCREL(%rip), %rax
movq $0, (%rax,%rcx,8)
movl $1, -20(%rbp)
leaq -24(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edi
callq _strtok
movq %rax, -32(%rbp)
movq -32(%rbp), %rsi
movq _output_file_name@GOTPCREL(%rip), %rdi
movl $100, %edx
callq ___strcpy_chk
movq _output_file_name@GOTPCREL(%rip), %rdi
leaq L_.str.2(%rip), %rsi
movl $100, %edx
callq ___strcat_chk
LBB3_4: ## in Loop: Header=BB3_1 Depth=1
cmpl $0, -20(%rbp)
je LBB3_6
## %bb.5: ## in Loop: Header=BB3_1 Depth=1
movq -16(%rbp), %rax
movslq (%rax), %rcx
movq _cmdWithArgs@GOTPCREL(%rip), %rax
movq $0, (%rax,%rcx,8)
leaq -24(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edi
callq _strtok
movq %rax, -32(%rbp)
jmp LBB3_7
LBB3_6: ## in Loop: Header=BB3_1 Depth=1
leaq -24(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edi
callq _strtok
movq %rax, -32(%rbp)
movq -32(%rbp), %rdx
movq -16(%rbp), %rcx
movl (%rcx), %eax
addl $1, %eax
movl %eax, (%rcx)
movslq %eax, %rcx
movq _cmdWithArgs@GOTPCREL(%rip), %rax
movq %rdx, (%rax,%rcx,8)
LBB3_7: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_1
LBB3_8:
movl -20(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _execute_cmd ## -- Begin function execute_cmd
.p2align 4, 0x90
_execute_cmd: ## @execute_cmd
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl %edi, -4(%rbp)
movl $0, -8(%rbp)
movl $0, -12(%rbp)
movq $0, -24(%rbp)
cmpl $0, _path_size(%rip)
jle LBB4_7
## %bb.1:
jmp LBB4_2
LBB4_2: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl _path_size(%rip), %eax
jge LBB4_6
## %bb.3: ## in Loop: Header=BB4_2 Depth=1
movslq -12(%rbp), %rax
leaq _path_list(%rip), %rdi
imulq $100, %rax, %rax
addq %rax, %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -28(%rbp)
movslq -28(%rbp), %rdi
shlq $0, %rdi
callq _malloc
movq %rax, -40(%rbp)
movq -40(%rbp), %rdi
movslq -12(%rbp), %rax
leaq _path_list(%rip), %rsi
imulq $100, %rax, %rax
addq %rax, %rsi
movq $-1, %rdx
callq ___strcpy_chk
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
movq -40(%rbp), %rdi
movq _cmdWithArgs@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movq $-1, %rdx
callq ___strcat_chk
movq -40(%rbp), %rdi
movl $1, %esi
callq _access
cmpl $0, %eax
jne LBB4_5
## %bb.4:
movl $1, -8(%rbp)
movq -40(%rbp), %rax
movq %rax, -24(%rbp)
jmp LBB4_6
LBB4_5: ## in Loop: Header=BB4_2 Depth=1
jmp LBB4_2
LBB4_6:
jmp LBB4_7
LBB4_7:
cmpl $0, -8(%rbp)
je LBB4_19
## %bb.8:
callq _fork
movl %eax, -48(%rbp)
cmpl $0, -48(%rbp)
jne LBB4_17
## %bb.9:
cmpl $0, -4(%rbp)
je LBB4_14
## %bb.10:
movq _output_file_name@GOTPCREL(%rip), %rdi
movl $1537, %esi ## imm = 0x601
movl $1000, %edx ## imm = 0x3E8
movb $0, %al
callq _open
movl %eax, -52(%rbp)
cmpl $0, -52(%rbp)
jl LBB4_12
## %bb.11:
movl -52(%rbp), %edi
movl $1, %esi
callq _dup2
cmpl $0, %eax
jge LBB4_13
LBB4_12:
callq _prompt_error
LBB4_13:
movl -52(%rbp), %edi
movl $1, %esi
callq _dup2
movl -52(%rbp), %edi
callq _close
LBB4_14:
movq -24(%rbp), %rdi
movq _cmdWithArgs@GOTPCREL(%rip), %rsi
callq _execv
cmpl $0, %eax
je LBB4_16
## %bb.15:
jmp LBB4_16
LBB4_16:
leaq L_.str.3(%rip), %rdi
leaq L_.str.4(%rip), %rsi
movb $0, %al
callq _printf
jmp LBB4_18
LBB4_17:
leaq -44(%rbp), %rdi
callq _wait
LBB4_18:
jmp LBB4_20
LBB4_19:
callq _prompt_error
LBB4_20:
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _builtin_path ## -- Begin function builtin_path
.p2align 4, 0x90
_builtin_path: ## @builtin_path
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
cmpl $1, -4(%rbp)
jne LBB5_2
## %bb.1:
leaq _path_list(%rip), %rdi
leaq L_.str.5(%rip), %rsi
movl $100, %edx
callq ___strcpy_chk
movl $0, _path_size(%rip)
jmp LBB5_7
LBB5_2:
movl $0, _path_size(%rip)
leaq _path_list(%rip), %rdi
leaq L_.str.5(%rip), %rsi
movl $100, %edx
callq ___strcpy_chk
movl $0, -8(%rbp)
LBB5_3: ## =>This Inner Loop Header: Depth=1
movl -8(%rbp), %eax
movl -4(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB5_6
## %bb.4: ## in Loop: Header=BB5_3 Depth=1
movslq -8(%rbp), %rax
leaq _path_list(%rip), %rdi
imulq $100, %rax, %rax
addq %rax, %rdi
movl -8(%rbp), %eax
addl $1, %eax
movslq %eax, %rcx
movq _cmdWithArgs@GOTPCREL(%rip), %rax
movq (%rax,%rcx,8), %rsi
movq $-1, %rdx
callq ___strcpy_chk
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, _path_size(%rip)
## %bb.5: ## in Loop: Header=BB5_3 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB5_3
LBB5_6:
jmp LBB5_7
LBB5_7:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _builtin_cd ## -- Begin function builtin_cd
.p2align 4, 0x90
_builtin_cd: ## @builtin_cd
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movl $0, -8(%rbp)
cmpl $2, -4(%rbp)
jne LBB6_4
## %bb.1:
movq _cmdWithArgs@GOTPCREL(%rip), %rax
movq 8(%rax), %rdi
callq _chdir
movl %eax, -8(%rbp)
cmpl $0, -8(%rbp)
je LBB6_3
## %bb.2:
jmp LBB6_5
LBB6_3:
jmp LBB6_5
LBB6_4:
callq _prompt_error
LBB6_5:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _check_builtin_and_excecute ## -- Begin function check_builtin_and_excecute
.p2align 4, 0x90
_check_builtin_and_excecute: ## @check_builtin_and_excecute
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl %edi, -28(%rbp)
movl %esi, -32(%rbp)
movq l___const.check_builtin_and_excecute.in_built(%rip), %rax
movq %rax, -23(%rbp)
movl l___const.check_builtin_and_excecute.in_built+8(%rip), %eax
movl %eax, -15(%rbp)
movw l___const.check_builtin_and_excecute.in_built+12(%rip), %ax
movw %ax, -11(%rbp)
movb l___const.check_builtin_and_excecute.in_built+14(%rip), %al
movb %al, -9(%rbp)
leaq -23(%rbp), %rdi
movq _cmdWithArgs@GOTPCREL(%rip), %rax
movq (%rax), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB7_2
## %bb.1:
xorl %edi, %edi
callq _exit
LBB7_2:
leaq -23(%rbp), %rdi
addq $5, %rdi
movq _cmdWithArgs@GOTPCREL(%rip), %rax
movq (%rax), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB7_4
## %bb.3:
movl -28(%rbp), %edi
callq _builtin_cd
jmp LBB7_8
LBB7_4:
leaq -23(%rbp), %rdi
addq $10, %rdi
movq _cmdWithArgs@GOTPCREL(%rip), %rax
movq (%rax), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB7_6
## %bb.5:
movl -28(%rbp), %edi
callq _builtin_path
jmp LBB7_7
LBB7_6:
movl -32(%rbp), %edi
callq _execute_cmd
LBB7_7:
jmp LBB7_8
LBB7_8:
jmp LBB7_9
LBB7_9:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB7_11
## %bb.10:
addq $32, %rsp
popq %rbp
retq
LBB7_11:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $144, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $1, -8(%rbp)
jne LBB8_12
## %bb.1:
jmp LBB8_2
LBB8_2: ## =>This Loop Header: Depth=1
## Child Loop BB8_6 Depth 2
movq $0, -24(%rbp)
movq $0, -32(%rbp)
movl $0, -44(%rbp)
movl $0, -52(%rbp)
movq $0, -64(%rbp)
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rdx
leaq -24(%rbp), %rdi
leaq -64(%rbp), %rsi
callq _getline
movq %rax, -72(%rbp)
movq -24(%rbp), %rdi
movq -72(%rbp), %rax
movl %eax, %esi
callq _remove_new_line
movq %rax, -32(%rbp)
cmpq $1, -72(%rbp)
jne LBB8_4
## %bb.3: ## in Loop: Header=BB8_2 Depth=1
jmp LBB8_2
LBB8_4: ## in Loop: Header=BB8_2 Depth=1
movq -24(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _strstr
cmpq $0, %rax
je LBB8_10
## %bb.5: ## in Loop: Header=BB8_2 Depth=1
movq -32(%rbp), %rdi
leaq -44(%rbp), %rsi
callq _parse_parallel_cmd
movq %rax, -40(%rbp)
movl $0, -76(%rbp)
LBB8_6: ## Parent Loop BB8_2 Depth=1
## => This Inner Loop Header: Depth=2
movl -76(%rbp), %eax
movl -44(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB8_9
## %bb.7: ## in Loop: Header=BB8_6 Depth=2
movq -40(%rbp), %rax
movslq -76(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq -52(%rbp), %rsi
callq _parse_cmd
movl %eax, -48(%rbp)
movl -52(%rbp), %edi
movl -48(%rbp), %esi
callq _check_builtin_and_excecute
movl $0, -52(%rbp)
## %bb.8: ## in Loop: Header=BB8_6 Depth=2
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
jmp LBB8_6
LBB8_9: ## in Loop: Header=BB8_2 Depth=1
jmp LBB8_11
LBB8_10: ## in Loop: Header=BB8_2 Depth=1
movq -32(%rbp), %rdi
leaq -52(%rbp), %rsi
callq _parse_cmd
movl %eax, -48(%rbp)
movl -52(%rbp), %edi
movl -48(%rbp), %esi
callq _check_builtin_and_excecute
LBB8_11: ## in Loop: Header=BB8_2 Depth=1
movl $0, -52(%rbp)
movq _cmdWithArgs@GOTPCREL(%rip), %rax
movq $0, (%rax)
movq -24(%rbp), %rdi
callq _free
movq $0, -24(%rbp)
jmp LBB8_2
LBB8_12:
cmpl $2, -8(%rbp)
jne LBB8_17
## %bb.13:
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -88(%rbp)
movq -88(%rbp), %rdi
leaq L_.str.7(%rip), %rsi
callq _fopen
movq %rax, -96(%rbp)
movl $1, -100(%rbp)
movq $0, -112(%rbp)
movq $0, -120(%rbp)
movq $0, -128(%rbp)
movq -96(%rbp), %rdx
leaq -112(%rbp), %rdi
leaq -128(%rbp), %rsi
callq _getline
movq %rax, -136(%rbp)
LBB8_14: ## =>This Inner Loop Header: Depth=1
movq -96(%rbp), %rdi
callq _feof
cmpl $0, %eax
setne %al
xorb $-1, %al
testb $1, %al
jne LBB8_15
jmp LBB8_16
LBB8_15: ## in Loop: Header=BB8_14 Depth=1
movl $0, -140(%rbp)
movl -100(%rbp), %esi
movq -112(%rbp), %rdx
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movl -100(%rbp), %eax
addl $1, %eax
movl %eax, -100(%rbp)
movq -96(%rbp), %rdx
leaq -112(%rbp), %rdi
leaq -128(%rbp), %rsi
callq _getline
movq %rax, -136(%rbp)
movq -112(%rbp), %rdi
movq -136(%rbp), %rax
movl %eax, %esi
callq _remove_new_line
movq %rax, -120(%rbp)
movq -120(%rbp), %rdi
leaq -140(%rbp), %rsi
callq _parse_cmd
movl %eax, -104(%rbp)
movl -140(%rbp), %edi
movl -104(%rbp), %esi
callq _check_builtin_and_excecute
movl $0, -140(%rbp)
jmp LBB8_14
LBB8_16:
movq _cmdWithArgs@GOTPCREL(%rip), %rax
movq $0, (%rax)
movq -112(%rbp), %rdi
callq _free
movq $0, -112(%rbp)
movq -96(%rbp), %rdi
callq _fclose
jmp LBB8_18
LBB8_17:
callq _prompt_error
LBB8_18:
jmp LBB8_19
LBB8_19:
xorl %eax, %eax
addq $144, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.globl _path_list ## @path_list
.p2align 4
_path_list:
.asciz "/bin/\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.space 9900
.globl _path_size ## @path_size
.p2align 2
_path_size:
.long 1 ## 0x1
.globl _redirection_flag_loc ## @redirection_flag_loc
.zerofill __DATA,__common,_redirection_flag_loc,4,2
.section __TEXT,__const
.p2align 4 ## @__const.prompt_error.error_message
l___const.prompt_error.error_message:
.asciz "An error has occurred\n\000\000\000\000\000\000\000"
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "&"
.section __TEXT,__literal4,4byte_literals
L___const.parse_cmd.delimiter: ## @__const.parse_cmd.delimiter
.asciz " \000\000"
.comm _cmdWithArgs,800,4 ## @cmdWithArgs
.section __TEXT,__cstring,cstring_literals
L_.str.1: ## @.str.1
.asciz ">"
.comm _output_file_name,100,4 ## @output_file_name
L_.str.2: ## @.str.2
.asciz ".txt"
L_.str.3: ## @.str.3
.asciz "%s\n"
L_.str.4: ## @.str.4
.asciz "command does not exist"
L_.str.5: ## @.str.5
.space 1
.section __TEXT,__const
l___const.check_builtin_and_excecute.in_built: ## @__const.check_builtin_and_excecute.in_built
.asciz "exit"
.asciz "cd\000\000"
.asciz "path"
.section __TEXT,__cstring,cstring_literals
L_.str.6: ## @.str.6
.asciz "dash> "
L_.str.7: ## @.str.7
.asciz "r"
L_.str.8: ## @.str.8
.asciz "\n line count%d , command:%s\n\n"
.subsections_via_symbols
| the_stack_data/792887.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _list_push_tail ; -- Begin function list_push_tail
.p2align 2
_list_push_tail: ; @list_push_tail
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
ldr x8, [sp, #24]
ldr x8, [x8, #16]
str x8, [sp, #8]
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldr x8, [sp, #24]
ldr x9, [sp, #16]
str x8, [x9, #8]
ldr x8, [sp, #16]
ldr x9, [sp, #24]
str x8, [x9, #16]
ldr x8, [sp, #8]
ldr x9, [sp, #16]
str x8, [x9, #16]
ldr x9, [sp, #24]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _list_pop_tail ; -- Begin function list_pop_tail
.p2align 2
_list_pop_tail: ; @list_pop_tail
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
ldr x0, [sp, #16]
bl _list_empty
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB1_3
LBB1_2:
ldr x8, [sp, #16]
ldr x8, [x8, #16]
str x8, [sp]
ldr x8, [sp]
ldr x8, [x8, #16]
str x8, [sp, #8]
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldr x8, [sp, #8]
ldr x9, [sp, #16]
str x8, [x9, #16]
ldr x9, [sp, #16]
ldr w8, [x9]
subs w8, w8, #1
str w8, [x9]
ldr x8, [sp]
stur x8, [x29, #-8]
b LBB1_3
LBB1_3:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function list_empty
_list_empty: ; @list_empty
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _list_length
subs w8, w0, #0
cset w8, eq
and w0, w8, #0x1
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _list_push_head ; -- Begin function list_push_head
.p2align 2
_list_push_head: ; @list_push_head
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
ldr x8, [sp, #24]
ldr x8, [x8, #8]
str x8, [sp, #8]
ldr x8, [sp, #16]
ldr x9, [sp, #24]
str x8, [x9, #8]
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9, #16]
ldr x8, [sp, #8]
ldr x9, [sp, #16]
str x8, [x9, #8]
ldr x8, [sp, #24]
ldr x9, [sp, #16]
str x8, [x9, #16]
ldr x9, [sp, #24]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _list_pop_head ; -- Begin function list_pop_head
.p2align 2
_list_pop_head: ; @list_pop_head
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
ldr x0, [sp, #16]
bl _list_empty
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB4_3
LBB4_2:
ldr x8, [sp, #16]
ldr x8, [x8, #8]
str x8, [sp, #8]
ldr x8, [sp, #8]
ldr x8, [x8, #8]
ldr x9, [sp, #16]
str x8, [x9, #8]
ldr x8, [sp, #16]
ldr x9, [sp, #8]
ldr x9, [x9, #8]
str x8, [x9, #16]
ldr x9, [sp, #16]
ldr w8, [x9]
subs w8, w8, #1
str w8, [x9]
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB4_3
LBB4_3:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _list_equal ; -- Begin function list_equal
.p2align 2
_list_equal: ; @list_equal
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #32]
str x1, [sp, #24]
ldr x8, [sp, #32]
str x8, [sp, #16]
ldr x8, [sp, #24]
str x8, [sp, #8]
b LBB5_1
LBB5_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #8]
ldr x9, [sp, #32]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB5_6
b LBB5_2
LBB5_2: ; in Loop: Header=BB5_1 Depth=1
ldr x8, [sp, #16]
ldr w8, [x8]
ldr x9, [sp, #8]
ldr w9, [x9]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB5_4
b LBB5_3
LBB5_3:
str wzr, [sp, #44]
b LBB5_9
LBB5_4: ; in Loop: Header=BB5_1 Depth=1
b LBB5_5
LBB5_5: ; in Loop: Header=BB5_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #8]
str x8, [sp, #16]
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB5_1
LBB5_6:
ldr x8, [sp, #16]
ldr w8, [x8]
ldr x9, [sp, #8]
ldr w9, [x9]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB5_8
b LBB5_7
LBB5_7:
str wzr, [sp, #44]
b LBB5_9
LBB5_8:
ldr x8, [sp, #8]
ldr x8, [x8, #8]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, eq
and w8, w8, #0x1
str w8, [sp, #44]
b LBB5_9
LBB5_9:
ldr w0, [sp, #44]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _list_print ; -- Begin function list_print
.p2align 2
_list_print: ; @list_print
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
stur x8, [x29, #-32]
stur wzr, [x29, #-36]
ldur x0, [x29, #-8]
bl _puts
ldur x0, [x29, #-16]
bl _list_length
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
stur x8, [x29, #-24]
b LBB6_1
LBB6_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-24]
ldr x8, [x8, #8]
ldur x9, [x29, #-32]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB6_4
b LBB6_2
LBB6_2: ; in Loop: Header=BB6_1 Depth=1
ldur w8, [x29, #-36]
add w13, w8, #1
stur w13, [x29, #-36]
ldur x8, [x29, #-24]
ldr w8, [x8]
; implicit-def: $x11
mov x11, x8
ldur x8, [x29, #-24]
ldr x8, [x8, #8]
ldr w8, [x8]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-24]
ldr x8, [x8, #16]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
; implicit-def: $x12
mov x12, x13
str x12, [x9]
str x11, [x9, #8]
str x10, [x9, #16]
str x8, [x9, #24]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB6_3
LBB6_3: ; in Loop: Header=BB6_1 Depth=1
ldur x8, [x29, #-24]
ldr x8, [x8, #8]
stur x8, [x29, #-24]
b LBB6_1
LBB6_4:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldur x8, [x29, #-24]
ldr x8, [x8, #8]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function list_length
_list_length: ; @list_length
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr w0, [x8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _list_new ; -- Begin function list_new
.p2align 2
_list_new: ; @list_new
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, #24
bl _malloc
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldr x8, [sp, #8]
ldr x9, [sp, #8]
str x8, [x9, #16]
ldr x8, [sp, #8]
str wzr, [x8]
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _list_sequence ; -- Begin function list_sequence
.p2align 2
_list_sequence: ; @list_sequence
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
stur w1, [x29, #-8]
ldur w8, [x29, #-4]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB9_2
b LBB9_1
LBB9_1:
ldur w8, [x29, #-4]
stur w8, [x29, #-16]
ldur w8, [x29, #-8]
stur w8, [x29, #-4]
ldur w8, [x29, #-16]
stur w8, [x29, #-8]
b LBB9_2
LBB9_2:
ldur w8, [x29, #-8]
ldur w9, [x29, #-4]
subs w8, w8, w9
mov w9, #1
str w9, [sp, #12] ; 4-byte Folded Spill
add w8, w8, #1
stur w8, [x29, #-12]
ldur w8, [x29, #-12]
add w8, w8, #1
mov w9, #24
smull x0, w8, w9
bl _malloc
ldr w8, [sp, #12] ; 4-byte Folded Reload
str x0, [sp, #16]
ldur w9, [x29, #-4]
subs w9, w9, #1
stur w9, [x29, #-4]
stur wzr, [x29, #-20]
str w8, [sp, #24]
b LBB9_3
LBB9_3: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB9_6
b LBB9_4
LBB9_4: ; in Loop: Header=BB9_3 Depth=1
ldr x10, [sp, #16]
ldur w8, [x29, #-20]
add w8, w8, #1
mov x11, #24
mov w9, #24
smaddl x8, w8, w9, x10
ldr x9, [sp, #16]
ldursw x10, [x29, #-20]
mul x10, x10, x11
add x9, x9, x10
str x8, [x9, #8]
ldr x10, [sp, #16]
ldr w8, [sp, #24]
subs w8, w8, #1
mov w9, #24
smaddl x8, w8, w9, x10
ldr x9, [sp, #16]
ldrsw x10, [sp, #24]
mul x10, x10, x11
add x9, x9, x10
str x8, [x9, #16]
ldur w8, [x29, #-4]
add w9, w8, #1
stur w9, [x29, #-4]
ldr x9, [sp, #16]
ldursw x10, [x29, #-20]
mul x10, x10, x11
str w8, [x9, x10]
b LBB9_5
LBB9_5: ; in Loop: Header=BB9_3 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB9_3
LBB9_6:
ldr x8, [sp, #16]
ldursw x9, [x29, #-12]
mov x11, #24
mul x9, x9, x11
add x8, x8, x9
ldr x9, [sp, #16]
str x8, [x9, #16]
ldr x8, [sp, #16]
ldr x9, [sp, #16]
ldursw x10, [x29, #-12]
mul x10, x10, x11
add x9, x9, x10
str x8, [x9, #8]
ldr x10, [sp, #16]
ldur w8, [x29, #-12]
subs w8, w8, #1
mov w9, #24
smaddl x8, w8, w9, x10
ldr x9, [sp, #16]
ldursw x10, [x29, #-12]
mul x10, x10, x11
add x9, x9, x10
str x8, [x9, #16]
ldur w8, [x29, #-4]
ldr x9, [sp, #16]
ldursw x10, [x29, #-12]
mul x10, x10, x11
str w8, [x9, x10]
ldur w8, [x29, #-12]
ldr x9, [sp, #16]
str w8, [x9]
ldr x0, [sp, #16]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _list_copy ; -- Begin function list_copy
.p2align 2
_list_copy: ; @list_copy
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x0, [x29, #-8]
bl _list_length
stur w0, [x29, #-20]
ldur w8, [x29, #-20]
mov w9, #1
str w9, [sp, #20] ; 4-byte Folded Spill
add w8, w8, #1
mov w9, #24
smull x0, w8, w9
bl _malloc
ldr w8, [sp, #20] ; 4-byte Folded Reload
str x0, [sp, #24]
stur wzr, [x29, #-12]
stur w8, [x29, #-16]
ldur x8, [x29, #-8]
str x8, [sp, #32]
b LBB10_1
LBB10_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB10_4
b LBB10_2
LBB10_2: ; in Loop: Header=BB10_1 Depth=1
ldr x8, [sp, #24]
ldursw x9, [x29, #-16]
mov x11, #24
mul x9, x9, x11
add x8, x8, x9
ldr x9, [sp, #24]
ldursw x10, [x29, #-12]
mul x10, x10, x11
add x9, x9, x10
str x8, [x9, #8]
ldr x8, [sp, #24]
ldursw x9, [x29, #-12]
mul x9, x9, x11
add x8, x8, x9
ldr x9, [sp, #24]
ldursw x10, [x29, #-16]
mul x10, x10, x11
add x9, x9, x10
str x8, [x9, #16]
ldr x8, [sp, #32]
ldr w8, [x8]
ldr x9, [sp, #24]
ldursw x10, [x29, #-12]
mul x10, x10, x11
str w8, [x9, x10]
b LBB10_3
LBB10_3: ; in Loop: Header=BB10_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
ldr x8, [sp, #32]
ldr x8, [x8, #8]
str x8, [sp, #32]
b LBB10_1
LBB10_4:
ldr x8, [sp, #24]
ldursw x9, [x29, #-20]
mov x11, #24
str x11, [sp, #8] ; 8-byte Folded Spill
mul x9, x9, x11
add x8, x8, x9
ldr x9, [sp, #24]
str x8, [x9, #16]
ldr x8, [sp, #24]
ldr x9, [sp, #24]
ldursw x10, [x29, #-20]
mul x10, x10, x11
add x9, x9, x10
str x8, [x9, #8]
ldur x0, [x29, #-8]
bl _list_last
ldr x11, [sp, #8] ; 8-byte Folded Reload
ldr w8, [x0]
ldr x9, [sp, #24]
ldursw x10, [x29, #-20]
mul x10, x10, x11
str w8, [x9, x10]
ldr x0, [sp, #24]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function list_last
_list_last: ; @list_last
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x0, [x8, #16]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _list_reverse ; -- Begin function list_reverse
.p2align 2
_list_reverse: ; @list_reverse
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
ldr x8, [sp, #24]
str x8, [sp, #8]
b LBB12_1
LBB12_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #16]
ldr x8, [sp, #8]
ldr x8, [x8, #16]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9, #16]
ldr x8, [sp, #16]
str x8, [sp, #8]
b LBB12_2
LBB12_2: ; in Loop: Header=BB12_1 Depth=1
ldr x8, [sp, #8]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB12_1
b LBB12_3
LBB12_3:
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _test_lists ; -- Begin function test_lists
.p2align 2
_test_lists: ; @test_lists
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov w0, #1
mov w1, #100
bl _list_sequence
stur x0, [x29, #-16]
ldur x0, [x29, #-16]
bl _list_copy
stur x0, [x29, #-24]
bl _list_new
str x0, [sp, #32]
ldur x0, [x29, #-24]
ldur x1, [x29, #-16]
bl _list_equal
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB13_2
b LBB13_1
LBB13_1:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov w0, #1
bl _exit
LBB13_2:
b LBB13_3
LBB13_3: ; =>This Inner Loop Header: Depth=1
ldur x0, [x29, #-24]
bl _list_empty
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB13_5
b LBB13_4
LBB13_4: ; in Loop: Header=BB13_3 Depth=1
ldr x8, [sp, #32]
str x8, [sp, #24] ; 8-byte Folded Spill
ldur x0, [x29, #-24]
bl _list_pop_head
mov x1, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _list_push_tail
b LBB13_3
LBB13_5:
ldur x0, [x29, #-24]
bl _list_empty
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB13_7
b LBB13_6
LBB13_6:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
mov w0, #1
bl _exit
LBB13_7:
b LBB13_8
LBB13_8: ; =>This Inner Loop Header: Depth=1
ldr x0, [sp, #32]
bl _list_empty
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB13_10
b LBB13_9
LBB13_9: ; in Loop: Header=BB13_8 Depth=1
ldur x8, [x29, #-24]
str x8, [sp, #16] ; 8-byte Folded Spill
ldr x0, [sp, #32]
bl _list_pop_tail
mov x1, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _list_push_tail
b LBB13_8
LBB13_10:
ldr x0, [sp, #32]
bl _list_empty
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB13_12
b LBB13_11
LBB13_11:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
mov w0, #1
bl _exit
LBB13_12:
ldur x0, [x29, #-16]
bl _list_reverse
ldur x0, [x29, #-16]
bl _list_first
ldr w8, [x0]
subs w8, w8, #100
cset w8, eq
tbnz w8, #0, LBB13_14
b LBB13_13
LBB13_13:
ldur x0, [x29, #-16]
bl _list_first
ldr w9, [x0]
; implicit-def: $x8
mov x8, x9
mov x9, sp
mov x10, #100
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
mov w0, #1
bl _exit
LBB13_14:
ldur x0, [x29, #-16]
bl _list_last
ldr w8, [x0]
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB13_16
b LBB13_15
LBB13_15:
ldur x0, [x29, #-16]
bl _list_last
ldr w9, [x0]
; implicit-def: $x8
mov x8, x9
mov x9, sp
mov x10, #100
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
mov w0, #1
bl _exit
LBB13_16:
ldur x0, [x29, #-24]
bl _list_first
ldr w8, [x0]
subs w8, w8, #100
cset w8, eq
tbnz w8, #0, LBB13_18
b LBB13_17
LBB13_17:
ldur x0, [x29, #-24]
bl _list_first
ldr w9, [x0]
; implicit-def: $x8
mov x8, x9
mov x9, sp
mov x10, #100
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
mov w0, #1
bl _exit
LBB13_18:
ldur x0, [x29, #-24]
bl _list_last
ldr w8, [x0]
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB13_20
b LBB13_19
LBB13_19:
ldur x0, [x29, #-24]
bl _list_last
ldr w9, [x0]
; implicit-def: $x8
mov x8, x9
mov x9, sp
mov x10, #100
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
mov w0, #1
bl _exit
LBB13_20:
ldur x0, [x29, #-16]
bl _list_length
subs w8, w0, #100
cset w8, eq
tbnz w8, #0, LBB13_22
b LBB13_21
LBB13_21:
ldur x0, [x29, #-16]
bl _list_length
mov x9, sp
mov x8, #100
str x8, [x9]
; implicit-def: $x8
mov x8, x0
str x8, [x9, #8]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
mov w0, #1
bl _exit
LBB13_22:
ldur x0, [x29, #-16]
ldur x1, [x29, #-24]
bl _list_equal
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB13_24
b LBB13_23
LBB13_23:
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
mov w0, #1
bl _exit
LBB13_24:
ldur x0, [x29, #-16]
bl _list_length
stur w0, [x29, #-4]
ldur x0, [x29, #-16]
bl _free
ldur x0, [x29, #-24]
bl _free
ldr x0, [sp, #32]
bl _free
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function list_first
_list_first: ; @list_first
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x0, [x8, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB15_2
b LBB15_1
LBB15_1:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
bl _atoi
str w0, [sp, #20] ; 4-byte Folded Spill
b LBB15_3
LBB15_2:
mov w8, #50880
movk w8, #45, lsl #16
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB15_3
LBB15_3:
ldr w8, [sp, #20] ; 4-byte Folded Reload
stur w8, [x29, #-20]
str wzr, [sp, #24]
b LBB15_4
LBB15_4: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
subs w9, w8, #1
stur w9, [x29, #-20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB15_6
b LBB15_5
LBB15_5: ; in Loop: Header=BB15_4 Depth=1
bl _test_lists
str w0, [sp, #24]
b LBB15_4
LBB15_6:
ldr w9, [sp, #24]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "length: %d\n"
l_.str.1: ; @.str.1
.asciz "i:%3d v:%3d n:%3d p:%3d\n"
l_.str.2: ; @.str.2
.asciz "[last entry points to list head]\n"
l_.str.3: ; @.str.3
.asciz "[val of next of tail is: %d]\n"
l_.str.4: ; @.str.4
.asciz "li2 and li1 are not equal\n"
l_.str.5: ; @.str.5
.asciz "li2 should be empty now\n"
l_.str.6: ; @.str.6
.asciz "li3 should be empty now\n"
l_.str.7: ; @.str.7
.asciz "li1 first value wrong, wanted %d, got %d\n"
l_.str.8: ; @.str.8
.asciz "last value wrong, wanted %d, got %d\n"
l_.str.9: ; @.str.9
.asciz "li2 first value wrong, wanted %d, got %d\n"
l_.str.10: ; @.str.10
.asciz "li1 size wrong, wanted %d, got %d\n"
l_.str.11: ; @.str.11
.asciz "li1 and li2 are not equal\n"
l_.str.12: ; @.str.12
.asciz "%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _list_push_tail ## -- Begin function list_push_tail
.p2align 4, 0x90
_list_push_tail: ## @list_push_tail
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -8(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movq -16(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, 16(%rax)
movq -24(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 16(%rax)
movq -8(%rbp), %rax
movl (%rax), %ecx
addl $1, %ecx
movl %ecx, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _list_pop_tail ## -- Begin function list_pop_tail
.p2align 4, 0x90
_list_pop_tail: ## @list_pop_tail
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rdi
callq _list_empty
cmpl $0, %eax
je LBB1_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB1_3
LBB1_2:
movq -16(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -32(%rbp)
movq -32(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 16(%rax)
movq -16(%rbp), %rax
movl (%rax), %ecx
addl $-1, %ecx
movl %ecx, (%rax)
movq -32(%rbp), %rax
movq %rax, -8(%rbp)
LBB1_3:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function list_empty
_list_empty: ## @list_empty
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
callq _list_length
cmpl $0, %eax
sete %al
andb $1, %al
movzbl %al, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _list_push_head ## -- Begin function list_push_head
.p2align 4, 0x90
_list_push_head: ## @list_push_head
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, 8(%rax)
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 16(%rax)
movq -24(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movq -8(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 16(%rax)
movq -8(%rbp), %rax
movl (%rax), %ecx
addl $1, %ecx
movl %ecx, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _list_pop_head ## -- Begin function list_pop_head
.p2align 4, 0x90
_list_pop_head: ## @list_pop_head
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rdi
callq _list_empty
cmpl $0, %eax
je LBB4_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB4_3
LBB4_2:
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movq 8(%rax), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rcx, 16(%rax)
movq -16(%rbp), %rax
movl (%rax), %ecx
addl $-1, %ecx
movl %ecx, (%rax)
movq -24(%rbp), %rax
movq %rax, -8(%rbp)
LBB4_3:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _list_equal ## -- Begin function list_equal
.p2align 4, 0x90
_list_equal: ## @list_equal
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -16(%rbp), %rax
movq %rax, -32(%rbp)
movq -24(%rbp), %rax
movq %rax, -40(%rbp)
LBB5_1: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
movq 8(%rax), %rax
cmpq -16(%rbp), %rax
je LBB5_6
## %bb.2: ## in Loop: Header=BB5_1 Depth=1
movq -32(%rbp), %rax
movl (%rax), %eax
movq -40(%rbp), %rcx
cmpl (%rcx), %eax
je LBB5_4
## %bb.3:
movl $0, -4(%rbp)
jmp LBB5_9
LBB5_4: ## in Loop: Header=BB5_1 Depth=1
jmp LBB5_5
LBB5_5: ## in Loop: Header=BB5_1 Depth=1
movq -32(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
movq -40(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -40(%rbp)
jmp LBB5_1
LBB5_6:
movq -32(%rbp), %rax
movl (%rax), %eax
movq -40(%rbp), %rcx
cmpl (%rcx), %eax
je LBB5_8
## %bb.7:
movl $0, -4(%rbp)
jmp LBB5_9
LBB5_8:
movq -40(%rbp), %rax
movq 8(%rax), %rax
cmpq -24(%rbp), %rax
sete %al
andb $1, %al
movzbl %al, %eax
movl %eax, -4(%rbp)
LBB5_9:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _list_print ## -- Begin function list_print
.p2align 4, 0x90
_list_print: ## @list_print
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
movl $0, -36(%rbp)
movq -8(%rbp), %rdi
callq _puts
movq -16(%rbp), %rdi
callq _list_length
movl %eax, %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
LBB6_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rax
cmpq -32(%rbp), %rax
je LBB6_4
## %bb.2: ## in Loop: Header=BB6_1 Depth=1
movl -36(%rbp), %esi
addl $1, %esi
movl %esi, -36(%rbp)
movq -24(%rbp), %rax
movl (%rax), %edx
movq -24(%rbp), %rax
movq 8(%rax), %rax
movl (%rax), %ecx
movq -24(%rbp), %rax
movq 16(%rax), %rax
movl (%rax), %r8d
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB6_1 Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
jmp LBB6_1
LBB6_4:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movq -24(%rbp), %rax
movq 8(%rax), %rax
movl (%rax), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function list_length
_list_length: ## @list_length
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movl (%rax), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _list_new ## -- Begin function list_new
.p2align 4, 0x90
_list_new: ## @list_new
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $24, %edi
callq _malloc
movq %rax, -8(%rbp)
movq -8(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, 8(%rax)
movq -8(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, 16(%rax)
movq -8(%rbp), %rax
movl $0, (%rax)
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _list_sequence ## -- Begin function list_sequence
.p2align 4, 0x90
_list_sequence: ## @list_sequence
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl -4(%rbp), %eax
cmpl -8(%rbp), %eax
jle LBB9_2
## %bb.1:
movl -4(%rbp), %eax
movl %eax, -16(%rbp)
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
movl -16(%rbp), %eax
movl %eax, -8(%rbp)
LBB9_2:
movl -8(%rbp), %eax
subl -4(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
addl $1, %eax
cltq
imulq $24, %rax, %rdi
callq _malloc
movq %rax, -32(%rbp)
movl -4(%rbp), %eax
addl $-1, %eax
movl %eax, -4(%rbp)
movl $0, -20(%rbp)
movl $1, -24(%rbp)
LBB9_3: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB9_6
## %bb.4: ## in Loop: Header=BB9_3 Depth=1
movq -32(%rbp), %rcx
movl -20(%rbp), %eax
addl $1, %eax
cltq
imulq $24, %rax, %rax
addq %rax, %rcx
movq -32(%rbp), %rax
movslq -20(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 8(%rax)
movq -32(%rbp), %rcx
movl -24(%rbp), %eax
subl $1, %eax
cltq
imulq $24, %rax, %rax
addq %rax, %rcx
movq -32(%rbp), %rax
movslq -24(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 16(%rax)
movl -4(%rbp), %ecx
movl %ecx, %eax
addl $1, %eax
movl %eax, -4(%rbp)
movq -32(%rbp), %rax
movslq -20(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
## %bb.5: ## in Loop: Header=BB9_3 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB9_3
LBB9_6:
movq -32(%rbp), %rcx
movslq -12(%rbp), %rax
imulq $24, %rax, %rax
addq %rax, %rcx
movq -32(%rbp), %rax
movq %rcx, 16(%rax)
movq -32(%rbp), %rcx
movq -32(%rbp), %rax
movslq -12(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 8(%rax)
movq -32(%rbp), %rcx
movl -12(%rbp), %eax
subl $1, %eax
cltq
imulq $24, %rax, %rax
addq %rax, %rcx
movq -32(%rbp), %rax
movslq -12(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 16(%rax)
movl -4(%rbp), %ecx
movq -32(%rbp), %rax
movslq -12(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movl -12(%rbp), %ecx
movq -32(%rbp), %rax
movl %ecx, (%rax)
movq -32(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _list_copy ## -- Begin function list_copy
.p2align 4, 0x90
_list_copy: ## @list_copy
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
callq _list_length
movl %eax, -20(%rbp)
movl -20(%rbp), %eax
addl $1, %eax
cltq
imulq $24, %rax, %rdi
callq _malloc
movq %rax, -40(%rbp)
movl $0, -12(%rbp)
movl $1, -16(%rbp)
movq -8(%rbp), %rax
movq %rax, -32(%rbp)
LBB10_1: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB10_4
## %bb.2: ## in Loop: Header=BB10_1 Depth=1
movq -40(%rbp), %rcx
movslq -16(%rbp), %rax
imulq $24, %rax, %rax
addq %rax, %rcx
movq -40(%rbp), %rax
movslq -12(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 8(%rax)
movq -40(%rbp), %rcx
movslq -12(%rbp), %rax
imulq $24, %rax, %rax
addq %rax, %rcx
movq -40(%rbp), %rax
movslq -16(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 16(%rax)
movq -32(%rbp), %rax
movl (%rax), %ecx
movq -40(%rbp), %rax
movslq -12(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
## %bb.3: ## in Loop: Header=BB10_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
movq -32(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
jmp LBB10_1
LBB10_4:
movq -40(%rbp), %rcx
movslq -20(%rbp), %rax
imulq $24, %rax, %rax
addq %rax, %rcx
movq -40(%rbp), %rax
movq %rcx, 16(%rax)
movq -40(%rbp), %rcx
movq -40(%rbp), %rax
movslq -20(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 8(%rax)
movq -8(%rbp), %rdi
callq _list_last
movl (%rax), %ecx
movq -40(%rbp), %rax
movslq -20(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movq -40(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function list_last
_list_last: ## @list_last
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq 16(%rax), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _list_reverse ## -- Begin function list_reverse
.p2align 4, 0x90
_list_reverse: ## @list_reverse
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq %rax, -24(%rbp)
LBB12_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -16(%rbp)
movq -24(%rbp), %rax
movq 16(%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 16(%rax)
movq -16(%rbp), %rax
movq %rax, -24(%rbp)
## %bb.2: ## in Loop: Header=BB12_1 Depth=1
movq -24(%rbp), %rax
cmpq -8(%rbp), %rax
jne LBB12_1
## %bb.3:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test_lists ## -- Begin function test_lists
.p2align 4, 0x90
_test_lists: ## @test_lists
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
movl $1, %edi
movl $100, %esi
callq _list_sequence
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
callq _list_copy
movq %rax, -24(%rbp)
callq _list_new
movq %rax, -32(%rbp)
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
callq _list_equal
cmpl $0, %eax
jne LBB13_2
## %bb.1:
leaq L_.str.4(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $1, %edi
callq _exit
LBB13_2:
jmp LBB13_3
LBB13_3: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rdi
callq _list_empty
cmpl $0, %eax
setne %al
xorb $-1, %al
testb $1, %al
jne LBB13_4
jmp LBB13_5
LBB13_4: ## in Loop: Header=BB13_3 Depth=1
movq -32(%rbp), %rax
movq %rax, -40(%rbp) ## 8-byte Spill
movq -24(%rbp), %rdi
callq _list_pop_head
movq -40(%rbp), %rdi ## 8-byte Reload
movq %rax, %rsi
callq _list_push_tail
jmp LBB13_3
LBB13_5:
movq -24(%rbp), %rdi
callq _list_empty
cmpl $0, %eax
jne LBB13_7
## %bb.6:
leaq L_.str.5(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $1, %edi
callq _exit
LBB13_7:
jmp LBB13_8
LBB13_8: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rdi
callq _list_empty
cmpl $0, %eax
setne %al
xorb $-1, %al
testb $1, %al
jne LBB13_9
jmp LBB13_10
LBB13_9: ## in Loop: Header=BB13_8 Depth=1
movq -24(%rbp), %rax
movq %rax, -48(%rbp) ## 8-byte Spill
movq -32(%rbp), %rdi
callq _list_pop_tail
movq -48(%rbp), %rdi ## 8-byte Reload
movq %rax, %rsi
callq _list_push_tail
jmp LBB13_8
LBB13_10:
movq -32(%rbp), %rdi
callq _list_empty
cmpl $0, %eax
jne LBB13_12
## %bb.11:
leaq L_.str.6(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $1, %edi
callq _exit
LBB13_12:
movq -16(%rbp), %rdi
callq _list_reverse
movq -16(%rbp), %rdi
callq _list_first
cmpl $100, (%rax)
je LBB13_14
## %bb.13:
movq -16(%rbp), %rdi
callq _list_first
movl (%rax), %edx
leaq L_.str.7(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $100, %esi
callq _printf
movl $1, %edi
callq _exit
LBB13_14:
movq -16(%rbp), %rdi
callq _list_last
cmpl $1, (%rax)
je LBB13_16
## %bb.15:
movq -16(%rbp), %rdi
callq _list_last
movl (%rax), %edx
leaq L_.str.8(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $100, %esi
callq _printf
movl $1, %edi
callq _exit
LBB13_16:
movq -24(%rbp), %rdi
callq _list_first
cmpl $100, (%rax)
je LBB13_18
## %bb.17:
movq -24(%rbp), %rdi
callq _list_first
movl (%rax), %edx
leaq L_.str.9(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $100, %esi
callq _printf
movl $1, %edi
callq _exit
LBB13_18:
movq -24(%rbp), %rdi
callq _list_last
cmpl $1, (%rax)
je LBB13_20
## %bb.19:
movq -24(%rbp), %rdi
callq _list_last
movl (%rax), %edx
leaq L_.str.8(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $100, %esi
callq _printf
movl $1, %edi
callq _exit
LBB13_20:
movq -16(%rbp), %rdi
callq _list_length
cmpl $100, %eax
je LBB13_22
## %bb.21:
movq -16(%rbp), %rdi
callq _list_length
movl %eax, %edx
leaq L_.str.10(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $100, %esi
callq _printf
movl $1, %edi
callq _exit
LBB13_22:
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
callq _list_equal
cmpl $0, %eax
jne LBB13_24
## %bb.23:
leaq L_.str.11(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $1, %edi
callq _exit
LBB13_24:
movq -16(%rbp), %rdi
callq _list_length
movl %eax, -4(%rbp)
movq -16(%rbp), %rdi
callq _free
movq -24(%rbp), %rdi
callq _free
movq -32(%rbp), %rdi
callq _free
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function list_first
_list_first: ## @list_first
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $2, -8(%rbp)
jne LBB15_2
## %bb.1:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _atoi
movl %eax, -28(%rbp) ## 4-byte Spill
jmp LBB15_3
LBB15_2:
movl $3000000, %eax ## imm = 0x2DC6C0
movl %eax, -28(%rbp) ## 4-byte Spill
jmp LBB15_3
LBB15_3:
movl -28(%rbp), %eax ## 4-byte Reload
movl %eax, -20(%rbp)
movl $0, -24(%rbp)
LBB15_4: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
movl %eax, %ecx
addl $-1, %ecx
movl %ecx, -20(%rbp)
cmpl $0, %eax
je LBB15_6
## %bb.5: ## in Loop: Header=BB15_4 Depth=1
callq _test_lists
movl %eax, -24(%rbp)
jmp LBB15_4
LBB15_6:
movl -24(%rbp), %esi
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "length: %d\n"
L_.str.1: ## @.str.1
.asciz "i:%3d v:%3d n:%3d p:%3d\n"
L_.str.2: ## @.str.2
.asciz "[last entry points to list head]\n"
L_.str.3: ## @.str.3
.asciz "[val of next of tail is: %d]\n"
L_.str.4: ## @.str.4
.asciz "li2 and li1 are not equal\n"
L_.str.5: ## @.str.5
.asciz "li2 should be empty now\n"
L_.str.6: ## @.str.6
.asciz "li3 should be empty now\n"
L_.str.7: ## @.str.7
.asciz "li1 first value wrong, wanted %d, got %d\n"
L_.str.8: ## @.str.8
.asciz "last value wrong, wanted %d, got %d\n"
L_.str.9: ## @.str.9
.asciz "li2 first value wrong, wanted %d, got %d\n"
L_.str.10: ## @.str.10
.asciz "li1 size wrong, wanted %d, got %d\n"
L_.str.11: ## @.str.11
.asciz "li1 and li2 are not equal\n"
L_.str.12: ## @.str.12
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/1249727.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x10, _n@GOTPAGE
ldr x10, [x10, _n@GOTPAGEOFF]
str x10, [sp, #24] ; 8-byte Folded Spill
adrp x8, _m@GOTPAGE
ldr x8, [x8, _m@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
adrp x9, _i@GOTPAGE
ldr x9, [x9, _i@GOTPAGEOFF]
str x9, [sp, #40] ; 8-byte Folded Spill
adrp x9, _j@GOTPAGE
ldr x9, [x9, _j@GOTPAGEOFF]
stur x9, [x29, #-32] ; 8-byte Folded Spill
adrp x9, _k@GOTPAGE
ldr x9, [x9, _k@GOTPAGEOFF]
stur x9, [x29, #-24] ; 8-byte Folded Spill
adrp x9, _st@GOTPAGE
ldr x9, [x9, _st@GOTPAGEOFF]
stur x9, [x29, #-16] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w8, [x8]
ldr w9, [x9]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldrsw x9, [x9]
add x8, x8, x9, lsl #2
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB0_1
LBB0_4:
ldr x8, [sp, #40] ; 8-byte Folded Reload
str wzr, [x8]
b LBB0_5
LBB0_5: ; =>This Loop Header: Depth=1
; Child Loop BB0_7 Depth 2
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w10, [x8]
mov w8, #1
add w10, w10, #1
lsl w8, w8, w10
ldr w9, [x9]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_15
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldur x8, [x29, #-32] ; 8-byte Folded Reload
str wzr, [x8]
b LBB0_7
LBB0_7: ; Parent Loop BB0_5 Depth=1
; => This Inner Loop Header: Depth=2
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x10, [sp, #40] ; 8-byte Folded Reload
ldur x8, [x29, #-32] ; 8-byte Folded Reload
ldr w8, [x8]
ldr w11, [x10]
mov w10, #1
add w11, w11, #1
lsl w10, w10, w11
add w8, w8, w10
ldr w9, [x9]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_13
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=2
ldr x11, [sp, #40] ; 8-byte Folded Reload
ldur x10, [x29, #-32] ; 8-byte Folded Reload
ldur x9, [x29, #-16] ; 8-byte Folded Reload
ldrsw x8, [x11]
mov x13, #2304
movk x13, #61, lsl #16
mul x12, x8, x13
mov x8, x9
add x8, x8, x12
ldrsw x12, [x10]
ldr w8, [x8, x12, lsl #2]
ldrsw x12, [x11]
mul x12, x12, x13
add x9, x9, x12
ldr w10, [x10]
ldr w12, [x11]
mov w11, #1
lsl w11, w11, w12
add w10, w10, w11
ldr w9, [x9, w10, sxtw #2]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_7 Depth=2
ldur x9, [x29, #-32] ; 8-byte Folded Reload
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldr x10, [sp, #40] ; 8-byte Folded Reload
ldrsw x10, [x10]
mov x11, #2304
movk x11, #61, lsl #16
mul x10, x10, x11
add x8, x8, x10
ldrsw x9, [x9]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB0_11
LBB0_10: ; in Loop: Header=BB0_7 Depth=2
ldr x10, [sp, #40] ; 8-byte Folded Reload
ldur x9, [x29, #-32] ; 8-byte Folded Reload
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldrsw x11, [x10]
mov x12, #2304
movk x12, #61, lsl #16
mul x11, x11, x12
add x8, x8, x11
ldr w9, [x9]
ldr w11, [x10]
mov w10, #1
lsl w10, w10, w11
add w9, w9, w10
ldr w8, [x8, w9, sxtw #2]
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_7 Depth=2
ldur x10, [x29, #-32] ; 8-byte Folded Reload
ldur x12, [x29, #-16] ; 8-byte Folded Reload
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldr w8, [sp, #20] ; 4-byte Folded Reload
ldr w9, [x9]
add w9, w9, #1
mov w11, #2304
movk w11, #61, lsl #16
smaddl x9, w9, w11, x12
ldrsw x10, [x10]
str w8, [x9, x10, lsl #2]
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_7 Depth=2
ldur x9, [x29, #-32] ; 8-byte Folded Reload
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB0_7
LBB0_13: ; in Loop: Header=BB0_5 Depth=1
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_5 Depth=1
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB0_5
LBB0_15:
b LBB0_16
LBB0_16: ; =>This Inner Loop Header: Depth=1
ldr x10, [sp, #32] ; 8-byte Folded Reload
ldr w8, [x10]
subs w9, w8, #1
str w9, [x10]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_21
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_16 Depth=1
ldur x8, [x29, #-32] ; 8-byte Folded Reload
ldr x10, [sp, #40] ; 8-byte Folded Reload
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr x13, [sp, #40] ; 8-byte Folded Reload
ldur x9, [x29, #-16] ; 8-byte Folded Reload
ldur x10, [x29, #-32] ; 8-byte Folded Reload
ldur x12, [x29, #-24] ; 8-byte Folded Reload
ldr w8, [x10]
mov w11, #1
add w8, w8, #1
str w8, [x10]
ldr w8, [x10]
ldr w14, [x13]
subs w8, w8, w14
clz w14, w8
mov w8, #31
subs w8, w8, w14
str w8, [x12]
ldrsw x8, [x12]
mov x14, #2304
movk x14, #61, lsl #16
mul x15, x8, x14
mov x8, x9
add x8, x8, x15
ldrsw x13, [x13]
ldr w8, [x8, x13, lsl #2]
ldrsw x13, [x12]
mul x13, x13, x14
add x9, x9, x13
ldr w10, [x10]
ldr w12, [x12]
lsl w11, w11, w12
subs w10, w10, w11
ldr w9, [x9, w10, sxtw #2]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_16 Depth=1
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldur x10, [x29, #-24] ; 8-byte Folded Reload
ldrsw x10, [x10]
mov x11, #2304
movk x11, #61, lsl #16
mul x10, x10, x11
add x8, x8, x10
ldrsw x9, [x9]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_20
LBB0_19: ; in Loop: Header=BB0_16 Depth=1
ldur x10, [x29, #-24] ; 8-byte Folded Reload
ldur x9, [x29, #-32] ; 8-byte Folded Reload
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldrsw x11, [x10]
mov x12, #2304
movk x12, #61, lsl #16
mul x11, x11, x12
add x8, x8, x11
ldr w9, [x9]
ldr w11, [x10]
mov w10, #1
lsl w10, w10, w11
subs w9, w9, w10
ldr w8, [x8, w9, sxtw #2]
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_16 Depth=1
ldr w10, [sp, #16] ; 4-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_16
LBB0_21:
mov w0, #0
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d%d"
.comm _n,4,2 ; @n
.comm _m,4,2 ; @m
.comm _i,4,2 ; @i
l_.str.1: ; @.str.1
.asciz "%d"
.comm _st,80000000,2 ; @st
.comm _j,4,2 ; @j
.comm _k,4,2 ; @k
l_.str.2: ; @.str.2
.asciz "%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
movq _n@GOTPCREL(%rip), %rsi
movq _m@GOTPCREL(%rip), %rdx
movb $0, %al
callq _scanf
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq _i@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq _n@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
je LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq _i@GOTPCREL(%rip), %rax
movslq (%rax), %rax
movq _st@GOTPCREL(%rip), %rsi
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq _i@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _i@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB0_1
LBB0_4:
movq _i@GOTPCREL(%rip), %rax
movl $0, (%rax)
LBB0_5: ## =>This Loop Header: Depth=1
## Child Loop BB0_7 Depth 2
movq _i@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movl $1, %eax
## kill: def $cl killed $ecx
shll %cl, %eax
movq _n@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jg LBB0_15
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq _j@GOTPCREL(%rip), %rax
movl $0, (%rax)
LBB0_7: ## Parent Loop BB0_5 Depth=1
## => This Inner Loop Header: Depth=2
movq _j@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq _i@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
addl $1, %ecx
movl $1, %edx
## kill: def $cl killed $ecx
shll %cl, %edx
movl %edx, %ecx
addl %ecx, %eax
movq _n@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jg LBB0_13
## %bb.8: ## in Loop: Header=BB0_7 Depth=2
movq _i@GOTPCREL(%rip), %rax
movslq (%rax), %rcx
movq _st@GOTPCREL(%rip), %rax
imulq $4000000, %rcx, %rcx ## imm = 0x3D0900
addq %rcx, %rax
movq _j@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
movl (%rax,%rcx,4), %eax
movq _i@GOTPCREL(%rip), %rcx
movslq (%rcx), %rdx
movq _st@GOTPCREL(%rip), %rcx
imulq $4000000, %rdx, %rdx ## imm = 0x3D0900
addq %rdx, %rcx
movq %rcx, -16(%rbp) ## 8-byte Spill
movq _j@GOTPCREL(%rip), %rcx
movl (%rcx), %edx
movq _i@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl $1, %esi
## kill: def $cl killed $ecx
shll %cl, %esi
movq -16(%rbp), %rcx ## 8-byte Reload
addl %esi, %edx
movslq %edx, %rdx
cmpl (%rcx,%rdx,4), %eax
jle LBB0_10
## %bb.9: ## in Loop: Header=BB0_7 Depth=2
movq _i@GOTPCREL(%rip), %rax
movslq (%rax), %rcx
movq _st@GOTPCREL(%rip), %rax
imulq $4000000, %rcx, %rcx ## imm = 0x3D0900
addq %rcx, %rax
movq _j@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -20(%rbp) ## 4-byte Spill
jmp LBB0_11
LBB0_10: ## in Loop: Header=BB0_7 Depth=2
movq _i@GOTPCREL(%rip), %rax
movslq (%rax), %rcx
movq _st@GOTPCREL(%rip), %rax
imulq $4000000, %rcx, %rcx ## imm = 0x3D0900
addq %rcx, %rax
movq _j@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl %ecx, -24(%rbp) ## 4-byte Spill
movq _i@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl $1, %edx
## kill: def $cl killed $ecx
shll %cl, %edx
movl -24(%rbp), %ecx ## 4-byte Reload
addl %edx, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -20(%rbp) ## 4-byte Spill
LBB0_11: ## in Loop: Header=BB0_7 Depth=2
movl -20(%rbp), %edx ## 4-byte Reload
movq _i@GOTPCREL(%rip), %rax
movl (%rax), %eax
addl $1, %eax
movslq %eax, %rcx
movq _st@GOTPCREL(%rip), %rax
imulq $4000000, %rcx, %rcx ## imm = 0x3D0900
addq %rcx, %rax
movq _j@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.12: ## in Loop: Header=BB0_7 Depth=2
movq _j@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _j@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB0_7
LBB0_13: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_14
LBB0_14: ## in Loop: Header=BB0_5 Depth=1
movq _i@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _i@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB0_5
LBB0_15:
jmp LBB0_16
LBB0_16: ## =>This Inner Loop Header: Depth=1
movq _m@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, %edx
addl $-1, %edx
movq _m@GOTPCREL(%rip), %rcx
movl %edx, (%rcx)
cmpl $0, %eax
je LBB0_21
## %bb.17: ## in Loop: Header=BB0_16 Depth=1
leaq L_.str(%rip), %rdi
movq _i@GOTPCREL(%rip), %rsi
movq _j@GOTPCREL(%rip), %rdx
movb $0, %al
callq _scanf
movq _j@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _j@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _j@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq _i@GOTPCREL(%rip), %rcx
subl (%rcx), %eax
bsrl %eax, %eax
xorl $31, %eax
movl $31, %ecx
subl %eax, %ecx
movq _k@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _k@GOTPCREL(%rip), %rax
movslq (%rax), %rcx
movq _st@GOTPCREL(%rip), %rax
imulq $4000000, %rcx, %rcx ## imm = 0x3D0900
addq %rcx, %rax
movq _i@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
movl (%rax,%rcx,4), %eax
movq _k@GOTPCREL(%rip), %rcx
movslq (%rcx), %rdx
movq _st@GOTPCREL(%rip), %rcx
imulq $4000000, %rdx, %rdx ## imm = 0x3D0900
addq %rdx, %rcx
movq %rcx, -32(%rbp) ## 8-byte Spill
movq _j@GOTPCREL(%rip), %rcx
movl (%rcx), %edx
movq _k@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl $1, %esi
## kill: def $cl killed $ecx
shll %cl, %esi
movq -32(%rbp), %rcx ## 8-byte Reload
subl %esi, %edx
movslq %edx, %rdx
cmpl (%rcx,%rdx,4), %eax
jle LBB0_19
## %bb.18: ## in Loop: Header=BB0_16 Depth=1
movq _k@GOTPCREL(%rip), %rax
movslq (%rax), %rcx
movq _st@GOTPCREL(%rip), %rax
imulq $4000000, %rcx, %rcx ## imm = 0x3D0900
addq %rcx, %rax
movq _i@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -36(%rbp) ## 4-byte Spill
jmp LBB0_20
LBB0_19: ## in Loop: Header=BB0_16 Depth=1
movq _k@GOTPCREL(%rip), %rax
movslq (%rax), %rcx
movq _st@GOTPCREL(%rip), %rax
imulq $4000000, %rcx, %rcx ## imm = 0x3D0900
addq %rcx, %rax
movq _j@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl %ecx, -40(%rbp) ## 4-byte Spill
movq _k@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl $1, %edx
## kill: def $cl killed $ecx
shll %cl, %edx
movl -40(%rbp), %ecx ## 4-byte Reload
subl %edx, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -36(%rbp) ## 4-byte Spill
LBB0_20: ## in Loop: Header=BB0_16 Depth=1
movl -36(%rbp), %esi ## 4-byte Reload
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_16
LBB0_21:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d%d"
.comm _n,4,2 ## @n
.comm _m,4,2 ## @m
.comm _i,4,2 ## @i
L_.str.1: ## @.str.1
.asciz "%d"
.comm _st,80000000,4 ## @st
.comm _j,4,2 ## @j
.comm _k,4,2 ## @k
L_.str.2: ## @.str.2
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/159515075.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_putchar ; -- Begin function ft_putchar
.p2align 2
_ft_putchar: ; @ft_putchar
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub x1, x29, #1
sturb w0, [x29, #-1]
mov w0, #1
mov x2, #1
bl _write
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _ft_print_comb ; -- Begin function ft_print_comb
.p2align 2
_ft_print_comb: ; @ft_print_comb
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #48
sturb w8, [x29, #-1]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_3 Depth 2
; Child Loop BB1_5 Depth 3
ldursb w8, [x29, #-1]
subs w8, w8, #55
cset w8, ge
tbnz w8, #0, LBB1_9
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldursb w8, [x29, #-1]
add w8, w8, #1
sturb w8, [x29, #-2]
b LBB1_3
LBB1_3: ; Parent Loop BB1_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB1_5 Depth 3
ldursb w8, [x29, #-2]
subs w8, w8, #56
cset w8, gt
tbnz w8, #0, LBB1_8
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=2
ldursb w8, [x29, #-2]
add w8, w8, #1
sturb w8, [x29, #-3]
b LBB1_5
LBB1_5: ; Parent Loop BB1_1 Depth=1
; Parent Loop BB1_3 Depth=2
; => This Inner Loop Header: Depth=3
ldursb w8, [x29, #-3]
subs w8, w8, #57
cset w8, gt
tbnz w8, #0, LBB1_7
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_5 Depth=3
ldursb w0, [x29, #-1]
bl _ft_putchar
ldursb w0, [x29, #-2]
bl _ft_putchar
ldursb w0, [x29, #-3]
bl _ft_putchar
mov w0, #44
bl _ft_putchar
mov w0, #32
bl _ft_putchar
ldurb w8, [x29, #-3]
add w8, w8, #1
sturb w8, [x29, #-3]
b LBB1_5
LBB1_7: ; in Loop: Header=BB1_3 Depth=2
ldurb w8, [x29, #-2]
add w8, w8, #1
sturb w8, [x29, #-2]
b LBB1_3
LBB1_8: ; in Loop: Header=BB1_1 Depth=1
ldurb w8, [x29, #-1]
add w8, w8, #1
sturb w8, [x29, #-1]
b LBB1_1
LBB1_9:
mov w0, #1
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov x2, #3
bl _write
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "789"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_putchar ## -- Begin function ft_putchar
.p2align 4, 0x90
_ft_putchar: ## @ft_putchar
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movb %dil, %al
movb %al, -1(%rbp)
movl $1, %edi
leaq -1(%rbp), %rsi
movl $1, %edx
callq _write
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _ft_print_comb ## -- Begin function ft_print_comb
.p2align 4, 0x90
_ft_print_comb: ## @ft_print_comb
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movb $48, -1(%rbp)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_3 Depth 2
## Child Loop BB1_5 Depth 3
movsbl -1(%rbp), %eax
cmpl $55, %eax
jge LBB1_9
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movsbl -1(%rbp), %eax
addl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -2(%rbp)
LBB1_3: ## Parent Loop BB1_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB1_5 Depth 3
movsbl -2(%rbp), %eax
cmpl $56, %eax
jg LBB1_8
## %bb.4: ## in Loop: Header=BB1_3 Depth=2
movsbl -2(%rbp), %eax
addl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -3(%rbp)
LBB1_5: ## Parent Loop BB1_1 Depth=1
## Parent Loop BB1_3 Depth=2
## => This Inner Loop Header: Depth=3
movsbl -3(%rbp), %eax
cmpl $57, %eax
jg LBB1_7
## %bb.6: ## in Loop: Header=BB1_5 Depth=3
movsbl -1(%rbp), %edi
callq _ft_putchar
movsbl -2(%rbp), %edi
callq _ft_putchar
movsbl -3(%rbp), %edi
callq _ft_putchar
movl $44, %edi
callq _ft_putchar
movl $32, %edi
callq _ft_putchar
movb -3(%rbp), %al
addb $1, %al
movb %al, -3(%rbp)
jmp LBB1_5
LBB1_7: ## in Loop: Header=BB1_3 Depth=2
movb -2(%rbp), %al
addb $1, %al
movb %al, -2(%rbp)
jmp LBB1_3
LBB1_8: ## in Loop: Header=BB1_1 Depth=1
movb -1(%rbp), %al
addb $1, %al
movb %al, -1(%rbp)
jmp LBB1_1
LBB1_9:
movl $1, %edi
leaq L_.str(%rip), %rsi
movl $3, %edx
callq _write
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "789"
.subsections_via_symbols
| the_stack_data/1178904.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function read_timer
lCPI0_0:
.quad 0x408f400000000000 ; double 1000
.section __TEXT,__text,regular,pure_instructions
.globl _read_timer
.p2align 2
_read_timer: ; @read_timer
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, sp
bl _ftime
ldr d0, [sp]
scvtf d0, d0
ldrh w8, [sp, #8]
ucvtf d1, w8
adrp x8, lCPI0_0@PAGE
ldr d2, [x8, lCPI0_0@PAGEOFF]
fdiv d1, d1, d2
fadd d0, d0, d1
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _print_array ; -- Begin function print_array
.p2align 2
_print_array: ; @print_array
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur w3, [x29, #-28]
stur w4, [x29, #-32]
ldur x8, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
stur wzr, [x29, #-36]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_3 Depth 2
ldur w8, [x29, #-36]
ldur w9, [x29, #-28]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_8
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
str wzr, [sp, #40]
b LBB1_3
LBB1_3: ; Parent Loop BB1_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #40]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_6
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=2
ldur x12, [x29, #-16]
ldur w8, [x29, #-36]
; implicit-def: $x11
mov x11, x8
ldr w8, [sp, #40]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-24]
ldur w9, [x29, #-36]
ldur w13, [x29, #-32]
mul w9, w9, w13
ldr w13, [sp, #40]
add w9, w9, w13
ldr w9, [x8, w9, sxtw #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x12, [x9]
str x11, [x9, #8]
str x10, [x9, #16]
str x8, [x9, #24]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=2
ldr w8, [sp, #40]
add w8, w8, #1
str w8, [sp, #40]
b LBB1_3
LBB1_6: ; in Loop: Header=BB1_1 Depth=1
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-36]
add w8, w8, #1
stur w8, [x29, #-36]
b LBB1_1
LBB1_8:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI2_0:
.quad 0x41cdcd6500000000 ; double 1.0E+9
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
mov w8, #10240
str w8, [sp, #68]
ldur w8, [x29, #-8]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
bl _atoi
str w0, [sp, #68]
b LBB2_2
LBB2_2:
ldr w8, [sp, #68]
ldr w9, [sp, #68]
mul w8, w8, w9
str w8, [sp, #56]
ldr w8, [sp, #56]
mov w9, #5
mul w8, w8, w9
str w8, [sp, #64]
ldrsw x8, [sp, #56]
lsl x0, x8, #2
bl _malloc
stur x0, [x29, #-24]
ldrsw x8, [sp, #64]
lsl x0, x8, #2
bl _malloc
stur x0, [x29, #-32]
ldrsw x8, [sp, #64]
lsl x0, x8, #2
bl _malloc
stur x0, [x29, #-40]
ldrsw x8, [sp, #56]
lsl x0, x8, #2
bl _malloc
stur x0, [x29, #-48]
ldrsw x8, [sp, #56]
lsl x0, x8, #2
bl _malloc
stur x0, [x29, #-56]
stur wzr, [x29, #-60]
str wzr, [sp, #60]
stur wzr, [x29, #-64]
b LBB2_3
LBB2_3: ; =>This Loop Header: Depth=1
; Child Loop BB2_5 Depth 2
ldur w8, [x29, #-64]
ldr w9, [sp, #68]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_18
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_3 Depth=1
stur wzr, [x29, #-68]
b LBB2_5
LBB2_5: ; Parent Loop BB2_3 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-68]
ldr w9, [sp, #68]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_16
b LBB2_6
LBB2_6: ; in Loop: Header=BB2_5 Depth=2
ldr w8, [sp, #60]
ldur x9, [x29, #-24]
ldursw x10, [x29, #-60]
str w8, [x9, x10, lsl #2]
ldur w8, [x29, #-64]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB2_8
b LBB2_7
LBB2_7: ; in Loop: Header=BB2_5 Depth=2
ldur w8, [x29, #-60]
ldr w9, [sp, #68]
subs w8, w8, w9
ldur x9, [x29, #-32]
ldrsw x10, [sp, #60]
str w8, [x9, x10, lsl #2]
ldur x9, [x29, #-40]
ldrsw x10, [sp, #60]
mov w8, #-1
str w8, [x9, x10, lsl #2]
ldr w8, [sp, #60]
add w8, w8, #1
str w8, [sp, #60]
b LBB2_8
LBB2_8: ; in Loop: Header=BB2_5 Depth=2
ldur w8, [x29, #-68]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB2_10
b LBB2_9
LBB2_9: ; in Loop: Header=BB2_5 Depth=2
ldur w8, [x29, #-60]
subs w8, w8, #1
ldur x9, [x29, #-32]
ldrsw x10, [sp, #60]
str w8, [x9, x10, lsl #2]
ldur x9, [x29, #-40]
ldrsw x10, [sp, #60]
mov w8, #-1
str w8, [x9, x10, lsl #2]
ldr w8, [sp, #60]
add w8, w8, #1
str w8, [sp, #60]
b LBB2_10
LBB2_10: ; in Loop: Header=BB2_5 Depth=2
ldur w8, [x29, #-60]
ldur x9, [x29, #-32]
ldrsw x10, [sp, #60]
str w8, [x9, x10, lsl #2]
ldur x9, [x29, #-40]
ldrsw x10, [sp, #60]
mov w8, #4
str w8, [x9, x10, lsl #2]
ldr w8, [sp, #60]
add w8, w8, #1
str w8, [sp, #60]
ldur w8, [x29, #-68]
ldr w9, [sp, #68]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_12
b LBB2_11
LBB2_11: ; in Loop: Header=BB2_5 Depth=2
ldur w8, [x29, #-60]
add w8, w8, #1
ldur x9, [x29, #-32]
ldrsw x10, [sp, #60]
str w8, [x9, x10, lsl #2]
ldur x9, [x29, #-40]
ldrsw x10, [sp, #60]
mov w8, #-1
str w8, [x9, x10, lsl #2]
ldr w8, [sp, #60]
add w8, w8, #1
str w8, [sp, #60]
b LBB2_12
LBB2_12: ; in Loop: Header=BB2_5 Depth=2
ldur w8, [x29, #-64]
ldr w9, [sp, #68]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_14
b LBB2_13
LBB2_13: ; in Loop: Header=BB2_5 Depth=2
ldur w8, [x29, #-60]
ldr w9, [sp, #68]
add w8, w8, w9
ldur x9, [x29, #-32]
ldrsw x10, [sp, #60]
str w8, [x9, x10, lsl #2]
ldur x9, [x29, #-40]
ldrsw x10, [sp, #60]
mov w8, #-1
str w8, [x9, x10, lsl #2]
ldr w8, [sp, #60]
add w8, w8, #1
str w8, [sp, #60]
b LBB2_14
LBB2_14: ; in Loop: Header=BB2_5 Depth=2
ldur w8, [x29, #-60]
add w8, w8, #1
stur w8, [x29, #-60]
b LBB2_15
LBB2_15: ; in Loop: Header=BB2_5 Depth=2
ldur w8, [x29, #-68]
add w8, w8, #1
stur w8, [x29, #-68]
b LBB2_5
LBB2_16: ; in Loop: Header=BB2_3 Depth=1
b LBB2_17
LBB2_17: ; in Loop: Header=BB2_3 Depth=1
ldur w8, [x29, #-64]
add w8, w8, #1
stur w8, [x29, #-64]
b LBB2_3
LBB2_18:
ldr w8, [sp, #60]
ldur x9, [x29, #-24]
ldursw x10, [x29, #-60]
str w8, [x9, x10, lsl #2]
stur wzr, [x29, #-64]
b LBB2_19
LBB2_19: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-64]
ldr w9, [sp, #56]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_22
b LBB2_20
LBB2_20: ; in Loop: Header=BB2_19 Depth=1
ldur x9, [x29, #-48]
ldursw x10, [x29, #-64]
mov w8, #1
str w8, [x9, x10, lsl #2]
b LBB2_21
LBB2_21: ; in Loop: Header=BB2_19 Depth=1
ldur w8, [x29, #-64]
add w8, w8, #1
stur w8, [x29, #-64]
b LBB2_19
LBB2_22:
bl _read_timer
str d0, [sp, #32]
str wzr, [sp, #28]
stur wzr, [x29, #-60]
b LBB2_23
LBB2_23: ; =>This Loop Header: Depth=1
; Child Loop BB2_25 Depth 2
ldur w8, [x29, #-60]
ldr w9, [sp, #56]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_30
b LBB2_24
LBB2_24: ; in Loop: Header=BB2_23 Depth=1
str wzr, [sp, #24]
ldur x8, [x29, #-24]
ldursw x9, [x29, #-60]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #72]
b LBB2_25
LBB2_25: ; Parent Loop BB2_23 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #72]
ldur x9, [x29, #-24]
ldur w10, [x29, #-60]
add w10, w10, #1
ldr w9, [x9, w10, sxtw #2]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_28
b LBB2_26
LBB2_26: ; in Loop: Header=BB2_25 Depth=2
ldur x8, [x29, #-40]
ldrsw x9, [sp, #72]
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-48]
ldur x10, [x29, #-32]
ldrsw x11, [sp, #72]
ldrsw x10, [x10, x11, lsl #2]
ldr w9, [x9, x10, lsl #2]
mul w9, w8, w9
ldr w8, [sp, #24]
add w8, w8, w9
str w8, [sp, #24]
ldr w8, [sp, #28]
add w8, w8, #2
str w8, [sp, #28]
b LBB2_27
LBB2_27: ; in Loop: Header=BB2_25 Depth=2
ldr w8, [sp, #72]
add w8, w8, #1
str w8, [sp, #72]
b LBB2_25
LBB2_28: ; in Loop: Header=BB2_23 Depth=1
ldr w8, [sp, #24]
ldur x9, [x29, #-56]
ldursw x10, [x29, #-60]
str w8, [x9, x10, lsl #2]
b LBB2_29
LBB2_29: ; in Loop: Header=BB2_23 Depth=1
ldur w8, [x29, #-60]
add w8, w8, #1
stur w8, [x29, #-60]
b LBB2_23
LBB2_30:
bl _read_timer
ldr d1, [sp, #32]
fsub d0, d0, d1
str d0, [sp, #32]
ldr s1, [sp, #28]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
ldr d2, [sp, #32]
adrp x8, lCPI2_0@PAGE
ldr d1, [x8, lCPI2_0@PAGEOFF]
fmul d1, d1, d2
fdiv d0, d0, d1
str d0, [sp, #16]
ldr d0, [sp, #32]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr d0, [sp, #16]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
stur wzr, [x29, #-60]
b LBB2_31
LBB2_31: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-60]
ldr w9, [sp, #56]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_36
b LBB2_32
LBB2_32: ; in Loop: Header=BB2_31 Depth=1
ldur x8, [x29, #-56]
ldursw x9, [x29, #-60]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB2_34
b LBB2_33
LBB2_33: ; in Loop: Header=BB2_31 Depth=1
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldur w8, [x29, #-60]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-56]
ldursw x9, [x29, #-60]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _fprintf
b LBB2_34
LBB2_34: ; in Loop: Header=BB2_31 Depth=1
b LBB2_35
LBB2_35: ; in Loop: Header=BB2_31 Depth=1
ldur w8, [x29, #-60]
add w8, w8, #1
stur w8, [x29, #-60]
b LBB2_31
LBB2_36:
ldur x0, [x29, #-24]
bl _free
ldur x0, [x29, #-32]
bl _free
ldur x0, [x29, #-40]
bl _free
ldur x0, [x29, #-48]
bl _free
ldur x0, [x29, #-56]
bl _free
mov w0, #0
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
add sp, sp, #160
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s:\n"
l_.str.1: ; @.str.1
.asciz "%s[%d][%d]:%d "
l_.str.2: ; @.str.2
.asciz "\n"
l_.str.3: ; @.str.3
.asciz "seq elasped time(s): %.4f\n"
l_.str.4: ; @.str.4
.asciz "GFlops: %.4f\n"
l_.str.5: ; @.str.5
.asciz "y[%d]=%d, fails consistency test\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function read_timer
LCPI0_0:
.quad 0x408f400000000000 ## double 1000
.section __TEXT,__text,regular,pure_instructions
.globl _read_timer
.p2align 4, 0x90
_read_timer: ## @read_timer
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
leaq -16(%rbp), %rdi
callq _ftime
cvtsi2sdq -16(%rbp), %xmm0
movzwl -8(%rbp), %eax
cvtsi2sd %eax, %xmm1
movsd LCPI0_0(%rip), %xmm2 ## xmm2 = mem[0],zero
divsd %xmm2, %xmm1
addsd %xmm1, %xmm0
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _print_array ## -- Begin function print_array
.p2align 4, 0x90
_print_array: ## @print_array
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movl %ecx, -28(%rbp)
movl %r8d, -32(%rbp)
movq -8(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -36(%rbp)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_3 Depth 2
movl -36(%rbp), %eax
cmpl -28(%rbp), %eax
jge LBB1_8
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl $0, -40(%rbp)
LBB1_3: ## Parent Loop BB1_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -40(%rbp), %eax
cmpl -32(%rbp), %eax
jge LBB1_6
## %bb.4: ## in Loop: Header=BB1_3 Depth=2
movq -16(%rbp), %rsi
movl -36(%rbp), %edx
movl -40(%rbp), %ecx
movq -24(%rbp), %rax
movl -36(%rbp), %edi
imull -32(%rbp), %edi
addl -40(%rbp), %edi
movslq %edi, %rdi
movl (%rax,%rdi,4), %r8d
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.5: ## in Loop: Header=BB1_3 Depth=2
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB1_3
LBB1_6: ## in Loop: Header=BB1_1 Depth=1
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.7: ## in Loop: Header=BB1_1 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB1_1
LBB1_8:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI2_0:
.quad 0x41cdcd6500000000 ## double 1.0E+9
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $10240, -76(%rbp) ## imm = 0x2800
cmpl $1, -8(%rbp)
jle LBB2_2
## %bb.1:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _atoi
movl %eax, -76(%rbp)
LBB2_2:
movl -76(%rbp), %eax
imull -76(%rbp), %eax
movl %eax, -88(%rbp)
imull $5, -88(%rbp), %eax
movl %eax, -80(%rbp)
movslq -88(%rbp), %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -24(%rbp)
movslq -80(%rbp), %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -32(%rbp)
movslq -80(%rbp), %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -40(%rbp)
movslq -88(%rbp), %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -48(%rbp)
movslq -88(%rbp), %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -56(%rbp)
movl $0, -60(%rbp)
movl $0, -84(%rbp)
movl $0, -64(%rbp)
LBB2_3: ## =>This Loop Header: Depth=1
## Child Loop BB2_5 Depth 2
movl -64(%rbp), %eax
cmpl -76(%rbp), %eax
jge LBB2_18
## %bb.4: ## in Loop: Header=BB2_3 Depth=1
movl $0, -68(%rbp)
LBB2_5: ## Parent Loop BB2_3 Depth=1
## => This Inner Loop Header: Depth=2
movl -68(%rbp), %eax
cmpl -76(%rbp), %eax
jge LBB2_16
## %bb.6: ## in Loop: Header=BB2_5 Depth=2
movl -84(%rbp), %edx
movq -24(%rbp), %rax
movslq -60(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
cmpl $0, -64(%rbp)
jle LBB2_8
## %bb.7: ## in Loop: Header=BB2_5 Depth=2
movl -60(%rbp), %edx
subl -76(%rbp), %edx
movq -32(%rbp), %rax
movslq -84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -40(%rbp), %rax
movslq -84(%rbp), %rcx
movl $-1, (%rax,%rcx,4)
movl -84(%rbp), %eax
addl $1, %eax
movl %eax, -84(%rbp)
LBB2_8: ## in Loop: Header=BB2_5 Depth=2
cmpl $0, -68(%rbp)
jle LBB2_10
## %bb.9: ## in Loop: Header=BB2_5 Depth=2
movl -60(%rbp), %edx
subl $1, %edx
movq -32(%rbp), %rax
movslq -84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -40(%rbp), %rax
movslq -84(%rbp), %rcx
movl $-1, (%rax,%rcx,4)
movl -84(%rbp), %eax
addl $1, %eax
movl %eax, -84(%rbp)
LBB2_10: ## in Loop: Header=BB2_5 Depth=2
movl -60(%rbp), %edx
movq -32(%rbp), %rax
movslq -84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -40(%rbp), %rax
movslq -84(%rbp), %rcx
movl $4, (%rax,%rcx,4)
movl -84(%rbp), %eax
addl $1, %eax
movl %eax, -84(%rbp)
movl -68(%rbp), %eax
movl -76(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB2_12
## %bb.11: ## in Loop: Header=BB2_5 Depth=2
movl -60(%rbp), %edx
addl $1, %edx
movq -32(%rbp), %rax
movslq -84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -40(%rbp), %rax
movslq -84(%rbp), %rcx
movl $-1, (%rax,%rcx,4)
movl -84(%rbp), %eax
addl $1, %eax
movl %eax, -84(%rbp)
LBB2_12: ## in Loop: Header=BB2_5 Depth=2
movl -64(%rbp), %eax
movl -76(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB2_14
## %bb.13: ## in Loop: Header=BB2_5 Depth=2
movl -60(%rbp), %edx
addl -76(%rbp), %edx
movq -32(%rbp), %rax
movslq -84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -40(%rbp), %rax
movslq -84(%rbp), %rcx
movl $-1, (%rax,%rcx,4)
movl -84(%rbp), %eax
addl $1, %eax
movl %eax, -84(%rbp)
LBB2_14: ## in Loop: Header=BB2_5 Depth=2
movl -60(%rbp), %eax
addl $1, %eax
movl %eax, -60(%rbp)
## %bb.15: ## in Loop: Header=BB2_5 Depth=2
movl -68(%rbp), %eax
addl $1, %eax
movl %eax, -68(%rbp)
jmp LBB2_5
LBB2_16: ## in Loop: Header=BB2_3 Depth=1
jmp LBB2_17
LBB2_17: ## in Loop: Header=BB2_3 Depth=1
movl -64(%rbp), %eax
addl $1, %eax
movl %eax, -64(%rbp)
jmp LBB2_3
LBB2_18:
movl -84(%rbp), %edx
movq -24(%rbp), %rax
movslq -60(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl $0, -64(%rbp)
LBB2_19: ## =>This Inner Loop Header: Depth=1
movl -64(%rbp), %eax
cmpl -88(%rbp), %eax
jge LBB2_22
## %bb.20: ## in Loop: Header=BB2_19 Depth=1
movq -48(%rbp), %rax
movslq -64(%rbp), %rcx
movl $1, (%rax,%rcx,4)
## %bb.21: ## in Loop: Header=BB2_19 Depth=1
movl -64(%rbp), %eax
addl $1, %eax
movl %eax, -64(%rbp)
jmp LBB2_19
LBB2_22:
callq _read_timer
movsd %xmm0, -112(%rbp)
movl $0, -116(%rbp)
movl $0, -60(%rbp)
LBB2_23: ## =>This Loop Header: Depth=1
## Child Loop BB2_25 Depth 2
movl -60(%rbp), %eax
cmpl -88(%rbp), %eax
jge LBB2_30
## %bb.24: ## in Loop: Header=BB2_23 Depth=1
movl $0, -120(%rbp)
movq -24(%rbp), %rax
movslq -60(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -72(%rbp)
LBB2_25: ## Parent Loop BB2_23 Depth=1
## => This Inner Loop Header: Depth=2
movl -72(%rbp), %eax
movq -24(%rbp), %rcx
movl -60(%rbp), %edx
addl $1, %edx
movslq %edx, %rdx
cmpl (%rcx,%rdx,4), %eax
jge LBB2_28
## %bb.26: ## in Loop: Header=BB2_25 Depth=2
movq -40(%rbp), %rax
movslq -72(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -48(%rbp), %rcx
movq -32(%rbp), %rdx
movslq -72(%rbp), %rsi
movslq (%rdx,%rsi,4), %rdx
imull (%rcx,%rdx,4), %eax
addl -120(%rbp), %eax
movl %eax, -120(%rbp)
movl -116(%rbp), %eax
addl $2, %eax
movl %eax, -116(%rbp)
## %bb.27: ## in Loop: Header=BB2_25 Depth=2
movl -72(%rbp), %eax
addl $1, %eax
movl %eax, -72(%rbp)
jmp LBB2_25
LBB2_28: ## in Loop: Header=BB2_23 Depth=1
movl -120(%rbp), %edx
movq -56(%rbp), %rax
movslq -60(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.29: ## in Loop: Header=BB2_23 Depth=1
movl -60(%rbp), %eax
addl $1, %eax
movl %eax, -60(%rbp)
jmp LBB2_23
LBB2_30:
callq _read_timer
subsd -112(%rbp), %xmm0
movsd %xmm0, -112(%rbp)
cvtsi2sdl -116(%rbp), %xmm0
movsd LCPI2_0(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd -112(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -128(%rbp)
movsd -112(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.3(%rip), %rdi
movb $1, %al
callq _printf
movsd -128(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.4(%rip), %rdi
movb $1, %al
callq _printf
movl $0, -60(%rbp)
LBB2_31: ## =>This Inner Loop Header: Depth=1
movl -60(%rbp), %eax
cmpl -88(%rbp), %eax
jge LBB2_36
## %bb.32: ## in Loop: Header=BB2_31 Depth=1
movq -56(%rbp), %rax
movslq -60(%rbp), %rcx
cmpl $0, (%rax,%rcx,4)
jge LBB2_34
## %bb.33: ## in Loop: Header=BB2_31 Depth=1
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -60(%rbp), %edx
movq -56(%rbp), %rax
movslq -60(%rbp), %rcx
movl (%rax,%rcx,4), %ecx
leaq L_.str.5(%rip), %rsi
movb $0, %al
callq _fprintf
LBB2_34: ## in Loop: Header=BB2_31 Depth=1
jmp LBB2_35
LBB2_35: ## in Loop: Header=BB2_31 Depth=1
movl -60(%rbp), %eax
addl $1, %eax
movl %eax, -60(%rbp)
jmp LBB2_31
LBB2_36:
movq -24(%rbp), %rdi
callq _free
movq -32(%rbp), %rdi
callq _free
movq -40(%rbp), %rdi
callq _free
movq -48(%rbp), %rdi
callq _free
movq -56(%rbp), %rdi
callq _free
xorl %eax, %eax
addq $128, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s:\n"
L_.str.1: ## @.str.1
.asciz "%s[%d][%d]:%d "
L_.str.2: ## @.str.2
.asciz "\n"
L_.str.3: ## @.str.3
.asciz "seq elasped time(s): %.4f\n"
L_.str.4: ## @.str.4
.asciz "GFlops: %.4f\n"
L_.str.5: ## @.str.5
.asciz "y[%d]=%d, fails consistency test\n"
.subsections_via_symbols
| the_stack_data/34512240.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _ptr_recorder@GOTPAGE
ldr x8, [x8, _ptr_recorder@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
mov x9, #64000
add x8, x8, x9
str x8, [sp, #16] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, le
tbnz w8, #0, LBB0_4
b LBB0_1
LBB0_1:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
bl _atoi
stur w0, [x29, #-24]
ldur w8, [x29, #-24]
subs w8, w8, #1000
cset w8, le
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
b LBB0_3
LBB0_3:
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
bl _atoi
stur w0, [x29, #-20]
b LBB0_4
LBB0_4:
ldr x8, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
stur wzr, [x29, #-28]
b LBB0_5
LBB0_5: ; =>This Loop Header: Depth=1
; Child Loop BB0_7 Depth 2
ldur w8, [x29, #-28]
ldur w9, [x29, #-24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_12
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldursw x0, [x29, #-20]
bl _malloc
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldursw x10, [x29, #-28]
mov x8, x0
str x8, [x9, x10, lsl #3]
str x0, [sp, #24]
str wzr, [sp, #32]
b LBB0_7
LBB0_7: ; Parent Loop BB0_5 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #32]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=2
ldr x9, [sp, #24]
mov w8, #1
strb w8, [x9]
ldr x8, [sp, #24]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_7 Depth=2
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_7
LBB0_10: ; in Loop: Header=BB0_5 Depth=1
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB0_5
LBB0_12:
b LBB0_13
LBB0_13: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-28]
subs w9, w8, #1
stur w9, [x29, #-28]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldursw x9, [x29, #-28]
ldr x0, [x8, x9, lsl #3]
bl _free
b LBB0_13
LBB0_15:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Error: request iter shall be less than or equal 1000\n."
l_.str.1: ; @.str.1
.asciz "%p\n"
.comm _ptr_recorder,8000,3 ; @ptr_recorder
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $2, -8(%rbp)
jle LBB0_4
## %bb.1:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _atoi
movl %eax, -24(%rbp)
cmpl $1000, -24(%rbp) ## imm = 0x3E8
jle LBB0_3
## %bb.2:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str(%rip), %rsi
movb $0, %al
callq _fprintf
LBB0_3:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
callq _atoi
movl %eax, -20(%rbp)
LBB0_4:
leaq L_.str.1(%rip), %rdi
movq _ptr_recorder@GOTPCREL(%rip), %rsi
addq $64000, %rsi ## imm = 0xFA00
movb $0, %al
callq _printf
movl $0, -28(%rbp)
LBB0_5: ## =>This Loop Header: Depth=1
## Child Loop BB0_7 Depth 2
movl -28(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB0_12
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movslq -20(%rbp), %rdi
callq _malloc
movslq -28(%rbp), %rdx
movq _ptr_recorder@GOTPCREL(%rip), %rcx
movq %rax, (%rcx,%rdx,8)
movq %rax, -40(%rbp)
movl $0, -32(%rbp)
LBB0_7: ## Parent Loop BB0_5 Depth=1
## => This Inner Loop Header: Depth=2
movl -32(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB0_10
## %bb.8: ## in Loop: Header=BB0_7 Depth=2
movq -40(%rbp), %rax
movb $1, (%rax)
movq -40(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.9: ## in Loop: Header=BB0_7 Depth=2
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB0_7
LBB0_10: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_11
LBB0_11: ## in Loop: Header=BB0_5 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_5
LBB0_12:
jmp LBB0_13
LBB0_13: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
movl %eax, %ecx
addl $-1, %ecx
movl %ecx, -28(%rbp)
cmpl $0, %eax
jl LBB0_15
## %bb.14: ## in Loop: Header=BB0_13 Depth=1
movslq -28(%rbp), %rcx
movq _ptr_recorder@GOTPCREL(%rip), %rax
movq (%rax,%rcx,8), %rdi
callq _free
jmp LBB0_13
LBB0_15:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Error: request iter shall be less than or equal 1000\n."
L_.str.1: ## @.str.1
.asciz "%p\n"
.comm _ptr_recorder,8000,4 ## @ptr_recorder
.subsections_via_symbols
| the_stack_data/62638162.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _subzero_present ; -- Begin function subzero_present
.p2align 2
_subzero_present: ; @subzero_present
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str w1, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _subzero ; -- Begin function subzero
.p2align 2
_subzero: ; @subzero
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str w1, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
mov w1, #0
str w1, [sp, #8] ; 4-byte Folded Spill
str wzr, [sp, #12]
add x0, sp, #16
str x0, [sp] ; 8-byte Folded Spill
bl _subzero_present
ldr x0, [sp] ; 8-byte Folded Reload
ldr w1, [sp, #8] ; 4-byte Folded Reload
bl _subzero
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
bl ___stack_chk_fail
LBB2_2:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.globl _n ; @n
.p2align 2
_n:
.long 10 ; 0xa
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _subzero_present ## -- Begin function subzero_present
.p2align 4, 0x90
_subzero_present: ## @subzero_present
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _subzero ## -- Begin function subzero
.p2align 4, 0x90
_subzero: ## @subzero
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -52(%rbp)
leaq -48(%rbp), %rdi
xorl %esi, %esi
callq _subzero_present
leaq -48(%rbp), %rdi
xorl %esi, %esi
callq _subzero
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB2_2
## %bb.1:
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
LBB2_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__const
.globl _n ## @n
.p2align 2
_n:
.long 10 ## 0xa
.subsections_via_symbols
| the_stack_data/93887964.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
str wzr, [sp, #4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _getchar
str w0, [sp, #8]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8]
subs w8, w8, #32
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8]
subs w8, w8, #9
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
mov w0, #10
bl _putchar
b LBB0_6
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr w0, [sp, #8]
bl _putchar
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_7:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
callq _getchar
movl %eax, -8(%rbp)
cmpl $-1, %eax
je LBB0_7
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
cmpl $32, -8(%rbp)
je LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
cmpl $9, -8(%rbp)
jne LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movl $10, %edi
callq _putchar
jmp LBB0_6
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %edi
callq _putchar
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_7:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/154831284.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/76699419.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub sp, sp, #1040
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #28]
str w0, [sp, #24]
str x1, [sp, #16]
add x0, sp, #32
str x0, [sp, #8] ; 8-byte Folded Spill
mov x1, #1000
bl _bzero
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov w8, #109
strb w8, [sp, #32]
mov w8, #97
strb w8, [sp, #33]
mov w8, #114
strb w8, [sp, #34]
mov w8, #115
strb w8, [sp, #35]
bl _reverse
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl ___stack_chk_fail
LBB0_2:
mov w0, #0
add sp, sp, #1040
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _reverse ; -- Begin function reverse
.p2align 2
_reverse: ; @reverse
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur wzr, [x29, #-12]
ldur x0, [x29, #-8]
bl _strlen
subs x8, x0, #1
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #16]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldur x8, [x29, #-8]
ldursw x9, [x29, #-12]
add x8, x8, x9
ldrb w8, [x8]
strb w8, [sp, #15]
ldur x8, [x29, #-8]
ldrsw x9, [sp, #16]
add x8, x8, x9
ldrb w8, [x8]
ldur x9, [x29, #-8]
ldursw x10, [x29, #-12]
add x9, x9, x10
strb w8, [x9]
ldrb w8, [sp, #15]
ldur x9, [x29, #-8]
ldrsw x10, [sp, #16]
add x9, x9, x10
strb w8, [x9]
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
ldr w8, [sp, #16]
subs w8, w8, #1
str w8, [sp, #16]
b LBB1_1
LBB1_3:
ldur x8, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\nReverse string is :%s"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $1024, %rsp ## imm = 0x400
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -1012(%rbp)
movl %edi, -1016(%rbp)
movq %rsi, -1024(%rbp)
leaq -1008(%rbp), %rdi
xorl %esi, %esi
movl $1000, %edx ## imm = 0x3E8
callq _memset
movb $109, -1008(%rbp)
movb $97, -1007(%rbp)
movb $114, -1006(%rbp)
movb $115, -1005(%rbp)
leaq -1008(%rbp), %rdi
callq _reverse
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_2
## %bb.1:
xorl %eax, %eax
addq $1024, %rsp ## imm = 0x400
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _reverse ## -- Begin function reverse
.p2align 4, 0x90
_reverse: ## @reverse
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movl $0, -12(%rbp)
movq -8(%rbp), %rdi
callq _strlen
subq $1, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -16(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -17(%rbp)
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movb %dl, (%rax,%rcx)
movb -17(%rbp), %dl
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
movl -16(%rbp), %eax
addl $-1, %eax
movl %eax, -16(%rbp)
jmp LBB1_1
LBB1_3:
movq -8(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\nReverse string is :%s"
.subsections_via_symbols
| the_stack_data/212643046.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pack2zone ; -- Begin function pack2zone
.p2align 2
_pack2zone: ; @pack2zone
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
ldur x0, [x29, #-8]
bl _strlen
mov x8, x0
str w8, [sp]
str wzr, [sp, #8]
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldr w9, [sp]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldrsw x9, [sp, #12]
add x8, x8, x9
ldrb w8, [x8]
strb w8, [sp, #7]
ldrsb w9, [sp, #7]
mov w8, #240
orr w9, w8, w9, asr #4
strb w9, [sp, #6]
ldrsb w9, [sp, #7]
orr w8, w8, w9
strb w8, [sp, #5]
ldrb w8, [sp, #6]
ldr x9, [sp, #16]
ldrsw x10, [sp, #8]
add x9, x9, x10
strb w8, [x9]
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
ldrb w8, [sp, #5]
ldr x9, [sp, #16]
ldrsw x10, [sp, #8]
add x9, x9, x10
strb w8, [x9]
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_1
LBB0_4:
ldur x8, [x29, #-8]
ldrsw x9, [sp, #12]
add x8, x8, x9
ldrb w8, [x8]
ldr x9, [sp, #16]
ldrsw x10, [sp, #8]
add x9, x9, x10
strb w8, [x9]
ldr x0, [sp, #16]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _keycmp ; -- Begin function keycmp
.p2align 2
_keycmp: ; @keycmp
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
ldur x0, [x29, #-8]
ldr x1, [sp, #16]
mov x2, #2
bl _memcmp
str w0, [sp, #12]
ldr w0, [sp, #12]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #28] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
adrp x8, l___const.main.a@PAGE
add x8, x8, l___const.main.a@PAGEOFF
ldrh w9, [x8]
sub x0, x29, #24
str x0, [sp, #40] ; 8-byte Folded Spill
sturh w9, [x29, #-24]
ldrb w8, [x8, #2]
sturb w8, [x29, #-22]
bl _strlen
mov x8, #2
mul x9, x8, x0
mov x8, #1
mul x0, x8, x9
bl _malloc
mov x8, x0
ldr x0, [sp, #40] ; 8-byte Folded Reload
stur x8, [x29, #-32]
ldur x8, [x29, #-32]
str x8, [sp, #32] ; 8-byte Folded Spill
bl _strlen
ldr w1, [sp, #28] ; 4-byte Folded Reload
mov x8, x0
ldr x0, [sp, #32] ; 8-byte Folded Reload
add x2, x8, #1
mov x3, #-1
bl ___memset_chk
ldr x0, [sp, #40] ; 8-byte Folded Reload
ldur x1, [x29, #-32]
bl _pack2zone
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
stur wzr, [x29, #-20]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldursw x8, [x29, #-20]
str x8, [sp, #16] ; 8-byte Folded Spill
sub x0, x29, #24
bl _strlen
ldr x8, [sp, #16] ; 8-byte Folded Reload
subs x8, x8, x0
cset w8, hs
tbnz w8, #0, LBB2_4
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldursw x9, [x29, #-20]
sub x8, x29, #24
ldrsb w10, [x8, x9]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB2_1
LBB2_4:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
stur wzr, [x29, #-20]
b LBB2_5
LBB2_5: ; =>This Inner Loop Header: Depth=1
ldursw x8, [x29, #-20]
str x8, [sp, #8] ; 8-byte Folded Spill
sub x0, x29, #24
bl _strlen
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, #2
mul x9, x9, x0
subs x9, x9, #1
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB2_8
b LBB2_6
LBB2_6: ; in Loop: Header=BB2_5 Depth=1
ldur x8, [x29, #-32]
ldursw x9, [x29, #-20]
ldrsb w10, [x8, x9]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB2_7
LBB2_7: ; in Loop: Header=BB2_5 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB2_5
LBB2_8:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l___const.main.a: ; @__const.main.a
.asciz "5\310"
l_.str: ; @.str
.asciz "in:"
l_.str.1: ; @.str.1
.asciz "%#x"
l_.str.2: ; @.str.2
.asciz ".\nout:"
l_.str.3: ; @.str.3
.asciz ".\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pack2zone ## -- Begin function pack2zone
.p2align 4, 0x90
_pack2zone: ## @pack2zone
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -32(%rbp)
movl $0, -24(%rbp)
movl $0, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
movl -32(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -25(%rbp)
movsbl -25(%rbp), %eax
sarl $4, %eax
orl $240, %eax
## kill: def $al killed $al killed $eax
movb %al, -26(%rbp)
movsbl -25(%rbp), %eax
orl $240, %eax
## kill: def $al killed $al killed $eax
movb %al, -27(%rbp)
movb -26(%rbp), %dl
movq -16(%rbp), %rax
movslq -24(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
movb -27(%rbp), %dl
movq -16(%rbp), %rax
movslq -24(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_1
LBB0_4:
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -16(%rbp), %rax
movslq -24(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -16(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _keycmp ## -- Begin function keycmp
.p2align 4, 0x90
_keycmp: ## @keycmp
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movl $2, %edx
callq _memcmp
movl %eax, -20(%rbp)
movl -20(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movw L___const.main.a(%rip), %ax
movw %ax, -23(%rbp)
movb L___const.main.a+2(%rip), %al
movb %al, -21(%rbp)
leaq -23(%rbp), %rdi
callq _strlen
movq %rax, %rdi
shlq $1, %rdi
shlq $0, %rdi
callq _malloc
movq %rax, -32(%rbp)
movq -32(%rbp), %rax
movq %rax, -40(%rbp) ## 8-byte Spill
leaq -23(%rbp), %rdi
callq _strlen
movq -40(%rbp), %rdi ## 8-byte Reload
movq %rax, %rdx
addq $1, %rdx
xorl %esi, %esi
movq $-1, %rcx
callq ___memset_chk
leaq -23(%rbp), %rdi
movq -32(%rbp), %rsi
callq _pack2zone
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -20(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movslq -20(%rbp), %rax
movq %rax, -48(%rbp) ## 8-byte Spill
leaq -23(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -48(%rbp), %rax ## 8-byte Reload
cmpq %rcx, %rax
jae LBB2_4
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movslq -20(%rbp), %rax
movsbl -23(%rbp,%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB2_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB2_1
LBB2_4:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -20(%rbp)
LBB2_5: ## =>This Inner Loop Header: Depth=1
movslq -20(%rbp), %rax
movq %rax, -56(%rbp) ## 8-byte Spill
leaq -23(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -56(%rbp), %rax ## 8-byte Reload
shlq $1, %rcx
subq $1, %rcx
cmpq %rcx, %rax
jae LBB2_8
## %bb.6: ## in Loop: Header=BB2_5 Depth=1
movq -32(%rbp), %rax
movslq -20(%rbp), %rcx
movsbl (%rax,%rcx), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.7: ## in Loop: Header=BB2_5 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB2_5
LBB2_8:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L___const.main.a: ## @__const.main.a
.asciz "5\310"
L_.str: ## @.str
.asciz "in:"
L_.str.1: ## @.str.1
.asciz "%#x"
L_.str.2: ## @.str.2
.asciz ".\nout:"
L_.str.3: ## @.str.3
.asciz ".\n"
.subsections_via_symbols
| the_stack_data/26701410.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #1
cset w8, le
mov w9, #1
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #8
cset w8, ge
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbnz w8, #0, LBB0_1
b LBB0_5
LBB0_5:
stur wzr, [x29, #-12]
b LBB0_6
LBB0_6: ; =>This Loop Header: Depth=1
; Child Loop BB0_8 Depth 2
ldur w8, [x29, #-12]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_13
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_6 Depth=1
str wzr, [sp, #16]
b LBB0_8
LBB0_8: ; Parent Loop BB0_6 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #16]
ldur w9, [x29, #-12]
add w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_11
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_8 Depth=2
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_8 Depth=2
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_8
LBB0_11: ; in Loop: Header=BB0_6 Depth=1
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_6 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_6
LBB0_13:
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Input pyramid height from 1 to 8: "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "#"
l_.str.3: ; @.str.3
.asciz "\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movb $1, %al
cmpl $1, -8(%rbp)
movb %al, -17(%rbp) ## 1-byte Spill
jle LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
cmpl $8, -8(%rbp)
setge %al
movb %al, -17(%rbp) ## 1-byte Spill
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movb -17(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_1
## %bb.5:
movl $0, -12(%rbp)
LBB0_6: ## =>This Loop Header: Depth=1
## Child Loop BB0_8 Depth 2
movl -12(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_13
## %bb.7: ## in Loop: Header=BB0_6 Depth=1
movl $0, -16(%rbp)
LBB0_8: ## Parent Loop BB0_6 Depth=1
## => This Inner Loop Header: Depth=2
movl -16(%rbp), %eax
movl -12(%rbp), %ecx
addl $1, %ecx
cmpl %ecx, %eax
jge LBB0_11
## %bb.9: ## in Loop: Header=BB0_8 Depth=2
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.10: ## in Loop: Header=BB0_8 Depth=2
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_8
LBB0_11: ## in Loop: Header=BB0_6 Depth=1
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
## %bb.12: ## in Loop: Header=BB0_6 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_6
LBB0_13:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Input pyramid height from 1 to 8: "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "#"
L_.str.3: ## @.str.3
.asciz "\n"
.subsections_via_symbols
| the_stack_data/200144178.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub sp, sp, #1168
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #32]
mov w8, #-1
str w8, [sp, #16]
add x0, sp, #36
mov x1, #1024
bl _bzero
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
sub x0, x29, #124
str x0, [sp, #8] ; 8-byte Folded Spill
bl _gets
ldr x0, [sp, #8] ; 8-byte Folded Reload
bl _strlen
mov x8, x0
str w8, [sp, #20]
str wzr, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #24]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #24]
sub x8, x29, #124
ldrsb x9, [x8, x9]
add x8, sp, #36
add x9, x8, x9, lsl #2
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_1
LBB0_4:
str wzr, [sp, #24]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #24]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #16]
ldrsw x10, [sp, #24]
sub x9, x29, #124
ldrsb x10, [x9, x10]
add x9, sp, #36
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldrsw x9, [sp, #24]
sub x8, x29, #124
ldrsb x10, [x8, x9]
add x9, sp, #36
ldr w9, [x9, x10, lsl #2]
str w9, [sp, #16]
ldrsw x9, [sp, #24]
add x8, x8, x9
ldrb w8, [x8]
strb w8, [sp, #31]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_5 Depth=1
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_5
LBB0_10:
ldrsb w10, [sp, #31]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
bl ___stack_chk_fail
LBB0_12:
mov w0, #0
add sp, sp, #1168
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\n Please Enter any String : "
l_.str.1: ; @.str.1
.asciz "\n The Maximum Occurring Character in a Given String = %c "
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $1168, %rsp ## imm = 0x490
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -1140(%rbp)
movl $-1, -1156(%rbp)
leaq -1136(%rbp), %rdi
xorl %esi, %esi
movl $1024, %edx ## imm = 0x400
callq _memset
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq -112(%rbp), %rdi
callq _gets
leaq -112(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -1152(%rbp)
movl $0, -1148(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -1148(%rbp), %eax
cmpl -1152(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -1148(%rbp), %rax
movsbq -112(%rbp,%rax), %rax
movl -1136(%rbp,%rax,4), %ecx
addl $1, %ecx
movl %ecx, -1136(%rbp,%rax,4)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -1148(%rbp), %eax
addl $1, %eax
movl %eax, -1148(%rbp)
jmp LBB0_1
LBB0_4:
movl $0, -1148(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movl -1148(%rbp), %eax
cmpl -1152(%rbp), %eax
jge LBB0_10
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl -1156(%rbp), %eax
movslq -1148(%rbp), %rcx
movsbq -112(%rbp,%rcx), %rcx
cmpl -1136(%rbp,%rcx,4), %eax
jge LBB0_8
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movslq -1148(%rbp), %rax
movsbq -112(%rbp,%rax), %rax
movl -1136(%rbp,%rax,4), %eax
movl %eax, -1156(%rbp)
movslq -1148(%rbp), %rax
movb -112(%rbp,%rax), %al
movb %al, -1141(%rbp)
LBB0_8: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_5 Depth=1
movl -1148(%rbp), %eax
addl $1, %eax
movl %eax, -1148(%rbp)
jmp LBB0_5
LBB0_10:
movsbl -1141(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_12
## %bb.11:
xorl %eax, %eax
addq $1168, %rsp ## imm = 0x490
popq %rbp
retq
LBB0_12:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\n Please Enter any String : "
L_.str.1: ## @.str.1
.asciz "\n The Maximum Occurring Character in a Given String = %c "
.subsections_via_symbols
| the_stack_data/29826408.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
str x1, [sp, #16]
mov x9, sp
adrp x8, _main@PAGE
add x8, x8, _main@PAGEOFF
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x0, #57600
movk x0, #1525, lsl #16
bl _malloc
mov x8, sp
str x0, [x8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
add x8, sp, #12
mov w9, #3
str w9, [sp, #12]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr w0, [sp, #12]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "location of code: %p\n"
l_.str.1: ; @.str.1
.asciz "location of heap: %p\n"
l_.str.2: ; @.str.2
.asciz "location of stack: %p\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
leaq L_.str(%rip), %rdi
leaq _main(%rip), %rsi
movb $0, %al
callq _printf
movl $100000000, %edi ## imm = 0x5F5E100
callq _malloc
movq %rax, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl $3, -20(%rbp)
leaq L_.str.2(%rip), %rdi
leaq -20(%rbp), %rsi
movb $0, %al
callq _printf
movl -20(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "location of code: %p\n"
L_.str.1: ## @.str.1
.asciz "location of heap: %p\n"
L_.str.2: ## @.str.2
.asciz "location of stack: %p\n"
.subsections_via_symbols
| the_stack_data/105970.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _qsort ; -- Begin function qsort
.p2align 2
_qsort: ; @qsort
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub sp, sp, #912
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #104]
str x1, [sp, #96]
str x2, [sp, #88]
str x3, [sp, #80]
ldr x8, [sp, #88]
ldr x9, [sp, #96]
mul x8, x8, x9
str x8, [sp, #64]
adrp x8, l___const.qsort.p@PAGE
add x8, x8, l___const.qsort.p@PAGEOFF
ldr q0, [x8]
str q0, [sp, #112]
mov w8, #1
str w8, [sp, #44]
ldr x8, [sp, #64]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
b LBB0_27
LBB0_2:
ldr x8, [sp, #104]
str x8, [sp, #56]
ldr x8, [sp, #56]
ldr x9, [sp, #64]
add x8, x8, x9
ldr x9, [sp, #88]
subs x8, x8, x9
str x8, [sp, #48]
ldr x8, [sp, #88]
str x8, [sp, #144]
str x8, [sp, #136]
mov x8, #2
str x8, [sp, #72]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #72]
subs x8, x8, #2
add x9, sp, #136
ldr x8, [x9, x8, lsl #3]
ldr x10, [sp, #72]
subs x10, x10, #1
ldr x10, [x9, x10, lsl #3]
add x8, x8, x10
ldr x10, [sp, #88]
add x8, x8, x10
ldr x10, [sp, #72]
str x8, [x9, x10, lsl #3]
ldr x9, [sp, #64]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
b LBB0_3
LBB0_6:
b LBB0_7
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #56]
ldr x9, [sp, #48]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_18
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=1
ldr x8, [sp, #112]
and x8, x8, #0x3
subs x8, x8, #3
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_7 Depth=1
ldr x0, [sp, #56]
ldr x1, [sp, #88]
ldr x2, [sp, #80]
ldr w3, [sp, #44]
add x4, sp, #136
bl _sift
add x0, sp, #112
mov w1, #2
bl _shr
ldr w8, [sp, #44]
add w8, w8, #2
str w8, [sp, #44]
b LBB0_17
LBB0_10: ; in Loop: Header=BB0_7 Depth=1
ldr w8, [sp, #44]
subs w9, w8, #1
add x8, sp, #136
ldr x8, [x8, w9, sxtw #3]
ldr x9, [sp, #48]
ldr x10, [sp, #56]
subs x9, x9, x10
subs x8, x8, x9
cset w8, lo
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_7 Depth=1
ldr x0, [sp, #56]
ldr x1, [sp, #88]
ldr x2, [sp, #80]
ldr w4, [sp, #44]
add x3, sp, #112
mov w5, #0
add x6, sp, #136
bl _trinkle
b LBB0_13
LBB0_12: ; in Loop: Header=BB0_7 Depth=1
ldr x0, [sp, #56]
ldr x1, [sp, #88]
ldr x2, [sp, #80]
ldr w3, [sp, #44]
add x4, sp, #136
bl _sift
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_7 Depth=1
ldr w8, [sp, #44]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_7 Depth=1
add x0, sp, #112
mov w1, #1
bl _shl
str wzr, [sp, #44]
b LBB0_16
LBB0_15: ; in Loop: Header=BB0_7 Depth=1
ldr w8, [sp, #44]
mov w9, #1
str w9, [sp, #36] ; 4-byte Folded Spill
subs w1, w8, #1
add x0, sp, #112
bl _shl
ldr w8, [sp, #36] ; 4-byte Folded Reload
str w8, [sp, #44]
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_7 Depth=1
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_7 Depth=1
ldr x8, [sp, #112]
orr x8, x8, #0x1
str x8, [sp, #112]
ldr x9, [sp, #88]
ldr x8, [sp, #56]
add x8, x8, x9
str x8, [sp, #56]
b LBB0_7
LBB0_18:
ldr x0, [sp, #56]
ldr x1, [sp, #88]
ldr x2, [sp, #80]
ldr w4, [sp, #44]
add x3, sp, #112
mov w5, #0
add x6, sp, #136
bl _trinkle
b LBB0_19
LBB0_19: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #44]
subs w8, w8, #1
cset w8, ne
mov w9, #1
str w9, [sp, #32] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_22
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_19 Depth=1
ldr x8, [sp, #112]
subs x8, x8, #1
cset w8, ne
mov w9, #1
str w9, [sp, #32] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_19 Depth=1
ldr x8, [sp, #120]
subs x8, x8, #0
cset w8, ne
str w8, [sp, #32] ; 4-byte Folded Spill
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_19 Depth=1
ldr w8, [sp, #32] ; 4-byte Folded Reload
tbz w8, #0, LBB0_27
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_19 Depth=1
ldr w8, [sp, #44]
subs w8, w8, #1
cset w8, gt
tbnz w8, #0, LBB0_25
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_19 Depth=1
add x0, sp, #112
str x0, [sp, #24] ; 8-byte Folded Spill
bl _pntz
mov x8, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
str w8, [sp, #40]
ldr w1, [sp, #40]
bl _shr
ldr w9, [sp, #40]
ldr w8, [sp, #44]
add w8, w8, w9
str w8, [sp, #44]
b LBB0_26
LBB0_25: ; in Loop: Header=BB0_19 Depth=1
add x0, sp, #112
str x0, [sp] ; 8-byte Folded Spill
mov w1, #2
bl _shl
ldr x0, [sp] ; 8-byte Folded Reload
ldr w8, [sp, #44]
subs w8, w8, #2
str w8, [sp, #44]
ldr x8, [sp, #112]
eor x8, x8, #0x7
str x8, [sp, #112]
mov w1, #1
str w1, [sp, #12] ; 4-byte Folded Spill
bl _shr
ldr x3, [sp] ; 8-byte Folded Reload
ldr w5, [sp, #12] ; 4-byte Folded Reload
ldr x8, [sp, #56]
ldrsw x9, [sp, #44]
add x6, sp, #136
str x6, [sp, #16] ; 8-byte Folded Spill
ldr x9, [x6, x9, lsl #3]
subs x8, x8, x9
ldr x9, [sp, #88]
subs x0, x8, x9
ldr x1, [sp, #88]
ldr x2, [sp, #80]
ldr w8, [sp, #44]
add w4, w8, #1
bl _trinkle
ldr x0, [sp] ; 8-byte Folded Reload
ldr w1, [sp, #12] ; 4-byte Folded Reload
bl _shl
ldr x3, [sp] ; 8-byte Folded Reload
ldr w5, [sp, #12] ; 4-byte Folded Reload
ldr x6, [sp, #16] ; 8-byte Folded Reload
ldr x8, [sp, #112]
orr x8, x8, #0x1
str x8, [sp, #112]
ldr x8, [sp, #56]
ldr x9, [sp, #88]
subs x0, x8, x9
ldr x1, [sp, #88]
ldr x2, [sp, #80]
ldr w4, [sp, #44]
bl _trinkle
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_19 Depth=1
ldr x9, [sp, #88]
ldr x8, [sp, #56]
subs x8, x8, x9
str x8, [sp, #56]
b LBB0_19
LBB0_27:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_29
b LBB0_28
LBB0_28:
bl ___stack_chk_fail
LBB0_29:
add sp, sp, #912
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function sift
_sift: ; @sift
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub sp, sp, #976
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #56]
str x1, [sp, #48]
str x2, [sp, #40]
str w3, [sp, #36]
str x4, [sp, #24]
mov w8, #1
str w8, [sp, #4]
ldr x8, [sp, #56]
str x8, [sp, #64]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB1_9
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #56]
ldr x9, [sp, #48]
subs x8, x8, x9
str x8, [sp, #16]
ldr x8, [sp, #56]
ldr x9, [sp, #48]
subs x8, x8, x9
ldr x9, [sp, #24]
ldr w10, [sp, #36]
subs w10, w10, #2
ldr x9, [x9, w10, sxtw #3]
subs x8, x8, x9
str x8, [sp, #8]
ldr x8, [sp, #40]
ldr x0, [sp, #64]
ldr x1, [sp, #8]
blr x8
subs w8, w0, #0
cset w8, lt
tbnz w8, #0, LBB1_5
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #40]
ldr x0, [sp, #64]
ldr x1, [sp, #16]
blr x8
subs w8, w0, #0
cset w8, lt
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4:
b LBB1_9
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #40]
ldr x0, [sp, #8]
ldr x1, [sp, #16]
blr x8
subs w8, w0, #0
cset w8, lt
tbnz w8, #0, LBB1_7
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #8]
ldrsw x10, [sp, #4]
mov x9, x10
add w9, w9, #1
str w9, [sp, #4]
add x9, sp, #64
str x8, [x9, x10, lsl #3]
ldr x8, [sp, #8]
str x8, [sp, #56]
ldr w8, [sp, #36]
subs w8, w8, #1
str w8, [sp, #36]
b LBB1_8
LBB1_7: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #16]
ldrsw x10, [sp, #4]
mov x9, x10
add w9, w9, #1
str w9, [sp, #4]
add x9, sp, #64
str x8, [x9, x10, lsl #3]
ldr x8, [sp, #16]
str x8, [sp, #56]
ldr w8, [sp, #36]
subs w8, w8, #2
str w8, [sp, #36]
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_1 Depth=1
b LBB1_1
LBB1_9:
ldr x0, [sp, #48]
ldr w2, [sp, #4]
add x1, sp, #64
bl _cycle
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_11
b LBB1_10
LBB1_10:
bl ___stack_chk_fail
LBB1_11:
add sp, sp, #976
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function shr
_shr: ; @shr
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str w1, [sp, #4]
ldrsw x8, [sp, #4]
subs x8, x8, #64
cset w8, lo
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldrsw x8, [sp, #4]
subs x8, x8, #64
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #4]
ldr x8, [sp, #8]
ldr x8, [x8, #8]
ldr x9, [sp, #8]
str x8, [x9]
ldr x8, [sp, #8]
str xzr, [x8, #8]
b LBB2_2
LBB2_2:
ldr w8, [sp, #4]
mov x10, x8
ldr x9, [sp, #8]
ldr x8, [x9]
lsr x8, x8, x10
str x8, [x9]
ldr x8, [sp, #8]
ldr x8, [x8, #8]
ldrsw x10, [sp, #4]
mov x9, #64
subs x9, x9, x10
lsl x10, x8, x9
ldr x9, [sp, #8]
ldr x8, [x9]
orr x8, x8, x10
str x8, [x9]
ldr w8, [sp, #4]
mov x10, x8
ldr x9, [sp, #8]
ldr x8, [x9, #8]
lsr x8, x8, x10
str x8, [x9, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function trinkle
_trinkle: ; @trinkle
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub sp, sp, #1024
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #88]
str x1, [sp, #80]
str x2, [sp, #72]
str x3, [sp, #64]
str w4, [sp, #60]
str w5, [sp, #56]
str x6, [sp, #48]
mov w8, #1
str w8, [sp, #20]
ldr x8, [sp, #64]
ldr x8, [x8]
stur x8, [x29, #-40]
ldr x8, [sp, #64]
ldr x8, [x8, #8]
stur x8, [x29, #-32]
ldr x8, [sp, #88]
str x8, [sp, #96]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-40]
subs x8, x8, #1
cset w8, ne
mov w9, #1
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB3_3
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, ne
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB3_13
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #88]
ldr x9, [sp, #48]
ldrsw x10, [sp, #60]
ldr x9, [x9, x10, lsl #3]
subs x8, x8, x9
str x8, [sp, #40]
ldr x8, [sp, #72]
ldr x0, [sp, #40]
ldr x1, [sp, #96]
blr x8
subs w8, w0, #0
cset w8, gt
tbnz w8, #0, LBB3_6
b LBB3_5
LBB3_5:
b LBB3_13
LBB3_6: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #56]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB3_12
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #60]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB3_12
b LBB3_8
LBB3_8: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #88]
ldr x9, [sp, #80]
subs x8, x8, x9
str x8, [sp, #32]
ldr x8, [sp, #88]
ldr x9, [sp, #80]
subs x8, x8, x9
ldr x9, [sp, #48]
ldr w10, [sp, #60]
subs w10, w10, #2
ldr x9, [x9, w10, sxtw #3]
subs x8, x8, x9
str x8, [sp, #24]
ldr x8, [sp, #72]
ldr x0, [sp, #32]
ldr x1, [sp, #40]
blr x8
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB3_10
b LBB3_9
LBB3_9: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #72]
ldr x0, [sp, #24]
ldr x1, [sp, #40]
blr x8
subs w8, w0, #0
cset w8, lt
tbnz w8, #0, LBB3_11
b LBB3_10
LBB3_10:
b LBB3_13
LBB3_11: ; in Loop: Header=BB3_1 Depth=1
b LBB3_12
LBB3_12: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #40]
ldrsw x10, [sp, #20]
mov x9, x10
add w9, w9, #1
str w9, [sp, #20]
add x9, sp, #96
str x8, [x9, x10, lsl #3]
ldr x8, [sp, #40]
str x8, [sp, #88]
sub x0, x29, #40
str x0, [sp] ; 8-byte Folded Spill
bl _pntz
mov x8, x0
ldr x0, [sp] ; 8-byte Folded Reload
str w8, [sp, #16]
ldr w1, [sp, #16]
bl _shr
ldr w9, [sp, #16]
ldr w8, [sp, #60]
add w8, w8, w9
str w8, [sp, #60]
str wzr, [sp, #56]
b LBB3_1
LBB3_13:
ldr w8, [sp, #56]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB3_15
b LBB3_14
LBB3_14:
ldr x0, [sp, #80]
ldr w2, [sp, #20]
add x1, sp, #96
bl _cycle
ldr x0, [sp, #88]
ldr x1, [sp, #80]
ldr x2, [sp, #72]
ldr w3, [sp, #60]
ldr x4, [sp, #48]
bl _sift
b LBB3_15
LBB3_15:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB3_17
b LBB3_16
LBB3_16:
bl ___stack_chk_fail
LBB3_17:
add sp, sp, #1024
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function shl
_shl: ; @shl
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str w1, [sp, #4]
ldrsw x8, [sp, #4]
subs x8, x8, #64
cset w8, lo
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
ldrsw x8, [sp, #4]
subs x8, x8, #64
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #4]
ldr x8, [sp, #8]
ldr x8, [x8]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldr x8, [sp, #8]
str xzr, [x8]
b LBB4_2
LBB4_2:
ldr w8, [sp, #4]
mov x10, x8
ldr x9, [sp, #8]
ldr x8, [x9, #8]
lsl x8, x8, x10
str x8, [x9, #8]
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsw x10, [sp, #4]
mov x9, #64
subs x9, x9, x10
lsr x10, x8, x9
ldr x9, [sp, #8]
ldr x8, [x9, #8]
orr x8, x8, x10
str x8, [x9, #8]
ldr w8, [sp, #4]
mov x10, x8
ldr x9, [sp, #8]
ldr x8, [x9]
lsl x8, x8, x10
str x8, [x9]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function pntz
_pntz: ; @pntz
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #16]
ldr x8, [sp, #16]
ldr x8, [x8]
subs x8, x8, #1
rbit x8, x8
clz x8, x8
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
ldr x8, [sp, #16]
ldr x8, [x8, #8]
rbit x8, x8
clz x8, x8
sxtw x8, w8
add x8, x8, #64
mov x9, x8
str w9, [sp, #12]
sxtw x8, w8
subs x8, x8, #64
cset w8, eq
tbnz w8, #0, LBB5_3
b LBB5_2
LBB5_2:
ldr w8, [sp, #12]
str w8, [sp, #28]
b LBB5_4
LBB5_3:
str wzr, [sp, #28]
b LBB5_4
LBB5_4:
ldr w0, [sp, #28]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function cycle
_cycle: ; @cycle
.cfi_startproc
; %bb.0:
sub sp, sp, #352
.cfi_def_cfa_offset 352
stp x28, x27, [sp, #320] ; 16-byte Folded Spill
stp x29, x30, [sp, #336] ; 16-byte Folded Spill
add x29, sp, #336
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #48]
str x1, [sp, #40]
str w2, [sp, #36]
ldr w8, [sp, #36]
subs w8, w8, #2
cset w8, ge
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
b LBB6_12
LBB6_2:
ldr x9, [sp, #40]
ldrsw x10, [sp, #36]
add x8, sp, #56
str x8, [x9, x10, lsl #3]
b LBB6_3
LBB6_3: ; =>This Loop Header: Depth=1
; Child Loop BB6_8 Depth 2
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB6_12
b LBB6_4
LBB6_4: ; in Loop: Header=BB6_3 Depth=1
ldr x9, [sp, #48]
mov x8, #256
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB6_6
b LBB6_5
LBB6_5: ; in Loop: Header=BB6_3 Depth=1
mov x8, #256
str x8, [sp, #8] ; 8-byte Folded Spill
b LBB6_7
LBB6_6: ; in Loop: Header=BB6_3 Depth=1
ldr x8, [sp, #48]
str x8, [sp, #8] ; 8-byte Folded Spill
b LBB6_7
LBB6_7: ; in Loop: Header=BB6_3 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
str x8, [sp, #24]
ldr x8, [sp, #40]
ldrsw x9, [sp, #36]
ldr x0, [x8, x9, lsl #3]
ldr x8, [sp, #40]
ldr x1, [x8]
ldr x2, [sp, #24]
mov x3, #-1
bl ___memcpy_chk
str wzr, [sp, #20]
b LBB6_8
LBB6_8: ; Parent Loop BB6_3 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #20]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB6_11
b LBB6_9
LBB6_9: ; in Loop: Header=BB6_8 Depth=2
ldr x8, [sp, #40]
ldrsw x9, [sp, #20]
ldr x0, [x8, x9, lsl #3]
ldr x8, [sp, #40]
ldr w9, [sp, #20]
add w9, w9, #1
ldr x1, [x8, w9, sxtw #3]
ldr x2, [sp, #24]
mov x3, #-1
bl ___memcpy_chk
ldr x10, [sp, #24]
ldr x8, [sp, #40]
ldrsw x9, [sp, #20]
add x9, x8, x9, lsl #3
ldr x8, [x9]
add x8, x8, x10
str x8, [x9]
b LBB6_10
LBB6_10: ; in Loop: Header=BB6_8 Depth=2
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB6_8
LBB6_11: ; in Loop: Header=BB6_3 Depth=1
ldr x9, [sp, #24]
ldr x8, [sp, #48]
subs x8, x8, x9
str x8, [sp, #48]
b LBB6_3
LBB6_12:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB6_14
b LBB6_13
LBB6_13:
bl ___stack_chk_fail
LBB6_14:
ldp x29, x30, [sp, #336] ; 16-byte Folded Reload
ldp x28, x27, [sp, #320] ; 16-byte Folded Reload
add sp, sp, #352
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal16,16byte_literals
.p2align 3 ; @__const.qsort.p
l___const.qsort.p:
.quad 1 ; 0x1
.quad 0 ; 0x0
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _qsort ## -- Begin function qsort
.p2align 4, 0x90
_qsort: ## @qsort
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $896, %rsp ## imm = 0x380
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -808(%rbp)
movq %rsi, -816(%rbp)
movq %rdx, -824(%rbp)
movq %rcx, -832(%rbp)
movq -824(%rbp), %rax
imulq -816(%rbp), %rax
movq %rax, -848(%rbp)
movq L___const.qsort.p(%rip), %rax
movq %rax, -800(%rbp)
movq L___const.qsort.p+8(%rip), %rax
movq %rax, -792(%rbp)
movl $1, -868(%rbp)
cmpq $0, -848(%rbp)
jne LBB0_2
## %bb.1:
jmp LBB0_27
LBB0_2:
movq -808(%rbp), %rax
movq %rax, -856(%rbp)
movq -856(%rbp), %rax
addq -848(%rbp), %rax
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq -824(%rbp), %rcx
addq %rcx, %rax
movq %rax, -864(%rbp)
movq -824(%rbp), %rax
movq %rax, -776(%rbp)
movq %rax, -784(%rbp)
movq $2, -840(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq -840(%rbp), %rax
subq $2, %rax
movq -784(%rbp,%rax,8), %rax
movq -840(%rbp), %rcx
subq $1, %rcx
addq -784(%rbp,%rcx,8), %rax
addq -824(%rbp), %rax
movq -840(%rbp), %rcx
movq %rax, -784(%rbp,%rcx,8)
cmpq -848(%rbp), %rax
jae LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_3 Depth=1
movq -840(%rbp), %rax
addq $1, %rax
movq %rax, -840(%rbp)
jmp LBB0_3
LBB0_6:
jmp LBB0_7
LBB0_7: ## =>This Inner Loop Header: Depth=1
movq -856(%rbp), %rax
cmpq -864(%rbp), %rax
jae LBB0_18
## %bb.8: ## in Loop: Header=BB0_7 Depth=1
movq -800(%rbp), %rax
andq $3, %rax
cmpq $3, %rax
jne LBB0_10
## %bb.9: ## in Loop: Header=BB0_7 Depth=1
movq -856(%rbp), %rdi
movq -824(%rbp), %rsi
movq -832(%rbp), %rdx
movl -868(%rbp), %ecx
leaq -784(%rbp), %r8
callq _sift
leaq -800(%rbp), %rdi
movl $2, %esi
callq _shr
movl -868(%rbp), %eax
addl $2, %eax
movl %eax, -868(%rbp)
jmp LBB0_17
LBB0_10: ## in Loop: Header=BB0_7 Depth=1
movl -868(%rbp), %eax
subl $1, %eax
cltq
movq -784(%rbp,%rax,8), %rax
movq -864(%rbp), %rcx
movq -856(%rbp), %rdx
subq %rdx, %rcx
cmpq %rcx, %rax
jb LBB0_12
## %bb.11: ## in Loop: Header=BB0_7 Depth=1
movq -856(%rbp), %rdi
movq -824(%rbp), %rsi
movq -832(%rbp), %rdx
leaq -800(%rbp), %rcx
movl -868(%rbp), %r8d
leaq -784(%rbp), %rax
xorl %r9d, %r9d
movq %rax, (%rsp)
callq _trinkle
jmp LBB0_13
LBB0_12: ## in Loop: Header=BB0_7 Depth=1
movq -856(%rbp), %rdi
movq -824(%rbp), %rsi
movq -832(%rbp), %rdx
movl -868(%rbp), %ecx
leaq -784(%rbp), %r8
callq _sift
LBB0_13: ## in Loop: Header=BB0_7 Depth=1
cmpl $1, -868(%rbp)
jne LBB0_15
## %bb.14: ## in Loop: Header=BB0_7 Depth=1
leaq -800(%rbp), %rdi
movl $1, %esi
callq _shl
movl $0, -868(%rbp)
jmp LBB0_16
LBB0_15: ## in Loop: Header=BB0_7 Depth=1
leaq -800(%rbp), %rdi
movl -868(%rbp), %esi
subl $1, %esi
callq _shl
movl $1, -868(%rbp)
LBB0_16: ## in Loop: Header=BB0_7 Depth=1
jmp LBB0_17
LBB0_17: ## in Loop: Header=BB0_7 Depth=1
movq -800(%rbp), %rax
orq $1, %rax
movq %rax, -800(%rbp)
movq -824(%rbp), %rax
addq -856(%rbp), %rax
movq %rax, -856(%rbp)
jmp LBB0_7
LBB0_18:
movq -856(%rbp), %rdi
movq -824(%rbp), %rsi
movq -832(%rbp), %rdx
leaq -800(%rbp), %rcx
movl -868(%rbp), %r8d
leaq -784(%rbp), %rax
xorl %r9d, %r9d
movq %rax, (%rsp)
callq _trinkle
LBB0_19: ## =>This Inner Loop Header: Depth=1
movb $1, %al
cmpl $1, -868(%rbp)
movb %al, -873(%rbp) ## 1-byte Spill
jne LBB0_22
## %bb.20: ## in Loop: Header=BB0_19 Depth=1
movb $1, %al
cmpq $1, -800(%rbp)
movb %al, -873(%rbp) ## 1-byte Spill
jne LBB0_22
## %bb.21: ## in Loop: Header=BB0_19 Depth=1
cmpq $0, -792(%rbp)
setne %al
movb %al, -873(%rbp) ## 1-byte Spill
LBB0_22: ## in Loop: Header=BB0_19 Depth=1
movb -873(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_23
jmp LBB0_27
LBB0_23: ## in Loop: Header=BB0_19 Depth=1
cmpl $1, -868(%rbp)
jg LBB0_25
## %bb.24: ## in Loop: Header=BB0_19 Depth=1
leaq -800(%rbp), %rdi
callq _pntz
movl %eax, -872(%rbp)
leaq -800(%rbp), %rdi
movl -872(%rbp), %esi
callq _shr
movl -872(%rbp), %eax
addl -868(%rbp), %eax
movl %eax, -868(%rbp)
jmp LBB0_26
LBB0_25: ## in Loop: Header=BB0_19 Depth=1
leaq -800(%rbp), %rdi
movl $2, %esi
callq _shl
movl -868(%rbp), %eax
subl $2, %eax
movl %eax, -868(%rbp)
movq -800(%rbp), %rax
xorq $7, %rax
movq %rax, -800(%rbp)
leaq -800(%rbp), %rdi
movl $1, %esi
callq _shr
movq -856(%rbp), %rdi
movslq -868(%rbp), %rcx
xorl %eax, %eax
## kill: def $rax killed $eax
subq -784(%rbp,%rcx,8), %rax
addq %rax, %rdi
xorl %eax, %eax
## kill: def $rax killed $eax
subq -824(%rbp), %rax
addq %rax, %rdi
movq -824(%rbp), %rsi
movq -832(%rbp), %rdx
leaq -800(%rbp), %rcx
movl -868(%rbp), %r8d
addl $1, %r8d
leaq -784(%rbp), %rax
movl $1, %r9d
movq %rax, (%rsp)
callq _trinkle
leaq -800(%rbp), %rdi
movl $1, %esi
callq _shl
movq -800(%rbp), %rax
orq $1, %rax
movq %rax, -800(%rbp)
movq -856(%rbp), %rdi
xorl %eax, %eax
## kill: def $rax killed $eax
subq -824(%rbp), %rax
addq %rax, %rdi
movq -824(%rbp), %rsi
movq -832(%rbp), %rdx
leaq -800(%rbp), %rcx
movl -868(%rbp), %r8d
leaq -784(%rbp), %rax
movl $1, %r9d
movq %rax, (%rsp)
callq _trinkle
LBB0_26: ## in Loop: Header=BB0_19 Depth=1
movq -824(%rbp), %rdx
movq -856(%rbp), %rax
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -856(%rbp)
jmp LBB0_19
LBB0_27:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_29
## %bb.28:
addq $896, %rsp ## imm = 0x380
popq %rbp
retq
LBB0_29:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function sift
_sift: ## @sift
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $976, %rsp ## imm = 0x3D0
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -920(%rbp)
movq %rsi, -928(%rbp)
movq %rdx, -936(%rbp)
movl %ecx, -940(%rbp)
movq %r8, -952(%rbp)
movl $1, -972(%rbp)
movq -920(%rbp), %rax
movq %rax, -912(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $1, -940(%rbp)
jle LBB1_9
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -920(%rbp), %rax
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq -928(%rbp), %rcx
addq %rcx, %rax
movq %rax, -960(%rbp)
movq -920(%rbp), %rax
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq -928(%rbp), %rcx
addq %rcx, %rax
movq -952(%rbp), %rdx
movl -940(%rbp), %ecx
subl $2, %ecx
movslq %ecx, %rsi
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq (%rdx,%rsi,8), %rcx
addq %rcx, %rax
movq %rax, -968(%rbp)
movq -936(%rbp), %rax
movq -912(%rbp), %rdi
movq -968(%rbp), %rsi
callq *%rax
cmpl $0, %eax
jl LBB1_5
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movq -936(%rbp), %rax
movq -912(%rbp), %rdi
movq -960(%rbp), %rsi
callq *%rax
cmpl $0, %eax
jl LBB1_5
## %bb.4:
jmp LBB1_9
LBB1_5: ## in Loop: Header=BB1_1 Depth=1
movq -936(%rbp), %rax
movq -968(%rbp), %rdi
movq -960(%rbp), %rsi
callq *%rax
cmpl $0, %eax
jl LBB1_7
## %bb.6: ## in Loop: Header=BB1_1 Depth=1
movq -968(%rbp), %rcx
movl -972(%rbp), %eax
movl %eax, %edx
addl $1, %edx
movl %edx, -972(%rbp)
cltq
movq %rcx, -912(%rbp,%rax,8)
movq -968(%rbp), %rax
movq %rax, -920(%rbp)
movl -940(%rbp), %eax
subl $1, %eax
movl %eax, -940(%rbp)
jmp LBB1_8
LBB1_7: ## in Loop: Header=BB1_1 Depth=1
movq -960(%rbp), %rcx
movl -972(%rbp), %eax
movl %eax, %edx
addl $1, %edx
movl %edx, -972(%rbp)
cltq
movq %rcx, -912(%rbp,%rax,8)
movq -960(%rbp), %rax
movq %rax, -920(%rbp)
movl -940(%rbp), %eax
subl $2, %eax
movl %eax, -940(%rbp)
LBB1_8: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_1
LBB1_9:
movq -928(%rbp), %rdi
leaq -912(%rbp), %rsi
movl -972(%rbp), %edx
callq _cycle
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_11
## %bb.10:
addq $976, %rsp ## imm = 0x3D0
popq %rbp
retq
LBB1_11:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function shr
_shr: ## @shr
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movslq -12(%rbp), %rax
cmpq $64, %rax
jb LBB2_2
## %bb.1:
movslq -12(%rbp), %rax
subq $64, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -12(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
movq -8(%rbp), %rax
movq $0, 8(%rax)
LBB2_2:
movl -12(%rbp), %ecx
movq -8(%rbp), %rax
movq (%rax), %rdx
movl %ecx, %ecx
## kill: def $rcx killed $ecx
## kill: def $cl killed $rcx
shrq %cl, %rdx
movq %rdx, %rcx
movq %rcx, (%rax)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movslq -12(%rbp), %rdx
movl $64, %ecx
subq %rdx, %rcx
## kill: def $cl killed $rcx
shlq %cl, %rax
movq %rax, %rcx
movq -8(%rbp), %rax
orq (%rax), %rcx
movq %rcx, (%rax)
movl -12(%rbp), %ecx
movq -8(%rbp), %rax
movq 8(%rax), %rdx
movl %ecx, %ecx
## kill: def $rcx killed $ecx
## kill: def $cl killed $rcx
shrq %cl, %rdx
movq %rdx, %rcx
movq %rcx, 8(%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function trinkle
_trinkle: ## @trinkle
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $1024, %rsp ## imm = 0x400
movq 16(%rbp), %rax
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -952(%rbp)
movq %rsi, -960(%rbp)
movq %rdx, -968(%rbp)
movq %rcx, -976(%rbp)
movl %r8d, -980(%rbp)
movl %r9d, -984(%rbp)
movl $1, -1012(%rbp)
movq -976(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
movq -976(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
movq -952(%rbp), %rax
movq %rax, -944(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movb $1, %al
cmpq $1, -32(%rbp)
movb %al, -1017(%rbp) ## 1-byte Spill
jne LBB3_3
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
cmpq $0, -24(%rbp)
setne %al
movb %al, -1017(%rbp) ## 1-byte Spill
LBB3_3: ## in Loop: Header=BB3_1 Depth=1
movb -1017(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB3_4
jmp LBB3_13
LBB3_4: ## in Loop: Header=BB3_1 Depth=1
movq -952(%rbp), %rax
movq 16(%rbp), %rdx
movslq -980(%rbp), %rsi
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq (%rdx,%rsi,8), %rcx
addq %rcx, %rax
movq %rax, -992(%rbp)
movq -968(%rbp), %rax
movq -992(%rbp), %rdi
movq -944(%rbp), %rsi
callq *%rax
cmpl $0, %eax
jg LBB3_6
## %bb.5:
jmp LBB3_13
LBB3_6: ## in Loop: Header=BB3_1 Depth=1
cmpl $0, -984(%rbp)
jne LBB3_12
## %bb.7: ## in Loop: Header=BB3_1 Depth=1
cmpl $1, -980(%rbp)
jle LBB3_12
## %bb.8: ## in Loop: Header=BB3_1 Depth=1
movq -952(%rbp), %rax
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq -960(%rbp), %rcx
addq %rcx, %rax
movq %rax, -1000(%rbp)
movq -952(%rbp), %rax
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq -960(%rbp), %rcx
addq %rcx, %rax
movq 16(%rbp), %rdx
movl -980(%rbp), %ecx
subl $2, %ecx
movslq %ecx, %rsi
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq (%rdx,%rsi,8), %rcx
addq %rcx, %rax
movq %rax, -1008(%rbp)
movq -968(%rbp), %rax
movq -1000(%rbp), %rdi
movq -992(%rbp), %rsi
callq *%rax
cmpl $0, %eax
jge LBB3_10
## %bb.9: ## in Loop: Header=BB3_1 Depth=1
movq -968(%rbp), %rax
movq -1008(%rbp), %rdi
movq -992(%rbp), %rsi
callq *%rax
cmpl $0, %eax
jl LBB3_11
LBB3_10:
jmp LBB3_13
LBB3_11: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_12
LBB3_12: ## in Loop: Header=BB3_1 Depth=1
movq -992(%rbp), %rcx
movl -1012(%rbp), %eax
movl %eax, %edx
addl $1, %edx
movl %edx, -1012(%rbp)
cltq
movq %rcx, -944(%rbp,%rax,8)
movq -992(%rbp), %rax
movq %rax, -952(%rbp)
leaq -32(%rbp), %rdi
callq _pntz
movl %eax, -1016(%rbp)
leaq -32(%rbp), %rdi
movl -1016(%rbp), %esi
callq _shr
movl -1016(%rbp), %eax
addl -980(%rbp), %eax
movl %eax, -980(%rbp)
movl $0, -984(%rbp)
jmp LBB3_1
LBB3_13:
cmpl $0, -984(%rbp)
jne LBB3_15
## %bb.14:
movq -960(%rbp), %rdi
leaq -944(%rbp), %rsi
movl -1012(%rbp), %edx
callq _cycle
movq -952(%rbp), %rdi
movq -960(%rbp), %rsi
movq -968(%rbp), %rdx
movl -980(%rbp), %ecx
movq 16(%rbp), %r8
callq _sift
LBB3_15:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB3_17
## %bb.16:
addq $1024, %rsp ## imm = 0x400
popq %rbp
retq
LBB3_17:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function shl
_shl: ## @shl
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movslq -12(%rbp), %rax
cmpq $64, %rax
jb LBB4_2
## %bb.1:
movslq -12(%rbp), %rax
subq $64, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -12(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rcx
movq -8(%rbp), %rax
movq %rcx, 8(%rax)
movq -8(%rbp), %rax
movq $0, (%rax)
LBB4_2:
movl -12(%rbp), %ecx
movq -8(%rbp), %rax
movq 8(%rax), %rdx
movl %ecx, %ecx
## kill: def $rcx killed $ecx
## kill: def $cl killed $rcx
shlq %cl, %rdx
movq %rdx, %rcx
movq %rcx, 8(%rax)
movq -8(%rbp), %rax
movq (%rax), %rax
movslq -12(%rbp), %rdx
movl $64, %ecx
subq %rdx, %rcx
## kill: def $cl killed $rcx
shrq %cl, %rax
movq %rax, %rcx
movq -8(%rbp), %rax
orq 8(%rax), %rcx
movq %rcx, 8(%rax)
movl -12(%rbp), %ecx
movq -8(%rbp), %rax
movq (%rax), %rdx
movl %ecx, %ecx
## kill: def $rcx killed $ecx
## kill: def $cl killed $rcx
shlq %cl, %rdx
movq %rdx, %rcx
movq %rcx, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function pntz
_pntz: ## @pntz
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
subq $1, %rax
bsfq %rax, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
jne LBB5_2
## %bb.1:
movq -16(%rbp), %rax
movq 8(%rax), %rax
bsfq %rax, %rax
## kill: def $eax killed $eax killed $rax
cltq
addq $64, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -20(%rbp)
cltq
cmpq $64, %rax
je LBB5_3
LBB5_2:
movl -20(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB5_4
LBB5_3:
movl $0, -4(%rbp)
LBB5_4:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function cycle
_cycle: ## @cycle
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $320, %rsp ## imm = 0x140
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -280(%rbp)
movq %rsi, -288(%rbp)
movl %edx, -292(%rbp)
cmpl $2, -292(%rbp)
jge LBB6_2
## %bb.1:
jmp LBB6_12
LBB6_2:
leaq -272(%rbp), %rdx
movq -288(%rbp), %rax
movslq -292(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
LBB6_3: ## =>This Loop Header: Depth=1
## Child Loop BB6_8 Depth 2
cmpq $0, -280(%rbp)
je LBB6_12
## %bb.4: ## in Loop: Header=BB6_3 Depth=1
movl $256, %eax ## imm = 0x100
cmpq -280(%rbp), %rax
jae LBB6_6
## %bb.5: ## in Loop: Header=BB6_3 Depth=1
movl $256, %eax ## imm = 0x100
movq %rax, -320(%rbp) ## 8-byte Spill
jmp LBB6_7
LBB6_6: ## in Loop: Header=BB6_3 Depth=1
movq -280(%rbp), %rax
movq %rax, -320(%rbp) ## 8-byte Spill
LBB6_7: ## in Loop: Header=BB6_3 Depth=1
movq -320(%rbp), %rax ## 8-byte Reload
movq %rax, -304(%rbp)
movq -288(%rbp), %rax
movslq -292(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -288(%rbp), %rax
movq (%rax), %rsi
movq -304(%rbp), %rdx
movq $-1, %rcx
callq ___memcpy_chk
movl $0, -308(%rbp)
LBB6_8: ## Parent Loop BB6_3 Depth=1
## => This Inner Loop Header: Depth=2
movl -308(%rbp), %eax
cmpl -292(%rbp), %eax
jge LBB6_11
## %bb.9: ## in Loop: Header=BB6_8 Depth=2
movq -288(%rbp), %rax
movslq -308(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -288(%rbp), %rax
movl -308(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rsi
movq -304(%rbp), %rdx
movq $-1, %rcx
callq ___memcpy_chk
movq -304(%rbp), %rdx
movq -288(%rbp), %rax
movslq -308(%rbp), %rcx
addq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
## %bb.10: ## in Loop: Header=BB6_8 Depth=2
movl -308(%rbp), %eax
addl $1, %eax
movl %eax, -308(%rbp)
jmp LBB6_8
LBB6_11: ## in Loop: Header=BB6_3 Depth=1
movq -304(%rbp), %rcx
movq -280(%rbp), %rax
subq %rcx, %rax
movq %rax, -280(%rbp)
jmp LBB6_3
LBB6_12:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB6_14
## %bb.13:
addq $320, %rsp ## imm = 0x140
popq %rbp
retq
LBB6_14:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__literal16,16byte_literals
.p2align 4 ## @__const.qsort.p
L___const.qsort.p:
.quad 1 ## 0x1
.quad 0 ## 0x0
.subsections_via_symbols
| the_stack_data/765064.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI0_0:
.quad 0x3ee9e409301b5a02 ; double 1.23456789E-5
lCPI0_1:
.quad 0x4028b0fba8826aa9 ; double 12.34567
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp 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
mov w8, #0
stur w8, [x29, #-8] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
str x0, [sp, #24] ; 8-byte Folded Spill
bl _printf
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov x9, sp
mov x8, #15
str x8, [sp, #8] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
mov x9, sp
mov x8, #7
str x8, [x9]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
mov x9, sp
mov x8, #65
str x8, [x9]
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
mov x9, sp
mov x8, #32
str x8, [x9]
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
mov x9, sp
mov x8, #48
str x8, [x9]
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _printf
adrp x0, l_.str.16@PAGE
add x0, x0, l_.str.16@PAGEOFF
bl _printf
adrp x0, l_.str.17@PAGE
add x0, x0, l_.str.17@PAGEOFF
bl _printf
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _printf
adrp x0, l_.str.18@PAGE
add x0, x0, l_.str.18@PAGEOFF
str x0, [sp, #32] ; 8-byte Folded Spill
bl _printf
mov x8, sp
adrp x9, lCPI0_1@PAGE
ldr d0, [x9, lCPI0_1@PAGEOFF]
str d0, [sp, #16] ; 8-byte Folded Spill
str d0, [x8]
adrp x0, l_.str.19@PAGE
add x0, x0, l_.str.19@PAGEOFF
str x0, [sp, #40] ; 8-byte Folded Spill
bl _printf
ldr d0, [sp, #16] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
adrp x0, l_.str.20@PAGE
add x0, x0, l_.str.20@PAGEOFF
stur x0, [x29, #-32] ; 8-byte Folded Spill
bl _printf
ldr d0, [sp, #16] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
adrp x0, l_.str.21@PAGE
add x0, x0, l_.str.21@PAGEOFF
stur x0, [x29, #-24] ; 8-byte Folded Spill
bl _printf
ldr d0, [sp, #16] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
adrp x0, l_.str.22@PAGE
add x0, x0, l_.str.22@PAGEOFF
bl _printf
ldr d0, [sp, #16] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
adrp x0, l_.str.23@PAGE
add x0, x0, l_.str.23@PAGEOFF
bl _printf
ldr d0, [sp, #16] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
adrp x0, l_.str.24@PAGE
add x0, x0, l_.str.24@PAGEOFF
bl _printf
ldr d0, [sp, #16] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
adrp x0, l_.str.25@PAGE
add x0, x0, l_.str.25@PAGEOFF
bl _printf
ldr d0, [sp, #16] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
adrp x0, l_.str.26@PAGE
add x0, x0, l_.str.26@PAGEOFF
bl _printf
adrp x0, l_.str.27@PAGE
add x0, x0, l_.str.27@PAGEOFF
bl _printf
adrp x0, l_.str.28@PAGE
add x0, x0, l_.str.28@PAGEOFF
bl _printf
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _printf
ldr x0, [sp, #32] ; 8-byte Folded Reload
bl _printf
ldr x0, [sp, #40] ; 8-byte Folded Reload
mov x8, sp
adrp x9, lCPI0_0@PAGE
ldr d0, [x9, lCPI0_0@PAGEOFF]
stur d0, [x29, #-16] ; 8-byte Folded Spill
str d0, [x8]
bl _printf
ldur d0, [x29, #-16] ; 8-byte Folded Reload
ldur x0, [x29, #-32] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
bl _printf
ldur d0, [x29, #-16] ; 8-byte Folded Reload
ldur x0, [x29, #-24] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
bl _printf
ldur d0, [x29, #-16] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
adrp x0, l_.str.29@PAGE
add x0, x0, l_.str.29@PAGEOFF
bl _printf
ldur d0, [x29, #-16] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
adrp x0, l_.str.30@PAGE
add x0, x0, l_.str.30@PAGEOFF
bl _printf
ldur d0, [x29, #-16] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
adrp x0, l_.str.31@PAGE
add x0, x0, l_.str.31@PAGEOFF
bl _printf
ldur d0, [x29, #-16] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
adrp x0, l_.str.32@PAGE
add x0, x0, l_.str.32@PAGEOFF
bl _printf
ldur d0, [x29, #-16] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
adrp x0, l_.str.33@PAGE
add x0, x0, l_.str.33@PAGEOFF
bl _printf
ldur d0, [x29, #-16] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
adrp x0, l_.str.34@PAGE
add x0, x0, l_.str.34@PAGEOFF
bl _printf
ldur d0, [x29, #-16] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
adrp x0, l_.str.35@PAGE
add x0, x0, l_.str.35@PAGEOFF
bl _printf
adrp x0, l_.str.36@PAGE
add x0, x0, l_.str.36@PAGEOFF
bl _printf
ldur w0, [x29, #-8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "(a) Printing the integer 15 using various conversion specifiers\n\n"
l_.str.1: ; @.str.1
.asciz "Recap: %%m means minimum width of m spaces\n\n"
l_.str.2: ; @.str.2
.asciz "Conversion Specifier Display\n"
l_.str.3: ; @.str.3
.asciz "-----------------------------------\n"
l_.str.4: ; @.str.4
.asciz " %%d %d\n"
l_.str.5: ; @.str.5
.asciz " %%5d %5d(There are 3 spaces before the number)\n"
l_.str.6: ; @.str.6
.asciz " %%-5d %-5d(There are 3 spaces after the number\n"
l_.str.7: ; @.str.7
.asciz " because of negative sign, i.e. %%-m)\n"
l_.str.8: ; @.str.8
.asciz " %%1d %1d\n"
l_.str.9: ; @.str.9
.asciz "-----------------------------------\n\n"
l_.str.10: ; @.str.10
.asciz "Printing 7 using %%c gives %c\n"
l_.str.11: ; @.str.11
.asciz "Heard the beep?\n\n"
l_.str.12: ; @.str.12
.asciz "Printing 65 using %%c gives %c\n"
l_.str.13: ; @.str.13
.asciz "Printing 32 using %%c gives %c (Is any character displayed?)\n"
l_.str.14: ; @.str.14
.asciz "Printing 48 using %%c gives %c\n"
l_.str.15: ; @.str.15
.asciz "===============================================================\n\n"
l_.str.16: ; @.str.16
.asciz "(b) Printing the real number 12.34567 \n\n"
l_.str.17: ; @.str.17
.asciz "Recap: %%m.n means minimum width of m spaces with n number of decimal places\n\n"
l_.str.18: ; @.str.18
.asciz "----------------------------------------\n"
l_.str.19: ; @.str.19
.asciz " %%f %f\n"
l_.str.20: ; @.str.20
.asciz " %%e %e\n"
l_.str.21: ; @.str.21
.asciz " %%E %E\n"
l_.str.22: ; @.str.22
.asciz " %%-10.3f %-10.3f\n"
l_.str.23: ; @.str.23
.asciz " %%10.3f %10.3f\n"
l_.str.24: ; @.str.24
.asciz " %%10.3E %10.3E\n"
l_.str.25: ; @.str.25
.asciz " %%-.8f %-.8f\n"
l_.str.26: ; @.str.26
.asciz " %%.8f %.8f\n"
l_.str.27: ; @.str.27
.asciz "----------------------------------------\n\n\n"
l_.str.28: ; @.str.28
.asciz "(c) Printing the real number 0.0000123456789\n\n"
l_.str.29: ; @.str.29
.asciz " %%8.3f %8.3f\n"
l_.str.30: ; @.str.30
.asciz " %%8.3e %8.3e\n"
l_.str.31: ; @.str.31
.asciz " %%12.7f %12.7f\n"
l_.str.32: ; @.str.32
.asciz " %%12.3f %12.3f\n"
l_.str.33: ; @.str.33
.asciz " %%.3f %.3f\n"
l_.str.34: ; @.str.34
.asciz " %%1.7f %1.7f\n"
l_.str.35: ; @.str.35
.asciz " %%5.7f %5.7f\n"
l_.str.36: ; @.str.36
.asciz "===============================================================\n\n\n\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI0_0:
.quad 0x3ee9e409301b5a02 ## double 1.23456789E-5
LCPI0_1:
.quad 0x4028b0fba8826aa9 ## double 12.34567
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.4(%rip), %rdi
movl $15, %esi
movb $0, %al
callq _printf
leaq L_.str.5(%rip), %rdi
movl $15, %esi
movb $0, %al
callq _printf
leaq L_.str.6(%rip), %rdi
movl $15, %esi
movb $0, %al
callq _printf
leaq L_.str.7(%rip), %rdi
movl $15, %esi
movb $0, %al
callq _printf
leaq L_.str.8(%rip), %rdi
movl $15, %esi
movb $0, %al
callq _printf
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.10(%rip), %rdi
movl $7, %esi
movb $0, %al
callq _printf
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.12(%rip), %rdi
movl $65, %esi
movb $0, %al
callq _printf
leaq L_.str.13(%rip), %rdi
movl $32, %esi
movb $0, %al
callq _printf
leaq L_.str.14(%rip), %rdi
movl $48, %esi
movb $0, %al
callq _printf
leaq L_.str.15(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.16(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.17(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.18(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.19(%rip), %rdi
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.20(%rip), %rdi
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.21(%rip), %rdi
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.22(%rip), %rdi
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.23(%rip), %rdi
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.24(%rip), %rdi
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.25(%rip), %rdi
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.26(%rip), %rdi
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.27(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.28(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.18(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.19(%rip), %rdi
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.20(%rip), %rdi
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.21(%rip), %rdi
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.29(%rip), %rdi
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.30(%rip), %rdi
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.31(%rip), %rdi
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.32(%rip), %rdi
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.33(%rip), %rdi
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.34(%rip), %rdi
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.35(%rip), %rdi
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
leaq L_.str.36(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "(a) Printing the integer 15 using various conversion specifiers\n\n"
L_.str.1: ## @.str.1
.asciz "Recap: %%m means minimum width of m spaces\n\n"
L_.str.2: ## @.str.2
.asciz "Conversion Specifier Display\n"
L_.str.3: ## @.str.3
.asciz "-----------------------------------\n"
L_.str.4: ## @.str.4
.asciz " %%d %d\n"
L_.str.5: ## @.str.5
.asciz " %%5d %5d(There are 3 spaces before the number)\n"
L_.str.6: ## @.str.6
.asciz " %%-5d %-5d(There are 3 spaces after the number\n"
L_.str.7: ## @.str.7
.asciz " because of negative sign, i.e. %%-m)\n"
L_.str.8: ## @.str.8
.asciz " %%1d %1d\n"
L_.str.9: ## @.str.9
.asciz "-----------------------------------\n\n"
L_.str.10: ## @.str.10
.asciz "Printing 7 using %%c gives %c\n"
L_.str.11: ## @.str.11
.asciz "Heard the beep?\n\n"
L_.str.12: ## @.str.12
.asciz "Printing 65 using %%c gives %c\n"
L_.str.13: ## @.str.13
.asciz "Printing 32 using %%c gives %c (Is any character displayed?)\n"
L_.str.14: ## @.str.14
.asciz "Printing 48 using %%c gives %c\n"
L_.str.15: ## @.str.15
.asciz "===============================================================\n\n"
L_.str.16: ## @.str.16
.asciz "(b) Printing the real number 12.34567 \n\n"
L_.str.17: ## @.str.17
.asciz "Recap: %%m.n means minimum width of m spaces with n number of decimal places\n\n"
L_.str.18: ## @.str.18
.asciz "----------------------------------------\n"
L_.str.19: ## @.str.19
.asciz " %%f %f\n"
L_.str.20: ## @.str.20
.asciz " %%e %e\n"
L_.str.21: ## @.str.21
.asciz " %%E %E\n"
L_.str.22: ## @.str.22
.asciz " %%-10.3f %-10.3f\n"
L_.str.23: ## @.str.23
.asciz " %%10.3f %10.3f\n"
L_.str.24: ## @.str.24
.asciz " %%10.3E %10.3E\n"
L_.str.25: ## @.str.25
.asciz " %%-.8f %-.8f\n"
L_.str.26: ## @.str.26
.asciz " %%.8f %.8f\n"
L_.str.27: ## @.str.27
.asciz "----------------------------------------\n\n\n"
L_.str.28: ## @.str.28
.asciz "(c) Printing the real number 0.0000123456789\n\n"
L_.str.29: ## @.str.29
.asciz " %%8.3f %8.3f\n"
L_.str.30: ## @.str.30
.asciz " %%8.3e %8.3e\n"
L_.str.31: ## @.str.31
.asciz " %%12.7f %12.7f\n"
L_.str.32: ## @.str.32
.asciz " %%12.3f %12.3f\n"
L_.str.33: ## @.str.33
.asciz " %%.3f %.3f\n"
L_.str.34: ## @.str.34
.asciz " %%1.7f %1.7f\n"
L_.str.35: ## @.str.35
.asciz " %%5.7f %5.7f\n"
L_.str.36: ## @.str.36
.asciz "===============================================================\n\n\n\n"
.subsections_via_symbols
| the_stack_data/37539.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
stur w8, [x29, #-20] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
sub x8, x29, #8
str x8, [sp, #16] ; 8-byte Folded Spill
stur wzr, [x29, #-8]
sub x8, x29, #12
str x8, [sp, #24] ; 8-byte Folded Spill
stur wzr, [x29, #-12]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr x8, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
str x0, [sp, #32] ; 8-byte Folded Spill
bl _scanf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x0, [sp, #32] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
bl _scanf
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
add w8, w8, w9
scvtf s0, w8
fmov s1, #2.00000000
fdiv s0, s0, s1
stur s0, [x29, #-16]
ldur s0, [x29, #-16]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldur w0, [x29, #-20] ; 4-byte Folded Reload
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Enter the 1st mark :"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Enter the 2nd mark :"
l_.str.3: ; @.str.3
.asciz "average mark is :%.2f"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function main
LCPI0_0:
.long 0x40000000 ## float 2
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $0, -8(%rbp)
movl $0, -12(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
movl -8(%rbp), %eax
addl -12(%rbp), %eax
cvtsi2ss %eax, %xmm0
movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
divss %xmm1, %xmm0
movss %xmm0, -16(%rbp)
movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.3(%rip), %rdi
movb $1, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter the 1st mark :"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Enter the 2nd mark :"
L_.str.3: ## @.str.3
.asciz "average mark is :%.2f"
.subsections_via_symbols
| the_stack_data/111078575.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI0_0:
.quad 0x3fe1c71c71c71c72 ; double 0.55555555555555558
lCPI0_1:
.quad 0x4040000000000000 ; double 32
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur wzr, [x29, #-8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #300
cset w8, gt
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
; implicit-def: $x9
mov x9, x8
ldur s1, [x29, #-8]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
adrp x8, lCPI0_1@PAGE
ldr d1, [x8, lCPI0_1@PAGEOFF]
fsub d1, d0, d1
adrp x8, lCPI0_0@PAGE
ldr d0, [x8, lCPI0_0@PAGEOFF]
fmul d0, d0, d1
mov x8, sp
str x9, [x8]
str d0, [x8, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
add w8, w8, #20
stur w8, [x29, #-8]
b LBB0_1
LBB0_4:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%3d %6.1f\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI0_0:
.quad 0x3fe1c71c71c71c72 ## double 0.55555555555555558
LCPI0_1:
.quad 0x4040000000000000 ## double 32
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $0, -8(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $300, -8(%rbp) ## imm = 0x12C
jg LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %esi
cvtsi2sdl -8(%rbp), %xmm1
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
subsd %xmm0, %xmm1
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm1, %xmm0
leaq L_.str(%rip), %rdi
movb $1, %al
callq _printf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl $20, %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_4:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%3d %6.1f\n"
.subsections_via_symbols
| the_stack_data/76700145.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sum ; -- Begin function sum
.p2align 2
_sum: ; @sum
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str w1, [sp, #20]
str wzr, [sp, #16]
str wzr, [sp, #12]
str wzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp, #16]
ldr w9, [x8, x9, lsl #2]
ldr w8, [sp, #12]
add w8, w8, w9
str w8, [sp, #12]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_1
LBB0_4:
ldr w0, [sp, #12]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #464
.cfi_def_cfa_offset 464
stp x28, x27, [sp, #432] ; 16-byte Folded Spill
stp x29, x30, [sp, #448] ; 16-byte Folded Spill
add x29, sp, #448
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #20]
add x0, sp, #24
mov x1, #400
bl _bzero
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #12
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
str wzr, [sp, #16]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldrsw x9, [sp, #16]
add x8, sp, #24
add x8, x8, x9, lsl #2
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB1_1
LBB1_4:
ldr w1, [sp, #12]
add x0, sp, #24
bl _sum
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr w8, [sp, #20]
str w8, [sp, #8] ; 4-byte Folded Spill
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5:
bl ___stack_chk_fail
LBB1_6:
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #448] ; 16-byte Folded Reload
ldp x28, x27, [sp, #432] ; 16-byte Folded Reload
add sp, sp, #464
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "n="
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "a="
l_.str.3: ; @.str.3
.asciz "sum(a)=%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sum ## -- Begin function sum
.p2align 4, 0x90
_sum: ## @sum
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl $0, -16(%rbp)
movl $0, -20(%rbp)
movl $0, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movl (%rax,%rcx,4), %eax
addl -20(%rbp), %eax
movl %eax, -20(%rbp)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_1
LBB0_4:
movl -20(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $432, %rsp ## imm = 0x1B0
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -420(%rbp)
leaq -416(%rbp), %rdi
xorl %esi, %esi
movl $400, %edx ## imm = 0x190
callq _memset
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -428(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -424(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -424(%rbp), %eax
cmpl -428(%rbp), %eax
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movslq -424(%rbp), %rax
leaq -416(%rbp), %rsi
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -424(%rbp), %eax
addl $1, %eax
movl %eax, -424(%rbp)
jmp LBB1_1
LBB1_4:
leaq -416(%rbp), %rdi
movl -428(%rbp), %esi
callq _sum
movl %eax, %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl -420(%rbp), %eax
movl %eax, -432(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_6
## %bb.5:
movl -432(%rbp), %eax ## 4-byte Reload
addq $432, %rsp ## imm = 0x1B0
popq %rbp
retq
LBB1_6:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "n="
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "a="
L_.str.3: ## @.str.3
.asciz "sum(a)=%d\n"
.subsections_via_symbols
| the_stack_data/287157.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _radixsort ; -- Begin function radixsort
.p2align 2
_radixsort: ; @radixsort
.cfi_startproc
; %bb.0:
sub sp, sp, #352
.cfi_def_cfa_offset 352
stp x28, x27, [sp, #320] ; 16-byte Folded Spill
stp x29, x30, [sp, #336] ; 16-byte Folded Spill
add x29, sp, #336
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #40]
str w1, [sp, #36]
str x2, [sp, #24]
str w3, [sp, #20]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_1
LBB0_1:
add x8, sp, #56
str x8, [sp, #8]
str wzr, [sp, #4]
b LBB0_2
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, hs
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_2 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
ldrsw x10, [sp, #4]
add x9, sp, #56
strb w8, [x9, x10]
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_2 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_2
LBB0_5:
ldrsw x9, [sp, #4]
add x8, sp, #56
add x8, x8, x9
strb wzr, [x8]
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_6
LBB0_6: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
subs w8, w8, #256
cset w8, ge
tbnz w8, #0, LBB0_9
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_6 Depth=1
ldr w8, [sp, #4]
ldrsw x10, [sp, #4]
add x9, sp, #56
strb w8, [x9, x10]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_6 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_6
LBB0_9:
str wzr, [sp, #20]
b LBB0_14
LBB0_10:
ldr x8, [sp, #24]
ldr w9, [sp, #20]
; kill: def $x9 killed $w9
ldrb w8, [x8, x9]
str w8, [sp, #20]
ldr x8, [sp, #24]
str x8, [sp, #8]
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_11
LBB0_11:
ldr w8, [sp, #20]
subs w8, w8, #255
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
bl ___error
mov w8, #22
str w8, [x0]
mov w8, #-1
str w8, [sp, #52]
b LBB0_15
LBB0_13:
b LBB0_14
LBB0_14:
ldr x0, [sp, #40]
ldr w1, [sp, #36]
ldr x3, [sp, #8]
ldr w4, [sp, #20]
mov w2, #0
bl _r_sort_a
str wzr, [sp, #52]
b LBB0_15
LBB0_15:
ldr w8, [sp, #52]
str w8, [sp] ; 4-byte Folded Spill
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16:
bl ___stack_chk_fail
LBB0_17:
ldr w0, [sp] ; 4-byte Folded Reload
ldp x29, x30, [sp, #336] ; 16-byte Folded Reload
ldp x28, x27, [sp, #320] ; 16-byte Folded Reload
add sp, sp, #352
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function r_sort_a
_r_sort_a: ; @r_sort_a
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
mov w9, #10384
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #2, lsl #12 ; =8192
sub sp, sp, #2192
adrp x8, _r_sort_a.count@PAGE
add x8, x8, _r_sort_a.count@PAGEOFF
str x8, [sp] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #128]
str w1, [sp, #124]
str w2, [sp, #120]
str x3, [sp, #112]
str w4, [sp, #108]
add x8, sp, #2184
str x8, [sp, #80]
ldr x8, [sp, #128]
ldr x9, [sp, #80]
str x8, [x9]
ldr w8, [sp, #124]
ldr x9, [sp, #80]
str w8, [x9, #8]
ldr w8, [sp, #120]
ldr x9, [sp, #80]
add x10, x9, #16
str x10, [sp, #80]
str w8, [x9, #12]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_6 Depth 2
; Child Loop BB1_20 Depth 2
; Child Loop BB1_22 Depth 3
; Child Loop BB1_31 Depth 2
; Child Loop BB1_33 Depth 3
ldr x9, [sp, #80]
add x8, sp, #2184
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB1_38
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #80]
subs x9, x8, #16
str x9, [sp, #80]
ldur x8, [x8, #-16]
str x8, [sp, #128]
ldr x8, [sp, #80]
ldr w8, [x8, #8]
str w8, [sp, #124]
ldr x8, [sp, #80]
ldr w8, [x8, #12]
str w8, [sp, #120]
ldr w8, [sp, #124]
subs w8, w8, #20
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr x0, [sp, #128]
ldr w1, [sp, #124]
ldr w2, [sp, #120]
ldr x3, [sp, #112]
ldr w4, [sp, #108]
bl _simplesort
b LBB1_1
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #128]
ldrsw x9, [sp, #124]
add x8, x8, x9, lsl #3
str x8, [sp, #24]
adrp x8, _r_sort_a.nc@PAGE
ldr w8, [x8, _r_sort_a.nc@PAGEOFF]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_16
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
adrp x9, _r_sort_a.bmin@PAGE
mov w8, #255
str w8, [x9, _r_sort_a.bmin@PAGEOFF]
ldr x8, [sp, #128]
str x8, [sp, #96]
b LBB1_6
LBB1_6: ; Parent Loop BB1_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #96]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB1_13
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_6 Depth=2
ldr x8, [sp, #112]
ldr x9, [sp, #96]
add x10, x9, #8
str x10, [sp, #96]
ldr x9, [x9]
ldrsw x10, [sp, #120]
ldrb w9, [x9, x10]
; kill: def $x9 killed $w9
ldrb w8, [x8, x9]
str w8, [sp, #104]
ldrsw x9, [sp, #104]
adrp x8, _r_sort_a.count@PAGE
add x8, x8, _r_sort_a.count@PAGEOFF
add x9, x8, x9, lsl #2
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB1_12
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_6 Depth=2
ldr w8, [sp, #104]
ldr w9, [sp, #108]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB1_12
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_6 Depth=2
ldr w8, [sp, #104]
adrp x9, _r_sort_a.bmin@PAGE
ldr w9, [x9, _r_sort_a.bmin@PAGEOFF]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_11
b LBB1_10
LBB1_10: ; in Loop: Header=BB1_6 Depth=2
ldr w8, [sp, #104]
adrp x9, _r_sort_a.bmin@PAGE
str w8, [x9, _r_sort_a.bmin@PAGEOFF]
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_6 Depth=2
adrp x9, _r_sort_a.nc@PAGE
ldr w8, [x9, _r_sort_a.nc@PAGEOFF]
add w8, w8, #1
str w8, [x9, _r_sort_a.nc@PAGEOFF]
b LBB1_12
LBB1_12: ; in Loop: Header=BB1_6 Depth=2
b LBB1_6
LBB1_13: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #80]
adrp x9, _r_sort_a.nc@PAGE
ldrsw x9, [x9, _r_sort_a.nc@PAGEOFF]
add x8, x8, x9, lsl #4
add x9, sp, #2184
add x9, x9, #2, lsl #12 ; =8192
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB1_15
b LBB1_14
LBB1_14: ; in Loop: Header=BB1_1 Depth=1
ldr x0, [sp, #128]
ldr w1, [sp, #124]
ldr w2, [sp, #120]
ldr x3, [sp, #112]
ldr w4, [sp, #108]
bl _r_sort_a
b LBB1_1
LBB1_15: ; in Loop: Header=BB1_1 Depth=1
b LBB1_16
LBB1_16: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #80]
str x8, [sp, #64]
str x8, [sp, #72]
mov w8, #2
str w8, [sp, #36]
ldr w8, [sp, #108]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_18
b LBB1_17
LBB1_17: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #128]
adrp x9, _r_sort_a.count@PAGE
ldrsw x9, [x9, _r_sort_a.count@PAGEOFF]
add x8, x8, x9, lsl #3
str x8, [sp, #96]
str x8, [sp, #136]
b LBB1_19
LBB1_18: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #128]
str x8, [sp, #96]
ldr x8, [sp, #24]
str x8, [sp, #2176]
b LBB1_19
LBB1_19: ; in Loop: Header=BB1_1 Depth=1
adrp x8, _r_sort_a.bmin@PAGE
ldrsw x9, [x8, _r_sort_a.bmin@PAGEOFF]
adrp x8, _r_sort_a.count@PAGE
add x8, x8, _r_sort_a.count@PAGEOFF
add x8, x8, x9, lsl #2
str x8, [sp, #40]
b LBB1_20
LBB1_20: ; Parent Loop BB1_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB1_22 Depth 3
adrp x8, _r_sort_a.nc@PAGE
ldr w8, [x8, _r_sort_a.nc@PAGEOFF]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB1_30
b LBB1_21
LBB1_21: ; in Loop: Header=BB1_20 Depth=2
b LBB1_22
LBB1_22: ; Parent Loop BB1_1 Depth=1
; Parent Loop BB1_20 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #40]
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_24
b LBB1_23
LBB1_23: ; in Loop: Header=BB1_22 Depth=3
ldr x8, [sp, #40]
add x8, x8, #4
str x8, [sp, #40]
b LBB1_22
LBB1_24: ; in Loop: Header=BB1_20 Depth=2
ldr x8, [sp, #40]
ldr w8, [x8]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB1_28
b LBB1_25
LBB1_25: ; in Loop: Header=BB1_20 Depth=2
ldr x8, [sp, #40]
ldr w8, [x8]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB1_27
b LBB1_26
LBB1_26: ; in Loop: Header=BB1_20 Depth=2
ldr x8, [sp, #40]
ldr w8, [x8]
str w8, [sp, #36]
ldr x8, [sp, #80]
str x8, [sp, #64]
b LBB1_27
LBB1_27: ; in Loop: Header=BB1_20 Depth=2
ldr x8, [sp, #96]
ldr x9, [sp, #80]
str x8, [x9]
ldr x8, [sp, #40]
ldr w8, [x8]
ldr x9, [sp, #80]
str w8, [x9, #8]
ldr w8, [sp, #120]
add w8, w8, #1
ldr x9, [sp, #80]
add x10, x9, #16
str x10, [sp, #80]
str w8, [x9, #12]
b LBB1_28
LBB1_28: ; in Loop: Header=BB1_20 Depth=2
ldr x10, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #40]
ldrsw x9, [x8]
ldr x8, [sp, #96]
add x8, x8, x9, lsl #3
str x8, [sp, #96]
ldr x9, [sp, #40]
subs x9, x9, x10
mov x10, #4
sdiv x10, x9, x10
add x9, sp, #136
str x8, [x9, x10, lsl #3]
adrp x9, _r_sort_a.nc@PAGE
ldr w8, [x9, _r_sort_a.nc@PAGEOFF]
subs w8, w8, #1
str w8, [x9, _r_sort_a.nc@PAGEOFF]
b LBB1_29
LBB1_29: ; in Loop: Header=BB1_20 Depth=2
ldr x8, [sp, #40]
add x8, x8, #4
str x8, [sp, #40]
b LBB1_20
LBB1_30: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #72]
ldr q0, [x8]
str q0, [sp, #48]
ldr x8, [sp, #72]
ldr x9, [sp, #64]
ldr q0, [x9]
str q0, [x8]
ldr x8, [sp, #64]
ldr q0, [sp, #48]
str q0, [x8]
ldr x8, [sp, #128]
str x8, [sp, #8]
b LBB1_31
LBB1_31: ; Parent Loop BB1_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB1_33 Depth 3
ldr x8, [sp, #8]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB1_37
b LBB1_32
LBB1_32: ; in Loop: Header=BB1_31 Depth=2
ldr x8, [sp, #8]
ldr x8, [x8]
str x8, [sp, #88]
b LBB1_33
LBB1_33: ; Parent Loop BB1_1 Depth=1
; Parent Loop BB1_31 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #8]
ldr x9, [sp, #112]
ldr x10, [sp, #88]
ldrsw x11, [sp, #120]
ldrb w10, [x10, x11]
; kill: def $x10 killed $w10
ldrb w10, [x9, x10]
str w10, [sp, #104]
add x9, sp, #136
add x10, x9, w10, sxtw #3
ldr x9, [x10]
subs x9, x9, #8
str x9, [x10]
str x9, [sp, #96]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB1_35
b LBB1_34
LBB1_34: ; in Loop: Header=BB1_33 Depth=3
ldr x8, [sp, #96]
ldr x8, [x8]
str x8, [sp, #16]
ldr x8, [sp, #88]
ldr x9, [sp, #96]
str x8, [x9]
ldr x8, [sp, #16]
str x8, [sp, #88]
b LBB1_33
LBB1_35: ; in Loop: Header=BB1_31 Depth=2
b LBB1_36
LBB1_36: ; in Loop: Header=BB1_31 Depth=2
ldr x8, [sp, #88]
ldr x9, [sp, #8]
str x8, [x9]
ldrsw x8, [sp, #104]
adrp x9, _r_sort_a.count@PAGE
add x9, x9, _r_sort_a.count@PAGEOFF
ldrsw x10, [x9, x8, lsl #2]
ldr x8, [sp, #8]
add x8, x8, x10, lsl #3
str x8, [sp, #8]
ldrsw x10, [sp, #104]
mov w8, #0
str w8, [x9, x10, lsl #2]
b LBB1_31
LBB1_37: ; in Loop: Header=BB1_1 Depth=1
b LBB1_1
LBB1_38:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_40
b LBB1_39
LBB1_39:
bl ___stack_chk_fail
LBB1_40:
add sp, sp, #2, lsl #12 ; =8192
add sp, sp, #2192
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _sradixsort ; -- Begin function sradixsort
.p2align 2
_sradixsort: ; @sradixsort
.cfi_startproc
; %bb.0:
sub sp, sp, #368
.cfi_def_cfa_offset 368
stp x28, x27, [sp, #336] ; 16-byte Folded Spill
stp x29, x30, [sp, #352] ; 16-byte Folded Spill
add x29, sp, #352
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #56]
str w1, [sp, #52]
str x2, [sp, #40]
str w3, [sp, #36]
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_10
b LBB2_1
LBB2_1:
add x8, sp, #72
str x8, [sp, #24]
str wzr, [sp, #12]
b LBB2_2
LBB2_2: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, hs
tbnz w8, #0, LBB2_5
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_2 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
ldrsw x10, [sp, #12]
add x9, sp, #72
strb w8, [x9, x10]
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_2 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB2_2
LBB2_5:
ldrsw x9, [sp, #12]
add x8, sp, #72
add x8, x8, x9
strb wzr, [x8]
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB2_6
LBB2_6: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #256
cset w8, ge
tbnz w8, #0, LBB2_9
b LBB2_7
LBB2_7: ; in Loop: Header=BB2_6 Depth=1
ldr w8, [sp, #12]
ldrsw x10, [sp, #12]
add x9, sp, #72
strb w8, [x9, x10]
b LBB2_8
LBB2_8: ; in Loop: Header=BB2_6 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB2_6
LBB2_9:
str wzr, [sp, #36]
b LBB2_14
LBB2_10:
ldr x8, [sp, #40]
ldr w9, [sp, #36]
; kill: def $x9 killed $w9
ldrb w8, [x8, x9]
str w8, [sp, #36]
ldr x8, [sp, #40]
str x8, [sp, #24]
ldr w8, [sp, #36]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB2_13
b LBB2_11
LBB2_11:
ldr w8, [sp, #36]
subs w8, w8, #255
cset w8, eq
tbnz w8, #0, LBB2_13
b LBB2_12
LBB2_12:
bl ___error
mov w8, #22
str w8, [x0]
mov w8, #-1
str w8, [sp, #68]
b LBB2_20
LBB2_13:
b LBB2_14
LBB2_14:
ldr w8, [sp, #52]
subs w8, w8, #20
cset w8, ge
tbnz w8, #0, LBB2_16
b LBB2_15
LBB2_15:
ldr x0, [sp, #56]
ldr w1, [sp, #52]
ldr x3, [sp, #24]
ldr w4, [sp, #36]
mov w2, #0
bl _simplesort
b LBB2_19
LBB2_16:
ldrsw x8, [sp, #52]
lsl x0, x8, #3
bl _malloc
mov x8, x0
str x8, [sp, #16]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB2_18
b LBB2_17
LBB2_17:
mov w8, #-1
str w8, [sp, #68]
b LBB2_20
LBB2_18:
ldr x0, [sp, #56]
ldr x1, [sp, #16]
ldr w2, [sp, #52]
ldr x4, [sp, #24]
ldr w5, [sp, #36]
mov w3, #0
bl _r_sort_b
ldr x0, [sp, #16]
bl _free
b LBB2_19
LBB2_19:
str wzr, [sp, #68]
b LBB2_20
LBB2_20:
ldr w8, [sp, #68]
str w8, [sp, #8] ; 4-byte Folded Spill
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB2_22
b LBB2_21
LBB2_21:
bl ___stack_chk_fail
LBB2_22:
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #352] ; 16-byte Folded Reload
ldp x28, x27, [sp, #336] ; 16-byte Folded Reload
add sp, sp, #368
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function simplesort
_simplesort: ; @simplesort
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
str x0, [sp, #56]
str w1, [sp, #52]
str w2, [sp, #48]
str x3, [sp, #40]
str w4, [sp, #36]
ldr x8, [sp, #56]
add x8, x8, #8
str x8, [sp, #24]
b LBB3_1
LBB3_1: ; =>This Loop Header: Depth=1
; Child Loop BB3_3 Depth 2
; Child Loop BB3_5 Depth 3
ldr w8, [sp, #52]
subs w8, w8, #1
str w8, [sp, #52]
subs w8, w8, #1
cset w8, lt
tbnz w8, #0, LBB3_16
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #24]
str x8, [sp, #16]
b LBB3_3
LBB3_3: ; Parent Loop BB3_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB3_5 Depth 3
ldr x8, [sp, #16]
ldr x9, [sp, #56]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB3_14
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_3 Depth=2
ldr x8, [sp, #16]
ldr x8, [x8]
ldrsw x9, [sp, #48]
add x8, x8, x9
str x8, [sp, #8]
ldr x8, [sp, #16]
ldur x8, [x8, #-8]
ldrsw x9, [sp, #48]
add x8, x8, x9
str x8, [sp]
b LBB3_5
LBB3_5: ; Parent Loop BB3_1 Depth=1
; Parent Loop BB3_3 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #40]
ldr x9, [sp, #8]
ldrb w9, [x9]
; kill: def $x9 killed $w9
ldrb w8, [x8, x9]
strb w8, [sp, #35]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB3_10
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_5 Depth=3
ldrb w8, [sp, #35]
ldr x9, [sp, #40]
ldr x10, [sp]
ldrb w10, [x10]
; kill: def $x10 killed $w10
ldrb w9, [x9, x10]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB3_8
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_3 Depth=2
b LBB3_10
LBB3_8: ; in Loop: Header=BB3_5 Depth=3
b LBB3_9
LBB3_9: ; in Loop: Header=BB3_5 Depth=3
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB3_5
LBB3_10: ; in Loop: Header=BB3_3 Depth=2
ldrb w8, [sp, #35]
ldr x9, [sp, #40]
ldr x10, [sp]
ldrb w10, [x10]
; kill: def $x10 killed $w10
ldrb w9, [x9, x10]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB3_12
b LBB3_11
LBB3_11: ; in Loop: Header=BB3_1 Depth=1
b LBB3_14
LBB3_12: ; in Loop: Header=BB3_3 Depth=2
ldr x8, [sp, #16]
ldr x8, [x8]
str x8, [sp, #8]
ldr x8, [sp, #16]
ldur x8, [x8, #-8]
ldr x9, [sp, #16]
str x8, [x9]
ldr x8, [sp, #8]
ldr x9, [sp, #16]
stur x8, [x9, #-8]
b LBB3_13
LBB3_13: ; in Loop: Header=BB3_3 Depth=2
ldr x8, [sp, #16]
subs x8, x8, #8
str x8, [sp, #16]
b LBB3_3
LBB3_14: ; in Loop: Header=BB3_1 Depth=1
b LBB3_15
LBB3_15: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #24]
add x8, x8, #8
str x8, [sp, #24]
b LBB3_1
LBB3_16:
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function r_sort_b
_r_sort_b: ; @r_sort_b
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
mov w9, #10400
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #2, lsl #12 ; =8192
sub sp, sp, #2208
add x8, sp, #152
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x8, _r_sort_b.count@PAGE
add x8, x8, _r_sort_b.count@PAGEOFF
str x8, [sp, #16] ; 8-byte Folded Spill
str x8, [sp, #24] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #144]
str x1, [sp, #136]
str w2, [sp, #132]
str w3, [sp, #128]
str x4, [sp, #120]
str w5, [sp, #116]
add x8, sp, #2200
str x8, [sp, #88]
ldr x8, [sp, #144]
ldr x9, [sp, #88]
str x8, [x9]
ldr w8, [sp, #132]
ldr x9, [sp, #88]
str w8, [x9, #8]
ldr w8, [sp, #128]
ldr x9, [sp, #88]
add x10, x9, #16
str x10, [sp, #88]
str w8, [x9, #12]
b LBB4_1
LBB4_1: ; =>This Loop Header: Depth=1
; Child Loop BB4_6 Depth 2
; Child Loop BB4_20 Depth 2
; Child Loop BB4_22 Depth 3
; Child Loop BB4_31 Depth 2
; Child Loop BB4_34 Depth 2
ldr x9, [sp, #88]
add x8, sp, #2200
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB4_37
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #88]
subs x9, x8, #16
str x9, [sp, #88]
ldur x8, [x8, #-16]
str x8, [sp, #144]
ldr x8, [sp, #88]
ldr w8, [x8, #8]
str w8, [sp, #132]
ldr x8, [sp, #88]
ldr w8, [x8, #12]
str w8, [sp, #128]
ldr w8, [sp, #132]
subs w8, w8, #20
cset w8, ge
tbnz w8, #0, LBB4_4
b LBB4_3
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
ldr x0, [sp, #144]
ldr w1, [sp, #132]
ldr w2, [sp, #128]
ldr x3, [sp, #120]
ldr w4, [sp, #116]
bl _simplesort
b LBB4_1
LBB4_4: ; in Loop: Header=BB4_1 Depth=1
adrp x8, _r_sort_b.nc@PAGE
ldr w8, [x8, _r_sort_b.nc@PAGEOFF]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB4_16
b LBB4_5
LBB4_5: ; in Loop: Header=BB4_1 Depth=1
adrp x9, _r_sort_b.bmin@PAGE
mov w8, #255
str w8, [x9, _r_sort_b.bmin@PAGEOFF]
ldr x8, [sp, #144]
ldrsw x9, [sp, #132]
add x8, x8, x9, lsl #3
str x8, [sp, #104]
b LBB4_6
LBB4_6: ; Parent Loop BB4_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #104]
subs x8, x8, #8
str x8, [sp, #104]
ldr x9, [sp, #144]
subs x8, x8, x9
cset w8, lo
tbnz w8, #0, LBB4_13
b LBB4_7
LBB4_7: ; in Loop: Header=BB4_6 Depth=2
ldr x8, [sp, #120]
ldr x9, [sp, #104]
ldr x9, [x9]
ldrsw x10, [sp, #128]
ldrb w9, [x9, x10]
; kill: def $x9 killed $w9
ldrb w8, [x8, x9]
str w8, [sp, #112]
ldrsw x9, [sp, #112]
adrp x8, _r_sort_b.count@PAGE
add x8, x8, _r_sort_b.count@PAGEOFF
add x9, x8, x9, lsl #2
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB4_12
b LBB4_8
LBB4_8: ; in Loop: Header=BB4_6 Depth=2
ldr w8, [sp, #112]
ldr w9, [sp, #116]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB4_12
b LBB4_9
LBB4_9: ; in Loop: Header=BB4_6 Depth=2
ldr w8, [sp, #112]
adrp x9, _r_sort_b.bmin@PAGE
ldr w9, [x9, _r_sort_b.bmin@PAGEOFF]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB4_11
b LBB4_10
LBB4_10: ; in Loop: Header=BB4_6 Depth=2
ldr w8, [sp, #112]
adrp x9, _r_sort_b.bmin@PAGE
str w8, [x9, _r_sort_b.bmin@PAGEOFF]
b LBB4_11
LBB4_11: ; in Loop: Header=BB4_6 Depth=2
adrp x9, _r_sort_b.nc@PAGE
ldr w8, [x9, _r_sort_b.nc@PAGEOFF]
add w8, w8, #1
str w8, [x9, _r_sort_b.nc@PAGEOFF]
b LBB4_12
LBB4_12: ; in Loop: Header=BB4_6 Depth=2
b LBB4_6
LBB4_13: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #88]
adrp x9, _r_sort_b.nc@PAGE
ldrsw x9, [x9, _r_sort_b.nc@PAGEOFF]
add x8, x8, x9, lsl #4
add x9, sp, #2200
add x9, x9, #2, lsl #12 ; =8192
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB4_15
b LBB4_14
LBB4_14: ; in Loop: Header=BB4_1 Depth=1
ldr x0, [sp, #144]
ldr x1, [sp, #136]
ldr w2, [sp, #132]
ldr w3, [sp, #128]
ldr x4, [sp, #120]
ldr w5, [sp, #116]
bl _r_sort_b
b LBB4_1
LBB4_15: ; in Loop: Header=BB4_1 Depth=1
b LBB4_16
LBB4_16: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #88]
str x8, [sp, #72]
str x8, [sp, #80]
mov w8, #2
str w8, [sp, #36]
ldr w8, [sp, #116]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB4_18
b LBB4_17
LBB4_17: ; in Loop: Header=BB4_1 Depth=1
ldr x9, [sp, #144]
adrp x8, _r_sort_b.count@PAGE
ldrsw x10, [x8, _r_sort_b.count@PAGEOFF]
add x9, x9, x10, lsl #3
str x9, [sp, #104]
str x9, [sp, #152]
str wzr, [x8, _r_sort_b.count@PAGEOFF]
b LBB4_19
LBB4_18: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x10, [sp, #8] ; 8-byte Folded Reload
ldr x9, [sp, #144]
str x9, [sp, #104]
ldr x9, [sp, #144]
ldrsw x11, [sp, #132]
add x9, x9, x11, lsl #3
str x9, [x10, #2040]
str wzr, [x8, #1020]
b LBB4_19
LBB4_19: ; in Loop: Header=BB4_1 Depth=1
adrp x8, _r_sort_b.bmin@PAGE
ldrsw x9, [x8, _r_sort_b.bmin@PAGEOFF]
adrp x8, _r_sort_b.count@PAGE
add x8, x8, _r_sort_b.count@PAGEOFF
add x8, x8, x9, lsl #2
str x8, [sp, #40]
b LBB4_20
LBB4_20: ; Parent Loop BB4_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB4_22 Depth 3
adrp x8, _r_sort_b.nc@PAGE
ldr w8, [x8, _r_sort_b.nc@PAGEOFF]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB4_30
b LBB4_21
LBB4_21: ; in Loop: Header=BB4_20 Depth=2
b LBB4_22
LBB4_22: ; Parent Loop BB4_1 Depth=1
; Parent Loop BB4_20 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #40]
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB4_24
b LBB4_23
LBB4_23: ; in Loop: Header=BB4_22 Depth=3
ldr x8, [sp, #40]
add x8, x8, #4
str x8, [sp, #40]
b LBB4_22
LBB4_24: ; in Loop: Header=BB4_20 Depth=2
ldr x8, [sp, #40]
ldr w8, [x8]
str w8, [sp, #112]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB4_28
b LBB4_25
LBB4_25: ; in Loop: Header=BB4_20 Depth=2
ldr w8, [sp, #112]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB4_27
b LBB4_26
LBB4_26: ; in Loop: Header=BB4_20 Depth=2
ldr w8, [sp, #112]
str w8, [sp, #36]
ldr x8, [sp, #88]
str x8, [sp, #72]
b LBB4_27
LBB4_27: ; in Loop: Header=BB4_20 Depth=2
ldr x8, [sp, #104]
ldr x9, [sp, #88]
str x8, [x9]
ldr w8, [sp, #112]
ldr x9, [sp, #88]
str w8, [x9, #8]
ldr w8, [sp, #128]
add w8, w8, #1
ldr x9, [sp, #88]
add x10, x9, #16
str x10, [sp, #88]
str w8, [x9, #12]
b LBB4_28
LBB4_28: ; in Loop: Header=BB4_20 Depth=2
ldr x10, [sp, #24] ; 8-byte Folded Reload
ldrsw x9, [sp, #112]
ldr x8, [sp, #104]
add x8, x8, x9, lsl #3
str x8, [sp, #104]
ldr x9, [sp, #40]
subs x9, x9, x10
mov x10, #4
sdiv x10, x9, x10
add x9, sp, #152
str x8, [x9, x10, lsl #3]
ldr x8, [sp, #40]
str wzr, [x8]
adrp x9, _r_sort_b.nc@PAGE
ldr w8, [x9, _r_sort_b.nc@PAGEOFF]
subs w8, w8, #1
str w8, [x9, _r_sort_b.nc@PAGEOFF]
b LBB4_29
LBB4_29: ; in Loop: Header=BB4_20 Depth=2
ldr x8, [sp, #40]
add x8, x8, #4
str x8, [sp, #40]
b LBB4_20
LBB4_30: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #80]
ldr q0, [x8]
str q0, [sp, #48]
ldr x8, [sp, #80]
ldr x9, [sp, #72]
ldr q0, [x9]
str q0, [x8]
ldr x8, [sp, #72]
ldr q0, [sp, #48]
str q0, [x8]
ldr x8, [sp, #136]
ldrsw x9, [sp, #132]
add x8, x8, x9, lsl #3
str x8, [sp, #104]
ldr x8, [sp, #144]
ldrsw x9, [sp, #132]
add x8, x8, x9, lsl #3
str x8, [sp, #96]
b LBB4_31
LBB4_31: ; Parent Loop BB4_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #104]
ldr x9, [sp, #136]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB4_33
b LBB4_32
LBB4_32: ; in Loop: Header=BB4_31 Depth=2
ldr x8, [sp, #96]
subs x9, x8, #8
str x9, [sp, #96]
ldur x8, [x8, #-8]
ldr x9, [sp, #104]
subs x10, x9, #8
str x10, [sp, #104]
stur x8, [x9, #-8]
b LBB4_31
LBB4_33: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #136]
ldrsw x9, [sp, #132]
add x8, x8, x9, lsl #3
str x8, [sp, #104]
b LBB4_34
LBB4_34: ; Parent Loop BB4_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #104]
subs x8, x8, #8
str x8, [sp, #104]
ldr x9, [sp, #136]
subs x8, x8, x9
cset w8, lo
tbnz w8, #0, LBB4_36
b LBB4_35
LBB4_35: ; in Loop: Header=BB4_34 Depth=2
ldr x8, [sp, #104]
ldr x8, [x8]
ldr x9, [sp, #120]
ldr x10, [sp, #104]
ldr x10, [x10]
ldrsw x11, [sp, #128]
ldrb w10, [x10, x11]
; kill: def $x10 killed $w10
ldrb w9, [x9, x10]
mov x10, x9
add x9, sp, #152
add x11, x9, x10, lsl #3
ldr x9, [x11]
subs x10, x9, #8
str x10, [x11]
stur x8, [x9, #-8]
b LBB4_34
LBB4_36: ; in Loop: Header=BB4_1 Depth=1
b LBB4_1
LBB4_37:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB4_39
b LBB4_38
LBB4_38:
bl ___stack_chk_fail
LBB4_39:
add sp, sp, #2, lsl #12 ; =8192
add sp, sp, #2208
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_r_sort_a.count,1024,2 ; @r_sort_a.count
.zerofill __DATA,__bss,_r_sort_a.nc,4,2 ; @r_sort_a.nc
.zerofill __DATA,__bss,_r_sort_a.bmin,4,2 ; @r_sort_a.bmin
.zerofill __DATA,__bss,_r_sort_b.count,1024,2 ; @r_sort_b.count
.zerofill __DATA,__bss,_r_sort_b.nc,4,2 ; @r_sort_b.nc
.zerofill __DATA,__bss,_r_sort_b.bmin,4,2 ; @r_sort_b.bmin
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _radixsort ## -- Begin function radixsort
.p2align 4, 0x90
_radixsort: ## @radixsort
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $336, %rsp ## imm = 0x150
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -288(%rbp)
movl %esi, -292(%rbp)
movq %rdx, -304(%rbp)
movl %ecx, -308(%rbp)
cmpq $0, -304(%rbp)
jne LBB0_10
## %bb.1:
leaq -272(%rbp), %rax
movq %rax, -320(%rbp)
movl $0, -324(%rbp)
LBB0_2: ## =>This Inner Loop Header: Depth=1
movl -324(%rbp), %eax
cmpl -308(%rbp), %eax
jae LBB0_5
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movl -324(%rbp), %eax
addl $1, %eax
movb %al, %cl
movslq -324(%rbp), %rax
movb %cl, -272(%rbp,%rax)
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
movl -324(%rbp), %eax
addl $1, %eax
movl %eax, -324(%rbp)
jmp LBB0_2
LBB0_5:
movslq -324(%rbp), %rax
movb $0, -272(%rbp,%rax)
movl -324(%rbp), %eax
addl $1, %eax
movl %eax, -324(%rbp)
LBB0_6: ## =>This Inner Loop Header: Depth=1
cmpl $256, -324(%rbp) ## imm = 0x100
jge LBB0_9
## %bb.7: ## in Loop: Header=BB0_6 Depth=1
movl -324(%rbp), %eax
movb %al, %cl
movslq -324(%rbp), %rax
movb %cl, -272(%rbp,%rax)
## %bb.8: ## in Loop: Header=BB0_6 Depth=1
movl -324(%rbp), %eax
addl $1, %eax
movl %eax, -324(%rbp)
jmp LBB0_6
LBB0_9:
movl $0, -308(%rbp)
jmp LBB0_14
LBB0_10:
movq -304(%rbp), %rax
movl -308(%rbp), %ecx
## kill: def $rcx killed $ecx
movzbl (%rax,%rcx), %eax
movl %eax, -308(%rbp)
movq -304(%rbp), %rax
movq %rax, -320(%rbp)
cmpl $0, -308(%rbp)
je LBB0_13
## %bb.11:
cmpl $255, -308(%rbp)
je LBB0_13
## %bb.12:
callq ___error
movl $22, (%rax)
movl $-1, -276(%rbp)
jmp LBB0_15
LBB0_13:
jmp LBB0_14
LBB0_14:
movq -288(%rbp), %rdi
movl -292(%rbp), %esi
movq -320(%rbp), %rcx
movl -308(%rbp), %r8d
xorl %edx, %edx
callq _r_sort_a
movl $0, -276(%rbp)
LBB0_15:
movl -276(%rbp), %eax
movl %eax, -328(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_17
## %bb.16:
movl -328(%rbp), %eax ## 4-byte Reload
addq $336, %rsp ## imm = 0x150
popq %rbp
retq
LBB0_17:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function r_sort_a
_r_sort_a: ## @r_sort_a
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $10384, %eax ## imm = 0x2890
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -10264(%rbp)
movl %esi, -10268(%rbp)
movl %edx, -10272(%rbp)
movq %rcx, -10280(%rbp)
movl %r8d, -10284(%rbp)
leaq -8208(%rbp), %rax
movq %rax, -10312(%rbp)
movq -10264(%rbp), %rcx
movq -10312(%rbp), %rax
movq %rcx, (%rax)
movl -10268(%rbp), %ecx
movq -10312(%rbp), %rax
movl %ecx, 8(%rax)
movl -10272(%rbp), %ecx
movq -10312(%rbp), %rax
movq %rax, %rdx
addq $16, %rdx
movq %rdx, -10312(%rbp)
movl %ecx, 12(%rax)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_6 Depth 2
## Child Loop BB1_20 Depth 2
## Child Loop BB1_22 Depth 3
## Child Loop BB1_31 Depth 2
## Child Loop BB1_33 Depth 3
leaq -8208(%rbp), %rax
cmpq -10312(%rbp), %rax
setae %al
xorb $-1, %al
testb $1, %al
jne LBB1_2
jmp LBB1_38
LBB1_2: ## in Loop: Header=BB1_1 Depth=1
movq -10312(%rbp), %rax
movq %rax, %rcx
addq $-16, %rcx
movq %rcx, -10312(%rbp)
movq -16(%rax), %rax
movq %rax, -10264(%rbp)
movq -10312(%rbp), %rax
movl 8(%rax), %eax
movl %eax, -10268(%rbp)
movq -10312(%rbp), %rax
movl 12(%rax), %eax
movl %eax, -10272(%rbp)
cmpl $20, -10268(%rbp)
jge LBB1_4
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movq -10264(%rbp), %rdi
movl -10268(%rbp), %esi
movl -10272(%rbp), %edx
movq -10280(%rbp), %rcx
movl -10284(%rbp), %r8d
callq _simplesort
jmp LBB1_1
LBB1_4: ## in Loop: Header=BB1_1 Depth=1
movq -10264(%rbp), %rax
movslq -10268(%rbp), %rcx
shlq $3, %rcx
addq %rcx, %rax
movq %rax, -10368(%rbp)
cmpl $0, _r_sort_a.nc(%rip)
jne LBB1_16
## %bb.5: ## in Loop: Header=BB1_1 Depth=1
movl $255, _r_sort_a.bmin(%rip)
movq -10264(%rbp), %rax
movq %rax, -10296(%rbp)
LBB1_6: ## Parent Loop BB1_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -10296(%rbp), %rax
cmpq -10368(%rbp), %rax
jae LBB1_13
## %bb.7: ## in Loop: Header=BB1_6 Depth=2
movq -10280(%rbp), %rax
movq -10296(%rbp), %rcx
movq %rcx, %rdx
addq $8, %rdx
movq %rdx, -10296(%rbp)
movq (%rcx), %rcx
movslq -10272(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
## kill: def $rcx killed $ecx
movzbl (%rax,%rcx), %eax
movl %eax, -10288(%rbp)
movslq -10288(%rbp), %rdx
leaq _r_sort_a.count(%rip), %rax
movl (%rax,%rdx,4), %eax
addl $1, %eax
leaq _r_sort_a.count(%rip), %rcx
movl %eax, (%rcx,%rdx,4)
cmpl $1, %eax
jne LBB1_12
## %bb.8: ## in Loop: Header=BB1_6 Depth=2
movl -10288(%rbp), %eax
cmpl -10284(%rbp), %eax
je LBB1_12
## %bb.9: ## in Loop: Header=BB1_6 Depth=2
movl -10288(%rbp), %eax
cmpl _r_sort_a.bmin(%rip), %eax
jge LBB1_11
## %bb.10: ## in Loop: Header=BB1_6 Depth=2
movl -10288(%rbp), %eax
movl %eax, _r_sort_a.bmin(%rip)
LBB1_11: ## in Loop: Header=BB1_6 Depth=2
movl _r_sort_a.nc(%rip), %eax
addl $1, %eax
movl %eax, _r_sort_a.nc(%rip)
LBB1_12: ## in Loop: Header=BB1_6 Depth=2
jmp LBB1_6
LBB1_13: ## in Loop: Header=BB1_1 Depth=1
movq -10312(%rbp), %rax
movslq _r_sort_a.nc(%rip), %rcx
shlq $4, %rcx
addq %rcx, %rax
leaq -8208(%rbp), %rcx
addq $8192, %rcx ## imm = 0x2000
cmpq %rcx, %rax
jbe LBB1_15
## %bb.14: ## in Loop: Header=BB1_1 Depth=1
movq -10264(%rbp), %rdi
movl -10268(%rbp), %esi
movl -10272(%rbp), %edx
movq -10280(%rbp), %rcx
movl -10284(%rbp), %r8d
callq _r_sort_a
jmp LBB1_1
LBB1_15: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_16
LBB1_16: ## in Loop: Header=BB1_1 Depth=1
movq -10312(%rbp), %rax
movq %rax, -10328(%rbp)
movq %rax, -10320(%rbp)
movl $2, -10356(%rbp)
cmpl $0, -10284(%rbp)
jne LBB1_18
## %bb.17: ## in Loop: Header=BB1_1 Depth=1
movq -10264(%rbp), %rax
movslq _r_sort_a.count(%rip), %rcx
shlq $3, %rcx
addq %rcx, %rax
movq %rax, -10296(%rbp)
movq %rax, -10256(%rbp)
jmp LBB1_19
LBB1_18: ## in Loop: Header=BB1_1 Depth=1
movq -10264(%rbp), %rax
movq %rax, -10296(%rbp)
movq -10368(%rbp), %rax
movq %rax, -8216(%rbp)
LBB1_19: ## in Loop: Header=BB1_1 Depth=1
movslq _r_sort_a.bmin(%rip), %rcx
leaq _r_sort_a.count(%rip), %rax
shlq $2, %rcx
addq %rcx, %rax
movq %rax, -10352(%rbp)
LBB1_20: ## Parent Loop BB1_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB1_22 Depth 3
cmpl $0, _r_sort_a.nc(%rip)
jle LBB1_30
## %bb.21: ## in Loop: Header=BB1_20 Depth=2
jmp LBB1_22
LBB1_22: ## Parent Loop BB1_1 Depth=1
## Parent Loop BB1_20 Depth=2
## => This Inner Loop Header: Depth=3
movq -10352(%rbp), %rax
cmpl $0, (%rax)
jne LBB1_24
## %bb.23: ## in Loop: Header=BB1_22 Depth=3
movq -10352(%rbp), %rax
addq $4, %rax
movq %rax, -10352(%rbp)
jmp LBB1_22
LBB1_24: ## in Loop: Header=BB1_20 Depth=2
movq -10352(%rbp), %rax
cmpl $1, (%rax)
jle LBB1_28
## %bb.25: ## in Loop: Header=BB1_20 Depth=2
movq -10352(%rbp), %rax
movl (%rax), %eax
cmpl -10356(%rbp), %eax
jle LBB1_27
## %bb.26: ## in Loop: Header=BB1_20 Depth=2
movq -10352(%rbp), %rax
movl (%rax), %eax
movl %eax, -10356(%rbp)
movq -10312(%rbp), %rax
movq %rax, -10328(%rbp)
LBB1_27: ## in Loop: Header=BB1_20 Depth=2
movq -10296(%rbp), %rcx
movq -10312(%rbp), %rax
movq %rcx, (%rax)
movq -10352(%rbp), %rax
movl (%rax), %ecx
movq -10312(%rbp), %rax
movl %ecx, 8(%rax)
movl -10272(%rbp), %ecx
addl $1, %ecx
movq -10312(%rbp), %rax
movq %rax, %rdx
addq $16, %rdx
movq %rdx, -10312(%rbp)
movl %ecx, 12(%rax)
LBB1_28: ## in Loop: Header=BB1_20 Depth=2
movq -10352(%rbp), %rax
movl (%rax), %eax
movq -10296(%rbp), %rcx
cltq
shlq $3, %rax
addq %rax, %rcx
movq %rcx, -10296(%rbp)
movq -10352(%rbp), %rax
leaq _r_sort_a.count(%rip), %rdx
subq %rdx, %rax
sarq $2, %rax
movq %rcx, -10256(%rbp,%rax,8)
movl _r_sort_a.nc(%rip), %eax
addl $-1, %eax
movl %eax, _r_sort_a.nc(%rip)
## %bb.29: ## in Loop: Header=BB1_20 Depth=2
movq -10352(%rbp), %rax
addq $4, %rax
movq %rax, -10352(%rbp)
jmp LBB1_20
LBB1_30: ## in Loop: Header=BB1_1 Depth=1
movq -10320(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -10344(%rbp)
movq 8(%rax), %rax
movq %rax, -10336(%rbp)
movq -10320(%rbp), %rax
movq -10328(%rbp), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 8(%rcx), %rcx
movq %rcx, 8(%rax)
movq -10328(%rbp), %rax
movq -10344(%rbp), %rcx
movq %rcx, (%rax)
movq -10336(%rbp), %rcx
movq %rcx, 8(%rax)
movq -10264(%rbp), %rax
movq %rax, -10384(%rbp)
LBB1_31: ## Parent Loop BB1_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB1_33 Depth 3
movq -10384(%rbp), %rax
cmpq -10368(%rbp), %rax
jae LBB1_37
## %bb.32: ## in Loop: Header=BB1_31 Depth=2
movq -10384(%rbp), %rax
movq (%rax), %rax
movq %rax, -10304(%rbp)
LBB1_33: ## Parent Loop BB1_1 Depth=1
## Parent Loop BB1_31 Depth=2
## => This Inner Loop Header: Depth=3
movq -10384(%rbp), %rax
movq -10280(%rbp), %rcx
movq -10304(%rbp), %rdx
movslq -10272(%rbp), %rsi
movzbl (%rdx,%rsi), %edx
## kill: def $rdx killed $edx
movzbl (%rcx,%rdx), %ecx
movl %ecx, -10288(%rbp)
movslq %ecx, %rdx
movq -10256(%rbp,%rdx,8), %rcx
addq $-8, %rcx
movq %rcx, -10256(%rbp,%rdx,8)
movq %rcx, -10296(%rbp)
cmpq %rcx, %rax
jae LBB1_35
## %bb.34: ## in Loop: Header=BB1_33 Depth=3
movq -10296(%rbp), %rax
movq (%rax), %rax
movq %rax, -10376(%rbp)
movq -10304(%rbp), %rcx
movq -10296(%rbp), %rax
movq %rcx, (%rax)
movq -10376(%rbp), %rax
movq %rax, -10304(%rbp)
jmp LBB1_33
LBB1_35: ## in Loop: Header=BB1_31 Depth=2
jmp LBB1_36
LBB1_36: ## in Loop: Header=BB1_31 Depth=2
movq -10304(%rbp), %rcx
movq -10384(%rbp), %rax
movq %rcx, (%rax)
movslq -10288(%rbp), %rcx
leaq _r_sort_a.count(%rip), %rax
movl (%rax,%rcx,4), %ecx
movq -10384(%rbp), %rax
movslq %ecx, %rcx
shlq $3, %rcx
addq %rcx, %rax
movq %rax, -10384(%rbp)
movslq -10288(%rbp), %rcx
leaq _r_sort_a.count(%rip), %rax
movl $0, (%rax,%rcx,4)
jmp LBB1_31
LBB1_37: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_1
LBB1_38:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_40
## %bb.39:
addq $10384, %rsp ## imm = 0x2890
popq %rbp
retq
LBB1_40:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _sradixsort ## -- Begin function sradixsort
.p2align 4, 0x90
_sradixsort: ## @sradixsort
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $336, %rsp ## imm = 0x150
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -288(%rbp)
movl %esi, -292(%rbp)
movq %rdx, -304(%rbp)
movl %ecx, -308(%rbp)
cmpq $0, -304(%rbp)
jne LBB2_10
## %bb.1:
leaq -272(%rbp), %rax
movq %rax, -320(%rbp)
movl $0, -332(%rbp)
LBB2_2: ## =>This Inner Loop Header: Depth=1
movl -332(%rbp), %eax
cmpl -308(%rbp), %eax
jae LBB2_5
## %bb.3: ## in Loop: Header=BB2_2 Depth=1
movl -332(%rbp), %eax
addl $1, %eax
movb %al, %cl
movslq -332(%rbp), %rax
movb %cl, -272(%rbp,%rax)
## %bb.4: ## in Loop: Header=BB2_2 Depth=1
movl -332(%rbp), %eax
addl $1, %eax
movl %eax, -332(%rbp)
jmp LBB2_2
LBB2_5:
movslq -332(%rbp), %rax
movb $0, -272(%rbp,%rax)
movl -332(%rbp), %eax
addl $1, %eax
movl %eax, -332(%rbp)
LBB2_6: ## =>This Inner Loop Header: Depth=1
cmpl $256, -332(%rbp) ## imm = 0x100
jge LBB2_9
## %bb.7: ## in Loop: Header=BB2_6 Depth=1
movl -332(%rbp), %eax
movb %al, %cl
movslq -332(%rbp), %rax
movb %cl, -272(%rbp,%rax)
## %bb.8: ## in Loop: Header=BB2_6 Depth=1
movl -332(%rbp), %eax
addl $1, %eax
movl %eax, -332(%rbp)
jmp LBB2_6
LBB2_9:
movl $0, -308(%rbp)
jmp LBB2_14
LBB2_10:
movq -304(%rbp), %rax
movl -308(%rbp), %ecx
## kill: def $rcx killed $ecx
movzbl (%rax,%rcx), %eax
movl %eax, -308(%rbp)
movq -304(%rbp), %rax
movq %rax, -320(%rbp)
cmpl $0, -308(%rbp)
je LBB2_13
## %bb.11:
cmpl $255, -308(%rbp)
je LBB2_13
## %bb.12:
callq ___error
movl $22, (%rax)
movl $-1, -276(%rbp)
jmp LBB2_20
LBB2_13:
jmp LBB2_14
LBB2_14:
cmpl $20, -292(%rbp)
jge LBB2_16
## %bb.15:
movq -288(%rbp), %rdi
movl -292(%rbp), %esi
movq -320(%rbp), %rcx
movl -308(%rbp), %r8d
xorl %edx, %edx
callq _simplesort
jmp LBB2_19
LBB2_16:
movslq -292(%rbp), %rdi
shlq $3, %rdi
callq _malloc
movq %rax, -328(%rbp)
cmpq $0, %rax
jne LBB2_18
## %bb.17:
movl $-1, -276(%rbp)
jmp LBB2_20
LBB2_18:
movq -288(%rbp), %rdi
movq -328(%rbp), %rsi
movl -292(%rbp), %edx
movq -320(%rbp), %r8
movl -308(%rbp), %r9d
xorl %ecx, %ecx
callq _r_sort_b
movq -328(%rbp), %rdi
callq _free
LBB2_19:
movl $0, -276(%rbp)
LBB2_20:
movl -276(%rbp), %eax
movl %eax, -336(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB2_22
## %bb.21:
movl -336(%rbp), %eax ## 4-byte Reload
addq $336, %rsp ## imm = 0x150
popq %rbp
retq
LBB2_22:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function simplesort
_simplesort: ## @simplesort
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movq %rcx, -24(%rbp)
movl %r8d, -28(%rbp)
movq -8(%rbp), %rax
addq $8, %rax
movq %rax, -40(%rbp)
LBB3_1: ## =>This Loop Header: Depth=1
## Child Loop BB3_3 Depth 2
## Child Loop BB3_5 Depth 3
movl -12(%rbp), %eax
addl $-1, %eax
movl %eax, -12(%rbp)
cmpl $1, %eax
jl LBB3_16
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movq -40(%rbp), %rax
movq %rax, -48(%rbp)
LBB3_3: ## Parent Loop BB3_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB3_5 Depth 3
movq -48(%rbp), %rax
cmpq -8(%rbp), %rax
jbe LBB3_14
## %bb.4: ## in Loop: Header=BB3_3 Depth=2
movq -48(%rbp), %rax
movq (%rax), %rax
movslq -16(%rbp), %rcx
addq %rcx, %rax
movq %rax, -56(%rbp)
movq -48(%rbp), %rax
movq -8(%rax), %rax
movslq -16(%rbp), %rcx
addq %rcx, %rax
movq %rax, -64(%rbp)
LBB3_5: ## Parent Loop BB3_1 Depth=1
## Parent Loop BB3_3 Depth=2
## => This Inner Loop Header: Depth=3
movq -24(%rbp), %rax
movq -56(%rbp), %rcx
movzbl (%rcx), %ecx
## kill: def $rcx killed $ecx
movb (%rax,%rcx), %al
movb %al, -29(%rbp)
movzbl %al, %eax
cmpl -28(%rbp), %eax
je LBB3_10
## %bb.6: ## in Loop: Header=BB3_5 Depth=3
movzbl -29(%rbp), %eax
movq -24(%rbp), %rcx
movq -64(%rbp), %rdx
movzbl (%rdx), %edx
## kill: def $rdx killed $edx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je LBB3_8
## %bb.7: ## in Loop: Header=BB3_3 Depth=2
jmp LBB3_10
LBB3_8: ## in Loop: Header=BB3_5 Depth=3
jmp LBB3_9
LBB3_9: ## in Loop: Header=BB3_5 Depth=3
movq -56(%rbp), %rax
addq $1, %rax
movq %rax, -56(%rbp)
movq -64(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
jmp LBB3_5
LBB3_10: ## in Loop: Header=BB3_3 Depth=2
movzbl -29(%rbp), %eax
movq -24(%rbp), %rcx
movq -64(%rbp), %rdx
movzbl (%rdx), %edx
## kill: def $rdx killed $edx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jl LBB3_12
## %bb.11: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_14
LBB3_12: ## in Loop: Header=BB3_3 Depth=2
movq -48(%rbp), %rax
movq (%rax), %rax
movq %rax, -56(%rbp)
movq -48(%rbp), %rax
movq -8(%rax), %rcx
movq -48(%rbp), %rax
movq %rcx, (%rax)
movq -56(%rbp), %rcx
movq -48(%rbp), %rax
movq %rcx, -8(%rax)
## %bb.13: ## in Loop: Header=BB3_3 Depth=2
movq -48(%rbp), %rax
addq $-8, %rax
movq %rax, -48(%rbp)
jmp LBB3_3
LBB3_14: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_15
LBB3_15: ## in Loop: Header=BB3_1 Depth=1
movq -40(%rbp), %rax
addq $8, %rax
movq %rax, -40(%rbp)
jmp LBB3_1
LBB3_16:
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function r_sort_b
_r_sort_b: ## @r_sort_b
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $10368, %eax ## imm = 0x2880
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -10264(%rbp)
movq %rsi, -10272(%rbp)
movl %edx, -10276(%rbp)
movl %ecx, -10280(%rbp)
movq %r8, -10288(%rbp)
movl %r9d, -10292(%rbp)
leaq -8208(%rbp), %rax
movq %rax, -10320(%rbp)
movq -10264(%rbp), %rcx
movq -10320(%rbp), %rax
movq %rcx, (%rax)
movl -10276(%rbp), %ecx
movq -10320(%rbp), %rax
movl %ecx, 8(%rax)
movl -10280(%rbp), %ecx
movq -10320(%rbp), %rax
movq %rax, %rdx
addq $16, %rdx
movq %rdx, -10320(%rbp)
movl %ecx, 12(%rax)
LBB4_1: ## =>This Loop Header: Depth=1
## Child Loop BB4_6 Depth 2
## Child Loop BB4_20 Depth 2
## Child Loop BB4_22 Depth 3
## Child Loop BB4_31 Depth 2
## Child Loop BB4_34 Depth 2
leaq -8208(%rbp), %rax
cmpq -10320(%rbp), %rax
setae %al
xorb $-1, %al
testb $1, %al
jne LBB4_2
jmp LBB4_37
LBB4_2: ## in Loop: Header=BB4_1 Depth=1
movq -10320(%rbp), %rax
movq %rax, %rcx
addq $-16, %rcx
movq %rcx, -10320(%rbp)
movq -16(%rax), %rax
movq %rax, -10264(%rbp)
movq -10320(%rbp), %rax
movl 8(%rax), %eax
movl %eax, -10276(%rbp)
movq -10320(%rbp), %rax
movl 12(%rax), %eax
movl %eax, -10280(%rbp)
cmpl $20, -10276(%rbp)
jge LBB4_4
## %bb.3: ## in Loop: Header=BB4_1 Depth=1
movq -10264(%rbp), %rdi
movl -10276(%rbp), %esi
movl -10280(%rbp), %edx
movq -10288(%rbp), %rcx
movl -10292(%rbp), %r8d
callq _simplesort
jmp LBB4_1
LBB4_4: ## in Loop: Header=BB4_1 Depth=1
cmpl $0, _r_sort_b.nc(%rip)
jne LBB4_16
## %bb.5: ## in Loop: Header=BB4_1 Depth=1
movl $255, _r_sort_b.bmin(%rip)
movq -10264(%rbp), %rax
movslq -10276(%rbp), %rcx
shlq $3, %rcx
addq %rcx, %rax
movq %rax, -10304(%rbp)
LBB4_6: ## Parent Loop BB4_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -10304(%rbp), %rax
addq $-8, %rax
movq %rax, -10304(%rbp)
cmpq -10264(%rbp), %rax
jb LBB4_13
## %bb.7: ## in Loop: Header=BB4_6 Depth=2
movq -10288(%rbp), %rax
movq -10304(%rbp), %rcx
movq (%rcx), %rcx
movslq -10280(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
## kill: def $rcx killed $ecx
movzbl (%rax,%rcx), %eax
movl %eax, -10296(%rbp)
movslq -10296(%rbp), %rdx
leaq _r_sort_b.count(%rip), %rax
movl (%rax,%rdx,4), %eax
addl $1, %eax
leaq _r_sort_b.count(%rip), %rcx
movl %eax, (%rcx,%rdx,4)
cmpl $1, %eax
jne LBB4_12
## %bb.8: ## in Loop: Header=BB4_6 Depth=2
movl -10296(%rbp), %eax
cmpl -10292(%rbp), %eax
je LBB4_12
## %bb.9: ## in Loop: Header=BB4_6 Depth=2
movl -10296(%rbp), %eax
cmpl _r_sort_b.bmin(%rip), %eax
jge LBB4_11
## %bb.10: ## in Loop: Header=BB4_6 Depth=2
movl -10296(%rbp), %eax
movl %eax, _r_sort_b.bmin(%rip)
LBB4_11: ## in Loop: Header=BB4_6 Depth=2
movl _r_sort_b.nc(%rip), %eax
addl $1, %eax
movl %eax, _r_sort_b.nc(%rip)
LBB4_12: ## in Loop: Header=BB4_6 Depth=2
jmp LBB4_6
LBB4_13: ## in Loop: Header=BB4_1 Depth=1
movq -10320(%rbp), %rax
movslq _r_sort_b.nc(%rip), %rcx
shlq $4, %rcx
addq %rcx, %rax
leaq -8208(%rbp), %rcx
addq $8192, %rcx ## imm = 0x2000
cmpq %rcx, %rax
jbe LBB4_15
## %bb.14: ## in Loop: Header=BB4_1 Depth=1
movq -10264(%rbp), %rdi
movq -10272(%rbp), %rsi
movl -10276(%rbp), %edx
movl -10280(%rbp), %ecx
movq -10288(%rbp), %r8
movl -10292(%rbp), %r9d
callq _r_sort_b
jmp LBB4_1
LBB4_15: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_16
LBB4_16: ## in Loop: Header=BB4_1 Depth=1
movq -10320(%rbp), %rax
movq %rax, -10336(%rbp)
movq %rax, -10328(%rbp)
movl $2, -10364(%rbp)
cmpl $0, -10292(%rbp)
jne LBB4_18
## %bb.17: ## in Loop: Header=BB4_1 Depth=1
movq -10264(%rbp), %rax
movslq _r_sort_b.count(%rip), %rcx
shlq $3, %rcx
addq %rcx, %rax
movq %rax, -10304(%rbp)
movq %rax, -10256(%rbp)
movl $0, _r_sort_b.count(%rip)
jmp LBB4_19
LBB4_18: ## in Loop: Header=BB4_1 Depth=1
movq -10264(%rbp), %rax
movq %rax, -10304(%rbp)
movq -10264(%rbp), %rax
movslq -10276(%rbp), %rcx
shlq $3, %rcx
addq %rcx, %rax
movq %rax, -8216(%rbp)
movl $0, _r_sort_b.count+1020(%rip)
LBB4_19: ## in Loop: Header=BB4_1 Depth=1
movslq _r_sort_b.bmin(%rip), %rcx
leaq _r_sort_b.count(%rip), %rax
shlq $2, %rcx
addq %rcx, %rax
movq %rax, -10360(%rbp)
LBB4_20: ## Parent Loop BB4_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB4_22 Depth 3
cmpl $0, _r_sort_b.nc(%rip)
jle LBB4_30
## %bb.21: ## in Loop: Header=BB4_20 Depth=2
jmp LBB4_22
LBB4_22: ## Parent Loop BB4_1 Depth=1
## Parent Loop BB4_20 Depth=2
## => This Inner Loop Header: Depth=3
movq -10360(%rbp), %rax
cmpl $0, (%rax)
jne LBB4_24
## %bb.23: ## in Loop: Header=BB4_22 Depth=3
movq -10360(%rbp), %rax
addq $4, %rax
movq %rax, -10360(%rbp)
jmp LBB4_22
LBB4_24: ## in Loop: Header=BB4_20 Depth=2
movq -10360(%rbp), %rax
movl (%rax), %eax
movl %eax, -10296(%rbp)
cmpl $1, %eax
jle LBB4_28
## %bb.25: ## in Loop: Header=BB4_20 Depth=2
movl -10296(%rbp), %eax
cmpl -10364(%rbp), %eax
jle LBB4_27
## %bb.26: ## in Loop: Header=BB4_20 Depth=2
movl -10296(%rbp), %eax
movl %eax, -10364(%rbp)
movq -10320(%rbp), %rax
movq %rax, -10336(%rbp)
LBB4_27: ## in Loop: Header=BB4_20 Depth=2
movq -10304(%rbp), %rcx
movq -10320(%rbp), %rax
movq %rcx, (%rax)
movl -10296(%rbp), %ecx
movq -10320(%rbp), %rax
movl %ecx, 8(%rax)
movl -10280(%rbp), %ecx
addl $1, %ecx
movq -10320(%rbp), %rax
movq %rax, %rdx
addq $16, %rdx
movq %rdx, -10320(%rbp)
movl %ecx, 12(%rax)
LBB4_28: ## in Loop: Header=BB4_20 Depth=2
movl -10296(%rbp), %eax
movq -10304(%rbp), %rcx
cltq
shlq $3, %rax
addq %rax, %rcx
movq %rcx, -10304(%rbp)
movq -10360(%rbp), %rax
leaq _r_sort_b.count(%rip), %rdx
subq %rdx, %rax
sarq $2, %rax
movq %rcx, -10256(%rbp,%rax,8)
movq -10360(%rbp), %rax
movl $0, (%rax)
movl _r_sort_b.nc(%rip), %eax
addl $-1, %eax
movl %eax, _r_sort_b.nc(%rip)
## %bb.29: ## in Loop: Header=BB4_20 Depth=2
movq -10360(%rbp), %rax
addq $4, %rax
movq %rax, -10360(%rbp)
jmp LBB4_20
LBB4_30: ## in Loop: Header=BB4_1 Depth=1
movq -10328(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -10352(%rbp)
movq 8(%rax), %rax
movq %rax, -10344(%rbp)
movq -10328(%rbp), %rax
movq -10336(%rbp), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 8(%rcx), %rcx
movq %rcx, 8(%rax)
movq -10336(%rbp), %rax
movq -10352(%rbp), %rcx
movq %rcx, (%rax)
movq -10344(%rbp), %rcx
movq %rcx, 8(%rax)
movq -10272(%rbp), %rax
movslq -10276(%rbp), %rcx
shlq $3, %rcx
addq %rcx, %rax
movq %rax, -10304(%rbp)
movq -10264(%rbp), %rax
movslq -10276(%rbp), %rcx
shlq $3, %rcx
addq %rcx, %rax
movq %rax, -10312(%rbp)
LBB4_31: ## Parent Loop BB4_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -10304(%rbp), %rax
cmpq -10272(%rbp), %rax
jbe LBB4_33
## %bb.32: ## in Loop: Header=BB4_31 Depth=2
movq -10312(%rbp), %rax
movq %rax, %rcx
addq $-8, %rcx
movq %rcx, -10312(%rbp)
movq -8(%rax), %rcx
movq -10304(%rbp), %rax
movq %rax, %rdx
addq $-8, %rdx
movq %rdx, -10304(%rbp)
movq %rcx, -8(%rax)
jmp LBB4_31
LBB4_33: ## in Loop: Header=BB4_1 Depth=1
movq -10272(%rbp), %rax
movslq -10276(%rbp), %rcx
shlq $3, %rcx
addq %rcx, %rax
movq %rax, -10304(%rbp)
LBB4_34: ## Parent Loop BB4_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -10304(%rbp), %rax
addq $-8, %rax
movq %rax, -10304(%rbp)
cmpq -10272(%rbp), %rax
jb LBB4_36
## %bb.35: ## in Loop: Header=BB4_34 Depth=2
movq -10304(%rbp), %rax
movq (%rax), %rcx
movq -10288(%rbp), %rax
movq -10304(%rbp), %rdx
movq (%rdx), %rdx
movslq -10280(%rbp), %rsi
movzbl (%rdx,%rsi), %edx
## kill: def $rdx killed $edx
movzbl (%rax,%rdx), %eax
movl %eax, %edx
movq -10256(%rbp,%rdx,8), %rax
movq %rax, %rsi
addq $-8, %rsi
movq %rsi, -10256(%rbp,%rdx,8)
movq %rcx, -8(%rax)
jmp LBB4_34
LBB4_36: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_1
LBB4_37:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB4_39
## %bb.38:
addq $10368, %rsp ## imm = 0x2880
popq %rbp
retq
LBB4_39:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_r_sort_a.count,1024,4 ## @r_sort_a.count
.zerofill __DATA,__bss,_r_sort_a.nc,4,2 ## @r_sort_a.nc
.zerofill __DATA,__bss,_r_sort_a.bmin,4,2 ## @r_sort_a.bmin
.zerofill __DATA,__bss,_r_sort_b.count,1024,4 ## @r_sort_b.count
.zerofill __DATA,__bss,_r_sort_b.nc,4,2 ## @r_sort_b.nc
.zerofill __DATA,__bss,_r_sort_b.bmin,4,2 ## @r_sort_b.bmin
.subsections_via_symbols
| the_stack_data/690143.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _count ; -- Begin function count
.p2align 2
_count: ; @count
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub sp, sp, #1296
add x8, sp, #232
str x8, [sp, #72] ; 8-byte Folded Spill
adrp x9, ___stack_chk_guard@GOTPAGE
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
ldr x9, [x9]
stur x9, [x29, #-24]
str x0, [x8, #24]
str x1, [x8, #16]
ldr x0, [x8, #24]
bl _opendir
ldr x8, [sp, #72] ; 8-byte Folded Reload
str x0, [x8, #8]
ldr x9, [x8, #8]
mov x8, #0
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x0, [x8, #24]
bl _perror
b LBB0_23
LBB0_2:
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x0, [x8, #8]
bl _readdir
ldr x9, [sp, #72] ; 8-byte Folded Reload
mov x8, x0
str x8, [x9]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_22
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x0, [x8, #24]
bl _strlen
ldr x8, [sp, #72] ; 8-byte Folded Reload
add x9, x0, #1
str x9, [sp, #64] ; 8-byte Folded Spill
ldr x8, [x8]
add x0, x8, #21
bl _strlen
ldr x8, [sp, #64] ; 8-byte Folded Reload
add x8, x8, x0
subs x8, x8, #1024
cset w8, ls
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x8, [sp, #72] ; 8-byte Folded Reload
adrp x9, ___stdoutp@GOTPAGE
ldr x9, [x9, ___stdoutp@GOTPAGEOFF]
ldr x9, [x9]
str x9, [sp, #56] ; 8-byte Folded Spill
ldr x0, [x8, #24]
bl _strlen
ldr x8, [sp, #72] ; 8-byte Folded Reload
add x9, x0, #1
str x9, [sp, #48] ; 8-byte Folded Spill
ldr x8, [x8]
add x0, x8, #21
bl _strlen
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr x8, [sp, #72] ; 8-byte Folded Reload
mov x10, x0
ldr x0, [sp, #56] ; 8-byte Folded Reload
add x11, x9, x10
ldr x10, [x8, #24]
ldr x8, [x8]
add x8, x8, #21
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
mov x10, #47
str x10, [x9, #16]
str x8, [x9, #24]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
b LBB0_23
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #72] ; 8-byte Folded Reload
mov w1, #0
str wzr, [sp, #84]
ldr x10, [x8, #24]
ldr x8, [x8]
add x8, x8, #21
mov x9, sp
str x10, [x9]
mov x10, #47
str x10, [x9, #8]
str x8, [x9, #16]
add x0, sp, #264
str x0, [sp, #40] ; 8-byte Folded Spill
mov x2, #1024
adrp x3, l_.str.1@PAGE
add x3, x3, l_.str.1@PAGEOFF
bl ___sprintf_chk
ldr x0, [sp, #40] ; 8-byte Folded Reload
add x1, sp, #88
bl _lstat
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
add x0, sp, #264
bl _perror
b LBB0_23
LBB0_8: ; in Loop: Header=BB0_3 Depth=1
ldrh w8, [sp, #92]
and w8, w8, #0xf000
subs w8, w8, #4, lsl #12 ; =16384
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_3 Depth=1
mov w8, #1
str w8, [sp, #84]
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #84]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_18
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x8, [x8]
add x1, x8, #21
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _strcmp
mov w8, #0
subs w8, w8, w0
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x8, [x8]
add x1, x8, #21
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _strcmp
mov w8, #0
subs w8, w8, w0
cset w8, ne
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_3 Depth=1
b LBB0_17
LBB0_14: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x8, [x8, #16]
ldr x9, [x8]
mov x8, #-1
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15:
ldr x8, [sp, #72] ; 8-byte Folded Reload
adrp x9, ___stderrp@GOTPAGE
ldr x9, [x9, ___stderrp@GOTPAGEOFF]
ldr x0, [x9]
ldr x9, [x8, #16]
ldr x10, [x9]
ldr x8, [x8, #16]
ldr x8, [x8, #8]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_16: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x10, [x8, #24]
ldr x8, [x8]
add x8, x8, #21
mov x9, sp
str x10, [x9]
mov x10, #47
str x10, [x9, #8]
str x8, [x9, #16]
add x0, sp, #264
str x0, [sp, #32] ; 8-byte Folded Spill
mov w1, #0
mov x2, #1024
adrp x3, l_.str.1@PAGE
add x3, x3, l_.str.1@PAGEOFF
bl ___sprintf_chk
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x0, [sp, #32] ; 8-byte Folded Reload
ldr x10, [x8, #16]
ldr x9, [x10]
add x9, x9, #1
str x9, [x10]
ldr x1, [x8, #16]
bl _count
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_3 Depth=1
b LBB0_21
LBB0_18: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x8, [x8, #16]
ldr x9, [x8, #8]
mov x8, #-1
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19:
ldr x8, [sp, #72] ; 8-byte Folded Reload
adrp x9, ___stderrp@GOTPAGE
ldr x9, [x9, ___stderrp@GOTPAGEOFF]
ldr x0, [x9]
ldr x9, [x8, #16]
ldr x10, [x9, #8]
ldr x8, [x8, #16]
ldr x8, [x8]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_20: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x9, [x8, #16]
ldr x8, [x9, #8]
add x8, x8, #1
str x8, [x9, #8]
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_3 Depth=1
b LBB0_3
LBB0_22:
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x0, [x8, #8]
bl _closedir
b LBB0_23
LBB0_23:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_25
b LBB0_24
LBB0_24:
bl ___stack_chk_fail
LBB0_25:
add sp, sp, #1296
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
str xzr, [sp, #40]
str xzr, [sp, #32]
ldur w8, [x29, #-8]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
str x8, [sp, #24]
b LBB1_3
LBB1_2:
adrp x8, l_.str.3@PAGE
add x8, x8, l_.str.3@PAGEOFF
str x8, [sp, #24]
b LBB1_3
LBB1_3:
ldr x0, [sp, #24]
add x1, sp, #32
bl _count
ldr x9, [sp, #40]
mov x8, #0
subs x8, x8, x9
cset w8, lo
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4:
ldr x9, [sp, #32]
mov x8, #0
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5:
ldr x11, [sp, #24]
ldr x10, [sp, #40]
ldr x8, [sp, #32]
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB1_6
LBB1_6:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "path too long (%ld) %s%c%s"
l_.str.1: ; @.str.1
.asciz "%s%c%s"
l_.str.2: ; @.str.2
.asciz ".."
l_.str.3: ; @.str.3
.asciz "."
l_.str.4: ; @.str.4
.asciz "Reached maximum number of directories to count (%lu) after %lu files\n"
l_.str.5: ; @.str.5
.asciz "Reached maximum number of files to count (%lu) after %lu directories\n"
l_.str.6: ; @.str.6
.asciz "%s\t%lu\t%lu\t\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _count ## -- Begin function count
.p2align 4, 0x90
_count: ## @count
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $1264, %rsp ## imm = 0x4F0
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -1048(%rbp)
movq %rsi, -1056(%rbp)
movq -1048(%rbp), %rdi
callq _opendir$INODE64
movq %rax, -1064(%rbp)
xorl %eax, %eax
## kill: def $rax killed $eax
cmpq -1064(%rbp), %rax
jne LBB0_2
## %bb.1:
movq -1048(%rbp), %rdi
callq _perror
jmp LBB0_23
LBB0_2:
jmp LBB0_3
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq -1064(%rbp), %rdi
callq _readdir$INODE64
movq %rax, -1072(%rbp)
cmpq $0, %rax
je LBB0_22
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -1048(%rbp), %rdi
callq _strlen
addq $1, %rax
movq %rax, -1232(%rbp) ## 8-byte Spill
movq -1072(%rbp), %rdi
addq $21, %rdi
callq _strlen
movq %rax, %rcx
movq -1232(%rbp), %rax ## 8-byte Reload
addq %rcx, %rax
cmpq $1024, %rax ## imm = 0x400
jbe LBB0_6
## %bb.5:
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -1240(%rbp) ## 8-byte Spill
movq -1048(%rbp), %rdi
callq _strlen
addq $1, %rax
movq %rax, -1248(%rbp) ## 8-byte Spill
movq -1072(%rbp), %rdi
addq $21, %rdi
callq _strlen
movq -1248(%rbp), %rdx ## 8-byte Reload
movq -1240(%rbp), %rdi ## 8-byte Reload
addq %rax, %rdx
movq -1048(%rbp), %rcx
movq -1072(%rbp), %r9
addq $21, %r9
leaq L_.str(%rip), %rsi
movl $47, %r8d
movb $0, %al
callq _fprintf
jmp LBB0_23
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
movl $0, -1220(%rbp)
leaq -1040(%rbp), %rdi
movq -1048(%rbp), %r8
movq -1072(%rbp), %rax
addq $21, %rax
xorl %esi, %esi
movl $1024, %edx ## imm = 0x400
leaq L_.str.1(%rip), %rcx
movl $47, %r9d
movq %rax, (%rsp)
movb $0, %al
callq ___sprintf_chk
leaq -1040(%rbp), %rdi
leaq -1216(%rbp), %rsi
callq _lstat$INODE64
cmpl $0, %eax
je LBB0_8
## %bb.7:
leaq -1040(%rbp), %rdi
callq _perror
jmp LBB0_23
LBB0_8: ## in Loop: Header=BB0_3 Depth=1
movzwl -1212(%rbp), %eax
andl $61440, %eax ## imm = 0xF000
cmpl $16384, %eax ## imm = 0x4000
jne LBB0_10
## %bb.9: ## in Loop: Header=BB0_3 Depth=1
movl $1, -1220(%rbp)
LBB0_10: ## in Loop: Header=BB0_3 Depth=1
cmpl $0, -1220(%rbp)
je LBB0_18
## %bb.11: ## in Loop: Header=BB0_3 Depth=1
movq -1072(%rbp), %rsi
addq $21, %rsi
leaq L_.str.2(%rip), %rdi
callq _strcmp
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
je LBB0_13
## %bb.12: ## in Loop: Header=BB0_3 Depth=1
movq -1072(%rbp), %rsi
addq $21, %rsi
leaq L_.str.3(%rip), %rdi
callq _strcmp
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne LBB0_14
LBB0_13: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_17
LBB0_14: ## in Loop: Header=BB0_3 Depth=1
movq -1056(%rbp), %rcx
movq $-1, %rax
cmpq (%rcx), %rax
jne LBB0_16
## %bb.15:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -1056(%rbp), %rax
movq (%rax), %rdx
movq 8(%rax), %rcx
leaq L_.str.4(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_16: ## in Loop: Header=BB0_3 Depth=1
leaq -1040(%rbp), %rdi
movq -1048(%rbp), %r8
movq -1072(%rbp), %rax
addq $21, %rax
xorl %esi, %esi
movl $1024, %edx ## imm = 0x400
leaq L_.str.1(%rip), %rcx
movl $47, %r9d
movq %rax, (%rsp)
movb $0, %al
callq ___sprintf_chk
movq -1056(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
leaq -1040(%rbp), %rdi
movq -1056(%rbp), %rsi
callq _count
LBB0_17: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_21
LBB0_18: ## in Loop: Header=BB0_3 Depth=1
movq -1056(%rbp), %rcx
movq $-1, %rax
cmpq 8(%rcx), %rax
jne LBB0_20
## %bb.19:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -1056(%rbp), %rax
movq (%rax), %rcx
movq 8(%rax), %rdx
leaq L_.str.5(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_20: ## in Loop: Header=BB0_3 Depth=1
movq -1056(%rbp), %rax
movq 8(%rax), %rcx
addq $1, %rcx
movq %rcx, 8(%rax)
LBB0_21: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_3
LBB0_22:
movq -1064(%rbp), %rdi
callq _closedir
LBB0_23:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_25
## %bb.24:
addq $1264, %rsp ## imm = 0x4F0
popq %rbp
retq
LBB0_25:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movq $0, -24(%rbp)
movq $0, -32(%rbp)
cmpl $1, -8(%rbp)
jle LBB1_2
## %bb.1:
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -40(%rbp)
jmp LBB1_3
LBB1_2:
leaq L_.str.3(%rip), %rax
movq %rax, -40(%rbp)
LBB1_3:
movq -40(%rbp), %rdi
leaq -32(%rbp), %rsi
callq _count
xorl %eax, %eax
## kill: def $rax killed $eax
cmpq -24(%rbp), %rax
jb LBB1_5
## %bb.4:
xorl %eax, %eax
## kill: def $rax killed $eax
cmpq -32(%rbp), %rax
jae LBB1_6
LBB1_5:
movq -40(%rbp), %rsi
movq -24(%rbp), %rdx
movq -32(%rbp), %rcx
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
LBB1_6:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "path too long (%ld) %s%c%s"
L_.str.1: ## @.str.1
.asciz "%s%c%s"
L_.str.2: ## @.str.2
.asciz ".."
L_.str.3: ## @.str.3
.asciz "."
L_.str.4: ## @.str.4
.asciz "Reached maximum number of directories to count (%lu) after %lu files\n"
L_.str.5: ## @.str.5
.asciz "Reached maximum number of files to count (%lu) after %lu directories\n"
L_.str.6: ## @.str.6
.asciz "%s\t%lu\t%lu\t\n"
.subsections_via_symbols
| the_stack_data/92894.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _movehyphen ; -- Begin function movehyphen
.p2align 2
_movehyphen: ; @movehyphen
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str x0, [sp, #24]
str wzr, [sp, #20]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_4 Depth 2
ldr x8, [sp, #24]
ldrsw x9, [sp, #20]
ldrsb w8, [x8, x9]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp, #20]
ldrsb w8, [x8, x9]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
subs w8, w8, #1
str w8, [sp, #16]
b LBB0_4
LBB0_4: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #16]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_7
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=2
ldrsw x10, [sp, #16]
add x9, sp, #36
mov x8, x9
add x8, x8, x10
ldrb w8, [x8]
ldr w10, [sp, #16]
add w10, w10, #1
add x9, x9, w10, sxtw
strb w8, [x9]
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_4 Depth=2
ldr w8, [sp, #16]
subs w8, w8, #1
str w8, [sp, #16]
b LBB0_4
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
mov w8, #45
strb w8, [sp, #36]
b LBB0_9
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp, #20]
add x8, x8, x9
ldrb w8, [x8]
ldrsw x10, [sp, #20]
add x9, sp, #36
add x9, x9, x10
strb w8, [x9]
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_1
LBB0_10:
ldrsw x10, [sp, #20]
add x8, sp, #36
mov x9, x8
add x9, x9, x10
strb wzr, [x9]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
bl ___stack_chk_fail
LBB0_12:
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
add sp, sp, #160
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
stp 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
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #20
str x8, [sp, #8] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr x0, [sp, #8] ; 8-byte Folded Reload
bl _movehyphen
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
bl ___stack_chk_fail
LBB1_2:
mov w0, #0
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
add sp, sp, #144
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Modified String : %s"
l_.str.1: ; @.str.1
.asciz "\n"
l_.str.2: ; @.str.2
.asciz "Move Hyphens of a String to Front\n"
l_.str.3: ; @.str.3
.asciz "*********************************\n\n"
l_.str.4: ; @.str.4
.asciz "Enter String : "
l_.str.5: ; @.str.5
.asciz "%s"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _movehyphen ## -- Begin function movehyphen
.p2align 4, 0x90
_movehyphen: ## @movehyphen
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -120(%rbp)
movl $0, -124(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_4 Depth 2
movq -120(%rbp), %rax
movslq -124(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0, %eax
je LBB0_10
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -120(%rbp), %rax
movslq -124(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $45, %eax
jne LBB0_8
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -124(%rbp), %eax
subl $1, %eax
movl %eax, -128(%rbp)
LBB0_4: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $0, -128(%rbp)
jl LBB0_7
## %bb.5: ## in Loop: Header=BB0_4 Depth=2
movslq -128(%rbp), %rax
movb -112(%rbp,%rax), %cl
movl -128(%rbp), %eax
addl $1, %eax
cltq
movb %cl, -112(%rbp,%rax)
## %bb.6: ## in Loop: Header=BB0_4 Depth=2
movl -128(%rbp), %eax
addl $-1, %eax
movl %eax, -128(%rbp)
jmp LBB0_4
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movb $45, -112(%rbp)
jmp LBB0_9
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movq -120(%rbp), %rax
movslq -124(%rbp), %rcx
movb (%rax,%rcx), %cl
movslq -124(%rbp), %rax
movb %cl, -112(%rbp,%rax)
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movl -124(%rbp), %eax
addl $1, %eax
movl %eax, -124(%rbp)
jmp LBB0_1
LBB0_10:
movslq -124(%rbp), %rax
movb $0, -112(%rbp,%rax)
leaq -112(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_12
## %bb.11:
addq $128, %rsp
popq %rbp
retq
LBB0_12:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $112, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq -112(%rbp), %rsi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _scanf
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq -112(%rbp), %rdi
callq _movehyphen
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_2
## %bb.1:
xorl %eax, %eax
addq $112, %rsp
popq %rbp
retq
LBB1_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Modified String : %s"
L_.str.1: ## @.str.1
.asciz "\n"
L_.str.2: ## @.str.2
.asciz "Move Hyphens of a String to Front\n"
L_.str.3: ## @.str.3
.asciz "*********************************\n\n"
L_.str.4: ## @.str.4
.asciz "Enter String : "
L_.str.5: ## @.str.5
.asciz "%s"
.subsections_via_symbols
| the_stack_data/150142420.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-24]
mov x0, #8
bl _malloc
str x0, [sp, #32]
ldr x0, [sp, #32]
bl _iniciaPilha
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
mov x9, sp
sub x8, x29, #18
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #18
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #32]
bl _pushPilha
b LBB0_7
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
sub x0, x29, #18
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #32]
bl _popPilha
str x0, [sp, #24]
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_8:
ldur w8, [x29, #-24]
str w8, [sp, #20] ; 4-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
bl ___stack_chk_fail
LBB0_10:
ldr w0, [sp, #20] ; 4-byte Folded Reload
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _iniciaPilha ; -- Begin function iniciaPilha
.p2align 2
_iniciaPilha: ; @iniciaPilha
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
; kill: def $x9 killed $xzr
str xzr, [x8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _pushPilha ; -- Begin function pushPilha
.p2align 2
_pushPilha: ; @pushPilha
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
mov x0, #16
bl _malloc
str x0, [sp, #24]
ldur x8, [x29, #-16]
str x8, [sp, #8] ; 8-byte Folded Spill
bl _criaLista
ldr x9, [sp, #8] ; 8-byte Folded Reload
str x0, [sp, #16]
ldr x8, [sp, #16]
str x8, [x9]
ldur x8, [x29, #-16]
ldr x9, [sp, #24]
str x8, [x9]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [sp, #24]
str x8, [x9, #8]
ldr x8, [sp, #24]
ldur x9, [x29, #-8]
str x8, [x9]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _popPilha ; -- Begin function popPilha
.p2align 2
_popPilha: ; @popPilha
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
ldr x8, [sp, #16]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
ldr x8, [sp, #16]
ldr x8, [x8]
str x8, [sp, #8]
ldr x8, [sp, #16]
ldr x8, [x8]
ldr x8, [x8, #8]
ldr x9, [sp, #16]
str x8, [x9]
ldr x8, [sp, #8]
ldr x0, [x8]
bl _printLista
b LBB3_3
LBB3_2:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB3_3
LBB3_3:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _criaLista ; -- Begin function criaLista
.p2align 2
_criaLista: ; @criaLista
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, #16
bl _malloc
str x0, [sp, #24]
mov x0, #8
bl _malloc
str x0, [sp, #16]
ldr x8, [sp, #16]
; kill: def $x9 killed $xzr
str xzr, [x8]
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
mov x9, sp
sub x8, x29, #12
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _scanf
ldur w8, [x29, #-12]
ldr x9, [sp, #24]
str w8, [x9]
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB4_6
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB4_4
b LBB4_3
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #24]
ldr x9, [sp, #16]
str x8, [x9]
ldr x8, [sp, #24]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
b LBB4_5
LBB4_4: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
ldr x9, [sp, #24]
str x8, [x9, #8]
ldr x8, [sp, #24]
ldr x8, [x8, #8]
ldr x9, [sp, #16]
str x8, [x9]
b LBB4_5
LBB4_5: ; in Loop: Header=BB4_1 Depth=1
b LBB4_7
LBB4_6:
b LBB4_9
LBB4_7: ; in Loop: Header=BB4_1 Depth=1
b LBB4_8
LBB4_8: ; in Loop: Header=BB4_1 Depth=1
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
sxtb x0, w8
mov x1, #0
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_1
b LBB4_9
LBB4_9:
ldr x8, [sp, #16]
ldr x8, [x8]
stur x8, [x29, #-8]
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _printLista ; -- Begin function printLista
.p2align 2
_printLista: ; @printLista
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB5_8
b LBB5_1
LBB5_1:
ldur x8, [x29, #-8]
ldr x8, [x8]
str x8, [sp, #16]
b LBB5_2
LBB5_2: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB5_7
b LBB5_3
LBB5_3: ; in Loop: Header=BB5_2 Depth=1
ldr x8, [sp, #16]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr x8, [sp, #16]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB5_5
b LBB5_4
LBB5_4: ; in Loop: Header=BB5_2 Depth=1
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB5_6
LBB5_5: ; in Loop: Header=BB5_2 Depth=1
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB5_6
LBB5_6: ; in Loop: Header=BB5_2 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #8]
str x8, [sp, #16]
b LBB5_2
LBB5_7:
b LBB5_9
LBB5_8:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB5_9
LBB5_9:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s"
l_.str.1: ; @.str.1
.asciz "PUSH"
l_.str.2: ; @.str.2
.asciz "POP"
l_.str.3: ; @.str.3
.asciz "%d"
l_.str.4: ; @.str.4
.asciz "EMPTY STACK\n"
l_.str.5: ; @.str.5
.asciz "\n"
l_.str.6: ; @.str.6
.asciz " "
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -24(%rbp)
movl $8, %edi
callq _malloc
movq %rax, -32(%rbp)
movq -32(%rbp), %rdi
callq _iniciaPilha
LBB0_1: ## =>This Inner Loop Header: Depth=1
leaq -18(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _scanf
cmpl $-1, %eax
je LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq -18(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdi
callq _pushPilha
jmp LBB0_7
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
leaq -18(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdi
callq _popPilha
movq %rax, -40(%rbp)
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_8:
movl -24(%rbp), %eax
movl %eax, -44(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_10
## %bb.9:
movl -44(%rbp), %eax ## 4-byte Reload
addq $48, %rsp
popq %rbp
retq
LBB0_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _iniciaPilha ## -- Begin function iniciaPilha
.p2align 4, 0x90
_iniciaPilha: ## @iniciaPilha
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq $0, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _pushPilha ## -- Begin function pushPilha
.p2align 4, 0x90
_pushPilha: ## @pushPilha
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movl $16, %edi
callq _malloc
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
movq %rax, -40(%rbp) ## 8-byte Spill
callq _criaLista
movq %rax, %rcx
movq -40(%rbp), %rax ## 8-byte Reload
movq %rcx, -32(%rbp)
movq -32(%rbp), %rcx
movq %rcx, (%rax)
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
movq -8(%rbp), %rax
movq (%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _popPilha ## -- Begin function popPilha
.p2align 4, 0x90
_popPilha: ## @popPilha
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rax
cmpq $0, (%rax)
je LBB3_2
## %bb.1:
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq 8(%rax), %rcx
movq -16(%rbp), %rax
movq %rcx, (%rax)
movq -24(%rbp), %rax
movq (%rax), %rdi
callq _printLista
jmp LBB3_3
LBB3_2:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
LBB3_3:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _criaLista ## -- Begin function criaLista
.p2align 4, 0x90
_criaLista: ## @criaLista
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $16, %edi
callq _malloc
movq %rax, -24(%rbp)
movl $8, %edi
callq _malloc
movq %rax, -32(%rbp)
movq -32(%rbp), %rax
movq $0, (%rax)
LBB4_1: ## =>This Inner Loop Header: Depth=1
leaq L_.str.3(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
movl -12(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
cmpl $0, -12(%rbp)
je LBB4_6
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movq -32(%rbp), %rax
cmpq $0, (%rax)
jne LBB4_4
## %bb.3: ## in Loop: Header=BB4_1 Depth=1
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, (%rax)
movq -24(%rbp), %rax
movq $0, 8(%rax)
jmp LBB4_5
LBB4_4: ## in Loop: Header=BB4_1 Depth=1
movq -32(%rbp), %rax
movq (%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rax
movq 8(%rax), %rcx
movq -32(%rbp), %rax
movq %rcx, (%rax)
LBB4_5: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_7
LBB4_6:
jmp LBB4_9
LBB4_7: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_8
LBB4_8: ## in Loop: Header=BB4_1 Depth=1
movl -12(%rbp), %eax
## kill: def $al killed $al killed $eax
movsbq %al, %rdi
xorl %eax, %eax
movl %eax, %esi
callq _strcmp
cmpl $0, %eax
jne LBB4_1
LBB4_9:
movq -32(%rbp), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _printLista ## -- Begin function printLista
.p2align 4, 0x90
_printLista: ## @printLista
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
cmpq $0, (%rax)
je LBB5_8
## %bb.1:
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
LBB5_2: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16(%rbp)
je LBB5_7
## %bb.3: ## in Loop: Header=BB5_2 Depth=1
movq -16(%rbp), %rax
movl (%rax), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rax
cmpq $0, 8(%rax)
jne LBB5_5
## %bb.4: ## in Loop: Header=BB5_2 Depth=1
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB5_6
LBB5_5: ## in Loop: Header=BB5_2 Depth=1
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
LBB5_6: ## in Loop: Header=BB5_2 Depth=1
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -16(%rbp)
jmp LBB5_2
LBB5_7:
jmp LBB5_9
LBB5_8:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
LBB5_9:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s"
L_.str.1: ## @.str.1
.asciz "PUSH"
L_.str.2: ## @.str.2
.asciz "POP"
L_.str.3: ## @.str.3
.asciz "%d"
L_.str.4: ## @.str.4
.asciz "EMPTY STACK\n"
L_.str.5: ## @.str.5
.asciz "\n"
L_.str.6: ## @.str.6
.asciz " "
.subsections_via_symbols
| the_stack_data/8861.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #28]
mov x9, sp
sub x8, x29, #30
str x8, [sp, #16] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _strlen
subs x8, x0, #20
cset w8, ls
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _perror
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.3@PAGE
add x8, x8, l_.str.3@PAGEOFF
str x8, [x9]
mov x8, #12
str x8, [x9, #8]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_2:
mov x9, sp
sub x8, x29, #30
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
bl ___stack_chk_fail
LBB0_4:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%21s"
l_.str.1: ; @.str.1
.asciz "Name too long"
l_.str.2: ; @.str.2
.asciz "%s:%d\n"
l_.str.3: ; @.str.3
.asciz "the_stack_data/41176.c"
l_.str.4: ; @.str.4
.asciz "Hello %s\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -36(%rbp)
leaq -32(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _scanf
leaq -32(%rbp), %rdi
callq _strlen
cmpq $20, %rax
jbe LBB0_2
## %bb.1:
leaq L_.str.1(%rip), %rdi
callq _perror
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.2(%rip), %rsi
leaq L_.str.3(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $12, %ecx
callq _fprintf
movl $1, %edi
callq _exit
LBB0_2:
leaq -32(%rbp), %rsi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_4
## %bb.3:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
LBB0_4:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%21s"
L_.str.1: ## @.str.1
.asciz "Name too long"
L_.str.2: ## @.str.2
.asciz "%s:%d\n"
L_.str.3: ## @.str.3
.asciz "the_stack_data/41176.c"
L_.str.4: ## @.str.4
.asciz "Hello %s\n"
.subsections_via_symbols
| the_stack_data/41176.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #32]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #18
str x8, [sp, #24] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
str x0, [sp, #8] ; 8-byte Folded Spill
bl _scanf
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #28
str x8, [sp, #16] ; 8-byte Folded Spill
str x8, [x9]
bl _scanf
ldr x1, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _f
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl ___stack_chk_fail
LBB0_2:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _f ; -- Begin function f
.p2align 2
_f: ; @f
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
ldr x8, [sp, #24]
str x8, [sp, #8]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_3 Depth 2
ldr x8, [sp, #8]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_12
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #16]
str x8, [sp]
b LBB1_3
LBB1_3: ; Parent Loop BB1_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_8
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=2
ldr x8, [sp, #8]
ldrsb w8, [x8]
ldr x9, [sp]
ldrsb w9, [x9]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
b LBB1_8
LBB1_6: ; in Loop: Header=BB1_3 Depth=2
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_3 Depth=2
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB1_3
LBB1_8: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
b LBB1_12
LBB1_10: ; in Loop: Header=BB1_1 Depth=1
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB1_1
LBB1_12:
ldr x8, [sp, #8]
ldr x9, [sp, #24]
subs x8, x8, x9
mov x0, x8
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"
l_.str.1: ; @.str.1
.asciz "Enter s: "
l_.str.2: ; @.str.2
.asciz "%s"
l_.str.3: ; @.str.3
.asciz "Enter t: "
l_.str.4: ; @.str.4
.asciz "Function f returned %d."
l_.str.5: ; @.str.5
.asciz "\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -32(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq -18(%rbp), %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _scanf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq -28(%rbp), %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _scanf
leaq -18(%rbp), %rdi
leaq -28(%rbp), %rsi
callq _f
movl %eax, %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_2
## %bb.1:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _f ## -- Begin function f
.p2align 4, 0x90
_f: ## @f
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rax
movq %rax, -24(%rbp)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_3 Depth 2
movq -24(%rbp), %rax
cmpb $0, (%rax)
je LBB1_12
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -16(%rbp), %rax
movq %rax, -32(%rbp)
LBB1_3: ## Parent Loop BB1_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -32(%rbp), %rax
cmpb $0, (%rax)
je LBB1_8
## %bb.4: ## in Loop: Header=BB1_3 Depth=2
movq -24(%rbp), %rax
movsbl (%rax), %eax
movq -32(%rbp), %rcx
movsbl (%rcx), %ecx
cmpl %ecx, %eax
jne LBB1_6
## %bb.5: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_8
LBB1_6: ## in Loop: Header=BB1_3 Depth=2
jmp LBB1_7
LBB1_7: ## in Loop: Header=BB1_3 Depth=2
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB1_3
LBB1_8: ## in Loop: Header=BB1_1 Depth=1
movq -32(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
jne LBB1_10
## %bb.9:
jmp LBB1_12
LBB1_10: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_11
LBB1_11: ## in Loop: Header=BB1_1 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp LBB1_1
LBB1_12:
movq -24(%rbp), %rax
movq -8(%rbp), %rcx
subq %rcx, %rax
## kill: def $eax killed $eax killed $rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"
L_.str.1: ## @.str.1
.asciz "Enter s: "
L_.str.2: ## @.str.2
.asciz "%s"
L_.str.3: ## @.str.3
.asciz "Enter t: "
L_.str.4: ## @.str.4
.asciz "Function f returned %d."
L_.str.5: ## @.str.5
.asciz "\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"
.subsections_via_symbols
| the_stack_data/87637397.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, sp
mov w1, #1
bl _fn
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function fn
_fn: ; @fn
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str w1, [sp, #4]
ldr x8, [sp, #8]
ldrsw x9, [sp, #4]
ldr x8, [x8, x9, lsl #3]
ldr w9, [sp, #4]
; kill: def $x9 killed $w9
lsl x0, x8, x9
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
leaq -16(%rbp), %rdi
movl $1, %esi
callq _fn
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function fn
_fn: ## @fn
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -12(%rbp), %ecx
## kill: def $rcx killed $ecx
## kill: def $cl killed $rcx
shlq %cl, %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/237643202.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl ___VERIFIER_assert ; -- Begin function __VERIFIER_assert
.p2align 2
___VERIFIER_assert: ; @__VERIFIER_assert
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
ldur w8, [x29, #-4]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
b LBB0_2
LBB0_2:
bl ___VERIFIER_error
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub sp, sp, #80
adrp x8, _N@GOTPAGE
ldr x8, [x8, _N@GOTPAGEOFF]
stur x8, [x29, #-48] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-12]
bl ___VERIFIER_nondet_int
ldur x8, [x29, #-48] ; 8-byte Folded Reload
str w0, [x8]
ldr w8, [x8]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
mov w8, #1
stur w8, [x29, #-12]
b LBB1_19
LBB1_2:
ldur x8, [x29, #-48] ; 8-byte Folded Reload
ldrsw x8, [x8]
mov x9, #536870911
subs x8, x8, x9
cset w8, ls
and w0, w8, #0x1
bl ___VERIFIER_assume
ldur x8, [x29, #-48] ; 8-byte Folded Reload
ldr w8, [x8]
; kill: def $x8 killed $w8
mov x9, sp
stur x9, [x29, #-32]
lsl x9, x8, #2
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-64] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-64] ; 8-byte Folded Reload
mov x9, sp
subs x9, x9, x10
mov sp, x9
stur x9, [x29, #-56] ; 8-byte Folded Spill
stur x8, [x29, #-40]
stur wzr, [x29, #-16]
b LBB1_3
LBB1_3: ; =>This Inner Loop Header: Depth=1
ldur x9, [x29, #-48] ; 8-byte Folded Reload
ldur w8, [x29, #-16]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_6
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=1
ldur x9, [x29, #-56] ; 8-byte Folded Reload
ldursw x10, [x29, #-16]
mov w8, #0
str w8, [x9, x10, lsl #2]
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB1_3
LBB1_6:
stur wzr, [x29, #-16]
b LBB1_7
LBB1_7: ; =>This Loop Header: Depth=1
; Child Loop BB1_9 Depth 2
ldur x9, [x29, #-48] ; 8-byte Folded Reload
ldur w8, [x29, #-16]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_14
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_7 Depth=1
stur wzr, [x29, #-20]
b LBB1_9
LBB1_9: ; Parent Loop BB1_7 Depth=1
; => This Inner Loop Header: Depth=2
ldur x9, [x29, #-48] ; 8-byte Folded Reload
ldur w8, [x29, #-20]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_12
b LBB1_10
LBB1_10: ; in Loop: Header=BB1_9 Depth=2
ldur x9, [x29, #-56] ; 8-byte Folded Reload
ldur x10, [x29, #-48] ; 8-byte Folded Reload
ldursw x8, [x29, #-20]
ldr w8, [x9, x8, lsl #2]
ldr w10, [x10]
add w8, w8, w10
ldursw x10, [x29, #-20]
str w8, [x9, x10, lsl #2]
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_9 Depth=2
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB1_9
LBB1_12: ; in Loop: Header=BB1_7 Depth=1
b LBB1_13
LBB1_13: ; in Loop: Header=BB1_7 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB1_7
LBB1_14:
stur wzr, [x29, #-16]
b LBB1_15
LBB1_15: ; =>This Inner Loop Header: Depth=1
ldur x9, [x29, #-48] ; 8-byte Folded Reload
ldur w8, [x29, #-16]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_18
b LBB1_16
LBB1_16: ; in Loop: Header=BB1_15 Depth=1
ldur x10, [x29, #-48] ; 8-byte Folded Reload
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldursw x9, [x29, #-16]
ldr w8, [x8, x9, lsl #2]
ldr w9, [x10]
ldr w10, [x10]
mul w9, w9, w10
subs w8, w8, w9
cset w8, eq
and w0, w8, #0x1
bl ___VERIFIER_assert
b LBB1_17
LBB1_17: ; in Loop: Header=BB1_15 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB1_15
LBB1_18:
ldur x8, [x29, #-32]
mov sp, x8
b LBB1_19
LBB1_19:
ldur w8, [x29, #-12]
stur w8, [x29, #-68] ; 4-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_21
b LBB1_20
LBB1_20:
bl ___stack_chk_fail
LBB1_21:
ldur w0, [x29, #-68] ; 4-byte Folded Reload
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.comm _N,4,2 ; @N
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl ___VERIFIER_assert ## -- Begin function __VERIFIER_assert
.p2align 4, 0x90
___VERIFIER_assert: ## @__VERIFIER_assert
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
cmpl $0, -4(%rbp)
jne LBB0_3
## %bb.1:
jmp LBB0_2
LBB0_2:
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq ___VERIFIER_error
LBB0_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -12(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, %ecx
movq _N@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _N@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jg LBB1_2
## %bb.1:
movl $1, -12(%rbp)
jmp LBB1_19
LBB1_2:
movq _N@GOTPCREL(%rip), %rax
movq %rax, -64(%rbp) ## 8-byte Spill
movslq (%rax), %rax
subq $536870912, %rax ## imm = 0x20000000
setb %al
movzbl %al, %edi
callq ___VERIFIER_assume
movq -64(%rbp), %rax ## 8-byte Reload
movl (%rax), %eax
## kill: def $rax killed $eax
movq %rax, -56(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -32(%rbp)
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -56(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -48(%rbp) ## 8-byte Spill
movq %rax, -40(%rbp)
movl $0, -16(%rbp)
LBB1_3: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
movq _N@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_6
## %bb.4: ## in Loop: Header=BB1_3 Depth=1
movq -48(%rbp), %rax ## 8-byte Reload
movslq -16(%rbp), %rcx
movl $0, (%rax,%rcx,4)
## %bb.5: ## in Loop: Header=BB1_3 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_3
LBB1_6:
movl $0, -16(%rbp)
LBB1_7: ## =>This Loop Header: Depth=1
## Child Loop BB1_9 Depth 2
movl -16(%rbp), %eax
movq _N@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_14
## %bb.8: ## in Loop: Header=BB1_7 Depth=1
movl $0, -20(%rbp)
LBB1_9: ## Parent Loop BB1_7 Depth=1
## => This Inner Loop Header: Depth=2
movl -20(%rbp), %eax
movq _N@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_12
## %bb.10: ## in Loop: Header=BB1_9 Depth=2
movq -48(%rbp), %rax ## 8-byte Reload
movslq -20(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq _N@GOTPCREL(%rip), %rcx
addl (%rcx), %edx
movslq -20(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.11: ## in Loop: Header=BB1_9 Depth=2
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB1_9
LBB1_12: ## in Loop: Header=BB1_7 Depth=1
jmp LBB1_13
LBB1_13: ## in Loop: Header=BB1_7 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_7
LBB1_14:
movl $0, -16(%rbp)
LBB1_15: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
movq _N@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_18
## %bb.16: ## in Loop: Header=BB1_15 Depth=1
movq -48(%rbp), %rax ## 8-byte Reload
movslq -16(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq _N@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movq _N@GOTPCREL(%rip), %rdx
imull (%rdx), %ecx
cmpl %ecx, %eax
sete %al
andb $1, %al
movzbl %al, %edi
callq ___VERIFIER_assert
## %bb.17: ## in Loop: Header=BB1_15 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_15
LBB1_18:
movq -32(%rbp), %rax
movq %rax, %rsp
LBB1_19:
movl -12(%rbp), %eax
movl %eax, -68(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_21
## %bb.20:
movl -68(%rbp), %eax ## 4-byte Reload
movq %rbp, %rsp
popq %rbp
retq
LBB1_21:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.comm _N,4,2 ## @N
.subsections_via_symbols
| the_stack_data/515660.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/64211.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
add x8, sp, #8
mov w9, #3
str w9, [sp, #8]
str x8, [sp]
ldr x8, [sp]
ldr w8, [x8]
subs w8, w8, #3
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l___func__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #7
adrp x3, l_.str.1@PAGE
add x3, x3, l_.str.1@PAGEOFF
bl ___assert_rtn
LBB0_2:
b LBB0_3
LBB0_3:
ldr x9, [sp]
mov w8, #2
str w8, [x9]
ldr w8, [sp, #8]
subs w8, w8, #2
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
adrp x0, l___func__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #10
adrp x3, l_.str.2@PAGE
add x3, x3, l_.str.2@PAGEOFF
bl ___assert_rtn
LBB0_5:
b LBB0_6
LBB0_6:
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l___func__.main: ; @__func__.main
.asciz "main"
l_.str: ; @.str
.asciz "111078009.c"
l_.str.1: ; @.str.1
.asciz "*p == 3"
l_.str.2: ; @.str.2
.asciz "x == 2"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $3, -8(%rbp)
leaq -8(%rbp), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
cmpl $3, (%rax)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_2
## %bb.1:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rcx
movl $7, %edx
callq ___assert_rtn
LBB0_2:
jmp LBB0_3
LBB0_3:
movq -16(%rbp), %rax
movl $2, (%rax)
cmpl $2, -8(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_5
## %bb.4:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.2(%rip), %rcx
movl $10, %edx
callq ___assert_rtn
LBB0_5:
jmp LBB0_6
LBB0_6:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L___func__.main: ## @__func__.main
.asciz "main"
L_.str: ## @.str
.asciz "111078009.c"
L_.str.1: ## @.str.1
.asciz "*p == 3"
L_.str.2: ## @.str.2
.asciz "x == 2"
.subsections_via_symbols
| the_stack_data/111078009.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub sp, sp, #560
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
mov w8, #0
str w8, [sp, #20] ; 4-byte Folded Spill
str wzr, [sp, #48]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr w1, [sp, #20] ; 4-byte Folded Reload
add x0, sp, #52
str x0, [sp, #40] ; 8-byte Folded Spill
mov x2, #250
str x2, [sp, #32] ; 8-byte Folded Spill
bl _memset
add x0, sp, #302
str x0, [sp, #24] ; 8-byte Folded Spill
bl _gets
ldr x1, [sp, #24] ; 8-byte Folded Reload
ldr x2, [sp, #32] ; 8-byte Folded Reload
ldr x0, [sp, #40] ; 8-byte Folded Reload
bl ___strcpy_chk
ldr x8, [sp, #40] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl ___stack_chk_fail
LBB0_2:
mov w0, #0
add sp, sp, #560
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Podaj tresc stringa do skopiowania"
l_.str.1: ; @.str.1
.asciz "Skopiowany string : %s\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $544, %rsp ## imm = 0x220
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -532(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq -528(%rbp), %rdi
xorl %esi, %esi
movl $250, %edx
callq _memset
leaq -272(%rbp), %rdi
callq _gets
leaq -528(%rbp), %rdi
leaq -272(%rbp), %rsi
movl $250, %edx
callq ___strcpy_chk
leaq -528(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_2
## %bb.1:
xorl %eax, %eax
addq $544, %rsp ## imm = 0x220
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Podaj tresc stringa do skopiowania"
L_.str.1: ## @.str.1
.asciz "Skopiowany string : %s\n"
.subsections_via_symbols
| the_stack_data/61074345.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _Revere ; -- Begin function Revere
.p2align 2
_Revere: ; @Revere
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str wzr, [sp, #8]
str wzr, [sp, #4]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w9, [sp, #12]
mov w8, #0
subs w8, w8, w9
str w8, [sp, #12]
b LBB0_2
LBB0_2:
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #12]
mov w9, #10
sdiv w10, w8, w9
mul w10, w10, w9
subs w8, w8, w10
str w8, [sp, #8]
ldr w8, [sp, #4]
mul w8, w8, w9
ldr w9, [sp, #8]
add w8, w8, w9
str w8, [sp, #4]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #12]
mov w9, #10
sdiv w8, w8, w9
str w8, [sp, #12]
b LBB0_3
LBB0_6:
ldr w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #16] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
sub x8, x29, #8
str x8, [sp, #8] ; 8-byte Folded Spill
stur wzr, [x29, #-8]
stur wzr, [x29, #-12]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldur w0, [x29, #-8]
bl _Revere
stur w0, [x29, #-12]
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr w0, [sp, #16] ; 4-byte Folded Reload
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Enter The Number : "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Reverse Of Number is : %d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _Revere ## -- Begin function Revere
.p2align 4, 0x90
_Revere: ## @Revere
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl $0, -8(%rbp)
movl $0, -12(%rbp)
cmpl $0, -4(%rbp)
jge LBB0_2
## %bb.1:
xorl %eax, %eax
subl -4(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_2:
jmp LBB0_3
LBB0_3: ## =>This Inner Loop Header: Depth=1
cmpl $0, -4(%rbp)
jle LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movl -4(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %edx, -8(%rbp)
imull $10, -12(%rbp), %eax
addl -8(%rbp), %eax
movl %eax, -12(%rbp)
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movl -4(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, -4(%rbp)
jmp LBB0_3
LBB0_6:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $0, -8(%rbp)
movl $0, -12(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl -8(%rbp), %edi
callq _Revere
movl %eax, -12(%rbp)
movl -12(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter The Number : "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Reverse Of Number is : %d"
.subsections_via_symbols
| the_stack_data/16616.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x8, x0
mov w0, #0
stur wzr, [x29, #-4]
stur w8, [x29, #-8]
stur x1, [x29, #-16]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _setlocale
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w0, [x29, #-8]
ldur x1, [x29, #-16]
adrp x2, l_.str@PAGE
add x2, x2, l_.str@PAGEOFF
bl _getopt
stur w0, [x29, #-20]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-20]
subs w8, w8, #63
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
bl _usage
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_6:
adrp x8, _optind@GOTPAGE
ldr x8, [x8, _optind@GOTPAGEOFF]
ldr w10, [x8]
ldur w9, [x29, #-8]
subs w9, w9, w10
stur w9, [x29, #-8]
ldrsw x9, [x8]
ldur x8, [x29, #-16]
add x8, x8, x9, lsl #3
stur x8, [x29, #-16]
bl _getlogin
mov x8, x0
str x8, [sp, #16]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
mov w0, #1
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _err
LBB0_8:
ldr x8, [sp, #16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov w0, #0
bl _exit
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function usage
_usage: ; @usage
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.space 1
l_.str.1: ; @.str.1
.asciz "getlogin failed"
l_.str.2: ; @.str.2
.asciz "%s\n"
l_.str.3: ; @.str.3
.asciz "usage: logname\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
xorl %edi, %edi
leaq L_.str(%rip), %rsi
callq _setlocale
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -8(%rbp), %edi
movq -16(%rbp), %rsi
leaq L_.str(%rip), %rdx
callq _getopt
movl %eax, -20(%rbp)
cmpl $-1, %eax
je LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
subl $63, %eax
jne LBB0_4
jmp LBB0_3
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_4
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
callq _usage
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_6:
movq _optind@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movl -8(%rbp), %eax
subl %ecx, %eax
movl %eax, -8(%rbp)
movq _optind@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -16(%rbp), %rax
movslq %ecx, %rcx
shlq $3, %rcx
addq %rcx, %rax
movq %rax, -16(%rbp)
callq _getlogin
movq %rax, -32(%rbp)
cmpq $0, %rax
jne LBB0_8
## %bb.7:
leaq L_.str.1(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $1, %edi
callq _err
LBB0_8:
movq -32(%rbp), %rsi
leaq L_.str.2(%rip), %rdi
xorl %eax, %eax
movl %eax, -36(%rbp) ## 4-byte Spill
callq _printf
movl -36(%rbp), %edi ## 4-byte Reload
callq _exit
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function usage
_usage: ## @usage
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.3(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.space 1
L_.str.1: ## @.str.1
.asciz "getlogin failed"
L_.str.2: ## @.str.2
.asciz "%s\n"
L_.str.3: ## @.str.3
.asciz "usage: logname\n"
.subsections_via_symbols
| the_stack_data/107952404.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str w0, [sp, #28]
str x1, [sp, #16]
adrp x8, l___const.main.arr@PAGE
add x8, x8, l___const.main.arr@PAGEOFF
ldr q0, [x8]
add x0, sp, #32
str x0, [sp] ; 8-byte Folded Spill
str q0, [sp, #32]
ldr w8, [x8, #16]
str w8, [sp, #48]
mov w8, #5
str w8, [sp, #12]
ldr w8, [sp, #12]
subs w2, w8, #1
mov w1, #0
bl _merge_sort
ldr x0, [sp] ; 8-byte Folded Reload
ldr w1, [sp, #12]
bl _display_arr
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl ___stack_chk_fail
LBB0_2:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _merge_sort ; -- Begin function merge_sort
.p2align 2
_merge_sort: ; @merge_sort
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
str w2, [sp, #16]
ldur w8, [x29, #-12]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldur w8, [x29, #-12]
ldr w9, [sp, #16]
add w8, w8, w9
mov w9, #2
sdiv w8, w8, w9
scvtf d0, w8
fcvtas w8, d0
str w8, [sp, #12]
ldur x0, [x29, #-8]
ldur w1, [x29, #-12]
ldr w2, [sp, #12]
bl _merge_sort
ldur x0, [x29, #-8]
ldr w8, [sp, #12]
add w1, w8, #1
ldr w2, [sp, #16]
bl _merge_sort
ldur x0, [x29, #-8]
ldur w1, [x29, #-12]
ldr w2, [sp, #12]
ldr w3, [sp, #16]
bl _merge
b LBB1_2
LBB1_2:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _display_arr ; -- Begin function display_arr
.p2align 2
_display_arr: ; @display_arr
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
str wzr, [sp, #16]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_4
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldur x8, [x29, #-8]
ldrsw x9, [sp, #16]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB2_1
LBB2_4:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _merge ; -- Begin function merge
.p2align 2
_merge: ; @merge
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub sp, sp, #128
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur x0, [x29, #-16]
stur w1, [x29, #-20]
stur w2, [x29, #-24]
stur w3, [x29, #-28]
ldur w8, [x29, #-24]
ldur w9, [x29, #-20]
subs w8, w8, w9
add w8, w8, #1
stur w8, [x29, #-32]
ldur w8, [x29, #-28]
ldur w9, [x29, #-24]
subs w8, w8, w9
stur w8, [x29, #-36]
ldur w8, [x29, #-32]
; kill: def $x8 killed $w8
mov x9, sp
stur x9, [x29, #-48]
lsl x9, x8, #2
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-112] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-112] ; 8-byte Folded Reload
mov x9, sp
subs x9, x9, x10
mov sp, x9
stur x9, [x29, #-104] ; 8-byte Folded Spill
stur x8, [x29, #-56]
ldur w8, [x29, #-36]
; kill: def $x8 killed $w8
lsl x9, x8, #2
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-96] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-96] ; 8-byte Folded Reload
mov x9, sp
subs x9, x9, x10
mov sp, x9
stur x9, [x29, #-88] ; 8-byte Folded Spill
stur x8, [x29, #-64]
stur wzr, [x29, #-68]
stur wzr, [x29, #-72]
ldur w8, [x29, #-20]
stur w8, [x29, #-76]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-68]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_3
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldur x9, [x29, #-88] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
ldur w10, [x29, #-20]
ldur w11, [x29, #-68]
add w10, w10, w11
ldr w8, [x8, w10, sxtw #2]
ldursw x10, [x29, #-68]
str w8, [x9, x10, lsl #2]
ldur w8, [x29, #-68]
add w8, w8, #1
stur w8, [x29, #-68]
b LBB3_1
LBB3_3:
b LBB3_4
LBB3_4: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-72]
ldur w9, [x29, #-36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_6
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_4 Depth=1
ldur x9, [x29, #-104] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
ldur w10, [x29, #-24]
add w10, w10, #1
ldur w11, [x29, #-72]
add w10, w10, w11
ldr w8, [x8, w10, sxtw #2]
ldursw x10, [x29, #-72]
str w8, [x9, x10, lsl #2]
ldur w8, [x29, #-72]
add w8, w8, #1
stur w8, [x29, #-72]
b LBB3_4
LBB3_6:
stur wzr, [x29, #-68]
stur wzr, [x29, #-72]
b LBB3_7
LBB3_7: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-68]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, ge
mov w9, #0
stur w9, [x29, #-116] ; 4-byte Folded Spill
tbnz w8, #0, LBB3_9
b LBB3_8
LBB3_8: ; in Loop: Header=BB3_7 Depth=1
ldur w8, [x29, #-72]
ldur w9, [x29, #-36]
subs w8, w8, w9
cset w8, lt
stur w8, [x29, #-116] ; 4-byte Folded Spill
b LBB3_9
LBB3_9: ; in Loop: Header=BB3_7 Depth=1
ldur w8, [x29, #-116] ; 4-byte Folded Reload
tbz w8, #0, LBB3_14
b LBB3_10
LBB3_10: ; in Loop: Header=BB3_7 Depth=1
ldur x9, [x29, #-104] ; 8-byte Folded Reload
ldur x8, [x29, #-88] ; 8-byte Folded Reload
ldursw x10, [x29, #-68]
ldr w8, [x8, x10, lsl #2]
ldursw x10, [x29, #-72]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB3_12
b LBB3_11
LBB3_11: ; in Loop: Header=BB3_7 Depth=1
ldur x8, [x29, #-88] ; 8-byte Folded Reload
ldursw x9, [x29, #-68]
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-16]
ldursw x10, [x29, #-76]
str w8, [x9, x10, lsl #2]
ldur w8, [x29, #-68]
add w8, w8, #1
stur w8, [x29, #-68]
b LBB3_13
LBB3_12: ; in Loop: Header=BB3_7 Depth=1
ldur x8, [x29, #-104] ; 8-byte Folded Reload
ldursw x9, [x29, #-72]
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-16]
ldursw x10, [x29, #-76]
str w8, [x9, x10, lsl #2]
ldur w8, [x29, #-72]
add w8, w8, #1
stur w8, [x29, #-72]
b LBB3_13
LBB3_13: ; in Loop: Header=BB3_7 Depth=1
ldur w8, [x29, #-76]
add w8, w8, #1
stur w8, [x29, #-76]
b LBB3_7
LBB3_14:
b LBB3_15
LBB3_15: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-68]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_17
b LBB3_16
LBB3_16: ; in Loop: Header=BB3_15 Depth=1
ldur x8, [x29, #-88] ; 8-byte Folded Reload
ldursw x9, [x29, #-68]
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-16]
ldursw x10, [x29, #-76]
str w8, [x9, x10, lsl #2]
ldur w8, [x29, #-76]
add w8, w8, #1
stur w8, [x29, #-76]
ldur w8, [x29, #-68]
add w8, w8, #1
stur w8, [x29, #-68]
b LBB3_15
LBB3_17:
b LBB3_18
LBB3_18: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-72]
ldur w9, [x29, #-36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_20
b LBB3_19
LBB3_19: ; in Loop: Header=BB3_18 Depth=1
ldur x8, [x29, #-104] ; 8-byte Folded Reload
ldursw x9, [x29, #-72]
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-16]
ldursw x10, [x29, #-76]
str w8, [x9, x10, lsl #2]
ldur w8, [x29, #-76]
add w8, w8, #1
stur w8, [x29, #-76]
ldur w8, [x29, #-72]
add w8, w8, #1
stur w8, [x29, #-72]
b LBB3_18
LBB3_20:
ldur x8, [x29, #-48]
stur x8, [x29, #-128] ; 8-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB3_22
b LBB3_21
LBB3_21:
bl ___stack_chk_fail
LBB3_22:
ldur x8, [x29, #-128] ; 8-byte Folded Reload
mov sp, x8
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2 ; @__const.main.arr
l___const.main.arr:
.long 1 ; 0x1
.long 5 ; 0x5
.long 8 ; 0x8
.long 0 ; 0x0
.long 4294967295 ; 0xffffffff
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d\t"
l_.str.1: ; @.str.1
.asciz "\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl %edi, -36(%rbp)
movq %rsi, -48(%rbp)
movq l___const.main.arr(%rip), %rax
movq %rax, -32(%rbp)
movq l___const.main.arr+8(%rip), %rax
movq %rax, -24(%rbp)
movl l___const.main.arr+16(%rip), %eax
movl %eax, -16(%rbp)
movl $5, -52(%rbp)
leaq -32(%rbp), %rdi
movl -52(%rbp), %edx
subl $1, %edx
xorl %esi, %esi
callq _merge_sort
leaq -32(%rbp), %rdi
movl -52(%rbp), %esi
callq _display_arr
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_2
## %bb.1:
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__literal16,16byte_literals
.p2align 4 ## -- Begin function merge_sort
LCPI1_0:
.quad 0x8000000000000000 ## double -0
.quad 0x8000000000000000 ## double -0
LCPI1_1:
.quad 0x3fdfffffffffffff ## double 0.49999999999999994
.quad 0x3fdfffffffffffff ## double 0.49999999999999994
.section __TEXT,__text,regular,pure_instructions
.globl _merge_sort
.p2align 4, 0x90
_merge_sort: ## @merge_sort
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movl -12(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB1_2
## %bb.1:
movl -12(%rbp), %eax
addl -16(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
cvtsi2sd %eax, %xmm0
movaps %xmm0, %xmm1
movaps LCPI1_0(%rip), %xmm2 ## xmm2 = [-0.0E+0,-0.0E+0]
pand %xmm2, %xmm1
movaps LCPI1_1(%rip), %xmm2 ## xmm2 = [4.9999999999999994E-1,4.9999999999999994E-1]
por %xmm2, %xmm1
addsd %xmm1, %xmm0
roundsd $11, %xmm0, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -20(%rbp)
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
movl -20(%rbp), %edx
callq _merge_sort
movq -8(%rbp), %rdi
movl -20(%rbp), %esi
addl $1, %esi
movl -16(%rbp), %edx
callq _merge_sort
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
movl -20(%rbp), %edx
movl -16(%rbp), %ecx
callq _merge
LBB1_2:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _display_arr ## -- Begin function display_arr
.p2align 4, 0x90
_display_arr: ## @display_arr
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl $0, -16(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB2_4
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB2_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB2_1
LBB2_4:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _merge ## -- Begin function merge
.p2align 4, 0x90
_merge: ## @merge
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movl %edx, -24(%rbp)
movl %ecx, -28(%rbp)
movl -24(%rbp), %eax
movl -20(%rbp), %ecx
subl %ecx, %eax
incl %eax
movl %eax, -32(%rbp)
movl -28(%rbp), %eax
movl -24(%rbp), %ecx
subl %ecx, %eax
movl %eax, -36(%rbp)
movl -32(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -112(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -48(%rbp)
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -112(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -104(%rbp) ## 8-byte Spill
movq %rax, -56(%rbp)
movl -36(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -96(%rbp) ## 8-byte Spill
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -96(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -88(%rbp) ## 8-byte Spill
movq %rax, -64(%rbp)
movl $0, -68(%rbp)
movl $0, -72(%rbp)
movl -20(%rbp), %eax
movl %eax, -76(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movl -68(%rbp), %eax
cmpl -32(%rbp), %eax
jge LBB3_3
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movq -88(%rbp), %rax ## 8-byte Reload
movq -16(%rbp), %rcx
movl -20(%rbp), %edx
addl -68(%rbp), %edx
movslq %edx, %rdx
movl (%rcx,%rdx,4), %edx
movslq -68(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -68(%rbp), %eax
addl $1, %eax
movl %eax, -68(%rbp)
jmp LBB3_1
LBB3_3:
jmp LBB3_4
LBB3_4: ## =>This Inner Loop Header: Depth=1
movl -72(%rbp), %eax
cmpl -36(%rbp), %eax
jge LBB3_6
## %bb.5: ## in Loop: Header=BB3_4 Depth=1
movq -104(%rbp), %rax ## 8-byte Reload
movq -16(%rbp), %rcx
movl -24(%rbp), %edx
addl $1, %edx
addl -72(%rbp), %edx
movslq %edx, %rdx
movl (%rcx,%rdx,4), %edx
movslq -72(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -72(%rbp), %eax
addl $1, %eax
movl %eax, -72(%rbp)
jmp LBB3_4
LBB3_6:
movl $0, -68(%rbp)
movl $0, -72(%rbp)
LBB3_7: ## =>This Inner Loop Header: Depth=1
movl -68(%rbp), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl -32(%rbp), %ecx
movb %al, -113(%rbp) ## 1-byte Spill
jge LBB3_9
## %bb.8: ## in Loop: Header=BB3_7 Depth=1
movl -72(%rbp), %eax
cmpl -36(%rbp), %eax
setl %al
movb %al, -113(%rbp) ## 1-byte Spill
LBB3_9: ## in Loop: Header=BB3_7 Depth=1
movb -113(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB3_10
jmp LBB3_14
LBB3_10: ## in Loop: Header=BB3_7 Depth=1
movq -104(%rbp), %rcx ## 8-byte Reload
movq -88(%rbp), %rax ## 8-byte Reload
movslq -68(%rbp), %rdx
movl (%rax,%rdx,4), %eax
movslq -72(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jg LBB3_12
## %bb.11: ## in Loop: Header=BB3_7 Depth=1
movq -88(%rbp), %rax ## 8-byte Reload
movslq -68(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -16(%rbp), %rax
movslq -76(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -68(%rbp), %eax
addl $1, %eax
movl %eax, -68(%rbp)
jmp LBB3_13
LBB3_12: ## in Loop: Header=BB3_7 Depth=1
movq -104(%rbp), %rax ## 8-byte Reload
movslq -72(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -16(%rbp), %rax
movslq -76(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -72(%rbp), %eax
addl $1, %eax
movl %eax, -72(%rbp)
LBB3_13: ## in Loop: Header=BB3_7 Depth=1
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
jmp LBB3_7
LBB3_14:
jmp LBB3_15
LBB3_15: ## =>This Inner Loop Header: Depth=1
movl -68(%rbp), %eax
cmpl -32(%rbp), %eax
jge LBB3_17
## %bb.16: ## in Loop: Header=BB3_15 Depth=1
movq -88(%rbp), %rax ## 8-byte Reload
movslq -68(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -16(%rbp), %rax
movslq -76(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
movl -68(%rbp), %eax
addl $1, %eax
movl %eax, -68(%rbp)
jmp LBB3_15
LBB3_17:
jmp LBB3_18
LBB3_18: ## =>This Inner Loop Header: Depth=1
movl -72(%rbp), %eax
cmpl -36(%rbp), %eax
jge LBB3_20
## %bb.19: ## in Loop: Header=BB3_18 Depth=1
movq -104(%rbp), %rax ## 8-byte Reload
movslq -72(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -16(%rbp), %rax
movslq -76(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
movl -72(%rbp), %eax
addl $1, %eax
movl %eax, -72(%rbp)
jmp LBB3_18
LBB3_20:
movq -48(%rbp), %rax
movq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB3_22
## %bb.21:
movq %rbp, %rsp
popq %rbp
retq
LBB3_22:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 4 ## @__const.main.arr
l___const.main.arr:
.long 1 ## 0x1
.long 5 ## 0x5
.long 8 ## 0x8
.long 0 ## 0x0
.long 4294967295 ## 0xffffffff
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d\t"
L_.str.1: ## @.str.1
.asciz "\n"
.subsections_via_symbols
| the_stack_data/15763128.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _parent_sig_handler ; -- Begin function parent_sig_handler
.p2align 2
_parent_sig_handler: ; @parent_sig_handler
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
adrp x8, _pid1@GOTPAGE
ldr x8, [x8, _pid1@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
ldr w0, [x8]
mov w1, #30
bl _kill
adrp x8, _pid2@GOTPAGE
ldr x8, [x8, _pid2@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
ldr w0, [x8]
mov w1, #31
bl _kill
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w0, [x8]
mov x1, #0
stur x1, [x29, #-16] ; 8-byte Folded Spill
mov w2, #0
stur w2, [x29, #-8] ; 4-byte Folded Spill
bl _waitpid
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x1, [x29, #-16] ; 8-byte Folded Reload
ldur w2, [x29, #-8] ; 4-byte Folded Reload
ldr w0, [x8]
bl _waitpid
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
str x8, [x9]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
ldur w0, [x29, #-8] ; 4-byte Folded Reload
bl _exit
.cfi_endproc
; -- End function
.globl _child1_sig_handler ; -- Begin function child1_sig_handler
.p2align 2
_child1_sig_handler: ; @child1_sig_handler
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
ldur w8, [x29, #-4]
subs w8, w8, #30
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
ldr x0, [x8]
adrp x8, _msg1@GOTPAGE
ldr x8, [x8, _msg1@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.3@PAGE
add x8, x8, l_.str.3@PAGEOFF
str x8, [x9]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #0
bl _exit
LBB1_2:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _child2_sig_handler ; -- Begin function child2_sig_handler
.p2align 2
_child2_sig_handler: ; @child2_sig_handler
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
ldur w8, [x29, #-4]
subs w8, w8, #31
cset w8, ne
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
ldr x0, [x8]
adrp x8, _msg2@GOTPAGE
ldr x8, [x8, _msg2@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.5@PAGE
add x8, x8, l_.str.5@PAGEOFF
str x8, [x9]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #0
bl _exit
LBB2_2:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #224
.cfi_def_cfa_offset 224
stp x29, x30, [sp, #208] ; 16-byte Folded Spill
add x29, sp, #208
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
str x8, [sp, #64] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
mov w0, #2
adrp x1, _parent_sig_handler@PAGE
add x1, x1, _parent_sig_handler@PAGEOFF
bl _signal
sub x0, x29, #24
bl _pipe
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.6@PAGE
add x8, x8, l_.str.6@PAGEOFF
str x8, [x9]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB3_2:
bl _fork
adrp x8, _pid1@GOTPAGE
ldr x8, [x8, _pid1@GOTPAGEOFF]
str w0, [x8]
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3:
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.7@PAGE
add x8, x8, l_.str.7@PAGEOFF
str x8, [x9]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB3_4:
adrp x8, _pid1@GOTPAGE
ldr x8, [x8, _pid1@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB3_7
b LBB3_5
LBB3_5:
mov w0, #30
adrp x1, _child1_sig_handler@PAGE
add x1, x1, _child1_sig_handler@PAGEOFF
str x1, [sp, #56] ; 8-byte Folded Spill
bl _signal
ldr x1, [sp, #56] ; 8-byte Folded Reload
mov w0, #2
bl _signal
ldur w0, [x29, #-20]
bl _close
b LBB3_6
LBB3_6: ; =>This Inner Loop Header: Depth=1
ldur w0, [x29, #-24]
sub x1, x29, #56
str x1, [sp, #48] ; 8-byte Folded Spill
mov x2, #32
bl _read
ldr x1, [sp, #48] ; 8-byte Folded Reload
mov x8, x0
stur w8, [x29, #-60]
ldursw x2, [x29, #-60]
mov w0, #1
bl _write
adrp x9, _msg1@GOTPAGE
ldr x9, [x9, _msg1@GOTPAGEOFF]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB3_6
LBB3_7:
b LBB3_8
LBB3_8:
bl _fork
adrp x8, _pid2@GOTPAGE
ldr x8, [x8, _pid2@GOTPAGEOFF]
str w0, [x8]
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB3_10
b LBB3_9
LBB3_9:
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.8@PAGE
add x8, x8, l_.str.8@PAGEOFF
str x8, [x9]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #2
bl _exit
LBB3_10:
adrp x8, _pid2@GOTPAGE
ldr x8, [x8, _pid2@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB3_13
b LBB3_11
LBB3_11:
mov w0, #31
adrp x1, _child2_sig_handler@PAGE
add x1, x1, _child2_sig_handler@PAGEOFF
str x1, [sp, #40] ; 8-byte Folded Spill
bl _signal
ldr x1, [sp, #40] ; 8-byte Folded Reload
mov w0, #2
bl _signal
ldur w0, [x29, #-20]
bl _close
b LBB3_12
LBB3_12: ; =>This Inner Loop Header: Depth=1
ldur w0, [x29, #-24]
sub x1, x29, #92
str x1, [sp, #32] ; 8-byte Folded Spill
mov x2, #32
bl _read
ldr x1, [sp, #32] ; 8-byte Folded Reload
mov x8, x0
stur w8, [x29, #-96]
ldursw x2, [x29, #-96]
mov w0, #1
bl _write
adrp x9, _msg2@GOTPAGE
ldr x9, [x9, _msg2@GOTPAGEOFF]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB3_12
LBB3_13:
b LBB3_14
LBB3_14:
ldur w0, [x29, #-24]
bl _close
mov w8, #1
str w8, [sp, #76]
b LBB3_15
LBB3_15: ; =>This Inner Loop Header: Depth=1
ldr w9, [sp, #76]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #16] ; 8-byte Folded Spill
mov x9, sp
str x8, [x9]
add x0, sp, #80
str x0, [sp, #24] ; 8-byte Folded Spill
mov x3, #32
mov x1, x3
mov w2, #0
adrp x4, l_.str.9@PAGE
add x4, x4, l_.str.9@PAGEOFF
bl ___snprintf_chk
ldr x1, [sp, #24] ; 8-byte Folded Reload
str w0, [sp, #72]
ldur w0, [x29, #-20]
ldrsw x2, [sp, #72]
bl _write
mov w0, #1
bl _sleep
ldr w8, [sp, #76]
add w8, w8, #1
str w8, [sp, #76]
b LBB3_15
.cfi_endproc
; -- End function
.comm _pid1,4,2 ; @pid1
.comm _pid2,4,2 ; @pid2
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s\n"
l_.str.1: ; @.str.1
.asciz "Parent Process is Killed!"
l_.str.2: ; @.str.2
.asciz "\nChild Process 1 received %d messages.\n"
.comm _msg1,4,2 ; @msg1
l_.str.3: ; @.str.3
.asciz "Child Process 1 is killed by Parent!"
l_.str.4: ; @.str.4
.asciz "\nChild Proccess 2 received %d messages.\n"
.comm _msg2,4,2 ; @msg2
l_.str.5: ; @.str.5
.asciz "Child Process 2 is killed by Parent!"
l_.str.6: ; @.str.6
.asciz "pipe error!"
l_.str.7: ; @.str.7
.asciz "fork error with child1"
l_.str.8: ; @.str.8
.asciz "fork error with child2"
l_.str.9: ; @.str.9
.asciz "I send you %d times.\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _parent_sig_handler ## -- Begin function parent_sig_handler
.p2align 4, 0x90
_parent_sig_handler: ## @parent_sig_handler
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
movq _pid1@GOTPCREL(%rip), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movl (%rax), %edi
movl $30, %esi
callq _kill
movq _pid2@GOTPCREL(%rip), %rax
movq %rax, -16(%rbp) ## 8-byte Spill
movl (%rax), %edi
movl $31, %esi
callq _kill
## kill: def $ecx killed $eax
movq -32(%rbp), %rax ## 8-byte Reload
movl (%rax), %edi
xorl %edx, %edx
movl %edx, -8(%rbp) ## 4-byte Spill
movl %edx, %esi
movq %rsi, -24(%rbp) ## 8-byte Spill
callq _waitpid
movq -24(%rbp), %rsi ## 8-byte Reload
movl -8(%rbp), %edx ## 4-byte Reload
## kill: def $ecx killed $eax
movq -16(%rbp), %rax ## 8-byte Reload
movl (%rax), %edi
callq _waitpid
## kill: def $ecx killed $eax
movl -8(%rbp), %eax ## 4-byte Reload
movq ___stdoutp@GOTPCREL(%rip), %rcx
movq (%rcx), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rdx
callq _fprintf
movl -8(%rbp), %edi ## 4-byte Reload
callq _exit
.cfi_endproc
## -- End function
.globl _child1_sig_handler ## -- Begin function child1_sig_handler
.p2align 4, 0x90
_child1_sig_handler: ## @child1_sig_handler
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
cmpl $30, -4(%rbp)
jne LBB1_2
## %bb.1:
movq ___stdoutp@GOTPCREL(%rip), %rax
movq %rax, -24(%rbp) ## 8-byte Spill
movq (%rax), %rdi
movq _msg1@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq L_.str.2(%rip), %rsi
xorl %eax, %eax
movl %eax, -8(%rbp) ## 4-byte Spill
movb %al, -9(%rbp) ## 1-byte Spill
callq _fprintf
movq -24(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -9(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.3(%rip), %rdx
callq _fprintf
movl -8(%rbp), %edi ## 4-byte Reload
callq _exit
LBB1_2:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _child2_sig_handler ## -- Begin function child2_sig_handler
.p2align 4, 0x90
_child2_sig_handler: ## @child2_sig_handler
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
cmpl $31, -4(%rbp)
jne LBB2_2
## %bb.1:
movq ___stdoutp@GOTPCREL(%rip), %rax
movq %rax, -24(%rbp) ## 8-byte Spill
movq (%rax), %rdi
movq _msg2@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq L_.str.4(%rip), %rsi
xorl %eax, %eax
movl %eax, -8(%rbp) ## 4-byte Spill
movb %al, -9(%rbp) ## 1-byte Spill
callq _fprintf
movq -24(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -9(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.5(%rip), %rdx
callq _fprintf
movl -8(%rbp), %edi ## 4-byte Reload
callq _exit
LBB2_2:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $192, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $2, %edi
leaq _parent_sig_handler(%rip), %rsi
callq _signal
leaq -24(%rbp), %rdi
callq _pipe
cmpl $0, %eax
jge LBB3_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.6(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB3_2:
callq _fork
movq _pid1@GOTPCREL(%rip), %rcx
movl %eax, (%rcx)
cmpl $0, %eax
jge LBB3_4
## %bb.3:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.7(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB3_4:
movq _pid1@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB3_7
## %bb.5:
movl $30, %edi
leaq _child1_sig_handler(%rip), %rsi
callq _signal
movl $2, %edi
leaq _child1_sig_handler(%rip), %rsi
callq _signal
movl -20(%rbp), %edi
callq _close
LBB3_6: ## =>This Inner Loop Header: Depth=1
movl -24(%rbp), %edi
leaq -64(%rbp), %rsi
movl $32, %edx
callq _read
## kill: def $eax killed $eax killed $rax
movl %eax, -68(%rbp)
leaq -64(%rbp), %rsi
movslq -68(%rbp), %rdx
movl $1, %edi
callq _write
movq _msg1@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movl %ecx, -172(%rbp) ## 4-byte Spill
movq _msg1@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB3_6
LBB3_7:
jmp LBB3_8
LBB3_8:
callq _fork
movq _pid2@GOTPCREL(%rip), %rcx
movl %eax, (%rcx)
cmpl $0, %eax
jge LBB3_10
## %bb.9:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.8(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $2, %edi
callq _exit
LBB3_10:
movq _pid2@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB3_13
## %bb.11:
movl $31, %edi
leaq _child2_sig_handler(%rip), %rsi
callq _signal
movl $2, %edi
leaq _child2_sig_handler(%rip), %rsi
callq _signal
movl -20(%rbp), %edi
callq _close
LBB3_12: ## =>This Inner Loop Header: Depth=1
movl -24(%rbp), %edi
leaq -112(%rbp), %rsi
movl $32, %edx
callq _read
## kill: def $eax killed $eax killed $rax
movl %eax, -116(%rbp)
leaq -112(%rbp), %rsi
movslq -116(%rbp), %rdx
movl $1, %edi
callq _write
movq _msg2@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movl %ecx, -176(%rbp) ## 4-byte Spill
movq _msg2@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB3_12
LBB3_13:
jmp LBB3_14
LBB3_14:
movl -24(%rbp), %edi
callq _close
movl $1, -164(%rbp)
LBB3_15: ## =>This Inner Loop Header: Depth=1
leaq -160(%rbp), %rdi
movl -164(%rbp), %r9d
movl $32, %ecx
xorl %edx, %edx
leaq L_.str.9(%rip), %r8
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
movl %eax, -168(%rbp)
movl -20(%rbp), %edi
leaq -160(%rbp), %rsi
movslq -168(%rbp), %rdx
callq _write
movl $1, %edi
callq _sleep
movl -164(%rbp), %eax
addl $1, %eax
movl %eax, -180(%rbp) ## 4-byte Spill
movl %eax, -164(%rbp)
jmp LBB3_15
.cfi_endproc
## -- End function
.comm _pid1,4,2 ## @pid1
.comm _pid2,4,2 ## @pid2
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s\n"
L_.str.1: ## @.str.1
.asciz "Parent Process is Killed!"
L_.str.2: ## @.str.2
.asciz "\nChild Process 1 received %d messages.\n"
.comm _msg1,4,2 ## @msg1
L_.str.3: ## @.str.3
.asciz "Child Process 1 is killed by Parent!"
L_.str.4: ## @.str.4
.asciz "\nChild Proccess 2 received %d messages.\n"
.comm _msg2,4,2 ## @msg2
L_.str.5: ## @.str.5
.asciz "Child Process 2 is killed by Parent!"
L_.str.6: ## @.str.6
.asciz "pipe error!"
L_.str.7: ## @.str.7
.asciz "fork error with child1"
L_.str.8: ## @.str.8
.asciz "fork error with child2"
L_.str.9: ## @.str.9
.asciz "I send you %d times.\n"
.subsections_via_symbols
| the_stack_data/126308.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_26
b LBB0_1
LBB0_1:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_2
LBB0_2:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB0_8
LBB0_4:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB0_7
LBB0_6:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB0_7
LBB0_7:
b LBB0_8
LBB0_8:
b LBB0_25
LBB0_9:
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_10
LBB0_10:
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
b LBB0_16
LBB0_12:
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
b LBB0_15
LBB0_14:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB0_15
LBB0_15:
b LBB0_16
LBB0_16:
b LBB0_24
LBB0_17:
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18:
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
b LBB0_23
LBB0_19:
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20:
adrp x0, l_.str.16@PAGE
add x0, x0, l_.str.16@PAGEOFF
bl _printf
b LBB0_22
LBB0_21:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB0_22
LBB0_22:
b LBB0_23
LBB0_23:
b LBB0_24
LBB0_24:
b LBB0_25
LBB0_25:
b LBB0_56
LBB0_26:
adrp x0, l_.str.17@PAGE
add x0, x0, l_.str.17@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_43
b LBB0_27
LBB0_27:
adrp x0, l_.str.18@PAGE
add x0, x0, l_.str.18@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_35
b LBB0_28
LBB0_28:
adrp x0, l_.str.19@PAGE
add x0, x0, l_.str.19@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_30
b LBB0_29
LBB0_29:
adrp x0, l_.str.20@PAGE
add x0, x0, l_.str.20@PAGEOFF
bl _printf
b LBB0_34
LBB0_30:
adrp x0, l_.str.21@PAGE
add x0, x0, l_.str.21@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_32
b LBB0_31
LBB0_31:
adrp x0, l_.str.22@PAGE
add x0, x0, l_.str.22@PAGEOFF
bl _printf
b LBB0_33
LBB0_32:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB0_33
LBB0_33:
b LBB0_34
LBB0_34:
b LBB0_42
LBB0_35:
adrp x0, l_.str.23@PAGE
add x0, x0, l_.str.23@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_37
b LBB0_36
LBB0_36:
adrp x0, l_.str.24@PAGE
add x0, x0, l_.str.24@PAGEOFF
bl _printf
b LBB0_41
LBB0_37:
adrp x0, l_.str.25@PAGE
add x0, x0, l_.str.25@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_39
b LBB0_38
LBB0_38:
adrp x0, l_.str.26@PAGE
add x0, x0, l_.str.26@PAGEOFF
bl _printf
b LBB0_40
LBB0_39:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB0_40
LBB0_40:
b LBB0_41
LBB0_41:
b LBB0_42
LBB0_42:
b LBB0_55
LBB0_43:
adrp x0, l_.str.27@PAGE
add x0, x0, l_.str.27@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_54
b LBB0_44
LBB0_44:
adrp x0, l_.str.28@PAGE
add x0, x0, l_.str.28@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_46
b LBB0_45
LBB0_45:
adrp x0, l_.str.29@PAGE
add x0, x0, l_.str.29@PAGEOFF
bl _printf
b LBB0_53
LBB0_46:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_48
b LBB0_47
LBB0_47:
adrp x0, l_.str.30@PAGE
add x0, x0, l_.str.30@PAGEOFF
bl _printf
b LBB0_52
LBB0_48:
adrp x0, l_.str.31@PAGE
add x0, x0, l_.str.31@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_50
b LBB0_49
LBB0_49:
adrp x0, l_.str.32@PAGE
add x0, x0, l_.str.32@PAGEOFF
bl _printf
b LBB0_51
LBB0_50:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB0_51
LBB0_51:
b LBB0_52
LBB0_52:
b LBB0_53
LBB0_53:
b LBB0_54
LBB0_54:
b LBB0_55
LBB0_55:
b LBB0_56
LBB0_56:
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
l_.str.1: ; @.str.1
.asciz "mamifero?\n"
l_.str.2: ; @.str.2
.asciz "quadrupede?\n"
l_.str.3: ; @.str.3
.asciz "carnivoro?\n"
l_.str.4: ; @.str.4
.asciz "leao\n"
l_.str.5: ; @.str.5
.asciz "herbivoro?\n"
l_.str.6: ; @.str.6
.asciz "cavalo\n"
l_.str.7: ; @.str.7
.asciz "nao sei\n"
l_.str.8: ; @.str.8
.asciz "bipede?\n"
l_.str.9: ; @.str.9
.asciz "onivoro?\n"
l_.str.10: ; @.str.10
.asciz "homem\n"
l_.str.11: ; @.str.11
.asciz "frutifero?\n"
l_.str.12: ; @.str.12
.asciz "macaco\n"
l_.str.13: ; @.str.13
.asciz "voador?\n"
l_.str.14: ; @.str.14
.asciz "morcego\n"
l_.str.15: ; @.str.15
.asciz "aquatico?\n"
l_.str.16: ; @.str.16
.asciz "baleia\n"
l_.str.17: ; @.str.17
.asciz "ave?\n"
l_.str.18: ; @.str.18
.asciz "nao-voador?\n"
l_.str.19: ; @.str.19
.asciz "tropical?\n"
l_.str.20: ; @.str.20
.asciz "avestruz\n"
l_.str.21: ; @.str.21
.asciz "polar?\n"
l_.str.22: ; @.str.22
.asciz "pinguim\n"
l_.str.23: ; @.str.23
.asciz "nadador?\n"
l_.str.24: ; @.str.24
.asciz "pato\n"
l_.str.25: ; @.str.25
.asciz "rapina?\n"
l_.str.26: ; @.str.26
.asciz "aguia\n"
l_.str.27: ; @.str.27
.asciz "reptil?\n"
l_.str.28: ; @.str.28
.asciz "com-casco?\n"
l_.str.29: ; @.str.29
.asciz "tartaruga\n"
l_.str.30: ; @.str.30
.asciz "crocodilo\n"
l_.str.31: ; @.str.31
.asciz "sem-patas?\n"
l_.str.32: ; @.str.32
.asciz "cobra\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
cmpl $1, -8(%rbp)
jne LBB0_26
## %bb.1:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_9
## %bb.2:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_4
## %bb.3:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_8
LBB0_4:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_6
## %bb.5:
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_7
LBB0_6:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
LBB0_7:
jmp LBB0_8
LBB0_8:
jmp LBB0_25
LBB0_9:
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_17
## %bb.10:
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_12
## %bb.11:
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_16
LBB0_12:
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_14
## %bb.13:
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_15
LBB0_14:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
LBB0_15:
jmp LBB0_16
LBB0_16:
jmp LBB0_24
LBB0_17:
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_19
## %bb.18:
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_23
LBB0_19:
leaq L_.str.15(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_21
## %bb.20:
leaq L_.str.16(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_22
LBB0_21:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
LBB0_22:
jmp LBB0_23
LBB0_23:
jmp LBB0_24
LBB0_24:
jmp LBB0_25
LBB0_25:
jmp LBB0_56
LBB0_26:
leaq L_.str.17(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_43
## %bb.27:
leaq L_.str.18(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_35
## %bb.28:
leaq L_.str.19(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_30
## %bb.29:
leaq L_.str.20(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_34
LBB0_30:
leaq L_.str.21(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_32
## %bb.31:
leaq L_.str.22(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_33
LBB0_32:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
LBB0_33:
jmp LBB0_34
LBB0_34:
jmp LBB0_42
LBB0_35:
leaq L_.str.23(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_37
## %bb.36:
leaq L_.str.24(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_41
LBB0_37:
leaq L_.str.25(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_39
## %bb.38:
leaq L_.str.26(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_40
LBB0_39:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
LBB0_40:
jmp LBB0_41
LBB0_41:
jmp LBB0_42
LBB0_42:
jmp LBB0_55
LBB0_43:
leaq L_.str.27(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_54
## %bb.44:
leaq L_.str.28(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_46
## %bb.45:
leaq L_.str.29(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_53
LBB0_46:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_48
## %bb.47:
leaq L_.str.30(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_52
LBB0_48:
leaq L_.str.31(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB0_50
## %bb.49:
leaq L_.str.32(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_51
LBB0_50:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
LBB0_51:
jmp LBB0_52
LBB0_52:
jmp LBB0_53
LBB0_53:
jmp LBB0_54
LBB0_54:
jmp LBB0_55
LBB0_55:
jmp LBB0_56
LBB0_56:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
L_.str.1: ## @.str.1
.asciz "mamifero?\n"
L_.str.2: ## @.str.2
.asciz "quadrupede?\n"
L_.str.3: ## @.str.3
.asciz "carnivoro?\n"
L_.str.4: ## @.str.4
.asciz "leao\n"
L_.str.5: ## @.str.5
.asciz "herbivoro?\n"
L_.str.6: ## @.str.6
.asciz "cavalo\n"
L_.str.7: ## @.str.7
.asciz "nao sei\n"
L_.str.8: ## @.str.8
.asciz "bipede?\n"
L_.str.9: ## @.str.9
.asciz "onivoro?\n"
L_.str.10: ## @.str.10
.asciz "homem\n"
L_.str.11: ## @.str.11
.asciz "frutifero?\n"
L_.str.12: ## @.str.12
.asciz "macaco\n"
L_.str.13: ## @.str.13
.asciz "voador?\n"
L_.str.14: ## @.str.14
.asciz "morcego\n"
L_.str.15: ## @.str.15
.asciz "aquatico?\n"
L_.str.16: ## @.str.16
.asciz "baleia\n"
L_.str.17: ## @.str.17
.asciz "ave?\n"
L_.str.18: ## @.str.18
.asciz "nao-voador?\n"
L_.str.19: ## @.str.19
.asciz "tropical?\n"
L_.str.20: ## @.str.20
.asciz "avestruz\n"
L_.str.21: ## @.str.21
.asciz "polar?\n"
L_.str.22: ## @.str.22
.asciz "pinguim\n"
L_.str.23: ## @.str.23
.asciz "nadador?\n"
L_.str.24: ## @.str.24
.asciz "pato\n"
L_.str.25: ## @.str.25
.asciz "rapina?\n"
L_.str.26: ## @.str.26
.asciz "aguia\n"
L_.str.27: ## @.str.27
.asciz "reptil?\n"
L_.str.28: ## @.str.28
.asciz "com-casco?\n"
L_.str.29: ## @.str.29
.asciz "tartaruga\n"
L_.str.30: ## @.str.30
.asciz "crocodilo\n"
L_.str.31: ## @.str.31
.asciz "sem-patas?\n"
L_.str.32: ## @.str.32
.asciz "cobra\n"
.subsections_via_symbols
| the_stack_data/31544.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str wzr, [sp, #12]
adrp x8, _a@PAGE
ldr w0, [x8, _a@PAGEOFF]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.section __DATA,__data
.globl _a ; @a
.p2align 2
_a:
.long 1 ; 0x1
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $0, -4(%rbp)
movl _a(%rip), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.globl _a ## @a
.p2align 2
_a:
.long 1 ## 0x1
.subsections_via_symbols
| the_stack_data/126703741.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov w1, #513
bl _open
stur w0, [x29, #-24]
ldur w8, [x29, #-24]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w0, #1
bl _exit
LBB0_2:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w0, #0
sub x1, x29, #25
mov x2, #1
bl _read
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldursb w8, [x29, #-25]
subs w8, w8, #47
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldur w0, [x29, #-24]
sub x1, x29, #25
str x1, [sp, #16] ; 8-byte Folded Spill
mov x2, #1
str x2, [sp, #24] ; 8-byte Folded Spill
bl _write
ldr x1, [sp, #16] ; 8-byte Folded Reload
ldr x2, [sp, #24] ; 8-byte Folded Reload
mov w0, #0
bl _read
b LBB0_3
LBB0_5:
ldur w0, [x29, #-24]
bl _close
bl _fork
stur w0, [x29, #-20]
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_13
LBB0_7:
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_8
LBB0_8:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov w1, #0
bl _open
stur w0, [x29, #-24]
ldur w8, [x29, #-24]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
mov w0, #1
bl _exit
LBB0_10:
ldur w0, [x29, #-24]
mov x1, #0
mov w2, #2
bl _lseek
mov x8, x0
str w8, [sp, #32]
ldr w9, [sp, #32]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldur w0, [x29, #-24]
bl _close
b LBB0_12
LBB0_11:
mov x0, #0
bl _wait
b LBB0_12
LBB0_12:
b LBB0_13
LBB0_13:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "sample.txt"
l_.str.1: ; @.str.1
.asciz "Enter the contents of write to the file (press / to stop): \n"
l_.str.2: ; @.str.2
.asciz "Error in fork\n"
l_.str.3: ; @.str.3
.asciz "Inside Child Process\n"
l_.str.4: ; @.str.4
.asciz "File size: %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
leaq L_.str(%rip), %rdi
movl $513, %esi ## imm = 0x201
movb $0, %al
callq _open
movl %eax, -24(%rbp)
cmpl $0, -24(%rbp)
jge LBB0_2
## %bb.1:
movl $1, %edi
callq _exit
LBB0_2:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
xorl %edi, %edi
leaq -25(%rbp), %rsi
movl $1, %edx
callq _read
LBB0_3: ## =>This Inner Loop Header: Depth=1
movsbl -25(%rbp), %eax
cmpl $47, %eax
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movl -24(%rbp), %edi
leaq -25(%rbp), %rsi
movl $1, %edx
callq _write
xorl %edi, %edi
leaq -25(%rbp), %rsi
movl $1, %edx
callq _read
jmp LBB0_3
LBB0_5:
movl -24(%rbp), %edi
callq _close
callq _fork
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
jge LBB0_7
## %bb.6:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_13
LBB0_7:
cmpl $0, -20(%rbp)
jne LBB0_11
## %bb.8:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str(%rip), %rdi
xorl %esi, %esi
movb $0, %al
callq _open
movl %eax, -24(%rbp)
cmpl $0, -24(%rbp)
jge LBB0_10
## %bb.9:
movl $1, %edi
callq _exit
LBB0_10:
movl -24(%rbp), %edi
xorl %eax, %eax
movl %eax, %esi
movl $2, %edx
callq _lseek
## kill: def $eax killed $eax killed $rax
movl %eax, -32(%rbp)
movl -32(%rbp), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movl -24(%rbp), %edi
callq _close
jmp LBB0_12
LBB0_11:
xorl %eax, %eax
movl %eax, %edi
callq _wait
LBB0_12:
jmp LBB0_13
LBB0_13:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "sample.txt"
L_.str.1: ## @.str.1
.asciz "Enter the contents of write to the file (press / to stop): \n"
L_.str.2: ## @.str.2
.asciz "Error in fork\n"
L_.str.3: ## @.str.3
.asciz "Inside Child Process\n"
L_.str.4: ## @.str.4
.asciz "File size: %d\n"
.subsections_via_symbols
| the_stack_data/787913.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
mov w8, #1
str w8, [sp, #20]
stur w8, [x29, #-20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
lsl w8, w8, #1
str w8, [sp, #24]
ldr w8, [sp, #24]
str w8, [sp, #20]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_1
LBB0_4:
ldr w9, [sp, #24]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\347\254\254\344\270\200\345\244\251\345\205\261\346\221\230\344\272\206%d\344\270\252\346\241\203\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $1, -28(%rbp)
movl $1, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $10, -20(%rbp)
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
shll $1, %eax
movl %eax, -24(%rbp)
movl -24(%rbp), %eax
movl %eax, -28(%rbp)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_1
LBB0_4:
movl -24(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\347\254\254\344\270\200\345\244\251\345\205\261\346\221\230\344\272\206%d\344\270\252\346\241\203\n"
.subsections_via_symbols
| the_stack_data/72012165.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
str x1, [sp, #16]
ldr x8, [sp, #16]
add x9, x8, #8
str x9, [sp, #16]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
ldr x8, [sp, #16]
ldr x0, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
str wzr, [sp, #12]
ldr x8, [sp, #16]
add x8, x8, #8
str x8, [sp, #16]
b LBB0_4
LBB0_3:
mov w8, #1
str w8, [sp, #12]
b LBB0_4
LBB0_4:
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
str x8, [sp] ; 8-byte Folded Spill
ldr x8, [sp, #16]
ldr x0, [x8]
bl _strlen
ldr x1, [sp] ; 8-byte Folded Reload
mov x2, x0
mov w0, #1
bl _write
ldr x8, [sp, #16]
add x9, x8, #8
str x9, [sp, #16]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
mov w0, #1
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
mov x2, #1
bl _write
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_5 Depth=1
b LBB0_5
LBB0_9:
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
mov w0, #1
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
mov x2, #1
bl _write
b LBB0_11
LBB0_11:
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "-n"
l_.str.1: ; @.str.1
.asciz " "
l_.str.2: ; @.str.2
.asciz "\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rax
movq %rax, %rcx
addq $8, %rcx
movq %rcx, -16(%rbp)
cmpq $0, 8(%rax)
je LBB0_3
## %bb.1:
movq -16(%rbp), %rax
movq (%rax), %rdi
leaq L_.str(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_3
## %bb.2:
movl $0, -20(%rbp)
movq -16(%rbp), %rax
addq $8, %rax
movq %rax, -16(%rbp)
jmp LBB0_4
LBB0_3:
movl $1, -20(%rbp)
LBB0_4:
jmp LBB0_5
LBB0_5: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
cmpq $0, (%rax)
je LBB0_9
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _strlen
movq -32(%rbp), %rsi ## 8-byte Reload
movq %rax, %rdx
movl $1, %edi
callq _write
movq -16(%rbp), %rax
movq %rax, %rcx
addq $8, %rcx
movq %rcx, -16(%rbp)
cmpq $0, 8(%rax)
je LBB0_8
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movl $1, %edi
leaq L_.str.1(%rip), %rsi
movl $1, %edx
callq _write
LBB0_8: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_5
LBB0_9:
cmpl $0, -20(%rbp)
je LBB0_11
## %bb.10:
movl $1, %edi
leaq L_.str.2(%rip), %rsi
movl $1, %edx
callq _write
LBB0_11:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "-n"
L_.str.1: ## @.str.1
.asciz " "
L_.str.2: ## @.str.2
.asciz "\n"
.subsections_via_symbols
| the_stack_data/150141642.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/480445.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/173577559.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _N ; -- Begin function N
.p2align 2
_N: ; @N
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #28]
str w1, [sp, #24]
str x2, [sp, #16]
str w3, [sp, #12]
str wzr, [sp, #8]
ldr w8, [sp, #28]
str w8, [sp, #4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8]
ldr w10, [sp, #12]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
ldr x9, [sp, #16]
ldrsw x10, [sp, #4]
ldr w9, [x9, x10, lsl #2]
ldr w11, [sp, #12]
sdiv w10, w9, w11
mul w10, w10, w11
subs w9, w9, w10
add w8, w8, w9
str w8, [sp, #8]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_1
LBB0_4:
ldr w8, [sp, #8]
ldr w10, [sp, #12]
sdiv w9, w8, w10
mul w9, w9, w10
subs w0, w8, w9
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _M ; -- Begin function M
.p2align 2
_M: ; @M
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #28]
str w1, [sp, #24]
str x2, [sp, #16]
str w3, [sp, #12]
mov w8, #1
str w8, [sp, #8]
ldr w8, [sp, #28]
str w8, [sp, #4]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #8]
ldr w10, [sp, #12]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
ldr x9, [sp, #16]
ldrsw x10, [sp, #4]
ldr w9, [x9, x10, lsl #2]
ldr w11, [sp, #12]
sdiv w10, w9, w11
mul w10, w10, w11
subs w9, w9, w10
mul w8, w8, w9
str w8, [sp, #8]
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB1_1
LBB1_4:
ldr w8, [sp, #8]
ldr w10, [sp, #12]
sdiv w9, w8, w10
mul w9, w9, w10
subs w0, w8, w9
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _H ; -- Begin function H
.p2align 2
_H: ; @H
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #28]
str w1, [sp, #24]
str x2, [sp, #16]
str w3, [sp, #12]
ldr x8, [sp, #16]
ldrsw x9, [sp, #28]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #8]
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #4]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB2_4
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #4]
ldr w9, [x8, x9, lsl #2]
ldr w8, [sp, #8]
eor w8, w8, w9
str w8, [sp, #8]
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB2_1
LBB2_4:
ldr w0, [sp, #8]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub sp, sp, #1392
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #120]
mov x9, sp
add x8, sp, #116
str x8, [x9]
add x8, sp, #112
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
str wzr, [sp, #108]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #108]
ldr w9, [sp, #116]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_4
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldrsw x9, [sp, #108]
add x8, sp, #964
add x8, x8, x9, lsl #2
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #108]
add w8, w8, #1
str w8, [sp, #108]
b LBB3_1
LBB3_4:
str wzr, [sp, #108]
b LBB3_5
LBB3_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #108]
ldr w9, [sp, #112]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_8
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_5 Depth=1
ldrsw x9, [sp, #108]
add x8, sp, #544
add x10, x8, x9, lsl #2
ldrsw x9, [sp, #108]
add x8, sp, #124
add x8, x8, x9, lsl #2
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_5 Depth=1
ldr w8, [sp, #108]
add w8, w8, #1
str w8, [sp, #108]
b LBB3_5
LBB3_8:
str wzr, [sp, #108]
b LBB3_9
LBB3_9: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #108]
ldr w9, [sp, #112]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_18
b LBB3_10
LBB3_10: ; in Loop: Header=BB3_9 Depth=1
ldrsw x9, [sp, #108]
add x8, sp, #544
str x8, [sp, #64] ; 8-byte Folded Spill
ldr w0, [x8, x9, lsl #2]
ldrsw x9, [sp, #108]
add x8, sp, #124
str x8, [sp, #72] ; 8-byte Folded Spill
ldr w1, [x8, x9, lsl #2]
ldr w3, [sp, #116]
add x2, sp, #964
str x2, [sp, #80] ; 8-byte Folded Spill
bl _N
ldr x9, [sp, #64] ; 8-byte Folded Reload
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x2, [sp, #80] ; 8-byte Folded Reload
str w0, [sp, #92]
ldrsw x10, [sp, #108]
ldr w0, [x9, x10, lsl #2]
ldrsw x9, [sp, #108]
ldr w1, [x8, x9, lsl #2]
ldr w3, [sp, #116]
bl _M
str w0, [sp, #88]
ldr w8, [sp, #92]
ldr w9, [sp, #88]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB3_12
b LBB3_11
LBB3_11: ; in Loop: Header=BB3_9 Depth=1
ldr w8, [sp, #88]
str w8, [sp, #60] ; 4-byte Folded Spill
b LBB3_13
LBB3_12: ; in Loop: Header=BB3_9 Depth=1
ldr w8, [sp, #92]
str w8, [sp, #60] ; 4-byte Folded Spill
b LBB3_13
LBB3_13: ; in Loop: Header=BB3_9 Depth=1
ldr w8, [sp, #60] ; 4-byte Folded Reload
str w8, [sp, #100]
ldr w8, [sp, #92]
ldr w9, [sp, #88]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB3_15
b LBB3_14
LBB3_14: ; in Loop: Header=BB3_9 Depth=1
ldr w8, [sp, #92]
str w8, [sp, #56] ; 4-byte Folded Spill
b LBB3_16
LBB3_15: ; in Loop: Header=BB3_9 Depth=1
ldr w8, [sp, #88]
str w8, [sp, #56] ; 4-byte Folded Spill
b LBB3_16
LBB3_16: ; in Loop: Header=BB3_9 Depth=1
ldr w8, [sp, #56] ; 4-byte Folded Reload
str w8, [sp, #96]
ldr w0, [sp, #100]
ldr w1, [sp, #96]
ldr w3, [sp, #116]
add x2, sp, #964
bl _H
str w0, [sp, #104]
ldr w9, [sp, #104]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB3_17
LBB3_17: ; in Loop: Header=BB3_9 Depth=1
ldr w8, [sp, #108]
add w8, w8, #1
str w8, [sp, #108]
b LBB3_9
LBB3_18:
ldrsw x9, [sp, #108]
add x8, sp, #544
str x8, [sp, #32] ; 8-byte Folded Spill
ldr w0, [x8, x9, lsl #2]
ldrsw x9, [sp, #108]
add x8, sp, #124
str x8, [sp, #40] ; 8-byte Folded Spill
ldr w1, [x8, x9, lsl #2]
ldr w3, [sp, #116]
add x2, sp, #964
str x2, [sp, #48] ; 8-byte Folded Spill
bl _N
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x2, [sp, #48] ; 8-byte Folded Reload
str w0, [sp, #92]
ldrsw x10, [sp, #108]
ldr w0, [x9, x10, lsl #2]
ldrsw x9, [sp, #108]
ldr w1, [x8, x9, lsl #2]
ldr w3, [sp, #116]
bl _M
str w0, [sp, #88]
ldr w8, [sp, #92]
ldr w9, [sp, #88]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB3_20
b LBB3_19
LBB3_19:
ldr w8, [sp, #88]
str w8, [sp, #28] ; 4-byte Folded Spill
b LBB3_21
LBB3_20:
ldr w8, [sp, #92]
str w8, [sp, #28] ; 4-byte Folded Spill
b LBB3_21
LBB3_21:
ldr w8, [sp, #28] ; 4-byte Folded Reload
str w8, [sp, #100]
ldr w8, [sp, #92]
ldr w9, [sp, #88]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB3_23
b LBB3_22
LBB3_22:
ldr w8, [sp, #92]
str w8, [sp, #24] ; 4-byte Folded Spill
b LBB3_24
LBB3_23:
ldr w8, [sp, #88]
str w8, [sp, #24] ; 4-byte Folded Spill
b LBB3_24
LBB3_24:
ldr w8, [sp, #24] ; 4-byte Folded Reload
str w8, [sp, #96]
ldr w0, [sp, #100]
ldr w1, [sp, #96]
ldr w3, [sp, #116]
add x2, sp, #964
bl _H
str w0, [sp, #104]
ldr w9, [sp, #104]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB3_26
b LBB3_25
LBB3_25:
bl ___stack_chk_fail
LBB3_26:
mov w0, #0
add sp, sp, #1392
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d%d"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _N ## -- Begin function N
.p2align 4, 0x90
_N: ## @N
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movq %rdx, -16(%rbp)
movl %ecx, -20(%rbp)
movl $0, -24(%rbp)
movl -4(%rbp), %eax
movl %eax, -28(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -24(%rbp), %eax
cltd
idivl -20(%rbp)
movl %edx, -32(%rbp) ## 4-byte Spill
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cltd
idivl -20(%rbp)
movl %edx, %eax
movl -32(%rbp), %edx ## 4-byte Reload
addl %eax, %edx
movl %edx, -24(%rbp)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_1
LBB0_4:
movl -24(%rbp), %eax
cltd
idivl -20(%rbp)
movl %edx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _M ## -- Begin function M
.p2align 4, 0x90
_M: ## @M
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movq %rdx, -16(%rbp)
movl %ecx, -20(%rbp)
movl $1, -24(%rbp)
movl -4(%rbp), %eax
movl %eax, -28(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -24(%rbp), %eax
cltd
idivl -20(%rbp)
movl %edx, -32(%rbp) ## 4-byte Spill
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cltd
idivl -20(%rbp)
movl %edx, %eax
movl -32(%rbp), %edx ## 4-byte Reload
imull %eax, %edx
movl %edx, -24(%rbp)
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB1_1
LBB1_4:
movl -24(%rbp), %eax
cltd
idivl -20(%rbp)
movl %edx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _H ## -- Begin function H
.p2align 4, 0x90
_H: ## @H
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movq %rdx, -16(%rbp)
movl %ecx, -20(%rbp)
movq -16(%rbp), %rax
movslq -4(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -24(%rbp)
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB2_4
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movl (%rax,%rcx,4), %eax
xorl -24(%rbp), %eax
movl %eax, -24(%rbp)
## %bb.3: ## in Loop: Header=BB2_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB2_1
LBB2_4:
movl -24(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $1360, %rsp ## imm = 0x550
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -1300(%rbp)
leaq L_.str(%rip), %rdi
leaq -1304(%rbp), %rsi
leaq -1308(%rbp), %rdx
movb $0, %al
callq _scanf
movl $0, -1312(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movl -1312(%rbp), %eax
cmpl -1304(%rbp), %eax
jge LBB3_4
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movslq -1312(%rbp), %rax
leaq -432(%rbp), %rsi
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
movl -1312(%rbp), %eax
addl $1, %eax
movl %eax, -1312(%rbp)
jmp LBB3_1
LBB3_4:
movl $0, -1312(%rbp)
LBB3_5: ## =>This Inner Loop Header: Depth=1
movl -1312(%rbp), %eax
cmpl -1308(%rbp), %eax
jge LBB3_8
## %bb.6: ## in Loop: Header=BB3_5 Depth=1
movslq -1312(%rbp), %rax
leaq -864(%rbp), %rsi
shlq $2, %rax
addq %rax, %rsi
movslq -1312(%rbp), %rax
leaq -1296(%rbp), %rdx
shlq $2, %rax
addq %rax, %rdx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.7: ## in Loop: Header=BB3_5 Depth=1
movl -1312(%rbp), %eax
addl $1, %eax
movl %eax, -1312(%rbp)
jmp LBB3_5
LBB3_8:
movl $0, -1312(%rbp)
LBB3_9: ## =>This Inner Loop Header: Depth=1
movl -1312(%rbp), %eax
movl -1308(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB3_18
## %bb.10: ## in Loop: Header=BB3_9 Depth=1
movslq -1312(%rbp), %rax
movl -864(%rbp,%rax,4), %edi
movslq -1312(%rbp), %rax
movl -1296(%rbp,%rax,4), %esi
leaq -432(%rbp), %rdx
movl -1304(%rbp), %ecx
callq _N
movl %eax, -1328(%rbp)
movslq -1312(%rbp), %rax
movl -864(%rbp,%rax,4), %edi
movslq -1312(%rbp), %rax
movl -1296(%rbp,%rax,4), %esi
leaq -432(%rbp), %rdx
movl -1304(%rbp), %ecx
callq _M
movl %eax, -1332(%rbp)
movl -1328(%rbp), %eax
cmpl -1332(%rbp), %eax
jle LBB3_12
## %bb.11: ## in Loop: Header=BB3_9 Depth=1
movl -1332(%rbp), %eax
movl %eax, -1336(%rbp) ## 4-byte Spill
jmp LBB3_13
LBB3_12: ## in Loop: Header=BB3_9 Depth=1
movl -1328(%rbp), %eax
movl %eax, -1336(%rbp) ## 4-byte Spill
LBB3_13: ## in Loop: Header=BB3_9 Depth=1
movl -1336(%rbp), %eax ## 4-byte Reload
movl %eax, -1320(%rbp)
movl -1328(%rbp), %eax
cmpl -1332(%rbp), %eax
jle LBB3_15
## %bb.14: ## in Loop: Header=BB3_9 Depth=1
movl -1328(%rbp), %eax
movl %eax, -1340(%rbp) ## 4-byte Spill
jmp LBB3_16
LBB3_15: ## in Loop: Header=BB3_9 Depth=1
movl -1332(%rbp), %eax
movl %eax, -1340(%rbp) ## 4-byte Spill
LBB3_16: ## in Loop: Header=BB3_9 Depth=1
movl -1340(%rbp), %eax ## 4-byte Reload
movl %eax, -1324(%rbp)
movl -1320(%rbp), %edi
movl -1324(%rbp), %esi
leaq -432(%rbp), %rdx
movl -1304(%rbp), %ecx
callq _H
movl %eax, -1316(%rbp)
movl -1316(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.17: ## in Loop: Header=BB3_9 Depth=1
movl -1312(%rbp), %eax
addl $1, %eax
movl %eax, -1312(%rbp)
jmp LBB3_9
LBB3_18:
movslq -1312(%rbp), %rax
movl -864(%rbp,%rax,4), %edi
movslq -1312(%rbp), %rax
movl -1296(%rbp,%rax,4), %esi
leaq -432(%rbp), %rdx
movl -1304(%rbp), %ecx
callq _N
movl %eax, -1328(%rbp)
movslq -1312(%rbp), %rax
movl -864(%rbp,%rax,4), %edi
movslq -1312(%rbp), %rax
movl -1296(%rbp,%rax,4), %esi
leaq -432(%rbp), %rdx
movl -1304(%rbp), %ecx
callq _M
movl %eax, -1332(%rbp)
movl -1328(%rbp), %eax
cmpl -1332(%rbp), %eax
jle LBB3_20
## %bb.19:
movl -1332(%rbp), %eax
movl %eax, -1344(%rbp) ## 4-byte Spill
jmp LBB3_21
LBB3_20:
movl -1328(%rbp), %eax
movl %eax, -1344(%rbp) ## 4-byte Spill
LBB3_21:
movl -1344(%rbp), %eax ## 4-byte Reload
movl %eax, -1320(%rbp)
movl -1328(%rbp), %eax
cmpl -1332(%rbp), %eax
jle LBB3_23
## %bb.22:
movl -1328(%rbp), %eax
movl %eax, -1348(%rbp) ## 4-byte Spill
jmp LBB3_24
LBB3_23:
movl -1332(%rbp), %eax
movl %eax, -1348(%rbp) ## 4-byte Spill
LBB3_24:
movl -1348(%rbp), %eax ## 4-byte Reload
movl %eax, -1324(%rbp)
movl -1320(%rbp), %edi
movl -1324(%rbp), %esi
leaq -432(%rbp), %rdx
movl -1304(%rbp), %ecx
callq _H
movl %eax, -1316(%rbp)
movl -1316(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB3_26
## %bb.25:
xorl %eax, %eax
addq $1360, %rsp ## imm = 0x550
popq %rbp
retq
LBB3_26:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d%d"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/167329548.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
sub x8, x29, #12
str x8, [x9, #8]
sub x8, x29, #16
str x8, [x9, #16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldur s0, [x29, #-12]
fcvtzs w8, s0
scvtf d0, w8
fmov d1, #2.00000000
bl _pow
ldur s2, [x29, #-8]
fmov s1, #4.00000000
fmul s1, s1, s2
ldur s2, [x29, #-16]
fmul s1, s1, s2
fcvt d1, s1
fsub d0, d0, d1
fcvt s0, d0
stur s0, [x29, #-20]
ldur s0, [x29, #-20]
fcmp s0, #0.0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_1
LBB0_1:
ldur s0, [x29, #-20]
fcmp s0, #0.0
cset w8, le
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldur s0, [x29, #-12]
fneg s0, s0
fcvt d0, s0
ldur s1, [x29, #-20]
fcvt d1, s1
fsqrt d1, d1
fsub d0, d0, d1
ldur s1, [x29, #-8]
fmov s2, #2.00000000
fmul s1, s2, s1
fcvt d1, s1
fdiv d1, d0, d1
ldur s0, [x29, #-12]
fneg s0, s0
fcvt d0, s0
ldur s3, [x29, #-20]
fcvt d3, s3
fsqrt d3, d3
fadd d0, d0, d3
ldur s3, [x29, #-8]
fmul s2, s2, s3
fcvt d2, s2
fdiv d0, d0, d2
mov x8, sp
str d1, [x8]
str d0, [x8, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_4
LBB0_3:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_4
LBB0_4:
b LBB0_6
LBB0_5:
ldur s0, [x29, #-12]
fneg s0, s0
fmov s1, #2.00000000
fdiv s0, s0, s1
ldur s1, [x29, #-8]
fmul s0, s0, s1
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_6
LBB0_6:
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%f %f %f"
l_.str.1: ; @.str.1
.asciz "Reshenija na ravenkata se: %.02f i %.02f\n"
l_.str.2: ; @.str.2
.asciz "Ravenkata nema realni reshenija"
l_.str.3: ; @.str.3
.asciz "Dvojno reshenie na ravenkata e: %.02f"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function main
LCPI0_0:
.long 0x40800000 ## float 4
LCPI0_2:
.long 0x40000000 ## float 2
.section __TEXT,__literal8,8byte_literals
.p2align 3
LCPI0_1:
.quad 0x4000000000000000 ## double 2
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
leaq -12(%rbp), %rdx
leaq -16(%rbp), %rcx
movb $0, %al
callq _scanf
cvttss2si -12(%rbp), %eax
cvtsi2sd %eax, %xmm0
movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero
callq _pow
movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss -8(%rbp), %xmm1
mulss -16(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
subsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -20(%rbp)
movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne LBB0_1
jp LBB0_1
jmp LBB0_5
LBB0_1:
movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe LBB0_3
## %bb.2:
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movd %xmm0, %eax
xorl $2147483648, %eax ## imm = 0x80000000
movd %eax, %xmm0
cvtss2sd %xmm0, %xmm0
movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
sqrtsd %xmm1, %xmm1
subsd %xmm1, %xmm0
movss LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss -8(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
divsd %xmm1, %xmm0
movss -12(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movd %xmm1, %eax
xorl $2147483648, %eax ## imm = 0x80000000
movd %eax, %xmm1
cvtss2sd %xmm1, %xmm1
movss -20(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero
cvtss2sd %xmm2, %xmm2
sqrtsd %xmm2, %xmm2
addsd %xmm2, %xmm1
movss LCPI0_2(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero
mulss -8(%rbp), %xmm2
cvtss2sd %xmm2, %xmm2
divsd %xmm2, %xmm1
leaq L_.str.1(%rip), %rdi
movb $2, %al
callq _printf
jmp LBB0_4
LBB0_3:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
LBB0_4:
jmp LBB0_6
LBB0_5:
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movd %xmm0, %eax
xorl $2147483648, %eax ## imm = 0x80000000
movd %eax, %xmm0
movss LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
divss %xmm1, %xmm0
mulss -8(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq L_.str.3(%rip), %rdi
movb $1, %al
callq _printf
LBB0_6:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%f %f %f"
L_.str.1: ## @.str.1
.asciz "Reshenija na ravenkata se: %.02f i %.02f\n"
L_.str.2: ## @.str.2
.asciz "Ravenkata nema realni reshenija"
L_.str.3: ## @.str.3
.asciz "Dvojno reshenie na ravenkata e: %.02f"
.subsections_via_symbols
| the_stack_data/118215.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/54826140.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #272
.cfi_def_cfa_offset 272
stp x28, x27, [sp, #240] ; 16-byte Folded Spill
stp x29, x30, [sp, #256] ; 16-byte Folded Spill
add x29, sp, #256
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #48]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _puts
add x0, sp, #92
str x0, [sp, #8] ; 8-byte Folded Spill
bl _gets
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _puts
add x0, sp, #72
str x0, [sp, #16] ; 8-byte Folded Spill
bl _gets
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _puts
add x0, sp, #52
str x0, [sp, #24] ; 8-byte Folded Spill
bl _gets
ldr x1, [sp, #8] ; 8-byte Folded Reload
sub x0, x29, #104
str x0, [sp, #40] ; 8-byte Folded Spill
mov x2, #80
str x2, [sp, #32] ; 8-byte Folded Spill
bl ___strcpy_chk
ldr x1, [sp, #16] ; 8-byte Folded Reload
ldr x2, [sp, #32] ; 8-byte Folded Reload
ldr x0, [sp, #40] ; 8-byte Folded Reload
bl ___strcat_chk
ldr x1, [sp, #24] ; 8-byte Folded Reload
ldr x2, [sp, #32] ; 8-byte Folded Reload
ldr x0, [sp, #40] ; 8-byte Folded Reload
bl ___strcat_chk
ldr x0, [sp, #40] ; 8-byte Folded Reload
bl _puts
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl ___stack_chk_fail
LBB0_2:
mov w0, #0
ldp x29, x30, [sp, #256] ; 16-byte Folded Reload
ldp x28, x27, [sp, #240] ; 16-byte Folded Reload
add sp, sp, #272
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Digite seu Primeiro Nome: "
l_.str.1: ; @.str.1
.asciz "Digite seu Ultimo Nome: "
l_.str.2: ; @.str.2
.asciz "Digite seu Nome do meio: "
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $240, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -228(%rbp)
leaq L_.str(%rip), %rdi
callq _puts
leaq -160(%rbp), %rdi
callq _gets
leaq L_.str.1(%rip), %rdi
callq _puts
leaq -192(%rbp), %rdi
callq _gets
leaq L_.str.2(%rip), %rdi
callq _puts
leaq -224(%rbp), %rdi
callq _gets
leaq -96(%rbp), %rdi
leaq -160(%rbp), %rsi
movl $80, %edx
callq ___strcpy_chk
leaq -96(%rbp), %rdi
leaq -192(%rbp), %rsi
movl $80, %edx
callq ___strcat_chk
leaq -96(%rbp), %rdi
leaq -224(%rbp), %rsi
movl $80, %edx
callq ___strcat_chk
leaq -96(%rbp), %rdi
callq _puts
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_2
## %bb.1:
xorl %eax, %eax
addq $240, %rsp
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Digite seu Primeiro Nome: "
L_.str.1: ## @.str.1
.asciz "Digite seu Ultimo Nome: "
L_.str.2: ## @.str.2
.asciz "Digite seu Nome do meio: "
.subsections_via_symbols
| the_stack_data/86234.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function _now_time
lCPI0_0:
.quad 0x412e848000000000 ; double 1.0E+6
lCPI0_1:
.quad 0x41ead27480000000 ; double 3.6E+9
lCPI0_2:
.quad 0x418c9c3800000000 ; double 6.0E+7
.section __TEXT,__text,regular,pure_instructions
.globl __now_time
.p2align 2
__now_time: ; @_now_time
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
add x0, sp, #8
str x0, [sp] ; 8-byte Folded Spill
mov x1, #0
bl _gettimeofday
ldr x0, [sp] ; 8-byte Folded Reload
bl _localtime
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr s1, [x8, #8]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
ldur x8, [x29, #-8]
ldr s2, [x8, #4]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
adrp x8, lCPI0_2@PAGE
ldr d2, [x8, lCPI0_2@PAGEOFF]
fmul d2, d1, d2
adrp x8, lCPI0_1@PAGE
ldr d1, [x8, lCPI0_1@PAGEOFF]
fmadd d2, d0, d1, d2
ldur x8, [x29, #-8]
ldr s1, [x8]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fmadd d0, d0, d1, d2
ldr s2, [sp, #16]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
fadd d0, d0, d1
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function dgemm2D_static
lCPI1_0:
.quad 0x412e848000000000 ; double 1.0E+6
.section __TEXT,__text,regular,pure_instructions
.globl _dgemm2D_static
.p2align 2
_dgemm2D_static: ; @dgemm2D_static
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl __now_time
stur d0, [x29, #-24]
stur wzr, [x29, #-4]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_3 Depth 2
; Child Loop BB1_5 Depth 3
ldur w8, [x29, #-4]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB1_12
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
stur wzr, [x29, #-8]
b LBB1_3
LBB1_3: ; Parent Loop BB1_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB1_5 Depth 3
ldur w8, [x29, #-8]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB1_10
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=2
stur wzr, [x29, #-12]
b LBB1_5
LBB1_5: ; Parent Loop BB1_1 Depth=1
; Parent Loop BB1_3 Depth=2
; => This Inner Loop Header: Depth=3
ldur w8, [x29, #-12]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB1_8
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_5 Depth=3
ldursw x9, [x29, #-4]
adrp x8, _A2D@PAGE
add x8, x8, _A2D@PAGEOFF
add x8, x8, x9, lsl #8
ldursw x9, [x29, #-12]
ldr s0, [x8, x9, lsl #2]
ldursw x9, [x29, #-12]
adrp x8, _B2D@PAGE
add x8, x8, _B2D@PAGEOFF
add x8, x8, x9, lsl #8
ldursw x9, [x29, #-8]
ldr s1, [x8, x9, lsl #2]
ldursw x9, [x29, #-4]
adrp x8, _C2D@PAGE
add x8, x8, _C2D@PAGEOFF
add x8, x8, x9, lsl #8
ldursw x9, [x29, #-8]
add x8, x8, x9, lsl #2
ldr s2, [x8]
fmsub s0, s0, s1, s2
str s0, [x8]
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_5 Depth=3
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB1_5
LBB1_8: ; in Loop: Header=BB1_3 Depth=2
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_3 Depth=2
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB1_3
LBB1_10: ; in Loop: Header=BB1_1 Depth=1
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-4]
b LBB1_1
LBB1_12:
bl __now_time
str d0, [sp, #32]
ldr d0, [sp, #32]
ldur d1, [x29, #-24]
fsub d0, d0, d1
adrp x8, lCPI1_0@PAGE
ldr d1, [x8, lCPI1_0@PAGEOFF]
fdiv d0, d0, d1
mov x8, sp
mov x9, #64
str x9, [x8]
str x9, [x8, #8]
str x9, [x8, #16]
str d0, [x8, #24]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function dgemm1D_static
lCPI2_0:
.quad 0x412e848000000000 ; double 1.0E+6
.section __TEXT,__text,regular,pure_instructions
.globl _dgemm1D_static
.p2align 2
_dgemm1D_static: ; @dgemm1D_static
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl __now_time
stur d0, [x29, #-24]
stur wzr, [x29, #-4]
b LBB2_1
LBB2_1: ; =>This Loop Header: Depth=1
; Child Loop BB2_3 Depth 2
; Child Loop BB2_5 Depth 3
ldur w8, [x29, #-4]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB2_12
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
stur wzr, [x29, #-8]
b LBB2_3
LBB2_3: ; Parent Loop BB2_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB2_5 Depth 3
ldur w8, [x29, #-8]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB2_10
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_3 Depth=2
stur wzr, [x29, #-12]
b LBB2_5
LBB2_5: ; Parent Loop BB2_1 Depth=1
; Parent Loop BB2_3 Depth=2
; => This Inner Loop Header: Depth=3
ldur w8, [x29, #-12]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB2_8
b LBB2_6
LBB2_6: ; in Loop: Header=BB2_5 Depth=3
ldur w9, [x29, #-4]
ldur w8, [x29, #-12]
add w9, w8, w9, lsl #6
adrp x8, _A1D@PAGE
add x8, x8, _A1D@PAGEOFF
ldr s0, [x8, w9, sxtw #2]
ldur w9, [x29, #-12]
ldur w8, [x29, #-8]
add w9, w8, w9, lsl #6
adrp x8, _B1D@PAGE
add x8, x8, _B1D@PAGEOFF
ldr s1, [x8, w9, sxtw #2]
ldur w9, [x29, #-4]
ldur w8, [x29, #-8]
add w9, w8, w9, lsl #6
adrp x8, _C1D@PAGE
add x8, x8, _C1D@PAGEOFF
add x8, x8, w9, sxtw #2
ldr s2, [x8]
fmsub s0, s0, s1, s2
str s0, [x8]
b LBB2_7
LBB2_7: ; in Loop: Header=BB2_5 Depth=3
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB2_5
LBB2_8: ; in Loop: Header=BB2_3 Depth=2
b LBB2_9
LBB2_9: ; in Loop: Header=BB2_3 Depth=2
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB2_3
LBB2_10: ; in Loop: Header=BB2_1 Depth=1
b LBB2_11
LBB2_11: ; in Loop: Header=BB2_1 Depth=1
ldur w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-4]
b LBB2_1
LBB2_12:
bl __now_time
str d0, [sp, #32]
ldr d0, [sp, #32]
ldur d1, [x29, #-24]
fsub d0, d0, d1
adrp x8, lCPI2_0@PAGE
ldr d1, [x8, lCPI2_0@PAGEOFF]
fdiv d0, d0, d1
mov x8, sp
mov x9, #64
str x9, [x8]
str x9, [x8, #8]
str x9, [x8, #16]
str d0, [x8, #24]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function dgemm2Df
lCPI3_0:
.quad 0x412e848000000000 ; double 1.0E+6
.section __TEXT,__text,regular,pure_instructions
.globl _dgemm2Df
.p2align 2
_dgemm2Df: ; @dgemm2Df
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
stur w1, [x29, #-8]
stur w2, [x29, #-12]
stur x3, [x29, #-24]
stur x4, [x29, #-32]
stur x5, [x29, #-40]
bl __now_time
str d0, [sp, #48]
stur wzr, [x29, #-44]
b LBB3_1
LBB3_1: ; =>This Loop Header: Depth=1
; Child Loop BB3_3 Depth 2
; Child Loop BB3_5 Depth 3
ldur w8, [x29, #-44]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_12
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
stur wzr, [x29, #-48]
b LBB3_3
LBB3_3: ; Parent Loop BB3_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB3_5 Depth 3
ldur w8, [x29, #-48]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_10
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_3 Depth=2
stur wzr, [x29, #-52]
b LBB3_5
LBB3_5: ; Parent Loop BB3_1 Depth=1
; Parent Loop BB3_3 Depth=2
; => This Inner Loop Header: Depth=3
ldur w8, [x29, #-52]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_8
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_5 Depth=3
ldur x8, [x29, #-24]
ldur w9, [x29, #-44]
ldur w10, [x29, #-8]
mul w9, w9, w10
ldur w10, [x29, #-52]
add w9, w9, w10
ldr s0, [x8, w9, sxtw #2]
ldur x8, [x29, #-32]
ldur w9, [x29, #-52]
ldur w10, [x29, #-12]
mul w9, w9, w10
ldur w10, [x29, #-48]
add w9, w9, w10
ldr s1, [x8, w9, sxtw #2]
ldur x8, [x29, #-40]
ldur w9, [x29, #-44]
ldur w10, [x29, #-12]
mul w9, w9, w10
ldur w10, [x29, #-48]
add w9, w9, w10
add x8, x8, w9, sxtw #2
ldr s2, [x8]
fmsub s0, s0, s1, s2
str s0, [x8]
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_5 Depth=3
ldur w8, [x29, #-52]
add w8, w8, #1
stur w8, [x29, #-52]
b LBB3_5
LBB3_8: ; in Loop: Header=BB3_3 Depth=2
b LBB3_9
LBB3_9: ; in Loop: Header=BB3_3 Depth=2
ldur w8, [x29, #-48]
add w8, w8, #1
stur w8, [x29, #-48]
b LBB3_3
LBB3_10: ; in Loop: Header=BB3_1 Depth=1
b LBB3_11
LBB3_11: ; in Loop: Header=BB3_1 Depth=1
ldur w8, [x29, #-44]
add w8, w8, #1
stur w8, [x29, #-44]
b LBB3_1
LBB3_12:
bl __now_time
str d0, [sp, #40]
ldur w8, [x29, #-4]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-8]
; implicit-def: $x10
mov x10, x8
ldur w8, [x29, #-12]
; implicit-def: $x9
mov x9, x8
ldr d0, [sp, #40]
ldr d1, [sp, #48]
fsub d0, d0, d1
adrp x8, lCPI3_0@PAGE
ldr d1, [x8, lCPI3_0@PAGEOFF]
fdiv d0, d0, d1
mov x8, sp
str x11, [x8]
str x10, [x8, #8]
str x9, [x8, #16]
str d0, [x8, #24]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function dgemm2Df_restrict
lCPI4_0:
.quad 0x412e848000000000 ; double 1.0E+6
.section __TEXT,__text,regular,pure_instructions
.globl _dgemm2Df_restrict
.p2align 2
_dgemm2Df_restrict: ; @dgemm2Df_restrict
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
stur w1, [x29, #-8]
stur w2, [x29, #-12]
stur x3, [x29, #-24]
stur x4, [x29, #-32]
stur x5, [x29, #-40]
bl __now_time
str d0, [sp, #48]
stur wzr, [x29, #-44]
b LBB4_1
LBB4_1: ; =>This Loop Header: Depth=1
; Child Loop BB4_3 Depth 2
; Child Loop BB4_5 Depth 3
ldur w8, [x29, #-44]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB4_12
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
stur wzr, [x29, #-48]
b LBB4_3
LBB4_3: ; Parent Loop BB4_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB4_5 Depth 3
ldur w8, [x29, #-48]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB4_10
b LBB4_4
LBB4_4: ; in Loop: Header=BB4_3 Depth=2
stur wzr, [x29, #-52]
b LBB4_5
LBB4_5: ; Parent Loop BB4_1 Depth=1
; Parent Loop BB4_3 Depth=2
; => This Inner Loop Header: Depth=3
ldur w8, [x29, #-52]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB4_8
b LBB4_6
LBB4_6: ; in Loop: Header=BB4_5 Depth=3
ldur x8, [x29, #-24]
ldur w9, [x29, #-44]
ldur w10, [x29, #-8]
mul w9, w9, w10
ldur w10, [x29, #-52]
add w9, w9, w10
ldr s0, [x8, w9, sxtw #2]
ldur x8, [x29, #-32]
ldur w9, [x29, #-52]
ldur w10, [x29, #-12]
mul w9, w9, w10
ldur w10, [x29, #-48]
add w9, w9, w10
ldr s1, [x8, w9, sxtw #2]
ldur x8, [x29, #-40]
ldur w9, [x29, #-44]
ldur w10, [x29, #-12]
mul w9, w9, w10
ldur w10, [x29, #-48]
add w9, w9, w10
add x8, x8, w9, sxtw #2
ldr s2, [x8]
fmsub s0, s0, s1, s2
str s0, [x8]
b LBB4_7
LBB4_7: ; in Loop: Header=BB4_5 Depth=3
ldur w8, [x29, #-52]
add w8, w8, #1
stur w8, [x29, #-52]
b LBB4_5
LBB4_8: ; in Loop: Header=BB4_3 Depth=2
b LBB4_9
LBB4_9: ; in Loop: Header=BB4_3 Depth=2
ldur w8, [x29, #-48]
add w8, w8, #1
stur w8, [x29, #-48]
b LBB4_3
LBB4_10: ; in Loop: Header=BB4_1 Depth=1
b LBB4_11
LBB4_11: ; in Loop: Header=BB4_1 Depth=1
ldur w8, [x29, #-44]
add w8, w8, #1
stur w8, [x29, #-44]
b LBB4_1
LBB4_12:
bl __now_time
str d0, [sp, #40]
ldur w8, [x29, #-4]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-8]
; implicit-def: $x10
mov x10, x8
ldur w8, [x29, #-12]
; implicit-def: $x9
mov x9, x8
ldr d0, [sp, #40]
ldr d1, [sp, #48]
fsub d0, d0, d1
adrp x8, lCPI4_0@PAGE
ldr d1, [x8, lCPI4_0@PAGEOFF]
fdiv d0, d0, d1
mov x8, sp
str x11, [x8]
str x10, [x8, #8]
str x9, [x8, #16]
str d0, [x8, #24]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI5_0:
.quad 0x40c81cd6e631f8a1 ; double 12345.678900000001
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur w8, [x29, #-8]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
mov x1, #0
mov w2, #10
bl _strtol
str x0, [sp, #16] ; 8-byte Folded Spill
b LBB5_3
LBB5_2:
mov x8, #64
str x8, [sp, #16] ; 8-byte Folded Spill
b LBB5_3
LBB5_3:
ldr x8, [sp, #16] ; 8-byte Folded Reload
; kill: def $w8 killed $w8 killed $x8
stur w8, [x29, #-32]
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, le
tbnz w8, #0, LBB5_5
b LBB5_4
LBB5_4:
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
mov x1, #0
mov w2, #10
bl _strtol
str x0, [sp, #8] ; 8-byte Folded Spill
b LBB5_6
LBB5_5:
mov x8, #64
str x8, [sp, #8] ; 8-byte Folded Spill
b LBB5_6
LBB5_6:
ldr x8, [sp, #8] ; 8-byte Folded Reload
; kill: def $w8 killed $w8 killed $x8
stur w8, [x29, #-36]
ldur w8, [x29, #-8]
subs w8, w8, #3
cset w8, le
tbnz w8, #0, LBB5_8
b LBB5_7
LBB5_7:
ldur x8, [x29, #-16]
ldr x0, [x8, #24]
mov x1, #0
mov w2, #10
bl _strtol
str x0, [sp] ; 8-byte Folded Spill
b LBB5_9
LBB5_8:
mov x8, #64
str x8, [sp] ; 8-byte Folded Spill
b LBB5_9
LBB5_9:
ldr x8, [sp] ; 8-byte Folded Reload
; kill: def $w8 killed $w8 killed $x8
stur w8, [x29, #-40]
ldur w8, [x29, #-32]
ldur w9, [x29, #-36]
mul w9, w8, w9
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
lsl x0, x8, #2
bl _malloc
str x0, [sp, #48]
ldur w8, [x29, #-36]
ldur w9, [x29, #-40]
mul w9, w8, w9
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
lsl x0, x8, #2
bl _malloc
str x0, [sp, #40]
ldur w8, [x29, #-32]
ldur w9, [x29, #-40]
mul w9, w8, w9
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
lsl x0, x8, #2
bl _malloc
str x0, [sp, #32]
stur wzr, [x29, #-20]
b LBB5_10
LBB5_10: ; =>This Loop Header: Depth=1
; Child Loop BB5_12 Depth 2
; Child Loop BB5_16 Depth 2
ldur w8, [x29, #-20]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB5_21
b LBB5_11
LBB5_11: ; in Loop: Header=BB5_10 Depth=1
stur wzr, [x29, #-24]
b LBB5_12
LBB5_12: ; Parent Loop BB5_10 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-24]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB5_15
b LBB5_13
LBB5_13: ; in Loop: Header=BB5_12 Depth=2
bl _rand
scvtf s0, w0
fcvt d0, s0
adrp x8, lCPI5_0@PAGE
ldr d1, [x8, lCPI5_0@PAGEOFF]
fdiv d0, d0, d1
fcvt s0, d0
str s0, [sp, #28]
ldr s0, [sp, #28]
fcvt d0, s0
fmov d2, #-1.00000000
fmov d1, #2.00000000
fmadd d0, d0, d1, d2
fcvt s0, d0
ldur w9, [x29, #-20]
ldur w8, [x29, #-24]
add w9, w8, w9, lsl #6
adrp x8, _A1D@PAGE
add x8, x8, _A1D@PAGEOFF
str s0, [x8, w9, sxtw #2]
ldursw x9, [x29, #-20]
adrp x8, _A2D@PAGE
add x8, x8, _A2D@PAGEOFF
add x8, x8, x9, lsl #8
ldursw x9, [x29, #-24]
str s0, [x8, x9, lsl #2]
b LBB5_14
LBB5_14: ; in Loop: Header=BB5_12 Depth=2
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
b LBB5_12
LBB5_15: ; in Loop: Header=BB5_10 Depth=1
stur wzr, [x29, #-28]
b LBB5_16
LBB5_16: ; Parent Loop BB5_10 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-28]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB5_19
b LBB5_17
LBB5_17: ; in Loop: Header=BB5_16 Depth=2
ldur w9, [x29, #-20]
ldur w8, [x29, #-28]
add w9, w8, w9, lsl #6
adrp x8, _C1D@PAGE
add x8, x8, _C1D@PAGEOFF
fmov s0, #1.00000000
str s0, [x8, w9, sxtw #2]
ldursw x9, [x29, #-20]
adrp x8, _C2D@PAGE
add x8, x8, _C2D@PAGEOFF
add x8, x8, x9, lsl #8
ldursw x9, [x29, #-28]
str s0, [x8, x9, lsl #2]
b LBB5_18
LBB5_18: ; in Loop: Header=BB5_16 Depth=2
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB5_16
LBB5_19: ; in Loop: Header=BB5_10 Depth=1
b LBB5_20
LBB5_20: ; in Loop: Header=BB5_10 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB5_10
LBB5_21:
stur wzr, [x29, #-24]
b LBB5_22
LBB5_22: ; =>This Loop Header: Depth=1
; Child Loop BB5_24 Depth 2
ldur w8, [x29, #-24]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB5_29
b LBB5_23
LBB5_23: ; in Loop: Header=BB5_22 Depth=1
stur wzr, [x29, #-28]
b LBB5_24
LBB5_24: ; Parent Loop BB5_22 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-28]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB5_27
b LBB5_25
LBB5_25: ; in Loop: Header=BB5_24 Depth=2
ldur w9, [x29, #-24]
ldur w8, [x29, #-28]
add w9, w8, w9, lsl #6
adrp x8, _B1D@PAGE
add x8, x8, _B1D@PAGEOFF
fmov s0, #1.00000000
str s0, [x8, w9, sxtw #2]
ldursw x9, [x29, #-24]
adrp x8, _B2D@PAGE
add x8, x8, _B2D@PAGEOFF
add x8, x8, x9, lsl #8
ldursw x9, [x29, #-28]
str s0, [x8, x9, lsl #2]
b LBB5_26
LBB5_26: ; in Loop: Header=BB5_24 Depth=2
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB5_24
LBB5_27: ; in Loop: Header=BB5_22 Depth=1
b LBB5_28
LBB5_28: ; in Loop: Header=BB5_22 Depth=1
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
b LBB5_22
LBB5_29:
stur wzr, [x29, #-20]
b LBB5_30
LBB5_30: ; =>This Loop Header: Depth=1
; Child Loop BB5_32 Depth 2
; Child Loop BB5_36 Depth 2
ldur w8, [x29, #-20]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_41
b LBB5_31
LBB5_31: ; in Loop: Header=BB5_30 Depth=1
stur wzr, [x29, #-24]
b LBB5_32
LBB5_32: ; Parent Loop BB5_30 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-24]
ldur w9, [x29, #-36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_35
b LBB5_33
LBB5_33: ; in Loop: Header=BB5_32 Depth=2
bl _rand
scvtf s0, w0
fcvt d0, s0
adrp x8, lCPI5_0@PAGE
ldr d1, [x8, lCPI5_0@PAGEOFF]
fdiv d0, d0, d1
fcvt s0, d0
str s0, [sp, #24]
ldr s0, [sp, #24]
fcvt d0, s0
fmov d2, #-1.00000000
fmov d1, #2.00000000
fmadd d0, d0, d1, d2
fcvt s0, d0
ldr x8, [sp, #48]
ldur w9, [x29, #-20]
ldur w10, [x29, #-36]
mul w9, w9, w10
ldur w10, [x29, #-24]
add w9, w9, w10
str s0, [x8, w9, sxtw #2]
b LBB5_34
LBB5_34: ; in Loop: Header=BB5_32 Depth=2
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
b LBB5_32
LBB5_35: ; in Loop: Header=BB5_30 Depth=1
stur wzr, [x29, #-28]
b LBB5_36
LBB5_36: ; Parent Loop BB5_30 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-28]
ldur w9, [x29, #-40]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_39
b LBB5_37
LBB5_37: ; in Loop: Header=BB5_36 Depth=2
ldr x8, [sp, #32]
ldur w9, [x29, #-20]
ldur w10, [x29, #-40]
mul w9, w9, w10
ldur w10, [x29, #-28]
add w9, w9, w10
fmov s0, #1.00000000
str s0, [x8, w9, sxtw #2]
b LBB5_38
LBB5_38: ; in Loop: Header=BB5_36 Depth=2
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB5_36
LBB5_39: ; in Loop: Header=BB5_30 Depth=1
b LBB5_40
LBB5_40: ; in Loop: Header=BB5_30 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB5_30
LBB5_41:
stur wzr, [x29, #-24]
b LBB5_42
LBB5_42: ; =>This Loop Header: Depth=1
; Child Loop BB5_44 Depth 2
ldur w8, [x29, #-24]
ldur w9, [x29, #-36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_49
b LBB5_43
LBB5_43: ; in Loop: Header=BB5_42 Depth=1
stur wzr, [x29, #-28]
b LBB5_44
LBB5_44: ; Parent Loop BB5_42 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-28]
ldur w9, [x29, #-40]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_47
b LBB5_45
LBB5_45: ; in Loop: Header=BB5_44 Depth=2
ldr x8, [sp, #40]
ldur w9, [x29, #-24]
ldur w10, [x29, #-40]
mul w9, w9, w10
ldur w10, [x29, #-28]
add w9, w9, w10
fmov s0, #1.00000000
str s0, [x8, w9, sxtw #2]
b LBB5_46
LBB5_46: ; in Loop: Header=BB5_44 Depth=2
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB5_44
LBB5_47: ; in Loop: Header=BB5_42 Depth=1
b LBB5_48
LBB5_48: ; in Loop: Header=BB5_42 Depth=1
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
b LBB5_42
LBB5_49:
ldur w0, [x29, #-32]
ldur w1, [x29, #-36]
ldur w2, [x29, #-40]
ldr x3, [sp, #48]
ldr x4, [sp, #40]
ldr x5, [sp, #32]
bl _dgemm2Df
ldur w0, [x29, #-32]
ldur w1, [x29, #-36]
ldur w2, [x29, #-40]
ldr x3, [sp, #48]
ldr x4, [sp, #40]
ldr x5, [sp, #32]
bl _dgemm2Df_restrict
bl _dgemm1D_static
bl _dgemm2D_static
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_A2D,16384,2 ; @A2D
.zerofill __DATA,__bss,_B2D,16384,2 ; @B2D
.zerofill __DATA,__bss,_C2D,16384,2 ; @C2D
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "dgemm2D static (%d,%d,%d): %f\n"
.zerofill __DATA,__bss,_A1D,16384,2 ; @A1D
.zerofill __DATA,__bss,_B1D,16384,2 ; @B1D
.zerofill __DATA,__bss,_C1D,16384,2 ; @C1D
l_.str.1: ; @.str.1
.asciz "dgemm1D static (%d,%d,%d): %f\n"
l_.str.2: ; @.str.2
.asciz "dgemm2Df (%d,%d,%d): %f\n"
l_.str.3: ; @.str.3
.asciz "dgemm2Df restrict(%d,%d,%d): %f\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function _now_time
LCPI0_0:
.quad 0x412e848000000000 ## double 1.0E+6
LCPI0_1:
.quad 0x41ead27480000000 ## double 3.6E+9
LCPI0_2:
.quad 0x418c9c3800000000 ## double 6.0E+7
.section __TEXT,__text,regular,pure_instructions
.globl __now_time
.p2align 4, 0x90
__now_time: ## @_now_time
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
leaq -24(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _gettimeofday
leaq -24(%rbp), %rdi
callq _localtime
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
cvtsi2sdl 8(%rax), %xmm1
movq -8(%rbp), %rax
cvtsi2sdl 4(%rax), %xmm0
movsd LCPI0_2(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
movsd LCPI0_1(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
movq -8(%rbp), %rax
cvtsi2sdl (%rax), %xmm0
movsd LCPI0_0(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvtsi2sdl -16(%rbp), %xmm1
addsd %xmm1, %xmm0
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function dgemm2D_static
LCPI1_0:
.quad 0x412e848000000000 ## double 1.0E+6
.section __TEXT,__text,regular,pure_instructions
.globl _dgemm2D_static
.p2align 4, 0x90
_dgemm2D_static: ## @dgemm2D_static
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
callq __now_time
movsd %xmm0, -24(%rbp)
movl $0, -4(%rbp)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_3 Depth 2
## Child Loop BB1_5 Depth 3
cmpl $64, -4(%rbp)
jge LBB1_12
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl $0, -8(%rbp)
LBB1_3: ## Parent Loop BB1_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB1_5 Depth 3
cmpl $64, -8(%rbp)
jge LBB1_10
## %bb.4: ## in Loop: Header=BB1_3 Depth=2
movl $0, -12(%rbp)
LBB1_5: ## Parent Loop BB1_1 Depth=1
## Parent Loop BB1_3 Depth=2
## => This Inner Loop Header: Depth=3
cmpl $64, -12(%rbp)
jge LBB1_8
## %bb.6: ## in Loop: Header=BB1_5 Depth=3
movslq -4(%rbp), %rcx
leaq _A2D(%rip), %rax
shlq $8, %rcx
addq %rcx, %rax
movslq -12(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movslq -12(%rbp), %rcx
leaq _B2D(%rip), %rax
shlq $8, %rcx
addq %rcx, %rax
movslq -8(%rbp), %rcx
movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movslq -4(%rbp), %rcx
leaq _C2D(%rip), %rax
shlq $8, %rcx
addq %rcx, %rax
movslq -8(%rbp), %rcx
movss (%rax,%rcx,4), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movd %xmm0, %edx
xorl $2147483648, %edx ## imm = 0x80000000
movd %edx, %xmm0
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, (%rax,%rcx,4)
## %bb.7: ## in Loop: Header=BB1_5 Depth=3
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB1_5
LBB1_8: ## in Loop: Header=BB1_3 Depth=2
jmp LBB1_9
LBB1_9: ## in Loop: Header=BB1_3 Depth=2
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB1_3
LBB1_10: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_11
LBB1_11: ## in Loop: Header=BB1_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB1_1
LBB1_12:
callq __now_time
movsd %xmm0, -32(%rbp)
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
subsd -24(%rbp), %xmm0
movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
leaq L_.str(%rip), %rdi
movl $64, %ecx
movl %ecx, %esi
movl %ecx, %edx
movb $1, %al
callq _printf
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function dgemm1D_static
LCPI2_0:
.quad 0x412e848000000000 ## double 1.0E+6
.section __TEXT,__text,regular,pure_instructions
.globl _dgemm1D_static
.p2align 4, 0x90
_dgemm1D_static: ## @dgemm1D_static
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
callq __now_time
movsd %xmm0, -24(%rbp)
movl $0, -4(%rbp)
LBB2_1: ## =>This Loop Header: Depth=1
## Child Loop BB2_3 Depth 2
## Child Loop BB2_5 Depth 3
cmpl $64, -4(%rbp)
jge LBB2_12
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movl $0, -8(%rbp)
LBB2_3: ## Parent Loop BB2_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB2_5 Depth 3
cmpl $64, -8(%rbp)
jge LBB2_10
## %bb.4: ## in Loop: Header=BB2_3 Depth=2
movl $0, -12(%rbp)
LBB2_5: ## Parent Loop BB2_1 Depth=1
## Parent Loop BB2_3 Depth=2
## => This Inner Loop Header: Depth=3
cmpl $64, -12(%rbp)
jge LBB2_8
## %bb.6: ## in Loop: Header=BB2_5 Depth=3
movl -4(%rbp), %eax
shll $6, %eax
addl -12(%rbp), %eax
movslq %eax, %rcx
leaq _A1D(%rip), %rax
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movl -12(%rbp), %eax
shll $6, %eax
addl -8(%rbp), %eax
movslq %eax, %rcx
leaq _B1D(%rip), %rax
movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movl -4(%rbp), %eax
shll $6, %eax
addl -8(%rbp), %eax
movslq %eax, %rcx
leaq _C1D(%rip), %rax
movss (%rax,%rcx,4), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movd %xmm0, %eax
xorl $2147483648, %eax ## imm = 0x80000000
movd %eax, %xmm0
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
leaq _C1D(%rip), %rax
movss %xmm0, (%rax,%rcx,4)
## %bb.7: ## in Loop: Header=BB2_5 Depth=3
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB2_5
LBB2_8: ## in Loop: Header=BB2_3 Depth=2
jmp LBB2_9
LBB2_9: ## in Loop: Header=BB2_3 Depth=2
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB2_3
LBB2_10: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_11
LBB2_11: ## in Loop: Header=BB2_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB2_1
LBB2_12:
callq __now_time
movsd %xmm0, -32(%rbp)
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
subsd -24(%rbp), %xmm0
movsd LCPI2_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
leaq L_.str.1(%rip), %rdi
movl $64, %ecx
movl %ecx, %esi
movl %ecx, %edx
movb $1, %al
callq _printf
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function dgemm2Df
LCPI3_0:
.quad 0x412e848000000000 ## double 1.0E+6
.section __TEXT,__text,regular,pure_instructions
.globl _dgemm2Df
.p2align 4, 0x90
_dgemm2Df: ## @dgemm2Df
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl %edx, -12(%rbp)
movq %rcx, -24(%rbp)
movq %r8, -32(%rbp)
movq %r9, -40(%rbp)
callq __now_time
movsd %xmm0, -64(%rbp)
movl $0, -44(%rbp)
LBB3_1: ## =>This Loop Header: Depth=1
## Child Loop BB3_3 Depth 2
## Child Loop BB3_5 Depth 3
movl -44(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB3_12
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movl $0, -48(%rbp)
LBB3_3: ## Parent Loop BB3_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB3_5 Depth 3
movl -48(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB3_10
## %bb.4: ## in Loop: Header=BB3_3 Depth=2
movl $0, -52(%rbp)
LBB3_5: ## Parent Loop BB3_1 Depth=1
## Parent Loop BB3_3 Depth=2
## => This Inner Loop Header: Depth=3
movl -52(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB3_8
## %bb.6: ## in Loop: Header=BB3_5 Depth=3
movq -24(%rbp), %rax
movl -44(%rbp), %ecx
imull -8(%rbp), %ecx
addl -52(%rbp), %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -32(%rbp), %rax
movl -52(%rbp), %ecx
imull -12(%rbp), %ecx
addl -48(%rbp), %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movq -40(%rbp), %rax
movl -44(%rbp), %ecx
imull -12(%rbp), %ecx
addl -48(%rbp), %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movd %xmm0, %edx
xorl $2147483648, %edx ## imm = 0x80000000
movd %edx, %xmm0
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, (%rax,%rcx,4)
## %bb.7: ## in Loop: Header=BB3_5 Depth=3
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB3_5
LBB3_8: ## in Loop: Header=BB3_3 Depth=2
jmp LBB3_9
LBB3_9: ## in Loop: Header=BB3_3 Depth=2
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
jmp LBB3_3
LBB3_10: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_11
LBB3_11: ## in Loop: Header=BB3_1 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB3_1
LBB3_12:
callq __now_time
movsd %xmm0, -72(%rbp)
movl -4(%rbp), %esi
movl -8(%rbp), %edx
movl -12(%rbp), %ecx
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
subsd -64(%rbp), %xmm0
movsd LCPI3_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function dgemm2Df_restrict
LCPI4_0:
.quad 0x412e848000000000 ## double 1.0E+6
.section __TEXT,__text,regular,pure_instructions
.globl _dgemm2Df_restrict
.p2align 4, 0x90
_dgemm2Df_restrict: ## @dgemm2Df_restrict
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl %edx, -12(%rbp)
movq %rcx, -24(%rbp)
movq %r8, -32(%rbp)
movq %r9, -40(%rbp)
callq __now_time
movsd %xmm0, -64(%rbp)
movl $0, -44(%rbp)
LBB4_1: ## =>This Loop Header: Depth=1
## Child Loop BB4_3 Depth 2
## Child Loop BB4_5 Depth 3
movl -44(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB4_12
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movl $0, -48(%rbp)
LBB4_3: ## Parent Loop BB4_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB4_5 Depth 3
movl -48(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB4_10
## %bb.4: ## in Loop: Header=BB4_3 Depth=2
movl $0, -52(%rbp)
LBB4_5: ## Parent Loop BB4_1 Depth=1
## Parent Loop BB4_3 Depth=2
## => This Inner Loop Header: Depth=3
movl -52(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB4_8
## %bb.6: ## in Loop: Header=BB4_5 Depth=3
movq -24(%rbp), %rax
movl -44(%rbp), %ecx
imull -8(%rbp), %ecx
addl -52(%rbp), %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -32(%rbp), %rax
movl -52(%rbp), %ecx
imull -12(%rbp), %ecx
addl -48(%rbp), %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movq -40(%rbp), %rax
movl -44(%rbp), %ecx
imull -12(%rbp), %ecx
addl -48(%rbp), %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movd %xmm0, %edx
xorl $2147483648, %edx ## imm = 0x80000000
movd %edx, %xmm0
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, (%rax,%rcx,4)
## %bb.7: ## in Loop: Header=BB4_5 Depth=3
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB4_5
LBB4_8: ## in Loop: Header=BB4_3 Depth=2
jmp LBB4_9
LBB4_9: ## in Loop: Header=BB4_3 Depth=2
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
jmp LBB4_3
LBB4_10: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_11
LBB4_11: ## in Loop: Header=BB4_1 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB4_1
LBB4_12:
callq __now_time
movsd %xmm0, -72(%rbp)
movl -4(%rbp), %esi
movl -8(%rbp), %edx
movl -12(%rbp), %ecx
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
subsd -64(%rbp), %xmm0
movsd LCPI4_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
leaq L_.str.3(%rip), %rdi
movb $1, %al
callq _printf
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function main
LCPI5_0:
.long 0x3f800000 ## float 1
.section __TEXT,__literal8,8byte_literals
.p2align 3
LCPI5_1:
.quad 0xbff0000000000000 ## double -1
LCPI5_2:
.quad 0x40c81cd6e631f8a1 ## double 12345.678900000001
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $96, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $1, -8(%rbp)
jle LBB5_2
## %bb.1:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $10, %edx
callq _strtol
movq %rax, -80(%rbp) ## 8-byte Spill
jmp LBB5_3
LBB5_2:
movl $64, %eax
movq %rax, -80(%rbp) ## 8-byte Spill
jmp LBB5_3
LBB5_3:
movq -80(%rbp), %rax ## 8-byte Reload
## kill: def $eax killed $eax killed $rax
movl %eax, -32(%rbp)
cmpl $2, -8(%rbp)
jle LBB5_5
## %bb.4:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $10, %edx
callq _strtol
movq %rax, -88(%rbp) ## 8-byte Spill
jmp LBB5_6
LBB5_5:
movl $64, %eax
movq %rax, -88(%rbp) ## 8-byte Spill
jmp LBB5_6
LBB5_6:
movq -88(%rbp), %rax ## 8-byte Reload
## kill: def $eax killed $eax killed $rax
movl %eax, -36(%rbp)
cmpl $3, -8(%rbp)
jle LBB5_8
## %bb.7:
movq -16(%rbp), %rax
movq 24(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $10, %edx
callq _strtol
movq %rax, -96(%rbp) ## 8-byte Spill
jmp LBB5_9
LBB5_8:
movl $64, %eax
movq %rax, -96(%rbp) ## 8-byte Spill
jmp LBB5_9
LBB5_9:
movq -96(%rbp), %rax ## 8-byte Reload
## kill: def $eax killed $eax killed $rax
movl %eax, -40(%rbp)
movl -32(%rbp), %eax
imull -36(%rbp), %eax
movslq %eax, %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -48(%rbp)
movl -36(%rbp), %eax
imull -40(%rbp), %eax
movslq %eax, %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -56(%rbp)
movl -32(%rbp), %eax
imull -40(%rbp), %eax
movslq %eax, %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -64(%rbp)
movl $0, -20(%rbp)
LBB5_10: ## =>This Loop Header: Depth=1
## Child Loop BB5_12 Depth 2
## Child Loop BB5_16 Depth 2
cmpl $64, -20(%rbp)
jge LBB5_21
## %bb.11: ## in Loop: Header=BB5_10 Depth=1
movl $0, -24(%rbp)
LBB5_12: ## Parent Loop BB5_10 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $64, -24(%rbp)
jge LBB5_15
## %bb.13: ## in Loop: Header=BB5_12 Depth=2
callq _rand
cvtsi2ss %eax, %xmm0
cvtss2sd %xmm0, %xmm0
movsd LCPI5_2(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -68(%rbp)
movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
addsd %xmm0, %xmm0
movsd LCPI5_1(%rip), %xmm1 ## xmm1 = mem[0],zero
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movl -20(%rbp), %eax
shll $6, %eax
addl -24(%rbp), %eax
movslq %eax, %rcx
leaq _A1D(%rip), %rax
movss %xmm0, (%rax,%rcx,4)
movslq -20(%rbp), %rcx
leaq _A2D(%rip), %rax
shlq $8, %rcx
addq %rcx, %rax
movslq -24(%rbp), %rcx
movss %xmm0, (%rax,%rcx,4)
## %bb.14: ## in Loop: Header=BB5_12 Depth=2
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB5_12
LBB5_15: ## in Loop: Header=BB5_10 Depth=1
movl $0, -28(%rbp)
LBB5_16: ## Parent Loop BB5_10 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $64, -28(%rbp)
jge LBB5_19
## %bb.17: ## in Loop: Header=BB5_16 Depth=2
movl -20(%rbp), %eax
shll $6, %eax
addl -28(%rbp), %eax
movslq %eax, %rcx
leaq _C1D(%rip), %rax
movss LCPI5_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, (%rax,%rcx,4)
movslq -20(%rbp), %rcx
leaq _C2D(%rip), %rax
shlq $8, %rcx
addq %rcx, %rax
movslq -28(%rbp), %rcx
movss LCPI5_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, (%rax,%rcx,4)
## %bb.18: ## in Loop: Header=BB5_16 Depth=2
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB5_16
LBB5_19: ## in Loop: Header=BB5_10 Depth=1
jmp LBB5_20
LBB5_20: ## in Loop: Header=BB5_10 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB5_10
LBB5_21:
movl $0, -24(%rbp)
LBB5_22: ## =>This Loop Header: Depth=1
## Child Loop BB5_24 Depth 2
cmpl $64, -24(%rbp)
jge LBB5_29
## %bb.23: ## in Loop: Header=BB5_22 Depth=1
movl $0, -28(%rbp)
LBB5_24: ## Parent Loop BB5_22 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $64, -28(%rbp)
jge LBB5_27
## %bb.25: ## in Loop: Header=BB5_24 Depth=2
movl -24(%rbp), %eax
shll $6, %eax
addl -28(%rbp), %eax
movslq %eax, %rcx
leaq _B1D(%rip), %rax
movss LCPI5_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, (%rax,%rcx,4)
movslq -24(%rbp), %rcx
leaq _B2D(%rip), %rax
shlq $8, %rcx
addq %rcx, %rax
movslq -28(%rbp), %rcx
movss LCPI5_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, (%rax,%rcx,4)
## %bb.26: ## in Loop: Header=BB5_24 Depth=2
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB5_24
LBB5_27: ## in Loop: Header=BB5_22 Depth=1
jmp LBB5_28
LBB5_28: ## in Loop: Header=BB5_22 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB5_22
LBB5_29:
movl $0, -20(%rbp)
LBB5_30: ## =>This Loop Header: Depth=1
## Child Loop BB5_32 Depth 2
## Child Loop BB5_36 Depth 2
movl -20(%rbp), %eax
cmpl -32(%rbp), %eax
jge LBB5_41
## %bb.31: ## in Loop: Header=BB5_30 Depth=1
movl $0, -24(%rbp)
LBB5_32: ## Parent Loop BB5_30 Depth=1
## => This Inner Loop Header: Depth=2
movl -24(%rbp), %eax
cmpl -36(%rbp), %eax
jge LBB5_35
## %bb.33: ## in Loop: Header=BB5_32 Depth=2
callq _rand
cvtsi2ss %eax, %xmm0
cvtss2sd %xmm0, %xmm0
movsd LCPI5_2(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -72(%rbp)
movss -72(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
addsd %xmm0, %xmm0
movsd LCPI5_1(%rip), %xmm1 ## xmm1 = mem[0],zero
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movq -48(%rbp), %rax
movl -20(%rbp), %ecx
imull -36(%rbp), %ecx
addl -24(%rbp), %ecx
movslq %ecx, %rcx
movss %xmm0, (%rax,%rcx,4)
## %bb.34: ## in Loop: Header=BB5_32 Depth=2
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB5_32
LBB5_35: ## in Loop: Header=BB5_30 Depth=1
movl $0, -28(%rbp)
LBB5_36: ## Parent Loop BB5_30 Depth=1
## => This Inner Loop Header: Depth=2
movl -28(%rbp), %eax
cmpl -40(%rbp), %eax
jge LBB5_39
## %bb.37: ## in Loop: Header=BB5_36 Depth=2
movq -64(%rbp), %rax
movl -20(%rbp), %ecx
imull -40(%rbp), %ecx
addl -28(%rbp), %ecx
movslq %ecx, %rcx
movss LCPI5_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, (%rax,%rcx,4)
## %bb.38: ## in Loop: Header=BB5_36 Depth=2
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB5_36
LBB5_39: ## in Loop: Header=BB5_30 Depth=1
jmp LBB5_40
LBB5_40: ## in Loop: Header=BB5_30 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB5_30
LBB5_41:
movl $0, -24(%rbp)
LBB5_42: ## =>This Loop Header: Depth=1
## Child Loop BB5_44 Depth 2
movl -24(%rbp), %eax
cmpl -36(%rbp), %eax
jge LBB5_49
## %bb.43: ## in Loop: Header=BB5_42 Depth=1
movl $0, -28(%rbp)
LBB5_44: ## Parent Loop BB5_42 Depth=1
## => This Inner Loop Header: Depth=2
movl -28(%rbp), %eax
cmpl -40(%rbp), %eax
jge LBB5_47
## %bb.45: ## in Loop: Header=BB5_44 Depth=2
movq -56(%rbp), %rax
movl -24(%rbp), %ecx
imull -40(%rbp), %ecx
addl -28(%rbp), %ecx
movslq %ecx, %rcx
movss LCPI5_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, (%rax,%rcx,4)
## %bb.46: ## in Loop: Header=BB5_44 Depth=2
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB5_44
LBB5_47: ## in Loop: Header=BB5_42 Depth=1
jmp LBB5_48
LBB5_48: ## in Loop: Header=BB5_42 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB5_42
LBB5_49:
movl -32(%rbp), %edi
movl -36(%rbp), %esi
movl -40(%rbp), %edx
movq -48(%rbp), %rcx
movq -56(%rbp), %r8
movq -64(%rbp), %r9
callq _dgemm2Df
movl -32(%rbp), %edi
movl -36(%rbp), %esi
movl -40(%rbp), %edx
movq -48(%rbp), %rcx
movq -56(%rbp), %r8
movq -64(%rbp), %r9
callq _dgemm2Df_restrict
callq _dgemm1D_static
callq _dgemm2D_static
movl -4(%rbp), %eax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_A2D,16384,4 ## @A2D
.zerofill __DATA,__bss,_B2D,16384,4 ## @B2D
.zerofill __DATA,__bss,_C2D,16384,4 ## @C2D
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "dgemm2D static (%d,%d,%d): %f\n"
.zerofill __DATA,__bss,_A1D,16384,4 ## @A1D
.zerofill __DATA,__bss,_B1D,16384,4 ## @B1D
.zerofill __DATA,__bss,_C1D,16384,4 ## @C1D
L_.str.1: ## @.str.1
.asciz "dgemm1D static (%d,%d,%d): %f\n"
L_.str.2: ## @.str.2
.asciz "dgemm2Df (%d,%d,%d): %f\n"
L_.str.3: ## @.str.3
.asciz "dgemm2Df restrict(%d,%d,%d): %f\n"
.subsections_via_symbols
| the_stack_data/125140524.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/11074312.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur wzr, [x29, #-12]
str wzr, [sp, #16]
str wzr, [sp, #12]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_13
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov x9, sp
add x8, sp, #11
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldrsb w8, [sp, #11]
subs w8, w8, #85
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #1
stur w8, [x29, #-12]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w9, [sp, #16]
mov w8, #1
add w9, w9, #1
str w9, [sp, #16]
str w8, [sp, #12]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_11
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #12]
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #1
stur w8, [x29, #-8]
b LBB0_1
LBB0_13:
ldr w9, [sp, #16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
l_.str.1: ; @.str.1
.asciz " %c"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl $0, -12(%rbp)
movl $0, -16(%rbp)
movl $0, -20(%rbp)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -8(%rbp)
jle LBB0_13
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.1(%rip), %rdi
leaq -21(%rbp), %rsi
movb $0, %al
callq _scanf
movsbl -21(%rbp), %eax
cmpl $85, %eax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $-1, %eax
movl %eax, -12(%rbp)
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -12(%rbp)
jge LBB0_8
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -20(%rbp)
jne LBB0_8
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
movl $1, -20(%rbp)
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -12(%rbp)
jl LBB0_11
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
cmpl $1, -20(%rbp)
jne LBB0_11
## %bb.10: ## in Loop: Header=BB0_1 Depth=1
movl $0, -20(%rbp)
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_12
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl $-1, %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_13:
movl -16(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
L_.str.1: ## @.str.1
.asciz " %c"
.subsections_via_symbols
| the_stack_data/175141856.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _polybench_flush_cache ; -- Begin function polybench_flush_cache
.p2align 2
_polybench_flush_cache: ; @polybench_flush_cache
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #1048576
stur w8, [x29, #-4]
ldursw x0, [x29, #-4]
mov x1, #8
bl _calloc
str x0, [sp, #16]
movi d0, #0000000000000000
str d0, [sp]
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
ldr d1, [x8, x9, lsl #3]
ldr d0, [sp]
fadd d0, d0, d1
str d0, [sp]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_1
LBB0_4:
ldr d0, [sp]
fmov d1, #10.00000000
fcmp d0, d1
cset w9, hi
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
adrp x0, l___func__.polybench_flush_cache@PAGE
add x0, x0, l___func__.polybench_flush_cache@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #52
adrp x3, l_.str.1@PAGE
add x3, x3, l_.str.1@PAGEOFF
bl ___assert_rtn
LBB0_6:
b LBB0_7
LBB0_7:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _polybench_prepare_instruments ; -- Begin function polybench_prepare_instruments
.p2align 2
_polybench_prepare_instruments: ; @polybench_prepare_instruments
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _polybench_flush_cache
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _polybench_timer_start ; -- Begin function polybench_timer_start
.p2align 2
_polybench_timer_start: ; @polybench_timer_start
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _polybench_prepare_instruments
bl _rtclock
adrp x8, _polybench_t_start@GOTPAGE
ldr x8, [x8, _polybench_t_start@GOTPAGEOFF]
str d0, [x8]
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _polybench_timer_stop ; -- Begin function polybench_timer_stop
.p2align 2
_polybench_timer_stop: ; @polybench_timer_stop
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _rtclock
adrp x8, _polybench_t_end@GOTPAGE
ldr x8, [x8, _polybench_t_end@GOTPAGEOFF]
str d0, [x8]
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _polybench_timer_print ; -- Begin function polybench_timer_print
.p2align 2
_polybench_timer_print: ; @polybench_timer_print
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _polybench_t_end@GOTPAGE
ldr x8, [x8, _polybench_t_end@GOTPAGEOFF]
ldr d0, [x8]
adrp x8, _polybench_t_start@GOTPAGE
ldr x8, [x8, _polybench_t_start@GOTPAGEOFF]
ldr d1, [x8]
fsub d0, d0, d1
mov x8, sp
str d0, [x8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function rtclock
lCPI5_0:
.quad 0x3eb0c6f7a0b5ed8d ; double 9.9999999999999995E-7
.section __TEXT,__text,regular,pure_instructions
.p2align 2
_rtclock: ; @rtclock
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
add x0, sp, #16
mov x1, #0
bl _gettimeofday
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
ldr w9, [sp, #12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB5_2
LBB5_2:
ldr d0, [sp, #16]
scvtf d2, d0
ldr s1, [sp, #24]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
adrp x8, lCPI5_0@PAGE
ldr d1, [x8, lCPI5_0@PAGEOFF]
fmadd d0, d0, d1, d2
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l___func__.polybench_flush_cache: ; @__func__.polybench_flush_cache
.asciz "polybench_flush_cache"
l_.str: ; @.str
.asciz "110590.c"
l_.str.1: ; @.str.1
.asciz "tmp <= 10.0"
.comm _polybench_t_start,8,3 ; @polybench_t_start
.comm _polybench_t_end,8,3 ; @polybench_t_end
l_.str.2: ; @.str.2
.asciz "%0.6lf\n"
l_.str.3: ; @.str.3
.asciz "Error return from gettimeofday: %d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function polybench_flush_cache
LCPI0_0:
.quad 0x4024000000000000 ## double 10
.section __TEXT,__text,regular,pure_instructions
.globl _polybench_flush_cache
.p2align 4, 0x90
_polybench_flush_cache: ## @polybench_flush_cache
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $1048576, -4(%rbp) ## imm = 0x100000
movslq -4(%rbp), %rdi
movl $8, %esi
callq _calloc
movq %rax, -16(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -32(%rbp)
movl $0, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
addsd -32(%rbp), %xmm0
movsd %xmm0, -32(%rbp)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_1
LBB0_4:
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
ucomisd -32(%rbp), %xmm0
setae %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_6
## %bb.5:
leaq L___func__.polybench_flush_cache(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rcx
movl $52, %edx
callq ___assert_rtn
LBB0_6:
jmp LBB0_7
LBB0_7:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _polybench_prepare_instruments ## -- Begin function polybench_prepare_instruments
.p2align 4, 0x90
_polybench_prepare_instruments: ## @polybench_prepare_instruments
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _polybench_flush_cache
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _polybench_timer_start ## -- Begin function polybench_timer_start
.p2align 4, 0x90
_polybench_timer_start: ## @polybench_timer_start
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _polybench_prepare_instruments
callq _rtclock
movq _polybench_t_start@GOTPCREL(%rip), %rax
movsd %xmm0, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _polybench_timer_stop ## -- Begin function polybench_timer_stop
.p2align 4, 0x90
_polybench_timer_stop: ## @polybench_timer_stop
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _rtclock
movq _polybench_t_end@GOTPCREL(%rip), %rax
movsd %xmm0, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _polybench_timer_print ## -- Begin function polybench_timer_print
.p2align 4, 0x90
_polybench_timer_print: ## @polybench_timer_print
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _polybench_t_end@GOTPCREL(%rip), %rax
movsd (%rax), %xmm0 ## xmm0 = mem[0],zero
movq _polybench_t_start@GOTPCREL(%rip), %rax
subsd (%rax), %xmm0
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function rtclock
LCPI5_0:
.quad 0x3eb0c6f7a0b5ed8d ## double 9.9999999999999995E-7
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_rtclock: ## @rtclock
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
leaq -16(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _gettimeofday
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
je LBB5_2
## %bb.1:
movl -20(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
LBB5_2:
cvtsi2sdq -16(%rbp), %xmm1
cvtsi2sdl -8(%rbp), %xmm0
movsd LCPI5_0(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L___func__.polybench_flush_cache: ## @__func__.polybench_flush_cache
.asciz "polybench_flush_cache"
L_.str: ## @.str
.asciz "110590.c"
L_.str.1: ## @.str.1
.asciz "tmp <= 10.0"
.comm _polybench_t_start,8,3 ## @polybench_t_start
.comm _polybench_t_end,8,3 ## @polybench_t_end
L_.str.2: ## @.str.2
.asciz "%0.6lf\n"
L_.str.3: ## @.str.3
.asciz "Error return from gettimeofday: %d"
.subsections_via_symbols
| the_stack_data/110590.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/2075.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _print_trace ; -- Begin function print_trace
.p2align 2
_print_trace: ; @print_trace
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
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
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
add x0, sp, #40
str x0, [sp, #8] ; 8-byte Folded Spill
mov w1, #10
bl _backtrace
mov x9, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
str x8, [sp, #32]
ldr x8, [sp, #32]
mov x1, x8
bl _backtrace_symbols
str x0, [sp, #24]
ldr x8, [sp, #32]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
str xzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldr x9, [sp, #32]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldr x9, [sp, #16]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_1
LBB0_4:
ldr x0, [sp, #24]
bl _free
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
bl ___stack_chk_fail
LBB0_6:
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
add sp, sp, #144
ret
.cfi_endproc
; -- End function
.globl _dummy_function ; -- Begin function dummy_function
.p2align 2
_dummy_function: ; @dummy_function
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _print_trace
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #8] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
bl _dummy_function
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Obtained %zd stack frames.\n"
l_.str.1: ; @.str.1
.asciz "%s\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _print_trace ## -- Begin function print_trace
.p2align 4, 0x90
_print_trace: ## @print_trace
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq -96(%rbp), %rdi
movl $10, %esi
callq _backtrace
cltq
movq %rax, -104(%rbp)
leaq -96(%rbp), %rdi
movq -104(%rbp), %rax
movl %eax, %esi
callq _backtrace_symbols
movq %rax, -112(%rbp)
movq -104(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq $0, -120(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -120(%rbp), %rax
cmpq -104(%rbp), %rax
jae LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -112(%rbp), %rax
movq -120(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -120(%rbp), %rax
addq $1, %rax
movq %rax, -120(%rbp)
jmp LBB0_1
LBB0_4:
movq -112(%rbp), %rdi
callq _free
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_6
## %bb.5:
addq $128, %rsp
popq %rbp
retq
LBB0_6:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _dummy_function ## -- Begin function dummy_function
.p2align 4, 0x90
_dummy_function: ## @dummy_function
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _print_trace
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
callq _dummy_function
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Obtained %zd stack frames.\n"
L_.str.1: ## @.str.1
.asciz "%s\n"
.subsections_via_symbols
| the_stack_data/90766828.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vdlopen ; -- Begin function vdlopen
.p2align 2
_vdlopen: ; @vdlopen
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
ldur x0, [x29, #-8]
mov w1, #1
bl _dlopen
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-8]
str x8, [sp, #16] ; 8-byte Folded Spill
bl _dlerror
ldr x9, [sp, #16] ; 8-byte Folded Reload
mov x8, sp
str x9, [x8]
str x0, [x8, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w0, #1
bl _exit
LBB0_2:
ldur x8, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_3
LBB0_3:
ldr x0, [sp, #24]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _vdlsym ; -- Begin function vdlsym
.p2align 2
_vdlsym: ; @vdlsym
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
bl _dlsym
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldur x8, [x29, #-16]
str x8, [sp, #16] ; 8-byte Folded Spill
bl _dlerror
ldr x9, [sp, #16] ; 8-byte Folded Reload
mov x8, sp
str x9, [x8]
str x0, [x8, #8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov w0, #1
bl _exit
LBB1_2:
ldur x8, [x29, #-16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB1_3
LBB1_3:
ldr x0, [sp, #24]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _vdlclose ; -- Begin function vdlclose
.p2align 2
_vdlclose: ; @vdlclose
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x0, [x29, #-8]
bl _dlclose
stur w0, [x29, #-12]
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #24] ; 8-byte Folded Spill
bl _dlerror
ldr x9, [sp, #24] ; 8-byte Folded Reload
mov x8, sp
str x9, [x8]
str x0, [x8, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov w0, #1
bl _exit
LBB2_2:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB2_3
LBB2_3:
ldur w0, [x29, #-12]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI3_0:
.quad 0x4066800000000000 ; double 180
lCPI3_1:
.quad 0x400921fafc8b007a ; double 3.1415920000000002
lCPI3_2:
.quad 0x404e000000000000 ; double 60
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp 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
mov w8, #0
str w8, [sp, #20] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x8, lCPI3_2@PAGE
ldr d0, [x8, lCPI3_2@PAGEOFF]
stur d0, [x29, #-16]
adrp x8, l_.str.6@PAGE
add x8, x8, l_.str.6@PAGEOFF
stur x8, [x29, #-32]
adrp x8, l_.str.7@PAGE
add x8, x8, l_.str.7@PAGEOFF
str x8, [sp, #40]
ldur x0, [x29, #-32]
mov w1, #1
bl _vdlopen
str x0, [sp, #32]
ldr x0, [sp, #32]
ldr x1, [sp, #40]
bl _vdlsym
str x0, [sp, #24]
ldr x8, [sp, #24]
ldur d0, [x29, #-16]
adrp x9, lCPI3_1@PAGE
ldr d1, [x9, lCPI3_1@PAGEOFF]
fmul d0, d0, d1
adrp x9, lCPI3_0@PAGE
ldr d1, [x9, lCPI3_0@PAGEOFF]
fdiv d0, d0, d1
blr x8
stur d0, [x29, #-24]
ldur d1, [x29, #-16]
ldur d0, [x29, #-24]
mov x8, sp
str d1, [x8]
str d0, [x8, #8]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
ldr x0, [sp, #32]
bl _vdlclose
ldr w0, [sp, #20] ; 4-byte Folded Reload
bl _exit
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Load %s library, error: %s\n"
l_.str.1: ; @.str.1
.asciz "Load %s library, success!\n"
l_.str.2: ; @.str.2
.asciz "Load %s symbol, error: %s\n"
l_.str.3: ; @.str.3
.asciz "Load %s symbol, success!\n"
l_.str.4: ; @.str.4
.asciz "Unload error %i: %s\n"
l_.str.5: ; @.str.5
.asciz "Unload, success!\n"
l_.str.6: ; @.str.6
.asciz "libm.so"
l_.str.7: ; @.str.7
.asciz "sin"
l_.str.8: ; @.str.8
.asciz "angle = %f degree, sin(angle) = %f\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vdlopen ## -- Begin function vdlopen
.p2align 4, 0x90
_vdlopen: ## @vdlopen
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq -8(%rbp), %rdi
movl $1, %esi
callq _dlopen
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_2
## %bb.1:
movq -8(%rbp), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
callq _dlerror
movq -32(%rbp), %rsi ## 8-byte Reload
movq %rax, %rdx
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $1, %edi
callq _exit
LBB0_2:
movq -8(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3:
movq -24(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _vdlsym ## -- Begin function vdlsym
.p2align 4, 0x90
_vdlsym: ## @vdlsym
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _dlsym
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB1_2
## %bb.1:
movq -16(%rbp), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
callq _dlerror
movq -32(%rbp), %rsi ## 8-byte Reload
movq %rax, %rdx
leaq L_.str.2(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $1, %edi
callq _exit
LBB1_2:
movq -16(%rbp), %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3:
movq -24(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _vdlclose ## -- Begin function vdlclose
.p2align 4, 0x90
_vdlclose: ## @vdlclose
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
callq _dlclose
movl %eax, -12(%rbp)
cmpl $0, -12(%rbp)
je LBB2_2
## %bb.1:
movl -12(%rbp), %eax
movl %eax, -16(%rbp) ## 4-byte Spill
callq _dlerror
movl -16(%rbp), %esi ## 4-byte Reload
movq %rax, %rdx
leaq L_.str.4(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $1, %edi
callq _exit
LBB2_2:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3:
movl -12(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI3_0:
.quad 0x400921fafc8b007a ## double 3.1415920000000002
LCPI3_1:
.quad 0x4066800000000000 ## double 180
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl $0, -4(%rbp)
movabsq $4633641066610819072, %rax ## imm = 0x404E000000000000
movq %rax, -16(%rbp)
leaq L_.str.6(%rip), %rax
movq %rax, -32(%rbp)
leaq L_.str.7(%rip), %rax
movq %rax, -40(%rbp)
movq -32(%rbp), %rdi
movl $1, %esi
callq _vdlopen
movq %rax, -48(%rbp)
movq -48(%rbp), %rdi
movq -40(%rbp), %rsi
callq _vdlsym
movq %rax, -56(%rbp)
movq -56(%rbp), %rax
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI3_0(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
movsd LCPI3_1(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
callq *%rax
movsd %xmm0, -24(%rbp)
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero
leaq L_.str.8(%rip), %rdi
movb $2, %al
callq _printf
movq -48(%rbp), %rdi
callq _vdlclose
xorl %edi, %edi
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Load %s library, error: %s\n"
L_.str.1: ## @.str.1
.asciz "Load %s library, success!\n"
L_.str.2: ## @.str.2
.asciz "Load %s symbol, error: %s\n"
L_.str.3: ## @.str.3
.asciz "Load %s symbol, success!\n"
L_.str.4: ## @.str.4
.asciz "Unload error %i: %s\n"
L_.str.5: ## @.str.5
.asciz "Unload, success!\n"
L_.str.6: ## @.str.6
.asciz "libm.so"
L_.str.7: ## @.str.7
.asciz "sin"
L_.str.8: ## @.str.8
.asciz "angle = %f degree, sin(angle) = %f\n"
.subsections_via_symbols
| the_stack_data/147848.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/611260.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/168893839.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _keepItStatic ; -- Begin function keepItStatic
.p2align 2
_keepItStatic: ; @keepItStatic
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w9, [sp, #12]
adrp x8, _keepItStatic.y@PAGE
ldr w10, [x8, _keepItStatic.y@PAGEOFF]
add w9, w9, w10
str w9, [x8, _keepItStatic.y@PAGEOFF]
ldr w0, [x8, _keepItStatic.y@PAGEOFF]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
stur wzr, [x29, #-20]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldur w0, [x29, #-20]
bl _keepItStatic
str w0, [sp, #24]
ldur w8, [x29, #-20]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #24]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB1_1
LBB1_4:
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_keepItStatic.y,4,2 ; @keepItStatic.y
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "[%d] result: %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _keepItStatic ## -- Begin function keepItStatic
.p2align 4, 0x90
_keepItStatic: ## @keepItStatic
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl -4(%rbp), %eax
addl _keepItStatic.y(%rip), %eax
movl %eax, _keepItStatic.y(%rip)
movl _keepItStatic.y(%rip), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $0, -20(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $5, -20(%rbp)
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -20(%rbp), %edi
callq _keepItStatic
movl %eax, -24(%rbp)
movl -20(%rbp), %esi
movl -24(%rbp), %edx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB1_1
LBB1_4:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_keepItStatic.y,4,2 ## @keepItStatic.y
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "[%d] result: %d\n"
.subsections_via_symbols
| the_stack_data/107312.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/6200.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/20450883.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _doSomething ; -- Begin function doSomething
.p2align 2
_doSomething: ; @doSomething
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
ldr x8, [sp, #16]
str x8, [sp, #8]
ldr x8, [sp, #8]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr x9, [sp, #8]
mov w8, #200
str w8, [x9]
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub x3, x29, #12
mov w8, #100
stur w8, [x29, #-12]
sub x0, x29, #8
mov x1, #0
str x1, [sp, #8] ; 8-byte Folded Spill
adrp x2, _doSomething@PAGE
add x2, x2, _doSomething@PAGEOFF
bl _pthread_create
ldr x1, [sp, #8] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
bl _pthread_join
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "worker thread [%d]\n"
l_.str.1: ; @.str.1
.asciz "main thread [%d]\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _doSomething ## -- Begin function doSomething
.p2align 4, 0x90
_doSomething: ## @doSomething
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movl (%rax), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq -24(%rbp), %rax
movl $200, (%rax)
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $100, -12(%rbp)
leaq -12(%rbp), %rcx
leaq -8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq _doSomething(%rip), %rdx
callq _pthread_create
movq -8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_join
movl -12(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "worker thread [%d]\n"
L_.str.1: ## @.str.1
.asciz "main thread [%d]\n"
.subsections_via_symbols
| the_stack_data/73575499.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/50138302.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _Foo ; -- Begin function Foo
.p2align 2
_Foo: ; @Foo
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
stur w1, [x29, #-8]
stur w2, [x29, #-12]
stur w3, [x29, #-16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur w0, [x29, #-4]
bl _Bar
ldur w8, [x29, #-4]
; implicit-def: $x12
mov x12, x8
ldur w8, [x29, #-8]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-12]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x12, [x9]
str x11, [x9, #8]
str x10, [x9, #16]
str x8, [x9, #24]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #8] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov w0, #12
mov w1, #345
mov w2, #678
mov w3, #90
bl _Foo
mov w0, #11
mov w1, #22
mov w2, #33
mov w3, #44
bl _Foo
mov w0, #99
mov w1, #88
mov w2, #77
mov w3, #66
bl _Foo
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Foo: calling Bar...\n"
l_.str.1: ; @.str.1
.asciz "Foo: %d, %d, %d, %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _Foo ## -- Begin function Foo
.p2align 4, 0x90
_Foo: ## @Foo
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl %edx, -12(%rbp)
movl %ecx, -16(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %edi
callq _Bar
movl -4(%rbp), %esi
movl -8(%rbp), %edx
movl -12(%rbp), %ecx
movl -16(%rbp), %r8d
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $12, %edi
movl $345, %esi ## imm = 0x159
movl $678, %edx ## imm = 0x2A6
movl $90, %ecx
callq _Foo
movl $11, %edi
movl $22, %esi
movl $33, %edx
movl $44, %ecx
callq _Foo
movl $99, %edi
movl $88, %esi
movl $77, %edx
movl $66, %ecx
callq _Foo
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Foo: calling Bar...\n"
L_.str.1: ## @.str.1
.asciz "Foo: %d, %d, %d, %d\n"
.subsections_via_symbols
| the_stack_data/13754.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #8] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Hello World!"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Hello World!"
.subsections_via_symbols
| the_stack_data/43279.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/383260.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI0_0:
.quad 0xc037666666666666 ; double -23.399999999999999
lCPI0_1:
.quad 0xc044400000000000 ; double -40.5
lCPI0_2:
.quad 0x4035e66666666666 ; double 21.899999999999999
lCPI0_3:
.quad 0x403ab33333333333 ; double 26.699999999999999
lCPI0_4:
.quad 0x4044400000000000 ; double 40.5
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
mov w1, #0
str w1, [sp, #12] ; 4-byte Folded Spill
str wzr, [sp, #36]
add x0, sp, #40
str x0, [sp, #16] ; 8-byte Folded Spill
mov x2, #48
bl _memset
ldr x0, [sp, #16] ; 8-byte Folded Reload
adrp x8, lCPI0_4@PAGE
ldr d0, [x8, lCPI0_4@PAGEOFF]
str d0, [sp, #40]
adrp x8, lCPI0_3@PAGE
ldr d0, [x8, lCPI0_3@PAGEOFF]
str d0, [sp, #48]
adrp x8, lCPI0_2@PAGE
ldr d0, [x8, lCPI0_2@PAGEOFF]
str d0, [sp, #56]
fmov d0, #1.50000000
str d0, [sp, #64]
adrp x8, lCPI0_1@PAGE
ldr d0, [x8, lCPI0_1@PAGEOFF]
str d0, [sp, #72]
adrp x8, lCPI0_0@PAGE
ldr d0, [x8, lCPI0_0@PAGEOFF]
str d0, [sp, #80]
mov w1, #6
bl _sum
mov x8, sp
str d0, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
str x0, [sp, #24] ; 8-byte Folded Spill
bl _printf
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov w1, #2
bl _sum
ldr x0, [sp, #24] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
bl _printf
ldr w1, [sp, #12] ; 4-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _sum
ldr x0, [sp, #24] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
bl _printf
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov w1, #3
bl _sum
ldr x0, [sp, #24] ; 8-byte Folded Reload
mov x8, sp
str d0, [x8]
bl _printf
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl ___stack_chk_fail
LBB0_2:
mov w0, #0
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%20.7f\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI0_0:
.quad 0xc037666666666666 ## double -23.399999999999999
LCPI0_1:
.quad 0xc044400000000000 ## double -40.5
LCPI0_2:
.quad 0x3ff8000000000000 ## double 1.5
LCPI0_3:
.quad 0x4035e66666666666 ## double 21.899999999999999
LCPI0_4:
.quad 0x403ab33333333333 ## double 26.699999999999999
LCPI0_5:
.quad 0x4044400000000000 ## double 40.5
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -68(%rbp)
leaq -64(%rbp), %rdi
xorl %esi, %esi
movl $48, %edx
callq _memset
movsd LCPI0_5(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -64(%rbp)
movsd LCPI0_4(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -56(%rbp)
movsd LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -48(%rbp)
movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -40(%rbp)
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -32(%rbp)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -24(%rbp)
leaq -64(%rbp), %rdi
movl $6, %esi
callq _sum
leaq L_.str(%rip), %rdi
movb $1, %al
callq _printf
leaq -64(%rbp), %rdi
movl $2, %esi
callq _sum
leaq L_.str(%rip), %rdi
movb $1, %al
callq _printf
leaq -64(%rbp), %rdi
xorl %esi, %esi
callq _sum
leaq L_.str(%rip), %rdi
movb $1, %al
callq _printf
leaq -64(%rbp), %rdi
movl $3, %esi
callq _sum
leaq L_.str(%rip), %rdi
movb $1, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_2
## %bb.1:
xorl %eax, %eax
addq $80, %rsp
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%20.7f\n"
.subsections_via_symbols
| the_stack_data/220454412.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/86074531.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur wzr, [x29, #-8]
stur wzr, [x29, #-12]
stur wzr, [x29, #-16]
stur wzr, [x29, #-20]
str wzr, [sp, #24]
str wzr, [sp, #20]
str wzr, [sp, #16]
mov x9, sp
add x8, sp, #12
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #12]
str w8, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #100
cset w8, lt
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #100
str w8, [sp, #12]
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB0_1
LBB0_3:
b LBB0_4
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #50
cset w8, lt
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #50
str w8, [sp, #12]
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_4
LBB0_6:
b LBB0_7
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #20
cset w8, lt
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #20
str w8, [sp, #12]
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB0_7
LBB0_9:
b LBB0_10
LBB0_10: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #10
cset w8, lt
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_10 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #10
str w8, [sp, #12]
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_10
LBB0_12:
b LBB0_13
LBB0_13: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #5
cset w8, lt
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #5
str w8, [sp, #12]
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_13
LBB0_15:
b LBB0_16
LBB0_16: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #2
cset w8, lt
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_16 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #2
str w8, [sp, #12]
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_16
LBB0_18:
b LBB0_19
LBB0_19: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #1
cset w8, lt
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_19 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #1
str w8, [sp, #12]
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_19
LBB0_21:
ldr w9, [sp, #8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldur w9, [x29, #-16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldur w9, [x29, #-20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldr w9, [sp, #24]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
ldr w9, [sp, #20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
ldr w9, [sp, #16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%i"
l_.str.1: ; @.str.1
.asciz "%i\n"
l_.str.2: ; @.str.2
.asciz "%i nota(s) de R$ 100,00\n"
l_.str.3: ; @.str.3
.asciz "%i nota(s) de R$ 50,00\n"
l_.str.4: ; @.str.4
.asciz "%i nota(s) de R$ 20,00\n"
l_.str.5: ; @.str.5
.asciz "%i nota(s) de R$ 10,00\n"
l_.str.6: ; @.str.6
.asciz "%i nota(s) de R$ 5,00\n"
l_.str.7: ; @.str.7
.asciz "%i nota(s) de R$ 2,00\n"
l_.str.8: ; @.str.8
.asciz "%i nota(s) de R$ 1,00\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
movl $0, -8(%rbp)
movl $0, -12(%rbp)
movl $0, -16(%rbp)
movl $0, -20(%rbp)
movl $0, -24(%rbp)
movl $0, -28(%rbp)
movl $0, -32(%rbp)
leaq L_.str(%rip), %rdi
leaq -36(%rbp), %rsi
movb $0, %al
callq _scanf
movl -36(%rbp), %eax
movl %eax, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $100, -36(%rbp)
jl LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -36(%rbp), %eax
subl $100, %eax
movl %eax, -36(%rbp)
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_3:
jmp LBB0_4
LBB0_4: ## =>This Inner Loop Header: Depth=1
cmpl $50, -36(%rbp)
jl LBB0_6
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movl -36(%rbp), %eax
subl $50, %eax
movl %eax, -36(%rbp)
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_4
LBB0_6:
jmp LBB0_7
LBB0_7: ## =>This Inner Loop Header: Depth=1
cmpl $20, -36(%rbp)
jl LBB0_9
## %bb.8: ## in Loop: Header=BB0_7 Depth=1
movl -36(%rbp), %eax
subl $20, %eax
movl %eax, -36(%rbp)
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_7
LBB0_9:
jmp LBB0_10
LBB0_10: ## =>This Inner Loop Header: Depth=1
cmpl $10, -36(%rbp)
jl LBB0_12
## %bb.11: ## in Loop: Header=BB0_10 Depth=1
movl -36(%rbp), %eax
subl $10, %eax
movl %eax, -36(%rbp)
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_10
LBB0_12:
jmp LBB0_13
LBB0_13: ## =>This Inner Loop Header: Depth=1
cmpl $5, -36(%rbp)
jl LBB0_15
## %bb.14: ## in Loop: Header=BB0_13 Depth=1
movl -36(%rbp), %eax
subl $5, %eax
movl %eax, -36(%rbp)
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB0_13
LBB0_15:
jmp LBB0_16
LBB0_16: ## =>This Inner Loop Header: Depth=1
cmpl $2, -36(%rbp)
jl LBB0_18
## %bb.17: ## in Loop: Header=BB0_16 Depth=1
movl -36(%rbp), %eax
subl $2, %eax
movl %eax, -36(%rbp)
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_16
LBB0_18:
jmp LBB0_19
LBB0_19: ## =>This Inner Loop Header: Depth=1
cmpl $1, -36(%rbp)
jl LBB0_21
## %bb.20: ## in Loop: Header=BB0_19 Depth=1
movl -36(%rbp), %eax
subl $1, %eax
movl %eax, -36(%rbp)
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB0_19
LBB0_21:
movl -40(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl -12(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl -16(%rbp), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movl -20(%rbp), %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movl -24(%rbp), %esi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
movl -28(%rbp), %esi
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
movl -32(%rbp), %esi
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%i"
L_.str.1: ## @.str.1
.asciz "%i\n"
L_.str.2: ## @.str.2
.asciz "%i nota(s) de R$ 100,00\n"
L_.str.3: ## @.str.3
.asciz "%i nota(s) de R$ 50,00\n"
L_.str.4: ## @.str.4
.asciz "%i nota(s) de R$ 20,00\n"
L_.str.5: ## @.str.5
.asciz "%i nota(s) de R$ 10,00\n"
L_.str.6: ## @.str.6
.asciz "%i nota(s) de R$ 5,00\n"
L_.str.7: ## @.str.7
.asciz "%i nota(s) de R$ 2,00\n"
L_.str.8: ## @.str.8
.asciz "%i nota(s) de R$ 1,00\n"
.subsections_via_symbols
| the_stack_data/1240852.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mul8_227 ; -- Begin function mul8_227
.p2align 2
_mul8_227: ; @mul8_227
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
add x8, sp, #140
strb w0, [sp, #143]
strb w1, [sp, #142]
strh wzr, [x8]
ldrb w9, [sp, #143]
asr w9, w9, #1
and w9, w9, #0x1
strb w9, [sp, #139]
ldrb w9, [sp, #143]
asr w9, w9, #2
and w9, w9, #0x1
strb w9, [sp, #138]
ldrb w9, [sp, #143]
asr w9, w9, #3
and w9, w9, #0x1
strb w9, [sp, #137]
ldrb w9, [sp, #143]
asr w9, w9, #4
and w9, w9, #0x1
strb w9, [sp, #136]
ldrb w9, [sp, #143]
asr w9, w9, #5
and w9, w9, #0x1
strb w9, [sp, #135]
ldrb w9, [sp, #143]
asr w9, w9, #6
and w9, w9, #0x1
strb w9, [sp, #134]
ldrb w9, [sp, #143]
asr w9, w9, #7
and w9, w9, #0x1
strb w9, [sp, #133]
ldrb w9, [sp, #142]
asr w9, w9, #0
and w9, w9, #0x1
strb w9, [sp, #132]
ldrb w9, [sp, #142]
asr w9, w9, #1
and w9, w9, #0x1
strb w9, [sp, #131]
ldrb w9, [sp, #142]
asr w9, w9, #2
and w9, w9, #0x1
strb w9, [sp, #130]
ldrb w9, [sp, #142]
asr w9, w9, #3
and w9, w9, #0x1
strb w9, [sp, #129]
ldrb w9, [sp, #142]
asr w9, w9, #4
and w9, w9, #0x1
strb w9, [sp, #128]
ldrb w9, [sp, #142]
asr w9, w9, #5
and w9, w9, #0x1
strb w9, [sp, #127]
ldrb w9, [sp, #142]
asr w9, w9, #6
and w9, w9, #0x1
strb w9, [sp, #126]
ldrb w9, [sp, #142]
asr w9, w9, #7
and w9, w9, #0x1
strb w9, [sp, #125]
ldrb w9, [sp, #131]
ldrb w10, [sp, #133]
and w9, w9, w10
strb w9, [sp, #124]
ldrb w9, [sp, #131]
ldrb w10, [sp, #133]
and w9, w9, w10
strb w9, [sp, #123]
ldrb w9, [sp, #132]
ldrb w10, [sp, #124]
and w9, w9, w10
ldrb w10, [sp, #131]
and w9, w9, w10
mvn w9, w9
strb w9, [sp, #122]
ldrb w9, [sp, #132]
ldrb w10, [sp, #124]
and w9, w9, w10
ldrb w10, [sp, #131]
and w9, w9, w10
mvn w9, w9
strb w9, [sp, #121]
ldrb w9, [sp, #137]
ldrb w10, [sp, #122]
orr w9, w9, w10
ldrb w10, [sp, #133]
orr w9, w9, w10
mvn w9, w9
strb w9, [sp, #120]
ldrb w9, [sp, #139]
ldrb w10, [sp, #120]
and w9, w9, w10
mvn w9, w9
strb w9, [sp, #119]
ldrb w9, [sp, #119]
mvn w9, w9
strb w9, [sp, #118]
ldrb w9, [sp, #129]
ldrb w10, [sp, #120]
and w9, w9, w10
strb w9, [sp, #117]
ldrb w9, [sp, #139]
ldrb w10, [sp, #134]
and w9, w9, w10
mvn w9, w9
strb w9, [sp, #116]
ldrb w9, [sp, #118]
ldrb w10, [sp, #120]
orr w9, w9, w10
strb w9, [sp, #115]
ldrb w9, [sp, #116]
strb w9, [sp, #114]
ldrb w9, [sp, #115]
strb w9, [sp, #113]
ldrb w9, [sp, #119]
strb w9, [sp, #112]
ldrb w9, [sp, #114]
ldrb w10, [sp, #134]
orr w9, w9, w10
mvn w9, w9
strb w9, [sp, #111]
ldrb w9, [sp, #112]
strb w9, [sp, #110]
ldrb w9, [sp, #113]
ldrb w10, [sp, #124]
and w9, w9, w10
strb w9, [sp, #109]
ldrb w9, [sp, #113]
ldrb w10, [sp, #124]
and w9, w9, w10
strb w9, [sp, #108]
ldrb w9, [sp, #117]
ldrb w10, [sp, #132]
and w9, w9, w10
strb w9, [sp, #107]
ldrb w9, [sp, #117]
ldrb w10, [sp, #132]
and w9, w9, w10
strb w9, [sp, #106]
ldrb w9, [sp, #121]
mvn w9, w9
strb w9, [sp, #105]
ldrb w9, [sp, #111]
mvn w9, w9
strb w9, [sp, #104]
ldrb w9, [sp, #135]
ldrb w10, [sp, #130]
and w9, w9, w10
strb w9, [sp, #103]
ldrb w9, [sp, #134]
ldrb w10, [sp, #130]
and w9, w9, w10
strb w9, [sp, #102]
ldrb w9, [sp, #133]
ldrb w10, [sp, #130]
and w9, w9, w10
strb w9, [sp, #101]
ldrb w9, [sp, #108]
ldrb w10, [sp, #104]
and w9, w9, w10
strb w9, [sp, #100]
ldrb w9, [sp, #109]
ldrb w10, [sp, #103]
orr w9, w9, w10
strb w9, [sp, #99]
ldrb w9, [sp, #107]
ldrb w10, [sp, #102]
orr w9, w9, w10
strb w9, [sp, #98]
ldrb w9, [sp, #106]
ldrb w10, [sp, #101]
eor w9, w9, w10
strb w9, [sp, #97]
ldrb w9, [sp, #106]
ldrb w10, [sp, #101]
and w9, w9, w10
strb w9, [sp, #96]
ldrb w9, [sp, #137]
ldrb w10, [sp, #129]
and w9, w9, w10
strb w9, [sp, #95]
ldrb w9, [sp, #136]
ldrb w10, [sp, #129]
and w9, w9, w10
strb w9, [sp, #94]
ldrb w9, [sp, #135]
ldrb w10, [sp, #129]
and w9, w9, w10
strb w9, [sp, #93]
ldrb w9, [sp, #134]
ldrb w10, [sp, #129]
and w9, w9, w10
strb w9, [sp, #92]
ldrb w9, [sp, #133]
ldrb w10, [sp, #129]
and w9, w9, w10
strb w9, [sp, #91]
ldrb w9, [sp, #99]
ldrb w10, [sp, #94]
orr w9, w9, w10
strb w9, [sp, #90]
ldrb w9, [sp, #98]
ldrb w10, [sp, #93]
orr w9, w9, w10
strb w9, [sp, #89]
ldrb w9, [sp, #97]
ldrb w10, [sp, #92]
eor w9, w9, w10
strb w9, [sp, #88]
ldrb w9, [sp, #97]
ldrb w10, [sp, #92]
and w9, w9, w10
strb w9, [sp, #87]
ldrb w9, [sp, #96]
ldrb w10, [sp, #91]
eor w9, w9, w10
ldrb w10, [sp, #87]
eor w9, w9, w10
strb w9, [sp, #86]
ldrb w9, [sp, #96]
ldrb w10, [sp, #91]
and w9, w9, w10
ldrb w10, [sp, #91]
ldrb w11, [sp, #87]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #96]
ldrb w11, [sp, #87]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #85]
ldrb w9, [sp, #137]
ldrb w10, [sp, #128]
and w9, w9, w10
strb w9, [sp, #84]
ldrb w9, [sp, #136]
ldrb w10, [sp, #128]
and w9, w9, w10
strb w9, [sp, #83]
ldrb w9, [sp, #135]
ldrb w10, [sp, #128]
and w9, w9, w10
strb w9, [sp, #82]
ldrb w9, [sp, #135]
ldrb w10, [sp, #128]
and w9, w9, w10
strb w9, [sp, #81]
ldrb w9, [sp, #134]
ldrb w10, [sp, #128]
and w9, w9, w10
strb w9, [sp, #80]
ldrb w9, [sp, #133]
ldrb w10, [sp, #128]
and w9, w9, w10
strb w9, [sp, #79]
ldrb w9, [sp, #90]
ldrb w10, [sp, #84]
orr w9, w9, w10
strb w9, [sp, #78]
ldrb w9, [sp, #89]
ldrb w10, [sp, #83]
eor w9, w9, w10
strb w9, [sp, #77]
ldrb w9, [sp, #89]
ldrb w10, [sp, #83]
and w9, w9, w10
strb w9, [sp, #76]
ldrb w9, [sp, #88]
ldrb w10, [sp, #82]
eor w9, w9, w10
ldrb w10, [sp, #76]
eor w9, w9, w10
strb w9, [sp, #75]
ldrb w9, [sp, #88]
ldrb w10, [sp, #82]
and w9, w9, w10
ldrb w10, [sp, #82]
ldrb w11, [sp, #76]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #88]
ldrb w11, [sp, #76]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #74]
ldrb w9, [sp, #86]
ldrb w10, [sp, #80]
eor w9, w9, w10
ldrb w10, [sp, #74]
eor w9, w9, w10
strb w9, [sp, #73]
ldrb w9, [sp, #86]
ldrb w10, [sp, #80]
and w9, w9, w10
ldrb w10, [sp, #80]
ldrb w11, [sp, #74]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #86]
ldrb w11, [sp, #74]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #72]
ldrb w9, [sp, #85]
ldrb w10, [sp, #79]
eor w9, w9, w10
ldrb w10, [sp, #72]
eor w9, w9, w10
strb w9, [sp, #71]
ldrb w9, [sp, #85]
ldrb w10, [sp, #79]
and w9, w9, w10
ldrb w10, [sp, #79]
ldrb w11, [sp, #72]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #85]
ldrb w11, [sp, #72]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #70]
ldrb w9, [sp, #138]
ldrb w10, [sp, #127]
and w9, w9, w10
strb w9, [sp, #69]
ldrb w9, [sp, #137]
ldrb w10, [sp, #127]
and w9, w9, w10
strb w9, [sp, #68]
ldrb w9, [sp, #136]
ldrb w10, [sp, #127]
and w9, w9, w10
strb w9, [sp, #67]
ldrb w9, [sp, #135]
ldrb w10, [sp, #127]
and w9, w9, w10
strb w9, [sp, #66]
ldrb w9, [sp, #123]
strb w9, [sp, #65]
ldrb w9, [sp, #134]
ldrb w10, [sp, #127]
and w9, w9, w10
strb w9, [sp, #64]
ldrb w9, [sp, #133]
ldrb w10, [sp, #127]
and w9, w9, w10
strb w9, [sp, #63]
ldrb w9, [sp, #110]
ldrb w10, [sp, #100]
and w9, w9, w10
strb w9, [sp, #62]
ldrb w9, [sp, #78]
ldrb w10, [sp, #69]
orr w9, w9, w10
strb w9, [sp, #61]
ldrb w9, [sp, #77]
ldrb w10, [sp, #68]
eor w9, w9, w10
ldrb w10, [sp, #61]
eor w9, w9, w10
strb w9, [sp, #60]
ldrb w9, [sp, #77]
ldrb w10, [sp, #68]
and w9, w9, w10
ldrb w10, [sp, #68]
ldrb w11, [sp, #61]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #77]
ldrb w11, [sp, #61]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #59]
ldrb w9, [sp, #75]
ldrb w10, [sp, #67]
eor w9, w9, w10
ldrb w10, [sp, #59]
eor w9, w9, w10
strb w9, [sp, #58]
ldrb w9, [sp, #75]
ldrb w10, [sp, #67]
and w9, w9, w10
ldrb w10, [sp, #67]
ldrb w11, [sp, #59]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #75]
ldrb w11, [sp, #59]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #57]
ldrb w9, [sp, #73]
ldrb w10, [sp, #66]
eor w9, w9, w10
ldrb w10, [sp, #57]
eor w9, w9, w10
strb w9, [sp, #56]
ldrb w9, [sp, #73]
ldrb w10, [sp, #66]
and w9, w9, w10
ldrb w10, [sp, #66]
ldrb w11, [sp, #57]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #73]
ldrb w11, [sp, #57]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #55]
ldrb w9, [sp, #71]
ldrb w10, [sp, #64]
eor w9, w9, w10
ldrb w10, [sp, #55]
eor w9, w9, w10
strb w9, [sp, #54]
ldrb w9, [sp, #71]
ldrb w10, [sp, #64]
and w9, w9, w10
ldrb w10, [sp, #64]
ldrb w11, [sp, #55]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #71]
ldrb w11, [sp, #55]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #53]
ldrb w9, [sp, #70]
ldrb w10, [sp, #63]
eor w9, w9, w10
ldrb w10, [sp, #53]
eor w9, w9, w10
strb w9, [sp, #52]
ldrb w9, [sp, #70]
ldrb w10, [sp, #63]
and w9, w9, w10
ldrb w10, [sp, #63]
ldrb w11, [sp, #53]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #70]
ldrb w11, [sp, #53]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #51]
ldrb w9, [sp, #138]
ldrb w10, [sp, #126]
and w9, w9, w10
strb w9, [sp, #50]
ldrb w9, [sp, #137]
ldrb w10, [sp, #126]
and w9, w9, w10
strb w9, [sp, #49]
ldrb w9, [sp, #136]
ldrb w10, [sp, #126]
and w9, w9, w10
strb w9, [sp, #48]
ldrb w9, [sp, #135]
ldrb w10, [sp, #126]
and w9, w9, w10
strb w9, [sp, #47]
ldrb w9, [sp, #134]
ldrb w10, [sp, #126]
and w9, w9, w10
strb w9, [sp, #46]
ldrb w9, [sp, #133]
ldrb w10, [sp, #126]
and w9, w9, w10
strb w9, [sp, #45]
ldrb w9, [sp, #81]
strb w9, [sp, #44]
ldrb w9, [sp, #60]
ldrb w10, [sp, #50]
eor w9, w9, w10
strb w9, [sp, #43]
ldrb w9, [sp, #60]
ldrb w10, [sp, #50]
and w9, w9, w10
strb w9, [sp, #42]
ldrb w9, [sp, #58]
ldrb w10, [sp, #49]
eor w9, w9, w10
ldrb w10, [sp, #42]
eor w9, w9, w10
strb w9, [sp, #41]
ldrb w9, [sp, #58]
ldrb w10, [sp, #49]
and w9, w9, w10
ldrb w10, [sp, #49]
ldrb w11, [sp, #42]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #58]
ldrb w11, [sp, #42]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #40]
ldrb w9, [sp, #56]
ldrb w10, [sp, #48]
eor w9, w9, w10
ldrb w10, [sp, #40]
eor w9, w9, w10
strb w9, [sp, #39]
ldrb w9, [sp, #56]
ldrb w10, [sp, #48]
and w9, w9, w10
ldrb w10, [sp, #48]
ldrb w11, [sp, #40]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #56]
ldrb w11, [sp, #40]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #38]
ldrb w9, [sp, #54]
ldrb w10, [sp, #47]
eor w9, w9, w10
ldrb w10, [sp, #38]
eor w9, w9, w10
strb w9, [sp, #37]
ldrb w9, [sp, #54]
ldrb w10, [sp, #47]
and w9, w9, w10
ldrb w10, [sp, #47]
ldrb w11, [sp, #38]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #54]
ldrb w11, [sp, #38]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #36]
ldrb w9, [sp, #52]
ldrb w10, [sp, #46]
eor w9, w9, w10
ldrb w10, [sp, #36]
eor w9, w9, w10
strb w9, [sp, #35]
ldrb w9, [sp, #52]
ldrb w10, [sp, #46]
and w9, w9, w10
ldrb w10, [sp, #46]
ldrb w11, [sp, #36]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #52]
ldrb w11, [sp, #36]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #34]
ldrb w9, [sp, #51]
ldrb w10, [sp, #45]
eor w9, w9, w10
ldrb w10, [sp, #34]
eor w9, w9, w10
strb w9, [sp, #33]
ldrb w9, [sp, #51]
ldrb w10, [sp, #45]
and w9, w9, w10
ldrb w10, [sp, #45]
ldrb w11, [sp, #34]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #51]
ldrb w11, [sp, #34]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #32]
ldrb w9, [sp, #139]
ldrb w10, [sp, #125]
and w9, w9, w10
strb w9, [sp, #31]
ldrb w9, [sp, #139]
ldrb w10, [sp, #125]
and w9, w9, w10
strb w9, [sp, #30]
ldrb w9, [sp, #138]
ldrb w10, [sp, #125]
and w9, w9, w10
strb w9, [sp, #29]
ldrb w9, [sp, #137]
ldrb w10, [sp, #125]
and w9, w9, w10
strb w9, [sp, #28]
ldrb w9, [sp, #136]
ldrb w10, [sp, #125]
and w9, w9, w10
strb w9, [sp, #27]
ldrb w9, [sp, #135]
ldrb w10, [sp, #125]
and w9, w9, w10
strb w9, [sp, #26]
ldrb w9, [sp, #134]
ldrb w10, [sp, #125]
and w9, w9, w10
strb w9, [sp, #25]
ldrb w9, [sp, #133]
ldrb w10, [sp, #125]
and w9, w9, w10
strb w9, [sp, #24]
ldrb w9, [sp, #105]
ldrb w10, [sp, #31]
eor w9, w9, w10
strb w9, [sp, #23]
ldrb w9, [sp, #43]
ldrb w10, [sp, #30]
eor w9, w9, w10
strb w9, [sp, #22]
ldrb w9, [sp, #43]
ldrb w10, [sp, #30]
and w9, w9, w10
strb w9, [sp, #21]
ldrb w9, [sp, #41]
ldrb w10, [sp, #29]
eor w9, w9, w10
ldrb w10, [sp, #21]
eor w9, w9, w10
strb w9, [sp, #20]
ldrb w9, [sp, #41]
ldrb w10, [sp, #29]
and w9, w9, w10
ldrb w10, [sp, #29]
ldrb w11, [sp, #21]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #41]
ldrb w11, [sp, #21]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #19]
ldrb w9, [sp, #39]
ldrb w10, [sp, #28]
eor w9, w9, w10
ldrb w10, [sp, #19]
eor w9, w9, w10
strb w9, [sp, #18]
ldrb w9, [sp, #39]
ldrb w10, [sp, #28]
and w9, w9, w10
ldrb w10, [sp, #28]
ldrb w11, [sp, #19]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #39]
ldrb w11, [sp, #19]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #17]
ldrb w9, [sp, #37]
ldrb w10, [sp, #27]
eor w9, w9, w10
ldrb w10, [sp, #17]
eor w9, w9, w10
strb w9, [sp, #16]
ldrb w9, [sp, #37]
ldrb w10, [sp, #27]
and w9, w9, w10
ldrb w10, [sp, #27]
ldrb w11, [sp, #17]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #37]
ldrb w11, [sp, #17]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #15]
ldrb w9, [sp, #35]
ldrb w10, [sp, #26]
eor w9, w9, w10
ldrb w10, [sp, #15]
eor w9, w9, w10
strb w9, [sp, #14]
ldrb w9, [sp, #35]
ldrb w10, [sp, #26]
and w9, w9, w10
ldrb w10, [sp, #26]
ldrb w11, [sp, #15]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #35]
ldrb w11, [sp, #15]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #13]
ldrb w9, [sp, #33]
ldrb w10, [sp, #25]
eor w9, w9, w10
ldrb w10, [sp, #13]
eor w9, w9, w10
strb w9, [sp, #12]
ldrb w9, [sp, #33]
ldrb w10, [sp, #25]
and w9, w9, w10
ldrb w10, [sp, #25]
ldrb w11, [sp, #13]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #33]
ldrb w11, [sp, #13]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #11]
ldrb w9, [sp, #32]
ldrb w10, [sp, #24]
eor w9, w9, w10
ldrb w10, [sp, #11]
eor w9, w9, w10
strb w9, [sp, #10]
ldrb w9, [sp, #32]
ldrb w10, [sp, #24]
and w9, w9, w10
ldrb w10, [sp, #24]
ldrb w11, [sp, #11]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #32]
ldrb w11, [sp, #11]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #9]
ldrb w9, [sp, #65]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10
strh w9, [x8]
ldrb w9, [sp, #100]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #1
strh w9, [x8]
ldrb w9, [sp, #38]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #2
strh w9, [x8]
ldrb w9, [sp, #44]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #3
strh w9, [x8]
ldrb w9, [sp, #95]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #4
strh w9, [x8]
ldrb w9, [sp, #62]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #5
strh w9, [x8]
ldrb w9, [sp, #44]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #6
strh w9, [x8]
ldrb w9, [sp, #23]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #7
strh w9, [x8]
ldrb w9, [sp, #22]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #8
strh w9, [x8]
ldrb w9, [sp, #20]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #9
strh w9, [x8]
ldrb w9, [sp, #18]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #10
strh w9, [x8]
ldrb w9, [sp, #16]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #11
strh w9, [x8]
ldrb w9, [sp, #14]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #12
strh w9, [x8]
ldrb w9, [sp, #12]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #13
strh w9, [x8]
ldrb w9, [sp, #10]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #14
strh w9, [x8]
ldrb w9, [sp, #9]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #15
strh w9, [x8]
ldrh w0, [x8]
add sp, sp, #144
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mul8_227 ## -- Begin function mul8_227
.p2align 4, 0x90
_mul8_227: ## @mul8_227
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rax
movb %sil, %al
movb %dil, %cl
movb %cl, -1(%rbp)
movb %al, -2(%rbp)
movw $0, -4(%rbp)
movzbl -1(%rbp), %eax
sarl $1, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -5(%rbp)
movzbl -1(%rbp), %eax
sarl $2, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -6(%rbp)
movzbl -1(%rbp), %eax
sarl $3, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -7(%rbp)
movzbl -1(%rbp), %eax
sarl $4, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -8(%rbp)
movzbl -1(%rbp), %eax
sarl $5, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -9(%rbp)
movzbl -1(%rbp), %eax
sarl $6, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -10(%rbp)
movzbl -1(%rbp), %eax
sarl $7, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -11(%rbp)
movzbl -2(%rbp), %eax
sarl $0, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -12(%rbp)
movzbl -2(%rbp), %eax
sarl $1, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -13(%rbp)
movzbl -2(%rbp), %eax
sarl $2, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -14(%rbp)
movzbl -2(%rbp), %eax
sarl $3, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -15(%rbp)
movzbl -2(%rbp), %eax
sarl $4, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -16(%rbp)
movzbl -2(%rbp), %eax
sarl $5, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -17(%rbp)
movzbl -2(%rbp), %eax
sarl $6, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -18(%rbp)
movzbl -2(%rbp), %eax
sarl $7, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -19(%rbp)
movzbl -13(%rbp), %eax
movzbl -11(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -20(%rbp)
movzbl -13(%rbp), %eax
movzbl -11(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -21(%rbp)
movzbl -12(%rbp), %eax
movzbl -20(%rbp), %ecx
andl %ecx, %eax
movzbl -13(%rbp), %ecx
andl %ecx, %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -22(%rbp)
movzbl -12(%rbp), %eax
movzbl -20(%rbp), %ecx
andl %ecx, %eax
movzbl -13(%rbp), %ecx
andl %ecx, %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -23(%rbp)
movzbl -7(%rbp), %eax
movzbl -22(%rbp), %ecx
orl %ecx, %eax
movzbl -11(%rbp), %ecx
orl %ecx, %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -24(%rbp)
movzbl -5(%rbp), %eax
movzbl -24(%rbp), %ecx
andl %ecx, %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -25(%rbp)
movzbl -25(%rbp), %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -26(%rbp)
movzbl -15(%rbp), %eax
movzbl -24(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -27(%rbp)
movzbl -5(%rbp), %eax
movzbl -10(%rbp), %ecx
andl %ecx, %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -28(%rbp)
movzbl -26(%rbp), %eax
movzbl -24(%rbp), %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -29(%rbp)
movb -28(%rbp), %al
movb %al, -30(%rbp)
movb -29(%rbp), %al
movb %al, -31(%rbp)
movb -25(%rbp), %al
movb %al, -32(%rbp)
movzbl -30(%rbp), %eax
movzbl -10(%rbp), %ecx
orl %ecx, %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -33(%rbp)
movb -32(%rbp), %al
movb %al, -34(%rbp)
movzbl -31(%rbp), %eax
movzbl -20(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -35(%rbp)
movzbl -31(%rbp), %eax
movzbl -20(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -36(%rbp)
movzbl -27(%rbp), %eax
movzbl -12(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -37(%rbp)
movzbl -27(%rbp), %eax
movzbl -12(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -38(%rbp)
movzbl -23(%rbp), %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -39(%rbp)
movzbl -33(%rbp), %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -40(%rbp)
movzbl -9(%rbp), %eax
movzbl -14(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -41(%rbp)
movzbl -10(%rbp), %eax
movzbl -14(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -42(%rbp)
movzbl -11(%rbp), %eax
movzbl -14(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -43(%rbp)
movzbl -36(%rbp), %eax
movzbl -40(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -44(%rbp)
movzbl -35(%rbp), %eax
movzbl -41(%rbp), %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -45(%rbp)
movzbl -37(%rbp), %eax
movzbl -42(%rbp), %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -46(%rbp)
movzbl -38(%rbp), %eax
movzbl -43(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -47(%rbp)
movzbl -38(%rbp), %eax
movzbl -43(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -48(%rbp)
movzbl -7(%rbp), %eax
movzbl -15(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -49(%rbp)
movzbl -8(%rbp), %eax
movzbl -15(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -50(%rbp)
movzbl -9(%rbp), %eax
movzbl -15(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -51(%rbp)
movzbl -10(%rbp), %eax
movzbl -15(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -52(%rbp)
movzbl -11(%rbp), %eax
movzbl -15(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -53(%rbp)
movzbl -45(%rbp), %eax
movzbl -50(%rbp), %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -54(%rbp)
movzbl -46(%rbp), %eax
movzbl -51(%rbp), %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -55(%rbp)
movzbl -47(%rbp), %eax
movzbl -52(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -56(%rbp)
movzbl -47(%rbp), %eax
movzbl -52(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -57(%rbp)
movzbl -48(%rbp), %eax
movzbl -53(%rbp), %ecx
xorl %ecx, %eax
movzbl -57(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -58(%rbp)
movzbl -48(%rbp), %eax
movzbl -53(%rbp), %ecx
andl %ecx, %eax
movzbl -53(%rbp), %ecx
movzbl -57(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -48(%rbp), %ecx
movzbl -57(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -59(%rbp)
movzbl -7(%rbp), %eax
movzbl -16(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -60(%rbp)
movzbl -8(%rbp), %eax
movzbl -16(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -61(%rbp)
movzbl -9(%rbp), %eax
movzbl -16(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -62(%rbp)
movzbl -9(%rbp), %eax
movzbl -16(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -63(%rbp)
movzbl -10(%rbp), %eax
movzbl -16(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -64(%rbp)
movzbl -11(%rbp), %eax
movzbl -16(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -65(%rbp)
movzbl -54(%rbp), %eax
movzbl -60(%rbp), %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -66(%rbp)
movzbl -55(%rbp), %eax
movzbl -61(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -67(%rbp)
movzbl -55(%rbp), %eax
movzbl -61(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -68(%rbp)
movzbl -56(%rbp), %eax
movzbl -62(%rbp), %ecx
xorl %ecx, %eax
movzbl -68(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -69(%rbp)
movzbl -56(%rbp), %eax
movzbl -62(%rbp), %ecx
andl %ecx, %eax
movzbl -62(%rbp), %ecx
movzbl -68(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -56(%rbp), %ecx
movzbl -68(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -70(%rbp)
movzbl -58(%rbp), %eax
movzbl -64(%rbp), %ecx
xorl %ecx, %eax
movzbl -70(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -71(%rbp)
movzbl -58(%rbp), %eax
movzbl -64(%rbp), %ecx
andl %ecx, %eax
movzbl -64(%rbp), %ecx
movzbl -70(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -58(%rbp), %ecx
movzbl -70(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -72(%rbp)
movzbl -59(%rbp), %eax
movzbl -65(%rbp), %ecx
xorl %ecx, %eax
movzbl -72(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -73(%rbp)
movzbl -59(%rbp), %eax
movzbl -65(%rbp), %ecx
andl %ecx, %eax
movzbl -65(%rbp), %ecx
movzbl -72(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -59(%rbp), %ecx
movzbl -72(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -74(%rbp)
movzbl -6(%rbp), %eax
movzbl -17(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -75(%rbp)
movzbl -7(%rbp), %eax
movzbl -17(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -76(%rbp)
movzbl -8(%rbp), %eax
movzbl -17(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -77(%rbp)
movzbl -9(%rbp), %eax
movzbl -17(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -78(%rbp)
movb -21(%rbp), %al
movb %al, -79(%rbp)
movzbl -10(%rbp), %eax
movzbl -17(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -80(%rbp)
movzbl -11(%rbp), %eax
movzbl -17(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -81(%rbp)
movzbl -34(%rbp), %eax
movzbl -44(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -82(%rbp)
movzbl -66(%rbp), %eax
movzbl -75(%rbp), %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -83(%rbp)
movzbl -67(%rbp), %eax
movzbl -76(%rbp), %ecx
xorl %ecx, %eax
movzbl -83(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -84(%rbp)
movzbl -67(%rbp), %eax
movzbl -76(%rbp), %ecx
andl %ecx, %eax
movzbl -76(%rbp), %ecx
movzbl -83(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -67(%rbp), %ecx
movzbl -83(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -85(%rbp)
movzbl -69(%rbp), %eax
movzbl -77(%rbp), %ecx
xorl %ecx, %eax
movzbl -85(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -86(%rbp)
movzbl -69(%rbp), %eax
movzbl -77(%rbp), %ecx
andl %ecx, %eax
movzbl -77(%rbp), %ecx
movzbl -85(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -69(%rbp), %ecx
movzbl -85(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -87(%rbp)
movzbl -71(%rbp), %eax
movzbl -78(%rbp), %ecx
xorl %ecx, %eax
movzbl -87(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -88(%rbp)
movzbl -71(%rbp), %eax
movzbl -78(%rbp), %ecx
andl %ecx, %eax
movzbl -78(%rbp), %ecx
movzbl -87(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -71(%rbp), %ecx
movzbl -87(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -89(%rbp)
movzbl -73(%rbp), %eax
movzbl -80(%rbp), %ecx
xorl %ecx, %eax
movzbl -89(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -90(%rbp)
movzbl -73(%rbp), %eax
movzbl -80(%rbp), %ecx
andl %ecx, %eax
movzbl -80(%rbp), %ecx
movzbl -89(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -73(%rbp), %ecx
movzbl -89(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -91(%rbp)
movzbl -74(%rbp), %eax
movzbl -81(%rbp), %ecx
xorl %ecx, %eax
movzbl -91(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -92(%rbp)
movzbl -74(%rbp), %eax
movzbl -81(%rbp), %ecx
andl %ecx, %eax
movzbl -81(%rbp), %ecx
movzbl -91(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -74(%rbp), %ecx
movzbl -91(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -93(%rbp)
movzbl -6(%rbp), %eax
movzbl -18(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -94(%rbp)
movzbl -7(%rbp), %eax
movzbl -18(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -95(%rbp)
movzbl -8(%rbp), %eax
movzbl -18(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -96(%rbp)
movzbl -9(%rbp), %eax
movzbl -18(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -97(%rbp)
movzbl -10(%rbp), %eax
movzbl -18(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -98(%rbp)
movzbl -11(%rbp), %eax
movzbl -18(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -99(%rbp)
movb -63(%rbp), %al
movb %al, -100(%rbp)
movzbl -84(%rbp), %eax
movzbl -94(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -101(%rbp)
movzbl -84(%rbp), %eax
movzbl -94(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -102(%rbp)
movzbl -86(%rbp), %eax
movzbl -95(%rbp), %ecx
xorl %ecx, %eax
movzbl -102(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -103(%rbp)
movzbl -86(%rbp), %eax
movzbl -95(%rbp), %ecx
andl %ecx, %eax
movzbl -95(%rbp), %ecx
movzbl -102(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -86(%rbp), %ecx
movzbl -102(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -104(%rbp)
movzbl -88(%rbp), %eax
movzbl -96(%rbp), %ecx
xorl %ecx, %eax
movzbl -104(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -105(%rbp)
movzbl -88(%rbp), %eax
movzbl -96(%rbp), %ecx
andl %ecx, %eax
movzbl -96(%rbp), %ecx
movzbl -104(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -88(%rbp), %ecx
movzbl -104(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -106(%rbp)
movzbl -90(%rbp), %eax
movzbl -97(%rbp), %ecx
xorl %ecx, %eax
movzbl -106(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -107(%rbp)
movzbl -90(%rbp), %eax
movzbl -97(%rbp), %ecx
andl %ecx, %eax
movzbl -97(%rbp), %ecx
movzbl -106(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -90(%rbp), %ecx
movzbl -106(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -108(%rbp)
movzbl -92(%rbp), %eax
movzbl -98(%rbp), %ecx
xorl %ecx, %eax
movzbl -108(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -109(%rbp)
movzbl -92(%rbp), %eax
movzbl -98(%rbp), %ecx
andl %ecx, %eax
movzbl -98(%rbp), %ecx
movzbl -108(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -92(%rbp), %ecx
movzbl -108(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -110(%rbp)
movzbl -93(%rbp), %eax
movzbl -99(%rbp), %ecx
xorl %ecx, %eax
movzbl -110(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -111(%rbp)
movzbl -93(%rbp), %eax
movzbl -99(%rbp), %ecx
andl %ecx, %eax
movzbl -99(%rbp), %ecx
movzbl -110(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -93(%rbp), %ecx
movzbl -110(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -112(%rbp)
movzbl -5(%rbp), %eax
movzbl -19(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -113(%rbp)
movzbl -5(%rbp), %eax
movzbl -19(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -114(%rbp)
movzbl -6(%rbp), %eax
movzbl -19(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -115(%rbp)
movzbl -7(%rbp), %eax
movzbl -19(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -116(%rbp)
movzbl -8(%rbp), %eax
movzbl -19(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -117(%rbp)
movzbl -9(%rbp), %eax
movzbl -19(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -118(%rbp)
movzbl -10(%rbp), %eax
movzbl -19(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -119(%rbp)
movzbl -11(%rbp), %eax
movzbl -19(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -120(%rbp)
movzbl -39(%rbp), %eax
movzbl -113(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -121(%rbp)
movzbl -101(%rbp), %eax
movzbl -114(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -122(%rbp)
movzbl -101(%rbp), %eax
movzbl -114(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -123(%rbp)
movzbl -103(%rbp), %eax
movzbl -115(%rbp), %ecx
xorl %ecx, %eax
movzbl -123(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -124(%rbp)
movzbl -103(%rbp), %eax
movzbl -115(%rbp), %ecx
andl %ecx, %eax
movzbl -115(%rbp), %ecx
movzbl -123(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -103(%rbp), %ecx
movzbl -123(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -125(%rbp)
movzbl -105(%rbp), %eax
movzbl -116(%rbp), %ecx
xorl %ecx, %eax
movzbl -125(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -126(%rbp)
movzbl -105(%rbp), %eax
movzbl -116(%rbp), %ecx
andl %ecx, %eax
movzbl -116(%rbp), %ecx
movzbl -125(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -105(%rbp), %ecx
movzbl -125(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -127(%rbp)
movzbl -107(%rbp), %eax
movzbl -117(%rbp), %ecx
xorl %ecx, %eax
movzbl -127(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -128(%rbp)
movzbl -107(%rbp), %eax
movzbl -117(%rbp), %ecx
andl %ecx, %eax
movzbl -117(%rbp), %ecx
movzbl -127(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -107(%rbp), %ecx
movzbl -127(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -129(%rbp)
movzbl -109(%rbp), %eax
movzbl -118(%rbp), %ecx
xorl %ecx, %eax
movzbl -129(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -130(%rbp)
movzbl -109(%rbp), %eax
movzbl -118(%rbp), %ecx
andl %ecx, %eax
movzbl -118(%rbp), %ecx
movzbl -129(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -109(%rbp), %ecx
movzbl -129(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -131(%rbp)
movzbl -111(%rbp), %eax
movzbl -119(%rbp), %ecx
xorl %ecx, %eax
movzbl -131(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -132(%rbp)
movzbl -111(%rbp), %eax
movzbl -119(%rbp), %ecx
andl %ecx, %eax
movzbl -119(%rbp), %ecx
movzbl -131(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -111(%rbp), %ecx
movzbl -131(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -133(%rbp)
movzbl -112(%rbp), %eax
movzbl -120(%rbp), %ecx
xorl %ecx, %eax
movzbl -133(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -134(%rbp)
movzbl -112(%rbp), %eax
movzbl -120(%rbp), %ecx
andl %ecx, %eax
movzbl -120(%rbp), %ecx
movzbl -133(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -112(%rbp), %ecx
movzbl -133(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -135(%rbp)
movzbl -79(%rbp), %ecx
andl $1, %ecx
shll $0, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -44(%rbp), %ecx
andl $1, %ecx
shll $1, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -106(%rbp), %ecx
andl $1, %ecx
shll $2, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -100(%rbp), %ecx
andl $1, %ecx
shll $3, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -49(%rbp), %ecx
andl $1, %ecx
shll $4, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -82(%rbp), %ecx
andl $1, %ecx
shll $5, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -100(%rbp), %ecx
andl $1, %ecx
shll $6, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -121(%rbp), %ecx
andl $1, %ecx
shll $7, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -122(%rbp), %ecx
andl $1, %ecx
shll $8, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -124(%rbp), %ecx
andl $1, %ecx
shll $9, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -126(%rbp), %ecx
andl $1, %ecx
shll $10, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -128(%rbp), %ecx
andl $1, %ecx
shll $11, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -130(%rbp), %ecx
andl $1, %ecx
shll $12, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -132(%rbp), %ecx
andl $1, %ecx
shll $13, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -134(%rbp), %ecx
andl $1, %ecx
shll $14, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -135(%rbp), %ecx
andl $1, %ecx
shll $15, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzwl -4(%rbp), %eax
addq $8, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/248581850.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _dumbf ; -- Begin function dumbf
.p2align 2
_dumbf: ; @dumbf
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str w0, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w8, [sp, #8]
subs w0, w8, #1
bl _dumbf
str w0, [sp, #4] ; 4-byte Folded Spill
ldr w8, [sp, #8]
subs w0, w8, #2
bl _dumbf
mov x8, x0
ldr w0, [sp, #4] ; 4-byte Folded Reload
add w8, w0, w8
stur w8, [x29, #-4]
b LBB0_3
LBB0_2:
ldr w8, [sp, #8]
stur w8, [x29, #-4]
b LBB0_3
LBB0_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _f ; -- Begin function f
.p2align 2
_f: ; @f
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #28]
str wzr, [sp, #24]
mov w8, #1
str w8, [sp, #20]
mov w8, #2
str w8, [sp, #16]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldr w9, [sp, #28]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #24]
str w8, [sp, #12]
ldr w8, [sp, #20]
str w8, [sp, #24]
ldr w9, [sp, #12]
ldr w8, [sp, #20]
add w8, w8, w9
str w8, [sp, #20]
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB1_1
LBB1_4:
ldr w0, [sp, #20]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
stur w8, [x29, #-12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov w8, #15
stur w8, [x29, #-8]
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #24] ; 8-byte Folded Spill
ldur w0, [x29, #-8]
bl _dumbf
ldr x8, [sp, #24] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x0
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
stur x0, [x29, #-24] ; 8-byte Folded Spill
bl _printf
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #32] ; 8-byte Folded Spill
ldur w0, [x29, #-8]
bl _f
ldr x8, [sp, #32] ; 8-byte Folded Reload
mov x10, x0
ldur x0, [x29, #-24] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
bl _printf
ldur w0, [x29, #-12] ; 4-byte Folded Reload
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Element %d of the Fibonacci sequence is %d.\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _dumbf ## -- Begin function dumbf
.p2align 4, 0x90
_dumbf: ## @dumbf
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -8(%rbp)
cmpl $1, -8(%rbp)
jle LBB0_2
## %bb.1:
movl -8(%rbp), %edi
subl $1, %edi
callq _dumbf
movl %eax, -12(%rbp) ## 4-byte Spill
movl -8(%rbp), %edi
subl $2, %edi
callq _dumbf
movl %eax, %ecx
movl -12(%rbp), %eax ## 4-byte Reload
addl %ecx, %eax
movl %eax, -4(%rbp)
jmp LBB0_3
LBB0_2:
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_3:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _f ## -- Begin function f
.p2align 4, 0x90
_f: ## @f
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl $0, -8(%rbp)
movl $1, -12(%rbp)
movl $2, -16(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -4(%rbp), %eax
jg LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -8(%rbp), %eax
movl %eax, -20(%rbp)
movl -12(%rbp), %eax
movl %eax, -8(%rbp)
movl -20(%rbp), %eax
addl -12(%rbp), %eax
movl %eax, -12(%rbp)
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_1
LBB1_4:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $15, -8(%rbp)
movl -8(%rbp), %eax
movl %eax, -16(%rbp) ## 4-byte Spill
movl -8(%rbp), %edi
callq _dumbf
movl -16(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %eax
movl %eax, -12(%rbp) ## 4-byte Spill
movl -8(%rbp), %edi
callq _f
movl -12(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Element %d of the Fibonacci sequence is %d.\n"
.subsections_via_symbols
| the_stack_data/343197.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _add ; -- Begin function add
.p2align 2
_add: ; @add
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
str x2, [sp, #8]
ldr x8, [sp, #24]
ldr w8, [x8]
ldr x9, [sp, #16]
ldr w9, [x9]
add w8, w8, w9
ldr x9, [sp, #8]
str w8, [x9]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _subtract ; -- Begin function subtract
.p2align 2
_subtract: ; @subtract
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
str x2, [sp, #8]
ldr x8, [sp, #24]
ldr w8, [x8]
ldr x9, [sp, #16]
ldr w9, [x9]
subs w8, w8, w9
ldr x9, [sp, #8]
str w8, [x9]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _divide ; -- Begin function divide
.p2align 2
_divide: ; @divide
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #28]
str w1, [sp, #24]
str x2, [sp, #16]
ldr w8, [sp, #28]
ldr w9, [sp, #24]
sdiv w8, w8, w9
str w8, [sp, #12]
ldr w8, [sp, #28]
ldr w9, [sp, #12]
ldr w10, [sp, #24]
mul w9, w9, w10
subs w8, w8, w9
ldr x9, [sp, #16]
str w8, [x9]
ldr w0, [sp, #12]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _add ## -- Begin function add
.p2align 4, 0x90
_add: ## @add
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -8(%rbp), %rax
movl (%rax), %ecx
movq -16(%rbp), %rax
addl (%rax), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _subtract ## -- Begin function subtract
.p2align 4, 0x90
_subtract: ## @subtract
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -8(%rbp), %rax
movl (%rax), %ecx
movq -16(%rbp), %rax
subl (%rax), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _divide ## -- Begin function divide
.p2align 4, 0x90
_divide: ## @divide
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movq %rdx, -16(%rbp)
movl -4(%rbp), %eax
cltd
idivl -8(%rbp)
movl %eax, -20(%rbp)
movl -4(%rbp), %ecx
movl -20(%rbp), %eax
imull -8(%rbp), %eax
subl %eax, %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
movl -20(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/165768198.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _emit ; -- Begin function emit
.p2align 2
_emit: ; @emit
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sturb w0, [x29, #-1]
ldursb w0, [x29, #-1]
bl _putchar
ldursb w8, [x29, #-1]
subs w8, w8, #10
cset w8, eq
and w8, w8, #0x1
adrp x9, _lastwasnl@PAGE
strb w8, [x9, _lastwasnl@PAGEOFF]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _emit_nl ; -- Begin function emit_nl
.p2align 2
_emit_nl: ; @emit_nl
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #10
bl _putchar
adrp x9, _lastwasnl@PAGE
mov w8, #1
strb w8, [x9, _lastwasnl@PAGEOFF]
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _read_entity ; -- Begin function read_entity
.p2align 2
_read_entity: ; @read_entity
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
mov w8, #1
and w8, w0, w8
strb w8, [sp, #20]
str wzr, [sp, #16]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
bl _getchar
str w0, [sp, #12]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB2_44
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #12]
str w8, [sp, #8] ; 4-byte Folded Spill
subs w8, w8, #9
subs w8, w8, #4
cset w8, ls
tbnz w8, #0, LBB2_5
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #8] ; 4-byte Folded Reload
subs w8, w8, #32
cset w8, eq
tbnz w8, #0, LBB2_5
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #8] ; 4-byte Folded Reload
subs w8, w8, #59
cset w8, ne
tbnz w8, #0, LBB2_40
b LBB2_5
LBB2_5:
ldr w8, [sp, #16]
subs w8, w8, #50
cset w8, lt
tbnz w8, #0, LBB2_7
b LBB2_6
LBB2_6:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #21]
b LBB2_45
LBB2_7:
ldrsw x9, [sp, #16]
add x8, sp, #22
add x8, x8, x9
strb wzr, [x8]
ldrb w8, [sp, #20]
tbz w8, #0, LBB2_39
b LBB2_8
LBB2_8:
ldrsb w8, [sp, #22]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB2_10
b LBB2_9
LBB2_9:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #21]
b LBB2_45
LBB2_10:
add x0, sp, #22
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB2_12
b LBB2_11
LBB2_11:
mov w0, #38
bl _emit
b LBB2_37
LBB2_12:
add x0, sp, #22
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB2_14
b LBB2_13
LBB2_13:
mov w0, #39
bl _emit
b LBB2_36
LBB2_14:
add x0, sp, #22
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB2_16
b LBB2_15
LBB2_15:
mov w0, #62
bl _emit
b LBB2_35
LBB2_16:
add x0, sp, #22
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB2_18
b LBB2_17
LBB2_17:
mov w0, #60
bl _emit
b LBB2_34
LBB2_18:
add x0, sp, #22
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB2_20
b LBB2_19
LBB2_19:
mov w0, #32
bl _emit
b LBB2_33
LBB2_20:
add x0, sp, #22
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB2_22
b LBB2_21
LBB2_21:
mov w0, #34
bl _emit
b LBB2_32
LBB2_22:
ldrsb w8, [sp, #22]
subs w8, w8, #35
cset w8, ne
tbnz w8, #0, LBB2_30
b LBB2_23
LBB2_23:
ldrsb w8, [sp, #23]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB2_25
b LBB2_24
LBB2_24:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #21]
b LBB2_45
LBB2_25:
ldrsb w8, [sp, #23]
subs w8, w8, #120
cset w8, ne
tbnz w8, #0, LBB2_27
b LBB2_26
LBB2_26:
b LBB2_28
LBB2_27:
add x8, sp, #22
add x0, x8, #1
bl _atoi
sxtb w0, w0
bl _emit
b LBB2_28
LBB2_28:
b LBB2_29
LBB2_29:
b LBB2_31
LBB2_30:
b LBB2_31
LBB2_31:
b LBB2_32
LBB2_32:
b LBB2_33
LBB2_33:
b LBB2_34
LBB2_34:
b LBB2_35
LBB2_35:
b LBB2_36
LBB2_36:
b LBB2_37
LBB2_37:
b LBB2_38
LBB2_38:
b LBB2_39
LBB2_39:
adrp x8, _mode@PAGE
str wzr, [x8, _mode@PAGEOFF]
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #21]
b LBB2_45
LBB2_40: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #16]
subs w8, w8, #50
cset w8, lt
tbnz w8, #0, LBB2_42
b LBB2_41
LBB2_41:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #21]
b LBB2_45
LBB2_42: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #12]
ldrsw x10, [sp, #16]
mov x9, x10
add w9, w9, #1
str w9, [sp, #16]
add x9, sp, #22
strb w8, [x9, x10]
b LBB2_43
LBB2_43: ; in Loop: Header=BB2_1 Depth=1
b LBB2_1
LBB2_44:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #21]
b LBB2_45
LBB2_45:
ldrb w8, [sp, #21]
str w8, [sp, #4] ; 4-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB2_47
b LBB2_46
LBB2_46:
bl ___stack_chk_fail
LBB2_47:
ldr w8, [sp, #4] ; 4-byte Folded Reload
and w0, w8, #0x1
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _read_comment ; -- Begin function read_comment
.p2align 2
_read_comment: ; @read_comment
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
bl _getchar
str w0, [sp, #8]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB3_9
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB3_8
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
bl _getchar
subs w8, w0, #45
cset w8, ne
tbnz w8, #0, LBB3_7
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_1 Depth=1
bl _getchar
subs w8, w0, #62
cset w8, ne
tbnz w8, #0, LBB3_6
b LBB3_5
LBB3_5:
adrp x8, _mode@PAGE
str wzr, [x8, _mode@PAGEOFF]
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB3_10
LBB3_6: ; in Loop: Header=BB3_1 Depth=1
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_1 Depth=1
b LBB3_8
LBB3_8: ; in Loop: Header=BB3_1 Depth=1
b LBB3_1
LBB3_9:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB3_10
LBB3_10:
ldurb w8, [x29, #-1]
and w0, w8, #0x1
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
stp 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
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #64]
str w0, [sp, #60]
str x1, [sp, #48]
str wzr, [sp, #40]
str wzr, [sp, #36]
strb wzr, [sp, #35]
mov w8, #1
strb w8, [sp, #34]
b LBB4_1
LBB4_1: ; =>This Loop Header: Depth=1
; Child Loop BB4_75 Depth 2
bl _getchar
str w0, [sp, #44]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB4_114
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
adrp x8, _mode@PAGE
ldr w8, [x8, _mode@PAGEOFF]
str w8, [sp, #24] ; 4-byte Folded Spill
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB4_4
b LBB4_3
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #24] ; 4-byte Folded Reload
subs w8, w8, #1
subs w8, w8, #1
cset w8, ls
tbnz w8, #0, LBB4_28
b LBB4_113
LBB4_4: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
subs w8, w8, #9
; kill: def $x8 killed $w8
str x8, [sp, #16] ; 8-byte Folded Spill
subs x8, x8, #51
cset w8, hi
tbnz w8, #0, LBB4_24
; %bb.5: ; in Loop: Header=BB4_1 Depth=1
ldr x11, [sp, #16] ; 8-byte Folded Reload
adrp x10, lJTI4_0@PAGE
add x10, x10, lJTI4_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB4_6: ; in Loop: Header=BB4_1 Depth=1
ldrb w8, [sp, #35]
tbz w8, #0, LBB4_19
b LBB4_7
LBB4_7: ; in Loop: Header=BB4_1 Depth=1
ldrb w8, [sp, #34]
tbz w8, #0, LBB4_17
b LBB4_8
LBB4_8: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #40]
subs w8, w8, #9
cset w8, eq
tbnz w8, #0, LBB4_16
b LBB4_9
LBB4_9: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #40]
subs w8, w8, #10
cset w8, eq
tbnz w8, #0, LBB4_16
b LBB4_10
LBB4_10: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #40]
subs w8, w8, #11
cset w8, eq
tbnz w8, #0, LBB4_16
b LBB4_11
LBB4_11: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #40]
subs w8, w8, #12
cset w8, eq
tbnz w8, #0, LBB4_16
b LBB4_12
LBB4_12: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #40]
subs w8, w8, #13
cset w8, eq
tbnz w8, #0, LBB4_16
b LBB4_13
LBB4_13: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #40]
subs w8, w8, #32
cset w8, eq
tbnz w8, #0, LBB4_16
b LBB4_14
LBB4_14: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #40]
subs w8, w8, #62
cset w8, eq
tbnz w8, #0, LBB4_16
b LBB4_15
LBB4_15: ; in Loop: Header=BB4_1 Depth=1
mov w0, #32
bl _emit
b LBB4_16
LBB4_16: ; in Loop: Header=BB4_1 Depth=1
b LBB4_18
LBB4_17: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
sxtb w0, w8
bl _emit
b LBB4_18
LBB4_18: ; in Loop: Header=BB4_1 Depth=1
b LBB4_19
LBB4_19: ; in Loop: Header=BB4_1 Depth=1
b LBB4_27
LBB4_20: ; in Loop: Header=BB4_1 Depth=1
ldrb w8, [sp, #35]
and w0, w8, #0x1
bl _read_entity
tbnz w0, #0, LBB4_22
b LBB4_21
LBB4_21:
mov w8, #1
str w8, [sp, #64]
b LBB4_117
LBB4_22: ; in Loop: Header=BB4_1 Depth=1
b LBB4_27
LBB4_23: ; in Loop: Header=BB4_1 Depth=1
mov w8, #1
adrp x9, _mode@PAGE
str w8, [x9, _mode@PAGEOFF]
b LBB4_27
LBB4_24: ; in Loop: Header=BB4_1 Depth=1
ldrb w8, [sp, #35]
tbz w8, #0, LBB4_26
b LBB4_25
LBB4_25: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
sxtb w0, w8
bl _emit
b LBB4_26
LBB4_26: ; in Loop: Header=BB4_1 Depth=1
b LBB4_27
LBB4_27: ; in Loop: Header=BB4_1 Depth=1
b LBB4_113
LBB4_28: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
subs w8, w8, #62
cset w8, ne
tbnz w8, #0, LBB4_87
b LBB4_29
LBB4_29: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #36]
subs w8, w8, #50
cset w8, lt
tbnz w8, #0, LBB4_31
b LBB4_30
LBB4_30:
mov w8, #1
str w8, [sp, #64]
b LBB4_117
LBB4_31: ; in Loop: Header=BB4_1 Depth=1
ldrsw x9, [sp, #36]
sub x0, x29, #58
mov x8, x0
add x8, x8, x9
strb wzr, [x8]
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_33
b LBB4_32
LBB4_32: ; in Loop: Header=BB4_1 Depth=1
b LBB4_86
LBB4_33: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.7@PAGE
add x1, x1, l_.str.7@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_35
b LBB4_34
LBB4_34: ; in Loop: Header=BB4_1 Depth=1
mov w8, #1
strb w8, [sp, #35]
b LBB4_85
LBB4_35: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.8@PAGE
add x1, x1, l_.str.8@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_37
b LBB4_36
LBB4_36: ; in Loop: Header=BB4_1 Depth=1
strb wzr, [sp, #35]
b LBB4_84
LBB4_37: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.9@PAGE
add x1, x1, l_.str.9@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_38
LBB4_38: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.10@PAGE
add x1, x1, l_.str.10@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_39
LBB4_39: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.11@PAGE
add x1, x1, l_.str.11@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_40
LBB4_40: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.12@PAGE
add x1, x1, l_.str.12@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_41
LBB4_41: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.13@PAGE
add x1, x1, l_.str.13@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_42
LBB4_42: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.14@PAGE
add x1, x1, l_.str.14@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_43
LBB4_43: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.15@PAGE
add x1, x1, l_.str.15@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_44
LBB4_44: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.16@PAGE
add x1, x1, l_.str.16@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_45
LBB4_45: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.17@PAGE
add x1, x1, l_.str.17@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_46
LBB4_46: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.18@PAGE
add x1, x1, l_.str.18@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_47
LBB4_47: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.19@PAGE
add x1, x1, l_.str.19@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_48
LBB4_48: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.20@PAGE
add x1, x1, l_.str.20@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_49
LBB4_49: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.21@PAGE
add x1, x1, l_.str.21@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_50
LBB4_50: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.22@PAGE
add x1, x1, l_.str.22@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_51
LBB4_51: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.23@PAGE
add x1, x1, l_.str.23@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_52
LBB4_52: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.24@PAGE
add x1, x1, l_.str.24@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_54
b LBB4_53
LBB4_53: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.25@PAGE
add x1, x1, l_.str.25@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_62
b LBB4_54
LBB4_54: ; in Loop: Header=BB4_1 Depth=1
ldrb w8, [sp, #35]
tbz w8, #0, LBB4_61
b LBB4_55
LBB4_55: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.9@PAGE
add x1, x1, l_.str.9@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_59
b LBB4_56
LBB4_56: ; in Loop: Header=BB4_1 Depth=1
ldursb w8, [x29, #-58]
subs w8, w8, #47
cset w8, eq
tbnz w8, #0, LBB4_58
b LBB4_57
LBB4_57: ; in Loop: Header=BB4_1 Depth=1
adrp x8, _lastwasnl@PAGE
ldrb w8, [x8, _lastwasnl@PAGEOFF]
tbz w8, #0, LBB4_59
b LBB4_58
LBB4_58: ; in Loop: Header=BB4_1 Depth=1
ldursb w8, [x29, #-58]
subs w8, w8, #47
cset w8, ne
tbnz w8, #0, LBB4_60
b LBB4_59
LBB4_59: ; in Loop: Header=BB4_1 Depth=1
bl _emit_nl
b LBB4_60
LBB4_60: ; in Loop: Header=BB4_1 Depth=1
b LBB4_61
LBB4_61: ; in Loop: Header=BB4_1 Depth=1
b LBB4_83
LBB4_62: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.26@PAGE
add x1, x1, l_.str.26@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_64
b LBB4_63
LBB4_63: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.27@PAGE
add x1, x1, l_.str.27@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_65
b LBB4_64
LBB4_64: ; in Loop: Header=BB4_1 Depth=1
strb wzr, [sp, #34]
b LBB4_82
LBB4_65: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.28@PAGE
add x1, x1, l_.str.28@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_67
b LBB4_66
LBB4_66: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.29@PAGE
add x1, x1, l_.str.29@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_70
b LBB4_67
LBB4_67: ; in Loop: Header=BB4_1 Depth=1
ldrb w8, [sp, #35]
tbz w8, #0, LBB4_69
b LBB4_68
LBB4_68: ; in Loop: Header=BB4_1 Depth=1
bl _emit_nl
b LBB4_69
LBB4_69: ; in Loop: Header=BB4_1 Depth=1
mov w8, #1
strb w8, [sp, #34]
b LBB4_81
LBB4_70: ; in Loop: Header=BB4_1 Depth=1
sub x0, x29, #58
adrp x1, l_.str.30@PAGE
add x1, x1, l_.str.30@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_80
b LBB4_71
LBB4_71: ; in Loop: Header=BB4_1 Depth=1
ldrb w8, [sp, #35]
tbz w8, #0, LBB4_79
b LBB4_72
LBB4_72: ; in Loop: Header=BB4_1 Depth=1
adrp x8, _lastwasnl@PAGE
ldrb w8, [x8, _lastwasnl@PAGEOFF]
tbnz w8, #0, LBB4_74
b LBB4_73
LBB4_73: ; in Loop: Header=BB4_1 Depth=1
bl _emit_nl
b LBB4_74
LBB4_74: ; in Loop: Header=BB4_1 Depth=1
str wzr, [sp, #28]
b LBB4_75
LBB4_75: ; Parent Loop BB4_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #28]
subs w8, w8, #25
cset w8, ge
tbnz w8, #0, LBB4_78
b LBB4_76
LBB4_76: ; in Loop: Header=BB4_75 Depth=2
mov w0, #45
bl _emit
b LBB4_77
LBB4_77: ; in Loop: Header=BB4_75 Depth=2
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB4_75
LBB4_78: ; in Loop: Header=BB4_1 Depth=1
bl _emit_nl
b LBB4_79
LBB4_79: ; in Loop: Header=BB4_1 Depth=1
b LBB4_80
LBB4_80: ; in Loop: Header=BB4_1 Depth=1
b LBB4_81
LBB4_81: ; in Loop: Header=BB4_1 Depth=1
b LBB4_82
LBB4_82: ; in Loop: Header=BB4_1 Depth=1
b LBB4_83
LBB4_83: ; in Loop: Header=BB4_1 Depth=1
b LBB4_84
LBB4_84: ; in Loop: Header=BB4_1 Depth=1
b LBB4_85
LBB4_85: ; in Loop: Header=BB4_1 Depth=1
b LBB4_86
LBB4_86: ; in Loop: Header=BB4_1 Depth=1
str wzr, [sp, #36]
adrp x8, _mode@PAGE
str wzr, [x8, _mode@PAGEOFF]
b LBB4_112
LBB4_87: ; in Loop: Header=BB4_1 Depth=1
adrp x8, _mode@PAGE
ldr w8, [x8, _mode@PAGEOFF]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB4_111
b LBB4_88
LBB4_88: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
subs w8, w8, #33
cset w8, eq
tbnz w8, #0, LBB4_101
b LBB4_89
LBB4_89: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
subs w8, w8, #45
cset w8, eq
tbnz w8, #0, LBB4_101
b LBB4_90
LBB4_90: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
subs w8, w8, #46
cset w8, eq
tbnz w8, #0, LBB4_101
b LBB4_91
LBB4_91: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
subs w8, w8, #47
cset w8, eq
tbnz w8, #0, LBB4_101
b LBB4_92
LBB4_92: ; in Loop: Header=BB4_1 Depth=1
ldr w9, [sp, #44]
mov w8, #48
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB4_94
b LBB4_93
LBB4_93: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
subs w8, w8, #57
cset w8, le
tbnz w8, #0, LBB4_101
b LBB4_94
LBB4_94: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
subs w8, w8, #58
cset w8, eq
tbnz w8, #0, LBB4_101
b LBB4_95
LBB4_95: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
subs w8, w8, #63
cset w8, eq
tbnz w8, #0, LBB4_101
b LBB4_96
LBB4_96: ; in Loop: Header=BB4_1 Depth=1
ldr w9, [sp, #44]
mov w8, #65
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB4_98
b LBB4_97
LBB4_97: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
subs w8, w8, #90
cset w8, le
tbnz w8, #0, LBB4_101
b LBB4_98
LBB4_98: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
subs w8, w8, #95
cset w8, eq
tbnz w8, #0, LBB4_101
b LBB4_99
LBB4_99: ; in Loop: Header=BB4_1 Depth=1
ldr w9, [sp, #44]
mov w8, #97
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB4_104
b LBB4_100
LBB4_100: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
subs w8, w8, #122
cset w8, gt
tbnz w8, #0, LBB4_104
b LBB4_101
LBB4_101: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #36]
subs w8, w8, #50
cset w8, lt
tbnz w8, #0, LBB4_103
b LBB4_102
LBB4_102:
mov w8, #1
str w8, [sp, #64]
b LBB4_117
LBB4_103: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
ldrsw x10, [sp, #36]
mov x9, x10
add w9, w9, #1
str w9, [sp, #36]
sub x9, x29, #58
strb w8, [x9, x10]
b LBB4_110
LBB4_104: ; in Loop: Header=BB4_1 Depth=1
ldrsw x9, [sp, #36]
sub x0, x29, #58
mov x8, x0
add x8, x8, x9
strb wzr, [x8]
adrp x1, l_.str.31@PAGE
add x1, x1, l_.str.31@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_108
b LBB4_105
LBB4_105: ; in Loop: Header=BB4_1 Depth=1
bl _read_comment
tbnz w0, #0, LBB4_107
b LBB4_106
LBB4_106:
mov w8, #1
str w8, [sp, #64]
b LBB4_117
LBB4_107: ; in Loop: Header=BB4_1 Depth=1
str wzr, [sp, #36]
b LBB4_109
LBB4_108: ; in Loop: Header=BB4_1 Depth=1
mov w8, #2
adrp x9, _mode@PAGE
str w8, [x9, _mode@PAGEOFF]
b LBB4_109
LBB4_109: ; in Loop: Header=BB4_1 Depth=1
b LBB4_110
LBB4_110: ; in Loop: Header=BB4_1 Depth=1
b LBB4_111
LBB4_111: ; in Loop: Header=BB4_1 Depth=1
b LBB4_112
LBB4_112: ; in Loop: Header=BB4_1 Depth=1
b LBB4_113
LBB4_113: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #44]
str w8, [sp, #40]
b LBB4_1
LBB4_114:
adrp x8, _lastwasnl@PAGE
ldrb w8, [x8, _lastwasnl@PAGEOFF]
tbnz w8, #0, LBB4_116
b LBB4_115
LBB4_115:
bl _emit_nl
b LBB4_116
LBB4_116:
str wzr, [sp, #64]
b LBB4_117
LBB4_117:
ldr w8, [sp, #64]
str w8, [sp, #12] ; 4-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB4_119
b LBB4_118
LBB4_118:
bl ___stack_chk_fail
LBB4_119:
ldr w0, [sp, #12] ; 4-byte Folded Reload
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
add sp, sp, #144
ret
.cfi_endproc
.p2align 2
lJTI4_0:
.long LBB4_6-Ltmp0
.long LBB4_6-Ltmp0
.long LBB4_6-Ltmp0
.long LBB4_6-Ltmp0
.long LBB4_6-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_6-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_20-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_24-Ltmp0
.long LBB4_23-Ltmp0
; -- End function
.globl _mode ; @mode
.zerofill __DATA,__common,_mode,4,2
.section __DATA,__data
.globl _lastwasnl ; @lastwasnl
_lastwasnl:
.byte 1 ; 0x1
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "amp"
l_.str.1: ; @.str.1
.asciz "apos"
l_.str.2: ; @.str.2
.asciz "gt"
l_.str.3: ; @.str.3
.asciz "lt"
l_.str.4: ; @.str.4
.asciz "nbsp"
l_.str.5: ; @.str.5
.asciz "quot"
l_.str.6: ; @.str.6
.asciz "a"
l_.str.7: ; @.str.7
.asciz "body"
l_.str.8: ; @.str.8
.asciz "/body"
l_.str.9: ; @.str.9
.asciz "br"
l_.str.10: ; @.str.10
.asciz "h1"
l_.str.11: ; @.str.11
.asciz "/h1"
l_.str.12: ; @.str.12
.asciz "h2"
l_.str.13: ; @.str.13
.asciz "/h2"
l_.str.14: ; @.str.14
.asciz "h3"
l_.str.15: ; @.str.15
.asciz "/h3"
l_.str.16: ; @.str.16
.asciz "h4"
l_.str.17: ; @.str.17
.asciz "/h4"
l_.str.18: ; @.str.18
.asciz "h5"
l_.str.19: ; @.str.19
.asciz "/h5"
l_.str.20: ; @.str.20
.asciz "h6"
l_.str.21: ; @.str.21
.asciz "/h6"
l_.str.22: ; @.str.22
.asciz "li"
l_.str.23: ; @.str.23
.asciz "/li"
l_.str.24: ; @.str.24
.asciz "p"
l_.str.25: ; @.str.25
.asciz "/p"
l_.str.26: ; @.str.26
.asciz "code"
l_.str.27: ; @.str.27
.asciz "pre"
l_.str.28: ; @.str.28
.asciz "/code"
l_.str.29: ; @.str.29
.asciz "/pre"
l_.str.30: ; @.str.30
.asciz "hr"
l_.str.31: ; @.str.31
.asciz "!--"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _emit ## -- Begin function emit
.p2align 4, 0x90
_emit: ## @emit
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movb %dil, %al
movb %al, -1(%rbp)
movsbl -1(%rbp), %edi
callq _putchar
movsbl -1(%rbp), %eax
cmpl $10, %eax
sete %al
andb $1, %al
movb %al, _lastwasnl(%rip)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _emit_nl ## -- Begin function emit_nl
.p2align 4, 0x90
_emit_nl: ## @emit_nl
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $10, %edi
callq _putchar
movb $1, _lastwasnl(%rip)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _read_entity ## -- Begin function read_entity
.p2align 4, 0x90
_read_entity: ## @read_entity
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $96, %rsp
movb %dil, %al
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rcx, -8(%rbp)
andb $1, %al
movb %al, -66(%rbp)
movl $0, -72(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
callq _getchar
movl %eax, -76(%rbp)
cmpl $-1, %eax
je LBB2_42
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movl -76(%rbp), %eax
movl %eax, -80(%rbp) ## 4-byte Spill
addl $-9, %eax
subl $5, %eax
jb LBB2_3
jmp LBB2_46
LBB2_46: ## in Loop: Header=BB2_1 Depth=1
movl -80(%rbp), %eax ## 4-byte Reload
subl $32, %eax
je LBB2_3
jmp LBB2_47
LBB2_47: ## in Loop: Header=BB2_1 Depth=1
movl -80(%rbp), %eax ## 4-byte Reload
subl $59, %eax
jne LBB2_38
jmp LBB2_3
LBB2_3:
cmpl $50, -72(%rbp)
jl LBB2_5
## %bb.4:
movb $0, -65(%rbp)
jmp LBB2_43
LBB2_5:
movslq -72(%rbp), %rax
movb $0, -64(%rbp,%rax)
testb $1, -66(%rbp)
je LBB2_37
## %bb.6:
movsbl -64(%rbp), %eax
cmpl $0, %eax
jne LBB2_8
## %bb.7:
movb $0, -65(%rbp)
jmp LBB2_43
LBB2_8:
leaq -64(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB2_10
## %bb.9:
movl $38, %edi
callq _emit
jmp LBB2_35
LBB2_10:
leaq -64(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB2_12
## %bb.11:
movl $39, %edi
callq _emit
jmp LBB2_34
LBB2_12:
leaq -64(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB2_14
## %bb.13:
movl $62, %edi
callq _emit
jmp LBB2_33
LBB2_14:
leaq -64(%rbp), %rdi
leaq L_.str.3(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB2_16
## %bb.15:
movl $60, %edi
callq _emit
jmp LBB2_32
LBB2_16:
leaq -64(%rbp), %rdi
leaq L_.str.4(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB2_18
## %bb.17:
movl $32, %edi
callq _emit
jmp LBB2_31
LBB2_18:
leaq -64(%rbp), %rdi
leaq L_.str.5(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB2_20
## %bb.19:
movl $34, %edi
callq _emit
jmp LBB2_30
LBB2_20:
movsbl -64(%rbp), %eax
cmpl $35, %eax
jne LBB2_28
## %bb.21:
movsbl -63(%rbp), %eax
cmpl $0, %eax
jne LBB2_23
## %bb.22:
movb $0, -65(%rbp)
jmp LBB2_43
LBB2_23:
movsbl -63(%rbp), %eax
cmpl $120, %eax
jne LBB2_25
## %bb.24:
jmp LBB2_26
LBB2_25:
leaq -64(%rbp), %rdi
addq $1, %rdi
callq _atoi
## kill: def $al killed $al killed $eax
movsbl %al, %edi
callq _emit
LBB2_26:
jmp LBB2_27
LBB2_27:
jmp LBB2_29
LBB2_28:
jmp LBB2_29
LBB2_29:
jmp LBB2_30
LBB2_30:
jmp LBB2_31
LBB2_31:
jmp LBB2_32
LBB2_32:
jmp LBB2_33
LBB2_33:
jmp LBB2_34
LBB2_34:
jmp LBB2_35
LBB2_35:
jmp LBB2_36
LBB2_36:
jmp LBB2_37
LBB2_37:
movl $0, _mode(%rip)
movb $1, -65(%rbp)
jmp LBB2_43
LBB2_38: ## in Loop: Header=BB2_1 Depth=1
cmpl $50, -72(%rbp)
jl LBB2_40
## %bb.39:
movb $0, -65(%rbp)
jmp LBB2_43
LBB2_40: ## in Loop: Header=BB2_1 Depth=1
movl -76(%rbp), %eax
movb %al, %cl
movl -72(%rbp), %eax
movl %eax, %edx
addl $1, %edx
movl %edx, -72(%rbp)
cltq
movb %cl, -64(%rbp,%rax)
## %bb.41: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_1
LBB2_42:
movb $0, -65(%rbp)
LBB2_43:
movb -65(%rbp), %al
movb %al, -81(%rbp) ## 1-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB2_45
## %bb.44:
movb -81(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
addq $96, %rsp
popq %rbp
retq
LBB2_45:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _read_comment ## -- Begin function read_comment
.p2align 4, 0x90
_read_comment: ## @read_comment
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
LBB3_1: ## =>This Inner Loop Header: Depth=1
callq _getchar
movl %eax, -8(%rbp)
cmpl $-1, %eax
je LBB3_9
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
cmpl $45, -8(%rbp)
jne LBB3_8
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
callq _getchar
cmpl $45, %eax
jne LBB3_7
## %bb.4: ## in Loop: Header=BB3_1 Depth=1
callq _getchar
cmpl $62, %eax
jne LBB3_6
## %bb.5:
movl $0, _mode(%rip)
movb $1, -1(%rbp)
jmp LBB3_10
LBB3_6: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_7
LBB3_7: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_8
LBB3_8: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_1
LBB3_9:
movb $0, -1(%rbp)
LBB3_10:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -68(%rbp)
movl %edi, -72(%rbp)
movq %rsi, -80(%rbp)
movl $0, -88(%rbp)
movl $0, -92(%rbp)
movb $0, -93(%rbp)
movb $1, -94(%rbp)
LBB4_1: ## =>This Loop Header: Depth=1
## Child Loop BB4_73 Depth 2
callq _getchar
movl %eax, -84(%rbp)
cmpl $-1, %eax
je LBB4_112
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movl _mode(%rip), %eax
movl %eax, -104(%rbp) ## 4-byte Spill
testl %eax, %eax
je LBB4_3
jmp LBB4_118
LBB4_118: ## in Loop: Header=BB4_1 Depth=1
movl -104(%rbp), %eax ## 4-byte Reload
decl %eax
subl $2, %eax
jb LBB4_26
jmp LBB4_111
LBB4_3: ## in Loop: Header=BB4_1 Depth=1
movl -84(%rbp), %eax
addl $-9, %eax
movl %eax, %ecx
movq %rcx, -112(%rbp) ## 8-byte Spill
subl $51, %eax
ja LBB4_22
## %bb.119: ## in Loop: Header=BB4_1 Depth=1
movq -112(%rbp), %rax ## 8-byte Reload
leaq LJTI4_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB4_4: ## in Loop: Header=BB4_1 Depth=1
testb $1, -93(%rbp)
je LBB4_17
## %bb.5: ## in Loop: Header=BB4_1 Depth=1
testb $1, -94(%rbp)
je LBB4_15
## %bb.6: ## in Loop: Header=BB4_1 Depth=1
cmpl $9, -88(%rbp)
je LBB4_14
## %bb.7: ## in Loop: Header=BB4_1 Depth=1
cmpl $10, -88(%rbp)
je LBB4_14
## %bb.8: ## in Loop: Header=BB4_1 Depth=1
cmpl $11, -88(%rbp)
je LBB4_14
## %bb.9: ## in Loop: Header=BB4_1 Depth=1
cmpl $12, -88(%rbp)
je LBB4_14
## %bb.10: ## in Loop: Header=BB4_1 Depth=1
cmpl $13, -88(%rbp)
je LBB4_14
## %bb.11: ## in Loop: Header=BB4_1 Depth=1
cmpl $32, -88(%rbp)
je LBB4_14
## %bb.12: ## in Loop: Header=BB4_1 Depth=1
cmpl $62, -88(%rbp)
je LBB4_14
## %bb.13: ## in Loop: Header=BB4_1 Depth=1
movl $32, %edi
callq _emit
LBB4_14: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_16
LBB4_15: ## in Loop: Header=BB4_1 Depth=1
movl -84(%rbp), %eax
## kill: def $al killed $al killed $eax
movsbl %al, %edi
callq _emit
LBB4_16: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_17
LBB4_17: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_25
LBB4_18: ## in Loop: Header=BB4_1 Depth=1
movb -93(%rbp), %al
andb $1, %al
movzbl %al, %edi
callq _read_entity
testb $1, %al
jne LBB4_20
## %bb.19:
movl $1, -68(%rbp)
jmp LBB4_115
LBB4_20: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_25
LBB4_21: ## in Loop: Header=BB4_1 Depth=1
movl $1, _mode(%rip)
jmp LBB4_25
LBB4_22: ## in Loop: Header=BB4_1 Depth=1
testb $1, -93(%rbp)
je LBB4_24
## %bb.23: ## in Loop: Header=BB4_1 Depth=1
movl -84(%rbp), %eax
## kill: def $al killed $al killed $eax
movsbl %al, %edi
callq _emit
LBB4_24: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_25
LBB4_25: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_111
LBB4_26: ## in Loop: Header=BB4_1 Depth=1
movl -84(%rbp), %eax
subl $62, %eax
jne LBB4_85
jmp LBB4_27
LBB4_27: ## in Loop: Header=BB4_1 Depth=1
cmpl $50, -92(%rbp)
jl LBB4_29
## %bb.28:
movl $1, -68(%rbp)
jmp LBB4_115
LBB4_29: ## in Loop: Header=BB4_1 Depth=1
movslq -92(%rbp), %rax
movb $0, -64(%rbp,%rax)
leaq -64(%rbp), %rdi
leaq L_.str.6(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB4_31
## %bb.30: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_84
LBB4_31: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.7(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB4_33
## %bb.32: ## in Loop: Header=BB4_1 Depth=1
movb $1, -93(%rbp)
jmp LBB4_83
LBB4_33: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.8(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB4_35
## %bb.34: ## in Loop: Header=BB4_1 Depth=1
movb $0, -93(%rbp)
jmp LBB4_82
LBB4_35: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.9(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.36: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.10(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.37: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.11(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.38: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.12(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.39: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.13(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.40: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.14(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.41: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.15(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.42: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.16(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.43: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.17(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.44: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.18(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.45: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.19(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.46: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.20(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.47: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.21(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.48: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.22(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.49: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.23(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.50: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.24(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_52
## %bb.51: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.25(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB4_60
LBB4_52: ## in Loop: Header=BB4_1 Depth=1
testb $1, -93(%rbp)
je LBB4_59
## %bb.53: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.9(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_57
## %bb.54: ## in Loop: Header=BB4_1 Depth=1
movsbl -64(%rbp), %eax
cmpl $47, %eax
je LBB4_56
## %bb.55: ## in Loop: Header=BB4_1 Depth=1
testb $1, _lastwasnl(%rip)
je LBB4_57
LBB4_56: ## in Loop: Header=BB4_1 Depth=1
movsbl -64(%rbp), %eax
cmpl $47, %eax
jne LBB4_58
LBB4_57: ## in Loop: Header=BB4_1 Depth=1
callq _emit_nl
LBB4_58: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_59
LBB4_59: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_81
LBB4_60: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.26(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_62
## %bb.61: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.27(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB4_63
LBB4_62: ## in Loop: Header=BB4_1 Depth=1
movb $0, -94(%rbp)
jmp LBB4_80
LBB4_63: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.28(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_65
## %bb.64: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.29(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB4_68
LBB4_65: ## in Loop: Header=BB4_1 Depth=1
testb $1, -93(%rbp)
je LBB4_67
## %bb.66: ## in Loop: Header=BB4_1 Depth=1
callq _emit_nl
LBB4_67: ## in Loop: Header=BB4_1 Depth=1
movb $1, -94(%rbp)
jmp LBB4_79
LBB4_68: ## in Loop: Header=BB4_1 Depth=1
leaq -64(%rbp), %rdi
leaq L_.str.30(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB4_78
## %bb.69: ## in Loop: Header=BB4_1 Depth=1
testb $1, -93(%rbp)
je LBB4_77
## %bb.70: ## in Loop: Header=BB4_1 Depth=1
testb $1, _lastwasnl(%rip)
jne LBB4_72
## %bb.71: ## in Loop: Header=BB4_1 Depth=1
callq _emit_nl
LBB4_72: ## in Loop: Header=BB4_1 Depth=1
movl $0, -100(%rbp)
LBB4_73: ## Parent Loop BB4_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $25, -100(%rbp)
jge LBB4_76
## %bb.74: ## in Loop: Header=BB4_73 Depth=2
movl $45, %edi
callq _emit
## %bb.75: ## in Loop: Header=BB4_73 Depth=2
movl -100(%rbp), %eax
addl $1, %eax
movl %eax, -100(%rbp)
jmp LBB4_73
LBB4_76: ## in Loop: Header=BB4_1 Depth=1
callq _emit_nl
LBB4_77: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_78
LBB4_78: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_79
LBB4_79: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_80
LBB4_80: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_81
LBB4_81: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_82
LBB4_82: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_83
LBB4_83: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_84
LBB4_84: ## in Loop: Header=BB4_1 Depth=1
movl $0, -92(%rbp)
movl $0, _mode(%rip)
jmp LBB4_110
LBB4_85: ## in Loop: Header=BB4_1 Depth=1
cmpl $1, _mode(%rip)
jne LBB4_109
## %bb.86: ## in Loop: Header=BB4_1 Depth=1
cmpl $33, -84(%rbp)
je LBB4_99
## %bb.87: ## in Loop: Header=BB4_1 Depth=1
cmpl $45, -84(%rbp)
je LBB4_99
## %bb.88: ## in Loop: Header=BB4_1 Depth=1
cmpl $46, -84(%rbp)
je LBB4_99
## %bb.89: ## in Loop: Header=BB4_1 Depth=1
cmpl $47, -84(%rbp)
je LBB4_99
## %bb.90: ## in Loop: Header=BB4_1 Depth=1
movl $48, %eax
cmpl -84(%rbp), %eax
jg LBB4_92
## %bb.91: ## in Loop: Header=BB4_1 Depth=1
cmpl $57, -84(%rbp)
jle LBB4_99
LBB4_92: ## in Loop: Header=BB4_1 Depth=1
cmpl $58, -84(%rbp)
je LBB4_99
## %bb.93: ## in Loop: Header=BB4_1 Depth=1
cmpl $63, -84(%rbp)
je LBB4_99
## %bb.94: ## in Loop: Header=BB4_1 Depth=1
movl $65, %eax
cmpl -84(%rbp), %eax
jg LBB4_96
## %bb.95: ## in Loop: Header=BB4_1 Depth=1
cmpl $90, -84(%rbp)
jle LBB4_99
LBB4_96: ## in Loop: Header=BB4_1 Depth=1
cmpl $95, -84(%rbp)
je LBB4_99
## %bb.97: ## in Loop: Header=BB4_1 Depth=1
movl $97, %eax
cmpl -84(%rbp), %eax
jg LBB4_102
## %bb.98: ## in Loop: Header=BB4_1 Depth=1
cmpl $122, -84(%rbp)
jg LBB4_102
LBB4_99: ## in Loop: Header=BB4_1 Depth=1
cmpl $50, -92(%rbp)
jl LBB4_101
## %bb.100:
movl $1, -68(%rbp)
jmp LBB4_115
LBB4_101: ## in Loop: Header=BB4_1 Depth=1
movl -84(%rbp), %eax
movb %al, %cl
movl -92(%rbp), %eax
movl %eax, %edx
addl $1, %edx
movl %edx, -92(%rbp)
cltq
movb %cl, -64(%rbp,%rax)
jmp LBB4_108
LBB4_102: ## in Loop: Header=BB4_1 Depth=1
movslq -92(%rbp), %rax
movb $0, -64(%rbp,%rax)
leaq -64(%rbp), %rdi
leaq L_.str.31(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB4_106
## %bb.103: ## in Loop: Header=BB4_1 Depth=1
callq _read_comment
testb $1, %al
jne LBB4_105
## %bb.104:
movl $1, -68(%rbp)
jmp LBB4_115
LBB4_105: ## in Loop: Header=BB4_1 Depth=1
movl $0, -92(%rbp)
jmp LBB4_107
LBB4_106: ## in Loop: Header=BB4_1 Depth=1
movl $2, _mode(%rip)
LBB4_107: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_108
LBB4_108: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_109
LBB4_109: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_110
LBB4_110: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_111
LBB4_111: ## in Loop: Header=BB4_1 Depth=1
movl -84(%rbp), %eax
movl %eax, -88(%rbp)
jmp LBB4_1
LBB4_112:
testb $1, _lastwasnl(%rip)
jne LBB4_114
## %bb.113:
callq _emit_nl
LBB4_114:
movl $0, -68(%rbp)
LBB4_115:
movl -68(%rbp), %eax
movl %eax, -116(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB4_117
## %bb.116:
movl -116(%rbp), %eax ## 4-byte Reload
addq $128, %rsp
popq %rbp
retq
LBB4_117:
callq ___stack_chk_fail
ud2
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L4_0_set_4, LBB4_4-LJTI4_0
.set L4_0_set_22, LBB4_22-LJTI4_0
.set L4_0_set_18, LBB4_18-LJTI4_0
.set L4_0_set_21, LBB4_21-LJTI4_0
LJTI4_0:
.long L4_0_set_4
.long L4_0_set_4
.long L4_0_set_4
.long L4_0_set_4
.long L4_0_set_4
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_4
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_18
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_22
.long L4_0_set_21
.end_data_region
## -- End function
.globl _mode ## @mode
.zerofill __DATA,__common,_mode,4,2
.section __DATA,__data
.globl _lastwasnl ## @lastwasnl
_lastwasnl:
.byte 1 ## 0x1
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "amp"
L_.str.1: ## @.str.1
.asciz "apos"
L_.str.2: ## @.str.2
.asciz "gt"
L_.str.3: ## @.str.3
.asciz "lt"
L_.str.4: ## @.str.4
.asciz "nbsp"
L_.str.5: ## @.str.5
.asciz "quot"
L_.str.6: ## @.str.6
.asciz "a"
L_.str.7: ## @.str.7
.asciz "body"
L_.str.8: ## @.str.8
.asciz "/body"
L_.str.9: ## @.str.9
.asciz "br"
L_.str.10: ## @.str.10
.asciz "h1"
L_.str.11: ## @.str.11
.asciz "/h1"
L_.str.12: ## @.str.12
.asciz "h2"
L_.str.13: ## @.str.13
.asciz "/h2"
L_.str.14: ## @.str.14
.asciz "h3"
L_.str.15: ## @.str.15
.asciz "/h3"
L_.str.16: ## @.str.16
.asciz "h4"
L_.str.17: ## @.str.17
.asciz "/h4"
L_.str.18: ## @.str.18
.asciz "h5"
L_.str.19: ## @.str.19
.asciz "/h5"
L_.str.20: ## @.str.20
.asciz "h6"
L_.str.21: ## @.str.21
.asciz "/h6"
L_.str.22: ## @.str.22
.asciz "li"
L_.str.23: ## @.str.23
.asciz "/li"
L_.str.24: ## @.str.24
.asciz "p"
L_.str.25: ## @.str.25
.asciz "/p"
L_.str.26: ## @.str.26
.asciz "code"
L_.str.27: ## @.str.27
.asciz "pre"
L_.str.28: ## @.str.28
.asciz "/code"
L_.str.29: ## @.str.29
.asciz "/pre"
L_.str.30: ## @.str.30
.asciz "hr"
L_.str.31: ## @.str.31
.asciz "!--"
.subsections_via_symbols
| the_stack_data/187643941.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _f ; -- Begin function f
.p2align 2
_f: ; @f
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
mov w0, #0
str wzr, [sp, #28]
mov w8, #666
str w8, [sp, #24]
mov w9, #101
strb w9, [sp, #23]
mov w9, #3
str w9, [sp, #16]
mov w9, #5
str w9, [sp, #12]
mov w9, #102
str w9, [sp, #8]
str w8, [sp, #4]
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #16]
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #16]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.globl _r ; @r
.p2align 2
_r:
.long 33 ; 0x21
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _f ## -- Begin function f
.p2align 4, 0x90
_f: ## @f
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $0, -4(%rbp)
movl $666, -8(%rbp) ## imm = 0x29A
movb $101, -9(%rbp)
movl $3, -16(%rbp)
movl $5, -20(%rbp)
movl $102, -24(%rbp)
movl $666, -28(%rbp) ## imm = 0x29A
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__const
.globl _r ## @r
.p2align 2
_r:
.long 33 ## 0x21
.subsections_via_symbols
| the_stack_data/136393.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-24]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _getenv
str x0, [sp, #40]
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
mov w8, #-1
stur w8, [x29, #-24]
b LBB0_22
LBB0_2:
stur wzr, [x29, #-28]
mov w8, #2
stur w8, [x29, #-4]
ldur w8, [x29, #-4]
subs w8, w8, #32
cset w8, le
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
mov w8, #0
str w8, [sp, #36] ; 4-byte Folded Spill
b LBB0_5
LBB0_4:
ldur w9, [x29, #-4]
mov w8, #1
subs w9, w9, #1
lsl w8, w8, w9
str w8, [sp, #36] ; 4-byte Folded Spill
b LBB0_5
LBB0_5:
ldr w9, [sp, #36] ; 4-byte Folded Reload
ldur w8, [x29, #-28]
orr w8, w8, w9
stur w8, [x29, #-28]
mov w8, #18
stur w8, [x29, #-8]
ldur w8, [x29, #-8]
subs w8, w8, #32
cset w8, le
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
mov w8, #0
str w8, [sp, #32] ; 4-byte Folded Spill
b LBB0_8
LBB0_7:
ldur w9, [x29, #-8]
mov w8, #1
subs w9, w9, #1
lsl w8, w8, w9
str w8, [sp, #32] ; 4-byte Folded Spill
b LBB0_8
LBB0_8:
ldr w9, [sp, #32] ; 4-byte Folded Reload
sub x1, x29, #28
ldur w8, [x29, #-28]
orr w8, w8, w9
stur w8, [x29, #-28]
mov w0, #1
mov x2, #0
bl _sigprocmask
ldr x0, [sp, #40]
bl _atoi
bl _sleep
stur wzr, [x29, #-28]
sub x0, x29, #32
bl _sigpending
ldur w8, [x29, #-32]
str w8, [sp, #28] ; 4-byte Folded Spill
mov w8, #2
stur w8, [x29, #-12]
ldur w8, [x29, #-12]
subs w8, w8, #32
cset w8, le
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
mov w8, #0
str w8, [sp, #24] ; 4-byte Folded Spill
b LBB0_11
LBB0_10:
ldur w9, [x29, #-12]
mov w8, #1
subs w9, w9, #1
lsl w8, w8, w9
str w8, [sp, #24] ; 4-byte Folded Spill
b LBB0_11
LBB0_11:
ldr w8, [sp, #28] ; 4-byte Folded Reload
ldr w9, [sp, #24] ; 4-byte Folded Reload
ands w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_13
LBB0_13:
ldur w8, [x29, #-32]
str w8, [sp, #20] ; 4-byte Folded Spill
mov w8, #18
stur w8, [x29, #-16]
ldur w8, [x29, #-16]
subs w8, w8, #32
cset w8, le
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
mov w8, #0
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_16
LBB0_15:
ldur w9, [x29, #-16]
mov w8, #1
subs w9, w9, #1
lsl w8, w8, w9
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_16
LBB0_16:
ldr w8, [sp, #20] ; 4-byte Folded Reload
ldr w9, [sp, #16] ; 4-byte Folded Reload
ands w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_21
b LBB0_17
LBB0_17:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
stur wzr, [x29, #-28]
mov w8, #18
stur w8, [x29, #-20]
ldur w8, [x29, #-20]
subs w8, w8, #32
cset w8, le
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18:
mov w8, #0
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_20
LBB0_19:
ldur w9, [x29, #-20]
mov w8, #1
subs w9, w9, #1
lsl w8, w8, w9
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_20
LBB0_20:
ldr w9, [sp, #12] ; 4-byte Folded Reload
sub x1, x29, #28
ldur w8, [x29, #-28]
orr w8, w8, w9
stur w8, [x29, #-28]
mov w0, #2
mov x2, #0
bl _sigprocmask
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB0_21
LBB0_21:
stur wzr, [x29, #-24]
b LBB0_22
LBB0_22:
ldur w0, [x29, #-24]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "SLEEP_SECS"
l_.str.1: ; @.str.1
.asciz "SLEEP_SECS not defined in env\n"
l_.str.2: ; @.str.2
.asciz "SIGINT recibida\n"
l_.str.3: ; @.str.3
.asciz "SIGTSTP recibida\n"
l_.str.4: ; @.str.4
.asciz "El proceso contin\303\272a despues de desbloquear SIGTSTP\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movl $0, -24(%rbp)
leaq L_.str(%rip), %rdi
callq _getenv
movq %rax, -40(%rbp)
cmpq $0, -40(%rbp)
jne LBB0_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _fprintf
movl $-1, -24(%rbp)
jmp LBB0_22
LBB0_2:
movl $0, -28(%rbp)
movl $2, -4(%rbp)
cmpl $32, -4(%rbp)
jle LBB0_4
## %bb.3:
xorl %eax, %eax
movl %eax, -44(%rbp) ## 4-byte Spill
jmp LBB0_5
LBB0_4:
movl -4(%rbp), %ecx
subl $1, %ecx
movl $1, %eax
## kill: def $cl killed $ecx
shll %cl, %eax
movl %eax, -44(%rbp) ## 4-byte Spill
LBB0_5:
movl -44(%rbp), %eax ## 4-byte Reload
orl -28(%rbp), %eax
movl %eax, -28(%rbp)
movl $18, -8(%rbp)
cmpl $32, -8(%rbp)
jle LBB0_7
## %bb.6:
xorl %eax, %eax
movl %eax, -48(%rbp) ## 4-byte Spill
jmp LBB0_8
LBB0_7:
movl -8(%rbp), %ecx
subl $1, %ecx
movl $1, %eax
## kill: def $cl killed $ecx
shll %cl, %eax
movl %eax, -48(%rbp) ## 4-byte Spill
LBB0_8:
movl -48(%rbp), %eax ## 4-byte Reload
orl -28(%rbp), %eax
movl %eax, -28(%rbp)
movl $1, %edi
leaq -28(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq _sigprocmask
movq -40(%rbp), %rdi
callq _atoi
movl %eax, %edi
callq _sleep
movl $0, -28(%rbp)
leaq -32(%rbp), %rdi
callq _sigpending
movl -32(%rbp), %eax
movl %eax, -52(%rbp) ## 4-byte Spill
movl $2, -12(%rbp)
cmpl $32, -12(%rbp)
jle LBB0_10
## %bb.9:
xorl %eax, %eax
movl %eax, -56(%rbp) ## 4-byte Spill
jmp LBB0_11
LBB0_10:
movl -12(%rbp), %ecx
subl $1, %ecx
movl $1, %eax
## kill: def $cl killed $ecx
shll %cl, %eax
movl %eax, -56(%rbp) ## 4-byte Spill
LBB0_11:
movl -52(%rbp), %eax ## 4-byte Reload
movl -56(%rbp), %ecx ## 4-byte Reload
andl %ecx, %eax
cmpl $0, %eax
je LBB0_13
## %bb.12:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
LBB0_13:
movl -32(%rbp), %eax
movl %eax, -60(%rbp) ## 4-byte Spill
movl $18, -16(%rbp)
cmpl $32, -16(%rbp)
jle LBB0_15
## %bb.14:
xorl %eax, %eax
movl %eax, -64(%rbp) ## 4-byte Spill
jmp LBB0_16
LBB0_15:
movl -16(%rbp), %ecx
subl $1, %ecx
movl $1, %eax
## kill: def $cl killed $ecx
shll %cl, %eax
movl %eax, -64(%rbp) ## 4-byte Spill
LBB0_16:
movl -60(%rbp), %eax ## 4-byte Reload
movl -64(%rbp), %ecx ## 4-byte Reload
andl %ecx, %eax
cmpl $0, %eax
je LBB0_21
## %bb.17:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -28(%rbp)
movl $18, -20(%rbp)
cmpl $32, -20(%rbp)
jle LBB0_19
## %bb.18:
xorl %eax, %eax
movl %eax, -68(%rbp) ## 4-byte Spill
jmp LBB0_20
LBB0_19:
movl -20(%rbp), %ecx
subl $1, %ecx
movl $1, %eax
## kill: def $cl killed $ecx
shll %cl, %eax
movl %eax, -68(%rbp) ## 4-byte Spill
LBB0_20:
movl -68(%rbp), %eax ## 4-byte Reload
orl -28(%rbp), %eax
movl %eax, -28(%rbp)
movl $2, %edi
leaq -28(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq _sigprocmask
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
LBB0_21:
movl $0, -24(%rbp)
LBB0_22:
movl -24(%rbp), %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "SLEEP_SECS"
L_.str.1: ## @.str.1
.asciz "SLEEP_SECS not defined in env\n"
L_.str.2: ## @.str.2
.asciz "SIGINT recibida\n"
L_.str.3: ## @.str.3
.asciz "SIGTSTP recibida\n"
L_.str.4: ## @.str.4
.asciz "El proceso contin\303\272a despues de desbloquear SIGTSTP\n"
.subsections_via_symbols
| the_stack_data/146397.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _doPins ; -- Begin function doPins
.p2align 2
_doPins: ; @doPins
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "The pins command has been deprecated - sorry. Please use the\n"
l_.str.1: ; @.str.1
.asciz " gpio readall\n"
l_.str.2: ; @.str.2
.asciz "command to get a list of the pinnouts for your Pi.\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _doPins ## -- Begin function doPins
.p2align 4, 0x90
_doPins: ## @doPins
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "The pins command has been deprecated - sorry. Please use the\n"
L_.str.1: ## @.str.1
.asciz " gpio readall\n"
L_.str.2: ## @.str.2
.asciz "command to get a list of the pinnouts for your Pi.\n"
.subsections_via_symbols
| the_stack_data/107953039.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #16] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
str x0, [sp, #8] ; 8-byte Folded Spill
bl _scanf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #12
str x8, [x9]
bl _scanf
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
add w8, w8, w9
scvtf d0, w8
fmov d1, #2.00000000
fdiv d0, d0, d1
mov x8, sp
str d0, [x8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr w0, [sp, #16] ; 4-byte Folded Reload
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "input a number x :"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "input a number y :"
l_.str.3: ; @.str.3
.asciz "x\345\222\214y\347\232\204\345\271\263\345\235\207\345\200\274\346\230\257%f \n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI0_0:
.quad 0x4000000000000000 ## double 2
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
movl -8(%rbp), %eax
addl -12(%rbp), %eax
cvtsi2sd %eax, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
leaq L_.str.3(%rip), %rdi
movb $1, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "input a number x :"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "input a number y :"
L_.str.3: ## @.str.3
.asciz "x\345\222\214y\347\232\204\345\271\263\345\235\207\345\200\274\346\230\257%f \n"
.subsections_via_symbols
| the_stack_data/28262489.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/127338.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/82170.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _digit ; -- Begin function digit
.p2align 2
_digit: ; @digit
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #10
cset w8, lt
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
mov w9, #10
sdiv w8, w8, w9
str w8, [sp, #12]
b LBB0_1
LBB0_3:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fopen
stur x0, [x29, #-16]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_5 Depth 2
ldur x0, [x29, #-16]
bl _feof
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB1_11
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldur x0, [x29, #-16]
mov x9, sp
add x8, sp, #24
str x8, [x9]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fscanf
ldr w8, [sp, #24]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
b LBB1_11
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
str wzr, [sp, #16]
str wzr, [sp, #12]
stur wzr, [x29, #-20]
b LBB1_5
LBB1_5: ; Parent Loop BB1_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_10
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_5 Depth=2
ldur x0, [x29, #-16]
mov x9, sp
add x8, sp, #20
str x8, [x9]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fscanf
ldr w0, [sp, #20]
bl _digit
str w0, [sp, #8]
ldr w8, [sp, #8]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB1_8
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_5 Depth=2
ldr w8, [sp, #8]
str w8, [sp, #16]
ldr w8, [sp, #20]
str w8, [sp, #12]
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_5 Depth=2
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_5 Depth=2
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB1_5
LBB1_10: ; in Loop: Header=BB1_1 Depth=1
ldr w9, [sp, #12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB1_1
LBB1_11:
ldur x0, [x29, #-16]
bl _fclose
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "broevi.txt"
l_.str.1: ; @.str.1
.asciz "r"
l_.str.2: ; @.str.2
.asciz "%d"
l_.str.3: ; @.str.3
.asciz "%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _digit ## -- Begin function digit
.p2align 4, 0x90
_digit: ## @digit
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $10, -4(%rbp)
jl LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -4(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, -4(%rbp)
jmp LBB0_1
LBB0_3:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq L_.str.1(%rip), %rsi
callq _fopen
movq %rax, -16(%rbp)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_5 Depth 2
movq -16(%rbp), %rdi
callq _feof
cmpl $0, %eax
setne %al
xorb $-1, %al
testb $1, %al
jne LBB1_2
jmp LBB1_11
LBB1_2: ## in Loop: Header=BB1_1 Depth=1
movq -16(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
leaq -24(%rbp), %rdx
movb $0, %al
callq _fscanf
cmpl $0, -24(%rbp)
jne LBB1_4
## %bb.3:
jmp LBB1_11
LBB1_4: ## in Loop: Header=BB1_1 Depth=1
movl $0, -32(%rbp)
movl $0, -36(%rbp)
movl $0, -20(%rbp)
LBB1_5: ## Parent Loop BB1_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -20(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB1_10
## %bb.6: ## in Loop: Header=BB1_5 Depth=2
movq -16(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
leaq -28(%rbp), %rdx
movb $0, %al
callq _fscanf
movl -28(%rbp), %edi
callq _digit
movl %eax, -40(%rbp)
movl -40(%rbp), %eax
cmpl -32(%rbp), %eax
jle LBB1_8
## %bb.7: ## in Loop: Header=BB1_5 Depth=2
movl -40(%rbp), %eax
movl %eax, -32(%rbp)
movl -28(%rbp), %eax
movl %eax, -36(%rbp)
LBB1_8: ## in Loop: Header=BB1_5 Depth=2
jmp LBB1_9
LBB1_9: ## in Loop: Header=BB1_5 Depth=2
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB1_5
LBB1_10: ## in Loop: Header=BB1_1 Depth=1
movl -36(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB1_1
LBB1_11:
movq -16(%rbp), %rdi
callq _fclose
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "broevi.txt"
L_.str.1: ## @.str.1
.asciz "r"
L_.str.2: ## @.str.2
.asciz "%d"
L_.str.3: ## @.str.3
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/97012857.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
str x1, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _getchar
str w0, [sp, #12]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w0, [sp, #12]
bl _putchar
b LBB0_1
LBB0_3:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "EOF\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
callq _getchar
movl %eax, -20(%rbp)
cmpl $-1, %eax
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %edi
callq _putchar
jmp LBB0_1
LBB0_3:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "EOF\n"
.subsections_via_symbols
| the_stack_data/111079036.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_iterative_factorial ; -- Begin function ft_iterative_factorial
.p2align 2
_ft_iterative_factorial: ; @ft_iterative_factorial
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #8]
mov w8, #1
str w8, [sp, #4]
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
str wzr, [sp, #12]
b LBB0_6
LBB0_2:
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, lt
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr w9, [sp, #8]
ldr w8, [sp, #4]
mul w8, w8, w9
str w8, [sp, #4]
ldr w8, [sp, #8]
subs w8, w8, #1
str w8, [sp, #8]
b LBB0_3
LBB0_5:
ldr w8, [sp, #4]
str w8, [sp, #12]
b LBB0_6
LBB0_6:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_iterative_factorial ## -- Begin function ft_iterative_factorial
.p2align 4, 0x90
_ft_iterative_factorial: ## @ft_iterative_factorial
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -8(%rbp)
movl $1, -12(%rbp)
cmpl $0, -8(%rbp)
jge LBB0_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB0_6
LBB0_2:
jmp LBB0_3
LBB0_3: ## =>This Inner Loop Header: Depth=1
cmpl $1, -8(%rbp)
jl LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movl -8(%rbp), %eax
imull -12(%rbp), %eax
movl %eax, -12(%rbp)
movl -8(%rbp), %eax
addl $-1, %eax
movl %eax, -8(%rbp)
jmp LBB0_3
LBB0_5:
movl -12(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_6:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/72011886.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mystrcpy ; -- Begin function mystrcpy
.p2align 2
_mystrcpy: ; @mystrcpy
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str x1, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp]
add x9, x8, #1
str x9, [sp]
ldrb w8, [x8]
ldr x9, [sp, #8]
add x10, x9, #1
str x10, [sp, #8]
strb w8, [x9]
b LBB0_1
LBB0_3:
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _deCode ; -- Begin function deCode
.p2align 2
_deCode: ; @deCode
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
strb w0, [sp, #15]
ldrsb w8, [sp, #15]
subs w8, w8, #65
; kill: def $x8 killed $w8
str x8, [sp] ; 8-byte Folded Spill
subs x8, x8, #25
cset w8, hi
tbnz w8, #0, LBB1_9
; %bb.1:
ldr x11, [sp] ; 8-byte Folded Reload
adrp x10, lJTI1_0@PAGE
add x10, x10, lJTI1_0@PAGEOFF
Ltmp2:
adr x8, Ltmp2
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB1_2:
strb wzr, [sp, #15]
b LBB1_10
LBB1_3:
mov w8, #49
strb w8, [sp, #15]
b LBB1_10
LBB1_4:
mov w8, #50
strb w8, [sp, #15]
b LBB1_10
LBB1_5:
mov w8, #51
strb w8, [sp, #15]
b LBB1_10
LBB1_6:
mov w8, #52
strb w8, [sp, #15]
b LBB1_10
LBB1_7:
mov w8, #53
strb w8, [sp, #15]
b LBB1_10
LBB1_8:
mov w8, #54
strb w8, [sp, #15]
b LBB1_10
LBB1_9:
strb wzr, [sp, #15]
b LBB1_10
LBB1_10:
ldrsb w0, [sp, #15]
add sp, sp, #16
ret
.cfi_endproc
.p2align 2
lJTI1_0:
.long LBB1_2-Ltmp2
.long LBB1_3-Ltmp2
.long LBB1_4-Ltmp2
.long LBB1_5-Ltmp2
.long LBB1_2-Ltmp2
.long LBB1_3-Ltmp2
.long LBB1_4-Ltmp2
.long LBB1_2-Ltmp2
.long LBB1_2-Ltmp2
.long LBB1_4-Ltmp2
.long LBB1_4-Ltmp2
.long LBB1_6-Ltmp2
.long LBB1_7-Ltmp2
.long LBB1_7-Ltmp2
.long LBB1_2-Ltmp2
.long LBB1_3-Ltmp2
.long LBB1_4-Ltmp2
.long LBB1_8-Ltmp2
.long LBB1_4-Ltmp2
.long LBB1_5-Ltmp2
.long LBB1_2-Ltmp2
.long LBB1_3-Ltmp2
.long LBB1_2-Ltmp2
.long LBB1_4-Ltmp2
.long LBB1_2-Ltmp2
.long LBB1_4-Ltmp2
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #8] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
bl _solve
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function solve
_solve: ; @solve
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
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
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _puts
b LBB3_1
LBB3_1: ; =>This Loop Header: Depth=1
; Child Loop BB3_3 Depth 2
sub x0, x29, #29
bl _gets
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB3_11
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
add x0, sp, #60
str x0, [sp, #16] ; 8-byte Folded Spill
adrp x1, l___const.solve.output@PAGE
add x1, x1, l___const.solve.output@PAGEOFF
mov x2, #39
bl _memcpy
ldr x8, [sp, #16] ; 8-byte Folded Reload
add x0, x8, #9
sub x1, x29, #29
str x1, [sp, #8] ; 8-byte Folded Spill
bl _mystrcpy
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x9, [sp, #48]
add x9, x8, #38
str x9, [sp, #32]
add x8, x8, #34
str x8, [sp, #40]
ldr x8, [sp, #48]
add x9, x8, #1
str x9, [sp, #48]
ldrb w8, [x8]
ldr x9, [sp, #40]
add x10, x9, #1
str x10, [sp, #40]
strb w8, [x9]
b LBB3_3
LBB3_3: ; Parent Loop BB3_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #48]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB3_10
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_3 Depth=2
ldr x8, [sp, #48]
ldrsb w0, [x8]
bl _deCode
strb w0, [sp, #31]
ldrsb w8, [sp, #31]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB3_9
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_3 Depth=2
ldrsb w8, [sp, #31]
str w8, [sp, #4] ; 4-byte Folded Spill
ldr x8, [sp, #48]
ldursb w0, [x8, #-1]
bl _deCode
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, w0, sxtb
cset w8, eq
tbnz w8, #0, LBB3_9
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_3 Depth=2
ldrb w8, [sp, #31]
ldr x9, [sp, #40]
add x10, x9, #1
str x10, [sp, #40]
strb w8, [x9]
ldr x8, [sp, #40]
ldr x9, [sp, #32]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB3_8
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_1 Depth=1
b LBB3_10
LBB3_8: ; in Loop: Header=BB3_3 Depth=2
b LBB3_9
LBB3_9: ; in Loop: Header=BB3_3 Depth=2
ldr x8, [sp, #48]
add x8, x8, #1
str x8, [sp, #48]
b LBB3_3
LBB3_10: ; in Loop: Header=BB3_1 Depth=1
add x0, sp, #60
bl _puts
b LBB3_1
LBB3_11:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _puts
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB3_13
b LBB3_12
LBB3_12:
bl ___stack_chk_fail
LBB3_13:
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
add sp, sp, #144
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "NAME SOUNDEX CODE"
l___const.solve.output: ; @__const.solve.output
.asciz " 000"
l_.str.1: ; @.str.1
.asciz " END OF OUTPUT"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mystrcpy ## -- Begin function mystrcpy
.p2align 4, 0x90
_mystrcpy: ## @mystrcpy
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -16(%rbp)
movb (%rax), %cl
movq -8(%rbp), %rax
movq %rax, %rdx
addq $1, %rdx
movq %rdx, -8(%rbp)
movb %cl, (%rax)
jmp LBB0_1
LBB0_3:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _deCode ## -- Begin function deCode
.p2align 4, 0x90
_deCode: ## @deCode
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movb %dil, %al
movb %al, -1(%rbp)
movsbl -1(%rbp), %eax
addl $-65, %eax
movl %eax, %ecx
movq %rcx, -16(%rbp) ## 8-byte Spill
subl $25, %eax
ja LBB1_8
## %bb.10:
movq -16(%rbp), %rax ## 8-byte Reload
leaq LJTI1_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB1_1:
movb $0, -1(%rbp)
jmp LBB1_9
LBB1_2:
movb $49, -1(%rbp)
jmp LBB1_9
LBB1_3:
movb $50, -1(%rbp)
jmp LBB1_9
LBB1_4:
movb $51, -1(%rbp)
jmp LBB1_9
LBB1_5:
movb $52, -1(%rbp)
jmp LBB1_9
LBB1_6:
movb $53, -1(%rbp)
jmp LBB1_9
LBB1_7:
movb $54, -1(%rbp)
jmp LBB1_9
LBB1_8:
movb $0, -1(%rbp)
LBB1_9:
movsbl -1(%rbp), %eax
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L1_0_set_1, LBB1_1-LJTI1_0
.set L1_0_set_2, LBB1_2-LJTI1_0
.set L1_0_set_3, LBB1_3-LJTI1_0
.set L1_0_set_4, LBB1_4-LJTI1_0
.set L1_0_set_5, LBB1_5-LJTI1_0
.set L1_0_set_6, LBB1_6-LJTI1_0
.set L1_0_set_7, LBB1_7-LJTI1_0
LJTI1_0:
.long L1_0_set_1
.long L1_0_set_2
.long L1_0_set_3
.long L1_0_set_4
.long L1_0_set_1
.long L1_0_set_2
.long L1_0_set_3
.long L1_0_set_1
.long L1_0_set_1
.long L1_0_set_3
.long L1_0_set_3
.long L1_0_set_5
.long L1_0_set_6
.long L1_0_set_6
.long L1_0_set_1
.long L1_0_set_2
.long L1_0_set_3
.long L1_0_set_7
.long L1_0_set_3
.long L1_0_set_4
.long L1_0_set_1
.long L1_0_set_2
.long L1_0_set_1
.long L1_0_set_3
.long L1_0_set_1
.long L1_0_set_3
.end_data_region
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
callq _solve
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function solve
_solve: ## @solve
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $112, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq L_.str(%rip), %rdi
callq _puts
LBB3_1: ## =>This Loop Header: Depth=1
## Child Loop BB3_3 Depth 2
leaq -32(%rbp), %rdi
callq _gets
cmpq $0, %rax
je LBB3_11
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
leaq -80(%rbp), %rdi
leaq L___const.solve.output(%rip), %rsi
movl $39, %edx
callq _memcpy
leaq -80(%rbp), %rdi
addq $9, %rdi
leaq -32(%rbp), %rsi
callq _mystrcpy
leaq -32(%rbp), %rax
movq %rax, -88(%rbp)
leaq -80(%rbp), %rax
addq $38, %rax
movq %rax, -104(%rbp)
leaq -80(%rbp), %rax
addq $34, %rax
movq %rax, -96(%rbp)
movq -88(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -88(%rbp)
movb (%rax), %cl
movq -96(%rbp), %rax
movq %rax, %rdx
addq $1, %rdx
movq %rdx, -96(%rbp)
movb %cl, (%rax)
LBB3_3: ## Parent Loop BB3_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -88(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB3_10
## %bb.4: ## in Loop: Header=BB3_3 Depth=2
movq -88(%rbp), %rax
movsbl (%rax), %edi
callq _deCode
movb %al, -105(%rbp)
movsbl -105(%rbp), %eax
cmpl $0, %eax
je LBB3_9
## %bb.5: ## in Loop: Header=BB3_3 Depth=2
movsbl -105(%rbp), %eax
movl %eax, -112(%rbp) ## 4-byte Spill
movq -88(%rbp), %rax
movsbl -1(%rax), %edi
callq _deCode
movb %al, %cl
movl -112(%rbp), %eax ## 4-byte Reload
movsbl %cl, %ecx
cmpl %ecx, %eax
je LBB3_9
## %bb.6: ## in Loop: Header=BB3_3 Depth=2
movb -105(%rbp), %cl
movq -96(%rbp), %rax
movq %rax, %rdx
addq $1, %rdx
movq %rdx, -96(%rbp)
movb %cl, (%rax)
movq -96(%rbp), %rax
cmpq -104(%rbp), %rax
jne LBB3_8
## %bb.7: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_10
LBB3_8: ## in Loop: Header=BB3_3 Depth=2
jmp LBB3_9
LBB3_9: ## in Loop: Header=BB3_3 Depth=2
movq -88(%rbp), %rax
addq $1, %rax
movq %rax, -88(%rbp)
jmp LBB3_3
LBB3_10: ## in Loop: Header=BB3_1 Depth=1
leaq -80(%rbp), %rdi
callq _puts
jmp LBB3_1
LBB3_11:
leaq L_.str.1(%rip), %rdi
callq _puts
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB3_13
## %bb.12:
addq $112, %rsp
popq %rbp
retq
LBB3_13:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "NAME SOUNDEX CODE"
.p2align 4 ## @__const.solve.output
L___const.solve.output:
.asciz " 000"
L_.str.1: ## @.str.1
.asciz " END OF OUTPUT"
.subsections_via_symbols
| the_stack_data/123705.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _f ; -- Begin function f
.p2align 2
_f: ; @f
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
adrp x8, _buf@GOTPAGE
ldr x8, [x8, _buf@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr w8, [sp, #12]
subs w8, w8, #256
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #8]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #8]
subs w8, w8, #8
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr x9, [sp] ; 8-byte Folded Reload
ldrsw x8, [sp, #8]
ldr w8, [x9, x8, lsl #2]
add w8, w8, #1
ldr w10, [sp, #8]
add w10, w10, #1
str w8, [x9, w10, sxtw #2]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_1
LBB0_8:
ldr x8, [sp] ; 8-byte Folded Reload
ldr w0, [x8, #40]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _buf,9216,2 ; @buf
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _f ## -- Begin function f
.p2align 4, 0x90
_f: ## @f
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $0, -4(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
cmpl $256, -4(%rbp) ## imm = 0x100
jge LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -8(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $8, -8(%rbp)
jge LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movslq -8(%rbp), %rcx
movq _buf@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %edx
addl $1, %edx
movl -8(%rbp), %eax
addl $1, %eax
movslq %eax, %rcx
movq _buf@GOTPCREL(%rip), %rax
movl %edx, (%rax,%rcx,4)
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_3
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB0_1
LBB0_8:
movq _buf@GOTPCREL(%rip), %rax
movl 40(%rax), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _buf,9216,4 ## @buf
.subsections_via_symbols
| the_stack_data/1023963.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _t_fun ; -- Begin function t_fun
.p2align 2
_t_fun: ; @t_fun
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
mov x0, #0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
mov w9, #14496
movk w9, #1, lsl #16
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #19, lsl #12 ; =77824
sub sp, sp, #2208
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #20]
str wzr, [sp, #16]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
mov w9, #10000
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldrsw x9, [sp, #16]
add x8, sp, #24
add x0, x8, x9, lsl #3
mov x3, #0
mov x1, x3
adrp x2, _t_fun@PAGE
add x2, x2, _t_fun@PAGEOFF
bl _pthread_create
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB1_1
LBB1_4:
str wzr, [sp, #12]
b LBB1_5
LBB1_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
mov w9, #10000
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_8
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_5 Depth=1
ldrsw x9, [sp, #12]
add x8, sp, #24
ldr x0, [x8, x9, lsl #3]
mov x1, #0
bl _pthread_join
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_5 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB1_5
LBB1_8:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
bl ___stack_chk_fail
LBB1_10:
mov w0, #0
add sp, sp, #19, lsl #12 ; =77824
add sp, sp, #2208
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _t_fun ## -- Begin function t_fun
.p2align 4, 0x90
_t_fun: ## @t_fun
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
xorl %eax, %eax
## kill: def $rax killed $eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $80032, %eax ## imm = 0x138A0
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -80020(%rbp)
movl $0, -80024(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $10000, -80024(%rbp) ## imm = 0x2710
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movslq -80024(%rbp), %rax
leaq -80016(%rbp), %rdi
shlq $3, %rax
addq %rax, %rdi
xorl %eax, %eax
movl %eax, %ecx
leaq _t_fun(%rip), %rdx
movq %rcx, %rsi
callq _pthread_create
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -80024(%rbp), %eax
addl $1, %eax
movl %eax, -80024(%rbp)
jmp LBB1_1
LBB1_4:
movl $0, -80028(%rbp)
LBB1_5: ## =>This Inner Loop Header: Depth=1
cmpl $10000, -80028(%rbp) ## imm = 0x2710
jge LBB1_8
## %bb.6: ## in Loop: Header=BB1_5 Depth=1
movslq -80028(%rbp), %rax
movq -80016(%rbp,%rax,8), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_join
## %bb.7: ## in Loop: Header=BB1_5 Depth=1
movl -80028(%rbp), %eax
addl $1, %eax
movl %eax, -80028(%rbp)
jmp LBB1_5
LBB1_8:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_10
## %bb.9:
xorl %eax, %eax
addq $80032, %rsp ## imm = 0x138A0
popq %rbp
retq
LBB1_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/75138788.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _find2DImageInImage ; -- Begin function find2DImageInImage
.p2align 2
_find2DImageInImage: ; @find2DImageInImage
.cfi_startproc
; %bb.0:
sub sp, sp, #192
.cfi_def_cfa_offset 192
stp x29, x30, [sp, #176] ; 16-byte Folded Spill
add x29, sp, #176
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub x8, x29, #16
str x8, [sp, #16] ; 8-byte Folded Spill
ldr x9, [x29, #16]
str x0, [x8, #8]
str x1, [x8]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
stur x4, [x29, #-40]
stur x5, [x29, #-48]
stur x6, [x29, #-56]
stur x7, [x29, #-64]
stur x9, [x29, #-72]
ldr x8, [x8]
ldur x9, [x29, #-48]
subs x8, x8, x9
add x8, x8, #1
stur x8, [x29, #-80]
ldur x8, [x29, #-24]
ldur x9, [x29, #-56]
subs x8, x8, x9
add x8, x8, #1
str x8, [sp, #88]
ldur x9, [x29, #-80]
mov x8, #4
mul x8, x8, x9
ldur x9, [x29, #-24]
mul x0, x8, x9
bl _malloc
str x0, [sp, #80]
str xzr, [sp, #56]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #56]
ldur x9, [x29, #-56]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-48]
mov x0, x8
ldur x8, [x29, #-40]
ldur x9, [x29, #-64]
ldr x10, [sp, #56]
mul x9, x9, x10
add x2, x8, x9, lsl #2
ldur x8, [x29, #-48]
mov x4, x8
ldr x8, [sp, #80]
ldur x9, [x29, #-80]
ldr x10, [sp, #56]
mul x9, x9, x10
add x5, x8, x9, lsl #2
mov w1, #65537
mov x6, #1
mov x3, x6
bl _calculateRollingHash
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #56]
add x8, x8, #1
str x8, [sp, #56]
b LBB0_1
LBB0_4:
ldur x8, [x29, #-56]
mov x0, x8
ldr x2, [sp, #80]
ldur x3, [x29, #-80]
ldur x8, [x29, #-56]
mov x4, x8
mov w1, #257
add x5, sp, #76
mov x6, #1
bl _calculateRollingHash
str xzr, [sp, #56]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #56]
ldur x9, [x29, #-24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldur x9, [x29, #-48]
mov x0, x9
ldr x9, [x8, #8]
ldur x10, [x29, #-32]
ldr x11, [sp, #56]
mul x10, x10, x11
add x2, x9, x10, lsl #2
ldr x8, [x8]
mov x4, x8
ldr x8, [sp, #80]
ldur x9, [x29, #-80]
ldr x10, [sp, #56]
mul x9, x9, x10
add x5, x8, x9, lsl #2
mov w1, #65537
mov x6, #1
mov x3, x6
bl _calculateRollingHash
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #56]
add x8, x8, #1
str x8, [sp, #56]
b LBB0_5
LBB0_8:
str xzr, [sp, #64]
b LBB0_9
LBB0_9: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #64]
ldur x9, [x29, #-80]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_12
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=1
ldur x8, [x29, #-56]
mov x0, x8
ldr x8, [sp, #80]
ldr x9, [sp, #64]
add x2, x8, x9, lsl #2
ldur x3, [x29, #-80]
ldur x8, [x29, #-24]
mov x4, x8
ldr x8, [sp, #80]
ldr x9, [sp, #64]
add x5, x8, x9, lsl #2
ldur x6, [x29, #-80]
mov w1, #257
bl _calculateRollingHash
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_9 Depth=1
ldr x8, [sp, #64]
add x8, x8, #1
str x8, [sp, #64]
b LBB0_9
LBB0_12:
ldr x8, [sp, #80]
str x8, [sp, #48]
str xzr, [sp, #56]
b LBB0_13
LBB0_13: ; =>This Loop Header: Depth=1
; Child Loop BB0_15 Depth 2
; Child Loop BB0_18 Depth 3
; Child Loop BB0_22 Depth 4
ldr x8, [sp, #56]
ldr x9, [sp, #88]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_36
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=1
str xzr, [sp, #64]
b LBB0_15
LBB0_15: ; Parent Loop BB0_13 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_18 Depth 3
; Child Loop BB0_22 Depth 4
ldr x8, [sp, #64]
ldur x9, [x29, #-80]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_34
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_15 Depth=2
ldr x8, [sp, #48]
ldr w8, [x8]
ldr w9, [sp, #76]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_32
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_15 Depth=2
mov w8, #1
str w8, [sp, #28]
str xzr, [sp, #32]
b LBB0_18
LBB0_18: ; Parent Loop BB0_13 Depth=1
; Parent Loop BB0_15 Depth=2
; => This Loop Header: Depth=3
; Child Loop BB0_22 Depth 4
ldr w8, [sp, #28]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_18 Depth=3
ldr x8, [sp, #32]
ldur x9, [x29, #-56]
subs x8, x8, x9
cset w8, lo
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_18 Depth=3
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB0_29
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_18 Depth=3
str xzr, [sp, #40]
b LBB0_22
LBB0_22: ; Parent Loop BB0_13 Depth=1
; Parent Loop BB0_15 Depth=2
; Parent Loop BB0_18 Depth=3
; => This Inner Loop Header: Depth=4
ldr x8, [sp, #40]
ldur x9, [x29, #-48]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_27
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_22 Depth=4
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-40]
ldr x10, [sp, #32]
ldur x11, [x29, #-64]
mul x10, x10, x11
ldr x11, [sp, #40]
add x10, x10, x11
ldr w8, [x8, x10, lsl #2]
ldr x9, [x9, #8]
ldr x10, [sp, #56]
ldr x11, [sp, #32]
add x10, x10, x11
ldur x11, [x29, #-32]
mul x10, x10, x11
ldr x11, [sp, #64]
ldr x12, [sp, #40]
add x11, x11, x12
add x10, x10, x11
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_25
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_18 Depth=3
str wzr, [sp, #28]
b LBB0_27
LBB0_25: ; in Loop: Header=BB0_22 Depth=4
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_22 Depth=4
ldr x8, [sp, #40]
add x8, x8, #1
str x8, [sp, #40]
b LBB0_22
LBB0_27: ; in Loop: Header=BB0_18 Depth=3
b LBB0_28
LBB0_28: ; in Loop: Header=BB0_18 Depth=3
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB0_18
LBB0_29: ; in Loop: Header=BB0_15 Depth=2
ldr w8, [sp, #28]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_31
b LBB0_30
LBB0_30: ; in Loop: Header=BB0_15 Depth=2
ldur x8, [x29, #-72]
ldr x0, [sp, #64]
ldr x1, [sp, #56]
blr x8
b LBB0_31
LBB0_31: ; in Loop: Header=BB0_15 Depth=2
b LBB0_32
LBB0_32: ; in Loop: Header=BB0_15 Depth=2
ldr x8, [sp, #48]
add x8, x8, #4
str x8, [sp, #48]
b LBB0_33
LBB0_33: ; in Loop: Header=BB0_15 Depth=2
ldr x8, [sp, #64]
add x8, x8, #1
str x8, [sp, #64]
b LBB0_15
LBB0_34: ; in Loop: Header=BB0_13 Depth=1
b LBB0_35
LBB0_35: ; in Loop: Header=BB0_13 Depth=1
ldr x8, [sp, #56]
add x8, x8, #1
str x8, [sp, #56]
b LBB0_13
LBB0_36:
ldr x0, [sp, #80]
bl _free
ldp x29, x30, [sp, #176] ; 16-byte Folded Reload
add sp, sp, #192
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function calculateRollingHash
_calculateRollingHash: ; @calculateRollingHash
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
stur w1, [x29, #-8]
stur x2, [x29, #-16]
stur x3, [x29, #-24]
stur w4, [x29, #-28]
str x5, [sp, #40]
str x6, [sp, #32]
str wzr, [sp, #28]
ldur w0, [x29, #-8]
ldur w8, [x29, #-4]
subs w8, w8, #1
mov x1, x8
bl _uint32pow
str w0, [sp, #20]
str xzr, [sp, #8]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldur w9, [x29, #-4]
; kill: def $x9 killed $w9
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #28]
ldur w9, [x29, #-8]
mul w8, w8, w9
ldur x9, [x29, #-16]
ldr w9, [x9]
add w8, w8, w9
str w8, [sp, #28]
ldur x9, [x29, #-24]
ldur x8, [x29, #-16]
add x8, x8, x9, lsl #2
stur x8, [x29, #-16]
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB1_1
LBB1_4:
ldr w8, [sp, #28]
str w8, [sp, #24]
ldr w8, [sp, #20]
ldur x9, [x29, #-16]
ldur x10, [x29, #-24]
ldur w11, [x29, #-4]
; kill: def $x11 killed $w11
mneg x10, x10, x11
ldr w9, [x9, x10, lsl #2]
mul w9, w8, w9
ldr w8, [sp, #28]
subs w8, w8, w9
str w8, [sp, #28]
ldr w8, [sp, #24]
ldr x9, [sp, #40]
str w8, [x9]
ldr x9, [sp, #32]
ldr x8, [sp, #40]
add x8, x8, x9, lsl #2
str x8, [sp, #40]
ldur w8, [x29, #-4]
; kill: def $x8 killed $w8
str x8, [sp, #8]
b LBB1_5
LBB1_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldur w9, [x29, #-28]
; kill: def $x9 killed $w9
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB1_8
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_5 Depth=1
ldr w8, [sp, #28]
ldur w9, [x29, #-8]
mul w8, w8, w9
ldur x9, [x29, #-16]
ldr w9, [x9]
add w8, w8, w9
str w8, [sp, #28]
ldur x9, [x29, #-24]
ldur x8, [x29, #-16]
add x8, x8, x9, lsl #2
stur x8, [x29, #-16]
ldr w8, [sp, #28]
str w8, [sp, #24]
ldr w8, [sp, #20]
ldur x9, [x29, #-16]
ldur x10, [x29, #-24]
ldur w11, [x29, #-4]
; kill: def $x11 killed $w11
mneg x10, x10, x11
ldr w9, [x9, x10, lsl #2]
mul w9, w8, w9
ldr w8, [sp, #28]
subs w8, w8, w9
str w8, [sp, #28]
ldr w8, [sp, #24]
ldr x9, [sp, #40]
str w8, [x9]
ldr x9, [sp, #32]
ldr x8, [sp, #40]
add x8, x8, x9, lsl #2
str x8, [sp, #40]
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_5 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB1_5
LBB1_8:
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function uint32pow
_uint32pow: ; @uint32pow
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #28]
str x1, [sp, #16]
mov w8, #1
str w8, [sp, #12]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_5
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #16]
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldr w9, [sp, #28]
ldr w8, [sp, #12]
mul w8, w8, w9
str w8, [sp, #12]
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_1 Depth=1
ldr w9, [sp, #28]
ldr w8, [sp, #28]
mul w8, w8, w9
str w8, [sp, #28]
ldr x8, [sp, #16]
lsr x8, x8, #1
str x8, [sp, #16]
b LBB2_1
LBB2_5:
ldr w0, [sp, #12]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.globl _hashXMultiplier ; @hashXMultiplier
.p2align 2
_hashXMultiplier:
.long 65537 ; 0x10001
.globl _hashYMultiplier ; @hashYMultiplier
.p2align 2
_hashYMultiplier:
.long 257 ; 0x101
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _find2DImageInImage ## -- Begin function find2DImageInImage
.p2align 4, 0x90
_find2DImageInImage: ## @find2DImageInImage
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $144, %rsp
movq 32(%rbp), %rax
movq 24(%rbp), %rax
movq 16(%rbp), %rax
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq %r9, -48(%rbp)
movq -16(%rbp), %rax
subq -48(%rbp), %rax
addq $1, %rax
movq %rax, -56(%rbp)
movq -24(%rbp), %rax
subq 16(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
movq -56(%rbp), %rdi
shlq $2, %rdi
imulq -24(%rbp), %rdi
callq _malloc
movq %rax, -72(%rbp)
movq $0, -96(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -96(%rbp), %rax
cmpq 16(%rbp), %rax
jae LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -48(%rbp), %rax
movl %eax, %edi
movq -40(%rbp), %rdx
movq 24(%rbp), %rax
imulq -96(%rbp), %rax
shlq $2, %rax
addq %rax, %rdx
movq -48(%rbp), %rax
movl %eax, %r8d
movq -72(%rbp), %r9
movq -56(%rbp), %rax
imulq -96(%rbp), %rax
shlq $2, %rax
addq %rax, %r9
movl $65537, %esi ## imm = 0x10001
movl $1, %ecx
movq $1, (%rsp)
callq _calculateRollingHash
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -96(%rbp), %rax
addq $1, %rax
movq %rax, -96(%rbp)
jmp LBB0_1
LBB0_4:
movq 16(%rbp), %rax
movl %eax, %edi
movq -72(%rbp), %rdx
movq -56(%rbp), %rcx
movq 16(%rbp), %rax
movl %eax, %r8d
movl $257, %esi ## imm = 0x101
leaq -76(%rbp), %r9
movq $1, (%rsp)
callq _calculateRollingHash
movq $0, -96(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movq -96(%rbp), %rax
cmpq -24(%rbp), %rax
jae LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -48(%rbp), %rax
movl %eax, %edi
movq -8(%rbp), %rdx
movq -32(%rbp), %rax
imulq -96(%rbp), %rax
shlq $2, %rax
addq %rax, %rdx
movq -16(%rbp), %rax
movl %eax, %r8d
movq -72(%rbp), %r9
movq -56(%rbp), %rax
imulq -96(%rbp), %rax
shlq $2, %rax
addq %rax, %r9
movl $65537, %esi ## imm = 0x10001
movl $1, %ecx
movq $1, (%rsp)
callq _calculateRollingHash
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movq -96(%rbp), %rax
addq $1, %rax
movq %rax, -96(%rbp)
jmp LBB0_5
LBB0_8:
movq $0, -88(%rbp)
LBB0_9: ## =>This Inner Loop Header: Depth=1
movq -88(%rbp), %rax
cmpq -56(%rbp), %rax
jae LBB0_12
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movq 16(%rbp), %rax
movl %eax, %edi
movq -72(%rbp), %rdx
movq -88(%rbp), %rax
shlq $2, %rax
addq %rax, %rdx
movq -56(%rbp), %rcx
movq -24(%rbp), %rax
movl %eax, %r8d
movq -72(%rbp), %r9
movq -88(%rbp), %rax
shlq $2, %rax
addq %rax, %r9
movq -56(%rbp), %rax
movl $257, %esi ## imm = 0x101
movq %rax, (%rsp)
callq _calculateRollingHash
## %bb.11: ## in Loop: Header=BB0_9 Depth=1
movq -88(%rbp), %rax
addq $1, %rax
movq %rax, -88(%rbp)
jmp LBB0_9
LBB0_12:
movq -72(%rbp), %rax
movq %rax, -104(%rbp)
movq $0, -96(%rbp)
LBB0_13: ## =>This Loop Header: Depth=1
## Child Loop BB0_15 Depth 2
## Child Loop BB0_18 Depth 3
## Child Loop BB0_22 Depth 4
movq -96(%rbp), %rax
cmpq -64(%rbp), %rax
jae LBB0_36
## %bb.14: ## in Loop: Header=BB0_13 Depth=1
movq $0, -88(%rbp)
LBB0_15: ## Parent Loop BB0_13 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_18 Depth 3
## Child Loop BB0_22 Depth 4
movq -88(%rbp), %rax
cmpq -56(%rbp), %rax
jae LBB0_34
## %bb.16: ## in Loop: Header=BB0_15 Depth=2
movq -104(%rbp), %rax
movl (%rax), %eax
cmpl -76(%rbp), %eax
jne LBB0_32
## %bb.17: ## in Loop: Header=BB0_15 Depth=2
movl $1, -124(%rbp)
movq $0, -120(%rbp)
LBB0_18: ## Parent Loop BB0_13 Depth=1
## Parent Loop BB0_15 Depth=2
## => This Loop Header: Depth=3
## Child Loop BB0_22 Depth 4
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, -124(%rbp)
movb %al, -125(%rbp) ## 1-byte Spill
je LBB0_20
## %bb.19: ## in Loop: Header=BB0_18 Depth=3
movq -120(%rbp), %rax
cmpq 16(%rbp), %rax
setb %al
movb %al, -125(%rbp) ## 1-byte Spill
LBB0_20: ## in Loop: Header=BB0_18 Depth=3
movb -125(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_21
jmp LBB0_29
LBB0_21: ## in Loop: Header=BB0_18 Depth=3
movq $0, -112(%rbp)
LBB0_22: ## Parent Loop BB0_13 Depth=1
## Parent Loop BB0_15 Depth=2
## Parent Loop BB0_18 Depth=3
## => This Inner Loop Header: Depth=4
movq -112(%rbp), %rax
cmpq -48(%rbp), %rax
jae LBB0_27
## %bb.23: ## in Loop: Header=BB0_22 Depth=4
movq -40(%rbp), %rax
movq -120(%rbp), %rcx
imulq 24(%rbp), %rcx
addq -112(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -8(%rbp), %rcx
movq -96(%rbp), %rdx
addq -120(%rbp), %rdx
imulq -32(%rbp), %rdx
movq -88(%rbp), %rsi
addq -112(%rbp), %rsi
addq %rsi, %rdx
cmpl (%rcx,%rdx,4), %eax
je LBB0_25
## %bb.24: ## in Loop: Header=BB0_18 Depth=3
movl $0, -124(%rbp)
jmp LBB0_27
LBB0_25: ## in Loop: Header=BB0_22 Depth=4
jmp LBB0_26
LBB0_26: ## in Loop: Header=BB0_22 Depth=4
movq -112(%rbp), %rax
addq $1, %rax
movq %rax, -112(%rbp)
jmp LBB0_22
LBB0_27: ## in Loop: Header=BB0_18 Depth=3
jmp LBB0_28
LBB0_28: ## in Loop: Header=BB0_18 Depth=3
movq -120(%rbp), %rax
addq $1, %rax
movq %rax, -120(%rbp)
jmp LBB0_18
LBB0_29: ## in Loop: Header=BB0_15 Depth=2
cmpl $0, -124(%rbp)
je LBB0_31
## %bb.30: ## in Loop: Header=BB0_15 Depth=2
movq 32(%rbp), %rax
movq -88(%rbp), %rdi
movq -96(%rbp), %rsi
callq *%rax
LBB0_31: ## in Loop: Header=BB0_15 Depth=2
jmp LBB0_32
LBB0_32: ## in Loop: Header=BB0_15 Depth=2
movq -104(%rbp), %rax
addq $4, %rax
movq %rax, -104(%rbp)
## %bb.33: ## in Loop: Header=BB0_15 Depth=2
movq -88(%rbp), %rax
addq $1, %rax
movq %rax, -88(%rbp)
jmp LBB0_15
LBB0_34: ## in Loop: Header=BB0_13 Depth=1
jmp LBB0_35
LBB0_35: ## in Loop: Header=BB0_13 Depth=1
movq -96(%rbp), %rax
addq $1, %rax
movq %rax, -96(%rbp)
jmp LBB0_13
LBB0_36:
movq -72(%rbp), %rdi
callq _free
addq $144, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function calculateRollingHash
_calculateRollingHash: ## @calculateRollingHash
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq 16(%rbp), %rax
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movq %rdx, -16(%rbp)
movq %rcx, -24(%rbp)
movl %r8d, -28(%rbp)
movq %r9, -40(%rbp)
movl $0, -44(%rbp)
movl -8(%rbp), %edi
movl -4(%rbp), %eax
subl $1, %eax
movl %eax, %eax
movl %eax, %esi
callq _uint32pow
movl %eax, -52(%rbp)
movq $0, -64(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movq -64(%rbp), %rax
movl -4(%rbp), %ecx
## kill: def $rcx killed $ecx
cmpq %rcx, %rax
jae LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -44(%rbp), %eax
imull -8(%rbp), %eax
movq -16(%rbp), %rcx
addl (%rcx), %eax
movl %eax, -44(%rbp)
movq -24(%rbp), %rax
shlq $2, %rax
addq -16(%rbp), %rax
movq %rax, -16(%rbp)
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movq -64(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
jmp LBB1_1
LBB1_4:
movl -44(%rbp), %eax
movl %eax, -48(%rbp)
movl -52(%rbp), %ecx
movq -16(%rbp), %rax
xorl %edx, %edx
## kill: def $rdx killed $edx
subq -24(%rbp), %rdx
movl -4(%rbp), %esi
## kill: def $rsi killed $esi
imulq %rsi, %rdx
imull (%rax,%rdx,4), %ecx
movl -44(%rbp), %eax
subl %ecx, %eax
movl %eax, -44(%rbp)
movl -48(%rbp), %ecx
movq -40(%rbp), %rax
movl %ecx, (%rax)
movq 16(%rbp), %rax
shlq $2, %rax
addq -40(%rbp), %rax
movq %rax, -40(%rbp)
movl -4(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -64(%rbp)
LBB1_5: ## =>This Inner Loop Header: Depth=1
movq -64(%rbp), %rax
movl -28(%rbp), %ecx
## kill: def $rcx killed $ecx
cmpq %rcx, %rax
jae LBB1_8
## %bb.6: ## in Loop: Header=BB1_5 Depth=1
movl -44(%rbp), %eax
imull -8(%rbp), %eax
movq -16(%rbp), %rcx
addl (%rcx), %eax
movl %eax, -44(%rbp)
movq -24(%rbp), %rax
shlq $2, %rax
addq -16(%rbp), %rax
movq %rax, -16(%rbp)
movl -44(%rbp), %eax
movl %eax, -48(%rbp)
movl -52(%rbp), %ecx
movq -16(%rbp), %rax
xorl %edx, %edx
## kill: def $rdx killed $edx
subq -24(%rbp), %rdx
movl -4(%rbp), %esi
## kill: def $rsi killed $esi
imulq %rsi, %rdx
imull (%rax,%rdx,4), %ecx
movl -44(%rbp), %eax
subl %ecx, %eax
movl %eax, -44(%rbp)
movl -48(%rbp), %ecx
movq -40(%rbp), %rax
movl %ecx, (%rax)
movq 16(%rbp), %rax
shlq $2, %rax
addq -40(%rbp), %rax
movq %rax, -40(%rbp)
## %bb.7: ## in Loop: Header=BB1_5 Depth=1
movq -64(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
jmp LBB1_5
LBB1_8:
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function uint32pow
_uint32pow: ## @uint32pow
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movl $1, -20(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16(%rbp)
je LBB2_5
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -16(%rbp), %rax
andq $1, %rax
cmpq $0, %rax
je LBB2_4
## %bb.3: ## in Loop: Header=BB2_1 Depth=1
movl -4(%rbp), %eax
imull -20(%rbp), %eax
movl %eax, -20(%rbp)
LBB2_4: ## in Loop: Header=BB2_1 Depth=1
movl -4(%rbp), %eax
imull -4(%rbp), %eax
movl %eax, -4(%rbp)
movq -16(%rbp), %rax
shrq $1, %rax
movq %rax, -16(%rbp)
jmp LBB2_1
LBB2_5:
movl -20(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__const
.globl _hashXMultiplier ## @hashXMultiplier
.p2align 2
_hashXMultiplier:
.long 65537 ## 0x10001
.globl _hashYMultiplier ## @hashYMultiplier
.p2align 2
_hashYMultiplier:
.long 257 ## 0x101
.subsections_via_symbols
| the_stack_data/40762066.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_tolower ; -- Begin function ft_tolower
.p2align 2
_ft_tolower: ; @ft_tolower
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_6
b LBB0_1
LBB0_1:
ldr w8, [sp, #8]
subs w8, w8, #255
cset w8, gt
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2:
ldr w8, [sp, #8]
subs w8, w8, #65
cset w8, lt
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3:
ldr w8, [sp, #8]
subs w8, w8, #90
cset w8, gt
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldr w8, [sp, #8]
add w8, w8, #32
str w8, [sp, #8]
str w8, [sp, #12]
b LBB0_8
LBB0_5:
b LBB0_7
LBB0_6:
ldr w8, [sp, #8]
str w8, [sp, #12]
b LBB0_8
LBB0_7:
ldr w8, [sp, #8]
str w8, [sp, #12]
b LBB0_8
LBB0_8:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_tolower ## -- Begin function ft_tolower
.p2align 4, 0x90
_ft_tolower: ## @ft_tolower
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -8(%rbp)
cmpl $0, -8(%rbp)
jl LBB0_6
## %bb.1:
cmpl $255, -8(%rbp)
jg LBB0_6
## %bb.2:
cmpl $65, -8(%rbp)
jl LBB0_5
## %bb.3:
cmpl $90, -8(%rbp)
jg LBB0_5
## %bb.4:
movl -8(%rbp), %eax
addl $32, %eax
movl %eax, -8(%rbp)
movl %eax, -4(%rbp)
jmp LBB0_8
LBB0_5:
jmp LBB0_7
LBB0_6:
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_8
LBB0_7:
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_8:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/165765091.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
add x0, sp, #8
bl _func2
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function func2
_func2: ; @func2
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp]
ldr x8, [sp]
ldr w8, [x8]
str w8, [sp, #12]
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
leaq -8(%rbp), %rdi
callq _func2
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function func2
_func2: ## @func2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/111077328.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x12, _verbose@GOTPAGE
ldr x12, [x12, _verbose@GOTPAGEOFF]
str x12, [sp, #40] ; 8-byte Folded Spill
adrp x10, _execfname@GOTPAGE
ldr x10, [x10, _execfname@GOTPAGEOFF]
str x10, [sp, #48] ; 8-byte Folded Spill
adrp x9, _outcfname@GOTPAGE
ldr x9, [x9, _outcfname@GOTPAGEOFF]
str x9, [sp, #56] ; 8-byte Folded Spill
adrp x8, _outmkname@GOTPAGE
ldr x8, [x8, _outmkname@GOTPAGEOFF]
str x8, [sp, #64] ; 8-byte Folded Spill
adrp x11, _objprefix@GOTPAGE
ldr x11, [x11, _objprefix@GOTPAGEOFF]
str x11, [sp, #72] ; 8-byte Folded Spill
adrp x11, _infilename@GOTPAGE
ldr x11, [x11, _infilename@GOTPAGEOFF]
stur x11, [x29, #-64] ; 8-byte Folded Spill
adrp x11, _confname@GOTPAGE
ldr x11, [x11, _confname@GOTPAGEOFF]
stur x11, [x29, #-56] ; 8-byte Folded Spill
adrp x11, _list_mode@GOTPAGE
ldr x11, [x11, _list_mode@GOTPAGEOFF]
stur x11, [x29, #-48] ; 8-byte Folded Spill
adrp x11, _optarg@GOTPAGE
ldr x11, [x11, _optarg@GOTPAGEOFF]
stur x11, [x29, #-40] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
mov w11, #1
str w11, [x12]
adrp x12, _readcache@GOTPAGE
ldr x12, [x12, _readcache@GOTPAGEOFF]
str w11, [x12]
strb wzr, [x10]
strb wzr, [x9]
strb wzr, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _getenv
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-24]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x9, [sp, #72] ; 8-byte Folded Reload
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
str x8, [x9]
b LBB0_6
LBB0_3:
ldur x0, [x29, #-24]
bl _strdup
ldr x9, [sp, #72] ; 8-byte Folded Reload
mov x8, x0
str x8, [x9]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
bl _out_of_memory
b LBB0_5
LBB0_5:
b LBB0_6
LBB0_6:
b LBB0_7
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldur w0, [x29, #-8]
ldur x1, [x29, #-16]
adrp x2, l_.str.2@PAGE
add x2, x2, l_.str.2@PAGEOFF
bl _getopt
stur w0, [x29, #-28]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_24
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=1
ldur w8, [x29, #-28]
subs w8, w8, #63
; kill: def $x8 killed $w8
str x8, [sp, #32] ; 8-byte Folded Spill
subs x8, x8, #50
cset w8, hi
tbnz w8, #0, LBB0_22
; %bb.9: ; in Loop: Header=BB0_7 Depth=1
ldr x11, [sp, #32] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_10: ; in Loop: Header=BB0_7 Depth=1
adrp x8, _readcache@GOTPAGE
ldr x8, [x8, _readcache@GOTPAGEOFF]
str wzr, [x8]
b LBB0_23
LBB0_11: ; in Loop: Header=BB0_7 Depth=1
adrp x9, _makeobj@PAGE
mov w8, #1
str w8, [x9, _makeobj@PAGEOFF]
b LBB0_23
LBB0_12: ; in Loop: Header=BB0_7 Depth=1
ldr x8, [sp, #40] ; 8-byte Folded Reload
str wzr, [x8]
b LBB0_23
LBB0_13: ; in Loop: Header=BB0_7 Depth=1
ldr x0, [sp, #64] ; 8-byte Folded Reload
ldur x8, [x29, #-40] ; 8-byte Folded Reload
ldr x1, [x8]
mov x3, #1024
mov x2, x3
bl ___strlcpy_chk
b LBB0_23
LBB0_14: ; in Loop: Header=BB0_7 Depth=1
ldur x8, [x29, #-40] ; 8-byte Folded Reload
ldr x0, [x8]
bl _strdup
ldr x9, [sp, #72] ; 8-byte Folded Reload
mov x8, x0
str x8, [x9]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_7 Depth=1
bl _out_of_memory
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_7 Depth=1
b LBB0_23
LBB0_17: ; in Loop: Header=BB0_7 Depth=1
ldur x8, [x29, #-40] ; 8-byte Folded Reload
ldr x1, [x8]
adrp x0, _outhdrname@GOTPAGE
ldr x0, [x0, _outhdrname@GOTPAGEOFF]
mov x3, #1024
mov x2, x3
bl ___strlcpy_chk
b LBB0_23
LBB0_18: ; in Loop: Header=BB0_7 Depth=1
ldr x0, [sp, #56] ; 8-byte Folded Reload
ldur x8, [x29, #-40] ; 8-byte Folded Reload
ldr x1, [x8]
mov x3, #1024
mov x2, x3
bl ___strlcpy_chk
b LBB0_23
LBB0_19: ; in Loop: Header=BB0_7 Depth=1
ldr x0, [sp, #48] ; 8-byte Folded Reload
ldur x8, [x29, #-40] ; 8-byte Folded Reload
ldr x1, [x8]
mov x3, #1024
mov x2, x3
bl ___strlcpy_chk
b LBB0_23
LBB0_20: ; in Loop: Header=BB0_7 Depth=1
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldur x10, [x29, #-48] ; 8-byte Folded Reload
ldr w9, [x10]
add w9, w9, #1
str w9, [x10]
str wzr, [x8]
b LBB0_23
LBB0_21: ; in Loop: Header=BB0_7 Depth=1
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_7 Depth=1
bl _usage
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_7 Depth=1
b LBB0_7
LBB0_24:
adrp x8, _optind@GOTPAGE
ldr x8, [x8, _optind@GOTPAGEOFF]
ldr w10, [x8]
ldur w9, [x29, #-8]
subs w9, w9, w10
stur w9, [x29, #-8]
ldrsw x9, [x8]
ldur x8, [x29, #-16]
add x8, x8, x9, lsl #3
stur x8, [x29, #-16]
ldur w8, [x29, #-8]
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_26
b LBB0_25
LBB0_25:
bl _usage
b LBB0_26
LBB0_26:
ldur x0, [x29, #-64] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
ldr x1, [x8]
mov x3, #1024
mov x2, x3
bl ___strlcpy_chk
ldur x0, [x29, #-64] ; 8-byte Folded Reload
mov w1, #47
bl _strrchr
mov x8, x0
stur x8, [x29, #-24]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_28
b LBB0_27
LBB0_27:
ldur x0, [x29, #-56] ; 8-byte Folded Reload
ldur x8, [x29, #-24]
add x1, x8, #1
mov x3, #1024
mov x2, x3
bl ___strlcpy_chk
b LBB0_29
LBB0_28:
ldur x1, [x29, #-64] ; 8-byte Folded Reload
ldur x0, [x29, #-56] ; 8-byte Folded Reload
mov x3, #1024
mov x2, x3
bl ___strlcpy_chk
b LBB0_29
LBB0_29:
ldur x0, [x29, #-56] ; 8-byte Folded Reload
mov w1, #46
bl _strrchr
mov x8, x0
stur x8, [x29, #-24]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_32
b LBB0_30
LBB0_30:
ldur x0, [x29, #-24]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_32
b LBB0_31
LBB0_31:
ldur x8, [x29, #-24]
strb wzr, [x8]
b LBB0_32
LBB0_32:
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldrb w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_34
b LBB0_33
LBB0_33:
ldr x0, [sp, #64] ; 8-byte Folded Reload
ldur x8, [x29, #-56] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
mov x3, #1024
mov x1, x3
mov w2, #0
adrp x4, l_.str.4@PAGE
add x4, x4, l_.str.4@PAGEOFF
bl ___snprintf_chk
b LBB0_34
LBB0_34:
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldrb w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_36
b LBB0_35
LBB0_35:
ldr x0, [sp, #56] ; 8-byte Folded Reload
ldur x8, [x29, #-56] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
mov x3, #1024
mov x1, x3
mov w2, #0
adrp x4, l_.str.5@PAGE
add x4, x4, l_.str.5@PAGEOFF
bl ___snprintf_chk
b LBB0_36
LBB0_36:
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldrb w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_38
b LBB0_37
LBB0_37:
ldr x0, [sp, #48] ; 8-byte Folded Reload
ldur x8, [x29, #-56] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
mov x3, #1024
mov x1, x3
mov w2, #0
adrp x4, l_.str.6@PAGE
add x4, x4, l_.str.6@PAGEOFF
bl ___snprintf_chk
b LBB0_38
LBB0_38:
ldur x8, [x29, #-56] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, _cachename@GOTPAGE
ldr x0, [x0, _cachename@GOTPAGEOFF]
mov x3, #1024
mov x1, x3
mov w2, #0
adrp x4, l_.str.7@PAGE
add x4, x4, l_.str.7@PAGEOFF
bl ___snprintf_chk
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _getenv
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_40
b LBB0_39
LBB0_39:
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _getenv
str x0, [sp, #24] ; 8-byte Folded Spill
b LBB0_41
LBB0_40:
adrp x8, l_.str.10@PAGE
add x8, x8, l_.str.10@PAGEOFF
str x8, [sp, #24] ; 8-byte Folded Spill
b LBB0_41
LBB0_41:
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x10, [sp, #24] ; 8-byte Folded Reload
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, _tempfname@GOTPAGE
ldr x0, [x0, _tempfname@GOTPAGEOFF]
mov x3, #1024
mov x1, x3
mov w2, #0
adrp x4, l_.str.8@PAGE
add x4, x4, l_.str.8@PAGEOFF
bl ___snprintf_chk
bl _parse_conf_file
ldur x8, [x29, #-48] ; 8-byte Folded Reload
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_43
b LBB0_42
LBB0_42:
adrp x8, _goterror@PAGE
ldr w0, [x8, _goterror@PAGEOFF]
bl _exit
LBB0_43:
bl _gen_outputs
adrp x8, _goterror@PAGE
ldr w0, [x8, _goterror@PAGEOFF]
bl _exit
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_21-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_18-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_19-Ltmp0
.long LBB0_10-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_17-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_20-Ltmp0
.long LBB0_13-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_14-Ltmp0
.long LBB0_12-Ltmp0
; -- End function
.globl _out_of_memory ; -- Begin function out_of_memory
.p2align 2
_out_of_memory: ; @out_of_memory
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _linenum@PAGE
ldr w9, [x8, _linenum@PAGEOFF]
; implicit-def: $x8
mov x8, x9
mov x9, sp
adrp x10, _infilename@GOTPAGE
ldr x10, [x10, _infilename@GOTPAGEOFF]
str x10, [x9]
str x8, [x9, #8]
mov w0, #1
adrp x1, l_.str.150@PAGE
add x1, x1, l_.str.150@PAGEOFF
bl _err
.cfi_endproc
; -- End function
.globl _usage ; -- Begin function usage
.p2align 2
_usage: ; @usage
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.12@PAGE
add x8, x8, l_.str.12@PAGEOFF
str x8, [x9]
adrp x8, l_.str.13@PAGE
add x8, x8, l_.str.13@PAGEOFF
str x8, [x9, #8]
adrp x8, l_.str.14@PAGE
add x8, x8, l_.str.14@PAGEOFF
str x8, [x9, #16]
adrp x8, l_.str.15@PAGE
add x8, x8, l_.str.15@PAGEOFF
str x8, [x9, #24]
adrp x1, l_.str.11@PAGE
add x1, x1, l_.str.11@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
.cfi_endproc
; -- End function
.globl _parse_conf_file ; -- Begin function parse_conf_file
.p2align 2
_parse_conf_file: ; @parse_conf_file
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x0, _infilename@GOTPAGE
ldr x0, [x0, _infilename@GOTPAGEOFF]
str x0, [sp, #8] ; 8-byte Folded Spill
bl _is_nonempty_file
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
mov w0, #1
adrp x1, l_.str.16@PAGE
add x1, x1, l_.str.16@PAGEOFF
bl _errx
LBB3_2:
ldr x0, [sp, #8] ; 8-byte Folded Reload
bl _parse_one_file
adrp x8, _readcache@GOTPAGE
ldr x8, [x8, _readcache@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB3_5
b LBB3_3
LBB3_3:
adrp x0, _cachename@GOTPAGE
ldr x0, [x0, _cachename@GOTPAGEOFF]
bl _is_nonempty_file
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB3_5
b LBB3_4
LBB3_4:
adrp x9, _reading_cache@GOTPAGE
ldr x9, [x9, _reading_cache@GOTPAGEOFF]
mov w8, #1
str w8, [x9]
adrp x0, _cachename@GOTPAGE
ldr x0, [x0, _cachename@GOTPAGEOFF]
bl _parse_one_file
b LBB3_5
LBB3_5:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _gen_outputs ; -- Begin function gen_outputs
.p2align 2
_gen_outputs: ; @gen_outputs
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _progs@PAGE
ldr x8, [x8, _progs@PAGEOFF]
str x8, [sp, #8]
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB4_4
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldr x0, [sp, #8]
bl _fillin_program
b LBB4_3
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8]
str x8, [sp, #8]
b LBB4_1
LBB4_4:
bl _remove_error_progs
bl _gen_specials_cache
bl _gen_output_cfile
bl _gen_output_makefile
adrp x0, l_.str.47@PAGE
add x0, x0, l_.str.47@PAGEOFF
bl _status
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
mov x9, sp
adrp x8, _outmkname@GOTPAGE
ldr x8, [x8, _outmkname@GOTPAGEOFF]
str x8, [x9]
adrp x1, l_.str.48@PAGE
add x1, x1, l_.str.48@PAGEOFF
bl _fprintf
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _is_nonempty_file ; -- Begin function is_nonempty_file
.p2align 2
_is_nonempty_file: ; @is_nonempty_file
.cfi_startproc
; %bb.0:
sub sp, sp, #192
.cfi_def_cfa_offset 192
stp x29, x30, [sp, #176] ; 16-byte Folded Spill
add x29, sp, #176
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
ldur x0, [x29, #-16]
add x1, sp, #16
bl _stat
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
stur wzr, [x29, #-4]
b LBB5_5
LBB5_2:
ldrh w8, [sp, #20]
and w8, w8, #0xf000
subs w8, w8, #8, lsl #12 ; =32768
cset w8, ne
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB5_4
b LBB5_3
LBB5_3:
ldr x8, [sp, #112]
subs x8, x8, #0
cset w8, gt
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB5_4
LBB5_4:
ldr w8, [sp, #12] ; 4-byte Folded Reload
and w8, w8, #0x1
stur w8, [x29, #-4]
b LBB5_5
LBB5_5:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #176] ; 16-byte Folded Reload
add sp, sp, #192
ret
.cfi_endproc
; -- End function
.globl _parse_one_file ; -- Begin function parse_one_file
.p2align 2
_parse_one_file: ; @parse_one_file
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
mov w9, #32864
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #8, lsl #12 ; =32768
sub sp, sp, #96
adrp x8, _curfilename@GOTPAGE
ldr x8, [x8, _curfilename@GOTPAGEOFF]
str x8, [sp, #48] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #80]
ldr x8, [sp, #80]
mov x9, sp
str x8, [x9]
add x0, sp, #88
str x0, [sp, #40] ; 8-byte Folded Spill
mov x3, #16384
mov x1, x3
mov w2, #0
adrp x4, l_.str.17@PAGE
add x4, x4, l_.str.17@PAGEOFF
bl ___snprintf_chk
ldr x0, [sp, #40] ; 8-byte Folded Reload
bl _status
ldr x0, [sp, #48] ; 8-byte Folded Reload
ldr x1, [sp, #80]
mov x3, #1024
mov x2, x3
bl ___strlcpy_chk
ldr x0, [sp, #48] ; 8-byte Folded Reload
adrp x1, l_.str.18@PAGE
add x1, x1, l_.str.18@PAGEOFF
bl _fopen
mov x8, x0
str x8, [sp, #56]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
ldr x8, [sp, #48] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _warn
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB6_33
LBB6_2:
adrp x8, _linenum@PAGE
str wzr, [x8, _linenum@PAGEOFF]
b LBB6_3
LBB6_3: ; =>This Inner Loop Header: Depth=1
ldr x2, [sp, #56]
add x0, sp, #88
mov w1, #16384
bl _fgets
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB6_30
b LBB6_4
LBB6_4: ; in Loop: Header=BB6_3 Depth=1
adrp x9, _linenum@PAGE
ldr w8, [x9, _linenum@PAGEOFF]
add w8, w8, #1
str w8, [x9, _linenum@PAGEOFF]
add x0, sp, #88
add x1, sp, #76
add x2, sp, #4, lsl #12 ; =16384
add x2, x2, #88
mov w3, #2048
bl _parse_line
ldr w8, [sp, #76]
subs w8, w8, #1
cset w8, ge
tbnz w8, #0, LBB6_6
b LBB6_5
LBB6_5: ; in Loop: Header=BB6_3 Depth=1
b LBB6_3
LBB6_6: ; in Loop: Header=BB6_3 Depth=1
ldr x0, [sp, #16472]
adrp x1, l_.str.19@PAGE
add x1, x1, l_.str.19@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB6_8
b LBB6_7
LBB6_7: ; in Loop: Header=BB6_3 Depth=1
adrp x8, _add_srcdirs@PAGE
add x8, x8, _add_srcdirs@PAGEOFF
str x8, [sp, #64]
b LBB6_27
LBB6_8: ; in Loop: Header=BB6_3 Depth=1
ldr x0, [sp, #16472]
adrp x1, l_.str.20@PAGE
add x1, x1, l_.str.20@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB6_10
b LBB6_9
LBB6_9: ; in Loop: Header=BB6_3 Depth=1
adrp x8, _add_progs@PAGE
add x8, x8, _add_progs@PAGEOFF
str x8, [sp, #64]
b LBB6_26
LBB6_10: ; in Loop: Header=BB6_3 Depth=1
ldr x0, [sp, #16472]
adrp x1, l_.str.21@PAGE
add x1, x1, l_.str.21@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB6_12
b LBB6_11
LBB6_11: ; in Loop: Header=BB6_3 Depth=1
adrp x8, _add_link@PAGE
add x8, x8, _add_link@PAGEOFF
str x8, [sp, #64]
b LBB6_25
LBB6_12: ; in Loop: Header=BB6_3 Depth=1
ldr x0, [sp, #16472]
adrp x1, l_.str.22@PAGE
add x1, x1, l_.str.22@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB6_14
b LBB6_13
LBB6_13: ; in Loop: Header=BB6_3 Depth=1
adrp x8, _add_libs@PAGE
add x8, x8, _add_libs@PAGEOFF
str x8, [sp, #64]
b LBB6_24
LBB6_14: ; in Loop: Header=BB6_3 Depth=1
ldr x0, [sp, #16472]
adrp x1, l_.str.23@PAGE
add x1, x1, l_.str.23@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB6_16
b LBB6_15
LBB6_15: ; in Loop: Header=BB6_3 Depth=1
adrp x8, _add_libs_so@PAGE
add x8, x8, _add_libs_so@PAGEOFF
str x8, [sp, #64]
b LBB6_23
LBB6_16: ; in Loop: Header=BB6_3 Depth=1
ldr x0, [sp, #16472]
adrp x1, l_.str.24@PAGE
add x1, x1, l_.str.24@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB6_18
b LBB6_17
LBB6_17: ; in Loop: Header=BB6_3 Depth=1
adrp x8, _add_buildopts@PAGE
add x8, x8, _add_buildopts@PAGEOFF
str x8, [sp, #64]
b LBB6_22
LBB6_18: ; in Loop: Header=BB6_3 Depth=1
ldr x0, [sp, #16472]
adrp x1, l_.str.25@PAGE
add x1, x1, l_.str.25@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB6_20
b LBB6_19
LBB6_19: ; in Loop: Header=BB6_3 Depth=1
adrp x8, _add_special@PAGE
add x8, x8, _add_special@PAGEOFF
str x8, [sp, #64]
b LBB6_21
LBB6_20: ; in Loop: Header=BB6_3 Depth=1
ldr x11, [sp, #48] ; 8-byte Folded Reload
adrp x8, _linenum@PAGE
ldr w8, [x8, _linenum@PAGEOFF]
; implicit-def: $x10
mov x10, x8
ldr x8, [sp, #16472]
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.26@PAGE
add x0, x0, l_.str.26@PAGEOFF
bl _warnx
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB6_3
LBB6_21: ; in Loop: Header=BB6_3 Depth=1
b LBB6_22
LBB6_22: ; in Loop: Header=BB6_3 Depth=1
b LBB6_23
LBB6_23: ; in Loop: Header=BB6_3 Depth=1
b LBB6_24
LBB6_24: ; in Loop: Header=BB6_3 Depth=1
b LBB6_25
LBB6_25: ; in Loop: Header=BB6_3 Depth=1
b LBB6_26
LBB6_26: ; in Loop: Header=BB6_3 Depth=1
b LBB6_27
LBB6_27: ; in Loop: Header=BB6_3 Depth=1
ldr w8, [sp, #76]
subs w8, w8, #2
cset w8, ge
tbnz w8, #0, LBB6_29
b LBB6_28
LBB6_28: ; in Loop: Header=BB6_3 Depth=1
ldr x11, [sp, #48] ; 8-byte Folded Reload
adrp x8, _linenum@PAGE
ldr w8, [x8, _linenum@PAGEOFF]
; implicit-def: $x10
mov x10, x8
ldr x8, [sp, #16472]
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x8, l_.str.28@PAGE
add x8, x8, l_.str.28@PAGEOFF
str x8, [x9, #24]
adrp x0, l_.str.27@PAGE
add x0, x0, l_.str.27@PAGEOFF
bl _warnx
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB6_3
LBB6_29: ; in Loop: Header=BB6_3 Depth=1
ldr x8, [sp, #64]
ldr w0, [sp, #76]
add x1, sp, #4, lsl #12 ; =16384
add x1, x1, #88
blr x8
b LBB6_3
LBB6_30:
ldr x0, [sp, #56]
bl _ferror
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB6_32
b LBB6_31
LBB6_31:
ldr x8, [sp, #48] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _warn
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB6_32
LBB6_32:
ldr x0, [sp, #56]
bl _fclose
b LBB6_33
LBB6_33:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB6_35
b LBB6_34
LBB6_34:
bl ___stack_chk_fail
LBB6_35:
add sp, sp, #8, lsl #12 ; =32768
add sp, sp, #96
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _status ; -- Begin function status
.p2align 2
_status: ; @status
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
adrp x8, _verbose@GOTPAGE
ldr x8, [x8, _verbose@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB7_2
b LBB7_1
LBB7_1:
b LBB7_5
LBB7_2:
ldur x0, [x29, #-8]
bl _strlen
mov x8, x0
stur w8, [x29, #-12]
adrp x8, _status.lastlen@PAGE
ldr w8, [x8, _status.lastlen@PAGEOFF]
ldur w9, [x29, #-12]
subs w8, w8, w9
stur w8, [x29, #-16]
ldur w8, [x29, #-16]
subs w8, w8, #1
cset w8, ge
tbnz w8, #0, LBB7_4
b LBB7_3
LBB7_3:
mov w8, #1
stur w8, [x29, #-16]
b LBB7_4
LBB7_4:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
stur x8, [x29, #-24] ; 8-byte Folded Spill
ldr x0, [x8]
ldur x11, [x29, #-8]
ldur w8, [x29, #-16]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x8, l_.str.149@PAGE
add x8, x8, l_.str.149@PAGEOFF
str x8, [x9, #24]
adrp x1, l_.str.148@PAGE
add x1, x1, l_.str.148@PAGEOFF
bl _fprintf
ldur x8, [x29, #-24] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fflush
ldur w8, [x29, #-12]
adrp x9, _status.lastlen@PAGE
str w8, [x9, _status.lastlen@PAGEOFF]
b LBB7_5
LBB7_5:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _parse_line ; -- Begin function parse_line
.p2align 2
_parse_line: ; @parse_line
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
str w3, [sp, #20]
ldur x8, [x29, #-8]
str x8, [sp, #8]
ldur x8, [x29, #-16]
str wzr, [x8]
b LBB8_1
LBB8_1: ; =>This Loop Header: Depth=1
; Child Loop BB8_2 Depth 2
; Child Loop BB8_10 Depth 2
b LBB8_2
LBB8_2: ; Parent Loop BB8_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #8]
ldrsb w0, [x8]
bl _isspace
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB8_4
b LBB8_3
LBB8_3: ; in Loop: Header=BB8_2 Depth=2
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB8_2
LBB8_4: ; in Loop: Header=BB8_1 Depth=1
ldr x8, [sp, #8]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB8_6
b LBB8_5
LBB8_5: ; in Loop: Header=BB8_1 Depth=1
ldr x8, [sp, #8]
ldrsb w8, [x8]
subs w8, w8, #35
cset w8, ne
tbnz w8, #0, LBB8_7
b LBB8_6
LBB8_6:
b LBB8_19
LBB8_7: ; in Loop: Header=BB8_1 Depth=1
ldur x8, [x29, #-16]
ldr w8, [x8]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB8_9
b LBB8_8
LBB8_8: ; in Loop: Header=BB8_1 Depth=1
ldr x8, [sp, #8]
ldr x9, [sp, #24]
ldur x12, [x29, #-16]
ldrsw x10, [x12]
mov x11, x10
add w11, w11, #1
str w11, [x12]
str x8, [x9, x10, lsl #3]
b LBB8_9
LBB8_9: ; in Loop: Header=BB8_1 Depth=1
b LBB8_10
LBB8_10: ; Parent Loop BB8_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #8]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB8_13
b LBB8_11
LBB8_11: ; in Loop: Header=BB8_10 Depth=2
ldr x8, [sp, #8]
ldrsb w0, [x8]
bl _isspace
subs w8, w0, #0
cset w8, ne
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB8_13
b LBB8_12
LBB8_12: ; in Loop: Header=BB8_10 Depth=2
ldr x8, [sp, #8]
ldrsb w8, [x8]
subs w8, w8, #35
cset w8, ne
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB8_13
LBB8_13: ; in Loop: Header=BB8_10 Depth=2
ldr w8, [sp, #4] ; 4-byte Folded Reload
tbz w8, #0, LBB8_15
b LBB8_14
LBB8_14: ; in Loop: Header=BB8_10 Depth=2
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB8_10
LBB8_15: ; in Loop: Header=BB8_1 Depth=1
ldr x8, [sp, #8]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB8_17
b LBB8_16
LBB8_16: ; in Loop: Header=BB8_1 Depth=1
ldr x8, [sp, #8]
ldrsb w8, [x8]
subs w8, w8, #35
cset w8, ne
tbnz w8, #0, LBB8_18
b LBB8_17
LBB8_17:
b LBB8_19
LBB8_18: ; in Loop: Header=BB8_1 Depth=1
ldr x8, [sp, #8]
add x9, x8, #1
str x9, [sp, #8]
strb wzr, [x8]
b LBB8_1
LBB8_19:
ldr x8, [sp, #8]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB8_21
b LBB8_20
LBB8_20:
ldr x8, [sp, #8]
strb wzr, [x8]
b LBB8_21
LBB8_21:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _add_srcdirs ; -- Begin function add_srcdirs
.p2align 2
_add_srcdirs: ; @add_srcdirs
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
stur x1, [x29, #-16]
mov w8, #1
stur w8, [x29, #-20]
b LBB9_1
LBB9_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB9_7
b LBB9_2
LBB9_2: ; in Loop: Header=BB9_1 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x0, [x8, x9, lsl #3]
bl _is_dir
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB9_4
b LBB9_3
LBB9_3: ; in Loop: Header=BB9_1 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x1, [x8, x9, lsl #3]
adrp x0, _srcdirs@PAGE
add x0, x0, _srcdirs@PAGEOFF
bl _add_string
b LBB9_5
LBB9_4: ; in Loop: Header=BB9_1 Depth=1
adrp x8, _linenum@PAGE
ldr w8, [x8, _linenum@PAGEOFF]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
adrp x11, _curfilename@GOTPAGE
ldr x11, [x11, _curfilename@GOTPAGEOFF]
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.29@PAGE
add x0, x0, l_.str.29@PAGEOFF
bl _warnx
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB9_5
LBB9_5: ; in Loop: Header=BB9_1 Depth=1
b LBB9_6
LBB9_6: ; in Loop: Header=BB9_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB9_1
LBB9_7:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _add_progs ; -- Begin function add_progs
.p2align 2
_add_progs: ; @add_progs
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
str x1, [sp, #16]
mov w8, #1
str w8, [sp, #12]
b LBB10_1
LBB10_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB10_4
b LBB10_2
LBB10_2: ; in Loop: Header=BB10_1 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
ldr x0, [x8, x9, lsl #3]
bl _add_prog
b LBB10_3
LBB10_3: ; in Loop: Header=BB10_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB10_1
LBB10_4:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _add_link ; -- Begin function add_link
.p2align 2
_add_link: ; @add_link
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
stur x1, [x29, #-16]
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
bl _find_prog
str x0, [sp, #32]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB11_2
b LBB11_1
LBB11_1:
adrp x8, _linenum@PAGE
ldr w8, [x8, _linenum@PAGEOFF]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
mov x9, sp
adrp x11, _curfilename@GOTPAGE
ldr x11, [x11, _curfilename@GOTPAGEOFF]
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.31@PAGE
add x0, x0, l_.str.31@PAGEOFF
bl _warnx
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB11_8
LBB11_2:
mov w8, #2
stur w8, [x29, #-20]
b LBB11_3
LBB11_3: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB11_8
b LBB11_4
LBB11_4: ; in Loop: Header=BB11_3 Depth=1
adrp x8, _list_mode@GOTPAGE
ldr x8, [x8, _list_mode@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB11_6
b LBB11_5
LBB11_5: ; in Loop: Header=BB11_3 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.30@PAGE
add x0, x0, l_.str.30@PAGEOFF
bl _printf
b LBB11_6
LBB11_6: ; in Loop: Header=BB11_3 Depth=1
ldr x8, [sp, #32]
add x0, x8, #88
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x1, [x8, x9, lsl #3]
bl _add_string
b LBB11_7
LBB11_7: ; in Loop: Header=BB11_3 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB11_3
LBB11_8:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _add_libs ; -- Begin function add_libs
.p2align 2
_add_libs: ; @add_libs
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
stur x1, [x29, #-16]
mov w8, #1
stur w8, [x29, #-20]
b LBB12_1
LBB12_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB12_6
b LBB12_2
LBB12_2: ; in Loop: Header=BB12_1 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x1, [x8, x9, lsl #3]
adrp x0, _libs@PAGE
add x0, x0, _libs@PAGEOFF
bl _add_string
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x1, [x8, x9, lsl #3]
adrp x0, _libs_so@PAGE
add x0, x0, _libs_so@PAGEOFF
bl _in_list
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB12_4
b LBB12_3
LBB12_3: ; in Loop: Header=BB12_1 Depth=1
adrp x8, _linenum@PAGE
ldr w8, [x8, _linenum@PAGEOFF]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
adrp x11, _curfilename@GOTPAGE
ldr x11, [x11, _curfilename@GOTPAGEOFF]
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.32@PAGE
add x0, x0, l_.str.32@PAGEOFF
bl _warnx
b LBB12_4
LBB12_4: ; in Loop: Header=BB12_1 Depth=1
b LBB12_5
LBB12_5: ; in Loop: Header=BB12_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB12_1
LBB12_6:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _add_libs_so ; -- Begin function add_libs_so
.p2align 2
_add_libs_so: ; @add_libs_so
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
stur x1, [x29, #-16]
mov w8, #1
stur w8, [x29, #-20]
b LBB13_1
LBB13_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB13_6
b LBB13_2
LBB13_2: ; in Loop: Header=BB13_1 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x1, [x8, x9, lsl #3]
adrp x0, _libs_so@PAGE
add x0, x0, _libs_so@PAGEOFF
bl _add_string
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x1, [x8, x9, lsl #3]
adrp x0, _libs@PAGE
add x0, x0, _libs@PAGEOFF
bl _in_list
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB13_4
b LBB13_3
LBB13_3: ; in Loop: Header=BB13_1 Depth=1
adrp x8, _linenum@PAGE
ldr w8, [x8, _linenum@PAGEOFF]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
adrp x11, _curfilename@GOTPAGE
ldr x11, [x11, _curfilename@GOTPAGEOFF]
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.33@PAGE
add x0, x0, l_.str.33@PAGEOFF
bl _warnx
b LBB13_4
LBB13_4: ; in Loop: Header=BB13_1 Depth=1
b LBB13_5
LBB13_5: ; in Loop: Header=BB13_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB13_1
LBB13_6:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _add_buildopts ; -- Begin function add_buildopts
.p2align 2
_add_buildopts: ; @add_buildopts
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
str x1, [sp, #16]
mov w8, #1
str w8, [sp, #12]
b LBB14_1
LBB14_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB14_4
b LBB14_2
LBB14_2: ; in Loop: Header=BB14_1 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
ldr x1, [x8, x9, lsl #3]
adrp x0, _buildopts@PAGE
add x0, x0, _buildopts@PAGEOFF
bl _add_string
b LBB14_3
LBB14_3: ; in Loop: Header=BB14_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB14_1
LBB14_4:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _add_special ; -- Begin function add_special
.p2align 2
_add_special: ; @add_special
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _curfilename@GOTPAGE
ldr x8, [x8, _curfilename@GOTPAGEOFF]
str x8, [sp, #40] ; 8-byte Folded Spill
stur w0, [x29, #-4]
stur x1, [x29, #-16]
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
bl _find_prog
stur x0, [x29, #-32]
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB15_4
b LBB15_1
LBB15_1:
adrp x8, _reading_cache@GOTPAGE
ldr x8, [x8, _reading_cache@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB15_3
b LBB15_2
LBB15_2:
b LBB15_69
LBB15_3:
ldr x11, [sp, #40] ; 8-byte Folded Reload
adrp x8, _linenum@PAGE
ldr w8, [x8, _linenum@PAGEOFF]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.34@PAGE
add x0, x0, l_.str.34@PAGEOFF
bl _warnx
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB15_69
LBB15_4:
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
adrp x1, l_.str.35@PAGE
add x1, x1, l_.str.35@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB15_10
b LBB15_5
LBB15_5:
ldur w8, [x29, #-4]
subs w8, w8, #4
cset w8, eq
tbnz w8, #0, LBB15_7
b LBB15_6
LBB15_6:
b LBB15_68
LBB15_7:
ldur x8, [x29, #-16]
ldr x0, [x8, #24]
bl _strdup
ldur x9, [x29, #-32]
mov x8, x0
str x8, [x9, #16]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB15_9
b LBB15_8
LBB15_8:
bl _out_of_memory
b LBB15_9
LBB15_9:
b LBB15_67
LBB15_10:
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
adrp x1, l_.str.36@PAGE
add x1, x1, l_.str.36@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB15_16
b LBB15_11
LBB15_11:
ldur w8, [x29, #-4]
subs w8, w8, #4
cset w8, eq
tbnz w8, #0, LBB15_13
b LBB15_12
LBB15_12:
b LBB15_68
LBB15_13:
ldur x8, [x29, #-16]
ldr x0, [x8, #24]
bl _strdup
ldur x9, [x29, #-32]
mov x8, x0
str x8, [x9, #24]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB15_15
b LBB15_14
LBB15_14:
bl _out_of_memory
b LBB15_15
LBB15_15:
b LBB15_66
LBB15_16:
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
adrp x1, l_.str.37@PAGE
add x1, x1, l_.str.37@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB15_22
b LBB15_17
LBB15_17:
ldur w8, [x29, #-4]
subs w8, w8, #4
cset w8, eq
tbnz w8, #0, LBB15_19
b LBB15_18
LBB15_18:
b LBB15_68
LBB15_19:
ldur x8, [x29, #-16]
ldr x0, [x8, #24]
bl _strdup
ldur x9, [x29, #-32]
mov x8, x0
str x8, [x9, #40]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB15_21
b LBB15_20
LBB15_20:
bl _out_of_memory
b LBB15_21
LBB15_21:
b LBB15_65
LBB15_22:
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
adrp x1, l_.str.38@PAGE
add x1, x1, l_.str.38@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB15_28
b LBB15_23
LBB15_23:
ldur x8, [x29, #-32]
; kill: def $x9 killed $xzr
str xzr, [x8, #56]
mov w8, #3
stur w8, [x29, #-20]
b LBB15_24
LBB15_24: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB15_27
b LBB15_25
LBB15_25: ; in Loop: Header=BB15_24 Depth=1
ldur x8, [x29, #-32]
add x0, x8, #56
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x1, [x8, x9, lsl #3]
bl _add_string
b LBB15_26
LBB15_26: ; in Loop: Header=BB15_24 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB15_24
LBB15_27:
b LBB15_64
LBB15_28:
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
adrp x1, l_.str.39@PAGE
add x1, x1, l_.str.39@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB15_34
b LBB15_29
LBB15_29:
ldur x8, [x29, #-32]
; kill: def $x9 killed $xzr
str xzr, [x8, #64]
mov w8, #3
stur w8, [x29, #-20]
b LBB15_30
LBB15_30: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB15_33
b LBB15_31
LBB15_31: ; in Loop: Header=BB15_30 Depth=1
ldur x8, [x29, #-32]
add x0, x8, #64
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x1, [x8, x9, lsl #3]
bl _add_string
b LBB15_32
LBB15_32: ; in Loop: Header=BB15_30 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB15_30
LBB15_33:
b LBB15_63
LBB15_34:
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
adrp x1, l_.str.40@PAGE
add x1, x1, l_.str.40@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB15_40
b LBB15_35
LBB15_35:
ldur x8, [x29, #-32]
; kill: def $x9 killed $xzr
str xzr, [x8, #80]
mov w8, #3
stur w8, [x29, #-20]
b LBB15_36
LBB15_36: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB15_39
b LBB15_37
LBB15_37: ; in Loop: Header=BB15_36 Depth=1
ldur x8, [x29, #-32]
add x0, x8, #80
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x1, [x8, x9, lsl #3]
bl _add_string
b LBB15_38
LBB15_38: ; in Loop: Header=BB15_36 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB15_36
LBB15_39:
b LBB15_62
LBB15_40:
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
adrp x1, l_.str.41@PAGE
add x1, x1, l_.str.41@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB15_46
b LBB15_41
LBB15_41:
ldur w8, [x29, #-4]
subs w8, w8, #4
cset w8, eq
tbnz w8, #0, LBB15_43
b LBB15_42
LBB15_42:
b LBB15_68
LBB15_43:
ldur x8, [x29, #-16]
ldr x0, [x8, #24]
bl _strdup
ldur x9, [x29, #-32]
mov x8, x0
str x8, [x9, #48]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB15_45
b LBB15_44
LBB15_44:
bl _out_of_memory
b LBB15_45
LBB15_45:
b LBB15_61
LBB15_46:
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
adrp x1, l_.str.24@PAGE
add x1, x1, l_.str.24@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB15_52
b LBB15_47
LBB15_47:
ldur x8, [x29, #-32]
; kill: def $x9 killed $xzr
str xzr, [x8, #72]
mov w8, #3
stur w8, [x29, #-20]
b LBB15_48
LBB15_48: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB15_51
b LBB15_49
LBB15_49: ; in Loop: Header=BB15_48 Depth=1
ldur x8, [x29, #-32]
add x0, x8, #72
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x1, [x8, x9, lsl #3]
bl _add_string
b LBB15_50
LBB15_50: ; in Loop: Header=BB15_48 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB15_48
LBB15_51:
b LBB15_60
LBB15_52:
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
adrp x1, l_.str.42@PAGE
add x1, x1, l_.str.42@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB15_58
b LBB15_53
LBB15_53:
mov w8, #3
stur w8, [x29, #-20]
b LBB15_54
LBB15_54: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB15_57
b LBB15_55
LBB15_55: ; in Loop: Header=BB15_54 Depth=1
ldur x8, [x29, #-32]
add x0, x8, #96
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x1, [x8, x9, lsl #3]
bl _add_string
b LBB15_56
LBB15_56: ; in Loop: Header=BB15_54 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB15_54
LBB15_57:
b LBB15_59
LBB15_58:
ldr x11, [sp, #40] ; 8-byte Folded Reload
adrp x8, _linenum@PAGE
ldr w8, [x8, _linenum@PAGEOFF]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.43@PAGE
add x0, x0, l_.str.43@PAGEOFF
bl _warnx
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB15_59
LBB15_59:
b LBB15_60
LBB15_60:
b LBB15_61
LBB15_61:
b LBB15_62
LBB15_62:
b LBB15_63
LBB15_63:
b LBB15_64
LBB15_64:
b LBB15_65
LBB15_65:
b LBB15_66
LBB15_66:
b LBB15_67
LBB15_67:
b LBB15_69
LBB15_68:
ldr x13, [sp, #40] ; 8-byte Folded Reload
adrp x8, _linenum@PAGE
ldr w8, [x8, _linenum@PAGEOFF]
; implicit-def: $x12
mov x12, x8
ldur w8, [x29, #-4]
subs w8, w8, #4
cset w8, lt
and w10, w8, #0x1
adrp x9, l_.str.46@PAGE
add x9, x9, l_.str.46@PAGEOFF
adrp x8, l_.str.45@PAGE
add x8, x8, l_.str.45@PAGEOFF
ands w10, w10, #0x1
csel x11, x8, x9, ne
ldur x8, [x29, #-16]
ldr x10, [x8, #8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x13, [x9]
str x12, [x9, #8]
str x11, [x9, #16]
str x10, [x9, #24]
str x8, [x9, #32]
adrp x0, l_.str.44@PAGE
add x0, x0, l_.str.44@PAGEOFF
bl _warnx
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB15_69
LBB15_69:
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _is_dir ; -- Begin function is_dir
.p2align 2
_is_dir: ; @is_dir
.cfi_startproc
; %bb.0:
sub sp, sp, #176
.cfi_def_cfa_offset 176
stp x29, x30, [sp, #160] ; 16-byte Folded Spill
add x29, sp, #160
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
ldur x0, [x29, #-16]
mov x1, sp
bl _stat
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB16_2
b LBB16_1
LBB16_1:
stur wzr, [x29, #-4]
b LBB16_3
LBB16_2:
ldrh w8, [sp, #4]
and w8, w8, #0xf000
subs w8, w8, #4, lsl #12 ; =16384
cset w8, eq
and w8, w8, #0x1
stur w8, [x29, #-4]
b LBB16_3
LBB16_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
; -- End function
.globl _add_string ; -- Begin function add_string
.p2align 2
_add_string: ; @add_string
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
; kill: def $x8 killed $xzr
str xzr, [sp, #8]
ldur x8, [x29, #-8]
ldr x8, [x8]
str x8, [sp]
b LBB17_1
LBB17_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB17_6
b LBB17_2
LBB17_2: ; in Loop: Header=BB17_1 Depth=1
ldr x8, [sp]
ldr x0, [x8, #8]
ldr x1, [sp, #16]
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB17_4
b LBB17_3
LBB17_3:
b LBB17_14
LBB17_4: ; in Loop: Header=BB17_1 Depth=1
b LBB17_5
LBB17_5: ; in Loop: Header=BB17_1 Depth=1
ldr x8, [sp]
str x8, [sp, #8]
ldr x8, [sp]
ldr x8, [x8]
str x8, [sp]
b LBB17_1
LBB17_6:
mov x0, #16
bl _malloc
str x0, [sp]
ldr x8, [sp]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB17_8
b LBB17_7
LBB17_7:
ldr x8, [sp]
; kill: def $x9 killed $xzr
str xzr, [x8]
ldr x0, [sp, #16]
bl _strdup
ldr x8, [sp]
str x0, [x8, #8]
b LBB17_8
LBB17_8:
ldr x8, [sp]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB17_10
b LBB17_9
LBB17_9:
ldr x8, [sp]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB17_11
b LBB17_10
LBB17_10:
bl _out_of_memory
b LBB17_11
LBB17_11:
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB17_13
b LBB17_12
LBB17_12:
ldr x8, [sp]
ldur x9, [x29, #-8]
str x8, [x9]
b LBB17_14
LBB17_13:
ldr x8, [sp]
ldr x9, [sp, #8]
str x8, [x9]
b LBB17_14
LBB17_14:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _add_prog ; -- Begin function add_prog
.p2align 2
_add_prog: ; @add_prog
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
; kill: def $x8 killed $xzr
str xzr, [sp, #16]
adrp x8, _progs@PAGE
ldr x8, [x8, _progs@PAGEOFF]
str x8, [sp, #8]
b LBB18_1
LBB18_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB18_6
b LBB18_2
LBB18_2: ; in Loop: Header=BB18_1 Depth=1
ldr x8, [sp, #8]
ldr x0, [x8, #8]
ldur x1, [x29, #-8]
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB18_4
b LBB18_3
LBB18_3:
b LBB18_16
LBB18_4: ; in Loop: Header=BB18_1 Depth=1
b LBB18_5
LBB18_5: ; in Loop: Header=BB18_1 Depth=1
ldr x8, [sp, #8]
str x8, [sp, #16]
ldr x8, [sp, #8]
ldr x8, [x8]
str x8, [sp, #8]
b LBB18_1
LBB18_6:
mov x0, #120
bl _malloc
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB18_8
b LBB18_7
LBB18_7:
ldr x0, [sp, #8]
mov w1, #0
mov x2, #120
mov x3, #-1
bl ___memset_chk
ldur x0, [x29, #-8]
bl _strdup
ldr x8, [sp, #8]
str x0, [x8, #8]
b LBB18_8
LBB18_8:
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB18_10
b LBB18_9
LBB18_9:
ldr x8, [sp, #8]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB18_11
b LBB18_10
LBB18_10:
bl _out_of_memory
b LBB18_11
LBB18_11:
ldr x8, [sp, #8]
; kill: def $x9 killed $xzr
str xzr, [x8]
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB18_13
b LBB18_12
LBB18_12:
ldr x8, [sp, #8]
adrp x9, _progs@PAGE
str x8, [x9, _progs@PAGEOFF]
b LBB18_14
LBB18_13:
ldr x8, [sp, #8]
ldr x9, [sp, #16]
str x8, [x9]
b LBB18_14
LBB18_14:
ldr x8, [sp, #8]
; kill: def $x9 killed $xzr
str xzr, [x8, #16]
ldr x8, [sp, #8]
str xzr, [x8, #24]
ldr x8, [sp, #8]
str xzr, [x8, #32]
ldr x8, [sp, #8]
str xzr, [x8, #40]
ldr x8, [sp, #8]
str xzr, [x8, #88]
ldr x8, [sp, #8]
str xzr, [x8, #96]
ldr x8, [sp, #8]
str xzr, [x8, #104]
ldr x8, [sp, #8]
str xzr, [x8, #56]
ldr x8, [sp, #8]
str xzr, [x8, #80]
ldr x8, [sp, #8]
str xzr, [x8, #72]
ldr x8, [sp, #8]
str wzr, [x8, #112]
adrp x8, _list_mode@GOTPAGE
ldr x8, [x8, _list_mode@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB18_16
b LBB18_15
LBB18_15:
ldur x8, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.30@PAGE
add x0, x0, l_.str.30@PAGEOFF
bl _printf
b LBB18_16
LBB18_16:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _find_prog ; -- Begin function find_prog
.p2align 2
_find_prog: ; @find_prog
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
adrp x8, _progs@PAGE
ldr x8, [x8, _progs@PAGEOFF]
str x8, [sp, #8]
b LBB19_1
LBB19_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB19_6
b LBB19_2
LBB19_2: ; in Loop: Header=BB19_1 Depth=1
ldr x8, [sp, #8]
ldr x0, [x8, #8]
ldr x1, [sp, #16]
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB19_4
b LBB19_3
LBB19_3:
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB19_7
LBB19_4: ; in Loop: Header=BB19_1 Depth=1
b LBB19_5
LBB19_5: ; in Loop: Header=BB19_1 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8]
str x8, [sp, #8]
b LBB19_1
LBB19_6:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB19_7
LBB19_7:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _in_list ; -- Begin function in_list
.p2align 2
_in_list: ; @in_list
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
str x1, [sp, #8]
ldr x8, [sp, #16]
ldr x8, [x8]
str x8, [sp]
b LBB20_1
LBB20_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB20_6
b LBB20_2
LBB20_2: ; in Loop: Header=BB20_1 Depth=1
ldr x8, [sp]
ldr x0, [x8, #8]
ldr x1, [sp, #8]
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB20_4
b LBB20_3
LBB20_3:
mov w8, #1
stur w8, [x29, #-4]
b LBB20_7
LBB20_4: ; in Loop: Header=BB20_1 Depth=1
b LBB20_5
LBB20_5: ; in Loop: Header=BB20_1 Depth=1
ldr x8, [sp]
ldr x8, [x8]
str x8, [sp]
b LBB20_1
LBB20_6:
stur wzr, [x29, #-4]
b LBB20_7
LBB20_7:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _fillin_program ; -- Begin function fillin_program
.p2align 2
_fillin_program: ; @fillin_program
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
mov w9, #17504
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #4, lsl #12 ; =16384
sub sp, sp, #1120
add x8, sp, #4, lsl #12 ; =16384
add x8, x8, #88
str x8, [sp, #56] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #80]
ldr x8, [sp, #80]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
add x0, sp, #88
str x0, [sp, #64] ; 8-byte Folded Spill
mov x3, #16384
mov x1, x3
mov w2, #0
adrp x4, l_.str.49@PAGE
add x4, x4, l_.str.49@PAGEOFF
bl ___snprintf_chk
ldr x0, [sp, #64] ; 8-byte Folded Reload
bl _status
ldr x8, [sp, #80]
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB21_2
b LBB21_1
LBB21_1:
ldr x8, [sp, #80]
ldr x0, [x8, #8]
bl _genident
ldr x8, [sp, #80]
str x0, [x8, #16]
b LBB21_2
LBB21_2:
ldr x8, [sp, #80]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB21_4
b LBB21_3
LBB21_3:
ldr x8, [sp, #80]
ldr x0, [x8, #8]
bl _dir_search
ldr x8, [sp, #80]
str x0, [x8, #24]
b LBB21_4
LBB21_4:
ldr x8, [sp, #80]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB21_12
b LBB21_5
LBB21_5:
ldr x8, [sp, #80]
ldr x8, [x8, #24]
mov x9, sp
str x8, [x9]
add x0, sp, #88
str x0, [sp, #48] ; 8-byte Folded Spill
mov x3, #16384
mov x1, x3
mov w2, #0
adrp x4, l_.str.50@PAGE
add x4, x4, l_.str.50@PAGEOFF
bl ___snprintf_chk
ldr x0, [sp, #48] ; 8-byte Folded Reload
adrp x1, l_.str.18@PAGE
add x1, x1, l_.str.18@PAGEOFF
bl _popen
str x0, [sp, #72]
ldr x8, [sp, #72]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB21_7
b LBB21_6
LBB21_6:
mov x9, sp
add x8, sp, #88
str x8, [x9]
mov w0, #1
adrp x1, l_.str.51@PAGE
add x1, x1, l_.str.51@PAGEOFF
bl _errx
LBB21_7:
ldr x8, [sp, #56] ; 8-byte Folded Reload
add x0, sp, #4, lsl #12 ; =16384
add x0, x0, #88
strb wzr, [x8]
ldr x2, [sp, #72]
mov w1, #1024
bl _fgets
ldr x0, [sp, #72]
bl _pclose
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB21_9
b LBB21_8
LBB21_8:
mov x9, sp
add x8, sp, #88
str x8, [x9]
mov w0, #1
adrp x1, l_.str.51@PAGE
add x1, x1, l_.str.51@PAGEOFF
bl _errx
LBB21_9:
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldrb w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB21_11
b LBB21_10
LBB21_10:
ldr x8, [sp, #80]
ldr x8, [x8, #24]
mov x9, sp
str x8, [x9]
mov w0, #1
adrp x1, l_.str.52@PAGE
add x1, x1, l_.str.52@PAGEOFF
bl _errx
LBB21_11:
add x0, sp, #4, lsl #12 ; =16384
add x0, x0, #88
bl _strdup
ldr x8, [sp, #80]
str x0, [x8, #32]
b LBB21_12
LBB21_12:
adrp x8, _makeobj@PAGE
ldr w8, [x8, _makeobj@PAGEOFF]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB21_21
b LBB21_13
LBB21_13:
ldr x8, [sp, #80]
ldr x8, [x8, #40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB21_21
b LBB21_14
LBB21_14:
ldr x8, [sp, #80]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB21_21
b LBB21_15
LBB21_15:
adrp x8, _objprefix@GOTPAGE
ldr x8, [x8, _objprefix@GOTPAGEOFF]
ldr x10, [x8]
ldr x8, [sp, #80]
ldr x8, [x8, #32]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
add x0, sp, #88
str x0, [sp, #40] ; 8-byte Folded Spill
mov x3, #16384
mov x1, x3
mov w2, #0
adrp x4, l_.str.53@PAGE
add x4, x4, l_.str.53@PAGEOFF
bl ___snprintf_chk
ldr x0, [sp, #40] ; 8-byte Folded Reload
bl _is_dir
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB21_19
b LBB21_16
LBB21_16:
add x0, sp, #88
bl _strdup
ldr x9, [sp, #80]
mov x8, x0
str x8, [x9, #40]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB21_18
b LBB21_17
LBB21_17:
bl _out_of_memory
b LBB21_18
LBB21_18:
b LBB21_20
LBB21_19:
ldr x8, [sp, #80]
ldr x8, [x8, #32]
ldr x9, [sp, #80]
str x8, [x9, #40]
b LBB21_20
LBB21_20:
b LBB21_21
LBB21_21:
ldr x8, [sp, #80]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
add x0, sp, #4, lsl #12 ; =16384
add x0, x0, #88
str x0, [sp, #32] ; 8-byte Folded Spill
mov x3, #1024
mov x1, x3
mov w2, #0
adrp x4, l_.str.54@PAGE
add x4, x4, l_.str.54@PAGEOFF
bl ___snprintf_chk
ldr x0, [sp, #32] ; 8-byte Folded Reload
bl _is_nonempty_file
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB21_23
b LBB21_22
LBB21_22:
ldr x8, [sp, #80]
ldr x8, [x8, #8]
mov x9, sp
add x10, sp, #4, lsl #12 ; =16384
add x10, x10, #88
str x10, [x9]
str x8, [x9, #8]
add x0, sp, #88
str x0, [sp, #24] ; 8-byte Folded Spill
mov x3, #16384
mov x1, x3
mov w2, #0
adrp x4, l_.str.55@PAGE
add x4, x4, l_.str.55@PAGEOFF
bl ___snprintf_chk
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _status
b LBB21_26
LBB21_23:
ldr x8, [sp, #80]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB21_25
b LBB21_24
LBB21_24:
ldr x8, [sp, #80]
ldr x8, [x8, #24]
mov x9, sp
str x8, [x9]
add x0, sp, #4, lsl #12 ; =16384
add x0, x0, #88
mov x3, #1024
mov x1, x3
mov w2, #0
adrp x4, l_.str.56@PAGE
add x4, x4, l_.str.56@PAGEOFF
bl ___snprintf_chk
b LBB21_25
LBB21_25:
b LBB21_26
LBB21_26:
ldr x8, [sp, #80]
ldr x8, [x8, #56]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB21_30
b LBB21_27
LBB21_27:
ldr x8, [sp, #80]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB21_30
b LBB21_28
LBB21_28:
add x0, sp, #4, lsl #12 ; =16384
add x0, x0, #88
bl _is_nonempty_file
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB21_30
b LBB21_29
LBB21_29:
ldr x0, [sp, #80]
add x1, sp, #4, lsl #12 ; =16384
add x1, x1, #88
bl _fillin_program_objs
b LBB21_30
LBB21_30:
ldr x8, [sp, #80]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB21_34
b LBB21_31
LBB21_31:
ldr x8, [sp, #80]
ldr x8, [x8, #40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB21_34
b LBB21_32
LBB21_32:
adrp x8, _verbose@GOTPAGE
ldr x8, [x8, _verbose@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB21_34
b LBB21_33
LBB21_33:
ldr x8, [sp, #80]
ldr x8, [x8, #8]
mov x9, sp
adrp x10, l_.str.58@PAGE
add x10, x10, l_.str.58@PAGEOFF
str x10, [x9]
adrp x10, _infilename@GOTPAGE
ldr x10, [x10, _infilename@GOTPAGEOFF]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.57@PAGE
add x0, x0, l_.str.57@PAGEOFF
bl _warnx
b LBB21_34
LBB21_34:
ldr x8, [sp, #80]
ldr x8, [x8, #56]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB21_37
b LBB21_35
LBB21_35:
adrp x8, _verbose@GOTPAGE
ldr x8, [x8, _verbose@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB21_37
b LBB21_36
LBB21_36:
ldr x8, [sp, #80]
ldr x8, [x8, #8]
mov x9, sp
adrp x10, _infilename@GOTPAGE
ldr x10, [x10, _infilename@GOTPAGEOFF]
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.59@PAGE
add x0, x0, l_.str.59@PAGEOFF
bl _warnx
b LBB21_37
LBB21_37:
ldr x8, [sp, #80]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB21_39
b LBB21_38
LBB21_38:
ldr x8, [sp, #80]
ldr x8, [x8, #40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB21_41
b LBB21_39
LBB21_39:
ldr x8, [sp, #80]
ldr x8, [x8, #56]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB21_41
b LBB21_40
LBB21_40:
ldr x9, [sp, #80]
mov w8, #1
str w8, [x9, #112]
b LBB21_41
LBB21_41:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB21_43
b LBB21_42
LBB21_42:
bl ___stack_chk_fail
LBB21_43:
add sp, sp, #4, lsl #12 ; =16384
add sp, sp, #1120
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _remove_error_progs ; -- Begin function remove_error_progs
.p2align 2
_remove_error_progs: ; @remove_error_progs
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
adrp x8, _progs@PAGE
ldr x8, [x8, _progs@PAGEOFF]
str x8, [sp, #16]
b LBB22_1
LBB22_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB22_9
b LBB22_2
LBB22_2: ; in Loop: Header=BB22_1 Depth=1
ldr x8, [sp, #16]
ldr w8, [x8, #112]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB22_4
b LBB22_3
LBB22_3: ; in Loop: Header=BB22_1 Depth=1
ldr x8, [sp, #16]
stur x8, [x29, #-8]
ldr x8, [sp, #16]
ldr x8, [x8]
str x8, [sp, #16]
b LBB22_8
LBB22_4: ; in Loop: Header=BB22_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #8]
mov x9, sp
adrp x10, _infilename@GOTPAGE
ldr x10, [x10, _infilename@GOTPAGEOFF]
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.76@PAGE
add x0, x0, l_.str.76@PAGEOFF
bl _warnx
ldur x8, [x29, #-8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB22_6
b LBB22_5
LBB22_5: ; in Loop: Header=BB22_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
ldur x9, [x29, #-8]
str x8, [x9]
b LBB22_7
LBB22_6: ; in Loop: Header=BB22_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
adrp x9, _progs@PAGE
str x8, [x9, _progs@PAGEOFF]
b LBB22_7
LBB22_7: ; in Loop: Header=BB22_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
str x8, [sp, #16]
b LBB22_8
LBB22_8: ; in Loop: Header=BB22_1 Depth=1
b LBB22_1
LBB22_9:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _gen_specials_cache ; -- Begin function gen_specials_cache
.p2align 2
_gen_specials_cache: ; @gen_specials_cache
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
mov w9, #16448
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #4, lsl #12 ; =16384
sub sp, sp, #64
adrp x8, _cachename@GOTPAGE
ldr x8, [x8, _cachename@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
adrp x9, ___stack_chk_guard@GOTPAGE
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
ldr x9, [x9]
stur x9, [x29, #-24]
mov x9, sp
str x8, [x9]
add x0, sp, #56
str x0, [sp, #24] ; 8-byte Folded Spill
mov x3, #16384
mov x1, x3
mov w2, #0
adrp x4, l_.str.77@PAGE
add x4, x4, l_.str.77@PAGEOFF
bl ___snprintf_chk
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _status
ldr x0, [sp, #32] ; 8-byte Folded Reload
adrp x1, l_.str.61@PAGE
add x1, x1, l_.str.61@PAGEOFF
bl _fopen
mov x8, x0
str x8, [sp, #48]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB23_2
b LBB23_1
LBB23_1:
ldr x8, [sp, #32] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _warn
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB23_15
LBB23_2:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [sp, #48]
mov x9, sp
str x8, [x9]
adrp x8, _infilename@GOTPAGE
ldr x8, [x8, _infilename@GOTPAGEOFF]
str x8, [x9, #8]
adrp x8, l_.str.79@PAGE
add x8, x8, l_.str.79@PAGEOFF
str x8, [x9, #16]
adrp x1, l_.str.78@PAGE
add x1, x1, l_.str.78@PAGEOFF
bl _fprintf
adrp x8, _progs@PAGE
ldr x8, [x8, _progs@PAGEOFF]
str x8, [sp, #40]
b LBB23_3
LBB23_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB23_14
b LBB23_4
LBB23_4: ; in Loop: Header=BB23_3 Depth=1
ldr x0, [sp, #48]
adrp x1, l_.str.80@PAGE
add x1, x1, l_.str.80@PAGEOFF
bl _fprintf
ldr x8, [sp, #40]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB23_6
b LBB23_5
LBB23_5: ; in Loop: Header=BB23_3 Depth=1
ldr x0, [sp, #48]
ldr x8, [sp, #40]
ldr x10, [x8, #8]
ldr x8, [sp, #40]
ldr x8, [x8, #24]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.81@PAGE
add x1, x1, l_.str.81@PAGEOFF
bl _fprintf
b LBB23_6
LBB23_6: ; in Loop: Header=BB23_3 Depth=1
ldr x8, [sp, #40]
ldr x8, [x8, #40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB23_8
b LBB23_7
LBB23_7: ; in Loop: Header=BB23_3 Depth=1
ldr x0, [sp, #48]
ldr x8, [sp, #40]
ldr x10, [x8, #8]
ldr x8, [sp, #40]
ldr x8, [x8, #40]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.82@PAGE
add x1, x1, l_.str.82@PAGEOFF
bl _fprintf
b LBB23_8
LBB23_8: ; in Loop: Header=BB23_3 Depth=1
ldr x8, [sp, #40]
ldr x8, [x8, #56]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB23_10
b LBB23_9
LBB23_9: ; in Loop: Header=BB23_3 Depth=1
ldr x0, [sp, #48]
ldr x8, [sp, #40]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.83@PAGE
add x1, x1, l_.str.83@PAGEOFF
bl _fprintf
ldr x0, [sp, #48]
ldr x8, [sp, #40]
ldr x1, [x8, #56]
bl _output_strlst
b LBB23_10
LBB23_10: ; in Loop: Header=BB23_3 Depth=1
ldr x8, [sp, #40]
ldr x8, [x8, #64]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB23_12
b LBB23_11
LBB23_11: ; in Loop: Header=BB23_3 Depth=1
ldr x0, [sp, #48]
ldr x8, [sp, #40]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.84@PAGE
add x1, x1, l_.str.84@PAGEOFF
bl _fprintf
ldr x0, [sp, #48]
ldr x8, [sp, #40]
ldr x1, [x8, #64]
bl _output_strlst
b LBB23_12
LBB23_12: ; in Loop: Header=BB23_3 Depth=1
b LBB23_13
LBB23_13: ; in Loop: Header=BB23_3 Depth=1
ldr x8, [sp, #40]
ldr x8, [x8]
str x8, [sp, #40]
b LBB23_3
LBB23_14:
ldr x0, [sp, #48]
bl _fclose
b LBB23_15
LBB23_15:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB23_17
b LBB23_16
LBB23_16:
bl ___stack_chk_fail
LBB23_17:
add sp, sp, #4, lsl #12 ; =16384
add sp, sp, #64
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _gen_output_cfile ; -- Begin function gen_output_cfile
.p2align 2
_gen_output_cfile: ; @gen_output_cfile
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
mov w9, #16464
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #4, lsl #12 ; =16384
sub sp, sp, #80
adrp x8, _outcfname@GOTPAGE
ldr x8, [x8, _outcfname@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
adrp x9, ___stack_chk_guard@GOTPAGE
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
ldr x9, [x9]
stur x9, [x29, #-24]
mov x9, sp
str x8, [x9]
add x0, sp, #72
str x0, [sp, #24] ; 8-byte Folded Spill
mov x3, #16384
mov x1, x3
mov w2, #0
adrp x4, l_.str.77@PAGE
add x4, x4, l_.str.77@PAGEOFF
bl ___snprintf_chk
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _status
ldr x0, [sp, #32] ; 8-byte Folded Reload
adrp x1, l_.str.61@PAGE
add x1, x1, l_.str.61@PAGEOFF
bl _fopen
mov x8, x0
str x8, [sp, #56]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB24_2
b LBB24_1
LBB24_1:
ldr x8, [sp, #32] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _warn
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB24_19
LBB24_2:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [sp, #56]
mov x9, sp
str x8, [x9]
adrp x8, _infilename@GOTPAGE
ldr x8, [x8, _infilename@GOTPAGEOFF]
str x8, [x9, #8]
adrp x8, l_.str.79@PAGE
add x8, x8, l_.str.79@PAGEOFF
str x8, [x9, #16]
adrp x1, l_.str.87@PAGE
add x1, x1, l_.str.87@PAGEOFF
bl _fprintf
ldr x0, [sp, #56]
mov x9, sp
adrp x8, _execfname@GOTPAGE
ldr x8, [x8, _execfname@GOTPAGEOFF]
str x8, [x9]
adrp x1, l_.str.88@PAGE
add x1, x1, l_.str.88@PAGEOFF
bl _fprintf
adrp x8, _crunched_skel@GOTPAGE
ldr x8, [x8, _crunched_skel@GOTPAGEOFF]
str x8, [sp, #64]
b LBB24_3
LBB24_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #64]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB24_6
b LBB24_4
LBB24_4: ; in Loop: Header=BB24_3 Depth=1
ldr x0, [sp, #56]
ldr x8, [sp, #64]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.30@PAGE
add x1, x1, l_.str.30@PAGEOFF
bl _fprintf
b LBB24_5
LBB24_5: ; in Loop: Header=BB24_3 Depth=1
ldr x8, [sp, #64]
add x8, x8, #8
str x8, [sp, #64]
b LBB24_3
LBB24_6:
adrp x8, _progs@PAGE
ldr x8, [x8, _progs@PAGEOFF]
str x8, [sp, #48]
b LBB24_7
LBB24_7: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB24_10
b LBB24_8
LBB24_8: ; in Loop: Header=BB24_7 Depth=1
ldr x0, [sp, #56]
ldr x8, [sp, #48]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.89@PAGE
add x1, x1, l_.str.89@PAGEOFF
bl _fprintf
b LBB24_9
LBB24_9: ; in Loop: Header=BB24_7 Depth=1
ldr x8, [sp, #48]
ldr x8, [x8]
str x8, [sp, #48]
b LBB24_7
LBB24_10:
ldr x0, [sp, #56]
adrp x1, l_.str.90@PAGE
add x1, x1, l_.str.90@PAGEOFF
bl _fprintf
adrp x8, _progs@PAGE
ldr x8, [x8, _progs@PAGEOFF]
str x8, [sp, #48]
b LBB24_11
LBB24_11: ; =>This Loop Header: Depth=1
; Child Loop BB24_13 Depth 2
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB24_18
b LBB24_12
LBB24_12: ; in Loop: Header=BB24_11 Depth=1
ldr x0, [sp, #56]
ldr x8, [sp, #48]
ldr x10, [x8, #8]
ldr x8, [sp, #48]
ldr x8, [x8, #16]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.91@PAGE
add x1, x1, l_.str.91@PAGEOFF
bl _fprintf
ldr x8, [sp, #48]
ldr x8, [x8, #88]
str x8, [sp, #40]
b LBB24_13
LBB24_13: ; Parent Loop BB24_11 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB24_16
b LBB24_14
LBB24_14: ; in Loop: Header=BB24_13 Depth=2
ldr x0, [sp, #56]
ldr x8, [sp, #40]
ldr x10, [x8, #8]
ldr x8, [sp, #48]
ldr x8, [x8, #16]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.91@PAGE
add x1, x1, l_.str.91@PAGEOFF
bl _fprintf
b LBB24_15
LBB24_15: ; in Loop: Header=BB24_13 Depth=2
ldr x8, [sp, #40]
ldr x8, [x8]
str x8, [sp, #40]
b LBB24_13
LBB24_16: ; in Loop: Header=BB24_11 Depth=1
b LBB24_17
LBB24_17: ; in Loop: Header=BB24_11 Depth=1
ldr x8, [sp, #48]
ldr x8, [x8]
str x8, [sp, #48]
b LBB24_11
LBB24_18:
ldr x0, [sp, #56]
adrp x1, l_.str.92@PAGE
add x1, x1, l_.str.92@PAGEOFF
bl _fprintf
ldr x0, [sp, #56]
adrp x1, l_.str.93@PAGE
add x1, x1, l_.str.93@PAGEOFF
bl _fprintf
ldr x0, [sp, #56]
bl _fclose
b LBB24_19
LBB24_19:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB24_21
b LBB24_20
LBB24_20:
bl ___stack_chk_fail
LBB24_21:
add sp, sp, #4, lsl #12 ; =16384
add sp, sp, #80
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _gen_output_makefile ; -- Begin function gen_output_makefile
.p2align 2
_gen_output_makefile: ; @gen_output_makefile
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
mov w9, #16448
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #4, lsl #12 ; =16384
sub sp, sp, #64
adrp x8, _outmkname@GOTPAGE
ldr x8, [x8, _outmkname@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
adrp x9, ___stack_chk_guard@GOTPAGE
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
ldr x9, [x9]
stur x9, [x29, #-24]
mov x9, sp
str x8, [x9]
add x0, sp, #56
str x0, [sp, #24] ; 8-byte Folded Spill
mov x3, #16384
mov x1, x3
mov w2, #0
adrp x4, l_.str.77@PAGE
add x4, x4, l_.str.77@PAGEOFF
bl ___snprintf_chk
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _status
ldr x0, [sp, #32] ; 8-byte Folded Reload
adrp x1, l_.str.61@PAGE
add x1, x1, l_.str.61@PAGEOFF
bl _fopen
mov x8, x0
str x8, [sp, #40]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB25_2
b LBB25_1
LBB25_1:
ldr x8, [sp, #32] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _warn
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB25_9
LBB25_2:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [sp, #40]
mov x9, sp
str x8, [x9]
adrp x8, _infilename@GOTPAGE
ldr x8, [x8, _infilename@GOTPAGEOFF]
str x8, [x9, #8]
adrp x8, l_.str.79@PAGE
add x8, x8, l_.str.79@PAGEOFF
str x8, [x9, #16]
adrp x1, l_.str.85@PAGE
add x1, x1, l_.str.85@PAGEOFF
bl _fprintf
adrp x8, _outhdrname@GOTPAGE
ldr x8, [x8, _outhdrname@GOTPAGEOFF]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB25_4
b LBB25_3
LBB25_3:
ldr x0, [sp, #40]
mov x9, sp
adrp x8, _outhdrname@GOTPAGE
ldr x8, [x8, _outhdrname@GOTPAGEOFF]
str x8, [x9]
adrp x1, l_.str.62@PAGE
add x1, x1, l_.str.62@PAGEOFF
bl _fprintf
b LBB25_4
LBB25_4:
ldr x0, [sp, #40]
bl _top_makefile_rules
adrp x8, _progs@PAGE
ldr x8, [x8, _progs@PAGEOFF]
str x8, [sp, #48]
b LBB25_5
LBB25_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB25_8
b LBB25_6
LBB25_6: ; in Loop: Header=BB25_5 Depth=1
ldr x0, [sp, #40]
ldr x1, [sp, #48]
bl _prog_makefile_rules
b LBB25_7
LBB25_7: ; in Loop: Header=BB25_5 Depth=1
ldr x8, [sp, #48]
ldr x8, [x8]
str x8, [sp, #48]
b LBB25_5
LBB25_8:
ldr x0, [sp, #40]
adrp x1, l_.str.86@PAGE
add x1, x1, l_.str.86@PAGEOFF
bl _fprintf
ldr x0, [sp, #40]
bl _fclose
b LBB25_9
LBB25_9:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB25_11
b LBB25_10
LBB25_10:
bl ___stack_chk_fail
LBB25_11:
add sp, sp, #4, lsl #12 ; =16384
add sp, sp, #64
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _genident ; -- Begin function genident
.p2align 2
_genident: ; @genident
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
ldur x0, [x29, #-16]
bl _strdup
mov x8, x0
str x8, [sp, #24]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB26_2
b LBB26_1
LBB26_1:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB26_13
LBB26_2:
ldr x8, [sp, #24]
str x8, [sp, #16]
str x8, [sp, #8]
b LBB26_3
LBB26_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB26_12
b LBB26_4
LBB26_4: ; in Loop: Header=BB26_3 Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB26_6
b LBB26_5
LBB26_5: ; in Loop: Header=BB26_3 Depth=1
ldr x9, [sp, #8]
add x8, x9, #1
str x8, [sp, #8]
mov w8, #95
strb w8, [x9]
b LBB26_10
LBB26_6: ; in Loop: Header=BB26_3 Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #95
cset w8, eq
tbnz w8, #0, LBB26_8
b LBB26_7
LBB26_7: ; in Loop: Header=BB26_3 Depth=1
ldr x8, [sp, #16]
ldrsb w0, [x8]
bl _isalnum
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB26_9
b LBB26_8
LBB26_8: ; in Loop: Header=BB26_3 Depth=1
ldr x8, [sp, #16]
ldrb w8, [x8]
ldr x9, [sp, #8]
add x10, x9, #1
str x10, [sp, #8]
strb w8, [x9]
b LBB26_9
LBB26_9: ; in Loop: Header=BB26_3 Depth=1
b LBB26_10
LBB26_10: ; in Loop: Header=BB26_3 Depth=1
b LBB26_11
LBB26_11: ; in Loop: Header=BB26_3 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB26_3
LBB26_12:
ldr x8, [sp, #8]
strb wzr, [x8]
ldr x8, [sp, #24]
stur x8, [x29, #-8]
b LBB26_13
LBB26_13:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _dir_search ; -- Begin function dir_search
.p2align 2
_dir_search: ; @dir_search
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub sp, sp, #1104
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #56]
adrp x8, _srcdirs@PAGE
ldr x8, [x8, _srcdirs@PAGEOFF]
str x8, [sp, #48]
b LBB27_1
LBB27_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB27_8
b LBB27_2
LBB27_2: ; in Loop: Header=BB27_1 Depth=1
ldr x8, [sp, #48]
ldr x10, [x8, #8]
ldr x8, [sp, #56]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
add x0, sp, #72
str x0, [sp, #32] ; 8-byte Folded Spill
mov x3, #1024
mov x1, x3
mov w2, #0
adrp x4, l_.str.53@PAGE
add x4, x4, l_.str.53@PAGEOFF
bl ___snprintf_chk
ldr x0, [sp, #32] ; 8-byte Folded Reload
bl _is_dir
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB27_4
b LBB27_3
LBB27_3: ; in Loop: Header=BB27_1 Depth=1
b LBB27_7
LBB27_4:
add x0, sp, #72
bl _strdup
mov x8, x0
str x8, [sp, #40]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB27_6
b LBB27_5
LBB27_5:
bl _out_of_memory
b LBB27_6
LBB27_6:
ldr x8, [sp, #40]
str x8, [sp, #64]
b LBB27_9
LBB27_7: ; in Loop: Header=BB27_1 Depth=1
ldr x8, [sp, #48]
ldr x8, [x8]
str x8, [sp, #48]
b LBB27_1
LBB27_8:
; kill: def $x8 killed $xzr
str xzr, [sp, #64]
b LBB27_9
LBB27_9:
ldr x8, [sp, #64]
str x8, [sp, #24] ; 8-byte Folded Spill
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB27_11
b LBB27_10
LBB27_10:
bl ___stack_chk_fail
LBB27_11:
ldr x0, [sp, #24] ; 8-byte Folded Reload
add sp, sp, #1104
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _fillin_program_objs ; -- Begin function fillin_program_objs
.p2align 2
_fillin_program_objs: ; @fillin_program_objs
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
mov w9, #16512
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #4, lsl #12 ; =16384
sub sp, sp, #128
mov x8, x0
adrp x0, _tempfname@GOTPAGE
ldr x0, [x0, _tempfname@GOTPAGEOFF]
str x0, [sp, #48] ; 8-byte Folded Spill
adrp x9, ___stack_chk_guard@GOTPAGE
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
ldr x9, [x9]
stur x9, [x29, #-24]
str x8, [sp, #112]
str x1, [sp, #104]
adrp x8, l_.str.60@PAGE
add x8, x8, l_.str.60@PAGEOFF
str x8, [sp, #64]
bl _mkstemp
str w0, [sp, #84]
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB28_2
b LBB28_1
LBB28_1:
ldr x0, [sp, #48] ; 8-byte Folded Reload
bl _perror
mov w0, #1
bl _exit
LBB28_2:
ldr w0, [sp, #84]
adrp x1, l_.str.61@PAGE
add x1, x1, l_.str.61@PAGEOFF
bl _fdopen
mov x8, x0
str x8, [sp, #72]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB28_4
b LBB28_3
LBB28_3:
ldr x8, [sp, #48] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _warn
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB28_40
LBB28_4:
ldr x8, [sp, #112]
ldr x8, [x8, #48]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB28_6
b LBB28_5
LBB28_5:
ldr x8, [sp, #112]
ldr x8, [x8, #48]
str x8, [sp, #64]
b LBB28_6
LBB28_6:
adrp x8, _outhdrname@GOTPAGE
ldr x8, [x8, _outhdrname@GOTPAGEOFF]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB28_8
b LBB28_7
LBB28_7:
ldr x0, [sp, #72]
mov x9, sp
adrp x8, _outhdrname@GOTPAGE
ldr x8, [x8, _outhdrname@GOTPAGEOFF]
str x8, [x9]
adrp x1, l_.str.62@PAGE
add x1, x1, l_.str.62@PAGEOFF
bl _fprintf
b LBB28_8
LBB28_8:
ldr x0, [sp, #72]
ldr x8, [sp, #104]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.62@PAGE
add x1, x1, l_.str.62@PAGEOFF
bl _fprintf
adrp x8, _buildopts@PAGE
ldr x8, [x8, _buildopts@PAGEOFF]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB28_10
b LBB28_9
LBB28_9:
ldr x0, [sp, #72]
adrp x1, l_.str.63@PAGE
add x1, x1, l_.str.63@PAGEOFF
bl _fprintf
ldr x0, [sp, #72]
adrp x8, _buildopts@PAGE
ldr x1, [x8, _buildopts@PAGEOFF]
bl _output_strlst
b LBB28_10
LBB28_10:
ldr x0, [sp, #72]
ldr x8, [sp, #64]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.64@PAGE
add x1, x1, l_.str.64@PAGEOFF
bl _fprintf
ldr x0, [sp, #72]
ldr x8, [sp, #64]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.65@PAGE
add x1, x1, l_.str.65@PAGEOFF
bl _fprintf
ldr x0, [sp, #72]
adrp x1, l_.str.66@PAGE
add x1, x1, l_.str.66@PAGEOFF
bl _fprintf
ldr x0, [sp, #72]
ldr x8, [sp, #64]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.67@PAGE
add x1, x1, l_.str.67@PAGEOFF
bl _fprintf
ldr x10, [sp, #48] ; 8-byte Folded Reload
ldr x0, [sp, #72]
ldr x8, [sp, #112]
ldr x11, [x8, #24]
ldr x8, [sp, #112]
ldr x8, [x8, #16]
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x1, l_.str.68@PAGE
add x1, x1, l_.str.68@PAGEOFF
bl _fprintf
ldr x8, [sp, #112]
ldr x8, [x8, #72]
str x8, [sp, #56]
b LBB28_11
LBB28_11: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #56]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB28_14
b LBB28_12
LBB28_12: ; in Loop: Header=BB28_11 Depth=1
ldr x0, [sp, #72]
ldr x8, [sp, #56]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.69@PAGE
add x1, x1, l_.str.69@PAGEOFF
bl _fprintf
b LBB28_13
LBB28_13: ; in Loop: Header=BB28_11 Depth=1
ldr x8, [sp, #56]
ldr x8, [x8]
str x8, [sp, #56]
b LBB28_11
LBB28_14:
ldr x0, [sp, #72]
adrp x1, l_.str.70@PAGE
add x1, x1, l_.str.70@PAGEOFF
bl _fprintf
ldr x0, [sp, #72]
bl _fclose
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x9, [sp, #112]
ldr x10, [x9, #24]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
add x0, sp, #120
str x0, [sp, #40] ; 8-byte Folded Spill
mov x3, #16384
mov x1, x3
mov w2, #0
adrp x4, l_.str.71@PAGE
add x4, x4, l_.str.71@PAGEOFF
bl ___snprintf_chk
ldr x0, [sp, #40] ; 8-byte Folded Reload
adrp x1, l_.str.18@PAGE
add x1, x1, l_.str.18@PAGEOFF
bl _popen
mov x8, x0
str x8, [sp, #72]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB28_16
b LBB28_15
LBB28_15:
adrp x0, l_.str.72@PAGE
add x0, x0, l_.str.72@PAGEOFF
bl _warn
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB28_40
LBB28_16:
b LBB28_17
LBB28_17: ; =>This Loop Header: Depth=1
; Child Loop BB28_21 Depth 2
; Child Loop BB28_24 Depth 2
; Child Loop BB28_26 Depth 3
; Child Loop BB28_33 Depth 3
ldr x2, [sp, #72]
add x0, sp, #120
mov w1, #16384
bl _fgets
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB28_37
b LBB28_18
LBB28_18: ; in Loop: Header=BB28_17 Depth=1
add x0, sp, #120
adrp x1, l_.str.73@PAGE
add x1, x1, l_.str.73@PAGEOFF
mov x2, #6
bl _strncmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB28_20
b LBB28_19
LBB28_19: ; in Loop: Header=BB28_17 Depth=1
mov x9, sp
add x8, sp, #120
str x8, [x9]
adrp x0, l_.str.74@PAGE
add x0, x0, l_.str.74@PAGEOFF
bl _warnx
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB28_17
LBB28_20: ; in Loop: Header=BB28_17 Depth=1
add x8, sp, #120
add x8, x8, #6
str x8, [sp, #88]
b LBB28_21
LBB28_21: ; Parent Loop BB28_17 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #88]
ldrsb w0, [x8]
bl _isspace
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB28_23
b LBB28_22
LBB28_22: ; in Loop: Header=BB28_21 Depth=2
ldr x8, [sp, #88]
add x8, x8, #1
str x8, [sp, #88]
b LBB28_21
LBB28_23: ; in Loop: Header=BB28_17 Depth=1
b LBB28_24
LBB28_24: ; Parent Loop BB28_17 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB28_26 Depth 3
; Child Loop BB28_33 Depth 3
ldr x8, [sp, #88]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB28_36
b LBB28_25
LBB28_25: ; in Loop: Header=BB28_24 Depth=2
ldr x8, [sp, #88]
str x8, [sp, #96]
b LBB28_26
LBB28_26: ; Parent Loop BB28_17 Depth=1
; Parent Loop BB28_24 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #88]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #36] ; 4-byte Folded Spill
tbnz w8, #0, LBB28_28
b LBB28_27
LBB28_27: ; in Loop: Header=BB28_26 Depth=3
ldr x8, [sp, #88]
ldrsb w0, [x8]
bl _isspace
subs w8, w0, #0
cset w8, eq
str w8, [sp, #36] ; 4-byte Folded Spill
b LBB28_28
LBB28_28: ; in Loop: Header=BB28_26 Depth=3
ldr w8, [sp, #36] ; 4-byte Folded Reload
tbz w8, #0, LBB28_30
b LBB28_29
LBB28_29: ; in Loop: Header=BB28_26 Depth=3
ldr x8, [sp, #88]
add x8, x8, #1
str x8, [sp, #88]
b LBB28_26
LBB28_30: ; in Loop: Header=BB28_24 Depth=2
ldr x8, [sp, #88]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB28_32
b LBB28_31
LBB28_31: ; in Loop: Header=BB28_24 Depth=2
ldr x8, [sp, #88]
add x9, x8, #1
str x9, [sp, #88]
strb wzr, [x8]
b LBB28_32
LBB28_32: ; in Loop: Header=BB28_24 Depth=2
ldr x8, [sp, #112]
add x0, x8, #56
ldr x1, [sp, #96]
bl _add_string
b LBB28_33
LBB28_33: ; Parent Loop BB28_17 Depth=1
; Parent Loop BB28_24 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #88]
ldrsb w0, [x8]
bl _isspace
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB28_35
b LBB28_34
LBB28_34: ; in Loop: Header=BB28_33 Depth=3
ldr x8, [sp, #88]
add x8, x8, #1
str x8, [sp, #88]
b LBB28_33
LBB28_35: ; in Loop: Header=BB28_24 Depth=2
b LBB28_24
LBB28_36: ; in Loop: Header=BB28_17 Depth=1
b LBB28_17
LBB28_37:
ldr x0, [sp, #72]
bl _pclose
str w0, [sp, #80]
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB28_39
b LBB28_38
LBB28_38:
ldr w9, [sp, #80]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.75@PAGE
add x0, x0, l_.str.75@PAGEOFF
bl _warnx
adrp x9, _goterror@PAGE
mov w8, #1
str w8, [x9, _goterror@PAGEOFF]
b LBB28_39
LBB28_39:
ldr x0, [sp, #48] ; 8-byte Folded Reload
bl _unlink
b LBB28_40
LBB28_40:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB28_42
b LBB28_41
LBB28_41:
bl ___stack_chk_fail
LBB28_42:
add sp, sp, #4, lsl #12 ; =16384
add sp, sp, #128
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _output_strlst ; -- Begin function output_strlst
.p2align 2
_output_strlst: ; @output_strlst
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
b LBB29_1
LBB29_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB29_6
b LBB29_2
LBB29_2: ; in Loop: Header=BB29_1 Depth=1
ldr x8, [sp, #16]
ldr x0, [x8, #8]
bl _strlen
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB29_4
b LBB29_3
LBB29_3: ; in Loop: Header=BB29_1 Depth=1
ldur x0, [x29, #-8]
ldr x8, [sp, #16]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.69@PAGE
add x1, x1, l_.str.69@PAGEOFF
bl _fprintf
b LBB29_4
LBB29_4: ; in Loop: Header=BB29_1 Depth=1
b LBB29_5
LBB29_5: ; in Loop: Header=BB29_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
str x8, [sp, #16]
b LBB29_1
LBB29_6:
ldur x0, [x29, #-8]
adrp x1, l_.str.80@PAGE
add x1, x1, l_.str.80@PAGEOFF
bl _fprintf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _top_makefile_rules ; -- Begin function top_makefile_rules
.p2align 2
_top_makefile_rules: ; @top_makefile_rules
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _execfname@GOTPAGE
ldr x8, [x8, _execfname@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
stur x0, [x29, #-8]
adrp x0, _libs@PAGE
add x0, x0, _libs@PAGEOFF
adrp x1, _libs_so@PAGE
add x1, x1, _libs_so@PAGEOFF
bl _subtract_strlst
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB30_2
b LBB30_1
LBB30_1:
ldur x0, [x29, #-8]
adrp x1, l_.str.94@PAGE
add x1, x1, l_.str.94@PAGEOFF
bl _fprintf
b LBB30_2
LBB30_2:
ldur x0, [x29, #-8]
adrp x1, l_.str.95@PAGE
add x1, x1, l_.str.95@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x8, _libs@PAGE
ldr x1, [x8, _libs@PAGEOFF]
bl _output_strlst
ldur x0, [x29, #-8]
adrp x1, l_.str.96@PAGE
add x1, x1, l_.str.96@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x8, _libs_so@PAGE
ldr x1, [x8, _libs_so@PAGEOFF]
bl _output_strlst
adrp x8, _makeobj@PAGE
ldr w8, [x8, _makeobj@PAGEOFF]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB30_4
b LBB30_3
LBB30_3:
ldur x0, [x29, #-8]
adrp x8, _objprefix@GOTPAGE
ldr x8, [x8, _objprefix@GOTPAGEOFF]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.97@PAGE
add x1, x1, l_.str.97@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x1, l_.str.98@PAGE
add x1, x1, l_.str.98@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x1, l_.str.99@PAGE
add x1, x1, l_.str.99@PAGEOFF
bl _fprintf
b LBB30_5
LBB30_4:
ldur x0, [x29, #-8]
adrp x1, l_.str.100@PAGE
add x1, x1, l_.str.100@PAGEOFF
bl _fprintf
b LBB30_5
LBB30_5:
adrp x8, _buildopts@PAGE
ldr x8, [x8, _buildopts@PAGEOFF]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB30_7
b LBB30_6
LBB30_6:
ldur x0, [x29, #-8]
adrp x1, l_.str.63@PAGE
add x1, x1, l_.str.63@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x8, _buildopts@PAGE
ldr x1, [x8, _buildopts@PAGEOFF]
bl _output_strlst
b LBB30_7
LBB30_7:
ldur x0, [x29, #-8]
adrp x1, l_.str.101@PAGE
add x1, x1, l_.str.101@PAGEOFF
bl _fprintf
adrp x8, _progs@PAGE
ldr x8, [x8, _progs@PAGEOFF]
stur x8, [x29, #-16]
b LBB30_8
LBB30_8: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB30_11
b LBB30_9
LBB30_9: ; in Loop: Header=BB30_8 Depth=1
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.102@PAGE
add x1, x1, l_.str.102@PAGEOFF
bl _fprintf
b LBB30_10
LBB30_10: ; in Loop: Header=BB30_8 Depth=1
ldur x8, [x29, #-16]
ldr x8, [x8]
stur x8, [x29, #-16]
b LBB30_8
LBB30_11:
ldur x0, [x29, #-8]
adrp x1, l_.str.80@PAGE
add x1, x1, l_.str.80@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x1, l_.str.103@PAGE
add x1, x1, l_.str.103@PAGEOFF
bl _fprintf
adrp x8, _progs@PAGE
ldr x8, [x8, _progs@PAGEOFF]
stur x8, [x29, #-16]
b LBB30_12
LBB30_12: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB30_15
b LBB30_13
LBB30_13: ; in Loop: Header=BB30_12 Depth=1
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.104@PAGE
add x1, x1, l_.str.104@PAGEOFF
bl _fprintf
b LBB30_14
LBB30_14: ; in Loop: Header=BB30_12 Depth=1
ldur x8, [x29, #-16]
ldr x8, [x8]
stur x8, [x29, #-16]
b LBB30_12
LBB30_15:
ldur x0, [x29, #-8]
adrp x1, l_.str.105@PAGE
add x1, x1, l_.str.105@PAGEOFF
bl _fprintf
adrp x8, _progs@PAGE
ldr x8, [x8, _progs@PAGEOFF]
stur x8, [x29, #-16]
b LBB30_16
LBB30_16: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB30_19
b LBB30_17
LBB30_17: ; in Loop: Header=BB30_16 Depth=1
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.106@PAGE
add x1, x1, l_.str.106@PAGEOFF
bl _fprintf
b LBB30_18
LBB30_18: ; in Loop: Header=BB30_16 Depth=1
ldur x8, [x29, #-16]
ldr x8, [x8]
stur x8, [x29, #-16]
b LBB30_16
LBB30_19:
ldur x0, [x29, #-8]
adrp x1, l_.str.107@PAGE
add x1, x1, l_.str.107@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x1, l_.str.108@PAGE
add x1, x1, l_.str.108@PAGEOFF
bl _fprintf
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.109@PAGE
add x1, x1, l_.str.109@PAGEOFF
bl _fprintf
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
mov x9, sp
mov x10, x8
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.110@PAGE
add x1, x1, l_.str.110@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x1, l_.str.111@PAGE
add x1, x1, l_.str.111@PAGEOFF
bl _fprintf
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
mov x9, sp
mov x10, x8
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.112@PAGE
add x1, x1, l_.str.112@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x1, l_.str.113@PAGE
add x1, x1, l_.str.113@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x1, l_.str.114@PAGE
add x1, x1, l_.str.114@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x1, l_.str.115@PAGE
add x1, x1, l_.str.115@PAGEOFF
bl _fprintf
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
mov x9, sp
mov x10, x8
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.116@PAGE
add x1, x1, l_.str.116@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x1, l_.str.66@PAGE
add x1, x1, l_.str.66@PAGEOFF
bl _fprintf
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.117@PAGE
add x1, x1, l_.str.117@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x1, l_.str.118@PAGE
add x1, x1, l_.str.118@PAGEOFF
bl _fprintf
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.119@PAGE
add x1, x1, l_.str.119@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x1, l_.str.120@PAGE
add x1, x1, l_.str.120@PAGEOFF
bl _fprintf
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _prog_makefile_rules ; -- Begin function prog_makefile_rules
.p2align 2
_prog_makefile_rules: ; @prog_makefile_rules
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.121@PAGE
add x1, x1, l_.str.121@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.122@PAGE
add x1, x1, l_.str.122@PAGEOFF
bl _fprintf
ldur x8, [x29, #-16]
ldr x8, [x8, #40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB31_2
b LBB31_1
LBB31_1:
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #40]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _fprintf
b LBB31_3
LBB31_2:
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.123@PAGE
add x1, x1, l_.str.123@PAGEOFF
bl _fprintf
b LBB31_3
LBB31_3:
ldur x0, [x29, #-8]
adrp x1, l_.str.80@PAGE
add x1, x1, l_.str.80@PAGEOFF
bl _fprintf
ldur x8, [x29, #-16]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB31_10
b LBB31_4
LBB31_4:
ldur x8, [x29, #-16]
ldr x8, [x8, #56]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB31_10
b LBB31_5
LBB31_5:
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x10, [x8, #16]
ldur x8, [x29, #-16]
ldr x8, [x8, #24]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.124@PAGE
add x1, x1, l_.str.124@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x10, [x8, #16]
ldur x8, [x29, #-16]
ldr x8, [x8, #32]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.125@PAGE
add x1, x1, l_.str.125@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.126@PAGE
add x1, x1, l_.str.126@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x1, [x8, #56]
bl _output_strlst
ldur x8, [x29, #-16]
ldr x8, [x8, #72]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB31_7
b LBB31_6
LBB31_6:
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.127@PAGE
add x1, x1, l_.str.127@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x1, [x8, #72]
bl _output_strlst
b LBB31_7
LBB31_7:
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.128@PAGE
add x1, x1, l_.str.128@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.129@PAGE
add x1, x1, l_.str.129@PAGEOFF
bl _fprintf
adrp x8, _makeobj@PAGE
ldr w8, [x8, _makeobj@PAGEOFF]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB31_9
b LBB31_8
LBB31_8:
ldur x0, [x29, #-8]
adrp x1, l_.str.130@PAGE
add x1, x1, l_.str.130@PAGEOFF
bl _fprintf
b LBB31_9
LBB31_9:
ldur x0, [x29, #-8]
adrp x1, l_.str.131@PAGE
add x1, x1, l_.str.131@PAGEOFF
str x1, [sp, #32] ; 8-byte Folded Spill
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.132@PAGE
add x1, x1, l_.str.132@PAGEOFF
bl _fprintf
ldr x1, [sp, #32] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x10, [x8, #16]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.133@PAGE
add x1, x1, l_.str.133@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x1, l_.str.80@PAGE
add x1, x1, l_.str.80@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.134@PAGE
add x1, x1, l_.str.134@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.135@PAGE
add x1, x1, l_.str.135@PAGEOFF
bl _fprintf
b LBB31_11
LBB31_10:
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.128@PAGE
add x1, x1, l_.str.128@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.136@PAGE
add x1, x1, l_.str.136@PAGEOFF
bl _fprintf
b LBB31_11
LBB31_11:
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.137@PAGE
add x1, x1, l_.str.137@PAGEOFF
bl _fprintf
ldur x8, [x29, #-16]
ldr x8, [x8, #64]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB31_13
b LBB31_12
LBB31_12:
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x1, [x8, #64]
bl _output_strlst
b LBB31_18
LBB31_13:
ldur x8, [x29, #-16]
ldr x8, [x8, #56]
stur x8, [x29, #-24]
b LBB31_14
LBB31_14: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB31_17
b LBB31_15
LBB31_15: ; in Loop: Header=BB31_14 Depth=1
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x10, [x8, #16]
ldur x8, [x29, #-24]
ldr x8, [x8, #8]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.138@PAGE
add x1, x1, l_.str.138@PAGEOFF
bl _fprintf
b LBB31_16
LBB31_16: ; in Loop: Header=BB31_14 Depth=1
ldur x8, [x29, #-24]
ldr x8, [x8]
stur x8, [x29, #-24]
b LBB31_14
LBB31_17:
ldur x0, [x29, #-8]
adrp x1, l_.str.80@PAGE
add x1, x1, l_.str.80@PAGEOFF
bl _fprintf
b LBB31_18
LBB31_18:
ldur x8, [x29, #-16]
ldr x8, [x8, #96]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB31_20
b LBB31_19
LBB31_19:
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.139@PAGE
add x1, x1, l_.str.139@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x1, [x8, #96]
bl _output_strlst
b LBB31_20
LBB31_20:
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.140@PAGE
add x1, x1, l_.str.140@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x10, [x8, #16]
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.141@PAGE
add x1, x1, l_.str.141@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x11, [x8, #8]
ldur x8, [x29, #-16]
ldr x10, [x8, #8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x1, l_.str.142@PAGE
add x1, x1, l_.str.142@PAGEOFF
bl _fprintf
ldur x8, [x29, #-16]
ldr x8, [x8, #96]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB31_22
b LBB31_21
LBB31_21:
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.143@PAGE
add x1, x1, l_.str.143@PAGEOFF
bl _fprintf
b LBB31_22
LBB31_22:
ldur x0, [x29, #-8]
adrp x1, l_.str.80@PAGE
add x1, x1, l_.str.80@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x11, [x8, #8]
ldur x8, [x29, #-16]
ldr x10, [x8, #8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x1, l_.str.144@PAGE
add x1, x1, l_.str.144@PAGEOFF
bl _fprintf
ldur x8, [x29, #-16]
ldr x8, [x8, #96]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB31_24
b LBB31_23
LBB31_23:
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.143@PAGE
add x1, x1, l_.str.143@PAGEOFF
bl _fprintf
b LBB31_24
LBB31_24:
ldur x0, [x29, #-8]
adrp x1, l_.str.80@PAGE
add x1, x1, l_.str.80@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.145@PAGE
add x1, x1, l_.str.145@PAGEOFF
bl _fprintf
ldur x8, [x29, #-16]
ldr x8, [x8, #80]
stur x8, [x29, #-24]
b LBB31_25
LBB31_25: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB31_28
b LBB31_26
LBB31_26: ; in Loop: Header=BB31_25 Depth=1
ldur x0, [x29, #-8]
ldur x8, [x29, #-24]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.146@PAGE
add x1, x1, l_.str.146@PAGEOFF
bl _fprintf
b LBB31_27
LBB31_27: ; in Loop: Header=BB31_25 Depth=1
ldur x8, [x29, #-24]
ldr x8, [x8]
stur x8, [x29, #-24]
b LBB31_25
LBB31_28:
ldur x0, [x29, #-8]
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.147@PAGE
add x1, x1, l_.str.147@PAGEOFF
bl _fprintf
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _subtract_strlst ; -- Begin function subtract_strlst
.p2align 2
_subtract_strlst: ; @subtract_strlst
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur wzr, [x29, #-20]
ldur x8, [x29, #-16]
ldr x8, [x8]
str x8, [sp, #16]
b LBB32_1
LBB32_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB32_6
b LBB32_2
LBB32_2: ; in Loop: Header=BB32_1 Depth=1
ldur x0, [x29, #-8]
ldr x8, [sp, #16]
ldr x1, [x8, #8]
bl _in_list
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB32_4
b LBB32_3
LBB32_3: ; in Loop: Header=BB32_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.151@PAGE
add x0, x0, l_.str.151@PAGEOFF
bl _warnx
ldr x8, [sp, #16]
ldr x0, [x8, #8]
adrp x1, l_.str.47@PAGE
add x1, x1, l_.str.47@PAGEOFF
mov x2, #-1
bl ___strcat_chk
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB32_4
LBB32_4: ; in Loop: Header=BB32_1 Depth=1
b LBB32_5
LBB32_5: ; in Loop: Header=BB32_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
str x8, [sp, #16]
b LBB32_1
LBB32_6:
ldur w0, [x29, #-20]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _buildopts ; @buildopts
.zerofill __DATA,__common,_buildopts,8,3
.globl _srcdirs ; @srcdirs
.zerofill __DATA,__common,_srcdirs,8,3
.globl _libs ; @libs
.zerofill __DATA,__common,_libs,8,3
.globl _libs_so ; @libs_so
.zerofill __DATA,__common,_libs_so,8,3
.globl _progs ; @progs
.zerofill __DATA,__common,_progs,8,3
.section __DATA,__data
.globl _linenum ; @linenum
.p2align 2
_linenum:
.long 4294967295 ; 0xffffffff
.globl _goterror ; @goterror
.zerofill __DATA,__common,_goterror,4,2
.globl _makeobj ; @makeobj
.zerofill __DATA,__common,_makeobj,4,2
.comm _verbose,4,2 ; @verbose
.comm _readcache,4,2 ; @readcache
.comm _execfname,1024,0 ; @execfname
.comm _outcfname,1024,0 ; @outcfname
.comm _outmkname,1024,0 ; @outmkname
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "MAKEOBJDIRPREFIX"
l_.str.1: ; @.str.1
.asciz "/usr/obj"
.comm _objprefix,8,3 ; @objprefix
l_.str.2: ; @.str.2
.asciz "lh:m:c:e:p:foq"
.comm _outhdrname,1024,0 ; @outhdrname
.comm _list_mode,4,2 ; @list_mode
.comm _infilename,1024,0 ; @infilename
.comm _confname,1024,0 ; @confname
l_.str.3: ; @.str.3
.asciz ".conf"
l_.str.4: ; @.str.4
.asciz "%s.mk"
l_.str.5: ; @.str.5
.asciz "%s.c"
l_.str.6: ; @.str.6
.asciz "%s"
.comm _cachename,1024,0 ; @cachename
l_.str.7: ; @.str.7
.asciz "%s.cache"
.comm _tempfname,1024,0 ; @tempfname
l_.str.8: ; @.str.8
.asciz "%s/crunchgen_%sXXXXXX"
l_.str.9: ; @.str.9
.asciz "TMPDIR"
l_.str.10: ; @.str.10
.asciz "/tmp/"
l_.str.11: ; @.str.11
.asciz "%s%s\n\t%s%s\n"
l_.str.12: ; @.str.12
.asciz "usage: crunchgen [-foq] "
l_.str.13: ; @.str.13
.asciz "[-h <makefile-header-name>] [-m <makefile>]"
l_.str.14: ; @.str.14
.asciz "[-p <obj-prefix>] [-c <c-file-name>] [-e <exec-file>] "
l_.str.15: ; @.str.15
.asciz "<conffile>"
l_.str.16: ; @.str.16
.asciz "fatal: input file \"%s\" not found"
.comm _reading_cache,4,2 ; @reading_cache
l_.str.17: ; @.str.17
.asciz "reading %s"
.comm _curfilename,1024,0 ; @curfilename
l_.str.18: ; @.str.18
.asciz "r"
l_.str.19: ; @.str.19
.asciz "srcdirs"
l_.str.20: ; @.str.20
.asciz "progs"
l_.str.21: ; @.str.21
.asciz "ln"
l_.str.22: ; @.str.22
.asciz "libs"
l_.str.23: ; @.str.23
.asciz "libs_so"
l_.str.24: ; @.str.24
.asciz "buildopts"
l_.str.25: ; @.str.25
.asciz "special"
l_.str.26: ; @.str.26
.asciz "%s:%d: skipping unknown command `%s'"
l_.str.27: ; @.str.27
.asciz "%s:%d: %s %s"
l_.str.28: ; @.str.28
.asciz "command needs at least 1 argument, skipping"
l_.str.29: ; @.str.29
.asciz "%s:%d: `%s' is not a directory, skipping it"
l_.str.30: ; @.str.30
.asciz "%s\n"
l_.str.31: ; @.str.31
.asciz "%s:%d: no prog %s previously declared, skipping link"
l_.str.32: ; @.str.32
.asciz "%s:%d: library `%s' specified as dynamic earlier"
l_.str.33: ; @.str.33
.asciz "%s:%d: library `%s' specified as static earlier"
l_.str.34: ; @.str.34
.asciz "%s:%d: no prog %s previously declared, skipping special"
l_.str.35: ; @.str.35
.asciz "ident"
l_.str.36: ; @.str.36
.asciz "srcdir"
l_.str.37: ; @.str.37
.asciz "objdir"
l_.str.38: ; @.str.38
.asciz "objs"
l_.str.39: ; @.str.39
.asciz "objpaths"
l_.str.40: ; @.str.40
.asciz "keep"
l_.str.41: ; @.str.41
.asciz "objvar"
l_.str.42: ; @.str.42
.asciz "lib"
l_.str.43: ; @.str.43
.asciz "%s:%d: bad parameter name `%s', skipping line"
l_.str.44: ; @.str.44
.asciz "%s:%d: too %s arguments, expected \"special %s %s <string>\""
l_.str.45: ; @.str.45
.asciz "few"
l_.str.46: ; @.str.46
.asciz "many"
l_.str.47: ; @.str.47
.space 1
l_.str.48: ; @.str.48
.asciz "Run \"make -f %s\" to build crunched binary.\n"
l_.str.49: ; @.str.49
.asciz "filling in parms for %s"
l_.str.50: ; @.str.50
.asciz "cd %s && echo -n `/bin/pwd`"
l_.str.51: ; @.str.51
.asciz "Can't execute: %s\n"
l_.str.52: ; @.str.52
.asciz "Can't perform pwd on: %s\n"
l_.str.53: ; @.str.53
.asciz "%s/%s"
l_.str.54: ; @.str.54
.asciz "Makefile.%s"
l_.str.55: ; @.str.55
.asciz "Using %s for %s"
l_.str.56: ; @.str.56
.asciz "%s/Makefile"
l_.str.57: ; @.str.57
.asciz "%s: %s: %s"
l_.str.58: ; @.str.58
.asciz "warning: could not find source directory"
l_.str.59: ; @.str.59
.asciz "%s: %s: warning: could not find any .o files"
l_.str.60: ; @.str.60
.asciz "OBJS"
l_.str.61: ; @.str.61
.asciz "w"
l_.str.62: ; @.str.62
.asciz ".include \"%s\"\n"
l_.str.63: ; @.str.63
.asciz "BUILDOPTS+="
l_.str.64: ; @.str.64
.asciz ".if defined(PROG) && !defined(%s)\n"
l_.str.65: ; @.str.65
.asciz "%s=${PROG}.o\n"
l_.str.66: ; @.str.66
.asciz ".endif\n"
l_.str.67: ; @.str.67
.asciz "loop:\n\t@echo 'OBJS= '${%s}\n"
l_.str.68: ; @.str.68
.asciz "crunchgen_objs:\n\t@cd %s && make -f %s $(BUILDOPTS) $(%s_OPTS)"
l_.str.69: ; @.str.69
.asciz " %s"
l_.str.70: ; @.str.70
.asciz " loop\n"
l_.str.71: ; @.str.71
.asciz "cd %s && make -f %s crunchgen_objs"
l_.str.72: ; @.str.72
.asciz "submake pipe"
l_.str.73: ; @.str.73
.asciz "OBJS= "
l_.str.74: ; @.str.74
.asciz "make error: %s"
l_.str.75: ; @.str.75
.asciz "make error: make returned %d"
l_.str.76: ; @.str.76
.asciz "%s: %s: ignoring program because of errors"
l_.str.77: ; @.str.77
.asciz "generating %s"
l_.str.78: ; @.str.78
.asciz "# %s - parm cache generated from %s by crunchgen %s\n\n"
l_.str.79: ; @.str.79
.asciz "0.2"
l_.str.80: ; @.str.80
.asciz "\n"
l_.str.81: ; @.str.81
.asciz "special %s srcdir %s\n"
l_.str.82: ; @.str.82
.asciz "special %s objdir %s\n"
l_.str.83: ; @.str.83
.asciz "special %s objs"
l_.str.84: ; @.str.84
.asciz "special %s objpaths"
l_.str.85: ; @.str.85
.asciz "# %s - generated from %s by crunchgen %s\n\n"
l_.str.86: ; @.str.86
.asciz "\n# ========\n"
l_.str.87: ; @.str.87
.asciz "/* %s - generated from %s by crunchgen %s */\n"
l_.str.88: ; @.str.88
.asciz "#define EXECNAME \"%s\"\n"
l_.str.89: ; @.str.89
.asciz "extern int _crunched_%s_stub();\n"
l_.str.90: ; @.str.90
.asciz "\nstruct stub entry_points[] = {\n"
l_.str.91: ; @.str.91
.asciz "\t{ \"%s\", _crunched_%s_stub },\n"
l_.str.92: ; @.str.92
.asciz "\t{ EXECNAME, crunched_main },\n"
l_.str.93: ; @.str.93
.asciz "\t{ NULL, NULL }\n};\n"
l_.str.94: ; @.str.94
.asciz "# NOTE: Some LIBS declarations below overridden by LIBS_SO\n"
l_.str.95: ; @.str.95
.asciz "LIBS+="
l_.str.96: ; @.str.96
.asciz "LIBS_SO+="
l_.str.97: ; @.str.97
.asciz "MAKEOBJDIRPREFIX?=%s\n"
l_.str.98: ; @.str.98
.asciz "MAKEENV=env MAKEOBJDIRPREFIX=$(MAKEOBJDIRPREFIX)\n"
l_.str.99: ; @.str.99
.asciz "CRUNCHMAKE=$(MAKEENV) $(MAKE)\n"
l_.str.100: ; @.str.100
.asciz "CRUNCHMAKE=$(MAKE)\n"
l_.str.101: ; @.str.101
.asciz "CRUNCHED_OBJS="
l_.str.102: ; @.str.102
.asciz " %s.lo"
l_.str.103: ; @.str.103
.asciz "SUBMAKE_TARGETS="
l_.str.104: ; @.str.104
.asciz " %s_make"
l_.str.105: ; @.str.105
.asciz "\nSUBCLEAN_TARGETS="
l_.str.106: ; @.str.106
.asciz " %s_clean"
l_.str.107: ; @.str.107
.asciz "\n\n"
l_.str.108: ; @.str.108
.asciz "all: objs exe\nobjs: $(SUBMAKE_TARGETS)\n"
l_.str.109: ; @.str.109
.asciz "exe: %s\n"
l_.str.110: ; @.str.110
.asciz "%s: %s.o $(CRUNCHED_OBJS)\n"
l_.str.111: ; @.str.111
.asciz ".if defined(LIBS_SO) && !empty(LIBS_SO)\n"
l_.str.112: ; @.str.112
.asciz "\t$(CC) -o %s %s.o $(CRUNCHED_OBJS) \\\n"
l_.str.113: ; @.str.113
.asciz "\t\t-Xlinker -Bstatic $(LIBS) \\\n"
l_.str.114: ; @.str.114
.asciz "\t\t-Xlinker -Bdynamic $(LIBS_SO)\n"
l_.str.115: ; @.str.115
.asciz ".else\n"
l_.str.116: ; @.str.116
.asciz "\t$(CC) -static -o %s %s.o $(CRUNCHED_OBJS) $(LIBS)\n"
l_.str.117: ; @.str.117
.asciz "\tstrip %s\n"
l_.str.118: ; @.str.118
.asciz "realclean: clean subclean\n"
l_.str.119: ; @.str.119
.asciz "clean:\n\trm -f %s *.lo *.o *_stub.c\n"
l_.str.120: ; @.str.120
.asciz "subclean: $(SUBCLEAN_TARGETS)\n"
l_.str.121: ; @.str.121
.asciz "\n# -------- %s\n\n"
l_.str.122: ; @.str.122
.asciz "%s_OBJDIR="
l_.str.123: ; @.str.123
.asciz "$(MAKEOBJDIRPREFIX)/$(%s_REALSRCDIR)\n"
l_.str.124: ; @.str.124
.asciz "%s_SRCDIR=%s\n"
l_.str.125: ; @.str.125
.asciz "%s_REALSRCDIR=%s\n"
l_.str.126: ; @.str.126
.asciz "%s_OBJS="
l_.str.127: ; @.str.127
.asciz "%s_OPTS+="
l_.str.128: ; @.str.128
.asciz "%s_make:\n"
l_.str.129: ; @.str.129
.asciz "\t(cd $(%s_SRCDIR) && "
l_.str.130: ; @.str.130
.asciz "$(CRUNCHMAKE) obj && "
l_.str.131: ; @.str.131
.asciz "\\\n"
l_.str.132: ; @.str.132
.asciz "\t\t$(CRUNCHMAKE) $(BUILDOPTS) $(%s_OPTS) depend &&"
l_.str.133: ; @.str.133
.asciz "\t\t$(CRUNCHMAKE) $(BUILDOPTS) $(%s_OPTS) $(%s_OBJS))"
l_.str.134: ; @.str.134
.asciz "%s_clean:\n"
l_.str.135: ; @.str.135
.asciz "\t(cd $(%s_SRCDIR) && $(CRUNCHMAKE) $(BUILDOPTS) clean cleandepend)\n\n"
l_.str.136: ; @.str.136
.asciz "\t@echo \"** cannot make objs for %s\"\n\n"
l_.str.137: ; @.str.137
.asciz "%s_OBJPATHS="
l_.str.138: ; @.str.138
.asciz " $(%s_OBJDIR)/%s"
l_.str.139: ; @.str.139
.asciz "%s_LIBS="
l_.str.140: ; @.str.140
.asciz "%s_stub.c:\n"
l_.str.141: ; @.str.141
.asciz "\techo \"int _crunched_%s_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}\" >%s_stub.c\n"
l_.str.142: ; @.str.142
.asciz "%s.lo: %s_stub.o $(%s_OBJPATHS)"
l_.str.143: ; @.str.143
.asciz " $(%s_LIBS)"
l_.str.144: ; @.str.144
.asciz "\tld -dc -r -o %s.lo %s_stub.o $(%s_OBJPATHS)"
l_.str.145: ; @.str.145
.asciz "\tcrunchide -k _crunched_%s_stub "
l_.str.146: ; @.str.146
.asciz "-k _%s "
l_.str.147: ; @.str.147
.asciz "%s.lo\n"
.zerofill __DATA,__bss,_status.lastlen,4,2 ; @status.lastlen
l_.str.148: ; @.str.148
.asciz " [%s]%*.*s\r"
l_.str.149: ; @.str.149
.asciz " "
l_.str.150: ; @.str.150
.asciz "%s: %d: out of memory, stopping"
l_.str.151: ; @.str.151
.asciz "Will compile library `%s' dynamically"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movq _verbose@GOTPCREL(%rip), %rax
movl $1, (%rax)
movq _readcache@GOTPCREL(%rip), %rax
movl $1, (%rax)
movq _execfname@GOTPCREL(%rip), %rax
movb $0, (%rax)
movq _outcfname@GOTPCREL(%rip), %rax
movb $0, (%rax)
movq _outmkname@GOTPCREL(%rip), %rax
movb $0, (%rax)
leaq L_.str(%rip), %rdi
callq _getenv
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
je LBB0_2
## %bb.1:
movq -24(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
jne LBB0_3
LBB0_2:
movq _objprefix@GOTPCREL(%rip), %rax
leaq L_.str.1(%rip), %rcx
movq %rcx, (%rax)
jmp LBB0_6
LBB0_3:
movq -24(%rbp), %rdi
callq _strdup
movq _objprefix@GOTPCREL(%rip), %rcx
movq %rax, (%rcx)
cmpq $0, %rax
jne LBB0_5
## %bb.4:
callq _out_of_memory
LBB0_5:
jmp LBB0_6
LBB0_6:
jmp LBB0_7
LBB0_7: ## =>This Inner Loop Header: Depth=1
movl -8(%rbp), %edi
movq -16(%rbp), %rsi
leaq L_.str.2(%rip), %rdx
callq _getopt
movl %eax, -28(%rbp)
cmpl $-1, %eax
je LBB0_23
## %bb.8: ## in Loop: Header=BB0_7 Depth=1
movl -28(%rbp), %eax
addl $-63, %eax
movl %eax, %ecx
movq %rcx, -40(%rbp) ## 8-byte Spill
subl $50, %eax
ja LBB0_21
## %bb.43: ## in Loop: Header=BB0_7 Depth=1
movq -40(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_9: ## in Loop: Header=BB0_7 Depth=1
movq _readcache@GOTPCREL(%rip), %rax
movl $0, (%rax)
jmp LBB0_22
LBB0_10: ## in Loop: Header=BB0_7 Depth=1
movl $1, _makeobj(%rip)
jmp LBB0_22
LBB0_11: ## in Loop: Header=BB0_7 Depth=1
movq _verbose@GOTPCREL(%rip), %rax
movl $0, (%rax)
jmp LBB0_22
LBB0_12: ## in Loop: Header=BB0_7 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movq _outmkname@GOTPCREL(%rip), %rdi
movl $1024, %ecx ## imm = 0x400
movq %rcx, %rdx
callq ___strlcpy_chk
jmp LBB0_22
LBB0_13: ## in Loop: Header=BB0_7 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _strdup
movq _objprefix@GOTPCREL(%rip), %rcx
movq %rax, (%rcx)
cmpq $0, %rax
jne LBB0_15
## %bb.14: ## in Loop: Header=BB0_7 Depth=1
callq _out_of_memory
LBB0_15: ## in Loop: Header=BB0_7 Depth=1
jmp LBB0_22
LBB0_16: ## in Loop: Header=BB0_7 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movq _outhdrname@GOTPCREL(%rip), %rdi
movl $1024, %ecx ## imm = 0x400
movq %rcx, %rdx
callq ___strlcpy_chk
jmp LBB0_22
LBB0_17: ## in Loop: Header=BB0_7 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movq _outcfname@GOTPCREL(%rip), %rdi
movl $1024, %ecx ## imm = 0x400
movq %rcx, %rdx
callq ___strlcpy_chk
jmp LBB0_22
LBB0_18: ## in Loop: Header=BB0_7 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movq _execfname@GOTPCREL(%rip), %rdi
movl $1024, %ecx ## imm = 0x400
movq %rcx, %rdx
callq ___strlcpy_chk
jmp LBB0_22
LBB0_19: ## in Loop: Header=BB0_7 Depth=1
movq _list_mode@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _list_mode@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _verbose@GOTPCREL(%rip), %rax
movl $0, (%rax)
jmp LBB0_22
LBB0_20: ## in Loop: Header=BB0_7 Depth=1
jmp LBB0_21
LBB0_21: ## in Loop: Header=BB0_7 Depth=1
callq _usage
LBB0_22: ## in Loop: Header=BB0_7 Depth=1
jmp LBB0_7
LBB0_23:
movq _optind@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movl -8(%rbp), %eax
subl %ecx, %eax
movl %eax, -8(%rbp)
movq _optind@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -16(%rbp), %rax
movslq %ecx, %rcx
shlq $3, %rcx
addq %rcx, %rax
movq %rax, -16(%rbp)
cmpl $1, -8(%rbp)
je LBB0_25
## %bb.24:
callq _usage
LBB0_25:
movq -16(%rbp), %rax
movq (%rax), %rsi
movq _infilename@GOTPCREL(%rip), %rdi
movl $1024, %ecx ## imm = 0x400
movq %rcx, %rdx
callq ___strlcpy_chk
movq _infilename@GOTPCREL(%rip), %rdi
movl $47, %esi
callq _strrchr
movq %rax, -24(%rbp)
cmpq $0, %rax
je LBB0_27
## %bb.26:
movq -24(%rbp), %rsi
addq $1, %rsi
movq _confname@GOTPCREL(%rip), %rdi
movl $1024, %ecx ## imm = 0x400
movq %rcx, %rdx
callq ___strlcpy_chk
jmp LBB0_28
LBB0_27:
movq _confname@GOTPCREL(%rip), %rdi
movq _infilename@GOTPCREL(%rip), %rsi
movl $1024, %ecx ## imm = 0x400
movq %rcx, %rdx
callq ___strlcpy_chk
LBB0_28:
movq _confname@GOTPCREL(%rip), %rdi
movl $46, %esi
callq _strrchr
movq %rax, -24(%rbp)
cmpq $0, %rax
je LBB0_31
## %bb.29:
movq -24(%rbp), %rdi
leaq L_.str.3(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_31
## %bb.30:
movq -24(%rbp), %rax
movb $0, (%rax)
LBB0_31:
movq _outmkname@GOTPCREL(%rip), %rax
cmpb $0, (%rax)
jne LBB0_33
## %bb.32:
movq _outmkname@GOTPCREL(%rip), %rdi
movl $1024, %ecx ## imm = 0x400
xorl %edx, %edx
leaq L_.str.4(%rip), %r8
movq _confname@GOTPCREL(%rip), %r9
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
LBB0_33:
movq _outcfname@GOTPCREL(%rip), %rax
cmpb $0, (%rax)
jne LBB0_35
## %bb.34:
movq _outcfname@GOTPCREL(%rip), %rdi
movl $1024, %ecx ## imm = 0x400
xorl %edx, %edx
leaq L_.str.5(%rip), %r8
movq _confname@GOTPCREL(%rip), %r9
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
LBB0_35:
movq _execfname@GOTPCREL(%rip), %rax
cmpb $0, (%rax)
jne LBB0_37
## %bb.36:
movq _execfname@GOTPCREL(%rip), %rdi
movl $1024, %ecx ## imm = 0x400
xorl %edx, %edx
leaq L_.str.6(%rip), %r8
movq _confname@GOTPCREL(%rip), %r9
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
LBB0_37:
movq _cachename@GOTPCREL(%rip), %rdi
movl $1024, %ecx ## imm = 0x400
xorl %edx, %edx
leaq L_.str.7(%rip), %r8
movq _confname@GOTPCREL(%rip), %r9
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
leaq L_.str.9(%rip), %rdi
callq _getenv
cmpq $0, %rax
je LBB0_39
## %bb.38:
leaq L_.str.9(%rip), %rdi
callq _getenv
movq %rax, -48(%rbp) ## 8-byte Spill
jmp LBB0_40
LBB0_39:
leaq L_.str.10(%rip), %rax
movq %rax, -48(%rbp) ## 8-byte Spill
jmp LBB0_40
LBB0_40:
movq -48(%rbp), %r9 ## 8-byte Reload
movq _tempfname@GOTPCREL(%rip), %rdi
movl $1024, %ecx ## imm = 0x400
xorl %edx, %edx
leaq L_.str.8(%rip), %r8
movq _confname@GOTPCREL(%rip), %rax
movq %rcx, %rsi
movq %rax, (%rsp)
movb $0, %al
callq ___snprintf_chk
callq _parse_conf_file
movq _list_mode@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
je LBB0_42
## %bb.41:
movl _goterror(%rip), %edi
callq _exit
LBB0_42:
callq _gen_outputs
movl _goterror(%rip), %edi
callq _exit
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
.long L0_0_set_20
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_17
.long L0_0_set_21
.long L0_0_set_18
.long L0_0_set_9
.long L0_0_set_21
.long L0_0_set_16
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_21
.long L0_0_set_19
.long L0_0_set_12
.long L0_0_set_21
.long L0_0_set_10
.long L0_0_set_13
.long L0_0_set_11
.end_data_region
## -- End function
.globl _out_of_memory ## -- Begin function out_of_memory
.p2align 4, 0x90
_out_of_memory: ## @out_of_memory
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl _linenum(%rip), %ecx
leaq L_.str.150(%rip), %rsi
movq _infilename@GOTPCREL(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $1, %edi
callq _err
.cfi_endproc
## -- End function
.globl _usage ## -- Begin function usage
.p2align 4, 0x90
_usage: ## @usage
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.11(%rip), %rsi
leaq L_.str.12(%rip), %rdx
leaq L_.str.13(%rip), %rcx
leaq L_.str.14(%rip), %r8
leaq L_.str.15(%rip), %r9
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
.cfi_endproc
## -- End function
.globl _parse_conf_file ## -- Begin function parse_conf_file
.p2align 4, 0x90
_parse_conf_file: ## @parse_conf_file
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _infilename@GOTPCREL(%rip), %rdi
callq _is_nonempty_file
cmpl $0, %eax
jne LBB3_2
## %bb.1:
leaq L_.str.16(%rip), %rsi
movq _infilename@GOTPCREL(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $1, %edi
callq _errx
LBB3_2:
movq _infilename@GOTPCREL(%rip), %rdi
callq _parse_one_file
movq _readcache@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
je LBB3_5
## %bb.3:
movq _cachename@GOTPCREL(%rip), %rdi
callq _is_nonempty_file
cmpl $0, %eax
je LBB3_5
## %bb.4:
movq _reading_cache@GOTPCREL(%rip), %rax
movl $1, (%rax)
movq _cachename@GOTPCREL(%rip), %rdi
callq _parse_one_file
LBB3_5:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _gen_outputs ## -- Begin function gen_outputs
.p2align 4, 0x90
_gen_outputs: ## @gen_outputs
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq _progs(%rip), %rax
movq %rax, -8(%rbp)
LBB4_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -8(%rbp)
je LBB4_4
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movq -8(%rbp), %rdi
callq _fillin_program
## %bb.3: ## in Loop: Header=BB4_1 Depth=1
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
jmp LBB4_1
LBB4_4:
callq _remove_error_progs
callq _gen_specials_cache
callq _gen_output_cfile
callq _gen_output_makefile
leaq L_.str.47(%rip), %rdi
callq _status
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.48(%rip), %rsi
movq _outmkname@GOTPCREL(%rip), %rdx
movb $0, %al
callq _fprintf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _is_nonempty_file ## -- Begin function is_nonempty_file
.p2align 4, 0x90
_is_nonempty_file: ## @is_nonempty_file
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $176, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rdi
leaq -160(%rbp), %rsi
callq _stat$INODE64
cmpl $-1, %eax
jne LBB5_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB5_5
LBB5_2:
movzwl -156(%rbp), %ecx
andl $61440, %ecx ## imm = 0xF000
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $32768, %ecx ## imm = 0x8000
movb %al, -161(%rbp) ## 1-byte Spill
jne LBB5_4
## %bb.3:
cmpq $0, -64(%rbp)
setg %al
movb %al, -161(%rbp) ## 1-byte Spill
LBB5_4:
movb -161(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
movl %eax, -4(%rbp)
LBB5_5:
movl -4(%rbp), %eax
addq $176, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _parse_one_file ## -- Begin function parse_one_file
.p2align 4, 0x90
_parse_one_file: ## @parse_one_file
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $32816, %eax ## imm = 0x8030
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -32792(%rbp)
leaq -32784(%rbp), %rdi
movq -32792(%rbp), %r9
movl $16384, %ecx ## imm = 0x4000
xorl %edx, %edx
leaq L_.str.17(%rip), %r8
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
leaq -32784(%rbp), %rdi
callq _status
movq -32792(%rbp), %rsi
movq _curfilename@GOTPCREL(%rip), %rdi
movl $1024, %ecx ## imm = 0x400
movq %rcx, %rdx
callq ___strlcpy_chk
movq _curfilename@GOTPCREL(%rip), %rdi
leaq L_.str.18(%rip), %rsi
callq _fopen
movq %rax, -32816(%rbp)
cmpq $0, %rax
jne LBB6_2
## %bb.1:
leaq L_.str.6(%rip), %rdi
movq _curfilename@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warn
movl $1, _goterror(%rip)
jmp LBB6_33
LBB6_2:
movl $0, _linenum(%rip)
LBB6_3: ## =>This Inner Loop Header: Depth=1
leaq -32784(%rbp), %rdi
movq -32816(%rbp), %rdx
movl $16384, %esi ## imm = 0x4000
callq _fgets
cmpq $0, %rax
je LBB6_30
## %bb.4: ## in Loop: Header=BB6_3 Depth=1
movl _linenum(%rip), %eax
addl $1, %eax
movl %eax, _linenum(%rip)
leaq -32784(%rbp), %rdi
leaq -16400(%rbp), %rdx
leaq -32796(%rbp), %rsi
movl $2048, %ecx ## imm = 0x800
callq _parse_line
cmpl $1, -32796(%rbp)
jge LBB6_6
## %bb.5: ## in Loop: Header=BB6_3 Depth=1
jmp LBB6_3
LBB6_6: ## in Loop: Header=BB6_3 Depth=1
movq -16400(%rbp), %rdi
leaq L_.str.19(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB6_8
## %bb.7: ## in Loop: Header=BB6_3 Depth=1
leaq _add_srcdirs(%rip), %rax
movq %rax, -32808(%rbp)
jmp LBB6_27
LBB6_8: ## in Loop: Header=BB6_3 Depth=1
movq -16400(%rbp), %rdi
leaq L_.str.20(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB6_10
## %bb.9: ## in Loop: Header=BB6_3 Depth=1
leaq _add_progs(%rip), %rax
movq %rax, -32808(%rbp)
jmp LBB6_26
LBB6_10: ## in Loop: Header=BB6_3 Depth=1
movq -16400(%rbp), %rdi
leaq L_.str.21(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB6_12
## %bb.11: ## in Loop: Header=BB6_3 Depth=1
leaq _add_link(%rip), %rax
movq %rax, -32808(%rbp)
jmp LBB6_25
LBB6_12: ## in Loop: Header=BB6_3 Depth=1
movq -16400(%rbp), %rdi
leaq L_.str.22(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB6_14
## %bb.13: ## in Loop: Header=BB6_3 Depth=1
leaq _add_libs(%rip), %rax
movq %rax, -32808(%rbp)
jmp LBB6_24
LBB6_14: ## in Loop: Header=BB6_3 Depth=1
movq -16400(%rbp), %rdi
leaq L_.str.23(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB6_16
## %bb.15: ## in Loop: Header=BB6_3 Depth=1
leaq _add_libs_so(%rip), %rax
movq %rax, -32808(%rbp)
jmp LBB6_23
LBB6_16: ## in Loop: Header=BB6_3 Depth=1
movq -16400(%rbp), %rdi
leaq L_.str.24(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB6_18
## %bb.17: ## in Loop: Header=BB6_3 Depth=1
leaq _add_buildopts(%rip), %rax
movq %rax, -32808(%rbp)
jmp LBB6_22
LBB6_18: ## in Loop: Header=BB6_3 Depth=1
movq -16400(%rbp), %rdi
leaq L_.str.25(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB6_20
## %bb.19: ## in Loop: Header=BB6_3 Depth=1
leaq _add_special(%rip), %rax
movq %rax, -32808(%rbp)
jmp LBB6_21
LBB6_20: ## in Loop: Header=BB6_3 Depth=1
movl _linenum(%rip), %edx
movq -16400(%rbp), %rcx
leaq L_.str.26(%rip), %rdi
movq _curfilename@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warnx
movl $1, _goterror(%rip)
jmp LBB6_3
LBB6_21: ## in Loop: Header=BB6_3 Depth=1
jmp LBB6_22
LBB6_22: ## in Loop: Header=BB6_3 Depth=1
jmp LBB6_23
LBB6_23: ## in Loop: Header=BB6_3 Depth=1
jmp LBB6_24
LBB6_24: ## in Loop: Header=BB6_3 Depth=1
jmp LBB6_25
LBB6_25: ## in Loop: Header=BB6_3 Depth=1
jmp LBB6_26
LBB6_26: ## in Loop: Header=BB6_3 Depth=1
jmp LBB6_27
LBB6_27: ## in Loop: Header=BB6_3 Depth=1
cmpl $2, -32796(%rbp)
jge LBB6_29
## %bb.28: ## in Loop: Header=BB6_3 Depth=1
movl _linenum(%rip), %edx
movq -16400(%rbp), %rcx
leaq L_.str.27(%rip), %rdi
movq _curfilename@GOTPCREL(%rip), %rsi
leaq L_.str.28(%rip), %r8
movb $0, %al
callq _warnx
movl $1, _goterror(%rip)
jmp LBB6_3
LBB6_29: ## in Loop: Header=BB6_3 Depth=1
movq -32808(%rbp), %rax
movl -32796(%rbp), %edi
leaq -16400(%rbp), %rsi
callq *%rax
jmp LBB6_3
LBB6_30:
movq -32816(%rbp), %rdi
callq _ferror
cmpl $0, %eax
je LBB6_32
## %bb.31:
leaq L_.str.6(%rip), %rdi
movq _curfilename@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warn
movl $1, _goterror(%rip)
LBB6_32:
movq -32816(%rbp), %rdi
callq _fclose
LBB6_33:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB6_35
## %bb.34:
addq $32816, %rsp ## imm = 0x8030
popq %rbp
retq
LBB6_35:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _status ## -- Begin function status
.p2align 4, 0x90
_status: ## @status
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq _verbose@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB7_2
## %bb.1:
jmp LBB7_5
LBB7_2:
movq -8(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -12(%rbp)
movl _status.lastlen(%rip), %eax
subl -12(%rbp), %eax
movl %eax, -16(%rbp)
cmpl $1, -16(%rbp)
jge LBB7_4
## %bb.3:
movl $1, -16(%rbp)
LBB7_4:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -8(%rbp), %rdx
movl -16(%rbp), %ecx
movl -16(%rbp), %r8d
leaq L_.str.148(%rip), %rsi
leaq L_.str.149(%rip), %r9
movb $0, %al
callq _fprintf
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fflush
movl -12(%rbp), %eax
movl %eax, _status.lastlen(%rip)
LBB7_5:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _parse_line ## -- Begin function parse_line
.p2align 4, 0x90
_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
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movl %ecx, -28(%rbp)
movq -8(%rbp), %rax
movq %rax, -40(%rbp)
movq -16(%rbp), %rax
movl $0, (%rax)
LBB8_1: ## =>This Loop Header: Depth=1
## Child Loop BB8_2 Depth 2
## Child Loop BB8_10 Depth 2
jmp LBB8_2
LBB8_2: ## Parent Loop BB8_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -40(%rbp), %rax
movsbl (%rax), %edi
callq _isspace
cmpl $0, %eax
je LBB8_4
## %bb.3: ## in Loop: Header=BB8_2 Depth=2
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
jmp LBB8_2
LBB8_4: ## in Loop: Header=BB8_1 Depth=1
movq -40(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB8_6
## %bb.5: ## in Loop: Header=BB8_1 Depth=1
movq -40(%rbp), %rax
movsbl (%rax), %eax
cmpl $35, %eax
jne LBB8_7
LBB8_6:
jmp LBB8_19
LBB8_7: ## in Loop: Header=BB8_1 Depth=1
movq -16(%rbp), %rax
movl (%rax), %eax
cmpl -28(%rbp), %eax
jge LBB8_9
## %bb.8: ## in Loop: Header=BB8_1 Depth=1
movq -40(%rbp), %rdx
movq -24(%rbp), %rax
movq -16(%rbp), %rsi
movl (%rsi), %ecx
movl %ecx, %edi
addl $1, %edi
movl %edi, (%rsi)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
LBB8_9: ## in Loop: Header=BB8_1 Depth=1
jmp LBB8_10
LBB8_10: ## Parent Loop BB8_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -40(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, %ecx
movb %al, -41(%rbp) ## 1-byte Spill
je LBB8_13
## %bb.11: ## in Loop: Header=BB8_10 Depth=2
movq -40(%rbp), %rax
movsbl (%rax), %edi
callq _isspace
movl %eax, %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, %ecx
movb %al, -41(%rbp) ## 1-byte Spill
jne LBB8_13
## %bb.12: ## in Loop: Header=BB8_10 Depth=2
movq -40(%rbp), %rax
movsbl (%rax), %eax
cmpl $35, %eax
setne %al
movb %al, -41(%rbp) ## 1-byte Spill
LBB8_13: ## in Loop: Header=BB8_10 Depth=2
movb -41(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB8_14
jmp LBB8_15
LBB8_14: ## in Loop: Header=BB8_10 Depth=2
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
jmp LBB8_10
LBB8_15: ## in Loop: Header=BB8_1 Depth=1
movq -40(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB8_17
## %bb.16: ## in Loop: Header=BB8_1 Depth=1
movq -40(%rbp), %rax
movsbl (%rax), %eax
cmpl $35, %eax
jne LBB8_18
LBB8_17:
jmp LBB8_19
LBB8_18: ## in Loop: Header=BB8_1 Depth=1
movq -40(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -40(%rbp)
movb $0, (%rax)
jmp LBB8_1
LBB8_19:
movq -40(%rbp), %rax
cmpb $0, (%rax)
je LBB8_21
## %bb.20:
movq -40(%rbp), %rax
movb $0, (%rax)
LBB8_21:
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _add_srcdirs ## -- Begin function add_srcdirs
.p2align 4, 0x90
_add_srcdirs: ## @add_srcdirs
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movl $1, -20(%rbp)
LBB9_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB9_7
## %bb.2: ## in Loop: Header=BB9_1 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq _is_dir
cmpl $0, %eax
je LBB9_4
## %bb.3: ## in Loop: Header=BB9_1 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq _srcdirs(%rip), %rdi
callq _add_string
jmp LBB9_5
LBB9_4: ## in Loop: Header=BB9_1 Depth=1
movl _linenum(%rip), %edx
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
leaq L_.str.29(%rip), %rdi
movq _curfilename@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warnx
movl $1, _goterror(%rip)
LBB9_5: ## in Loop: Header=BB9_1 Depth=1
jmp LBB9_6
LBB9_6: ## in Loop: Header=BB9_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB9_1
LBB9_7:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _add_progs ## -- Begin function add_progs
.p2align 4, 0x90
_add_progs: ## @add_progs
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movl $1, -20(%rbp)
LBB10_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB10_4
## %bb.2: ## in Loop: Header=BB10_1 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq _add_prog
## %bb.3: ## in Loop: Header=BB10_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB10_1
LBB10_4:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _add_link ## -- Begin function add_link
.p2align 4, 0x90
_add_link: ## @add_link
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _find_prog
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB11_2
## %bb.1:
movl _linenum(%rip), %edx
movq -16(%rbp), %rax
movq 8(%rax), %rcx
leaq L_.str.31(%rip), %rdi
movq _curfilename@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warnx
movl $1, _goterror(%rip)
jmp LBB11_8
LBB11_2:
movl $2, -20(%rbp)
LBB11_3: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB11_8
## %bb.4: ## in Loop: Header=BB11_3 Depth=1
movq _list_mode@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
je LBB11_6
## %bb.5: ## in Loop: Header=BB11_3 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq L_.str.30(%rip), %rdi
movb $0, %al
callq _printf
LBB11_6: ## in Loop: Header=BB11_3 Depth=1
movq -32(%rbp), %rdi
addq $88, %rdi
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq _add_string
## %bb.7: ## in Loop: Header=BB11_3 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB11_3
LBB11_8:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _add_libs ## -- Begin function add_libs
.p2align 4, 0x90
_add_libs: ## @add_libs
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movl $1, -20(%rbp)
LBB12_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB12_6
## %bb.2: ## in Loop: Header=BB12_1 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq _libs(%rip), %rdi
callq _add_string
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq _libs_so(%rip), %rdi
callq _in_list
cmpl $0, %eax
je LBB12_4
## %bb.3: ## in Loop: Header=BB12_1 Depth=1
movl _linenum(%rip), %edx
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
leaq L_.str.32(%rip), %rdi
movq _curfilename@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warnx
LBB12_4: ## in Loop: Header=BB12_1 Depth=1
jmp LBB12_5
LBB12_5: ## in Loop: Header=BB12_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB12_1
LBB12_6:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _add_libs_so ## -- Begin function add_libs_so
.p2align 4, 0x90
_add_libs_so: ## @add_libs_so
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movl $1, -20(%rbp)
LBB13_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB13_6
## %bb.2: ## in Loop: Header=BB13_1 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq _libs_so(%rip), %rdi
callq _add_string
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq _libs(%rip), %rdi
callq _in_list
cmpl $0, %eax
je LBB13_4
## %bb.3: ## in Loop: Header=BB13_1 Depth=1
movl _linenum(%rip), %edx
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
leaq L_.str.33(%rip), %rdi
movq _curfilename@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warnx
LBB13_4: ## in Loop: Header=BB13_1 Depth=1
jmp LBB13_5
LBB13_5: ## in Loop: Header=BB13_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB13_1
LBB13_6:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _add_buildopts ## -- Begin function add_buildopts
.p2align 4, 0x90
_add_buildopts: ## @add_buildopts
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movl $1, -20(%rbp)
LBB14_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB14_4
## %bb.2: ## in Loop: Header=BB14_1 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq _buildopts(%rip), %rdi
callq _add_string
## %bb.3: ## in Loop: Header=BB14_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB14_1
LBB14_4:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _add_special ## -- Begin function add_special
.p2align 4, 0x90
_add_special: ## @add_special
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _find_prog
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB15_4
## %bb.1:
movq _reading_cache@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
je LBB15_3
## %bb.2:
jmp LBB15_69
LBB15_3:
movl _linenum(%rip), %edx
movq -16(%rbp), %rax
movq 8(%rax), %rcx
leaq L_.str.34(%rip), %rdi
movq _curfilename@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warnx
movl $1, _goterror(%rip)
jmp LBB15_69
LBB15_4:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
leaq L_.str.35(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB15_10
## %bb.5:
cmpl $4, -4(%rbp)
je LBB15_7
## %bb.6:
jmp LBB15_68
LBB15_7:
movq -16(%rbp), %rax
movq 24(%rax), %rdi
callq _strdup
movq -32(%rbp), %rcx
movq %rax, 16(%rcx)
cmpq $0, %rax
jne LBB15_9
## %bb.8:
callq _out_of_memory
LBB15_9:
jmp LBB15_67
LBB15_10:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
leaq L_.str.36(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB15_16
## %bb.11:
cmpl $4, -4(%rbp)
je LBB15_13
## %bb.12:
jmp LBB15_68
LBB15_13:
movq -16(%rbp), %rax
movq 24(%rax), %rdi
callq _strdup
movq -32(%rbp), %rcx
movq %rax, 24(%rcx)
cmpq $0, %rax
jne LBB15_15
## %bb.14:
callq _out_of_memory
LBB15_15:
jmp LBB15_66
LBB15_16:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
leaq L_.str.37(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB15_22
## %bb.17:
cmpl $4, -4(%rbp)
je LBB15_19
## %bb.18:
jmp LBB15_68
LBB15_19:
movq -16(%rbp), %rax
movq 24(%rax), %rdi
callq _strdup
movq -32(%rbp), %rcx
movq %rax, 40(%rcx)
cmpq $0, %rax
jne LBB15_21
## %bb.20:
callq _out_of_memory
LBB15_21:
jmp LBB15_65
LBB15_22:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
leaq L_.str.38(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB15_28
## %bb.23:
movq -32(%rbp), %rax
movq $0, 56(%rax)
movl $3, -20(%rbp)
LBB15_24: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB15_27
## %bb.25: ## in Loop: Header=BB15_24 Depth=1
movq -32(%rbp), %rdi
addq $56, %rdi
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq _add_string
## %bb.26: ## in Loop: Header=BB15_24 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB15_24
LBB15_27:
jmp LBB15_64
LBB15_28:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
leaq L_.str.39(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB15_34
## %bb.29:
movq -32(%rbp), %rax
movq $0, 64(%rax)
movl $3, -20(%rbp)
LBB15_30: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB15_33
## %bb.31: ## in Loop: Header=BB15_30 Depth=1
movq -32(%rbp), %rdi
addq $64, %rdi
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq _add_string
## %bb.32: ## in Loop: Header=BB15_30 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB15_30
LBB15_33:
jmp LBB15_63
LBB15_34:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
leaq L_.str.40(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB15_40
## %bb.35:
movq -32(%rbp), %rax
movq $0, 80(%rax)
movl $3, -20(%rbp)
LBB15_36: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB15_39
## %bb.37: ## in Loop: Header=BB15_36 Depth=1
movq -32(%rbp), %rdi
addq $80, %rdi
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq _add_string
## %bb.38: ## in Loop: Header=BB15_36 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB15_36
LBB15_39:
jmp LBB15_62
LBB15_40:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
leaq L_.str.41(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB15_46
## %bb.41:
cmpl $4, -4(%rbp)
je LBB15_43
## %bb.42:
jmp LBB15_68
LBB15_43:
movq -16(%rbp), %rax
movq 24(%rax), %rdi
callq _strdup
movq -32(%rbp), %rcx
movq %rax, 48(%rcx)
cmpq $0, %rax
jne LBB15_45
## %bb.44:
callq _out_of_memory
LBB15_45:
jmp LBB15_61
LBB15_46:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
leaq L_.str.24(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB15_52
## %bb.47:
movq -32(%rbp), %rax
movq $0, 72(%rax)
movl $3, -20(%rbp)
LBB15_48: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB15_51
## %bb.49: ## in Loop: Header=BB15_48 Depth=1
movq -32(%rbp), %rdi
addq $72, %rdi
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq _add_string
## %bb.50: ## in Loop: Header=BB15_48 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB15_48
LBB15_51:
jmp LBB15_60
LBB15_52:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
leaq L_.str.42(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB15_58
## %bb.53:
movl $3, -20(%rbp)
LBB15_54: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB15_57
## %bb.55: ## in Loop: Header=BB15_54 Depth=1
movq -32(%rbp), %rdi
addq $96, %rdi
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq _add_string
## %bb.56: ## in Loop: Header=BB15_54 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB15_54
LBB15_57:
jmp LBB15_59
LBB15_58:
movl _linenum(%rip), %edx
movq -16(%rbp), %rax
movq 16(%rax), %rcx
leaq L_.str.43(%rip), %rdi
movq _curfilename@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warnx
movl $1, _goterror(%rip)
LBB15_59:
jmp LBB15_60
LBB15_60:
jmp LBB15_61
LBB15_61:
jmp LBB15_62
LBB15_62:
jmp LBB15_63
LBB15_63:
jmp LBB15_64
LBB15_64:
jmp LBB15_65
LBB15_65:
jmp LBB15_66
LBB15_66:
jmp LBB15_67
LBB15_67:
jmp LBB15_69
LBB15_68:
movl _linenum(%rip), %edx
movl -4(%rbp), %esi
leaq L_.str.46(%rip), %rcx
leaq L_.str.45(%rip), %rax
cmpl $4, %esi
cmovlq %rax, %rcx
movq -16(%rbp), %rax
movq 8(%rax), %r8
movq -16(%rbp), %rax
movq 16(%rax), %r9
leaq L_.str.44(%rip), %rdi
movq _curfilename@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warnx
movl $1, _goterror(%rip)
LBB15_69:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _is_dir ## -- Begin function is_dir
.p2align 4, 0x90
_is_dir: ## @is_dir
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $160, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rdi
leaq -160(%rbp), %rsi
callq _stat$INODE64
cmpl $-1, %eax
jne LBB16_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB16_3
LBB16_2:
movzwl -156(%rbp), %eax
andl $61440, %eax ## imm = 0xF000
cmpl $16384, %eax ## imm = 0x4000
sete %al
andb $1, %al
movzbl %al, %eax
movl %eax, -4(%rbp)
LBB16_3:
movl -4(%rbp), %eax
addq $160, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _add_string ## -- Begin function add_string
.p2align 4, 0x90
_add_string: ## @add_string
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq $0, -24(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
LBB17_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -32(%rbp)
je LBB17_6
## %bb.2: ## in Loop: Header=BB17_1 Depth=1
movq -32(%rbp), %rax
movq 8(%rax), %rdi
movq -16(%rbp), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB17_4
## %bb.3:
jmp LBB17_14
LBB17_4: ## in Loop: Header=BB17_1 Depth=1
jmp LBB17_5
LBB17_5: ## in Loop: Header=BB17_1 Depth=1
movq -32(%rbp), %rax
movq %rax, -24(%rbp)
movq -32(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
jmp LBB17_1
LBB17_6:
movl $16, %edi
callq _malloc
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
je LBB17_8
## %bb.7:
movq -32(%rbp), %rax
movq $0, (%rax)
movq -16(%rbp), %rdi
callq _strdup
movq %rax, %rcx
movq -32(%rbp), %rax
movq %rcx, 8(%rax)
LBB17_8:
cmpq $0, -32(%rbp)
je LBB17_10
## %bb.9:
movq -32(%rbp), %rax
cmpq $0, 8(%rax)
jne LBB17_11
LBB17_10:
callq _out_of_memory
LBB17_11:
cmpq $0, -24(%rbp)
jne LBB17_13
## %bb.12:
movq -32(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
jmp LBB17_14
LBB17_13:
movq -32(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
LBB17_14:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _add_prog ## -- Begin function add_prog
.p2align 4, 0x90
_add_prog: ## @add_prog
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq $0, -16(%rbp)
movq _progs(%rip), %rax
movq %rax, -24(%rbp)
LBB18_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -24(%rbp)
je LBB18_6
## %bb.2: ## in Loop: Header=BB18_1 Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rdi
movq -8(%rbp), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB18_4
## %bb.3:
jmp LBB18_16
LBB18_4: ## in Loop: Header=BB18_1 Depth=1
jmp LBB18_5
LBB18_5: ## in Loop: Header=BB18_1 Depth=1
movq -24(%rbp), %rax
movq %rax, -16(%rbp)
movq -24(%rbp), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
jmp LBB18_1
LBB18_6:
movl $120, %edi
callq _malloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
je LBB18_8
## %bb.7:
movq -24(%rbp), %rdi
xorl %esi, %esi
movl $120, %edx
movq $-1, %rcx
callq ___memset_chk
movq -8(%rbp), %rdi
callq _strdup
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
LBB18_8:
cmpq $0, -24(%rbp)
je LBB18_10
## %bb.9:
movq -24(%rbp), %rax
cmpq $0, 8(%rax)
jne LBB18_11
LBB18_10:
callq _out_of_memory
LBB18_11:
movq -24(%rbp), %rax
movq $0, (%rax)
cmpq $0, -16(%rbp)
jne LBB18_13
## %bb.12:
movq -24(%rbp), %rax
movq %rax, _progs(%rip)
jmp LBB18_14
LBB18_13:
movq -24(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, (%rax)
LBB18_14:
movq -24(%rbp), %rax
movq $0, 16(%rax)
movq -24(%rbp), %rax
movq $0, 24(%rax)
movq -24(%rbp), %rax
movq $0, 32(%rax)
movq -24(%rbp), %rax
movq $0, 40(%rax)
movq -24(%rbp), %rax
movq $0, 88(%rax)
movq -24(%rbp), %rax
movq $0, 96(%rax)
movq -24(%rbp), %rax
movq $0, 104(%rax)
movq -24(%rbp), %rax
movq $0, 56(%rax)
movq -24(%rbp), %rax
movq $0, 80(%rax)
movq -24(%rbp), %rax
movq $0, 72(%rax)
movq -24(%rbp), %rax
movl $0, 112(%rax)
movq _list_mode@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
je LBB18_16
## %bb.15:
movq -8(%rbp), %rsi
leaq L_.str.30(%rip), %rdi
movb $0, %al
callq _printf
LBB18_16:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _find_prog ## -- Begin function find_prog
.p2align 4, 0x90
_find_prog: ## @find_prog
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq _progs(%rip), %rax
movq %rax, -24(%rbp)
LBB19_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -24(%rbp)
je LBB19_6
## %bb.2: ## in Loop: Header=BB19_1 Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rdi
movq -16(%rbp), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB19_4
## %bb.3:
movq -24(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB19_7
LBB19_4: ## in Loop: Header=BB19_1 Depth=1
jmp LBB19_5
LBB19_5: ## in Loop: Header=BB19_1 Depth=1
movq -24(%rbp), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
jmp LBB19_1
LBB19_6:
movq $0, -8(%rbp)
LBB19_7:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _in_list ## -- Begin function in_list
.p2align 4, 0x90
_in_list: ## @in_list
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
LBB20_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -32(%rbp)
je LBB20_6
## %bb.2: ## in Loop: Header=BB20_1 Depth=1
movq -32(%rbp), %rax
movq 8(%rax), %rdi
movq -24(%rbp), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB20_4
## %bb.3:
movl $1, -4(%rbp)
jmp LBB20_7
LBB20_4: ## in Loop: Header=BB20_1 Depth=1
jmp LBB20_5
LBB20_5: ## in Loop: Header=BB20_1 Depth=1
movq -32(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
jmp LBB20_1
LBB20_6:
movl $0, -4(%rbp)
LBB20_7:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _fillin_program ## -- Begin function fillin_program
.p2align 4, 0x90
_fillin_program: ## @fillin_program
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $17456, %eax ## imm = 0x4430
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -17432(%rbp)
leaq -17424(%rbp), %rdi
movq -17432(%rbp), %rax
movq 8(%rax), %r9
movl $16384, %ecx ## imm = 0x4000
xorl %edx, %edx
leaq L_.str.49(%rip), %r8
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
leaq -17424(%rbp), %rdi
callq _status
movq -17432(%rbp), %rax
cmpq $0, 16(%rax)
jne LBB21_2
## %bb.1:
movq -17432(%rbp), %rax
movq 8(%rax), %rdi
callq _genident
movq %rax, %rcx
movq -17432(%rbp), %rax
movq %rcx, 16(%rax)
LBB21_2:
movq -17432(%rbp), %rax
cmpq $0, 24(%rax)
jne LBB21_4
## %bb.3:
movq -17432(%rbp), %rax
movq 8(%rax), %rdi
callq _dir_search
movq %rax, %rcx
movq -17432(%rbp), %rax
movq %rcx, 24(%rax)
LBB21_4:
movq -17432(%rbp), %rax
cmpq $0, 24(%rax)
je LBB21_12
## %bb.5:
leaq -17424(%rbp), %rdi
movq -17432(%rbp), %rax
movq 24(%rax), %r9
movl $16384, %ecx ## imm = 0x4000
xorl %edx, %edx
leaq L_.str.50(%rip), %r8
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
leaq -17424(%rbp), %rdi
leaq L_.str.18(%rip), %rsi
callq _popen
movq %rax, -17440(%rbp)
cmpq $0, -17440(%rbp)
jne LBB21_7
## %bb.6:
leaq L_.str.51(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $1, %edi
leaq -17424(%rbp), %rdx
callq _errx
LBB21_7:
movb $0, -1040(%rbp)
leaq -1040(%rbp), %rdi
movq -17440(%rbp), %rdx
movl $1024, %esi ## imm = 0x400
callq _fgets
movq -17440(%rbp), %rdi
callq _pclose
cmpl $0, %eax
je LBB21_9
## %bb.8:
leaq L_.str.51(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $1, %edi
leaq -17424(%rbp), %rdx
callq _errx
LBB21_9:
cmpb $0, -1040(%rbp)
jne LBB21_11
## %bb.10:
movq -17432(%rbp), %rax
movq 24(%rax), %rdx
leaq L_.str.52(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $1, %edi
callq _errx
LBB21_11:
leaq -1040(%rbp), %rdi
callq _strdup
movq %rax, %rcx
movq -17432(%rbp), %rax
movq %rcx, 32(%rax)
LBB21_12:
cmpl $0, _makeobj(%rip)
jne LBB21_21
## %bb.13:
movq -17432(%rbp), %rax
cmpq $0, 40(%rax)
jne LBB21_21
## %bb.14:
movq -17432(%rbp), %rax
cmpq $0, 24(%rax)
je LBB21_21
## %bb.15:
leaq -17424(%rbp), %rdi
movq _objprefix@GOTPCREL(%rip), %rax
movq (%rax), %r9
movq -17432(%rbp), %rax
movq 32(%rax), %rax
movl $16384, %ecx ## imm = 0x4000
xorl %edx, %edx
leaq L_.str.53(%rip), %r8
movq %rcx, %rsi
movq %rax, (%rsp)
movb $0, %al
callq ___snprintf_chk
leaq -17424(%rbp), %rdi
callq _is_dir
cmpl $0, %eax
je LBB21_19
## %bb.16:
leaq -17424(%rbp), %rdi
callq _strdup
movq -17432(%rbp), %rcx
movq %rax, 40(%rcx)
cmpq $0, %rax
jne LBB21_18
## %bb.17:
callq _out_of_memory
LBB21_18:
jmp LBB21_20
LBB21_19:
movq -17432(%rbp), %rax
movq 32(%rax), %rcx
movq -17432(%rbp), %rax
movq %rcx, 40(%rax)
LBB21_20:
jmp LBB21_21
LBB21_21:
leaq -1040(%rbp), %rdi
movq -17432(%rbp), %rax
movq 8(%rax), %r9
movl $1024, %ecx ## imm = 0x400
xorl %edx, %edx
leaq L_.str.54(%rip), %r8
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
leaq -1040(%rbp), %rdi
callq _is_nonempty_file
cmpl $0, %eax
je LBB21_23
## %bb.22:
leaq -17424(%rbp), %rdi
leaq -1040(%rbp), %r9
movq -17432(%rbp), %rax
movq 8(%rax), %rax
movl $16384, %ecx ## imm = 0x4000
xorl %edx, %edx
leaq L_.str.55(%rip), %r8
movq %rcx, %rsi
movq %rax, (%rsp)
movb $0, %al
callq ___snprintf_chk
leaq -17424(%rbp), %rdi
callq _status
jmp LBB21_26
LBB21_23:
movq -17432(%rbp), %rax
cmpq $0, 24(%rax)
je LBB21_25
## %bb.24:
leaq -1040(%rbp), %rdi
movq -17432(%rbp), %rax
movq 24(%rax), %r9
movl $1024, %ecx ## imm = 0x400
xorl %edx, %edx
leaq L_.str.56(%rip), %r8
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
LBB21_25:
jmp LBB21_26
LBB21_26:
movq -17432(%rbp), %rax
cmpq $0, 56(%rax)
jne LBB21_30
## %bb.27:
movq -17432(%rbp), %rax
cmpq $0, 24(%rax)
je LBB21_30
## %bb.28:
leaq -1040(%rbp), %rdi
callq _is_nonempty_file
cmpl $0, %eax
je LBB21_30
## %bb.29:
movq -17432(%rbp), %rdi
leaq -1040(%rbp), %rsi
callq _fillin_program_objs
LBB21_30:
movq -17432(%rbp), %rax
cmpq $0, 24(%rax)
jne LBB21_34
## %bb.31:
movq -17432(%rbp), %rax
cmpq $0, 40(%rax)
jne LBB21_34
## %bb.32:
movq _verbose@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
je LBB21_34
## %bb.33:
movq -17432(%rbp), %rax
movq 8(%rax), %rcx
leaq L_.str.57(%rip), %rdi
leaq L_.str.58(%rip), %rsi
movq _infilename@GOTPCREL(%rip), %rdx
movb $0, %al
callq _warnx
LBB21_34:
movq -17432(%rbp), %rax
cmpq $0, 56(%rax)
jne LBB21_37
## %bb.35:
movq _verbose@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
je LBB21_37
## %bb.36:
movq -17432(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.59(%rip), %rdi
movq _infilename@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warnx
LBB21_37:
movq -17432(%rbp), %rax
cmpq $0, 24(%rax)
je LBB21_39
## %bb.38:
movq -17432(%rbp), %rax
cmpq $0, 40(%rax)
jne LBB21_41
LBB21_39:
movq -17432(%rbp), %rax
cmpq $0, 56(%rax)
jne LBB21_41
## %bb.40:
movq -17432(%rbp), %rax
movl $1, 112(%rax)
LBB21_41:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB21_43
## %bb.42:
addq $17456, %rsp ## imm = 0x4430
popq %rbp
retq
LBB21_43:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _remove_error_progs ## -- Begin function remove_error_progs
.p2align 4, 0x90
_remove_error_progs: ## @remove_error_progs
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq $0, -8(%rbp)
movq _progs(%rip), %rax
movq %rax, -16(%rbp)
LBB22_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16(%rbp)
je LBB22_9
## %bb.2: ## in Loop: Header=BB22_1 Depth=1
movq -16(%rbp), %rax
cmpl $0, 112(%rax)
jne LBB22_4
## %bb.3: ## in Loop: Header=BB22_1 Depth=1
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
jmp LBB22_8
LBB22_4: ## in Loop: Header=BB22_1 Depth=1
movq -16(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.76(%rip), %rdi
movq _infilename@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warnx
cmpq $0, -8(%rbp)
je LBB22_6
## %bb.5: ## in Loop: Header=BB22_1 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
jmp LBB22_7
LBB22_6: ## in Loop: Header=BB22_1 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, _progs(%rip)
LBB22_7: ## in Loop: Header=BB22_1 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
LBB22_8: ## in Loop: Header=BB22_1 Depth=1
jmp LBB22_1
LBB22_9:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _gen_specials_cache ## -- Begin function gen_specials_cache
.p2align 4, 0x90
_gen_specials_cache: ## @gen_specials_cache
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $16416, %eax ## imm = 0x4020
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq -16400(%rbp), %rdi
movl $16384, %ecx ## imm = 0x4000
xorl %edx, %edx
leaq L_.str.77(%rip), %r8
movq _cachename@GOTPCREL(%rip), %r9
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
leaq -16400(%rbp), %rdi
callq _status
movq _cachename@GOTPCREL(%rip), %rdi
leaq L_.str.61(%rip), %rsi
callq _fopen
movq %rax, -16408(%rbp)
cmpq $0, %rax
jne LBB23_2
## %bb.1:
leaq L_.str.6(%rip), %rdi
movq _cachename@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warn
movl $1, _goterror(%rip)
jmp LBB23_15
LBB23_2:
movq -16408(%rbp), %rdi
leaq L_.str.78(%rip), %rsi
movq _cachename@GOTPCREL(%rip), %rdx
movq _infilename@GOTPCREL(%rip), %rcx
leaq L_.str.79(%rip), %r8
movb $0, %al
callq _fprintf
movq _progs(%rip), %rax
movq %rax, -16416(%rbp)
LBB23_3: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16416(%rbp)
je LBB23_14
## %bb.4: ## in Loop: Header=BB23_3 Depth=1
movq -16408(%rbp), %rdi
leaq L_.str.80(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16416(%rbp), %rax
cmpq $0, 24(%rax)
je LBB23_6
## %bb.5: ## in Loop: Header=BB23_3 Depth=1
movq -16408(%rbp), %rdi
movq -16416(%rbp), %rax
movq 8(%rax), %rdx
movq -16416(%rbp), %rax
movq 24(%rax), %rcx
leaq L_.str.81(%rip), %rsi
movb $0, %al
callq _fprintf
LBB23_6: ## in Loop: Header=BB23_3 Depth=1
movq -16416(%rbp), %rax
cmpq $0, 40(%rax)
je LBB23_8
## %bb.7: ## in Loop: Header=BB23_3 Depth=1
movq -16408(%rbp), %rdi
movq -16416(%rbp), %rax
movq 8(%rax), %rdx
movq -16416(%rbp), %rax
movq 40(%rax), %rcx
leaq L_.str.82(%rip), %rsi
movb $0, %al
callq _fprintf
LBB23_8: ## in Loop: Header=BB23_3 Depth=1
movq -16416(%rbp), %rax
cmpq $0, 56(%rax)
je LBB23_10
## %bb.9: ## in Loop: Header=BB23_3 Depth=1
movq -16408(%rbp), %rdi
movq -16416(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.83(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16408(%rbp), %rdi
movq -16416(%rbp), %rax
movq 56(%rax), %rsi
callq _output_strlst
LBB23_10: ## in Loop: Header=BB23_3 Depth=1
movq -16416(%rbp), %rax
cmpq $0, 64(%rax)
je LBB23_12
## %bb.11: ## in Loop: Header=BB23_3 Depth=1
movq -16408(%rbp), %rdi
movq -16416(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.84(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16408(%rbp), %rdi
movq -16416(%rbp), %rax
movq 64(%rax), %rsi
callq _output_strlst
LBB23_12: ## in Loop: Header=BB23_3 Depth=1
jmp LBB23_13
LBB23_13: ## in Loop: Header=BB23_3 Depth=1
movq -16416(%rbp), %rax
movq (%rax), %rax
movq %rax, -16416(%rbp)
jmp LBB23_3
LBB23_14:
movq -16408(%rbp), %rdi
callq _fclose
LBB23_15:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB23_17
## %bb.16:
addq $16416, %rsp ## imm = 0x4020
popq %rbp
retq
LBB23_17:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _gen_output_cfile ## -- Begin function gen_output_cfile
.p2align 4, 0x90
_gen_output_cfile: ## @gen_output_cfile
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $16432, %eax ## imm = 0x4030
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq -16400(%rbp), %rdi
movl $16384, %ecx ## imm = 0x4000
xorl %edx, %edx
leaq L_.str.77(%rip), %r8
movq _outcfname@GOTPCREL(%rip), %r9
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
leaq -16400(%rbp), %rdi
callq _status
movq _outcfname@GOTPCREL(%rip), %rdi
leaq L_.str.61(%rip), %rsi
callq _fopen
movq %rax, -16416(%rbp)
cmpq $0, %rax
jne LBB24_2
## %bb.1:
leaq L_.str.6(%rip), %rdi
movq _outcfname@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warn
movl $1, _goterror(%rip)
jmp LBB24_19
LBB24_2:
movq -16416(%rbp), %rdi
leaq L_.str.87(%rip), %rsi
movq _outcfname@GOTPCREL(%rip), %rdx
movq _infilename@GOTPCREL(%rip), %rcx
leaq L_.str.79(%rip), %r8
movb $0, %al
callq _fprintf
movq -16416(%rbp), %rdi
leaq L_.str.88(%rip), %rsi
movq _execfname@GOTPCREL(%rip), %rdx
movb $0, %al
callq _fprintf
movq _crunched_skel@GOTPCREL(%rip), %rax
movq %rax, -16408(%rbp)
LBB24_3: ## =>This Inner Loop Header: Depth=1
movq -16408(%rbp), %rax
cmpq $0, (%rax)
je LBB24_6
## %bb.4: ## in Loop: Header=BB24_3 Depth=1
movq -16416(%rbp), %rdi
movq -16408(%rbp), %rax
movq (%rax), %rdx
leaq L_.str.30(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.5: ## in Loop: Header=BB24_3 Depth=1
movq -16408(%rbp), %rax
addq $8, %rax
movq %rax, -16408(%rbp)
jmp LBB24_3
LBB24_6:
movq _progs(%rip), %rax
movq %rax, -16424(%rbp)
LBB24_7: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16424(%rbp)
je LBB24_10
## %bb.8: ## in Loop: Header=BB24_7 Depth=1
movq -16416(%rbp), %rdi
movq -16424(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.89(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.9: ## in Loop: Header=BB24_7 Depth=1
movq -16424(%rbp), %rax
movq (%rax), %rax
movq %rax, -16424(%rbp)
jmp LBB24_7
LBB24_10:
movq -16416(%rbp), %rdi
leaq L_.str.90(%rip), %rsi
movb $0, %al
callq _fprintf
movq _progs(%rip), %rax
movq %rax, -16424(%rbp)
LBB24_11: ## =>This Loop Header: Depth=1
## Child Loop BB24_13 Depth 2
cmpq $0, -16424(%rbp)
je LBB24_18
## %bb.12: ## in Loop: Header=BB24_11 Depth=1
movq -16416(%rbp), %rdi
movq -16424(%rbp), %rax
movq 8(%rax), %rdx
movq -16424(%rbp), %rax
movq 16(%rax), %rcx
leaq L_.str.91(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16424(%rbp), %rax
movq 88(%rax), %rax
movq %rax, -16432(%rbp)
LBB24_13: ## Parent Loop BB24_11 Depth=1
## => This Inner Loop Header: Depth=2
cmpq $0, -16432(%rbp)
je LBB24_16
## %bb.14: ## in Loop: Header=BB24_13 Depth=2
movq -16416(%rbp), %rdi
movq -16432(%rbp), %rax
movq 8(%rax), %rdx
movq -16424(%rbp), %rax
movq 16(%rax), %rcx
leaq L_.str.91(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.15: ## in Loop: Header=BB24_13 Depth=2
movq -16432(%rbp), %rax
movq (%rax), %rax
movq %rax, -16432(%rbp)
jmp LBB24_13
LBB24_16: ## in Loop: Header=BB24_11 Depth=1
jmp LBB24_17
LBB24_17: ## in Loop: Header=BB24_11 Depth=1
movq -16424(%rbp), %rax
movq (%rax), %rax
movq %rax, -16424(%rbp)
jmp LBB24_11
LBB24_18:
movq -16416(%rbp), %rdi
leaq L_.str.92(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16416(%rbp), %rdi
leaq L_.str.93(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16416(%rbp), %rdi
callq _fclose
LBB24_19:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB24_21
## %bb.20:
addq $16432, %rsp ## imm = 0x4030
popq %rbp
retq
LBB24_21:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _gen_output_makefile ## -- Begin function gen_output_makefile
.p2align 4, 0x90
_gen_output_makefile: ## @gen_output_makefile
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $16416, %eax ## imm = 0x4020
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq -16400(%rbp), %rdi
movl $16384, %ecx ## imm = 0x4000
xorl %edx, %edx
leaq L_.str.77(%rip), %r8
movq _outmkname@GOTPCREL(%rip), %r9
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
leaq -16400(%rbp), %rdi
callq _status
movq _outmkname@GOTPCREL(%rip), %rdi
leaq L_.str.61(%rip), %rsi
callq _fopen
movq %rax, -16416(%rbp)
cmpq $0, %rax
jne LBB25_2
## %bb.1:
leaq L_.str.6(%rip), %rdi
movq _outmkname@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warn
movl $1, _goterror(%rip)
jmp LBB25_9
LBB25_2:
movq -16416(%rbp), %rdi
leaq L_.str.85(%rip), %rsi
movq _outmkname@GOTPCREL(%rip), %rdx
movq _infilename@GOTPCREL(%rip), %rcx
leaq L_.str.79(%rip), %r8
movb $0, %al
callq _fprintf
movq _outhdrname@GOTPCREL(%rip), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB25_4
## %bb.3:
movq -16416(%rbp), %rdi
leaq L_.str.62(%rip), %rsi
movq _outhdrname@GOTPCREL(%rip), %rdx
movb $0, %al
callq _fprintf
LBB25_4:
movq -16416(%rbp), %rdi
callq _top_makefile_rules
movq _progs(%rip), %rax
movq %rax, -16408(%rbp)
LBB25_5: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16408(%rbp)
je LBB25_8
## %bb.6: ## in Loop: Header=BB25_5 Depth=1
movq -16416(%rbp), %rdi
movq -16408(%rbp), %rsi
callq _prog_makefile_rules
## %bb.7: ## in Loop: Header=BB25_5 Depth=1
movq -16408(%rbp), %rax
movq (%rax), %rax
movq %rax, -16408(%rbp)
jmp LBB25_5
LBB25_8:
movq -16416(%rbp), %rdi
leaq L_.str.86(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16416(%rbp), %rdi
callq _fclose
LBB25_9:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB25_11
## %bb.10:
addq $16416, %rsp ## imm = 0x4020
popq %rbp
retq
LBB25_11:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _genident ## -- Begin function genident
.p2align 4, 0x90
_genident: ## @genident
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rdi
callq _strdup
movq %rax, -24(%rbp)
cmpq $0, %rax
jne LBB26_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB26_13
LBB26_2:
movq -24(%rbp), %rax
movq %rax, -32(%rbp)
movq %rax, -40(%rbp)
LBB26_3: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB26_12
## %bb.4: ## in Loop: Header=BB26_3 Depth=1
movq -32(%rbp), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB26_6
## %bb.5: ## in Loop: Header=BB26_3 Depth=1
movq -40(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -40(%rbp)
movb $95, (%rax)
jmp LBB26_10
LBB26_6: ## in Loop: Header=BB26_3 Depth=1
movq -32(%rbp), %rax
movsbl (%rax), %eax
cmpl $95, %eax
je LBB26_8
## %bb.7: ## in Loop: Header=BB26_3 Depth=1
movq -32(%rbp), %rax
movsbl (%rax), %edi
callq _isalnum
cmpl $0, %eax
je LBB26_9
LBB26_8: ## in Loop: Header=BB26_3 Depth=1
movq -32(%rbp), %rax
movb (%rax), %cl
movq -40(%rbp), %rax
movq %rax, %rdx
addq $1, %rdx
movq %rdx, -40(%rbp)
movb %cl, (%rax)
LBB26_9: ## in Loop: Header=BB26_3 Depth=1
jmp LBB26_10
LBB26_10: ## in Loop: Header=BB26_3 Depth=1
jmp LBB26_11
LBB26_11: ## in Loop: Header=BB26_3 Depth=1
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB26_3
LBB26_12:
movq -40(%rbp), %rax
movb $0, (%rax)
movq -24(%rbp), %rax
movq %rax, -8(%rbp)
LBB26_13:
movq -8(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _dir_search ## -- Begin function dir_search
.p2align 4, 0x90
_dir_search: ## @dir_search
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $1088, %rsp ## imm = 0x440
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -1056(%rbp)
movq _srcdirs(%rip), %rax
movq %rax, -1064(%rbp)
LBB27_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -1064(%rbp)
je LBB27_8
## %bb.2: ## in Loop: Header=BB27_1 Depth=1
leaq -1040(%rbp), %rdi
movq -1064(%rbp), %rax
movq 8(%rax), %r9
movq -1056(%rbp), %rax
movl $1024, %ecx ## imm = 0x400
xorl %edx, %edx
leaq L_.str.53(%rip), %r8
movq %rcx, %rsi
movq %rax, (%rsp)
movb $0, %al
callq ___snprintf_chk
leaq -1040(%rbp), %rdi
callq _is_dir
cmpl $0, %eax
jne LBB27_4
## %bb.3: ## in Loop: Header=BB27_1 Depth=1
jmp LBB27_7
LBB27_4:
leaq -1040(%rbp), %rdi
callq _strdup
movq %rax, -1072(%rbp)
cmpq $0, %rax
jne LBB27_6
## %bb.5:
callq _out_of_memory
LBB27_6:
movq -1072(%rbp), %rax
movq %rax, -1048(%rbp)
jmp LBB27_9
LBB27_7: ## in Loop: Header=BB27_1 Depth=1
movq -1064(%rbp), %rax
movq (%rax), %rax
movq %rax, -1064(%rbp)
jmp LBB27_1
LBB27_8:
movq $0, -1048(%rbp)
LBB27_9:
movq -1048(%rbp), %rax
movq %rax, -1080(%rbp) ## 8-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB27_11
## %bb.10:
movq -1080(%rbp), %rax ## 8-byte Reload
addq $1088, %rsp ## imm = 0x440
popq %rbp
retq
LBB27_11:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _fillin_program_objs ## -- Begin function fillin_program_objs
.p2align 4, 0x90
_fillin_program_objs: ## @fillin_program_objs
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $16480, %eax ## imm = 0x4060
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -16408(%rbp)
movq %rsi, -16416(%rbp)
leaq L_.str.60(%rip), %rax
movq %rax, -16456(%rbp)
movq _tempfname@GOTPCREL(%rip), %rdi
callq _mkstemp
movl %eax, -16436(%rbp)
cmpl $-1, %eax
jne LBB28_2
## %bb.1:
movq _tempfname@GOTPCREL(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB28_2:
movl -16436(%rbp), %edi
leaq L_.str.61(%rip), %rsi
callq _fdopen
movq %rax, -16448(%rbp)
cmpq $0, %rax
jne LBB28_4
## %bb.3:
leaq L_.str.6(%rip), %rdi
movq _tempfname@GOTPCREL(%rip), %rsi
movb $0, %al
callq _warn
movl $1, _goterror(%rip)
jmp LBB28_40
LBB28_4:
movq -16408(%rbp), %rax
cmpq $0, 48(%rax)
je LBB28_6
## %bb.5:
movq -16408(%rbp), %rax
movq 48(%rax), %rax
movq %rax, -16456(%rbp)
LBB28_6:
movq _outhdrname@GOTPCREL(%rip), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB28_8
## %bb.7:
movq -16448(%rbp), %rdi
leaq L_.str.62(%rip), %rsi
movq _outhdrname@GOTPCREL(%rip), %rdx
movb $0, %al
callq _fprintf
LBB28_8:
movq -16448(%rbp), %rdi
movq -16416(%rbp), %rdx
leaq L_.str.62(%rip), %rsi
movb $0, %al
callq _fprintf
cmpq $0, _buildopts(%rip)
je LBB28_10
## %bb.9:
movq -16448(%rbp), %rdi
leaq L_.str.63(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16448(%rbp), %rdi
movq _buildopts(%rip), %rsi
callq _output_strlst
LBB28_10:
movq -16448(%rbp), %rdi
movq -16456(%rbp), %rdx
leaq L_.str.64(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16448(%rbp), %rdi
movq -16456(%rbp), %rdx
leaq L_.str.65(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16448(%rbp), %rdi
leaq L_.str.66(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16448(%rbp), %rdi
movq -16456(%rbp), %rdx
leaq L_.str.67(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16448(%rbp), %rdi
movq -16408(%rbp), %rax
movq 24(%rax), %rdx
movq -16408(%rbp), %rax
movq 16(%rax), %r8
leaq L_.str.68(%rip), %rsi
movq _tempfname@GOTPCREL(%rip), %rcx
movb $0, %al
callq _fprintf
movq -16408(%rbp), %rax
movq 72(%rax), %rax
movq %rax, -16464(%rbp)
LBB28_11: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16464(%rbp)
je LBB28_14
## %bb.12: ## in Loop: Header=BB28_11 Depth=1
movq -16448(%rbp), %rdi
movq -16464(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.69(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.13: ## in Loop: Header=BB28_11 Depth=1
movq -16464(%rbp), %rax
movq (%rax), %rax
movq %rax, -16464(%rbp)
jmp LBB28_11
LBB28_14:
movq -16448(%rbp), %rdi
leaq L_.str.70(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16448(%rbp), %rdi
callq _fclose
leaq -16400(%rbp), %rdi
movq -16408(%rbp), %rax
movq 24(%rax), %r9
movl $16384, %ecx ## imm = 0x4000
xorl %edx, %edx
leaq L_.str.71(%rip), %r8
movq _tempfname@GOTPCREL(%rip), %rax
movq %rcx, %rsi
movq %rax, (%rsp)
movb $0, %al
callq ___snprintf_chk
leaq -16400(%rbp), %rdi
leaq L_.str.18(%rip), %rsi
callq _popen
movq %rax, -16448(%rbp)
cmpq $0, %rax
jne LBB28_16
## %bb.15:
leaq L_.str.72(%rip), %rdi
movb $0, %al
callq _warn
movl $1, _goterror(%rip)
jmp LBB28_40
LBB28_16:
jmp LBB28_17
LBB28_17: ## =>This Loop Header: Depth=1
## Child Loop BB28_21 Depth 2
## Child Loop BB28_24 Depth 2
## Child Loop BB28_26 Depth 3
## Child Loop BB28_33 Depth 3
leaq -16400(%rbp), %rdi
movq -16448(%rbp), %rdx
movl $16384, %esi ## imm = 0x4000
callq _fgets
cmpq $0, %rax
je LBB28_37
## %bb.18: ## in Loop: Header=BB28_17 Depth=1
leaq -16400(%rbp), %rdi
leaq L_.str.73(%rip), %rsi
movl $6, %edx
callq _strncmp
cmpl $0, %eax
je LBB28_20
## %bb.19: ## in Loop: Header=BB28_17 Depth=1
leaq -16400(%rbp), %rsi
leaq L_.str.74(%rip), %rdi
movb $0, %al
callq _warnx
movl $1, _goterror(%rip)
jmp LBB28_17
LBB28_20: ## in Loop: Header=BB28_17 Depth=1
leaq -16400(%rbp), %rax
addq $6, %rax
movq %rax, -16432(%rbp)
LBB28_21: ## Parent Loop BB28_17 Depth=1
## => This Inner Loop Header: Depth=2
movq -16432(%rbp), %rax
movsbl (%rax), %edi
callq _isspace
cmpl $0, %eax
je LBB28_23
## %bb.22: ## in Loop: Header=BB28_21 Depth=2
movq -16432(%rbp), %rax
addq $1, %rax
movq %rax, -16432(%rbp)
jmp LBB28_21
LBB28_23: ## in Loop: Header=BB28_17 Depth=1
jmp LBB28_24
LBB28_24: ## Parent Loop BB28_17 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB28_26 Depth 3
## Child Loop BB28_33 Depth 3
movq -16432(%rbp), %rax
cmpb $0, (%rax)
je LBB28_36
## %bb.25: ## in Loop: Header=BB28_24 Depth=2
movq -16432(%rbp), %rax
movq %rax, -16424(%rbp)
LBB28_26: ## Parent Loop BB28_17 Depth=1
## Parent Loop BB28_24 Depth=2
## => This Inner Loop Header: Depth=3
movq -16432(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, %ecx
movb %al, -16465(%rbp) ## 1-byte Spill
je LBB28_28
## %bb.27: ## in Loop: Header=BB28_26 Depth=3
movq -16432(%rbp), %rax
movsbl (%rax), %edi
callq _isspace
cmpl $0, %eax
setne %al
xorb $-1, %al
movb %al, -16465(%rbp) ## 1-byte Spill
LBB28_28: ## in Loop: Header=BB28_26 Depth=3
movb -16465(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB28_29
jmp LBB28_30
LBB28_29: ## in Loop: Header=BB28_26 Depth=3
movq -16432(%rbp), %rax
addq $1, %rax
movq %rax, -16432(%rbp)
jmp LBB28_26
LBB28_30: ## in Loop: Header=BB28_24 Depth=2
movq -16432(%rbp), %rax
cmpb $0, (%rax)
je LBB28_32
## %bb.31: ## in Loop: Header=BB28_24 Depth=2
movq -16432(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -16432(%rbp)
movb $0, (%rax)
LBB28_32: ## in Loop: Header=BB28_24 Depth=2
movq -16408(%rbp), %rdi
addq $56, %rdi
movq -16424(%rbp), %rsi
callq _add_string
LBB28_33: ## Parent Loop BB28_17 Depth=1
## Parent Loop BB28_24 Depth=2
## => This Inner Loop Header: Depth=3
movq -16432(%rbp), %rax
movsbl (%rax), %edi
callq _isspace
cmpl $0, %eax
je LBB28_35
## %bb.34: ## in Loop: Header=BB28_33 Depth=3
movq -16432(%rbp), %rax
addq $1, %rax
movq %rax, -16432(%rbp)
jmp LBB28_33
LBB28_35: ## in Loop: Header=BB28_24 Depth=2
jmp LBB28_24
LBB28_36: ## in Loop: Header=BB28_17 Depth=1
jmp LBB28_17
LBB28_37:
movq -16448(%rbp), %rdi
callq _pclose
movl %eax, -16440(%rbp)
cmpl $0, %eax
je LBB28_39
## %bb.38:
movl -16440(%rbp), %esi
leaq L_.str.75(%rip), %rdi
movb $0, %al
callq _warnx
movl $1, _goterror(%rip)
LBB28_39:
movq _tempfname@GOTPCREL(%rip), %rdi
callq _unlink
LBB28_40:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB28_42
## %bb.41:
addq $16480, %rsp ## imm = 0x4060
popq %rbp
retq
LBB28_42:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _output_strlst ## -- Begin function output_strlst
.p2align 4, 0x90
_output_strlst: ## @output_strlst
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
LBB29_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16(%rbp)
je LBB29_6
## %bb.2: ## in Loop: Header=BB29_1 Depth=1
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _strlen
cmpq $0, %rax
je LBB29_4
## %bb.3: ## in Loop: Header=BB29_1 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.69(%rip), %rsi
movb $0, %al
callq _fprintf
LBB29_4: ## in Loop: Header=BB29_1 Depth=1
jmp LBB29_5
LBB29_5: ## in Loop: Header=BB29_1 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
jmp LBB29_1
LBB29_6:
movq -8(%rbp), %rdi
leaq L_.str.80(%rip), %rsi
movb $0, %al
callq _fprintf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _top_makefile_rules ## -- Begin function top_makefile_rules
.p2align 4, 0x90
_top_makefile_rules: ## @top_makefile_rules
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
leaq _libs(%rip), %rdi
leaq _libs_so(%rip), %rsi
callq _subtract_strlst
cmpl $0, %eax
je LBB30_2
## %bb.1:
movq -8(%rbp), %rdi
leaq L_.str.94(%rip), %rsi
movb $0, %al
callq _fprintf
LBB30_2:
movq -8(%rbp), %rdi
leaq L_.str.95(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq _libs(%rip), %rsi
callq _output_strlst
movq -8(%rbp), %rdi
leaq L_.str.96(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq _libs_so(%rip), %rsi
callq _output_strlst
cmpl $0, _makeobj(%rip)
je LBB30_4
## %bb.3:
movq -8(%rbp), %rdi
movq _objprefix@GOTPCREL(%rip), %rax
movq (%rax), %rdx
leaq L_.str.97(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.98(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.99(%rip), %rsi
movb $0, %al
callq _fprintf
jmp LBB30_5
LBB30_4:
movq -8(%rbp), %rdi
leaq L_.str.100(%rip), %rsi
movb $0, %al
callq _fprintf
LBB30_5:
cmpq $0, _buildopts(%rip)
je LBB30_7
## %bb.6:
movq -8(%rbp), %rdi
leaq L_.str.63(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq _buildopts(%rip), %rsi
callq _output_strlst
LBB30_7:
movq -8(%rbp), %rdi
leaq L_.str.101(%rip), %rsi
movb $0, %al
callq _fprintf
movq _progs(%rip), %rax
movq %rax, -16(%rbp)
LBB30_8: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16(%rbp)
je LBB30_11
## %bb.9: ## in Loop: Header=BB30_8 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.102(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.10: ## in Loop: Header=BB30_8 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
jmp LBB30_8
LBB30_11:
movq -8(%rbp), %rdi
leaq L_.str.80(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.103(%rip), %rsi
movb $0, %al
callq _fprintf
movq _progs(%rip), %rax
movq %rax, -16(%rbp)
LBB30_12: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16(%rbp)
je LBB30_15
## %bb.13: ## in Loop: Header=BB30_12 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.104(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.14: ## in Loop: Header=BB30_12 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
jmp LBB30_12
LBB30_15:
movq -8(%rbp), %rdi
leaq L_.str.105(%rip), %rsi
movb $0, %al
callq _fprintf
movq _progs(%rip), %rax
movq %rax, -16(%rbp)
LBB30_16: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16(%rbp)
je LBB30_19
## %bb.17: ## in Loop: Header=BB30_16 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.106(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.18: ## in Loop: Header=BB30_16 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
jmp LBB30_16
LBB30_19:
movq -8(%rbp), %rdi
leaq L_.str.107(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.108(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.109(%rip), %rsi
movq _execfname@GOTPCREL(%rip), %rdx
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.110(%rip), %rsi
movq _execfname@GOTPCREL(%rip), %rcx
movq %rcx, %rdx
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.111(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.112(%rip), %rsi
movq _execfname@GOTPCREL(%rip), %rcx
movq %rcx, %rdx
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.113(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.114(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.115(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.116(%rip), %rsi
movq _execfname@GOTPCREL(%rip), %rcx
movq %rcx, %rdx
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.66(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.117(%rip), %rsi
movq _execfname@GOTPCREL(%rip), %rdx
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.118(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.119(%rip), %rsi
movq _execfname@GOTPCREL(%rip), %rdx
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.120(%rip), %rsi
movb $0, %al
callq _fprintf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _prog_makefile_rules ## -- Begin function prog_makefile_rules
.p2align 4, 0x90
_prog_makefile_rules: ## @prog_makefile_rules
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.121(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.122(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rax
cmpq $0, 40(%rax)
je LBB31_2
## %bb.1:
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 40(%rax), %rdx
leaq L_.str.6(%rip), %rsi
movb $0, %al
callq _fprintf
jmp LBB31_3
LBB31_2:
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.123(%rip), %rsi
movb $0, %al
callq _fprintf
LBB31_3:
movq -8(%rbp), %rdi
leaq L_.str.80(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rax
cmpq $0, 24(%rax)
je LBB31_10
## %bb.4:
movq -16(%rbp), %rax
cmpq $0, 56(%rax)
je LBB31_10
## %bb.5:
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
movq -16(%rbp), %rax
movq 24(%rax), %rcx
leaq L_.str.124(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
movq -16(%rbp), %rax
movq 32(%rax), %rcx
leaq L_.str.125(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.126(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 56(%rax), %rsi
callq _output_strlst
movq -16(%rbp), %rax
cmpq $0, 72(%rax)
je LBB31_7
## %bb.6:
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.127(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 72(%rax), %rsi
callq _output_strlst
LBB31_7:
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.128(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.129(%rip), %rsi
movb $0, %al
callq _fprintf
cmpl $0, _makeobj(%rip)
je LBB31_9
## %bb.8:
movq -8(%rbp), %rdi
leaq L_.str.130(%rip), %rsi
movb $0, %al
callq _fprintf
LBB31_9:
movq -8(%rbp), %rdi
leaq L_.str.131(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.132(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.131(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
movq -16(%rbp), %rax
movq 16(%rax), %rcx
leaq L_.str.133(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.80(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.134(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.135(%rip), %rsi
movb $0, %al
callq _fprintf
jmp LBB31_11
LBB31_10:
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.128(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.136(%rip), %rsi
movb $0, %al
callq _fprintf
LBB31_11:
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.137(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rax
cmpq $0, 64(%rax)
je LBB31_13
## %bb.12:
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 64(%rax), %rsi
callq _output_strlst
jmp LBB31_18
LBB31_13:
movq -16(%rbp), %rax
movq 56(%rax), %rax
movq %rax, -24(%rbp)
LBB31_14: ## =>This Inner Loop Header: Depth=1
cmpq $0, -24(%rbp)
je LBB31_17
## %bb.15: ## in Loop: Header=BB31_14 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
movq -24(%rbp), %rax
movq 8(%rax), %rcx
leaq L_.str.138(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.16: ## in Loop: Header=BB31_14 Depth=1
movq -24(%rbp), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
jmp LBB31_14
LBB31_17:
movq -8(%rbp), %rdi
leaq L_.str.80(%rip), %rsi
movb $0, %al
callq _fprintf
LBB31_18:
movq -16(%rbp), %rax
cmpq $0, 96(%rax)
je LBB31_20
## %bb.19:
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.139(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 96(%rax), %rsi
callq _output_strlst
LBB31_20:
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.140(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
movq -16(%rbp), %rax
movq 8(%rax), %rcx
leaq L_.str.141(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 8(%rax), %rdx
movq -16(%rbp), %rax
movq 8(%rax), %rcx
movq -16(%rbp), %rax
movq 16(%rax), %r8
leaq L_.str.142(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rax
cmpq $0, 96(%rax)
je LBB31_22
## %bb.21:
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.143(%rip), %rsi
movb $0, %al
callq _fprintf
LBB31_22:
movq -8(%rbp), %rdi
leaq L_.str.80(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 8(%rax), %rdx
movq -16(%rbp), %rax
movq 8(%rax), %rcx
movq -16(%rbp), %rax
movq 16(%rax), %r8
leaq L_.str.144(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rax
cmpq $0, 96(%rax)
je LBB31_24
## %bb.23:
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.143(%rip), %rsi
movb $0, %al
callq _fprintf
LBB31_24:
movq -8(%rbp), %rdi
leaq L_.str.80(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.145(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rax
movq 80(%rax), %rax
movq %rax, -24(%rbp)
LBB31_25: ## =>This Inner Loop Header: Depth=1
cmpq $0, -24(%rbp)
je LBB31_28
## %bb.26: ## in Loop: Header=BB31_25 Depth=1
movq -8(%rbp), %rdi
movq -24(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.146(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.27: ## in Loop: Header=BB31_25 Depth=1
movq -24(%rbp), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
jmp LBB31_25
LBB31_28:
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.147(%rip), %rsi
movb $0, %al
callq _fprintf
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _subtract_strlst ## -- Begin function subtract_strlst
.p2align 4, 0x90
_subtract_strlst: ## @subtract_strlst
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $0, -20(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
LBB32_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -32(%rbp)
je LBB32_6
## %bb.2: ## in Loop: Header=BB32_1 Depth=1
movq -8(%rbp), %rdi
movq -32(%rbp), %rax
movq 8(%rax), %rsi
callq _in_list
cmpl $0, %eax
je LBB32_4
## %bb.3: ## in Loop: Header=BB32_1 Depth=1
movq -32(%rbp), %rax
movq 8(%rax), %rsi
leaq L_.str.151(%rip), %rdi
movb $0, %al
callq _warnx
movq -32(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str.47(%rip), %rsi
movq $-1, %rdx
callq ___strcat_chk
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
LBB32_4: ## in Loop: Header=BB32_1 Depth=1
jmp LBB32_5
LBB32_5: ## in Loop: Header=BB32_1 Depth=1
movq -32(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
jmp LBB32_1
LBB32_6:
movl -20(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _buildopts ## @buildopts
.zerofill __DATA,__common,_buildopts,8,3
.globl _srcdirs ## @srcdirs
.zerofill __DATA,__common,_srcdirs,8,3
.globl _libs ## @libs
.zerofill __DATA,__common,_libs,8,3
.globl _libs_so ## @libs_so
.zerofill __DATA,__common,_libs_so,8,3
.globl _progs ## @progs
.zerofill __DATA,__common,_progs,8,3
.section __DATA,__data
.globl _linenum ## @linenum
.p2align 2
_linenum:
.long 4294967295 ## 0xffffffff
.globl _goterror ## @goterror
.zerofill __DATA,__common,_goterror,4,2
.globl _makeobj ## @makeobj
.zerofill __DATA,__common,_makeobj,4,2
.comm _verbose,4,2 ## @verbose
.comm _readcache,4,2 ## @readcache
.comm _execfname,1024,4 ## @execfname
.comm _outcfname,1024,4 ## @outcfname
.comm _outmkname,1024,4 ## @outmkname
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "MAKEOBJDIRPREFIX"
L_.str.1: ## @.str.1
.asciz "/usr/obj"
.comm _objprefix,8,3 ## @objprefix
L_.str.2: ## @.str.2
.asciz "lh:m:c:e:p:foq"
.comm _outhdrname,1024,4 ## @outhdrname
.comm _list_mode,4,2 ## @list_mode
.comm _infilename,1024,4 ## @infilename
.comm _confname,1024,4 ## @confname
L_.str.3: ## @.str.3
.asciz ".conf"
L_.str.4: ## @.str.4
.asciz "%s.mk"
L_.str.5: ## @.str.5
.asciz "%s.c"
L_.str.6: ## @.str.6
.asciz "%s"
.comm _cachename,1024,4 ## @cachename
L_.str.7: ## @.str.7
.asciz "%s.cache"
.comm _tempfname,1024,4 ## @tempfname
L_.str.8: ## @.str.8
.asciz "%s/crunchgen_%sXXXXXX"
L_.str.9: ## @.str.9
.asciz "TMPDIR"
L_.str.10: ## @.str.10
.asciz "/tmp/"
L_.str.11: ## @.str.11
.asciz "%s%s\n\t%s%s\n"
L_.str.12: ## @.str.12
.asciz "usage: crunchgen [-foq] "
L_.str.13: ## @.str.13
.asciz "[-h <makefile-header-name>] [-m <makefile>]"
L_.str.14: ## @.str.14
.asciz "[-p <obj-prefix>] [-c <c-file-name>] [-e <exec-file>] "
L_.str.15: ## @.str.15
.asciz "<conffile>"
L_.str.16: ## @.str.16
.asciz "fatal: input file \"%s\" not found"
.comm _reading_cache,4,2 ## @reading_cache
L_.str.17: ## @.str.17
.asciz "reading %s"
.comm _curfilename,1024,4 ## @curfilename
L_.str.18: ## @.str.18
.asciz "r"
L_.str.19: ## @.str.19
.asciz "srcdirs"
L_.str.20: ## @.str.20
.asciz "progs"
L_.str.21: ## @.str.21
.asciz "ln"
L_.str.22: ## @.str.22
.asciz "libs"
L_.str.23: ## @.str.23
.asciz "libs_so"
L_.str.24: ## @.str.24
.asciz "buildopts"
L_.str.25: ## @.str.25
.asciz "special"
L_.str.26: ## @.str.26
.asciz "%s:%d: skipping unknown command `%s'"
L_.str.27: ## @.str.27
.asciz "%s:%d: %s %s"
L_.str.28: ## @.str.28
.asciz "command needs at least 1 argument, skipping"
L_.str.29: ## @.str.29
.asciz "%s:%d: `%s' is not a directory, skipping it"
L_.str.30: ## @.str.30
.asciz "%s\n"
L_.str.31: ## @.str.31
.asciz "%s:%d: no prog %s previously declared, skipping link"
L_.str.32: ## @.str.32
.asciz "%s:%d: library `%s' specified as dynamic earlier"
L_.str.33: ## @.str.33
.asciz "%s:%d: library `%s' specified as static earlier"
L_.str.34: ## @.str.34
.asciz "%s:%d: no prog %s previously declared, skipping special"
L_.str.35: ## @.str.35
.asciz "ident"
L_.str.36: ## @.str.36
.asciz "srcdir"
L_.str.37: ## @.str.37
.asciz "objdir"
L_.str.38: ## @.str.38
.asciz "objs"
L_.str.39: ## @.str.39
.asciz "objpaths"
L_.str.40: ## @.str.40
.asciz "keep"
L_.str.41: ## @.str.41
.asciz "objvar"
L_.str.42: ## @.str.42
.asciz "lib"
L_.str.43: ## @.str.43
.asciz "%s:%d: bad parameter name `%s', skipping line"
L_.str.44: ## @.str.44
.asciz "%s:%d: too %s arguments, expected \"special %s %s <string>\""
L_.str.45: ## @.str.45
.asciz "few"
L_.str.46: ## @.str.46
.asciz "many"
L_.str.47: ## @.str.47
.space 1
L_.str.48: ## @.str.48
.asciz "Run \"make -f %s\" to build crunched binary.\n"
L_.str.49: ## @.str.49
.asciz "filling in parms for %s"
L_.str.50: ## @.str.50
.asciz "cd %s && echo -n `/bin/pwd`"
L_.str.51: ## @.str.51
.asciz "Can't execute: %s\n"
L_.str.52: ## @.str.52
.asciz "Can't perform pwd on: %s\n"
L_.str.53: ## @.str.53
.asciz "%s/%s"
L_.str.54: ## @.str.54
.asciz "Makefile.%s"
L_.str.55: ## @.str.55
.asciz "Using %s for %s"
L_.str.56: ## @.str.56
.asciz "%s/Makefile"
L_.str.57: ## @.str.57
.asciz "%s: %s: %s"
L_.str.58: ## @.str.58
.asciz "warning: could not find source directory"
L_.str.59: ## @.str.59
.asciz "%s: %s: warning: could not find any .o files"
L_.str.60: ## @.str.60
.asciz "OBJS"
L_.str.61: ## @.str.61
.asciz "w"
L_.str.62: ## @.str.62
.asciz ".include \"%s\"\n"
L_.str.63: ## @.str.63
.asciz "BUILDOPTS+="
L_.str.64: ## @.str.64
.asciz ".if defined(PROG) && !defined(%s)\n"
L_.str.65: ## @.str.65
.asciz "%s=${PROG}.o\n"
L_.str.66: ## @.str.66
.asciz ".endif\n"
L_.str.67: ## @.str.67
.asciz "loop:\n\t@echo 'OBJS= '${%s}\n"
L_.str.68: ## @.str.68
.asciz "crunchgen_objs:\n\t@cd %s && make -f %s $(BUILDOPTS) $(%s_OPTS)"
L_.str.69: ## @.str.69
.asciz " %s"
L_.str.70: ## @.str.70
.asciz " loop\n"
L_.str.71: ## @.str.71
.asciz "cd %s && make -f %s crunchgen_objs"
L_.str.72: ## @.str.72
.asciz "submake pipe"
L_.str.73: ## @.str.73
.asciz "OBJS= "
L_.str.74: ## @.str.74
.asciz "make error: %s"
L_.str.75: ## @.str.75
.asciz "make error: make returned %d"
L_.str.76: ## @.str.76
.asciz "%s: %s: ignoring program because of errors"
L_.str.77: ## @.str.77
.asciz "generating %s"
L_.str.78: ## @.str.78
.asciz "# %s - parm cache generated from %s by crunchgen %s\n\n"
L_.str.79: ## @.str.79
.asciz "0.2"
L_.str.80: ## @.str.80
.asciz "\n"
L_.str.81: ## @.str.81
.asciz "special %s srcdir %s\n"
L_.str.82: ## @.str.82
.asciz "special %s objdir %s\n"
L_.str.83: ## @.str.83
.asciz "special %s objs"
L_.str.84: ## @.str.84
.asciz "special %s objpaths"
L_.str.85: ## @.str.85
.asciz "# %s - generated from %s by crunchgen %s\n\n"
L_.str.86: ## @.str.86
.asciz "\n# ========\n"
L_.str.87: ## @.str.87
.asciz "/* %s - generated from %s by crunchgen %s */\n"
L_.str.88: ## @.str.88
.asciz "#define EXECNAME \"%s\"\n"
L_.str.89: ## @.str.89
.asciz "extern int _crunched_%s_stub();\n"
L_.str.90: ## @.str.90
.asciz "\nstruct stub entry_points[] = {\n"
L_.str.91: ## @.str.91
.asciz "\t{ \"%s\", _crunched_%s_stub },\n"
L_.str.92: ## @.str.92
.asciz "\t{ EXECNAME, crunched_main },\n"
L_.str.93: ## @.str.93
.asciz "\t{ NULL, NULL }\n};\n"
L_.str.94: ## @.str.94
.asciz "# NOTE: Some LIBS declarations below overridden by LIBS_SO\n"
L_.str.95: ## @.str.95
.asciz "LIBS+="
L_.str.96: ## @.str.96
.asciz "LIBS_SO+="
L_.str.97: ## @.str.97
.asciz "MAKEOBJDIRPREFIX?=%s\n"
L_.str.98: ## @.str.98
.asciz "MAKEENV=env MAKEOBJDIRPREFIX=$(MAKEOBJDIRPREFIX)\n"
L_.str.99: ## @.str.99
.asciz "CRUNCHMAKE=$(MAKEENV) $(MAKE)\n"
L_.str.100: ## @.str.100
.asciz "CRUNCHMAKE=$(MAKE)\n"
L_.str.101: ## @.str.101
.asciz "CRUNCHED_OBJS="
L_.str.102: ## @.str.102
.asciz " %s.lo"
L_.str.103: ## @.str.103
.asciz "SUBMAKE_TARGETS="
L_.str.104: ## @.str.104
.asciz " %s_make"
L_.str.105: ## @.str.105
.asciz "\nSUBCLEAN_TARGETS="
L_.str.106: ## @.str.106
.asciz " %s_clean"
L_.str.107: ## @.str.107
.asciz "\n\n"
L_.str.108: ## @.str.108
.asciz "all: objs exe\nobjs: $(SUBMAKE_TARGETS)\n"
L_.str.109: ## @.str.109
.asciz "exe: %s\n"
L_.str.110: ## @.str.110
.asciz "%s: %s.o $(CRUNCHED_OBJS)\n"
L_.str.111: ## @.str.111
.asciz ".if defined(LIBS_SO) && !empty(LIBS_SO)\n"
L_.str.112: ## @.str.112
.asciz "\t$(CC) -o %s %s.o $(CRUNCHED_OBJS) \\\n"
L_.str.113: ## @.str.113
.asciz "\t\t-Xlinker -Bstatic $(LIBS) \\\n"
L_.str.114: ## @.str.114
.asciz "\t\t-Xlinker -Bdynamic $(LIBS_SO)\n"
L_.str.115: ## @.str.115
.asciz ".else\n"
L_.str.116: ## @.str.116
.asciz "\t$(CC) -static -o %s %s.o $(CRUNCHED_OBJS) $(LIBS)\n"
L_.str.117: ## @.str.117
.asciz "\tstrip %s\n"
L_.str.118: ## @.str.118
.asciz "realclean: clean subclean\n"
L_.str.119: ## @.str.119
.asciz "clean:\n\trm -f %s *.lo *.o *_stub.c\n"
L_.str.120: ## @.str.120
.asciz "subclean: $(SUBCLEAN_TARGETS)\n"
L_.str.121: ## @.str.121
.asciz "\n# -------- %s\n\n"
L_.str.122: ## @.str.122
.asciz "%s_OBJDIR="
L_.str.123: ## @.str.123
.asciz "$(MAKEOBJDIRPREFIX)/$(%s_REALSRCDIR)\n"
L_.str.124: ## @.str.124
.asciz "%s_SRCDIR=%s\n"
L_.str.125: ## @.str.125
.asciz "%s_REALSRCDIR=%s\n"
L_.str.126: ## @.str.126
.asciz "%s_OBJS="
L_.str.127: ## @.str.127
.asciz "%s_OPTS+="
L_.str.128: ## @.str.128
.asciz "%s_make:\n"
L_.str.129: ## @.str.129
.asciz "\t(cd $(%s_SRCDIR) && "
L_.str.130: ## @.str.130
.asciz "$(CRUNCHMAKE) obj && "
L_.str.131: ## @.str.131
.asciz "\\\n"
L_.str.132: ## @.str.132
.asciz "\t\t$(CRUNCHMAKE) $(BUILDOPTS) $(%s_OPTS) depend &&"
L_.str.133: ## @.str.133
.asciz "\t\t$(CRUNCHMAKE) $(BUILDOPTS) $(%s_OPTS) $(%s_OBJS))"
L_.str.134: ## @.str.134
.asciz "%s_clean:\n"
L_.str.135: ## @.str.135
.asciz "\t(cd $(%s_SRCDIR) && $(CRUNCHMAKE) $(BUILDOPTS) clean cleandepend)\n\n"
L_.str.136: ## @.str.136
.asciz "\t@echo \"** cannot make objs for %s\"\n\n"
L_.str.137: ## @.str.137
.asciz "%s_OBJPATHS="
L_.str.138: ## @.str.138
.asciz " $(%s_OBJDIR)/%s"
L_.str.139: ## @.str.139
.asciz "%s_LIBS="
L_.str.140: ## @.str.140
.asciz "%s_stub.c:\n"
L_.str.141: ## @.str.141
.asciz "\techo \"int _crunched_%s_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}\" >%s_stub.c\n"
L_.str.142: ## @.str.142
.asciz "%s.lo: %s_stub.o $(%s_OBJPATHS)"
L_.str.143: ## @.str.143
.asciz " $(%s_LIBS)"
L_.str.144: ## @.str.144
.asciz "\tld -dc -r -o %s.lo %s_stub.o $(%s_OBJPATHS)"
L_.str.145: ## @.str.145
.asciz "\tcrunchide -k _crunched_%s_stub "
L_.str.146: ## @.str.146
.asciz "-k _%s "
L_.str.147: ## @.str.147
.asciz "%s.lo\n"
.zerofill __DATA,__bss,_status.lastlen,4,2 ## @status.lastlen
L_.str.148: ## @.str.148
.asciz " [%s]%*.*s\r"
L_.str.149: ## @.str.149
.asciz " "
L_.str.150: ## @.str.150
.asciz "%s: %d: out of memory, stopping"
L_.str.151: ## @.str.151
.asciz "Will compile library `%s' dynamically"
.subsections_via_symbols
| the_stack_data/151262.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #8] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
bl _fork
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Called fork() system call \n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
callq _fork
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Called fork() system call \n"
.subsections_via_symbols
| the_stack_data/234517749.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _foo ; -- Begin function foo
.p2align 2
_foo: ; @foo
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
adrp x8, _JStart@GOTPAGE
ldr x8, [x8, _JStart@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x8, _IStart@GOTPAGE
ldr x8, [x8, _IStart@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #20]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr w8, [sp, #20]
adrp x9, _IEnd@GOTPAGE
ldr x9, [x9, _IEnd@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w9, [x8]
add w9, w9, #1
str w9, [x8]
ldr w8, [x8]
str w8, [sp, #24]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #24]
adrp x9, _JEnd@GOTPAGE
ldr x9, [x9, _JEnd@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldrsw x8, [sp, #20]
mov x10, #800
mul x11, x8, x10
adrp x8, _U@GOTPAGE
ldr x8, [x8, _U@GOTPAGEOFF]
mov x9, x8
add x9, x9, x11
ldrsw x11, [sp, #24]
ldr d0, [x9, x11, lsl #3]
fmov d1, #1.00000000
fadd d0, d0, d1
ldrsw x9, [sp, #20]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #24]
str d0, [x8, x9, lsl #3]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_1
LBB0_8:
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _IStart,4,2 ; @IStart
.comm _IEnd,4,2 ; @IEnd
.comm _JStart,4,2 ; @JStart
.comm _JEnd,4,2 ; @JEnd
.comm _U,80000,3 ; @U
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function foo
LCPI0_0:
.quad 0x3ff0000000000000 ## double 1
.section __TEXT,__text,regular,pure_instructions
.globl _foo
.p2align 4, 0x90
_foo: ## @foo
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _IStart@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -12(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movl -12(%rbp), %eax
movq _IEnd@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq _JStart@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _JStart@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _JStart@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -8(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -8(%rbp), %eax
movq _JEnd@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movslq -12(%rbp), %rcx
movq _U@GOTPCREL(%rip), %rax
imulq $800, %rcx, %rcx ## imm = 0x320
addq %rcx, %rax
movslq -8(%rbp), %rcx
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
addsd (%rax,%rcx,8), %xmm0
movslq -12(%rbp), %rcx
movq _U@GOTPCREL(%rip), %rax
imulq $800, %rcx, %rcx ## imm = 0x320
addq %rcx, %rax
movslq -8(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_3
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_1
LBB0_8:
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _IStart,4,2 ## @IStart
.comm _IEnd,4,2 ## @IEnd
.comm _JStart,4,2 ## @JStart
.comm _JEnd,4,2 ## @JEnd
.comm _U,80000,4 ## @U
.subsections_via_symbols
| the_stack_data/76100.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test ; -- Begin function test
.p2align 2
_test: ; @test
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
adrp x8, _vs@GOTPAGE
ldr x8, [x8, _vs@GOTPAGEOFF]
ldr d0, [x8]
sshll.4s v0, v0, #0
scvtf.4s v0, v0
adrp x8, _vf@GOTPAGE
ldr x8, [x8, _vf@GOTPAGEOFF]
str q0, [x8]
ldr q1, [x8]
fmov s0, s1
fcvt d4, s0
mov s0, v1[1]
fcvt d0, s0
mov s2, v1[2]
fcvt d3, s2
mov s1, v1[3]
fcvt d1, s1
; implicit-def: $q2
fmov d2, d0
; implicit-def: $q0
fmov d0, d4
mov.d v0[1], v2[0]
; implicit-def: $q2
fmov d2, d1
; implicit-def: $q1
fmov d1, d3
mov.d v1[1], v2[0]
str q1, [sp, #16]
str q0, [sp]
ldr q0, [sp]
ldr q1, [sp, #16]
adrp x8, _vd@GOTPAGE
ldr x8, [x8, _vd@GOTPAGEOFF]
str q1, [x8, #16]
str q0, [x8]
ldr w0, [sp, #44]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _vs,8,3 ; @vs
.comm _vf,16,4 ; @vf
.comm _vd,32,5 ; @vd
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test ## -- Begin function test
.p2align 4, 0x90
_test: ## @test
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _vs@GOTPCREL(%rip), %rax
pmovsxwd (%rax), %xmm0
cvtdq2ps %xmm0, %xmm0
movq _vf@GOTPCREL(%rip), %rax
movaps %xmm0, (%rax)
movaps (%rax), %xmm2
movaps %xmm2, %xmm0
cvtss2sd %xmm0, %xmm0
movshdup %xmm2, %xmm1 ## xmm1 = xmm2[1,1,3,3]
cvtss2sd %xmm1, %xmm3
movss 8(%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
shufps $255, %xmm2, %xmm2 ## xmm2 = xmm2[3,3,3,3]
cvtss2sd %xmm2, %xmm2
unpcklpd %xmm3, %xmm0 ## xmm0 = xmm0[0],xmm3[0]
unpcklpd %xmm2, %xmm1 ## xmm1 = xmm1[0],xmm2[0]
movapd %xmm1, -32(%rbp)
movapd %xmm0, -48(%rbp)
movapd -48(%rbp), %xmm0
movapd -32(%rbp), %xmm1
movq _vd@GOTPCREL(%rip), %rax
movapd %xmm1, 16(%rax)
movapd %xmm0, (%rax)
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _vs,8,3 ## @vs
.comm _vf,16,4 ## @vf
.comm _vd,32,5 ## @vd
.subsections_via_symbols
| the_stack_data/25138664.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _euclides ; -- Begin function euclides
.p2align 2
_euclides: ; @euclides
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str w1, [sp, #8]
mov w8, #1
str w8, [sp, #4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
ldr w10, [sp, #8]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #4]
ldr w8, [sp, #8]
str w8, [sp, #12]
ldr w8, [sp, #4]
str w8, [sp, #8]
b LBB0_1
LBB0_3:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov x9, sp
sub x8, x29, #16
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
stur wzr, [x29, #-20]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_6
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
mov x9, sp
sub x8, x29, #8
str x8, [x9]
sub x8, x29, #12
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-12]
str w8, [sp, #16]
ldur w8, [x29, #-8]
stur w8, [x29, #-12]
ldr w8, [sp, #16]
stur w8, [x29, #-8]
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
ldur w0, [x29, #-12]
ldur w8, [x29, #-8]
ldur w10, [x29, #-12]
sdiv w9, w8, w10
mul w9, w9, w10
subs w1, w8, w9
bl _euclides
str w0, [sp, #24]
ldr w9, [sp, #24]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB1_1
LBB1_6:
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
l_.str.1: ; @.str.1
.asciz "%d%d"
l_.str.2: ; @.str.2
.asciz "%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _euclides ## -- Begin function euclides
.p2align 4, 0x90
_euclides: ## @euclides
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl $1, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -12(%rbp)
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -4(%rbp), %eax
cltd
idivl -8(%rbp)
movl %edx, -12(%rbp)
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
movl -12(%rbp), %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_3:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -16(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -20(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB1_6
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
leaq -12(%rbp), %rdx
movb $0, %al
callq _scanf
movl -8(%rbp), %eax
cmpl -12(%rbp), %eax
jle LBB1_4
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -12(%rbp), %eax
movl %eax, -32(%rbp)
movl -8(%rbp), %eax
movl %eax, -12(%rbp)
movl -32(%rbp), %eax
movl %eax, -8(%rbp)
LBB1_4: ## in Loop: Header=BB1_1 Depth=1
movl -12(%rbp), %edi
movl -8(%rbp), %eax
cltd
idivl -12(%rbp)
movl %edx, %esi
callq _euclides
movl %eax, -24(%rbp)
movl -24(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.5: ## in Loop: Header=BB1_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB1_1
LBB1_6:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
L_.str.1: ## @.str.1
.asciz "%d%d"
L_.str.2: ## @.str.2
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/890458.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _foo ; -- Begin function foo
.p2align 2
_foo: ; @foo
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
adrp x8, _e@PAGE
ldr x9, [x8, _e@PAGEOFF]
adrp x8, _h@GOTPAGE
ldr x8, [x8, _h@GOTPAGEOFF]
str x8, [x9]
adrp x8, _d@GOTPAGE
ldr x8, [x8, _d@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
brk #0x1
LBB0_2:
adrp x8, _f@PAGE
ldr x9, [x8, _f@PAGEOFF]
adrp x8, _g@GOTPAGE
ldr x8, [x8, _g@GOTPAGEOFF]
str x8, [x9]
adrp x8, _a@PAGE
ldr w8, [x8, _a@PAGEOFF]
str w8, [sp, #12]
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
adrp x8, _c@PAGE
ldr x8, [x8, _c@PAGEOFF]
str x8, [sp, #16]
ldr x8, [sp, #16]
str x8, [sp] ; 8-byte Folded Spill
bl _foo
ldr x9, [sp] ; 8-byte Folded Reload
str w0, [sp, #12]
ldr w8, [sp, #12]
str w8, [x9]
adrp x8, _b@GOTPAGE
ldr x8, [x8, _b@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
bl _abort
LBB1_2:
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __DATA,__data
.globl _a ; @a
.p2align 2
_a:
.long 1 ; 0x1
.comm _b,4,2 ; @b
.globl _c ; @c
.p2align 3
_c:
.quad _b
.globl _f ; @f
.p2align 3
_f:
.quad _c
.comm _d,8,3 ; @d
.globl _e ; @e
.p2align 3
_e:
.quad _d
.comm _h,4,2 ; @h
.comm _g,4,2 ; @g
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _foo ## -- Begin function foo
.p2align 4, 0x90
_foo: ## @foo
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _e(%rip), %rax
movq _h@GOTPCREL(%rip), %rcx
movq %rcx, (%rax)
movq _d@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_2
## %bb.1:
ud2
LBB0_2:
movq _f(%rip), %rax
movq _g@GOTPCREL(%rip), %rcx
movq %rcx, (%rax)
movl _a(%rip), %eax
movl %eax, -8(%rbp)
movl -8(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movq _c(%rip), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
callq _foo
movl %eax, %ecx
movq -32(%rbp), %rax ## 8-byte Reload
movl %ecx, -24(%rbp)
movl -24(%rbp), %ecx
movl %ecx, (%rax)
movq _b@GOTPCREL(%rip), %rax
cmpl $1, (%rax)
je LBB1_2
## %bb.1:
callq _abort
LBB1_2:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.globl _a ## @a
.p2align 2
_a:
.long 1 ## 0x1
.comm _b,4,2 ## @b
.globl _c ## @c
.p2align 3
_c:
.quad _b
.globl _f ## @f
.p2align 3
_f:
.quad _c
.comm _d,8,3 ## @d
.globl _e ## @e
.p2align 3
_e:
.quad _d
.comm _h,4,2 ## @h
.comm _g,4,2 ## @g
.subsections_via_symbols
| the_stack_data/892188.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _hd_main ; -- Begin function hd_main
.p2align 2
_hd_main: ; @hd_main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
mov w9, #4288
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #1, lsl #12 ; =4096
sub sp, sp, #192
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
str x8, [sp, #96] ; 8-byte Folded Spill
adrp x8, _optarg@GOTPAGE
ldr x8, [x8, _optarg@GOTPAGEOFF]
str x8, [sp, #104] ; 8-byte Folded Spill
adrp x8, _optind@GOTPAGE
ldr x8, [x8, _optind@GOTPAGEOFF]
str x8, [sp, #112] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str w0, [sp, #176]
str x1, [sp, #168]
str wzr, [sp, #148]
str wzr, [sp, #140]
mov w8, #-1
str w8, [sp, #128]
str wzr, [sp, #124]
str wzr, [sp, #120]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w0, [sp, #176]
ldr x1, [sp, #168]
adrp x2, l_.str@PAGE
add x2, x2, l_.str@PAGEOFF
bl _getopt
str w0, [sp, #164]
ldr w8, [sp, #164]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
b LBB0_13
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #164]
str w8, [sp, #92] ; 4-byte Folded Spill
subs w8, w8, #63
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #92] ; 4-byte Folded Reload
subs w8, w8, #98
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #92] ; 4-byte Folded Reload
subs w8, w8, #99
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #92] ; 4-byte Folded Reload
subs w8, w8, #114
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_11
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #104] ; 8-byte Folded Reload
ldr x0, [x8]
mov x1, #0
mov w2, #0
bl _strtol
mov x8, x0
str w8, [sp, #128]
b LBB0_11
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #104] ; 8-byte Folded Reload
ldr x0, [x8]
mov x1, #0
mov w2, #0
bl _strtol
mov x8, x0
str w8, [sp, #124]
b LBB0_11
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #104] ; 8-byte Folded Reload
ldr x0, [x8]
mov x1, #0
mov w2, #0
bl _strtol
mov x8, x0
str w8, [sp, #120]
b LBB0_11
LBB0_10:
ldr x8, [sp, #96] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x8, [sp, #168]
ldr x10, [x8]
adrp x8, _optopt@GOTPAGE
ldr x8, [x8, _optopt@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
mov w8, #1
tbnz w8, #0, LBB0_1
b LBB0_13
LBB0_13:
ldr x8, [sp, #112] ; 8-byte Folded Reload
ldr w8, [x8]
add w8, w8, #1
ldr w9, [sp, #176]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
ldr x8, [sp, #96] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x8, [sp, #168]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_15:
ldr x9, [sp, #112] ; 8-byte Folded Reload
ldr x8, [sp, #168]
ldrsw x9, [x9]
ldr x0, [x8, x9, lsl #3]
mov w1, #0
bl _open
str w0, [sp, #160]
ldr w8, [sp, #160]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16:
ldr x9, [sp, #112] ; 8-byte Folded Reload
ldr x8, [sp, #96] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #80] ; 8-byte Folded Spill
ldr x8, [sp, #168]
ldrsw x9, [x9]
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #72] ; 8-byte Folded Spill
bl ___error
ldr w0, [x0]
bl _strerror
ldr x10, [sp, #72] ; 8-byte Folded Reload
mov x8, x0
ldr x0, [sp, #80] ; 8-byte Folded Reload
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
mov w8, #1
str w8, [sp, #180]
b LBB0_45
LBB0_17:
b LBB0_18
LBB0_18: ; =>This Loop Header: Depth=1
; Child Loop BB0_21 Depth 2
; Child Loop BB0_27 Depth 3
ldr w8, [sp, #128]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_18 Depth=1
ldr w0, [sp, #160]
ldrsw x1, [sp, #128]
mov w2, #0
bl _lseek
ldr w8, [sp, #128]
str w8, [sp, #140]
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_18 Depth=1
str wzr, [sp, #136]
str wzr, [sp, #132]
b LBB0_21
LBB0_21: ; Parent Loop BB0_18 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_27 Depth 3
mov w8, #4096
str w8, [sp, #152]
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_24
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_21 Depth=2
ldr w8, [sp, #128]
ldr w9, [sp, #124]
add w8, w8, w9
ldr w9, [sp, #140]
subs w8, w8, w9
ldr w9, [sp, #152]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_21 Depth=2
ldr w8, [sp, #128]
ldr w9, [sp, #124]
add w8, w8, w9
ldr w9, [sp, #140]
subs w8, w8, w9
str w8, [sp, #152]
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_21 Depth=2
ldr w0, [sp, #160]
ldrsw x2, [sp, #152]
add x1, sp, #184
bl _read
mov x8, x0
str w8, [sp, #156]
ldr w8, [sp, #156]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_26
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_18 Depth=1
b LBB0_40
LBB0_26: ; in Loop: Header=BB0_21 Depth=2
str wzr, [sp, #144]
b LBB0_27
LBB0_27: ; Parent Loop BB0_18 Depth=1
; Parent Loop BB0_21 Depth=2
; => This Inner Loop Header: Depth=3
ldr w8, [sp, #144]
ldr w9, [sp, #156]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_35
b LBB0_28
LBB0_28: ; in Loop: Header=BB0_27 Depth=3
ldr w8, [sp, #144]
ands w8, w8, #0xf
cset w8, ne
tbnz w8, #0, LBB0_30
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_27 Depth=3
ldr w8, [sp, #140]
ldr w9, [sp, #144]
add w10, w8, w9
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB0_30
LBB0_30: ; in Loop: Header=BB0_27 Depth=3
ldrsw x9, [sp, #144]
add x8, sp, #184
ldrb w10, [x8, x9]
ldr w9, [sp, #132]
add w9, w9, w10
str w9, [sp, #132]
ldrsw x9, [sp, #144]
ldrb w10, [x8, x9]
ldr w9, [sp, #136]
add w9, w9, w10
str w9, [sp, #136]
ldrsw x9, [sp, #144]
ldrb w10, [x8, x9]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldr w8, [sp, #144]
and w8, w8, #0xf
subs w8, w8, #15
cset w8, eq
tbnz w8, #0, LBB0_32
b LBB0_31
LBB0_31: ; in Loop: Header=BB0_27 Depth=3
ldr w8, [sp, #144]
ldr w9, [sp, #156]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_33
b LBB0_32
LBB0_32: ; in Loop: Header=BB0_27 Depth=3
ldr w9, [sp, #132]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
str wzr, [sp, #132]
b LBB0_33
LBB0_33: ; in Loop: Header=BB0_27 Depth=3
b LBB0_34
LBB0_34: ; in Loop: Header=BB0_27 Depth=3
ldr w8, [sp, #144]
add w8, w8, #1
str w8, [sp, #144]
b LBB0_27
LBB0_35: ; in Loop: Header=BB0_21 Depth=2
ldr w8, [sp, #156]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_37
b LBB0_36
LBB0_36:
ldr x9, [sp, #112] ; 8-byte Folded Reload
ldr x8, [sp, #168]
ldrsw x9, [x9]
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #48] ; 8-byte Folded Spill
ldr w9, [sp, #140]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #56] ; 8-byte Folded Spill
ldr w9, [sp, #152]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #64] ; 8-byte Folded Spill
bl ___error
ldr w0, [x0]
bl _strerror
ldr x11, [sp, #48] ; 8-byte Folded Reload
ldr x10, [sp, #56] ; 8-byte Folded Reload
ldr x9, [sp, #64] ; 8-byte Folded Reload
mov x8, sp
str x11, [x8]
str x10, [x8, #8]
str x9, [x8, #16]
str x0, [x8, #24]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
mov w8, #1
str w8, [sp, #180]
b LBB0_45
LBB0_37: ; in Loop: Header=BB0_21 Depth=2
ldr w9, [sp, #156]
ldr w8, [sp, #140]
add w8, w8, w9
str w8, [sp, #140]
ldr w8, [sp, #140]
ldr w9, [sp, #128]
ldr w10, [sp, #124]
add w9, w9, w10
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_39
b LBB0_38
LBB0_38: ; in Loop: Header=BB0_18 Depth=1
b LBB0_40
LBB0_39: ; in Loop: Header=BB0_21 Depth=2
b LBB0_21
LBB0_40: ; in Loop: Header=BB0_18 Depth=1
ldr w9, [sp, #136]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
ldr w8, [sp, #120]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_42
b LBB0_41
LBB0_41: ; in Loop: Header=BB0_18 Depth=1
ldr w0, [sp, #120]
bl _sleep
b LBB0_42
LBB0_42: ; in Loop: Header=BB0_18 Depth=1
b LBB0_43
LBB0_43: ; in Loop: Header=BB0_18 Depth=1
ldr w8, [sp, #120]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_18
b LBB0_44
LBB0_44:
str wzr, [sp, #180]
b LBB0_45
LBB0_45:
ldr w8, [sp, #180]
str w8, [sp, #44] ; 4-byte Folded Spill
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_47
b LBB0_46
LBB0_46:
bl ___stack_chk_fail
LBB0_47:
ldr w0, [sp, #44] ; 4-byte Folded Reload
add sp, sp, #1, lsl #12 ; =4096
add sp, sp, #192
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "b:c:r:"
l_.str.1: ; @.str.1
.asciz "%s: invalid option -%c\n"
l_.str.2: ; @.str.2
.asciz "Usage: %s [-b base] [-c count] [-r delay] file\n"
l_.str.3: ; @.str.3
.asciz "could not open %s, %s\n"
l_.str.4: ; @.str.4
.asciz "%08x: "
l_.str.5: ; @.str.5
.asciz "%02x "
l_.str.6: ; @.str.6
.asciz "s %x\n"
l_.str.7: ; @.str.7
.asciz "Read error on %s, offset %d len %d, %s\n"
l_.str.8: ; @.str.8
.asciz "sum %x\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _hd_main ## -- Begin function hd_main
.p2align 4, 0x90
_hd_main: ## @hd_main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $4224, %eax ## imm = 0x1080
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl %edi, -4120(%rbp)
movq %rsi, -4128(%rbp)
movl $0, -4148(%rbp)
movl $0, -4156(%rbp)
movl $-1, -4168(%rbp)
movl $0, -4172(%rbp)
movl $0, -4176(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -4120(%rbp), %edi
movq -4128(%rbp), %rsi
leaq L_.str(%rip), %rdx
callq _getopt
movl %eax, -4132(%rbp)
cmpl $-1, -4132(%rbp)
jne LBB0_3
## %bb.2:
jmp LBB0_10
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movl -4132(%rbp), %eax
movl %eax, -4180(%rbp) ## 4-byte Spill
subl $63, %eax
je LBB0_7
jmp LBB0_45
LBB0_45: ## in Loop: Header=BB0_1 Depth=1
movl -4180(%rbp), %eax ## 4-byte Reload
subl $98, %eax
je LBB0_4
jmp LBB0_46
LBB0_46: ## in Loop: Header=BB0_1 Depth=1
movl -4180(%rbp), %eax ## 4-byte Reload
subl $99, %eax
je LBB0_5
jmp LBB0_47
LBB0_47: ## in Loop: Header=BB0_1 Depth=1
movl -4180(%rbp), %eax ## 4-byte Reload
subl $114, %eax
je LBB0_6
jmp LBB0_8
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq _strtol
## kill: def $eax killed $eax killed $rax
movl %eax, -4168(%rbp)
jmp LBB0_8
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq _strtol
## kill: def $eax killed $eax killed $rax
movl %eax, -4172(%rbp)
jmp LBB0_8
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq _strtol
## kill: def $eax killed $eax killed $rax
movl %eax, -4176(%rbp)
jmp LBB0_8
LBB0_7:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -4128(%rbp), %rax
movq (%rax), %rdx
movq _optopt@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq L_.str.1(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movb $1, %al
testb $1, %al
jne LBB0_1
jmp LBB0_10
LBB0_10:
movq _optind@GOTPCREL(%rip), %rax
movl (%rax), %eax
addl $1, %eax
cmpl -4120(%rbp), %eax
je LBB0_12
## %bb.11:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -4128(%rbp), %rax
movq (%rax), %rdx
leaq L_.str.2(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_12:
movq -4128(%rbp), %rax
movq _optind@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rdi
xorl %esi, %esi
movb $0, %al
callq _open
movl %eax, -4136(%rbp)
cmpl $0, -4136(%rbp)
jge LBB0_14
## %bb.13:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -4200(%rbp) ## 8-byte Spill
movq -4128(%rbp), %rax
movq _optind@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -4192(%rbp) ## 8-byte Spill
callq ___error
movl (%rax), %edi
callq _strerror
movq -4200(%rbp), %rdi ## 8-byte Reload
movq -4192(%rbp), %rdx ## 8-byte Reload
movq %rax, %rcx
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -4116(%rbp)
jmp LBB0_42
LBB0_14:
jmp LBB0_15
LBB0_15: ## =>This Loop Header: Depth=1
## Child Loop BB0_18 Depth 2
## Child Loop BB0_24 Depth 3
cmpl $0, -4168(%rbp)
jl LBB0_17
## %bb.16: ## in Loop: Header=BB0_15 Depth=1
movl -4136(%rbp), %edi
movslq -4168(%rbp), %rsi
xorl %edx, %edx
callq _lseek
movl -4168(%rbp), %eax
movl %eax, -4156(%rbp)
LBB0_17: ## in Loop: Header=BB0_15 Depth=1
movl $0, -4160(%rbp)
movl $0, -4164(%rbp)
LBB0_18: ## Parent Loop BB0_15 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_24 Depth 3
movl $4096, -4144(%rbp) ## imm = 0x1000
cmpl $0, -4172(%rbp)
jle LBB0_21
## %bb.19: ## in Loop: Header=BB0_18 Depth=2
movl -4168(%rbp), %eax
addl -4172(%rbp), %eax
subl -4156(%rbp), %eax
cmpl -4144(%rbp), %eax
jge LBB0_21
## %bb.20: ## in Loop: Header=BB0_18 Depth=2
movl -4168(%rbp), %eax
addl -4172(%rbp), %eax
subl -4156(%rbp), %eax
movl %eax, -4144(%rbp)
LBB0_21: ## in Loop: Header=BB0_18 Depth=2
movl -4136(%rbp), %edi
leaq -4112(%rbp), %rsi
movslq -4144(%rbp), %rdx
callq _read
## kill: def $eax killed $eax killed $rax
movl %eax, -4140(%rbp)
cmpl $0, -4140(%rbp)
jne LBB0_23
## %bb.22: ## in Loop: Header=BB0_15 Depth=1
jmp LBB0_37
LBB0_23: ## in Loop: Header=BB0_18 Depth=2
movl $0, -4152(%rbp)
LBB0_24: ## Parent Loop BB0_15 Depth=1
## Parent Loop BB0_18 Depth=2
## => This Inner Loop Header: Depth=3
movl -4152(%rbp), %eax
cmpl -4140(%rbp), %eax
jge LBB0_32
## %bb.25: ## in Loop: Header=BB0_24 Depth=3
movl -4152(%rbp), %eax
andl $15, %eax
cmpl $0, %eax
jne LBB0_27
## %bb.26: ## in Loop: Header=BB0_24 Depth=3
movl -4156(%rbp), %esi
addl -4152(%rbp), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
LBB0_27: ## in Loop: Header=BB0_24 Depth=3
movslq -4152(%rbp), %rax
movzbl -4112(%rbp,%rax), %eax
addl -4164(%rbp), %eax
movl %eax, -4164(%rbp)
movslq -4152(%rbp), %rax
movzbl -4112(%rbp,%rax), %eax
addl -4160(%rbp), %eax
movl %eax, -4160(%rbp)
movslq -4152(%rbp), %rax
movzbl -4112(%rbp,%rax), %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movl -4152(%rbp), %eax
andl $15, %eax
cmpl $15, %eax
je LBB0_29
## %bb.28: ## in Loop: Header=BB0_24 Depth=3
movl -4152(%rbp), %eax
movl -4140(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jne LBB0_30
LBB0_29: ## in Loop: Header=BB0_24 Depth=3
movl -4164(%rbp), %esi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -4164(%rbp)
LBB0_30: ## in Loop: Header=BB0_24 Depth=3
jmp LBB0_31
LBB0_31: ## in Loop: Header=BB0_24 Depth=3
movl -4152(%rbp), %eax
addl $1, %eax
movl %eax, -4152(%rbp)
jmp LBB0_24
LBB0_32: ## in Loop: Header=BB0_18 Depth=2
cmpl $0, -4140(%rbp)
jge LBB0_34
## %bb.33:
movq -4128(%rbp), %rax
movq _optind@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -4216(%rbp) ## 8-byte Spill
movl -4156(%rbp), %eax
movl %eax, -4208(%rbp) ## 4-byte Spill
movl -4144(%rbp), %eax
movl %eax, -4204(%rbp) ## 4-byte Spill
callq ___error
movl (%rax), %edi
callq _strerror
movq -4216(%rbp), %rsi ## 8-byte Reload
movl -4208(%rbp), %edx ## 4-byte Reload
movl -4204(%rbp), %ecx ## 4-byte Reload
movq %rax, %r8
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -4116(%rbp)
jmp LBB0_42
LBB0_34: ## in Loop: Header=BB0_18 Depth=2
movl -4140(%rbp), %eax
addl -4156(%rbp), %eax
movl %eax, -4156(%rbp)
movl -4156(%rbp), %eax
movl -4168(%rbp), %ecx
addl -4172(%rbp), %ecx
cmpl %ecx, %eax
jne LBB0_36
## %bb.35: ## in Loop: Header=BB0_15 Depth=1
jmp LBB0_37
LBB0_36: ## in Loop: Header=BB0_18 Depth=2
jmp LBB0_18
LBB0_37: ## in Loop: Header=BB0_15 Depth=1
movl -4160(%rbp), %esi
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
cmpl $0, -4176(%rbp)
je LBB0_39
## %bb.38: ## in Loop: Header=BB0_15 Depth=1
movl -4176(%rbp), %edi
callq _sleep
LBB0_39: ## in Loop: Header=BB0_15 Depth=1
jmp LBB0_40
LBB0_40: ## in Loop: Header=BB0_15 Depth=1
cmpl $0, -4176(%rbp)
jne LBB0_15
## %bb.41:
movl $0, -4116(%rbp)
LBB0_42:
movl -4116(%rbp), %eax
movl %eax, -4220(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_44
## %bb.43:
movl -4220(%rbp), %eax ## 4-byte Reload
addq $4224, %rsp ## imm = 0x1080
popq %rbp
retq
LBB0_44:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "b:c:r:"
L_.str.1: ## @.str.1
.asciz "%s: invalid option -%c\n"
L_.str.2: ## @.str.2
.asciz "Usage: %s [-b base] [-c count] [-r delay] file\n"
L_.str.3: ## @.str.3
.asciz "could not open %s, %s\n"
L_.str.4: ## @.str.4
.asciz "%08x: "
L_.str.5: ## @.str.5
.asciz "%02x "
L_.str.6: ## @.str.6
.asciz "s %x\n"
L_.str.7: ## @.str.7
.asciz "Read error on %s, offset %d len %d, %s\n"
L_.str.8: ## @.str.8
.asciz "sum %x\n"
.subsections_via_symbols
| the_stack_data/151927.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "library module author description url"
.section __DATA,__data
.globl _variables ; @variables
.p2align 3
_variables:
.quad l_.str
.section __TEXT,__cstring,cstring_literals
l_.str.1: ; @.str.1
.asciz "boot halt grow_seq grow_rnd hit_seq hit_rnd miss_seq miss_rnd delete_seq delete_rnd replace_seq replace_rnd kbench"
.section __DATA,__data
.globl _functions ; @functions
.p2align 3
_functions:
.quad l_.str.1
.section __TEXT,__cstring,cstring_literals
l_.str.2: ; @.str.2
.asciz "klib"
.section __DATA,__data
.globl _library ; @library
.p2align 3
_library:
.quad l_.str.2
.section __TEXT,__cstring,cstring_literals
l_.str.3: ; @.str.3
.asciz "klib::khash++"
.section __DATA,__data
.globl _module ; @module
.p2align 3
_module:
.quad l_.str.3
.section __TEXT,__cstring,cstring_literals
l_.str.4: ; @.str.4
.asciz "Heng Li ([email protected])"
.section __DATA,__data
.globl _author ; @author
.p2align 3
_author:
.quad l_.str.4
.section __TEXT,__cstring,cstring_literals
l_.str.5: ; @.str.5
.asciz "Generic hash table based on double hashing"
.section __DATA,__data
.globl _description ; @description
.p2align 3
_description:
.quad l_.str.5
.section __TEXT,__cstring,cstring_literals
l_.str.6: ; @.str.6
.asciz "http://github.com/attractivechaos/klib"
.section __DATA,__data
.globl _url ; @url
.p2align 3
_url:
.quad l_.str.6
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "library module author description url"
.section __DATA,__data
.globl _variables ## @variables
.p2align 3
_variables:
.quad L_.str
.section __TEXT,__cstring,cstring_literals
L_.str.1: ## @.str.1
.asciz "boot halt grow_seq grow_rnd hit_seq hit_rnd miss_seq miss_rnd delete_seq delete_rnd replace_seq replace_rnd kbench"
.section __DATA,__data
.globl _functions ## @functions
.p2align 3
_functions:
.quad L_.str.1
.section __TEXT,__cstring,cstring_literals
L_.str.2: ## @.str.2
.asciz "klib"
.section __DATA,__data
.globl _library ## @library
.p2align 3
_library:
.quad L_.str.2
.section __TEXT,__cstring,cstring_literals
L_.str.3: ## @.str.3
.asciz "klib::khash++"
.section __DATA,__data
.globl _module ## @module
.p2align 3
_module:
.quad L_.str.3
.section __TEXT,__cstring,cstring_literals
L_.str.4: ## @.str.4
.asciz "Heng Li ([email protected])"
.section __DATA,__data
.globl _author ## @author
.p2align 3
_author:
.quad L_.str.4
.section __TEXT,__cstring,cstring_literals
L_.str.5: ## @.str.5
.asciz "Generic hash table based on double hashing"
.section __DATA,__data
.globl _description ## @description
.p2align 3
_description:
.quad L_.str.5
.section __TEXT,__cstring,cstring_literals
L_.str.6: ## @.str.6
.asciz "http://github.com/attractivechaos/klib"
.section __DATA,__data
.globl _url ## @url
.p2align 3
_url:
.quad L_.str.6
.subsections_via_symbols
| the_stack_data/95449437.c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.