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 _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]
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]
stur w8, [x29, #-12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
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
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #1
stur w8, [x29, #-12]
b LBB0_1
LBB0_4:
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 "%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 $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl -8(%rbp), %eax
movl %eax, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -12(%rbp)
jle LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $-1, %eax
movl %eax, -12(%rbp)
jmp LBB0_1
LBB0_4:
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 "%d\n"
.subsections_via_symbols
| the_stack_data/57950992.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
stur w8, [x29, #-8] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
bl _mystrlen
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
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _improvedstrlen
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldur w0, [x29, #-8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _mystrlen ; -- Begin function mystrlen
.p2align 2
_mystrlen: ; @mystrlen
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str wzr, [sp, #4]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
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 w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _improvedstrlen ; -- Begin function improvedstrlen
.p2align 2
_improvedstrlen: ; @improvedstrlen
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
str x8, [sp]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB2_1
LBB2_3:
ldr x8, [sp]
ldr x9, [sp, #8]
subs x8, x8, x9
mov x0, x8
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "mystrlen(\"hello, world\") = %d\n"
l_.str.1: ; @.str.1
.asciz "hello, world"
l_.str.2: ; @.str.2
.asciz "improvedstrlen(\"hello, world\") = %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 $16, %rsp
movl $0, -4(%rbp)
leaq L_.str.1(%rip), %rdi
callq _mystrlen
movl %eax, %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
callq _improvedstrlen
movl %eax, %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
.globl _mystrlen ## -- Begin function mystrlen
.p2align 4, 0x90
_mystrlen: ## @mystrlen
.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)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movq -8(%rbp), %rax
addq $1, %rax
movq %rax, -8(%rbp)
jmp LBB1_1
LBB1_4:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _improvedstrlen ## -- Begin function improvedstrlen
.p2align 4, 0x90
_improvedstrlen: ## @improvedstrlen
.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, -16(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB2_3
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB2_1
LBB2_3:
movq -16(%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 "mystrlen(\"hello, world\") = %d\n"
L_.str.1: ## @.str.1
.asciz "hello, world"
L_.str.2: ## @.str.2
.asciz "improvedstrlen(\"hello, world\") = %d\n"
.subsections_via_symbols
| the_stack_data/20449423.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
str w8, [sp, #32] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
mov w8, #25
stur w8, [x29, #-24]
mov w8, #9
stur w8, [x29, #-28]
mov w8, #2015
stur w8, [x29, #-20]
ldur w8, [x29, #-24]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-28]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr w0, [sp, #32] ; 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 "Today's date is %i/%i/%.2i\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 $25, -28(%rbp)
movl $9, -32(%rbp)
movl $2015, -24(%rbp) ## imm = 0x7DF
movl -28(%rbp), %esi
movl -32(%rbp), %edx
movl -24(%rbp), %ecx
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 "Today's date is %i/%i/%.2i\n"
.subsections_via_symbols
| the_stack_data/23620.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _simple_function ; -- Begin function simple_function
.p2align 2
_simple_function: ; @simple_function
.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]
mov w8, #1
stur w8, [x29, #-8]
stur w8, [x29, #-12]
ldur w8, [x29, #-8]
subs w8, w8, #1
str w8, [sp, #16]
b LBB0_1
LBB0_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, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-4]
; 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 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:
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 %d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _simple_function ## -- Begin function simple_function
.p2align 4, 0x90
_simple_function: ## @simple_function
.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 $1, -8(%rbp)
movl $1, -12(%rbp)
movl -8(%rbp), %eax
subl $1, %eax
movl %eax, -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
movl -16(%rbp), %esi
movl -4(%rbp), %edx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
## %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:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d %d"
.subsections_via_symbols
| the_stack_data/104293.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]
ldur w8, [x29, #-8]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-16]
ldr x8, [x8]
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
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
mov w0, #-1
bl _exit
LBB0_2:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
mov x1, #0
str x1, [sp, #16] ; 8-byte Folded Spill
bl _strtod
ldr x1, [sp, #16] ; 8-byte Folded Reload
stur d0, [x29, #-24]
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
mov w2, #10
bl _strtoul
str x0, [sp, #24]
str xzr, [sp, #32]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldur d0, [x29, #-24]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB0_3
LBB0_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 "usage: %s a n\n"
l_.str.1: ; @.str.1
.asciz " Generates the sequence a*u[n] where u[n]=1 for all n\n"
l_.str.2: ; @.str.2
.asciz " a = amplitude\n"
l_.str.3: ; @.str.3
.asciz " n = number of terms to generate\n"
l_.str.4: ; @.str.4
.asciz "%lf\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)
cmpl $3, -8(%rbp)
jge LBB0_2
## %bb.1:
movq -16(%rbp), %rax
movq (%rax), %rsi
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
callq _printf
## 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
callq _printf
movl $-1, %edi
callq _exit
LBB0_2:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _strtod
movsd %xmm0, -24(%rbp)
movq -16(%rbp), %rax
movq 16(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $10, %edx
callq _strtoul
movq %rax, -40(%rbp)
movq $0, -32(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
cmpq -40(%rbp), %rax
jae LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.4(%rip), %rdi
movb $1, %al
callq _printf
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB0_3
LBB0_6:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "usage: %s a n\n"
L_.str.1: ## @.str.1
.asciz " Generates the sequence a*u[n] where u[n]=1 for all n\n"
L_.str.2: ## @.str.2
.asciz " a = amplitude\n"
L_.str.3: ## @.str.3
.asciz " n = number of terms to generate\n"
L_.str.4: ## @.str.4
.asciz "%lf\n"
.subsections_via_symbols
| the_stack_data/7951319.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]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #12
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
stur wzr, [x29, #-8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
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
ldur w8, [x29, #-8]
subs w8, w8, #9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
b LBB0_6
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB0_1
LBB0_6:
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 "Type a positive value: "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "I must do this %d times\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
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -8(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -8(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
cmpl $9, -8(%rbp)
jne LBB0_4
## %bb.3:
jmp LBB0_6
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_6:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Type a positive value: "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "I must do this %d times\n"
.subsections_via_symbols
| the_stack_data/11075173.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _Swap ; -- Begin function Swap
.p2align 2
_Swap: ; @Swap
.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 w8, [x8]
str w8, [sp, #12]
ldr x8, [sp, #16]
ldr w8, [x8]
ldr x9, [sp, #24]
str w8, [x9]
ldr w8, [sp, #12]
ldr x9, [sp, #16]
str w8, [x9]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _QSort1 ; -- Begin function QSort1
.p2align 2
_QSort1: ; @QSort1
.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]
stur w2, [x29, #-16]
ldur w8, [x29, #-12]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_17
b LBB1_1
LBB1_1:
ldur w8, [x29, #-12]
stur w8, [x29, #-20]
ldur w8, [x29, #-16]
str w8, [sp, #24]
ldur x8, [x29, #-8]
ldursw x9, [x29, #-12]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #20]
b LBB1_2
LBB1_2: ; =>This Loop Header: Depth=1
; Child Loop BB1_4 Depth 2
; Child Loop BB1_9 Depth 2
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_16
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_2 Depth=1
b LBB1_4
LBB1_4: ; Parent Loop BB1_2 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ge
mov w9, #0
str w9, [sp, #16] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_4 Depth=2
ldur x8, [x29, #-8]
ldrsw x9, [sp, #24]
ldr w8, [x8, x9, lsl #2]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_4 Depth=2
ldr w8, [sp, #16] ; 4-byte Folded Reload
tbz w8, #0, LBB1_8
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_4 Depth=2
ldr w8, [sp, #24]
subs w8, w8, #1
str w8, [sp, #24]
b LBB1_4
LBB1_8: ; in Loop: Header=BB1_2 Depth=1
b LBB1_9
LBB1_9: ; Parent Loop BB1_2 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ge
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_11
b LBB1_10
LBB1_10: ; in Loop: Header=BB1_9 Depth=2
ldur x8, [x29, #-8]
ldursw x9, [x29, #-20]
ldr w8, [x8, x9, lsl #2]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, le
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_9 Depth=2
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB1_13
b LBB1_12
LBB1_12: ; in Loop: Header=BB1_9 Depth=2
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB1_9
LBB1_13: ; in Loop: Header=BB1_2 Depth=1
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_15
b LBB1_14
LBB1_14: ; in Loop: Header=BB1_2 Depth=1
ldur x8, [x29, #-8]
ldursw x9, [x29, #-20]
add x0, x8, x9, lsl #2
ldur x8, [x29, #-8]
ldrsw x9, [sp, #24]
add x1, x8, x9, lsl #2
bl _Swap
b LBB1_15
LBB1_15: ; in Loop: Header=BB1_2 Depth=1
b LBB1_2
LBB1_16:
ldur x8, [x29, #-8]
ldursw x9, [x29, #-12]
add x0, x8, x9, lsl #2
ldur x8, [x29, #-8]
ldursw x9, [x29, #-20]
add x1, x8, x9, lsl #2
bl _Swap
ldur x0, [x29, #-8]
ldur w1, [x29, #-12]
ldur w8, [x29, #-20]
subs w2, w8, #1
bl _QSort1
ldur x0, [x29, #-8]
ldr w8, [sp, #24]
add w1, w8, #1
ldur w2, [x29, #-16]
bl _QSort1
b LBB1_17
LBB1_17:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _QuickSort1 ; -- Begin function QuickSort1
.p2align 2
_QuickSort1: ; @QuickSort1
.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 x0, [sp, #8]
ldr w8, [sp, #4]
subs w2, w8, #1
mov w1, #0
bl _QSort1
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _QSort2 ; -- Begin function QSort2
.p2align 2
_QSort2: ; @QSort2
.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]
stur w2, [x29, #-16]
ldur w8, [x29, #-12]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_19
b LBB3_1
LBB3_1:
ldur w8, [x29, #-12]
stur w8, [x29, #-20]
ldur w8, [x29, #-16]
str w8, [sp, #24]
ldur x8, [x29, #-8]
ldursw x9, [x29, #-12]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #20]
b LBB3_2
LBB3_2: ; =>This Loop Header: Depth=1
; Child Loop BB3_4 Depth 2
; Child Loop BB3_11 Depth 2
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_18
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_2 Depth=1
b LBB3_4
LBB3_4: ; Parent Loop BB3_2 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ge
mov w9, #0
str w9, [sp, #16] ; 4-byte Folded Spill
tbnz w8, #0, LBB3_6
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_4 Depth=2
ldur x8, [x29, #-8]
ldrsw x9, [sp, #24]
ldr w8, [x8, x9, lsl #2]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_4 Depth=2
ldr w8, [sp, #16] ; 4-byte Folded Reload
tbz w8, #0, LBB3_8
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_4 Depth=2
ldr w8, [sp, #24]
subs w8, w8, #1
str w8, [sp, #24]
b LBB3_4
LBB3_8: ; in Loop: Header=BB3_2 Depth=1
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_10
b LBB3_9
LBB3_9: ; in Loop: Header=BB3_2 Depth=1
ldur x8, [x29, #-8]
ldrsw x9, [sp, #24]
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-8]
ldursw x10, [x29, #-20]
str w8, [x9, x10, lsl #2]
b LBB3_10
LBB3_10: ; in Loop: Header=BB3_2 Depth=1
b LBB3_11
LBB3_11: ; Parent Loop BB3_2 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ge
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB3_13
b LBB3_12
LBB3_12: ; in Loop: Header=BB3_11 Depth=2
ldur x8, [x29, #-8]
ldursw x9, [x29, #-20]
ldr w8, [x8, x9, lsl #2]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, le
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB3_13
LBB3_13: ; in Loop: Header=BB3_11 Depth=2
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB3_15
b LBB3_14
LBB3_14: ; in Loop: Header=BB3_11 Depth=2
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB3_11
LBB3_15: ; in Loop: Header=BB3_2 Depth=1
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_17
b LBB3_16
LBB3_16: ; in Loop: Header=BB3_2 Depth=1
ldur x8, [x29, #-8]
ldursw x9, [x29, #-20]
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-8]
ldrsw x10, [sp, #24]
str w8, [x9, x10, lsl #2]
b LBB3_17
LBB3_17: ; in Loop: Header=BB3_2 Depth=1
b LBB3_2
LBB3_18:
ldr w8, [sp, #20]
ldur x9, [x29, #-8]
ldursw x10, [x29, #-20]
str w8, [x9, x10, lsl #2]
ldur x0, [x29, #-8]
ldur w1, [x29, #-12]
ldur w8, [x29, #-20]
subs w2, w8, #1
bl _QSort2
ldur x0, [x29, #-8]
ldur w8, [x29, #-20]
add w1, w8, #1
ldur w2, [x29, #-16]
bl _QSort2
b LBB3_19
LBB3_19:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _QuickSort2 ; -- Begin function QuickSort2
.p2align 2
_QuickSort2: ; @QuickSort2
.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 x0, [sp, #8]
ldr w8, [sp, #4]
subs w2, w8, #1
mov w1, #0
bl _QSort2
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, #64
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-12]
mov w8, #5
stur w8, [x29, #-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, #-56] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-56] ; 8-byte Folded Reload
mov x9, sp
subs x9, x9, x10
mov sp, x9
stur x9, [x29, #-48] ; 8-byte Folded Spill
stur x8, [x29, #-32]
stur wzr, [x29, #-36]
b LBB5_1
LBB5_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-36]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_4
b LBB5_2
LBB5_2: ; in Loop: Header=BB5_1 Depth=1
ldur x8, [x29, #-48] ; 8-byte Folded Reload
ldursw x9, [x29, #-36]
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 LBB5_3
LBB5_3: ; in Loop: Header=BB5_1 Depth=1
ldur w8, [x29, #-36]
add w8, w8, #1
stur w8, [x29, #-36]
b LBB5_1
LBB5_4:
ldur x0, [x29, #-48] ; 8-byte Folded Reload
ldur w1, [x29, #-16]
bl _QuickSort2
stur wzr, [x29, #-36]
b LBB5_5
LBB5_5: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-36]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_8
b LBB5_6
LBB5_6: ; in Loop: Header=BB5_5 Depth=1
ldur x8, [x29, #-48] ; 8-byte Folded Reload
ldursw x9, [x29, #-36]
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 LBB5_7
LBB5_7: ; in Loop: Header=BB5_5 Depth=1
ldur w8, [x29, #-36]
add w8, w8, #1
stur w8, [x29, #-36]
b LBB5_5
LBB5_8:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
stur wzr, [x29, #-12]
ldur x8, [x29, #-24]
mov sp, x8
ldur w8, [x29, #-12]
stur w8, [x29, #-60] ; 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, LBB5_10
b LBB5_9
LBB5_9:
bl ___stack_chk_fail
LBB5_10:
ldur w0, [x29, #-60] ; 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 _Swap ## -- Begin function Swap
.p2align 4, 0x90
_Swap: ## @Swap
.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
movl (%rax), %eax
movl %eax, -20(%rbp)
movq -16(%rbp), %rax
movl (%rax), %ecx
movq -8(%rbp), %rax
movl %ecx, (%rax)
movl -20(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _QSort1 ## -- Begin function QSort1
.p2align 4, 0x90
_QSort1: ## @QSort1
.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_17
## %bb.1:
movl -12(%rbp), %eax
movl %eax, -20(%rbp)
movl -16(%rbp), %eax
movl %eax, -24(%rbp)
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -28(%rbp)
LBB1_2: ## =>This Loop Header: Depth=1
## Child Loop BB1_4 Depth 2
## Child Loop BB1_9 Depth 2
movl -20(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB1_16
## %bb.3: ## in Loop: Header=BB1_2 Depth=1
jmp LBB1_4
LBB1_4: ## Parent Loop BB1_2 Depth=1
## => This Inner Loop Header: Depth=2
movl -20(%rbp), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl -24(%rbp), %ecx
movb %al, -29(%rbp) ## 1-byte Spill
jge LBB1_6
## %bb.5: ## in Loop: Header=BB1_4 Depth=2
movq -8(%rbp), %rax
movslq -24(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -28(%rbp), %eax
setge %al
movb %al, -29(%rbp) ## 1-byte Spill
LBB1_6: ## in Loop: Header=BB1_4 Depth=2
movb -29(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB1_7
jmp LBB1_8
LBB1_7: ## in Loop: Header=BB1_4 Depth=2
movl -24(%rbp), %eax
addl $-1, %eax
movl %eax, -24(%rbp)
jmp LBB1_4
LBB1_8: ## in Loop: Header=BB1_2 Depth=1
jmp LBB1_9
LBB1_9: ## Parent Loop BB1_2 Depth=1
## => This Inner Loop Header: Depth=2
movl -20(%rbp), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl -24(%rbp), %ecx
movb %al, -30(%rbp) ## 1-byte Spill
jge LBB1_11
## %bb.10: ## in Loop: Header=BB1_9 Depth=2
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -28(%rbp), %eax
setle %al
movb %al, -30(%rbp) ## 1-byte Spill
LBB1_11: ## in Loop: Header=BB1_9 Depth=2
movb -30(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB1_12
jmp LBB1_13
LBB1_12: ## in Loop: Header=BB1_9 Depth=2
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB1_9
LBB1_13: ## in Loop: Header=BB1_2 Depth=1
movl -20(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB1_15
## %bb.14: ## in Loop: Header=BB1_2 Depth=1
movq -8(%rbp), %rdi
movslq -20(%rbp), %rax
shlq $2, %rax
addq %rax, %rdi
movq -8(%rbp), %rsi
movslq -24(%rbp), %rax
shlq $2, %rax
addq %rax, %rsi
callq _Swap
LBB1_15: ## in Loop: Header=BB1_2 Depth=1
jmp LBB1_2
LBB1_16:
movq -8(%rbp), %rdi
movslq -12(%rbp), %rax
shlq $2, %rax
addq %rax, %rdi
movq -8(%rbp), %rsi
movslq -20(%rbp), %rax
shlq $2, %rax
addq %rax, %rsi
callq _Swap
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
movl -20(%rbp), %edx
subl $1, %edx
callq _QSort1
movq -8(%rbp), %rdi
movl -24(%rbp), %esi
addl $1, %esi
movl -16(%rbp), %edx
callq _QSort1
LBB1_17:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _QuickSort1 ## -- Begin function QuickSort1
.p2align 4, 0x90
_QuickSort1: ## @QuickSort1
.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), %rdi
movl -12(%rbp), %edx
subl $1, %edx
xorl %esi, %esi
callq _QSort1
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _QSort2 ## -- Begin function QSort2
.p2align 4, 0x90
_QSort2: ## @QSort2
.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 LBB3_19
## %bb.1:
movl -12(%rbp), %eax
movl %eax, -20(%rbp)
movl -16(%rbp), %eax
movl %eax, -24(%rbp)
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -28(%rbp)
LBB3_2: ## =>This Loop Header: Depth=1
## Child Loop BB3_4 Depth 2
## Child Loop BB3_11 Depth 2
movl -20(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB3_18
## %bb.3: ## in Loop: Header=BB3_2 Depth=1
jmp LBB3_4
LBB3_4: ## Parent Loop BB3_2 Depth=1
## => This Inner Loop Header: Depth=2
movl -20(%rbp), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl -24(%rbp), %ecx
movb %al, -29(%rbp) ## 1-byte Spill
jge LBB3_6
## %bb.5: ## in Loop: Header=BB3_4 Depth=2
movq -8(%rbp), %rax
movslq -24(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -28(%rbp), %eax
setge %al
movb %al, -29(%rbp) ## 1-byte Spill
LBB3_6: ## in Loop: Header=BB3_4 Depth=2
movb -29(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB3_7
jmp LBB3_8
LBB3_7: ## in Loop: Header=BB3_4 Depth=2
movl -24(%rbp), %eax
addl $-1, %eax
movl %eax, -24(%rbp)
jmp LBB3_4
LBB3_8: ## in Loop: Header=BB3_2 Depth=1
movl -20(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB3_10
## %bb.9: ## in Loop: Header=BB3_2 Depth=1
movq -8(%rbp), %rax
movslq -24(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
LBB3_10: ## in Loop: Header=BB3_2 Depth=1
jmp LBB3_11
LBB3_11: ## Parent Loop BB3_2 Depth=1
## => This Inner Loop Header: Depth=2
movl -20(%rbp), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl -24(%rbp), %ecx
movb %al, -30(%rbp) ## 1-byte Spill
jge LBB3_13
## %bb.12: ## in Loop: Header=BB3_11 Depth=2
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -28(%rbp), %eax
setle %al
movb %al, -30(%rbp) ## 1-byte Spill
LBB3_13: ## in Loop: Header=BB3_11 Depth=2
movb -30(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB3_14
jmp LBB3_15
LBB3_14: ## in Loop: Header=BB3_11 Depth=2
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB3_11
LBB3_15: ## in Loop: Header=BB3_2 Depth=1
movl -20(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB3_17
## %bb.16: ## in Loop: Header=BB3_2 Depth=1
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -8(%rbp), %rax
movslq -24(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
LBB3_17: ## in Loop: Header=BB3_2 Depth=1
jmp LBB3_2
LBB3_18:
movl -28(%rbp), %edx
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
movl -20(%rbp), %edx
subl $1, %edx
callq _QSort2
movq -8(%rbp), %rdi
movl -20(%rbp), %esi
addl $1, %esi
movl -16(%rbp), %edx
callq _QSort2
LBB3_19:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _QuickSort2 ## -- Begin function QuickSort2
.p2align 4, 0x90
_QuickSort2: ## @QuickSort2
.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), %rdi
movl -12(%rbp), %edx
subl $1, %edx
xorl %esi, %esi
callq _QSort2
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 $64, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -12(%rbp)
movl $5, -16(%rbp)
movl -16(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -56(%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 -56(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -48(%rbp) ## 8-byte Spill
movq %rax, -32(%rbp)
movl $0, -36(%rbp)
LBB5_1: ## =>This Inner Loop Header: Depth=1
movl -36(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB5_4
## %bb.2: ## in Loop: Header=BB5_1 Depth=1
movq -48(%rbp), %rsi ## 8-byte Reload
movslq -36(%rbp), %rax
shlq $2, %rax
addq %rax, %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.3: ## in Loop: Header=BB5_1 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB5_1
LBB5_4:
movq -48(%rbp), %rdi ## 8-byte Reload
movl -16(%rbp), %esi
callq _QuickSort2
movl $0, -36(%rbp)
LBB5_5: ## =>This Inner Loop Header: Depth=1
movl -36(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB5_8
## %bb.6: ## in Loop: Header=BB5_5 Depth=1
movq -48(%rbp), %rax ## 8-byte Reload
movslq -36(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.7: ## in Loop: Header=BB5_5 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB5_5
LBB5_8:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -12(%rbp)
movq -24(%rbp), %rax
movq %rax, %rsp
movl -12(%rbp), %eax
movl %eax, -60(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB5_10
## %bb.9:
movl -60(%rbp), %eax ## 4-byte Reload
movq %rbp, %rsp
popq %rbp
retq
LBB5_10:
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/136764.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _baz ; -- Begin function baz
.p2align 2
_baz: ; @baz
.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 x0, [sp, #8]
ldr w1, [sp, #4]
bl _foo
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _foo ; -- Begin function foo
.p2align 2
_foo: ; @foo
.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 w8, [sp, #4]
ldr x9, [sp, #8]
ldr w9, [x9, #8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr x0, [sp, #8]
ldr w8, [sp, #4]
add w1, w8, #1
bl _foo
b LBB1_2
LBB1_2:
ldr s0, [sp, #4]
scvtf s0, s0
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsw x9, [sp, #4]
str s0, [x8, x9, lsl #2]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _bar ; -- Begin function bar
.p2align 2
_bar: ; @bar
.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 x1, [sp]
ldr x0, [sp, #8]
mov w1, #0
bl _baz
ldr x9, [sp]
mov w8, #10
str w8, [x9, #8]
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 _baz ## -- Begin function baz
.p2align 4, 0x90
_baz: ## @baz
.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), %rdi
movl -12(%rbp), %esi
callq _foo
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.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
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl -12(%rbp), %eax
movq -8(%rbp), %rcx
cmpl 8(%rcx), %eax
jge LBB1_2
## %bb.1:
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
addl $1, %esi
callq _foo
LBB1_2:
cvtsi2ssl -12(%rbp), %xmm0
movq -8(%rbp), %rax
movq (%rax), %rax
movslq -12(%rbp), %rcx
movss %xmm0, (%rax,%rcx,4)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _bar ## -- Begin function bar
.p2align 4, 0x90
_bar: ## @bar
.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)
movq -8(%rbp), %rdi
xorl %esi, %esi
callq _baz
movq -16(%rbp), %rax
movl $10, 8(%rax)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/51857.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, #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, #36]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #28
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, #32]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #32]
ldr w9, [sp, #28]
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, #32]
add x8, sp, #40
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 w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_1
LBB0_4:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #24
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
str wzr, [sp, #20]
ldr w8, [sp, #28]
subs w8, w8, #1
str w8, [sp, #16]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB0_13
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #20]
ldr w9, [sp, #16]
add w8, w8, w9
mov w9, #2
sdiv w8, w8, w9
str w8, [sp, #12]
ldr w8, [sp, #24]
ldrsw x10, [sp, #12]
add x9, sp, #40
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
b LBB0_13
LBB0_8: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #24]
ldrsw x10, [sp, #12]
add x9, sp, #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_5 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_11
LBB0_10: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #1
str w8, [sp, #16]
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_5 Depth=1
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_5 Depth=1
b LBB0_5
LBB0_13:
ldr w8, [sp, #24]
ldrsw x10, [sp, #12]
add x9, sp, #40
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
ldr w8, [sp, #12]
add w10, w8, #1
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_16
LBB0_15:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB0_16
LBB0_16:
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_18
b LBB0_17
LBB0_17:
bl ___stack_chk_fail
LBB0_18:
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 "\n Enter the size of the array :"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Enter the array elements in ascending order"
l_.str.3: ; @.str.3
.asciz "Enter the key element\n"
l_.str.4: ; @.str.4
.asciz "The key element is found at location %d"
l_.str.5: ; @.str.5
.asciz "the key element is not found"
.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 $128, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -100(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -108(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -104(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -104(%rbp), %eax
cmpl -108(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -104(%rbp), %rax
leaq -96(%rbp), %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
movl -104(%rbp), %eax
addl $1, %eax
movl %eax, -104(%rbp)
jmp LBB0_1
LBB0_4:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -112(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -116(%rbp)
movl -108(%rbp), %eax
subl $1, %eax
movl %eax, -120(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movl -120(%rbp), %eax
cmpl -116(%rbp), %eax
jl LBB0_13
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl -116(%rbp), %eax
addl -120(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
movl %eax, -124(%rbp)
movl -112(%rbp), %eax
movslq -124(%rbp), %rcx
cmpl -96(%rbp,%rcx,4), %eax
jne LBB0_8
## %bb.7:
jmp LBB0_13
LBB0_8: ## in Loop: Header=BB0_5 Depth=1
movl -112(%rbp), %eax
movslq -124(%rbp), %rcx
cmpl -96(%rbp,%rcx,4), %eax
jle LBB0_10
## %bb.9: ## in Loop: Header=BB0_5 Depth=1
movl -124(%rbp), %eax
addl $1, %eax
movl %eax, -116(%rbp)
jmp LBB0_11
LBB0_10: ## in Loop: Header=BB0_5 Depth=1
movl -124(%rbp), %eax
subl $1, %eax
movl %eax, -120(%rbp)
LBB0_11: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_12
LBB0_12: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_5
LBB0_13:
movl -112(%rbp), %eax
movslq -124(%rbp), %rcx
cmpl -96(%rbp,%rcx,4), %eax
jne LBB0_15
## %bb.14:
movl -124(%rbp), %esi
addl $1, %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_16
LBB0_15:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
LBB0_16:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_18
## %bb.17:
xorl %eax, %eax
addq $128, %rsp
popq %rbp
retq
LBB0_18:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\n Enter the size of the array :"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Enter the array elements in ascending order"
L_.str.3: ## @.str.3
.asciz "Enter the key element\n"
L_.str.4: ## @.str.4
.asciz "The key element is found at location %d"
L_.str.5: ## @.str.5
.asciz "the key element is not found"
.subsections_via_symbols
| the_stack_data/154831366.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, #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
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
mov w8, #10
str w8, [sp, #100]
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, #112] ; 16-byte Folded Reload
add sp, sp, #128
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 $112, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $10, -16(%rbp)
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 $112, %rsp
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/73809.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 w2, #0
stur wzr, [x29, #-4]
add x8, sp, #7
mov w9, #1
strb w9, [sp, #7]
add x0, x8, #1
mov x1, #0
mov x3, #4
adrp x4, l_.str@PAGE
add x4, x4, l_.str@PAGEOFF
bl ___snprintf_chk
ldrsb w8, [sp, #7]
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #41
stur w8, [x29, #-4]
b LBB0_3
LBB0_2:
stur wzr, [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
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "foo"
.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)
movb $1, -9(%rbp)
leaq -9(%rbp), %rdi
addq $1, %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
movl $4, %ecx
leaq L_.str(%rip), %r8
movb $0, %al
callq ___snprintf_chk
movb -9(%rbp), %al
movsbl %al, %eax
cmpl $1, %eax
je LBB0_2
## %bb.1:
movl $41, -4(%rbp)
jmp LBB0_3
LBB0_2:
movl $0, -4(%rbp)
LBB0_3:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "foo"
.subsections_via_symbols
| the_stack_data/168893786.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, #8] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
str x1, [sp, #16]
mov w8, #42498
movk w8, #60311, lsl #16
str w8, [sp, #12]
ldr w0, [sp, #12]
bl _printnumber
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _printnumber ; -- Begin function printnumber
.p2align 2
_printnumber: ; @printnumber
.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, ge
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
mov w0, #45
bl _putchar
ldur w9, [x29, #-4]
mov w8, #0
subs w8, w8, w9
stur w8, [x29, #-4]
b LBB1_2
LBB1_2:
ldur w8, [x29, #-4]
mov w9, #10
sdiv w8, w8, w9
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
ldur w8, [x29, #-4]
mov w9, #10
sdiv w0, w8, w9
bl _printnumber
b LBB1_4
LBB1_4:
ldur w8, [x29, #-4]
mov w10, #10
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
add w0, w8, #48
bl _putchar
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 $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $-342383102, -20(%rbp) ## imm = 0xEB97A602
movl -20(%rbp), %edi
callq _printnumber
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _printnumber ## -- Begin function printnumber
.p2align 4, 0x90
_printnumber: ## @printnumber
.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)
jge LBB1_2
## %bb.1:
movl $45, %edi
callq _putchar
xorl %eax, %eax
subl -4(%rbp), %eax
movl %eax, -4(%rbp)
LBB1_2:
movl -4(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
cmpl $0, %eax
je LBB1_4
## %bb.3:
movl -4(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, %edi
callq _printnumber
LBB1_4:
movl -4(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %edx, %edi
addl $48, %edi
callq _putchar
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/109283.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 w8, #0
str w8, [sp, #24] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@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, #12
str x8, [x9]
bl _scanf
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #16
str x8, [x9]
bl _scanf
ldur s1, [x29, #-12]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
fmov d1, #2.00000000
bl _pow
ldur w9, [x29, #-8]
mov w8, #4
mul w8, w8, w9
ldur w9, [x29, #-16]
mul w8, w8, w9
scvtf d1, w8
fsub d0, d0, d1
fcvt s0, d0
stur s0, [x29, #-20]
ldur s0, [x29, #-20]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr w0, [sp, #24] ; 4-byte Folded Reload
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 "O VALOR DE DELTA E = %0.2f\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 $32, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str(%rip), %rdi
leaq -16(%rbp), %rsi
movb $0, %al
callq _scanf
cvtsi2sdl -12(%rbp), %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
callq _pow
movl -8(%rbp), %eax
shll $2, %eax
imull -16(%rbp), %eax
cvtsi2sd %eax, %xmm1
subsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -20(%rbp)
movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.1(%rip), %rdi
movb $1, %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 "O VALOR DE DELTA E = %0.2f\n"
.subsections_via_symbols
| the_stack_data/211081040.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 0x400921f9f01b866e ; double 3.1415899999999999
lCPI0_1:
.quad 0x400176696e2db012 ; double 2.1828182800000002
.section __TEXT,__text,regular,pure_instructions
.globl _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 w8, #0
str w8, [sp, #20] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov x8, sp
mov x9, #42
str x9, [x8]
adrp x9, lCPI0_1@PAGE
ldr d0, [x9, lCPI0_1@PAGEOFF]
str d0, [x8, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
scvtf d0, w0
stur d0, [x29, #-16]
mov x8, sp
mov x9, #1337
str x9, [x8]
adrp x9, lCPI0_0@PAGE
ldr d0, [x9, lCPI0_0@PAGEOFF]
str d0, [x8, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
; implicit-def: $x8
mov x8, x0
sxtw x8, w8
str x8, [sp, #24]
ldur d0, [x29, #-16]
ldr x8, [sp, #24]
mov x9, sp
str d0, [x9]
str x8, [x9, #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 _puts
ldr w0, [sp, #20] ; 4-byte Folded Reload
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 "some numbers: %d %f\n"
l_.str.1: ; @.str.1
.asciz "some more: %lld %lf\n"
l_.str.2: ; @.str.2
.asciz "counts: %lld %lf\n"
l_.str.3: ; @.str.3
.asciz "success"
.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 0x400921f9f01b866e ## double 3.1415899999999999
LCPI0_1:
.quad 0x400176696e2db012 ## double 2.1828182800000002
.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
movl $42, %esi
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
cvtsi2sd %eax, %xmm0
movsd %xmm0, -16(%rbp)
leaq L_.str.1(%rip), %rdi
movl $1337, %esi ## imm = 0x539
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq _printf
cltq
movq %rax, -24(%rbp)
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -24(%rbp), %rsi
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
leaq L_.str.3(%rip), %rdi
callq _puts
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "some numbers: %d %f\n"
L_.str.1: ## @.str.1
.asciz "some more: %lld %lf\n"
L_.str.2: ## @.str.2
.asciz "counts: %lld %lf\n"
L_.str.3: ## @.str.3
.asciz "success"
.subsections_via_symbols
| the_stack_data/161081823.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.\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
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.\n"
.subsections_via_symbols
| the_stack_data/11075120.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 w8, #1
stur w8, [x29, #-16]
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, #24] ; 8-byte Folded Spill
bl _scanf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x0, [sp, #24] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #12
str x8, [x9]
bl _scanf
ldur w9, [x29, #-8]
; 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 LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-16]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-16]
; implicit-def: $x11
mov x11, x8
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-16]
ldur w10, [x29, #-8]
mul w10, w9, w10
mov x9, sp
str x11, [x9]
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #16]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB0_1
LBB0_3:
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 "Enter n\n"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Enter m\n"
l_.str.3: ; @.str.3
.asciz "The multiplication table of %d is\n"
l_.str.4: ; @.str.4
.asciz "%d*%d=%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 $16, %rsp
movl $0, -4(%rbp)
movl $1, -16(%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), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jg LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %esi
movl -8(%rbp), %edx
movl -16(%rbp), %ecx
imull -8(%rbp), %ecx
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_1
LBB0_3:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter n\n"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Enter m\n"
L_.str.3: ## @.str.3
.asciz "The multiplication table of %d is\n"
L_.str.4: ## @.str.4
.asciz "%d*%d=%d\n"
.subsections_via_symbols
| the_stack_data/755074.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
mov w1, #5
bl _pr_limits
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
mov w1, #4
bl _pr_limits
ldr w1, [sp, #8] ; 4-byte Folded Reload
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _pr_limits
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
mov w1, #2
bl _pr_limits
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
mov w1, #1
bl _pr_limits
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
mov w1, #6
bl _pr_limits
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
mov w1, #8
bl _pr_limits
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
mov w1, #7
bl _pr_limits
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
mov w1, #3
bl _pr_limits
ldr w0, [sp, #8] ; 4-byte Folded Reload
bl _exit
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function pr_limits
_pr_limits: ; @pr_limits
.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 w0, [x29, #-12]
add x1, sp, #16
bl _getrlimit
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldur x8, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.9@PAGE
add x1, x1, l_.str.9@PAGEOFF
bl _fprintf
b LBB1_2
LBB1_2:
ldur x8, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
ldr x8, [sp, #16]
mov x9, #9223372036854775807
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
b LBB1_5
LBB1_4:
ldr x8, [sp, #16]
str x8, [sp, #8]
ldr x8, [sp, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
b LBB1_5
LBB1_5:
ldr x8, [sp, #24]
mov x9, #9223372036854775807
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB1_7
b LBB1_6
LBB1_6:
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
b LBB1_8
LBB1_7:
ldr x8, [sp, #24]
str x8, [sp, #8]
ldr x8, [sp, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
b LBB1_8
LBB1_8:
mov w0, #10
bl _putchar
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 "RLIMIT_AS"
l_.str.1: ; @.str.1
.asciz "RLIMIT_CORE"
l_.str.2: ; @.str.2
.asciz "RLIMIT_CPU"
l_.str.3: ; @.str.3
.asciz "RLIMIT_DATA"
l_.str.4: ; @.str.4
.asciz "RLIMIT_FSIZE"
l_.str.5: ; @.str.5
.asciz "RLIMIT_MEMLOCK"
l_.str.6: ; @.str.6
.asciz "RLIMIT_NOFILE"
l_.str.7: ; @.str.7
.asciz "RLIMIT_NPROC"
l_.str.8: ; @.str.8
.asciz "RLIMIT_STACK"
l_.str.9: ; @.str.9
.asciz "getrlimit error for %s"
l_.str.10: ; @.str.10
.asciz "%-14s "
l_.str.11: ; @.str.11
.asciz "(infinite) "
l_.str.12: ; @.str.12
.asciz "%10lld "
l_.str.13: ; @.str.13
.asciz "(infinite)"
l_.str.14: ; @.str.14
.asciz "%10lld"
.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
movl $5, %esi
callq _pr_limits
leaq L_.str.1(%rip), %rdi
movl $4, %esi
callq _pr_limits
leaq L_.str.2(%rip), %rdi
xorl %esi, %esi
movl %esi, -8(%rbp) ## 4-byte Spill
callq _pr_limits
leaq L_.str.3(%rip), %rdi
movl $2, %esi
callq _pr_limits
leaq L_.str.4(%rip), %rdi
movl $1, %esi
callq _pr_limits
leaq L_.str.5(%rip), %rdi
movl $6, %esi
callq _pr_limits
leaq L_.str.6(%rip), %rdi
movl $8, %esi
callq _pr_limits
leaq L_.str.7(%rip), %rdi
movl $7, %esi
callq _pr_limits
leaq L_.str.8(%rip), %rdi
movl $3, %esi
callq _pr_limits
movl -8(%rbp), %edi ## 4-byte Reload
callq _exit
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function pr_limits
_pr_limits: ## @pr_limits
.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 %esi, -12(%rbp)
movl -12(%rbp), %edi
leaq -32(%rbp), %rsi
callq _getrlimit
cmpl $0, %eax
jge LBB1_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -8(%rbp), %rdx
leaq L_.str.9(%rip), %rsi
movb $0, %al
callq _fprintf
LBB1_2:
movq -8(%rbp), %rsi
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movabsq $9223372036854775807, %rax ## imm = 0x7FFFFFFFFFFFFFFF
cmpq %rax, -32(%rbp)
jne LBB1_4
## %bb.3:
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB1_5
LBB1_4:
movq -32(%rbp), %rax
movq %rax, -40(%rbp)
movq -40(%rbp), %rsi
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
LBB1_5:
movabsq $9223372036854775807, %rax ## imm = 0x7FFFFFFFFFFFFFFF
cmpq %rax, -24(%rbp)
jne LBB1_7
## %bb.6:
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB1_8
LBB1_7:
movq -24(%rbp), %rax
movq %rax, -40(%rbp)
movq -40(%rbp), %rsi
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
LBB1_8:
movl $10, %edi
callq _putchar
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "RLIMIT_AS"
L_.str.1: ## @.str.1
.asciz "RLIMIT_CORE"
L_.str.2: ## @.str.2
.asciz "RLIMIT_CPU"
L_.str.3: ## @.str.3
.asciz "RLIMIT_DATA"
L_.str.4: ## @.str.4
.asciz "RLIMIT_FSIZE"
L_.str.5: ## @.str.5
.asciz "RLIMIT_MEMLOCK"
L_.str.6: ## @.str.6
.asciz "RLIMIT_NOFILE"
L_.str.7: ## @.str.7
.asciz "RLIMIT_NPROC"
L_.str.8: ## @.str.8
.asciz "RLIMIT_STACK"
L_.str.9: ## @.str.9
.asciz "getrlimit error for %s"
L_.str.10: ## @.str.10
.asciz "%-14s "
L_.str.11: ## @.str.11
.asciz "(infinite) "
L_.str.12: ## @.str.12
.asciz "%10lld "
L_.str.13: ## @.str.13
.asciz "(infinite)"
L_.str.14: ## @.str.14
.asciz "%10lld"
.subsections_via_symbols
| the_stack_data/578233.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lrintl ; -- Begin function lrintl
.p2align 2
_lrintl: ; @lrintl
.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 d0, [x29, #-8]
add x0, sp, #8
bl _feholdexcept
ldur d0, [x29, #-8]
frintx d0, d0
fcvtzs x8, d0
str x8, [sp]
mov w0, #1
bl _fetestexcept
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w0, #16
bl _feclearexcept
b LBB0_2
LBB0_2:
add x0, sp, #8
bl _feupdateenv
ldr x0, [sp]
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 _lrintl ## -- Begin function lrintl
.p2align 4, 0x90
_lrintl: ## @lrintl
.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
fldt 16(%rbp)
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
fstpt -48(%rbp)
leaq -24(%rbp), %rdi
callq _feholdexcept
fldt -48(%rbp)
movq %rsp, %rax
fstpt (%rax)
callq _rintl
fld %st(0)
fstp %st(0)
fisttpll -64(%rbp)
movq -64(%rbp), %rax
movq %rax, -56(%rbp)
movl $1, %edi
callq _fetestexcept
cmpl $0, %eax
je LBB0_2
## %bb.1:
movl $32, %edi
callq _feclearexcept
LBB0_2:
leaq -24(%rbp), %rdi
callq _feupdateenv
movq -56(%rbp), %rax
movq %rax, -72(%rbp) ## 8-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_4
## %bb.3:
movq -72(%rbp), %rax ## 8-byte Reload
addq $96, %rsp
popq %rbp
retq
LBB0_4:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/182952740.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
mov x8, x0
mov w0, #0
str wzr, [sp, #12]
str w8, [sp, #8]
str x1, [sp]
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
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/51856.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sync ; -- Begin function sync
.p2align 2
_sync: ; @sync
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sync ## -- Begin function sync
.p2align 4, 0x90
_sync: ## @sync
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/231393252.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, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _getenv
str x0, [sp, #16]
ldr x8, [sp, #16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr w0, [sp, #12] ; 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 "HOSTNAME"
l_.str.1: ; @.str.1
.asciz "*p = %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 $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
callq _getenv
movq %rax, -16(%rbp)
movq -16(%rbp), %rsi
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 "HOSTNAME"
L_.str.1: ## @.str.1
.asciz "*p = %s\n"
.subsections_via_symbols
| the_stack_data/225143745.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.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, #24]
str w1, [sp, #20]
mov w8, #1
str w8, [sp, #16]
ldr w8, [sp, #24]
str w8, [sp, #12]
ldr w8, [sp, #24]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w9, [sp, #16]
mov w8, #0
subs w8, w8, w9
str w8, [sp, #16]
ldr w8, [sp, #12]
mvn w8, w8
add w8, w8, #1
str w8, [sp, #12]
b LBB0_2
LBB0_2:
ldr w8, [sp, #20]
str w8, [sp, #8]
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr w9, [sp, #16]
mov w8, #0
subs w8, w8, w9
str w8, [sp, #16]
ldr w8, [sp, #8]
mvn w8, w8
add w8, w8, #1
str w8, [sp, #8]
b LBB0_4
LBB0_4:
str wzr, [sp, #4]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldr w9, [sp, #8]
ldr w10, [sp, #4]
lsl w9, w9, w10
subs w8, w8, w9
cset w8, ls
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_5
LBB0_7:
str wzr, [sp]
b LBB0_8
LBB0_8: ; =>This Loop Header: Depth=1
; Child Loop BB0_10 Depth 2
ldr w8, [sp, #12]
ldr w9, [sp, #8]
subs w8, w8, w9
cset w8, lo
tbnz w8, #0, LBB0_13
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_8 Depth=1
b LBB0_10
LBB0_10: ; Parent Loop BB0_8 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #12]
ldr w9, [sp, #8]
ldr w10, [sp, #4]
lsl w9, w9, w10
subs w8, w8, w9
cset w8, hs
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_10 Depth=2
ldr w8, [sp, #4]
subs w8, w8, #1
str w8, [sp, #4]
b LBB0_10
LBB0_12: ; in Loop: Header=BB0_8 Depth=1
ldr w9, [sp, #4]
mov w8, #1
lsl w9, w8, w9
ldr w8, [sp]
orr w8, w8, w9
str w8, [sp]
ldr w8, [sp, #8]
ldr w9, [sp, #4]
lsl w9, w8, w9
ldr w8, [sp, #12]
subs w8, w8, w9
str w8, [sp, #12]
b LBB0_8
LBB0_13:
ldr w8, [sp, #16]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_16
b LBB0_14
LBB0_14:
ldr w8, [sp]
mov w9, #2147483647
subs w8, w8, w9
cset w8, lo
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15:
mov w8, #2147483647
str w8, [sp, #28]
b LBB0_17
LBB0_16:
ldr w8, [sp]
ldr w9, [sp, #16]
mul w8, w8, w9
str w8, [sp, #28]
b LBB0_17
LBB0_17:
ldr w0, [sp, #28]
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, #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]
ldur w8, [x29, #-8]
subs w8, w8, #3
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
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
mov w0, #-1
bl _exit
LBB1_2:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
bl _atoi
str w0, [sp, #12] ; 4-byte Folded Spill
ldr x8, [sp, #16]
ldr x0, [x8, #16]
bl _atoi
mov x1, x0
ldr w0, [sp, #12] ; 4-byte Folded Reload
bl _divide
mov x9, sp
; implicit-def: $x8
mov x8, x0
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 "Usage: ./test dividend divisor\n"
l_.str.1: ; @.str.1
.asciz "%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.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, -8(%rbp)
movl %esi, -12(%rbp)
movl $1, -16(%rbp)
movl -8(%rbp), %eax
movl %eax, -20(%rbp)
cmpl $0, -8(%rbp)
jge LBB0_2
## %bb.1:
imull $-1, -16(%rbp), %eax
movl %eax, -16(%rbp)
movl -20(%rbp), %eax
xorl $-1, %eax
addl $1, %eax
movl %eax, -20(%rbp)
LBB0_2:
movl -12(%rbp), %eax
movl %eax, -24(%rbp)
cmpl $0, -12(%rbp)
jge LBB0_4
## %bb.3:
imull $-1, -16(%rbp), %eax
movl %eax, -16(%rbp)
movl -24(%rbp), %eax
xorl $-1, %eax
addl $1, %eax
movl %eax, -24(%rbp)
LBB0_4:
movl $0, -28(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
movl -24(%rbp), %edx
movl -28(%rbp), %ecx
## kill: def $cl killed $ecx
shll %cl, %edx
movl %edx, %ecx
cmpl %ecx, %eax
jbe LBB0_7
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_5
LBB0_7:
movl $0, -32(%rbp)
LBB0_8: ## =>This Loop Header: Depth=1
## Child Loop BB0_10 Depth 2
movl -20(%rbp), %eax
cmpl -24(%rbp), %eax
jb LBB0_13
## %bb.9: ## in Loop: Header=BB0_8 Depth=1
jmp LBB0_10
LBB0_10: ## Parent Loop BB0_8 Depth=1
## => This Inner Loop Header: Depth=2
movl -20(%rbp), %eax
movl -24(%rbp), %edx
movl -28(%rbp), %ecx
## kill: def $cl killed $ecx
shll %cl, %edx
movl %edx, %ecx
cmpl %ecx, %eax
jae LBB0_12
## %bb.11: ## in Loop: Header=BB0_10 Depth=2
movl -28(%rbp), %eax
addl $-1, %eax
movl %eax, -28(%rbp)
jmp LBB0_10
LBB0_12: ## in Loop: Header=BB0_8 Depth=1
movl -28(%rbp), %ecx
movl $1, %eax
## kill: def $cl killed $ecx
shll %cl, %eax
orl -32(%rbp), %eax
movl %eax, -32(%rbp)
movl -24(%rbp), %eax
movl -28(%rbp), %ecx
## kill: def $cl killed $ecx
shll %cl, %eax
movl %eax, %ecx
movl -20(%rbp), %eax
subl %ecx, %eax
movl %eax, -20(%rbp)
jmp LBB0_8
LBB0_13:
cmpl $1, -16(%rbp)
jne LBB0_16
## %bb.14:
cmpl $2147483647, -32(%rbp) ## imm = 0x7FFFFFFF
jb LBB0_16
## %bb.15:
movl $2147483647, -4(%rbp) ## imm = 0x7FFFFFFF
jmp LBB0_17
LBB0_16:
movl -32(%rbp), %eax
imull -16(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_17:
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)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $3, -8(%rbp)
je LBB1_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $-1, %edi
callq _exit
LBB1_2:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _atoi
movl %eax, -20(%rbp) ## 4-byte Spill
movq -16(%rbp), %rax
movq 16(%rax), %rdi
callq _atoi
movl -20(%rbp), %edi ## 4-byte Reload
movl %eax, %esi
callq _divide
movl %eax, %esi
leaq L_.str.1(%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 "Usage: ./test dividend divisor\n"
L_.str.1: ## @.str.1
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/134965.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, #1744
adrp x8, ___stdinp@GOTPAGE
ldr x8, [x8, ___stdinp@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 wzr, [sp, #132]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x2, [x8]
sub x0, x29, #124
str x0, [sp, #72] ; 8-byte Folded Spill
mov w1, #100
str w1, [sp, #60] ; 4-byte Folded Spill
bl _fgets
ldr x0, [sp, #72] ; 8-byte Folded Reload
mov x9, sp
add x8, sp, #1136
str x8, [sp, #104] ; 8-byte Folded Spill
str x8, [x9]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
str x1, [sp, #64] ; 8-byte Folded Spill
bl _sscanf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr w1, [sp, #60] ; 4-byte Folded Reload
ldr x0, [sp, #72] ; 8-byte Folded Reload
ldr x2, [x8]
bl _fgets
ldr x1, [sp, #64] ; 8-byte Folded Reload
ldr x0, [sp, #72] ; 8-byte Folded Reload
mov x9, sp
add x8, sp, #636
str x8, [sp, #112] ; 8-byte Folded Spill
str x8, [x9]
bl _sscanf
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr x0, [sp, #104] ; 8-byte Folded Reload
bl _strlen
ldr x9, [sp, #104] ; 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
str x0, [sp, #40] ; 8-byte Folded Spill
bl _printf
ldr x0, [sp, #112] ; 8-byte Folded Reload
bl _strlen
ldr x10, [sp, #112] ; 8-byte Folded Reload
mov x8, x0
ldr x0, [sp, #40] ; 8-byte Folded Reload
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
bl _printf
ldr x1, [sp, #112] ; 8-byte Folded Reload
ldr x0, [sp, #104] ; 8-byte Folded Reload
mov x2, #500
str x2, [sp, #80] ; 8-byte Folded Spill
bl ___strcat_chk
ldr x9, [sp, #112] ; 8-byte Folded Reload
ldr x10, [sp, #104] ; 8-byte Folded Reload
mov x8, sp
str x10, [x8]
str x9, [x8, #8]
str x0, [x8, #16]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr w1, [sp, #60] ; 4-byte Folded Reload
ldr x0, [sp, #72] ; 8-byte Folded Reload
ldr x2, [x8]
bl _fgets
ldr x1, [sp, #64] ; 8-byte Folded Reload
ldr x0, [sp, #72] ; 8-byte Folded Reload
mov x9, sp
add x8, sp, #136
str x8, [sp, #88] ; 8-byte Folded Spill
str x8, [x9]
bl _sscanf
ldr x2, [sp, #80] ; 8-byte Folded Reload
ldr x1, [sp, #88] ; 8-byte Folded Reload
ldr x0, [sp, #112] ; 8-byte Folded Reload
bl ___strcpy_chk
ldr x9, [sp, #88] ; 8-byte Folded Reload
ldr x10, [sp, #112] ; 8-byte Folded Reload
mov x8, sp
str x10, [x8]
str x9, [x8, #8]
str x0, [x8, #16]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
str x0, [sp, #96] ; 8-byte Folded Spill
bl _printf
ldr x2, [sp, #80] ; 8-byte Folded Reload
ldr x1, [sp, #88] ; 8-byte Folded Reload
ldr x0, [sp, #112] ; 8-byte Folded Reload
bl ___strcpy_chk
ldr x10, [sp, #88] ; 8-byte Folded Reload
ldr x11, [sp, #112] ; 8-byte Folded Reload
mov x8, x0
ldr x0, [sp, #96] ; 8-byte Folded Reload
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
bl _printf
ldr x1, [sp, #104] ; 8-byte Folded Reload
ldr x0, [sp, #112] ; 8-byte Folded Reload
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov x9, sp
add x8, sp, #636
str x8, [x9]
add x8, sp, #1136
str x8, [x9, #8]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
b LBB0_3
LBB0_2:
mov x9, sp
add x8, sp, #636
str x8, [x9]
add x8, sp, #1136
str x8, [x9, #8]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
b LBB0_3
LBB0_3:
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #131
str x8, [x9]
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _scanf
ldrsb w1, [sp, #131]
add x0, sp, #636
str x0, [sp, #32] ; 8-byte Folded Spill
bl _strchr
ldr x10, [sp, #32] ; 8-byte Folded Reload
str x0, [sp, #120]
ldrsb w12, [sp, #131]
ldr x8, [sp, #120]
mov x9, sp
; implicit-def: $x11
mov x11, x12
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
b LBB0_4
LBB0_4:
ldr x8, [sp, #120]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldrsb w10, [sp, #131]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
b LBB0_6
LBB0_6:
b LBB0_7
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #120]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=1
ldr x8, [sp, #120]
add x9, sp, #636
subs x8, x8, x9
add x8, x8, #1
mov x9, sp
str x8, [x9]
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
ldr x8, [sp, #120]
add x0, x8, #1
ldrsb w1, [sp, #131]
bl _strchr
str x0, [sp, #120]
b LBB0_7
LBB0_9:
ldr w8, [sp, #132]
str w8, [sp, #28] ; 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_11
b LBB0_10
LBB0_10:
bl ___stack_chk_fail
LBB0_11:
ldr w0, [sp, #28] ; 4-byte Folded Reload
add sp, sp, #1744
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 "Enter string one:\n"
l_.str.1: ; @.str.1
.asciz "%s"
l_.str.2: ; @.str.2
.asciz "Enter string two:\n"
l_.str.3: ; @.str.3
.asciz "The length of strings \n"
l_.str.4: ; @.str.4
.asciz "Length of %s is %d \n"
l_.str.5: ; @.str.5
.asciz "The concatenate of %s, %s is: \n %s \n"
l_.str.6: ; @.str.6
.asciz "\n Now enter string three:\n"
l_.str.7: ; @.str.7
.asciz "The copy of %s in %s is: \n %s \n"
l_.str.8: ; @.str.8
.asciz " %s and %s strings are same.\n"
l_.str.9: ; @.str.9
.asciz "%s and %s strings are NOT same.\n"
l_.str.10: ; @.str.10
.asciz "Find character in string two.\n"
l_.str.11: ; @.str.11
.asciz "%c"
l_.str.12: ; @.str.12
.asciz "\n%c in %s found? \n %s\n"
l_.str.13: ; @.str.13
.asciz "character %c is absent."
l_.str.14: ; @.str.14
.asciz "found at %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 $1744, %rsp ## imm = 0x6D0
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -1652(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq -112(%rbp), %rdi
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rdx
movl $100, %esi
callq _fgets
leaq -112(%rbp), %rdi
leaq -624(%rbp), %rdx
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _sscanf
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq -112(%rbp), %rdi
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rdx
movl $100, %esi
callq _fgets
leaq -112(%rbp), %rdi
leaq -1136(%rbp), %rdx
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _sscanf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq -624(%rbp), %rax
movq %rax, -1728(%rbp) ## 8-byte Spill
leaq -624(%rbp), %rdi
callq _strlen
movq -1728(%rbp), %rsi ## 8-byte Reload
movl %eax, %edx
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq -1136(%rbp), %rax
movq %rax, -1720(%rbp) ## 8-byte Spill
leaq -1136(%rbp), %rdi
callq _strlen
movq -1720(%rbp), %rsi ## 8-byte Reload
movl %eax, %edx
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq -624(%rbp), %rax
movq %rax, -1712(%rbp) ## 8-byte Spill
leaq -1136(%rbp), %rax
movq %rax, -1704(%rbp) ## 8-byte Spill
leaq -624(%rbp), %rdi
leaq -1136(%rbp), %rsi
movl $500, %edx ## imm = 0x1F4
callq ___strcat_chk
movq -1712(%rbp), %rsi ## 8-byte Reload
movq -1704(%rbp), %rdx ## 8-byte Reload
movq %rax, %rcx
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
leaq -112(%rbp), %rdi
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rdx
movl $100, %esi
callq _fgets
leaq -112(%rbp), %rdi
leaq -1648(%rbp), %rdx
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _sscanf
leaq -1136(%rbp), %rax
movq %rax, -1696(%rbp) ## 8-byte Spill
leaq -1648(%rbp), %rax
movq %rax, -1688(%rbp) ## 8-byte Spill
leaq -1136(%rbp), %rdi
leaq -1648(%rbp), %rsi
movl $500, %edx ## imm = 0x1F4
callq ___strcpy_chk
movq -1696(%rbp), %rsi ## 8-byte Reload
movq -1688(%rbp), %rdx ## 8-byte Reload
movq %rax, %rcx
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
leaq -1136(%rbp), %rax
movq %rax, -1680(%rbp) ## 8-byte Spill
leaq -1648(%rbp), %rax
movq %rax, -1672(%rbp) ## 8-byte Spill
leaq -1136(%rbp), %rdi
leaq -1648(%rbp), %rsi
movl $500, %edx ## imm = 0x1F4
callq ___strcpy_chk
movq -1680(%rbp), %rsi ## 8-byte Reload
movq -1672(%rbp), %rdx ## 8-byte Reload
movq %rax, %rcx
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
leaq -1136(%rbp), %rdi
leaq -624(%rbp), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_2
## %bb.1:
leaq -1136(%rbp), %rsi
leaq -624(%rbp), %rdx
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_3
LBB0_2:
leaq -1136(%rbp), %rsi
leaq -624(%rbp), %rdx
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
LBB0_3:
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.11(%rip), %rdi
leaq -1653(%rbp), %rsi
movb $0, %al
callq _scanf
leaq -1136(%rbp), %rdi
movsbl -1653(%rbp), %esi
callq _strchr
movq %rax, -1664(%rbp)
movsbl -1653(%rbp), %esi
leaq -1136(%rbp), %rdx
movq -1664(%rbp), %rcx
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
## %bb.4:
cmpq $0, -1664(%rbp)
jne LBB0_6
## %bb.5:
movsbl -1653(%rbp), %esi
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
LBB0_6:
jmp LBB0_7
LBB0_7: ## =>This Inner Loop Header: Depth=1
cmpq $0, -1664(%rbp)
je LBB0_9
## %bb.8: ## in Loop: Header=BB0_7 Depth=1
movq -1664(%rbp), %rax
leaq -1136(%rbp), %rcx
subq %rcx, %rax
addq $1, %rax
movl %eax, %esi
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
movq -1664(%rbp), %rdi
addq $1, %rdi
movsbl -1653(%rbp), %esi
callq _strchr
movq %rax, -1664(%rbp)
jmp LBB0_7
LBB0_9:
movl -1652(%rbp), %eax
movl %eax, -1732(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_11
## %bb.10:
movl -1732(%rbp), %eax ## 4-byte Reload
addq $1744, %rsp ## imm = 0x6D0
popq %rbp
retq
LBB0_11:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter string one:\n"
L_.str.1: ## @.str.1
.asciz "%s"
L_.str.2: ## @.str.2
.asciz "Enter string two:\n"
L_.str.3: ## @.str.3
.asciz "The length of strings \n"
L_.str.4: ## @.str.4
.asciz "Length of %s is %d \n"
L_.str.5: ## @.str.5
.asciz "The concatenate of %s, %s is: \n %s \n"
L_.str.6: ## @.str.6
.asciz "\n Now enter string three:\n"
L_.str.7: ## @.str.7
.asciz "The copy of %s in %s is: \n %s \n"
L_.str.8: ## @.str.8
.asciz " %s and %s strings are same.\n"
L_.str.9: ## @.str.9
.asciz "%s and %s strings are NOT same.\n"
L_.str.10: ## @.str.10
.asciz "Find character in string two.\n"
L_.str.11: ## @.str.11
.asciz "%c"
L_.str.12: ## @.str.12
.asciz "\n%c in %s found? \n %s\n"
L_.str.13: ## @.str.13
.asciz "character %c is absent."
L_.str.14: ## @.str.14
.asciz "found at %d \n"
.subsections_via_symbols
| the_stack_data/234517939.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]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _getInt
str w0, [sp, #8]
ldr w0, [sp, #8]
bl _isOdd
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
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
b LBB0_3
LBB0_2:
ldr w9, [sp, #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
b LBB0_3
LBB0_3:
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _getInt ; -- Begin function getInt
.p2align 2
_getInt: ; @getInt
.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]
sub x8, x29, #12
str x8, [sp, #8] ; 8-byte Folded Spill
stur wzr, [x29, #-12]
ldur x8, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _scanf
ldur w0, [x29, #-12]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _isOdd ; -- Begin function isOdd
.p2align 2
_isOdd: ; @isOdd
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w8, [sp, #12]
mov w10, #2
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #1
cset w8, eq
and w0, w8, #0x1
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Please enter an integer : "
l_.str.1: ; @.str.1
.asciz "%d is and odd number\n"
l_.str.2: ; @.str.2
.asciz "%d is an even number\n"
l_.str.3: ; @.str.3
.asciz "%s"
l_.str.4: ; @.str.4
.asciz "%d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 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
callq _getInt
movl %eax, -8(%rbp)
movl -8(%rbp), %edi
callq _isOdd
cmpl $0, %eax
je LBB0_2
## %bb.1:
movl -8(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_3
LBB0_2:
movl -8(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
LBB0_3:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _getInt ## -- Begin function getInt
.p2align 4, 0x90
_getInt: ## @getInt
.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 $0, -12(%rbp)
movq -8(%rbp), %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.4(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
movl -12(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _isOdd ## -- Begin function isOdd
.p2align 4, 0x90
_isOdd: ## @isOdd
.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
movl $2, %ecx
cltd
idivl %ecx
cmpl $1, %edx
sete %al
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Please enter an integer : "
L_.str.1: ## @.str.1
.asciz "%d is and odd number\n"
L_.str.2: ## @.str.2
.asciz "%d is an even number\n"
L_.str.3: ## @.str.3
.asciz "%s"
L_.str.4: ## @.str.4
.asciz "%d"
.subsections_via_symbols
| the_stack_data/64199780.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, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov w8, #4059
movk w8, #16457, lsl #16
fmov s0, w8
stur s0, [x29, #-12]
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, #8
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
ldur s0, [x29, #-8]
ldur s1, [x29, #-8]
fmul s0, s0, s1
ldur s1, [x29, #-12]
fmul s0, s0, s1
str s0, [sp, #16]
ldr s0, [sp, #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
ldr w0, [sp, #12] ; 4-byte Folded Reload
bl _exit
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\nC\303\241lculo da area de um circulo"
l_.str.1: ; @.str.1
.asciz "\nDigite o valor do raio do circulo:"
l_.str.2: ; @.str.2
.asciz "%f"
l_.str.3: ; @.str.3
.asciz "\nA area do circulo \303\251 %f"
.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 $1078530011, -12(%rbp) ## imm = 0x40490FDB
leaq L_.str(%rip), %rdi
xorl %eax, %eax
movl %eax, -20(%rbp) ## 4-byte Spill
movb %al, -21(%rbp) ## 1-byte Spill
callq _printf
## kill: def $ecx killed $eax
movb -21(%rbp), %al ## 1-byte Reload
leaq L_.str.1(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -21(%rbp), %al ## 1-byte Reload
leaq L_.str.2(%rip), %rdi
leaq -8(%rbp), %rsi
callq _scanf
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
mulss %xmm0, %xmm0
movss -12(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %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
movl -20(%rbp), %edi ## 4-byte Reload
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\nC\303\241lculo da area de um circulo"
L_.str.1: ## @.str.1
.asciz "\nDigite o valor do raio do circulo:"
L_.str.2: ## @.str.2
.asciz "%f"
L_.str.3: ## @.str.3
.asciz "\nA area do circulo \303\251 %f"
.subsections_via_symbols
| the_stack_data/99218.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]
mov x9, sp
sub x8, x29, #28
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 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
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
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%[^\t\n]s"
l_.str.1: ; @.str.1
.asciz "string is %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 L_.str(%rip), %rdi
leaq -32(%rbp), %rsi
movb $0, %al
callq _scanf
leaq -32(%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 $48, %rsp
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%[^\t\n]s"
L_.str.1: ## @.str.1
.asciz "string is %s\n"
.subsections_via_symbols
| the_stack_data/188032.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 x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov w9, #16800
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #4, lsl #12 ; =16384
sub sp, sp, #416
mov x19, sp
adrp x8, _optind@GOTPAGE
ldr x8, [x8, _optind@GOTPAGEOFF]
str x8, [x19, #96] ; 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 wzr, [x19, #404]
str w0, [x19, #400]
str x1, [x19, #392]
bl ___error
str wzr, [x0]
mov w8, #8080
str w8, [x19, #388]
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
str x8, [x19, #376]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w0, [x19, #400]
ldr x1, [x19, #392]
adrp x2, l_.str.1@PAGE
add x2, x2, l_.str.1@PAGEOFF
bl _getopt
str w0, [x19, #372]
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, [x19, #372]
str w8, [x19, #92] ; 4-byte Folded Spill
subs w8, w8, #104
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [x19, #92] ; 4-byte Folded Reload
subs w8, w8, #112
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_6
LBB0_4:
ldr x8, [x19, #376]
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
add sp, sp, #16
str wzr, [x19, #404]
b LBB0_52
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _optarg@GOTPAGE
ldr x8, [x8, _optarg@GOTPAGEOFF]
ldr x0, [x8]
bl _atoi
str w0, [x19, #388]
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_7:
ldr w8, [x19, #388]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_11
b LBB0_8
LBB0_8:
ldr w8, [x19, #388]
subs w8, w8, #8, lsl #12 ; =32768
cset w8, ge
tbnz w8, #0, LBB0_11
b LBB0_9
LBB0_9:
ldr x9, [x19, #96] ; 8-byte Folded Reload
ldr x8, [x19, #392]
ldrsw x9, [x9]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldr x9, [x19, #96] ; 8-byte Folded Reload
ldr x8, [x19, #392]
ldrsw x9, [x9]
ldr x0, [x8, x9, lsl #3]
bl _strlen
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
ldr x8, [x19, #376]
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
add sp, sp, #16
mov w8, #2
str w8, [x19, #404]
b LBB0_52
LBB0_12:
ldr x10, [x19, #96] ; 8-byte Folded Reload
ldr w8, [x19, #388]
ldr x9, [x19, #392]
ldrsw x10, [x10]
ldr x1, [x9, x10, lsl #3]
sxth w0, w8
bl _start
add x1, x19, #352
adrp x8, _handler@PAGE
add x8, x8, _handler@PAGEOFF
str x8, [x19, #352]
str wzr, [x19, #364]
str wzr, [x19, #360]
mov w0, #2
mov x2, #0
bl _sigaction
str xzr, [x19, #344]
str xzr, [x19, #336]
str xzr, [x19, #328]
b LBB0_13
LBB0_13: ; =>This Inner Loop Header: Depth=1
ldr x8, [x19, #328]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=1
ldr x0, [x19, #328]
bl _free
; kill: def $x8 killed $xzr
str xzr, [x19, #328]
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_13 Depth=1
ldr x8, [x19, #344]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_13 Depth=1
ldr x0, [x19, #344]
bl _free
; kill: def $x8 killed $xzr
str xzr, [x19, #344]
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_13 Depth=1
str xzr, [x19, #336]
adrp x8, _cfd@PAGE
ldr w8, [x8, _cfd@PAGEOFF]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_13 Depth=1
adrp x8, _cfd@PAGE
str x8, [x19, #80] ; 8-byte Folded Spill
ldr w0, [x8, _cfd@PAGEOFF]
bl _close
ldr x9, [x19, #80] ; 8-byte Folded Reload
mov w8, #-1
str w8, [x9, _cfd@PAGEOFF]
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_13 Depth=1
adrp x8, _signaled@PAGE
ldrb w8, [x8, _signaled@PAGEOFF]
tbz w8, #0, LBB0_21
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_13 Depth=1
bl _stop
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_13 Depth=1
bl _connected
tbz w0, #0, LBB0_51
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_13 Depth=1
add x0, x19, #344
add x1, x19, #336
bl _request
tbz w0, #0, LBB0_50
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_13 Depth=1
ldr x8, [x19, #344]
str x8, [x19, #320]
ldr x0, [x19, #320]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _strstr
str x0, [x19, #312]
ldr x8, [x19, #312]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_25
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_13 Depth=1
mov w0, #500
bl _error
b LBB0_13
LBB0_25: ; in Loop: Header=BB0_13 Depth=1
ldr x8, [x19, #312]
ldr x9, [x19, #320]
subs x8, x8, x9
add x8, x8, #2
add x8, x8, #1
mov x9, sp
str x9, [x19, #304]
lsr x9, x8, #0
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
str x9, [x19, #64] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldr x10, [x19, #64] ; 8-byte Folded Reload
mov x9, sp
subs x0, x9, x10
mov sp, x0
str x0, [x19, #72] ; 8-byte Folded Spill
str x8, [x19, #296]
ldr x1, [x19, #320]
ldr x8, [x19, #312]
ldr x9, [x19, #320]
subs x8, x8, x9
add x2, x8, #2
mov x3, #-1
bl ___strncpy_chk
ldr x8, [x19, #72] ; 8-byte Folded Reload
ldr x9, [x19, #312]
ldr x10, [x19, #320]
subs x9, x9, x10
add x9, x9, #2
add x9, x8, x9
strb wzr, [x9]
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldr x0, [x19, #72] ; 8-byte Folded Reload
add sp, sp, #16
add x1, x19, #2, lsl #12 ; =8192
add x1, x1, #409
add x2, x19, #410
bl _parse
tbz w0, #0, LBB0_46
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_13 Depth=1
add x0, x19, #2, lsl #12 ; =8192
add x0, x0, #409
bl _urldecode
str x0, [x19, #288]
ldr x8, [x19, #288]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_28
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_13 Depth=1
mov w0, #500
bl _error
mov w8, #5
str w8, [x19, #284]
b LBB0_47
LBB0_28: ; in Loop: Header=BB0_13 Depth=1
adrp x8, _root@PAGE
ldr x0, [x8, _root@PAGEOFF]
bl _strlen
str x0, [x19, #56] ; 8-byte Folded Spill
ldr x0, [x19, #288]
bl _strlen
mov x8, x0
ldr x0, [x19, #56] ; 8-byte Folded Reload
add x8, x0, x8
add x0, x8, #1
bl _malloc
str x0, [x19, #328]
ldr x8, [x19, #328]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_30
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_13 Depth=1
mov w0, #500
bl _error
mov w8, #5
str w8, [x19, #284]
b LBB0_47
LBB0_30: ; in Loop: Header=BB0_13 Depth=1
ldr x0, [x19, #328]
adrp x8, _root@PAGE
ldr x1, [x8, _root@PAGEOFF]
mov x2, #-1
str x2, [x19, #48] ; 8-byte Folded Spill
bl ___strcpy_chk
ldr x2, [x19, #48] ; 8-byte Folded Reload
ldr x0, [x19, #328]
ldr x1, [x19, #288]
bl ___strcat_chk
ldr x0, [x19, #288]
bl _free
ldr x0, [x19, #328]
mov w1, #0
bl _access
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_32
b LBB0_31
LBB0_31: ; in Loop: Header=BB0_13 Depth=1
mov w0, #404
bl _error
mov w8, #5
str w8, [x19, #284]
b LBB0_47
LBB0_32: ; in Loop: Header=BB0_13 Depth=1
ldr x0, [x19, #328]
add x1, x19, #136
bl _stat
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_40
b LBB0_33
LBB0_33: ; in Loop: Header=BB0_13 Depth=1
ldrh w8, [x19, #140]
and w8, w8, #0xf000
subs w8, w8, #4, lsl #12 ; =16384
cset w8, ne
tbnz w8, #0, LBB0_40
b LBB0_34
LBB0_34: ; in Loop: Header=BB0_13 Depth=1
add x0, x19, #2, lsl #12 ; =8192
add x0, x0, #409
str x0, [x19, #40] ; 8-byte Folded Spill
bl _strlen
ldr x8, [x19, #40] ; 8-byte Folded Reload
subs x9, x0, #1
ldrsb w8, [x8, x9]
subs w8, w8, #47
cset w8, eq
tbnz w8, #0, LBB0_36
b LBB0_35
LBB0_35: ; in Loop: Header=BB0_13 Depth=1
add x0, x19, #2, lsl #12 ; =8192
add x0, x0, #409
str x0, [x19, #8] ; 8-byte Folded Spill
bl _strlen
ldr x1, [x19, #8] ; 8-byte Folded Reload
add x8, x0, #1
add x8, x8, #1
mov x9, sp
str x9, [x19, #128]
lsr x9, x8, #0
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
str x9, [x19, #16] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldr x10, [x19, #16] ; 8-byte Folded Reload
mov x9, sp
subs x0, x9, x10
str x0, [x19, #32] ; 8-byte Folded Spill
mov sp, x0
str x8, [x19, #120]
mov x2, #-1
str x2, [x19, #24] ; 8-byte Folded Spill
bl ___strcpy_chk
ldr x2, [x19, #24] ; 8-byte Folded Reload
ldr x0, [x19, #32] ; 8-byte Folded Reload
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl ___strcat_chk
ldr x0, [x19, #32] ; 8-byte Folded Reload
bl _redirect
mov w8, #5
str w8, [x19, #284]
ldr x8, [x19, #128]
mov sp, x8
b LBB0_47
LBB0_36: ; in Loop: Header=BB0_13 Depth=1
ldr x0, [x19, #328]
bl _indexes
str x0, [x19, #112]
ldr x8, [x19, #112]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_38
b LBB0_37
LBB0_37: ; in Loop: Header=BB0_13 Depth=1
ldr x0, [x19, #328]
bl _free
ldr x8, [x19, #112]
str x8, [x19, #328]
b LBB0_39
LBB0_38: ; in Loop: Header=BB0_13 Depth=1
ldr x0, [x19, #328]
bl _list
mov w8, #5
str w8, [x19, #284]
b LBB0_47
LBB0_39: ; in Loop: Header=BB0_13 Depth=1
b LBB0_40
LBB0_40: ; in Loop: Header=BB0_13 Depth=1
ldr x0, [x19, #328]
bl _lookup
str x0, [x19, #104]
ldr x8, [x19, #104]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_42
b LBB0_41
LBB0_41: ; in Loop: Header=BB0_13 Depth=1
mov w0, #501
bl _error
mov w8, #5
str w8, [x19, #284]
b LBB0_47
LBB0_42: ; in Loop: Header=BB0_13 Depth=1
ldr x1, [x19, #104]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _strcasecmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_44
b LBB0_43
LBB0_43: ; in Loop: Header=BB0_13 Depth=1
ldr x0, [x19, #328]
add x1, x19, #410
bl _interpret
b LBB0_45
LBB0_44: ; in Loop: Header=BB0_13 Depth=1
ldr x0, [x19, #328]
ldr x1, [x19, #104]
bl _transfer
b LBB0_45
LBB0_45: ; in Loop: Header=BB0_13 Depth=1
b LBB0_46
LBB0_46: ; in Loop: Header=BB0_13 Depth=1
str wzr, [x19, #284]
b LBB0_47
LBB0_47: ; in Loop: Header=BB0_13 Depth=1
ldr x8, [x19, #304]
mov sp, x8
ldr w8, [x19, #284]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_49
b LBB0_48
LBB0_48: ; in Loop: Header=BB0_13 Depth=1
b LBB0_13
LBB0_49: ; in Loop: Header=BB0_13 Depth=1
b LBB0_50
LBB0_50: ; in Loop: Header=BB0_13 Depth=1
b LBB0_51
LBB0_51: ; in Loop: Header=BB0_13 Depth=1
b LBB0_13
LBB0_52:
ldr w8, [x19, #404]
str w8, [x19, #4] ; 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_54
b LBB0_53
LBB0_53:
bl ___stack_chk_fail
LBB0_54:
ldr w0, [x19, #4] ; 4-byte Folded Reload
sub sp, x29, #16
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
; %bb.55:
.cfi_endproc
; -- End function
.globl _start ; -- Begin function start
.p2align 2
_start: ; @start
.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]
strh w0, [sp, #38]
str x1, [sp, #24]
ldr x0, [sp, #24]
mov x1, #0
bl _realpath
adrp x8, _root@PAGE
str x0, [x8, _root@PAGEOFF]
ldr x8, [x8, _root@PAGEOFF]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
bl _stop
b LBB1_2
LBB1_2:
adrp x8, _root@PAGE
ldr x0, [x8, _root@PAGEOFF]
mov w1, #1
bl _access
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
bl _stop
b LBB1_4
LBB1_4:
adrp x0, l_.str.55@PAGE
add x0, x0, l_.str.55@PAGEOFF
bl _printf
adrp x8, _root@PAGE
ldr x8, [x8, _root@PAGEOFF]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.58@PAGE
add x0, x0, l_.str.58@PAGEOFF
bl _printf
adrp x0, l_.str.57@PAGE
add x0, x0, l_.str.57@PAGEOFF
bl _printf
mov w0, #2
mov w1, #1
mov w2, #0
bl _socket
adrp x8, _sfd@PAGE
str w0, [x8, _sfd@PAGEOFF]
ldr w8, [x8, _sfd@PAGEOFF]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5:
bl _stop
b LBB1_6
LBB1_6:
add x3, sp, #20
mov w8, #1
str w8, [sp, #20]
adrp x8, _sfd@PAGE
ldr w0, [x8, _sfd@PAGEOFF]
mov w1, #65535
mov w4, #4
mov x2, x4
bl _setsockopt
stur xzr, [x29, #-24]
stur xzr, [x29, #-16]
mov w8, #2
sturb w8, [x29, #-23]
b LBB1_7
LBB1_7:
ldrh w0, [sp, #38]
bl __OSSwapInt16
and w8, w0, #0xffff
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB1_8
LBB1_8:
ldr w8, [sp, #12] ; 4-byte Folded Reload
sub x1, x29, #24
sturh w8, [x29, #-22]
stur wzr, [x29, #-20]
adrp x8, _sfd@PAGE
ldr w0, [x8, _sfd@PAGEOFF]
mov w2, #16
bl _bind
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
adrp x0, l_.str.55@PAGE
add x0, x0, l_.str.55@PAGEOFF
bl _printf
ldrsh w10, [sp, #38]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.59@PAGE
add x0, x0, l_.str.59@PAGEOFF
bl _printf
adrp x0, l_.str.57@PAGE
add x0, x0, l_.str.57@PAGEOFF
bl _printf
bl _stop
b LBB1_10
LBB1_10:
adrp x8, _sfd@PAGE
ldr w0, [x8, _sfd@PAGEOFF]
mov w1, #128
bl _listen
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB1_12
b LBB1_11
LBB1_11:
bl _stop
b LBB1_12
LBB1_12:
add x2, sp, #16
mov w8, #16
str w8, [sp, #16]
adrp x8, _sfd@PAGE
ldr w0, [x8, _sfd@PAGEOFF]
add x1, sp, #40
bl _getsockname
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB1_14
b LBB1_13
LBB1_13:
bl _stop
b LBB1_14
LBB1_14:
adrp x0, l_.str.55@PAGE
add x0, x0, l_.str.55@PAGEOFF
bl _printf
b LBB1_15
LBB1_15:
ldrh w0, [sp, #42]
bl __OSSwapInt16
str w0, [sp, #8] ; 4-byte Folded Spill
b LBB1_16
LBB1_16:
ldr w10, [sp, #8] ; 4-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x10
and x8, x8, #0xffff
and x8, x8, #0xffff
str x8, [x9]
adrp x0, l_.str.60@PAGE
add x0, x0, l_.str.60@PAGEOFF
bl _printf
adrp x0, l_.str.57@PAGE
add x0, x0, l_.str.57@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, LBB1_18
b LBB1_17
LBB1_17:
bl ___stack_chk_fail
LBB1_18:
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _handler ; -- Begin function handler
.p2align 2
_handler: ; @handler
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
adrp x9, _signaled@PAGE
mov w8, #1
strb w8, [x9, _signaled@PAGEOFF]
b LBB2_2
LBB2_2:
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _stop ; -- Begin function stop
.p2align 2
_stop: ; @stop
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl ___error
ldr w8, [x0]
stur w8, [x29, #-4]
adrp x0, l_.str.55@PAGE
add x0, x0, l_.str.55@PAGEOFF
bl _printf
adrp x0, l_.str.61@PAGE
add x0, x0, l_.str.61@PAGEOFF
bl _printf
adrp x0, l_.str.62@PAGE
add x0, x0, l_.str.62@PAGEOFF
bl _printf
adrp x8, _root@PAGE
ldr x8, [x8, _root@PAGEOFF]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
adrp x8, _root@PAGE
ldr x0, [x8, _root@PAGEOFF]
bl _free
b LBB3_2
LBB3_2:
adrp x8, _sfd@PAGE
ldr w8, [x8, _sfd@PAGEOFF]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3:
adrp x8, _sfd@PAGE
ldr w0, [x8, _sfd@PAGEOFF]
bl _close
b LBB3_4
LBB3_4:
ldur w0, [x29, #-4]
bl _exit
.cfi_endproc
; -- End function
.globl _connected ; -- Begin function connected
.p2align 2
_connected: ; @connected
.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, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
add x1, sp, #24
str xzr, [sp, #24]
str xzr, [sp, #32]
add x2, sp, #16
mov w8, #16
str w8, [sp, #16]
adrp x8, _sfd@PAGE
ldr w0, [x8, _sfd@PAGEOFF]
bl _accept
adrp x8, _cfd@PAGE
str w0, [x8, _cfd@PAGEOFF]
ldr w8, [x8, _cfd@PAGEOFF]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #23]
b LBB4_3
LBB4_2:
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #23]
b LBB4_3
LBB4_3:
ldrb w8, [sp, #23]
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_5
b LBB4_4
LBB4_4:
bl ___stack_chk_fail
LBB4_5:
ldr w8, [sp, #12] ; 4-byte Folded Reload
and w0, w8, #0x1
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _request ; -- Begin function request
.p2align 2
_request: ; @request
.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, #608
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #72]
str x1, [sp, #64]
adrp x8, _cfd@PAGE
ldr w8, [x8, _cfd@PAGEOFF]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #87]
b LBB5_35
LBB5_2:
ldr x8, [sp, #72]
; kill: def $x9 killed $xzr
str xzr, [x8]
ldr x8, [sp, #64]
str xzr, [x8]
b LBB5_3
LBB5_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #64]
ldr x8, [x8]
mov x9, #16286
movk x9, #3, lsl #16
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB5_32
b LBB5_4
LBB5_4: ; in Loop: Header=BB5_3 Depth=1
adrp x8, _cfd@PAGE
ldr w0, [x8, _cfd@PAGEOFF]
add x1, sp, #88
mov x2, #512
bl _read
str x0, [sp, #56]
ldr x8, [sp, #56]
subs x8, x8, #0
cset w8, ge
tbnz w8, #0, LBB5_8
b LBB5_5
LBB5_5:
ldr x8, [sp, #72]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB5_7
b LBB5_6
LBB5_6:
ldr x8, [sp, #72]
ldr x0, [x8]
bl _free
ldr x8, [sp, #72]
; kill: def $x9 killed $xzr
str xzr, [x8]
b LBB5_7
LBB5_7:
ldr x8, [sp, #64]
str xzr, [x8]
b LBB5_32
LBB5_8: ; in Loop: Header=BB5_3 Depth=1
ldr x8, [sp, #72]
ldr x0, [x8]
ldr x8, [sp, #64]
ldr x8, [x8]
ldr x9, [sp, #56]
add x8, x8, x9
add x1, x8, #1
bl _realloc
ldr x8, [sp, #72]
str x0, [x8]
ldr x8, [sp, #72]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB5_10
b LBB5_9
LBB5_9:
ldr x8, [sp, #64]
str xzr, [x8]
b LBB5_32
LBB5_10: ; in Loop: Header=BB5_3 Depth=1
ldr x8, [sp, #72]
ldr x8, [x8]
ldr x9, [sp, #64]
ldr x9, [x9]
add x0, x8, x9
ldr x2, [sp, #56]
add x1, sp, #88
mov x3, #-1
bl ___memcpy_chk
ldr x10, [sp, #56]
ldr x9, [sp, #64]
ldr x8, [x9]
add x8, x8, x10
str x8, [x9]
ldr x8, [sp, #72]
ldr x8, [x8]
ldr x9, [sp, #64]
ldr x9, [x9]
add x8, x8, x9
strb wzr, [x8]
ldr x8, [sp, #64]
ldr x8, [x8]
ldr x9, [sp, #56]
subs x8, x8, x9
subs x8, x8, #3
cset w8, hs
tbnz w8, #0, LBB5_12
b LBB5_11
LBB5_11: ; in Loop: Header=BB5_3 Depth=1
ldr x8, [sp, #64]
ldr x8, [x8]
ldr x9, [sp, #56]
subs x8, x8, x9
str x8, [sp, #16] ; 8-byte Folded Spill
b LBB5_13
LBB5_12: ; in Loop: Header=BB5_3 Depth=1
mov x8, #3
str x8, [sp, #16] ; 8-byte Folded Spill
b LBB5_13
LBB5_13: ; in Loop: Header=BB5_3 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #52]
ldr x8, [sp, #72]
ldr x8, [x8]
ldr x9, [sp, #64]
ldr x9, [x9]
add x8, x8, x9
ldr x9, [sp, #56]
subs x8, x8, x9
ldrsw x9, [sp, #52]
subs x8, x8, x9
str x8, [sp, #40]
ldr x0, [sp, #40]
adrp x1, l_.str.18@PAGE
add x1, x1, l_.str.18@PAGEOFF
bl _strstr
str x0, [sp, #32]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB5_31
b LBB5_14
LBB5_14:
ldr x8, [sp, #32]
ldr x9, [sp, #72]
ldr x9, [x9]
subs x8, x8, x9
add x8, x8, #2
ldr x9, [sp, #64]
str x8, [x9]
ldr x8, [sp, #72]
ldr x0, [x8]
ldr x8, [sp, #64]
ldr x8, [x8]
add x1, x8, #1
bl _realloc
ldr x8, [sp, #72]
str x0, [x8]
ldr x8, [sp, #72]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB5_16
b LBB5_15
LBB5_15:
b LBB5_32
LBB5_16:
ldr x8, [sp, #72]
ldr x8, [x8]
ldr x9, [sp, #64]
ldr x9, [x9]
add x8, x8, x9
strb wzr, [x8]
ldr x8, [sp, #72]
ldr x8, [x8]
str x8, [sp, #40]
ldr x0, [sp, #40]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _strstr
str x0, [sp, #32]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB5_18
b LBB5_17
LBB5_17:
ldr x8, [sp, #32]
ldr x9, [sp, #40]
subs x8, x8, x9
add x8, x8, #2
mov x9, #8190
subs x8, x8, x9
cset w8, le
tbnz w8, #0, LBB5_19
b LBB5_18
LBB5_18:
b LBB5_32
LBB5_19:
str wzr, [sp, #28]
ldr x8, [sp, #32]
add x8, x8, #2
str x8, [sp, #40]
b LBB5_20
LBB5_20: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #40]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB5_26
b LBB5_21
LBB5_21: ; in Loop: Header=BB5_20 Depth=1
ldr x0, [sp, #40]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _strstr
str x0, [sp, #32]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB5_23
b LBB5_22
LBB5_22:
b LBB5_26
LBB5_23: ; in Loop: Header=BB5_20 Depth=1
ldr x8, [sp, #32]
ldr x9, [sp, #40]
subs x8, x8, x9
add x8, x8, #2
subs x8, x8, #4094
cset w8, le
tbnz w8, #0, LBB5_25
b LBB5_24
LBB5_24:
b LBB5_26
LBB5_25: ; in Loop: Header=BB5_20 Depth=1
ldr x8, [sp, #32]
add x8, x8, #2
str x8, [sp, #40]
b LBB5_20
LBB5_26:
ldr x8, [sp, #40]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB5_28
b LBB5_27
LBB5_27:
b LBB5_32
LBB5_28:
ldr w8, [sp, #28]
subs w8, w8, #50
cset w8, le
tbnz w8, #0, LBB5_30
b LBB5_29
LBB5_29:
b LBB5_32
LBB5_30:
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #87]
b LBB5_35
LBB5_31: ; in Loop: Header=BB5_3 Depth=1
b LBB5_3
LBB5_32:
ldr x8, [sp, #72]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB5_34
b LBB5_33
LBB5_33:
ldr x8, [sp, #72]
ldr x0, [x8]
bl _free
b LBB5_34
LBB5_34:
ldr x8, [sp, #72]
; kill: def $x9 killed $xzr
str xzr, [x8]
ldr x8, [sp, #64]
str xzr, [x8]
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #87]
b LBB5_35
LBB5_35:
ldrb w8, [sp, #87]
str w8, [sp, #12] ; 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, LBB5_37
b LBB5_36
LBB5_36:
bl ___stack_chk_fail
LBB5_37:
ldr w8, [sp, #12] ; 4-byte Folded Reload
and w0, w8, #0x1
add sp, sp, #608
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _error ; -- Begin function error
.p2align 2
_error: ; @error
.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, #96
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
sturh w0, [x29, #-10]
ldurh w0, [x29, #-10]
bl _reason
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
b LBB6_5
LBB6_2:
adrp x8, l_.str.7@PAGE
add x8, x8, l_.str.7@PAGEOFF
stur x8, [x29, #-32]
ldur x0, [x29, #-32]
bl _strlen
subs x8, x0, #2
stur x8, [x29, #-96] ; 8-byte Folded Spill
ldurh w8, [x29, #-10]
ucvtf d0, w8
bl _log10
ldur x8, [x29, #-96] ; 8-byte Folded Reload
fcvtzs w9, d0
add w9, w9, #1
subs x8, x8, w9, sxtw
subs x8, x8, #2
stur x8, [x29, #-88] ; 8-byte Folded Spill
ldur x0, [x29, #-24]
bl _strlen
ldur x8, [x29, #-88] ; 8-byte Folded Reload
add x8, x8, x0
lsl x8, x8, #1
add x8, x8, #1
mov x9, sp
stur x9, [x29, #-40]
lsr x9, x8, #0
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-80] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-80] ; 8-byte Folded Reload
mov x9, sp
subs x0, x9, x10
mov sp, x0
stur x0, [x29, #-72] ; 8-byte Folded Spill
stur x8, [x29, #-48]
ldur x3, [x29, #-32]
ldurh w13, [x29, #-10]
ldur x10, [x29, #-24]
ldurh w11, [x29, #-10]
ldur x8, [x29, #-24]
sub sp, sp, #32
mov x9, sp
; implicit-def: $x12
mov x12, x13
str x12, [x9]
str x10, [x9, #8]
; implicit-def: $x10
mov x10, x11
str x10, [x9, #16]
str x8, [x9, #24]
mov w1, #0
mov x2, #-1
bl ___sprintf_chk
add sp, sp, #32
stur w0, [x29, #-52]
ldur w8, [x29, #-52]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB6_4
b LBB6_3
LBB6_3:
ldur x8, [x29, #-72] ; 8-byte Folded Reload
strb wzr, [x8]
stur wzr, [x29, #-52]
b LBB6_4
LBB6_4:
ldur x2, [x29, #-72] ; 8-byte Folded Reload
adrp x8, l_.str.8@PAGE
add x8, x8, l_.str.8@PAGEOFF
stur x8, [x29, #-64]
ldurh w0, [x29, #-10]
ldur x1, [x29, #-64]
ldursw x3, [x29, #-52]
bl _respond
ldur x8, [x29, #-40]
mov sp, x8
b LBB6_5
LBB6_5:
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, LBB6_7
b LBB6_6
LBB6_6:
bl ___stack_chk_fail
LBB6_7:
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _parse ; -- Begin function parse
.p2align 2
_parse: ; @parse
.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, #192
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur x0, [x29, #-24]
stur x1, [x29, #-32]
stur x2, [x29, #-40]
ldur x0, [x29, #-24]
bl _strlen
add x8, x0, #1
lsr x8, x8, #0
mov x9, sp
stur x9, [x29, #-48]
lsr x9, x8, #0
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-176] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-176] ; 8-byte Folded Reload
mov x9, sp
subs x0, x9, x10
stur x0, [x29, #-136] ; 8-byte Folded Spill
mov sp, x0
stur x8, [x29, #-56]
ldur x1, [x29, #-24]
mov x2, #-1
bl ___strcpy_chk
ldur x0, [x29, #-136] ; 8-byte Folded Reload
bl _strlen
mov x8, x0
ldur x0, [x29, #-136] ; 8-byte Folded Reload
add x8, x8, #1
lsr x8, x8, #0
lsr x9, x8, #0
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-168] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-168] ; 8-byte Folded Reload
mov x9, sp
subs x1, x9, x10
stur x1, [x29, #-160] ; 8-byte Folded Spill
mov sp, x1
stur x8, [x29, #-64]
bl _strlen
mov x8, x0
ldur x0, [x29, #-136] ; 8-byte Folded Reload
add x8, x8, #1
lsr x8, x8, #0
lsr x9, x8, #0
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-152] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-152] ; 8-byte Folded Reload
mov x9, sp
subs x9, x9, x10
mov sp, x9
stur x9, [x29, #-144] ; 8-byte Folded Spill
stur x8, [x29, #-72]
bl _strlen
mov x8, x0
ldur x0, [x29, #-136] ; 8-byte Folded Reload
add x8, x8, #1
lsr x8, x8, #0
lsr x9, x8, #0
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-128] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-128] ; 8-byte Folded Reload
mov x9, sp
subs x1, x9, x10
stur x1, [x29, #-120] ; 8-byte Folded Spill
mov sp, x1
stur x8, [x29, #-80]
stur wzr, [x29, #-84]
adrp x1, l_.str.37@PAGE
add x1, x1, l_.str.37@PAGEOFF
bl _strtok
stur x0, [x29, #-96]
b LBB7_1
LBB7_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-96]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB7_12
b LBB7_2
LBB7_2: ; in Loop: Header=BB7_1 Depth=1
ldur w8, [x29, #-84]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB7_4
b LBB7_3
LBB7_3: ; in Loop: Header=BB7_1 Depth=1
ldur x0, [x29, #-160] ; 8-byte Folded Reload
ldur x1, [x29, #-96]
mov x2, #-1
bl ___strcpy_chk
b LBB7_11
LBB7_4: ; in Loop: Header=BB7_1 Depth=1
ldur w8, [x29, #-84]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB7_6
b LBB7_5
LBB7_5: ; in Loop: Header=BB7_1 Depth=1
ldur x0, [x29, #-144] ; 8-byte Folded Reload
ldur x1, [x29, #-96]
mov x2, #-1
bl ___strcpy_chk
b LBB7_10
LBB7_6: ; in Loop: Header=BB7_1 Depth=1
ldur w8, [x29, #-84]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB7_8
b LBB7_7
LBB7_7: ; in Loop: Header=BB7_1 Depth=1
ldur x0, [x29, #-120] ; 8-byte Folded Reload
ldur x1, [x29, #-96]
mov x2, #-1
bl ___strcpy_chk
b LBB7_9
LBB7_8:
mov w0, #400
bl _error
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-9]
mov w8, #1
stur w8, [x29, #-100]
b LBB7_36
LBB7_9: ; in Loop: Header=BB7_1 Depth=1
b LBB7_10
LBB7_10: ; in Loop: Header=BB7_1 Depth=1
b LBB7_11
LBB7_11: ; in Loop: Header=BB7_1 Depth=1
mov x0, #0
adrp x1, l_.str.37@PAGE
add x1, x1, l_.str.37@PAGEOFF
bl _strtok
stur x0, [x29, #-96]
ldur w8, [x29, #-84]
add w8, w8, #1
stur w8, [x29, #-84]
b LBB7_1
LBB7_12:
ldur w8, [x29, #-84]
subs w8, w8, #3
cset w8, eq
tbnz w8, #0, LBB7_14
b LBB7_13
LBB7_13:
mov w0, #400
bl _error
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-9]
mov w8, #1
stur w8, [x29, #-100]
b LBB7_36
LBB7_14:
ldur x8, [x29, #-144] ; 8-byte Folded Reload
ldrsb w8, [x8]
subs w8, w8, #47
cset w8, eq
tbnz w8, #0, LBB7_16
b LBB7_15
LBB7_15:
mov w0, #501
bl _error
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-9]
mov w8, #1
stur w8, [x29, #-100]
b LBB7_36
LBB7_16:
ldur x0, [x29, #-160] ; 8-byte Folded Reload
adrp x1, l_.str.38@PAGE
add x1, x1, l_.str.38@PAGEOFF
mov x2, #4
bl _strncmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB7_18
b LBB7_17
LBB7_17:
mov w0, #405
bl _error
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-9]
mov w8, #1
stur w8, [x29, #-100]
b LBB7_36
LBB7_18:
ldur x0, [x29, #-144] ; 8-byte Folded Reload
mov w1, #34
bl _strchr
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB7_20
b LBB7_19
LBB7_19:
mov w0, #400
bl _error
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-9]
mov w8, #1
stur w8, [x29, #-100]
b LBB7_36
LBB7_20:
ldur x0, [x29, #-120] ; 8-byte Folded Reload
adrp x1, l_.str.39@PAGE
add x1, x1, l_.str.39@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB7_22
b LBB7_21
LBB7_21:
mov w0, #505
bl _error
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-9]
mov w8, #1
stur w8, [x29, #-100]
b LBB7_36
LBB7_22:
ldur x0, [x29, #-144] ; 8-byte Folded Reload
mov w1, #63
bl _strchr
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB7_24
b LBB7_23
LBB7_23:
ldur x1, [x29, #-144] ; 8-byte Folded Reload
ldur x0, [x29, #-32]
mov x2, #-1
bl ___strcpy_chk
ldur x8, [x29, #-40]
strb wzr, [x8]
b LBB7_35
LBB7_24:
ldur x0, [x29, #-144] ; 8-byte Folded Reload
mov w1, #63
bl _strchr
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB7_34
b LBB7_25
LBB7_25:
ldur x0, [x29, #-144] ; 8-byte Folded Reload
stur wzr, [x29, #-84]
adrp x1, l_.str.40@PAGE
add x1, x1, l_.str.40@PAGEOFF
bl _strtok
stur x0, [x29, #-112]
b LBB7_26
LBB7_26: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-112]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB7_33
b LBB7_27
LBB7_27: ; in Loop: Header=BB7_26 Depth=1
ldur w8, [x29, #-84]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB7_29
b LBB7_28
LBB7_28: ; in Loop: Header=BB7_26 Depth=1
ldur x0, [x29, #-32]
ldur x1, [x29, #-112]
mov x2, #-1
bl ___strcpy_chk
b LBB7_32
LBB7_29: ; in Loop: Header=BB7_26 Depth=1
ldur w8, [x29, #-84]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB7_31
b LBB7_30
LBB7_30: ; in Loop: Header=BB7_26 Depth=1
ldur x0, [x29, #-40]
ldur x1, [x29, #-112]
mov x2, #-1
bl ___strcpy_chk
b LBB7_31
LBB7_31: ; in Loop: Header=BB7_26 Depth=1
b LBB7_32
LBB7_32: ; in Loop: Header=BB7_26 Depth=1
mov x0, #0
adrp x1, l_.str.40@PAGE
add x1, x1, l_.str.40@PAGEOFF
bl _strtok
stur x0, [x29, #-112]
ldur w8, [x29, #-84]
add w8, w8, #1
stur w8, [x29, #-84]
b LBB7_26
LBB7_33:
b LBB7_34
LBB7_34:
b LBB7_35
LBB7_35:
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-9]
mov w8, #1
stur w8, [x29, #-100]
b LBB7_36
LBB7_36:
ldur x8, [x29, #-48]
mov sp, x8
ldurb w8, [x29, #-9]
stur w8, [x29, #-180] ; 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, LBB7_38
b LBB7_37
LBB7_37:
bl ___stack_chk_fail
LBB7_38:
ldur w8, [x29, #-180] ; 4-byte Folded Reload
and w0, w8, #0x1
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _urldecode ; -- Begin function urldecode
.p2align 2
_urldecode: ; @urldecode
.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 x8, [x29, #-16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB8_2
b LBB8_1
LBB8_1:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB8_16
LBB8_2:
ldur x0, [x29, #-16]
bl _strlen
mov x1, #1
add x0, x0, #1
bl _calloc
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB8_4
b LBB8_3
LBB8_3:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB8_16
LBB8_4:
str wzr, [sp, #20]
str wzr, [sp, #16]
ldur x0, [x29, #-16]
bl _strlen
mov x8, x0
str w8, [sp, #12]
b LBB8_5
LBB8_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #20]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB8_15
b LBB8_6
LBB8_6: ; in Loop: Header=BB8_5 Depth=1
ldur x8, [x29, #-16]
ldrsw x9, [sp, #20]
ldrsb w8, [x8, x9]
subs w8, w8, #37
cset w8, ne
tbnz w8, #0, LBB8_9
b LBB8_7
LBB8_7: ; in Loop: Header=BB8_5 Depth=1
ldr w8, [sp, #20]
ldr w9, [sp, #12]
subs w9, w9, #2
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB8_9
b LBB8_8
LBB8_8: ; in Loop: Header=BB8_5 Depth=1
ldur x8, [x29, #-16]
ldr w9, [sp, #20]
add w9, w9, #1
add x8, x8, w9, sxtw
ldrb w8, [x8]
add x0, sp, #9
strb w8, [sp, #9]
ldur x8, [x29, #-16]
ldr w9, [sp, #20]
add w9, w9, #2
add x8, x8, w9, sxtw
ldrb w8, [x8]
strb w8, [sp, #10]
strb wzr, [sp, #11]
mov x1, #0
mov w2, #16
bl _strtol
ldr x9, [sp, #24]
ldrsw x10, [sp, #16]
mov x8, x0
strb w8, [x9, x10]
ldr w8, [sp, #20]
add w8, w8, #2
str w8, [sp, #20]
b LBB8_13
LBB8_9: ; in Loop: Header=BB8_5 Depth=1
ldur x8, [x29, #-16]
ldrsw x9, [sp, #20]
ldrsb w8, [x8, x9]
subs w8, w8, #43
cset w8, ne
tbnz w8, #0, LBB8_11
b LBB8_10
LBB8_10: ; in Loop: Header=BB8_5 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp, #16]
add x9, x8, x9
mov w8, #32
strb w8, [x9]
b LBB8_12
LBB8_11: ; in Loop: Header=BB8_5 Depth=1
ldur x8, [x29, #-16]
ldrsw x9, [sp, #20]
add x8, x8, x9
ldrb w8, [x8]
ldr x9, [sp, #24]
ldrsw x10, [sp, #16]
add x9, x9, x10
strb w8, [x9]
b LBB8_12
LBB8_12: ; in Loop: Header=BB8_5 Depth=1
b LBB8_13
LBB8_13: ; in Loop: Header=BB8_5 Depth=1
b LBB8_14
LBB8_14: ; in Loop: Header=BB8_5 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB8_5
LBB8_15:
ldr x8, [sp, #24]
stur x8, [x29, #-8]
b LBB8_16
LBB8_16:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _redirect ; -- Begin function redirect
.p2align 2
_redirect: ; @redirect
.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 x0, [x29, #-16]
adrp x8, l_.str.52@PAGE
add x8, x8, l_.str.52@PAGEOFF
stur x8, [x29, #-24]
ldur x0, [x29, #-24]
bl _strlen
subs x8, x0, #2
stur x8, [x29, #-72] ; 8-byte Folded Spill
ldur x0, [x29, #-16]
bl _strlen
ldur x8, [x29, #-72] ; 8-byte Folded Reload
add x8, x8, x0
add x8, x8, #1
mov x9, sp
stur x9, [x29, #-32]
lsr x9, x8, #0
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 x0, x9, x10
stur x0, [x29, #-56] ; 8-byte Folded Spill
mov sp, x0
stur x8, [x29, #-40]
ldur x3, [x29, #-24]
ldur x8, [x29, #-16]
sub sp, sp, #16
mov x9, sp
str x8, [x9]
mov w1, #0
mov x2, #-1
bl ___sprintf_chk
add sp, sp, #16
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB9_2
b LBB9_1
LBB9_1:
mov w0, #500
bl _error
mov w8, #1
stur w8, [x29, #-44]
b LBB9_3
LBB9_2:
ldur x1, [x29, #-56] ; 8-byte Folded Reload
mov w0, #301
mov x2, #0
mov x3, #0
bl _respond
stur wzr, [x29, #-44]
b LBB9_3
LBB9_3:
ldur x8, [x29, #-32]
mov sp, x8
; %bb.4:
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, LBB9_6
b LBB9_5
LBB9_5:
bl ___stack_chk_fail
LBB9_6:
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
; %bb.7:
.cfi_endproc
; -- End function
.globl _indexes ; -- Begin function indexes
.p2align 2
_indexes: ; @indexes
.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, #-16]
ldur x0, [x29, #-16]
bl _strlen
mov x8, x0
stur w8, [x29, #-20]
ldur w8, [x29, #-20]
add w9, w8, #11
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
lsr x1, x8, #0
mov x0, #1
bl _calloc
str x0, [sp, #32]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB10_2
b LBB10_1
LBB10_1:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB10_10
LBB10_2:
ldr x0, [sp, #32]
ldur x1, [x29, #-16]
mov x2, #-1
str x2, [sp, #16] ; 8-byte Folded Spill
bl ___strcpy_chk
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #32]
adrp x1, l_.str.14@PAGE
add x1, x1, l_.str.14@PAGEOFF
bl ___strcat_chk
ldr x0, [sp, #32]
mov w1, #0
bl _access
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB10_4
b LBB10_3
LBB10_3:
ldr x0, [sp, #32]
bl _free
b LBB10_5
LBB10_4:
ldr x8, [sp, #32]
stur x8, [x29, #-8]
b LBB10_10
LBB10_5:
ldur w8, [x29, #-20]
add w9, w8, #12
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
lsr x1, x8, #0
mov x0, #1
bl _calloc
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB10_7
b LBB10_6
LBB10_6:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB10_10
LBB10_7:
ldr x0, [sp, #24]
ldur x1, [x29, #-16]
mov x2, #-1
str x2, [sp, #8] ; 8-byte Folded Spill
bl ___strcpy_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #24]
adrp x1, l_.str.15@PAGE
add x1, x1, l_.str.15@PAGEOFF
bl ___strcat_chk
ldr x0, [sp, #24]
mov w1, #0
bl _access
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB10_9
b LBB10_8
LBB10_8:
ldr x0, [sp, #24]
bl _free
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB10_10
LBB10_9:
ldr x8, [sp, #24]
stur x8, [x29, #-8]
b LBB10_10
LBB10_10:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _list ; -- Begin function list
.p2align 2
_list: ; @list
.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, #208
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur x0, [x29, #-16]
ldur x0, [x29, #-16]
mov w1, #5
bl _access
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB11_2
b LBB11_1
LBB11_1:
mov w0, #403
bl _error
b LBB11_20
LBB11_2:
ldur x0, [x29, #-16]
bl _opendir
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB11_4
b LBB11_3
LBB11_3:
b LBB11_20
LBB11_4:
mov x0, #1
bl _malloc
stur x0, [x29, #-32]
ldur x8, [x29, #-32]
strb wzr, [x8]
sub x1, x29, #40
mov x2, #0
stur xzr, [x29, #-40]
ldur x0, [x29, #-16]
adrp x3, _alphasort@GOTPAGE
ldr x3, [x3, _alphasort@GOTPAGEOFF]
bl _scandir
stur w0, [x29, #-44]
stur wzr, [x29, #-48]
b LBB11_5
LBB11_5: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-48]
ldur w9, [x29, #-44]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB11_16
b LBB11_6
LBB11_6: ; in Loop: Header=BB11_5 Depth=1
ldur x8, [x29, #-40]
ldursw x9, [x29, #-48]
ldr x8, [x8, x9, lsl #3]
add x0, x8, #21
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, LBB11_8
b LBB11_7
LBB11_7: ; in Loop: Header=BB11_5 Depth=1
b LBB11_15
LBB11_8: ; in Loop: Header=BB11_5 Depth=1
ldur x8, [x29, #-40]
ldursw x9, [x29, #-48]
ldr x8, [x8, x9, lsl #3]
add x0, x8, #21
bl _htmlspecialchars
stur x0, [x29, #-56]
ldur x8, [x29, #-56]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB11_10
b LBB11_9
LBB11_9:
ldur x0, [x29, #-32]
bl _free
ldur x0, [x29, #-40]
ldur w1, [x29, #-44]
bl _freedir
mov w0, #500
bl _error
b LBB11_20
LBB11_10: ; in Loop: Header=BB11_5 Depth=1
adrp x8, l_.str.20@PAGE
add x8, x8, l_.str.20@PAGEOFF
stur x8, [x29, #-64]
ldur x8, [x29, #-32]
stur x8, [x29, #-120] ; 8-byte Folded Spill
ldur x0, [x29, #-32]
bl _strlen
stur x0, [x29, #-144] ; 8-byte Folded Spill
ldur x0, [x29, #-64]
bl _strlen
mov x8, x0
ldur x0, [x29, #-144] ; 8-byte Folded Reload
add x8, x0, x8
subs x8, x8, #2
stur x8, [x29, #-136] ; 8-byte Folded Spill
ldur x0, [x29, #-56]
bl _strlen
ldur x8, [x29, #-136] ; 8-byte Folded Reload
add x8, x8, x0
subs x8, x8, #2
stur x8, [x29, #-128] ; 8-byte Folded Spill
ldur x0, [x29, #-56]
bl _strlen
ldur x8, [x29, #-128] ; 8-byte Folded Reload
mov x9, x0
ldur x0, [x29, #-120] ; 8-byte Folded Reload
add x8, x8, x9
add x1, x8, #1
bl _realloc
stur x0, [x29, #-32]
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB11_12
b LBB11_11
LBB11_11:
ldur x0, [x29, #-56]
bl _free
ldur x0, [x29, #-40]
ldur w1, [x29, #-44]
bl _freedir
mov w0, #500
bl _error
b LBB11_20
LBB11_12: ; in Loop: Header=BB11_5 Depth=1
ldur x8, [x29, #-32]
stur x8, [x29, #-152] ; 8-byte Folded Spill
ldur x0, [x29, #-32]
bl _strlen
ldur x8, [x29, #-152] ; 8-byte Folded Reload
add x0, x8, x0
ldur x3, [x29, #-64]
ldur x10, [x29, #-56]
ldur x8, [x29, #-56]
sub sp, sp, #16
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
mov w1, #0
mov x2, #-1
bl ___sprintf_chk
add sp, sp, #16
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB11_14
b LBB11_13
LBB11_13:
ldur x0, [x29, #-56]
bl _free
ldur x0, [x29, #-40]
ldur w1, [x29, #-44]
bl _freedir
ldur x0, [x29, #-32]
bl _free
mov w0, #500
bl _error
b LBB11_20
LBB11_14: ; in Loop: Header=BB11_5 Depth=1
ldur x0, [x29, #-56]
bl _free
b LBB11_15
LBB11_15: ; in Loop: Header=BB11_5 Depth=1
ldur w8, [x29, #-48]
add w8, w8, #1
stur w8, [x29, #-48]
b LBB11_5
LBB11_16:
ldur x0, [x29, #-40]
ldur w1, [x29, #-44]
bl _freedir
ldur x8, [x29, #-16]
stur x8, [x29, #-200] ; 8-byte Folded Spill
adrp x8, _root@PAGE
ldr x0, [x8, _root@PAGEOFF]
bl _strlen
ldur x8, [x29, #-200] ; 8-byte Folded Reload
add x8, x8, x0
stur x8, [x29, #-72]
adrp x8, l_.str.21@PAGE
add x8, x8, l_.str.21@PAGEOFF
stur x8, [x29, #-80]
ldur x0, [x29, #-80]
bl _strlen
subs x8, x0, #2
stur x8, [x29, #-192] ; 8-byte Folded Spill
ldur x0, [x29, #-72]
bl _strlen
ldur x8, [x29, #-192] ; 8-byte Folded Reload
add x8, x8, x0
subs x8, x8, #2
stur x8, [x29, #-184] ; 8-byte Folded Spill
ldur x0, [x29, #-72]
bl _strlen
ldur x8, [x29, #-184] ; 8-byte Folded Reload
add x8, x8, x0
subs x8, x8, #2
stur x8, [x29, #-176] ; 8-byte Folded Spill
ldur x0, [x29, #-32]
bl _strlen
ldur x8, [x29, #-176] ; 8-byte Folded Reload
add x8, x8, x0
add x8, x8, #1
mov x9, sp
stur x9, [x29, #-88]
lsr x9, x8, #0
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-168] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-168] ; 8-byte Folded Reload
mov x9, sp
subs x0, x9, x10
stur x0, [x29, #-160] ; 8-byte Folded Spill
mov sp, x0
stur x8, [x29, #-96]
ldur x3, [x29, #-80]
ldur x11, [x29, #-72]
ldur x10, [x29, #-72]
ldur x8, [x29, #-32]
sub sp, sp, #32
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
mov w1, #0
mov x2, #-1
bl ___sprintf_chk
add sp, sp, #32
stur w0, [x29, #-100]
ldur w8, [x29, #-100]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB11_18
b LBB11_17
LBB11_17:
ldur x0, [x29, #-32]
bl _free
ldur x0, [x29, #-24]
bl _closedir
mov w0, #500
bl _error
mov w8, #1
stur w8, [x29, #-104]
b LBB11_19
LBB11_18:
ldur x0, [x29, #-32]
bl _free
ldur x0, [x29, #-24]
bl _closedir
ldur x2, [x29, #-160] ; 8-byte Folded Reload
adrp x8, l_.str.8@PAGE
add x8, x8, l_.str.8@PAGEOFF
stur x8, [x29, #-112]
ldur x1, [x29, #-112]
ldursw x3, [x29, #-100]
mov w0, #200
bl _respond
stur wzr, [x29, #-104]
b LBB11_19
LBB11_19:
ldur x8, [x29, #-88]
mov sp, x8
LBB11_20:
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, LBB11_22
b LBB11_21
LBB11_21:
bl ___stack_chk_fail
LBB11_22:
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
; %bb.23:
.cfi_endproc
; -- End function
.globl _lookup ; -- Begin function lookup
.p2align 2
_lookup: ; @lookup
.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]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB12_2
b LBB12_1
LBB12_1:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB12_30
LBB12_2:
ldr x0, [sp, #16]
mov w1, #46
bl _strrchr
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB12_4
b LBB12_3
LBB12_3:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB12_30
LBB12_4:
ldr x0, [sp, #8]
adrp x1, l_.str.22@PAGE
add x1, x1, l_.str.22@PAGEOFF
bl _strcasecmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB12_6
b LBB12_5
LBB12_5:
adrp x8, l_.str.23@PAGE
add x8, x8, l_.str.23@PAGEOFF
stur x8, [x29, #-8]
b LBB12_30
LBB12_6:
ldr x0, [sp, #8]
adrp x1, l_.str.24@PAGE
add x1, x1, l_.str.24@PAGEOFF
bl _strcasecmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB12_8
b LBB12_7
LBB12_7:
adrp x8, l_.str.25@PAGE
add x8, x8, l_.str.25@PAGEOFF
stur x8, [x29, #-8]
b LBB12_30
LBB12_8:
ldr x0, [sp, #8]
adrp x1, l_.str.26@PAGE
add x1, x1, l_.str.26@PAGEOFF
bl _strcasecmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB12_10
b LBB12_9
LBB12_9:
adrp x8, l_.str.27@PAGE
add x8, x8, l_.str.27@PAGEOFF
stur x8, [x29, #-8]
b LBB12_30
LBB12_10:
ldr x0, [sp, #8]
adrp x1, l_.str.28@PAGE
add x1, x1, l_.str.28@PAGEOFF
bl _strcasecmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB12_12
b LBB12_11
LBB12_11:
adrp x8, l_.str.29@PAGE
add x8, x8, l_.str.29@PAGEOFF
stur x8, [x29, #-8]
b LBB12_30
LBB12_12:
ldr x0, [sp, #8]
adrp x1, l_.str.30@PAGE
add x1, x1, l_.str.30@PAGEOFF
bl _strcasecmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB12_14
b LBB12_13
LBB12_13:
adrp x8, l_.str.31@PAGE
add x8, x8, l_.str.31@PAGEOFF
stur x8, [x29, #-8]
b LBB12_30
LBB12_14:
ldr x0, [sp, #8]
adrp x1, l_.str.32@PAGE
add x1, x1, l_.str.32@PAGEOFF
bl _strcasecmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB12_16
b LBB12_15
LBB12_15:
adrp x8, l_.str.33@PAGE
add x8, x8, l_.str.33@PAGEOFF
stur x8, [x29, #-8]
b LBB12_30
LBB12_16:
ldr x0, [sp, #8]
adrp x1, l_.str.34@PAGE
add x1, x1, l_.str.34@PAGEOFF
bl _strcasecmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB12_18
b LBB12_17
LBB12_17:
adrp x8, l_.str.6@PAGE
add x8, x8, l_.str.6@PAGEOFF
stur x8, [x29, #-8]
b LBB12_30
LBB12_18:
ldr x0, [sp, #8]
adrp x1, l_.str.35@PAGE
add x1, x1, l_.str.35@PAGEOFF
bl _strcasecmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB12_20
b LBB12_19
LBB12_19:
adrp x8, l_.str.36@PAGE
add x8, x8, l_.str.36@PAGEOFF
stur x8, [x29, #-8]
b LBB12_30
LBB12_20:
b LBB12_21
LBB12_21:
b LBB12_22
LBB12_22:
b LBB12_23
LBB12_23:
b LBB12_24
LBB12_24:
b LBB12_25
LBB12_25:
b LBB12_26
LBB12_26:
b LBB12_27
LBB12_27:
b LBB12_28
LBB12_28:
b LBB12_29
LBB12_29:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB12_30
LBB12_30:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _interpret ; -- Begin function interpret
.p2align 2
_interpret: ; @interpret
.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, #160
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 x1, [x29, #-24]
ldur x0, [x29, #-16]
mov w1, #4
bl _access
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB13_2
b LBB13_1
LBB13_1:
mov w0, #403
bl _error
b LBB13_12
LBB13_2:
adrp x8, l_.str.16@PAGE
add x8, x8, l_.str.16@PAGEOFF
stur x8, [x29, #-32]
ldur x0, [x29, #-32]
bl _strlen
stur x0, [x29, #-136] ; 8-byte Folded Spill
ldur x0, [x29, #-16]
bl _strlen
mov x8, x0
ldur x0, [x29, #-136] ; 8-byte Folded Reload
subs x8, x8, #2
add x8, x0, x8
stur x8, [x29, #-128] ; 8-byte Folded Spill
ldur x0, [x29, #-24]
bl _strlen
ldur x8, [x29, #-128] ; 8-byte Folded Reload
subs x9, x0, #2
add x8, x8, x9
add x8, x8, #1
mov x9, sp
stur x9, [x29, #-40]
lsr x9, x8, #0
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-120] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-120] ; 8-byte Folded Reload
mov x9, sp
subs x0, x9, x10
stur x0, [x29, #-112] ; 8-byte Folded Spill
mov sp, x0
stur x8, [x29, #-48]
ldur x3, [x29, #-32]
ldur x10, [x29, #-24]
ldur x8, [x29, #-16]
sub sp, sp, #16
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
mov w1, #0
mov x2, #-1
bl ___sprintf_chk
add sp, sp, #16
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB13_4
b LBB13_3
LBB13_3:
mov w0, #500
bl _error
mov w8, #1
stur w8, [x29, #-52]
b LBB13_11
LBB13_4:
ldur x0, [x29, #-112] ; 8-byte Folded Reload
adrp x1, l_.str.17@PAGE
add x1, x1, l_.str.17@PAGEOFF
bl _popen
stur x0, [x29, #-64]
ldur x8, [x29, #-64]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB13_6
b LBB13_5
LBB13_5:
mov w0, #500
bl _error
mov w8, #1
stur w8, [x29, #-52]
b LBB13_11
LBB13_6:
ldur x0, [x29, #-64]
sub x1, x29, #72
sub x2, x29, #80
bl _load
ands w8, w0, #0x1
cset w8, ne
tbnz w8, #0, LBB13_8
b LBB13_7
LBB13_7:
mov w0, #500
bl _error
mov w8, #1
stur w8, [x29, #-52]
b LBB13_11
LBB13_8:
ldur x0, [x29, #-64]
bl _pclose
ldur x8, [x29, #-72]
stur x8, [x29, #-88]
ldur x0, [x29, #-88]
adrp x1, l_.str.18@PAGE
add x1, x1, l_.str.18@PAGEOFF
bl _strstr
stur x0, [x29, #-96]
ldur x8, [x29, #-96]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB13_10
b LBB13_9
LBB13_9:
ldur x0, [x29, #-72]
bl _free
mov w0, #500
bl _error
mov w8, #1
stur w8, [x29, #-52]
b LBB13_11
LBB13_10:
ldur x8, [x29, #-96]
add x8, x8, #2
ldur x9, [x29, #-88]
subs x8, x8, x9
add x8, x8, #1
lsr x9, x8, #0
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-152] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-152] ; 8-byte Folded Reload
mov x9, sp
subs x0, x9, x10
mov sp, x0
stur x0, [x29, #-144] ; 8-byte Folded Spill
stur x8, [x29, #-104]
ldur x1, [x29, #-72]
ldur x8, [x29, #-96]
add x8, x8, #2
ldur x9, [x29, #-88]
subs x2, x8, x9
mov x3, #-1
bl ___strncpy_chk
ldur x1, [x29, #-144] ; 8-byte Folded Reload
ldur x8, [x29, #-96]
add x8, x8, #2
ldur x9, [x29, #-88]
subs x8, x8, x9
add x8, x1, x8
strb wzr, [x8]
ldur x8, [x29, #-96]
add x2, x8, #4
ldur x8, [x29, #-80]
ldur x9, [x29, #-96]
ldur x10, [x29, #-88]
subs x9, x9, x10
add x9, x9, #4
subs x3, x8, x9
mov w0, #200
bl _respond
ldur x0, [x29, #-72]
bl _free
stur wzr, [x29, #-52]
b LBB13_11
LBB13_11:
ldur x8, [x29, #-40]
mov sp, x8
LBB13_12:
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, LBB13_14
b LBB13_13
LBB13_13:
bl ___stack_chk_fail
LBB13_14:
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
; %bb.15:
.cfi_endproc
; -- End function
.globl _transfer ; -- Begin function transfer
.p2align 2
_transfer: ; @transfer
.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, #112
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 x1, [x29, #-24]
ldur x0, [x29, #-16]
mov w1, #4
bl _access
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB14_2
b LBB14_1
LBB14_1:
mov w0, #403
bl _error
b LBB14_10
LBB14_2:
ldur x0, [x29, #-16]
adrp x1, l_.str.17@PAGE
add x1, x1, l_.str.17@PAGEOFF
bl _fopen
stur x0, [x29, #-32]
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB14_4
b LBB14_3
LBB14_3:
mov w0, #500
bl _error
b LBB14_10
LBB14_4:
ldur x0, [x29, #-32]
sub x1, x29, #40
sub x2, x29, #48
bl _load
ands w8, w0, #0x1
cset w8, ne
tbnz w8, #0, LBB14_6
b LBB14_5
LBB14_5:
mov w0, #500
bl _error
b LBB14_10
LBB14_6:
ldur x0, [x29, #-32]
bl _fclose
adrp x8, l_.str.63@PAGE
add x8, x8, l_.str.63@PAGEOFF
stur x8, [x29, #-56]
ldur x0, [x29, #-56]
bl _strlen
subs x8, x0, #2
stur x8, [x29, #-104] ; 8-byte Folded Spill
ldur x0, [x29, #-24]
bl _strlen
ldur x8, [x29, #-104] ; 8-byte Folded Reload
add x8, x8, x0
add x8, x8, #1
mov x9, sp
stur x9, [x29, #-64]
lsr x9, x8, #0
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 x0, x9, x10
stur x0, [x29, #-88] ; 8-byte Folded Spill
mov sp, x0
stur x8, [x29, #-72]
ldur x3, [x29, #-56]
ldur x8, [x29, #-24]
sub sp, sp, #16
mov x9, sp
str x8, [x9]
mov w1, #0
mov x2, #-1
bl ___sprintf_chk
add sp, sp, #16
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB14_8
b LBB14_7
LBB14_7:
mov w0, #500
bl _error
mov w8, #1
stur w8, [x29, #-76]
b LBB14_9
LBB14_8:
ldur x1, [x29, #-88] ; 8-byte Folded Reload
ldur x2, [x29, #-40]
ldur x3, [x29, #-48]
mov w0, #200
bl _respond
ldur x0, [x29, #-40]
bl _free
stur wzr, [x29, #-76]
b LBB14_9
LBB14_9:
ldur x8, [x29, #-64]
mov sp, x8
LBB14_10:
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, LBB14_12
b LBB14_11
LBB14_11:
bl ___stack_chk_fail
LBB14_12:
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
; %bb.13:
.cfi_endproc
; -- End function
.globl _reason ; -- Begin function reason
.p2align 2
_reason: ; @reason
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
strh w0, [sp, #6]
ldrh w8, [sp, #6]
str w8, [sp] ; 4-byte Folded Spill
subs w8, w8, #200
cset w8, eq
tbnz w8, #0, LBB15_11
b LBB15_1
LBB15_1:
ldr w8, [sp] ; 4-byte Folded Reload
subs w8, w8, #301
cset w8, eq
tbnz w8, #0, LBB15_12
b LBB15_2
LBB15_2:
ldr w8, [sp] ; 4-byte Folded Reload
subs w8, w8, #400
cset w8, eq
tbnz w8, #0, LBB15_13
b LBB15_3
LBB15_3:
ldr w8, [sp] ; 4-byte Folded Reload
subs w8, w8, #403
cset w8, eq
tbnz w8, #0, LBB15_14
b LBB15_4
LBB15_4:
ldr w8, [sp] ; 4-byte Folded Reload
subs w8, w8, #404
cset w8, eq
tbnz w8, #0, LBB15_15
b LBB15_5
LBB15_5:
ldr w8, [sp] ; 4-byte Folded Reload
subs w8, w8, #405
cset w8, eq
tbnz w8, #0, LBB15_16
b LBB15_6
LBB15_6:
ldr w8, [sp] ; 4-byte Folded Reload
subs w8, w8, #414
cset w8, eq
tbnz w8, #0, LBB15_17
b LBB15_7
LBB15_7:
ldr w8, [sp] ; 4-byte Folded Reload
subs w8, w8, #418
cset w8, eq
tbnz w8, #0, LBB15_18
b LBB15_8
LBB15_8:
ldr w8, [sp] ; 4-byte Folded Reload
subs w8, w8, #500
cset w8, eq
tbnz w8, #0, LBB15_19
b LBB15_9
LBB15_9:
ldr w8, [sp] ; 4-byte Folded Reload
subs w8, w8, #501
cset w8, eq
tbnz w8, #0, LBB15_20
b LBB15_10
LBB15_10:
ldr w8, [sp] ; 4-byte Folded Reload
subs w8, w8, #505
cset w8, eq
tbnz w8, #0, LBB15_21
b LBB15_22
LBB15_11:
adrp x8, l_.str.41@PAGE
add x8, x8, l_.str.41@PAGEOFF
str x8, [sp, #8]
b LBB15_23
LBB15_12:
adrp x8, l_.str.42@PAGE
add x8, x8, l_.str.42@PAGEOFF
str x8, [sp, #8]
b LBB15_23
LBB15_13:
adrp x8, l_.str.43@PAGE
add x8, x8, l_.str.43@PAGEOFF
str x8, [sp, #8]
b LBB15_23
LBB15_14:
adrp x8, l_.str.44@PAGE
add x8, x8, l_.str.44@PAGEOFF
str x8, [sp, #8]
b LBB15_23
LBB15_15:
adrp x8, l_.str.45@PAGE
add x8, x8, l_.str.45@PAGEOFF
str x8, [sp, #8]
b LBB15_23
LBB15_16:
adrp x8, l_.str.46@PAGE
add x8, x8, l_.str.46@PAGEOFF
str x8, [sp, #8]
b LBB15_23
LBB15_17:
adrp x8, l_.str.47@PAGE
add x8, x8, l_.str.47@PAGEOFF
str x8, [sp, #8]
b LBB15_23
LBB15_18:
adrp x8, l_.str.48@PAGE
add x8, x8, l_.str.48@PAGEOFF
str x8, [sp, #8]
b LBB15_23
LBB15_19:
adrp x8, l_.str.49@PAGE
add x8, x8, l_.str.49@PAGEOFF
str x8, [sp, #8]
b LBB15_23
LBB15_20:
adrp x8, l_.str.50@PAGE
add x8, x8, l_.str.50@PAGEOFF
str x8, [sp, #8]
b LBB15_23
LBB15_21:
adrp x8, l_.str.51@PAGE
add x8, x8, l_.str.51@PAGEOFF
str x8, [sp, #8]
b LBB15_23
LBB15_22:
; kill: def $x8 killed $xzr
str xzr, [sp, #8]
b LBB15_23
LBB15_23:
ldr x0, [sp, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _respond ; -- Begin function respond
.p2align 2
_respond: ; @respond
.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]
stur x2, [x29, #-24]
str x3, [sp, #32]
ldur w8, [x29, #-4]
and w0, w8, #0xffff
bl _reason
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB16_2
b LBB16_1
LBB16_1:
b LBB16_14
LBB16_2:
adrp x8, _cfd@PAGE
ldr w0, [x8, _cfd@PAGEOFF]
ldur w8, [x29, #-4]
; implicit-def: $x10
mov x10, x8
ldr x8, [sp, #24]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.53@PAGE
add x1, x1, l_.str.53@PAGEOFF
bl _dprintf
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB16_4
b LBB16_3
LBB16_3:
b LBB16_14
LBB16_4:
adrp x8, _cfd@PAGE
ldr w0, [x8, _cfd@PAGEOFF]
ldur x8, [x29, #-16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _dprintf
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB16_6
b LBB16_5
LBB16_5:
b LBB16_14
LBB16_6:
adrp x8, _cfd@PAGE
ldr w0, [x8, _cfd@PAGEOFF]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _dprintf
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB16_8
b LBB16_7
LBB16_7:
b LBB16_14
LBB16_8:
adrp x8, _cfd@PAGE
ldr w0, [x8, _cfd@PAGEOFF]
ldur x1, [x29, #-24]
ldr x2, [sp, #32]
bl _write
adds x8, x0, #1
cset w8, ne
tbnz w8, #0, LBB16_10
b LBB16_9
LBB16_9:
b LBB16_14
LBB16_10:
ldur w8, [x29, #-4]
subs w8, w8, #200
cset w8, ne
tbnz w8, #0, LBB16_12
b LBB16_11
LBB16_11:
adrp x0, l_.str.54@PAGE
add x0, x0, l_.str.54@PAGEOFF
bl _printf
b LBB16_13
LBB16_12:
adrp x0, l_.str.55@PAGE
add x0, x0, l_.str.55@PAGEOFF
bl _printf
b LBB16_13
LBB16_13:
ldur w8, [x29, #-4]
; implicit-def: $x10
mov x10, x8
ldr x8, [sp, #24]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.56@PAGE
add x0, x0, l_.str.56@PAGEOFF
bl _printf
adrp x0, l_.str.57@PAGE
add x0, x0, l_.str.57@PAGEOFF
bl _printf
b LBB16_14
LBB16_14:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _freedir ; -- Begin function freedir
.p2align 2
_freedir: ; @freedir
.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]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB17_6
b LBB17_1
LBB17_1:
str wzr, [sp]
b LBB17_2
LBB17_2: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp]
ldr w9, [sp, #4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB17_5
b LBB17_3
LBB17_3: ; in Loop: Header=BB17_2 Depth=1
ldr x8, [sp, #8]
ldrsw x9, [sp]
ldr x0, [x8, x9, lsl #3]
bl _free
b LBB17_4
LBB17_4: ; in Loop: Header=BB17_2 Depth=1
ldr w8, [sp]
add w8, w8, #1
str w8, [sp]
b LBB17_2
LBB17_5:
ldr x0, [sp, #8]
bl _free
b LBB17_6
LBB17_6:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _htmlspecialchars ; -- Begin function htmlspecialchars
.p2align 2
_htmlspecialchars: ; @htmlspecialchars
.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, #-16]
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB18_2
b LBB18_1
LBB18_1:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB18_34
LBB18_2:
ldur x0, [x29, #-16]
bl _strlen
add x0, x0, #1
bl _malloc
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB18_4
b LBB18_3
LBB18_3:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB18_34
LBB18_4:
ldur x8, [x29, #-24]
strb wzr, [x8]
stur wzr, [x29, #-28]
ldur x0, [x29, #-16]
bl _strlen
mov x8, x0
stur w8, [x29, #-32]
ldur w8, [x29, #-32]
stur w8, [x29, #-36]
b LBB18_5
LBB18_5: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-28]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB18_33
b LBB18_6
LBB18_6: ; in Loop: Header=BB18_5 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-28]
ldrsb w8, [x8, x9]
subs w8, w8, #38
cset w8, ne
tbnz w8, #0, LBB18_10
b LBB18_7
LBB18_7: ; in Loop: Header=BB18_5 Depth=1
adrp x8, l_.str.9@PAGE
add x8, x8, l_.str.9@PAGEOFF
str x8, [sp, #32]
ldr x0, [sp, #32]
bl _strlen
ldursw x8, [x29, #-36]
add x8, x8, x0
; kill: def $w8 killed $w8 killed $x8
stur w8, [x29, #-36]
ldur x0, [x29, #-24]
ldursw x1, [x29, #-36]
bl _realloc
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB18_9
b LBB18_8
LBB18_8:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB18_34
LBB18_9: ; in Loop: Header=BB18_5 Depth=1
ldur x0, [x29, #-24]
ldr x1, [sp, #32]
mov x2, #-1
bl ___strcat_chk
b LBB18_31
LBB18_10: ; in Loop: Header=BB18_5 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-28]
ldrsb w8, [x8, x9]
subs w8, w8, #34
cset w8, ne
tbnz w8, #0, LBB18_14
b LBB18_11
LBB18_11: ; in Loop: Header=BB18_5 Depth=1
adrp x8, l_.str.10@PAGE
add x8, x8, l_.str.10@PAGEOFF
str x8, [sp, #24]
ldr x0, [sp, #24]
bl _strlen
ldursw x8, [x29, #-36]
add x8, x8, x0
; kill: def $w8 killed $w8 killed $x8
stur w8, [x29, #-36]
ldur x0, [x29, #-24]
ldursw x1, [x29, #-36]
bl _realloc
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB18_13
b LBB18_12
LBB18_12:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB18_34
LBB18_13: ; in Loop: Header=BB18_5 Depth=1
ldur x0, [x29, #-24]
ldr x1, [sp, #24]
mov x2, #-1
bl ___strcat_chk
b LBB18_30
LBB18_14: ; in Loop: Header=BB18_5 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-28]
ldrsb w8, [x8, x9]
subs w8, w8, #39
cset w8, ne
tbnz w8, #0, LBB18_18
b LBB18_15
LBB18_15: ; in Loop: Header=BB18_5 Depth=1
adrp x8, l_.str.11@PAGE
add x8, x8, l_.str.11@PAGEOFF
str x8, [sp, #16]
ldr x0, [sp, #16]
bl _strlen
ldursw x8, [x29, #-36]
add x8, x8, x0
; kill: def $w8 killed $w8 killed $x8
stur w8, [x29, #-36]
ldur x0, [x29, #-24]
ldursw x1, [x29, #-36]
bl _realloc
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB18_17
b LBB18_16
LBB18_16:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB18_34
LBB18_17: ; in Loop: Header=BB18_5 Depth=1
ldur x0, [x29, #-24]
ldr x1, [sp, #16]
mov x2, #-1
bl ___strcat_chk
b LBB18_29
LBB18_18: ; in Loop: Header=BB18_5 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-28]
ldrsb w8, [x8, x9]
subs w8, w8, #60
cset w8, ne
tbnz w8, #0, LBB18_22
b LBB18_19
LBB18_19: ; in Loop: Header=BB18_5 Depth=1
adrp x8, l_.str.12@PAGE
add x8, x8, l_.str.12@PAGEOFF
str x8, [sp, #8]
ldr x0, [sp, #8]
bl _strlen
ldursw x8, [x29, #-36]
add x8, x8, x0
; kill: def $w8 killed $w8 killed $x8
stur w8, [x29, #-36]
ldur x0, [x29, #-24]
ldursw x1, [x29, #-36]
bl _realloc
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB18_21
b LBB18_20
LBB18_20:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB18_34
LBB18_21: ; in Loop: Header=BB18_5 Depth=1
ldur x0, [x29, #-24]
ldr x1, [sp, #8]
mov x2, #-1
bl ___strcat_chk
b LBB18_28
LBB18_22: ; in Loop: Header=BB18_5 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-28]
ldrsb w8, [x8, x9]
subs w8, w8, #62
cset w8, ne
tbnz w8, #0, LBB18_26
b LBB18_23
LBB18_23: ; in Loop: Header=BB18_5 Depth=1
adrp x8, l_.str.13@PAGE
add x8, x8, l_.str.13@PAGEOFF
str x8, [sp]
ldr x0, [sp]
bl _strlen
ldursw x8, [x29, #-36]
add x8, x8, x0
; kill: def $w8 killed $w8 killed $x8
stur w8, [x29, #-36]
ldur x0, [x29, #-24]
ldursw x1, [x29, #-36]
bl _realloc
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB18_25
b LBB18_24
LBB18_24:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB18_34
LBB18_25: ; in Loop: Header=BB18_5 Depth=1
ldur x0, [x29, #-24]
ldr x1, [sp]
mov x2, #-1
bl ___strcat_chk
b LBB18_27
LBB18_26: ; in Loop: Header=BB18_5 Depth=1
ldur x0, [x29, #-24]
ldur x8, [x29, #-16]
ldursw x9, [x29, #-28]
add x1, x8, x9
mov x2, #1
mov x3, #-1
bl ___strncat_chk
b LBB18_27
LBB18_27: ; in Loop: Header=BB18_5 Depth=1
b LBB18_28
LBB18_28: ; in Loop: Header=BB18_5 Depth=1
b LBB18_29
LBB18_29: ; in Loop: Header=BB18_5 Depth=1
b LBB18_30
LBB18_30: ; in Loop: Header=BB18_5 Depth=1
b LBB18_31
LBB18_31: ; in Loop: Header=BB18_5 Depth=1
b LBB18_32
LBB18_32: ; in Loop: Header=BB18_5 Depth=1
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB18_5
LBB18_33:
ldur x8, [x29, #-24]
stur x8, [x29, #-8]
b LBB18_34
LBB18_34:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _load ; -- Begin function load
.p2align 2
_load: ; @load
.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, #-16]
stur x1, [x29, #-24]
stur x2, [x29, #-32]
stur wzr, [x29, #-36]
str wzr, [sp, #40]
; kill: def $x8 killed $xzr
str xzr, [sp, #32]
ldur x0, [x29, #-16]
bl _fgetc
str w0, [sp, #28]
b LBB19_1
LBB19_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #28]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB19_11
b LBB19_2
LBB19_2: ; in Loop: Header=BB19_1 Depth=1
ldur w8, [x29, #-36]
add w8, w8, #1
ldr w9, [sp, #40]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB19_9
b LBB19_3
LBB19_3: ; in Loop: Header=BB19_1 Depth=1
ldr w8, [sp, #40]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB19_5
b LBB19_4
LBB19_4: ; in Loop: Header=BB19_1 Depth=1
mov w8, #2
str w8, [sp, #40]
b LBB19_6
LBB19_5: ; in Loop: Header=BB19_1 Depth=1
ldr w8, [sp, #40]
lsl w8, w8, #1
str w8, [sp, #40]
b LBB19_6
LBB19_6: ; in Loop: Header=BB19_1 Depth=1
ldr x0, [sp, #32]
ldrsw x8, [sp, #40]
lsr x1, x8, #0
bl _realloc
str x0, [sp, #16]
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB19_8
b LBB19_7
LBB19_7:
ldr x0, [sp, #32]
bl _free
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB19_12
LBB19_8: ; in Loop: Header=BB19_1 Depth=1
ldr x8, [sp, #16]
str x8, [sp, #32]
b LBB19_9
LBB19_9: ; in Loop: Header=BB19_1 Depth=1
ldr w8, [sp, #28]
ldr x9, [sp, #32]
ldursw x10, [x29, #-36]
strb w8, [x9, x10]
ldur w8, [x29, #-36]
add w8, w8, #1
stur w8, [x29, #-36]
b LBB19_10
LBB19_10: ; in Loop: Header=BB19_1 Depth=1
ldur x0, [x29, #-16]
bl _fgetc
str w0, [sp, #28]
b LBB19_1
LBB19_11:
ldursw x8, [x29, #-36]
lsr x0, x8, #0
bl _malloc
str x0, [sp, #8]
ldr x0, [sp, #8]
ldr x1, [sp, #32]
ldursw x2, [x29, #-36]
mov x3, #-1
bl ___memcpy_chk
ldr x0, [sp, #32]
bl _free
ldr x8, [sp, #8]
ldur x9, [x29, #-24]
str x8, [x9]
ldursw x8, [x29, #-36]
ldur x9, [x29, #-32]
str x8, [x9]
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB19_12
LBB19_12:
ldurb w8, [x29, #-1]
and w0, w8, #0x1
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function _OSSwapInt16
__OSSwapInt16: ; @_OSSwapInt16
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
strh w0, [sp, #14]
ldrh w9, [sp, #14]
ldrh w8, [sp, #14]
asr w8, w8, #8
orr w8, w8, w9, lsl #8
and w0, w8, #0xffff
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _root ; @root
.zerofill __DATA,__common,_root,8,3
.section __DATA,__data
.globl _cfd ; @cfd
.p2align 2
_cfd:
.long 4294967295 ; 0xffffffff
.globl _sfd ; @sfd
.p2align 2
_sfd:
.long 4294967295 ; 0xffffffff
.globl _signaled ; @signaled
.zerofill __DATA,__common,_signaled,1,0
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Usage: server [-p port] /path/to/root"
l_.str.1: ; @.str.1
.asciz "hp:"
l_.str.2: ; @.str.2
.asciz "%s\n"
l_.str.3: ; @.str.3
.asciz "\r\n"
l_.str.4: ; @.str.4
.asciz "%s"
l_.str.5: ; @.str.5
.asciz "/"
l_.str.6: ; @.str.6
.asciz "text/x-php"
l_.str.7: ; @.str.7
.asciz "<html><head><title>%i %s</title></head><body><h1>%i %s</h1></body></html>"
l_.str.8: ; @.str.8
.asciz "Content-Type: text/html\r\n"
l_.str.9: ; @.str.9
.asciz "&"
l_.str.10: ; @.str.10
.asciz """
l_.str.11: ; @.str.11
.asciz "'"
l_.str.12: ; @.str.12
.asciz "<"
l_.str.13: ; @.str.13
.asciz ">"
l_.str.14: ; @.str.14
.asciz "/index.php"
l_.str.15: ; @.str.15
.asciz "/index.html"
l_.str.16: ; @.str.16
.asciz "QUERY_STRING=\"%s\" REDIRECT_STATUS=200 SCRIPT_FILENAME=\"%s\" php-cgi"
l_.str.17: ; @.str.17
.asciz "r"
l_.str.18: ; @.str.18
.asciz "\r\n\r\n"
l_.str.19: ; @.str.19
.asciz "."
l_.str.20: ; @.str.20
.asciz "<li><a href=\"%s\">%s</a></li>"
l_.str.21: ; @.str.21
.asciz "<html><head><title>%s</title></head><body><h1>%s</h1><ul>%s</ul></body></html>"
l_.str.22: ; @.str.22
.asciz ".css"
l_.str.23: ; @.str.23
.asciz "text/css"
l_.str.24: ; @.str.24
.asciz ".html"
l_.str.25: ; @.str.25
.asciz "text/html"
l_.str.26: ; @.str.26
.asciz ".gif"
l_.str.27: ; @.str.27
.asciz "image/gif"
l_.str.28: ; @.str.28
.asciz ".ico"
l_.str.29: ; @.str.29
.asciz "image/x-icon"
l_.str.30: ; @.str.30
.asciz ".jpg"
l_.str.31: ; @.str.31
.asciz "image/jpeg"
l_.str.32: ; @.str.32
.asciz ".js"
l_.str.33: ; @.str.33
.asciz "text/javascript"
l_.str.34: ; @.str.34
.asciz ".php"
l_.str.35: ; @.str.35
.asciz ".png"
l_.str.36: ; @.str.36
.asciz "image/png"
l_.str.37: ; @.str.37
.asciz " "
l_.str.38: ; @.str.38
.asciz "GET"
l_.str.39: ; @.str.39
.asciz "HTTP/1.1\r\n"
l_.str.40: ; @.str.40
.asciz "?"
l_.str.41: ; @.str.41
.asciz "OK"
l_.str.42: ; @.str.42
.asciz "Moved Permanently"
l_.str.43: ; @.str.43
.asciz "Bad Request"
l_.str.44: ; @.str.44
.asciz "Forbidden"
l_.str.45: ; @.str.45
.asciz "Not Found"
l_.str.46: ; @.str.46
.asciz "Method Not Allowed"
l_.str.47: ; @.str.47
.asciz "Request-URI Too Long"
l_.str.48: ; @.str.48
.asciz "I'm a teapot"
l_.str.49: ; @.str.49
.asciz "Internal Server Error"
l_.str.50: ; @.str.50
.asciz "Not Implemented"
l_.str.51: ; @.str.51
.asciz "HTTP Version Not Supported"
l_.str.52: ; @.str.52
.asciz "Location: %s\r\n"
l_.str.53: ; @.str.53
.asciz "HTTP/1.1 %i %s\r\n"
l_.str.54: ; @.str.54
.asciz "\033[32m"
l_.str.55: ; @.str.55
.asciz "\033[33m"
l_.str.56: ; @.str.56
.asciz "HTTP/1.1 %i %s"
l_.str.57: ; @.str.57
.asciz "\033[39m\n"
l_.str.58: ; @.str.58
.asciz "Using %s for server's root"
l_.str.59: ; @.str.59
.asciz "Port %i already in use"
l_.str.60: ; @.str.60
.asciz "Listening on port %i"
l_.str.61: ; @.str.61
.asciz "Stopping server\n"
l_.str.62: ; @.str.62
.asciz "\033[39m"
l_.str.63: ; @.str.63
.asciz "Content-Type: %s\r\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
movl $16768, %eax ## imm = 0x4180
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -16404(%rbp)
movl %edi, -16408(%rbp)
movq %rsi, -16416(%rbp)
callq ___error
movl $0, (%rax)
movl $8080, -16420(%rbp) ## imm = 0x1F90
leaq L_.str(%rip), %rax
movq %rax, -16432(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -16408(%rbp), %edi
movq -16416(%rbp), %rsi
leaq L_.str.1(%rip), %rdx
callq _getopt
movl %eax, -16436(%rbp)
cmpl $-1, %eax
je LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -16436(%rbp), %eax
movl %eax, -16708(%rbp) ## 4-byte Spill
subl $104, %eax
je LBB0_3
jmp LBB0_55
LBB0_55: ## in Loop: Header=BB0_1 Depth=1
movl -16708(%rbp), %eax ## 4-byte Reload
subl $112, %eax
je LBB0_4
jmp LBB0_5
LBB0_3:
movq -16432(%rbp), %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -16404(%rbp)
jmp LBB0_50
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _atoi
movl %eax, -16420(%rbp)
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_6:
cmpl $0, -16420(%rbp)
jl LBB0_10
## %bb.7:
cmpl $32767, -16420(%rbp) ## imm = 0x7FFF
jg LBB0_10
## %bb.8:
movq -16416(%rbp), %rax
movq _optind@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
cmpq $0, (%rax,%rcx,8)
je LBB0_10
## %bb.9:
movq -16416(%rbp), %rax
movq _optind@GOTPCREL(%rip), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rdi
callq _strlen
cmpq $0, %rax
jne LBB0_11
LBB0_10:
movq -16432(%rbp), %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $2, -16404(%rbp)
jmp LBB0_50
LBB0_11:
movl -16420(%rbp), %eax
## kill: def $ax killed $ax killed $eax
movq -16416(%rbp), %rcx
movq _optind@GOTPCREL(%rip), %rdx
movslq (%rdx), %rdx
movq (%rcx,%rdx,8), %rsi
movswl %ax, %edi
callq _start
leaq _handler(%rip), %rax
movq %rax, -16456(%rbp)
movl $0, -16444(%rbp)
movl $0, -16448(%rbp)
movl $2, %edi
leaq -16456(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq _sigaction
movq $0, -16464(%rbp)
movq $0, -16472(%rbp)
movq $0, -16480(%rbp)
LBB0_12: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16480(%rbp)
je LBB0_14
## %bb.13: ## in Loop: Header=BB0_12 Depth=1
movq -16480(%rbp), %rdi
callq _free
movq $0, -16480(%rbp)
LBB0_14: ## in Loop: Header=BB0_12 Depth=1
cmpq $0, -16464(%rbp)
je LBB0_16
## %bb.15: ## in Loop: Header=BB0_12 Depth=1
movq -16464(%rbp), %rdi
callq _free
movq $0, -16464(%rbp)
LBB0_16: ## in Loop: Header=BB0_12 Depth=1
movq $0, -16472(%rbp)
cmpl $-1, _cfd(%rip)
je LBB0_18
## %bb.17: ## in Loop: Header=BB0_12 Depth=1
movl _cfd(%rip), %edi
callq _close
movl $-1, _cfd(%rip)
LBB0_18: ## in Loop: Header=BB0_12 Depth=1
testb $1, _signaled(%rip)
je LBB0_20
## %bb.19: ## in Loop: Header=BB0_12 Depth=1
callq _stop
LBB0_20: ## in Loop: Header=BB0_12 Depth=1
callq _connected
testb $1, %al
jne LBB0_21
jmp LBB0_49
LBB0_21: ## in Loop: Header=BB0_12 Depth=1
leaq -16464(%rbp), %rdi
leaq -16472(%rbp), %rsi
callq _request
testb $1, %al
jne LBB0_22
jmp LBB0_48
LBB0_22: ## in Loop: Header=BB0_12 Depth=1
movq -16464(%rbp), %rax
movq %rax, -16488(%rbp)
movq -16488(%rbp), %rdi
leaq L_.str.3(%rip), %rsi
callq _strstr
movq %rax, -16496(%rbp)
cmpq $0, -16496(%rbp)
jne LBB0_24
## %bb.23: ## in Loop: Header=BB0_12 Depth=1
movl $500, %edi ## imm = 0x1F4
callq _error
jmp LBB0_12
LBB0_24: ## in Loop: Header=BB0_12 Depth=1
movq -16496(%rbp), %rax
movq -16488(%rbp), %rcx
subq %rcx, %rax
addq $3, %rax
movq %rax, -16728(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -16504(%rbp)
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -16728(%rbp), %rax ## 8-byte Reload
movq %rsp, %rdi
movq %rdi, -16720(%rbp) ## 8-byte Spill
movq %rax, -16512(%rbp)
movq -16488(%rbp), %rsi
movq -16496(%rbp), %rdx
movq -16488(%rbp), %rax
subq %rax, %rdx
addq $2, %rdx
movq $-1, %rcx
callq ___strncpy_chk
movq -16720(%rbp), %rsi ## 8-byte Reload
movq -16496(%rbp), %rax
movq -16488(%rbp), %rcx
subq %rcx, %rax
movb $0, 2(%rsi,%rax)
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movq -16720(%rbp), %rdi ## 8-byte Reload
leaq -8208(%rbp), %rsi
leaq -16400(%rbp), %rdx
callq _parse
testb $1, %al
jne LBB0_25
jmp LBB0_45
LBB0_25: ## in Loop: Header=BB0_12 Depth=1
leaq -8208(%rbp), %rdi
callq _urldecode
movq %rax, -16520(%rbp)
cmpq $0, -16520(%rbp)
jne LBB0_27
## %bb.26: ## in Loop: Header=BB0_12 Depth=1
movl $500, %edi ## imm = 0x1F4
callq _error
movl $5, -16524(%rbp)
jmp LBB0_46
LBB0_27: ## in Loop: Header=BB0_12 Depth=1
movq _root(%rip), %rdi
callq _strlen
movq %rax, -16736(%rbp) ## 8-byte Spill
movq -16520(%rbp), %rdi
callq _strlen
movq -16736(%rbp), %rdi ## 8-byte Reload
addq %rax, %rdi
addq $1, %rdi
callq _malloc
movq %rax, -16480(%rbp)
cmpq $0, -16480(%rbp)
jne LBB0_29
## %bb.28: ## in Loop: Header=BB0_12 Depth=1
movl $500, %edi ## imm = 0x1F4
callq _error
movl $5, -16524(%rbp)
jmp LBB0_46
LBB0_29: ## in Loop: Header=BB0_12 Depth=1
movq -16480(%rbp), %rdi
movq _root(%rip), %rsi
movq $-1, %rdx
callq ___strcpy_chk
movq -16480(%rbp), %rdi
movq -16520(%rbp), %rsi
movq $-1, %rdx
callq ___strcat_chk
movq -16520(%rbp), %rdi
callq _free
movq -16480(%rbp), %rdi
xorl %esi, %esi
callq _access
cmpl $-1, %eax
jne LBB0_31
## %bb.30: ## in Loop: Header=BB0_12 Depth=1
movl $404, %edi ## imm = 0x194
callq _error
movl $5, -16524(%rbp)
jmp LBB0_46
LBB0_31: ## in Loop: Header=BB0_12 Depth=1
movq -16480(%rbp), %rdi
leaq -16672(%rbp), %rsi
callq _stat$INODE64
cmpl $0, %eax
jne LBB0_39
## %bb.32: ## in Loop: Header=BB0_12 Depth=1
movzwl -16668(%rbp), %eax
andl $61440, %eax ## imm = 0xF000
cmpl $16384, %eax ## imm = 0x4000
jne LBB0_39
## %bb.33: ## in Loop: Header=BB0_12 Depth=1
leaq -8208(%rbp), %rdi
callq _strlen
subq $1, %rax
movsbl -8208(%rbp,%rax), %eax
cmpl $47, %eax
je LBB0_35
## %bb.34: ## in Loop: Header=BB0_12 Depth=1
leaq -8208(%rbp), %rdi
callq _strlen
addq $2, %rax
movq %rax, -16752(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -16680(%rbp)
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -16752(%rbp), %rax ## 8-byte Reload
movq %rsp, %rdi
movq %rdi, -16744(%rbp) ## 8-byte Spill
movq %rax, -16688(%rbp)
leaq -8208(%rbp), %rsi
movq $-1, %rdx
callq ___strcpy_chk
movq -16744(%rbp), %rdi ## 8-byte Reload
leaq L_.str.5(%rip), %rsi
movq $-1, %rdx
callq ___strcat_chk
movq -16744(%rbp), %rdi ## 8-byte Reload
callq _redirect
movl $5, -16524(%rbp)
movq -16680(%rbp), %rax
movq %rax, %rsp
jmp LBB0_46
LBB0_35: ## in Loop: Header=BB0_12 Depth=1
movq -16480(%rbp), %rdi
callq _indexes
movq %rax, -16696(%rbp)
cmpq $0, -16696(%rbp)
je LBB0_37
## %bb.36: ## in Loop: Header=BB0_12 Depth=1
movq -16480(%rbp), %rdi
callq _free
movq -16696(%rbp), %rax
movq %rax, -16480(%rbp)
jmp LBB0_38
LBB0_37: ## in Loop: Header=BB0_12 Depth=1
movq -16480(%rbp), %rdi
callq _list
movl $5, -16524(%rbp)
jmp LBB0_46
LBB0_38: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_39
LBB0_39: ## in Loop: Header=BB0_12 Depth=1
movq -16480(%rbp), %rdi
callq _lookup
movq %rax, -16704(%rbp)
cmpq $0, -16704(%rbp)
jne LBB0_41
## %bb.40: ## in Loop: Header=BB0_12 Depth=1
movl $501, %edi ## imm = 0x1F5
callq _error
movl $5, -16524(%rbp)
jmp LBB0_46
LBB0_41: ## in Loop: Header=BB0_12 Depth=1
movq -16704(%rbp), %rsi
leaq L_.str.6(%rip), %rdi
callq _strcasecmp
cmpl $0, %eax
jne LBB0_43
## %bb.42: ## in Loop: Header=BB0_12 Depth=1
movq -16480(%rbp), %rdi
leaq -16400(%rbp), %rsi
callq _interpret
jmp LBB0_44
LBB0_43: ## in Loop: Header=BB0_12 Depth=1
movq -16480(%rbp), %rdi
movq -16704(%rbp), %rsi
callq _transfer
LBB0_44: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_45
LBB0_45: ## in Loop: Header=BB0_12 Depth=1
movl $0, -16524(%rbp)
LBB0_46: ## in Loop: Header=BB0_12 Depth=1
movq -16504(%rbp), %rax
movq %rax, %rsp
movl -16524(%rbp), %eax
testl %eax, %eax
je LBB0_47
jmp LBB0_54
LBB0_54: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_12
LBB0_47: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_48
LBB0_48: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_49
LBB0_49: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_12
LBB0_50:
movl -16404(%rbp), %eax
movl %eax, -16756(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_53
## %bb.51:
movl -16756(%rbp), %eax ## 4-byte Reload
movq %rbp, %rsp
popq %rbp
retq
## %bb.52:
ud2
LBB0_53:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _start ## -- Begin function start
.p2align 4, 0x90
_start: ## @start
.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
movw %di, %ax
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rcx, -8(%rbp)
movw %ax, -42(%rbp)
movq %rsi, -56(%rbp)
movq -56(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _realpath
movq %rax, _root(%rip)
cmpq $0, _root(%rip)
jne LBB1_2
## %bb.1:
callq _stop
LBB1_2:
movq _root(%rip), %rdi
movl $1, %esi
callq _access
cmpl $-1, %eax
jne LBB1_4
## %bb.3:
callq _stop
LBB1_4:
leaq L_.str.55(%rip), %rdi
movb $0, %al
callq _printf
movq _root(%rip), %rsi
leaq L_.str.58(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.57(%rip), %rdi
movb $0, %al
callq _printf
movl $2, %edi
movl $1, %esi
xorl %edx, %edx
callq _socket
movl %eax, _sfd(%rip)
cmpl $-1, _sfd(%rip)
jne LBB1_6
## %bb.5:
callq _stop
LBB1_6:
movl $1, -60(%rbp)
movl _sfd(%rip), %edi
leaq -60(%rbp), %rcx
movl $65535, %esi ## imm = 0xFFFF
movl $4, %r8d
movl %r8d, %edx
callq _setsockopt
leaq -24(%rbp), %rdi
xorl %esi, %esi
movl $16, %edx
callq _memset
movb $2, -23(%rbp)
## %bb.7:
movzwl -42(%rbp), %edi
callq __OSSwapInt16
movzwl %ax, %eax
movl %eax, -68(%rbp) ## 4-byte Spill
## %bb.8:
movl -68(%rbp), %eax ## 4-byte Reload
movw %ax, -22(%rbp)
movl $0, -20(%rbp)
movl _sfd(%rip), %edi
leaq -24(%rbp), %rsi
movl $16, %edx
callq _bind
cmpl $-1, %eax
jne LBB1_10
## %bb.9:
leaq L_.str.55(%rip), %rdi
movb $0, %al
callq _printf
movswl -42(%rbp), %esi
leaq L_.str.59(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.57(%rip), %rdi
movb $0, %al
callq _printf
callq _stop
LBB1_10:
movl _sfd(%rip), %edi
movl $128, %esi
callq _listen
cmpl $-1, %eax
jne LBB1_12
## %bb.11:
callq _stop
LBB1_12:
movl $16, -64(%rbp)
movl _sfd(%rip), %edi
leaq -40(%rbp), %rsi
leaq -64(%rbp), %rdx
callq _getsockname
cmpl $-1, %eax
jne LBB1_14
## %bb.13:
callq _stop
LBB1_14:
leaq L_.str.55(%rip), %rdi
movb $0, %al
callq _printf
## %bb.15:
movzwl -38(%rbp), %edi
callq __OSSwapInt16
movzwl %ax, %eax
movl %eax, -72(%rbp) ## 4-byte Spill
## %bb.16:
movl -72(%rbp), %eax ## 4-byte Reload
movzwl %ax, %esi
leaq L_.str.60(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.57(%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 LBB1_18
## %bb.17:
addq $80, %rsp
popq %rbp
retq
LBB1_18:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _handler ## -- Begin function handler
.p2align 4, 0x90
_handler: ## @handler
.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)
cmpl $2, -4(%rbp)
jne LBB2_2
## %bb.1:
movb $1, _signaled(%rip)
LBB2_2:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _stop ## -- Begin function stop
.p2align 4, 0x90
_stop: ## @stop
.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
callq ___error
movl (%rax), %eax
movl %eax, -4(%rbp)
leaq L_.str.55(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.61(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.62(%rip), %rdi
movb $0, %al
callq _printf
cmpq $0, _root(%rip)
je LBB3_2
## %bb.1:
movq _root(%rip), %rdi
callq _free
LBB3_2:
cmpl $-1, _sfd(%rip)
je LBB3_4
## %bb.3:
movl _sfd(%rip), %edi
callq _close
LBB3_4:
movl -4(%rbp), %edi
callq _exit
.cfi_endproc
## -- End function
.globl _connected ## -- Begin function connected
.p2align 4, 0x90
_connected: ## @connected
.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)
leaq -24(%rbp), %rdi
xorl %esi, %esi
movl $16, %edx
callq _memset
movl $16, -32(%rbp)
movl _sfd(%rip), %edi
leaq -24(%rbp), %rsi
leaq -32(%rbp), %rdx
callq _accept
movl %eax, _cfd(%rip)
cmpl $-1, _cfd(%rip)
jne LBB4_2
## %bb.1:
movb $0, -25(%rbp)
jmp LBB4_3
LBB4_2:
movb $1, -25(%rbp)
LBB4_3:
movb -25(%rbp), %al
movb %al, -33(%rbp) ## 1-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB4_5
## %bb.4:
movb -33(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
addq $48, %rsp
popq %rbp
retq
LBB4_5:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _request ## -- Begin function request
.p2align 4, 0x90
_request: ## @request
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $608, %rsp ## imm = 0x260
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -544(%rbp)
movq %rsi, -552(%rbp)
cmpl $-1, _cfd(%rip)
jne LBB5_2
## %bb.1:
movb $0, -529(%rbp)
jmp LBB5_35
LBB5_2:
movq -544(%rbp), %rax
movq $0, (%rax)
movq -552(%rbp), %rax
movq $0, (%rax)
LBB5_3: ## =>This Inner Loop Header: Depth=1
movq -552(%rbp), %rax
cmpq $212894, (%rax) ## imm = 0x33F9E
jae LBB5_32
## %bb.4: ## in Loop: Header=BB5_3 Depth=1
movl _cfd(%rip), %edi
leaq -528(%rbp), %rsi
movl $512, %edx ## imm = 0x200
callq _read
movq %rax, -560(%rbp)
cmpq $0, -560(%rbp)
jge LBB5_8
## %bb.5:
movq -544(%rbp), %rax
cmpq $0, (%rax)
je LBB5_7
## %bb.6:
movq -544(%rbp), %rax
movq (%rax), %rdi
callq _free
movq -544(%rbp), %rax
movq $0, (%rax)
LBB5_7:
movq -552(%rbp), %rax
movq $0, (%rax)
jmp LBB5_32
LBB5_8: ## in Loop: Header=BB5_3 Depth=1
movq -544(%rbp), %rax
movq (%rax), %rdi
movq -552(%rbp), %rax
movq (%rax), %rsi
addq -560(%rbp), %rsi
addq $1, %rsi
callq _realloc
movq %rax, %rcx
movq -544(%rbp), %rax
movq %rcx, (%rax)
movq -544(%rbp), %rax
cmpq $0, (%rax)
jne LBB5_10
## %bb.9:
movq -552(%rbp), %rax
movq $0, (%rax)
jmp LBB5_32
LBB5_10: ## in Loop: Header=BB5_3 Depth=1
movq -544(%rbp), %rax
movq (%rax), %rdi
movq -552(%rbp), %rax
addq (%rax), %rdi
leaq -528(%rbp), %rsi
movq -560(%rbp), %rdx
movq $-1, %rcx
callq ___memcpy_chk
movq -560(%rbp), %rcx
movq -552(%rbp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
movq -544(%rbp), %rax
movq (%rax), %rax
movq -552(%rbp), %rcx
movq (%rcx), %rcx
movb $0, (%rax,%rcx)
movq -552(%rbp), %rax
movq (%rax), %rax
subq -560(%rbp), %rax
cmpq $3, %rax
jae LBB5_12
## %bb.11: ## in Loop: Header=BB5_3 Depth=1
movq -552(%rbp), %rax
movq (%rax), %rax
subq -560(%rbp), %rax
movq %rax, -600(%rbp) ## 8-byte Spill
jmp LBB5_13
LBB5_12: ## in Loop: Header=BB5_3 Depth=1
movl $3, %eax
movq %rax, -600(%rbp) ## 8-byte Spill
jmp LBB5_13
LBB5_13: ## in Loop: Header=BB5_3 Depth=1
movq -600(%rbp), %rax ## 8-byte Reload
## kill: def $eax killed $eax killed $rax
movl %eax, -564(%rbp)
movq -544(%rbp), %rax
movq (%rax), %rax
movq -552(%rbp), %rcx
addq (%rcx), %rax
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq -560(%rbp), %rcx
addq %rcx, %rax
movslq -564(%rbp), %rdx
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -576(%rbp)
movq -576(%rbp), %rdi
leaq L_.str.18(%rip), %rsi
callq _strstr
movq %rax, -584(%rbp)
cmpq $0, -584(%rbp)
je LBB5_31
## %bb.14:
movq -584(%rbp), %rcx
movq -544(%rbp), %rax
movq (%rax), %rax
subq %rax, %rcx
addq $2, %rcx
movq -552(%rbp), %rax
movq %rcx, (%rax)
movq -544(%rbp), %rax
movq (%rax), %rdi
movq -552(%rbp), %rax
movq (%rax), %rsi
addq $1, %rsi
callq _realloc
movq %rax, %rcx
movq -544(%rbp), %rax
movq %rcx, (%rax)
movq -544(%rbp), %rax
cmpq $0, (%rax)
jne LBB5_16
## %bb.15:
jmp LBB5_32
LBB5_16:
movq -544(%rbp), %rax
movq (%rax), %rax
movq -552(%rbp), %rcx
movq (%rcx), %rcx
movb $0, (%rax,%rcx)
movq -544(%rbp), %rax
movq (%rax), %rax
movq %rax, -576(%rbp)
movq -576(%rbp), %rdi
leaq L_.str.3(%rip), %rsi
callq _strstr
movq %rax, -584(%rbp)
cmpq $0, -584(%rbp)
je LBB5_18
## %bb.17:
movq -584(%rbp), %rax
movq -576(%rbp), %rcx
subq %rcx, %rax
addq $2, %rax
cmpq $8190, %rax ## imm = 0x1FFE
jle LBB5_19
LBB5_18:
jmp LBB5_32
LBB5_19:
movl $0, -588(%rbp)
movq -584(%rbp), %rax
addq $2, %rax
movq %rax, -576(%rbp)
LBB5_20: ## =>This Inner Loop Header: Depth=1
movq -576(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB5_26
## %bb.21: ## in Loop: Header=BB5_20 Depth=1
movq -576(%rbp), %rdi
leaq L_.str.3(%rip), %rsi
callq _strstr
movq %rax, -584(%rbp)
cmpq $0, -584(%rbp)
jne LBB5_23
## %bb.22:
jmp LBB5_26
LBB5_23: ## in Loop: Header=BB5_20 Depth=1
movq -584(%rbp), %rax
movq -576(%rbp), %rcx
subq %rcx, %rax
addq $2, %rax
cmpq $4094, %rax ## imm = 0xFFE
jle LBB5_25
## %bb.24:
jmp LBB5_26
LBB5_25: ## in Loop: Header=BB5_20 Depth=1
movq -584(%rbp), %rax
addq $2, %rax
movq %rax, -576(%rbp)
jmp LBB5_20
LBB5_26:
movq -576(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB5_28
## %bb.27:
jmp LBB5_32
LBB5_28:
cmpl $50, -588(%rbp)
jle LBB5_30
## %bb.29:
jmp LBB5_32
LBB5_30:
movb $1, -529(%rbp)
jmp LBB5_35
LBB5_31: ## in Loop: Header=BB5_3 Depth=1
jmp LBB5_3
LBB5_32:
movq -544(%rbp), %rax
cmpq $0, (%rax)
je LBB5_34
## %bb.33:
movq -544(%rbp), %rax
movq (%rax), %rdi
callq _free
LBB5_34:
movq -544(%rbp), %rax
movq $0, (%rax)
movq -552(%rbp), %rax
movq $0, (%rax)
movb $0, -529(%rbp)
LBB5_35:
movb -529(%rbp), %al
movb %al, -601(%rbp) ## 1-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB5_37
## %bb.36:
movb -601(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
addq $608, %rsp ## imm = 0x260
popq %rbp
retq
LBB5_37:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _error ## -- Begin function error
.p2align 4, 0x90
_error: ## @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 $96, %rsp
movw %di, %ax
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rcx, -8(%rbp)
movw %ax, -10(%rbp)
movzwl -10(%rbp), %edi
callq _reason
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB6_2
## %bb.1:
jmp LBB6_5
LBB6_2:
leaq L_.str.7(%rip), %rax
movq %rax, -32(%rbp)
movq -32(%rbp), %rdi
callq _strlen
movq %rax, -96(%rbp) ## 8-byte Spill
movzwl -10(%rbp), %eax
cvtsi2sd %eax, %xmm0
callq _log10
movq -96(%rbp), %rax ## 8-byte Reload
cvttsd2si %xmm0, %ecx
incl %ecx
movslq %ecx, %rcx
subq %rcx, %rax
movq %rax, -88(%rbp) ## 8-byte Spill
movq -24(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -88(%rbp), %rax ## 8-byte Reload
addq %rcx, %rax
leaq -7(%rax,%rax), %rax
movq %rax, -80(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -40(%rbp)
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -80(%rbp), %rax ## 8-byte Reload
movq %rsp, %rdi
movq %rdi, -72(%rbp) ## 8-byte Spill
movq %rax, -48(%rbp)
movq -32(%rbp), %rcx
movzwl -10(%rbp), %r8d
movq -24(%rbp), %r9
movzwl -10(%rbp), %r10d
movq -24(%rbp), %rax
xorl %esi, %esi
movq $-1, %rdx
subq $16, %rsp
movl %r10d, (%rsp)
movq %rax, 8(%rsp)
movb $0, %al
callq ___sprintf_chk
addq $16, %rsp
movl %eax, -52(%rbp)
cmpl $0, -52(%rbp)
jge LBB6_4
## %bb.3:
movq -72(%rbp), %rax ## 8-byte Reload
movb $0, (%rax)
movl $0, -52(%rbp)
LBB6_4:
movq -72(%rbp), %rdx ## 8-byte Reload
leaq L_.str.8(%rip), %rax
movq %rax, -64(%rbp)
movzwl -10(%rbp), %edi
movq -64(%rbp), %rsi
movslq -52(%rbp), %rcx
callq _respond
movq -40(%rbp), %rax
movq %rax, %rsp
LBB6_5:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB6_7
## %bb.6:
movq %rbp, %rsp
popq %rbp
retq
LBB6_7:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _parse ## -- Begin function parse
.p2align 4, 0x90
_parse: ## @parse
.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
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -24(%rbp)
movq %rsi, -32(%rbp)
movq %rdx, -40(%rbp)
movq -24(%rbp), %rdi
callq _strlen
incq %rax
movq %rax, -184(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -48(%rbp)
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -184(%rbp), %rax ## 8-byte Reload
movq %rsp, %rdi
movq %rdi, -160(%rbp) ## 8-byte Spill
movq %rdi, %rcx
movq %rcx, -136(%rbp) ## 8-byte Spill
movq %rax, -56(%rbp)
movq -24(%rbp), %rsi
movq $-1, %rdx
callq ___strcpy_chk
movq -160(%rbp), %rdi ## 8-byte Reload
callq _strlen
incq %rax
movq %rax, -176(%rbp) ## 8-byte Spill
callq ____chkstk_darwin
movq -160(%rbp), %rdi ## 8-byte Reload
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -176(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -168(%rbp) ## 8-byte Spill
movq %rax, -64(%rbp)
callq _strlen
incq %rax
movq %rax, -152(%rbp) ## 8-byte Spill
callq ____chkstk_darwin
movq -160(%rbp), %rdi ## 8-byte Reload
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -152(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -144(%rbp) ## 8-byte Spill
movq %rax, -72(%rbp)
callq _strlen
incq %rax
movq %rax, -128(%rbp) ## 8-byte Spill
callq ____chkstk_darwin
movq -136(%rbp), %rdi ## 8-byte Reload
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -128(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -120(%rbp) ## 8-byte Spill
movq %rax, -80(%rbp)
movl $0, -84(%rbp)
leaq L_.str.37(%rip), %rsi
callq _strtok
movq %rax, -96(%rbp)
LBB7_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -96(%rbp)
je LBB7_12
## %bb.2: ## in Loop: Header=BB7_1 Depth=1
cmpl $0, -84(%rbp)
jne LBB7_4
## %bb.3: ## in Loop: Header=BB7_1 Depth=1
movq -168(%rbp), %rdi ## 8-byte Reload
movq -96(%rbp), %rsi
movq $-1, %rdx
callq ___strcpy_chk
jmp LBB7_11
LBB7_4: ## in Loop: Header=BB7_1 Depth=1
cmpl $1, -84(%rbp)
jne LBB7_6
## %bb.5: ## in Loop: Header=BB7_1 Depth=1
movq -144(%rbp), %rdi ## 8-byte Reload
movq -96(%rbp), %rsi
movq $-1, %rdx
callq ___strcpy_chk
jmp LBB7_10
LBB7_6: ## in Loop: Header=BB7_1 Depth=1
cmpl $2, -84(%rbp)
jne LBB7_8
## %bb.7: ## in Loop: Header=BB7_1 Depth=1
movq -120(%rbp), %rdi ## 8-byte Reload
movq -96(%rbp), %rsi
movq $-1, %rdx
callq ___strcpy_chk
jmp LBB7_9
LBB7_8:
movl $400, %edi ## imm = 0x190
callq _error
movb $0, -9(%rbp)
movl $1, -100(%rbp)
jmp LBB7_36
LBB7_9: ## in Loop: Header=BB7_1 Depth=1
jmp LBB7_10
LBB7_10: ## in Loop: Header=BB7_1 Depth=1
jmp LBB7_11
LBB7_11: ## in Loop: Header=BB7_1 Depth=1
xorl %eax, %eax
movl %eax, %edi
leaq L_.str.37(%rip), %rsi
callq _strtok
movq %rax, -96(%rbp)
movl -84(%rbp), %eax
addl $1, %eax
movl %eax, -84(%rbp)
jmp LBB7_1
LBB7_12:
cmpl $3, -84(%rbp)
je LBB7_14
## %bb.13:
movl $400, %edi ## imm = 0x190
callq _error
movb $0, -9(%rbp)
movl $1, -100(%rbp)
jmp LBB7_36
LBB7_14:
movq -144(%rbp), %rax ## 8-byte Reload
movsbl (%rax), %eax
cmpl $47, %eax
je LBB7_16
## %bb.15:
movl $501, %edi ## imm = 0x1F5
callq _error
movb $0, -9(%rbp)
movl $1, -100(%rbp)
jmp LBB7_36
LBB7_16:
movq -168(%rbp), %rdi ## 8-byte Reload
leaq L_.str.38(%rip), %rsi
movl $4, %edx
callq _strncmp
cmpl $0, %eax
je LBB7_18
## %bb.17:
movl $405, %edi ## imm = 0x195
callq _error
movb $0, -9(%rbp)
movl $1, -100(%rbp)
jmp LBB7_36
LBB7_18:
movq -144(%rbp), %rdi ## 8-byte Reload
movl $34, %esi
callq _strchr
cmpq $0, %rax
je LBB7_20
## %bb.19:
movl $400, %edi ## imm = 0x190
callq _error
movb $0, -9(%rbp)
movl $1, -100(%rbp)
jmp LBB7_36
LBB7_20:
movq -120(%rbp), %rdi ## 8-byte Reload
leaq L_.str.39(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB7_22
## %bb.21:
movl $505, %edi ## imm = 0x1F9
callq _error
movb $0, -9(%rbp)
movl $1, -100(%rbp)
jmp LBB7_36
LBB7_22:
movq -144(%rbp), %rdi ## 8-byte Reload
movl $63, %esi
callq _strchr
cmpq $0, %rax
jne LBB7_24
## %bb.23:
movq -144(%rbp), %rsi ## 8-byte Reload
movq -32(%rbp), %rdi
movq $-1, %rdx
callq ___strcpy_chk
movq -40(%rbp), %rax
movb $0, (%rax)
jmp LBB7_35
LBB7_24:
movq -144(%rbp), %rdi ## 8-byte Reload
movl $63, %esi
callq _strchr
cmpq $0, %rax
je LBB7_34
## %bb.25:
movq -144(%rbp), %rdi ## 8-byte Reload
movl $0, -84(%rbp)
leaq L_.str.40(%rip), %rsi
callq _strtok
movq %rax, -112(%rbp)
LBB7_26: ## =>This Inner Loop Header: Depth=1
cmpq $0, -112(%rbp)
je LBB7_33
## %bb.27: ## in Loop: Header=BB7_26 Depth=1
cmpl $0, -84(%rbp)
jne LBB7_29
## %bb.28: ## in Loop: Header=BB7_26 Depth=1
movq -32(%rbp), %rdi
movq -112(%rbp), %rsi
movq $-1, %rdx
callq ___strcpy_chk
jmp LBB7_32
LBB7_29: ## in Loop: Header=BB7_26 Depth=1
cmpl $1, -84(%rbp)
jne LBB7_31
## %bb.30: ## in Loop: Header=BB7_26 Depth=1
movq -40(%rbp), %rdi
movq -112(%rbp), %rsi
movq $-1, %rdx
callq ___strcpy_chk
LBB7_31: ## in Loop: Header=BB7_26 Depth=1
jmp LBB7_32
LBB7_32: ## in Loop: Header=BB7_26 Depth=1
xorl %eax, %eax
movl %eax, %edi
leaq L_.str.40(%rip), %rsi
callq _strtok
movq %rax, -112(%rbp)
movl -84(%rbp), %eax
addl $1, %eax
movl %eax, -84(%rbp)
jmp LBB7_26
LBB7_33:
jmp LBB7_34
LBB7_34:
jmp LBB7_35
LBB7_35:
movb $1, -9(%rbp)
movl $1, -100(%rbp)
LBB7_36:
movq -48(%rbp), %rax
movq %rax, %rsp
movb -9(%rbp), %al
movb %al, -185(%rbp) ## 1-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB7_38
## %bb.37:
movb -185(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
movq %rbp, %rsp
popq %rbp
retq
LBB7_38:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _urldecode ## -- Begin function urldecode
.p2align 4, 0x90
_urldecode: ## @urldecode
.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)
cmpq $0, -16(%rbp)
jne LBB8_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB8_16
LBB8_2:
movq -16(%rbp), %rdi
callq _strlen
movq %rax, %rdi
addq $1, %rdi
movl $1, %esi
callq _calloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB8_4
## %bb.3:
movq $0, -8(%rbp)
jmp LBB8_16
LBB8_4:
movl $0, -28(%rbp)
movl $0, -32(%rbp)
movq -16(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -36(%rbp)
LBB8_5: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
cmpl -36(%rbp), %eax
jge LBB8_15
## %bb.6: ## in Loop: Header=BB8_5 Depth=1
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $37, %eax
jne LBB8_9
## %bb.7: ## in Loop: Header=BB8_5 Depth=1
movl -28(%rbp), %eax
movl -36(%rbp), %ecx
subl $2, %ecx
cmpl %ecx, %eax
jge LBB8_9
## %bb.8: ## in Loop: Header=BB8_5 Depth=1
movq -16(%rbp), %rax
movl -28(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movb (%rax,%rcx), %al
movb %al, -39(%rbp)
movq -16(%rbp), %rax
movl -28(%rbp), %ecx
addl $2, %ecx
movslq %ecx, %rcx
movb (%rax,%rcx), %al
movb %al, -38(%rbp)
movb $0, -37(%rbp)
leaq -39(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $16, %edx
callq _strtol
movb %al, %dl
movq -24(%rbp), %rax
movslq -32(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -28(%rbp), %eax
addl $2, %eax
movl %eax, -28(%rbp)
jmp LBB8_13
LBB8_9: ## in Loop: Header=BB8_5 Depth=1
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $43, %eax
jne LBB8_11
## %bb.10: ## in Loop: Header=BB8_5 Depth=1
movq -24(%rbp), %rax
movslq -32(%rbp), %rcx
movb $32, (%rax,%rcx)
jmp LBB8_12
LBB8_11: ## in Loop: Header=BB8_5 Depth=1
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -24(%rbp), %rax
movslq -32(%rbp), %rcx
movb %dl, (%rax,%rcx)
LBB8_12: ## in Loop: Header=BB8_5 Depth=1
jmp LBB8_13
LBB8_13: ## in Loop: Header=BB8_5 Depth=1
jmp LBB8_14
LBB8_14: ## in Loop: Header=BB8_5 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB8_5
LBB8_15:
movq -24(%rbp), %rax
movq %rax, -8(%rbp)
LBB8_16:
movq -8(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _redirect ## -- Begin function redirect
.p2align 4, 0x90
_redirect: ## @redirect
.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)
movq %rdi, -16(%rbp)
leaq L_.str.52(%rip), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
callq _strlen
movq %rax, -72(%rbp) ## 8-byte Spill
movq -16(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -72(%rbp), %rax ## 8-byte Reload
leaq -1(%rax,%rcx), %rax
movq %rax, -64(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -32(%rbp)
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -64(%rbp), %rax ## 8-byte Reload
movq %rsp, %rdi
movq %rdi, -56(%rbp) ## 8-byte Spill
movq %rax, -40(%rbp)
movq -24(%rbp), %rcx
movq -16(%rbp), %r8
xorl %esi, %esi
movq $-1, %rdx
movb $0, %al
callq ___sprintf_chk
cmpl $0, %eax
jge LBB9_2
## %bb.1:
movl $500, %edi ## imm = 0x1F4
callq _error
movl $1, -44(%rbp)
jmp LBB9_3
LBB9_2:
movq -56(%rbp), %rsi ## 8-byte Reload
movl $301, %edi ## imm = 0x12D
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, %rdx
callq _respond
movl $0, -44(%rbp)
LBB9_3:
movq -32(%rbp), %rax
movq %rax, %rsp
## %bb.4:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB9_7
## %bb.5:
movq %rbp, %rsp
popq %rbp
retq
## %bb.6:
ud2
LBB9_7:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _indexes ## -- Begin function indexes
.p2align 4, 0x90
_indexes: ## @indexes
.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 _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -20(%rbp)
movl -20(%rbp), %eax
addl $11, %eax
movslq %eax, %rsi
shlq $0, %rsi
movl $1, %edi
callq _calloc
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB10_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB10_10
LBB10_2:
movq -32(%rbp), %rdi
movq -16(%rbp), %rsi
movq $-1, %rdx
callq ___strcpy_chk
movq -32(%rbp), %rdi
leaq L_.str.14(%rip), %rsi
movq $-1, %rdx
callq ___strcat_chk
movq -32(%rbp), %rdi
xorl %esi, %esi
callq _access
cmpl $-1, %eax
jne LBB10_4
## %bb.3:
movq -32(%rbp), %rdi
callq _free
jmp LBB10_5
LBB10_4:
movq -32(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB10_10
LBB10_5:
movl -20(%rbp), %eax
addl $12, %eax
movslq %eax, %rsi
shlq $0, %rsi
movl $1, %edi
callq _calloc
movq %rax, -40(%rbp)
cmpq $0, -40(%rbp)
jne LBB10_7
## %bb.6:
movq $0, -8(%rbp)
jmp LBB10_10
LBB10_7:
movq -40(%rbp), %rdi
movq -16(%rbp), %rsi
movq $-1, %rdx
callq ___strcpy_chk
movq -40(%rbp), %rdi
leaq L_.str.15(%rip), %rsi
movq $-1, %rdx
callq ___strcat_chk
movq -40(%rbp), %rdi
xorl %esi, %esi
callq _access
cmpl $-1, %eax
jne LBB10_9
## %bb.8:
movq -40(%rbp), %rdi
callq _free
movq $0, -8(%rbp)
jmp LBB10_10
LBB10_9:
movq -40(%rbp), %rax
movq %rax, -8(%rbp)
LBB10_10:
movq -8(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _list ## -- Begin function list
.p2align 4, 0x90
_list: ## @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 $208, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -16(%rbp)
movq -16(%rbp), %rdi
movl $5, %esi
callq _access
cmpl $-1, %eax
jne LBB11_2
## %bb.1:
movl $403, %edi ## imm = 0x193
callq _error
jmp LBB11_20
LBB11_2:
movq -16(%rbp), %rdi
callq _opendir$INODE64
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB11_4
## %bb.3:
jmp LBB11_20
LBB11_4:
movl $1, %edi
callq _malloc
movq %rax, -32(%rbp)
movq -32(%rbp), %rax
movb $0, (%rax)
movq $0, -40(%rbp)
movq -16(%rbp), %rdi
leaq -40(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
movq _alphasort$INODE64@GOTPCREL(%rip), %rcx
callq _scandir$INODE64
movl %eax, -44(%rbp)
movl $0, -48(%rbp)
LBB11_5: ## =>This Inner Loop Header: Depth=1
movl -48(%rbp), %eax
cmpl -44(%rbp), %eax
jge LBB11_16
## %bb.6: ## in Loop: Header=BB11_5 Depth=1
movq -40(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
addq $21, %rdi
leaq L_.str.19(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB11_8
## %bb.7: ## in Loop: Header=BB11_5 Depth=1
jmp LBB11_15
LBB11_8: ## in Loop: Header=BB11_5 Depth=1
movq -40(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
addq $21, %rdi
callq _htmlspecialchars
movq %rax, -56(%rbp)
cmpq $0, -56(%rbp)
jne LBB11_10
## %bb.9:
movq -32(%rbp), %rdi
callq _free
movq -40(%rbp), %rdi
movl -44(%rbp), %esi
callq _freedir
movl $500, %edi ## imm = 0x1F4
callq _error
jmp LBB11_20
LBB11_10: ## in Loop: Header=BB11_5 Depth=1
leaq L_.str.20(%rip), %rax
movq %rax, -64(%rbp)
movq -32(%rbp), %rax
movq %rax, -120(%rbp) ## 8-byte Spill
movq -32(%rbp), %rdi
callq _strlen
movq %rax, -144(%rbp) ## 8-byte Spill
movq -64(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -144(%rbp), %rax ## 8-byte Reload
addq %rcx, %rax
subq $2, %rax
movq %rax, -136(%rbp) ## 8-byte Spill
movq -56(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -136(%rbp), %rax ## 8-byte Reload
addq %rcx, %rax
subq $2, %rax
movq %rax, -128(%rbp) ## 8-byte Spill
movq -56(%rbp), %rdi
callq _strlen
movq -128(%rbp), %rsi ## 8-byte Reload
movq -120(%rbp), %rdi ## 8-byte Reload
addq %rax, %rsi
addq $1, %rsi
callq _realloc
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB11_12
## %bb.11:
movq -56(%rbp), %rdi
callq _free
movq -40(%rbp), %rdi
movl -44(%rbp), %esi
callq _freedir
movl $500, %edi ## imm = 0x1F4
callq _error
jmp LBB11_20
LBB11_12: ## in Loop: Header=BB11_5 Depth=1
movq -32(%rbp), %rax
movq %rax, -152(%rbp) ## 8-byte Spill
movq -32(%rbp), %rdi
callq _strlen
movq -152(%rbp), %rdi ## 8-byte Reload
addq %rax, %rdi
movq -64(%rbp), %rcx
movq -56(%rbp), %r8
movq -56(%rbp), %r9
xorl %esi, %esi
movq $-1, %rdx
movb $0, %al
callq ___sprintf_chk
cmpl $0, %eax
jge LBB11_14
## %bb.13:
movq -56(%rbp), %rdi
callq _free
movq -40(%rbp), %rdi
movl -44(%rbp), %esi
callq _freedir
movq -32(%rbp), %rdi
callq _free
movl $500, %edi ## imm = 0x1F4
callq _error
jmp LBB11_20
LBB11_14: ## in Loop: Header=BB11_5 Depth=1
movq -56(%rbp), %rdi
callq _free
LBB11_15: ## in Loop: Header=BB11_5 Depth=1
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
jmp LBB11_5
LBB11_16:
movq -40(%rbp), %rdi
movl -44(%rbp), %esi
callq _freedir
movq -16(%rbp), %rax
movq %rax, -200(%rbp) ## 8-byte Spill
movq _root(%rip), %rdi
callq _strlen
movq %rax, %rcx
movq -200(%rbp), %rax ## 8-byte Reload
addq %rcx, %rax
movq %rax, -72(%rbp)
leaq L_.str.21(%rip), %rax
movq %rax, -80(%rbp)
movq -80(%rbp), %rdi
callq _strlen
movq %rax, -192(%rbp) ## 8-byte Spill
movq -72(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -192(%rbp), %rax ## 8-byte Reload
addq %rcx, %rax
movq %rax, -184(%rbp) ## 8-byte Spill
movq -72(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -184(%rbp), %rax ## 8-byte Reload
addq %rcx, %rax
movq %rax, -176(%rbp) ## 8-byte Spill
movq -32(%rbp), %rdi
callq _strlen
movq -176(%rbp), %rcx ## 8-byte Reload
leaq -5(%rax,%rcx), %rax
movq %rax, -168(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -88(%rbp)
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -168(%rbp), %rax ## 8-byte Reload
movq %rsp, %rdi
movq %rdi, -160(%rbp) ## 8-byte Spill
movq %rax, -96(%rbp)
movq -80(%rbp), %rcx
movq -72(%rbp), %r8
movq -72(%rbp), %r9
movq -32(%rbp), %rax
xorl %esi, %esi
movq $-1, %rdx
subq $16, %rsp
movq %rax, (%rsp)
movb $0, %al
callq ___sprintf_chk
addq $16, %rsp
movl %eax, -100(%rbp)
cmpl $0, -100(%rbp)
jge LBB11_18
## %bb.17:
movq -32(%rbp), %rdi
callq _free
movq -24(%rbp), %rdi
callq _closedir
movl $500, %edi ## imm = 0x1F4
callq _error
movl $1, -104(%rbp)
jmp LBB11_19
LBB11_18:
movq -32(%rbp), %rdi
callq _free
movq -24(%rbp), %rdi
callq _closedir
movq -160(%rbp), %rdx ## 8-byte Reload
leaq L_.str.8(%rip), %rax
movq %rax, -112(%rbp)
movq -112(%rbp), %rsi
movslq -100(%rbp), %rcx
movl $200, %edi
callq _respond
movl $0, -104(%rbp)
LBB11_19:
movq -88(%rbp), %rax
movq %rax, %rsp
LBB11_20:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB11_23
## %bb.21:
movq %rbp, %rsp
popq %rbp
retq
## %bb.22:
ud2
LBB11_23:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _lookup ## -- Begin function lookup
.p2align 4, 0x90
_lookup: ## @lookup
.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)
cmpq $0, -16(%rbp)
jne LBB12_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB12_30
LBB12_2:
movq -16(%rbp), %rdi
movl $46, %esi
callq _strrchr
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB12_4
## %bb.3:
movq $0, -8(%rbp)
jmp LBB12_30
LBB12_4:
movq -24(%rbp), %rdi
leaq L_.str.22(%rip), %rsi
callq _strcasecmp
cmpl $0, %eax
jne LBB12_6
## %bb.5:
leaq L_.str.23(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB12_30
LBB12_6:
movq -24(%rbp), %rdi
leaq L_.str.24(%rip), %rsi
callq _strcasecmp
cmpl $0, %eax
jne LBB12_8
## %bb.7:
leaq L_.str.25(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB12_30
LBB12_8:
movq -24(%rbp), %rdi
leaq L_.str.26(%rip), %rsi
callq _strcasecmp
cmpl $0, %eax
jne LBB12_10
## %bb.9:
leaq L_.str.27(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB12_30
LBB12_10:
movq -24(%rbp), %rdi
leaq L_.str.28(%rip), %rsi
callq _strcasecmp
cmpl $0, %eax
jne LBB12_12
## %bb.11:
leaq L_.str.29(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB12_30
LBB12_12:
movq -24(%rbp), %rdi
leaq L_.str.30(%rip), %rsi
callq _strcasecmp
cmpl $0, %eax
jne LBB12_14
## %bb.13:
leaq L_.str.31(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB12_30
LBB12_14:
movq -24(%rbp), %rdi
leaq L_.str.32(%rip), %rsi
callq _strcasecmp
cmpl $0, %eax
jne LBB12_16
## %bb.15:
leaq L_.str.33(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB12_30
LBB12_16:
movq -24(%rbp), %rdi
leaq L_.str.34(%rip), %rsi
callq _strcasecmp
cmpl $0, %eax
jne LBB12_18
## %bb.17:
leaq L_.str.6(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB12_30
LBB12_18:
movq -24(%rbp), %rdi
leaq L_.str.35(%rip), %rsi
callq _strcasecmp
cmpl $0, %eax
jne LBB12_20
## %bb.19:
leaq L_.str.36(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB12_30
LBB12_20:
jmp LBB12_21
LBB12_21:
jmp LBB12_22
LBB12_22:
jmp LBB12_23
LBB12_23:
jmp LBB12_24
LBB12_24:
jmp LBB12_25
LBB12_25:
jmp LBB12_26
LBB12_26:
jmp LBB12_27
LBB12_27:
jmp LBB12_28
LBB12_28:
jmp LBB12_29
LBB12_29:
movq $0, -8(%rbp)
LBB12_30:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _interpret ## -- Begin function interpret
.p2align 4, 0x90
_interpret: ## @interpret
.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 ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -16(%rbp), %rdi
movl $4, %esi
callq _access
cmpl $-1, %eax
jne LBB13_2
## %bb.1:
movl $403, %edi ## imm = 0x193
callq _error
jmp LBB13_12
LBB13_2:
leaq L_.str.16(%rip), %rax
movq %rax, -32(%rbp)
movq -32(%rbp), %rdi
callq _strlen
movq %rax, -136(%rbp) ## 8-byte Spill
movq -16(%rbp), %rdi
callq _strlen
movq -136(%rbp), %rcx ## 8-byte Reload
addq %rcx, %rax
movq %rax, -128(%rbp) ## 8-byte Spill
movq -24(%rbp), %rdi
callq _strlen
movq -128(%rbp), %rcx ## 8-byte Reload
leaq -3(%rax,%rcx), %rax
movq %rax, -120(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -40(%rbp)
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -120(%rbp), %rax ## 8-byte Reload
movq %rsp, %rdi
movq %rdi, -112(%rbp) ## 8-byte Spill
movq %rax, -48(%rbp)
movq -32(%rbp), %rcx
movq -24(%rbp), %r8
movq -16(%rbp), %r9
xorl %esi, %esi
movq $-1, %rdx
movb $0, %al
callq ___sprintf_chk
cmpl $0, %eax
jge LBB13_4
## %bb.3:
movl $500, %edi ## imm = 0x1F4
callq _error
movl $1, -52(%rbp)
jmp LBB13_11
LBB13_4:
movq -112(%rbp), %rdi ## 8-byte Reload
leaq L_.str.17(%rip), %rsi
callq _popen
movq %rax, -64(%rbp)
cmpq $0, -64(%rbp)
jne LBB13_6
## %bb.5:
movl $500, %edi ## imm = 0x1F4
callq _error
movl $1, -52(%rbp)
jmp LBB13_11
LBB13_6:
movq -64(%rbp), %rdi
leaq -72(%rbp), %rsi
leaq -80(%rbp), %rdx
callq _load
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB13_8
## %bb.7:
movl $500, %edi ## imm = 0x1F4
callq _error
movl $1, -52(%rbp)
jmp LBB13_11
LBB13_8:
movq -64(%rbp), %rdi
callq _pclose
movq -72(%rbp), %rax
movq %rax, -88(%rbp)
movq -88(%rbp), %rdi
leaq L_.str.18(%rip), %rsi
callq _strstr
movq %rax, -96(%rbp)
cmpq $0, -96(%rbp)
jne LBB13_10
## %bb.9:
movq -72(%rbp), %rdi
callq _free
movl $500, %edi ## imm = 0x1F4
callq _error
movl $1, -52(%rbp)
jmp LBB13_11
LBB13_10:
movq -96(%rbp), %rax
movq -88(%rbp), %rcx
subq %rcx, %rax
addq $3, %rax
movq %rax, -152(%rbp) ## 8-byte Spill
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -152(%rbp), %rax ## 8-byte Reload
movq %rsp, %rdi
movq %rdi, -144(%rbp) ## 8-byte Spill
movq %rax, -104(%rbp)
movq -72(%rbp), %rsi
movq -96(%rbp), %rdx
addq $2, %rdx
movq -88(%rbp), %rax
subq %rax, %rdx
movq $-1, %rcx
callq ___strncpy_chk
movq -144(%rbp), %rsi ## 8-byte Reload
movq -96(%rbp), %rax
addq $2, %rax
movq -88(%rbp), %rcx
subq %rcx, %rax
movb $0, (%rsi,%rax)
movq -96(%rbp), %rdx
addq $4, %rdx
movq -80(%rbp), %rcx
movq -96(%rbp), %rax
movq -88(%rbp), %rdi
subq %rdi, %rax
addq $4, %rax
subq %rax, %rcx
movl $200, %edi
callq _respond
movq -72(%rbp), %rdi
callq _free
movl $0, -52(%rbp)
LBB13_11:
movq -40(%rbp), %rax
movq %rax, %rsp
LBB13_12:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB13_15
## %bb.13:
movq %rbp, %rsp
popq %rbp
retq
## %bb.14:
ud2
LBB13_15:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _transfer ## -- Begin function transfer
.p2align 4, 0x90
_transfer: ## @transfer
.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)
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -16(%rbp), %rdi
movl $4, %esi
callq _access
cmpl $-1, %eax
jne LBB14_2
## %bb.1:
movl $403, %edi ## imm = 0x193
callq _error
jmp LBB14_10
LBB14_2:
movq -16(%rbp), %rdi
leaq L_.str.17(%rip), %rsi
callq _fopen
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB14_4
## %bb.3:
movl $500, %edi ## imm = 0x1F4
callq _error
jmp LBB14_10
LBB14_4:
movq -32(%rbp), %rdi
leaq -40(%rbp), %rsi
leaq -48(%rbp), %rdx
callq _load
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB14_6
## %bb.5:
movl $500, %edi ## imm = 0x1F4
callq _error
jmp LBB14_10
LBB14_6:
movq -32(%rbp), %rdi
callq _fclose
leaq L_.str.63(%rip), %rax
movq %rax, -56(%rbp)
movq -56(%rbp), %rdi
callq _strlen
movq %rax, -104(%rbp) ## 8-byte Spill
movq -24(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -104(%rbp), %rax ## 8-byte Reload
leaq -1(%rax,%rcx), %rax
movq %rax, -96(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -64(%rbp)
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -96(%rbp), %rax ## 8-byte Reload
movq %rsp, %rdi
movq %rdi, -88(%rbp) ## 8-byte Spill
movq %rax, -72(%rbp)
movq -56(%rbp), %rcx
movq -24(%rbp), %r8
xorl %esi, %esi
movq $-1, %rdx
movb $0, %al
callq ___sprintf_chk
cmpl $0, %eax
jge LBB14_8
## %bb.7:
movl $500, %edi ## imm = 0x1F4
callq _error
movl $1, -76(%rbp)
jmp LBB14_9
LBB14_8:
movq -88(%rbp), %rsi ## 8-byte Reload
movq -40(%rbp), %rdx
movq -48(%rbp), %rcx
movl $200, %edi
callq _respond
movq -40(%rbp), %rdi
callq _free
movl $0, -76(%rbp)
LBB14_9:
movq -64(%rbp), %rax
movq %rax, %rsp
LBB14_10:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB14_13
## %bb.11:
movq %rbp, %rsp
popq %rbp
retq
## %bb.12:
ud2
LBB14_13:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _reason ## -- Begin function reason
.p2align 4, 0x90
_reason: ## @reason
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movw %di, %ax
movw %ax, -10(%rbp)
movzwl -10(%rbp), %eax
movl %eax, -16(%rbp) ## 4-byte Spill
subl $200, %eax
je LBB15_1
jmp LBB15_14
LBB15_14:
movl -16(%rbp), %eax ## 4-byte Reload
subl $301, %eax ## imm = 0x12D
je LBB15_2
jmp LBB15_15
LBB15_15:
movl -16(%rbp), %eax ## 4-byte Reload
subl $400, %eax ## imm = 0x190
je LBB15_3
jmp LBB15_16
LBB15_16:
movl -16(%rbp), %eax ## 4-byte Reload
subl $403, %eax ## imm = 0x193
je LBB15_4
jmp LBB15_17
LBB15_17:
movl -16(%rbp), %eax ## 4-byte Reload
subl $404, %eax ## imm = 0x194
je LBB15_5
jmp LBB15_18
LBB15_18:
movl -16(%rbp), %eax ## 4-byte Reload
subl $405, %eax ## imm = 0x195
je LBB15_6
jmp LBB15_19
LBB15_19:
movl -16(%rbp), %eax ## 4-byte Reload
subl $414, %eax ## imm = 0x19E
je LBB15_7
jmp LBB15_20
LBB15_20:
movl -16(%rbp), %eax ## 4-byte Reload
subl $418, %eax ## imm = 0x1A2
je LBB15_8
jmp LBB15_21
LBB15_21:
movl -16(%rbp), %eax ## 4-byte Reload
subl $500, %eax ## imm = 0x1F4
je LBB15_9
jmp LBB15_22
LBB15_22:
movl -16(%rbp), %eax ## 4-byte Reload
subl $501, %eax ## imm = 0x1F5
je LBB15_10
jmp LBB15_23
LBB15_23:
movl -16(%rbp), %eax ## 4-byte Reload
subl $505, %eax ## imm = 0x1F9
je LBB15_11
jmp LBB15_12
LBB15_1:
leaq L_.str.41(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB15_13
LBB15_2:
leaq L_.str.42(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB15_13
LBB15_3:
leaq L_.str.43(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB15_13
LBB15_4:
leaq L_.str.44(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB15_13
LBB15_5:
leaq L_.str.45(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB15_13
LBB15_6:
leaq L_.str.46(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB15_13
LBB15_7:
leaq L_.str.47(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB15_13
LBB15_8:
leaq L_.str.48(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB15_13
LBB15_9:
leaq L_.str.49(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB15_13
LBB15_10:
leaq L_.str.50(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB15_13
LBB15_11:
leaq L_.str.51(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB15_13
LBB15_12:
movq $0, -8(%rbp)
LBB15_13:
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _respond ## -- Begin function respond
.p2align 4, 0x90
_respond: ## @respond
.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 %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movl -4(%rbp), %eax
## kill: def $ax killed $ax killed $eax
movzwl %ax, %edi
callq _reason
movq %rax, -40(%rbp)
cmpq $0, -40(%rbp)
jne LBB16_2
## %bb.1:
jmp LBB16_14
LBB16_2:
movl _cfd(%rip), %edi
movl -4(%rbp), %edx
movq -40(%rbp), %rcx
leaq L_.str.53(%rip), %rsi
movb $0, %al
callq _dprintf
cmpl $0, %eax
jge LBB16_4
## %bb.3:
jmp LBB16_14
LBB16_4:
movl _cfd(%rip), %edi
movq -16(%rbp), %rdx
leaq L_.str.4(%rip), %rsi
movb $0, %al
callq _dprintf
cmpl $0, %eax
jge LBB16_6
## %bb.5:
jmp LBB16_14
LBB16_6:
movl _cfd(%rip), %edi
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _dprintf
cmpl $0, %eax
jge LBB16_8
## %bb.7:
jmp LBB16_14
LBB16_8:
movl _cfd(%rip), %edi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
callq _write
cmpq $-1, %rax
jne LBB16_10
## %bb.9:
jmp LBB16_14
LBB16_10:
cmpl $200, -4(%rbp)
jne LBB16_12
## %bb.11:
leaq L_.str.54(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB16_13
LBB16_12:
leaq L_.str.55(%rip), %rdi
movb $0, %al
callq _printf
LBB16_13:
movl -4(%rbp), %esi
movq -40(%rbp), %rdx
leaq L_.str.56(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.57(%rip), %rdi
movb $0, %al
callq _printf
LBB16_14:
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _freedir ## -- Begin function freedir
.p2align 4, 0x90
_freedir: ## @freedir
.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)
cmpq $0, -8(%rbp)
je LBB17_6
## %bb.1:
movl $0, -16(%rbp)
LBB17_2: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB17_5
## %bb.3: ## in Loop: Header=BB17_2 Depth=1
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq _free
## %bb.4: ## in Loop: Header=BB17_2 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB17_2
LBB17_5:
movq -8(%rbp), %rdi
callq _free
LBB17_6:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _htmlspecialchars ## -- Begin function htmlspecialchars
.p2align 4, 0x90
_htmlspecialchars: ## @htmlspecialchars
.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 %rdi, -16(%rbp)
cmpq $0, -16(%rbp)
jne LBB18_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB18_34
LBB18_2:
movq -16(%rbp), %rdi
callq _strlen
movq %rax, %rdi
addq $1, %rdi
callq _malloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB18_4
## %bb.3:
movq $0, -8(%rbp)
jmp LBB18_34
LBB18_4:
movq -24(%rbp), %rax
movb $0, (%rax)
movl $0, -28(%rbp)
movq -16(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -32(%rbp)
movl -32(%rbp), %eax
movl %eax, -36(%rbp)
LBB18_5: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
cmpl -32(%rbp), %eax
jge LBB18_33
## %bb.6: ## in Loop: Header=BB18_5 Depth=1
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $38, %eax
jne LBB18_10
## %bb.7: ## in Loop: Header=BB18_5 Depth=1
leaq L_.str.9(%rip), %rax
movq %rax, -48(%rbp)
movq -48(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movslq -36(%rbp), %rax
addq %rcx, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -36(%rbp)
movq -24(%rbp), %rdi
movslq -36(%rbp), %rsi
callq _realloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB18_9
## %bb.8:
movq $0, -8(%rbp)
jmp LBB18_34
LBB18_9: ## in Loop: Header=BB18_5 Depth=1
movq -24(%rbp), %rdi
movq -48(%rbp), %rsi
movq $-1, %rdx
callq ___strcat_chk
jmp LBB18_31
LBB18_10: ## in Loop: Header=BB18_5 Depth=1
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $34, %eax
jne LBB18_14
## %bb.11: ## in Loop: Header=BB18_5 Depth=1
leaq L_.str.10(%rip), %rax
movq %rax, -56(%rbp)
movq -56(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movslq -36(%rbp), %rax
addq %rcx, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -36(%rbp)
movq -24(%rbp), %rdi
movslq -36(%rbp), %rsi
callq _realloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB18_13
## %bb.12:
movq $0, -8(%rbp)
jmp LBB18_34
LBB18_13: ## in Loop: Header=BB18_5 Depth=1
movq -24(%rbp), %rdi
movq -56(%rbp), %rsi
movq $-1, %rdx
callq ___strcat_chk
jmp LBB18_30
LBB18_14: ## in Loop: Header=BB18_5 Depth=1
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $39, %eax
jne LBB18_18
## %bb.15: ## in Loop: Header=BB18_5 Depth=1
leaq L_.str.11(%rip), %rax
movq %rax, -64(%rbp)
movq -64(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movslq -36(%rbp), %rax
addq %rcx, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -36(%rbp)
movq -24(%rbp), %rdi
movslq -36(%rbp), %rsi
callq _realloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB18_17
## %bb.16:
movq $0, -8(%rbp)
jmp LBB18_34
LBB18_17: ## in Loop: Header=BB18_5 Depth=1
movq -24(%rbp), %rdi
movq -64(%rbp), %rsi
movq $-1, %rdx
callq ___strcat_chk
jmp LBB18_29
LBB18_18: ## in Loop: Header=BB18_5 Depth=1
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $60, %eax
jne LBB18_22
## %bb.19: ## in Loop: Header=BB18_5 Depth=1
leaq L_.str.12(%rip), %rax
movq %rax, -72(%rbp)
movq -72(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movslq -36(%rbp), %rax
addq %rcx, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -36(%rbp)
movq -24(%rbp), %rdi
movslq -36(%rbp), %rsi
callq _realloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB18_21
## %bb.20:
movq $0, -8(%rbp)
jmp LBB18_34
LBB18_21: ## in Loop: Header=BB18_5 Depth=1
movq -24(%rbp), %rdi
movq -72(%rbp), %rsi
movq $-1, %rdx
callq ___strcat_chk
jmp LBB18_28
LBB18_22: ## in Loop: Header=BB18_5 Depth=1
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $62, %eax
jne LBB18_26
## %bb.23: ## in Loop: Header=BB18_5 Depth=1
leaq L_.str.13(%rip), %rax
movq %rax, -80(%rbp)
movq -80(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movslq -36(%rbp), %rax
addq %rcx, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -36(%rbp)
movq -24(%rbp), %rdi
movslq -36(%rbp), %rsi
callq _realloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB18_25
## %bb.24:
movq $0, -8(%rbp)
jmp LBB18_34
LBB18_25: ## in Loop: Header=BB18_5 Depth=1
movq -24(%rbp), %rdi
movq -80(%rbp), %rsi
movq $-1, %rdx
callq ___strcat_chk
jmp LBB18_27
LBB18_26: ## in Loop: Header=BB18_5 Depth=1
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
movslq -28(%rbp), %rax
addq %rax, %rsi
movl $1, %edx
movq $-1, %rcx
callq ___strncat_chk
LBB18_27: ## in Loop: Header=BB18_5 Depth=1
jmp LBB18_28
LBB18_28: ## in Loop: Header=BB18_5 Depth=1
jmp LBB18_29
LBB18_29: ## in Loop: Header=BB18_5 Depth=1
jmp LBB18_30
LBB18_30: ## in Loop: Header=BB18_5 Depth=1
jmp LBB18_31
LBB18_31: ## in Loop: Header=BB18_5 Depth=1
jmp LBB18_32
LBB18_32: ## in Loop: Header=BB18_5 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB18_5
LBB18_33:
movq -24(%rbp), %rax
movq %rax, -8(%rbp)
LBB18_34:
movq -8(%rbp), %rax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _load ## -- Begin function load
.p2align 4, 0x90
_load: ## @load
.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 %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movl $0, -36(%rbp)
movl $0, -40(%rbp)
movq $0, -48(%rbp)
movq -16(%rbp), %rdi
callq _fgetc
movl %eax, -52(%rbp)
LBB19_1: ## =>This Inner Loop Header: Depth=1
cmpl $-1, -52(%rbp)
je LBB19_11
## %bb.2: ## in Loop: Header=BB19_1 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
cmpl -40(%rbp), %eax
jle LBB19_9
## %bb.3: ## in Loop: Header=BB19_1 Depth=1
cmpl $0, -40(%rbp)
jne LBB19_5
## %bb.4: ## in Loop: Header=BB19_1 Depth=1
movl $2, -40(%rbp)
jmp LBB19_6
LBB19_5: ## in Loop: Header=BB19_1 Depth=1
movl -40(%rbp), %eax
shll $1, %eax
movl %eax, -40(%rbp)
LBB19_6: ## in Loop: Header=BB19_1 Depth=1
movq -48(%rbp), %rdi
movslq -40(%rbp), %rsi
shlq $0, %rsi
callq _realloc
movq %rax, -64(%rbp)
cmpq $0, -64(%rbp)
jne LBB19_8
## %bb.7:
movq -48(%rbp), %rdi
callq _free
movb $0, -1(%rbp)
jmp LBB19_12
LBB19_8: ## in Loop: Header=BB19_1 Depth=1
movq -64(%rbp), %rax
movq %rax, -48(%rbp)
LBB19_9: ## in Loop: Header=BB19_1 Depth=1
movl -52(%rbp), %eax
movb %al, %dl
movq -48(%rbp), %rax
movslq -36(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
## %bb.10: ## in Loop: Header=BB19_1 Depth=1
movq -16(%rbp), %rdi
callq _fgetc
movl %eax, -52(%rbp)
jmp LBB19_1
LBB19_11:
movslq -36(%rbp), %rdi
shlq $0, %rdi
callq _malloc
movq %rax, -72(%rbp)
movq -72(%rbp), %rdi
movq -48(%rbp), %rsi
movslq -36(%rbp), %rdx
movq $-1, %rcx
callq ___memcpy_chk
movq -48(%rbp), %rdi
callq _free
movq -72(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
movslq -36(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, (%rax)
movb $1, -1(%rbp)
LBB19_12:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function _OSSwapInt16
__OSSwapInt16: ## @_OSSwapInt16
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movw %di, %ax
movw %ax, -2(%rbp)
movzwl -2(%rbp), %eax
shll $8, %eax
movzwl -2(%rbp), %ecx
sarl $8, %ecx
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movzwl %ax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _root ## @root
.zerofill __DATA,__common,_root,8,3
.section __DATA,__data
.globl _cfd ## @cfd
.p2align 2
_cfd:
.long 4294967295 ## 0xffffffff
.globl _sfd ## @sfd
.p2align 2
_sfd:
.long 4294967295 ## 0xffffffff
.globl _signaled ## @signaled
.zerofill __DATA,__common,_signaled,1,0
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage: server [-p port] /path/to/root"
L_.str.1: ## @.str.1
.asciz "hp:"
L_.str.2: ## @.str.2
.asciz "%s\n"
L_.str.3: ## @.str.3
.asciz "\r\n"
L_.str.4: ## @.str.4
.asciz "%s"
L_.str.5: ## @.str.5
.asciz "/"
L_.str.6: ## @.str.6
.asciz "text/x-php"
L_.str.7: ## @.str.7
.asciz "<html><head><title>%i %s</title></head><body><h1>%i %s</h1></body></html>"
L_.str.8: ## @.str.8
.asciz "Content-Type: text/html\r\n"
L_.str.9: ## @.str.9
.asciz "&"
L_.str.10: ## @.str.10
.asciz """
L_.str.11: ## @.str.11
.asciz "'"
L_.str.12: ## @.str.12
.asciz "<"
L_.str.13: ## @.str.13
.asciz ">"
L_.str.14: ## @.str.14
.asciz "/index.php"
L_.str.15: ## @.str.15
.asciz "/index.html"
L_.str.16: ## @.str.16
.asciz "QUERY_STRING=\"%s\" REDIRECT_STATUS=200 SCRIPT_FILENAME=\"%s\" php-cgi"
L_.str.17: ## @.str.17
.asciz "r"
L_.str.18: ## @.str.18
.asciz "\r\n\r\n"
L_.str.19: ## @.str.19
.asciz "."
L_.str.20: ## @.str.20
.asciz "<li><a href=\"%s\">%s</a></li>"
L_.str.21: ## @.str.21
.asciz "<html><head><title>%s</title></head><body><h1>%s</h1><ul>%s</ul></body></html>"
L_.str.22: ## @.str.22
.asciz ".css"
L_.str.23: ## @.str.23
.asciz "text/css"
L_.str.24: ## @.str.24
.asciz ".html"
L_.str.25: ## @.str.25
.asciz "text/html"
L_.str.26: ## @.str.26
.asciz ".gif"
L_.str.27: ## @.str.27
.asciz "image/gif"
L_.str.28: ## @.str.28
.asciz ".ico"
L_.str.29: ## @.str.29
.asciz "image/x-icon"
L_.str.30: ## @.str.30
.asciz ".jpg"
L_.str.31: ## @.str.31
.asciz "image/jpeg"
L_.str.32: ## @.str.32
.asciz ".js"
L_.str.33: ## @.str.33
.asciz "text/javascript"
L_.str.34: ## @.str.34
.asciz ".php"
L_.str.35: ## @.str.35
.asciz ".png"
L_.str.36: ## @.str.36
.asciz "image/png"
L_.str.37: ## @.str.37
.asciz " "
L_.str.38: ## @.str.38
.asciz "GET"
L_.str.39: ## @.str.39
.asciz "HTTP/1.1\r\n"
L_.str.40: ## @.str.40
.asciz "?"
L_.str.41: ## @.str.41
.asciz "OK"
L_.str.42: ## @.str.42
.asciz "Moved Permanently"
L_.str.43: ## @.str.43
.asciz "Bad Request"
L_.str.44: ## @.str.44
.asciz "Forbidden"
L_.str.45: ## @.str.45
.asciz "Not Found"
L_.str.46: ## @.str.46
.asciz "Method Not Allowed"
L_.str.47: ## @.str.47
.asciz "Request-URI Too Long"
L_.str.48: ## @.str.48
.asciz "I'm a teapot"
L_.str.49: ## @.str.49
.asciz "Internal Server Error"
L_.str.50: ## @.str.50
.asciz "Not Implemented"
L_.str.51: ## @.str.51
.asciz "HTTP Version Not Supported"
L_.str.52: ## @.str.52
.asciz "Location: %s\r\n"
L_.str.53: ## @.str.53
.asciz "HTTP/1.1 %i %s\r\n"
L_.str.54: ## @.str.54
.asciz "\033[32m"
L_.str.55: ## @.str.55
.asciz "\033[33m"
L_.str.56: ## @.str.56
.asciz "HTTP/1.1 %i %s"
L_.str.57: ## @.str.57
.asciz "\033[39m\n"
L_.str.58: ## @.str.58
.asciz "Using %s for server's root"
L_.str.59: ## @.str.59
.asciz "Port %i already in use"
L_.str.60: ## @.str.60
.asciz "Listening on port %i"
L_.str.61: ## @.str.61
.asciz "Stopping server\n"
L_.str.62: ## @.str.62
.asciz "\033[39m"
L_.str.63: ## @.str.63
.asciz "Content-Type: %s\r\n"
.subsections_via_symbols
| the_stack_data/154827781.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 0x4059000000000000 ; double 100
.section __TEXT,__text,regular,pure_instructions
.globl _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, #912
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #60]
mov w8, #1
str w8, [sp, #40]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_5 Depth 2
; Child Loop BB0_9 Depth 2
mov x9, sp
add x8, sp, #56
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_17
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #36]
str wzr, [sp, #32]
add x0, sp, #64
mov x1, #840
bl _bzero
ldr w8, [sp, #56]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
b LBB0_17
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #44]
b LBB0_5
LBB0_5: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #44]
ldr w9, [sp, #56]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=2
mov x9, sp
add x8, sp, #52
str x8, [x9]
add x8, sp, #48
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldr w9, [sp, #52]
ldr w8, [sp, #36]
add w8, w8, w9
str w8, [sp, #36]
ldr w9, [sp, #48]
ldr w8, [sp, #32]
add w8, w8, w9
str w8, [sp, #32]
ldr w10, [sp, #52]
ldr w8, [sp, #48]
ldr w9, [sp, #52]
sdiv w9, w8, w9
add x8, sp, #64
add x9, x8, w9, sxtw #2
ldr w8, [x9]
add w8, w8, w10
str w8, [x9]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=2
ldr w8, [sp, #44]
add w8, w8, #1
str w8, [sp, #44]
b LBB0_5
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr w9, [sp, #40]
; 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 w8, [sp, #40]
add w8, w8, #1
str w8, [sp, #40]
str wzr, [sp, #28]
str wzr, [sp, #44]
b LBB0_9
LBB0_9: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #44]
subs w8, w8, #210
cset w8, ge
tbnz w8, #0, LBB0_16
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=2
ldrsw x9, [sp, #44]
add x8, sp, #64
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_14
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_9 Depth=2
ldr w8, [sp, #28]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_9 Depth=2
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_9 Depth=2
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
ldrsw x9, [sp, #44]
add x8, sp, #64
ldr w8, [x8, x9, lsl #2]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #44]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_9 Depth=2
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_9 Depth=2
ldr w8, [sp, #44]
add w8, w8, #1
str w8, [sp, #44]
b LBB0_9
LBB0_16: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldr s1, [sp, #32]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
ldr s2, [sp, #36]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
fdiv d0, d0, d1
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fmul d0, d0, d1
fcvtzs w8, d0
str w8, [sp, #24]
ldr s1, [sp, #32]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
ldr s2, [sp, #36]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
fdiv d0, d0, d1
fcvtzs w8, d0
str w8, [sp, #20]
ldr w8, [sp, #20]
mov w9, #100
mul w8, w8, w9
str w8, [sp, #20]
ldr w8, [sp, #24]
ldr w10, [sp, #20]
subs w8, w8, w10
str w8, [sp, #16]
ldr w8, [sp, #24]
sdiv w8, w8, w9
str w8, [sp, #24]
ldr w8, [sp, #24]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB0_1
LBB0_17:
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_19
b LBB0_18
LBB0_18:
bl ___stack_chk_fail
LBB0_19:
mov w0, #0
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
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
l_.str.1: ; @.str.1
.asciz "%d %d"
l_.str.2: ; @.str.2
.asciz "Cidade# %d:\n"
l_.str.3: ; @.str.3
.asciz " "
l_.str.4: ; @.str.4
.asciz "%d-%d"
l_.str.5: ; @.str.5
.asciz "\n"
l_.str.6: ; @.str.6
.asciz "Consumo medio: %d.%02d m3.\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 0x4059000000000000 ## double 100
.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 $896, %rsp ## imm = 0x380
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -852(%rbp)
movl $1, -872(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_5 Depth 2
## Child Loop BB0_9 Depth 2
leaq L_.str(%rip), %rdi
leaq -856(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $0, %eax
je LBB0_17
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -876(%rbp)
movl $0, -880(%rbp)
leaq -848(%rbp), %rdi
xorl %esi, %esi
movl $840, %edx ## imm = 0x348
callq _memset
cmpl $0, -856(%rbp)
jne LBB0_4
## %bb.3:
jmp LBB0_17
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movl $0, -868(%rbp)
LBB0_5: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -868(%rbp), %eax
cmpl -856(%rbp), %eax
jge LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=2
leaq L_.str.1(%rip), %rdi
leaq -860(%rbp), %rsi
leaq -864(%rbp), %rdx
movb $0, %al
callq _scanf
movl -860(%rbp), %eax
addl -876(%rbp), %eax
movl %eax, -876(%rbp)
movl -864(%rbp), %eax
addl -880(%rbp), %eax
movl %eax, -880(%rbp)
movl -860(%rbp), %ecx
movl -864(%rbp), %eax
cltd
idivl -860(%rbp)
cltq
addl -848(%rbp,%rax,4), %ecx
movl %ecx, -848(%rbp,%rax,4)
## %bb.7: ## in Loop: Header=BB0_5 Depth=2
movl -868(%rbp), %eax
addl $1, %eax
movl %eax, -868(%rbp)
jmp LBB0_5
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movl -872(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl -872(%rbp), %eax
addl $1, %eax
movl %eax, -872(%rbp)
movl $0, -884(%rbp)
movl $0, -868(%rbp)
LBB0_9: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $210, -868(%rbp)
jge LBB0_16
## %bb.10: ## in Loop: Header=BB0_9 Depth=2
movslq -868(%rbp), %rax
cmpl $0, -848(%rbp,%rax,4)
jle LBB0_14
## %bb.11: ## in Loop: Header=BB0_9 Depth=2
cmpl $0, -884(%rbp)
jle LBB0_13
## %bb.12: ## in Loop: Header=BB0_9 Depth=2
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
LBB0_13: ## in Loop: Header=BB0_9 Depth=2
movl -884(%rbp), %eax
addl $1, %eax
movl %eax, -884(%rbp)
movslq -868(%rbp), %rax
movl -848(%rbp,%rax,4), %esi
movl -868(%rbp), %edx
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
LBB0_14: ## in Loop: Header=BB0_9 Depth=2
jmp LBB0_15
LBB0_15: ## in Loop: Header=BB0_9 Depth=2
movl -868(%rbp), %eax
addl $1, %eax
movl %eax, -868(%rbp)
jmp LBB0_9
LBB0_16: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
cvtsi2sdl -880(%rbp), %xmm0
cvtsi2sdl -876(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -888(%rbp)
cvtsi2sdl -880(%rbp), %xmm0
cvtsi2sdl -876(%rbp), %xmm1
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -892(%rbp)
imull $100, -892(%rbp), %eax
movl %eax, -892(%rbp)
movl -888(%rbp), %eax
subl -892(%rbp), %eax
movl %eax, -896(%rbp)
movl -888(%rbp), %eax
movl $100, %ecx
cltd
idivl %ecx
movl %eax, -888(%rbp)
movl -888(%rbp), %esi
movl -896(%rbp), %edx
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_1
LBB0_17:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_19
## %bb.18:
xorl %eax, %eax
addq $896, %rsp ## imm = 0x380
popq %rbp
retq
LBB0_19:
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 %d"
L_.str.2: ## @.str.2
.asciz "Cidade# %d:\n"
L_.str.3: ## @.str.3
.asciz " "
L_.str.4: ## @.str.4
.asciz "%d-%d"
L_.str.5: ## @.str.5
.asciz "\n"
L_.str.6: ## @.str.6
.asciz "Consumo medio: %d.%02d m3.\n"
.subsections_via_symbols
| the_stack_data/182954200.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _insert ; -- Begin function insert
.p2align 2
_insert: ; @insert
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
adrp x8, _pass@GOTPAGE
ldr x8, [x8, _pass@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
strb w0, [sp, #31]
str w1, [sp, #24]
adrp x8, _length@GOTPAGE
ldr x8, [x8, _length@GOTPAGEOFF]
ldr x8, [x8]
ldrsw x9, [sp, #24]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #16]
str wzr, [sp, #20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #20]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_9
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldrsb w8, [sp, #31]
ldr x9, [x9]
ldrsw x10, [sp, #24]
ldr x9, [x9, x10, lsl #3]
ldrsw x10, [sp, #20]
ldrsb w9, [x9, x10]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
b LBB0_9
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldrsb w8, [sp, #31]
ldr x9, [x9]
ldrsw x10, [sp, #24]
ldr x9, [x9, x10, lsl #3]
ldrsw x10, [sp, #20]
ldrsb w9, [x9, x10]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
b LBB0_13
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_1
LBB0_9:
b LBB0_10
LBB0_10: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_10 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x9]
ldrsw x10, [sp, #24]
ldr x8, [x8, x10, lsl #3]
ldr w10, [sp, #16]
subs w10, w10, #1
str w10, [sp, #16]
add x8, x8, w10, sxtw
ldrb w8, [x8]
ldr x9, [x9]
ldrsw x10, [sp, #24]
ldr x9, [x9, x10, lsl #3]
ldr w10, [sp, #16]
add w10, w10, #1
add x9, x9, w10, sxtw
strb w8, [x9]
b LBB0_10
LBB0_12:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldrb w8, [sp, #31]
ldr x9, [x9]
ldrsw x10, [sp, #24]
ldr x9, [x9, x10, lsl #3]
ldrsw x10, [sp, #20]
add x9, x9, x10
strb w8, [x9]
adrp x8, _length@GOTPAGE
ldr x8, [x8, _length@GOTPAGEOFF]
ldr x8, [x8]
ldrsw x9, [sp, #24]
add x9, x8, x9, lsl #2
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB0_13
LBB0_13:
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, #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, _pass@GOTPAGE
ldr x8, [x8, _pass@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
adrp x8, _length@GOTPAGE
ldr x8, [x8, _length@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
mov x0, #40
str x0, [sp, #24] ; 8-byte Folded Spill
bl _malloc
mov x8, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
stur x8, [x29, #-16]
bl _malloc
ldr x8, [sp, #32] ; 8-byte Folded Reload
str x0, [x8]
stur wzr, [x29, #-40]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-40]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
mov x0, #6
str x0, [sp, #8] ; 8-byte Folded Spill
bl _malloc
ldr x9, [sp, #32] ; 8-byte Folded Reload
mov x8, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
ldr x9, [x9]
ldursw x10, [x29, #-40]
str x8, [x9, x10, lsl #3]
bl _malloc
ldur x8, [x29, #-16]
ldursw x9, [x29, #-40]
str x0, [x8, x9, lsl #3]
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-40]
add w8, w8, #1
stur w8, [x29, #-40]
b LBB1_1
LBB1_4:
mov x0, #7
mov x1, #1
bl _calloc
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
strb wzr, [x8, #6]
mov x9, sp
sub x8, x29, #32
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
b LBB1_5
LBB1_5: ; =>This Loop Header: Depth=1
; Child Loop BB1_7 Depth 2
; Child Loop BB1_9 Depth 3
; Child Loop BB1_15 Depth 2
; Child Loop BB1_17 Depth 3
; Child Loop BB1_19 Depth 4
; Child Loop BB1_29 Depth 2
; Child Loop BB1_35 Depth 2
ldur w8, [x29, #-32]
subs w9, w8, #1
stur w9, [x29, #-32]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_40
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_5 Depth=1
mov x0, #6
mov x1, #4
bl _calloc
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x8]
mov x9, sp
sub x8, x29, #36
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
stur wzr, [x29, #-40]
b LBB1_7
LBB1_7: ; Parent Loop BB1_5 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB1_9 Depth 3
ldur w8, [x29, #-40]
subs w8, w8, #6
cset w8, ge
tbnz w8, #0, LBB1_14
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_7 Depth=2
stur wzr, [x29, #-44]
b LBB1_9
LBB1_9: ; Parent Loop BB1_5 Depth=1
; Parent Loop BB1_7 Depth=2
; => This Inner Loop Header: Depth=3
ldur w8, [x29, #-44]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB1_12
b LBB1_10
LBB1_10: ; in Loop: Header=BB1_9 Depth=3
ldur x8, [x29, #-16]
ldursw x9, [x29, #-44]
ldr x8, [x8, x9, lsl #3]
ldursw x9, [x29, #-40]
add x8, x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_9 Depth=3
ldur w8, [x29, #-44]
add w8, w8, #1
stur w8, [x29, #-44]
b LBB1_9
LBB1_12: ; in Loop: Header=BB1_7 Depth=2
b LBB1_13
LBB1_13: ; in Loop: Header=BB1_7 Depth=2
ldur w8, [x29, #-40]
add w8, w8, #1
stur w8, [x29, #-40]
b LBB1_7
LBB1_14: ; in Loop: Header=BB1_5 Depth=1
stur wzr, [x29, #-40]
b LBB1_15
LBB1_15: ; Parent Loop BB1_5 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB1_17 Depth 3
; Child Loop BB1_19 Depth 4
ldur w8, [x29, #-40]
subs w8, w8, #6
cset w8, ge
tbnz w8, #0, LBB1_28
b LBB1_16
LBB1_16: ; in Loop: Header=BB1_15 Depth=2
stur wzr, [x29, #-44]
b LBB1_17
LBB1_17: ; Parent Loop BB1_5 Depth=1
; Parent Loop BB1_15 Depth=2
; => This Loop Header: Depth=3
; Child Loop BB1_19 Depth 4
ldur w8, [x29, #-44]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB1_26
b LBB1_18
LBB1_18: ; in Loop: Header=BB1_17 Depth=3
mov x9, sp
sub x8, x29, #25
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
str wzr, [sp, #48]
b LBB1_19
LBB1_19: ; Parent Loop BB1_5 Depth=1
; Parent Loop BB1_15 Depth=2
; Parent Loop BB1_17 Depth=3
; => This Inner Loop Header: Depth=4
ldr w8, [sp, #48]
subs w8, w8, #6
cset w8, ge
tbnz w8, #0, LBB1_24
b LBB1_20
LBB1_20: ; in Loop: Header=BB1_19 Depth=4
ldursb w8, [x29, #-25]
ldur x9, [x29, #-16]
ldursw x10, [x29, #-44]
ldr x9, [x9, x10, lsl #3]
ldrsw x10, [sp, #48]
ldrsb w9, [x9, x10]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB1_22
b LBB1_21
LBB1_21: ; in Loop: Header=BB1_19 Depth=4
ldursb w0, [x29, #-25]
ldur w1, [x29, #-44]
bl _insert
b LBB1_22
LBB1_22: ; in Loop: Header=BB1_19 Depth=4
b LBB1_23
LBB1_23: ; in Loop: Header=BB1_19 Depth=4
ldr w8, [sp, #48]
add w8, w8, #1
str w8, [sp, #48]
b LBB1_19
LBB1_24: ; in Loop: Header=BB1_17 Depth=3
b LBB1_25
LBB1_25: ; in Loop: Header=BB1_17 Depth=3
ldur w8, [x29, #-44]
add w8, w8, #1
stur w8, [x29, #-44]
b LBB1_17
LBB1_26: ; in Loop: Header=BB1_15 Depth=2
b LBB1_27
LBB1_27: ; in Loop: Header=BB1_15 Depth=2
ldur w8, [x29, #-40]
add w8, w8, #1
stur w8, [x29, #-40]
b LBB1_15
LBB1_28: ; in Loop: Header=BB1_5 Depth=1
mov w8, #1
str w8, [sp, #48]
stur wzr, [x29, #-40]
b LBB1_29
LBB1_29: ; Parent Loop BB1_5 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-40]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB1_32
b LBB1_30
LBB1_30: ; in Loop: Header=BB1_29 Depth=2
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x8, [x8]
ldursw x9, [x29, #-40]
ldr w9, [x8, x9, lsl #2]
ldr w8, [sp, #48]
mul w8, w8, w9
str w8, [sp, #48]
b LBB1_31
LBB1_31: ; in Loop: Header=BB1_29 Depth=2
ldur w8, [x29, #-40]
add w8, w8, #1
stur w8, [x29, #-40]
b LBB1_29
LBB1_32: ; in Loop: Header=BB1_5 Depth=1
ldur w8, [x29, #-36]
subs w9, w8, #1
stur w9, [x29, #-36]
ldr w9, [sp, #48]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB1_34
b LBB1_33
LBB1_33: ; in Loop: Header=BB1_5 Depth=1
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB1_39
LBB1_34: ; in Loop: Header=BB1_5 Depth=1
mov w8, #4
stur w8, [x29, #-40]
b LBB1_35
LBB1_35: ; Parent Loop BB1_5 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-40]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB1_38
b LBB1_36
LBB1_36: ; in Loop: Header=BB1_35 Depth=2
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldur w10, [x29, #-36]
ldr x11, [x8]
ldursw x12, [x29, #-40]
ldr w12, [x11, x12, lsl #2]
sdiv w11, w10, w12
mul w11, w11, w12
subs w10, w10, w11
str w10, [sp, #44]
ldr x9, [x9]
ldursw x10, [x29, #-40]
ldr x9, [x9, x10, lsl #3]
ldrsw x10, [sp, #44]
add x9, x9, x10
ldrb w9, [x9]
ldur x10, [x29, #-24]
ldursw x11, [x29, #-40]
add x10, x10, x11
strb w9, [x10]
ldr x8, [x8]
ldursw x9, [x29, #-40]
ldr w9, [x8, x9, lsl #2]
ldur w8, [x29, #-36]
sdiv w8, w8, w9
stur w8, [x29, #-36]
b LBB1_37
LBB1_37: ; in Loop: Header=BB1_35 Depth=2
ldur w8, [x29, #-40]
subs w8, w8, #1
stur w8, [x29, #-40]
b LBB1_35
LBB1_38: ; in Loop: Header=BB1_5 Depth=1
ldur x8, [x29, #-24]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB1_39
LBB1_39: ; in Loop: Header=BB1_5 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
bl _free
b LBB1_5
LBB1_40:
mov w0, #0
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.comm _length,8,3 ; @length
.comm _pass,8,3 ; @pass
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%i"
l_.str.1: ; @.str.1
.asciz "%i "
l_.str.2: ; @.str.2
.asciz "%c "
l_.str.3: ; @.str.3
.asciz "NO\n"
l_.str.4: ; @.str.4
.asciz "%s\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _insert ## -- Begin function insert
.p2align 4, 0x90
_insert: ## @insert
.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)
movl %esi, -8(%rbp)
movq _length@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -8(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -16(%rbp)
movl $0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB0_9
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movsbl -1(%rbp), %eax
movq _pass@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movslq -8(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -12(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jge LBB0_4
## %bb.3:
jmp LBB0_9
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movsbl -1(%rbp), %eax
movq _pass@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movslq -8(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -12(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne LBB0_6
## %bb.5:
jmp LBB0_13
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_8
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_1
LBB0_9:
jmp LBB0_10
LBB0_10: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jle LBB0_12
## %bb.11: ## in Loop: Header=BB0_10 Depth=1
movq _pass@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -16(%rbp), %ecx
addl $-1, %ecx
movl %ecx, -16(%rbp)
movslq %ecx, %rcx
movb (%rax,%rcx), %dl
movq _pass@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -16(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
jmp LBB0_10
LBB0_12:
movb -1(%rbp), %dl
movq _pass@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -12(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq _length@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -8(%rbp), %rcx
movl (%rax,%rcx,4), %edx
addl $1, %edx
movl %edx, (%rax,%rcx,4)
LBB0_13:
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 $40, %edi
callq _malloc
movq %rax, -16(%rbp)
movl $40, %edi
callq _malloc
movq %rax, %rcx
movq _pass@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movl $0, -40(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $5, -40(%rbp)
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl $6, %edi
callq _malloc
movq %rax, %rdx
movq _pass@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl $6, %edi
callq _malloc
movq %rax, %rdx
movq -16(%rbp), %rax
movslq -40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB1_1
LBB1_4:
movl $7, %edi
movl $1, %esi
callq _calloc
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movb $0, 6(%rax)
leaq L_.str(%rip), %rdi
leaq -32(%rbp), %rsi
movb $0, %al
callq _scanf
LBB1_5: ## =>This Loop Header: Depth=1
## Child Loop BB1_7 Depth 2
## Child Loop BB1_9 Depth 3
## Child Loop BB1_15 Depth 2
## Child Loop BB1_17 Depth 3
## Child Loop BB1_19 Depth 4
## Child Loop BB1_29 Depth 2
## Child Loop BB1_35 Depth 2
movl -32(%rbp), %eax
movl %eax, %ecx
addl $-1, %ecx
movl %ecx, -32(%rbp)
cmpl $0, %eax
je LBB1_40
## %bb.6: ## in Loop: Header=BB1_5 Depth=1
movl $6, %edi
movl $4, %esi
callq _calloc
movq %rax, %rcx
movq _length@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
leaq L_.str.1(%rip), %rdi
leaq -36(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -40(%rbp)
LBB1_7: ## Parent Loop BB1_5 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB1_9 Depth 3
cmpl $6, -40(%rbp)
jge LBB1_14
## %bb.8: ## in Loop: Header=BB1_7 Depth=2
movl $0, -44(%rbp)
LBB1_9: ## Parent Loop BB1_5 Depth=1
## Parent Loop BB1_7 Depth=2
## => This Inner Loop Header: Depth=3
cmpl $5, -44(%rbp)
jge LBB1_12
## %bb.10: ## in Loop: Header=BB1_9 Depth=3
movq -16(%rbp), %rax
movslq -44(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movslq -40(%rbp), %rax
addq %rax, %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.11: ## in Loop: Header=BB1_9 Depth=3
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB1_9
LBB1_12: ## in Loop: Header=BB1_7 Depth=2
jmp LBB1_13
LBB1_13: ## in Loop: Header=BB1_7 Depth=2
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB1_7
LBB1_14: ## in Loop: Header=BB1_5 Depth=1
movl $0, -40(%rbp)
LBB1_15: ## Parent Loop BB1_5 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB1_17 Depth 3
## Child Loop BB1_19 Depth 4
cmpl $6, -40(%rbp)
jge LBB1_28
## %bb.16: ## in Loop: Header=BB1_15 Depth=2
movl $0, -44(%rbp)
LBB1_17: ## Parent Loop BB1_5 Depth=1
## Parent Loop BB1_15 Depth=2
## => This Loop Header: Depth=3
## Child Loop BB1_19 Depth 4
cmpl $5, -44(%rbp)
jge LBB1_26
## %bb.18: ## in Loop: Header=BB1_17 Depth=3
leaq L_.str.2(%rip), %rdi
leaq -25(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -48(%rbp)
LBB1_19: ## Parent Loop BB1_5 Depth=1
## Parent Loop BB1_15 Depth=2
## Parent Loop BB1_17 Depth=3
## => This Inner Loop Header: Depth=4
cmpl $6, -48(%rbp)
jge LBB1_24
## %bb.20: ## in Loop: Header=BB1_19 Depth=4
movsbl -25(%rbp), %eax
movq -16(%rbp), %rcx
movslq -44(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -48(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne LBB1_22
## %bb.21: ## in Loop: Header=BB1_19 Depth=4
movb -25(%rbp), %al
movl -44(%rbp), %esi
movsbl %al, %edi
callq _insert
LBB1_22: ## in Loop: Header=BB1_19 Depth=4
jmp LBB1_23
LBB1_23: ## in Loop: Header=BB1_19 Depth=4
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
jmp LBB1_19
LBB1_24: ## in Loop: Header=BB1_17 Depth=3
jmp LBB1_25
LBB1_25: ## in Loop: Header=BB1_17 Depth=3
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB1_17
LBB1_26: ## in Loop: Header=BB1_15 Depth=2
jmp LBB1_27
LBB1_27: ## in Loop: Header=BB1_15 Depth=2
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB1_15
LBB1_28: ## in Loop: Header=BB1_5 Depth=1
movl $1, -48(%rbp)
movl $0, -40(%rbp)
LBB1_29: ## Parent Loop BB1_5 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $5, -40(%rbp)
jge LBB1_32
## %bb.30: ## in Loop: Header=BB1_29 Depth=2
movq _length@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -40(%rbp), %rcx
movl (%rax,%rcx,4), %eax
imull -48(%rbp), %eax
movl %eax, -48(%rbp)
## %bb.31: ## in Loop: Header=BB1_29 Depth=2
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB1_29
LBB1_32: ## in Loop: Header=BB1_5 Depth=1
movl -36(%rbp), %eax
movl %eax, %ecx
addl $-1, %ecx
movl %ecx, -36(%rbp)
cmpl -48(%rbp), %eax
jle LBB1_34
## %bb.33: ## in Loop: Header=BB1_5 Depth=1
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB1_39
LBB1_34: ## in Loop: Header=BB1_5 Depth=1
movl $4, -40(%rbp)
LBB1_35: ## Parent Loop BB1_5 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $0, -40(%rbp)
jl LBB1_38
## %bb.36: ## in Loop: Header=BB1_35 Depth=2
movl -36(%rbp), %eax
movq _length@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movslq -40(%rbp), %rsi
cltd
idivl (%rcx,%rsi,4)
movl %edx, -52(%rbp)
movq _pass@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -52(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -24(%rbp), %rax
movslq -40(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq _length@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -40(%rbp), %rcx
movl (%rax,%rcx,4), %ecx
movl -36(%rbp), %eax
cltd
idivl %ecx
movl %eax, -36(%rbp)
## %bb.37: ## in Loop: Header=BB1_35 Depth=2
movl -40(%rbp), %eax
addl $-1, %eax
movl %eax, -40(%rbp)
jmp LBB1_35
LBB1_38: ## in Loop: Header=BB1_5 Depth=1
movq -24(%rbp), %rsi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
LBB1_39: ## in Loop: Header=BB1_5 Depth=1
movq _length@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _free
jmp LBB1_5
LBB1_40:
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _length,8,3 ## @length
.comm _pass,8,3 ## @pass
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%i"
L_.str.1: ## @.str.1
.asciz "%i "
L_.str.2: ## @.str.2
.asciz "%c "
L_.str.3: ## @.str.3
.asciz "NO\n"
L_.str.4: ## @.str.4
.asciz "%s\n"
.subsections_via_symbols
| the_stack_data/111077845.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _assert ; -- Begin function assert
.p2align 2
_assert: ; @assert
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
b LBB0_2
LBB0_2:
b LBB0_3
LBB0_3:
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]
mov w8, #5
stur w8, [x29, #-8]
mov w8, #10
stur w8, [x29, #-12]
bl ___VERIFIER_nondet_int
str w0, [sp, #16]
ldr w8, [sp, #16]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
mov w8, #100
stur w8, [x29, #-12]
mov w8, #1
str w8, [sp, #12]
b LBB1_3
LBB1_2:
mov w8, #2
str w8, [sp, #12]
b LBB1_3
LBB1_3:
b LBB1_4
LBB1_4: ; =>This Inner Loop Header: Depth=1
bl ___VERIFIER_nondet_int
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_4 Depth=1
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB1_4
LBB1_6:
ldur w8, [x29, #-8]
subs w8, w8, #5
cset w8, eq
mov w9, #1
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_8
b LBB1_7
LBB1_7:
ldur w8, [x29, #-12]
subs w8, w8, #10
cset w8, eq
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB1_8
LBB1_8:
ldr w8, [sp, #8] ; 4-byte Folded Reload
and w0, w8, #0x1
bl _assert
ldur w0, [x29, #-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 _assert ## -- Begin function assert
.p2align 4, 0x90
_assert: ## @assert
.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)
cmpl $0, -4(%rbp)
jne LBB0_3
## %bb.1:
jmp LBB0_2
LBB0_2:
jmp LBB0_3
LBB0_3:
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 $5, -8(%rbp)
movl $10, -12(%rbp)
movb $0, %al
callq ___VERIFIER_nondet_int
movl %eax, -16(%rbp)
cmpl $0, -16(%rbp)
je LBB1_2
## %bb.1:
movl $100, -12(%rbp)
movl $1, -20(%rbp)
jmp LBB1_3
LBB1_2:
movl $2, -20(%rbp)
LBB1_3:
jmp LBB1_4
LBB1_4: ## =>This Inner Loop Header: Depth=1
movb $0, %al
callq ___VERIFIER_nondet_int
cmpl $0, %eax
je LBB1_6
## %bb.5: ## in Loop: Header=BB1_4 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB1_4
LBB1_6:
movb $1, %al
cmpl $5, -8(%rbp)
movb %al, -21(%rbp) ## 1-byte Spill
je LBB1_8
## %bb.7:
cmpl $10, -12(%rbp)
sete %al
movb %al, -21(%rbp) ## 1-byte Spill
LBB1_8:
movb -21(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %edi
callq _assert
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/200143236.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tst_branch ; -- Begin function tst_branch
.p2align 2
_tst_branch: ; @tst_branch
.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
b LBB0_1
LBB0_1:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _tst_void_ptr ; -- Begin function tst_void_ptr
.p2align 2
_tst_void_ptr: ; @tst_void_ptr
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str w1, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
b LBB1_3
LBB1_2:
b LBB1_3
LBB1_3:
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _tst_shift ; -- Begin function tst_shift
.p2align 2
_tst_shift: ; @tst_shift
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
mov w8, #1
str w8, [sp, #12]
mov x8, #1
str x8, [sp]
ldr w8, [sp, #12]
mov w9, #32
lsl w8, w8, w9
str w8, [sp, #12]
ldr x8, [sp]
mov x9, #64
lsl x8, x8, x9
str x8, [sp]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _tst_const_addr ; -- Begin function tst_const_addr
.p2align 2
_tst_const_addr: ; @tst_const_addr
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, #536870912
mov x1, #4096
mov w2, #3
mov w3, #4112
mov w4, #-1
mov x5, #0
bl _mmap
str x0, [sp, #8]
ldr x8, [sp, #8]
adds x8, x8, #1
cset w8, eq
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
mov x9, #536870912
ldr w8, [x9]
add w8, w8, #42
str w8, [x9]
ldr x0, [sp, #8]
mov x1, #4096
bl _munmap
b LBB3_2
LBB3_2:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _tst_zero_struct ; -- Begin function tst_zero_struct
.p2align 2
_tst_zero_struct: ; @tst_zero_struct
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.globl _tst_big ; -- Begin function tst_big
.p2align 2
_tst_big: ; @tst_big
.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 x8, [sp, #8] ; 8-byte Folded Spill
mov x1, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov x2, #262144
bl _memcpy
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _tst_adr ; -- Begin function tst_adr
.p2align 2
_tst_adr: ; @tst_adr
.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, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str x0, [sp, #16]
ldr x8, [sp, #16]
mov x9, sp
fmov d0, #5.00000000
str d0, [x9]
sub x0, x29, #18
str x0, [sp, #8] ; 8-byte Folded Spill
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
blr x8
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@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, LBB6_2
b LBB6_1
LBB6_1:
bl ___stack_chk_fail
LBB6_2:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _tst ; -- Begin function tst
.p2align 2
_tst: ; @tst
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
mov x8, #3
str x8, [sp, #8]
ldr x9, [sp, #8]
mov x8, #0
subs x8, x8, x9
mov x0, x8
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _tst_compare ; -- Begin function tst_compare
.p2align 2
_tst_compare: ; @tst_compare
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _tst
subs w8, w0, #0
cset w8, gt
and w10, w8, #0x1
adrp x9, l_.str.6@PAGE
add x9, x9, l_.str.6@PAGEOFF
adrp x8, l_.str.5@PAGE
add x8, x8, l_.str.5@PAGEOFF
ands w10, w10, #0x1
csel x8, x8, x9, ne
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _tst_pack ; -- Begin function tst_pack
.p2align 2
_tst_pack: ; @tst_pack
.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 x12, _i@GOTPAGE
ldr x12, [x12, _i@GOTPAGEOFF]
adrp x9, _j@GOTPAGE
ldr x9, [x9, _j@GOTPAGEOFF]
ldr w8, [x12]
; kill: def $x8 killed $w8
ldrb w11, [x12, #4]
; implicit-def: $x10
mov x10, x11
orr x8, x8, x10, lsl #32
and x8, x8, #0xffffffc000ffffff
mov x10, #83886080
orr x11, x8, x10
lsr x8, x11, #32
; kill: def $w11 killed $w11 killed $x11
str w11, [x12]
; kill: def $w8 killed $w8 killed $x8
strb w8, [x12, #4]
ldr w8, [x9]
; kill: def $x8 killed $w8
ldrb w13, [x9, #4]
; implicit-def: $x11
mov x11, x13
orr x8, x8, x11, lsl #32
and x8, x8, #0xffffffc000ffffff
orr x10, x8, x10
lsr x8, x10, #32
; kill: def $w10 killed $w10 killed $x10
str w10, [x9]
; kill: def $w8 killed $w8 killed $x8
strb w8, [x9, #4]
ldr w8, [x9]
; kill: def $x8 killed $w8
ldrb w10, [x9, #4]
; implicit-def: $x9
mov x9, x10
orr x8, x8, x9, lsl #32
mov x11, #2
lsl x8, x8, x11
sbfx x8, x8, #0, #40
mov x9, #26
asr x10, x8, x9
ldr w8, [x12]
; kill: def $x8 killed $w8
ldrb w13, [x12, #4]
; implicit-def: $x12
mov x12, x13
orr x8, x8, x12, lsl #32
lsl x8, x8, x11
sbfx x8, x8, #0, #40
asr x8, x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _tst_cast ; -- Begin function tst_cast
.p2align 2
_tst_cast: ; @tst_cast
.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, #170
sturb w8, [x29, #-1]
ldursb w8, [x29, #-1]
and w8, w8, #0xffff
mov w9, #-103
eor w8, w8, w9
str w8, [sp, #8]
ldr w9, [sp, #8]
; 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
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 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, #32
movk w9, #12, lsl #16
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #192, lsl #12 ; =786432
sub sp, sp, #32
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
bl _tst_branch
bl _tst_shift
add x0, sp, #128, lsl #12 ; =524288
add x0, x0, #24
str x0, [sp] ; 8-byte Folded Spill
mov w1, #0
bl _tst_void_ptr
bl _tst_const_addr
bl _tst_zero_struct
ldr x1, [sp] ; 8-byte Folded Reload
add x0, sp, #24
str x0, [sp, #8] ; 8-byte Folded Spill
mov x2, #262144
bl _memcpy
ldr x0, [sp, #8] ; 8-byte Folded Reload
add x8, sp, #64, lsl #12 ; =262144
add x8, x8, #24
bl _tst_big
adrp x0, _sprintf@GOTPAGE
ldr x0, [x0, _sprintf@GOTPAGEOFF]
bl _tst_adr
bl _tst_compare
bl _tst_pack
bl _tst_cast
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, LBB11_2
b LBB11_1
LBB11_1:
bl ___stack_chk_fail
LBB11_2:
mov w0, #0
add sp, sp, #192, lsl #12 ; =786432
add sp, sp, #32
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 "tst_branch --"
l_.str.1: ; @.str.1
.asciz " --\n"
l_.str.2: ; @.str.2
.asciz "%.0f"
l_.str.3: ; @.str.3
.asciz "tst_adr %s\n"
l_.str.4: ; @.str.4
.asciz "tst_compare: %s\n"
l_.str.5: ; @.str.5
.asciz "error"
l_.str.6: ; @.str.6
.asciz "ok"
.comm _i,5,0 ; @i
.comm _j,5,0 ; @j
l_.str.7: ; @.str.7
.asciz "tst_pack: j.f = %d, i.f = %d\n"
l_.str.8: ; @.str.8
.asciz "schar to ushort cast: %x\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tst_branch ## -- Begin function tst_branch
.p2align 4, 0x90
_tst_branch: ## @tst_branch
.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
## %bb.1:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _tst_void_ptr ## -- Begin function tst_void_ptr
.p2align 4, 0x90
_tst_void_ptr: ## @tst_void_ptr
.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)
cmpl $0, -12(%rbp)
je LBB1_2
## %bb.1:
movq -8(%rbp), %rax
jmp LBB1_3
LBB1_2:
movq -8(%rbp), %rax
LBB1_3:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _tst_shift ## -- Begin function tst_shift
.p2align 4, 0x90
_tst_shift: ## @tst_shift
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $1, -4(%rbp)
movq $1, -16(%rbp)
movl -4(%rbp), %eax
movl $32, %ecx
## kill: def $cl killed $ecx
shll %cl, %eax
movl %eax, -4(%rbp)
movq -16(%rbp), %rax
movl $64, %ecx
## kill: def $cl killed $rcx
shlq %cl, %rax
movq %rax, -16(%rbp)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _tst_const_addr ## -- Begin function tst_const_addr
.p2align 4, 0x90
_tst_const_addr: ## @tst_const_addr
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $536870912, %edi ## imm = 0x20000000
movl $4096, %esi ## imm = 0x1000
movl $3, %edx
movl $4112, %ecx ## imm = 0x1010
movl $4294967295, %r8d ## imm = 0xFFFFFFFF
xorl %eax, %eax
movl %eax, %r9d
callq _mmap
movq %rax, -8(%rbp)
movq $-1, %rax
cmpq %rax, -8(%rbp)
je LBB3_2
## %bb.1:
movl $536870912, %eax ## imm = 0x20000000
movl (%rax), %ecx
addl $42, %ecx
movl $536870912, %eax ## imm = 0x20000000
movl %ecx, (%rax)
movq -8(%rbp), %rdi
movl $4096, %esi ## imm = 0x1000
callq _munmap
LBB3_2:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _tst_zero_struct ## -- Begin function tst_zero_struct
.p2align 4, 0x90
_tst_zero_struct: ## @tst_zero_struct
.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 _tst_big ## -- Begin function tst_big
.p2align 4, 0x90
_tst_big: ## @tst_big
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, %rax
movq %rax, -8(%rbp) ## 8-byte Spill
leaq 16(%rbp), %rsi
movl $262144, %edx ## imm = 0x40000
callq _memcpy
movq -8(%rbp), %rax ## 8-byte Reload
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function tst_adr
LCPI6_0:
.quad 0x4014000000000000 ## double 5
.section __TEXT,__text,regular,pure_instructions
.globl _tst_adr
.p2align 4, 0x90
_tst_adr: ## @tst_adr
.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)
movq %rdi, -32(%rbp)
movq -32(%rbp), %rcx
leaq -18(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
movsd LCPI6_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
callq *%rcx
leaq -18(%rbp), %rsi
leaq L_.str.3(%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 LBB6_2
## %bb.1:
addq $32, %rsp
popq %rbp
retq
LBB6_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _tst ## -- Begin function tst
.p2align 4, 0x90
_tst: ## @tst
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq $3, -8(%rbp)
xorl %eax, %eax
## kill: def $rax killed $eax
subq -8(%rbp), %rax
## kill: def $eax killed $eax killed $rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _tst_compare ## -- Begin function tst_compare
.p2align 4, 0x90
_tst_compare: ## @tst_compare
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _tst
movl %eax, %ecx
leaq L_.str.6(%rip), %rsi
leaq L_.str.5(%rip), %rax
cmpl $0, %ecx
cmovgq %rax, %rsi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _tst_pack ## -- Begin function tst_pack
.p2align 4, 0x90
_tst_pack: ## @tst_pack
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _i@GOTPCREL(%rip), %rcx
movl (%rcx), %eax
movl %eax, %esi
movzbl 4(%rcx), %eax
## kill: def $rax killed $eax
shlq $32, %rax
orq %rax, %rsi
movabsq $824650498047, %rax ## imm = 0xC000FFFFFF
andq %rax, %rsi
movq %rsi, %rdx
orq $83886080, %rdx ## imm = 0x5000000
shrq $32, %rsi
## kill: def $sil killed $sil killed $rsi
movb %sil, 4(%rcx)
## kill: def $edx killed $edx killed $rdx
movl %edx, (%rcx)
movq _j@GOTPCREL(%rip), %rdx
movl (%rdx), %esi
## kill: def $rsi killed $esi
movzbl 4(%rdx), %edi
## kill: def $rdi killed $edi
shlq $32, %rdi
orq %rdi, %rsi
andq %rax, %rsi
movq %rsi, %rax
orq $83886080, %rax ## imm = 0x5000000
shrq $32, %rsi
## kill: def $sil killed $sil killed $rsi
movb %sil, 4(%rdx)
## kill: def $eax killed $eax killed $rax
movl %eax, (%rdx)
movl (%rdx), %eax
## kill: def $rax killed $eax
movzbl 4(%rdx), %edx
## kill: def $rdx killed $edx
shlq $32, %rdx
orq %rdx, %rax
shlq $26, %rax
sarq $24, %rax
shrq $26, %rax
movl %eax, %esi
movl (%rcx), %eax
## kill: def $rax killed $eax
movzbl 4(%rcx), %ecx
## kill: def $rcx killed $ecx
shlq $32, %rcx
orq %rcx, %rax
shlq $26, %rax
sarq $24, %rax
shrq $26, %rax
movl %eax, %edx
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _tst_cast ## -- Begin function tst_cast
.p2align 4, 0x90
_tst_cast: ## @tst_cast
.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 $-86, -1(%rbp)
movsbl -1(%rbp), %eax
## kill: def $ax killed $ax killed $eax
movzwl %ax, %eax
xorl $-103, %eax
movl %eax, -8(%rbp)
movl -8(%rbp), %esi
leaq L_.str.8(%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
movl $786448, %eax ## imm = 0xC0010
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
callq _tst_branch
callq _tst_shift
leaq -262152(%rbp), %rdi
xorl %esi, %esi
callq _tst_void_ptr
callq _tst_const_addr
callq _tst_zero_struct
movq %rsp, %rdi
movl $32768, %ecx ## imm = 0x8000
leaq -262152(%rbp), %rsi
rep;movsq (%rsi), %es:(%rdi)
leaq -524296(%rbp), %rdi
callq _tst_big
movq _sprintf@GOTPCREL(%rip), %rdi
callq _tst_adr
callq _tst_compare
callq _tst_pack
callq _tst_cast
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB11_2
## %bb.1:
xorl %eax, %eax
addq $786448, %rsp ## imm = 0xC0010
popq %rbp
retq
LBB11_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "tst_branch --"
L_.str.1: ## @.str.1
.asciz " --\n"
L_.str.2: ## @.str.2
.asciz "%.0f"
L_.str.3: ## @.str.3
.asciz "tst_adr %s\n"
L_.str.4: ## @.str.4
.asciz "tst_compare: %s\n"
L_.str.5: ## @.str.5
.asciz "error"
L_.str.6: ## @.str.6
.asciz "ok"
.comm _i,5,0 ## @i
.comm _j,5,0 ## @j
L_.str.7: ## @.str.7
.asciz "tst_pack: j.f = %d, i.f = %d\n"
L_.str.8: ## @.str.8
.asciz "schar to ushort cast: %x\n"
.subsections_via_symbols
| the_stack_data/618965.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl __gets ; -- Begin function _gets
.p2align 2
__gets: ; @_gets
.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]
ldur x0, [x29, #-8]
ldur w8, [x29, #-12]
add w1, w8, #1
adrp x8, ___stdinp@GOTPAGE
ldr x8, [x8, ___stdinp@GOTPAGEOFF]
ldr x2, [x8]
bl _fgets
str wzr, [sp, #16]
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
ldrsw x9, [sp, #12]
ldrsb w8, [x8, x9]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
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]
ldr w9, [sp, #16]
subs w9, w9, #1
add x8, x8, w9, sxtw
strb wzr, [x8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _len ; -- Begin function len
.p2align 2
_len: ; @len
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str wzr, [sp, #4]
str wzr, [sp]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldrsw x9, [sp]
ldrsb w8, [x8, x9]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp]
add w8, w8, #1
str w8, [sp]
b LBB1_1
LBB1_4:
ldr w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _findIndex ; -- Begin function findIndex
.p2align 2
_findIndex: ; @findIndex
.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]
str x1, [sp, #24]
ldur x0, [x29, #-16]
bl _len
str w0, [sp, #20]
ldr x0, [sp, #24]
bl _len
str w0, [sp, #16]
str wzr, [sp, #12]
b LBB2_1
LBB2_1: ; =>This Loop Header: Depth=1
; Child Loop BB2_3 Depth 2
ldr w8, [sp, #12]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_12
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #12]
str w8, [sp, #8]
str wzr, [sp, #4]
b LBB2_3
LBB2_3: ; Parent Loop BB2_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #8]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
mov w9, #0
str w9, [sp] ; 4-byte Folded Spill
tbnz w8, #0, LBB2_6
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_3 Depth=2
ldr w8, [sp, #4]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, ge
mov w9, #0
str w9, [sp] ; 4-byte Folded Spill
tbnz w8, #0, LBB2_6
b LBB2_5
LBB2_5: ; in Loop: Header=BB2_3 Depth=2
ldur x8, [x29, #-16]
ldrsw x9, [sp, #8]
ldrsb w8, [x8, x9]
ldr x9, [sp, #24]
ldrsw x10, [sp, #4]
ldrsb w9, [x9, x10]
subs w8, w8, w9
cset w8, eq
str w8, [sp] ; 4-byte Folded Spill
b LBB2_6
LBB2_6: ; in Loop: Header=BB2_3 Depth=2
ldr w8, [sp] ; 4-byte Folded Reload
tbz w8, #0, LBB2_8
b LBB2_7
LBB2_7: ; in Loop: Header=BB2_3 Depth=2
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB2_3
LBB2_8: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB2_10
b LBB2_9
LBB2_9:
ldr w8, [sp, #12]
stur w8, [x29, #-4]
b LBB2_13
LBB2_10: ; in Loop: Header=BB2_1 Depth=1
b LBB2_11
LBB2_11: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB2_1
LBB2_12:
mov w8, #-1
stur w8, [x29, #-4]
b LBB2_13
LBB2_13:
ldur w0, [x29, #-4]
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:
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]
mov w8, #1001
stur w8, [x29, #-16]
ldur w8, [x29, #-16]
; kill: def $x8 killed $w8
mov x9, sp
stur x9, [x29, #-24]
lsr x9, x8, #0
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-80] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-80] ; 8-byte Folded Reload
mov x9, sp
subs x0, x9, x10
stur x0, [x29, #-64] ; 8-byte Folded Spill
mov sp, x0
stur x8, [x29, #-32]
ldur w8, [x29, #-16]
; kill: def $x8 killed $w8
lsr x9, x8, #0
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 x1, x9, x10
stur x1, [x29, #-56] ; 8-byte Folded Spill
mov sp, x1
stur x8, [x29, #-40]
ldur w1, [x29, #-16]
bl __gets
ldur x0, [x29, #-56] ; 8-byte Folded Reload
ldur w1, [x29, #-16]
bl __gets
ldur x0, [x29, #-64] ; 8-byte Folded Reload
ldur x1, [x29, #-56] ; 8-byte Folded Reload
bl _findIndex
sub sp, sp, #16
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
add sp, sp, #16
stur wzr, [x29, #-12]
ldur x8, [x29, #-24]
mov sp, x8
ldur w8, [x29, #-12]
stur w8, [x29, #-44] ; 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, LBB3_2
b LBB3_1
LBB3_1:
bl ___stack_chk_fail
LBB3_2:
ldur w0, [x29, #-44] ; 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\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl __gets ## -- Begin function _gets
.p2align 4, 0x90
__gets: ## @_gets
.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 -12(%rbp), %esi
addl $1, %esi
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rdx
callq _fgets
movl $0, -16(%rbp)
movl $0, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0, %eax
je LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%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
movl -16(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movb $0, (%rax,%rcx)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _len ## -- Begin function len
.p2align 4, 0x90
_len: ## @len
.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)
movl $0, -16(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0, %eax
je LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -12(%rbp), %eax
addl $1, %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 _findIndex ## -- Begin function findIndex
.p2align 4, 0x90
_findIndex: ## @findIndex
.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 %rsi, -24(%rbp)
movq -16(%rbp), %rdi
callq _len
movl %eax, -28(%rbp)
movq -24(%rbp), %rdi
callq _len
movl %eax, -32(%rbp)
movl $0, -36(%rbp)
LBB2_1: ## =>This Loop Header: Depth=1
## Child Loop BB2_3 Depth 2
movl -36(%rbp), %eax
cmpl -28(%rbp), %eax
jge LBB2_12
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movl -36(%rbp), %eax
movl %eax, -40(%rbp)
movl $0, -44(%rbp)
LBB2_3: ## Parent Loop BB2_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -40(%rbp), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl -28(%rbp), %ecx
movb %al, -45(%rbp) ## 1-byte Spill
jge LBB2_6
## %bb.4: ## in Loop: Header=BB2_3 Depth=2
movl -44(%rbp), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl -32(%rbp), %ecx
movb %al, -45(%rbp) ## 1-byte Spill
jge LBB2_6
## %bb.5: ## in Loop: Header=BB2_3 Depth=2
movq -16(%rbp), %rax
movslq -40(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -24(%rbp), %rcx
movslq -44(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -45(%rbp) ## 1-byte Spill
LBB2_6: ## in Loop: Header=BB2_3 Depth=2
movb -45(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB2_7
jmp LBB2_8
LBB2_7: ## in Loop: Header=BB2_3 Depth=2
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB2_3
LBB2_8: ## in Loop: Header=BB2_1 Depth=1
movl -44(%rbp), %eax
cmpl -32(%rbp), %eax
jne LBB2_10
## %bb.9:
movl -36(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB2_13
LBB2_10: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_11
LBB2_11: ## in Loop: Header=BB2_1 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB2_1
LBB2_12:
movl $-1, -4(%rbp)
LBB2_13:
movl -4(%rbp), %eax
addq $48, %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)
movl $1001, -16(%rbp) ## imm = 0x3E9
movl -16(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -80(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -24(%rbp)
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -80(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -64(%rbp) ## 8-byte Spill
movq %rax, -32(%rbp)
movl -16(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -72(%rbp) ## 8-byte Spill
callq ____chkstk_darwin
movq -64(%rbp), %rdi ## 8-byte Reload
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -72(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -56(%rbp) ## 8-byte Spill
movq %rax, -40(%rbp)
movl -16(%rbp), %esi
callq __gets
movq -56(%rbp), %rdi ## 8-byte Reload
movl -16(%rbp), %esi
callq __gets
movq -64(%rbp), %rdi ## 8-byte Reload
movq -56(%rbp), %rsi ## 8-byte Reload
callq _findIndex
movl %eax, %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -12(%rbp)
movq -24(%rbp), %rax
movq %rax, %rsp
movl -12(%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 LBB3_2
## %bb.1:
movl -44(%rbp), %eax ## 4-byte Reload
movq %rbp, %rsp
popq %rbp
retq
LBB3_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/206392563.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/783580.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fun ; -- Begin function fun
.p2align 2
_fun: ; @fun
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp]
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, #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, #28]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
add x0, sp, #40
str x0, [sp, #8] ; 8-byte Folded Spill
bl _gets
ldr x0, [sp, #8] ; 8-byte Folded Reload
bl _fun
str w0, [sp, #28]
ldr w9, [sp, #28]
; 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
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fopen
str x0, [sp, #32]
ldr x8, [sp, #32]
str x8, [sp, #16] ; 8-byte Folded Spill
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _fun
mov x10, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
ldr x0, [sp, #32]
bl _fclose
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:
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 "Enter a string:\n "
l_.str.1: ; @.str.1
.asciz "The number of word is:%d\n\n "
l_.str.2: ; @.str.2
.asciz "out.dat"
l_.str.3: ; @.str.3
.asciz "w"
l_.str.4: ; @.str.4
.asciz "%d"
l_.str.5: ; @.str.5
.asciz "a big car"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fun ## -- Begin function fun
.p2align 4, 0x90
_fun: ## @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, -16(%rbp)
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 $128, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -108(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq -96(%rbp), %rdi
callq _gets
leaq -96(%rbp), %rdi
callq _fun
movl %eax, -108(%rbp)
movl -108(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
leaq L_.str.3(%rip), %rsi
callq _fopen
movq %rax, -104(%rbp)
movq -104(%rbp), %rax
movq %rax, -120(%rbp) ## 8-byte Spill
leaq L_.str.5(%rip), %rdi
callq _fun
movq -120(%rbp), %rdi ## 8-byte Reload
movl %eax, %edx
leaq L_.str.4(%rip), %rsi
movb $0, %al
callq _fprintf
movq -104(%rbp), %rdi
callq _fclose
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_2
## %bb.1:
addq $128, %rsp
popq %rbp
retq
LBB1_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter a string:\n "
L_.str.1: ## @.str.1
.asciz "The number of word is:%d\n\n "
L_.str.2: ## @.str.2
.asciz "out.dat"
L_.str.3: ## @.str.3
.asciz "w"
L_.str.4: ## @.str.4
.asciz "%d"
L_.str.5: ## @.str.5
.asciz "a big car"
.subsections_via_symbols
| the_stack_data/63334.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _print ; -- Begin function print
.p2align 2
_print: ; @print
.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, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str w0, [sp, #24]
sub x8, x29, #18
str x8, [sp, #8]
ldr w8, [sp, #24]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #48
mov x9, #268435456
strb w8, [x9]
mov w8, #10
strb w8, [x9]
b LBB0_9
LBB0_2:
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #24]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #24]
mov w9, #10
sdiv w10, w8, w9
mul w10, w10, w9
subs w8, w8, w10
add w8, w8, #48
ldr x10, [sp, #8]
strb w8, [x10]
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
ldr w8, [sp, #24]
sdiv w8, w8, w9
str w8, [sp, #24]
b LBB0_3
LBB0_5:
b LBB0_6
LBB0_6: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
sub x9, x29, #18
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_6 Depth=1
ldr x8, [sp, #8]
subs x8, x8, #1
str x8, [sp, #8]
ldr x8, [sp, #8]
ldrb w8, [x8]
mov x9, #268435456
strb w8, [x9]
b LBB0_6
LBB0_8:
mov x9, #268435456
mov w8, #10
strb w8, [x9]
b LBB0_9
LBB0_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, LBB0_11
b LBB0_10
LBB0_10:
bl ___stack_chk_fail
LBB0_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, #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]
mov w8, #1
stur w8, [x29, #-12]
str wzr, [sp, #16]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldur w0, [x29, #-8]
bl _print
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
add w8, w8, w9
str w8, [sp, #12]
ldur w8, [x29, #-12]
stur w8, [x29, #-8]
ldr w8, [sp, #12]
stur w8, [x29, #-12]
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:
ldur w0, [x29, #-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 _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
subq $48, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl %edi, -24(%rbp)
leaq -18(%rbp), %rax
movq %rax, -40(%rbp)
cmpl $0, -24(%rbp)
jne LBB0_2
## %bb.1:
movl $268435456, %eax ## imm = 0x10000000
movb $48, (%rax)
movl $268435456, %eax ## imm = 0x10000000
movb $10, (%rax)
jmp LBB0_9
LBB0_2:
jmp LBB0_3
LBB0_3: ## =>This Inner Loop Header: Depth=1
cmpl $0, -24(%rbp)
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movl -24(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
addl $48, %edx
movb %dl, %cl
movq -40(%rbp), %rax
movb %cl, (%rax)
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
movl -24(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, -24(%rbp)
jmp LBB0_3
LBB0_5:
jmp LBB0_6
LBB0_6: ## =>This Inner Loop Header: Depth=1
movq -40(%rbp), %rax
leaq -18(%rbp), %rcx
cmpq %rcx, %rax
je LBB0_8
## %bb.7: ## in Loop: Header=BB0_6 Depth=1
movq -40(%rbp), %rax
addq $-1, %rax
movq %rax, -40(%rbp)
movq -40(%rbp), %rax
movb (%rax), %cl
movl $268435456, %eax ## imm = 0x10000000
movb %cl, (%rax)
jmp LBB0_6
LBB0_8:
movl $268435456, %eax ## imm = 0x10000000
movb $10, (%rax)
LBB0_9:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_11
## %bb.10:
addq $48, %rsp
popq %rbp
retq
LBB0_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 $32, %rsp
movl $0, -4(%rbp)
movl $0, -8(%rbp)
movl $1, -12(%rbp)
movl $0, -16(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $10, -16(%rbp)
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -8(%rbp), %edi
callq _print
movl -8(%rbp), %eax
addl -12(%rbp), %eax
movl %eax, -20(%rbp)
movl -12(%rbp), %eax
movl %eax, -8(%rbp)
movl -20(%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 -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/939666.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
mov w8, #0
str w8, [sp, #36] ; 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, #16
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldur d0, [x29, #-16]
sub x0, x29, #24
sub x1, x29, #32
add x2, sp, #40
bl _diameterAreaCircum
ldur d2, [x29, #-24]
ldur d1, [x29, #-32]
ldr d0, [sp, #40]
mov x8, sp
str d2, [x8]
str d1, [x8, #8]
str d0, [x8, #16]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr w0, [sp, #36] ; 4-byte Folded Reload
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 diameterAreaCircum
lCPI1_0:
.quad 0x401124dd2f1a9fbe ; double 4.2859999999999996
lCPI1_1:
.quad 0x400124dd2f1a9fbe ; double 2.1429999999999998
.section __TEXT,__text,regular,pure_instructions
.globl _diameterAreaCircum
.p2align 2
_diameterAreaCircum: ; @diameterAreaCircum
.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 d0, [x29, #-8]
str x0, [sp, #16]
str x1, [sp, #8]
str x2, [sp]
ldur d0, [x29, #-8]
fmov d1, #2.00000000
fmul d0, d1, d0
ldr x8, [sp, #16]
str d0, [x8]
ldur d2, [x29, #-8]
adrp x8, lCPI1_1@PAGE
ldr d0, [x8, lCPI1_1@PAGEOFF]
fmul d0, d0, d2
bl _pow
ldr x8, [sp, #8]
str d0, [x8]
ldur d1, [x29, #-8]
adrp x8, lCPI1_0@PAGE
ldr d0, [x8, lCPI1_0@PAGEOFF]
fmul d0, d0, d1
ldr x8, [sp]
str d0, [x8]
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 "Enter the radius of a circle: "
l_.str.1: ; @.str.1
.asciz "%lf"
l_.str.2: ; @.str.2
.asciz "-----------------------\nDiameter: %f\nArea: %f\nCircumference: %f\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 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
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -16(%rbp), %rsi
movb $0, %al
callq _scanf
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq -24(%rbp), %rdi
leaq -32(%rbp), %rsi
leaq -40(%rbp), %rdx
callq _diameterAreaCircum
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero
movsd -40(%rbp), %xmm2 ## xmm2 = mem[0],zero
leaq L_.str.2(%rip), %rdi
movb $3, %al
callq _printf
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function diameterAreaCircum
LCPI1_0:
.quad 0x401124dd2f1a9fbe ## double 4.2859999999999996
LCPI1_1:
.quad 0x4000000000000000 ## double 2
LCPI1_2:
.quad 0x400124dd2f1a9fbe ## double 2.1429999999999998
.section __TEXT,__text,regular,pure_instructions
.globl _diameterAreaCircum
.p2align 4, 0x90
_diameterAreaCircum: ## @diameterAreaCircum
.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
movsd %xmm0, -8(%rbp)
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movsd LCPI1_1(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd -8(%rbp), %xmm0
movq -16(%rbp), %rax
movsd %xmm0, (%rax)
movsd LCPI1_2(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd -8(%rbp), %xmm0
movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero
callq _pow
movq -24(%rbp), %rax
movsd %xmm0, (%rax)
movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd -8(%rbp), %xmm0
movq -32(%rbp), %rax
movsd %xmm0, (%rax)
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter the radius of a circle: "
L_.str.1: ## @.str.1
.asciz "%lf"
L_.str.2: ## @.str.2
.asciz "-----------------------\nDiameter: %f\nArea: %f\nCircumference: %f\n"
.subsections_via_symbols
| the_stack_data/140764661.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
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #16]
add x8, sp, #20
str x8, [sp, #8] ; 8-byte Folded Spill
mov w8, #10
str w8, [sp, #20]
ldr w9, [sp, #20]
; 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 w8, #32768
movk w8, #17244, lsl #16
fmov s0, w8
str s0, [sp, #20]
ldr s0, [sp, #20]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr x0, [sp, #8] ; 8-byte Folded Reload
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
mov x2, #20
bl ___strcpy_chk
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@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, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "data.i : %d\n"
l_.str.1: ; @.str.1
.asciz "data.f : %f\n"
l_.str.2: ; @.str.2
.asciz "C Programming"
l_.str.3: ; @.str.3
.asciz "data.str : %s\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 0x435c8000 ## float 220.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 $48, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -36(%rbp)
movl $10, -32(%rbp)
movl -32(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -32(%rbp)
movss -32(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.1(%rip), %rdi
movb $1, %al
callq _printf
leaq -32(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
movl $20, %edx
callq ___strcpy_chk
leaq -32(%rbp), %rsi
leaq L_.str.3(%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 $48, %rsp
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "data.i : %d\n"
L_.str.1: ## @.str.1
.asciz "data.f : %f\n"
L_.str.2: ## @.str.2
.asciz "C Programming"
L_.str.3: ## @.str.3
.asciz "data.str : %s\n"
.subsections_via_symbols
| the_stack_data/10161.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, #384
.cfi_def_cfa_offset 384
stp x28, x27, [sp, #352] ; 16-byte Folded Spill
stp x29, x30, [sp, #368] ; 16-byte Folded Spill
add x29, sp, #368
.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]
mov w8, #0
str w8, [sp, #20] ; 4-byte Folded Spill
str wzr, [sp, #52]
str w0, [sp, #48]
str x1, [sp, #40]
mov w1, #2
mov x0, x1
mov w2, #17
bl _socket
ldr w1, [sp, #20] ; 4-byte Folded Reload
str w0, [sp, #36]
add x0, sp, #88
mov x2, #256
bl _memset
ldr x8, [sp, #40]
ldr x0, [x8, #8]
bl _gethostbyname
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:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_2:
str xzr, [sp, #72]
str xzr, [sp, #80]
mov w8, #2
strb w8, [sp, #73]
mov w9, #59156
strh w9, [sp, #74]
ldr x9, [sp, #24]
ldr x9, [x9, #24]
ldr x9, [x9]
ldr x9, [x9]
; kill: def $w9 killed $w9 killed $x9
str w9, [sp, #76]
add x1, sp, #56
str xzr, [sp, #56]
str xzr, [sp, #64]
strb w8, [sp, #57]
mov w8, #52822
strh w8, [sp, #58]
ldr w0, [sp, #36]
mov w2, #16
bl _bind
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_4:
ldr w0, [sp, #36]
add x1, sp, #72
mov w2, #16
bl _connect
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_6:
ldr w0, [sp, #36]
add x1, sp, #88
str x1, [sp, #8] ; 8-byte Folded Spill
mov x2, #2
bl _write
ldr x1, [sp, #8] ; 8-byte Folded Reload
ldr w0, [sp, #36]
mov x2, #12
bl _read
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _getenv
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
mov w0, #1
add x1, sp, #88
mov x2, #12
bl _write
b LBB0_8
LBB0_8:
ldr w8, [sp, #52]
str w8, [sp, #4] ; 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_10
b LBB0_9
LBB0_9:
bl ___stack_chk_fail
LBB0_10:
ldr w0, [sp, #4] ; 4-byte Folded Reload
ldp x29, x30, [sp, #368] ; 16-byte Folded Reload
ldp x28, x27, [sp, #352] ; 16-byte Folded Reload
add sp, sp, #384
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "gethostbyname"
l_.str.1: ; @.str.1
.asciz "bind"
l_.str.2: ; @.str.2
.asciz "connect"
l_.str.3: ; @.str.3
.asciz "DEBUG"
.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 $352, %rsp ## imm = 0x160
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -308(%rbp)
movl %edi, -312(%rbp)
movq %rsi, -320(%rbp)
movl $2, %esi
movl $17, %edx
movl %esi, %edi
callq _socket
movl %eax, -324(%rbp)
leaq -272(%rbp), %rdi
xorl %esi, %esi
movl $256, %edx ## imm = 0x100
callq _memset
movq -320(%rbp), %rax
movq 8(%rax), %rdi
callq _gethostbyname
movq %rax, -336(%rbp)
cmpq $0, -336(%rbp)
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_2:
leaq -288(%rbp), %rdi
xorl %esi, %esi
movl $16, %edx
callq _memset
movb $2, -287(%rbp)
movw $-6380, -286(%rbp) ## imm = 0xE714
movq -336(%rbp), %rax
movq 24(%rax), %rax
movq (%rax), %rax
movq (%rax), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -284(%rbp)
leaq -304(%rbp), %rdi
xorl %esi, %esi
movl $16, %edx
callq _memset
movb $2, -303(%rbp)
movw $-12714, -302(%rbp) ## imm = 0xCE56
movl -324(%rbp), %edi
leaq -304(%rbp), %rsi
movl $16, %edx
callq _bind
cmpl $0, %eax
je LBB0_4
## %bb.3:
leaq L_.str.1(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_4:
movl -324(%rbp), %edi
leaq -288(%rbp), %rsi
movl $16, %edx
callq _connect
cmpl $0, %eax
je LBB0_6
## %bb.5:
leaq L_.str.2(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_6:
movl -324(%rbp), %edi
leaq -272(%rbp), %rsi
movl $2, %edx
callq _write
movl -324(%rbp), %edi
leaq -272(%rbp), %rsi
movl $12, %edx
callq _read
leaq L_.str.3(%rip), %rdi
callq _getenv
cmpq $0, %rax
je LBB0_8
## %bb.7:
leaq -272(%rbp), %rsi
movl $1, %edi
movl $12, %edx
callq _write
LBB0_8:
movl -308(%rbp), %eax
movl %eax, -340(%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 -340(%rbp), %eax ## 4-byte Reload
addq $352, %rsp ## imm = 0x160
popq %rbp
retq
LBB0_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "gethostbyname"
L_.str.1: ## @.str.1
.asciz "bind"
L_.str.2: ## @.str.2
.asciz "connect"
L_.str.3: ## @.str.3
.asciz "DEBUG"
.subsections_via_symbols
| the_stack_data/151706441.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.private_extern _func2 ; -- Begin function func2
.globl _func2
.p2align 2
_func2: ; @func2
.cfi_startproc
; %bb.0:
adrp x8, _retval@GOTPAGE
ldr x8, [x8, _retval@GOTPAGEOFF]
ldr w0, [x8]
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.private_extern _func2 ## -- Begin function func2
.globl _func2
.p2align 4, 0x90
_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 _retval@GOTPCREL(%rip), %rax
movl (%rax), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/647653.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, #24]
add x0, sp, #31
adrp x1, l___const.main.b@PAGE
add x1, x1, l___const.main.b@PAGEOFF
mov x2, #1001
bl _memcpy
str wzr, [sp, #20]
mov w8, #2
str w8, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #997
cset w8, gt
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #2
add x9, sp, #31
ldrsb w8, [x9, w8, sxtw]
subs w8, w8, #48
ldr w10, [sp, #12]
subs w10, w10, #1
ldrsb w10, [x9, w10, sxtw]
subs w10, w10, #48
mul w8, w8, w10
ldrsw x10, [sp, #12]
ldrsb w10, [x9, x10]
subs w10, w10, #48
mul w8, w8, w10
ldr w10, [sp, #12]
add w10, w10, #1
ldrsb w10, [x9, w10, sxtw]
subs w10, w10, #48
mul w8, w8, w10
ldr w10, [sp, #12]
add w10, w10, #2
ldrsb w9, [x9, w10, sxtw]
subs w9, w9, #48
mul w8, w8, w9
str w8, [sp, #16]
ldr w8, [sp, #16]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
str w8, [sp, #20]
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_1
LBB0_6:
ldr w9, [sp, #20]
; 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
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_8
b LBB0_7
LBB0_7:
bl ___stack_chk_fail
LBB0_8:
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
.section __TEXT,__cstring,cstring_literals
l___const.main.b: ; @__const.main.b
.asciz "7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452387493035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776657273330010533678812202354218097512545405947522435258490771167055601360483958644670632441572215539753697817977846174064955149290862569321978468622482839722413756570560574902614079729686524145351004748216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586178664583591245665294765456828489128831426076900422421902267105562632111110937054421750694165896040807198403850962455444362981230987879927244284909188845801561660979191338754992005240636899125607176060588611646710940507754100225698315520005593572972571636269561882670428252483600823257530420752963450"
l_.str: ; @.str
.asciz "%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _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 $1040, %rsp ## imm = 0x410
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -1028(%rbp)
leaq -1024(%rbp), %rdi
leaq L___const.main.b(%rip), %rsi
movl $1001, %edx ## imm = 0x3E9
callq _memcpy
movl $0, -1032(%rbp)
movl $2, -1040(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $997, -1040(%rbp) ## imm = 0x3E5
jg LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -1040(%rbp), %eax
subl $2, %eax
cltq
movsbl -1024(%rbp,%rax), %eax
subl $48, %eax
movl -1040(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movsbl -1024(%rbp,%rcx), %ecx
subl $48, %ecx
imull %ecx, %eax
movslq -1040(%rbp), %rcx
movsbl -1024(%rbp,%rcx), %ecx
subl $48, %ecx
imull %ecx, %eax
movl -1040(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movsbl -1024(%rbp,%rcx), %ecx
subl $48, %ecx
imull %ecx, %eax
movl -1040(%rbp), %ecx
addl $2, %ecx
movslq %ecx, %rcx
movsbl -1024(%rbp,%rcx), %ecx
subl $48, %ecx
imull %ecx, %eax
movl %eax, -1036(%rbp)
movl -1036(%rbp), %eax
cmpl -1032(%rbp), %eax
jle LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -1036(%rbp), %eax
movl %eax, -1032(%rbp)
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movl -1040(%rbp), %eax
addl $1, %eax
movl %eax, -1040(%rbp)
jmp LBB0_1
LBB0_6:
movl -1032(%rbp), %esi
leaq L_.str(%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_8
## %bb.7:
xorl %eax, %eax
addq $1040, %rsp ## imm = 0x410
popq %rbp
retq
LBB0_8:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
.p2align 4 ## @__const.main.b
L___const.main.b:
.asciz "7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452387493035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776657273330010533678812202354218097512545405947522435258490771167055601360483958644670632441572215539753697817977846174064955149290862569321978468622482839722413756570560574902614079729686524145351004748216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586178664583591245665294765456828489128831426076900422421902267105562632111110937054421750694165896040807198403850962455444362981230987879927244284909188845801561660979191338754992005240636899125607176060588611646710940507754100225698315520005593572972571636269561882670428252483600823257530420752963450"
L_.str: ## @.str
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/29826730.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, #28]
str wzr, [sp, #20]
mov x9, sp
add x8, sp, #24
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
str wzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldr w9, [sp, #24]
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, #16]
add x8, sp, #32
add x8, x8, x9, lsl #2
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
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:
str wzr, [sp, #16]
b LBB0_5
LBB0_5: ; =>This Loop Header: Depth=1
; Child Loop BB0_7 Depth 2
ldr w8, [sp, #16]
ldr w9, [sp, #24]
subs w9, w9, #1
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_15
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
str wzr, [sp, #12]
b LBB0_7
LBB0_7: ; Parent Loop BB0_5 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #12]
ldr w9, [sp, #24]
subs w9, w9, #1
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_13
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=2
ldrsw x8, [sp, #16]
add x9, sp, #32
ldr w8, [x9, x8, lsl #2]
ldrsw x10, [sp, #12]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_7 Depth=2
ldr w8, [sp, #16]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_7 Depth=2
mov w8, #1
str w8, [sp, #20]
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_7 Depth=2
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_7 Depth=2
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
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 w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_5
LBB0_15:
ldr w8, [sp, #20]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_18
LBB0_17:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_18
LBB0_18:
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_20
b LBB0_19
LBB0_19:
bl ___stack_chk_fail
LBB0_20:
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 "%d"
l_.str.1: ; @.str.1
.asciz "YES"
l_.str.2: ; @.str.2
.asciz "NO"
.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, -212(%rbp)
movl $0, -220(%rbp)
leaq L_.str(%rip), %rdi
leaq -216(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -224(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -224(%rbp), %eax
cmpl -216(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -224(%rbp), %rax
leaq -208(%rbp), %rsi
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 -224(%rbp), %eax
addl $1, %eax
movl %eax, -224(%rbp)
jmp LBB0_1
LBB0_4:
movl $0, -224(%rbp)
LBB0_5: ## =>This Loop Header: Depth=1
## Child Loop BB0_7 Depth 2
movl -224(%rbp), %eax
movl -216(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jg LBB0_15
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl $0, -228(%rbp)
LBB0_7: ## Parent Loop BB0_5 Depth=1
## => This Inner Loop Header: Depth=2
movl -228(%rbp), %eax
movl -216(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jg LBB0_13
## %bb.8: ## in Loop: Header=BB0_7 Depth=2
movslq -224(%rbp), %rax
movl -208(%rbp,%rax,4), %eax
movslq -228(%rbp), %rcx
cmpl -208(%rbp,%rcx,4), %eax
jne LBB0_11
## %bb.9: ## in Loop: Header=BB0_7 Depth=2
movl -224(%rbp), %eax
cmpl -228(%rbp), %eax
je LBB0_11
## %bb.10: ## in Loop: Header=BB0_7 Depth=2
movl $1, -220(%rbp)
LBB0_11: ## in Loop: Header=BB0_7 Depth=2
jmp LBB0_12
LBB0_12: ## in Loop: Header=BB0_7 Depth=2
movl -228(%rbp), %eax
addl $1, %eax
movl %eax, -228(%rbp)
jmp LBB0_7
LBB0_13: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_14
LBB0_14: ## in Loop: Header=BB0_5 Depth=1
movl -224(%rbp), %eax
addl $1, %eax
movl %eax, -224(%rbp)
jmp LBB0_5
LBB0_15:
cmpl $1, -220(%rbp)
jne LBB0_17
## %bb.16:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_18
LBB0_17:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
LBB0_18:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_20
## %bb.19:
xorl %eax, %eax
addq $240, %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 "YES"
L_.str.2: ## @.str.2
.asciz "NO"
.subsections_via_symbols
| the_stack_data/995457.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _square ; -- Begin function square
.p2align 2
_square: ; @square
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr w8, [x8]
ldr x9, [sp, #8]
ldr w9, [x9]
mul w8, w8, w9
str w8, [sp, #4]
ldrsw x0, [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 x0, x29, #8
mov w8, #6
stur w8, [x29, #-8]
bl _square
mov x8, x0
stur w8, [x29, #-12]
ldur w8, [x29, #-8]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-12]
; 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
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 "%d squared is %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _square ## -- Begin function square
.p2align 4, 0x90
_square: ## @square
.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
movq -8(%rbp), %rcx
imull (%rcx), %eax
movl %eax, -12(%rbp)
movslq -12(%rbp), %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 $16, %rsp
movl $0, -4(%rbp)
movl $6, -8(%rbp)
leaq -8(%rbp), %rdi
callq _square
## kill: def $eax killed $eax killed $rax
movl %eax, -12(%rbp)
movl -8(%rbp), %esi
movl -12(%rbp), %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 "%d squared is %d\n"
.subsections_via_symbols
| the_stack_data/1071911.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _init ; -- Begin function init
.p2align 2
_init: ; @init
.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, #-8]
stur w1, [x29, #-12]
str w2, [sp, #16]
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldursw x9, [x29, #-8]
adrp x8, _arr@GOTPAGE
ldr x8, [x8, _arr@GOTPAGEOFF]
ldr w8, [x8, x9, lsl #2]
ldrsw x10, [sp, #16]
adrp x9, _tree@GOTPAGE
ldr x9, [x9, _tree@GOTPAGEOFF]
str w8, [x9, x10, lsl #2]
stur w8, [x29, #-4]
b LBB0_6
LBB0_2:
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
add w8, w8, w9
asr w8, w8, #1
str w8, [sp, #12]
ldur w0, [x29, #-8]
ldr w1, [sp, #12]
ldr w8, [sp, #16]
lsl w2, w8, #1
bl _init
str w0, [sp, #8]
ldr w8, [sp, #12]
add w0, w8, #1
ldur w1, [x29, #-12]
ldr w8, [sp, #16]
lsl w8, w8, #1
add w2, w8, #1
bl _init
str w0, [sp, #4]
ldr w8, [sp, #8]
ldr w9, [sp, #4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr w8, [sp, #8]
str w8, [sp] ; 4-byte Folded Spill
b LBB0_5
LBB0_4:
ldr w8, [sp, #4]
str w8, [sp] ; 4-byte Folded Spill
b LBB0_5
LBB0_5:
ldr w8, [sp] ; 4-byte Folded Reload
ldrsw x10, [sp, #16]
adrp x9, _tree@GOTPAGE
ldr x9, [x9, _tree@GOTPAGEOFF]
str w8, [x9, x10, lsl #2]
stur w8, [x29, #-4]
b LBB0_6
LBB0_6:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _init2 ; -- Begin function init2
.p2align 2
_init2: ; @init2
.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, #-8]
stur w1, [x29, #-12]
str w2, [sp, #16]
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldursw x9, [x29, #-8]
adrp x8, _arr@GOTPAGE
ldr x8, [x8, _arr@GOTPAGEOFF]
ldr w8, [x8, x9, lsl #2]
ldrsw x10, [sp, #16]
adrp x9, _tree2@GOTPAGE
ldr x9, [x9, _tree2@GOTPAGEOFF]
str w8, [x9, x10, lsl #2]
stur w8, [x29, #-4]
b LBB1_6
LBB1_2:
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
add w8, w8, w9
asr w8, w8, #1
str w8, [sp, #12]
ldur w0, [x29, #-8]
ldr w1, [sp, #12]
ldr w8, [sp, #16]
lsl w2, w8, #1
bl _init2
str w0, [sp, #8]
ldr w8, [sp, #12]
add w0, w8, #1
ldur w1, [x29, #-12]
ldr w8, [sp, #16]
lsl w8, w8, #1
add w2, w8, #1
bl _init2
str w0, [sp, #4]
ldr w8, [sp, #8]
ldr w9, [sp, #4]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
ldr w8, [sp, #8]
str w8, [sp] ; 4-byte Folded Spill
b LBB1_5
LBB1_4:
ldr w8, [sp, #4]
str w8, [sp] ; 4-byte Folded Spill
b LBB1_5
LBB1_5:
ldr w8, [sp] ; 4-byte Folded Reload
ldrsw x10, [sp, #16]
adrp x9, _tree2@GOTPAGE
ldr x9, [x9, _tree2@GOTPAGEOFF]
str w8, [x9, x10, lsl #2]
stur w8, [x29, #-4]
b LBB1_6
LBB1_6:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _query ; -- Begin function query
.p2align 2
_query: ; @query
.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, #-8]
stur w1, [x29, #-12]
str w2, [sp, #16]
adrp x8, _a@GOTPAGE
ldr x8, [x8, _a@GOTPAGEOFF]
ldr w8, [x8]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
adrp x8, _b@GOTPAGE
ldr x8, [x8, _b@GOTPAGEOFF]
ldr w8, [x8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2:
mov w8, #12977
movk w8, #30329, lsl #16
stur w8, [x29, #-4]
b LBB2_10
LBB2_3:
adrp x8, _a@GOTPAGE
ldr x8, [x8, _a@GOTPAGEOFF]
ldr w8, [x8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB2_6
b LBB2_4
LBB2_4:
adrp x8, _b@GOTPAGE
ldr x8, [x8, _b@GOTPAGEOFF]
ldr w8, [x8]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB2_6
b LBB2_5
LBB2_5:
ldursw x9, [x29, #-8]
adrp x8, _tree@GOTPAGE
ldr x8, [x8, _tree@GOTPAGEOFF]
ldr w8, [x8, x9, lsl #2]
stur w8, [x29, #-4]
b LBB2_10
LBB2_6:
ldur w8, [x29, #-12]
ldr w9, [sp, #16]
add w8, w8, w9
asr w8, w8, #1
str w8, [sp, #12]
ldur w8, [x29, #-8]
lsl w0, w8, #1
ldur w1, [x29, #-12]
ldr w2, [sp, #12]
bl _query
str w0, [sp, #8]
ldur w8, [x29, #-8]
lsl w8, w8, #1
add w0, w8, #1
ldr w8, [sp, #12]
add w1, w8, #1
ldr w2, [sp, #16]
bl _query
str w0, [sp, #4]
ldr w8, [sp, #8]
ldr w9, [sp, #4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_8
b LBB2_7
LBB2_7:
ldr w8, [sp, #8]
str w8, [sp] ; 4-byte Folded Spill
b LBB2_9
LBB2_8:
ldr w8, [sp, #4]
str w8, [sp] ; 4-byte Folded Spill
b LBB2_9
LBB2_9:
ldr w8, [sp] ; 4-byte Folded Reload
stur w8, [x29, #-4]
b LBB2_10
LBB2_10:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _query2 ; -- Begin function query2
.p2align 2
_query2: ; @query2
.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, #-8]
stur w1, [x29, #-12]
str w2, [sp, #16]
adrp x8, _a@GOTPAGE
ldr x8, [x8, _a@GOTPAGEOFF]
ldr w8, [x8]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
adrp x8, _b@GOTPAGE
ldr x8, [x8, _b@GOTPAGEOFF]
ldr w8, [x8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_3
b LBB3_2
LBB3_2:
stur wzr, [x29, #-4]
b LBB3_10
LBB3_3:
adrp x8, _a@GOTPAGE
ldr x8, [x8, _a@GOTPAGEOFF]
ldr w8, [x8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB3_6
b LBB3_4
LBB3_4:
adrp x8, _b@GOTPAGE
ldr x8, [x8, _b@GOTPAGEOFF]
ldr w8, [x8]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB3_6
b LBB3_5
LBB3_5:
ldursw x9, [x29, #-8]
adrp x8, _tree2@GOTPAGE
ldr x8, [x8, _tree2@GOTPAGEOFF]
ldr w8, [x8, x9, lsl #2]
stur w8, [x29, #-4]
b LBB3_10
LBB3_6:
ldur w8, [x29, #-12]
ldr w9, [sp, #16]
add w8, w8, w9
asr w8, w8, #1
str w8, [sp, #12]
ldur w8, [x29, #-8]
lsl w0, w8, #1
ldur w1, [x29, #-12]
ldr w2, [sp, #12]
bl _query2
str w0, [sp, #8]
ldur w8, [x29, #-8]
lsl w8, w8, #1
add w0, w8, #1
ldr w8, [sp, #12]
add w1, w8, #1
ldr w2, [sp, #16]
bl _query2
str w0, [sp, #4]
ldr w8, [sp, #8]
ldr w9, [sp, #4]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB3_8
b LBB3_7
LBB3_7:
ldr w8, [sp, #8]
str w8, [sp] ; 4-byte Folded Spill
b LBB3_9
LBB3_8:
ldr w8, [sp, #4]
str w8, [sp] ; 4-byte Folded Spill
b LBB3_9
LBB3_9:
ldr w8, [sp] ; 4-byte Folded Reload
stur w8, [x29, #-4]
b LBB3_10
LBB3_10:
ldur w0, [x29, #-4]
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
adrp x8, _n@GOTPAGE
ldr x8, [x8, _n@GOTPAGEOFF]
str x8, [sp, #40] ; 8-byte Folded Spill
adrp x9, _a@GOTPAGE
ldr x9, [x9, _a@GOTPAGEOFF]
stur x9, [x29, #-32] ; 8-byte Folded Spill
adrp x9, _b@GOTPAGE
ldr x9, [x9, _b@GOTPAGEOFF]
stur x9, [x29, #-24] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
mov x9, sp
str x8, [x9]
adrp x8, _k@GOTPAGE
ldr x8, [x8, _k@GOTPAGEOFF]
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
stur wzr, [x29, #-8]
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldur w8, [x29, #-8]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB4_4
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldursw x9, [x29, #-8]
adrp x8, _arr@GOTPAGE
ldr x8, [x8, _arr@GOTPAGEOFF]
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 LBB4_3
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB4_1
LBB4_4:
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w8, [x8]
mov w2, #1
str w2, [sp, #32] ; 4-byte Folded Spill
subs w1, w8, #1
mov w0, #0
str w0, [sp, #36] ; 4-byte Folded Spill
bl _init
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w2, [sp, #32] ; 4-byte Folded Reload
ldr w0, [sp, #36] ; 4-byte Folded Reload
ldr w8, [x8]
subs w1, w8, #1
bl _init2
stur wzr, [x29, #-12]
b LBB4_5
LBB4_5: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
adrp x9, _k@GOTPAGE
ldr x9, [x9, _k@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB4_8
b LBB4_6
LBB4_6: ; in Loop: Header=BB4_5 Depth=1
ldur x8, [x29, #-24] ; 8-byte Folded Reload
ldur x10, [x29, #-32] ; 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
ldur x11, [x29, #-32] ; 8-byte Folded Reload
ldur x10, [x29, #-24] ; 8-byte Folded Reload
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w9, [x11]
subs w9, w9, #1
str w9, [x11]
ldr w9, [x10]
subs w9, w9, #1
str w9, [x10]
ldr w8, [x8]
mov w0, #1
str w0, [sp, #24] ; 4-byte Folded Spill
subs w2, w8, #1
mov w1, #0
str w1, [sp, #20] ; 4-byte Folded Spill
bl _query
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w1, [sp, #20] ; 4-byte Folded Reload
mov x9, x0
ldr w0, [sp, #24] ; 4-byte Folded Reload
str w9, [sp, #28] ; 4-byte Folded Spill
ldr w8, [x8]
subs w2, w8, #1
bl _query2
ldr w10, [sp, #28] ; 4-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
; implicit-def: $x8
mov x8, x0
str x8, [x9, #8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB4_7
LBB4_7: ; in Loop: Header=BB4_5 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB4_5
LBB4_8:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.comm _arr,400000,2 ; @arr
.comm _tree,1600004,2 ; @tree
.comm _tree2,1600004,2 ; @tree2
.comm _a,4,2 ; @a
.comm _b,4,2 ; @b
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d%d"
.comm _n,4,2 ; @n
.comm _k,4,2 ; @k
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "%d %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _init ## -- Begin function init
.p2align 4, 0x90
_init: ## @init
.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, -8(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movl -8(%rbp), %eax
cmpl -12(%rbp), %eax
jne LBB0_2
## %bb.1:
movslq -8(%rbp), %rcx
movq _arr@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %eax
movslq -16(%rbp), %rdx
movq _tree@GOTPCREL(%rip), %rcx
movl %eax, (%rcx,%rdx,4)
movl %eax, -4(%rbp)
jmp LBB0_6
LBB0_2:
movl -8(%rbp), %eax
addl -12(%rbp), %eax
sarl $1, %eax
movl %eax, -20(%rbp)
movl -8(%rbp), %edi
movl -20(%rbp), %esi
movl -16(%rbp), %edx
shll $1, %edx
callq _init
movl %eax, -24(%rbp)
movl -20(%rbp), %edi
addl $1, %edi
movl -12(%rbp), %esi
movl -16(%rbp), %edx
shll $1, %edx
addl $1, %edx
callq _init
movl %eax, -28(%rbp)
movl -24(%rbp), %eax
cmpl -28(%rbp), %eax
jge LBB0_4
## %bb.3:
movl -24(%rbp), %eax
movl %eax, -32(%rbp) ## 4-byte Spill
jmp LBB0_5
LBB0_4:
movl -28(%rbp), %eax
movl %eax, -32(%rbp) ## 4-byte Spill
LBB0_5:
movl -32(%rbp), %eax ## 4-byte Reload
movslq -16(%rbp), %rdx
movq _tree@GOTPCREL(%rip), %rcx
movl %eax, (%rcx,%rdx,4)
movl %eax, -4(%rbp)
LBB0_6:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _init2 ## -- Begin function init2
.p2align 4, 0x90
_init2: ## @init2
.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, -8(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movl -8(%rbp), %eax
cmpl -12(%rbp), %eax
jne LBB1_2
## %bb.1:
movslq -8(%rbp), %rcx
movq _arr@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %eax
movslq -16(%rbp), %rdx
movq _tree2@GOTPCREL(%rip), %rcx
movl %eax, (%rcx,%rdx,4)
movl %eax, -4(%rbp)
jmp LBB1_6
LBB1_2:
movl -8(%rbp), %eax
addl -12(%rbp), %eax
sarl $1, %eax
movl %eax, -20(%rbp)
movl -8(%rbp), %edi
movl -20(%rbp), %esi
movl -16(%rbp), %edx
shll $1, %edx
callq _init2
movl %eax, -24(%rbp)
movl -20(%rbp), %edi
addl $1, %edi
movl -12(%rbp), %esi
movl -16(%rbp), %edx
shll $1, %edx
addl $1, %edx
callq _init2
movl %eax, -28(%rbp)
movl -24(%rbp), %eax
cmpl -28(%rbp), %eax
jle LBB1_4
## %bb.3:
movl -24(%rbp), %eax
movl %eax, -32(%rbp) ## 4-byte Spill
jmp LBB1_5
LBB1_4:
movl -28(%rbp), %eax
movl %eax, -32(%rbp) ## 4-byte Spill
LBB1_5:
movl -32(%rbp), %eax ## 4-byte Reload
movslq -16(%rbp), %rdx
movq _tree2@GOTPCREL(%rip), %rcx
movl %eax, (%rcx,%rdx,4)
movl %eax, -4(%rbp)
LBB1_6:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _query ## -- Begin function query
.p2align 4, 0x90
_query: ## @query
.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, -8(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movq _a@GOTPCREL(%rip), %rax
movl (%rax), %eax
cmpl -16(%rbp), %eax
jg LBB2_2
## %bb.1:
movq _b@GOTPCREL(%rip), %rax
movl (%rax), %eax
cmpl -12(%rbp), %eax
jge LBB2_3
LBB2_2:
movl $1987654321, -4(%rbp) ## imm = 0x767932B1
jmp LBB2_10
LBB2_3:
movq _a@GOTPCREL(%rip), %rax
movl (%rax), %eax
cmpl -12(%rbp), %eax
jg LBB2_6
## %bb.4:
movq _b@GOTPCREL(%rip), %rax
movl (%rax), %eax
cmpl -16(%rbp), %eax
jl LBB2_6
## %bb.5:
movslq -8(%rbp), %rcx
movq _tree@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %eax
movl %eax, -4(%rbp)
jmp LBB2_10
LBB2_6:
movl -12(%rbp), %eax
addl -16(%rbp), %eax
sarl $1, %eax
movl %eax, -20(%rbp)
movl -8(%rbp), %edi
shll $1, %edi
movl -12(%rbp), %esi
movl -20(%rbp), %edx
callq _query
movl %eax, -24(%rbp)
movl -8(%rbp), %edi
shll $1, %edi
addl $1, %edi
movl -20(%rbp), %esi
addl $1, %esi
movl -16(%rbp), %edx
callq _query
movl %eax, -28(%rbp)
movl -24(%rbp), %eax
cmpl -28(%rbp), %eax
jge LBB2_8
## %bb.7:
movl -24(%rbp), %eax
movl %eax, -32(%rbp) ## 4-byte Spill
jmp LBB2_9
LBB2_8:
movl -28(%rbp), %eax
movl %eax, -32(%rbp) ## 4-byte Spill
LBB2_9:
movl -32(%rbp), %eax ## 4-byte Reload
movl %eax, -4(%rbp)
LBB2_10:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _query2 ## -- Begin function query2
.p2align 4, 0x90
_query2: ## @query2
.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, -8(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movq _a@GOTPCREL(%rip), %rax
movl (%rax), %eax
cmpl -16(%rbp), %eax
jg LBB3_2
## %bb.1:
movq _b@GOTPCREL(%rip), %rax
movl (%rax), %eax
cmpl -12(%rbp), %eax
jge LBB3_3
LBB3_2:
movl $0, -4(%rbp)
jmp LBB3_10
LBB3_3:
movq _a@GOTPCREL(%rip), %rax
movl (%rax), %eax
cmpl -12(%rbp), %eax
jg LBB3_6
## %bb.4:
movq _b@GOTPCREL(%rip), %rax
movl (%rax), %eax
cmpl -16(%rbp), %eax
jl LBB3_6
## %bb.5:
movslq -8(%rbp), %rcx
movq _tree2@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %eax
movl %eax, -4(%rbp)
jmp LBB3_10
LBB3_6:
movl -12(%rbp), %eax
addl -16(%rbp), %eax
sarl $1, %eax
movl %eax, -20(%rbp)
movl -8(%rbp), %edi
shll $1, %edi
movl -12(%rbp), %esi
movl -20(%rbp), %edx
callq _query2
movl %eax, -24(%rbp)
movl -8(%rbp), %edi
shll $1, %edi
addl $1, %edi
movl -20(%rbp), %esi
addl $1, %esi
movl -16(%rbp), %edx
callq _query2
movl %eax, -28(%rbp)
movl -24(%rbp), %eax
cmpl -28(%rbp), %eax
jle LBB3_8
## %bb.7:
movl -24(%rbp), %eax
movl %eax, -32(%rbp) ## 4-byte Spill
jmp LBB3_9
LBB3_8:
movl -28(%rbp), %eax
movl %eax, -32(%rbp) ## 4-byte Spill
LBB3_9:
movl -32(%rbp), %eax ## 4-byte Reload
movl %eax, -4(%rbp)
LBB3_10:
movl -4(%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 $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
movq _n@GOTPCREL(%rip), %rsi
movq _k@GOTPCREL(%rip), %rdx
movb $0, %al
callq _scanf
movl $0, -8(%rbp)
LBB4_1: ## =>This Inner Loop Header: Depth=1
movl -8(%rbp), %eax
movq _n@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB4_4
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movslq -8(%rbp), %rax
movq _arr@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=BB4_1 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB4_1
LBB4_4:
movq _n@GOTPCREL(%rip), %rax
movl (%rax), %esi
subl $1, %esi
xorl %edi, %edi
movl $1, %edx
callq _init
movq _n@GOTPCREL(%rip), %rax
movl (%rax), %esi
subl $1, %esi
xorl %edi, %edi
movl $1, %edx
callq _init2
movl $0, -12(%rbp)
LBB4_5: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
movq _k@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB4_8
## %bb.6: ## in Loop: Header=BB4_5 Depth=1
leaq L_.str(%rip), %rdi
movq _a@GOTPCREL(%rip), %rsi
movq _b@GOTPCREL(%rip), %rdx
movb $0, %al
callq _scanf
movq _a@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $-1, %ecx
movq _a@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _b@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $-1, %ecx
movq _b@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _n@GOTPCREL(%rip), %rax
movl (%rax), %edx
subl $1, %edx
movl $1, %edi
xorl %esi, %esi
callq _query
movl %eax, -16(%rbp) ## 4-byte Spill
movq _n@GOTPCREL(%rip), %rax
movl (%rax), %edx
subl $1, %edx
movl $1, %edi
xorl %esi, %esi
callq _query2
movl -16(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.7: ## in Loop: Header=BB4_5 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB4_5
LBB4_8:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _arr,400000,4 ## @arr
.comm _tree,1600004,4 ## @tree
.comm _tree2,1600004,4 ## @tree2
.comm _a,4,2 ## @a
.comm _b,4,2 ## @b
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d%d"
.comm _n,4,2 ## @n
.comm _k,4,2 ## @k
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "%d %d\n"
.subsections_via_symbols
| the_stack_data/153268580.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _recursive_function ; -- Begin function recursive_function
.p2align 2
_recursive_function: ; @recursive_function
.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, #10064
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #2, lsl #12 ; =8192
sub sp, sp, #1872
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #32]
str w1, [sp, #28]
str w2, [sp, #24]
ldrsw x8, [sp, #28]
mov x9, #10000
add x8, x8, x9
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #28]
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
ldr w8, [sp, #24]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #28]
; 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
adrp x8, ___stdinp@GOTPAGE
ldr x8, [x8, ___stdinp@GOTPAGEOFF]
ldr x2, [x8]
add x0, sp, #46
mov w1, #10
bl _fgets
ldrsb w0, [sp, #46]
bl _toupper
str w0, [sp, #20]
ldr w8, [sp, #20]
subs w8, w8, #89
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w1, [sp, #28]
ldr w2, [sp, #24]
add x0, sp, #56
bl _recursive_function
b LBB0_2
LBB0_2:
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_4
b LBB0_3
LBB0_3:
bl ___stack_chk_fail
LBB0_4:
add sp, sp, #2, lsl #12 ; =8192
add sp, sp, #1872
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, #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 w2, #0
str w2, [sp, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
str x1, [sp, #16]
mov x0, #0
mov x1, x2
bl _recursive_function
ldr w0, [sp, #12] ; 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 "recursion level=%d, size=%d; continue? "
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _recursive_function ## -- Begin function recursive_function
.p2align 4, 0x90
_recursive_function: ## @recursive_function
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $10064, %eax ## imm = 0x2750
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -10040(%rbp)
movl %esi, -10044(%rbp)
movl %edx, -10048(%rbp)
movslq -10044(%rbp), %rax
addq $10000, %rax ## imm = 0x2710
## kill: def $eax killed $eax killed $rax
movl %eax, -10044(%rbp)
movl -10048(%rbp), %eax
addl $1, %eax
movl %eax, -10048(%rbp)
movl -10048(%rbp), %esi
movl -10044(%rbp), %edx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq -10026(%rbp), %rdi
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rdx
movl $10, %esi
callq _fgets
movsbl -10026(%rbp), %edi
callq _toupper
movl %eax, -10052(%rbp)
cmpl $89, -10052(%rbp)
jne LBB0_2
## %bb.1:
leaq -10016(%rbp), %rdi
movl -10044(%rbp), %esi
movl -10048(%rbp), %edx
callq _recursive_function
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 $10064, %rsp ## imm = 0x2750
popq %rbp
retq
LBB0_4:
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 $16, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
xorl %eax, %eax
movl %eax, %edi
xorl %edx, %edx
movl %edx, %esi
callq _recursive_function
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "recursion level=%d, size=%d; continue? "
.subsections_via_symbols
| the_stack_data/156392640.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
mov w9, #272
movk w9, #1, lsl #16
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #16, lsl #12 ; =65536
sub sp, sp, #272
add x8, sp, #224
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]
mov w2, #0
str wzr, [sp, #120]
str w0, [sp, #116]
str x1, [sp, #104]
str wzr, [sp, #100]
mov w1, #1
str w1, [sp, #84]
str w1, [sp, #80]
mov w0, #2
bl _socket
str w0, [sp, #100]
ldr w8, [sp, #100]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB0_2
LBB0_2:
ldr x8, [sp, #56] ; 8-byte Folded Reload
add x9, sp, #248
str x9, [sp, #48] ; 8-byte Folded Spill
str xzr, [x8, #24]
str xzr, [x8, #32]
mov w8, #2
strb w8, [sp, #249]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _inet_addr
ldr x1, [sp, #48] ; 8-byte Folded Reload
str w0, [sp, #252]
mov w8, #36895
strh w8, [sp, #250]
ldr w0, [sp, #100]
mov w2, #16
bl _connect
str w0, [sp, #68]
ldr w8, [sp, #68]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_4
LBB0_4:
ldr x9, [sp, #56] ; 8-byte Folded Reload
adrp x8, l___const.main.message@PAGE
add x8, x8, l___const.main.message@PAGEOFF
ldr q0, [x8]
add x10, sp, #224
str x10, [sp, #16] ; 8-byte Folded Spill
str q0, [x9]
ldr w8, [x8, #16]
str w8, [sp, #240]
add x0, sp, #124
str x0, [sp, #40] ; 8-byte Folded Spill
mov w1, #0
mov x2, #100
str x2, [sp, #24] ; 8-byte Folded Spill
bl _memset
ldr x1, [sp, #16] ; 8-byte Folded Reload
ldr w0, [sp, #100]
mov x2, #20
mov w3, #0
str w3, [sp, #36] ; 4-byte Folded Spill
bl _send
ldr x2, [sp, #24] ; 8-byte Folded Reload
ldr w3, [sp, #36] ; 4-byte Folded Reload
ldr x1, [sp, #40] ; 8-byte Folded Reload
ldr w0, [sp, #100]
bl _recv
ldr x8, [sp, #40] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
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
ldr w0, [sp, #100]
bl _close
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_6
b LBB0_5
LBB0_5:
bl ___stack_chk_fail
LBB0_6:
mov w0, #0
add sp, sp, #16, lsl #12 ; =65536
add sp, sp, #272
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 "Fail to create a socket."
l_.str.1: ; @.str.1
.asciz "127.0.0.1"
l_.str.2: ; @.str.2
.asciz "Connection error"
.section __TEXT,__const
l___const.main.message: ; @__const.main.message
.asciz "Requester: fanfan\000\000"
.section __TEXT,__cstring,cstring_literals
l_.str.3: ; @.str.3
.asciz "%s"
l_.str.4: ; @.str.4
.asciz "close Socket\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
movl $65776, %eax ## imm = 0x100F0
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -65716(%rbp)
movl %edi, -65720(%rbp)
movq %rsi, -65728(%rbp)
movl $0, -65732(%rbp)
movl $1, -65748(%rbp)
movl $1, -65752(%rbp)
movl $2, %edi
movl $1, %esi
xorl %edx, %edx
callq _socket
movl %eax, -65732(%rbp)
cmpl $-1, -65732(%rbp)
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
LBB0_2:
leaq -65568(%rbp), %rdi
xorl %esi, %esi
movl $16, %edx
callq _memset
movb $2, -65567(%rbp)
leaq L_.str.1(%rip), %rdi
callq _inet_addr
movl %eax, -65564(%rbp)
movw $-28641, -65566(%rbp) ## imm = 0x901F
movl -65732(%rbp), %edi
leaq -65568(%rbp), %rsi
movl $16, %edx
callq _connect
movl %eax, -65764(%rbp)
cmpl $-1, -65764(%rbp)
jne LBB0_4
## %bb.3:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
LBB0_4:
movq l___const.main.message(%rip), %rax
movq %rax, -65600(%rbp)
movq l___const.main.message+8(%rip), %rax
movq %rax, -65592(%rbp)
movl l___const.main.message+16(%rip), %eax
movl %eax, -65584(%rbp)
leaq -65712(%rbp), %rdi
xorl %esi, %esi
movl $100, %edx
callq _memset
movl -65732(%rbp), %edi
leaq -65600(%rbp), %rsi
movl $20, %edx
xorl %ecx, %ecx
callq _send
movl -65732(%rbp), %edi
leaq -65712(%rbp), %rsi
movl $100, %edx
xorl %ecx, %ecx
callq _recv
leaq -65712(%rbp), %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movl -65732(%rbp), %edi
callq _close
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_6
## %bb.5:
xorl %eax, %eax
addq $65776, %rsp ## imm = 0x100F0
popq %rbp
retq
LBB0_6:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Fail to create a socket."
L_.str.1: ## @.str.1
.asciz "127.0.0.1"
L_.str.2: ## @.str.2
.asciz "Connection error"
.section __TEXT,__const
.p2align 4 ## @__const.main.message
l___const.main.message:
.asciz "Requester: fanfan\000\000"
.section __TEXT,__cstring,cstring_literals
L_.str.3: ## @.str.3
.asciz "%s"
L_.str.4: ## @.str.4
.asciz "close Socket\n"
.subsections_via_symbols
| the_stack_data/95451087.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _revise ; -- Begin function revise
.p2align 2
_revise: ; @revise
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str x1, [sp]
ldr x8, [sp, #8]
ldr w8, [x8]
lsl w8, w8, #1
ldr x9, [sp, #8]
str w8, [x9]
ldr x8, [sp]
ldr w8, [x8]
lsl w8, w8, #1
ldr x9, [sp]
str w8, [x9]
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
sub x9, x29, #4
mov w8, #765
stur w8, [x29, #-4]
sub x8, x29, #8
mov w10, #876
stur w10, [x29, #-8]
stur x9, [x29, #-16]
str x8, [sp, #24]
ldur x0, [x29, #-16]
ldr x1, [sp, #24]
bl _revise
ldur x8, [x29, #-16]
ldr w8, [x8]
; implicit-def: $x10
mov x10, x8
ldr x8, [sp, #24]
ldr w9, [x8]
; 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
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 %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _revise ## -- Begin function revise
.p2align 4, 0x90
_revise: ## @revise
.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
movl (%rax), %ecx
shll $1, %ecx
movq -8(%rbp), %rax
movl %ecx, (%rax)
movq -16(%rbp), %rax
movl (%rax), %ecx
shll $1, %ecx
movq -16(%rbp), %rax
movl %ecx, (%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 $765, -4(%rbp) ## imm = 0x2FD
movl $876, -8(%rbp) ## imm = 0x36C
leaq -4(%rbp), %rax
movq %rax, -16(%rbp)
leaq -8(%rbp), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
callq _revise
movq -16(%rbp), %rax
movl (%rax), %esi
movq -24(%rbp), %rax
movl (%rax), %edx
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 %d\n"
.subsections_via_symbols
| the_stack_data/159514657.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _i ; @i
.zerofill __DATA,__common,_i,4,2
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _i ## @i
.zerofill __DATA,__common,_i,4,2
.subsections_via_symbols
| the_stack_data/37638888.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _solve ; -- Begin function solve
.p2align 2
_solve: ; @solve
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
adrp x8, _max_shy@GOTPAGE
ldr x8, [x8, _max_shy@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
str wzr, [sp, #28]
str wzr, [sp, #24]
mov w8, #-1
str w8, [sp, #20]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr w8, [sp, #28]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr w8, [sp, #20]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #20]
ldr w9, [sp, #28]
subs w8, w8, w9
cset w8, lt
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #4] ; 4-byte Folded Reload
tbz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #20]
add w9, w8, #1
str w9, [sp, #20]
adrp x8, _s@GOTPAGE
ldr x8, [x8, _s@GOTPAGEOFF]
ldrsb w8, [x8, w9, sxtw]
subs w9, w8, #48
ldr w8, [sp, #28]
add w8, w8, w9
str w8, [sp, #28]
b LBB0_3
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr w8, [sp, #28]
ldr w9, [x9]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
b LBB0_10
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_1
LBB0_10:
ldr w0, [sp, #24]
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, #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]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
mov w8, #1
stur w8, [x29, #-12]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
mov x9, sp
adrp x8, _max_shy@GOTPAGE
ldr x8, [x8, _max_shy@GOTPAGEOFF]
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
adrp x0, _s@GOTPAGE
ldr x0, [x0, _s@GOTPAGEOFF]
bl _gets
bl _solve
str w0, [sp, #16]
ldur w8, [x29, #-12]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB1_1
LBB1_4:
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _max_shy,4,2 ; @max_shy
.comm _s,2000,0 ; @s
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d "
l_.str.1: ; @.str.1
.asciz "Case #%d: %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _solve ## -- Begin function solve
.p2align 4, 0x90
_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
movl $0, -4(%rbp)
movl $0, -8(%rbp)
movl $-1, -12(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movl -4(%rbp), %eax
movq _max_shy@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB0_10
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_3
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -12(%rbp), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movq _max_shy@GOTPCREL(%rip), %rdx
cmpl (%rdx), %ecx
movb %al, -13(%rbp) ## 1-byte Spill
jge LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movl -12(%rbp), %eax
cmpl -4(%rbp), %eax
setl %al
movb %al, -13(%rbp) ## 1-byte Spill
LBB0_5: ## in Loop: Header=BB0_3 Depth=2
movb -13(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_6
jmp LBB0_7
LBB0_6: ## in Loop: Header=BB0_3 Depth=2
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
movslq %eax, %rcx
movq _s@GOTPCREL(%rip), %rax
movsbl (%rax,%rcx), %eax
subl $48, %eax
addl -4(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_3
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movl -4(%rbp), %eax
movq _max_shy@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jl LBB0_9
## %bb.8:
jmp LBB0_10
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB0_1
LBB0_10:
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 $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl $1, -12(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
leaq L_.str(%rip), %rdi
movq _max_shy@GOTPCREL(%rip), %rsi
movb $0, %al
callq _scanf
movq _s@GOTPCREL(%rip), %rdi
callq _gets
callq _solve
movl %eax, -16(%rbp)
movl -12(%rbp), %esi
movl -16(%rbp), %edx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB1_1
LBB1_4:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _max_shy,4,2 ## @max_shy
.comm _s,2000,4 ## @s
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d "
L_.str.1: ## @.str.1
.asciz "Case #%d: %d\n"
.subsections_via_symbols
| the_stack_data/89201470.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _strncat ; -- Begin function strncat
.p2align 2
_strncat: ; @strncat
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
str w2, [sp, #12]
ldr x8, [sp, #24]
str x8, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
add x9, x8, #1
str x9, [sp, #24]
ldrb 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
b LBB0_1
LBB0_3:
ldr x8, [sp, #24]
subs x8, x8, #1
str x8, [sp, #24]
b LBB0_4
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
add x9, x8, #1
str x9, [sp, #16]
ldrb w8, [x8]
ldr x9, [sp, #24]
add x10, x9, #1
str x10, [sp, #24]
strb w8, [x9]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #1
str w8, [sp, #12]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr x8, [sp, #24]
subs x8, x8, #1
mov x9, x8
str x9, [sp, #24]
strb wzr, [x8]
b LBB0_8
LBB0_7: ; in Loop: Header=BB0_4 Depth=1
b LBB0_4
LBB0_8:
ldr x0, [sp]
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 _strncat ## -- Begin function strncat
.p2align 4, 0x90
_strncat: ## @strncat
.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)
movl %edx, -20(%rbp)
movq -8(%rbp), %rax
movq %rax, -32(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -8(%rbp)
cmpb $0, (%rax)
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_3:
movq -8(%rbp), %rax
addq $-1, %rax
movq %rax, -8(%rbp)
LBB0_4: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -16(%rbp)
movb (%rax), %al
movq -8(%rbp), %rcx
movq %rcx, %rdx
addq $1, %rdx
movq %rdx, -8(%rbp)
movb %al, (%rcx)
cmpb $0, %al
je LBB0_8
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movl -20(%rbp), %eax
addl $-1, %eax
movl %eax, -20(%rbp)
cmpl $0, %eax
jge LBB0_7
## %bb.6:
movq -8(%rbp), %rax
movq %rax, %rcx
addq $-1, %rcx
movq %rcx, -8(%rbp)
movb $0, -1(%rax)
jmp LBB0_8
LBB0_7: ## in Loop: Header=BB0_4 Depth=1
jmp LBB0_4
LBB0_8:
movq -32(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/8123.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__const
.globl _QUAD_GM75_PTS ; @QUAD_GM75_PTS
.p2align 3
_QUAD_GM75_PTS:
.space 16
.quad 0xbfc6f2c9a420071e ; double -0.17928429140015906
.quad 0x0000000000000000 ; double 0
.quad 0x0000000000000000 ; double 0
.quad 0xbfc6f2c9a420071e ; double -0.17928429140015906
.quad 0x0000000000000000 ; double 0
.quad 0x3fc6f2c9a420071e ; double 0.17928429140015906
.quad 0x3fc6f2c9a420071e ; double 0.17928429140015906
.quad 0x0000000000000000 ; double 0
.quad 0xbfde5b9d136c6d96 ; double -0.47434164902525688
.quad 0x0000000000000000 ; double 0
.quad 0x0000000000000000 ; double 0
.quad 0xbfde5b9d136c6d96 ; double -0.47434164902525688
.quad 0x0000000000000000 ; double 0
.quad 0x3fde5b9d136c6d96 ; double 0.47434164902525688
.quad 0x3fde5b9d136c6d96 ; double 0.47434164902525688
.quad 0x0000000000000000 ; double 0
.quad 0xbfde5b9d136c6d96 ; double -0.47434164902525688
.quad 0xbfde5b9d136c6d96 ; double -0.47434164902525688
.quad 0xbfde5b9d136c6d96 ; double -0.47434164902525688
.quad 0x3fde5b9d136c6d96 ; double 0.47434164902525688
.quad 0x3fde5b9d136c6d96 ; double 0.47434164902525688
.quad 0xbfde5b9d136c6d96 ; double -0.47434164902525688
.quad 0x3fde5b9d136c6d96 ; double 0.47434164902525688
.quad 0x3fde5b9d136c6d96 ; double 0.47434164902525688
.quad 0xbfd6061efecf8ae9 ; double -0.34412360080584264
.quad 0xbfd6061efecf8ae9 ; double -0.34412360080584264
.quad 0xbfd6061efecf8ae9 ; double -0.34412360080584264
.quad 0x3fd6061efecf8ae9 ; double 0.34412360080584264
.quad 0x3fd6061efecf8ae9 ; double 0.34412360080584264
.quad 0xbfd6061efecf8ae9 ; double -0.34412360080584264
.quad 0x3fd6061efecf8ae9 ; double 0.34412360080584264
.quad 0x3fd6061efecf8ae9 ; double 0.34412360080584264
.globl _QUAD_GM75_WHT ; @QUAD_GM75_WHT
.p2align 3
_QUAD_GM75_WHT:
.quad 0xbfc8d0d3a2d2ef07 ; double -0.19387288523090992
.quad 0x3fc31e7930f7d85b ; double 0.14936747447035512
.quad 0x3fc31e7930f7d85b ; double 0.14936747447035512
.quad 0x3fc31e7930f7d85b ; double 0.14936747447035512
.quad 0x3fc31e7930f7d85b ; double 0.14936747447035512
.quad 0x3faa8854978c317a ; double 0.051821368693796679
.quad 0x3faa8854978c317a ; double 0.051821368693796679
.quad 0x3faa8854978c317a ; double 0.051821368693796679
.quad 0x3faa8854978c317a ; double 0.051821368693796679
.quad 0x3f84cf5167cd53fb ; double 0.010161052685058172
.quad 0x3f84cf5167cd53fb ; double 0.010161052685058172
.quad 0x3f84cf5167cd53fb ; double 0.010161052685058172
.quad 0x3f84cf5167cd53fb ; double 0.010161052685058172
.quad 0x3fb64d62f6ba0390 ; double 0.087118325458517498
.quad 0x3fb64d62f6ba0390 ; double 0.087118325458517498
.quad 0x3fb64d62f6ba0390 ; double 0.087118325458517498
.quad 0x3fb64d62f6ba0390 ; double 0.087118325458517498
.globl _QUAD_GM75_ERR ; @QUAD_GM75_ERR
.p2align 3
_QUAD_GM75_ERR:
.quad 0x3ff2359c80c2c7b2 ; double 1.1380887059899405
.quad 0xbfd6b42fea2650ed ; double -0.35474775186709345
.quad 0xbfd6b42fea2650ed ; double -0.35474775186709345
.quad 0xbfd6b42fea2650ed ; double -0.35474775186709345
.quad 0xbfd6b42fea2650ed ; double -0.35474775186709345
.quad 0x3f7da76d9a516479 ; double 0.0072397500381039476
.quad 0x3f7da76d9a516479 ; double 0.0072397500381039476
.quad 0x3f7da76d9a516479 ; double 0.0072397500381039476
.quad 0x3f7da76d9a516479 ; double 0.0072397500381039476
.quad 0xbf98b630ab43d3ba ; double -0.024132500127013158
.quad 0xbf98b630ab43d3ba ; double -0.024132500127013158
.quad 0xbf98b630ab43d3ba ; double -0.024132500127013158
.quad 0xbf98b630ab43d3ba ; double -0.024132500127013158
.quad 0x3fb64d62f6ba0390 ; double 0.087118325458517498
.quad 0x3fb64d62f6ba0390 ; double 0.087118325458517498
.quad 0x3fb64d62f6ba0390 ; double 0.087118325458517498
.quad 0x3fb64d62f6ba0390 ; double 0.087118325458517498
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__const
.globl _QUAD_GM75_PTS ## @QUAD_GM75_PTS
.p2align 4
_QUAD_GM75_PTS:
.space 16
.quad 0xbfc6f2c9a420071e ## double -0.17928429140015906
.quad 0x0000000000000000 ## double 0
.quad 0x0000000000000000 ## double 0
.quad 0xbfc6f2c9a420071e ## double -0.17928429140015906
.quad 0x0000000000000000 ## double 0
.quad 0x3fc6f2c9a420071e ## double 0.17928429140015906
.quad 0x3fc6f2c9a420071e ## double 0.17928429140015906
.quad 0x0000000000000000 ## double 0
.quad 0xbfde5b9d136c6d96 ## double -0.47434164902525688
.quad 0x0000000000000000 ## double 0
.quad 0x0000000000000000 ## double 0
.quad 0xbfde5b9d136c6d96 ## double -0.47434164902525688
.quad 0x0000000000000000 ## double 0
.quad 0x3fde5b9d136c6d96 ## double 0.47434164902525688
.quad 0x3fde5b9d136c6d96 ## double 0.47434164902525688
.quad 0x0000000000000000 ## double 0
.quad 0xbfde5b9d136c6d96 ## double -0.47434164902525688
.quad 0xbfde5b9d136c6d96 ## double -0.47434164902525688
.quad 0xbfde5b9d136c6d96 ## double -0.47434164902525688
.quad 0x3fde5b9d136c6d96 ## double 0.47434164902525688
.quad 0x3fde5b9d136c6d96 ## double 0.47434164902525688
.quad 0xbfde5b9d136c6d96 ## double -0.47434164902525688
.quad 0x3fde5b9d136c6d96 ## double 0.47434164902525688
.quad 0x3fde5b9d136c6d96 ## double 0.47434164902525688
.quad 0xbfd6061efecf8ae9 ## double -0.34412360080584264
.quad 0xbfd6061efecf8ae9 ## double -0.34412360080584264
.quad 0xbfd6061efecf8ae9 ## double -0.34412360080584264
.quad 0x3fd6061efecf8ae9 ## double 0.34412360080584264
.quad 0x3fd6061efecf8ae9 ## double 0.34412360080584264
.quad 0xbfd6061efecf8ae9 ## double -0.34412360080584264
.quad 0x3fd6061efecf8ae9 ## double 0.34412360080584264
.quad 0x3fd6061efecf8ae9 ## double 0.34412360080584264
.globl _QUAD_GM75_WHT ## @QUAD_GM75_WHT
.p2align 4
_QUAD_GM75_WHT:
.quad 0xbfc8d0d3a2d2ef07 ## double -0.19387288523090992
.quad 0x3fc31e7930f7d85b ## double 0.14936747447035512
.quad 0x3fc31e7930f7d85b ## double 0.14936747447035512
.quad 0x3fc31e7930f7d85b ## double 0.14936747447035512
.quad 0x3fc31e7930f7d85b ## double 0.14936747447035512
.quad 0x3faa8854978c317a ## double 0.051821368693796679
.quad 0x3faa8854978c317a ## double 0.051821368693796679
.quad 0x3faa8854978c317a ## double 0.051821368693796679
.quad 0x3faa8854978c317a ## double 0.051821368693796679
.quad 0x3f84cf5167cd53fb ## double 0.010161052685058172
.quad 0x3f84cf5167cd53fb ## double 0.010161052685058172
.quad 0x3f84cf5167cd53fb ## double 0.010161052685058172
.quad 0x3f84cf5167cd53fb ## double 0.010161052685058172
.quad 0x3fb64d62f6ba0390 ## double 0.087118325458517498
.quad 0x3fb64d62f6ba0390 ## double 0.087118325458517498
.quad 0x3fb64d62f6ba0390 ## double 0.087118325458517498
.quad 0x3fb64d62f6ba0390 ## double 0.087118325458517498
.globl _QUAD_GM75_ERR ## @QUAD_GM75_ERR
.p2align 4
_QUAD_GM75_ERR:
.quad 0x3ff2359c80c2c7b2 ## double 1.1380887059899405
.quad 0xbfd6b42fea2650ed ## double -0.35474775186709345
.quad 0xbfd6b42fea2650ed ## double -0.35474775186709345
.quad 0xbfd6b42fea2650ed ## double -0.35474775186709345
.quad 0xbfd6b42fea2650ed ## double -0.35474775186709345
.quad 0x3f7da76d9a516479 ## double 0.0072397500381039476
.quad 0x3f7da76d9a516479 ## double 0.0072397500381039476
.quad 0x3f7da76d9a516479 ## double 0.0072397500381039476
.quad 0x3f7da76d9a516479 ## double 0.0072397500381039476
.quad 0xbf98b630ab43d3ba ## double -0.024132500127013158
.quad 0xbf98b630ab43d3ba ## double -0.024132500127013158
.quad 0xbf98b630ab43d3ba ## double -0.024132500127013158
.quad 0xbf98b630ab43d3ba ## double -0.024132500127013158
.quad 0x3fb64d62f6ba0390 ## double 0.087118325458517498
.quad 0x3fb64d62f6ba0390 ## double 0.087118325458517498
.quad 0x3fb64d62f6ba0390 ## double 0.087118325458517498
.quad 0x3fb64d62f6ba0390 ## double 0.087118325458517498
.subsections_via_symbols
| the_stack_data/198580714.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _parse_addr ; -- Begin function parse_addr
.p2align 2
_parse_addr: ; @parse_addr
.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, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur wzr, [x29, #-28]
ldur x0, [x29, #-24]
mov w1, #58
bl _strrchr
mov x8, x0
str x8, [sp, #40]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #40]
add x9, x8, #1
str x9, [sp, #40]
strb wzr, [x8]
b LBB0_2
LBB0_2:
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_3
LBB0_3:
ldr x8, [sp, #40]
ldrsb w0, [x8]
bl _isdigit
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_4
LBB0_4:
ldr x0, [sp, #40]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _getservbyname
mov x8, x0
str x8, [sp, #24]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_5
LBB0_5:
b LBB0_6
LBB0_6:
ldr x8, [sp, #24]
ldr w8, [x8, #16]
and w0, w8, #0xffff
bl __OSSwapInt16
and w8, w0, #0xffff
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_7
LBB0_7:
ldr w8, [sp, #12] ; 4-byte Folded Reload
and w8, w8, #0xffff
stur w8, [x29, #-28]
b LBB0_9
LBB0_8:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x8, [sp, #40]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
mov w8, #-1
stur w8, [x29, #-4]
b LBB0_26
LBB0_9:
b LBB0_11
LBB0_10:
ldr x0, [sp, #40]
bl _atoi
stur w0, [x29, #-28]
b LBB0_11
LBB0_11:
b LBB0_12
LBB0_12:
ldur w8, [x29, #-28]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
ldur w8, [x29, #-28]
subs w8, w8, #16, lsl #12 ; =65536
cset w8, lt
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
ldur w9, [x29, #-28]
; 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
mov w8, #-1
stur w8, [x29, #-4]
b LBB0_26
LBB0_15:
ldur x0, [x29, #-16]
mov w1, #0
mov x2, #16
mov x3, #-1
bl ___memset_chk
ldur x9, [x29, #-16]
mov w8, #2
strb w8, [x9, #1]
b LBB0_16
LBB0_16:
ldur w8, [x29, #-28]
and w0, w8, #0xffff
bl __OSSwapInt16
and w8, w0, #0xffff
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_17
LBB0_17:
ldr w8, [sp, #8] ; 4-byte Folded Reload
ldur x9, [x29, #-16]
strh w8, [x9, #2]
ldur x8, [x29, #-24]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18:
ldur x8, [x29, #-16]
str wzr, [x8, #4]
b LBB0_25
LBB0_19:
ldur x0, [x29, #-24]
bl _inet_addr
ldur x8, [x29, #-16]
str w0, [x8, #4]
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_24
b LBB0_20
LBB0_20:
ldur x0, [x29, #-24]
bl _gethostbyname
mov x8, x0
str x8, [sp, #32]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
ldur x8, [x29, #-24]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
mov w8, #-1
stur w8, [x29, #-4]
b LBB0_26
LBB0_22:
ldur x8, [x29, #-16]
add x0, x8, #4
ldr x8, [sp, #32]
ldr x8, [x8, #24]
ldr x1, [x8]
ldr x8, [sp, #32]
ldrsw x2, [x8, #20]
mov x3, #-1
bl ___memmove_chk
b LBB0_23
LBB0_23:
b LBB0_24
LBB0_24:
b LBB0_25
LBB0_25:
stur wzr, [x29, #-4]
b LBB0_26
LBB0_26:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function _OSSwapInt16
__OSSwapInt16: ; @_OSSwapInt16
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
strh w0, [sp, #14]
ldrh w9, [sp, #14]
ldrh w8, [sp, #14]
asr w8, w8, #8
orr w8, w8, w9, lsl #8
and w0, w8, #0xffff
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _new_entry ; -- Begin function new_entry
.p2align 2
_new_entry: ; @new_entry
.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, #-12]
stur x1, [x29, #-24]
mov x0, #48
bl _malloc
str x0, [sp, #32]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB2_14
LBB2_2:
ldr x8, [sp, #32]
; kill: def $x9 killed $xzr
str xzr, [x8]
ldr x9, [sp, #32]
mov w8, #-1
str w8, [x9, #8]
ldur x0, [x29, #-24]
mov w1, #44
bl _strchr
mov x8, x0
str x8, [sp, #24]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3:
ldr x8, [sp, #24]
add x9, x8, #1
str x9, [sp, #24]
strb wzr, [x8]
ldur x8, [x29, #-24]
ldr x9, [sp, #32]
str x8, [x9, #40]
ldr x8, [sp, #24]
stur x8, [x29, #-24]
b LBB2_5
LBB2_4:
ldr x9, [sp, #32]
adrp x8, l_.str.4@PAGE
add x8, x8, l_.str.4@PAGEOFF
str x8, [x9, #40]
b LBB2_5
LBB2_5:
ldur w8, [x29, #-12]
ldr x9, [sp, #32]
str w8, [x9, #12]
ldur w8, [x29, #-12]
str w8, [sp, #12] ; 4-byte Folded Spill
subs w8, w8, #1
subs w8, w8, #1
cset w8, ls
tbnz w8, #0, LBB2_10
b LBB2_6
LBB2_6:
ldr w8, [sp, #12] ; 4-byte Folded Reload
subs w8, w8, #3
cset w8, ne
tbnz w8, #0, LBB2_13
b LBB2_7
LBB2_7:
ldur x0, [x29, #-24]
bl _getprotobyname
str x0, [sp, #16]
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_9
b LBB2_8
LBB2_8:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldur x8, [x29, #-24]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _fprintf
ldr x0, [sp, #32]
bl _free
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB2_14
LBB2_9:
ldr x8, [sp, #16]
ldr w8, [x8, #16]
ldr x9, [sp, #32]
str w8, [x9, #16]
b LBB2_13
LBB2_10:
ldr x8, [sp, #32]
str wzr, [x8, #16]
ldr x8, [sp, #32]
add x0, x8, #20
ldur x1, [x29, #-24]
bl _parse_addr
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB2_12
b LBB2_11
LBB2_11:
ldr x0, [sp, #32]
bl _free
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB2_14
LBB2_12:
b LBB2_13
LBB2_13:
ldr x8, [sp, #32]
stur x8, [x29, #-8]
b LBB2_14
LBB2_14:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _open_socket ; -- Begin function open_socket
.p2align 2
_open_socket: ; @open_socket
.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]
ldr x8, [sp]
ldr w1, [x8, #12]
ldr x8, [sp]
ldr w2, [x8, #16]
mov w0, #2
bl _socket
ldr x8, [sp]
str w0, [x8, #8]
ldr x8, [sp]
ldr w8, [x8, #8]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _perror
mov w8, #-1
stur w8, [x29, #-4]
b LBB3_7
LBB3_2:
ldr x8, [sp]
ldr w8, [x8, #12]
subs w8, w8, #3
cset w8, eq
tbnz w8, #0, LBB3_6
b LBB3_3
LBB3_3:
ldr x8, [sp]
ldr w0, [x8, #8]
ldr x8, [sp]
add x1, x8, #20
mov w2, #16
bl _bind
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB3_5
b LBB3_4
LBB3_4:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _perror
ldr x8, [sp]
ldr w0, [x8, #8]
bl _close
mov w8, #-1
stur w8, [x29, #-4]
b LBB3_7
LBB3_5:
b LBB3_6
LBB3_6:
ldr x8, [sp]
ldr w8, [x8, #8]
stur w8, [x29, #-4]
b LBB3_7
LBB3_7:
ldur w0, [x29, #-4]
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, #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
adrp x8, _optarg@GOTPAGE
ldr x8, [x8, _optarg@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
; kill: def $x8 killed $xzr
stur xzr, [x29, #-24]
stur xzr, [x29, #-32]
stur wzr, [x29, #-36]
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
ldur w0, [x29, #-8]
ldur x1, [x29, #-16]
adrp x2, l_.str.8@PAGE
add x2, x2, l_.str.8@PAGEOFF
bl _getopt
stur w0, [x29, #-40]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB4_16
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldur w8, [x29, #-40]
str w8, [sp, #20] ; 4-byte Folded Spill
subs w8, w8, #100
cset w8, eq
tbnz w8, #0, LBB4_8
b LBB4_3
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #20] ; 4-byte Folded Reload
subs w8, w8, #114
cset w8, eq
tbnz w8, #0, LBB4_11
b LBB4_4
LBB4_4: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #20] ; 4-byte Folded Reload
subs w8, w8, #115
cset w8, ne
tbnz w8, #0, LBB4_14
b LBB4_5
LBB4_5: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x1, [x8]
mov w0, #1
bl _new_entry
stur x0, [x29, #-32]
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB4_7
b LBB4_6
LBB4_6:
mov w0, #1
bl _exit
LBB4_7: ; in Loop: Header=BB4_1 Depth=1
ldur x8, [x29, #-24]
ldur x9, [x29, #-32]
str x8, [x9]
ldur x8, [x29, #-32]
stur x8, [x29, #-24]
ldur w8, [x29, #-36]
add w8, w8, #1
stur w8, [x29, #-36]
b LBB4_15
LBB4_8: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x1, [x8]
mov w0, #2
bl _new_entry
stur x0, [x29, #-32]
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB4_10
b LBB4_9
LBB4_9:
mov w0, #1
bl _exit
LBB4_10: ; in Loop: Header=BB4_1 Depth=1
ldur x8, [x29, #-24]
ldur x9, [x29, #-32]
str x8, [x9]
ldur x8, [x29, #-32]
stur x8, [x29, #-24]
ldur w8, [x29, #-36]
add w8, w8, #1
stur w8, [x29, #-36]
b LBB4_15
LBB4_11: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x1, [x8]
mov w0, #3
bl _new_entry
stur x0, [x29, #-32]
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB4_13
b LBB4_12
LBB4_12:
mov w0, #1
bl _exit
LBB4_13: ; in Loop: Header=BB4_1 Depth=1
ldur x8, [x29, #-24]
ldur x9, [x29, #-32]
str x8, [x9]
ldur x8, [x29, #-32]
stur x8, [x29, #-24]
ldur w8, [x29, #-36]
add w8, w8, #1
stur w8, [x29, #-36]
b LBB4_15
LBB4_14:
mov w0, #1
bl _exit
LBB4_15: ; in Loop: Header=BB4_1 Depth=1
b LBB4_1
LBB4_16:
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 x8, [x29, #-24]
stur x8, [x29, #-32]
b LBB4_17
LBB4_17: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB4_22
b LBB4_18
LBB4_18: ; in Loop: Header=BB4_17 Depth=1
ldur x0, [x29, #-32]
bl _open_socket
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB4_20
b LBB4_19
LBB4_19:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
adrp x1, l_.str.9@PAGE
add x1, x1, l_.str.9@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB4_20: ; in Loop: Header=BB4_17 Depth=1
b LBB4_21
LBB4_21: ; in Loop: Header=BB4_17 Depth=1
ldur x8, [x29, #-32]
ldr x8, [x8]
stur x8, [x29, #-32]
b LBB4_17
LBB4_22:
bl _getuid
bl _setuid
adrp x8, l_.str.10@PAGE
add x8, x8, l_.str.10@PAGEOFF
str x8, [sp, #48]
ldur w9, [x29, #-36]
mov w8, #2
mul w8, w8, w9
add w8, w8, #1
ldur w9, [x29, #-8]
add w8, w8, w9
add w9, w8, #1
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
lsl x0, x8, #3
bl _malloc
str x0, [sp, #56]
ldr x0, [sp, #48]
mov w1, #47
bl _strrchr
mov x8, x0
str x8, [sp, #40]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB4_24
b LBB4_23
LBB4_23:
ldr x8, [sp, #48]
str x8, [sp, #40]
b LBB4_25
LBB4_24:
ldr x8, [sp, #40]
add x8, x8, #1
str x8, [sp, #40]
b LBB4_25
LBB4_25:
stur wzr, [x29, #-44]
ldr x8, [sp, #40]
ldr x9, [sp, #56]
ldursw x10, [x29, #-44]
mov x11, x10
add w11, w11, #1
stur w11, [x29, #-44]
str x8, [x9, x10, lsl #3]
b LBB4_26
LBB4_26: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB4_29
b LBB4_27
LBB4_27: ; in Loop: Header=BB4_26 Depth=1
ldur x8, [x29, #-16]
ldr x8, [x8]
ldr x9, [sp, #56]
ldursw x10, [x29, #-44]
str x8, [x9, x10, lsl #3]
b LBB4_28
LBB4_28: ; in Loop: Header=BB4_26 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #1
stur w8, [x29, #-8]
ldur x8, [x29, #-16]
add x8, x8, #8
stur x8, [x29, #-16]
ldur w8, [x29, #-44]
add w8, w8, #1
stur w8, [x29, #-44]
b LBB4_26
LBB4_29:
ldur x8, [x29, #-24]
stur x8, [x29, #-32]
b LBB4_30
LBB4_30: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB4_37
b LBB4_31
LBB4_31: ; in Loop: Header=BB4_30 Depth=1
mov x0, #8
bl _malloc
str x0, [sp, #32]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB4_33
b LBB4_32
LBB4_32:
mov w0, #1
bl _exit
LBB4_33: ; in Loop: Header=BB4_30 Depth=1
ldr x0, [sp, #32]
ldur x8, [x29, #-32]
ldr w9, [x8, #8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
mov w1, #0
mov x2, #-1
adrp x3, l_.str.11@PAGE
add x3, x3, l_.str.11@PAGEOFF
bl ___sprintf_chk
ldur x8, [x29, #-32]
ldr x8, [x8, #40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB4_36
b LBB4_34
LBB4_34: ; in Loop: Header=BB4_30 Depth=1
ldur x8, [x29, #-32]
ldr x8, [x8, #40]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB4_36
b LBB4_35
LBB4_35: ; in Loop: Header=BB4_30 Depth=1
ldur x8, [x29, #-32]
ldr x8, [x8, #40]
ldr x9, [sp, #56]
ldursw x10, [x29, #-44]
mov x11, x10
add w11, w11, #1
stur w11, [x29, #-44]
str x8, [x9, x10, lsl #3]
b LBB4_36
LBB4_36: ; in Loop: Header=BB4_30 Depth=1
ldr x8, [sp, #32]
ldr x9, [sp, #56]
ldursw x10, [x29, #-44]
mov x11, x10
add w11, w11, #1
stur w11, [x29, #-44]
str x8, [x9, x10, lsl #3]
ldur x8, [x29, #-32]
stur x8, [x29, #-24]
ldur x8, [x29, #-32]
ldr x8, [x8]
stur x8, [x29, #-32]
ldur x0, [x29, #-24]
bl _free
b LBB4_30
LBB4_37:
ldr x9, [sp, #56]
ldursw x10, [x29, #-44]
mov x8, #0
str x8, [x9, x10, lsl #3]
ldr x0, [sp, #48]
ldr x1, [sp, #56]
bl _execv
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _perror
mov w0, #1
bl _exit
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "tcp"
l_.str.1: ; @.str.1
.asciz "unknown port %s\n"
l_.str.2: ; @.str.2
.asciz "bad port number %d\n"
l_.str.3: ; @.str.3
.asciz "\"%s\" unknown host or address!\n"
l_.str.4: ; @.str.4
.asciz "-fd"
l_.str.5: ; @.str.5
.asciz "Unknown protocol: %s\n"
l_.str.6: ; @.str.6
.asciz "socket"
l_.str.7: ; @.str.7
.asciz "bind"
l_.str.8: ; @.str.8
.asciz "s:d:r:"
l_.str.9: ; @.str.9
.asciz "failed to create socket!\n"
l_.str.10: ; @.str.10
.asciz "/bin/echo"
l_.str.11: ; @.str.11
.asciz "%d"
l_.str.12: ; @.str.12
.asciz "exec"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _parse_addr ## -- Begin function parse_addr
.p2align 4, 0x90
_parse_addr: ## @parse_addr
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movl $0, -28(%rbp)
movq -24(%rbp), %rdi
movl $58, %esi
callq _strrchr
movq %rax, -40(%rbp)
cmpq $0, %rax
je LBB0_2
## %bb.1:
movq -40(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -40(%rbp)
movb $0, (%rax)
LBB0_2:
cmpq $0, -40(%rbp)
je LBB0_12
## %bb.3:
movq -40(%rbp), %rax
movsbl (%rax), %edi
callq _isdigit
cmpl $0, %eax
jne LBB0_10
## %bb.4:
movq -40(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _getservbyname
movq %rax, -56(%rbp)
cmpq $0, %rax
je LBB0_8
## %bb.5:
## %bb.6:
movq -56(%rbp), %rax
movl 16(%rax), %eax
## kill: def $ax killed $ax killed $eax
movzwl %ax, %edi
callq __OSSwapInt16
movzwl %ax, %eax
movl %eax, -60(%rbp) ## 4-byte Spill
## %bb.7:
movl -60(%rbp), %eax ## 4-byte Reload
movzwl %ax, %eax
movl %eax, -28(%rbp)
jmp LBB0_9
LBB0_8:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -40(%rbp), %rdx
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _fprintf
movl $-1, -4(%rbp)
jmp LBB0_26
LBB0_9:
jmp LBB0_11
LBB0_10:
movq -40(%rbp), %rdi
callq _atoi
movl %eax, -28(%rbp)
LBB0_11:
jmp LBB0_12
LBB0_12:
cmpl $0, -28(%rbp)
jl LBB0_14
## %bb.13:
cmpl $65535, -28(%rbp) ## imm = 0xFFFF
jle LBB0_15
LBB0_14:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -28(%rbp), %edx
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _fprintf
movl $-1, -4(%rbp)
jmp LBB0_26
LBB0_15:
movq -16(%rbp), %rdi
xorl %esi, %esi
movl $16, %edx
movq $-1, %rcx
callq ___memset_chk
movq -16(%rbp), %rax
movb $2, 1(%rax)
## %bb.16:
movl -28(%rbp), %eax
## kill: def $ax killed $ax killed $eax
movzwl %ax, %edi
callq __OSSwapInt16
movzwl %ax, %eax
movl %eax, -64(%rbp) ## 4-byte Spill
## %bb.17:
movl -64(%rbp), %eax ## 4-byte Reload
movw %ax, %cx
movq -16(%rbp), %rax
movw %cx, 2(%rax)
movq -24(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
jne LBB0_19
## %bb.18:
movq -16(%rbp), %rax
movl $0, 4(%rax)
jmp LBB0_25
LBB0_19:
movq -24(%rbp), %rdi
callq _inet_addr
movq -16(%rbp), %rcx
movl %eax, 4(%rcx)
cmpl $-1, %eax
jne LBB0_24
## %bb.20:
movq -24(%rbp), %rdi
callq _gethostbyname
movq %rax, -48(%rbp)
cmpq $0, %rax
jne LBB0_22
## %bb.21:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -24(%rbp), %rdx
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _fprintf
movl $-1, -4(%rbp)
jmp LBB0_26
LBB0_22:
movq -16(%rbp), %rdi
addq $4, %rdi
movq -48(%rbp), %rax
movq 24(%rax), %rax
movq (%rax), %rsi
movq -48(%rbp), %rax
movslq 20(%rax), %rdx
movq $-1, %rcx
callq ___memmove_chk
## %bb.23:
jmp LBB0_24
LBB0_24:
jmp LBB0_25
LBB0_25:
movl $0, -4(%rbp)
LBB0_26:
movl -4(%rbp), %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function _OSSwapInt16
__OSSwapInt16: ## @_OSSwapInt16
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movw %di, %ax
movw %ax, -2(%rbp)
movzwl -2(%rbp), %eax
shll $8, %eax
movzwl -2(%rbp), %ecx
sarl $8, %ecx
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movzwl %ax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _new_entry ## -- Begin function new_entry
.p2align 4, 0x90
_new_entry: ## @new_entry
.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, -12(%rbp)
movq %rsi, -24(%rbp)
movl $48, %edi
callq _malloc
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB2_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB2_13
LBB2_2:
movq -32(%rbp), %rax
movq $0, (%rax)
movq -32(%rbp), %rax
movl $-1, 8(%rax)
movq -24(%rbp), %rdi
movl $44, %esi
callq _strchr
movq %rax, -40(%rbp)
cmpq $0, %rax
je LBB2_4
## %bb.3:
movq -40(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -40(%rbp)
movb $0, (%rax)
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, 40(%rax)
movq -40(%rbp), %rax
movq %rax, -24(%rbp)
jmp LBB2_5
LBB2_4:
movq -32(%rbp), %rax
leaq L_.str.4(%rip), %rcx
movq %rcx, 40(%rax)
LBB2_5:
movl -12(%rbp), %ecx
movq -32(%rbp), %rax
movl %ecx, 12(%rax)
movl -12(%rbp), %eax
movl %eax, -52(%rbp) ## 4-byte Spill
decl %eax
subl $2, %eax
jb LBB2_9
jmp LBB2_14
LBB2_14:
movl -52(%rbp), %eax ## 4-byte Reload
subl $3, %eax
jne LBB2_12
jmp LBB2_6
LBB2_6:
movq -24(%rbp), %rdi
callq _getprotobyname
movq %rax, -48(%rbp)
cmpq $0, -48(%rbp)
jne LBB2_8
## %bb.7:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -24(%rbp), %rdx
leaq L_.str.5(%rip), %rsi
movb $0, %al
callq _fprintf
movq -32(%rbp), %rdi
callq _free
movq $0, -8(%rbp)
jmp LBB2_13
LBB2_8:
movq -48(%rbp), %rax
movl 16(%rax), %ecx
movq -32(%rbp), %rax
movl %ecx, 16(%rax)
jmp LBB2_12
LBB2_9:
movq -32(%rbp), %rax
movl $0, 16(%rax)
movq -32(%rbp), %rdi
addq $20, %rdi
movq -24(%rbp), %rsi
callq _parse_addr
cmpl $0, %eax
jge LBB2_11
## %bb.10:
movq -32(%rbp), %rdi
callq _free
movq $0, -8(%rbp)
jmp LBB2_13
LBB2_11:
jmp LBB2_12
LBB2_12:
movq -32(%rbp), %rax
movq %rax, -8(%rbp)
LBB2_13:
movq -8(%rbp), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _open_socket ## -- Begin function open_socket
.p2align 4, 0x90
_open_socket: ## @open_socket
.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, -16(%rbp)
movq -16(%rbp), %rax
movl 12(%rax), %esi
movq -16(%rbp), %rax
movl 16(%rax), %edx
movl $2, %edi
callq _socket
movl %eax, %ecx
movq -16(%rbp), %rax
movl %ecx, 8(%rax)
movq -16(%rbp), %rax
cmpl $0, 8(%rax)
jge LBB3_2
## %bb.1:
leaq L_.str.6(%rip), %rdi
callq _perror
movl $-1, -4(%rbp)
jmp LBB3_7
LBB3_2:
movq -16(%rbp), %rax
cmpl $3, 12(%rax)
je LBB3_6
## %bb.3:
movq -16(%rbp), %rax
movl 8(%rax), %edi
movq -16(%rbp), %rsi
addq $20, %rsi
movl $16, %edx
callq _bind
cmpl $0, %eax
jge LBB3_5
## %bb.4:
leaq L_.str.7(%rip), %rdi
callq _perror
movq -16(%rbp), %rax
movl 8(%rax), %edi
callq _close
movl $-1, -4(%rbp)
jmp LBB3_7
LBB3_5:
jmp LBB3_6
LBB3_6:
movq -16(%rbp), %rax
movl 8(%rax), %eax
movl %eax, -4(%rbp)
LBB3_7:
movl -4(%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 $96, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movq $0, -24(%rbp)
movq $0, -32(%rbp)
movl $0, -36(%rbp)
LBB4_1: ## =>This Inner Loop Header: Depth=1
movl -8(%rbp), %edi
movq -16(%rbp), %rsi
leaq L_.str.8(%rip), %rdx
callq _getopt
movl %eax, -40(%rbp)
cmpl $-1, %eax
je LBB4_14
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movl -40(%rbp), %eax
movl %eax, -84(%rbp) ## 4-byte Spill
subl $100, %eax
je LBB4_6
jmp LBB4_36
LBB4_36: ## in Loop: Header=BB4_1 Depth=1
movl -84(%rbp), %eax ## 4-byte Reload
subl $114, %eax
je LBB4_9
jmp LBB4_37
LBB4_37: ## in Loop: Header=BB4_1 Depth=1
movl -84(%rbp), %eax ## 4-byte Reload
subl $115, %eax
jne LBB4_12
jmp LBB4_3
LBB4_3: ## in Loop: Header=BB4_1 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movl $1, %edi
callq _new_entry
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB4_5
## %bb.4:
movl $1, %edi
callq _exit
LBB4_5: ## in Loop: Header=BB4_1 Depth=1
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, (%rax)
movq -32(%rbp), %rax
movq %rax, -24(%rbp)
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB4_13
LBB4_6: ## in Loop: Header=BB4_1 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movl $2, %edi
callq _new_entry
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB4_8
## %bb.7:
movl $1, %edi
callq _exit
LBB4_8: ## in Loop: Header=BB4_1 Depth=1
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, (%rax)
movq -32(%rbp), %rax
movq %rax, -24(%rbp)
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB4_13
LBB4_9: ## in Loop: Header=BB4_1 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movl $3, %edi
callq _new_entry
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB4_11
## %bb.10:
movl $1, %edi
callq _exit
LBB4_11: ## in Loop: Header=BB4_1 Depth=1
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, (%rax)
movq -32(%rbp), %rax
movq %rax, -24(%rbp)
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB4_13
LBB4_12:
movl $1, %edi
callq _exit
LBB4_13: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_1
LBB4_14:
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)
movq -24(%rbp), %rax
movq %rax, -32(%rbp)
LBB4_15: ## =>This Inner Loop Header: Depth=1
cmpq $0, -32(%rbp)
je LBB4_20
## %bb.16: ## in Loop: Header=BB4_15 Depth=1
movq -32(%rbp), %rdi
callq _open_socket
cmpl $0, %eax
jge LBB4_18
## %bb.17:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.9(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB4_18: ## in Loop: Header=BB4_15 Depth=1
jmp LBB4_19
LBB4_19: ## in Loop: Header=BB4_15 Depth=1
movq -32(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
jmp LBB4_15
LBB4_20:
callq _getuid
movl %eax, %edi
callq _setuid
leaq L_.str.10(%rip), %rax
movq %rax, -64(%rbp)
movl -36(%rbp), %eax
shll $1, %eax
addl $1, %eax
addl -8(%rbp), %eax
addl $1, %eax
movslq %eax, %rdi
shlq $3, %rdi
callq _malloc
movq %rax, -56(%rbp)
movq -64(%rbp), %rdi
movl $47, %esi
callq _strrchr
movq %rax, -72(%rbp)
cmpq $0, %rax
jne LBB4_22
## %bb.21:
movq -64(%rbp), %rax
movq %rax, -72(%rbp)
jmp LBB4_23
LBB4_22:
movq -72(%rbp), %rax
addq $1, %rax
movq %rax, -72(%rbp)
LBB4_23:
movl $0, -44(%rbp)
movq -72(%rbp), %rdx
movq -56(%rbp), %rax
movl -44(%rbp), %ecx
movl %ecx, %esi
addl $1, %esi
movl %esi, -44(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
LBB4_24: ## =>This Inner Loop Header: Depth=1
cmpl $0, -8(%rbp)
je LBB4_27
## %bb.25: ## in Loop: Header=BB4_24 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rdx
movq -56(%rbp), %rax
movslq -44(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
## %bb.26: ## in Loop: Header=BB4_24 Depth=1
movl -8(%rbp), %eax
addl $-1, %eax
movl %eax, -8(%rbp)
movq -16(%rbp), %rax
addq $8, %rax
movq %rax, -16(%rbp)
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB4_24
LBB4_27:
movq -24(%rbp), %rax
movq %rax, -32(%rbp)
LBB4_28: ## =>This Inner Loop Header: Depth=1
cmpq $0, -32(%rbp)
je LBB4_35
## %bb.29: ## in Loop: Header=BB4_28 Depth=1
movl $8, %edi
callq _malloc
movq %rax, -80(%rbp)
cmpq $0, -80(%rbp)
jne LBB4_31
## %bb.30:
movl $1, %edi
callq _exit
LBB4_31: ## in Loop: Header=BB4_28 Depth=1
movq -80(%rbp), %rdi
movq -32(%rbp), %rax
movl 8(%rax), %r8d
xorl %esi, %esi
movq $-1, %rdx
leaq L_.str.11(%rip), %rcx
movb $0, %al
callq ___sprintf_chk
movq -32(%rbp), %rax
cmpq $0, 40(%rax)
je LBB4_34
## %bb.32: ## in Loop: Header=BB4_28 Depth=1
movq -32(%rbp), %rax
movq 40(%rax), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB4_34
## %bb.33: ## in Loop: Header=BB4_28 Depth=1
movq -32(%rbp), %rax
movq 40(%rax), %rdx
movq -56(%rbp), %rax
movl -44(%rbp), %ecx
movl %ecx, %esi
addl $1, %esi
movl %esi, -44(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
LBB4_34: ## in Loop: Header=BB4_28 Depth=1
movq -80(%rbp), %rdx
movq -56(%rbp), %rax
movl -44(%rbp), %ecx
movl %ecx, %esi
addl $1, %esi
movl %esi, -44(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movq -32(%rbp), %rax
movq %rax, -24(%rbp)
movq -32(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
movq -24(%rbp), %rdi
callq _free
jmp LBB4_28
LBB4_35:
movq -56(%rbp), %rax
movslq -44(%rbp), %rcx
movq $0, (%rax,%rcx,8)
movq -64(%rbp), %rdi
movq -56(%rbp), %rsi
callq _execv
leaq L_.str.12(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "tcp"
L_.str.1: ## @.str.1
.asciz "unknown port %s\n"
L_.str.2: ## @.str.2
.asciz "bad port number %d\n"
L_.str.3: ## @.str.3
.asciz "\"%s\" unknown host or address!\n"
L_.str.4: ## @.str.4
.asciz "-fd"
L_.str.5: ## @.str.5
.asciz "Unknown protocol: %s\n"
L_.str.6: ## @.str.6
.asciz "socket"
L_.str.7: ## @.str.7
.asciz "bind"
L_.str.8: ## @.str.8
.asciz "s:d:r:"
L_.str.9: ## @.str.9
.asciz "failed to create socket!\n"
L_.str.10: ## @.str.10
.asciz "/bin/echo"
L_.str.11: ## @.str.11
.asciz "%d"
L_.str.12: ## @.str.12
.asciz "exec"
.subsections_via_symbols
| the_stack_data/200143069.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]
mov w8, #0
str w8, [sp, #52] ; 4-byte Folded Spill
str wzr, [sp, #100]
str w0, [sp, #96]
str x1, [sp, #88]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
str x0, [sp, #56] ; 8-byte Folded Spill
mov w1, #420
bl _creat
ldr w1, [sp, #52] ; 4-byte Folded Reload
mov x8, x0
ldr x0, [sp, #56] ; 8-byte Folded Reload
str w8, [sp, #84]
bl _open
str w0, [sp, #80]
bl _getpid
ldr w8, [sp, #84]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #80]
; implicit-def: $x8
mov x8, x9
mov x9, sp
; implicit-def: $x11
mov x11, x0
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl ___error
str wzr, [x0]
bl _getchar
str w0, [sp, #76]
ldr w8, [sp, #76]
subs w8, w8, #99
; kill: def $x8 killed $w8
str x8, [sp, #40] ; 8-byte Folded Spill
subs x8, x8, #21
cset w8, hi
tbnz w8, #0, LBB0_9
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
ldr x11, [sp, #40] ; 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_3: ; in Loop: Header=BB0_1 Depth=1
ldr w0, [sp, #80]
add x1, sp, #104
str x1, [sp, #32] ; 8-byte Folded Spill
mov x2, #128
bl _read
ldr x8, [sp, #32] ; 8-byte Folded Reload
mov x9, x0
str w9, [sp, #68]
ldr w9, [sp, #68]
; implicit-def: $x10
mov x10, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
bl ___error
ldr w0, [x0]
bl _strerror
mov x8, sp
str x0, [x8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_10
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w0, [sp, #84]
ldr x8, [sp, #88]
ldr x1, [x8, #8]
mov x2, #1
bl _write
ldr x8, [sp, #88]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
bl ___error
ldr w0, [x0]
bl _strerror
mov x8, sp
str x0, [x8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_10
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #104
mov w1, #0
mov x2, #128
bl _memset
b LBB0_10
LBB0_6:
ldr w0, [sp, #84]
bl _close
ldr w0, [sp, #80]
bl _close
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _unlink
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_8
b LBB0_7
LBB0_7:
bl ___stack_chk_fail
LBB0_8:
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
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_5-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_3-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_4-Ltmp0
.long LBB0_6-Ltmp0
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "/tmp/tester"
l_.str.1: ; @.str.1
.asciz "Info:\n-----\nPID: %d\nFD Write: %d\nFD Read: %d\n"
l_.str.2: ; @.str.2
.asciz "read(%d): %s\n"
l_.str.3: ; @.str.3
.asciz "%s\n"
l_.str.4: ; @.str.4
.asciz "write: %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 $192, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -148(%rbp)
movl %edi, -152(%rbp)
movq %rsi, -160(%rbp)
leaq L_.str(%rip), %rdi
movl $420, %esi ## imm = 0x1A4
callq _creat
movl %eax, -164(%rbp)
leaq L_.str(%rip), %rdi
xorl %esi, %esi
movb $0, %al
callq _open
movl %eax, -168(%rbp)
callq _getpid
movl %eax, %esi
movl -164(%rbp), %edx
movl -168(%rbp), %ecx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
LBB0_1: ## =>This Inner Loop Header: Depth=1
callq ___error
movl $0, (%rax)
callq _getchar
movl %eax, -172(%rbp)
movl -172(%rbp), %eax
addl $-99, %eax
movl %eax, %ecx
movq %rcx, -192(%rbp) ## 8-byte Spill
subl $21, %eax
ja LBB0_7
## %bb.10: ## in Loop: Header=BB0_1 Depth=1
movq -192(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_2: ## in Loop: Header=BB0_1 Depth=1
movl -168(%rbp), %edi
leaq -144(%rbp), %rsi
movl $128, %edx
callq _read
## kill: def $eax killed $eax killed $rax
movl %eax, -180(%rbp)
movl -180(%rbp), %esi
leaq -144(%rbp), %rdx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
callq ___error
movl (%rax), %edi
callq _strerror
movq %rax, %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_8
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movl -164(%rbp), %edi
movq -160(%rbp), %rax
movq 8(%rax), %rsi
movl $1, %edx
callq _write
movq -160(%rbp), %rax
movq 8(%rax), %rsi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
callq ___error
movl (%rax), %edi
callq _strerror
movq %rax, %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_8
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
leaq -144(%rbp), %rdi
xorl %esi, %esi
movl $128, %edx
callq _memset
jmp LBB0_8
LBB0_5:
movl -164(%rbp), %edi
callq _close
movl -168(%rbp), %edi
callq _close
leaq L_.str(%rip), %rdi
callq _unlink
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_9
## %bb.6:
xorl %eax, %eax
addq $192, %rsp
popq %rbp
retq
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_9:
callq ___stack_chk_fail
ud2
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
.long L0_0_set_4
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_2
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_3
.long L0_0_set_5
.end_data_region
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "/tmp/tester"
L_.str.1: ## @.str.1
.asciz "Info:\n-----\nPID: %d\nFD Write: %d\nFD Read: %d\n"
L_.str.2: ## @.str.2
.asciz "read(%d): %s\n"
L_.str.3: ## @.str.3
.asciz "%s\n"
L_.str.4: ## @.str.4
.asciz "write: %s\n"
.subsections_via_symbols
| the_stack_data/90764734.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, #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, #36]
mov w8, #48
strb w8, [sp, #35]
movi d0, #0000000000000000
str d0, [sp, #24]
str wzr, [sp, #20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #20]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov x0, #16
bl _malloc
ldrsw x9, [sp, #20]
add x8, sp, #40
str x0, [x8, x9, lsl #3]
ldrsw x9, [sp, #20]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
mov w0, #-1
bl _exit
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
mov x9, sp
add x8, sp, #24
str x8, [x9]
add x8, sp, #35
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr d0, [sp, #24]
ldrsw x8, [sp, #20]
add x9, sp, #40
ldr x8, [x9, x8, lsl #3]
str d0, [x8]
ldrb w8, [sp, #35]
ldrsw x10, [sp, #20]
ldr x9, [x9, x10, lsl #3]
strb w8, [x9, #8]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_1
LBB0_6:
ldr x0, [sp, #80]
bl _free
str wzr, [sp, #20]
b LBB0_7
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #20]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #40
ldr x9, [x8, x9, lsl #3]
ldr d0, [x9]
ldrsw x9, [sp, #20]
ldr x8, [x8, x9, lsl #3]
ldrsb w10, [x8, #8]
mov x9, sp
str d0, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
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=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_7
LBB0_10:
str wzr, [sp, #20]
b LBB0_11
LBB0_11: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #20]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_16
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=1
ldr w8, [sp, #20]
subs w8, w8, #5
cset w8, ne
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_11 Depth=1
b LBB0_15
LBB0_14: ; in Loop: Header=BB0_11 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #40
ldr x0, [x8, x9, lsl #3]
bl _free
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_11 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_11
LBB0_16:
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_18
b LBB0_17
LBB0_17:
bl ___stack_chk_fail
LBB0_18:
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 " %lf %c"
l_.str.1: ; @.str.1
.asciz "Elements: %lf %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 $128, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -100(%rbp)
movb $48, -101(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -112(%rbp)
movl $0, -116(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $10, -116(%rbp)
jge LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $16, %edi
callq _malloc
movq %rax, %rcx
movslq -116(%rbp), %rax
movq %rcx, -96(%rbp,%rax,8)
movslq -116(%rbp), %rax
cmpq $0, -96(%rbp,%rax,8)
jne LBB0_4
## %bb.3:
movl $-1, %edi
callq _exit
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str(%rip), %rdi
leaq -112(%rbp), %rsi
leaq -101(%rbp), %rdx
movb $0, %al
callq _scanf
movsd -112(%rbp), %xmm0 ## xmm0 = mem[0],zero
movslq -116(%rbp), %rax
movq -96(%rbp,%rax,8), %rax
movsd %xmm0, (%rax)
movb -101(%rbp), %cl
movslq -116(%rbp), %rax
movq -96(%rbp,%rax,8), %rax
movb %cl, 8(%rax)
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movl -116(%rbp), %eax
addl $1, %eax
movl %eax, -116(%rbp)
jmp LBB0_1
LBB0_6:
movq -56(%rbp), %rdi
callq _free
movl $0, -116(%rbp)
LBB0_7: ## =>This Inner Loop Header: Depth=1
cmpl $10, -116(%rbp)
jge LBB0_10
## %bb.8: ## in Loop: Header=BB0_7 Depth=1
movslq -116(%rbp), %rax
movq -96(%rbp,%rax,8), %rax
movsd (%rax), %xmm0 ## xmm0 = mem[0],zero
movslq -116(%rbp), %rax
movq -96(%rbp,%rax,8), %rax
movsbl 8(%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $1, %al
callq _printf
## %bb.9: ## in Loop: Header=BB0_7 Depth=1
movl -116(%rbp), %eax
addl $1, %eax
movl %eax, -116(%rbp)
jmp LBB0_7
LBB0_10:
movl $0, -116(%rbp)
LBB0_11: ## =>This Inner Loop Header: Depth=1
cmpl $10, -116(%rbp)
jge LBB0_16
## %bb.12: ## in Loop: Header=BB0_11 Depth=1
cmpl $5, -116(%rbp)
jne LBB0_14
## %bb.13: ## in Loop: Header=BB0_11 Depth=1
jmp LBB0_15
LBB0_14: ## in Loop: Header=BB0_11 Depth=1
movslq -116(%rbp), %rax
movq -96(%rbp,%rax,8), %rdi
callq _free
LBB0_15: ## in Loop: Header=BB0_11 Depth=1
movl -116(%rbp), %eax
addl $1, %eax
movl %eax, -116(%rbp)
jmp LBB0_11
LBB0_16:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_18
## %bb.17:
xorl %eax, %eax
addq $128, %rsp
popq %rbp
retq
LBB0_18:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz " %lf %c"
L_.str.1: ## @.str.1
.asciz "Elements: %lf %c"
.subsections_via_symbols
| the_stack_data/152728.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _libcall_int ; -- Begin function libcall_int
.p2align 2
_libcall_int: ; @libcall_int
.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]
str w1, [sp, #4]
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_7
LBB0_2:
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
mov w8, #2
stur w8, [x29, #-4]
b LBB0_7
LBB0_4:
ldr w8, [sp, #8]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
mov w8, #3
stur w8, [x29, #-4]
b LBB0_7
LBB0_6:
bl _mystery
ldr w8, [sp, #8]
ldr w9, [sp, #4]
add w9, w8, w9
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
stur w8, [x29, #-4]
b LBB0_7
LBB0_7:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _libcall_float ; -- Begin function libcall_float
.p2align 2
_libcall_float: ; @libcall_float
.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]
str s0, [sp, #4]
ldr s0, [sp, #4]
fmov s1, #0.50000000
fcmp s0, s1
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
mov w8, #7
stur w8, [x29, #-4]
b LBB1_3
LBB1_2:
bl _mystery
scvtf s0, w0
ldr s1, [sp, #4]
fmul s0, s0, s1
ldr s1, [sp, #8]
scvtf s1, s1
fmul s0, s0, s1
fcvtzs w8, s0
stur w8, [x29, #-4]
b LBB1_3
LBB1_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _libcall_double ; -- Begin function libcall_double
.p2align 2
_libcall_double: ; @libcall_double
.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]
str d0, [sp]
ldr d0, [sp]
fmov d1, #0.75000000
fcmp d0, d1
cset w8, ne
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
mov w8, #17
stur w8, [x29, #-4]
b LBB2_3
LBB2_2:
bl _mystery
scvtf d0, w0
ldr d1, [sp]
fmul d0, d0, d1
ldr s2, [sp, #8]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
fmul d0, d0, d1
fcvtzs w8, d0
stur w8, [x29, #-4]
b LBB2_3
LBB2_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _libcall_string ; -- Begin function libcall_string
.p2align 2
_libcall_string: ; @libcall_string
.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]
str x1, [sp]
ldr x8, [sp]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB3_4
b LBB3_1
LBB3_1:
ldr x8, [sp]
ldrsb w8, [x8]
subs w8, w8, #90
cset w8, ne
tbnz w8, #0, LBB3_4
b LBB3_2
LBB3_2:
ldr x8, [sp]
ldrsb w8, [x8, #1]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3:
mov w8, #11
stur w8, [x29, #-4]
b LBB3_5
LBB3_4:
bl _mystery
ldr w8, [sp, #8]
mul w8, w0, w8
stur w8, [x29, #-4]
b LBB3_5
LBB3_5:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _libcall_null_pointer ; -- Begin function libcall_null_pointer
.p2align 2
_libcall_null_pointer: ; @libcall_null_pointer
.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]
str x1, [sp]
ldr x8, [sp]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
mov w8, #5
stur w8, [x29, #-4]
b LBB4_3
LBB4_2:
bl _mystery
ldr w8, [sp, #8]
mul w8, w0, w8
stur w8, [x29, #-4]
b LBB4_3
LBB4_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _libcall_global_pointer ; -- Begin function libcall_global_pointer
.p2align 2
_libcall_global_pointer: ; @libcall_global_pointer
.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]
str x1, [sp]
ldr x8, [sp]
adrp x9, _libcall_global_pointer@PAGE
add x9, x9, _libcall_global_pointer@PAGEOFF
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
mov w8, #13
stur w8, [x29, #-4]
b LBB5_3
LBB5_2:
bl _mystery
ldr w8, [sp, #8]
mul w8, w0, w8
stur w8, [x29, #-4]
b LBB5_3
LBB5_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function mystery
_mystery: ; @mystery
.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 x0, #0
bl _time
; kill: def $w0 killed $w0 killed $x0
bl _srand
bl _rand
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __DATA,__data
.globl _global2 ; @global2
.p2align 2
_global2:
.long 555 ; 0x22b
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _libcall_int ## -- Begin function libcall_int
.p2align 4, 0x90
_libcall_int: ## @libcall_int
.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)
movl %esi, -12(%rbp)
cmpl $0, -8(%rbp)
jne LBB0_2
## %bb.1:
movl $1, -4(%rbp)
jmp LBB0_7
LBB0_2:
cmpl $1, -8(%rbp)
jne LBB0_4
## %bb.3:
movl $2, -4(%rbp)
jmp LBB0_7
LBB0_4:
cmpl $2, -8(%rbp)
jne LBB0_6
## %bb.5:
movl $3, -4(%rbp)
jmp LBB0_7
LBB0_6:
callq _mystery
movl -8(%rbp), %ecx
addl -12(%rbp), %ecx
cltd
idivl %ecx
movl %edx, -4(%rbp)
LBB0_7:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function libcall_float
LCPI1_0:
.long 0x3f000000 ## float 0.5
.section __TEXT,__text,regular,pure_instructions
.globl _libcall_float
.p2align 4, 0x90
_libcall_float: ## @libcall_float
.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)
movss %xmm0, -12(%rbp)
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
jne LBB1_2
jp LBB1_2
## %bb.1:
movl $7, -4(%rbp)
jmp LBB1_3
LBB1_2:
callq _mystery
cvtsi2ss %eax, %xmm0
mulss -12(%rbp), %xmm0
cvtsi2ssl -8(%rbp), %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movl %eax, -4(%rbp)
LBB1_3:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function libcall_double
LCPI2_0:
.quad 0x3fe8000000000000 ## double 0.75
.section __TEXT,__text,regular,pure_instructions
.globl _libcall_double
.p2align 4, 0x90
_libcall_double: ## @libcall_double
.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)
movsd %xmm0, -16(%rbp)
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI2_0(%rip), %xmm1 ## xmm1 = mem[0],zero
ucomisd %xmm1, %xmm0
jne LBB2_2
jp LBB2_2
## %bb.1:
movl $17, -4(%rbp)
jmp LBB2_3
LBB2_2:
callq _mystery
cvtsi2sd %eax, %xmm0
mulsd -16(%rbp), %xmm0
cvtsi2sdl -8(%rbp), %xmm1
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -4(%rbp)
LBB2_3:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _libcall_string ## -- Begin function libcall_string
.p2align 4, 0x90
_libcall_string: ## @libcall_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 $16, %rsp
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpq $0, -16(%rbp)
je LBB3_4
## %bb.1:
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $90, %eax
jne LBB3_4
## %bb.2:
movq -16(%rbp), %rax
movsbl 1(%rax), %eax
cmpl $0, %eax
jne LBB3_4
## %bb.3:
movl $11, -4(%rbp)
jmp LBB3_5
LBB3_4:
callq _mystery
imull -8(%rbp), %eax
movl %eax, -4(%rbp)
LBB3_5:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _libcall_null_pointer ## -- Begin function libcall_null_pointer
.p2align 4, 0x90
_libcall_null_pointer: ## @libcall_null_pointer
.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)
movq %rsi, -16(%rbp)
cmpq $0, -16(%rbp)
jne LBB4_2
## %bb.1:
movl $5, -4(%rbp)
jmp LBB4_3
LBB4_2:
callq _mystery
imull -8(%rbp), %eax
movl %eax, -4(%rbp)
LBB4_3:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _libcall_global_pointer ## -- Begin function libcall_global_pointer
.p2align 4, 0x90
_libcall_global_pointer: ## @libcall_global_pointer
.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)
movq %rsi, -16(%rbp)
leaq _libcall_global_pointer(%rip), %rax
cmpq %rax, -16(%rbp)
jne LBB5_2
## %bb.1:
movl $13, -4(%rbp)
jmp LBB5_3
LBB5_2:
callq _mystery
imull -8(%rbp), %eax
movl %eax, -4(%rbp)
LBB5_3:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function mystery
_mystery: ## @mystery
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %eax, %eax
movl %eax, %edi
callq _time
movl %eax, %edi
callq _srand
callq _rand
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.globl _global2 ## @global2
.p2align 2
_global2:
.long 555 ## 0x22b
.subsections_via_symbols
| the_stack_data/29824295.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, #112
adrp x8, _N@GOTPAGE
ldr x8, [x8, _N@GOTPAGEOFF]
stur x8, [x29, #-56] ; 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, #-56] ; 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_31
LBB1_2:
ldur x8, [x29, #-56] ; 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, #-56] ; 8-byte Folded Reload
ldr w9, [x8]
; kill: def $x9 killed $w9
stur x9, [x29, #-88] ; 8-byte Folded Spill
mov x10, sp
stur x10, [x29, #-32]
lsl x9, x9, #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 x11, [x29, #-96] ; 8-byte Folded Reload
ldur x9, [x29, #-88] ; 8-byte Folded Reload
mov x10, sp
subs x10, x10, x11
mov sp, x10
stur x10, [x29, #-80] ; 8-byte Folded Spill
stur x9, [x29, #-40]
ldr w8, [x8]
; kill: def $x8 killed $w8
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, #-48]
stur wzr, [x29, #-16]
b LBB1_3
LBB1_3: ; =>This Inner Loop Header: Depth=1
ldur x9, [x29, #-56] ; 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, #-80] ; 8-byte Folded Reload
ldursw x10, [x29, #-16]
mov w8, #1
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 Inner Loop Header: Depth=1
ldur x9, [x29, #-56] ; 8-byte Folded Reload
ldur w8, [x29, #-16]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_10
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_7 Depth=1
ldur x9, [x29, #-64] ; 8-byte Folded Reload
ldursw x10, [x29, #-16]
mov w8, #0
str w8, [x9, x10, lsl #2]
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_7 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB1_7
LBB1_10:
stur wzr, [x29, #-24]
stur wzr, [x29, #-16]
b LBB1_11
LBB1_11: ; =>This Loop Header: Depth=1
; Child Loop BB1_13 Depth 2
ldur x9, [x29, #-56] ; 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_12
LBB1_12: ; in Loop: Header=BB1_11 Depth=1
stur wzr, [x29, #-20]
b LBB1_13
LBB1_13: ; Parent Loop BB1_11 Depth=1
; => This Inner Loop Header: Depth=2
ldur x9, [x29, #-56] ; 8-byte Folded Reload
ldur w8, [x29, #-20]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_16
b LBB1_14
LBB1_14: ; in Loop: Header=BB1_13 Depth=2
ldur x9, [x29, #-80] ; 8-byte Folded Reload
ldur w8, [x29, #-24]
ldursw x10, [x29, #-20]
ldr w9, [x9, x10, lsl #2]
add w8, w8, w9
stur w8, [x29, #-24]
b LBB1_15
LBB1_15: ; in Loop: Header=BB1_13 Depth=2
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB1_13
LBB1_16: ; in Loop: Header=BB1_11 Depth=1
b LBB1_17
LBB1_17: ; in Loop: Header=BB1_11 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB1_11
LBB1_18:
stur wzr, [x29, #-16]
b LBB1_19
LBB1_19: ; =>This Loop Header: Depth=1
; Child Loop BB1_21 Depth 2
ldur x9, [x29, #-56] ; 8-byte Folded Reload
ldur w8, [x29, #-16]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_26
b LBB1_20
LBB1_20: ; in Loop: Header=BB1_19 Depth=1
stur wzr, [x29, #-20]
b LBB1_21
LBB1_21: ; Parent Loop BB1_19 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-20]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_24
b LBB1_22
LBB1_22: ; in Loop: Header=BB1_21 Depth=2
ldur x9, [x29, #-64] ; 8-byte Folded Reload
ldursw x8, [x29, #-16]
ldr w8, [x9, x8, lsl #2]
add w8, w8, #2
ldursw x10, [x29, #-16]
str w8, [x9, x10, lsl #2]
b LBB1_23
LBB1_23: ; in Loop: Header=BB1_21 Depth=2
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB1_21
LBB1_24: ; in Loop: Header=BB1_19 Depth=1
ldur x9, [x29, #-64] ; 8-byte Folded Reload
ldursw x8, [x29, #-16]
ldr w8, [x9, x8, lsl #2]
ldur w10, [x29, #-24]
add w8, w8, w10
ldursw x10, [x29, #-16]
str w8, [x9, x10, lsl #2]
b LBB1_25
LBB1_25: ; in Loop: Header=BB1_19 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB1_19
LBB1_26:
stur wzr, [x29, #-16]
b LBB1_27
LBB1_27: ; =>This Inner Loop Header: Depth=1
ldur x9, [x29, #-56] ; 8-byte Folded Reload
ldur w8, [x29, #-16]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_30
b LBB1_28
LBB1_28: ; in Loop: Header=BB1_27 Depth=1
ldur x11, [x29, #-56] ; 8-byte Folded Reload
ldur x8, [x29, #-64] ; 8-byte Folded Reload
ldursw x9, [x29, #-16]
ldr w8, [x8, x9, lsl #2]
ldur w9, [x29, #-16]
ldr w10, [x11]
ldr w11, [x11]
mul w10, w10, w11
add w9, w9, w10
subs w8, w8, w9
cset w8, eq
and w0, w8, #0x1
bl ___VERIFIER_assert
b LBB1_29
LBB1_29: ; in Loop: Header=BB1_27 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB1_27
LBB1_30:
ldur x8, [x29, #-32]
mov sp, x8
b LBB1_31
LBB1_31:
ldur w8, [x29, #-12]
stur w8, [x29, #-100] ; 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_33
b LBB1_32
LBB1_32:
bl ___stack_chk_fail
LBB1_33:
ldur w0, [x29, #-100] ; 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 $96, %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_31
LBB1_2:
movq _N@GOTPCREL(%rip), %rax
movq %rax, -80(%rbp) ## 8-byte Spill
movslq (%rax), %rax
subq $536870912, %rax ## imm = 0x20000000
setb %al
movzbl %al, %edi
callq ___VERIFIER_assume
movq -80(%rbp), %rax ## 8-byte Reload
movl (%rax), %eax
## kill: def $rax killed $eax
movq %rax, -88(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -32(%rbp)
shlq $2, %rax
callq ____chkstk_darwin
movq -88(%rbp), %rcx ## 8-byte Reload
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -80(%rbp), %rax ## 8-byte Reload
movq %rsp, %rdx
movq %rdx, -72(%rbp) ## 8-byte Spill
movq %rcx, -40(%rbp)
movl (%rax), %eax
## kill: def $rax killed $eax
movq %rax, -64(%rbp) ## 8-byte Spill
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -64(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -56(%rbp) ## 8-byte Spill
movq %rax, -48(%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 -72(%rbp), %rax ## 8-byte Reload
movslq -16(%rbp), %rcx
movl $1, (%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 Inner Loop Header: Depth=1
movl -16(%rbp), %eax
movq _N@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_10
## %bb.8: ## in Loop: Header=BB1_7 Depth=1
movq -56(%rbp), %rax ## 8-byte Reload
movslq -16(%rbp), %rcx
movl $0, (%rax,%rcx,4)
## %bb.9: ## in Loop: Header=BB1_7 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_7
LBB1_10:
movl $0, -24(%rbp)
movl $0, -16(%rbp)
LBB1_11: ## =>This Loop Header: Depth=1
## Child Loop BB1_13 Depth 2
movl -16(%rbp), %eax
movq _N@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_18
## %bb.12: ## in Loop: Header=BB1_11 Depth=1
movl $0, -20(%rbp)
LBB1_13: ## Parent Loop BB1_11 Depth=1
## => This Inner Loop Header: Depth=2
movl -20(%rbp), %eax
movq _N@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_16
## %bb.14: ## in Loop: Header=BB1_13 Depth=2
movq -72(%rbp), %rcx ## 8-byte Reload
movl -24(%rbp), %eax
movslq -20(%rbp), %rdx
addl (%rcx,%rdx,4), %eax
movl %eax, -24(%rbp)
## %bb.15: ## in Loop: Header=BB1_13 Depth=2
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB1_13
LBB1_16: ## in Loop: Header=BB1_11 Depth=1
jmp LBB1_17
LBB1_17: ## in Loop: Header=BB1_11 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_11
LBB1_18:
movl $0, -16(%rbp)
LBB1_19: ## =>This Loop Header: Depth=1
## Child Loop BB1_21 Depth 2
movl -16(%rbp), %eax
movq _N@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_26
## %bb.20: ## in Loop: Header=BB1_19 Depth=1
movl $0, -20(%rbp)
LBB1_21: ## Parent Loop BB1_19 Depth=1
## => This Inner Loop Header: Depth=2
movl -20(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB1_24
## %bb.22: ## in Loop: Header=BB1_21 Depth=2
movq -56(%rbp), %rax ## 8-byte Reload
movslq -16(%rbp), %rcx
movl (%rax,%rcx,4), %edx
addl $2, %edx
movslq -16(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.23: ## in Loop: Header=BB1_21 Depth=2
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB1_21
LBB1_24: ## in Loop: Header=BB1_19 Depth=1
movq -56(%rbp), %rax ## 8-byte Reload
movslq -16(%rbp), %rcx
movl (%rax,%rcx,4), %edx
addl -24(%rbp), %edx
movslq -16(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.25: ## in Loop: Header=BB1_19 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_19
LBB1_26:
movl $0, -16(%rbp)
LBB1_27: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
movq _N@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_30
## %bb.28: ## in Loop: Header=BB1_27 Depth=1
movq -56(%rbp), %rax ## 8-byte Reload
movslq -16(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl -16(%rbp), %ecx
movq _N@GOTPCREL(%rip), %rdx
movl (%rdx), %edx
movq _N@GOTPCREL(%rip), %rsi
imull (%rsi), %edx
addl %edx, %ecx
cmpl %ecx, %eax
sete %al
andb $1, %al
movzbl %al, %edi
callq ___VERIFIER_assert
## %bb.29: ## in Loop: Header=BB1_27 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_27
LBB1_30:
movq -32(%rbp), %rax
movq %rax, %rsp
LBB1_31:
movl -12(%rbp), %eax
movl %eax, -92(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_33
## %bb.32:
movl -92(%rbp), %eax ## 4-byte Reload
movq %rbp, %rsp
popq %rbp
retq
LBB1_33:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.comm _N,4,2 ## @N
.subsections_via_symbols
| the_stack_data/36075053.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/48754.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]
bl _test1
str w0, [sp, #8] ; 4-byte Folded Spill
bl _test2
mov x8, x0
ldr w0, [sp, #8] ; 4-byte Folded Reload
add w0, w0, w8
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function test1
_test1: ; @test1
.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, l___const.test1.a@PAGE
add x8, x8, l___const.test1.a@PAGEOFF
ldr w8, [x8]
stur w8, [x29, #-4]
adrp x8, l___const.test1.b@PAGE
ldr w8, [x8, l___const.test1.b@PAGEOFF]
stur w8, [x29, #-8]
ldur w9, [x29, #-4]
sub x8, x29, #12
stur w9, [x29, #-12]
ldur w9, [x29, #-8]
stur w9, [x29, #-16]
ldur w9, [x29, #-12]
sub x10, x29, #20
str x10, [sp, #16] ; 8-byte Folded Spill
stur w9, [x29, #-20]
ldur w9, [x29, #-4]
sub x10, x29, #24
str x10, [sp, #24] ; 8-byte Folded Spill
stur w9, [x29, #-24]
adrp x9, l___const.test1.s3@PAGE
ldr w9, [x9, l___const.test1.s3@PAGEOFF]
sub x10, x29, #28
str x10, [sp, #32] ; 8-byte Folded Spill
stur w9, [x29, #-28]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
str x0, [sp, #40] ; 8-byte Folded Spill
bl _printf
ldur w9, [x29, #-16]
; 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
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #40] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
bl _printf
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x0, [sp, #40] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
bl _printf
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [sp, #40] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
bl _printf
mov w0, #0
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function test2
_test2: ; @test2
.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, l___const.test2.a@PAGE
ldrb w8, [x8, l___const.test2.a@PAGEOFF]
sturb w8, [x29, #-1]
ldurb w8, [x29, #-1]
sturb w8, [x29, #-12]
mov w8, #42
stur w8, [x29, #-8]
ldur x8, [x29, #-12]
str x8, [sp, #24]
ldrb w11, [sp, #24]
ldr w9, [sp, #28]
; implicit-def: $x8
mov x8, x9
mov x9, sp
; implicit-def: $x10
mov x10, x11
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal4,4byte_literals
l___const.test1.a: ; @__const.test1.a
.asciz "Hei"
.p2align 2 ; @__const.test1.b
l___const.test1.b:
.long 42 ; 0x2a
.p2align 2 ; @__const.test1.s3
l___const.test1.s3:
.asciz "Oi\000"
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s\n"
l_.str.1: ; @.str.1
.asciz "%d\n"
.section __TEXT,__const
l___const.test2.a: ; @__const.test2.a
.byte 99 ; 0x63
.section __TEXT,__cstring,cstring_literals
l_.str.2: ; @.str.2
.asciz "{{{%c}, %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 $16, %rsp
movl $0, -4(%rbp)
callq _test1
movl %eax, -8(%rbp) ## 4-byte Spill
callq _test2
movl %eax, %ecx
movl -8(%rbp), %eax ## 4-byte Reload
addl %ecx, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function test1
_test1: ## @test1
.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 L___const.test1.a(%rip), %eax
movl %eax, -8(%rbp)
movl L___const.test1.b(%rip), %eax
movl %eax, -16(%rbp)
movl -8(%rbp), %eax
movl %eax, -24(%rbp)
movl -16(%rbp), %eax
movl %eax, -32(%rbp)
movl -24(%rbp), %eax
movl %eax, -40(%rbp)
movl -8(%rbp), %eax
movl %eax, -48(%rbp)
movl L___const.test1.s3(%rip), %eax
movl %eax, -56(%rbp)
leaq -24(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -32(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq -40(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq -48(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq -56(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function test2
_test2: ## @test2
.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
movb l___const.test2.a(%rip), %al
movb %al, -8(%rbp)
movb -8(%rbp), %al
movb %al, -16(%rbp)
movl $42, -12(%rbp)
movq -16(%rbp), %rax
movq %rax, -24(%rbp)
movzbl -24(%rbp), %esi
movl -20(%rbp), %edx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal4,4byte_literals
L___const.test1.a: ## @__const.test1.a
.asciz "Hei"
.p2align 2 ## @__const.test1.b
L___const.test1.b:
.long 42 ## 0x2a
.p2align 2 ## @__const.test1.s3
L___const.test1.s3:
.asciz "Oi\000"
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s\n"
L_.str.1: ## @.str.1
.asciz "%d\n"
.section __TEXT,__const
l___const.test2.a: ## @__const.test2.a
.byte 99 ## 0x63
.section __TEXT,__cstring,cstring_literals
L_.str.2: ## @.str.2
.asciz "{{{%c}, %d}}\n"
.subsections_via_symbols
| the_stack_data/90765792.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]
bl _megaInit
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov x9, sp
mov x8, #1
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w0, #-1
bl _exit
LBB0_2:
b LBB0_3
LBB0_3:
str wzr, [sp, #24]
b LBB0_4
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #24]
subs w8, w8, #1
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=1
ldur x8, [x29, #-16]
ldr w9, [sp, #24]
add w9, w9, #1
ldr x0, [x8, w9, sxtw #3]
mov x1, #0
mov w2, #10
bl _strtoul
mov x8, x0
strb w8, [sp, #23]
ldrb w8, [sp, #23]
ldrsw x10, [sp, #24]
sub x9, x29, #17
add x9, x9, x10
strb w8, [x9]
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_4
LBB0_6:
sub x0, x29, #17
sub x1, x29, #18
bl _RandomFunc
ldurb w8, [x29, #-18]
subs w8, w8, #105
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_9
LBB0_8:
b LBB0_9
LBB0_9:
str wzr, [sp, #16]
b LBB0_10
LBB0_10: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
subs w8, w8, #1
cset w8, ge
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_10 Depth=1
ldrsw x9, [sp, #16]
sub x8, x29, #18
ldrb w10, [x8, x9]
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
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_10
LBB0_12:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _megaInit ; -- Begin function megaInit
.p2align 2
_megaInit: ; @megaInit
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.globl _RandomFunc ; -- Begin function RandomFunc
.p2align 2
_RandomFunc: ; @RandomFunc
.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]
ldrb w8, [x8]
add w8, w8, #69
strb w8, [sp, #15]
strb wzr, [sp, #14]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldrb w8, [sp, #14]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB2_9
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldrb w8, [sp, #15]
ldrb w9, [sp, #14]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB2_7
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldrb w8, [sp, #15]
ldrb w9, [sp, #14]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB2_5
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_1 Depth=1
add x8, sp, #15
ldrb w10, [sp, #15]
ldrb w9, [sp, #14]
; kill: def $x9 killed $w9
add x9, x8, x9
ldrb w8, [x9]
subs w8, w8, w10
strb w8, [x9]
b LBB2_6
LBB2_5: ; in Loop: Header=BB2_1 Depth=1
add x9, sp, #15
ldrb w8, [sp, #15]
ldrb w10, [sp, #15]
add w8, w8, w10
ldrb w10, [sp, #14]
; kill: def $x10 killed $w10
strb w8, [x9, x10]
b LBB2_6
LBB2_6: ; in Loop: Header=BB2_1 Depth=1
b LBB2_8
LBB2_7: ; in Loop: Header=BB2_1 Depth=1
ldrb w8, [sp, #14]
mov x9, x8
add x8, sp, #15
ldrb w10, [x8, x9]
ldrb w9, [sp, #14]
; kill: def $x9 killed $w9
add x9, x8, x9
ldrb w8, [x9]
add w8, w8, w10
strb w8, [x9]
b LBB2_8
LBB2_8: ; in Loop: Header=BB2_1 Depth=1
ldrb w8, [sp, #14]
; kill: def $x8 killed $w8
add x8, x8, #2
; kill: def $w8 killed $w8 killed $x8
strb w8, [sp, #14]
b LBB2_1
LBB2_9:
ldrb w8, [sp, #15]
; kill: def $x8 killed $w8
mov x9, #12605
movk x9, #10198, lsl #16
subs x8, x8, x9
add x8, x8, #40
ldr x9, [sp, #16]
; kill: def $w8 killed $w8 killed $x8
strb w8, [x9]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Call this program with %i arguments\n"
l_.str.1: ; @.str.1
.asciz "You win!\n"
l_.str.2: ; @.str.2
.asciz "%u\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 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)
callq _megaInit
cmpl $2, -8(%rbp)
je LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $1, %esi
callq _printf
movl $-1, %edi
callq _exit
LBB0_2:
jmp LBB0_3
LBB0_3:
movl $0, -24(%rbp)
LBB0_4: ## =>This Inner Loop Header: Depth=1
cmpl $1, -24(%rbp)
jge LBB0_6
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movq -16(%rbp), %rax
movl -24(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $10, %edx
callq _strtoul
## kill: def $al killed $al killed $rax
movb %al, -25(%rbp)
movb -25(%rbp), %cl
movslq -24(%rbp), %rax
movb %cl, -17(%rbp,%rax)
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB0_4
LBB0_6:
leaq -17(%rbp), %rdi
leaq -18(%rbp), %rsi
callq _RandomFunc
movzbl -18(%rbp), %eax
cmpl $105, %eax
jne LBB0_8
## %bb.7:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_9
LBB0_8:
jmp LBB0_9
LBB0_9:
movl $0, -32(%rbp)
LBB0_10: ## =>This Inner Loop Header: Depth=1
cmpl $1, -32(%rbp)
jge LBB0_12
## %bb.11: ## in Loop: Header=BB0_10 Depth=1
movslq -32(%rbp), %rax
movzbl -18(%rbp,%rax), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB0_10
LBB0_12:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _megaInit ## -- Begin function megaInit
.p2align 4, 0x90
_megaInit: ## @megaInit
.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 _RandomFunc ## -- Begin function RandomFunc
.p2align 4, 0x90
_RandomFunc: ## @RandomFunc
.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
movzbl (%rax), %eax
addl $69, %eax
## kill: def $al killed $al killed $eax
movb %al, -17(%rbp)
movb $0, -18(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movzbl -18(%rbp), %eax
cmpl $0, %eax
jge LBB2_9
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movzbl -17(%rbp), %eax
movzbl -18(%rbp), %ecx
cmpl %ecx, %eax
jle LBB2_7
## %bb.3: ## in Loop: Header=BB2_1 Depth=1
movzbl -17(%rbp), %eax
movzbl -18(%rbp), %ecx
cmpl %ecx, %eax
jle LBB2_5
## %bb.4: ## in Loop: Header=BB2_1 Depth=1
movzbl -17(%rbp), %edx
movzbl -18(%rbp), %eax
## kill: def $rax killed $eax
movzbl -17(%rbp,%rax), %ecx
subl %edx, %ecx
## kill: def $cl killed $cl killed $ecx
movb %cl, -17(%rbp,%rax)
jmp LBB2_6
LBB2_5: ## in Loop: Header=BB2_1 Depth=1
movzbl -17(%rbp), %eax
movzbl -17(%rbp), %ecx
addl %ecx, %eax
movb %al, %cl
movzbl -18(%rbp), %eax
## kill: def $rax killed $eax
movb %cl, -17(%rbp,%rax)
LBB2_6: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_8
LBB2_7: ## in Loop: Header=BB2_1 Depth=1
movzbl -18(%rbp), %eax
## kill: def $rax killed $eax
movzbl -17(%rbp,%rax), %edx
movzbl -18(%rbp), %eax
## kill: def $rax killed $eax
movzbl -17(%rbp,%rax), %ecx
addl %edx, %ecx
## kill: def $cl killed $cl killed $ecx
movb %cl, -17(%rbp,%rax)
LBB2_8: ## in Loop: Header=BB2_1 Depth=1
movzbl -18(%rbp), %eax
## kill: def $rax killed $eax
addq $2, %rax
## kill: def $al killed $al killed $rax
movb %al, -18(%rbp)
jmp LBB2_1
LBB2_9:
movzbl -17(%rbp), %eax
## kill: def $rax killed $eax
subq $668348733, %rax ## imm = 0x27D6313D
addq $40, %rax
movb %al, %cl
movq -16(%rbp), %rax
movb %cl, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Call this program with %i arguments\n"
L_.str.1: ## @.str.1
.asciz "You win!\n"
L_.str.2: ## @.str.2
.asciz "%u\n"
.subsections_via_symbols
| the_stack_data/175143638.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sgesvxx_ ; -- Begin function sgesvxx_
.p2align 2
_sgesvxx_: ; @sgesvxx_
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 96
stp x26, x25, [sp, #16] ; 16-byte Folded Spill
stp x24, x23, [sp, #32] ; 16-byte Folded Spill
stp x22, x21, [sp, #48] ; 16-byte Folded Spill
stp x20, x19, [sp, #64] ; 16-byte Folded Spill
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
sub sp, sp, #608
add x8, sp, #392
str x8, [sp, #240] ; 8-byte Folded Spill
mov x28, x0
mov x27, x1
mov x26, x2
mov x25, x3
mov x24, x4
mov x23, x5
mov x22, x6
mov x21, x7
ldr x20, [x29, #16]
ldr x19, [x29, #24]
ldr x7, [x29, #32]
ldr x6, [x29, #40]
ldr x5, [x29, #48]
ldr x4, [x29, #56]
ldr x3, [x29, #64]
ldr x2, [x29, #72]
ldr x1, [x29, #80]
ldr x0, [x29, #88]
ldr x17, [x29, #96]
ldr x16, [x29, #104]
ldr x15, [x29, #112]
ldr x14, [x29, #120]
ldr x13, [x29, #128]
ldr x12, [x29, #136]
ldr x11, [x29, #144]
ldr x10, [x29, #152]
ldr x9, [x29, #160]
str x28, [x8, #192]
str x27, [x8, #184]
str x26, [x8, #176]
str x25, [x8, #168]
str x24, [x8, #160]
str x23, [x8, #152]
str x22, [x8, #144]
str x21, [x8, #136]
str x20, [x8, #128]
str x19, [x8, #120]
str x7, [x8, #112]
str x6, [x8, #104]
str x5, [x8, #96]
str x4, [x8, #88]
str x3, [x8, #80]
str x2, [x8, #72]
str x1, [x8, #64]
str x0, [x8, #56]
str x17, [x8, #48]
str x16, [x8, #40]
str x15, [x8, #32]
str x14, [x8, #24]
str x13, [x8, #16]
str x12, [x8, #8]
str x11, [x8]
str x10, [sp, #384]
str x9, [sp, #376]
ldr x9, [x8, #168]
ldr w9, [x9]
str w9, [sp, #332]
ldr w9, [sp, #332]
mov x10, #0
lsr w9, w9, #0
add w9, w9, #1
str w9, [sp, #328]
ldrsw x11, [sp, #328]
ldr x9, [x8, #24]
subs x11, x10, x11
add x9, x9, x11, lsl #2
str x9, [x8, #24]
ldr x9, [x8, #168]
ldr w9, [x9]
str w9, [sp, #340]
ldr w9, [sp, #340]
lsr w9, w9, #0
add w9, w9, #1
str w9, [sp, #336]
ldrsw x11, [sp, #336]
ldr x9, [x8, #32]
subs x11, x10, x11
add x9, x9, x11, lsl #2
str x9, [x8, #32]
ldr x9, [x8, #152]
ldr w9, [x9]
str w9, [sp, #372]
ldr w9, [sp, #372]
lsr w9, w9, #0
add w9, w9, #1
str w9, [sp, #368]
ldrsw x11, [sp, #368]
ldr x9, [x8, #160]
subs x11, x10, x11
add x9, x9, x11, lsl #2
str x9, [x8, #160]
ldr x9, [x8, #136]
ldr w9, [x9]
str w9, [sp, #364]
ldr w9, [sp, #364]
lsr w9, w9, #0
add w9, w9, #1
str w9, [sp, #360]
ldrsw x11, [sp, #360]
ldr x9, [x8, #144]
subs x11, x10, x11
add x9, x9, x11, lsl #2
str x9, [x8, #144]
ldr x9, [x8, #128]
subs x9, x9, #4
str x9, [x8, #128]
ldr x9, [x8, #112]
subs x9, x9, #4
str x9, [x8, #112]
ldr x9, [x8, #104]
subs x9, x9, #4
str x9, [x8, #104]
ldr x9, [x8, #88]
ldr w9, [x9]
str w9, [sp, #356]
ldr w9, [sp, #356]
lsr w9, w9, #0
add w9, w9, #1
str w9, [sp, #352]
ldrsw x11, [sp, #352]
ldr x9, [x8, #96]
subs x11, x10, x11
add x9, x9, x11, lsl #2
str x9, [x8, #96]
ldr x9, [x8, #72]
ldr w9, [x9]
str w9, [sp, #348]
ldr w9, [sp, #348]
lsr w9, w9, #0
add w9, w9, #1
str w9, [sp, #344]
ldrsw x11, [sp, #344]
ldr x9, [x8, #80]
subs x10, x10, x11
add x9, x9, x10, lsl #2
str x9, [x8, #80]
ldr x9, [x8, #48]
subs x9, x9, #4
str x9, [x8, #48]
ldr x9, [x8, #8]
subs x9, x9, #4
str x9, [x8, #8]
ldr x9, [x8]
subs x9, x9, #4
str x9, [x8]
ldr x9, [sp, #384]
subs x9, x9, #4
str x9, [sp, #384]
ldr x9, [sp, #376]
str wzr, [x9]
ldr x0, [x8, #192]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
str x1, [sp, #248] ; 8-byte Folded Spill
bl _lsame_
ldr x8, [sp, #240] ; 8-byte Folded Reload
str w0, [sp, #288]
ldr x0, [x8, #192]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _lsame_
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x1, [sp, #248] ; 8-byte Folded Reload
str w0, [sp, #296]
ldr x0, [x8, #184]
bl _lsame_
str w0, [sp, #268]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _slamch_
str s0, [sp, #264]
ldr s1, [sp, #264]
fmov s0, #1.00000000
fdiv s0, s0, s1
str s0, [sp, #284]
ldr w8, [sp, #288]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w8, [sp, #296]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x9, [x8, #120]
mov w8, #78
strb w8, [x9]
str wzr, [sp, #260]
str wzr, [sp, #276]
b LBB0_8
LBB0_3:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #120]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _lsame_
subs w8, w0, #0
cset w8, ne
mov w9, #1
str w9, [sp, #236] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #120]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _lsame_
subs w8, w0, #0
cset w8, ne
str w8, [sp, #236] ; 4-byte Folded Spill
b LBB0_5
LBB0_5:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr w9, [sp, #236] ; 4-byte Folded Reload
and w9, w9, #0x1
str w9, [sp, #260]
ldr x0, [x8, #120]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _lsame_
subs w8, w0, #0
cset w8, ne
mov w9, #1
str w9, [sp, #232] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #120]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _lsame_
subs w8, w0, #0
cset w8, ne
str w8, [sp, #232] ; 4-byte Folded Spill
b LBB0_7
LBB0_7:
ldr w8, [sp, #232] ; 4-byte Folded Reload
and w8, w8, #0x1
str w8, [sp, #276]
b LBB0_8
LBB0_8:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x8, [x8, #56]
movi d0, #0000000000000000
str s0, [x8]
ldr w8, [sp, #288]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_9
LBB0_9:
ldr w8, [sp, #296]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_10
LBB0_10:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #192]
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _lsame_
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
ldr x9, [sp, #376]
mov w8, #-1
str w8, [x9]
b LBB0_104
LBB0_12:
ldr w8, [sp, #268]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_16
b LBB0_13
LBB0_13:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #184]
adrp x1, l_.str.7@PAGE
add x1, x1, l_.str.7@PAGEOFF
bl _lsame_
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_16
b LBB0_14
LBB0_14:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #184]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _lsame_
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15:
ldr x9, [sp, #376]
mov w8, #-2
str w8, [x9]
b LBB0_103
LBB0_16:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x8, [x8, #176]
ldr w8, [x8]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17:
ldr x9, [sp, #376]
mov w8, #-3
str w8, [x9]
b LBB0_102
LBB0_18:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x8, [x8, #168]
ldr w8, [x8]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19:
ldr x9, [sp, #376]
mov w8, #-4
str w8, [x9]
b LBB0_101
LBB0_20:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x9, [x8, #152]
ldr w9, [x9]
str w9, [sp, #228] ; 4-byte Folded Spill
ldr x8, [x8, #176]
ldr w9, [x8]
mov w8, #1
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21:
mov w8, #1
str w8, [sp, #224] ; 4-byte Folded Spill
b LBB0_23
LBB0_22:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x8, [x8, #176]
ldr w8, [x8]
str w8, [sp, #224] ; 4-byte Folded Spill
b LBB0_23
LBB0_23:
ldr w8, [sp, #228] ; 4-byte Folded Reload
ldr w9, [sp, #224] ; 4-byte Folded Reload
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_25
b LBB0_24
LBB0_24:
ldr x9, [sp, #376]
mov w8, #-6
str w8, [x9]
b LBB0_100
LBB0_25:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x9, [x8, #136]
ldr w9, [x9]
str w9, [sp, #220] ; 4-byte Folded Spill
ldr x8, [x8, #176]
ldr w9, [x8]
mov w8, #1
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB0_27
b LBB0_26
LBB0_26:
mov w8, #1
str w8, [sp, #216] ; 4-byte Folded Spill
b LBB0_28
LBB0_27:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x8, [x8, #176]
ldr w8, [x8]
str w8, [sp, #216] ; 4-byte Folded Spill
b LBB0_28
LBB0_28:
ldr w8, [sp, #220] ; 4-byte Folded Reload
ldr w9, [sp, #216] ; 4-byte Folded Reload
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_30
b LBB0_29
LBB0_29:
ldr x9, [sp, #376]
mov w8, #-8
str w8, [x9]
b LBB0_99
LBB0_30:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #192]
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _lsame_
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_35
b LBB0_31
LBB0_31:
ldr w8, [sp, #260]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_35
b LBB0_32
LBB0_32:
ldr w8, [sp, #276]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_35
b LBB0_33
LBB0_33:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #120]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _lsame_
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_35
b LBB0_34
LBB0_34:
ldr x9, [sp, #376]
mov w8, #-10
str w8, [x9]
b LBB0_98
LBB0_35:
ldr w8, [sp, #260]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_59
b LBB0_36
LBB0_36:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr s0, [sp, #284]
str s0, [sp, #304]
movi d0, #0000000000000000
str s0, [sp, #300]
ldr x8, [x8, #176]
ldr w8, [x8]
str w8, [sp, #324]
mov w8, #1
str w8, [sp, #308]
b LBB0_37
LBB0_37: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #308]
ldr w9, [sp, #324]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_46
b LBB0_38
LBB0_38: ; in Loop: Header=BB0_37 Depth=1
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr s0, [sp, #304]
str s0, [sp, #320]
ldr x8, [x8, #112]
ldrsw x9, [sp, #308]
ldr s0, [x8, x9, lsl #2]
str s0, [sp, #316]
ldr s0, [sp, #320]
ldr s1, [sp, #316]
fcmp s0, s1
cset w8, hi
tbnz w8, #0, LBB0_40
b LBB0_39
LBB0_39: ; in Loop: Header=BB0_37 Depth=1
ldr s0, [sp, #320]
str s0, [sp, #212] ; 4-byte Folded Spill
b LBB0_41
LBB0_40: ; in Loop: Header=BB0_37 Depth=1
ldr s0, [sp, #316]
str s0, [sp, #212] ; 4-byte Folded Spill
b LBB0_41
LBB0_41: ; in Loop: Header=BB0_37 Depth=1
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr s0, [sp, #212] ; 4-byte Folded Reload
str s0, [sp, #304]
ldr s0, [sp, #300]
str s0, [sp, #320]
ldr x8, [x8, #112]
ldrsw x9, [sp, #308]
ldr s0, [x8, x9, lsl #2]
str s0, [sp, #316]
ldr s0, [sp, #320]
ldr s1, [sp, #316]
fcmp s0, s1
cset w8, lt
tbnz w8, #0, LBB0_43
b LBB0_42
LBB0_42: ; in Loop: Header=BB0_37 Depth=1
ldr s0, [sp, #320]
str s0, [sp, #208] ; 4-byte Folded Spill
b LBB0_44
LBB0_43: ; in Loop: Header=BB0_37 Depth=1
ldr s0, [sp, #316]
str s0, [sp, #208] ; 4-byte Folded Spill
b LBB0_44
LBB0_44: ; in Loop: Header=BB0_37 Depth=1
ldr s0, [sp, #208] ; 4-byte Folded Reload
str s0, [sp, #300]
b LBB0_45
LBB0_45: ; in Loop: Header=BB0_37 Depth=1
ldr w8, [sp, #308]
add w8, w8, #1
str w8, [sp, #308]
b LBB0_37
LBB0_46:
ldr s0, [sp, #304]
fcmp s0, #0.0
cset w8, hi
tbnz w8, #0, LBB0_48
b LBB0_47
LBB0_47:
ldr x9, [sp, #376]
mov w8, #-11
str w8, [x9]
b LBB0_58
LBB0_48:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x8, [x8, #176]
ldr w8, [x8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_56
b LBB0_49
LBB0_49:
ldr s0, [sp, #304]
ldr s1, [sp, #264]
fcmp s0, s1
cset w8, lt
tbnz w8, #0, LBB0_51
b LBB0_50
LBB0_50:
ldr s0, [sp, #304]
str s0, [sp, #204] ; 4-byte Folded Spill
b LBB0_52
LBB0_51:
ldr s0, [sp, #264]
str s0, [sp, #204] ; 4-byte Folded Spill
b LBB0_52
LBB0_52:
ldr s0, [sp, #204] ; 4-byte Folded Reload
str s0, [sp, #200] ; 4-byte Folded Spill
ldr s0, [sp, #300]
ldr s1, [sp, #284]
fcmp s0, s1
cset w8, hi
tbnz w8, #0, LBB0_54
b LBB0_53
LBB0_53:
ldr s0, [sp, #300]
str s0, [sp, #196] ; 4-byte Folded Spill
b LBB0_55
LBB0_54:
ldr s0, [sp, #284]
str s0, [sp, #196] ; 4-byte Folded Spill
b LBB0_55
LBB0_55:
ldr s0, [sp, #200] ; 4-byte Folded Reload
ldr s1, [sp, #196] ; 4-byte Folded Reload
fdiv s0, s0, s1
str s0, [sp, #272]
b LBB0_57
LBB0_56:
fmov s0, #1.00000000
str s0, [sp, #272]
b LBB0_57
LBB0_57:
b LBB0_58
LBB0_58:
b LBB0_59
LBB0_59:
ldr w8, [sp, #276]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_84
b LBB0_60
LBB0_60:
ldr x8, [sp, #376]
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_84
b LBB0_61
LBB0_61:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr s0, [sp, #284]
str s0, [sp, #304]
movi d0, #0000000000000000
str s0, [sp, #300]
ldr x8, [x8, #176]
ldr w8, [x8]
str w8, [sp, #324]
mov w8, #1
str w8, [sp, #308]
b LBB0_62
LBB0_62: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #308]
ldr w9, [sp, #324]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_71
b LBB0_63
LBB0_63: ; in Loop: Header=BB0_62 Depth=1
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr s0, [sp, #304]
str s0, [sp, #320]
ldr x8, [x8, #104]
ldrsw x9, [sp, #308]
ldr s0, [x8, x9, lsl #2]
str s0, [sp, #316]
ldr s0, [sp, #320]
ldr s1, [sp, #316]
fcmp s0, s1
cset w8, hi
tbnz w8, #0, LBB0_65
b LBB0_64
LBB0_64: ; in Loop: Header=BB0_62 Depth=1
ldr s0, [sp, #320]
str s0, [sp, #192] ; 4-byte Folded Spill
b LBB0_66
LBB0_65: ; in Loop: Header=BB0_62 Depth=1
ldr s0, [sp, #316]
str s0, [sp, #192] ; 4-byte Folded Spill
b LBB0_66
LBB0_66: ; in Loop: Header=BB0_62 Depth=1
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr s0, [sp, #192] ; 4-byte Folded Reload
str s0, [sp, #304]
ldr s0, [sp, #300]
str s0, [sp, #320]
ldr x8, [x8, #104]
ldrsw x9, [sp, #308]
ldr s0, [x8, x9, lsl #2]
str s0, [sp, #316]
ldr s0, [sp, #320]
ldr s1, [sp, #316]
fcmp s0, s1
cset w8, lt
tbnz w8, #0, LBB0_68
b LBB0_67
LBB0_67: ; in Loop: Header=BB0_62 Depth=1
ldr s0, [sp, #320]
str s0, [sp, #188] ; 4-byte Folded Spill
b LBB0_69
LBB0_68: ; in Loop: Header=BB0_62 Depth=1
ldr s0, [sp, #316]
str s0, [sp, #188] ; 4-byte Folded Spill
b LBB0_69
LBB0_69: ; in Loop: Header=BB0_62 Depth=1
ldr s0, [sp, #188] ; 4-byte Folded Reload
str s0, [sp, #300]
b LBB0_70
LBB0_70: ; in Loop: Header=BB0_62 Depth=1
ldr w8, [sp, #308]
add w8, w8, #1
str w8, [sp, #308]
b LBB0_62
LBB0_71:
ldr s0, [sp, #304]
fcmp s0, #0.0
cset w8, hi
tbnz w8, #0, LBB0_73
b LBB0_72
LBB0_72:
ldr x9, [sp, #376]
mov w8, #-12
str w8, [x9]
b LBB0_83
LBB0_73:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x8, [x8, #176]
ldr w8, [x8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_81
b LBB0_74
LBB0_74:
ldr s0, [sp, #304]
ldr s1, [sp, #264]
fcmp s0, s1
cset w8, lt
tbnz w8, #0, LBB0_76
b LBB0_75
LBB0_75:
ldr s0, [sp, #304]
str s0, [sp, #184] ; 4-byte Folded Spill
b LBB0_77
LBB0_76:
ldr s0, [sp, #264]
str s0, [sp, #184] ; 4-byte Folded Spill
b LBB0_77
LBB0_77:
ldr s0, [sp, #184] ; 4-byte Folded Reload
str s0, [sp, #180] ; 4-byte Folded Spill
ldr s0, [sp, #300]
ldr s1, [sp, #284]
fcmp s0, s1
cset w8, hi
tbnz w8, #0, LBB0_79
b LBB0_78
LBB0_78:
ldr s0, [sp, #300]
str s0, [sp, #176] ; 4-byte Folded Spill
b LBB0_80
LBB0_79:
ldr s0, [sp, #284]
str s0, [sp, #176] ; 4-byte Folded Spill
b LBB0_80
LBB0_80:
ldr s0, [sp, #180] ; 4-byte Folded Reload
ldr s1, [sp, #176] ; 4-byte Folded Reload
fdiv s0, s0, s1
str s0, [sp, #292]
b LBB0_82
LBB0_81:
fmov s0, #1.00000000
str s0, [sp, #292]
b LBB0_82
LBB0_82:
b LBB0_83
LBB0_83:
b LBB0_84
LBB0_84:
ldr x8, [sp, #376]
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_97
b LBB0_85
LBB0_85:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x9, [x8, #88]
ldr w9, [x9]
str w9, [sp, #172] ; 4-byte Folded Spill
ldr x8, [x8, #176]
ldr w9, [x8]
mov w8, #1
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB0_87
b LBB0_86
LBB0_86:
mov w8, #1
str w8, [sp, #168] ; 4-byte Folded Spill
b LBB0_88
LBB0_87:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x8, [x8, #176]
ldr w8, [x8]
str w8, [sp, #168] ; 4-byte Folded Spill
b LBB0_88
LBB0_88:
ldr w8, [sp, #172] ; 4-byte Folded Reload
ldr w9, [sp, #168] ; 4-byte Folded Reload
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_90
b LBB0_89
LBB0_89:
ldr x9, [sp, #376]
mov w8, #-14
str w8, [x9]
b LBB0_96
LBB0_90:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x9, [x8, #72]
ldr w9, [x9]
str w9, [sp, #164] ; 4-byte Folded Spill
ldr x8, [x8, #176]
ldr w9, [x8]
mov w8, #1
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB0_92
b LBB0_91
LBB0_91:
mov w8, #1
str w8, [sp, #160] ; 4-byte Folded Spill
b LBB0_93
LBB0_92:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x8, [x8, #176]
ldr w8, [x8]
str w8, [sp, #160] ; 4-byte Folded Spill
b LBB0_93
LBB0_93:
ldr w8, [sp, #164] ; 4-byte Folded Reload
ldr w9, [sp, #160] ; 4-byte Folded Reload
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_95
b LBB0_94
LBB0_94:
ldr x9, [sp, #376]
mov w8, #-16
str w8, [x9]
b LBB0_95
LBB0_95:
b LBB0_96
LBB0_96:
b LBB0_97
LBB0_97:
b LBB0_98
LBB0_98:
b LBB0_99
LBB0_99:
b LBB0_100
LBB0_100:
b LBB0_101
LBB0_101:
b LBB0_102
LBB0_102:
b LBB0_103
LBB0_103:
b LBB0_104
LBB0_104:
ldr x8, [sp, #376]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_106
b LBB0_105
LBB0_105:
ldr x8, [sp, #376]
ldr w9, [x8]
mov w8, #0
subs w8, w8, w9
add x1, sp, #324
str w8, [sp, #324]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
mov w2, #7
bl _xerbla_
stur wzr, [x29, #-92]
b LBB0_146
LBB0_106:
ldr w8, [sp, #296]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_126
b LBB0_107
LBB0_107:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #176]
ldr x1, [x8, #176]
ldr x9, [x8, #160]
ldrsw x10, [sp, #368]
add x2, x9, x10, lsl #2
ldr x3, [x8, #152]
ldr x9, [x8, #112]
add x4, x9, #4
ldr x8, [x8, #104]
add x5, x8, #4
mov x9, sp
add x8, sp, #312
str x8, [x9]
add x8, sp, #280
str x8, [x9, #8]
add x6, sp, #272
add x7, sp, #292
bl _sgeequb_
ldr w8, [sp, #280]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_113
b LBB0_108
LBB0_108:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #176]
ldr x1, [x8, #176]
ldr x9, [x8, #160]
ldrsw x10, [sp, #368]
add x2, x9, x10, lsl #2
ldr x3, [x8, #152]
ldr x9, [x8, #112]
add x4, x9, #4
ldr x9, [x8, #104]
add x5, x9, #4
ldr x8, [x8, #120]
mov x9, sp
add x10, sp, #312
str x10, [x9]
str x8, [x9, #8]
add x6, sp, #272
add x7, sp, #292
bl _slaqge_
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #120]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _lsame_
subs w8, w0, #0
cset w8, ne
mov w9, #1
str w9, [sp, #156] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_110
b LBB0_109
LBB0_109:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #120]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _lsame_
subs w8, w0, #0
cset w8, ne
str w8, [sp, #156] ; 4-byte Folded Spill
b LBB0_110
LBB0_110:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr w9, [sp, #156] ; 4-byte Folded Reload
and w9, w9, #0x1
str w9, [sp, #260]
ldr x0, [x8, #120]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _lsame_
subs w8, w0, #0
cset w8, ne
mov w9, #1
str w9, [sp, #152] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_112
b LBB0_111
LBB0_111:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #120]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _lsame_
subs w8, w0, #0
cset w8, ne
str w8, [sp, #152] ; 4-byte Folded Spill
b LBB0_112
LBB0_112:
ldr w8, [sp, #152] ; 4-byte Folded Reload
and w8, w8, #0x1
str w8, [sp, #276]
b LBB0_113
LBB0_113:
ldr w8, [sp, #260]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_119
b LBB0_114
LBB0_114:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x8, [x8, #176]
ldr w8, [x8]
str w8, [sp, #324]
mov w8, #1
str w8, [sp, #308]
b LBB0_115
LBB0_115: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #308]
ldr w9, [sp, #324]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_118
b LBB0_116
LBB0_116: ; in Loop: Header=BB0_115 Depth=1
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x8, [x8, #112]
ldrsw x9, [sp, #308]
fmov s0, #1.00000000
str s0, [x8, x9, lsl #2]
b LBB0_117
LBB0_117: ; in Loop: Header=BB0_115 Depth=1
ldr w8, [sp, #308]
add w8, w8, #1
str w8, [sp, #308]
b LBB0_115
LBB0_118:
b LBB0_119
LBB0_119:
ldr w8, [sp, #276]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_125
b LBB0_120
LBB0_120:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x8, [x8, #176]
ldr w8, [x8]
str w8, [sp, #324]
mov w8, #1
str w8, [sp, #308]
b LBB0_121
LBB0_121: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #308]
ldr w9, [sp, #324]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_124
b LBB0_122
LBB0_122: ; in Loop: Header=BB0_121 Depth=1
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x8, [x8, #104]
ldrsw x9, [sp, #308]
fmov s0, #1.00000000
str s0, [x8, x9, lsl #2]
b LBB0_123
LBB0_123: ; in Loop: Header=BB0_121 Depth=1
ldr w8, [sp, #308]
add w8, w8, #1
str w8, [sp, #308]
b LBB0_121
LBB0_124:
b LBB0_125
LBB0_125:
b LBB0_126
LBB0_126:
ldr w8, [sp, #268]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_130
b LBB0_127
LBB0_127:
ldr w8, [sp, #260]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_129
b LBB0_128
LBB0_128:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #176]
ldr x1, [x8, #168]
ldr x9, [x8, #112]
add x2, x9, #4
ldr x9, [x8, #96]
ldrsw x10, [sp, #352]
add x3, x9, x10, lsl #2
ldr x4, [x8, #88]
bl _slascl2_
b LBB0_129
LBB0_129:
b LBB0_133
LBB0_130:
ldr w8, [sp, #276]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_132
b LBB0_131
LBB0_131:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #176]
ldr x1, [x8, #168]
ldr x9, [x8, #104]
add x2, x9, #4
ldr x9, [x8, #96]
ldrsw x10, [sp, #352]
add x3, x9, x10, lsl #2
ldr x4, [x8, #88]
bl _slascl2_
b LBB0_132
LBB0_132:
b LBB0_133
LBB0_133:
ldr w8, [sp, #288]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_135
b LBB0_134
LBB0_134:
ldr w8, [sp, #296]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_138
b LBB0_135
LBB0_135:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x1, [x8, #176]
ldr x2, [x8, #176]
ldr x9, [x8, #160]
ldrsw x10, [sp, #368]
add x3, x9, x10, lsl #2
ldr x4, [x8, #152]
ldr x9, [x8, #144]
ldrsw x10, [sp, #360]
add x5, x9, x10, lsl #2
ldr x6, [x8, #136]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _slacpy_
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #176]
ldr x1, [x8, #176]
ldr x9, [x8, #144]
ldrsw x10, [sp, #360]
add x2, x9, x10, lsl #2
ldr x3, [x8, #136]
ldr x8, [x8, #128]
add x4, x8, #4
ldr x5, [sp, #376]
bl _sgetrf_
ldr x8, [sp, #376]
ldr w8, [x8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_137
b LBB0_136
LBB0_136:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #176]
ldr x1, [sp, #376]
ldr x9, [x8, #160]
ldrsw x10, [sp, #368]
add x2, x9, x10, lsl #2
ldr x3, [x8, #152]
ldr x9, [x8, #144]
ldrsw x10, [sp, #360]
add x4, x9, x10, lsl #2
ldr x5, [x8, #136]
bl _sla_gerpvgrw_
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x8, [x8, #56]
str s0, [x8]
stur wzr, [x29, #-92]
b LBB0_146
LBB0_137:
b LBB0_138
LBB0_138:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #176]
ldr x1, [x8, #176]
ldr x9, [x8, #160]
ldrsw x10, [sp, #368]
add x2, x9, x10, lsl #2
ldr x3, [x8, #152]
ldr x9, [x8, #144]
ldrsw x10, [sp, #360]
add x4, x9, x10, lsl #2
ldr x5, [x8, #136]
bl _sla_gerpvgrw_
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x9, [x8, #56]
str s0, [x9]
ldr x1, [x8, #176]
ldr x2, [x8, #168]
ldr x9, [x8, #96]
ldrsw x10, [sp, #352]
add x3, x9, x10, lsl #2
ldr x4, [x8, #88]
ldr x9, [x8, #80]
ldrsw x10, [sp, #344]
add x5, x9, x10, lsl #2
ldr x6, [x8, #72]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _slacpy_
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #184]
ldr x1, [x8, #176]
ldr x2, [x8, #168]
ldr x9, [x8, #144]
ldrsw x10, [sp, #360]
add x3, x9, x10, lsl #2
ldr x4, [x8, #136]
ldr x9, [x8, #128]
add x5, x9, #4
ldr x9, [x8, #80]
ldrsw x10, [sp, #344]
add x6, x9, x10, lsl #2
ldr x7, [x8, #72]
ldr x8, [sp, #376]
mov x9, sp
str x8, [x9]
bl _sgetrs_
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #184]
ldr x1, [x8, #120]
ldr x2, [x8, #176]
ldr x3, [x8, #168]
ldr x9, [x8, #160]
ldrsw x10, [sp, #368]
add x4, x9, x10, lsl #2
ldr x5, [x8, #152]
ldr x9, [x8, #144]
ldrsw x10, [sp, #360]
add x6, x9, x10, lsl #2
ldr x7, [x8, #136]
ldr x9, [x8, #128]
add x26, x9, #4
ldr x9, [x8, #112]
add x25, x9, #4
ldr x9, [x8, #104]
add x24, x9, #4
ldr x9, [x8, #96]
ldrsw x10, [sp, #352]
add x23, x9, x10, lsl #2
ldr x22, [x8, #88]
ldr x9, [x8, #80]
ldrsw x10, [sp, #344]
add x21, x9, x10, lsl #2
ldr x20, [x8, #72]
ldr x19, [x8, #64]
ldr x9, [x8, #48]
add x17, x9, #4
ldr x16, [x8, #40]
ldr x9, [x8, #32]
ldrsw x10, [sp, #336]
add x15, x9, x10, lsl #2
ldr x9, [x8, #24]
ldrsw x10, [sp, #328]
add x14, x9, x10, lsl #2
ldr x13, [x8, #16]
ldr x9, [x8, #8]
add x12, x9, #4
ldr x8, [x8]
add x11, x8, #4
ldr x8, [sp, #384]
add x10, x8, #4
ldr x8, [sp, #376]
mov x9, sp
str x9, [sp, #144] ; 8-byte Folded Spill
str x26, [x9]
str x25, [x9, #8]
str x24, [x9, #16]
str x23, [x9, #24]
str x22, [x9, #32]
str x21, [x9, #40]
str x20, [x9, #48]
str x19, [x9, #56]
str x17, [x9, #64]
str x16, [x9, #72]
str x15, [x9, #80]
str x14, [x9, #88]
str x13, [x9, #96]
str x12, [x9, #104]
str x11, [x9, #112]
str x10, [x9, #120]
str x8, [x9, #128]
bl _sgerfsx_
ldr w8, [sp, #276]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_141
b LBB0_139
LBB0_139:
ldr w8, [sp, #268]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_141
b LBB0_140
LBB0_140:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #176]
ldr x1, [x8, #168]
ldr x9, [x8, #104]
add x2, x9, #4
ldr x9, [x8, #80]
ldrsw x10, [sp, #344]
add x3, x9, x10, lsl #2
ldr x4, [x8, #72]
bl _slascl2_
b LBB0_145
LBB0_141:
ldr w8, [sp, #260]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_144
b LBB0_142
LBB0_142:
ldr w8, [sp, #268]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_144
b LBB0_143
LBB0_143:
ldr x8, [sp, #240] ; 8-byte Folded Reload
ldr x0, [x8, #176]
ldr x1, [x8, #168]
ldr x9, [x8, #112]
add x2, x9, #4
ldr x9, [x8, #80]
ldrsw x10, [sp, #344]
add x3, x9, x10, lsl #2
ldr x4, [x8, #72]
bl _slascl2_
b LBB0_144
LBB0_144:
b LBB0_145
LBB0_145:
stur wzr, [x29, #-92]
b LBB0_146
LBB0_146:
ldur w0, [x29, #-92]
add sp, sp, #608
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
ldp x22, x21, [sp, #48] ; 16-byte Folded Reload
ldp x24, x23, [sp, #32] ; 16-byte Folded Reload
ldp x26, x25, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #96 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "N"
l_.str.1: ; @.str.1
.asciz "E"
l_.str.2: ; @.str.2
.asciz "Safe minimum"
l_.str.3: ; @.str.3
.asciz "R"
l_.str.4: ; @.str.4
.asciz "B"
l_.str.5: ; @.str.5
.asciz "C"
l_.str.6: ; @.str.6
.asciz "F"
l_.str.7: ; @.str.7
.asciz "T"
l_.str.8: ; @.str.8
.asciz "SGESVXX"
l_.str.9: ; @.str.9
.asciz "Full"
.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 sgesvxx_
LCPI0_0:
.long 0x3f800000 ## float 1
.section __TEXT,__text,regular,pure_instructions
.globl _sgesvxx_
.p2align 4, 0x90
_sgesvxx_: ## @sgesvxx_
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $504, %rsp ## imm = 0x1F8
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq 176(%rbp), %rax
movq 168(%rbp), %rax
movq 160(%rbp), %rax
movq 152(%rbp), %rax
movq 144(%rbp), %rax
movq 136(%rbp), %rax
movq 128(%rbp), %rax
movq 120(%rbp), %rax
movq 112(%rbp), %rax
movq 104(%rbp), %rax
movq 96(%rbp), %rax
movq 88(%rbp), %rax
movq 80(%rbp), %rax
movq 72(%rbp), %rax
movq 64(%rbp), %rax
movq 56(%rbp), %rax
movq 48(%rbp), %rax
movq 40(%rbp), %rax
movq 32(%rbp), %rax
movq 24(%rbp), %rax
movq 16(%rbp), %rax
movq %rdi, -56(%rbp)
movq %rsi, -64(%rbp)
movq %rdx, -72(%rbp)
movq %rcx, -80(%rbp)
movq %r8, -88(%rbp)
movq %r9, -96(%rbp)
movq -80(%rbp), %rax
movl (%rax), %eax
movl %eax, -140(%rbp)
movl -140(%rbp), %eax
shll $0, %eax
addl $1, %eax
movl %eax, -144(%rbp)
movl -144(%rbp), %ecx
movq 136(%rbp), %rax
movslq %ecx, %rdx
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq %rdx, %rcx
shlq $2, %rcx
addq %rcx, %rax
movq %rax, 136(%rbp)
movq -80(%rbp), %rax
movl (%rax), %eax
movl %eax, -132(%rbp)
movl -132(%rbp), %eax
shll $0, %eax
addl $1, %eax
movl %eax, -136(%rbp)
movl -136(%rbp), %ecx
movq 128(%rbp), %rax
movslq %ecx, %rdx
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq %rdx, %rcx
shlq $2, %rcx
addq %rcx, %rax
movq %rax, 128(%rbp)
movq -96(%rbp), %rax
movl (%rax), %eax
movl %eax, -100(%rbp)
movl -100(%rbp), %eax
shll $0, %eax
addl $1, %eax
movl %eax, -104(%rbp)
movl -104(%rbp), %ecx
movq -88(%rbp), %rax
movslq %ecx, %rdx
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq %rdx, %rcx
shlq $2, %rcx
addq %rcx, %rax
movq %rax, -88(%rbp)
movq 24(%rbp), %rax
movl (%rax), %eax
movl %eax, -108(%rbp)
movl -108(%rbp), %eax
shll $0, %eax
addl $1, %eax
movl %eax, -112(%rbp)
movl -112(%rbp), %ecx
movq 16(%rbp), %rax
movslq %ecx, %rdx
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq %rdx, %rcx
shlq $2, %rcx
addq %rcx, %rax
movq %rax, 16(%rbp)
movq 32(%rbp), %rax
addq $-4, %rax
movq %rax, 32(%rbp)
movq 48(%rbp), %rax
addq $-4, %rax
movq %rax, 48(%rbp)
movq 56(%rbp), %rax
addq $-4, %rax
movq %rax, 56(%rbp)
movq 72(%rbp), %rax
movl (%rax), %eax
movl %eax, -116(%rbp)
movl -116(%rbp), %eax
shll $0, %eax
addl $1, %eax
movl %eax, -120(%rbp)
movl -120(%rbp), %ecx
movq 64(%rbp), %rax
movslq %ecx, %rdx
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq %rdx, %rcx
shlq $2, %rcx
addq %rcx, %rax
movq %rax, 64(%rbp)
movq 88(%rbp), %rax
movl (%rax), %eax
movl %eax, -124(%rbp)
movl -124(%rbp), %eax
shll $0, %eax
addl $1, %eax
movl %eax, -128(%rbp)
movl -128(%rbp), %ecx
movq 80(%rbp), %rax
movslq %ecx, %rdx
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq %rdx, %rcx
shlq $2, %rcx
addq %rcx, %rax
movq %rax, 80(%rbp)
movq 112(%rbp), %rax
addq $-4, %rax
movq %rax, 112(%rbp)
movq 152(%rbp), %rax
addq $-4, %rax
movq %rax, 152(%rbp)
movq 160(%rbp), %rax
addq $-4, %rax
movq %rax, 160(%rbp)
movq 168(%rbp), %rax
addq $-4, %rax
movq %rax, 168(%rbp)
movq 176(%rbp), %rax
movl $0, (%rax)
movq -56(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _lsame_
movl %eax, -184(%rbp)
movq -56(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _lsame_
movl %eax, -176(%rbp)
movq -64(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _lsame_
movl %eax, -204(%rbp)
leaq L_.str.2(%rip), %rdi
callq _slamch_
movss %xmm0, -208(%rbp)
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
divss -208(%rbp), %xmm0
movss %xmm0, -188(%rbp)
cmpl $0, -184(%rbp)
jne LBB0_2
## %bb.1:
cmpl $0, -176(%rbp)
je LBB0_3
LBB0_2:
movq 40(%rbp), %rax
movb $78, (%rax)
movl $0, -212(%rbp)
movl $0, -196(%rbp)
jmp LBB0_8
LBB0_3:
movq 40(%rbp), %rdi
leaq L_.str.3(%rip), %rsi
callq _lsame_
movl %eax, %ecx
movb $1, %al
cmpl $0, %ecx
movb %al, -213(%rbp) ## 1-byte Spill
jne LBB0_5
## %bb.4:
movq 40(%rbp), %rdi
leaq L_.str.4(%rip), %rsi
callq _lsame_
cmpl $0, %eax
setne %al
movb %al, -213(%rbp) ## 1-byte Spill
LBB0_5:
movb -213(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
movl %eax, -212(%rbp)
movq 40(%rbp), %rdi
leaq L_.str.5(%rip), %rsi
callq _lsame_
movl %eax, %ecx
movb $1, %al
cmpl $0, %ecx
movb %al, -214(%rbp) ## 1-byte Spill
jne LBB0_7
## %bb.6:
movq 40(%rbp), %rdi
leaq L_.str.4(%rip), %rsi
callq _lsame_
cmpl $0, %eax
setne %al
movb %al, -214(%rbp) ## 1-byte Spill
LBB0_7:
movb -214(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
movl %eax, -196(%rbp)
LBB0_8:
movq 104(%rbp), %rax
xorps %xmm0, %xmm0
movss %xmm0, (%rax)
cmpl $0, -184(%rbp)
jne LBB0_12
## %bb.9:
cmpl $0, -176(%rbp)
jne LBB0_12
## %bb.10:
movq -56(%rbp), %rdi
leaq L_.str.6(%rip), %rsi
callq _lsame_
cmpl $0, %eax
jne LBB0_12
## %bb.11:
movq 176(%rbp), %rax
movl $-1, (%rax)
jmp LBB0_104
LBB0_12:
cmpl $0, -204(%rbp)
jne LBB0_16
## %bb.13:
movq -64(%rbp), %rdi
leaq L_.str.7(%rip), %rsi
callq _lsame_
cmpl $0, %eax
jne LBB0_16
## %bb.14:
movq -64(%rbp), %rdi
leaq L_.str.5(%rip), %rsi
callq _lsame_
cmpl $0, %eax
jne LBB0_16
## %bb.15:
movq 176(%rbp), %rax
movl $-2, (%rax)
jmp LBB0_103
LBB0_16:
movq -72(%rbp), %rax
cmpl $0, (%rax)
jge LBB0_18
## %bb.17:
movq 176(%rbp), %rax
movl $-3, (%rax)
jmp LBB0_102
LBB0_18:
movq -80(%rbp), %rax
cmpl $0, (%rax)
jge LBB0_20
## %bb.19:
movq 176(%rbp), %rax
movl $-4, (%rax)
jmp LBB0_101
LBB0_20:
movq -96(%rbp), %rax
movl (%rax), %eax
movl %eax, -220(%rbp) ## 4-byte Spill
movq -72(%rbp), %rcx
movl $1, %eax
cmpl (%rcx), %eax
jl LBB0_22
## %bb.21:
movl $1, %eax
movl %eax, -224(%rbp) ## 4-byte Spill
jmp LBB0_23
LBB0_22:
movq -72(%rbp), %rax
movl (%rax), %eax
movl %eax, -224(%rbp) ## 4-byte Spill
LBB0_23:
movl -220(%rbp), %eax ## 4-byte Reload
movl -224(%rbp), %ecx ## 4-byte Reload
cmpl %ecx, %eax
jge LBB0_25
## %bb.24:
movq 176(%rbp), %rax
movl $-6, (%rax)
jmp LBB0_100
LBB0_25:
movq 24(%rbp), %rax
movl (%rax), %eax
movl %eax, -228(%rbp) ## 4-byte Spill
movq -72(%rbp), %rcx
movl $1, %eax
cmpl (%rcx), %eax
jl LBB0_27
## %bb.26:
movl $1, %eax
movl %eax, -232(%rbp) ## 4-byte Spill
jmp LBB0_28
LBB0_27:
movq -72(%rbp), %rax
movl (%rax), %eax
movl %eax, -232(%rbp) ## 4-byte Spill
LBB0_28:
movl -228(%rbp), %eax ## 4-byte Reload
movl -232(%rbp), %ecx ## 4-byte Reload
cmpl %ecx, %eax
jge LBB0_30
## %bb.29:
movq 176(%rbp), %rax
movl $-8, (%rax)
jmp LBB0_99
LBB0_30:
movq -56(%rbp), %rdi
leaq L_.str.6(%rip), %rsi
callq _lsame_
cmpl $0, %eax
je LBB0_35
## %bb.31:
cmpl $0, -212(%rbp)
jne LBB0_35
## %bb.32:
cmpl $0, -196(%rbp)
jne LBB0_35
## %bb.33:
movq 40(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _lsame_
cmpl $0, %eax
jne LBB0_35
## %bb.34:
movq 176(%rbp), %rax
movl $-10, (%rax)
jmp LBB0_98
LBB0_35:
cmpl $0, -212(%rbp)
je LBB0_59
## %bb.36:
movss -188(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -168(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -172(%rbp)
movq -72(%rbp), %rax
movl (%rax), %eax
movl %eax, -148(%rbp)
movl $1, -164(%rbp)
LBB0_37: ## =>This Inner Loop Header: Depth=1
movl -164(%rbp), %eax
cmpl -148(%rbp), %eax
jg LBB0_46
## %bb.38: ## in Loop: Header=BB0_37 Depth=1
movss -168(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -152(%rbp)
movq 48(%rbp), %rax
movslq -164(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -156(%rbp)
movss -152(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -156(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
jb LBB0_40
## %bb.39: ## in Loop: Header=BB0_37 Depth=1
movss -152(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -236(%rbp) ## 4-byte Spill
jmp LBB0_41
LBB0_40: ## in Loop: Header=BB0_37 Depth=1
movss -156(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -236(%rbp) ## 4-byte Spill
LBB0_41: ## in Loop: Header=BB0_37 Depth=1
movss -236(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -168(%rbp)
movss -172(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -152(%rbp)
movq 48(%rbp), %rax
movslq -164(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -156(%rbp)
movss -152(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -156(%rbp), %xmm0
jb LBB0_43
## %bb.42: ## in Loop: Header=BB0_37 Depth=1
movss -152(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -240(%rbp) ## 4-byte Spill
jmp LBB0_44
LBB0_43: ## in Loop: Header=BB0_37 Depth=1
movss -156(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -240(%rbp) ## 4-byte Spill
LBB0_44: ## in Loop: Header=BB0_37 Depth=1
movss -240(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -172(%rbp)
## %bb.45: ## in Loop: Header=BB0_37 Depth=1
movl -164(%rbp), %eax
addl $1, %eax
movl %eax, -164(%rbp)
jmp LBB0_37
LBB0_46:
xorps %xmm0, %xmm0
ucomiss -168(%rbp), %xmm0
jb LBB0_48
## %bb.47:
movq 176(%rbp), %rax
movl $-11, (%rax)
jmp LBB0_58
LBB0_48:
movq -72(%rbp), %rax
cmpl $0, (%rax)
jle LBB0_56
## %bb.49:
movss -168(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -208(%rbp), %xmm0
jb LBB0_51
## %bb.50:
movss -168(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -244(%rbp) ## 4-byte Spill
jmp LBB0_52
LBB0_51:
movss -208(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -244(%rbp) ## 4-byte Spill
LBB0_52:
movss -244(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -248(%rbp) ## 4-byte Spill
movss -172(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -188(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
jb LBB0_54
## %bb.53:
movss -172(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -252(%rbp) ## 4-byte Spill
jmp LBB0_55
LBB0_54:
movss -188(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -252(%rbp) ## 4-byte Spill
LBB0_55:
movss -248(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
movss -252(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
divss %xmm1, %xmm0
movss %xmm0, -200(%rbp)
jmp LBB0_57
LBB0_56:
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -200(%rbp)
LBB0_57:
jmp LBB0_58
LBB0_58:
jmp LBB0_59
LBB0_59:
cmpl $0, -196(%rbp)
je LBB0_84
## %bb.60:
movq 176(%rbp), %rax
cmpl $0, (%rax)
jne LBB0_84
## %bb.61:
movss -188(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -168(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -172(%rbp)
movq -72(%rbp), %rax
movl (%rax), %eax
movl %eax, -148(%rbp)
movl $1, -164(%rbp)
LBB0_62: ## =>This Inner Loop Header: Depth=1
movl -164(%rbp), %eax
cmpl -148(%rbp), %eax
jg LBB0_71
## %bb.63: ## in Loop: Header=BB0_62 Depth=1
movss -168(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -152(%rbp)
movq 56(%rbp), %rax
movslq -164(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -156(%rbp)
movss -152(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -156(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
jb LBB0_65
## %bb.64: ## in Loop: Header=BB0_62 Depth=1
movss -152(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -256(%rbp) ## 4-byte Spill
jmp LBB0_66
LBB0_65: ## in Loop: Header=BB0_62 Depth=1
movss -156(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -256(%rbp) ## 4-byte Spill
LBB0_66: ## in Loop: Header=BB0_62 Depth=1
movss -256(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -168(%rbp)
movss -172(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -152(%rbp)
movq 56(%rbp), %rax
movslq -164(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -156(%rbp)
movss -152(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -156(%rbp), %xmm0
jb LBB0_68
## %bb.67: ## in Loop: Header=BB0_62 Depth=1
movss -152(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -260(%rbp) ## 4-byte Spill
jmp LBB0_69
LBB0_68: ## in Loop: Header=BB0_62 Depth=1
movss -156(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -260(%rbp) ## 4-byte Spill
LBB0_69: ## in Loop: Header=BB0_62 Depth=1
movss -260(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -172(%rbp)
## %bb.70: ## in Loop: Header=BB0_62 Depth=1
movl -164(%rbp), %eax
addl $1, %eax
movl %eax, -164(%rbp)
jmp LBB0_62
LBB0_71:
xorps %xmm0, %xmm0
ucomiss -168(%rbp), %xmm0
jb LBB0_73
## %bb.72:
movq 176(%rbp), %rax
movl $-12, (%rax)
jmp LBB0_83
LBB0_73:
movq -72(%rbp), %rax
cmpl $0, (%rax)
jle LBB0_81
## %bb.74:
movss -168(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -208(%rbp), %xmm0
jb LBB0_76
## %bb.75:
movss -168(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -264(%rbp) ## 4-byte Spill
jmp LBB0_77
LBB0_76:
movss -208(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -264(%rbp) ## 4-byte Spill
LBB0_77:
movss -264(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -268(%rbp) ## 4-byte Spill
movss -172(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -188(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
jb LBB0_79
## %bb.78:
movss -172(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -272(%rbp) ## 4-byte Spill
jmp LBB0_80
LBB0_79:
movss -188(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -272(%rbp) ## 4-byte Spill
LBB0_80:
movss -268(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
movss -272(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
divss %xmm1, %xmm0
movss %xmm0, -180(%rbp)
jmp LBB0_82
LBB0_81:
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -180(%rbp)
LBB0_82:
jmp LBB0_83
LBB0_83:
jmp LBB0_84
LBB0_84:
movq 176(%rbp), %rax
cmpl $0, (%rax)
jne LBB0_97
## %bb.85:
movq 72(%rbp), %rax
movl (%rax), %eax
movl %eax, -276(%rbp) ## 4-byte Spill
movq -72(%rbp), %rcx
movl $1, %eax
cmpl (%rcx), %eax
jl LBB0_87
## %bb.86:
movl $1, %eax
movl %eax, -280(%rbp) ## 4-byte Spill
jmp LBB0_88
LBB0_87:
movq -72(%rbp), %rax
movl (%rax), %eax
movl %eax, -280(%rbp) ## 4-byte Spill
LBB0_88:
movl -276(%rbp), %eax ## 4-byte Reload
movl -280(%rbp), %ecx ## 4-byte Reload
cmpl %ecx, %eax
jge LBB0_90
## %bb.89:
movq 176(%rbp), %rax
movl $-14, (%rax)
jmp LBB0_96
LBB0_90:
movq 88(%rbp), %rax
movl (%rax), %eax
movl %eax, -284(%rbp) ## 4-byte Spill
movq -72(%rbp), %rcx
movl $1, %eax
cmpl (%rcx), %eax
jl LBB0_92
## %bb.91:
movl $1, %eax
movl %eax, -288(%rbp) ## 4-byte Spill
jmp LBB0_93
LBB0_92:
movq -72(%rbp), %rax
movl (%rax), %eax
movl %eax, -288(%rbp) ## 4-byte Spill
LBB0_93:
movl -284(%rbp), %eax ## 4-byte Reload
movl -288(%rbp), %ecx ## 4-byte Reload
cmpl %ecx, %eax
jge LBB0_95
## %bb.94:
movq 176(%rbp), %rax
movl $-16, (%rax)
LBB0_95:
jmp LBB0_96
LBB0_96:
jmp LBB0_97
LBB0_97:
jmp LBB0_98
LBB0_98:
jmp LBB0_99
LBB0_99:
jmp LBB0_100
LBB0_100:
jmp LBB0_101
LBB0_101:
jmp LBB0_102
LBB0_102:
jmp LBB0_103
LBB0_103:
jmp LBB0_104
LBB0_104:
movq 176(%rbp), %rax
cmpl $0, (%rax)
je LBB0_106
## %bb.105:
movq 176(%rbp), %rcx
xorl %eax, %eax
subl (%rcx), %eax
movl %eax, -148(%rbp)
leaq L_.str.8(%rip), %rdi
leaq -148(%rbp), %rsi
movl $7, %edx
callq _xerbla_
movl $0, -44(%rbp)
jmp LBB0_146
LBB0_106:
cmpl $0, -176(%rbp)
je LBB0_126
## %bb.107:
movq -72(%rbp), %rdi
movq -72(%rbp), %rsi
movq -88(%rbp), %rdx
movslq -104(%rbp), %rax
shlq $2, %rax
addq %rax, %rdx
movq -96(%rbp), %rcx
movq 48(%rbp), %r8
addq $4, %r8
movq 56(%rbp), %r9
addq $4, %r9
leaq -200(%rbp), %rbx
leaq -180(%rbp), %r11
leaq -160(%rbp), %r10
leaq -192(%rbp), %rax
movq %rbx, (%rsp)
movq %r11, 8(%rsp)
movq %r10, 16(%rsp)
movq %rax, 24(%rsp)
callq _sgeequb_
cmpl $0, -192(%rbp)
jne LBB0_113
## %bb.108:
movq -72(%rbp), %rdi
movq -72(%rbp), %rsi
movq -88(%rbp), %rdx
movslq -104(%rbp), %rax
shlq $2, %rax
addq %rax, %rdx
movq -96(%rbp), %rcx
movq 48(%rbp), %r8
addq $4, %r8
movq 56(%rbp), %r9
addq $4, %r9
movq 40(%rbp), %rax
leaq -200(%rbp), %rbx
leaq -180(%rbp), %r11
leaq -160(%rbp), %r10
movq %rbx, (%rsp)
movq %r11, 8(%rsp)
movq %r10, 16(%rsp)
movq %rax, 24(%rsp)
callq _slaqge_
movq 40(%rbp), %rdi
leaq L_.str.3(%rip), %rsi
callq _lsame_
movl %eax, %ecx
movb $1, %al
cmpl $0, %ecx
movb %al, -289(%rbp) ## 1-byte Spill
jne LBB0_110
## %bb.109:
movq 40(%rbp), %rdi
leaq L_.str.4(%rip), %rsi
callq _lsame_
cmpl $0, %eax
setne %al
movb %al, -289(%rbp) ## 1-byte Spill
LBB0_110:
movb -289(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
movl %eax, -212(%rbp)
movq 40(%rbp), %rdi
leaq L_.str.5(%rip), %rsi
callq _lsame_
movl %eax, %ecx
movb $1, %al
cmpl $0, %ecx
movb %al, -290(%rbp) ## 1-byte Spill
jne LBB0_112
## %bb.111:
movq 40(%rbp), %rdi
leaq L_.str.4(%rip), %rsi
callq _lsame_
cmpl $0, %eax
setne %al
movb %al, -290(%rbp) ## 1-byte Spill
LBB0_112:
movb -290(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
movl %eax, -196(%rbp)
LBB0_113:
cmpl $0, -212(%rbp)
jne LBB0_119
## %bb.114:
movq -72(%rbp), %rax
movl (%rax), %eax
movl %eax, -148(%rbp)
movl $1, -164(%rbp)
LBB0_115: ## =>This Inner Loop Header: Depth=1
movl -164(%rbp), %eax
cmpl -148(%rbp), %eax
jg LBB0_118
## %bb.116: ## in Loop: Header=BB0_115 Depth=1
movq 48(%rbp), %rax
movslq -164(%rbp), %rcx
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, (%rax,%rcx,4)
## %bb.117: ## in Loop: Header=BB0_115 Depth=1
movl -164(%rbp), %eax
addl $1, %eax
movl %eax, -164(%rbp)
jmp LBB0_115
LBB0_118:
jmp LBB0_119
LBB0_119:
cmpl $0, -196(%rbp)
jne LBB0_125
## %bb.120:
movq -72(%rbp), %rax
movl (%rax), %eax
movl %eax, -148(%rbp)
movl $1, -164(%rbp)
LBB0_121: ## =>This Inner Loop Header: Depth=1
movl -164(%rbp), %eax
cmpl -148(%rbp), %eax
jg LBB0_124
## %bb.122: ## in Loop: Header=BB0_121 Depth=1
movq 56(%rbp), %rax
movslq -164(%rbp), %rcx
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, (%rax,%rcx,4)
## %bb.123: ## in Loop: Header=BB0_121 Depth=1
movl -164(%rbp), %eax
addl $1, %eax
movl %eax, -164(%rbp)
jmp LBB0_121
LBB0_124:
jmp LBB0_125
LBB0_125:
jmp LBB0_126
LBB0_126:
cmpl $0, -204(%rbp)
je LBB0_130
## %bb.127:
cmpl $0, -212(%rbp)
je LBB0_129
## %bb.128:
movq -72(%rbp), %rdi
movq -80(%rbp), %rsi
movq 48(%rbp), %rdx
addq $4, %rdx
movq 64(%rbp), %rcx
movslq -120(%rbp), %rax
shlq $2, %rax
addq %rax, %rcx
movq 72(%rbp), %r8
callq _slascl2_
LBB0_129:
jmp LBB0_133
LBB0_130:
cmpl $0, -196(%rbp)
je LBB0_132
## %bb.131:
movq -72(%rbp), %rdi
movq -80(%rbp), %rsi
movq 56(%rbp), %rdx
addq $4, %rdx
movq 64(%rbp), %rcx
movslq -120(%rbp), %rax
shlq $2, %rax
addq %rax, %rcx
movq 72(%rbp), %r8
callq _slascl2_
LBB0_132:
jmp LBB0_133
LBB0_133:
cmpl $0, -184(%rbp)
jne LBB0_135
## %bb.134:
cmpl $0, -176(%rbp)
je LBB0_138
LBB0_135:
movq -72(%rbp), %rsi
movq -72(%rbp), %rdx
movq -88(%rbp), %rcx
movslq -104(%rbp), %rax
shlq $2, %rax
addq %rax, %rcx
movq -96(%rbp), %r8
movq 16(%rbp), %r9
movslq -112(%rbp), %rax
shlq $2, %rax
addq %rax, %r9
movq 24(%rbp), %rax
leaq L_.str.9(%rip), %rdi
movq %rax, (%rsp)
callq _slacpy_
movq -72(%rbp), %rdi
movq -72(%rbp), %rsi
movq 16(%rbp), %rdx
movslq -112(%rbp), %rax
shlq $2, %rax
addq %rax, %rdx
movq 24(%rbp), %rcx
movq 32(%rbp), %r8
addq $4, %r8
movq 176(%rbp), %r9
callq _sgetrf_
movq 176(%rbp), %rax
cmpl $0, (%rax)
jle LBB0_137
## %bb.136:
movq -72(%rbp), %rdi
movq 176(%rbp), %rsi
movq -88(%rbp), %rdx
movslq -104(%rbp), %rax
shlq $2, %rax
addq %rax, %rdx
movq -96(%rbp), %rcx
movq 16(%rbp), %r8
movslq -112(%rbp), %rax
shlq $2, %rax
addq %rax, %r8
movq 24(%rbp), %r9
callq _sla_gerpvgrw_
movq 104(%rbp), %rax
movss %xmm0, (%rax)
movl $0, -44(%rbp)
jmp LBB0_146
LBB0_137:
jmp LBB0_138
LBB0_138:
movq -72(%rbp), %rdi
movq -72(%rbp), %rsi
movq -88(%rbp), %rdx
movslq -104(%rbp), %rax
shlq $2, %rax
addq %rax, %rdx
movq -96(%rbp), %rcx
movq 16(%rbp), %r8
movslq -112(%rbp), %rax
shlq $2, %rax
addq %rax, %r8
movq 24(%rbp), %r9
callq _sla_gerpvgrw_
movq 104(%rbp), %rax
movss %xmm0, (%rax)
movq -72(%rbp), %rsi
movq -80(%rbp), %rdx
movq 64(%rbp), %rcx
movslq -120(%rbp), %rax
shlq $2, %rax
addq %rax, %rcx
movq 72(%rbp), %r8
movq 80(%rbp), %r9
movslq -128(%rbp), %rax
shlq $2, %rax
addq %rax, %r9
movq 88(%rbp), %rax
leaq L_.str.9(%rip), %rdi
movq %rax, (%rsp)
callq _slacpy_
movq -64(%rbp), %rdi
movq -72(%rbp), %rsi
movq -80(%rbp), %rdx
movq 16(%rbp), %rcx
movslq -112(%rbp), %rax
shlq $2, %rax
addq %rax, %rcx
movq 24(%rbp), %r8
movq 32(%rbp), %r9
addq $4, %r9
movq 80(%rbp), %r11
movslq -128(%rbp), %rax
shlq $2, %rax
addq %rax, %r11
movq 88(%rbp), %r10
movq 176(%rbp), %rax
movq %r11, (%rsp)
movq %r10, 8(%rsp)
movq %rax, 16(%rsp)
callq _sgetrs_
movq -64(%rbp), %rdi
movq 40(%rbp), %rsi
movq -72(%rbp), %rdx
movq -80(%rbp), %rcx
movq -88(%rbp), %r8
movslq -104(%rbp), %rax
shlq $2, %rax
addq %rax, %r8
movq -96(%rbp), %r9
movq 16(%rbp), %rax
movslq -112(%rbp), %r10
shlq $2, %r10
addq %r10, %rax
movq %rax, -392(%rbp) ## 8-byte Spill
movq 24(%rbp), %rax
movq %rax, -384(%rbp) ## 8-byte Spill
movq 32(%rbp), %rax
addq $4, %rax
movq %rax, -376(%rbp) ## 8-byte Spill
movq 48(%rbp), %rax
addq $4, %rax
movq %rax, -368(%rbp) ## 8-byte Spill
movq 56(%rbp), %rax
addq $4, %rax
movq %rax, -360(%rbp) ## 8-byte Spill
movq 64(%rbp), %rax
movslq -120(%rbp), %r10
shlq $2, %r10
addq %r10, %rax
movq %rax, -352(%rbp) ## 8-byte Spill
movq 72(%rbp), %rax
movq %rax, -344(%rbp) ## 8-byte Spill
movq 80(%rbp), %rax
movslq -128(%rbp), %r10
shlq $2, %r10
addq %r10, %rax
movq %rax, -336(%rbp) ## 8-byte Spill
movq 88(%rbp), %rax
movq %rax, -328(%rbp) ## 8-byte Spill
movq 96(%rbp), %rax
movq %rax, -320(%rbp) ## 8-byte Spill
movq 112(%rbp), %rax
addq $4, %rax
movq %rax, -312(%rbp) ## 8-byte Spill
movq 120(%rbp), %r13
movq 128(%rbp), %r12
movslq -136(%rbp), %rax
shlq $2, %rax
addq %rax, %r12
movq 136(%rbp), %r15
movslq -144(%rbp), %rax
shlq $2, %rax
addq %rax, %r15
movq 144(%rbp), %r14
movq 152(%rbp), %rbx
addq $4, %rbx
movq 160(%rbp), %r11
addq $4, %r11
movq 168(%rbp), %r10
addq $4, %r10
movq 176(%rbp), %rax
movq %rax, -304(%rbp) ## 8-byte Spill
movq -392(%rbp), %rax ## 8-byte Reload
movq %rax, (%rsp)
movq -384(%rbp), %rax ## 8-byte Reload
movq %rax, 8(%rsp)
movq -376(%rbp), %rax ## 8-byte Reload
movq %rax, 16(%rsp)
movq -368(%rbp), %rax ## 8-byte Reload
movq %rax, 24(%rsp)
movq -360(%rbp), %rax ## 8-byte Reload
movq %rax, 32(%rsp)
movq -352(%rbp), %rax ## 8-byte Reload
movq %rax, 40(%rsp)
movq -344(%rbp), %rax ## 8-byte Reload
movq %rax, 48(%rsp)
movq -336(%rbp), %rax ## 8-byte Reload
movq %rax, 56(%rsp)
movq -328(%rbp), %rax ## 8-byte Reload
movq %rax, 64(%rsp)
movq -320(%rbp), %rax ## 8-byte Reload
movq %rax, 72(%rsp)
movq -312(%rbp), %rax ## 8-byte Reload
movq %rax, 80(%rsp)
movq -304(%rbp), %rax ## 8-byte Reload
movq %r13, 88(%rsp)
movq %r12, 96(%rsp)
movq %r15, 104(%rsp)
movq %r14, 112(%rsp)
movq %rbx, 120(%rsp)
movq %r11, 128(%rsp)
movq %r10, 136(%rsp)
movq %rax, 144(%rsp)
callq _sgerfsx_
cmpl $0, -196(%rbp)
je LBB0_141
## %bb.139:
cmpl $0, -204(%rbp)
je LBB0_141
## %bb.140:
movq -72(%rbp), %rdi
movq -80(%rbp), %rsi
movq 56(%rbp), %rdx
addq $4, %rdx
movq 80(%rbp), %rcx
movslq -128(%rbp), %rax
shlq $2, %rax
addq %rax, %rcx
movq 88(%rbp), %r8
callq _slascl2_
jmp LBB0_145
LBB0_141:
cmpl $0, -212(%rbp)
je LBB0_144
## %bb.142:
cmpl $0, -204(%rbp)
jne LBB0_144
## %bb.143:
movq -72(%rbp), %rdi
movq -80(%rbp), %rsi
movq 48(%rbp), %rdx
addq $4, %rdx
movq 80(%rbp), %rcx
movslq -128(%rbp), %rax
shlq $2, %rax
addq %rax, %rcx
movq 88(%rbp), %r8
callq _slascl2_
LBB0_144:
jmp LBB0_145
LBB0_145:
movl $0, -44(%rbp)
LBB0_146:
movl -44(%rbp), %eax
addq $504, %rsp ## imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "N"
L_.str.1: ## @.str.1
.asciz "E"
L_.str.2: ## @.str.2
.asciz "Safe minimum"
L_.str.3: ## @.str.3
.asciz "R"
L_.str.4: ## @.str.4
.asciz "B"
L_.str.5: ## @.str.5
.asciz "C"
L_.str.6: ## @.str.6
.asciz "F"
L_.str.7: ## @.str.7
.asciz "T"
L_.str.8: ## @.str.8
.asciz "SGESVXX"
L_.str.9: ## @.str.9
.asciz "Full"
.subsections_via_symbols
| the_stack_data/1138018.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/7951582.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]
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
ldur s0, [x29, #-8]
fmov s1, #30.00000000
fcmp s0, s1
cset w8, hi
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur s1, [x29, #-8]
mov w8, #1112014848
fmov s0, w8
fmul s0, s0, s1
stur s0, [x29, #-12]
b LBB0_3
LBB0_2:
ldur s1, [x29, #-8]
ldur s2, [x29, #-8]
fmov s0, #30.00000000
fsub s2, s2, s0
mov w8, #1109393408
fmov s3, w8
fmul s2, s2, s3
fmadd s0, s0, s1, s2
stur s0, [x29, #-12]
b LBB0_3
LBB0_3:
ldur s0, [x29, #-12]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@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 " Enter the distance the van has travelled :"
l_.str.1: ; @.str.1
.asciz " %f"
l_.str.2: ; @.str.2
.asciz " The amount to be paid : %.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 0x41f00000 ## float 30
LCPI0_1:
.long 0x42200000 ## float 40
LCPI0_2:
.long 0x42480000 ## float 50
.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
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -8(%rbp), %xmm0
jb LBB0_2
## %bb.1:
movss LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
mulss -8(%rbp), %xmm0
movss %xmm0, -12(%rbp)
jmp LBB0_3
LBB0_2:
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss LCPI0_0(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero
subss %xmm2, %xmm1
movss LCPI0_1(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero
mulss %xmm2, %xmm1
movss LCPI0_0(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -12(%rbp)
LBB0_3:
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.2(%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 distance the van has travelled :"
L_.str.1: ## @.str.1
.asciz " %f"
L_.str.2: ## @.str.2
.asciz " The amount to be paid : %.2f "
.subsections_via_symbols
| the_stack_data/165769229.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
.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
.subsections_via_symbols
| the_stack_data/2899.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _moved_function ; -- Begin function moved_function
.p2align 2
_moved_function: ; @moved_function
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _moved_function ## -- Begin function moved_function
.p2align 4, 0x90
_moved_function: ## @moved_function
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/231394203.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]
movi d0, #0000000000000000
str s0, [sp, #20]
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
ldur s0, [x29, #-8]
fmov s1, #30.00000000
fcmp s0, s1
cset w8, pl
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur s0, [x29, #-8]
mov w8, #1112014848
fmov s1, w8
fmul s0, s0, s1
stur s0, [x29, #-16]
ldur s0, [x29, #-16]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_3
LBB0_2:
ldur s0, [x29, #-8]
fmov s1, #30.00000000
fsub s0, s0, s1
stur s0, [x29, #-12]
ldur s0, [x29, #-12]
mov w8, #1109393408
fmov s1, w8
fmul s0, s0, s1
stur s0, [x29, #-20]
mov w8, #32768
movk w8, #17595, lsl #16
fmov s0, w8
str s0, [sp, #24]
ldur s0, [x29, #-20]
ldr s1, [sp, #24]
fadd s0, s0, s1
str s0, [sp, #20]
ldr s0, [sp, #20]
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_3
LBB0_3:
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 "Enter the travel distance :"
l_.str.1: ; @.str.1
.asciz "%f"
l_.str.2: ; @.str.2
.asciz "total amount is %.2f "
l_.str.3: ; @.str.3
.asciz "Total amount 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 0x41f00000 ## float 30
LCPI0_1:
.long 0x44bb8000 ## float 1500
LCPI0_2:
.long 0x42200000 ## float 40
LCPI0_3:
.long 0x42480000 ## float 50
.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)
xorps %xmm0, %xmm0
movss %xmm0, -28(%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
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -8(%rbp), %xmm0
jbe LBB0_2
## %bb.1:
movss LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
mulss -8(%rbp), %xmm0
movss %xmm0, -16(%rbp)
movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
jmp LBB0_3
LBB0_2:
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
subss %xmm1, %xmm0
movss %xmm0, -12(%rbp)
movss LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
mulss -12(%rbp), %xmm0
movss %xmm0, -20(%rbp)
movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -24(%rbp)
movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addss -24(%rbp), %xmm0
movss %xmm0, -28(%rbp)
movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.3(%rip), %rdi
movb $1, %al
callq _printf
LBB0_3:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter the travel distance :"
L_.str.1: ## @.str.1
.asciz "%f"
L_.str.2: ## @.str.2
.asciz "total amount is %.2f "
L_.str.3: ## @.str.3
.asciz "Total amount is %.2f"
.subsections_via_symbols
| the_stack_data/495477.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\b\b\b\b\bFishC\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
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\b\b\b\b\bFishC\n"
.subsections_via_symbols
| the_stack_data/104733.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, #-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, #-32]
stur wzr, [x29, #-36]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-36]
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, #-56] ; 8-byte Folded Reload
ldursw x9, [x29, #-36]
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, #-36]
add w8, w8, #1
stur w8, [x29, #-36]
b LBB0_1
LBB0_4:
stur wzr, [x29, #-40]
stur wzr, [x29, #-44]
b LBB0_5
LBB0_5: ; =>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_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldursw x9, [x29, #-44]
ldr w9, [x8, x9, lsl #2]
ldur w8, [x29, #-40]
add w8, w8, w9
stur w8, [x29, #-40]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-44]
add w8, w8, #1
stur w8, [x29, #-44]
b LBB0_5
LBB0_8:
ldur w9, [x29, #-40]
; implicit-def: $x8
mov x8, x9
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
add sp, sp, #16
stur wzr, [x29, #-12]
ldur x8, [x29, #-24]
mov sp, x8
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, LBB0_10
b LBB0_9
LBB0_9:
bl ___stack_chk_fail
LBB0_10:
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
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 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, -64(%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 -64(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -56(%rbp) ## 8-byte Spill
movq %rax, -32(%rbp)
movl $0, -36(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -36(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rsi ## 8-byte Reload
movslq -36(%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 -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB0_1
LBB0_4:
movl $0, -40(%rbp)
movl $0, -44(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -56(%rbp), %rax ## 8-byte Reload
movslq -44(%rbp), %rcx
movl (%rax,%rcx,4), %eax
addl -40(%rbp), %eax
movl %eax, -40(%rbp)
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_5
LBB0_8:
movl -40(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -12(%rbp)
movq -24(%rbp), %rax
movq %rax, %rsp
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 LBB0_10
## %bb.9:
movl -68(%rbp), %eax ## 4-byte Reload
movq %rbp, %rsp
popq %rbp
retq
LBB0_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
.subsections_via_symbols
| the_stack_data/32950978.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]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _getchar
sturb w0, [x29, #-5]
mov w8, #-1
subs w8, w8, w0, sxtb
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldursb w0, [x29, #-5]
bl _putchar
b LBB0_1
LBB0_3:
mov w0, #0
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)
LBB0_1: ## =>This Inner Loop Header: Depth=1
callq _getchar
## kill: def $al killed $al killed $eax
movb %al, -5(%rbp)
movsbl %al, %eax
cmpl $-1, %eax
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movsbl -5(%rbp), %edi
callq _putchar
jmp LBB0_1
LBB0_3:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/755249.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _randomize ; -- Begin function randomize
.p2align 2
_randomize: ; @randomize
.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]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-4]
subs w8, w8, #9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
bl _rand
mov w9, #10
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
ldursw x10, [x29, #-4]
adrp x9, _x@GOTPAGE
ldr x9, [x9, _x@GOTPAGEOFF]
str w8, [x9, x10, lsl #2]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-4]
b LBB0_1
LBB0_4:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _correct ; -- Begin function correct
.p2align 2
_correct: ; @correct
.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, _x@GOTPAGE
ldr x8, [x8, _x@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
add x0, sp, #48
mov w1, #0
mov x2, #40
bl _memset
str wzr, [sp, #40]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #40]
subs w8, w8, #9
cset w8, ge
tbnz w8, #0, LBB1_6
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldrsw x9, [sp, #40]
ldrsw x9, [x8, x9, lsl #2]
add x8, sp, #48
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
str wzr, [sp, #44]
b LBB1_9
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldrsw x9, [sp, #40]
ldrsw x10, [x8, x9, lsl #2]
add x9, sp, #48
mov w8, #1
str w8, [x9, x10, lsl #2]
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #40]
add w8, w8, #1
str w8, [sp, #40]
b LBB1_1
LBB1_6:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w9, [x8]
mov w10, #10
mul w9, w9, w10
ldr w11, [x8, #4]
add w9, w9, w11
str w9, [sp, #36]
ldr w9, [x8, #8]
mul w9, w9, w10
ldr w11, [x8, #12]
add w9, w9, w11
str w9, [sp, #32]
ldr w9, [x8, #16]
mul w9, w9, w10
ldr w11, [x8, #20]
add w9, w9, w11
str w9, [sp, #28]
ldr w9, [x8, #24]
mul w9, w9, w10
ldr w10, [x8, #28]
add w9, w9, w10
str w9, [sp, #24]
ldr w8, [x8, #32]
mov w9, #111
mul w8, w8, w9
str w8, [sp, #20]
ldr w8, [sp, #36]
ldr w9, [sp, #32]
subs w8, w8, w9
ldr w9, [sp, #28]
subs w8, w8, w9
cset w8, ne
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_8
b LBB1_7
LBB1_7:
ldr w8, [sp, #28]
ldr w9, [sp, #24]
add w8, w8, w9
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, eq
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB1_8
LBB1_8:
ldr w8, [sp, #4] ; 4-byte Folded Reload
and w8, w8, #0x1
str w8, [sp, #44]
b LBB1_9
LBB1_9:
ldr w8, [sp, #44]
str w8, [sp] ; 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_11
b LBB1_10
LBB1_10:
bl ___stack_chk_fail
LBB1_11:
ldr w0, [sp] ; 4-byte Folded Reload
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.globl _init ; -- Begin function init
.p2align 2
_init: ; @init
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, #0
bl _time
; kill: def $w0 killed $w0 killed $x0
bl _srand
bl _randomize
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, #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
adrp x8, _x@GOTPAGE
ldr x8, [x8, _x@GOTPAGEOFF]
stur x8, [x29, #-16] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
stur wzr, [x29, #-8]
bl _init
mov w8, #1
stur w8, [x29, #-8]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
bl _correct
subs w8, w0, #0
cset w8, ne
mov w9, #0
stur w9, [x29, #-20] ; 4-byte Folded Spill
tbnz w8, #0, LBB3_3
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, gt
stur w8, [x29, #-20] ; 4-byte Folded Spill
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldur w8, [x29, #-20] ; 4-byte Folded Reload
tbz w8, #0, LBB3_6
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_1 Depth=1
bl _randomize
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_1 Depth=1
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB3_1
LBB3_6:
bl _correct
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB3_8
b LBB3_7
LBB3_7:
ldur w8, [x29, #-8]
; implicit-def: $x10
mov x10, x8
ldur w8, [x29, #-8]
subs w8, w8, #1
cset w8, eq
and w11, w8, #0x1
adrp x9, l_.str.2@PAGE
add x9, x9, l_.str.2@PAGEOFF
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
ands w11, w11, #0x1
csel x8, x8, x9, ne
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldr w9, [x8]
; implicit-def: $x17
mov x17, x9
ldr w9, [x8, #4]
; implicit-def: $x16
mov x16, x9
ldr w9, [x8, #8]
; implicit-def: $x15
mov x15, x9
ldr w9, [x8, #12]
; implicit-def: $x14
mov x14, x9
ldr w9, [x8, #16]
; implicit-def: $x13
mov x13, x9
ldr w9, [x8, #20]
; implicit-def: $x12
mov x12, x9
ldr w9, [x8, #24]
; implicit-def: $x11
mov x11, x9
ldr w9, [x8, #28]
; implicit-def: $x10
mov x10, x9
ldr w9, [x8, #32]
; implicit-def: $x8
mov x8, x9
mov x9, sp
stur x9, [x29, #-32] ; 8-byte Folded Spill
str x17, [x9]
str x16, [x9, #8]
str x15, [x9, #16]
str x14, [x9, #24]
str x13, [x9, #32]
str x12, [x9, #40]
str x11, [x9, #48]
str x10, [x9, #56]
str x8, [x9, #64]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB3_9
LBB3_8:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _puts
b LBB3_9
LBB3_9:
mov w0, #0
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.comm _x,36,2 ; @x
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Answer found at #%d trial%s.\n"
l_.str.1: ; @.str.1
.space 1
l_.str.2: ; @.str.2
.asciz "s"
l_.str.3: ; @.str.3
.asciz "%1$d%2$d - %3$d%4$d = %5$d%6$d, %5$d%6$d + %7$d%8$d = %9$d%9$d%9$d\n"
l_.str.4: ; @.str.4
.asciz "I'm too stupid."
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _randomize ## -- Begin function randomize
.p2align 4, 0x90
_randomize: ## @randomize
.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)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $9, -4(%rbp)
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
callq _rand
movl $10, %ecx
cltd
idivl %ecx
movslq -4(%rbp), %rcx
movq _x@GOTPCREL(%rip), %rax
movl %edx, (%rax,%rcx,4)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB0_1
LBB0_4:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _correct ## -- Begin function correct
.p2align 4, 0x90
_correct: ## @correct
.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
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq -48(%rbp), %rdi
xorl %esi, %esi
movl $40, %edx
callq _memset
movl $0, -56(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $9, -56(%rbp)
jge LBB1_6
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movslq -56(%rbp), %rcx
movq _x@GOTPCREL(%rip), %rax
movslq (%rax,%rcx,4), %rax
cmpl $0, -48(%rbp,%rax,4)
je LBB1_4
## %bb.3:
movl $0, -52(%rbp)
jmp LBB1_9
LBB1_4: ## in Loop: Header=BB1_1 Depth=1
movslq -56(%rbp), %rcx
movq _x@GOTPCREL(%rip), %rax
movslq (%rax,%rcx,4), %rax
movl $1, -48(%rbp,%rax,4)
## %bb.5: ## in Loop: Header=BB1_1 Depth=1
movl -56(%rbp), %eax
addl $1, %eax
movl %eax, -56(%rbp)
jmp LBB1_1
LBB1_6:
movq _x@GOTPCREL(%rip), %rax
imull $10, (%rax), %eax
movq _x@GOTPCREL(%rip), %rcx
addl 4(%rcx), %eax
movl %eax, -60(%rbp)
movq _x@GOTPCREL(%rip), %rax
imull $10, 8(%rax), %eax
movq _x@GOTPCREL(%rip), %rcx
addl 12(%rcx), %eax
movl %eax, -64(%rbp)
movq _x@GOTPCREL(%rip), %rax
imull $10, 16(%rax), %eax
movq _x@GOTPCREL(%rip), %rcx
addl 20(%rcx), %eax
movl %eax, -68(%rbp)
movq _x@GOTPCREL(%rip), %rax
imull $10, 24(%rax), %eax
movq _x@GOTPCREL(%rip), %rcx
addl 28(%rcx), %eax
movl %eax, -72(%rbp)
movq _x@GOTPCREL(%rip), %rax
imull $111, 32(%rax), %eax
movl %eax, -76(%rbp)
movl -60(%rbp), %ecx
subl -64(%rbp), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl -68(%rbp), %ecx
movb %al, -77(%rbp) ## 1-byte Spill
jne LBB1_8
## %bb.7:
movl -68(%rbp), %eax
addl -72(%rbp), %eax
cmpl -76(%rbp), %eax
sete %al
movb %al, -77(%rbp) ## 1-byte Spill
LBB1_8:
movb -77(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
movl %eax, -52(%rbp)
LBB1_9:
movl -52(%rbp), %eax
movl %eax, -84(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_11
## %bb.10:
movl -84(%rbp), %eax ## 4-byte Reload
addq $96, %rsp
popq %rbp
retq
LBB1_11:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _init ## -- Begin function init
.p2align 4, 0x90
_init: ## @init
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %eax, %eax
movl %eax, %edi
callq _time
movl %eax, %edi
callq _srand
callq _randomize
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
subq $56, %rsp
.cfi_offset %rbx, -24
movl $0, -12(%rbp)
movl $0, -16(%rbp)
callq _init
movl $1, -16(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
callq _correct
movl %eax, %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, %ecx
movb %al, -17(%rbp) ## 1-byte Spill
jne LBB3_3
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
cmpl $0, -16(%rbp)
setg %al
movb %al, -17(%rbp) ## 1-byte Spill
LBB3_3: ## in Loop: Header=BB3_1 Depth=1
movb -17(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB3_4
jmp LBB3_6
LBB3_4: ## in Loop: Header=BB3_1 Depth=1
callq _randomize
## %bb.5: ## in Loop: Header=BB3_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB3_1
LBB3_6:
callq _correct
cmpl $0, %eax
je LBB3_8
## %bb.7:
movl -16(%rbp), %esi
movl -16(%rbp), %ecx
leaq L_.str.2(%rip), %rdx
leaq L_.str.1(%rip), %rax
cmpl $1, %ecx
cmoveq %rax, %rdx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq _x@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq _x@GOTPCREL(%rip), %rax
movl 4(%rax), %edx
movq _x@GOTPCREL(%rip), %rax
movl 8(%rax), %ecx
movq _x@GOTPCREL(%rip), %rax
movl 12(%rax), %r8d
movq _x@GOTPCREL(%rip), %rax
movl 16(%rax), %r9d
movq _x@GOTPCREL(%rip), %rax
movl 20(%rax), %ebx
movq _x@GOTPCREL(%rip), %rax
movl 24(%rax), %r11d
movq _x@GOTPCREL(%rip), %rax
movl 28(%rax), %r10d
movq _x@GOTPCREL(%rip), %rax
movl 32(%rax), %eax
leaq L_.str.3(%rip), %rdi
movl %ebx, (%rsp)
movl %r11d, 8(%rsp)
movl %r10d, 16(%rsp)
movl %eax, 24(%rsp)
movb $0, %al
callq _printf
jmp LBB3_9
LBB3_8:
leaq L_.str.4(%rip), %rdi
callq _puts
LBB3_9:
xorl %eax, %eax
addq $56, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _x,36,4 ## @x
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Answer found at #%d trial%s.\n"
L_.str.1: ## @.str.1
.space 1
L_.str.2: ## @.str.2
.asciz "s"
L_.str.3: ## @.str.3
.asciz "%1$d%2$d - %3$d%4$d = %5$d%6$d, %5$d%6$d + %7$d%8$d = %9$d%9$d%9$d\n"
L_.str.4: ## @.str.4
.asciz "I'm too stupid."
.subsections_via_symbols
| the_stack_data/75137081.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, #1072
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #36]
str w0, [sp, #32]
str x1, [sp, #24]
b LBB0_1
LBB0_1:
ldr w0, [sp, #32]
ldr x1, [sp, #24]
adrp x2, l_.str@PAGE
add x2, x2, l_.str@PAGEOFF
bl _getopt
str w0, [sp, #20]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_2
LBB0_2:
ldr w8, [sp, #20]
str w8, [sp, #16] ; 4-byte Folded Spill
subs w8, w8, #104
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr w8, [sp, #16] ; 4-byte Folded Reload
subs w8, w8, #118
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_6
LBB0_4:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
str wzr, [sp, #36]
b LBB0_10
LBB0_5:
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
str wzr, [sp, #36]
b LBB0_10
LBB0_6:
str wzr, [sp, #36]
b LBB0_10
LBB0_7:
add x0, sp, #40
mov x1, #1024
bl _getcwd
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
add x0, sp, #40
bl _puts
b LBB0_10
LBB0_9:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov w8, #1
str w8, [sp, #36]
b LBB0_10
LBB0_10:
ldr w8, [sp, #36]
str w8, [sp, #12] ; 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_12
b LBB0_11
LBB0_11:
bl ___stack_chk_fail
LBB0_12:
ldr w0, [sp, #12] ; 4-byte Folded Reload
add sp, sp, #1072
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 "hv"
l_.str.1: ; @.str.1
.asciz "pwd: Prints out working directory\n"
l_.str.2: ; @.str.2
.asciz "pwd command, part of snekutils\n"
l_.str.3: ; @.str.3
.asciz "version 1.0\n"
l_.str.4: ; @.str.4
.asciz "pwd: error"
.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 $1072, %rsp ## imm = 0x430
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -1044(%rbp)
movl %edi, -1048(%rbp)
movq %rsi, -1056(%rbp)
## %bb.1:
movl -1048(%rbp), %edi
movq -1056(%rbp), %rsi
leaq L_.str(%rip), %rdx
callq _getopt
movl %eax, -1060(%rbp)
cmpl $-1, %eax
je LBB0_6
## %bb.2:
movl -1060(%rbp), %eax
movl %eax, -1064(%rbp) ## 4-byte Spill
subl $104, %eax
je LBB0_3
jmp LBB0_12
LBB0_12:
movl -1064(%rbp), %eax ## 4-byte Reload
subl $118, %eax
je LBB0_4
jmp LBB0_5
LBB0_3:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -1044(%rbp)
jmp LBB0_9
LBB0_4:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -1044(%rbp)
jmp LBB0_9
LBB0_5:
movl $0, -1044(%rbp)
jmp LBB0_9
LBB0_6:
leaq -1040(%rbp), %rdi
movl $1024, %esi ## imm = 0x400
callq _getcwd
cmpq $0, %rax
je LBB0_8
## %bb.7:
leaq -1040(%rbp), %rdi
callq _puts
jmp LBB0_9
LBB0_8:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -1044(%rbp)
LBB0_9:
movl -1044(%rbp), %eax
movl %eax, -1068(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_11
## %bb.10:
movl -1068(%rbp), %eax ## 4-byte Reload
addq $1072, %rsp ## imm = 0x430
popq %rbp
retq
LBB0_11:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "hv"
L_.str.1: ## @.str.1
.asciz "pwd: Prints out working directory\n"
L_.str.2: ## @.str.2
.asciz "pwd command, part of snekutils\n"
L_.str.3: ## @.str.3
.asciz "version 1.0\n"
L_.str.4: ## @.str.4
.asciz "pwd: error"
.subsections_via_symbols
| the_stack_data/99783.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]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #6
cset w8, gt
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-8]
ldur w10, [x29, #-8]
mul w9, w9, w10
ldur w10, [x29, #-8]
mul w10, w9, w10
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
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
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB0_1
LBB0_4:
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 cubed\n"
l_.str.1: ; @.str.1
.asciz "%5d %5d\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
movb $0, %al
callq _printf
movl $1, -8(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $6, -8(%rbp)
jg LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %esi
movl -8(%rbp), %edx
imull -8(%rbp), %edx
imull -8(%rbp), %edx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_4:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz " n cubed\n"
L_.str.1: ## @.str.1
.asciz "%5d %5d\n"
.subsections_via_symbols
| the_stack_data/92326447.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]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #12
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
mov w8, #1
stur w8, [x29, #-8]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov w8, #1
str w8, [sp, #16]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #16]
subs w8, w8, #12
cset w8, gt
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldur w9, [x29, #-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
str x0, [sp, #8] ; 8-byte Folded Spill
bl _printf
ldr x0, [sp, #8] ; 8-byte Folded Reload
ldr w9, [sp, #16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
bl _printf
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB0_1
LBB0_8:
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 "What is the number \n"
l_.str.1: ; @.str.1
.asciz "%d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 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 -12(%rbp), %rsi
movb $0, %al
callq _scanf
movl $1, -8(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movl -8(%rbp), %eax
cmpl -12(%rbp), %eax
jg LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $1, -16(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $12, -16(%rbp)
jg LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movl -8(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl -16(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%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 -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_8:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "What is the number \n"
L_.str.1: ## @.str.1
.asciz "%d"
.subsections_via_symbols
| the_stack_data/148579416.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _Bar ; -- Begin function Bar
.p2align 2
_Bar: ; @Bar
.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
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _Blue ; -- Begin function Blue
.p2align 2
_Blue: ; @Blue
.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.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _Bar1 ; -- Begin function Bar1
.p2align 2
_Bar1: ; @Bar1
.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 w9, [x29, #-4]
; 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
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _Bar2 ; -- Begin function Bar2
.p2align 2
_Bar2: ; @Bar2
.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]
stur w1, [x29, #-8]
ldur w8, [x29, #-4]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldur w8, [x29, #-4]
ldur w9, [x29, #-8]
add w0, w8, w9
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _Bar3 ; -- Begin function Bar3
.p2align 2
_Bar3: ; @Bar3
.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 x10, [x29, #-8]
ldr x8, [sp, #16]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldr x9, [sp, #16]
add x0, x8, x9
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _Blue1 ; -- Begin function Blue1
.p2align 2
_Blue1: ; @Blue1
.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 w9, [x29, #-4]
; 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
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _Blue2 ; -- Begin function Blue2
.p2align 2
_Blue2: ; @Blue2
.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]
stur w1, [x29, #-8]
ldur w8, [x29, #-4]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
ldur w8, [x29, #-4]
ldur w9, [x29, #-8]
add w0, w8, w9
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _Blue3 ; -- Begin function Blue3
.p2align 2
_Blue3: ; @Blue3
.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 x10, [x29, #-8]
ldr x8, [sp, #16]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldr x9, [sp, #16]
add x0, x8, x9
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _Blue6 ; -- Begin function Blue6
.p2align 2
_Blue6: ; @Blue6
.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]
stur w1, [x29, #-8]
ldur w8, [x29, #-4]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
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
ldur w8, [x29, #-4]
ldur w9, [x29, #-8]
add w0, w8, w9
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _Bar6 ; -- Begin function Bar6
.p2align 2
_Bar6: ; @Bar6
.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]
stur w1, [x29, #-8]
stur wzr, [x29, #-12]
ldur w8, [x29, #-4]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
ldur w0, [x29, #-4]
ldur w1, [x29, #-8]
bl _Blue6
stur w0, [x29, #-12]
ldur w0, [x29, #-12]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _Bar7 ; -- Begin function Bar7
.p2align 2
_Bar7: ; @Bar7
.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]
str w1, [sp, #8]
str w2, [sp, #4]
str wzr, [sp]
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB10_2
b LBB10_1
LBB10_1:
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
ldur w0, [x29, #-4]
ldr w1, [sp, #8]
bl _Blue7
str w0, [sp]
b LBB10_3
LBB10_2:
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
ldur w8, [x29, #-4]
ldr w9, [sp, #8]
add w8, w8, w9
str w8, [sp]
b LBB10_3
LBB10_3:
ldr w0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _Blue7 ; -- Begin function Blue7
.p2align 2
_Blue7: ; @Blue7
.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]
str w1, [sp, #8]
str wzr, [sp, #4]
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
ldur w0, [x29, #-4]
ldr w1, [sp, #8]
mov w2, #1
bl _Bar7
str w0, [sp, #4]
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
ldr w0, [sp, #4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _Bar8 ; -- Begin function Bar8
.p2align 2
_Bar8: ; @Bar8
.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]
str w1, [sp, #8]
str w2, [sp, #4]
str wzr, [sp]
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB12_2
b LBB12_1
LBB12_1:
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
ldur w0, [x29, #-4]
ldr w1, [sp, #8]
mov w2, #1
bl _Bar8
str w0, [sp]
b LBB12_6
LBB12_2:
ldr w8, [sp, #4]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB12_4
b LBB12_3
LBB12_3:
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _printf
ldur w0, [x29, #-4]
ldr w1, [sp, #8]
mov w2, #2
bl _Bar8
str w0, [sp]
b LBB12_5
LBB12_4:
adrp x0, l_.str.16@PAGE
add x0, x0, l_.str.16@PAGEOFF
bl _printf
ldur w8, [x29, #-4]
ldr w9, [sp, #8]
add w8, w8, w9
str w8, [sp]
b LBB12_5
LBB12_5:
b LBB12_6
LBB12_6:
ldr w0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _Bar10 ; -- Begin function Bar10
.p2align 2
_Bar10: ; @Bar10
.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
ldr w9, [x29, #16]
ldr w8, [x29, #20]
stur w0, [x29, #-4]
stur w1, [x29, #-8]
stur w2, [x29, #-12]
stur w3, [x29, #-16]
stur w4, [x29, #-20]
stur w5, [x29, #-24]
stur w6, [x29, #-28]
stur w7, [x29, #-32]
stur w9, [x29, #-36]
str w8, [sp, #40]
str wzr, [sp, #36]
ldur w8, [x29, #-4]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.17@PAGE
add x0, x0, l_.str.17@PAGEOFF
bl _printf
ldur w8, [x29, #-12]
; implicit-def: $x12
mov x12, x8
ldur w8, [x29, #-16]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-20]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-24]
; 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.18@PAGE
add x0, x0, l_.str.18@PAGEOFF
bl _printf
ldur w8, [x29, #-28]
; implicit-def: $x12
mov x12, x8
ldur w8, [x29, #-32]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-36]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #40]
; 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.19@PAGE
add x0, x0, l_.str.19@PAGEOFF
bl _printf
ldur w8, [x29, #-4]
ldur w9, [x29, #-8]
add w8, w8, w9
ldur w9, [x29, #-12]
add w8, w8, w9
ldur w9, [x29, #-16]
add w8, w8, w9
ldur w9, [x29, #-20]
add w8, w8, w9
ldur w9, [x29, #-24]
add w8, w8, w9
ldur w9, [x29, #-28]
add w8, w8, w9
ldur w9, [x29, #-32]
add w8, w8, w9
ldur w9, [x29, #-36]
add w8, w8, w9
ldr w9, [sp, #40]
add w8, w8, w9
str w8, [sp, #36]
ldr w9, [sp, #36]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.20@PAGE
add x0, x0, l_.str.20@PAGEOFF
bl _printf
ldr w0, [sp, #36]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _Blue10 ; -- Begin function Blue10
.p2align 2
_Blue10: ; @Blue10
.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
ldr w9, [x29, #16]
ldr w8, [x29, #20]
stur w0, [x29, #-4]
stur w1, [x29, #-8]
stur w2, [x29, #-12]
stur w3, [x29, #-16]
stur w4, [x29, #-20]
stur w5, [x29, #-24]
stur w6, [x29, #-28]
stur w7, [x29, #-32]
stur w9, [x29, #-36]
str w8, [sp, #40]
str wzr, [sp, #36]
ldur w8, [x29, #-4]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.21@PAGE
add x0, x0, l_.str.21@PAGEOFF
bl _printf
ldur w8, [x29, #-12]
; implicit-def: $x12
mov x12, x8
ldur w8, [x29, #-16]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-20]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-24]
; 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.18@PAGE
add x0, x0, l_.str.18@PAGEOFF
bl _printf
ldur w8, [x29, #-28]
; implicit-def: $x12
mov x12, x8
ldur w8, [x29, #-32]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-36]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #40]
; 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.19@PAGE
add x0, x0, l_.str.19@PAGEOFF
bl _printf
ldur w8, [x29, #-4]
ldur w9, [x29, #-8]
add w8, w8, w9
ldur w9, [x29, #-12]
add w8, w8, w9
ldur w9, [x29, #-16]
add w8, w8, w9
ldur w9, [x29, #-20]
add w8, w8, w9
ldur w9, [x29, #-24]
add w8, w8, w9
ldur w9, [x29, #-28]
add w8, w8, w9
ldur w9, [x29, #-32]
add w8, w8, w9
ldur w9, [x29, #-36]
add w8, w8, w9
ldr w9, [sp, #40]
add w8, w8, w9
str w8, [sp, #36]
ldr w9, [sp, #36]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.20@PAGE
add x0, x0, l_.str.20@PAGEOFF
bl _printf
ldr w0, [sp, #36]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _Bar12 ; -- Begin function Bar12
.p2align 2
_Bar12: ; @Bar12
.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
ldr w11, [x29, #16]
ldrsb w10, [x29, #20]
ldrsb w9, [x29, #21]
ldrb w8, [x29, #22]
stur w0, [x29, #-4]
stur w1, [x29, #-8]
stur w2, [x29, #-12]
sturb w3, [x29, #-13]
sturb w4, [x29, #-14]
sturb w5, [x29, #-15]
stur w6, [x29, #-20]
stur w7, [x29, #-24]
stur w11, [x29, #-28]
sturb w10, [x29, #-29]
sturb w9, [x29, #-30]
sturb w8, [x29, #-31]
adrp x0, l_.str.22@PAGE
add x0, x0, l_.str.22@PAGEOFF
bl _printf
ldur w8, [x29, #-4]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-8]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.23@PAGE
add x0, x0, l_.str.23@PAGEOFF
bl _printf
ldursb w12, [x29, #-13]
ldursb w11, [x29, #-14]
ldurb w10, [x29, #-15]
mov x9, sp
; implicit-def: $x8
mov x8, x12
str x8, [x9]
; implicit-def: $x8
mov x8, x11
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #16]
adrp x0, l_.str.24@PAGE
add x0, x0, l_.str.24@PAGEOFF
str x0, [sp, #24] ; 8-byte Folded Spill
bl _printf
ldur w8, [x29, #-20]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-24]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-28]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.25@PAGE
add x0, x0, l_.str.25@PAGEOFF
bl _printf
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldursb w12, [x29, #-29]
ldursb w11, [x29, #-30]
ldurb w10, [x29, #-31]
mov x9, sp
; implicit-def: $x8
mov x8, x12
str x8, [x9]
; implicit-def: $x8
mov x8, x11
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #16]
bl _printf
mov w0, #49
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _Green12 ; -- Begin function Green12
.p2align 2
_Green12: ; @Green12
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
ldr w11, [x29, #16]
ldrsb w10, [x29, #20]
ldrsb w9, [x29, #21]
ldrb w8, [x29, #22]
stur w0, [x29, #-8]
stur w1, [x29, #-12]
stur w2, [x29, #-16]
sturb w3, [x29, #-17]
sturb w4, [x29, #-18]
sturb w5, [x29, #-19]
str w6, [sp, #24]
str w7, [sp, #20]
str w11, [sp, #16]
strb w10, [sp, #15]
strb w9, [sp, #14]
strb w8, [sp, #13]
adrp x0, l_.str.26@PAGE
add x0, x0, l_.str.26@PAGEOFF
bl _printf
ldur w8, [x29, #-8]
mov w9, #-2147483648
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB16_13
b LBB16_1
LBB16_1:
ldur w8, [x29, #-12]
mov w9, #2147483647
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB16_13
b LBB16_2
LBB16_2:
ldur w8, [x29, #-16]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB16_13
b LBB16_3
LBB16_3:
ldursb w8, [x29, #-17]
adds w8, w8, #128
cset w8, ne
tbnz w8, #0, LBB16_13
b LBB16_4
LBB16_4:
ldursb w8, [x29, #-18]
subs w8, w8, #127
cset w8, ne
tbnz w8, #0, LBB16_13
b LBB16_5
LBB16_5:
ldurb w8, [x29, #-19]
subs w8, w8, #255
cset w8, ne
tbnz w8, #0, LBB16_13
b LBB16_6
LBB16_6:
ldr w8, [sp, #24]
mov w9, #-2147483648
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB16_13
b LBB16_7
LBB16_7:
ldr w8, [sp, #20]
mov w9, #2147483647
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB16_13
b LBB16_8
LBB16_8:
ldr w8, [sp, #16]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB16_13
b LBB16_9
LBB16_9:
ldrsb w8, [sp, #15]
adds w8, w8, #128
cset w8, ne
tbnz w8, #0, LBB16_13
b LBB16_10
LBB16_10:
ldrsb w8, [sp, #14]
subs w8, w8, #127
cset w8, ne
tbnz w8, #0, LBB16_13
b LBB16_11
LBB16_11:
ldrb w8, [sp, #13]
subs w8, w8, #255
cset w8, ne
tbnz w8, #0, LBB16_13
b LBB16_12
LBB16_12:
adrp x0, l_.str.27@PAGE
add x0, x0, l_.str.27@PAGEOFF
bl _printf
mov w8, #49
sturb w8, [x29, #-1]
b LBB16_39
LBB16_13:
adrp x0, l_.str.28@PAGE
add x0, x0, l_.str.28@PAGEOFF
bl _printf
ldur w8, [x29, #-8]
mov w9, #-2147483648
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB16_15
b LBB16_14
LBB16_14:
adrp x0, l_.str.29@PAGE
add x0, x0, l_.str.29@PAGEOFF
bl _printf
b LBB16_15
LBB16_15:
ldur w8, [x29, #-12]
mov w9, #2147483647
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB16_17
b LBB16_16
LBB16_16:
adrp x0, l_.str.29@PAGE
add x0, x0, l_.str.29@PAGEOFF
bl _printf
b LBB16_17
LBB16_17:
ldur w8, [x29, #-16]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB16_19
b LBB16_18
LBB16_18:
adrp x0, l_.str.30@PAGE
add x0, x0, l_.str.30@PAGEOFF
bl _printf
b LBB16_19
LBB16_19:
ldursb w8, [x29, #-17]
adds w8, w8, #128
cset w8, eq
tbnz w8, #0, LBB16_21
b LBB16_20
LBB16_20:
adrp x0, l_.str.31@PAGE
add x0, x0, l_.str.31@PAGEOFF
bl _printf
b LBB16_21
LBB16_21:
ldursb w8, [x29, #-18]
subs w8, w8, #127
cset w8, eq
tbnz w8, #0, LBB16_23
b LBB16_22
LBB16_22:
adrp x0, l_.str.32@PAGE
add x0, x0, l_.str.32@PAGEOFF
bl _printf
b LBB16_23
LBB16_23:
ldurb w8, [x29, #-19]
subs w8, w8, #255
cset w8, eq
tbnz w8, #0, LBB16_25
b LBB16_24
LBB16_24:
adrp x0, l_.str.33@PAGE
add x0, x0, l_.str.33@PAGEOFF
bl _printf
b LBB16_25
LBB16_25:
ldr w8, [sp, #24]
mov w9, #-2147483648
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB16_27
b LBB16_26
LBB16_26:
adrp x0, l_.str.34@PAGE
add x0, x0, l_.str.34@PAGEOFF
bl _printf
b LBB16_27
LBB16_27:
ldr w8, [sp, #20]
mov w9, #2147483647
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB16_29
b LBB16_28
LBB16_28:
adrp x0, l_.str.35@PAGE
add x0, x0, l_.str.35@PAGEOFF
bl _printf
b LBB16_29
LBB16_29:
ldr w8, [sp, #16]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB16_31
b LBB16_30
LBB16_30:
adrp x0, l_.str.36@PAGE
add x0, x0, l_.str.36@PAGEOFF
bl _printf
b LBB16_31
LBB16_31:
ldrsb w8, [sp, #15]
adds w8, w8, #128
cset w8, eq
tbnz w8, #0, LBB16_33
b LBB16_32
LBB16_32:
adrp x0, l_.str.37@PAGE
add x0, x0, l_.str.37@PAGEOFF
bl _printf
b LBB16_33
LBB16_33:
ldrsb w8, [sp, #14]
subs w8, w8, #127
cset w8, eq
tbnz w8, #0, LBB16_35
b LBB16_34
LBB16_34:
adrp x0, l_.str.38@PAGE
add x0, x0, l_.str.38@PAGEOFF
bl _printf
b LBB16_35
LBB16_35:
ldrb w8, [sp, #13]
subs w8, w8, #255
cset w8, eq
tbnz w8, #0, LBB16_37
b LBB16_36
LBB16_36:
adrp x0, l_.str.39@PAGE
add x0, x0, l_.str.39@PAGEOFF
bl _printf
b LBB16_37
LBB16_37:
b LBB16_38
LBB16_38:
mov w8, #49
sturb w8, [x29, #-1]
b LBB16_39
LBB16_39:
ldursb w0, [x29, #-1]
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 " Hello from Bar!\n "
l_.str.1: ; @.str.1
.asciz " Hello from Blue!\n"
l_.str.2: ; @.str.2
.asciz " Hello from Bar1: one = %d!\n "
l_.str.3: ; @.str.3
.asciz " Hello from Bar2: one = %d, two = %d!\n "
l_.str.4: ; @.str.4
.asciz " Hello from Bar3: one = %d, two = %d!\n "
l_.str.5: ; @.str.5
.asciz " Hello from Blue1: one = %d!\n "
l_.str.6: ; @.str.6
.asciz " Hello from Blue2: one = %d, two = %d!\n "
l_.str.7: ; @.str.7
.asciz " Hello from Blue3: one = %d, two = %d!\n "
l_.str.8: ; @.str.8
.asciz "Hello from Blue6: one = %d, two = %d!\n "
l_.str.9: ; @.str.9
.asciz " Hello from Bar6: one = %d, two = %d!\n "
l_.str.10: ; @.str.10
.asciz " Bar7: once\n"
l_.str.11: ; @.str.11
.asciz " Bar7: twice\n"
l_.str.12: ; @.str.12
.asciz " Blue7: once\n"
l_.str.13: ; @.str.13
.asciz " Blue7: twice\n"
l_.str.14: ; @.str.14
.asciz " Bar8: once\n"
l_.str.15: ; @.str.15
.asciz " Bar8: twice\n"
l_.str.16: ; @.str.16
.asciz " Bar8: thrice\n"
l_.str.17: ; @.str.17
.asciz " Hello from Bar10: one = %d, two = %d\n "
l_.str.18: ; @.str.18
.asciz " three = %d, four = %d, five = %d, six = %d\n "
l_.str.19: ; @.str.19
.asciz " seven = %d, eight = %d, nine = %d, zero = %d\n "
l_.str.20: ; @.str.20
.asciz " sum = %d\n"
l_.str.21: ; @.str.21
.asciz " Hello from Blue10: one = %d, two = %d\n "
l_.str.22: ; @.str.22
.asciz " Hello from Bar12: \n"
l_.str.23: ; @.str.23
.asciz " i1 = %d, i2 = %d, ui1 = %d\n "
l_.str.24: ; @.str.24
.asciz " c1 = %c, c2 = %c, uc1 = %c\n "
l_.str.25: ; @.str.25
.asciz " i3 = %d, i4 = %d, ui2 = %d\n "
l_.str.26: ; @.str.26
.asciz " Green12: "
l_.str.27: ; @.str.27
.asciz " Test passed\n"
l_.str.28: ; @.str.28
.asciz " Test failed\n"
l_.str.29: ; @.str.29
.asciz " i1 != INT_MIN\n"
l_.str.30: ; @.str.30
.asciz " ui1 != UINT_MAX\n"
l_.str.31: ; @.str.31
.asciz " c1 != SCHAR_MIN\n"
l_.str.32: ; @.str.32
.asciz " c2 != SCHAR_MAX\n"
l_.str.33: ; @.str.33
.asciz " uc1 == UCHAR_MAX\n"
l_.str.34: ; @.str.34
.asciz " i3 != INT_MIN\n"
l_.str.35: ; @.str.35
.asciz " i4 != INT_MAX\n"
l_.str.36: ; @.str.36
.asciz " ui2 != UINT_MAX\n"
l_.str.37: ; @.str.37
.asciz " c3 != SCHAR_MIN\n"
l_.str.38: ; @.str.38
.asciz " c4 != SCHAR_MAX\n"
l_.str.39: ; @.str.39
.asciz " uc2 != UCHAR_MAX\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _Bar ## -- Begin function Bar
.p2align 4, 0x90
_Bar: ## @Bar
.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
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Blue ## -- Begin function Blue
.p2align 4, 0x90
_Blue: ## @Blue
.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.1(%rip), %rdi
movb $0, %al
callq _printf
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Bar1 ## -- Begin function Bar1
.p2align 4, 0x90
_Bar1: ## @Bar1
.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 -4(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Bar2 ## -- Begin function Bar2
.p2align 4, 0x90
_Bar2: ## @Bar2
.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 -4(%rbp), %esi
movl -8(%rbp), %edx
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %eax
addl -8(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Bar3 ## -- Begin function Bar3
.p2align 4, 0x90
_Bar3: ## @Bar3
.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)
movq -8(%rbp), %rsi
movq -16(%rbp), %rdx
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
addq -16(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Blue1 ## -- Begin function Blue1
.p2align 4, 0x90
_Blue1: ## @Blue1
.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 -4(%rbp), %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Blue2 ## -- Begin function Blue2
.p2align 4, 0x90
_Blue2: ## @Blue2
.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 -4(%rbp), %esi
movl -8(%rbp), %edx
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %eax
addl -8(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Blue3 ## -- Begin function Blue3
.p2align 4, 0x90
_Blue3: ## @Blue3
.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)
movq -8(%rbp), %rsi
movq -16(%rbp), %rdx
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
addq -16(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Blue6 ## -- Begin function Blue6
.p2align 4, 0x90
_Blue6: ## @Blue6
.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 -4(%rbp), %esi
movl -8(%rbp), %edx
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %eax
addl -8(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Bar6 ## -- Begin function Bar6
.p2align 4, 0x90
_Bar6: ## @Bar6
.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 $0, -12(%rbp)
movl -4(%rbp), %esi
movl -8(%rbp), %edx
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %edi
movl -8(%rbp), %esi
callq _Blue6
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Bar7 ## -- Begin function Bar7
.p2align 4, 0x90
_Bar7: ## @Bar7
.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 $0, -16(%rbp)
cmpl $0, -12(%rbp)
jne LBB10_2
## %bb.1:
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %edi
movl -8(%rbp), %esi
callq _Blue7
movl %eax, -16(%rbp)
jmp LBB10_3
LBB10_2:
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %eax
addl -8(%rbp), %eax
movl %eax, -16(%rbp)
LBB10_3:
movl -16(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Blue7 ## -- Begin function Blue7
.p2align 4, 0x90
_Blue7: ## @Blue7
.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 $0, -12(%rbp)
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %edi
movl -8(%rbp), %esi
movl $1, %edx
callq _Bar7
movl %eax, -12(%rbp)
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
movl -12(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Bar8 ## -- Begin function Bar8
.p2align 4, 0x90
_Bar8: ## @Bar8
.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 $0, -16(%rbp)
cmpl $0, -12(%rbp)
jne LBB12_2
## %bb.1:
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %edi
movl -8(%rbp), %esi
movl $1, %edx
callq _Bar8
movl %eax, -16(%rbp)
jmp LBB12_6
LBB12_2:
cmpl $1, -12(%rbp)
jne LBB12_4
## %bb.3:
leaq L_.str.15(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %edi
movl -8(%rbp), %esi
movl $2, %edx
callq _Bar8
movl %eax, -16(%rbp)
jmp LBB12_5
LBB12_4:
leaq L_.str.16(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %eax
addl -8(%rbp), %eax
movl %eax, -16(%rbp)
LBB12_5:
jmp LBB12_6
LBB12_6:
movl -16(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Bar10 ## -- Begin function Bar10
.p2align 4, 0x90
_Bar10: ## @Bar10
.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 40(%rbp), %eax
movl 32(%rbp), %eax
movl 24(%rbp), %eax
movl 16(%rbp), %eax
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl %edx, -12(%rbp)
movl %ecx, -16(%rbp)
movl %r8d, -20(%rbp)
movl %r9d, -24(%rbp)
movl $0, -28(%rbp)
movl -4(%rbp), %esi
movl -8(%rbp), %edx
leaq L_.str.17(%rip), %rdi
movb $0, %al
callq _printf
movl -12(%rbp), %esi
movl -16(%rbp), %edx
movl -20(%rbp), %ecx
movl -24(%rbp), %r8d
leaq L_.str.18(%rip), %rdi
movb $0, %al
callq _printf
movl 16(%rbp), %esi
movl 24(%rbp), %edx
movl 32(%rbp), %ecx
movl 40(%rbp), %r8d
leaq L_.str.19(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %eax
addl -8(%rbp), %eax
addl -12(%rbp), %eax
addl -16(%rbp), %eax
addl -20(%rbp), %eax
addl -24(%rbp), %eax
addl 16(%rbp), %eax
addl 24(%rbp), %eax
addl 32(%rbp), %eax
addl 40(%rbp), %eax
movl %eax, -28(%rbp)
movl -28(%rbp), %esi
leaq L_.str.20(%rip), %rdi
movb $0, %al
callq _printf
movl -28(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Blue10 ## -- Begin function Blue10
.p2align 4, 0x90
_Blue10: ## @Blue10
.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 40(%rbp), %eax
movl 32(%rbp), %eax
movl 24(%rbp), %eax
movl 16(%rbp), %eax
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl %edx, -12(%rbp)
movl %ecx, -16(%rbp)
movl %r8d, -20(%rbp)
movl %r9d, -24(%rbp)
movl $0, -28(%rbp)
movl -4(%rbp), %esi
movl -8(%rbp), %edx
leaq L_.str.21(%rip), %rdi
movb $0, %al
callq _printf
movl -12(%rbp), %esi
movl -16(%rbp), %edx
movl -20(%rbp), %ecx
movl -24(%rbp), %r8d
leaq L_.str.18(%rip), %rdi
movb $0, %al
callq _printf
movl 16(%rbp), %esi
movl 24(%rbp), %edx
movl 32(%rbp), %ecx
movl 40(%rbp), %r8d
leaq L_.str.19(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %eax
addl -8(%rbp), %eax
addl -12(%rbp), %eax
addl -16(%rbp), %eax
addl -20(%rbp), %eax
addl -24(%rbp), %eax
addl 16(%rbp), %eax
addl 24(%rbp), %eax
addl 32(%rbp), %eax
addl 40(%rbp), %eax
movl %eax, -28(%rbp)
movl -28(%rbp), %esi
leaq L_.str.20(%rip), %rdi
movb $0, %al
callq _printf
movl -28(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Bar12 ## -- Begin function Bar12
.p2align 4, 0x90
_Bar12: ## @Bar12
.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 %r8d, -32(%rbp) ## 4-byte Spill
movl %ecx, %eax
movl -32(%rbp), %ecx ## 4-byte Reload
movl %eax, -28(%rbp) ## 4-byte Spill
movl %edx, %eax
movl -28(%rbp), %edx ## 4-byte Reload
movl %eax, -24(%rbp) ## 4-byte Spill
movl %esi, %eax
movl -24(%rbp), %esi ## 4-byte Reload
movl %eax, -20(%rbp) ## 4-byte Spill
movl %edi, %r8d
movl -20(%rbp), %edi ## 4-byte Reload
movb %r9b, %al
## kill: def $cl killed $cl killed $ecx
## kill: def $dl killed $dl killed $edx
movb 56(%rbp), %r9b
movb 48(%rbp), %r9b
movb 40(%rbp), %r9b
movl 32(%rbp), %r9d
movl 24(%rbp), %r9d
movl 16(%rbp), %r9d
movl %r8d, -4(%rbp)
movl %edi, -8(%rbp)
movl %esi, -12(%rbp)
movb %dl, -13(%rbp)
movb %cl, -14(%rbp)
movb %al, -15(%rbp)
leaq L_.str.22(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %esi
movl -8(%rbp), %edx
movl -12(%rbp), %ecx
leaq L_.str.23(%rip), %rdi
movb $0, %al
callq _printf
movsbl -13(%rbp), %esi
movsbl -14(%rbp), %edx
movzbl -15(%rbp), %ecx
leaq L_.str.24(%rip), %rdi
movb $0, %al
callq _printf
movl 16(%rbp), %esi
movl 24(%rbp), %edx
movl 32(%rbp), %ecx
leaq L_.str.25(%rip), %rdi
movb $0, %al
callq _printf
movsbl 40(%rbp), %esi
movsbl 48(%rbp), %edx
movzbl 56(%rbp), %ecx
leaq L_.str.24(%rip), %rdi
movb $0, %al
callq _printf
movb $49, %al
movsbl %al, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Green12 ## -- Begin function Green12
.p2align 4, 0x90
_Green12: ## @Green12
.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 %r8d, -36(%rbp) ## 4-byte Spill
movl %ecx, %eax
movl -36(%rbp), %ecx ## 4-byte Reload
movl %eax, -32(%rbp) ## 4-byte Spill
movl %edx, %eax
movl -32(%rbp), %edx ## 4-byte Reload
movl %eax, -28(%rbp) ## 4-byte Spill
movl %esi, %eax
movl -28(%rbp), %esi ## 4-byte Reload
movl %eax, -24(%rbp) ## 4-byte Spill
movl %edi, %r8d
movl -24(%rbp), %edi ## 4-byte Reload
movb %r9b, %al
## kill: def $cl killed $cl killed $ecx
## kill: def $dl killed $dl killed $edx
movb 56(%rbp), %r9b
movb 48(%rbp), %r9b
movb 40(%rbp), %r9b
movl 32(%rbp), %r9d
movl 24(%rbp), %r9d
movl 16(%rbp), %r9d
movl %r8d, -8(%rbp)
movl %edi, -12(%rbp)
movl %esi, -16(%rbp)
movb %dl, -17(%rbp)
movb %cl, -18(%rbp)
movb %al, -19(%rbp)
leaq L_.str.26(%rip), %rdi
movb $0, %al
callq _printf
cmpl $-2147483648, -8(%rbp) ## imm = 0x80000000
jne LBB16_13
## %bb.1:
cmpl $2147483647, -12(%rbp) ## imm = 0x7FFFFFFF
jne LBB16_13
## %bb.2:
cmpl $-1, -16(%rbp)
jne LBB16_13
## %bb.3:
movsbl -17(%rbp), %eax
cmpl $-128, %eax
jne LBB16_13
## %bb.4:
movsbl -18(%rbp), %eax
cmpl $127, %eax
jne LBB16_13
## %bb.5:
movzbl -19(%rbp), %eax
cmpl $255, %eax
jne LBB16_13
## %bb.6:
cmpl $-2147483648, 16(%rbp) ## imm = 0x80000000
jne LBB16_13
## %bb.7:
cmpl $2147483647, 24(%rbp) ## imm = 0x7FFFFFFF
jne LBB16_13
## %bb.8:
cmpl $-1, 32(%rbp)
jne LBB16_13
## %bb.9:
movsbl 40(%rbp), %eax
cmpl $-128, %eax
jne LBB16_13
## %bb.10:
movsbl 48(%rbp), %eax
cmpl $127, %eax
jne LBB16_13
## %bb.11:
movzbl 56(%rbp), %eax
cmpl $255, %eax
jne LBB16_13
## %bb.12:
leaq L_.str.27(%rip), %rdi
movb $0, %al
callq _printf
movb $49, -1(%rbp)
jmp LBB16_39
LBB16_13:
leaq L_.str.28(%rip), %rdi
movb $0, %al
callq _printf
cmpl $-2147483648, -8(%rbp) ## imm = 0x80000000
je LBB16_15
## %bb.14:
leaq L_.str.29(%rip), %rdi
movb $0, %al
callq _printf
LBB16_15:
cmpl $2147483647, -12(%rbp) ## imm = 0x7FFFFFFF
je LBB16_17
## %bb.16:
leaq L_.str.29(%rip), %rdi
movb $0, %al
callq _printf
LBB16_17:
cmpl $-1, -16(%rbp)
je LBB16_19
## %bb.18:
leaq L_.str.30(%rip), %rdi
movb $0, %al
callq _printf
LBB16_19:
movsbl -17(%rbp), %eax
cmpl $-128, %eax
je LBB16_21
## %bb.20:
leaq L_.str.31(%rip), %rdi
movb $0, %al
callq _printf
LBB16_21:
movsbl -18(%rbp), %eax
cmpl $127, %eax
je LBB16_23
## %bb.22:
leaq L_.str.32(%rip), %rdi
movb $0, %al
callq _printf
LBB16_23:
movzbl -19(%rbp), %eax
cmpl $255, %eax
je LBB16_25
## %bb.24:
leaq L_.str.33(%rip), %rdi
movb $0, %al
callq _printf
LBB16_25:
cmpl $-2147483648, 16(%rbp) ## imm = 0x80000000
je LBB16_27
## %bb.26:
leaq L_.str.34(%rip), %rdi
movb $0, %al
callq _printf
LBB16_27:
cmpl $2147483647, 24(%rbp) ## imm = 0x7FFFFFFF
je LBB16_29
## %bb.28:
leaq L_.str.35(%rip), %rdi
movb $0, %al
callq _printf
LBB16_29:
cmpl $-1, 32(%rbp)
je LBB16_31
## %bb.30:
leaq L_.str.36(%rip), %rdi
movb $0, %al
callq _printf
LBB16_31:
movsbl 40(%rbp), %eax
cmpl $-128, %eax
je LBB16_33
## %bb.32:
leaq L_.str.37(%rip), %rdi
movb $0, %al
callq _printf
LBB16_33:
movsbl 48(%rbp), %eax
cmpl $127, %eax
je LBB16_35
## %bb.34:
leaq L_.str.38(%rip), %rdi
movb $0, %al
callq _printf
LBB16_35:
movzbl 56(%rbp), %eax
cmpl $255, %eax
je LBB16_37
## %bb.36:
leaq L_.str.39(%rip), %rdi
movb $0, %al
callq _printf
LBB16_37:
jmp LBB16_38
LBB16_38:
movb $49, -1(%rbp)
LBB16_39:
movsbl -1(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz " Hello from Bar!\n "
L_.str.1: ## @.str.1
.asciz " Hello from Blue!\n"
L_.str.2: ## @.str.2
.asciz " Hello from Bar1: one = %d!\n "
L_.str.3: ## @.str.3
.asciz " Hello from Bar2: one = %d, two = %d!\n "
L_.str.4: ## @.str.4
.asciz " Hello from Bar3: one = %d, two = %d!\n "
L_.str.5: ## @.str.5
.asciz " Hello from Blue1: one = %d!\n "
L_.str.6: ## @.str.6
.asciz " Hello from Blue2: one = %d, two = %d!\n "
L_.str.7: ## @.str.7
.asciz " Hello from Blue3: one = %d, two = %d!\n "
L_.str.8: ## @.str.8
.asciz "Hello from Blue6: one = %d, two = %d!\n "
L_.str.9: ## @.str.9
.asciz " Hello from Bar6: one = %d, two = %d!\n "
L_.str.10: ## @.str.10
.asciz " Bar7: once\n"
L_.str.11: ## @.str.11
.asciz " Bar7: twice\n"
L_.str.12: ## @.str.12
.asciz " Blue7: once\n"
L_.str.13: ## @.str.13
.asciz " Blue7: twice\n"
L_.str.14: ## @.str.14
.asciz " Bar8: once\n"
L_.str.15: ## @.str.15
.asciz " Bar8: twice\n"
L_.str.16: ## @.str.16
.asciz " Bar8: thrice\n"
L_.str.17: ## @.str.17
.asciz " Hello from Bar10: one = %d, two = %d\n "
L_.str.18: ## @.str.18
.asciz " three = %d, four = %d, five = %d, six = %d\n "
L_.str.19: ## @.str.19
.asciz " seven = %d, eight = %d, nine = %d, zero = %d\n "
L_.str.20: ## @.str.20
.asciz " sum = %d\n"
L_.str.21: ## @.str.21
.asciz " Hello from Blue10: one = %d, two = %d\n "
L_.str.22: ## @.str.22
.asciz " Hello from Bar12: \n"
L_.str.23: ## @.str.23
.asciz " i1 = %d, i2 = %d, ui1 = %d\n "
L_.str.24: ## @.str.24
.asciz " c1 = %c, c2 = %c, uc1 = %c\n "
L_.str.25: ## @.str.25
.asciz " i3 = %d, i4 = %d, ui2 = %d\n "
L_.str.26: ## @.str.26
.asciz " Green12: "
L_.str.27: ## @.str.27
.asciz " Test passed\n"
L_.str.28: ## @.str.28
.asciz " Test failed\n"
L_.str.29: ## @.str.29
.asciz " i1 != INT_MIN\n"
L_.str.30: ## @.str.30
.asciz " ui1 != UINT_MAX\n"
L_.str.31: ## @.str.31
.asciz " c1 != SCHAR_MIN\n"
L_.str.32: ## @.str.32
.asciz " c2 != SCHAR_MAX\n"
L_.str.33: ## @.str.33
.asciz " uc1 == UCHAR_MAX\n"
L_.str.34: ## @.str.34
.asciz " i3 != INT_MIN\n"
L_.str.35: ## @.str.35
.asciz " i4 != INT_MAX\n"
L_.str.36: ## @.str.36
.asciz " ui2 != UINT_MAX\n"
L_.str.37: ## @.str.37
.asciz " c3 != SCHAR_MIN\n"
L_.str.38: ## @.str.38
.asciz " c4 != SCHAR_MAX\n"
L_.str.39: ## @.str.39
.asciz " uc2 != UCHAR_MAX\n"
.subsections_via_symbols
| the_stack_data/117327314.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
.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]
mov w8, #300
stur w8, [x29, #-8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, lt
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 w8, [x29, #-8]
subs w8, w8, #32
scvtf d1, w8
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]
subs w8, w8, #20
stur w8, [x29, #-8]
b LBB0_1
LBB0_4:
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 "%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
.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 $300, -8(%rbp) ## imm = 0x12C
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -8(%rbp)
jl LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %esi
movl -8(%rbp), %eax
subl $32, %eax
cvtsi2sd %eax, %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
subl $20, %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_4:
xorl %eax, %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/165765177.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _CreateValStack ; -- Begin function CreateValStack
.p2align 2
_CreateValStack: ; @CreateValStack
.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]
mov x0, #1
mov x1, #16
bl _calloc
str x0, [sp, #8]
mov x0, #100
mov x1, #4
bl _calloc
ldr x8, [sp, #8]
str x0, [x8, #8]
ldr x9, [sp, #8]
mov w8, #-1
str w8, [x9]
ldr x9, [sp, #8]
mov w8, #100
str w8, [x9, #4]
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _CreateOpStack ; -- Begin function CreateOpStack
.p2align 2
_CreateOpStack: ; @CreateOpStack
.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]
mov x0, #1
str x0, [sp] ; 8-byte Folded Spill
mov x1, #16
bl _calloc
ldr x1, [sp] ; 8-byte Folded Reload
str x0, [sp, #8]
mov x0, #100
bl _calloc
ldr x8, [sp, #8]
str x0, [x8, #8]
ldr x9, [sp, #8]
mov w8, #-1
str w8, [x9]
ldr x9, [sp, #8]
mov w8, #100
str w8, [x9, #4]
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _IsFull ; -- Begin function IsFull
.p2align 2
_IsFull: ; @IsFull
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr w8, [x8]
add w8, w8, #1
ldr x9, [sp, #8]
ldr w9, [x9, #4]
subs w8, w8, w9
cset w8, eq
and w0, w8, #0x1
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _IsEmpty ; -- Begin function IsEmpty
.p2align 2
_IsEmpty: ; @IsEmpty
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr w8, [x8]
adds w8, w8, #1
cset w8, eq
and w0, w8, #0x1
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _PushVal ; -- Begin function PushVal
.p2align 2
_PushVal: ; @PushVal
.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 x0, [sp, #8]
bl _IsFull
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
mov w0, #12
bl _exit
LBB4_2:
ldr w8, [sp, #4]
ldr x9, [sp, #8]
ldr x9, [x9, #8]
ldr x11, [sp, #8]
ldr w10, [x11]
add w10, w10, #1
str w10, [x11]
str w8, [x9, w10, sxtw #2]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _PushOp ; -- Begin function PushOp
.p2align 2
_PushOp: ; @PushOp
.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]
strb w1, [sp, #7]
ldr x0, [sp, #8]
bl _IsFull
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
mov w0, #12
bl _exit
LBB5_2:
ldrb w8, [sp, #7]
ldr x9, [sp, #8]
ldr x9, [x9, #8]
ldr x11, [sp, #8]
ldr w10, [x11]
add w10, w10, #1
str w10, [x11]
add x9, x9, w10, sxtw
strb w8, [x9]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _TopOp ; -- Begin function TopOp
.p2align 2
_TopOp: ; @TopOp
.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 _IsEmpty
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
ldr x8, [sp, #8]
ldr x8, [x8, #8]
ldr x9, [sp, #8]
ldrsw x9, [x9]
ldrsb w0, [x8, x9]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
LBB6_2:
mov w0, #13
bl _exit
.cfi_endproc
; -- End function
.globl _TopVal ; -- Begin function TopVal
.p2align 2
_TopVal: ; @TopVal
.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 _IsEmpty
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_2
b LBB7_1
LBB7_1:
ldr x8, [sp, #8]
ldr x8, [x8, #8]
ldr x9, [sp, #8]
ldrsw x9, [x9]
ldr w0, [x8, x9, lsl #2]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
LBB7_2:
mov w0, #13
bl _exit
.cfi_endproc
; -- End function
.globl _TopAndPopOp ; -- Begin function TopAndPopOp
.p2align 2
_TopAndPopOp: ; @TopAndPopOp
.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 _IsEmpty
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB8_2
b LBB8_1
LBB8_1:
ldr x8, [sp, #8]
ldr x8, [x8, #8]
ldr x11, [sp, #8]
ldrsw x9, [x11]
mov x10, x9
subs w10, w10, #1
str w10, [x11]
ldrsb w0, [x8, x9]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
LBB8_2:
mov w0, #13
bl _exit
.cfi_endproc
; -- End function
.globl _TopAndPopVal ; -- Begin function TopAndPopVal
.p2align 2
_TopAndPopVal: ; @TopAndPopVal
.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 _IsEmpty
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB9_2
b LBB9_1
LBB9_1:
ldr x8, [sp, #8]
ldr x8, [x8, #8]
ldr x11, [sp, #8]
ldrsw x9, [x11]
mov x10, x9
subs w10, w10, #1
str w10, [x11]
ldr w0, [x8, x9, lsl #2]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
LBB9_2:
mov w0, #13
bl _exit
.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
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _IsEmpty
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB10_2
b LBB10_1
LBB10_1:
mov w0, #13
bl _exit
LBB10_2:
ldr x9, [sp, #8]
ldr w8, [x9]
subs w8, w8, #1
str w8, [x9]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _EmptyStack ; -- Begin function EmptyStack
.p2align 2
_EmptyStack: ; @EmptyStack
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x9, [sp, #8]
mov w8, #-1
str w8, [x9]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _getvalue ; -- Begin function getvalue
.p2align 2
_getvalue: ; @getvalue
.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 x8, [sp, #8]
ldr x0, [x8]
ldr x1, [sp, #8]
bl _strtod
fcvtzs w0, d0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _precede ; -- Begin function precede
.p2align 2
_precede: ; @precede
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
strb w0, [sp, #14]
strb w1, [sp, #13]
ldrsb w8, [sp, #14]
subs w8, w8, #40
cset w8, ne
tbnz w8, #0, LBB13_3
b LBB13_1
LBB13_1:
ldrsb w8, [sp, #13]
subs w8, w8, #41
cset w8, ne
tbnz w8, #0, LBB13_3
b LBB13_2
LBB13_2:
mov w8, #61
strb w8, [sp, #15]
b LBB13_12
LBB13_3:
ldrsb w8, [sp, #14]
subs w8, w8, #40
cset w8, eq
tbnz w8, #0, LBB13_10
b LBB13_4
LBB13_4:
ldrsb w8, [sp, #14]
subs w8, w8, #35
cset w8, eq
tbnz w8, #0, LBB13_10
b LBB13_5
LBB13_5:
ldrsb w8, [sp, #13]
subs w8, w8, #40
cset w8, eq
tbnz w8, #0, LBB13_10
b LBB13_6
LBB13_6:
ldrsb w8, [sp, #14]
subs w8, w8, #43
cset w8, eq
tbnz w8, #0, LBB13_8
b LBB13_7
LBB13_7:
ldrsb w8, [sp, #14]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB13_11
b LBB13_8
LBB13_8:
ldrsb w8, [sp, #13]
subs w8, w8, #42
cset w8, eq
tbnz w8, #0, LBB13_10
b LBB13_9
LBB13_9:
ldrsb w8, [sp, #13]
subs w8, w8, #47
cset w8, ne
tbnz w8, #0, LBB13_11
b LBB13_10
LBB13_10:
mov w8, #60
strb w8, [sp, #15]
b LBB13_12
LBB13_11:
mov w8, #62
strb w8, [sp, #15]
b LBB13_12
LBB13_12:
ldrsb w0, [sp, #15]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _calculate ; -- Begin function calculate
.p2align 2
_calculate: ; @calculate
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
strb w0, [sp, #27]
str w1, [sp, #20]
str w2, [sp, #16]
ldrsb w8, [sp, #27]
subs w8, w8, #42
; kill: def $x8 killed $w8
str x8, [sp, #8] ; 8-byte Folded Spill
subs x8, x8, #5
cset w8, hi
tbnz w8, #0, LBB14_6
; %bb.1:
ldr x11, [sp, #8] ; 8-byte Folded Reload
adrp x10, lJTI14_0@PAGE
add x10, x10, lJTI14_0@PAGEOFF
Ltmp5:
adr x8, Ltmp5
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB14_2:
ldr w8, [sp, #20]
ldr w9, [sp, #16]
add w8, w8, w9
str w8, [sp, #28]
b LBB14_6
LBB14_3:
ldr w8, [sp, #20]
ldr w9, [sp, #16]
subs w8, w8, w9
str w8, [sp, #28]
b LBB14_6
LBB14_4:
ldr w8, [sp, #20]
ldr w9, [sp, #16]
mul w8, w8, w9
str w8, [sp, #28]
b LBB14_6
LBB14_5:
ldr w8, [sp, #20]
ldr w9, [sp, #16]
sdiv w8, w8, w9
str w8, [sp, #28]
b LBB14_6
LBB14_6:
ldr w0, [sp, #28]
add sp, sp, #32
ret
.cfi_endproc
.p2align 2
lJTI14_0:
.long LBB14_4-Ltmp5
.long LBB14_2-Ltmp5
.long LBB14_6-Ltmp5
.long LBB14_3-Ltmp5
.long LBB14_6-Ltmp5
.long LBB14_5-Ltmp5
; -- 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]
ldur x0, [x29, #-16]
bl _CreateValStack
stur x0, [x29, #-16]
ldur x0, [x29, #-24]
bl _CreateOpStack
stur x0, [x29, #-24]
b LBB15_1
LBB15_1: ; =>This Loop Header: Depth=1
; Child Loop BB15_5 Depth 2
; Child Loop BB15_7 Depth 2
mov x0, #100
mov x1, #1
bl _calloc
str x0, [sp, #32]
ldr x8, [sp, #32]
str x8, [sp, #24]
ldr x8, [sp, #32]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #61
cset w8, ne
tbnz w8, #0, LBB15_4
b LBB15_2
LBB15_2: ; in Loop: Header=BB15_1 Depth=1
ldr x8, [sp, #32]
ldrsb w8, [x8, #1]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB15_4
b LBB15_3
LBB15_3:
b LBB15_22
LBB15_4: ; in Loop: Header=BB15_1 Depth=1
ldur x0, [x29, #-24]
mov w1, #35
bl _PushOp
b LBB15_5
LBB15_5: ; Parent Loop BB15_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #61
cset w8, ne
tbnz w8, #0, LBB15_10
b LBB15_6
LBB15_6: ; in Loop: Header=BB15_1 Depth=1
b LBB15_7
LBB15_7: ; Parent Loop BB15_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur x0, [x29, #-24]
bl _TopOp
sxtb w8, w0
subs w8, w8, #35
cset w8, eq
tbnz w8, #0, LBB15_9
b LBB15_8
LBB15_8: ; in Loop: Header=BB15_7 Depth=2
ldur x0, [x29, #-24]
bl _TopAndPopOp
mov x9, sp
; implicit-def: $x8
mov x8, x0
sxtb x8, w8
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB15_7
LBB15_9: ; in Loop: Header=BB15_1 Depth=1
b LBB15_21
LBB15_10: ; in Loop: Header=BB15_5 Depth=2
ldr x8, [sp, #32]
ldrsb w0, [x8]
bl _isdigit
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB15_12
b LBB15_11
LBB15_11: ; in Loop: Header=BB15_5 Depth=2
add x0, sp, #32
bl _getvalue
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB15_20
LBB15_12: ; in Loop: Header=BB15_5 Depth=2
ldur x0, [x29, #-24]
bl _TopOp
ldr x8, [sp, #32]
ldrsb w1, [x8]
sxtb w0, w0
bl _precede
sxtb w8, w0
str w8, [sp, #20] ; 4-byte Folded Spill
subs w8, w8, #60
cset w8, eq
tbnz w8, #0, LBB15_15
b LBB15_13
LBB15_13: ; in Loop: Header=BB15_5 Depth=2
ldr w8, [sp, #20] ; 4-byte Folded Reload
subs w8, w8, #61
cset w8, eq
tbnz w8, #0, LBB15_17
b LBB15_14
LBB15_14: ; in Loop: Header=BB15_5 Depth=2
ldr w8, [sp, #20] ; 4-byte Folded Reload
subs w8, w8, #62
cset w8, eq
tbnz w8, #0, LBB15_16
b LBB15_18
LBB15_15: ; in Loop: Header=BB15_5 Depth=2
ldur x0, [x29, #-24]
ldr x8, [sp, #32]
ldrsb w1, [x8]
bl _PushOp
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB15_19
LBB15_16: ; in Loop: Header=BB15_5 Depth=2
ldur x0, [x29, #-24]
bl _TopAndPopOp
mov x9, sp
; implicit-def: $x8
mov x8, x0
sxtb x8, w8
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB15_19
LBB15_17: ; in Loop: Header=BB15_5 Depth=2
ldur x0, [x29, #-24]
bl _Pop
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB15_18
LBB15_18: ; in Loop: Header=BB15_5 Depth=2
b LBB15_19
LBB15_19: ; in Loop: Header=BB15_5 Depth=2
b LBB15_20
LBB15_20: ; in Loop: Header=BB15_5 Depth=2
b LBB15_5
LBB15_21: ; in Loop: Header=BB15_1 Depth=1
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldur x0, [x29, #-16]
bl _EmptyStack
ldur x0, [x29, #-24]
bl _EmptyStack
ldr x0, [sp, #24]
bl _free
b LBB15_1
LBB15_22:
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 "%s"
l_.str.1: ; @.str.1
.asciz "%c"
l_.str.2: ; @.str.2
.asciz "%d"
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 _CreateValStack ## -- Begin function CreateValStack
.p2align 4, 0x90
_CreateValStack: ## @CreateValStack
.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 $1, %edi
movl $16, %esi
callq _calloc
movq %rax, -8(%rbp)
movl $100, %edi
movl $4, %esi
callq _calloc
movq %rax, %rcx
movq -8(%rbp), %rax
movq %rcx, 8(%rax)
movq -8(%rbp), %rax
movl $-1, (%rax)
movq -8(%rbp), %rax
movl $100, 4(%rax)
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _CreateOpStack ## -- Begin function CreateOpStack
.p2align 4, 0x90
_CreateOpStack: ## @CreateOpStack
.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 $1, %edi
movl $16, %esi
callq _calloc
movq %rax, -8(%rbp)
movl $100, %edi
movl $1, %esi
callq _calloc
movq %rax, %rcx
movq -8(%rbp), %rax
movq %rcx, 8(%rax)
movq -8(%rbp), %rax
movl $-1, (%rax)
movq -8(%rbp), %rax
movl $100, 4(%rax)
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _IsFull ## -- Begin function IsFull
.p2align 4, 0x90
_IsFull: ## @IsFull
.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
addl $1, %eax
movq -8(%rbp), %rcx
cmpl 4(%rcx), %eax
sete %al
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _IsEmpty ## -- Begin function IsEmpty
.p2align 4, 0x90
_IsEmpty: ## @IsEmpty
.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
cmpl $-1, (%rax)
sete %al
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _PushVal ## -- Begin function PushVal
.p2align 4, 0x90
_PushVal: ## @PushVal
.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), %rdi
callq _IsFull
cmpl $0, %eax
je LBB4_2
## %bb.1:
movl $12, %edi
callq _exit
LBB4_2:
movl -12(%rbp), %edx
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq -8(%rbp), %rsi
movl (%rsi), %ecx
addl $1, %ecx
movl %ecx, (%rsi)
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _PushOp ## -- Begin function PushOp
.p2align 4, 0x90
_PushOp: ## @PushOp
.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 %sil, %al
movq %rdi, -8(%rbp)
movb %al, -9(%rbp)
movq -8(%rbp), %rdi
callq _IsFull
cmpl $0, %eax
je LBB5_2
## %bb.1:
movl $12, %edi
callq _exit
LBB5_2:
movb -9(%rbp), %dl
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq -8(%rbp), %rsi
movl (%rsi), %ecx
addl $1, %ecx
movl %ecx, (%rsi)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _TopOp ## -- Begin function TopOp
.p2align 4, 0x90
_TopOp: ## @TopOp
.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 _IsEmpty
cmpl $0, %eax
jne LBB6_2
## %bb.1:
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq -8(%rbp), %rcx
movslq (%rcx), %rcx
movsbl (%rax,%rcx), %eax
addq $16, %rsp
popq %rbp
retq
LBB6_2:
movl $13, %edi
callq _exit
.cfi_endproc
## -- End function
.globl _TopVal ## -- Begin function TopVal
.p2align 4, 0x90
_TopVal: ## @TopVal
.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 _IsEmpty
cmpl $0, %eax
jne LBB7_2
## %bb.1:
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq -8(%rbp), %rcx
movslq (%rcx), %rcx
movl (%rax,%rcx,4), %eax
addq $16, %rsp
popq %rbp
retq
LBB7_2:
movl $13, %edi
callq _exit
.cfi_endproc
## -- End function
.globl _TopAndPopOp ## -- Begin function TopAndPopOp
.p2align 4, 0x90
_TopAndPopOp: ## @TopAndPopOp
.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 _IsEmpty
cmpl $0, %eax
jne LBB8_2
## %bb.1:
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq -8(%rbp), %rdx
movl (%rdx), %ecx
movl %ecx, %esi
addl $-1, %esi
movl %esi, (%rdx)
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
addq $16, %rsp
popq %rbp
retq
LBB8_2:
movl $13, %edi
callq _exit
.cfi_endproc
## -- End function
.globl _TopAndPopVal ## -- Begin function TopAndPopVal
.p2align 4, 0x90
_TopAndPopVal: ## @TopAndPopVal
.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 _IsEmpty
cmpl $0, %eax
jne LBB9_2
## %bb.1:
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq -8(%rbp), %rdx
movl (%rdx), %ecx
movl %ecx, %esi
addl $-1, %esi
movl %esi, (%rdx)
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
addq $16, %rsp
popq %rbp
retq
LBB9_2:
movl $13, %edi
callq _exit
.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
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
callq _IsEmpty
cmpl $0, %eax
je LBB10_2
## %bb.1:
movl $13, %edi
callq _exit
LBB10_2:
movq -8(%rbp), %rax
movl (%rax), %ecx
subl $1, %ecx
movl %ecx, (%rax)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _EmptyStack ## -- Begin function EmptyStack
.p2align 4, 0x90
_EmptyStack: ## @EmptyStack
.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 $-1, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _getvalue ## -- Begin function getvalue
.p2align 4, 0x90
_getvalue: ## @getvalue
.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
movq (%rax), %rdi
movq -8(%rbp), %rsi
callq _strtod
cvttsd2si %xmm0, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _precede ## -- Begin function precede
.p2align 4, 0x90
_precede: ## @precede
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movb %sil, %al
movb %dil, %cl
movb %cl, -2(%rbp)
movb %al, -3(%rbp)
movsbl -2(%rbp), %eax
cmpl $40, %eax
jne LBB13_3
## %bb.1:
movsbl -3(%rbp), %eax
cmpl $41, %eax
jne LBB13_3
## %bb.2:
movb $61, -1(%rbp)
jmp LBB13_12
LBB13_3:
movsbl -2(%rbp), %eax
cmpl $40, %eax
je LBB13_10
## %bb.4:
movsbl -2(%rbp), %eax
cmpl $35, %eax
je LBB13_10
## %bb.5:
movsbl -3(%rbp), %eax
cmpl $40, %eax
je LBB13_10
## %bb.6:
movsbl -2(%rbp), %eax
cmpl $43, %eax
je LBB13_8
## %bb.7:
movsbl -2(%rbp), %eax
cmpl $45, %eax
jne LBB13_11
LBB13_8:
movsbl -3(%rbp), %eax
cmpl $42, %eax
je LBB13_10
## %bb.9:
movsbl -3(%rbp), %eax
cmpl $47, %eax
jne LBB13_11
LBB13_10:
movb $60, -1(%rbp)
jmp LBB13_12
LBB13_11:
movb $62, -1(%rbp)
LBB13_12:
movsbl -1(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _calculate ## -- Begin function calculate
.p2align 4, 0x90
_calculate: ## @calculate
.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, -5(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movsbl -5(%rbp), %eax
addl $-42, %eax
movl %eax, %ecx
movq %rcx, -24(%rbp) ## 8-byte Spill
subl $5, %eax
ja LBB14_5
## %bb.6:
movq -24(%rbp), %rax ## 8-byte Reload
leaq LJTI14_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB14_1:
movl -12(%rbp), %eax
addl -16(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB14_5
LBB14_2:
movl -12(%rbp), %eax
subl -16(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB14_5
LBB14_3:
movl -12(%rbp), %eax
imull -16(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB14_5
LBB14_4:
movl -12(%rbp), %eax
cltd
idivl -16(%rbp)
movl %eax, -4(%rbp)
LBB14_5:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L14_0_set_3, LBB14_3-LJTI14_0
.set L14_0_set_1, LBB14_1-LJTI14_0
.set L14_0_set_5, LBB14_5-LJTI14_0
.set L14_0_set_2, LBB14_2-LJTI14_0
.set L14_0_set_4, LBB14_4-LJTI14_0
LJTI14_0:
.long L14_0_set_3
.long L14_0_set_1
.long L14_0_set_5
.long L14_0_set_2
.long L14_0_set_5
.long L14_0_set_4
.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 $48, %rsp
movl $0, -4(%rbp)
movq -16(%rbp), %rdi
callq _CreateValStack
movq %rax, -16(%rbp)
movq -24(%rbp), %rdi
callq _CreateOpStack
movq %rax, -24(%rbp)
LBB15_1: ## =>This Loop Header: Depth=1
## Child Loop BB15_5 Depth 2
## Child Loop BB15_7 Depth 2
movl $100, %edi
movl $1, %esi
callq _calloc
movq %rax, -32(%rbp)
movq -32(%rbp), %rax
movq %rax, -40(%rbp)
movq -32(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _scanf
movq -32(%rbp), %rax
movsbl (%rax), %eax
cmpl $61, %eax
jne LBB15_4
## %bb.2: ## in Loop: Header=BB15_1 Depth=1
movq -32(%rbp), %rax
movsbl 1(%rax), %eax
cmpl $0, %eax
jne LBB15_4
## %bb.3:
jmp LBB15_20
LBB15_4: ## in Loop: Header=BB15_1 Depth=1
movq -24(%rbp), %rdi
movl $35, %esi
callq _PushOp
LBB15_5: ## Parent Loop BB15_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -32(%rbp), %rax
movsbl (%rax), %eax
cmpl $61, %eax
jne LBB15_10
## %bb.6: ## in Loop: Header=BB15_1 Depth=1
jmp LBB15_7
LBB15_7: ## Parent Loop BB15_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -24(%rbp), %rdi
callq _TopOp
movsbl %al, %eax
cmpl $35, %eax
je LBB15_9
## %bb.8: ## in Loop: Header=BB15_7 Depth=2
movq -24(%rbp), %rdi
callq _TopAndPopOp
movsbl %al, %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB15_7
LBB15_9: ## in Loop: Header=BB15_1 Depth=1
jmp LBB15_19
LBB15_10: ## in Loop: Header=BB15_5 Depth=2
movq -32(%rbp), %rax
movsbl (%rax), %edi
callq _isdigit
cmpl $0, %eax
je LBB15_12
## %bb.11: ## in Loop: Header=BB15_5 Depth=2
leaq -32(%rbp), %rdi
callq _getvalue
movl %eax, %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB15_18
LBB15_12: ## in Loop: Header=BB15_5 Depth=2
movq -24(%rbp), %rdi
callq _TopOp
movq -32(%rbp), %rcx
movsbl (%rcx), %esi
movsbl %al, %edi
callq _precede
movsbl %al, %eax
movl %eax, -44(%rbp) ## 4-byte Spill
subl $60, %eax
je LBB15_13
jmp LBB15_21
LBB15_21: ## in Loop: Header=BB15_5 Depth=2
movl -44(%rbp), %eax ## 4-byte Reload
subl $61, %eax
je LBB15_15
jmp LBB15_22
LBB15_22: ## in Loop: Header=BB15_5 Depth=2
movl -44(%rbp), %eax ## 4-byte Reload
subl $62, %eax
je LBB15_14
jmp LBB15_16
LBB15_13: ## in Loop: Header=BB15_5 Depth=2
movq -24(%rbp), %rdi
movq -32(%rbp), %rax
movsbl (%rax), %esi
callq _PushOp
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB15_17
LBB15_14: ## in Loop: Header=BB15_5 Depth=2
movq -24(%rbp), %rdi
callq _TopAndPopOp
movsbl %al, %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB15_17
LBB15_15: ## in Loop: Header=BB15_5 Depth=2
movq -24(%rbp), %rdi
callq _Pop
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
LBB15_16: ## in Loop: Header=BB15_5 Depth=2
jmp LBB15_17
LBB15_17: ## in Loop: Header=BB15_5 Depth=2
jmp LBB15_18
LBB15_18: ## in Loop: Header=BB15_5 Depth=2
jmp LBB15_5
LBB15_19: ## in Loop: Header=BB15_1 Depth=1
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rdi
callq _EmptyStack
movq -24(%rbp), %rdi
callq _EmptyStack
movq -40(%rbp), %rdi
callq _free
jmp LBB15_1
LBB15_20:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s"
L_.str.1: ## @.str.1
.asciz "%c"
L_.str.2: ## @.str.2
.asciz "%d"
L_.str.3: ## @.str.3
.asciz "\n"
.subsections_via_symbols
| the_stack_data/791706.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fdt_check_header ; -- Begin function fdt_check_header
.p2align 2
_fdt_check_header: ; @fdt_check_header
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
mov w0, #-1
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 _fdt_check_header ## -- Begin function fdt_check_header
.p2align 4, 0x90
_fdt_check_header: ## @fdt_check_header
.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 $4294967295, %eax ## imm = 0xFFFFFFFF
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/232955685.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _bad_int_size_is_32 ; -- Begin function bad_int_size_is_32
.p2align 2
_bad_int_size_is_32: ; @bad_int_size_is_32
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
; implicit-def: $w8
mov w9, #-2147483648
str w9, [sp, #12]
str w8, [sp, #8]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, eq
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB0_2
LBB0_2:
ldr w8, [sp, #4] ; 4-byte Folded Reload
and w0, w8, #0x1
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _int_size_is_32a ; -- Begin function int_size_is_32a
.p2align 2
_int_size_is_32a: ; @int_size_is_32a
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
mov w8, #-2147483648
str w8, [sp, #12]
str wzr, [sp, #8]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, eq
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB1_2
LBB1_2:
ldr w8, [sp, #4] ; 4-byte Folded Reload
and w0, w8, #0x1
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _int_size_is_32b ; -- Begin function int_size_is_32b
.p2align 2
_int_size_is_32b: ; @int_size_is_32b
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
mov w8, #-2147483648
str w8, [sp, #12]
str wzr, [sp, #8]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, eq
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB2_2
LBB2_2:
ldr w8, [sp, #4] ; 4-byte Folded Reload
and w0, w8, #0x1
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, #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]
bl _int_size_is_32a
subs w8, w0, #0
cset w9, eq
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_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, #25
adrp x3, l_.str.1@PAGE
add x3, x3, l_.str.1@PAGEOFF
bl ___assert_rtn
LBB3_2:
b LBB3_3
LBB3_3:
bl _int_size_is_32b
subs w8, w0, #0
cset w9, eq
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_5
b LBB3_4
LBB3_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, #26
adrp x3, l_.str.2@PAGE
add x3, x3, l_.str.2@PAGEOFF
bl ___assert_rtn
LBB3_5:
b LBB3_6
LBB3_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 "218894453.c"
l_.str.1: ; @.str.1
.asciz "int_size_is_32a()"
l_.str.2: ; @.str.2
.asciz "int_size_is_32b()"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _bad_int_size_is_32 ## -- Begin function bad_int_size_is_32
.p2align 4, 0x90
_bad_int_size_is_32: ## @bad_int_size_is_32
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $-2147483648, -4(%rbp) ## imm = 0x80000000
## implicit-def: $eax
movl %eax, -8(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, -4(%rbp)
movb %al, -9(%rbp) ## 1-byte Spill
je LBB0_2
## %bb.1:
cmpl $0, -8(%rbp)
setne %al
xorb $-1, %al
movb %al, -9(%rbp) ## 1-byte Spill
LBB0_2:
movb -9(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _int_size_is_32a ## -- Begin function int_size_is_32a
.p2align 4, 0x90
_int_size_is_32a: ## @int_size_is_32a
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $-2147483648, -4(%rbp) ## imm = 0x80000000
movl $0, -8(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, -4(%rbp)
movb %al, -9(%rbp) ## 1-byte Spill
je LBB1_2
## %bb.1:
cmpl $0, -8(%rbp)
setne %al
xorb $-1, %al
movb %al, -9(%rbp) ## 1-byte Spill
LBB1_2:
movb -9(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _int_size_is_32b ## -- Begin function int_size_is_32b
.p2align 4, 0x90
_int_size_is_32b: ## @int_size_is_32b
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $-2147483648, -4(%rbp) ## imm = 0x80000000
movl $0, -8(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, -4(%rbp)
movb %al, -9(%rbp) ## 1-byte Spill
je LBB2_2
## %bb.1:
cmpl $0, -8(%rbp)
setne %al
xorb $-1, %al
movb %al, -9(%rbp) ## 1-byte Spill
LBB2_2:
movb -9(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %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)
callq _int_size_is_32a
cmpl $0, %eax
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_2
## %bb.1:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rcx
movl $25, %edx
callq ___assert_rtn
LBB3_2:
jmp LBB3_3
LBB3_3:
callq _int_size_is_32b
cmpl $0, %eax
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_5
## %bb.4:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.2(%rip), %rcx
movl $26, %edx
callq ___assert_rtn
LBB3_5:
jmp LBB3_6
LBB3_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 "218894453.c"
L_.str.1: ## @.str.1
.asciz "int_size_is_32a()"
L_.str.2: ## @.str.2
.asciz "int_size_is_32b()"
.subsections_via_symbols
| the_stack_data/218894453.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _convToDeci ; -- Begin function convToDeci
.p2align 2
_convToDeci: ; @convToDeci
.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]
stur w1, [x29, #-8]
stur wzr, [x29, #-12]
str wzr, [sp, #16]
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_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
mov w10, #10
str w10, [sp, #4] ; 4-byte Folded Spill
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
scvtf d0, w8
str d0, [sp, #8] ; 8-byte Folded Spill
ldur w8, [x29, #-4]
add w8, w8, #1
scvtf d0, w8
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
bl _pow
ldr w9, [sp, #4] ; 4-byte Folded Reload
fmov d1, d0
ldr d0, [sp, #8] ; 8-byte Folded Reload
ldur s3, [x29, #-12]
; implicit-def: $d2
fmov s2, s3
sshll.2d v2, v2, #0
; kill: def $d2 killed $d2 killed $q2
scvtf d2, d2
fmadd d0, d0, d1, d2
fcvtzs w8, d0
stur w8, [x29, #-12]
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
ldur w8, [x29, #-8]
sdiv w8, w8, w9
stur w8, [x29, #-8]
b LBB0_1
LBB0_3:
ldur w0, [x29, #-12]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _deciToHexa ; -- Begin function deciToHexa
.p2align 2
_deciToHexa: ; @deciToHexa
.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, #0
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
b LBB1_5
LBB1_2:
ldur w8, [x29, #-4]
mov w9, #16
stur w9, [x29, #-12] ; 4-byte Folded Spill
sdiv w0, w8, w9
bl _deciToHexa
ldur w10, [x29, #-12] ; 4-byte Folded Reload
ldur w8, [x29, #-4]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
stur w8, [x29, #-8]
ldur w8, [x29, #-8]
subs w8, w8, #10
cset w8, lt
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
ldur w8, [x29, #-8]
subs w8, w8, #10
add w10, w8, #65
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB1_5
LBB1_4:
ldur w9, [x29, #-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
b LBB1_5
LBB1_5:
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
stur wzr, [x29, #-4]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
mov x9, sp
sub x8, x29, #12
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldur w8, [x29, #-8]
subs w8, w8, #9
cset w8, eq
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldur w0, [x29, #-8]
ldur w1, [x29, #-12]
bl _convToDeci
str w0, [sp, #16]
b LBB2_3
LBB2_2:
ldur w8, [x29, #-12]
str w8, [sp, #16]
b LBB2_3
LBB2_3:
ldr w0, [sp, #16]
bl _deciToHexa
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 "%c"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "%1d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _convToDeci ## -- Begin function convToDeci
.p2align 4, 0x90
_convToDeci: ## @convToDeci
.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 $0, -12(%rbp)
movl $0, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -8(%rbp)
jle LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
cvtsi2sd %edx, %xmm0
movsd %xmm0, -24(%rbp) ## 8-byte Spill
movl -4(%rbp), %eax
addl $1, %eax
cvtsi2sd %eax, %xmm0
cvtsi2sdl -16(%rbp), %xmm1
callq _pow
movaps %xmm0, %xmm2
movsd -24(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
cvtsi2sdl -12(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -12(%rbp)
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
movl -8(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_3:
movl -12(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _deciToHexa ## -- Begin function deciToHexa
.p2align 4, 0x90
_deciToHexa: ## @deciToHexa
.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 LBB1_2
## %bb.1:
jmp LBB1_5
LBB1_2:
movl -4(%rbp), %eax
movl $16, %ecx
cltd
idivl %ecx
movl %eax, %edi
callq _deciToHexa
movl -4(%rbp), %eax
movl $16, %ecx
cltd
idivl %ecx
movl %edx, -8(%rbp)
cmpl $10, -8(%rbp)
jl LBB1_4
## %bb.3:
movl -8(%rbp), %esi
subl $10, %esi
addl $65, %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB1_5
LBB1_4:
movl -8(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
LBB1_5:
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)
leaq L_.str.2(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.1(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $9, -8(%rbp)
je LBB2_2
## %bb.1:
movl -8(%rbp), %edi
movl -12(%rbp), %esi
callq _convToDeci
movl %eax, -16(%rbp)
jmp LBB2_3
LBB2_2:
movl -12(%rbp), %eax
movl %eax, -16(%rbp)
LBB2_3:
movl -16(%rbp), %edi
callq _deciToHexa
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%c"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "%1d"
.subsections_via_symbols
| the_stack_data/130648.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _maximum ; -- Begin function maximum
.p2align 2
_maximum: ; @maximum
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #28]
str w1, [sp, #24]
ldrsw x8, [sp, #28]
str x8, [sp, #16]
ldrsw x9, [sp, #24]
ldr x8, [sp, #16]
subs x8, x8, x9
str x8, [sp, #16]
ldr x8, [sp, #16]
asr x8, x8, #63
and x8, x8, #0x1
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #12]
ldr w8, [sp, #28]
ldr w9, [sp, #12]
eor w9, w9, #0x1
mul w8, w8, w9
ldr w9, [sp, #24]
ldr w10, [sp, #12]
mul w9, w9, w10
orr w0, w8, w9
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 _maximum ## -- Begin function maximum
.p2align 4, 0x90
_maximum: ## @maximum
.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)
movslq -4(%rbp), %rax
movq %rax, -16(%rbp)
movslq -8(%rbp), %rcx
movq -16(%rbp), %rax
subq %rcx, %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
sarq $63, %rax
andq $1, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -20(%rbp)
movl -4(%rbp), %eax
movl -20(%rbp), %ecx
xorl $1, %ecx
imull %ecx, %eax
movl -8(%rbp), %ecx
imull -20(%rbp), %ecx
orl %ecx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/496726.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_bass_install ; -- Begin function test_bass_install
.p2align 2
_test_bass_install: ; @test_bass_install
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x0, [sp, #8]
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 _test_bass_install ## -- Begin function test_bass_install
.p2align 4, 0x90
_test_bass_install: ## @test_bass_install
.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
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/179830841.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:
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]
stur x2, [x29, #-24]
str x3, [sp, #32]
ldr x8, [sp, #32]
str x8, [sp, #8]
ldur x8, [x29, #-24]
str x8, [sp, #24]
adrp x8, _swapi@PAGE
add x8, x8, _swapi@PAGEOFF
str x8, [sp, #16]
ldur x8, [x29, #-8]
ldur x9, [x29, #-24]
orr x8, x8, x9
mov x10, #8
udiv x9, x8, x10
mul x9, x9, x10
subs x8, x8, x9
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _swapb@PAGE
add x8, x8, _swapb@PAGEOFF
str x8, [sp, #16]
b LBB0_2
LBB0_2:
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
add x2, sp, #8
bl _qsorts
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function swapi
_swapi: ; @swapi
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #40]
str x1, [sp, #32]
str x2, [sp, #24]
ldr x8, [sp, #40]
str x8, [sp, #16]
ldr x8, [sp, #32]
str x8, [sp, #8]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
str x8, [sp]
ldr x8, [sp, #8]
ldr x8, [x8]
ldr x9, [sp, #16]
add x10, x9, #8
str x10, [sp, #16]
str x8, [x9]
ldr x8, [sp]
ldr x9, [sp, #8]
add x10, x9, #8
str x10, [sp, #8]
str x8, [x9]
ldr x8, [sp, #24]
subs x8, x8, #8
str x8, [sp, #24]
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_1
b LBB1_3
LBB1_3:
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function swapb
_swapb: ; @swapb
.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]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
ldrb w8, [x8]
strb w8, [sp, #7]
ldr x8, [sp, #16]
ldrb w8, [x8]
ldr x9, [sp, #24]
add x10, x9, #1
str x10, [sp, #24]
strb w8, [x9]
ldrb w8, [sp, #7]
ldr x9, [sp, #16]
add x10, x9, #1
str x10, [sp, #16]
strb w8, [x9]
ldr x8, [sp, #8]
subs x8, x8, #1
str x8, [sp, #8]
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_1
b LBB2_3
LBB2_3:
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function qsorts
_qsorts: ; @qsorts
.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]
ldur x8, [x29, #-24]
ldr x8, [x8, #16]
str x8, [sp, #40]
b LBB3_1
LBB3_1: ; =>This Loop Header: Depth=1
; Child Loop BB3_6 Depth 2
; Child Loop BB3_7 Depth 3
; Child Loop BB3_12 Depth 3
ldur x8, [x29, #-16]
subs x8, x8, #1
cset w8, le
tbnz w8, #0, LBB3_23
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldur x8, [x29, #-16]
subs x8, x8, #10
cset w8, le
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
bl _pivot
str x0, [sp, #32]
b LBB3_5
LBB3_4: ; in Loop: Header=BB3_1 Depth=1
ldur x8, [x29, #-8]
ldur x9, [x29, #-16]
asr x9, x9, #1
ldr x10, [sp, #40]
mul x9, x9, x10
add x8, x8, x9
str x8, [sp, #32]
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_1 Depth=1
ldur x8, [x29, #-24]
ldr x8, [x8, #8]
ldur x0, [x29, #-8]
ldr x1, [sp, #32]
ldr x2, [sp, #40]
blr x8
ldur x8, [x29, #-8]
str x8, [sp, #32]
ldur x8, [x29, #-8]
ldur x9, [x29, #-16]
ldr x10, [sp, #40]
mul x9, x9, x10
add x8, x8, x9
str x8, [sp, #16]
ldr x8, [sp, #16]
str x8, [sp, #24]
b LBB3_6
LBB3_6: ; Parent Loop BB3_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB3_7 Depth 3
; Child Loop BB3_12 Depth 3
b LBB3_7
LBB3_7: ; Parent Loop BB3_1 Depth=1
; Parent Loop BB3_6 Depth=2
; => This Inner Loop Header: Depth=3
ldr x9, [sp, #40]
ldr x8, [sp, #32]
add x8, x8, x9
str x8, [sp, #32]
b LBB3_8
LBB3_8: ; in Loop: Header=BB3_7 Depth=3
ldr x8, [sp, #32]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, hs
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB3_10
b LBB3_9
LBB3_9: ; in Loop: Header=BB3_7 Depth=3
ldur x8, [x29, #-24]
ldr x8, [x8]
ldr x0, [sp, #32]
ldur x1, [x29, #-8]
blr x8
subs w8, w0, #0
cset w8, lt
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB3_10
LBB3_10: ; in Loop: Header=BB3_7 Depth=3
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbnz w8, #0, LBB3_7
b LBB3_11
LBB3_11: ; in Loop: Header=BB3_6 Depth=2
b LBB3_12
LBB3_12: ; Parent Loop BB3_1 Depth=1
; Parent Loop BB3_6 Depth=2
; => This Inner Loop Header: Depth=3
ldr x9, [sp, #40]
ldr x8, [sp, #24]
subs x8, x8, x9
str x8, [sp, #24]
b LBB3_13
LBB3_13: ; in Loop: Header=BB3_12 Depth=3
ldr x8, [sp, #24]
ldur x9, [x29, #-8]
subs x8, x8, x9
cset w8, ls
mov w9, #0
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB3_15
b LBB3_14
LBB3_14: ; in Loop: Header=BB3_12 Depth=3
ldur x8, [x29, #-24]
ldr x8, [x8]
ldr x0, [sp, #24]
ldur x1, [x29, #-8]
blr x8
subs w8, w0, #0
cset w8, gt
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB3_15
LBB3_15: ; in Loop: Header=BB3_12 Depth=3
ldr w8, [sp, #8] ; 4-byte Folded Reload
tbnz w8, #0, LBB3_12
b LBB3_16
LBB3_16: ; in Loop: Header=BB3_6 Depth=2
ldr x8, [sp, #24]
ldr x9, [sp, #32]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB3_18
b LBB3_17
LBB3_17: ; in Loop: Header=BB3_1 Depth=1
b LBB3_19
LBB3_18: ; in Loop: Header=BB3_6 Depth=2
ldur x8, [x29, #-24]
ldr x8, [x8, #8]
ldr x0, [sp, #32]
ldr x1, [sp, #24]
ldr x2, [sp, #40]
blr x8
b LBB3_6
LBB3_19: ; in Loop: Header=BB3_1 Depth=1
ldur x8, [x29, #-24]
ldr x8, [x8, #8]
ldur x0, [x29, #-8]
ldr x1, [sp, #24]
ldr x2, [sp, #40]
blr x8
ldr x8, [sp, #24]
ldur x9, [x29, #-8]
subs x8, x8, x9
ldr x9, [sp, #40]
sdiv x8, x8, x9
stur x8, [x29, #-32]
ldur x8, [x29, #-16]
ldur x9, [x29, #-32]
subs x8, x8, x9
subs x8, x8, #1
stur x8, [x29, #-16]
ldur x8, [x29, #-32]
ldur x9, [x29, #-16]
subs x8, x8, x9
cset w8, lt
tbnz w8, #0, LBB3_21
b LBB3_20
LBB3_20: ; in Loop: Header=BB3_1 Depth=1
ldur x0, [x29, #-8]
ldur x1, [x29, #-32]
ldur x2, [x29, #-24]
bl _qsorts
ldur x8, [x29, #-32]
add x8, x8, #1
ldr x9, [sp, #40]
mul x9, x8, x9
ldur x8, [x29, #-8]
add x8, x8, x9
stur x8, [x29, #-8]
b LBB3_22
LBB3_21: ; in Loop: Header=BB3_1 Depth=1
ldur x8, [x29, #-8]
ldur x9, [x29, #-32]
add x9, x9, #1
ldr x10, [sp, #40]
mul x9, x9, x10
add x0, x8, x9
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
bl _qsorts
ldur x8, [x29, #-32]
stur x8, [x29, #-16]
b LBB3_22
LBB3_22: ; in Loop: Header=BB3_1 Depth=1
b LBB3_1
LBB3_23:
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function pivot
_pivot: ; @pivot
.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, #-16]
stur x1, [x29, #-24]
str x2, [sp, #32]
ldur x8, [x29, #-24]
mov x9, #6
sdiv x8, x8, x9
ldr x9, [sp, #32]
ldr x9, [x9, #16]
mul x8, x8, x9
str x8, [sp, #24]
ldur x8, [x29, #-16]
ldr x9, [sp, #24]
add x8, x8, x9
str x8, [sp, #16]
ldr x9, [sp, #24]
ldr x8, [sp, #24]
add x8, x8, x9
str x8, [sp, #24]
ldr x8, [sp, #16]
ldr x9, [sp, #24]
add x8, x8, x9
str x8, [sp, #8]
ldr x8, [sp, #8]
ldr x9, [sp, #24]
add x8, x8, x9
str x8, [sp]
ldr x8, [sp, #32]
ldr x8, [x8]
ldr x0, [sp, #16]
ldr x1, [sp, #8]
blr x8
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB4_6
b LBB4_1
LBB4_1:
ldr x8, [sp, #32]
ldr x8, [x8]
ldr x0, [sp, #16]
ldr x1, [sp]
blr x8
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB4_5
b LBB4_2
LBB4_2:
ldr x8, [sp, #32]
ldr x8, [x8]
ldr x0, [sp, #8]
ldr x1, [sp]
blr x8
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB4_4
b LBB4_3
LBB4_3:
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB4_11
LBB4_4:
ldr x8, [sp]
stur x8, [x29, #-8]
b LBB4_11
LBB4_5:
ldr x8, [sp, #16]
stur x8, [x29, #-8]
b LBB4_11
LBB4_6:
ldr x8, [sp, #32]
ldr x8, [x8]
ldr x0, [sp, #8]
ldr x1, [sp]
blr x8
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB4_10
b LBB4_7
LBB4_7:
ldr x8, [sp, #32]
ldr x8, [x8]
ldr x0, [sp, #16]
ldr x1, [sp]
blr x8
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB4_9
b LBB4_8
LBB4_8:
ldr x8, [sp, #16]
stur x8, [x29, #-8]
b LBB4_11
LBB4_9:
ldr x8, [sp]
stur x8, [x29, #-8]
b LBB4_11
LBB4_10:
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB4_11
LBB4_11:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.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 $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq -32(%rbp), %rax
movq %rax, -56(%rbp)
movq -24(%rbp), %rax
movq %rax, -40(%rbp)
leaq _swapi(%rip), %rax
movq %rax, -48(%rbp)
movq -8(%rbp), %rax
orq -24(%rbp), %rax
andq $7, %rax
cmpq $0, %rax
je LBB0_2
## %bb.1:
leaq _swapb(%rip), %rax
movq %rax, -48(%rbp)
LBB0_2:
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
leaq -56(%rbp), %rdx
callq _qsorts
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function swapi
_swapi: ## @swapi
.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
movq %rax, -32(%rbp)
movq -16(%rbp), %rax
movq %rax, -40(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
movq -40(%rbp), %rax
movq (%rax), %rcx
movq -32(%rbp), %rax
movq %rax, %rdx
addq $8, %rdx
movq %rdx, -32(%rbp)
movq %rcx, (%rax)
movq -48(%rbp), %rcx
movq -40(%rbp), %rax
movq %rax, %rdx
addq $8, %rdx
movq %rdx, -40(%rbp)
movq %rcx, (%rax)
movq -24(%rbp), %rax
subq $8, %rax
movq %rax, -24(%rbp)
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
cmpq $0, -24(%rbp)
jne LBB1_1
## %bb.3:
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function swapb
_swapb: ## @swapb
.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)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movb (%rax), %al
movb %al, -25(%rbp)
movq -16(%rbp), %rax
movb (%rax), %cl
movq -8(%rbp), %rax
movq %rax, %rdx
addq $1, %rdx
movq %rdx, -8(%rbp)
movb %cl, (%rax)
movb -25(%rbp), %cl
movq -16(%rbp), %rax
movq %rax, %rdx
addq $1, %rdx
movq %rdx, -16(%rbp)
movb %cl, (%rax)
movq -24(%rbp), %rax
addq $-1, %rax
movq %rax, -24(%rbp)
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
cmpq $0, -24(%rbp)
jne LBB2_1
## %bb.3:
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function qsorts
_qsorts: ## @qsorts
.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 %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -24(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -40(%rbp)
LBB3_1: ## =>This Loop Header: Depth=1
## Child Loop BB3_6 Depth 2
## Child Loop BB3_7 Depth 3
## Child Loop BB3_12 Depth 3
cmpq $1, -16(%rbp)
jle LBB3_23
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
cmpq $10, -16(%rbp)
jle LBB3_4
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
callq _pivot
movq %rax, -48(%rbp)
jmp LBB3_5
LBB3_4: ## in Loop: Header=BB3_1 Depth=1
movq -8(%rbp), %rax
movq -16(%rbp), %rcx
sarq $1, %rcx
imulq -40(%rbp), %rcx
addq %rcx, %rax
movq %rax, -48(%rbp)
LBB3_5: ## in Loop: Header=BB3_1 Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq -8(%rbp), %rdi
movq -48(%rbp), %rsi
movq -40(%rbp), %rdx
callq *%rax
movq -8(%rbp), %rax
movq %rax, -48(%rbp)
movq -8(%rbp), %rax
movq -16(%rbp), %rcx
imulq -40(%rbp), %rcx
addq %rcx, %rax
movq %rax, -64(%rbp)
movq -64(%rbp), %rax
movq %rax, -56(%rbp)
LBB3_6: ## Parent Loop BB3_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB3_7 Depth 3
## Child Loop BB3_12 Depth 3
jmp LBB3_7
LBB3_7: ## Parent Loop BB3_1 Depth=1
## Parent Loop BB3_6 Depth=2
## => This Inner Loop Header: Depth=3
movq -40(%rbp), %rax
addq -48(%rbp), %rax
movq %rax, -48(%rbp)
## %bb.8: ## in Loop: Header=BB3_7 Depth=3
movq -48(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq -64(%rbp), %rcx
movb %al, -65(%rbp) ## 1-byte Spill
jae LBB3_10
## %bb.9: ## in Loop: Header=BB3_7 Depth=3
movq -24(%rbp), %rax
movq (%rax), %rax
movq -48(%rbp), %rdi
movq -8(%rbp), %rsi
callq *%rax
cmpl $0, %eax
setl %al
movb %al, -65(%rbp) ## 1-byte Spill
LBB3_10: ## in Loop: Header=BB3_7 Depth=3
movb -65(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB3_7
## %bb.11: ## in Loop: Header=BB3_6 Depth=2
jmp LBB3_12
LBB3_12: ## Parent Loop BB3_1 Depth=1
## Parent Loop BB3_6 Depth=2
## => This Inner Loop Header: Depth=3
movq -40(%rbp), %rdx
movq -56(%rbp), %rax
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -56(%rbp)
## %bb.13: ## in Loop: Header=BB3_12 Depth=3
movq -56(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq -8(%rbp), %rcx
movb %al, -66(%rbp) ## 1-byte Spill
jbe LBB3_15
## %bb.14: ## in Loop: Header=BB3_12 Depth=3
movq -24(%rbp), %rax
movq (%rax), %rax
movq -56(%rbp), %rdi
movq -8(%rbp), %rsi
callq *%rax
cmpl $0, %eax
setg %al
movb %al, -66(%rbp) ## 1-byte Spill
LBB3_15: ## in Loop: Header=BB3_12 Depth=3
movb -66(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB3_12
## %bb.16: ## in Loop: Header=BB3_6 Depth=2
movq -56(%rbp), %rax
cmpq -48(%rbp), %rax
jae LBB3_18
## %bb.17: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_19
LBB3_18: ## in Loop: Header=BB3_6 Depth=2
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq -48(%rbp), %rdi
movq -56(%rbp), %rsi
movq -40(%rbp), %rdx
callq *%rax
jmp LBB3_6
LBB3_19: ## in Loop: Header=BB3_1 Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq -8(%rbp), %rdi
movq -56(%rbp), %rsi
movq -40(%rbp), %rdx
callq *%rax
movq -56(%rbp), %rax
movq -8(%rbp), %rcx
subq %rcx, %rax
cqto
idivq -40(%rbp)
movq %rax, -32(%rbp)
movq -16(%rbp), %rax
subq -32(%rbp), %rax
subq $1, %rax
movq %rax, -16(%rbp)
movq -32(%rbp), %rax
cmpq -16(%rbp), %rax
jl LBB3_21
## %bb.20: ## in Loop: Header=BB3_1 Depth=1
movq -8(%rbp), %rdi
movq -32(%rbp), %rsi
movq -24(%rbp), %rdx
callq _qsorts
movq -32(%rbp), %rax
addq $1, %rax
imulq -40(%rbp), %rax
addq -8(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB3_22
LBB3_21: ## in Loop: Header=BB3_1 Depth=1
movq -8(%rbp), %rdi
movq -32(%rbp), %rax
addq $1, %rax
imulq -40(%rbp), %rax
addq %rax, %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
callq _qsorts
movq -32(%rbp), %rax
movq %rax, -16(%rbp)
LBB3_22: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_1
LBB3_23:
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function pivot
_pivot: ## @pivot
.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 %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq -24(%rbp), %rax
movl $6, %ecx
cqto
idivq %rcx
movq -32(%rbp), %rcx
imulq 16(%rcx), %rax
movq %rax, -40(%rbp)
movq -16(%rbp), %rax
addq -40(%rbp), %rax
movq %rax, -48(%rbp)
movq -40(%rbp), %rax
addq -40(%rbp), %rax
movq %rax, -40(%rbp)
movq -48(%rbp), %rax
addq -40(%rbp), %rax
movq %rax, -56(%rbp)
movq -56(%rbp), %rax
addq -40(%rbp), %rax
movq %rax, -64(%rbp)
movq -32(%rbp), %rax
movq (%rax), %rax
movq -48(%rbp), %rdi
movq -56(%rbp), %rsi
callq *%rax
cmpl $0, %eax
jge LBB4_6
## %bb.1:
movq -32(%rbp), %rax
movq (%rax), %rax
movq -48(%rbp), %rdi
movq -64(%rbp), %rsi
callq *%rax
cmpl $0, %eax
jge LBB4_5
## %bb.2:
movq -32(%rbp), %rax
movq (%rax), %rax
movq -56(%rbp), %rdi
movq -64(%rbp), %rsi
callq *%rax
cmpl $0, %eax
jge LBB4_4
## %bb.3:
movq -56(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB4_11
LBB4_4:
movq -64(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB4_11
LBB4_5:
movq -48(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB4_11
LBB4_6:
movq -32(%rbp), %rax
movq (%rax), %rax
movq -56(%rbp), %rdi
movq -64(%rbp), %rsi
callq *%rax
cmpl $0, %eax
jge LBB4_10
## %bb.7:
movq -32(%rbp), %rax
movq (%rax), %rax
movq -48(%rbp), %rdi
movq -64(%rbp), %rsi
callq *%rax
cmpl $0, %eax
jge LBB4_9
## %bb.8:
movq -48(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB4_11
LBB4_9:
movq -64(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB4_11
LBB4_10:
movq -56(%rbp), %rax
movq %rax, -8(%rbp)
LBB4_11:
movq -8(%rbp), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/412108.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _cal ; -- Begin function cal
.p2align 2
_cal: ; @cal
.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 w8, [x8]
stur w8, [x29, #-12]
ldur w9, [x29, #-12]
; 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 x0, #0
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, #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
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, #28] ; 4-byte Folded Spill
str wzr, [sp, #44]
sub x0, x29, #48
mov x2, #40
bl _memset
ldr w1, [sp, #28] ; 4-byte Folded Reload
add x0, sp, #48
mov x2, #80
bl _memset
str xzr, [sp, #32]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32]
subs x8, x8, #10
cset w8, hs
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x9, [sp, #32]
ldr x10, [sp, #32]
sub x8, x29, #48
; kill: def $w9 killed $w9 killed $x9
str w9, [x8, x10, lsl #2]
ldr x10, [sp, #32]
add x9, sp, #48
str x9, [sp, #8] ; 8-byte Folded Spill
add x0, x9, x10, lsl #3
ldr x9, [sp, #32]
add x3, x8, x9, lsl #2
mov x1, #0
str x1, [sp, #16] ; 8-byte Folded Spill
adrp x2, _cal@PAGE
add x2, x2, _cal@PAGEOFF
bl _pthread_create
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x1, [sp, #16] ; 8-byte Folded Reload
ldr x9, [sp, #32]
ldr x0, [x8, x9, lsl #3]
bl _pthread_join
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB1_1
LBB1_3:
ldr w8, [sp, #44]
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, LBB1_5
b LBB1_4
LBB1_4:
bl ___stack_chk_fail
LBB1_5:
ldr w0, [sp, #4] ; 4-byte Folded Reload
ldp x29, x30, [sp, #176] ; 16-byte Folded Reload
add sp, sp, #192
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _cal ## -- Begin function cal
.p2align 4, 0x90
_cal: ## @cal
.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
movl (%rax), %eax
movl %eax, -12(%rbp)
movl -12(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
## kill: def $rax killed $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 $160, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -132(%rbp)
leaq -48(%rbp), %rdi
xorl %esi, %esi
movl $40, %edx
callq _memset
leaq -128(%rbp), %rdi
xorl %esi, %esi
movl $80, %edx
callq _memset
movq $0, -144(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpq $10, -144(%rbp)
jae LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -144(%rbp), %rax
movl %eax, %ecx
movq -144(%rbp), %rax
movl %ecx, -48(%rbp,%rax,4)
movq -144(%rbp), %rax
leaq -128(%rbp), %rdi
shlq $3, %rax
addq %rax, %rdi
movq -144(%rbp), %rax
leaq -48(%rbp), %rcx
shlq $2, %rax
addq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
leaq _cal(%rip), %rdx
callq _pthread_create
movq -144(%rbp), %rax
movq -128(%rbp,%rax,8), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_join
movq -144(%rbp), %rax
addq $1, %rax
movq %rax, -144(%rbp)
jmp LBB1_1
LBB1_3:
movl -132(%rbp), %eax
movl %eax, -148(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_5
## %bb.4:
movl -148(%rbp), %eax ## 4-byte Reload
addq $160, %rsp
popq %rbp
retq
LBB1_5:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/60974.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/59512679.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]
mov w8, #12345
stur w8, [x29, #-8]
mov w8, #1049
movk w8, #16286, lsl #16
fmov s0, w8
stur s0, [x29, #-12]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur w9, [x29, #-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
str x0, [sp, #8] ; 8-byte Folded Spill
bl _printf
ldur w8, [x29, #-8]
subs w8, w8, #345
stur w8, [x29, #-8]
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
ldr x0, [sp, #8] ; 8-byte Folded Reload
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
bl _printf
ldur w8, [x29, #-8]
mov w9, #1000
sdiv w8, w8, w9
stur w8, [x29, #-8]
ldur w9, [x29, #-8]
; 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 s0, [x29, #-8]
scvtf s0, s0
stur s0, [x29, #-12]
ldur w9, [x29, #-8]
; 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 w8, [x29, #-8]
mov w9, #10
sdiv w8, w8, w9
stur w8, [x29, #-8]
ldur w9, [x29, #-8]
; 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
ldur s0, [x29, #-12]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
ldur s0, [x29, #-12]
fmov s1, #10.00000000
fdiv s0, s0, s1
stur s0, [x29, #-12]
ldur s0, [x29, #-12]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@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 "Practice 03\n"
l_.str.1: ; @.str.1
.asciz "%d "
l_.str.2: ; @.str.2
.asciz "- 345 = %d\n"
l_.str.3: ; @.str.3
.asciz "/ 1000 = %d\n"
l_.str.4: ; @.str.4
.asciz "(int) %d "
l_.str.5: ; @.str.5
.asciz "/ 10 = %d\n"
l_.str.6: ; @.str.6
.asciz "(float) %f "
l_.str.7: ; @.str.7
.asciz "/ 10 = %f\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 0x41200000 ## float 10
LCPI0_1:
.long 0x3f9e0419 ## float 1.23450005
.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 $12345, -8(%rbp) ## imm = 0x3039
movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -12(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %eax
subl $345, %eax ## imm = 0x159
movl %eax, -8(%rbp)
movl -8(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %eax
movl $1000, %ecx ## imm = 0x3E8
cltd
idivl %ecx
movl %eax, -8(%rbp)
movl -8(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
cvtsi2ssl -8(%rbp), %xmm0
movss %xmm0, -12(%rbp)
movl -8(%rbp), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, -8(%rbp)
movl -8(%rbp), %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.6(%rip), %rdi
movb $1, %al
callq _printf
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
divss %xmm1, %xmm0
movss %xmm0, -12(%rbp)
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.7(%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 "Practice 03\n"
L_.str.1: ## @.str.1
.asciz "%d "
L_.str.2: ## @.str.2
.asciz "- 345 = %d\n"
L_.str.3: ## @.str.3
.asciz "/ 1000 = %d\n"
L_.str.4: ## @.str.4
.asciz "(int) %d "
L_.str.5: ## @.str.5
.asciz "/ 10 = %d\n"
L_.str.6: ## @.str.6
.asciz "(float) %f "
L_.str.7: ## @.str.7
.asciz "/ 10 = %f\n"
.subsections_via_symbols
| the_stack_data/176706711.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _printarr ; -- Begin function printarr
.p2align 2
_printarr: ; @printarr
.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 LBB0_1
LBB0_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, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_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 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:
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
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
adrp x8, l___const.main.arr1@PAGE
add x8, x8, l___const.main.arr1@PAGEOFF
ldr x9, [x8]
stur x9, [x29, #-24]
ldr w8, [x8, #8]
stur w8, [x29, #-16]
adrp x8, l___const.main.arr2@PAGE
add x8, x8, l___const.main.arr2@PAGEOFF
ldr x9, [x8]
str x9, [sp, #40]
ldr w8, [x8, #8]
str w8, [sp, #48]
str wzr, [sp, #12]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #6
cset w8, ge
tbnz w8, #0, LBB1_7
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldrsw x9, [sp, #12]
sub x8, x29, #24
ldr w8, [x8, x9, lsl #2]
ldrsw x10, [sp, #12]
add x9, sp, #16
str w8, [x9, x10, lsl #2]
b LBB1_5
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #12]
subs w9, w8, #3
add x8, sp, #40
ldr w8, [x8, w9, sxtw #2]
ldrsw x10, [sp, #12]
add x9, sp, #16
str w8, [x9, x10, lsl #2]
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB1_1
LBB1_7:
add x0, sp, #16
mov w1, #6
bl _printarr
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_9
b LBB1_8
LBB1_8:
bl ___stack_chk_fail
LBB1_9:
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 "
.section __TEXT,__const
.p2align 2 ; @__const.main.arr1
l___const.main.arr1:
.long 1 ; 0x1
.long 2 ; 0x2
.long 3 ; 0x3
.p2align 2 ; @__const.main.arr2
l___const.main.arr2:
.long 4 ; 0x4
.long 5 ; 0x5
.long 6 ; 0x6
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _printarr ## -- Begin function printarr
.p2align 4, 0x90
_printarr: ## @printarr
.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)
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), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
## %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:
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)
movq l___const.main.arr1(%rip), %rax
movq %rax, -20(%rbp)
movl l___const.main.arr1+8(%rip), %eax
movl %eax, -12(%rbp)
movq l___const.main.arr2(%rip), %rax
movq %rax, -32(%rbp)
movl l___const.main.arr2+8(%rip), %eax
movl %eax, -24(%rbp)
movl $0, -68(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $6, -68(%rbp)
jge LBB1_7
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
cmpl $3, -68(%rbp)
jge LBB1_4
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movslq -68(%rbp), %rax
movl -20(%rbp,%rax,4), %ecx
movslq -68(%rbp), %rax
movl %ecx, -64(%rbp,%rax,4)
jmp LBB1_5
LBB1_4: ## in Loop: Header=BB1_1 Depth=1
movl -68(%rbp), %eax
subl $3, %eax
cltq
movl -32(%rbp,%rax,4), %ecx
movslq -68(%rbp), %rax
movl %ecx, -64(%rbp,%rax,4)
LBB1_5: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_6
LBB1_6: ## in Loop: Header=BB1_1 Depth=1
movl -68(%rbp), %eax
addl $1, %eax
movl %eax, -68(%rbp)
jmp LBB1_1
LBB1_7:
leaq -64(%rbp), %rdi
movl $6, %esi
callq _printarr
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_9
## %bb.8:
addq $80, %rsp
popq %rbp
retq
LBB1_9:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d "
.section __TEXT,__const
.p2align 2 ## @__const.main.arr1
l___const.main.arr1:
.long 1 ## 0x1
.long 2 ## 0x2
.long 3 ## 0x3
.p2align 2 ## @__const.main.arr2
l___const.main.arr2:
.long 4 ## 0x4
.long 5 ## 0x5
.long 6 ## 0x6
.subsections_via_symbols
| the_stack_data/20449988.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mm ; -- Begin function mm
.p2align 2
_mm: ; @mm
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #40]
str x1, [sp, #32]
str x2, [sp, #24]
str w3, [sp, #20]
str w4, [sp, #16]
str w5, [sp, #12]
str wzr, [sp]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
; Child Loop BB0_7 Depth 2
; Child Loop BB0_11 Depth 2
; Child Loop BB0_15 Depth 2
; Child Loop BB0_19 Depth 2
; Child Loop BB0_21 Depth 3
ldr w8, [sp]
ldr w9, [sp, #16]
subs w9, w9, #1
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_28
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
movi d0, #0000000000000000
str s0, [x8]
ldr x8, [sp, #40]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr s0, [x8]
ldr x8, [sp, #32]
ldr x8, [x8]
ldr s1, [x8]
ldr x8, [sp, #24]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr s2, [x8]
fmadd s0, s0, s1, s2
str s0, [x8]
mov w8, #1
str w8, [sp, #4]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #4]
ldr w9, [sp, #20]
subs w9, w9, #1
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #40]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldrsw x9, [sp, #4]
ldr s0, [x8, x9, lsl #2]
ldr x8, [sp, #32]
ldrsw x9, [sp, #4]
ldr x8, [x8, x9, lsl #3]
ldr s1, [x8]
ldr x8, [sp, #24]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr s2, [x8]
fmadd s0, s0, s1, s2
str s0, [x8]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
movi d0, #0000000000000000
str s0, [x8, #4]
ldr x8, [sp, #40]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr s0, [x8]
ldr x8, [sp, #32]
ldr x8, [x8]
ldr s1, [x8, #4]
ldr x8, [sp, #24]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr s2, [x8, #4]
fmadd s0, s0, s1, s2
str s0, [x8, #4]
mov w8, #1
str w8, [sp, #4]
b LBB0_7
LBB0_7: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #4]
ldr w9, [sp, #20]
subs w9, w9, #1
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_10
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=2
ldr x8, [sp, #40]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldrsw x9, [sp, #4]
ldr s0, [x8, x9, lsl #2]
ldr x8, [sp, #32]
ldrsw x9, [sp, #4]
ldr x8, [x8, x9, lsl #3]
ldr s1, [x8, #4]
ldr x8, [sp, #24]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr s2, [x8, #4]
fmadd s0, s0, s1, s2
str s0, [x8, #4]
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_7 Depth=2
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_7
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
movi d0, #0000000000000000
str s0, [x8, #8]
ldr x8, [sp, #40]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr s0, [x8]
ldr x8, [sp, #32]
ldr x8, [x8]
ldr s1, [x8, #8]
ldr x8, [sp, #24]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr s2, [x8, #8]
fmadd s0, s0, s1, s2
str s0, [x8, #8]
mov w8, #1
str w8, [sp, #4]
b LBB0_11
LBB0_11: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #4]
ldr w9, [sp, #20]
subs w9, w9, #1
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_14
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=2
ldr x8, [sp, #40]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldrsw x9, [sp, #4]
ldr s0, [x8, x9, lsl #2]
ldr x8, [sp, #32]
ldrsw x9, [sp, #4]
ldr x8, [x8, x9, lsl #3]
ldr s1, [x8, #8]
ldr x8, [sp, #24]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr s2, [x8, #8]
fmadd s0, s0, s1, s2
str s0, [x8, #8]
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_11 Depth=2
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_11
LBB0_14: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
movi d0, #0000000000000000
str s0, [x8, #12]
ldr x8, [sp, #40]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr s0, [x8]
ldr x8, [sp, #32]
ldr x8, [x8]
ldr s1, [x8, #12]
ldr x8, [sp, #24]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr s2, [x8, #12]
fmadd s0, s0, s1, s2
str s0, [x8, #12]
mov w8, #1
str w8, [sp, #4]
b LBB0_15
LBB0_15: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #4]
ldr w9, [sp, #20]
subs w9, w9, #1
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_18
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_15 Depth=2
ldr x8, [sp, #40]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldrsw x9, [sp, #4]
ldr s0, [x8, x9, lsl #2]
ldr x8, [sp, #32]
ldrsw x9, [sp, #4]
ldr x8, [x8, x9, lsl #3]
ldr s1, [x8, #12]
ldr x8, [sp, #24]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr s2, [x8, #12]
fmadd s0, s0, s1, s2
str s0, [x8, #12]
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_15 Depth=2
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_15
LBB0_18: ; in Loop: Header=BB0_1 Depth=1
mov w8, #4
str w8, [sp, #8]
b LBB0_19
LBB0_19: ; Parent Loop BB0_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_21 Depth 3
ldr w8, [sp, #8]
ldr w9, [sp, #12]
subs w9, w9, #1
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_26
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_19 Depth=2
ldr x8, [sp, #24]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldrsw x9, [sp, #8]
movi d0, #0000000000000000
str s0, [x8, x9, lsl #2]
ldr x8, [sp, #40]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr s0, [x8]
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsw x9, [sp, #8]
ldr s1, [x8, x9, lsl #2]
ldr x8, [sp, #24]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldrsw x9, [sp, #8]
add x8, x8, x9, lsl #2
ldr s2, [x8]
fmadd s0, s0, s1, s2
str s0, [x8]
mov w8, #1
str w8, [sp, #4]
b LBB0_21
LBB0_21: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_19 Depth=2
; => This Inner Loop Header: Depth=3
ldr w8, [sp, #4]
ldr w9, [sp, #20]
subs w9, w9, #1
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_24
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_21 Depth=3
ldr x8, [sp, #40]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldrsw x9, [sp, #4]
ldr s0, [x8, x9, lsl #2]
ldr x8, [sp, #32]
ldrsw x9, [sp, #4]
ldr x8, [x8, x9, lsl #3]
ldrsw x9, [sp, #8]
ldr s1, [x8, x9, lsl #2]
ldr x8, [sp, #24]
ldrsw x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldrsw x9, [sp, #8]
add x8, x8, x9, lsl #2
ldr s2, [x8]
fmadd s0, s0, s1, s2
str s0, [x8]
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_21 Depth=3
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_21
LBB0_24: ; in Loop: Header=BB0_19 Depth=2
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_19 Depth=2
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB0_19
LBB0_26: ; in Loop: Header=BB0_1 Depth=1
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp]
add w8, w8, #1
str w8, [sp]
b LBB0_1
LBB0_28:
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 _mm ## -- Begin function mm
.p2align 4, 0x90
_mm: ## @mm
.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)
movl %ecx, -28(%rbp)
movl %r8d, -32(%rbp)
movl %r9d, -36(%rbp)
movl $0, -48(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
## Child Loop BB0_7 Depth 2
## Child Loop BB0_11 Depth 2
## Child Loop BB0_15 Depth 2
## Child Loop BB0_19 Depth 2
## Child Loop BB0_21 Depth 3
movl -48(%rbp), %eax
movl -32(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jg LBB0_28
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
xorps %xmm0, %xmm0
movss %xmm0, (%rax)
movq -8(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -16(%rbp), %rax
movq (%rax), %rax
movss (%rax), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movq -24(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss (%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, (%rax)
movl $1, -44(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -44(%rbp), %eax
movl -28(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jg LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movq -8(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -44(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -16(%rbp), %rax
movslq -44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss (%rax), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movq -24(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss (%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, (%rax)
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_3
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
xorps %xmm0, %xmm0
movss %xmm0, 4(%rax)
movq -8(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -16(%rbp), %rax
movq (%rax), %rax
movss 4(%rax), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movq -24(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss 4(%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 4(%rax)
movl $1, -44(%rbp)
LBB0_7: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -44(%rbp), %eax
movl -28(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jg LBB0_10
## %bb.8: ## in Loop: Header=BB0_7 Depth=2
movq -8(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -44(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -16(%rbp), %rax
movslq -44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss 4(%rax), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movq -24(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss 4(%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 4(%rax)
## %bb.9: ## in Loop: Header=BB0_7 Depth=2
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_7
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
xorps %xmm0, %xmm0
movss %xmm0, 8(%rax)
movq -8(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -16(%rbp), %rax
movq (%rax), %rax
movss 8(%rax), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movq -24(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss 8(%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 8(%rax)
movl $1, -44(%rbp)
LBB0_11: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -44(%rbp), %eax
movl -28(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jg LBB0_14
## %bb.12: ## in Loop: Header=BB0_11 Depth=2
movq -8(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -44(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -16(%rbp), %rax
movslq -44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss 8(%rax), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movq -24(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss 8(%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 8(%rax)
## %bb.13: ## in Loop: Header=BB0_11 Depth=2
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_11
LBB0_14: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
xorps %xmm0, %xmm0
movss %xmm0, 12(%rax)
movq -8(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -16(%rbp), %rax
movq (%rax), %rax
movss 12(%rax), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movq -24(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss 12(%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 12(%rax)
movl $1, -44(%rbp)
LBB0_15: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -44(%rbp), %eax
movl -28(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jg LBB0_18
## %bb.16: ## in Loop: Header=BB0_15 Depth=2
movq -8(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -44(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -16(%rbp), %rax
movslq -44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss 12(%rax), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movq -24(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss 12(%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 12(%rax)
## %bb.17: ## in Loop: Header=BB0_15 Depth=2
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_15
LBB0_18: ## in Loop: Header=BB0_1 Depth=1
movl $4, -40(%rbp)
LBB0_19: ## Parent Loop BB0_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_21 Depth 3
movl -40(%rbp), %eax
movl -36(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jg LBB0_26
## %bb.20: ## in Loop: Header=BB0_19 Depth=2
movq -24(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -40(%rbp), %rcx
xorps %xmm0, %xmm0
movss %xmm0, (%rax,%rcx,4)
movq -8(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -16(%rbp), %rax
movq (%rax), %rax
movslq -40(%rbp), %rcx
movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movq -24(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -40(%rbp), %rcx
movss (%rax,%rcx,4), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, (%rax,%rcx,4)
movl $1, -44(%rbp)
LBB0_21: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_19 Depth=2
## => This Inner Loop Header: Depth=3
movl -44(%rbp), %eax
movl -28(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jg LBB0_24
## %bb.22: ## in Loop: Header=BB0_21 Depth=3
movq -8(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -44(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -16(%rbp), %rax
movslq -44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -40(%rbp), %rcx
movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movq -24(%rbp), %rax
movslq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -40(%rbp), %rcx
movss (%rax,%rcx,4), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, (%rax,%rcx,4)
## %bb.23: ## in Loop: Header=BB0_21 Depth=3
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_21
LBB0_24: ## in Loop: Header=BB0_19 Depth=2
jmp LBB0_25
LBB0_25: ## in Loop: Header=BB0_19 Depth=2
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_19
LBB0_26: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_27
LBB0_27: ## in Loop: Header=BB0_1 Depth=1
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
jmp LBB0_1
LBB0_28:
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/297073.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, _gt@GOTPAGE
ldr x8, [x8, _gt@GOTPAGEOFF]
ldr x9, [x8]
str x9, [sp, #8]
adrp x9, l_.str@PAGE
add x9, x9, l_.str@PAGEOFF
str x9, [x8]
ldr x8, [x8]
str x8, [sp]
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
adrp x8, _gt@GOTPAGE
ldr x8, [x8, _gt@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
mov w8, #0
str w8, [sp, #20] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _getenv
ldr x8, [sp, #8] ; 8-byte Folded Reload
str x0, [x8]
ldr x8, [x8]
stur x8, [x29, #-16]
bl _foo
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w0, [sp, #20] ; 4-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #24]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _gt,8,3 ; @gt
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "untaint"
l_.str.1: ; @.str.1
.asciz "gude"
.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 _gt@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq _gt@GOTPCREL(%rip), %rax
leaq L_.str(%rip), %rcx
movq %rcx, (%rax)
movq _gt@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -16(%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 $32, %rsp
movl $0, -4(%rbp)
leaq L_.str.1(%rip), %rdi
callq _getenv
movq %rax, %rcx
movq _gt@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _gt@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
callq _foo
movq _gt@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _gt,8,3 ## @gt
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "untaint"
L_.str.1: ## @.str.1
.asciz "gude"
.subsections_via_symbols
| the_stack_data/133199.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _plus ; -- Begin function plus
.p2align 2
_plus: ; @plus
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str w1, [sp, #8]
ldr w8, [sp, #12]
ldr w9, [sp, #8]
add w0, w8, w9
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _minus ; -- Begin function minus
.p2align 2
_minus: ; @minus
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str w1, [sp, #8]
ldr w8, [sp, #12]
ldr w9, [sp, #8]
subs w0, w8, w9
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _foo ; -- Begin function foo
.p2align 2
_foo: ; @foo
.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]
str w1, [sp, #8]
str x2, [sp]
ldr x8, [sp]
ldur w0, [x29, #-4]
ldr w1, [sp, #8]
blr x8
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _clever ; -- Begin function clever
.p2align 2
_clever: ; @clever
.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]
str w1, [sp, #8]
str x2, [sp]
ldur w0, [x29, #-4]
ldr w1, [sp, #8]
ldr x2, [sp]
bl _foo
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _moo ; -- Begin function moo
.p2align 2
_moo: ; @moo
.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
sturb w0, [x29, #-1]
stur w1, [x29, #-8]
stur w2, [x29, #-12]
adrp x8, _plus@PAGE
add x8, x8, _plus@PAGEOFF
str x8, [sp, #24]
adrp x8, _minus@PAGE
add x8, x8, _minus@PAGEOFF
str x8, [sp, #16]
; kill: def $x8 killed $xzr
str xzr, [sp, #8]
ldursb w8, [x29, #-1]
subs w8, w8, #43
cset w8, ne
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
ldr x8, [sp, #24]
str x8, [sp, #8]
b LBB4_5
LBB4_2:
ldursb w8, [x29, #-1]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB4_4
b LBB4_3
LBB4_3:
ldr x8, [sp, #16]
str x8, [sp, #8]
b LBB4_4
LBB4_4:
b LBB4_5
LBB4_5:
ldur w0, [x29, #-8]
ldur w1, [x29, #-12]
ldr x2, [sp, #8]
bl _clever
str w0, [sp, #4]
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _plus ## -- Begin function plus
.p2align 4, 0x90
_plus: ## @plus
.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 -4(%rbp), %eax
addl -8(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _minus ## -- Begin function minus
.p2align 4, 0x90
_minus: ## @minus
.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 -4(%rbp), %eax
subl -8(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.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)
movq %rdx, -16(%rbp)
movq -16(%rbp), %rax
movl -4(%rbp), %edi
movl -8(%rbp), %esi
callq *%rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _clever ## -- Begin function clever
.p2align 4, 0x90
_clever: ## @clever
.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)
movq %rdx, -16(%rbp)
movl -4(%rbp), %edi
movl -8(%rbp), %esi
movq -16(%rbp), %rdx
callq _foo
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _moo ## -- Begin function moo
.p2align 4, 0x90
_moo: ## @moo
.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
movb %dil, %al
movb %al, -1(%rbp)
movl %esi, -8(%rbp)
movl %edx, -12(%rbp)
leaq _plus(%rip), %rax
movq %rax, -24(%rbp)
leaq _minus(%rip), %rax
movq %rax, -32(%rbp)
movq $0, -40(%rbp)
movsbl -1(%rbp), %eax
cmpl $43, %eax
jne LBB4_2
## %bb.1:
movq -24(%rbp), %rax
movq %rax, -40(%rbp)
jmp LBB4_5
LBB4_2:
movsbl -1(%rbp), %eax
cmpl $45, %eax
jne LBB4_4
## %bb.3:
movq -32(%rbp), %rax
movq %rax, -40(%rbp)
LBB4_4:
jmp LBB4_5
LBB4_5:
movl -8(%rbp), %edi
movl -12(%rbp), %esi
movq -40(%rbp), %rdx
callq _clever
movl %eax, -44(%rbp)
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/51975.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__const
.globl $ld$add$os10.4$_bbb ; @"\01$ld$add$os10.4$_bbb"
$ld$add$os10.4$_bbb:
.byte 0 ; 0x0
.globl $ld$hide$os10.4$_aaa ; @"\01$ld$hide$os10.4$_aaa"
$ld$hide$os10.4$_aaa:
.byte 0 ; 0x0
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__const
.globl $ld$add$os10.4$_bbb ## @"\01$ld$add$os10.4$_bbb"
$ld$add$os10.4$_bbb:
.byte 0 ## 0x0
.globl $ld$hide$os10.4$_aaa ## @"\01$ld$hide$os10.4$_aaa"
$ld$hide$os10.4$_aaa:
.byte 0 ## 0x0
.subsections_via_symbols
| the_stack_data/346.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, _a@GOTPAGE
ldr x8, [x8, _a@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
adrp x8, _b@GOTPAGE
ldr x8, [x8, _b@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
adrp x8, _c@GOTPAGE
ldr x8, [x8, _c@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
stur wzr, [x29, #-16]
stur wzr, [x29, #-20]
stur wzr, [x29, #-24]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #4
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
stur wzr, [x29, #-12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
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 x8, [sp, #16] ; 8-byte Folded Reload
ldursw x9, [x29, #-12]
add x8, x8, x9, lsl #3
add x8, x8, #4
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _scanf
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldur w8, [x29, #-12]
ldursw x10, [x29, #-16]
mov x11, x10
add w11, w11, #1
stur w11, [x29, #-16]
lsl x10, x10, #3
str w8, [x9, x10]
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_1
LBB0_4:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@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
stur wzr, [x29, #-12]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
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 x8, [sp, #24] ; 8-byte Folded Reload
ldursw x9, [x29, #-12]
add x8, x8, x9, lsl #3
add x8, x8, #4
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _scanf
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldur w8, [x29, #-12]
ldursw x10, [x29, #-20]
mov x11, x10
add w11, w11, #1
stur w11, [x29, #-20]
lsl x10, x10, #3
str w8, [x9, x10]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_5
LBB0_8:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldur w8, [x29, #-4]
stur w8, [x29, #-12]
b LBB0_9
LBB0_9: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #1
cset w8, lt
tbnz w8, #0, LBB0_12
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldursw x10, [x29, #-12]
mov x9, x8
add x9, x9, x10, lsl #3
ldr s0, [x9, #4]
fcvt d0, s0
ldursw x9, [x29, #-12]
lsl x9, x9, #3
ldr w9, [x8, x9]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str d0, [x9]
str x8, [x9, #8]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_9 Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #1
stur w8, [x29, #-12]
b LBB0_9
LBB0_12:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr s0, [x8, #4]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
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
ldur w8, [x29, #-8]
stur w8, [x29, #-12]
b LBB0_13
LBB0_13: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #1
cset w8, lt
tbnz w8, #0, LBB0_16
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=1
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldursw x10, [x29, #-12]
mov x9, x8
add x9, x9, x10, lsl #3
ldr s0, [x9, #4]
fcvt d0, s0
ldursw x9, [x29, #-12]
lsl x9, x9, #3
ldr w9, [x8, x9]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str d0, [x9]
str x8, [x9, #8]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_13 Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #1
stur w8, [x29, #-12]
b LBB0_13
LBB0_16:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr s0, [x8, #4]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
ldur w8, [x29, #-4]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_26
b LBB0_17
LBB0_17:
stur wzr, [x29, #-12]
b LBB0_18
LBB0_18: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_21
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_18 Depth=1
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x10, [sp, #24] ; 8-byte Folded Reload
ldursw x12, [x29, #-12]
mov x11, x8
add x11, x11, x12, lsl #3
ldr s0, [x11, #4]
ldursw x11, [x29, #-12]
add x10, x10, x11, lsl #3
ldr s1, [x10, #4]
fadd s0, s0, s1
ldursw x11, [x29, #-24]
mov x10, x9
add x10, x10, x11, lsl #3
str s0, [x10, #4]
ldursw x10, [x29, #-12]
lsl x10, x10, #3
ldr w8, [x8, x10]
ldursw x10, [x29, #-24]
lsl x10, x10, #3
str w8, [x9, x10]
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_18 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_18
LBB0_21:
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_22
LBB0_22: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_25
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_22 Depth=1
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldursw x11, [x29, #-12]
mov x10, x8
add x10, x10, x11, lsl #3
ldr s0, [x10, #4]
ldursw x11, [x29, #-24]
mov x10, x9
add x10, x10, x11, lsl #3
str s0, [x10, #4]
ldursw x10, [x29, #-12]
lsl x10, x10, #3
ldr w8, [x8, x10]
ldursw x10, [x29, #-24]
lsl x10, x10, #3
str w8, [x9, x10]
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_22 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_22
LBB0_25:
b LBB0_35
LBB0_26:
stur wzr, [x29, #-12]
b LBB0_27
LBB0_27: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_30
b LBB0_28
LBB0_28: ; in Loop: Header=BB0_27 Depth=1
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x10, [sp, #24] ; 8-byte Folded Reload
ldursw x12, [x29, #-12]
mov x11, x8
add x11, x11, x12, lsl #3
ldr s0, [x11, #4]
ldursw x11, [x29, #-12]
add x10, x10, x11, lsl #3
ldr s1, [x10, #4]
fadd s0, s0, s1
ldursw x11, [x29, #-24]
mov x10, x9
add x10, x10, x11, lsl #3
str s0, [x10, #4]
ldursw x10, [x29, #-12]
lsl x10, x10, #3
ldr w8, [x8, x10]
ldursw x10, [x29, #-24]
lsl x10, x10, #3
str w8, [x9, x10]
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_27 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_27
LBB0_30:
ldur w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_31
LBB0_31: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_34
b LBB0_32
LBB0_32: ; in Loop: Header=BB0_31 Depth=1
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldursw x11, [x29, #-12]
mov x10, x8
add x10, x10, x11, lsl #3
ldr s0, [x10, #4]
ldursw x11, [x29, #-24]
mov x10, x9
add x10, x10, x11, lsl #3
str s0, [x10, #4]
ldursw x10, [x29, #-12]
lsl x10, x10, #3
ldr w8, [x8, x10]
ldursw x10, [x29, #-24]
lsl x10, x10, #3
str w8, [x9, x10]
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
b LBB0_33
LBB0_33: ; in Loop: Header=BB0_31 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_31
LBB0_34:
b LBB0_35
LBB0_35:
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
ldur w8, [x29, #-24]
subs w8, w8, #1
stur w8, [x29, #-12]
b LBB0_36
LBB0_36: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #1
cset w8, lt
tbnz w8, #0, LBB0_39
b LBB0_37
LBB0_37: ; in Loop: Header=BB0_36 Depth=1
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldursw x10, [x29, #-12]
mov x9, x8
add x9, x9, x10, lsl #3
ldr s0, [x9, #4]
fcvt d0, s0
ldursw x9, [x29, #-12]
lsl x9, x9, #3
ldr w9, [x8, x9]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str d0, [x9]
str x8, [x9, #8]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB0_38
LBB0_38: ; in Loop: Header=BB0_36 Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #1
stur w8, [x29, #-12]
b LBB0_36
LBB0_39:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr s0, [x8, #4]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
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 highest degree of the first polynomial : "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "\nEnter the coefficient of x^%d : "
l_.str.3: ; @.str.3
.asciz "%f"
.comm _a,80,2 ; @a
l_.str.4: ; @.str.4
.asciz "Enter the highest degree of the second polynomial : "
.comm _b,80,2 ; @b
l_.str.5: ; @.str.5
.asciz "\nFirst polynomial = "
l_.str.6: ; @.str.6
.asciz "%0.1fx^%d + "
l_.str.7: ; @.str.7
.asciz "%0.1f"
l_.str.8: ; @.str.8
.asciz "\n"
l_.str.9: ; @.str.9
.asciz "\nSecond polynomial = "
.comm _c,80,2 ; @c
l_.str.10: ; @.str.10
.asciz "\nPolynomial sum = "
.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, -16(%rbp)
movl $0, -20(%rbp)
movl $0, -24(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -4(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -4(%rbp), %eax
jg LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movslq -12(%rbp), %rax
movq _a@GOTPCREL(%rip), %rsi
shlq $3, %rax
addq %rax, %rsi
addq $4, %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _scanf
movl -12(%rbp), %edx
movl -16(%rbp), %eax
movl %eax, %ecx
addl $1, %ecx
movl %ecx, -16(%rbp)
movslq %eax, %rcx
movq _a@GOTPCREL(%rip), %rax
movl %edx, (%rax,%rcx,8)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_1
LBB0_4:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -12(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl -12(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movslq -12(%rbp), %rax
movq _b@GOTPCREL(%rip), %rsi
shlq $3, %rax
addq %rax, %rsi
addq $4, %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _scanf
movl -12(%rbp), %edx
movl -20(%rbp), %eax
movl %eax, %ecx
addl $1, %ecx
movl %ecx, -20(%rbp)
movslq %eax, %rcx
movq _b@GOTPCREL(%rip), %rax
movl %edx, (%rax,%rcx,8)
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_5
LBB0_8:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %eax
movl %eax, -12(%rbp)
LBB0_9: ## =>This Inner Loop Header: Depth=1
cmpl $1, -12(%rbp)
jl LBB0_12
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movslq -12(%rbp), %rcx
movq _a@GOTPCREL(%rip), %rax
movss 4(%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movslq -12(%rbp), %rcx
movq _a@GOTPCREL(%rip), %rax
movl (%rax,%rcx,8), %esi
leaq L_.str.6(%rip), %rdi
movb $1, %al
callq _printf
## %bb.11: ## in Loop: Header=BB0_9 Depth=1
movl -12(%rbp), %eax
addl $-1, %eax
movl %eax, -12(%rbp)
jmp LBB0_9
LBB0_12:
movq _a@GOTPCREL(%rip), %rax
movss 4(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.7(%rip), %rdi
movb $1, %al
callq _printf
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %eax
movl %eax, -12(%rbp)
LBB0_13: ## =>This Inner Loop Header: Depth=1
cmpl $1, -12(%rbp)
jl LBB0_16
## %bb.14: ## in Loop: Header=BB0_13 Depth=1
movslq -12(%rbp), %rcx
movq _b@GOTPCREL(%rip), %rax
movss 4(%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movslq -12(%rbp), %rcx
movq _b@GOTPCREL(%rip), %rax
movl (%rax,%rcx,8), %esi
leaq L_.str.6(%rip), %rdi
movb $1, %al
callq _printf
## %bb.15: ## in Loop: Header=BB0_13 Depth=1
movl -12(%rbp), %eax
addl $-1, %eax
movl %eax, -12(%rbp)
jmp LBB0_13
LBB0_16:
movq _b@GOTPCREL(%rip), %rax
movss 4(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.7(%rip), %rdi
movb $1, %al
callq _printf
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %eax
cmpl -8(%rbp), %eax
jle LBB0_26
## %bb.17:
movl $0, -12(%rbp)
LBB0_18: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB0_21
## %bb.19: ## in Loop: Header=BB0_18 Depth=1
movslq -12(%rbp), %rcx
movq _a@GOTPCREL(%rip), %rax
movss 4(%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movslq -12(%rbp), %rcx
movq _b@GOTPCREL(%rip), %rax
addss 4(%rax,%rcx,8), %xmm0
movslq -24(%rbp), %rcx
movq _c@GOTPCREL(%rip), %rax
movss %xmm0, 4(%rax,%rcx,8)
movslq -12(%rbp), %rcx
movq _a@GOTPCREL(%rip), %rax
movl (%rax,%rcx,8), %edx
movslq -24(%rbp), %rcx
movq _c@GOTPCREL(%rip), %rax
movl %edx, (%rax,%rcx,8)
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
## %bb.20: ## in Loop: Header=BB0_18 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_18
LBB0_21:
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
LBB0_22: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -4(%rbp), %eax
jg LBB0_25
## %bb.23: ## in Loop: Header=BB0_22 Depth=1
movslq -12(%rbp), %rcx
movq _a@GOTPCREL(%rip), %rax
movss 4(%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movslq -24(%rbp), %rcx
movq _c@GOTPCREL(%rip), %rax
movss %xmm0, 4(%rax,%rcx,8)
movslq -12(%rbp), %rcx
movq _a@GOTPCREL(%rip), %rax
movl (%rax,%rcx,8), %edx
movslq -24(%rbp), %rcx
movq _c@GOTPCREL(%rip), %rax
movl %edx, (%rax,%rcx,8)
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
## %bb.24: ## in Loop: Header=BB0_22 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_22
LBB0_25:
jmp LBB0_35
LBB0_26:
movl $0, -12(%rbp)
LBB0_27: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -4(%rbp), %eax
jg LBB0_30
## %bb.28: ## in Loop: Header=BB0_27 Depth=1
movslq -12(%rbp), %rcx
movq _a@GOTPCREL(%rip), %rax
movss 4(%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movslq -12(%rbp), %rcx
movq _b@GOTPCREL(%rip), %rax
addss 4(%rax,%rcx,8), %xmm0
movslq -24(%rbp), %rcx
movq _c@GOTPCREL(%rip), %rax
movss %xmm0, 4(%rax,%rcx,8)
movslq -12(%rbp), %rcx
movq _a@GOTPCREL(%rip), %rax
movl (%rax,%rcx,8), %edx
movslq -24(%rbp), %rcx
movq _c@GOTPCREL(%rip), %rax
movl %edx, (%rax,%rcx,8)
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
## %bb.29: ## in Loop: Header=BB0_27 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_27
LBB0_30:
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
LBB0_31: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB0_34
## %bb.32: ## in Loop: Header=BB0_31 Depth=1
movslq -12(%rbp), %rcx
movq _b@GOTPCREL(%rip), %rax
movss 4(%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movslq -24(%rbp), %rcx
movq _c@GOTPCREL(%rip), %rax
movss %xmm0, 4(%rax,%rcx,8)
movslq -12(%rbp), %rcx
movq _b@GOTPCREL(%rip), %rax
movl (%rax,%rcx,8), %edx
movslq -24(%rbp), %rcx
movq _c@GOTPCREL(%rip), %rax
movl %edx, (%rax,%rcx,8)
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
## %bb.33: ## in Loop: Header=BB0_31 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_31
LBB0_34:
jmp LBB0_35
LBB0_35:
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movl -24(%rbp), %eax
subl $1, %eax
movl %eax, -12(%rbp)
LBB0_36: ## =>This Inner Loop Header: Depth=1
cmpl $1, -12(%rbp)
jl LBB0_39
## %bb.37: ## in Loop: Header=BB0_36 Depth=1
movslq -12(%rbp), %rcx
movq _c@GOTPCREL(%rip), %rax
movss 4(%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movslq -12(%rbp), %rcx
movq _c@GOTPCREL(%rip), %rax
movl (%rax,%rcx,8), %esi
leaq L_.str.6(%rip), %rdi
movb $1, %al
callq _printf
## %bb.38: ## in Loop: Header=BB0_36 Depth=1
movl -12(%rbp), %eax
addl $-1, %eax
movl %eax, -12(%rbp)
jmp LBB0_36
LBB0_39:
movq _c@GOTPCREL(%rip), %rax
movss 4(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.7(%rip), %rdi
movb $1, %al
callq _printf
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter the highest degree of the first polynomial : "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "\nEnter the coefficient of x^%d : "
L_.str.3: ## @.str.3
.asciz "%f"
.comm _a,80,4 ## @a
L_.str.4: ## @.str.4
.asciz "Enter the highest degree of the second polynomial : "
.comm _b,80,4 ## @b
L_.str.5: ## @.str.5
.asciz "\nFirst polynomial = "
L_.str.6: ## @.str.6
.asciz "%0.1fx^%d + "
L_.str.7: ## @.str.7
.asciz "%0.1f"
L_.str.8: ## @.str.8
.asciz "\n"
L_.str.9: ## @.str.9
.asciz "\nSecond polynomial = "
.comm _c,80,4 ## @c
L_.str.10: ## @.str.10
.asciz "\nPolynomial sum = "
.subsections_via_symbols
| the_stack_data/598614.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, #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 x8, [x29, #-8]
ldr x8, [x8]
str x8, [sp, #16]
mov x0, #16
bl _malloc
str x0, [sp, #24]
ldur w8, [x29, #-12]
ldr x9, [sp, #24]
str w8, [x9, #8]
mov w9, #1
mov w8, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr w8, [x8, #8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, gt
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_2
LBB0_2:
ldr w8, [sp, #12] ; 4-byte Folded Reload
; kill: def $x8 killed $w8
and x8, x8, #0x1
ldur x10, [x29, #-8]
mov x9, x8
str x9, [x10]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #24]
ldur x9, [x29, #-8]
str x8, [x9]
ldr x8, [sp, #16]
ldur x9, [x29, #-8]
ldr x9, [x9]
str x8, [x9]
b LBB0_12
LBB0_4:
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #16]
ldr w8, [x8, #8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
ldr w8, [x8, #8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
ldr x8, [sp, #16]
ldr x8, [x8]
ldr x9, [sp, #24]
str x8, [x9]
ldr x8, [sp, #24]
ldr x9, [sp, #16]
str x8, [x9]
b LBB0_12
LBB0_10: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
str x8, [sp, #16]
b LBB0_5
LBB0_11:
b LBB0_12
LBB0_12:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _display ; -- Begin function display
.p2align 2
_display: ; @display
.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]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
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, #8]
ldr w9, [x8, #8]
; 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, #8]
ldr x8, [x8]
str x8, [sp, #8]
b LBB1_1
LBB1_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:
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, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
add x0, sp, #16
str x0, [sp] ; 8-byte Folded Spill
; kill: def $x8 killed $xzr
str xzr, [sp, #16]
mov w1, #56
bl _add
ldr x0, [sp] ; 8-byte Folded Reload
mov w1, #23
bl _add
ldr x0, [sp] ; 8-byte Folded Reload
mov w1, #63
bl _add
ldr x0, [sp] ; 8-byte Folded Reload
mov w1, #12
bl _add
ldr x0, [sp, #16]
bl _display
ldr w0, [sp, #12] ; 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 "%d "
.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
subq $48, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
movl $16, %edi
callq _malloc
movq %rax, -24(%rbp)
movl -12(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, 8(%rax)
movb $1, %al
xorl %ecx, %ecx
## kill: def $cl killed $cl killed $ecx
testb $1, %cl
movb %al, -33(%rbp) ## 1-byte Spill
jne LBB0_2
## %bb.1:
movq -8(%rbp), %rax
movq (%rax), %rax
movl 8(%rax), %eax
cmpl -12(%rbp), %eax
setg %al
movb %al, -33(%rbp) ## 1-byte Spill
LBB0_2:
movb -33(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
cltq
movq -8(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0, %rax
je LBB0_4
## %bb.3:
movq -24(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
movq -32(%rbp), %rcx
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rcx, (%rax)
jmp LBB0_12
LBB0_4:
jmp LBB0_5
LBB0_5: ## =>This Inner Loop Header: Depth=1
cmpq $0, -32(%rbp)
je LBB0_11
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -32(%rbp), %rax
movl 8(%rax), %eax
cmpl -12(%rbp), %eax
jg LBB0_8
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movq -32(%rbp), %rax
cmpq $0, (%rax)
je LBB0_9
LBB0_8: ## in Loop: Header=BB0_5 Depth=1
movq -32(%rbp), %rax
movq (%rax), %rax
movl 8(%rax), %eax
cmpl -12(%rbp), %eax
jle LBB0_10
LBB0_9:
movq -32(%rbp), %rax
movq (%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, (%rax)
jmp LBB0_12
LBB0_10: ## in Loop: Header=BB0_5 Depth=1
movq -32(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
jmp LBB0_5
LBB0_11:
jmp LBB0_12
LBB0_12:
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _display ## -- Begin function display
.p2align 4, 0x90
_display: ## @display
.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)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -8(%rbp)
je LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -8(%rbp), %rax
movl 8(%rax), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
jmp LBB1_1
LBB1_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 $16, %rsp
movl $0, -4(%rbp)
movq $0, -16(%rbp)
leaq -16(%rbp), %rdi
movl $56, %esi
callq _add
leaq -16(%rbp), %rdi
movl $23, %esi
callq _add
leaq -16(%rbp), %rdi
movl $63, %esi
callq _add
leaq -16(%rbp), %rdi
movl $12, %esi
callq _add
movq -16(%rbp), %rdi
callq _display
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d "
.subsections_via_symbols
| the_stack_data/344090.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/107166.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _worker ; -- Begin function worker
.p2align 2
_worker: ; @worker
.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]
str x8, [sp, #16]
ldr x8, [sp, #16]
ldr x0, [x8]
bl _pthread_getspecific
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
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__.worker@PAGE
add x0, x0, l___func__.worker@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #17
adrp x3, l_.str.1@PAGE
add x3, x3, l_.str.1@PAGEOFF
bl ___assert_rtn
LBB0_2:
b LBB0_3
LBB0_3:
ldr x8, [sp, #16]
ldr x0, [x8]
mov x1, #42
bl _pthread_setspecific
str w0, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #12
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
mov w0, #1
bl _exit
LBB0_5:
ldr w8, [sp, #4]
subs w8, w8, #0
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
adrp x0, l___func__.worker@PAGE
add x0, x0, l___func__.worker@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #24
adrp x3, l_.str.2@PAGE
add x3, x3, l_.str.2@PAGEOFF
bl ___assert_rtn
LBB0_7:
b LBB0_8
LBB0_8:
ldr x8, [sp, #16]
ldr x0, [x8]
bl _pthread_getspecific
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #42
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
adrp x0, l___func__.worker@PAGE
add x0, x0, l___func__.worker@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #27
adrp x3, l_.str.3@PAGE
add x3, x3, l_.str.3@PAGEOFF
bl ___assert_rtn
LBB0_10:
b LBB0_11
LBB0_11:
mov x0, #0
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
stur wzr, [x29, #-4]
sub x0, x29, #16
mov x1, #0
bl _pthread_key_create
stur w0, [x29, #-20]
ldur w8, [x29, #-20]
subs w8, w8, #12
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
mov w0, #1
bl _exit
LBB1_2:
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
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, #41
adrp x3, l_.str.2@PAGE
add x3, x3, l_.str.2@PAGEOFF
bl ___assert_rtn
LBB1_4:
b LBB1_5
LBB1_5:
ldur x0, [x29, #-16]
bl _pthread_getspecific
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB1_7
b LBB1_6
LBB1_6:
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, #46
adrp x3, l_.str.1@PAGE
add x3, x3, l_.str.1@PAGEOFF
bl ___assert_rtn
LBB1_7:
b LBB1_8
LBB1_8:
add x0, sp, #16
mov x1, #0
adrp x2, _worker@PAGE
add x2, x2, _worker@PAGEOFF
sub x3, x29, #16
bl _pthread_create
ldur x0, [x29, #-16]
bl _pthread_getspecific
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
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, #51
adrp x3, l_.str.1@PAGE
add x3, x3, l_.str.1@PAGEOFF
bl ___assert_rtn
LBB1_10:
b LBB1_11
LBB1_11:
ldur x0, [x29, #-16]
mov x1, #16
bl _pthread_setspecific
stur w0, [x29, #-20]
ldur w8, [x29, #-20]
subs w8, w8, #12
cset w8, ne
tbnz w8, #0, LBB1_13
b LBB1_12
LBB1_12:
mov w0, #1
bl _exit
LBB1_13:
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB1_15
b LBB1_14
LBB1_14:
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, #58
adrp x3, l_.str.2@PAGE
add x3, x3, l_.str.2@PAGEOFF
bl ___assert_rtn
LBB1_15:
b LBB1_16
LBB1_16:
ldur x0, [x29, #-16]
bl _pthread_getspecific
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #16
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB1_18
b LBB1_17
LBB1_17:
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, #61
adrp x3, l_.str.4@PAGE
add x3, x3, l_.str.4@PAGEOFF
bl ___assert_rtn
LBB1_18:
b LBB1_19
LBB1_19:
ldr x0, [sp, #16]
mov x1, #0
bl _pthread_join
ldur x0, [x29, #-16]
bl _pthread_getspecific
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #16
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB1_21
b LBB1_20
LBB1_20:
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, #65
adrp x3, l_.str.4@PAGE
add x3, x3, l_.str.4@PAGEOFF
bl ___assert_rtn
LBB1_21:
b LBB1_22
LBB1_22:
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___func__.worker: ; @__func__.worker
.asciz "worker"
l_.str: ; @.str
.asciz "48576565.c"
l_.str.1: ; @.str.1
.asciz "val == 0"
l_.str.2: ; @.str.2
.asciz "r == 0"
l_.str.3: ; @.str.3
.asciz "val == 42"
l___func__.main: ; @__func__.main
.asciz "main"
l_.str.4: ; @.str.4
.asciz "val == 16"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _worker ## -- Begin function worker
.p2align 4, 0x90
_worker: ## @worker
.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 -8(%rbp), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _pthread_getspecific
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_2
## %bb.1:
leaq L___func__.worker(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rcx
movl $17, %edx
callq ___assert_rtn
LBB0_2:
jmp LBB0_3
LBB0_3:
movq -16(%rbp), %rax
movq (%rax), %rdi
movl $42, %esi
callq _pthread_setspecific
movl %eax, -28(%rbp)
cmpl $12, -28(%rbp)
jne LBB0_5
## %bb.4:
movl $1, %edi
callq _exit
LBB0_5:
cmpl $0, -28(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_7
## %bb.6:
leaq L___func__.worker(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.2(%rip), %rcx
movl $24, %edx
callq ___assert_rtn
LBB0_7:
jmp LBB0_8
LBB0_8:
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _pthread_getspecific
movq %rax, -24(%rbp)
cmpq $42, -24(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_10
## %bb.9:
leaq L___func__.worker(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.3(%rip), %rcx
movl $27, %edx
callq ___assert_rtn
LBB0_10:
jmp LBB0_11
LBB0_11:
xorl %eax, %eax
## kill: def $rax killed $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 $48, %rsp
movl $0, -4(%rbp)
leaq -16(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_key_create
movl %eax, -20(%rbp)
cmpl $12, -20(%rbp)
jne LBB1_2
## %bb.1:
movl $1, %edi
callq _exit
LBB1_2:
cmpl $0, -20(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB1_4
## %bb.3:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.2(%rip), %rcx
movl $41, %edx
callq ___assert_rtn
LBB1_4:
jmp LBB1_5
LBB1_5:
movq -16(%rbp), %rdi
callq _pthread_getspecific
movq %rax, -40(%rbp)
cmpq $0, -40(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB1_7
## %bb.6:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rcx
movl $46, %edx
callq ___assert_rtn
LBB1_7:
jmp LBB1_8
LBB1_8:
leaq -16(%rbp), %rcx
leaq -32(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq _worker(%rip), %rdx
callq _pthread_create
movq -16(%rbp), %rdi
callq _pthread_getspecific
movq %rax, -40(%rbp)
cmpq $0, -40(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB1_10
## %bb.9:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rcx
movl $51, %edx
callq ___assert_rtn
LBB1_10:
jmp LBB1_11
LBB1_11:
movq -16(%rbp), %rdi
movl $16, %esi
callq _pthread_setspecific
movl %eax, -20(%rbp)
cmpl $12, -20(%rbp)
jne LBB1_13
## %bb.12:
movl $1, %edi
callq _exit
LBB1_13:
cmpl $0, -20(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB1_15
## %bb.14:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.2(%rip), %rcx
movl $58, %edx
callq ___assert_rtn
LBB1_15:
jmp LBB1_16
LBB1_16:
movq -16(%rbp), %rdi
callq _pthread_getspecific
movq %rax, -40(%rbp)
cmpq $16, -40(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB1_18
## %bb.17:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.4(%rip), %rcx
movl $61, %edx
callq ___assert_rtn
LBB1_18:
jmp LBB1_19
LBB1_19:
movq -32(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_join
movq -16(%rbp), %rdi
callq _pthread_getspecific
movq %rax, -40(%rbp)
cmpq $16, -40(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB1_21
## %bb.20:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.4(%rip), %rcx
movl $65, %edx
callq ___assert_rtn
LBB1_21:
jmp LBB1_22
LBB1_22:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L___func__.worker: ## @__func__.worker
.asciz "worker"
L_.str: ## @.str
.asciz "48576565.c"
L_.str.1: ## @.str.1
.asciz "val == 0"
L_.str.2: ## @.str.2
.asciz "r == 0"
L_.str.3: ## @.str.3
.asciz "val == 42"
L___func__.main: ## @__func__.main
.asciz "main"
L_.str.4: ## @.str.4
.asciz "val == 16"
.subsections_via_symbols
| the_stack_data/48576565.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _MyClass_new ; -- Begin function MyClass_new
.p2align 2
_MyClass_new: ; @MyClass_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, #4
bl _malloc
str x0, [sp, #8]
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 _MyClass_someMethod ; -- Begin function MyClass_someMethod
.p2align 2
_MyClass_someMethod: ; @MyClass_someMethod
.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 w8, [x8]
ldr w9, [sp, #4]
add w8, w8, w9
str w8, [sp]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _executeTask ; -- Begin function executeTask
.p2align 2
_executeTask: ; @executeTask
.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 x0, [sp, #8]
ldr w1, [sp, #4]
bl _MyClass_someMethod
ldr w0, [sp, #4]
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, #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]
mov w8, #1
stur w8, [x29, #-8]
bl _MyClass_new
str x0, [sp, #16]
str wzr, [sp, #12]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
mov w9, #37888
movk w9, #30517, lsl #16
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_4
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldr x0, [sp, #16]
ldr w1, [sp, #12]
bl _executeTask
stur w0, [x29, #-8]
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB3_1
LBB3_4:
mov w0, #0
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 _MyClass_new ## -- Begin function MyClass_new
.p2align 4, 0x90
_MyClass_new: ## @MyClass_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 $4, %edi
callq _malloc
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
movl $0, (%rax)
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _MyClass_someMethod ## -- Begin function MyClass_someMethod
.p2align 4, 0x90
_MyClass_someMethod: ## @MyClass_someMethod
.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 (%rax), %eax
addl -12(%rbp), %eax
movl %eax, -16(%rbp)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _executeTask ## -- Begin function executeTask
.p2align 4, 0x90
_executeTask: ## @executeTask
.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), %rdi
movl -12(%rbp), %esi
callq _MyClass_someMethod
movl -12(%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 $32, %rsp
movl $0, -4(%rbp)
movl $1, -8(%rbp)
callq _MyClass_new
movq %rax, -16(%rbp)
movl $0, -20(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
cmpl $2000000000, -20(%rbp) ## imm = 0x77359400
jge LBB3_4
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movq -16(%rbp), %rdi
movl -20(%rbp), %esi
callq _executeTask
movl %eax, -8(%rbp)
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB3_1
LBB3_4:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/89200297.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fp32_from_bits ; -- Begin function fp32_from_bits
.p2align 2
_fp32_from_bits: ; @fp32_from_bits
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w8, [sp, #12]
str w8, [sp, #8]
ldr s0, [sp, #8]
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 _fp32_from_bits ## -- Begin function fp32_from_bits
.p2align 4, 0x90
_fp32_from_bits: ## @fp32_from_bits
.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
movl %eax, -8(%rbp)
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/280031.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _homework_031_387 ; -- Begin function homework_031_387
.p2align 2
_homework_031_387: ; @homework_031_387
.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, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
stur x8, [x29, #-8]
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
str x8, [sp, #16]
ldur x0, [x29, #-8]
bl _firstUniqChar_
mov x9, sp
; implicit-def: $x8
mov x8, x0
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 _printf
ldr x0, [sp, #16]
bl _firstUniqChar_
mov x10, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _firstUniqChar_ ; -- Begin function firstUniqChar_
.p2align 2
_firstUniqChar_: ; @firstUniqChar_
.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
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str x0, [sp, #32]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
mov w8, #-1
str w8, [sp, #44]
b LBB1_15
LBB1_2:
ldr x0, [sp, #32]
bl _strlen
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
mov w8, #-1
str w8, [sp, #44]
b LBB1_15
LBB1_4:
add x0, sp, #48
mov w1, #0
mov x2, #104
bl _memset
str wzr, [sp, #20]
b LBB1_5
LBB1_5: ; =>This Inner Loop Header: Depth=1
ldrsw x8, [sp, #20]
ldr x9, [sp, #24]
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 x8, [sp, #32]
ldrsw x9, [sp, #20]
ldrsb w8, [x8, x9]
subs w9, w8, #97
add x8, sp, #48
add x9, x8, w9, sxtw #2
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_5 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB1_5
LBB1_8:
str wzr, [sp, #16]
b LBB1_9
LBB1_9: ; =>This Inner Loop Header: Depth=1
ldrsw x8, [sp, #16]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB1_14
b LBB1_10
LBB1_10: ; in Loop: Header=BB1_9 Depth=1
ldr x8, [sp, #32]
ldrsw x9, [sp, #16]
ldrsb w8, [x8, x9]
subs w9, w8, #97
add x8, sp, #48
ldr w8, [x8, w9, sxtw #2]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB1_12
b LBB1_11
LBB1_11:
ldr w8, [sp, #16]
str w8, [sp, #44]
b LBB1_15
LBB1_12: ; in Loop: Header=BB1_9 Depth=1
b LBB1_13
LBB1_13: ; in Loop: Header=BB1_9 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB1_9
LBB1_14:
mov w8, #-1
str w8, [sp, #44]
b LBB1_15
LBB1_15:
ldr w8, [sp, #44]
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, LBB1_17
b LBB1_16
LBB1_16:
bl ___stack_chk_fail
LBB1_17:
ldr w0, [sp, #12] ; 4-byte Folded Reload
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
; -- End function
.globl _firstUniqChar ; -- Begin function firstUniqChar
.p2align 2
_firstUniqChar: ; @firstUniqChar
.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 x8, [x29, #-16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
mov w8, #-1
stur w8, [x29, #-4]
b LBB2_19
LBB2_2:
ldur x0, [x29, #-16]
bl _strlen
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3:
mov w8, #-1
stur w8, [x29, #-4]
b LBB2_19
LBB2_4:
ldur x8, [x29, #-16]
str x8, [sp, #16]
str wzr, [sp, #12]
str wzr, [sp, #8]
b LBB2_5
LBB2_5: ; =>This Loop Header: Depth=1
; Child Loop BB2_7 Depth 2
ldrsw x8, [sp, #8]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB2_18
b LBB2_6
LBB2_6: ; in Loop: Header=BB2_5 Depth=1
strb wzr, [sp, #7]
ldr w8, [sp, #8]
str w8, [sp, #12]
str wzr, [sp]
b LBB2_7
LBB2_7: ; Parent Loop BB2_5 Depth=1
; => This Inner Loop Header: Depth=2
ldrsw x8, [sp]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB2_14
b LBB2_8
LBB2_8: ; in Loop: Header=BB2_7 Depth=2
ldr w8, [sp, #8]
ldr w9, [sp]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB2_10
b LBB2_9
LBB2_9: ; in Loop: Header=BB2_7 Depth=2
b LBB2_13
LBB2_10: ; in Loop: Header=BB2_7 Depth=2
ldr x8, [sp, #16]
ldrsw x9, [sp, #8]
ldrsb w8, [x8, x9]
ldr x9, [sp, #16]
ldrsw x10, [sp]
ldrsb w9, [x9, x10]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB2_12
b LBB2_11
LBB2_11: ; in Loop: Header=BB2_5 Depth=1
mov w8, #1
strb w8, [sp, #7]
mov w8, #-1
str w8, [sp, #12]
b LBB2_14
LBB2_12: ; in Loop: Header=BB2_7 Depth=2
b LBB2_13
LBB2_13: ; in Loop: Header=BB2_7 Depth=2
ldr w8, [sp]
add w8, w8, #1
str w8, [sp]
b LBB2_7
LBB2_14: ; in Loop: Header=BB2_5 Depth=1
ldrb w8, [sp, #7]
tbnz w8, #0, LBB2_16
b LBB2_15
LBB2_15:
b LBB2_18
LBB2_16: ; in Loop: Header=BB2_5 Depth=1
b LBB2_17
LBB2_17: ; in Loop: Header=BB2_5 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB2_5
LBB2_18:
ldr w8, [sp, #12]
stur w8, [x29, #-4]
b LBB2_19
LBB2_19:
ldur w0, [x29, #-4]
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 "leetcode"
l_.str.1: ; @.str.1
.asciz "loveleetcode"
l_.str.2: ; @.str.2
.asciz "first index : %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _homework_031_387 ## -- Begin function homework_031_387
.p2align 4, 0x90
_homework_031_387: ## @homework_031_387
.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 L_.str(%rip), %rax
movq %rax, -8(%rbp)
leaq L_.str.1(%rip), %rax
movq %rax, -16(%rbp)
movq -8(%rbp), %rdi
callq _firstUniqChar_
movl %eax, %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rdi
callq _firstUniqChar_
movl %eax, %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _firstUniqChar_ ## -- Begin function firstUniqChar_
.p2align 4, 0x90
_firstUniqChar_: ## @firstUniqChar_
.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 ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -128(%rbp)
cmpq $0, -128(%rbp)
jne LBB1_2
## %bb.1:
movl $-1, -116(%rbp)
jmp LBB1_15
LBB1_2:
movq -128(%rbp), %rdi
callq _strlen
movq %rax, -136(%rbp)
cmpq $0, -136(%rbp)
jne LBB1_4
## %bb.3:
movl $-1, -116(%rbp)
jmp LBB1_15
LBB1_4:
leaq -112(%rbp), %rdi
xorl %esi, %esi
movl $104, %edx
callq _memset
movl $0, -140(%rbp)
LBB1_5: ## =>This Inner Loop Header: Depth=1
movslq -140(%rbp), %rax
cmpq -136(%rbp), %rax
jae LBB1_8
## %bb.6: ## in Loop: Header=BB1_5 Depth=1
movq -128(%rbp), %rax
movslq -140(%rbp), %rcx
movsbl (%rax,%rcx), %eax
subl $97, %eax
cltq
movl -112(%rbp,%rax,4), %ecx
addl $1, %ecx
movl %ecx, -112(%rbp,%rax,4)
## %bb.7: ## in Loop: Header=BB1_5 Depth=1
movl -140(%rbp), %eax
addl $1, %eax
movl %eax, -140(%rbp)
jmp LBB1_5
LBB1_8:
movl $0, -144(%rbp)
LBB1_9: ## =>This Inner Loop Header: Depth=1
movslq -144(%rbp), %rax
cmpq -136(%rbp), %rax
jae LBB1_14
## %bb.10: ## in Loop: Header=BB1_9 Depth=1
movq -128(%rbp), %rax
movslq -144(%rbp), %rcx
movsbl (%rax,%rcx), %eax
subl $97, %eax
cltq
cmpl $1, -112(%rbp,%rax,4)
jne LBB1_12
## %bb.11:
movl -144(%rbp), %eax
movl %eax, -116(%rbp)
jmp LBB1_15
LBB1_12: ## in Loop: Header=BB1_9 Depth=1
jmp LBB1_13
LBB1_13: ## in Loop: Header=BB1_9 Depth=1
movl -144(%rbp), %eax
addl $1, %eax
movl %eax, -144(%rbp)
jmp LBB1_9
LBB1_14:
movl $-1, -116(%rbp)
LBB1_15:
movl -116(%rbp), %eax
movl %eax, -148(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_17
## %bb.16:
movl -148(%rbp), %eax ## 4-byte Reload
addq $160, %rsp
popq %rbp
retq
LBB1_17:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _firstUniqChar ## -- Begin function firstUniqChar
.p2align 4, 0x90
_firstUniqChar: ## @firstUniqChar
.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)
cmpq $0, -16(%rbp)
jne LBB2_2
## %bb.1:
movl $-1, -4(%rbp)
jmp LBB2_19
LBB2_2:
movq -16(%rbp), %rdi
callq _strlen
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB2_4
## %bb.3:
movl $-1, -4(%rbp)
jmp LBB2_19
LBB2_4:
movq -16(%rbp), %rax
movq %rax, -32(%rbp)
movl $0, -36(%rbp)
movl $0, -40(%rbp)
LBB2_5: ## =>This Loop Header: Depth=1
## Child Loop BB2_7 Depth 2
movslq -40(%rbp), %rax
cmpq -24(%rbp), %rax
jae LBB2_18
## %bb.6: ## in Loop: Header=BB2_5 Depth=1
movb $0, -41(%rbp)
movl -40(%rbp), %eax
movl %eax, -36(%rbp)
movl $0, -48(%rbp)
LBB2_7: ## Parent Loop BB2_5 Depth=1
## => This Inner Loop Header: Depth=2
movslq -48(%rbp), %rax
cmpq -24(%rbp), %rax
jae LBB2_14
## %bb.8: ## in Loop: Header=BB2_7 Depth=2
movl -40(%rbp), %eax
cmpl -48(%rbp), %eax
jne LBB2_10
## %bb.9: ## in Loop: Header=BB2_7 Depth=2
jmp LBB2_13
LBB2_10: ## in Loop: Header=BB2_7 Depth=2
movq -32(%rbp), %rax
movslq -40(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -32(%rbp), %rcx
movslq -48(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne LBB2_12
## %bb.11: ## in Loop: Header=BB2_5 Depth=1
movb $1, -41(%rbp)
movl $-1, -36(%rbp)
jmp LBB2_14
LBB2_12: ## in Loop: Header=BB2_7 Depth=2
jmp LBB2_13
LBB2_13: ## in Loop: Header=BB2_7 Depth=2
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
jmp LBB2_7
LBB2_14: ## in Loop: Header=BB2_5 Depth=1
testb $1, -41(%rbp)
jne LBB2_16
## %bb.15:
jmp LBB2_18
LBB2_16: ## in Loop: Header=BB2_5 Depth=1
jmp LBB2_17
LBB2_17: ## in Loop: Header=BB2_5 Depth=1
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB2_5
LBB2_18:
movl -36(%rbp), %eax
movl %eax, -4(%rbp)
LBB2_19:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "leetcode"
L_.str.1: ## @.str.1
.asciz "loveleetcode"
L_.str.2: ## @.str.2
.asciz "first index : %d\n"
.subsections_via_symbols
| the_stack_data/1033670.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
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_1
LBB0_1:
b LBB0_2
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_2 Depth=1
b LBB0_2
LBB0_4:
b LBB0_5
LBB0_5:
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 _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
movl %edi, -4(%rbp)
cmpl $0, -4(%rbp)
je LBB0_5
## %bb.1:
jmp LBB0_2
LBB0_2: ## =>This Inner Loop Header: Depth=1
cmpl $0, -4(%rbp)
je LBB0_4
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
jmp LBB0_2
LBB0_4:
jmp LBB0_5
LBB0_5:
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/904690.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, #2048
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #36]
mov x9, sp
add x8, sp, #1040
str x8, [sp, #8] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr x0, [sp, #8] ; 8-byte Folded Reload
bl _strlen
mov x8, x0
str w8, [sp, #32]
str wzr, [sp, #28]
str wzr, [sp, #24]
mov w8, #1
str w8, [sp, #20]
str wzr, [sp, #28]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #28]
ldr w9, [sp, #32]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_29
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #28]
add x8, sp, #1040
ldrsb w8, [x8, x9]
subs w8, w8, #91
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #28]
add x8, sp, #1040
ldrsb w8, [x8, x9]
subs w8, w8, #40
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #28]
add x8, sp, #1040
ldrsb w8, [x8, x9]
subs w8, w8, #123
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #28]
add x8, sp, #1040
add x8, x8, x9
ldrb w8, [x8]
ldrsw x10, [sp, #24]
mov x9, x10
add w9, w9, #1
str w9, [sp, #24]
add x9, sp, #40
add x9, x9, x10
strb w8, [x9]
b LBB0_27
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #28]
add x8, sp, #1040
ldrsb w8, [x8, x9]
subs w8, w8, #93
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_10
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
subs w9, w8, #1
add x8, sp, #40
ldrsb w8, [x8, w9, sxtw]
subs w8, w8, #91
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
subs w8, w8, #1
str w8, [sp, #24]
b LBB0_11
LBB0_10:
str wzr, [sp, #20]
b LBB0_29
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
b LBB0_26
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #28]
add x8, sp, #1040
ldrsb w8, [x8, x9]
subs w8, w8, #125
cset w8, ne
tbnz w8, #0, LBB0_18
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_16
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
subs w9, w8, #1
add x8, sp, #40
ldrsb w8, [x8, w9, sxtw]
subs w8, w8, #123
cset w8, ne
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
subs w8, w8, #1
str w8, [sp, #24]
b LBB0_17
LBB0_16:
str wzr, [sp, #20]
b LBB0_29
LBB0_17: ; in Loop: Header=BB0_1 Depth=1
b LBB0_25
LBB0_18: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #28]
add x8, sp, #1040
ldrsb w8, [x8, x9]
subs w8, w8, #41
cset w8, ne
tbnz w8, #0, LBB0_24
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_22
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
subs w9, w8, #1
add x8, sp, #40
ldrsb w8, [x8, w9, sxtw]
subs w8, w8, #40
cset w8, ne
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
subs w8, w8, #1
str w8, [sp, #24]
b LBB0_23
LBB0_22:
str wzr, [sp, #20]
b LBB0_29
LBB0_23: ; in Loop: Header=BB0_1 Depth=1
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_1 Depth=1
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_1 Depth=1
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_1 Depth=1
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_1 Depth=1
b LBB0_28
LBB0_28: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_1
LBB0_29:
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_32
b LBB0_30
LBB0_30:
ldr w8, [sp, #24]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_32
b LBB0_31
LBB0_31:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_33
LBB0_32:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_33
LBB0_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, LBB0_35
b LBB0_34
LBB0_34:
bl ___stack_chk_fail
LBB0_35:
mov w0, #0
add sp, sp, #2048
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 "%s"
l_.str.1: ; @.str.1
.asciz "Yes\n"
l_.str.2: ; @.str.2
.asciz "No\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 $2048, %rsp ## imm = 0x800
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -2020(%rbp)
leaq -1008(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _scanf
leaq -1008(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -2024(%rbp)
movl $0, -2028(%rbp)
movl $0, -2032(%rbp)
movl $1, -2036(%rbp)
movl $0, -2028(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -2028(%rbp), %eax
cmpl -2024(%rbp), %eax
jge LBB0_29
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -2028(%rbp), %rax
movsbl -1008(%rbp,%rax), %eax
cmpl $91, %eax
je LBB0_5
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movslq -2028(%rbp), %rax
movsbl -1008(%rbp,%rax), %eax
cmpl $40, %eax
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movslq -2028(%rbp), %rax
movsbl -1008(%rbp,%rax), %eax
cmpl $123, %eax
jne LBB0_6
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movslq -2028(%rbp), %rax
movb -1008(%rbp,%rax), %cl
movl -2032(%rbp), %eax
movl %eax, %edx
addl $1, %edx
movl %edx, -2032(%rbp)
cltq
movb %cl, -2016(%rbp,%rax)
jmp LBB0_27
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movslq -2028(%rbp), %rax
movsbl -1008(%rbp,%rax), %eax
cmpl $93, %eax
jne LBB0_12
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -2032(%rbp)
jle LBB0_10
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
movl -2032(%rbp), %eax
subl $1, %eax
cltq
movsbl -2016(%rbp,%rax), %eax
cmpl $91, %eax
jne LBB0_10
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
movl -2032(%rbp), %eax
addl $-1, %eax
movl %eax, -2032(%rbp)
jmp LBB0_11
LBB0_10:
movl $0, -2036(%rbp)
jmp LBB0_29
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_26
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
movslq -2028(%rbp), %rax
movsbl -1008(%rbp,%rax), %eax
cmpl $125, %eax
jne LBB0_18
## %bb.13: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -2032(%rbp)
jle LBB0_16
## %bb.14: ## in Loop: Header=BB0_1 Depth=1
movl -2032(%rbp), %eax
subl $1, %eax
cltq
movsbl -2016(%rbp,%rax), %eax
cmpl $123, %eax
jne LBB0_16
## %bb.15: ## in Loop: Header=BB0_1 Depth=1
movl -2032(%rbp), %eax
addl $-1, %eax
movl %eax, -2032(%rbp)
jmp LBB0_17
LBB0_16:
movl $0, -2036(%rbp)
jmp LBB0_29
LBB0_17: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_25
LBB0_18: ## in Loop: Header=BB0_1 Depth=1
movslq -2028(%rbp), %rax
movsbl -1008(%rbp,%rax), %eax
cmpl $41, %eax
jne LBB0_24
## %bb.19: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -2032(%rbp)
jle LBB0_22
## %bb.20: ## in Loop: Header=BB0_1 Depth=1
movl -2032(%rbp), %eax
subl $1, %eax
cltq
movsbl -2016(%rbp,%rax), %eax
cmpl $40, %eax
jne LBB0_22
## %bb.21: ## in Loop: Header=BB0_1 Depth=1
movl -2032(%rbp), %eax
addl $-1, %eax
movl %eax, -2032(%rbp)
jmp LBB0_23
LBB0_22:
movl $0, -2036(%rbp)
jmp LBB0_29
LBB0_23: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_24
LBB0_24: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_25
LBB0_25: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_26
LBB0_26: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_27
LBB0_27: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_28
LBB0_28: ## in Loop: Header=BB0_1 Depth=1
movl -2028(%rbp), %eax
addl $1, %eax
movl %eax, -2028(%rbp)
jmp LBB0_1
LBB0_29:
cmpl $0, -2036(%rbp)
je LBB0_32
## %bb.30:
cmpl $0, -2032(%rbp)
jne LBB0_32
## %bb.31:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_33
LBB0_32:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
LBB0_33:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_35
## %bb.34:
xorl %eax, %eax
addq $2048, %rsp ## imm = 0x800
popq %rbp
retq
LBB0_35:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s"
L_.str.1: ## @.str.1
.asciz "Yes\n"
L_.str.2: ## @.str.2
.asciz "No\n"
.subsections_via_symbols
| the_stack_data/231392568.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]
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
mov w0, #1
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 "not yet done\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)
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "not yet done\n"
.subsections_via_symbols
| the_stack_data/23574646.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]
str wzr, [sp, #16]
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
mov w8, #1
stur w8, [x29, #-12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w9, [x29, #-12]
ldr w8, [sp, #16]
add w8, w8, w9
str w8, [sp, #16]
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_1
LBB0_4:
ldr w9, [sp, #16]
; 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
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 "Enter the number = "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "The total is %d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 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, -16(%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 $1, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl -16(%rbp), %eax
movl %eax, -16(%rbp)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_1
LBB0_4:
movl -16(%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 "The total is %d"
.subsections_via_symbols
| the_stack_data/148576807.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _strindex ; -- Begin function strindex
.p2align 2
_strindex: ; @strindex
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #32]
str x1, [sp, #24]
str wzr, [sp, #20]
str wzr, [sp, #20]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr x8, [sp, #32]
ldrsw x9, [sp, #20]
ldrsb w8, [x8, x9]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
str w8, [sp, #16]
str wzr, [sp, #12]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #24]
ldrsw x9, [sp, #12]
ldrsb w8, [x8, x9]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #32]
ldrsw x9, [sp, #16]
ldrsb w8, [x8, x9]
ldr x9, [sp, #24]
ldrsw x10, [sp, #12]
ldrsb w9, [x9, x10]
subs w8, w8, w9
cset w8, eq
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #8] ; 4-byte Folded Reload
tbz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=2
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_3
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_11
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp, #12]
ldrsb w8, [x8, x9]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldr w8, [sp, #20]
str w8, [sp, #44]
b LBB0_14
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_1
LBB0_13:
mov w8, #-1
str w8, [sp, #44]
b LBB0_14
LBB0_14:
ldr w0, [sp, #44]
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 _strindex ## -- Begin function strindex
.p2align 4, 0x90
_strindex: ## @strindex
.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)
movl $0, -28(%rbp)
movl $0, -28(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0, %eax
je LBB0_13
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
movl %eax, -32(%rbp)
movl $0, -36(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -24(%rbp), %rax
movslq -36(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, %ecx
movb %al, -37(%rbp) ## 1-byte Spill
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movq -16(%rbp), %rax
movslq -32(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -24(%rbp), %rcx
movslq -36(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -37(%rbp) ## 1-byte Spill
LBB0_5: ## in Loop: Header=BB0_3 Depth=2
movb -37(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_6
jmp LBB0_8
LBB0_6: ## in Loop: Header=BB0_3 Depth=2
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_3 Depth=2
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB0_3
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -36(%rbp)
jle LBB0_11
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movslq -36(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0, %eax
jne LBB0_11
## %bb.10:
movl -28(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_14
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_12
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_1
LBB0_13:
movl $-1, -4(%rbp)
LBB0_14:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/48575323.c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.