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]
adrp x8, ___stdinp@GOTPAGE
ldr x8, [x8, ___stdinp@GOTPAGEOFF]
ldr x2, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _freopen
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x2, [x8]
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
str x1, [sp, #8] ; 8-byte Folded Spill
bl _freopen
ldr x1, [sp, #8] ; 8-byte Folded Reload
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x2, [x8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _freopen
stur wzr, [x29, #-12]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
mov w11, #10
sdiv w9, w8, w11
mul w9, w9, w11
subs w8, w8, w9
ldur w9, [x29, #-8]
sdiv w10, w9, w11
mul w10, w10, w11
subs w9, w9, w10
mul w9, w8, w9
ldur w8, [x29, #-12]
add w8, w8, w9
stur w8, [x29, #-12]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
mov w9, #10
sdiv w8, w8, w9
stur w8, [x29, #-8]
b LBB0_1
LBB0_4:
ldur w9, [x29, #-12]
; 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
adrp x8, ___stdinp@GOTPAGE
ldr x8, [x8, ___stdinp@GOTPAGEOFF]
ldr x0, [x8]
bl _fclose
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x0, [x8]
bl _fclose
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
bl _fclose
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 "1.in"
l_.str.1: ; @.str.1
.asciz "r"
l_.str.2: ; @.str.2
.asciz "1.out"
l_.str.3: ; @.str.3
.asciz "w"
l_.str.4: ; @.str.4
.asciz "1.err"
l_.str.5: ; @.str.5
.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)
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rdx
leaq L_.str(%rip), %rdi
leaq L_.str.1(%rip), %rsi
callq _freopen
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdx
leaq L_.str.2(%rip), %rdi
leaq L_.str.3(%rip), %rsi
callq _freopen
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdx
leaq L_.str.4(%rip), %rdi
leaq L_.str.3(%rip), %rsi
callq _freopen
movl $0, -12(%rbp)
leaq L_.str.5(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -8(%rbp)
je LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %edx, -16(%rbp) ## 4-byte Spill
movl -8(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl -16(%rbp), %eax ## 4-byte Reload
imull %edx, %eax
addl -12(%rbp), %eax
movl %eax, -12(%rbp)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_4:
movl -12(%rbp), %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fclose
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fclose
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fclose
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "1.in"
L_.str.1: ## @.str.1
.asciz "r"
L_.str.2: ## @.str.2
.asciz "1.out"
L_.str.3: ## @.str.3
.asciz "w"
L_.str.4: ## @.str.4
.asciz "1.err"
L_.str.5: ## @.str.5
.asciz "%d"
.subsections_via_symbols
| the_stack_data/58107.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _findNeighborDfs ; -- Begin function findNeighborDfs
.p2align 2
_findNeighborDfs: ; @findNeighborDfs
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
str w2, [sp, #16]
str w3, [sp, #12]
str w4, [sp, #8]
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_5
b LBB0_1
LBB0_1:
ldr w8, [sp, #16]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2:
ldur w8, [x29, #-12]
ldr w9, [sp, #12]
subs w9, w9, #1
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3:
ldr w8, [sp, #16]
ldr w9, [sp, #8]
subs w9, w9, #1
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldur x8, [x29, #-8]
ldursw x9, [x29, #-12]
ldr x8, [x8, x9, lsl #3]
ldrsw x9, [sp, #16]
ldrsb w8, [x8, x9]
subs w8, w8, #49
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
b LBB0_7
LBB0_6:
ldur x8, [x29, #-8]
ldursw x9, [x29, #-12]
ldr x8, [x8, x9, lsl #3]
ldrsw x9, [sp, #16]
add x9, x8, x9
mov w8, #48
strb w8, [x9]
ldur x0, [x29, #-8]
ldur w8, [x29, #-12]
add w1, w8, #1
ldr w2, [sp, #16]
ldr w3, [sp, #12]
ldr w4, [sp, #8]
bl _findNeighborDfs
ldur x0, [x29, #-8]
ldur w8, [x29, #-12]
subs w1, w8, #1
ldr w2, [sp, #16]
ldr w3, [sp, #12]
ldr w4, [sp, #8]
bl _findNeighborDfs
ldur x0, [x29, #-8]
ldur w1, [x29, #-12]
ldr w8, [sp, #16]
add w2, w8, #1
ldr w3, [sp, #12]
ldr w4, [sp, #8]
bl _findNeighborDfs
ldur x0, [x29, #-8]
ldur w1, [x29, #-12]
ldr w8, [sp, #16]
subs w2, w8, #1
ldr w3, [sp, #12]
ldr w4, [sp, #8]
bl _findNeighborDfs
b LBB0_7
LBB0_7:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _numIslands ; -- Begin function numIslands
.p2align 2
_numIslands: ; @numIslands
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
str w2, [sp, #16]
str wzr, [sp, #12]
str wzr, [sp, #8]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_3 Depth 2
ldr w8, [sp, #8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_8
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
str wzr, [sp, #4]
b LBB1_3
LBB1_3: ; Parent Loop BB1_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #4]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_6
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=2
ldur x8, [x29, #-8]
ldrsw x9, [sp, #8]
ldr x8, [x8, x9, lsl #3]
ldrsw x9, [sp, #4]
ldrsb w8, [x8, x9]
subs w9, w8, #48
ldr w8, [sp, #12]
add w8, w8, w9
str w8, [sp, #12]
ldur x0, [x29, #-8]
ldr w1, [sp, #8]
ldr w2, [sp, #4]
ldur w3, [x29, #-12]
ldr w4, [sp, #16]
bl _findNeighborDfs
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=2
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB1_3
LBB1_6: ; in Loop: Header=BB1_1 Depth=1
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB1_1
LBB1_8:
ldr w0, [sp, #12]
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 _findNeighborDfs ## -- Begin function findNeighborDfs
.p2align 4, 0x90
_findNeighborDfs: ## @findNeighborDfs
.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 %ecx, -20(%rbp)
movl %r8d, -24(%rbp)
cmpl $0, -12(%rbp)
jl LBB0_5
## %bb.1:
cmpl $0, -16(%rbp)
jl LBB0_5
## %bb.2:
movl -12(%rbp), %eax
movl -20(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jg LBB0_5
## %bb.3:
movl -16(%rbp), %eax
movl -24(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jg LBB0_5
## %bb.4:
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -16(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $49, %eax
je LBB0_6
LBB0_5:
jmp LBB0_7
LBB0_6:
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -16(%rbp), %rcx
movb $48, (%rax,%rcx)
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
addl $1, %esi
movl -16(%rbp), %edx
movl -20(%rbp), %ecx
movl -24(%rbp), %r8d
callq _findNeighborDfs
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
subl $1, %esi
movl -16(%rbp), %edx
movl -20(%rbp), %ecx
movl -24(%rbp), %r8d
callq _findNeighborDfs
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
movl -16(%rbp), %edx
addl $1, %edx
movl -20(%rbp), %ecx
movl -24(%rbp), %r8d
callq _findNeighborDfs
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
movl -16(%rbp), %edx
subl $1, %edx
movl -20(%rbp), %ecx
movl -24(%rbp), %r8d
callq _findNeighborDfs
LBB0_7:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _numIslands ## -- Begin function numIslands
.p2align 4, 0x90
_numIslands: ## @numIslands
.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 $0, -20(%rbp)
movl $0, -24(%rbp)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_3 Depth 2
movl -24(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB1_8
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl $0, -28(%rbp)
LBB1_3: ## Parent Loop BB1_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -28(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB1_6
## %bb.4: ## in Loop: Header=BB1_3 Depth=2
movq -8(%rbp), %rax
movslq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -28(%rbp), %rcx
movsbl (%rax,%rcx), %eax
subl $48, %eax
addl -20(%rbp), %eax
movl %eax, -20(%rbp)
movq -8(%rbp), %rdi
movl -24(%rbp), %esi
movl -28(%rbp), %edx
movl -12(%rbp), %ecx
movl -16(%rbp), %r8d
callq _findNeighborDfs
## %bb.5: ## in Loop: Header=BB1_3 Depth=2
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB1_3
LBB1_6: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_7
LBB1_7: ## in Loop: Header=BB1_1 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB1_1
LBB1_8:
movl -20(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/198580189.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str wzr, [sp, #12]
ldrsb w8, [sp, #11]
str w8, [sp, #4] ; 4-byte Folded Spill
adds w8, w8, #65
cset w8, eq
tbnz w8, #0, LBB0_16
b LBB0_1
LBB0_1:
ldr w8, [sp, #4] ; 4-byte Folded Reload
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_17
b LBB0_2
LBB0_2:
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_3
LBB0_3:
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB0_14
b LBB0_4
LBB0_4:
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #10
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_5
LBB0_5:
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #63
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_6
LBB0_6:
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #97
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_7
LBB0_7:
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #98
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_8
LBB0_8:
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #127
cset w8, eq
tbnz w8, #0, LBB0_15
b LBB0_18
LBB0_9:
ldrb w8, [sp, #11]
add w8, w8, #1
strb w8, [sp, #11]
b LBB0_19
LBB0_10:
ldrb w9, [sp, #11]
mov w8, #-1
add w8, w8, w9, uxtb
strb w8, [sp, #11]
b LBB0_19
LBB0_11:
strb wzr, [sp, #11]
b LBB0_19
LBB0_12:
mov w8, #1
strb w8, [sp, #11]
b LBB0_19
LBB0_13:
mov w8, #1
strb w8, [sp, #11]
b LBB0_19
LBB0_14:
mov w8, #2
strb w8, [sp, #11]
b LBB0_19
LBB0_15:
mov w8, #127
strb w8, [sp, #11]
b LBB0_19
LBB0_16:
mov w8, #191
strb w8, [sp, #11]
b LBB0_19
LBB0_17:
mov w8, #255
strb w8, [sp, #11]
b LBB0_19
LBB0_18:
b LBB0_19
LBB0_19:
mov w0, #0
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)
movsbl -5(%rbp), %eax
movl %eax, -12(%rbp) ## 4-byte Spill
subl $-65, %eax
je LBB0_8
jmp LBB0_12
LBB0_12:
movl -12(%rbp), %eax ## 4-byte Reload
subl $-1, %eax
je LBB0_9
jmp LBB0_13
LBB0_13:
movl -12(%rbp), %eax ## 4-byte Reload
subl $1, %eax
je LBB0_5
jmp LBB0_14
LBB0_14:
movl -12(%rbp), %eax ## 4-byte Reload
subl $2, %eax
je LBB0_6
jmp LBB0_15
LBB0_15:
movl -12(%rbp), %eax ## 4-byte Reload
subl $10, %eax
je LBB0_4
jmp LBB0_16
LBB0_16:
movl -12(%rbp), %eax ## 4-byte Reload
subl $63, %eax
je LBB0_3
jmp LBB0_17
LBB0_17:
movl -12(%rbp), %eax ## 4-byte Reload
subl $97, %eax
je LBB0_1
jmp LBB0_18
LBB0_18:
movl -12(%rbp), %eax ## 4-byte Reload
subl $98, %eax
je LBB0_2
jmp LBB0_19
LBB0_19:
movl -12(%rbp), %eax ## 4-byte Reload
subl $127, %eax
je LBB0_7
jmp LBB0_10
LBB0_1:
movb -5(%rbp), %al
addb $1, %al
movb %al, -5(%rbp)
jmp LBB0_11
LBB0_2:
movb -5(%rbp), %al
addb $-1, %al
movb %al, -5(%rbp)
jmp LBB0_11
LBB0_3:
movb $0, -5(%rbp)
jmp LBB0_11
LBB0_4:
movb $1, -5(%rbp)
jmp LBB0_11
LBB0_5:
movb $1, -5(%rbp)
jmp LBB0_11
LBB0_6:
movb $2, -5(%rbp)
jmp LBB0_11
LBB0_7:
movb $127, -5(%rbp)
jmp LBB0_11
LBB0_8:
movb $-65, -5(%rbp)
jmp LBB0_11
LBB0_9:
movb $-1, -5(%rbp)
jmp LBB0_11
LBB0_10:
jmp LBB0_11
LBB0_11:
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/68888335.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _init_liste ; -- Begin function init_liste
.p2align 2
_init_liste: ; @init_liste
.cfi_startproc
; %bb.0:
adrp x9, _queue@GOTPAGE
ldr x9, [x9, _queue@GOTPAGEOFF]
mov w8, #-1
str w8, [x9]
adrp x9, _ec@GOTPAGE
ldr x9, [x9, _ec@GOTPAGEOFF]
str w8, [x9]
ret
.cfi_endproc
; -- End function
.globl _liste_vide ; -- Begin function liste_vide
.p2align 2
_liste_vide: ; @liste_vide
.cfi_startproc
; %bb.0:
adrp x8, _queue@GOTPAGE
ldr x8, [x8, _queue@GOTPAGEOFF]
ldr w8, [x8]
adds w8, w8, #1
cset w8, eq
and w0, w8, #0x1
ret
.cfi_endproc
; -- End function
.globl _hors_liste ; -- Begin function hors_liste
.p2align 2
_hors_liste: ; @hors_liste
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
adrp x8, _ec@GOTPAGE
ldr x8, [x8, _ec@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #0
cset w8, lt
mov w9, #1
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
adrp x8, _ec@GOTPAGE
ldr x8, [x8, _ec@GOTPAGEOFF]
ldr w8, [x8]
adrp x9, _queue@GOTPAGE
ldr x9, [x9, _queue@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, gt
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB2_2
LBB2_2:
ldr w8, [sp, #12] ; 4-byte Folded Reload
and w0, w8, #0x1
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _en_tete ; -- Begin function en_tete
.p2align 2
_en_tete: ; @en_tete
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _liste_vide
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
adrp x8, _ec@GOTPAGE
ldr x8, [x8, _ec@GOTPAGEOFF]
str wzr, [x8]
b LBB3_2
LBB3_2:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _en_queue ; -- Begin function en_queue
.p2align 2
_en_queue: ; @en_queue
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _liste_vide
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
adrp x8, _queue@GOTPAGE
ldr x8, [x8, _queue@GOTPAGEOFF]
ldr w8, [x8]
adrp x9, _ec@GOTPAGE
ldr x9, [x9, _ec@GOTPAGEOFF]
str w8, [x9]
b LBB4_2
LBB4_2:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _suivant ; -- Begin function suivant
.p2align 2
_suivant: ; @suivant
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _hors_liste
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
adrp x9, _ec@GOTPAGE
ldr x9, [x9, _ec@GOTPAGEOFF]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB5_2
LBB5_2:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _precedent ; -- Begin function precedent
.p2align 2
_precedent: ; @precedent
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _hors_liste
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
adrp x9, _ec@GOTPAGE
ldr x9, [x9, _ec@GOTPAGEOFF]
ldr w8, [x9]
subs w8, w8, #1
str w8, [x9]
b LBB6_2
LBB6_2:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _valeur_elt ; -- Begin function valeur_elt
.p2align 2
_valeur_elt: ; @valeur_elt
.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]
bl _hors_liste
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_2
b LBB7_1
LBB7_1:
ldr x9, [sp, #8]
adrp x8, _ec@GOTPAGE
ldr x8, [x8, _ec@GOTPAGEOFF]
ldrsw x10, [x8]
adrp x8, _liste@GOTPAGE
ldr x8, [x8, _liste@GOTPAGEOFF]
ldr x8, [x8, x10, lsl #3]
str x8, [x9]
b LBB7_2
LBB7_2:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _modif_elt ; -- Begin function modif_elt
.p2align 2
_modif_elt: ; @modif_elt
.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]
bl _hors_liste
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB8_2
b LBB8_1
LBB8_1:
adrp x8, _ec@GOTPAGE
ldr x8, [x8, _ec@GOTPAGEOFF]
ldrsw x10, [x8]
adrp x9, _liste@GOTPAGE
ldr x9, [x9, _liste@GOTPAGEOFF]
ldr x8, [sp, #8]
str x8, [x9, x10, lsl #3]
b LBB8_2
LBB8_2:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _oter_elt ; -- Begin function oter_elt
.p2align 2
_oter_elt: ; @oter_elt
.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, _ec@GOTPAGE
ldr x8, [x8, _ec@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x8, _queue@GOTPAGE
ldr x8, [x8, _queue@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
bl _hors_liste
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB9_6
b LBB9_1
LBB9_1:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB9_2
LBB9_2: ; =>This Inner Loop Header: Depth=1
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldur w8, [x29, #-4]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB9_5
b LBB9_3
LBB9_3: ; in Loop: Header=BB9_2 Depth=1
ldursw x10, [x29, #-4]
adrp x9, _liste@GOTPAGE
ldr x9, [x9, _liste@GOTPAGEOFF]
ldur w8, [x29, #-4]
add w8, w8, #1
ldr x8, [x9, w8, sxtw #3]
str x8, [x9, x10, lsl #3]
b LBB9_4
LBB9_4: ; in Loop: Header=BB9_2 Depth=1
ldur w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-4]
b LBB9_2
LBB9_5:
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldr x10, [sp, #8] ; 8-byte Folded Reload
ldr w8, [x10]
subs w8, w8, #1
str w8, [x10]
ldr w8, [x9]
subs w8, w8, #1
str w8, [x9]
b LBB9_6
LBB9_6:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _ajout_droit ; -- Begin function ajout_droit
.p2align 2
_ajout_droit: ; @ajout_droit
.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, _queue@GOTPAGE
ldr x8, [x8, _queue@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x8, _ec@GOTPAGE
ldr x8, [x8, _ec@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
adrp x8, _liste@GOTPAGE
ldr x8, [x8, _liste@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
stur x0, [x29, #-8]
bl _liste_vide
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB10_2
b LBB10_1
LBB10_1:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x10, [sp, #16] ; 8-byte Folded Reload
ldr x11, [sp, #24] ; 8-byte Folded Reload
ldr w8, [x10]
add w12, w8, #1
ldur x8, [x29, #-8]
str x8, [x11, w12, sxtw #3]
ldr w8, [x10]
add w8, w8, #1
str w8, [x10]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB10_9
LBB10_2:
bl _hors_liste
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB10_8
b LBB10_3
LBB10_3:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w8, [x8]
stur w8, [x29, #-12]
b LBB10_4
LBB10_4: ; =>This Inner Loop Header: Depth=1
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldur w8, [x29, #-12]
ldr w9, [x9]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB10_7
b LBB10_5
LBB10_5: ; in Loop: Header=BB10_4 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldur w8, [x29, #-12]
add w10, w8, #1
ldursw x8, [x29, #-12]
ldr x8, [x9, x8, lsl #3]
str x8, [x9, w10, sxtw #3]
b LBB10_6
LBB10_6: ; in Loop: Header=BB10_4 Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #1
stur w8, [x29, #-12]
b LBB10_4
LBB10_7:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x10, [sp, #16] ; 8-byte Folded Reload
ldr x11, [sp, #24] ; 8-byte Folded Reload
ldr w8, [x10]
add w12, w8, #1
ldur x8, [x29, #-8]
str x8, [x11, w12, sxtw #3]
ldr w8, [x10]
add w8, w8, #1
str w8, [x10]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB10_8
LBB10_8:
b LBB10_9
LBB10_9:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _ajout_gauche ; -- Begin function ajout_gauche
.p2align 2
_ajout_gauche: ; @ajout_gauche
.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, _queue@GOTPAGE
ldr x8, [x8, _queue@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x8, _ec@GOTPAGE
ldr x8, [x8, _ec@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
adrp x8, _liste@GOTPAGE
ldr x8, [x8, _liste@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
stur x0, [x29, #-8]
bl _liste_vide
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB11_2
b LBB11_1
LBB11_1:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x10, [sp, #16] ; 8-byte Folded Reload
ldr x11, [sp, #24] ; 8-byte Folded Reload
ldr w8, [x10]
add w12, w8, #1
ldur x8, [x29, #-8]
str x8, [x11, w12, sxtw #3]
ldr w8, [x10]
add w8, w8, #1
str w8, [x10]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB11_9
LBB11_2:
bl _hors_liste
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB11_8
b LBB11_3
LBB11_3:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w8, [x8]
stur w8, [x29, #-12]
b LBB11_4
LBB11_4: ; =>This Inner Loop Header: Depth=1
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldur w8, [x29, #-12]
ldr w9, [x9]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB11_7
b LBB11_5
LBB11_5: ; in Loop: Header=BB11_4 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldur w8, [x29, #-12]
add w10, w8, #1
ldursw x8, [x29, #-12]
ldr x8, [x9, x8, lsl #3]
str x8, [x9, w10, sxtw #3]
b LBB11_6
LBB11_6: ; in Loop: Header=BB11_4 Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #1
stur w8, [x29, #-12]
b LBB11_4
LBB11_7:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x10, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldrsw x11, [x8]
ldur x8, [x29, #-8]
str x8, [x10, x11, lsl #3]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB11_8
LBB11_8:
b LBB11_9
LBB11_9:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _queue,4,2 ; @queue
.comm _ec,4,2 ; @ec
.comm _liste,400,2 ; @liste
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _init_liste ## -- Begin function init_liste
.p2align 4, 0x90
_init_liste: ## @init_liste
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _queue@GOTPCREL(%rip), %rax
movl $-1, (%rax)
movq _ec@GOTPCREL(%rip), %rax
movl $-1, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _liste_vide ## -- Begin function liste_vide
.p2align 4, 0x90
_liste_vide: ## @liste_vide
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _queue@GOTPCREL(%rip), %rax
cmpl $-1, (%rax)
sete %al
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _hors_liste ## -- Begin function hors_liste
.p2align 4, 0x90
_hors_liste: ## @hors_liste
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movb $1, %al
movq _ec@GOTPCREL(%rip), %rcx
cmpl $0, (%rcx)
movb %al, -1(%rbp) ## 1-byte Spill
jl LBB2_2
## %bb.1:
movq _ec@GOTPCREL(%rip), %rax
movl (%rax), %eax
movq _queue@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
setg %al
movb %al, -1(%rbp) ## 1-byte Spill
LBB2_2:
movb -1(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _en_tete ## -- Begin function en_tete
.p2align 4, 0x90
_en_tete: ## @en_tete
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _liste_vide
cmpl $0, %eax
jne LBB3_2
## %bb.1:
movq _ec@GOTPCREL(%rip), %rax
movl $0, (%rax)
LBB3_2:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _en_queue ## -- Begin function en_queue
.p2align 4, 0x90
_en_queue: ## @en_queue
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _liste_vide
cmpl $0, %eax
jne LBB4_2
## %bb.1:
movq _queue@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq _ec@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
LBB4_2:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _suivant ## -- Begin function suivant
.p2align 4, 0x90
_suivant: ## @suivant
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _hors_liste
cmpl $0, %eax
jne LBB5_2
## %bb.1:
movq _ec@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _ec@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
LBB5_2:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _precedent ## -- Begin function precedent
.p2align 4, 0x90
_precedent: ## @precedent
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _hors_liste
cmpl $0, %eax
jne LBB6_2
## %bb.1:
movq _ec@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $-1, %ecx
movq _ec@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
LBB6_2:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _valeur_elt ## -- Begin function valeur_elt
.p2align 4, 0x90
_valeur_elt: ## @valeur_elt
.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)
callq _hors_liste
cmpl $0, %eax
jne LBB7_2
## %bb.1:
movq -8(%rbp), %rax
movq _ec@GOTPCREL(%rip), %rcx
movslq (%rcx), %rdx
movq _liste@GOTPCREL(%rip), %rcx
movq (%rcx,%rdx,8), %rcx
movq %rcx, (%rax)
LBB7_2:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _modif_elt ## -- Begin function modif_elt
.p2align 4, 0x90
_modif_elt: ## @modif_elt
.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)
callq _hors_liste
cmpl $0, %eax
jne LBB8_2
## %bb.1:
movq _ec@GOTPCREL(%rip), %rax
movslq (%rax), %rcx
movq _liste@GOTPCREL(%rip), %rax
movq -8(%rbp), %rdx
movq %rdx, (%rax,%rcx,8)
LBB8_2:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _oter_elt ## -- Begin function oter_elt
.p2align 4, 0x90
_oter_elt: ## @oter_elt
.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 _hors_liste
cmpl $0, %eax
jne LBB9_6
## %bb.1:
movq _ec@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
LBB9_2: ## =>This Inner Loop Header: Depth=1
movl -4(%rbp), %eax
movq _queue@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB9_5
## %bb.3: ## in Loop: Header=BB9_2 Depth=1
movslq -4(%rbp), %rcx
movl -4(%rbp), %eax
addl $1, %eax
movslq %eax, %rdx
movq _liste@GOTPCREL(%rip), %rax
movq (%rax,%rdx,8), %rdx
movq %rdx, (%rax,%rcx,8)
## %bb.4: ## in Loop: Header=BB9_2 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB9_2
LBB9_5:
movq _ec@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $-1, %ecx
movq _ec@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _queue@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $-1, %ecx
movq _queue@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
LBB9_6:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _ajout_droit ## -- Begin function ajout_droit
.p2align 4, 0x90
_ajout_droit: ## @ajout_droit
.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)
callq _liste_vide
cmpl $0, %eax
je LBB10_2
## %bb.1:
movq _ec@GOTPCREL(%rip), %rax
movl (%rax), %eax
addl $1, %eax
movslq %eax, %rcx
movq _liste@GOTPCREL(%rip), %rax
movq -8(%rbp), %rdx
movq %rdx, (%rax,%rcx,8)
movq _ec@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _ec@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _queue@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _queue@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB10_9
LBB10_2:
callq _hors_liste
cmpl $0, %eax
jne LBB10_8
## %bb.3:
movq _queue@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -12(%rbp)
LBB10_4: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
movq _ec@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jle LBB10_7
## %bb.5: ## in Loop: Header=BB10_4 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movslq %eax, %rcx
movslq -12(%rbp), %rdx
movq _liste@GOTPCREL(%rip), %rax
movq (%rax,%rdx,8), %rdx
movq %rdx, (%rax,%rcx,8)
## %bb.6: ## in Loop: Header=BB10_4 Depth=1
movl -12(%rbp), %eax
addl $-1, %eax
movl %eax, -12(%rbp)
jmp LBB10_4
LBB10_7:
movq _ec@GOTPCREL(%rip), %rax
movl (%rax), %eax
addl $1, %eax
movslq %eax, %rcx
movq _liste@GOTPCREL(%rip), %rax
movq -8(%rbp), %rdx
movq %rdx, (%rax,%rcx,8)
movq _ec@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _ec@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _queue@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _queue@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
LBB10_8:
jmp LBB10_9
LBB10_9:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _ajout_gauche ## -- Begin function ajout_gauche
.p2align 4, 0x90
_ajout_gauche: ## @ajout_gauche
.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)
callq _liste_vide
cmpl $0, %eax
je LBB11_2
## %bb.1:
movq _ec@GOTPCREL(%rip), %rax
movl (%rax), %eax
addl $1, %eax
movslq %eax, %rcx
movq _liste@GOTPCREL(%rip), %rax
movq -8(%rbp), %rdx
movq %rdx, (%rax,%rcx,8)
movq _ec@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _ec@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _queue@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _queue@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB11_9
LBB11_2:
callq _hors_liste
cmpl $0, %eax
jne LBB11_8
## %bb.3:
movq _queue@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -12(%rbp)
LBB11_4: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
movq _ec@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jl LBB11_7
## %bb.5: ## in Loop: Header=BB11_4 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movslq %eax, %rcx
movslq -12(%rbp), %rdx
movq _liste@GOTPCREL(%rip), %rax
movq (%rax,%rdx,8), %rdx
movq %rdx, (%rax,%rcx,8)
## %bb.6: ## in Loop: Header=BB11_4 Depth=1
movl -12(%rbp), %eax
addl $-1, %eax
movl %eax, -12(%rbp)
jmp LBB11_4
LBB11_7:
movq _ec@GOTPCREL(%rip), %rax
movslq (%rax), %rcx
movq _liste@GOTPCREL(%rip), %rax
movq -8(%rbp), %rdx
movq %rdx, (%rax,%rcx,8)
movq _queue@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _queue@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
LBB11_8:
jmp LBB11_9
LBB11_9:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _queue,4,2 ## @queue
.comm _ec,4,2 ## @ec
.comm _liste,400,4 ## @liste
.subsections_via_symbols
| the_stack_data/150141475.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _f ; -- Begin function f
.p2align 2
_f: ; @f
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
ldr x8, [sp]
ldrsh w8, [x8]
ldr x9, [sp]
strh w8, [x9, #6]
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _f ## -- Begin function f
.p2align 4, 0x90
_f: ## @f
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq -16(%rbp), %rax
movswl (%rax), %eax
movw %ax, %cx
movq -16(%rbp), %rax
movw %cx, 6(%rax)
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/826300.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, #1
stur w8, [x29, #-4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-4]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w9, [x29, #-4]
; 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 w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-4]
b LBB0_1
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d\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 $1, -4(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $5, -4(%rbp)
jge LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -4(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB0_1
LBB0_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/154831370.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _exitHandler1 ; -- Begin function exitHandler1
.p2align 2
_exitHandler1: ; @exitHandler1
.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 _exitHandler2 ; -- Begin function exitHandler2
.p2align 2
_exitHandler2: ; @exitHandler2
.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 _sigint_handler ; -- Begin function sigint_handler
.p2align 2
_sigint_handler: ; @sigint_handler
.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
mov w0, #0
bl _exit
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #400
.cfi_def_cfa_offset 400
stp x28, x27, [sp, #368] ; 16-byte Folded Spill
stp x29, x30, [sp, #384] ; 16-byte Folded Spill
add x29, sp, #384
.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, #56]
add x1, sp, #40
adrp x8, _sigint_handler@PAGE
add x8, x8, _sigint_handler@PAGEOFF
str x8, [sp, #40]
str wzr, [sp, #52]
str wzr, [sp, #48]
mov w0, #2
mov x2, #0
bl _sigaction
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _perror
b LBB3_2
LBB3_2:
adrp x0, _exitHandler1@PAGE
add x0, x0, _exitHandler1@PAGEOFF
str x0, [sp, #24] ; 8-byte Folded Spill
bl _atexit
adrp x0, _exitHandler2@PAGE
add x0, x0, _exitHandler2@PAGEOFF
bl _atexit
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _atexit
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _atexit
b LBB3_3
LBB3_3: ; =>This Inner Loop Header: Depth=1
; kill: def $x8 killed $xzr
str xzr, [sp, #32]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #60
str x8, [sp, #16] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
ldr x0, [sp, #16] ; 8-byte Folded Reload
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB3_5
b LBB3_4
LBB3_4:
b LBB3_8
LBB3_5: ; in Loop: Header=BB3_3 Depth=1
add x0, sp, #60
adrp x1, l_.str.7@PAGE
add x1, x1, l_.str.7@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB3_7
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_3 Depth=1
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
ldr x8, [sp, #32]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_3 Depth=1
mov x9, sp
add x8, sp, #60
str x8, [x9]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
b LBB3_3
LBB3_8:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB3_10
b LBB3_9
LBB3_9:
bl ___stack_chk_fail
LBB3_10:
mov w0, #0
ldp x29, x30, [sp, #384] ; 16-byte Folded Reload
ldp x28, x27, [sp, #368] ; 16-byte Folded Reload
add sp, sp, #400
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Exit handler 1 called \n"
l_.str.1: ; @.str.1
.asciz "Exit handler 2 called \n"
l_.str.2: ; @.str.2
.asciz "Caught signal %d quitting now \n"
l_.str.3: ; @.str.3
.asciz "sigaction"
l_.str.4: ; @.str.4
.asciz "Enter the string \n"
l_.str.5: ; @.str.5
.asciz "%s"
l_.str.6: ; @.str.6
.asciz "EXIT"
l_.str.7: ; @.str.7
.asciz "KILL"
l_.str.8: ; @.str.8
.asciz "Get kill instructions"
l_.str.9: ; @.str.9
.asciz "%d"
l_.str.10: ; @.str.10
.asciz "string entered [%s] \n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _exitHandler1 ## -- Begin function exitHandler1
.p2align 4, 0x90
_exitHandler1: ## @exitHandler1
.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 _exitHandler2 ## -- Begin function exitHandler2
.p2align 4, 0x90
_exitHandler2: ## @exitHandler2
.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 _sigint_handler ## -- Begin function sigint_handler
.p2align 4, 0x90
_sigint_handler: ## @sigint_handler
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movl -4(%rbp), %esi
leaq L_.str.2(%rip), %rdi
xorl %eax, %eax
movl %eax, -8(%rbp) ## 4-byte Spill
callq _printf
movl -8(%rbp), %edi ## 4-byte Reload
callq _exit
.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 $352, %rsp ## imm = 0x160
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -324(%rbp)
leaq _sigint_handler(%rip), %rax
movq %rax, -344(%rbp)
movl $0, -332(%rbp)
movl $0, -336(%rbp)
movl $2, %edi
leaq -344(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq _sigaction
cmpl $0, %eax
je LBB3_2
## %bb.1:
leaq L_.str.3(%rip), %rdi
callq _perror
LBB3_2:
leaq _exitHandler1(%rip), %rdi
callq _atexit
leaq _exitHandler2(%rip), %rdi
callq _atexit
leaq _exitHandler1(%rip), %rdi
callq _atexit
leaq _exitHandler1(%rip), %rdi
callq _atexit
LBB3_3: ## =>This Inner Loop Header: Depth=1
movq $0, -352(%rbp)
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq -320(%rbp), %rsi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _scanf
leaq -320(%rbp), %rdi
leaq L_.str.6(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB3_5
## %bb.4:
jmp LBB3_8
LBB3_5: ## in Loop: Header=BB3_3 Depth=1
leaq -320(%rbp), %rdi
leaq L_.str.7(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB3_7
## %bb.6: ## in Loop: Header=BB3_3 Depth=1
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movq -352(%rbp), %rax
movl (%rax), %esi
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
LBB3_7: ## in Loop: Header=BB3_3 Depth=1
leaq -320(%rbp), %rsi
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB3_3
LBB3_8:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB3_10
## %bb.9:
xorl %eax, %eax
addq $352, %rsp ## imm = 0x160
popq %rbp
retq
LBB3_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Exit handler 1 called \n"
L_.str.1: ## @.str.1
.asciz "Exit handler 2 called \n"
L_.str.2: ## @.str.2
.asciz "Caught signal %d quitting now \n"
L_.str.3: ## @.str.3
.asciz "sigaction"
L_.str.4: ## @.str.4
.asciz "Enter the string \n"
L_.str.5: ## @.str.5
.asciz "%s"
L_.str.6: ## @.str.6
.asciz "EXIT"
L_.str.7: ## @.str.7
.asciz "KILL"
L_.str.8: ## @.str.8
.asciz "Get kill instructions"
L_.str.9: ## @.str.9
.asciz "%d"
L_.str.10: ## @.str.10
.asciz "string entered [%s] \n"
.subsections_via_symbols
| the_stack_data/132952980.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _parse_byte ; -- Begin function parse_byte
.p2align 2
_parse_byte: ; @parse_byte
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
strb wzr, [sp, #23]
str wzr, [sp, #16]
ldr x8, [sp, #24]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
ldr x8, [sp, #24]
ldrsb w8, [x8, #1]
subs w8, w8, #98
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
mov w8, #2
str w8, [sp, #16]
b LBB0_3
LBB0_3:
ldr w8, [sp, #16]
str w8, [sp, #12]
b LBB0_4
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp, #12]
ldrsb w8, [x8, x9]
subs w8, w8, #48
cset w8, eq
mov w9, #1
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp, #12]
ldrsb w8, [x8, x9]
subs w8, w8, #49
cset w8, eq
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #8] ; 4-byte Folded Reload
tbz w8, #0, LBB0_9
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_4 Depth=1
ldrb w9, [sp, #23]
ldr x8, [sp, #24]
ldrsw x10, [sp, #12]
ldrsb w8, [x8, x10]
add w8, w8, w9, lsl #1
subs w8, w8, #48
strb w8, [sp, #23]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_4
LBB0_9:
ldrb w0, [sp, #23]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _show_register ; -- Begin function show_register
.p2align 2
_show_register: ; @show_register
.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]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w8, #7
stur w8, [x29, #-12]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
adrp x8, _REGISTER@GOTPAGE
ldr x8, [x8, _REGISTER@GOTPAGEOFF]
ldrb w8, [x8]
ldur w10, [x29, #-12]
mov w9, #1
lsl w9, w9, w10
and w8, w8, w9
ldur w9, [x29, #-12]
asr w10, w8, w9
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #1
stur w8, [x29, #-12]
b LBB1_1
LBB1_4:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _clear_bit_demo ; -- Begin function clear_bit_demo
.p2align 2
_clear_bit_demo: ; @clear_bit_demo
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sturb w0, [x29, #-1]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _show_register
adrp x9, _REGISTER@GOTPAGE
ldr x9, [x9, _REGISTER@GOTPAGEOFF]
ldrb w8, [x9]
ldurb w11, [x29, #-1]
mov w10, #1
lsl w10, w10, w11
bic w8, w8, w10
strb w8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _show_register
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]
stur w0, [x29, #-8]
str x1, [sp, #16]
ldur w8, [x29, #-8]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-4]
b LBB3_3
LBB3_2:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
bl _parse_byte
adrp x8, _REGISTER@GOTPAGE
ldr x8, [x8, _REGISTER@GOTPAGEOFF]
strb w0, [x8]
ldr x8, [sp, #16]
ldr x0, [x8, #16]
bl _atoi
strb w0, [sp, #15]
ldrb w0, [sp, #15]
bl _clear_bit_demo
stur wzr, [x29, #-4]
b LBB3_3
LBB3_3:
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 "%s operation, REGISTER = 0b"
l_.str.1: ; @.str.1
.asciz "%d"
.comm _REGISTER,1,0 ; @REGISTER
l_.str.2: ; @.str.2
.asciz "\n"
l_.str.3: ; @.str.3
.asciz "before"
l_.str.4: ; @.str.4
.asciz " after"
l_.str.5: ; @.str.5
.asciz "Error: expected 2 command line arguments.\nUsage: get_bit_demo initial_register_value pin_number\n\ninitial_register_value: 0..255\npin_number: 0..7\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _parse_byte ## -- Begin function parse_byte
.p2align 4, 0x90
_parse_byte: ## @parse_byte
.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)
movb $0, -9(%rbp)
movl $0, -16(%rbp)
movq -8(%rbp), %rax
movsbl (%rax), %eax
cmpl $48, %eax
jne LBB0_3
## %bb.1:
movq -8(%rbp), %rax
movsbl 1(%rax), %eax
cmpl $98, %eax
jne LBB0_3
## %bb.2:
movl $2, -16(%rbp)
LBB0_3:
movl -16(%rbp), %eax
movl %eax, -20(%rbp)
LBB0_4: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
movb $1, %al
cmpl $48, %ecx
movb %al, -21(%rbp) ## 1-byte Spill
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $49, %eax
sete %al
movb %al, -21(%rbp) ## 1-byte Spill
LBB0_6: ## in Loop: Header=BB0_4 Depth=1
movb -21(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_7
jmp LBB0_9
LBB0_7: ## in Loop: Header=BB0_4 Depth=1
movzbl -9(%rbp), %eax
shll $1, %eax
movq -8(%rbp), %rcx
movslq -20(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
addl %ecx, %eax
subl $48, %eax
## kill: def $al killed $al killed $eax
movb %al, -9(%rbp)
## %bb.8: ## in Loop: Header=BB0_4 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_4
LBB0_9:
movzbl -9(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _show_register ## -- Begin function show_register
.p2align 4, 0x90
_show_register: ## @show_register
.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), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $7, -12(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -12(%rbp)
jl LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq _REGISTER@GOTPCREL(%rip), %rax
movzbl (%rax), %esi
movl -12(%rbp), %ecx
movl $1, %eax
## kill: def $cl killed $ecx
shll %cl, %eax
andl %eax, %esi
movl -12(%rbp), %ecx
## kill: def $cl killed $ecx
sarl %cl, %esi
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:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _clear_bit_demo ## -- Begin function clear_bit_demo
.p2align 4, 0x90
_clear_bit_demo: ## @clear_bit_demo
.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)
leaq L_.str.3(%rip), %rdi
callq _show_register
movq _REGISTER@GOTPCREL(%rip), %rax
movzbl (%rax), %eax
movzbl -1(%rbp), %ecx
movl $1, %edx
## kill: def $cl killed $ecx
shll %cl, %edx
movl %edx, %ecx
xorl $-1, %ecx
andl %ecx, %eax
movb %al, %cl
movq _REGISTER@GOTPCREL(%rip), %rax
movb %cl, (%rax)
leaq L_.str.4(%rip), %rdi
callq _show_register
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 %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $3, -8(%rbp)
jge LBB3_2
## %bb.1:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -4(%rbp)
jmp LBB3_3
LBB3_2:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _parse_byte
movb %al, %cl
movq _REGISTER@GOTPCREL(%rip), %rax
movb %cl, (%rax)
movq -16(%rbp), %rax
movq 16(%rax), %rdi
callq _atoi
## kill: def $al killed $al killed $eax
movb %al, -17(%rbp)
movzbl -17(%rbp), %edi
callq _clear_bit_demo
movl $0, -4(%rbp)
LBB3_3:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s operation, REGISTER = 0b"
L_.str.1: ## @.str.1
.asciz "%d"
.comm _REGISTER,1,0 ## @REGISTER
L_.str.2: ## @.str.2
.asciz "\n"
L_.str.3: ## @.str.3
.asciz "before"
L_.str.4: ## @.str.4
.asciz " after"
L_.str.5: ## @.str.5
.asciz "Error: expected 2 command line arguments.\nUsage: get_bit_demo initial_register_value pin_number\n\ninitial_register_value: 0..255\npin_number: 0..7\n"
.subsections_via_symbols
| the_stack_data/90766729.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
adrp x8, ___stdinp@GOTPAGE
ldr x8, [x8, ___stdinp@GOTPAGEOFF]
ldr x0, [x8]
bl _getc
stur w0, [x29, #-8]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #97
cset w8, lt
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #122
cset w8, gt
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
eor w8, w8, #0x20
stur w8, [x29, #-12] ; 4-byte Folded Spill
b LBB0_6
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
stur w8, [x29, #-12] ; 4-byte Folded Spill
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldur w10, [x29, #-12] ; 4-byte Folded Reload
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 LBB0_1
LBB0_7:
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 "%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 $16, %rsp
movl $0, -4(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _getc
movl %eax, -8(%rbp)
cmpl $-1, %eax
je LBB0_7
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
cmpl $97, -8(%rbp)
jl LBB0_5
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
cmpl $122, -8(%rbp)
jg LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
xorl $32, %eax
movl %eax, -12(%rbp) ## 4-byte Spill
jmp LBB0_6
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
movl %eax, -12(%rbp) ## 4-byte Spill
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %esi ## 4-byte Reload
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_1
LBB0_7:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%c"
.subsections_via_symbols
| the_stack_data/176704431.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 x0, #1024
bl _malloc
stur x0, [x29, #-16]
ldur x8, [x29, #-16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldur x8, [x29, #-16]
str x8, [sp, #16] ; 8-byte Folded Spill
ldur x0, [x29, #-16]
bl _strlen
mov x8, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
add x1, x8, #1
bl _realloc
stur x0, [x29, #-16]
ldur x0, [x29, #-16]
bl _strlen
mov x8, x0
stur w8, [x29, #-20]
str wzr, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #24]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_7
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldrsw x9, [sp, #24]
ldrsb w8, [x8, x9]
subs w8, w8, #32
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldrsw x9, [sp, #24]
ldrsb 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
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_1
LBB0_7:
ldur x0, [x29, #-16]
bl _free
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 "%[^\n]"
l_.str.1: ; @.str.1
.asciz "\n"
l_.str.2: ; @.str.2
.asciz "%c"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl $1024, %edi ## imm = 0x400
callq _malloc
movq %rax, -16(%rbp)
movq -16(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _scanf
movq -16(%rbp), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq -16(%rbp), %rdi
callq _strlen
movq -32(%rbp), %rdi ## 8-byte Reload
movq %rax, %rsi
addq $1, %rsi
callq _realloc
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -20(%rbp)
movl $0, -24(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -24(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB0_7
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movslq -24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $32, %eax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movslq -24(%rbp), %rcx
movsbl (%rax,%rcx), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_6
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB0_1
LBB0_7:
movq -16(%rbp), %rdi
callq _free
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%[^\n]"
L_.str.1: ## @.str.1
.asciz "\n"
L_.str.2: ## @.str.2
.asciz "%c"
.subsections_via_symbols
| the_stack_data/1216829.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]
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #5
cset w8, ge
mov w9, #0
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #12]
add x8, sp, #20
add x0, x8, x9, lsl #2
bl _getint
adds w8, w0, #1
cset w8, ne
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8] ; 4-byte Folded Reload
tbz w8, #0, LBB0_6
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:
str wzr, [sp, #12]
b LBB0_7
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=1
ldrsw x9, [sp, #12]
add x8, sp, #20
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_9
LBB0_9: ; in Loop: Header=BB0_7 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_7
LBB0_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, LBB0_12
b LBB0_11
LBB0_11:
bl ___stack_chk_fail
LBB0_12:
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 "
.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)
movl $0, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $5, -40(%rbp)
movb %al, -41(%rbp) ## 1-byte Spill
jge LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -40(%rbp), %rax
leaq -32(%rbp), %rdi
shlq $2, %rax
addq %rax, %rdi
callq _getint
cmpl $-1, %eax
setne %al
movb %al, -41(%rbp) ## 1-byte Spill
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movb -41(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_4
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 -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_1
LBB0_6:
movl $0, -40(%rbp)
LBB0_7: ## =>This Inner Loop Header: Depth=1
cmpl $5, -40(%rbp)
jge LBB0_10
## %bb.8: ## in Loop: Header=BB0_7 Depth=1
movslq -40(%rbp), %rax
movl -32(%rbp,%rax,4), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
## %bb.9: ## in Loop: Header=BB0_7 Depth=1
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_7
LBB0_10:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_12
## %bb.11:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
LBB0_12:
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/121803.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/87636429.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, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
; kill: def $x9 killed $xzr
str xzr, [x8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _create_leaf ; -- Begin function create_leaf
.p2align 2
_create_leaf: ; @create_leaf
.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, #-12]
mov x0, #40
bl _malloc
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB1_3
LBB1_2:
ldur w8, [x29, #-12]
ldr x9, [sp, #8]
str w8, [x9]
ldr x9, [sp, #8]
mov w8, #5
str w8, [x9, #32]
ldr x8, [sp, #8]
; kill: def $x9 killed $xzr
str xzr, [x8, #24]
ldr x8, [sp, #8]
str xzr, [x8, #16]
ldr x8, [sp, #8]
str xzr, [x8, #8]
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB1_3
LBB1_3:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _inorder ; -- Begin function inorder
.p2align 2
_inorder: ; @inorder
.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]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldur x8, [x29, #-8]
ldr x0, [x8, #8]
bl _inorder
ldur x8, [x29, #-8]
ldr w8, [x8]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-8]
ldr w9, [x8, #32]
; 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
ldur x8, [x29, #-8]
ldr x0, [x8, #16]
bl _inorder
b LBB2_2
LBB2_2:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _uncle ; -- Begin function uncle
.p2align 2
_uncle: ; @uncle
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
; kill: def $x8 killed $xzr
str xzr, [sp]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB3_6
b LBB3_1
LBB3_1:
ldr x8, [sp, #8]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB3_6
b LBB3_2
LBB3_2:
ldr x8, [sp, #8]
ldr x8, [x8, #24]
ldr x8, [x8, #24]
ldr x8, [x8, #8]
ldr x9, [sp, #8]
ldr x9, [x9, #24]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3:
ldr x8, [sp, #8]
ldr x8, [x8, #24]
ldr x8, [x8, #24]
ldr x8, [x8, #16]
str x8, [sp]
b LBB3_5
LBB3_4:
ldr x8, [sp, #8]
ldr x8, [x8, #24]
ldr x8, [x8, #24]
ldr x8, [x8, #8]
str x8, [sp]
b LBB3_5
LBB3_5:
b LBB3_6
LBB3_6:
ldr x0, [sp]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _grandp ; -- Begin function grandp
.p2align 2
_grandp: ; @grandp
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp]
ldr x8, [sp]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB4_3
b LBB4_1
LBB4_1:
ldr x8, [sp]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB4_3
b LBB4_2
LBB4_2:
ldr x8, [sp]
ldr x8, [x8, #24]
ldr x8, [x8, #24]
str x8, [sp, #8]
b LBB4_4
LBB4_3:
; kill: def $x8 killed $xzr
str xzr, [sp, #8]
b LBB4_4
LBB4_4:
ldr x0, [sp, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _rot_right ; -- Begin function rot_right
.p2align 2
_rot_right: ; @rot_right
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
ldr x8, [sp, #24]
ldr x8, [x8, #24]
str x8, [sp, #16]
ldr x8, [sp, #16]
ldr x8, [x8, #24]
str x8, [sp, #8]
ldr x8, [sp, #16]
ldr x8, [x8, #16]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldr x8, [sp, #8]
ldr x9, [sp, #16]
str x8, [x9, #16]
ldr x8, [sp, #8]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB5_5
b LBB5_1
LBB5_1:
ldr x8, [sp, #8]
ldr x8, [x8, #24]
ldr x8, [x8, #8]
ldr x9, [sp, #8]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB5_3
b LBB5_2
LBB5_2:
ldr x8, [sp, #16]
ldr x9, [sp, #8]
ldr x9, [x9, #24]
str x8, [x9, #8]
b LBB5_4
LBB5_3:
ldr x8, [sp, #16]
ldr x9, [sp, #8]
ldr x9, [x9, #24]
str x8, [x9, #16]
b LBB5_4
LBB5_4:
b LBB5_5
LBB5_5:
ldr x8, [sp, #8]
ldr x8, [x8, #24]
ldr x9, [sp, #16]
str x8, [x9, #24]
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9, #24]
ldr x8, [sp, #16]
str x8, [sp, #24]
ldr x0, [sp, #24]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _rot_left ; -- Begin function rot_left
.p2align 2
_rot_left: ; @rot_left
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
ldr x8, [sp, #24]
ldr x8, [x8, #24]
str x8, [sp, #16]
ldr x8, [sp, #16]
ldr x8, [x8, #24]
str x8, [sp, #8]
ldr x8, [sp, #16]
ldr x8, [x8, #8]
ldr x9, [sp, #8]
str x8, [x9, #16]
ldr x8, [sp, #8]
ldr x9, [sp, #16]
str x8, [x9, #8]
ldr x8, [sp, #8]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB6_5
b LBB6_1
LBB6_1:
ldr x8, [sp, #8]
ldr x8, [x8, #24]
ldr x8, [x8, #16]
ldr x9, [sp, #8]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB6_3
b LBB6_2
LBB6_2:
ldr x8, [sp, #16]
ldr x9, [sp, #8]
ldr x9, [x9, #24]
str x8, [x9, #16]
b LBB6_4
LBB6_3:
ldr x8, [sp, #16]
ldr x9, [sp, #8]
ldr x9, [x9, #24]
str x8, [x9, #8]
b LBB6_4
LBB6_4:
b LBB6_5
LBB6_5:
ldr x8, [sp, #8]
ldr x8, [x8, #24]
ldr x9, [sp, #16]
str x8, [x9, #24]
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9, #24]
ldr x8, [sp, #16]
str x8, [sp, #24]
ldr x0, [sp, #24]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _rot_right_left ; -- Begin function rot_right_left
.p2align 2
_rot_right_left: ; @rot_right_left
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8, #24]
str x8, [sp, #16]
ldr x8, [sp, #16]
ldr x8, [x8, #24]
str x8, [sp, #8]
ldur x8, [x29, #-8]
ldr x8, [x8, #16]
ldr x9, [sp, #16]
str x8, [x9, #8]
ldr x8, [sp, #16]
ldur x9, [x29, #-8]
str x8, [x9, #16]
ldr x8, [sp, #8]
ldr x8, [x8, #8]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB7_2
b LBB7_1
LBB7_1:
ldur x8, [x29, #-8]
ldr x9, [sp, #8]
str x8, [x9, #8]
b LBB7_3
LBB7_2:
ldur x8, [x29, #-8]
ldr x9, [sp, #8]
str x8, [x9, #16]
b LBB7_3
LBB7_3:
ldr x8, [sp, #16]
ldr x8, [x8, #24]
ldur x9, [x29, #-8]
str x8, [x9, #24]
ldur x8, [x29, #-8]
ldr x9, [sp, #16]
str x8, [x9, #24]
ldr x0, [sp, #16]
bl _rot_left
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _rot_left_right ; -- Begin function rot_left_right
.p2align 2
_rot_left_right: ; @rot_left_right
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8, #24]
str x8, [sp, #16]
ldr x8, [sp, #16]
ldr x8, [x8, #24]
str x8, [sp, #8]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldr x9, [sp, #16]
str x8, [x9, #16]
ldr x8, [sp, #16]
ldur x9, [x29, #-8]
str x8, [x9, #8]
ldr x8, [sp, #8]
ldr x8, [x8, #8]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB8_2
b LBB8_1
LBB8_1:
ldur x8, [x29, #-8]
ldr x9, [sp, #8]
str x8, [x9, #8]
b LBB8_3
LBB8_2:
ldur x8, [x29, #-8]
ldr x9, [sp, #8]
str x8, [x9, #16]
b LBB8_3
LBB8_3:
ldr x8, [sp, #16]
ldr x8, [x8, #24]
ldur x9, [x29, #-8]
str x8, [x9, #24]
ldur x8, [x29, #-8]
ldr x9, [sp, #16]
str x8, [x9, #24]
ldr x0, [sp, #16]
bl _rot_right
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _balance ; -- Begin function balance
.p2align 2
_balance: ; @balance
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB9_2
b LBB9_1
LBB9_1:
ldur x9, [x29, #-8]
mov w8, #10
str w8, [x9, #32]
b LBB9_24
LBB9_2:
ldur x8, [x29, #-8]
ldr x8, [x8, #24]
str x8, [sp, #16]
ldr x8, [sp, #16]
ldr w8, [x8, #32]
subs w8, w8, #5
cset w8, ne
tbnz w8, #0, LBB9_23
b LBB9_3
LBB9_3:
ldur x0, [x29, #-8]
bl _uncle
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB9_8
b LBB9_4
LBB9_4:
ldr x8, [sp, #8]
ldr w8, [x8, #32]
subs w8, w8, #5
cset w8, ne
tbnz w8, #0, LBB9_8
b LBB9_5
LBB9_5:
ldr x9, [sp, #8]
mov w8, #10
str w8, [x9, #32]
ldr x9, [sp, #16]
str w8, [x9, #32]
ldur x0, [x29, #-8]
bl _grandp
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB9_7
b LBB9_6
LBB9_6:
ldur x9, [x29, #-8]
mov w8, #5
str w8, [x9, #32]
b LBB9_7
LBB9_7:
b LBB9_22
LBB9_8:
ldr x8, [sp, #16]
ldr x8, [x8, #8]
ldur x9, [x29, #-8]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB9_13
b LBB9_9
LBB9_9:
ldr x8, [sp, #16]
ldr x8, [x8, #24]
ldr x8, [x8, #16]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB9_11
b LBB9_10
LBB9_10:
ldur x0, [x29, #-8]
bl _rot_right_left
stur x0, [x29, #-8]
b LBB9_12
LBB9_11:
ldur x0, [x29, #-8]
bl _rot_right
stur x0, [x29, #-8]
b LBB9_12
LBB9_12:
b LBB9_17
LBB9_13:
ldr x8, [sp, #16]
ldr x8, [x8, #24]
ldr x8, [x8, #8]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB9_15
b LBB9_14
LBB9_14:
ldur x0, [x29, #-8]
bl _rot_left_right
stur x0, [x29, #-8]
b LBB9_16
LBB9_15:
ldur x0, [x29, #-8]
bl _rot_left
stur x0, [x29, #-8]
b LBB9_16
LBB9_16:
b LBB9_17
LBB9_17:
ldur x9, [x29, #-8]
mov w8, #10
str w8, [x9, #32]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB9_19
b LBB9_18
LBB9_18:
ldur x8, [x29, #-8]
ldr x9, [x8, #8]
mov w8, #5
str w8, [x9, #32]
b LBB9_19
LBB9_19:
ldur x8, [x29, #-8]
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB9_21
b LBB9_20
LBB9_20:
ldur x8, [x29, #-8]
ldr x9, [x8, #16]
mov w8, #5
str w8, [x9, #32]
b LBB9_21
LBB9_21:
b LBB9_22
LBB9_22:
b LBB9_23
LBB9_23:
b LBB9_24
LBB9_24:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _insert ; -- Begin function insert
.p2align 2
_insert: ; @insert
.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]
stur w1, [x29, #-20]
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB10_2
b LBB10_1
LBB10_1:
ldur w0, [x29, #-20]
bl _create_leaf
stur x0, [x29, #-8]
b LBB10_24
LBB10_2:
ldur x8, [x29, #-16]
str x8, [sp, #8]
str x8, [sp, #16]
b LBB10_3
LBB10_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB10_8
b LBB10_4
LBB10_4: ; in Loop: Header=BB10_3 Depth=1
ldr x8, [sp, #8]
str x8, [sp, #16]
ldur w8, [x29, #-20]
ldr x9, [sp, #8]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB10_6
b LBB10_5
LBB10_5: ; in Loop: Header=BB10_3 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB10_7
LBB10_6: ; in Loop: Header=BB10_3 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #16]
str x8, [sp, #8]
b LBB10_7
LBB10_7: ; in Loop: Header=BB10_3 Depth=1
b LBB10_3
LBB10_8:
ldur w0, [x29, #-20]
bl _create_leaf
str x0, [sp, #8]
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9, #24]
ldr x8, [sp, #8]
ldr w8, [x8]
ldr x9, [sp, #16]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB10_10
b LBB10_9
LBB10_9:
ldr x8, [sp, #8]
ldr x9, [sp, #16]
str x8, [x9, #8]
b LBB10_11
LBB10_10:
ldr x8, [sp, #8]
ldr x9, [sp, #16]
str x8, [x9, #16]
b LBB10_11
LBB10_11:
b LBB10_12
LBB10_12: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB10_15
b LBB10_13
LBB10_13: ; in Loop: Header=BB10_12 Depth=1
ldr x8, [sp, #8]
ldr w8, [x8, #32]
subs w8, w8, #5
cset w8, ne
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB10_15
b LBB10_14
LBB10_14: ; in Loop: Header=BB10_12 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #24]
ldr w8, [x8, #32]
subs w8, w8, #5
cset w8, eq
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB10_15
LBB10_15: ; in Loop: Header=BB10_12 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
tbz w8, #0, LBB10_17
b LBB10_16
LBB10_16: ; in Loop: Header=BB10_12 Depth=1
ldr x0, [sp, #8]
bl _balance
str x0, [sp, #8]
b LBB10_12
LBB10_17:
b LBB10_18
LBB10_18:
b LBB10_19
LBB10_19: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB10_21
b LBB10_20
LBB10_20: ; in Loop: Header=BB10_19 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #24]
str x8, [sp, #8]
b LBB10_19
LBB10_21:
ldr x8, [sp, #8]
ldur x9, [x29, #-16]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB10_23
b LBB10_22
LBB10_22:
ldr x8, [sp, #8]
stur x8, [x29, #-16]
b LBB10_23
LBB10_23:
ldur x8, [x29, #-16]
stur x8, [x29, #-8]
b LBB10_24
LBB10_24:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _height_red_black ; -- Begin function height_red_black
.p2align 2
_height_red_black: ; @height_red_black
.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, LBB11_2
b LBB11_1
LBB11_1:
stur wzr, [x29, #-4]
b LBB11_7
LBB11_2:
ldr x8, [sp, #16]
ldr w8, [x8, #32]
str w8, [sp, #12] ; 4-byte Folded Spill
subs w8, w8, #5
cset w8, eq
tbnz w8, #0, LBB11_4
b LBB11_3
LBB11_3:
ldr w8, [sp, #12] ; 4-byte Folded Reload
subs w8, w8, #10
cset w8, eq
tbnz w8, #0, LBB11_5
b LBB11_6
LBB11_4:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
bl _height_red_black
stur w0, [x29, #-4]
b LBB11_7
LBB11_5:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
bl _height_red_black
add w8, w0, #1
stur w8, [x29, #-4]
b LBB11_7
LBB11_6:
stur wzr, [x29, #-4]
b LBB11_7
LBB11_7:
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, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
bl _scanf
mov x0, #8
bl _malloc
stur x0, [x29, #-16]
ldur x0, [x29, #-16]
bl _init
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
add x8, sp, #24
str x8, [x9]
bl _scanf
ldur x8, [x29, #-16]
ldr x0, [x8]
ldr w1, [sp, #24]
bl _insert
ldur x8, [x29, #-16]
str x0, [x8]
ldur x8, [x29, #-16]
ldr x9, [x8]
mov w8, #10
str w8, [x9, #32]
mov w8, #1
stur w8, [x29, #-20]
b LBB12_1
LBB12_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB12_4
b LBB12_2
LBB12_2: ; in Loop: Header=BB12_1 Depth=1
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
ldur x8, [x29, #-16]
ldr x0, [x8]
ldr w1, [sp, #24]
bl _insert
ldur x8, [x29, #-16]
str x0, [x8]
b LBB12_3
LBB12_3: ; in Loop: Header=BB12_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB12_1
LBB12_4:
ldur x8, [x29, #-16]
ldr x0, [x8]
bl _height_red_black
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
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\t"
l_.str.1: ; @.str.1
.asciz " %d"
l_.str.2: ; @.str.2
.asciz "%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _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
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq $0, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _create_leaf ## -- Begin function create_leaf
.p2align 4, 0x90
_create_leaf: ## @create_leaf
.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, -12(%rbp)
movl $40, %edi
callq _malloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB1_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB1_3
LBB1_2:
movl -12(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movq -24(%rbp), %rax
movl $5, 32(%rax)
movq -24(%rbp), %rax
movq $0, 24(%rax)
movq -24(%rbp), %rax
movq $0, 16(%rax)
movq -24(%rbp), %rax
movq $0, 8(%rax)
movq -24(%rbp), %rax
movq %rax, -8(%rbp)
LBB1_3:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _inorder ## -- Begin function inorder
.p2align 4, 0x90
_inorder: ## @inorder
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
cmpq $0, -8(%rbp)
je LBB2_2
## %bb.1:
movq -8(%rbp), %rax
movq 8(%rax), %rdi
callq _inorder
movq -8(%rbp), %rax
movl (%rax), %esi
movq -8(%rbp), %rax
movl 32(%rax), %edx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movq 16(%rax), %rdi
callq _inorder
LBB2_2:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _uncle ## -- Begin function uncle
.p2align 4, 0x90
_uncle: ## @uncle
.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 $0, -16(%rbp)
cmpq $0, -8(%rbp)
je LBB3_6
## %bb.1:
movq -8(%rbp), %rax
cmpq $0, 24(%rax)
je LBB3_6
## %bb.2:
movq -8(%rbp), %rax
movq 24(%rax), %rax
movq 24(%rax), %rax
movq 8(%rax), %rax
movq -8(%rbp), %rcx
cmpq 24(%rcx), %rax
jne LBB3_4
## %bb.3:
movq -8(%rbp), %rax
movq 24(%rax), %rax
movq 24(%rax), %rax
movq 16(%rax), %rax
movq %rax, -16(%rbp)
jmp LBB3_5
LBB3_4:
movq -8(%rbp), %rax
movq 24(%rax), %rax
movq 24(%rax), %rax
movq 8(%rax), %rax
movq %rax, -16(%rbp)
LBB3_5:
jmp LBB3_6
LBB3_6:
movq -16(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _grandp ## -- Begin function grandp
.p2align 4, 0x90
_grandp: ## @grandp
.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)
cmpq $0, -16(%rbp)
je LBB4_3
## %bb.1:
movq -16(%rbp), %rax
cmpq $0, 24(%rax)
je LBB4_3
## %bb.2:
movq -16(%rbp), %rax
movq 24(%rax), %rax
movq 24(%rax), %rax
movq %rax, -8(%rbp)
jmp LBB4_4
LBB4_3:
movq $0, -8(%rbp)
LBB4_4:
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _rot_right ## -- Begin function rot_right
.p2align 4, 0x90
_rot_right: ## @rot_right
.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 24(%rax), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq 24(%rax), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
movq 16(%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 16(%rax)
movq -24(%rbp), %rax
cmpq $0, 24(%rax)
je LBB5_5
## %bb.1:
movq -24(%rbp), %rax
movq 24(%rax), %rax
movq 8(%rax), %rax
cmpq -24(%rbp), %rax
jne LBB5_3
## %bb.2:
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq 24(%rax), %rax
movq %rcx, 8(%rax)
jmp LBB5_4
LBB5_3:
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq 24(%rax), %rax
movq %rcx, 16(%rax)
LBB5_4:
jmp LBB5_5
LBB5_5:
movq -24(%rbp), %rax
movq 24(%rax), %rcx
movq -16(%rbp), %rax
movq %rcx, 24(%rax)
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 24(%rax)
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _rot_left ## -- Begin function rot_left
.p2align 4, 0x90
_rot_left: ## @rot_left
.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 24(%rax), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq 24(%rax), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
movq 8(%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, 16(%rax)
movq -24(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rax
cmpq $0, 24(%rax)
je LBB6_5
## %bb.1:
movq -24(%rbp), %rax
movq 24(%rax), %rax
movq 16(%rax), %rax
cmpq -24(%rbp), %rax
jne LBB6_3
## %bb.2:
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq 24(%rax), %rax
movq %rcx, 16(%rax)
jmp LBB6_4
LBB6_3:
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq 24(%rax), %rax
movq %rcx, 8(%rax)
LBB6_4:
jmp LBB6_5
LBB6_5:
movq -24(%rbp), %rax
movq 24(%rax), %rcx
movq -16(%rbp), %rax
movq %rcx, 24(%rax)
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 24(%rax)
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _rot_right_left ## -- Begin function rot_right_left
.p2align 4, 0x90
_rot_right_left: ## @rot_right_left
.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 24(%rax), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq 24(%rax), %rax
movq %rax, -24(%rbp)
movq -8(%rbp), %rax
movq 16(%rax), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movq -16(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, 16(%rax)
movq -24(%rbp), %rax
movq 8(%rax), %rax
cmpq -16(%rbp), %rax
jne LBB7_2
## %bb.1:
movq -8(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
jmp LBB7_3
LBB7_2:
movq -8(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 16(%rax)
LBB7_3:
movq -16(%rbp), %rax
movq 24(%rax), %rcx
movq -8(%rbp), %rax
movq %rcx, 24(%rax)
movq -8(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 24(%rax)
movq -16(%rbp), %rdi
callq _rot_left
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _rot_left_right ## -- Begin function rot_left_right
.p2align 4, 0x90
_rot_left_right: ## @rot_left_right
.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 24(%rax), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq 24(%rax), %rax
movq %rax, -24(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rcx
movq -16(%rbp), %rax
movq %rcx, 16(%rax)
movq -16(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rax
movq 8(%rax), %rax
cmpq -16(%rbp), %rax
jne LBB8_2
## %bb.1:
movq -8(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
jmp LBB8_3
LBB8_2:
movq -8(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 16(%rax)
LBB8_3:
movq -16(%rbp), %rax
movq 24(%rax), %rcx
movq -8(%rbp), %rax
movq %rcx, 24(%rax)
movq -8(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 24(%rax)
movq -16(%rbp), %rdi
callq _rot_right
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _balance ## -- Begin function balance
.p2align 4, 0x90
_balance: ## @balance
.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
cmpq $0, 24(%rax)
jne LBB9_2
## %bb.1:
movq -8(%rbp), %rax
movl $10, 32(%rax)
jmp LBB9_24
LBB9_2:
movq -8(%rbp), %rax
movq 24(%rax), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
cmpl $5, 32(%rax)
jne LBB9_23
## %bb.3:
movq -8(%rbp), %rdi
callq _uncle
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
je LBB9_8
## %bb.4:
movq -24(%rbp), %rax
cmpl $5, 32(%rax)
jne LBB9_8
## %bb.5:
movq -24(%rbp), %rax
movl $10, 32(%rax)
movq -16(%rbp), %rax
movl $10, 32(%rax)
movq -8(%rbp), %rdi
callq _grandp
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
cmpq $0, 24(%rax)
je LBB9_7
## %bb.6:
movq -8(%rbp), %rax
movl $5, 32(%rax)
LBB9_7:
jmp LBB9_22
LBB9_8:
movq -16(%rbp), %rax
movq 8(%rax), %rax
cmpq -8(%rbp), %rax
jne LBB9_13
## %bb.9:
movq -16(%rbp), %rax
movq 24(%rax), %rax
movq 16(%rax), %rax
cmpq -16(%rbp), %rax
jne LBB9_11
## %bb.10:
movq -8(%rbp), %rdi
callq _rot_right_left
movq %rax, -8(%rbp)
jmp LBB9_12
LBB9_11:
movq -8(%rbp), %rdi
callq _rot_right
movq %rax, -8(%rbp)
LBB9_12:
jmp LBB9_17
LBB9_13:
movq -16(%rbp), %rax
movq 24(%rax), %rax
movq 8(%rax), %rax
cmpq -16(%rbp), %rax
jne LBB9_15
## %bb.14:
movq -8(%rbp), %rdi
callq _rot_left_right
movq %rax, -8(%rbp)
jmp LBB9_16
LBB9_15:
movq -8(%rbp), %rdi
callq _rot_left
movq %rax, -8(%rbp)
LBB9_16:
jmp LBB9_17
LBB9_17:
movq -8(%rbp), %rax
movl $10, 32(%rax)
movq -8(%rbp), %rax
cmpq $0, 8(%rax)
je LBB9_19
## %bb.18:
movq -8(%rbp), %rax
movq 8(%rax), %rax
movl $5, 32(%rax)
LBB9_19:
movq -8(%rbp), %rax
cmpq $0, 16(%rax)
je LBB9_21
## %bb.20:
movq -8(%rbp), %rax
movq 16(%rax), %rax
movl $5, 32(%rax)
LBB9_21:
jmp LBB9_22
LBB9_22:
jmp LBB9_23
LBB9_23:
jmp LBB9_24
LBB9_24:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.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
subq $48, %rsp
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
cmpq $0, -16(%rbp)
jne LBB10_2
## %bb.1:
movl -20(%rbp), %edi
callq _create_leaf
movq %rax, -8(%rbp)
jmp LBB10_24
LBB10_2:
movq -16(%rbp), %rax
movq %rax, -40(%rbp)
movq %rax, -32(%rbp)
LBB10_3: ## =>This Inner Loop Header: Depth=1
cmpq $0, -40(%rbp)
je LBB10_8
## %bb.4: ## in Loop: Header=BB10_3 Depth=1
movq -40(%rbp), %rax
movq %rax, -32(%rbp)
movl -20(%rbp), %eax
movq -40(%rbp), %rcx
cmpl (%rcx), %eax
jge LBB10_6
## %bb.5: ## in Loop: Header=BB10_3 Depth=1
movq -40(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -40(%rbp)
jmp LBB10_7
LBB10_6: ## in Loop: Header=BB10_3 Depth=1
movq -40(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -40(%rbp)
LBB10_7: ## in Loop: Header=BB10_3 Depth=1
jmp LBB10_3
LBB10_8:
movl -20(%rbp), %edi
callq _create_leaf
movq %rax, -40(%rbp)
movq -32(%rbp), %rcx
movq -40(%rbp), %rax
movq %rcx, 24(%rax)
movq -40(%rbp), %rax
movl (%rax), %eax
movq -32(%rbp), %rcx
cmpl (%rcx), %eax
jge LBB10_10
## %bb.9:
movq -40(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, 8(%rax)
jmp LBB10_11
LBB10_10:
movq -40(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, 16(%rax)
LBB10_11:
jmp LBB10_12
LBB10_12: ## =>This Inner Loop Header: Depth=1
movq -40(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq $0, 24(%rcx)
movb %al, -41(%rbp) ## 1-byte Spill
je LBB10_15
## %bb.13: ## in Loop: Header=BB10_12 Depth=1
movq -40(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $5, 32(%rcx)
movb %al, -41(%rbp) ## 1-byte Spill
jne LBB10_15
## %bb.14: ## in Loop: Header=BB10_12 Depth=1
movq -40(%rbp), %rax
movq 24(%rax), %rax
cmpl $5, 32(%rax)
sete %al
movb %al, -41(%rbp) ## 1-byte Spill
LBB10_15: ## in Loop: Header=BB10_12 Depth=1
movb -41(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB10_16
jmp LBB10_17
LBB10_16: ## in Loop: Header=BB10_12 Depth=1
movq -40(%rbp), %rdi
callq _balance
movq %rax, -40(%rbp)
jmp LBB10_12
LBB10_17:
jmp LBB10_18
LBB10_18:
jmp LBB10_19
LBB10_19: ## =>This Inner Loop Header: Depth=1
movq -40(%rbp), %rax
cmpq $0, 24(%rax)
je LBB10_21
## %bb.20: ## in Loop: Header=BB10_19 Depth=1
movq -40(%rbp), %rax
movq 24(%rax), %rax
movq %rax, -40(%rbp)
jmp LBB10_19
LBB10_21:
movq -40(%rbp), %rax
cmpq -16(%rbp), %rax
je LBB10_23
## %bb.22:
movq -40(%rbp), %rax
movq %rax, -16(%rbp)
LBB10_23:
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
LBB10_24:
movq -8(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _height_red_black ## -- Begin function height_red_black
.p2align 4, 0x90
_height_red_black: ## @height_red_black
.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 LBB11_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB11_6
LBB11_2:
movq -16(%rbp), %rax
movl 32(%rax), %eax
movl %eax, -20(%rbp) ## 4-byte Spill
subl $5, %eax
je LBB11_3
jmp LBB11_7
LBB11_7:
movl -20(%rbp), %eax ## 4-byte Reload
subl $10, %eax
je LBB11_4
jmp LBB11_5
LBB11_3:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _height_red_black
movl %eax, -4(%rbp)
jmp LBB11_6
LBB11_4:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _height_red_black
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB11_6
LBB11_5:
movl $0, -4(%rbp)
LBB11_6:
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 $32, %rsp
movl $0, -4(%rbp)
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl $8, %edi
callq _malloc
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
callq _init
leaq L_.str.1(%rip), %rdi
leaq -24(%rbp), %rsi
movb $0, %al
callq _scanf
movq -16(%rbp), %rax
movq (%rax), %rdi
movl -24(%rbp), %esi
callq _insert
movq %rax, %rcx
movq -16(%rbp), %rax
movq %rcx, (%rax)
movq -16(%rbp), %rax
movq (%rax), %rax
movl $10, 32(%rax)
movl $1, -20(%rbp)
LBB12_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB12_4
## %bb.2: ## in Loop: Header=BB12_1 Depth=1
leaq L_.str.1(%rip), %rdi
leaq -24(%rbp), %rsi
movb $0, %al
callq _scanf
movq -16(%rbp), %rax
movq (%rax), %rdi
movl -24(%rbp), %esi
callq _insert
movq %rax, %rcx
movq -16(%rbp), %rax
movq %rcx, (%rax)
## %bb.3: ## in Loop: Header=BB12_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB12_1
LBB12_4:
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _height_red_black
movl %eax, %esi
leaq L_.str.2(%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\t"
L_.str.1: ## @.str.1
.asciz " %d"
L_.str.2: ## @.str.2
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/29824717.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/75180.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 w0, #0
stur w0, [x29, #-4] ; 4-byte Folded Spill
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _f_wrapper_thunk
ldur w0, [x29, #-4] ; 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 "hi"
.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
xorl %edi, %edi
leaq L_.str(%rip), %rsi
callq _f_wrapper_thunk
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "hi"
.subsections_via_symbols
| the_stack_data/64199837.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]
str w1, [sp, #8]
ldr w8, [sp, #12]
ldr w9, [sp, #8]
add w8, w8, w9
str w8, [sp, #4]
ldr w8, [sp, #4]
add w0, w8, #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, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov w0, #5
mov w1, #900
bl _foo
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 _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)
movl %esi, -8(%rbp)
movl -4(%rbp), %eax
addl -8(%rbp), %eax
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
addl $3, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $5, %edi
movl $900, %esi ## imm = 0x384
callq _foo
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/150140813.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _show1 ; -- Begin function show1
.p2align 2
_show1: ; @show1
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
ldr x0, [sp, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _show2 ; -- Begin function show2
.p2align 2
_show2: ; @show2
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _show3 ; -- Begin function show3
.p2align 2
_show3: ; @show3
.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
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@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
adrp x8, _f_i1@GOTPAGE
ldr x8, [x8, _f_i1@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.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
stur w8, [x29, #-20] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov x9, sp
str xzr, [x9]
mov x8, #1
str x8, [x9, #8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
bl _show1
stur x0, [x29, #-16]
ldur x8, [x29, #-16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
bl _printf
bl _show2
mov x10, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
bl _printf
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
bl _show3
ldur w0, [x29, #-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 "%d - %d\n"
l_.str.1: ; @.str.1
.asciz "%d\n"
.comm _f_i1,4,2 ; @f_i1
l_.str.2: ; @.str.2
.asciz "Hello, World! \n"
l_.str.3: ; @.str.3
.asciz "{%d, %d}\n"
l_.str.4: ; @.str.4
.asciz "{%d}\n"
l_.str.5: ; @.str.5
.asciz "---\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _show1 ## -- Begin function show1
.p2align 4, 0x90
_show1: ## @show1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _show2 ## -- Begin function show2
.p2align 4, 0x90
_show2: ## @show2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _show3 ## -- Begin function show3
.p2align 4, 0x90
_show3: ## @show3
.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(%rbp), %esi
movl -8(%rbp), %edx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq _f_i1@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.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
movb $0, %al
callq _printf
leaq L_.str.3(%rip), %rdi
xorl %esi, %esi
movl $1, %edx
movb $0, %al
callq _printf
callq _show1
movq %rax, -16(%rbp)
movq -16(%rbp), %rsi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
callq _show2
movl %eax, %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
callq _show3
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d - %d\n"
L_.str.1: ## @.str.1
.asciz "%d\n"
.comm _f_i1,4,2 ## @f_i1
L_.str.2: ## @.str.2
.asciz "Hello, World! \n"
L_.str.3: ## @.str.3
.asciz "{%d, %d}\n"
L_.str.4: ## @.str.4
.asciz "{%d}\n"
L_.str.5: ## @.str.5
.asciz "---\n"
.subsections_via_symbols
| the_stack_data/32949858.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __DATA,__data
.globl _x ; @x
.p2align 2
_x:
.long 16 ; 0x10
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __DATA,__data
.globl _x ## @x
.p2align 2
_x:
.long 16 ## 0x10
.subsections_via_symbols
| the_stack_data/19821.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _splitlock_enforcement_enabled ; -- Begin function splitlock_enforcement_enabled
.p2align 2
_splitlock_enforcement_enabled: ; @splitlock_enforcement_enabled
.cfi_startproc
; %bb.0:
mov w8, #0
and w0, w8, #0x1
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _splitlock_enforcement_enabled ## -- Begin function splitlock_enforcement_enabled
.p2align 4, 0x90
_splitlock_enforcement_enabled: ## @splitlock_enforcement_enabled
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
cmpl $0, _splitlock_enforcement_enabled.cached_result(%rip)
je LBB0_2
## %bb.1:
cmpl $0, _splitlock_enforcement_enabled.cached_result(%rip)
setg %al
andb $1, %al
movb %al, -1(%rbp)
jmp LBB0_9
LBB0_2:
callq _vfork
movl %eax, -8(%rbp)
cmpl $0, -8(%rbp)
jne LBB0_4
## %bb.3:
callq _splitlock_detection
LBB0_4:
cmpl $0, -8(%rbp)
jge LBB0_6
## %bb.5:
movb $0, -1(%rbp)
jmp LBB0_9
LBB0_6:
movl -8(%rbp), %edi
leaq -12(%rbp), %rsi
xorl %edx, %edx
callq _waitpid
movl -12(%rbp), %ecx
andl $127, %ecx
movb $1, %al
cmpl $0, %ecx
movb %al, -14(%rbp) ## 1-byte Spill
jne LBB0_8
## %bb.7:
movl -12(%rbp), %eax
sarl $8, %eax
andl $255, %eax
cmpl $0, %eax
setne %al
movb %al, -14(%rbp) ## 1-byte Spill
LBB0_8:
movb -14(%rbp), %al ## 1-byte Reload
andb $1, %al
movb %al, -13(%rbp)
movb -13(%rbp), %dl
movl $4294967295, %eax ## imm = 0xFFFFFFFF
movl $1, %ecx
testb $1, %dl
cmovnel %ecx, %eax
movl %eax, _splitlock_enforcement_enabled.cached_result(%rip)
movb -13(%rbp), %al
andb $1, %al
movb %al, -1(%rbp)
LBB0_9:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function splitlock_detection
_splitlock_detection: ## @splitlock_detection
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
andq $-64, %rsp
subq $192, %rsp
leaq 126(%rsp), %rax
movq %rax, 56(%rsp)
movl $1, 52(%rsp)
leaq _splitlock_signal_handler(%rip), %rsi
movq %rsi, 40(%rsp) ## 8-byte Spill
movl $11, %edi
callq _signal
movq 40(%rsp), %rsi ## 8-byte Reload
movl $10, %edi
callq _signal
movq 56(%rsp), %rcx
movl 52(%rsp), %eax
## InlineAsm Start
lock xchgl %eax, (%rcx)
## InlineAsm End
movl %eax, 52(%rsp)
xorl %edi, %edi
callq __exit
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function splitlock_signal_handler
_splitlock_signal_handler: ## @splitlock_signal_handler
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movl -4(%rbp), %edi
callq __exit
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_splitlock_enforcement_enabled.cached_result,4,2 ## @splitlock_enforcement_enabled.cached_result
.subsections_via_symbols
| the_stack_data/47344.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl ___cmdassert ; -- Begin function __cmdassert
.p2align 2
___cmdassert: ; @__cmdassert
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur w2, [x29, #-20]
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldur x11, [x29, #-8]
ldur x10, [x29, #-16]
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 x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
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 "Benign assertion failed: %s, file %s, line %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl ___cmdassert ## -- Begin function __cmdassert
.p2align 4, 0x90
___cmdassert: ## @__cmdassert
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl %edx, -20(%rbp)
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -8(%rbp), %rdx
movq -16(%rbp), %rcx
movl -20(%rbp), %r8d
leaq L_.str(%rip), %rsi
movb $0, %al
callq _fprintf
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Benign assertion failed: %s, file %s, line %d\n"
.subsections_via_symbols
| the_stack_data/48575128.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, le
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur s0, [x29, #-8]
fmov s1, #30.00000000
fsub s0, s0, s1
mov w8, #32768
movk w8, #17595, lsl #16
fmov s2, w8
mov w8, #1109393408
fmov s1, w8
fmadd s0, s0, s1, s2
stur s0, [x29, #-12]
b LBB0_5
LBB0_2:
ldur s0, [x29, #-8]
fmov s1, #30.00000000
fcmp s0, s1
cset w8, hi
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur s0, [x29, #-8]
mov w8, #1112014848
fmov s1, w8
fmul s0, s0, s1
stur s0, [x29, #-12]
b LBB0_4
LBB0_4:
b LBB0_5
LBB0_5:
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 = "
l_.str.1: ; @.str.1
.asciz "%f"
l_.str.2: ; @.str.2
.asciz "Amount = %.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 0x42480000 ## float 50
LCPI0_2:
.long 0x42200000 ## float 40
LCPI0_3:
.long 0x44bb8000 ## float 1500
.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 -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
jbe LBB0_2
## %bb.1:
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 LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm1, %xmm0
movss LCPI0_3(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
addss %xmm1, %xmm0
movss %xmm0, -12(%rbp)
jmp LBB0_5
LBB0_2:
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -8(%rbp), %xmm0
jb LBB0_4
## %bb.3:
movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
mulss -8(%rbp), %xmm0
movss %xmm0, -12(%rbp)
LBB0_4:
jmp LBB0_5
LBB0_5:
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 = "
L_.str.1: ## @.str.1
.asciz "%f"
L_.str.2: ## @.str.2
.asciz "Amount = %.2f"
.subsections_via_symbols
| the_stack_data/86074798.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str wzr, [sp, #12]
mov w0, #-13
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 $4294967283, %eax ## imm = 0xFFFFFFF3
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/232957024.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _f ; -- Begin function f
.p2align 2
_f: ; @f
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str w1, [sp, #8]
mov w8, #1
str w8, [sp, #4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldr w9, [sp, #8]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #12]
mul w8, w8, w9
str w8, [sp, #4]
ldr w8, [sp, #12]
subs w8, w8, #1
str w8, [sp, #12]
b LBB0_1
LBB0_3:
ldr w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #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
stur w8, [x29, #-16] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
sub x8, x29, #12
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldur w0, [x29, #-8]
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
subs w1, w8, w9
bl _f
ldur w1, [x29, #-16] ; 4-byte Folded Reload
stur w0, [x29, #-20] ; 4-byte Folded Spill
ldur w0, [x29, #-12]
bl _f
mov x8, x0
ldur w0, [x29, #-20] ; 4-byte Folded Reload
sdiv w10, w0, w8
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldur w0, [x29, #-16] ; 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%d"
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 _f ## -- Begin function f
.p2align 4, 0x90
_f: ## @f
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl $1, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -4(%rbp), %eax
cmpl -8(%rbp), %eax
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
imull -4(%rbp), %eax
movl %eax, -12(%rbp)
movl -4(%rbp), %eax
addl $-1, %eax
movl %eax, -4(%rbp)
jmp LBB0_1
LBB0_3:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
leaq -12(%rbp), %rdx
movb $0, %al
callq _scanf
movl -8(%rbp), %edi
movl -8(%rbp), %esi
subl -12(%rbp), %esi
callq _f
movl %eax, -16(%rbp) ## 4-byte Spill
movl -12(%rbp), %edi
xorl %esi, %esi
callq _f
movl %eax, %ecx
movl -16(%rbp), %eax ## 4-byte Reload
cltd
idivl %ecx
movl %eax, %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d%d"
L_.str.1: ## @.str.1
.asciz "%d"
.subsections_via_symbols
| the_stack_data/304747.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _getdate ; -- Begin function getdate
.p2align 2
_getdate: ; @getdate
.cfi_startproc
; %bb.0:
sub sp, sp, #368
.cfi_def_cfa_offset 368
stp x28, x27, [sp, #336] ; 16-byte Folded Spill
stp x29, x30, [sp, #352] ; 16-byte Folded Spill
add x29, sp, #352
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub x8, x29, #104
str x8, [sp, #56] ; 8-byte Folded Spill
adrp x9, _getdate_err@GOTPAGE
ldr x9, [x9, _getdate_err@GOTPAGEOFF]
str x9, [sp, #64] ; 8-byte Folded Spill
adrp x9, _getdate.tm@PAGE
add x9, x9, _getdate.tm@PAGEOFF
str x9, [sp, #72] ; 8-byte Folded Spill
str x0, [x8, #72]
; kill: def $x9 killed $xzr
str xzr, [x8, #56]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _getenv
str x0, [sp, #96]
ldr x8, [sp, #96]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #96]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x10, [sp, #64] ; 8-byte Folded Reload
mov w9, #1
str w9, [x10]
; kill: def $x9 killed $xzr
str xzr, [x8, #80]
b LBB0_93
LBB0_3:
bl ___error
ldr w8, [x0]
stur w8, [x29, #-88]
ldr x0, [sp, #96]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fopen
ldr x9, [sp, #56] ; 8-byte Folded Reload
mov x8, x0
str x8, [x9, #40]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldr x9, [sp, #64] ; 8-byte Folded Reload
mov w8, #2
str w8, [x9]
ldur w8, [x29, #-88]
str w8, [sp, #52] ; 4-byte Folded Spill
bl ___error
ldr w9, [sp, #52] ; 4-byte Folded Reload
ldr x8, [sp, #56] ; 8-byte Folded Reload
str w9, [x0]
; kill: def $x9 killed $xzr
str xzr, [x8, #80]
b LBB0_93
LBB0_5:
b LBB0_6
LBB0_6:
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8, #40]
bl _fileno
add x1, sp, #104
bl _fstat
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldr x9, [sp, #64] ; 8-byte Folded Reload
mov w8, #3
str w8, [x9]
b LBB0_92
LBB0_8:
ldrh w8, [sp, #108]
and w8, w8, #0xf000
subs w8, w8, #8, lsl #12 ; =32768
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
ldr x9, [sp, #64] ; 8-byte Folded Reload
mov w8, #4
str w8, [x9]
b LBB0_92
LBB0_10:
mov w8, #1024
stur w8, [x29, #-68]
mov x0, #1024
bl _malloc
ldr x9, [sp, #56] ; 8-byte Folded Reload
mov x8, x0
str x8, [x9]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
ldr x9, [sp, #64] ; 8-byte Folded Reload
mov w8, #6
str w8, [x9]
b LBB0_92
LBB0_12:
b LBB0_13
LBB0_13:
stur wzr, [x29, #-72]
b LBB0_14
LBB0_14: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x9, [x8]
ldursw x10, [x29, #-72]
add x0, x9, x10
ldur w9, [x29, #-68]
ldur w10, [x29, #-72]
subs w1, w9, w10
ldr x2, [x8, #40]
bl _fgets
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_14 Depth=1
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8, #40]
bl _ferror
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16:
ldr x9, [sp, #64] ; 8-byte Folded Reload
mov w8, #5
str w8, [x9]
b LBB0_90
LBB0_17: ; in Loop: Header=BB0_14 Depth=1
ldur w8, [x29, #-72]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18:
ldr x9, [sp, #64] ; 8-byte Folded Reload
mov w8, #7
str w8, [x9]
b LBB0_90
LBB0_19: ; in Loop: Header=BB0_14 Depth=1
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _strlen
mov x8, x0
stur w8, [x29, #-76]
b LBB0_26
LBB0_20: ; in Loop: Header=BB0_14 Depth=1
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _strlen
mov x8, x0
mov x9, x0
stur w9, [x29, #-76]
ldur w9, [x29, #-68]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_25
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_14 Depth=1
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x8, [x8]
ldur w9, [x29, #-76]
subs w9, w9, #1
ldrsb w8, [x8, w9, sxtw]
subs w8, w8, #10
cset w8, eq
tbnz w8, #0, LBB0_25
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_14 Depth=1
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
ldur w8, [x29, #-68]
add w9, w8, #1024
stur w9, [x29, #-68]
; implicit-def: $x8
mov x8, x9
sxtw x1, w8
bl _realloc
str x0, [sp, #88]
ldr x8, [sp, #88]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23:
ldr x9, [sp, #64] ; 8-byte Folded Reload
mov w8, #6
str w8, [x9]
b LBB0_90
LBB0_24: ; in Loop: Header=BB0_14 Depth=1
ldr x9, [sp, #56] ; 8-byte Folded Reload
ldr x8, [sp, #88]
str x8, [x9]
ldur w8, [x29, #-76]
stur w8, [x29, #-72]
b LBB0_14
LBB0_25: ; in Loop: Header=BB0_14 Depth=1
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_14 Depth=1
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x8, [x8]
ldur w9, [x29, #-76]
subs w9, w9, #1
ldrsb w8, [x8, w9, sxtw]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB0_28
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_14 Depth=1
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x8, [x8]
ldur w9, [x29, #-76]
subs w9, w9, #1
add x8, x8, w9, sxtw
strb wzr, [x8]
b LBB0_28
LBB0_28: ; in Loop: Header=BB0_14 Depth=1
adrp x0, _getdate.tm@PAGE
add x0, x0, _getdate.tm@PAGEOFF
str x0, [sp, #40] ; 8-byte Folded Spill
adrp x1, _tmundef@PAGE
add x1, x1, _tmundef@PAGEOFF
mov x2, #56
bl _memcpy
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x2, [sp, #40] ; 8-byte Folded Reload
ldr x0, [x8, #72]
ldr x1, [x8]
bl _strptime
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_30
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_14 Depth=1
stur wzr, [x29, #-72]
b LBB0_14
LBB0_30:
sub x0, x29, #56
str x0, [sp, #32] ; 8-byte Folded Spill
bl _time
ldr x0, [sp, #32] ; 8-byte Folded Reload
bl _localtime
ldr x8, [sp, #56] ; 8-byte Folded Reload
str x0, [x8, #64]
stur wzr, [x29, #-84]
stur wzr, [x29, #-80]
adrp x8, _getdate.tm@PAGE
ldr w8, [x8, _getdate.tm@PAGEOFF]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_32
b LBB0_31
LBB0_31:
ldur w8, [x29, #-84]
orr w8, w8, #0x1
stur w8, [x29, #-84]
b LBB0_32
LBB0_32:
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr w8, [x8, #4]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_34
b LBB0_33
LBB0_33:
ldur w8, [x29, #-84]
orr w8, w8, #0x2
stur w8, [x29, #-84]
b LBB0_34
LBB0_34:
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr w8, [x8, #8]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_36
b LBB0_35
LBB0_35:
ldur w8, [x29, #-84]
orr w8, w8, #0x4
stur w8, [x29, #-84]
b LBB0_36
LBB0_36:
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr w8, [x8, #12]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_38
b LBB0_37
LBB0_37:
ldur w8, [x29, #-80]
orr w8, w8, #0x1
stur w8, [x29, #-80]
b LBB0_38
LBB0_38:
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr w8, [x8, #16]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_40
b LBB0_39
LBB0_39:
ldur w8, [x29, #-80]
orr w8, w8, #0x2
stur w8, [x29, #-80]
b LBB0_40
LBB0_40:
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr w8, [x8, #20]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_42
b LBB0_41
LBB0_41:
ldur w8, [x29, #-80]
orr w8, w8, #0x4
stur w8, [x29, #-80]
b LBB0_42
LBB0_42:
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr w8, [x8, #24]
stur w8, [x29, #-92]
ldur w8, [x29, #-84]
subs w8, w8, #0
; kill: def $x8 killed $w8
str x8, [sp, #24] ; 8-byte Folded Spill
subs x8, x8, #6
cset w8, hi
tbnz w8, #0, LBB0_57
; %bb.43:
ldr x11, [sp, #24] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_44:
ldr x9, [sp, #72] ; 8-byte Folded Reload
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x10, [x8, #64]
ldr w10, [x10]
adrp x11, _getdate.tm@PAGE
str w10, [x11, _getdate.tm@PAGEOFF]
ldr x10, [x8, #64]
ldr w10, [x10, #4]
str w10, [x9, #4]
ldr x8, [x8, #64]
ldr w8, [x8, #8]
str w8, [x9, #8]
b LBB0_57
LBB0_45:
ldr x9, [sp, #56] ; 8-byte Folded Reload
ldr x10, [sp, #72] ; 8-byte Folded Reload
ldr x8, [x9, #64]
ldr w8, [x8, #8]
str w8, [x10, #8]
ldr x8, [x9, #64]
ldr w8, [x8, #4]
str w8, [x10, #4]
adrp x8, _getdate.tm@PAGE
ldr w8, [x8, _getdate.tm@PAGEOFF]
ldr x9, [x9, #64]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_47
b LBB0_46
LBB0_46:
ldr x9, [sp, #72] ; 8-byte Folded Reload
ldr w8, [x9, #4]
add w8, w8, #1
str w8, [x9, #4]
b LBB0_47
LBB0_47:
b LBB0_57
LBB0_48:
ldr x9, [sp, #56] ; 8-byte Folded Reload
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x10, [x9, #64]
ldr w10, [x10, #8]
str w10, [x8, #8]
ldr w8, [x8, #4]
ldr x9, [x9, #64]
ldr w9, [x9, #4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_50
b LBB0_49
LBB0_49:
ldr x9, [sp, #72] ; 8-byte Folded Reload
ldr w8, [x9, #8]
add w8, w8, #1
str w8, [x9, #8]
b LBB0_50
LBB0_50:
adrp x8, _getdate.tm@PAGE
str wzr, [x8, _getdate.tm@PAGEOFF]
b LBB0_57
LBB0_51:
ldr x10, [sp, #56] ; 8-byte Folded Reload
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x9, [x10, #64]
ldr w9, [x9, #8]
str w9, [x8, #8]
ldr w8, [x8, #4]
mov w9, #60
mul w8, w9, w8
adrp x11, _getdate.tm@PAGE
ldr w11, [x11, _getdate.tm@PAGEOFF]
add w8, w8, w11
ldr x11, [x10, #64]
ldr w11, [x11, #4]
mul w9, w9, w11
ldr x10, [x10, #64]
ldr w10, [x10]
add w9, w9, w10
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_53
b LBB0_52
LBB0_52:
ldr x9, [sp, #72] ; 8-byte Folded Reload
ldr w8, [x9, #8]
add w8, w8, #1
str w8, [x9, #8]
b LBB0_53
LBB0_53:
b LBB0_57
LBB0_54:
ldr x8, [sp, #72] ; 8-byte Folded Reload
str wzr, [x8, #4]
adrp x8, _getdate.tm@PAGE
str wzr, [x8, _getdate.tm@PAGEOFF]
b LBB0_57
LBB0_55:
ldr x8, [sp, #72] ; 8-byte Folded Reload
str wzr, [x8, #4]
b LBB0_57
LBB0_56:
adrp x8, _getdate.tm@PAGE
str wzr, [x8, _getdate.tm@PAGEOFF]
b LBB0_57
LBB0_57:
ldur w8, [x29, #-80]
subs w8, w8, #0
; kill: def $x8 killed $w8
str x8, [sp, #16] ; 8-byte Folded Spill
subs x8, x8, #6
cset w8, hi
tbnz w8, #0, LBB0_76
; %bb.58:
ldr x11, [sp, #16] ; 8-byte Folded Reload
adrp x10, lJTI0_1@PAGE
add x10, x10, lJTI0_1@PAGEOFF
Ltmp1:
adr x8, Ltmp1
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_59:
ldr x9, [sp, #56] ; 8-byte Folded Reload
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x10, [x9, #64]
ldr w10, [x10, #12]
str w10, [x8, #12]
ldr w8, [x8, #8]
ldr x9, [x9, #64]
ldr w9, [x9, #8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_61
b LBB0_60
LBB0_60:
ldr x9, [sp, #72] ; 8-byte Folded Reload
ldr w8, [x9, #12]
add w8, w8, #1
str w8, [x9, #12]
b LBB0_61
LBB0_61:
ldr x9, [sp, #72] ; 8-byte Folded Reload
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x10, [x8, #64]
ldr w10, [x10, #16]
str w10, [x9, #16]
ldr x8, [x8, #64]
ldr w8, [x8, #20]
str w8, [x9, #20]
b LBB0_76
LBB0_62:
ldr x9, [sp, #56] ; 8-byte Folded Reload
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x10, [x9, #64]
ldr w10, [x10, #20]
str w10, [x8, #20]
ldr x10, [x9, #64]
ldr w10, [x10, #16]
str w10, [x8, #16]
ldr w8, [x8, #12]
ldr x9, [x9, #64]
ldr w9, [x9, #12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_64
b LBB0_63
LBB0_63:
ldr x9, [sp, #72] ; 8-byte Folded Reload
ldr w8, [x9, #16]
add w8, w8, #1
str w8, [x9, #16]
b LBB0_64
LBB0_64:
b LBB0_76
LBB0_65:
ldr x9, [sp, #56] ; 8-byte Folded Reload
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x10, [x9, #64]
ldr w10, [x10, #20]
str w10, [x8, #20]
ldr w8, [x8, #16]
ldr x9, [x9, #64]
ldr w9, [x9, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_67
b LBB0_66
LBB0_66:
ldr x9, [sp, #72] ; 8-byte Folded Reload
ldr w8, [x9, #20]
add w8, w8, #1
str w8, [x9, #20]
b LBB0_67
LBB0_67:
ldur w8, [x29, #-80]
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB0_69
b LBB0_68
LBB0_68:
ldr x9, [sp, #72] ; 8-byte Folded Reload
mov w8, #1
str w8, [x9, #12]
b LBB0_69
LBB0_69:
b LBB0_76
LBB0_70:
ldur w8, [x29, #-80]
ands w8, w8, #0x2
cset w8, ne
tbnz w8, #0, LBB0_72
b LBB0_71
LBB0_71:
ldr x8, [sp, #72] ; 8-byte Folded Reload
str wzr, [x8, #16]
b LBB0_72
LBB0_72:
ldr x9, [sp, #72] ; 8-byte Folded Reload
mov w8, #1
str w8, [x9, #12]
b LBB0_76
LBB0_73:
ldr x9, [sp, #56] ; 8-byte Folded Reload
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x10, [x9, #64]
ldr w10, [x10, #16]
str w10, [x8, #16]
ldr w8, [x8, #12]
ldr x9, [x9, #64]
ldr w9, [x9, #12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_75
b LBB0_74
LBB0_74:
ldr x9, [sp, #72] ; 8-byte Folded Reload
ldr w8, [x9, #16]
add w8, w8, #1
str w8, [x9, #16]
b LBB0_75
LBB0_75:
b LBB0_76
LBB0_76:
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x9, [sp, #56] ; 8-byte Folded Reload
ldr x10, [x9, #64]
ldr w10, [x10, #24]
str w10, [x8, #24]
ldr x9, [x9, #64]
ldr x9, [x9, #40]
str x9, [x8, #40]
mov w9, #-1
str w9, [x8, #32]
ldr w8, [x8, #16]
stur w8, [x29, #-96]
adrp x0, _getdate.tm@PAGE
add x0, x0, _getdate.tm@PAGEOFF
bl _mktime
adds x8, x0, #1
cset w8, ne
tbnz w8, #0, LBB0_78
b LBB0_77
LBB0_77:
ldr x9, [sp, #64] ; 8-byte Folded Reload
mov w8, #8
str w8, [x9]
b LBB0_90
LBB0_78:
ldur w8, [x29, #-80]
ands w8, w8, #0x2
cset w8, eq
tbnz w8, #0, LBB0_81
b LBB0_79
LBB0_79:
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr w8, [x8, #16]
ldur w9, [x29, #-96]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_81
b LBB0_80
LBB0_80:
ldr x9, [sp, #64] ; 8-byte Folded Reload
mov w8, #8
str w8, [x9]
b LBB0_90
LBB0_81:
b LBB0_82
LBB0_82:
ldur w8, [x29, #-92]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_89
b LBB0_83
LBB0_83:
ldur w8, [x29, #-80]
subs w8, w8, #7
cset w8, eq
tbnz w8, #0, LBB0_89
b LBB0_84
LBB0_84:
ldr x9, [sp, #72] ; 8-byte Folded Reload
ldur w8, [x29, #-92]
ldr w9, [x9, #24]
subs w8, w8, w9
str w8, [sp, #84]
ldr w8, [sp, #84]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_86
b LBB0_85
LBB0_85:
ldr w8, [sp, #84]
add w8, w8, #7
str w8, [sp, #84]
b LBB0_86
LBB0_86:
ldr x9, [sp, #72] ; 8-byte Folded Reload
ldr w10, [sp, #84]
ldr w8, [x9, #12]
add w8, w8, w10
str w8, [x9, #12]
adrp x0, _getdate.tm@PAGE
add x0, x0, _getdate.tm@PAGEOFF
bl _mktime
adds x8, x0, #1
cset w8, ne
tbnz w8, #0, LBB0_88
b LBB0_87
LBB0_87:
ldr x9, [sp, #64] ; 8-byte Folded Reload
mov w8, #8
str w8, [x9]
b LBB0_90
LBB0_88:
b LBB0_89
LBB0_89:
ldr x9, [sp, #56] ; 8-byte Folded Reload
adrp x8, _getdate.tm@PAGE
add x8, x8, _getdate.tm@PAGEOFF
str x8, [x9, #56]
b LBB0_90
LBB0_90:
b LBB0_91
LBB0_91:
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _free
b LBB0_92
LBB0_92:
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8, #40]
bl _fclose
ldur w8, [x29, #-88]
str w8, [sp, #12] ; 4-byte Folded Spill
bl ___error
ldr w8, [sp, #12] ; 4-byte Folded Reload
ldr x9, [sp, #56] ; 8-byte Folded Reload
str w8, [x0]
ldr x8, [x9, #56]
str x8, [x9, #80]
b LBB0_93
LBB0_93:
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8, #80]
ldp x29, x30, [sp, #352] ; 16-byte Folded Reload
ldp x28, x27, [sp, #336] ; 16-byte Folded Reload
add sp, sp, #368
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_44-Ltmp0
.long LBB0_45-Ltmp0
.long LBB0_48-Ltmp0
.long LBB0_51-Ltmp0
.long LBB0_54-Ltmp0
.long LBB0_55-Ltmp0
.long LBB0_56-Ltmp0
.p2align 2
lJTI0_1:
.long LBB0_59-Ltmp1
.long LBB0_62-Ltmp1
.long LBB0_65-Ltmp1
.long LBB0_65-Ltmp1
.long LBB0_70-Ltmp1
.long LBB0_73-Ltmp1
.long LBB0_70-Ltmp1
; -- End function
.zerofill __DATA,__bss,_getdate.tm,56,3 ; @getdate.tm
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "DATEMSK"
.comm _getdate_err,4,2 ; @getdate_err
l_.str.1: ; @.str.1
.asciz "r"
.section __TEXT,__const
.p2align 3 ; @tmundef
_tmundef:
.long 4294967295 ; 0xffffffff
.long 4294967295 ; 0xffffffff
.long 4294967295 ; 0xffffffff
.long 4294967295 ; 0xffffffff
.long 4294967295 ; 0xffffffff
.long 4294967295 ; 0xffffffff
.long 4294967295 ; 0xffffffff
.long 0 ; 0x0
.long 0 ; 0x0
.space 4
.quad 0 ; 0x0
.quad 0
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _getdate ## -- Begin function getdate
.p2align 4, 0x90
_getdate: ## @getdate
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $288, %rsp ## imm = 0x120
movq %rdi, -16(%rbp)
movq $0, -32(%rbp)
leaq L_.str(%rip), %rdi
callq _getenv
movq %rax, -240(%rbp)
cmpq $0, -240(%rbp)
je LBB0_2
## %bb.1:
movq -240(%rbp), %rax
cmpb $0, (%rax)
jne LBB0_3
LBB0_2:
movq _getdate_err@GOTPCREL(%rip), %rax
movl $1, (%rax)
movq $0, -8(%rbp)
jmp LBB0_91
LBB0_3:
callq ___error
movl (%rax), %eax
movl %eax, -72(%rbp)
movq -240(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _fopen
movq %rax, -48(%rbp)
cmpq $0, %rax
jne LBB0_5
## %bb.4:
movq _getdate_err@GOTPCREL(%rip), %rax
movl $2, (%rax)
movl -72(%rbp), %eax
movl %eax, -256(%rbp) ## 4-byte Spill
callq ___error
movl -256(%rbp), %ecx ## 4-byte Reload
movl %ecx, (%rax)
movq $0, -8(%rbp)
jmp LBB0_91
LBB0_5:
jmp LBB0_6
LBB0_6:
movq -48(%rbp), %rdi
callq _fileno
movl %eax, %edi
leaq -232(%rbp), %rsi
callq _fstat$INODE64
cmpl $0, %eax
jge LBB0_8
## %bb.7:
movq _getdate_err@GOTPCREL(%rip), %rax
movl $3, (%rax)
jmp LBB0_90
LBB0_8:
movzwl -228(%rbp), %eax
andl $61440, %eax ## imm = 0xF000
cmpl $32768, %eax ## imm = 0x8000
je LBB0_10
## %bb.9:
movq _getdate_err@GOTPCREL(%rip), %rax
movl $4, (%rax)
jmp LBB0_90
LBB0_10:
movl $1024, -52(%rbp) ## imm = 0x400
movl $1024, %edi ## imm = 0x400
callq _malloc
movq %rax, -88(%rbp)
cmpq $0, %rax
jne LBB0_12
## %bb.11:
movq _getdate_err@GOTPCREL(%rip), %rax
movl $6, (%rax)
jmp LBB0_90
LBB0_12:
jmp LBB0_13
LBB0_13:
movl $0, -56(%rbp)
LBB0_14: ## =>This Inner Loop Header: Depth=1
movq -88(%rbp), %rdi
movslq -56(%rbp), %rax
addq %rax, %rdi
movl -52(%rbp), %esi
subl -56(%rbp), %esi
movq -48(%rbp), %rdx
callq _fgets
cmpq $0, %rax
jne LBB0_20
## %bb.15: ## in Loop: Header=BB0_14 Depth=1
movq -48(%rbp), %rdi
callq _ferror
cmpl $0, %eax
je LBB0_17
## %bb.16:
movq _getdate_err@GOTPCREL(%rip), %rax
movl $5, (%rax)
jmp LBB0_88
LBB0_17: ## in Loop: Header=BB0_14 Depth=1
cmpl $0, -56(%rbp)
jne LBB0_19
## %bb.18:
movq _getdate_err@GOTPCREL(%rip), %rax
movl $7, (%rax)
jmp LBB0_88
LBB0_19: ## in Loop: Header=BB0_14 Depth=1
movq -88(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -60(%rbp)
jmp LBB0_26
LBB0_20: ## in Loop: Header=BB0_14 Depth=1
movq -88(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -60(%rbp)
movl -52(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jne LBB0_25
## %bb.21: ## in Loop: Header=BB0_14 Depth=1
movq -88(%rbp), %rax
movl -60(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $10, %eax
je LBB0_25
## %bb.22: ## in Loop: Header=BB0_14 Depth=1
movq -88(%rbp), %rdi
movl -52(%rbp), %eax
addl $1024, %eax ## imm = 0x400
movl %eax, -52(%rbp)
movslq %eax, %rsi
callq _realloc
movq %rax, -248(%rbp)
cmpq $0, -248(%rbp)
jne LBB0_24
## %bb.23:
movq _getdate_err@GOTPCREL(%rip), %rax
movl $6, (%rax)
jmp LBB0_88
LBB0_24: ## in Loop: Header=BB0_14 Depth=1
movq -248(%rbp), %rax
movq %rax, -88(%rbp)
movl -60(%rbp), %eax
movl %eax, -56(%rbp)
jmp LBB0_14
LBB0_25: ## in Loop: Header=BB0_14 Depth=1
jmp LBB0_26
LBB0_26: ## in Loop: Header=BB0_14 Depth=1
movq -88(%rbp), %rax
movl -60(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $10, %eax
jne LBB0_28
## %bb.27: ## in Loop: Header=BB0_14 Depth=1
movq -88(%rbp), %rax
movl -60(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movb $0, (%rax,%rcx)
LBB0_28: ## in Loop: Header=BB0_14 Depth=1
leaq _getdate.tm(%rip), %rdi
leaq _tmundef(%rip), %rsi
movl $56, %edx
callq _memcpy
movq -16(%rbp), %rdi
movq -88(%rbp), %rsi
leaq _getdate.tm(%rip), %rdx
callq _strptime
cmpq $0, %rax
jne LBB0_30
## %bb.29: ## in Loop: Header=BB0_14 Depth=1
movl $0, -56(%rbp)
jmp LBB0_14
LBB0_30:
leaq -40(%rbp), %rdi
callq _time
leaq -40(%rbp), %rdi
callq _localtime
movq %rax, -24(%rbp)
movl $0, -68(%rbp)
movl $0, -64(%rbp)
cmpl $-1, _getdate.tm(%rip)
je LBB0_32
## %bb.31:
movl -68(%rbp), %eax
orl $1, %eax
movl %eax, -68(%rbp)
LBB0_32:
cmpl $-1, _getdate.tm+4(%rip)
je LBB0_34
## %bb.33:
movl -68(%rbp), %eax
orl $2, %eax
movl %eax, -68(%rbp)
LBB0_34:
cmpl $-1, _getdate.tm+8(%rip)
je LBB0_36
## %bb.35:
movl -68(%rbp), %eax
orl $4, %eax
movl %eax, -68(%rbp)
LBB0_36:
cmpl $-1, _getdate.tm+12(%rip)
je LBB0_38
## %bb.37:
movl -64(%rbp), %eax
orl $1, %eax
movl %eax, -64(%rbp)
LBB0_38:
cmpl $-1, _getdate.tm+16(%rip)
je LBB0_40
## %bb.39:
movl -64(%rbp), %eax
orl $2, %eax
movl %eax, -64(%rbp)
LBB0_40:
cmpl $-1, _getdate.tm+20(%rip)
je LBB0_42
## %bb.41:
movl -64(%rbp), %eax
orl $4, %eax
movl %eax, -64(%rbp)
LBB0_42:
movl _getdate.tm+24(%rip), %eax
movl %eax, -76(%rbp)
movl -68(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -264(%rbp) ## 8-byte Spill
subq $6, %rax
ja LBB0_56
## %bb.92:
movq -264(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_43:
movq -24(%rbp), %rax
movl (%rax), %eax
movl %eax, _getdate.tm(%rip)
movq -24(%rbp), %rax
movl 4(%rax), %eax
movl %eax, _getdate.tm+4(%rip)
movq -24(%rbp), %rax
movl 8(%rax), %eax
movl %eax, _getdate.tm+8(%rip)
jmp LBB0_56
LBB0_44:
movq -24(%rbp), %rax
movl 8(%rax), %eax
movl %eax, _getdate.tm+8(%rip)
movq -24(%rbp), %rax
movl 4(%rax), %eax
movl %eax, _getdate.tm+4(%rip)
movl _getdate.tm(%rip), %eax
movq -24(%rbp), %rcx
cmpl (%rcx), %eax
jge LBB0_46
## %bb.45:
movl _getdate.tm+4(%rip), %eax
addl $1, %eax
movl %eax, _getdate.tm+4(%rip)
LBB0_46:
jmp LBB0_56
LBB0_47:
movq -24(%rbp), %rax
movl 8(%rax), %eax
movl %eax, _getdate.tm+8(%rip)
movl _getdate.tm+4(%rip), %eax
movq -24(%rbp), %rcx
cmpl 4(%rcx), %eax
jge LBB0_49
## %bb.48:
movl _getdate.tm+8(%rip), %eax
addl $1, %eax
movl %eax, _getdate.tm+8(%rip)
LBB0_49:
movl $0, _getdate.tm(%rip)
jmp LBB0_56
LBB0_50:
movq -24(%rbp), %rax
movl 8(%rax), %eax
movl %eax, _getdate.tm+8(%rip)
imull $60, _getdate.tm+4(%rip), %eax
addl _getdate.tm(%rip), %eax
movq -24(%rbp), %rcx
imull $60, 4(%rcx), %ecx
movq -24(%rbp), %rdx
addl (%rdx), %ecx
cmpl %ecx, %eax
jge LBB0_52
## %bb.51:
movl _getdate.tm+8(%rip), %eax
addl $1, %eax
movl %eax, _getdate.tm+8(%rip)
LBB0_52:
jmp LBB0_56
LBB0_53:
movl $0, _getdate.tm+4(%rip)
movl $0, _getdate.tm(%rip)
jmp LBB0_56
LBB0_54:
movl $0, _getdate.tm+4(%rip)
jmp LBB0_56
LBB0_55:
movl $0, _getdate.tm(%rip)
LBB0_56:
movl -64(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -272(%rbp) ## 8-byte Spill
subq $6, %rax
ja LBB0_74
## %bb.93:
movq -272(%rbp), %rax ## 8-byte Reload
leaq LJTI0_1(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_57:
movq -24(%rbp), %rax
movl 12(%rax), %eax
movl %eax, _getdate.tm+12(%rip)
movl _getdate.tm+8(%rip), %eax
movq -24(%rbp), %rcx
cmpl 8(%rcx), %eax
jge LBB0_59
## %bb.58:
movl _getdate.tm+12(%rip), %eax
addl $1, %eax
movl %eax, _getdate.tm+12(%rip)
LBB0_59:
movq -24(%rbp), %rax
movl 16(%rax), %eax
movl %eax, _getdate.tm+16(%rip)
movq -24(%rbp), %rax
movl 20(%rax), %eax
movl %eax, _getdate.tm+20(%rip)
jmp LBB0_74
LBB0_60:
movq -24(%rbp), %rax
movl 20(%rax), %eax
movl %eax, _getdate.tm+20(%rip)
movq -24(%rbp), %rax
movl 16(%rax), %eax
movl %eax, _getdate.tm+16(%rip)
movl _getdate.tm+12(%rip), %eax
movq -24(%rbp), %rcx
cmpl 12(%rcx), %eax
jge LBB0_62
## %bb.61:
movl _getdate.tm+16(%rip), %eax
addl $1, %eax
movl %eax, _getdate.tm+16(%rip)
LBB0_62:
jmp LBB0_74
LBB0_63:
movq -24(%rbp), %rax
movl 20(%rax), %eax
movl %eax, _getdate.tm+20(%rip)
movl _getdate.tm+16(%rip), %eax
movq -24(%rbp), %rcx
cmpl 16(%rcx), %eax
jge LBB0_65
## %bb.64:
movl _getdate.tm+20(%rip), %eax
addl $1, %eax
movl %eax, _getdate.tm+20(%rip)
LBB0_65:
movl -64(%rbp), %eax
andl $1, %eax
cmpl $0, %eax
jne LBB0_67
## %bb.66:
movl $1, _getdate.tm+12(%rip)
LBB0_67:
jmp LBB0_74
LBB0_68:
movl -64(%rbp), %eax
andl $2, %eax
cmpl $0, %eax
jne LBB0_70
## %bb.69:
movl $0, _getdate.tm+16(%rip)
LBB0_70:
movl $1, _getdate.tm+12(%rip)
jmp LBB0_74
LBB0_71:
movq -24(%rbp), %rax
movl 16(%rax), %eax
movl %eax, _getdate.tm+16(%rip)
movl _getdate.tm+12(%rip), %eax
movq -24(%rbp), %rcx
cmpl 12(%rcx), %eax
jge LBB0_73
## %bb.72:
movl _getdate.tm+16(%rip), %eax
addl $1, %eax
movl %eax, _getdate.tm+16(%rip)
LBB0_73:
jmp LBB0_74
LBB0_74:
movq -24(%rbp), %rax
movl 24(%rax), %eax
movl %eax, _getdate.tm+24(%rip)
movq -24(%rbp), %rax
movq 40(%rax), %rax
movq %rax, _getdate.tm+40(%rip)
movl $-1, _getdate.tm+32(%rip)
movl _getdate.tm+16(%rip), %eax
movl %eax, -80(%rbp)
leaq _getdate.tm(%rip), %rdi
callq _mktime
cmpq $-1, %rax
jne LBB0_76
## %bb.75:
movq _getdate_err@GOTPCREL(%rip), %rax
movl $8, (%rax)
jmp LBB0_88
LBB0_76:
movl -64(%rbp), %eax
andl $2, %eax
cmpl $0, %eax
je LBB0_79
## %bb.77:
movl _getdate.tm+16(%rip), %eax
cmpl -80(%rbp), %eax
je LBB0_79
## %bb.78:
movq _getdate_err@GOTPCREL(%rip), %rax
movl $8, (%rax)
jmp LBB0_88
LBB0_79:
jmp LBB0_80
LBB0_80:
cmpl $-1, -76(%rbp)
je LBB0_87
## %bb.81:
cmpl $7, -64(%rbp)
je LBB0_87
## %bb.82:
movl -76(%rbp), %eax
subl _getdate.tm+24(%rip), %eax
movl %eax, -252(%rbp)
cmpl $0, -252(%rbp)
jge LBB0_84
## %bb.83:
movl -252(%rbp), %eax
addl $7, %eax
movl %eax, -252(%rbp)
LBB0_84:
movl -252(%rbp), %eax
addl _getdate.tm+12(%rip), %eax
movl %eax, _getdate.tm+12(%rip)
leaq _getdate.tm(%rip), %rdi
callq _mktime
cmpq $-1, %rax
jne LBB0_86
## %bb.85:
movq _getdate_err@GOTPCREL(%rip), %rax
movl $8, (%rax)
jmp LBB0_88
LBB0_86:
jmp LBB0_87
LBB0_87:
leaq _getdate.tm(%rip), %rax
movq %rax, -32(%rbp)
LBB0_88:
jmp LBB0_89
LBB0_89:
movq -88(%rbp), %rdi
callq _free
LBB0_90:
movq -48(%rbp), %rdi
callq _fclose
movl -72(%rbp), %eax
movl %eax, -276(%rbp) ## 4-byte Spill
callq ___error
movl -276(%rbp), %ecx ## 4-byte Reload
movl %ecx, (%rax)
movq -32(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_91:
movq -8(%rbp), %rax
addq $288, %rsp ## imm = 0x120
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_43, LBB0_43-LJTI0_0
.set L0_0_set_44, LBB0_44-LJTI0_0
.set L0_0_set_47, LBB0_47-LJTI0_0
.set L0_0_set_50, LBB0_50-LJTI0_0
.set L0_0_set_53, LBB0_53-LJTI0_0
.set L0_0_set_54, LBB0_54-LJTI0_0
.set L0_0_set_55, LBB0_55-LJTI0_0
LJTI0_0:
.long L0_0_set_43
.long L0_0_set_44
.long L0_0_set_47
.long L0_0_set_50
.long L0_0_set_53
.long L0_0_set_54
.long L0_0_set_55
.set L0_1_set_57, LBB0_57-LJTI0_1
.set L0_1_set_60, LBB0_60-LJTI0_1
.set L0_1_set_63, LBB0_63-LJTI0_1
.set L0_1_set_68, LBB0_68-LJTI0_1
.set L0_1_set_71, LBB0_71-LJTI0_1
LJTI0_1:
.long L0_1_set_57
.long L0_1_set_60
.long L0_1_set_63
.long L0_1_set_63
.long L0_1_set_68
.long L0_1_set_71
.long L0_1_set_68
.end_data_region
## -- End function
.zerofill __DATA,__bss,_getdate.tm,56,3 ## @getdate.tm
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "DATEMSK"
.comm _getdate_err,4,2 ## @getdate_err
L_.str.1: ## @.str.1
.asciz "r"
.section __TEXT,__const
.p2align 3 ## @tmundef
_tmundef:
.long 4294967295 ## 0xffffffff
.long 4294967295 ## 0xffffffff
.long 4294967295 ## 0xffffffff
.long 4294967295 ## 0xffffffff
.long 4294967295 ## 0xffffffff
.long 4294967295 ## 0xffffffff
.long 4294967295 ## 0xffffffff
.long 0 ## 0x0
.long 0 ## 0x0
.space 4
.quad 0 ## 0x0
.quad 0
.subsections_via_symbols
| the_stack_data/738828.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _xex ; -- Begin function xex
.p2align 2
_xex: ; @xex
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w8, [sp, #12]
add w0, w8, #9
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]
mov w8, #-7
str w8, [sp, #8]
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
str wzr, [sp, #4]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
subs w8, w8, #500
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr w0, [sp, #4]
bl _xex
str w0, [sp, #8]
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB1_1
LBB1_4:
ldr w0, [sp, #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 _xex ## -- Begin function xex
.p2align 4, 0x90
_xex: ## @xex
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl -4(%rbp), %eax
addl $9, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $-7, -8(%rbp)
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
movl $0, -12(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $500, -12(%rbp) ## imm = 0x1F4
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -12(%rbp), %edi
callq _xex
movl %eax, -8(%rbp)
## %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:
movl -8(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/654493.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _zsyconvf_rook_ ; -- Begin function zsyconvf_rook_
.p2align 2
_zsyconvf_rook_: ; @zsyconvf_rook_
.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
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur x2, [x29, #-32]
stur x3, [x29, #-40]
stur x4, [x29, #-48]
stur x5, [x29, #-56]
str x6, [sp, #64]
str x7, [sp, #56]
ldur x8, [x29, #-48]
ldr w8, [x8]
str w8, [sp, #52]
ldr w8, [sp, #52]
mov x9, #0
lsr w8, w8, #0
add w8, w8, #1
str w8, [sp, #48]
ldrsw x10, [sp, #48]
ldur x8, [x29, #-40]
subs x9, x9, x10
add x8, x8, x9, lsl #4
stur x8, [x29, #-40]
ldur x8, [x29, #-56]
subs x8, x8, #16
stur x8, [x29, #-56]
ldr x8, [sp, #64]
subs x8, x8, #4
str x8, [sp, #64]
ldr x8, [sp, #56]
str wzr, [x8]
ldur x0, [x29, #-16]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _lsame_
str w0, [sp, #32]
ldur x0, [x29, #-24]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _lsame_
str w0, [sp, #20]
ldr w8, [sp, #32]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
ldur x0, [x29, #-16]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _lsame_
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x9, [sp, #56]
mov w8, #-1
str w8, [x9]
b LBB0_16
LBB0_3:
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4:
ldur x0, [x29, #-24]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _lsame_
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x9, [sp, #56]
mov w8, #-2
str w8, [x9]
b LBB0_15
LBB0_6:
ldur x8, [x29, #-32]
ldr w8, [x8]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldr x9, [sp, #56]
mov w8, #-3
str w8, [x9]
b LBB0_14
LBB0_8:
ldur x8, [x29, #-48]
ldr w8, [x8]
str w8, [sp, #16] ; 4-byte Folded Spill
ldur x8, [x29, #-32]
ldr w9, [x8]
mov w8, #1
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
mov w8, #1
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_11
LBB0_10:
ldur x8, [x29, #-32]
ldr w8, [x8]
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_11
LBB0_11:
ldr w8, [sp, #16] ; 4-byte Folded Reload
ldr w9, [sp, #12] ; 4-byte Folded Reload
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
ldr x9, [sp, #56]
mov w8, #-5
str w8, [x9]
b LBB0_13
LBB0_13:
b LBB0_14
LBB0_14:
b LBB0_15
LBB0_15:
b LBB0_16
LBB0_16:
ldr x8, [sp, #56]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17:
ldr x8, [sp, #56]
ldr w9, [x8]
mov w8, #0
subs w8, w8, w9
add x1, sp, #44
str w8, [sp, #44]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
mov w2, #13
bl _xerbla_
stur wzr, [x29, #-4]
b LBB0_117
LBB0_18:
ldur x8, [x29, #-32]
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19:
stur wzr, [x29, #-4]
b LBB0_117
LBB0_20:
ldr w8, [sp, #32]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_68
b LBB0_21
LBB0_21:
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_45
b LBB0_22
LBB0_22:
ldur x8, [x29, #-32]
ldr w8, [x8]
str w8, [sp, #36]
ldur x8, [x29, #-56]
movi d0, #0000000000000000
str d0, [x8, #16]
ldur x8, [x29, #-56]
str d0, [x8, #24]
b LBB0_23
LBB0_23: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB0_28
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_23 Depth=1
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_26
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_23 Depth=1
ldr w8, [sp, #36]
str w8, [sp, #44]
ldr w8, [sp, #36]
subs w8, w8, #1
ldr w9, [sp, #36]
ldr w10, [sp, #52]
mul w9, w9, w10
add w8, w8, w9
str w8, [sp, #40]
ldur x8, [x29, #-40]
ldrsw x9, [sp, #40]
lsl x9, x9, #4
ldr d0, [x8, x9]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #44]
lsl x9, x9, #4
str d0, [x8, x9]
ldur x8, [x29, #-40]
ldrsw x9, [sp, #40]
add x8, x8, x9, lsl #4
ldr d0, [x8, #8]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #4
str d0, [x8, #8]
ldr w8, [sp, #36]
subs w8, w8, #1
str w8, [sp, #44]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #44]
lsl x9, x9, #4
movi d0, #0000000000000000
str d0, [x8, x9]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #4
str d0, [x8, #8]
ldr w8, [sp, #36]
subs w8, w8, #1
ldr w9, [sp, #36]
ldr w10, [sp, #52]
mul w9, w9, w10
add w8, w8, w9
str w8, [sp, #44]
ldur x8, [x29, #-40]
ldrsw x9, [sp, #44]
lsl x9, x9, #4
str d0, [x8, x9]
ldur x8, [x29, #-40]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #4
str d0, [x8, #8]
ldr w8, [sp, #36]
subs w8, w8, #1
str w8, [sp, #36]
b LBB0_27
LBB0_26: ; in Loop: Header=BB0_23 Depth=1
ldr w8, [sp, #36]
str w8, [sp, #44]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #44]
lsl x9, x9, #4
movi d0, #0000000000000000
str d0, [x8, x9]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #4
str d0, [x8, #8]
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_23 Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
str w8, [sp, #36]
b LBB0_23
LBB0_28:
ldur x8, [x29, #-32]
ldr w8, [x8]
str w8, [sp, #36]
b LBB0_29
LBB0_29: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
cset w8, lt
tbnz w8, #0, LBB0_44
b LBB0_30
LBB0_30: ; in Loop: Header=BB0_29 Depth=1
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_36
b LBB0_31
LBB0_31: ; in Loop: Header=BB0_29 Depth=1
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #28]
ldr w8, [sp, #36]
ldur x9, [x29, #-32]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_35
b LBB0_32
LBB0_32: ; in Loop: Header=BB0_29 Depth=1
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_34
b LBB0_33
LBB0_33: ; in Loop: Header=BB0_29 Depth=1
ldur x8, [x29, #-32]
ldr w8, [x8]
ldr w9, [sp, #36]
subs w8, w8, w9
add x0, sp, #44
str w8, [sp, #44]
ldur x8, [x29, #-40]
ldr w9, [sp, #36]
ldr w10, [sp, #36]
add w10, w10, #1
ldr w11, [sp, #52]
mul w10, w10, w11
add w9, w9, w10
add x1, x8, w9, sxtw #4
ldur x2, [x29, #-48]
ldur x8, [x29, #-40]
ldr w9, [sp, #28]
ldr w10, [sp, #36]
add w10, w10, #1
ldr w11, [sp, #52]
mul w10, w10, w11
add w9, w9, w10
add x3, x8, w9, sxtw #4
ldur x4, [x29, #-48]
bl _zswap_
b LBB0_34
LBB0_34: ; in Loop: Header=BB0_29 Depth=1
b LBB0_35
LBB0_35: ; in Loop: Header=BB0_29 Depth=1
b LBB0_43
LBB0_36: ; in Loop: Header=BB0_29 Depth=1
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w9, [x8, x9, lsl #2]
mov w8, #0
subs w9, w8, w9
str w9, [sp, #28]
ldr x9, [sp, #64]
ldr w10, [sp, #36]
subs w10, w10, #1
ldr w9, [x9, w10, sxtw #2]
subs w8, w8, w9
str w8, [sp, #24]
ldr w8, [sp, #36]
ldur x9, [x29, #-32]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_42
b LBB0_37
LBB0_37: ; in Loop: Header=BB0_29 Depth=1
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_39
b LBB0_38
LBB0_38: ; in Loop: Header=BB0_29 Depth=1
ldur x8, [x29, #-32]
ldr w8, [x8]
ldr w9, [sp, #36]
subs w8, w8, w9
add x0, sp, #44
str w8, [sp, #44]
ldur x8, [x29, #-40]
ldr w9, [sp, #36]
ldr w10, [sp, #36]
add w10, w10, #1
ldr w11, [sp, #52]
mul w10, w10, w11
add w9, w9, w10
add x1, x8, w9, sxtw #4
ldur x2, [x29, #-48]
ldur x8, [x29, #-40]
ldr w9, [sp, #28]
ldr w10, [sp, #36]
add w10, w10, #1
ldr w11, [sp, #52]
mul w10, w10, w11
add w9, w9, w10
add x3, x8, w9, sxtw #4
ldur x4, [x29, #-48]
bl _zswap_
b LBB0_39
LBB0_39: ; in Loop: Header=BB0_29 Depth=1
ldr w8, [sp, #24]
ldr w9, [sp, #36]
subs w9, w9, #1
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_41
b LBB0_40
LBB0_40: ; in Loop: Header=BB0_29 Depth=1
ldur x8, [x29, #-32]
ldr w8, [x8]
ldr w9, [sp, #36]
subs w8, w8, w9
add x0, sp, #44
str w8, [sp, #44]
ldur x8, [x29, #-40]
ldr w9, [sp, #36]
subs w9, w9, #1
ldr w10, [sp, #36]
add w10, w10, #1
ldr w11, [sp, #52]
mul w10, w10, w11
add w9, w9, w10
add x1, x8, w9, sxtw #4
ldur x2, [x29, #-48]
ldur x8, [x29, #-40]
ldr w9, [sp, #24]
ldr w10, [sp, #36]
add w10, w10, #1
ldr w11, [sp, #52]
mul w10, w10, w11
add w9, w9, w10
add x3, x8, w9, sxtw #4
ldur x4, [x29, #-48]
bl _zswap_
b LBB0_41
LBB0_41: ; in Loop: Header=BB0_29 Depth=1
b LBB0_42
LBB0_42: ; in Loop: Header=BB0_29 Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
str w8, [sp, #36]
b LBB0_43
LBB0_43: ; in Loop: Header=BB0_29 Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
str w8, [sp, #36]
b LBB0_29
LBB0_44:
b LBB0_67
LBB0_45:
mov w8, #1
str w8, [sp, #36]
b LBB0_46
LBB0_46: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
ldur x9, [x29, #-32]
ldr w9, [x9]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_61
b LBB0_47
LBB0_47: ; in Loop: Header=BB0_46 Depth=1
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_53
b LBB0_48
LBB0_48: ; in Loop: Header=BB0_46 Depth=1
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #28]
ldr w8, [sp, #36]
ldur x9, [x29, #-32]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_52
b LBB0_49
LBB0_49: ; in Loop: Header=BB0_46 Depth=1
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_51
b LBB0_50
LBB0_50: ; in Loop: Header=BB0_46 Depth=1
ldur x8, [x29, #-32]
ldr w8, [x8]
ldr w9, [sp, #36]
subs w8, w8, w9
add x0, sp, #44
str w8, [sp, #44]
ldur x8, [x29, #-40]
ldr w9, [sp, #28]
ldr w10, [sp, #36]
add w10, w10, #1
ldr w11, [sp, #52]
mul w10, w10, w11
add w9, w9, w10
add x1, x8, w9, sxtw #4
ldur x2, [x29, #-48]
ldur x8, [x29, #-40]
ldr w9, [sp, #36]
ldr w10, [sp, #36]
add w10, w10, #1
ldr w11, [sp, #52]
mul w10, w10, w11
add w9, w9, w10
add x3, x8, w9, sxtw #4
ldur x4, [x29, #-48]
bl _zswap_
b LBB0_51
LBB0_51: ; in Loop: Header=BB0_46 Depth=1
b LBB0_52
LBB0_52: ; in Loop: Header=BB0_46 Depth=1
b LBB0_60
LBB0_53: ; in Loop: Header=BB0_46 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w9, [x8, x9, lsl #2]
mov w8, #0
subs w9, w8, w9
str w9, [sp, #28]
ldr x9, [sp, #64]
ldr w10, [sp, #36]
subs w10, w10, #1
ldr w9, [x9, w10, sxtw #2]
subs w8, w8, w9
str w8, [sp, #24]
ldr w8, [sp, #36]
ldur x9, [x29, #-32]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_59
b LBB0_54
LBB0_54: ; in Loop: Header=BB0_46 Depth=1
ldr w8, [sp, #24]
ldr w9, [sp, #36]
subs w9, w9, #1
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_56
b LBB0_55
LBB0_55: ; in Loop: Header=BB0_46 Depth=1
ldur x8, [x29, #-32]
ldr w8, [x8]
ldr w9, [sp, #36]
subs w8, w8, w9
add x0, sp, #44
str w8, [sp, #44]
ldur x8, [x29, #-40]
ldr w9, [sp, #24]
ldr w10, [sp, #36]
add w10, w10, #1
ldr w11, [sp, #52]
mul w10, w10, w11
add w9, w9, w10
add x1, x8, w9, sxtw #4
ldur x2, [x29, #-48]
ldur x8, [x29, #-40]
ldr w9, [sp, #36]
subs w9, w9, #1
ldr w10, [sp, #36]
add w10, w10, #1
ldr w11, [sp, #52]
mul w10, w10, w11
add w9, w9, w10
add x3, x8, w9, sxtw #4
ldur x4, [x29, #-48]
bl _zswap_
b LBB0_56
LBB0_56: ; in Loop: Header=BB0_46 Depth=1
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_58
b LBB0_57
LBB0_57: ; in Loop: Header=BB0_46 Depth=1
ldur x8, [x29, #-32]
ldr w8, [x8]
ldr w9, [sp, #36]
subs w8, w8, w9
add x0, sp, #44
str w8, [sp, #44]
ldur x8, [x29, #-40]
ldr w9, [sp, #28]
ldr w10, [sp, #36]
add w10, w10, #1
ldr w11, [sp, #52]
mul w10, w10, w11
add w9, w9, w10
add x1, x8, w9, sxtw #4
ldur x2, [x29, #-48]
ldur x8, [x29, #-40]
ldr w9, [sp, #36]
ldr w10, [sp, #36]
add w10, w10, #1
ldr w11, [sp, #52]
mul w10, w10, w11
add w9, w9, w10
add x3, x8, w9, sxtw #4
ldur x4, [x29, #-48]
bl _zswap_
b LBB0_58
LBB0_58: ; in Loop: Header=BB0_46 Depth=1
b LBB0_59
LBB0_59: ; in Loop: Header=BB0_46 Depth=1
b LBB0_60
LBB0_60: ; in Loop: Header=BB0_46 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_46
LBB0_61:
ldur x8, [x29, #-32]
ldr w8, [x8]
str w8, [sp, #36]
b LBB0_62
LBB0_62: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB0_66
b LBB0_63
LBB0_63: ; in Loop: Header=BB0_62 Depth=1
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_65
b LBB0_64
LBB0_64: ; in Loop: Header=BB0_62 Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
ldr w9, [sp, #36]
ldr w10, [sp, #52]
mul w9, w9, w10
add w8, w8, w9
str w8, [sp, #44]
ldr w8, [sp, #36]
str w8, [sp, #40]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #40]
lsl x9, x9, #4
ldr d0, [x8, x9]
ldur x8, [x29, #-40]
ldrsw x9, [sp, #44]
lsl x9, x9, #4
str d0, [x8, x9]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #40]
add x8, x8, x9, lsl #4
ldr d0, [x8, #8]
ldur x8, [x29, #-40]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #4
str d0, [x8, #8]
ldr w8, [sp, #36]
subs w8, w8, #1
str w8, [sp, #36]
b LBB0_65
LBB0_65: ; in Loop: Header=BB0_62 Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
str w8, [sp, #36]
b LBB0_62
LBB0_66:
b LBB0_67
LBB0_67:
b LBB0_116
LBB0_68:
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_93
b LBB0_69
LBB0_69:
mov w8, #1
str w8, [sp, #36]
ldur x8, [x29, #-32]
ldr w8, [x8]
str w8, [sp, #44]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #44]
lsl x9, x9, #4
movi d0, #0000000000000000
str d0, [x8, x9]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #4
str d0, [x8, #8]
b LBB0_70
LBB0_70: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
ldur x9, [x29, #-32]
ldr w9, [x9]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_76
b LBB0_71
LBB0_71: ; in Loop: Header=BB0_70 Depth=1
ldr w8, [sp, #36]
ldur x9, [x29, #-32]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_74
b LBB0_72
LBB0_72: ; in Loop: Header=BB0_70 Depth=1
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_74
b LBB0_73
LBB0_73: ; in Loop: Header=BB0_70 Depth=1
ldr w8, [sp, #36]
str w8, [sp, #44]
ldr w8, [sp, #36]
add w8, w8, #1
ldr w9, [sp, #36]
ldr w10, [sp, #52]
mul w9, w9, w10
add w8, w8, w9
str w8, [sp, #40]
ldur x8, [x29, #-40]
ldrsw x9, [sp, #40]
lsl x9, x9, #4
ldr d0, [x8, x9]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #44]
lsl x9, x9, #4
str d0, [x8, x9]
ldur x8, [x29, #-40]
ldrsw x9, [sp, #40]
add x8, x8, x9, lsl #4
ldr d0, [x8, #8]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #4
str d0, [x8, #8]
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #44]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #44]
lsl x9, x9, #4
movi d0, #0000000000000000
str d0, [x8, x9]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #4
str d0, [x8, #8]
ldr w8, [sp, #36]
add w8, w8, #1
ldr w9, [sp, #36]
ldr w10, [sp, #52]
mul w9, w9, w10
add w8, w8, w9
str w8, [sp, #44]
ldur x8, [x29, #-40]
ldrsw x9, [sp, #44]
lsl x9, x9, #4
str d0, [x8, x9]
ldur x8, [x29, #-40]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #4
str d0, [x8, #8]
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_75
LBB0_74: ; in Loop: Header=BB0_70 Depth=1
ldr w8, [sp, #36]
str w8, [sp, #44]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #44]
lsl x9, x9, #4
movi d0, #0000000000000000
str d0, [x8, x9]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #4
str d0, [x8, #8]
b LBB0_75
LBB0_75: ; in Loop: Header=BB0_70 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_70
LBB0_76:
mov w8, #1
str w8, [sp, #36]
b LBB0_77
LBB0_77: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
ldur x9, [x29, #-32]
ldr w9, [x9]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_92
b LBB0_78
LBB0_78: ; in Loop: Header=BB0_77 Depth=1
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_84
b LBB0_79
LBB0_79: ; in Loop: Header=BB0_77 Depth=1
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #28]
ldr w8, [sp, #36]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB0_83
b LBB0_80
LBB0_80: ; in Loop: Header=BB0_77 Depth=1
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_82
b LBB0_81
LBB0_81: ; in Loop: Header=BB0_77 Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
add x0, sp, #44
str w8, [sp, #44]
ldur x8, [x29, #-40]
ldr w9, [sp, #36]
ldr w10, [sp, #52]
add w9, w9, w10
add x1, x8, w9, sxtw #4
ldur x2, [x29, #-48]
ldur x8, [x29, #-40]
ldr w9, [sp, #28]
ldr w10, [sp, #52]
add w9, w9, w10
add x3, x8, w9, sxtw #4
ldur x4, [x29, #-48]
bl _zswap_
b LBB0_82
LBB0_82: ; in Loop: Header=BB0_77 Depth=1
b LBB0_83
LBB0_83: ; in Loop: Header=BB0_77 Depth=1
b LBB0_91
LBB0_84: ; in Loop: Header=BB0_77 Depth=1
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w9, [x8, x9, lsl #2]
mov w8, #0
subs w9, w8, w9
str w9, [sp, #28]
ldr x9, [sp, #64]
ldr w10, [sp, #36]
add w10, w10, #1
ldr w9, [x9, w10, sxtw #2]
subs w8, w8, w9
str w8, [sp, #24]
ldr w8, [sp, #36]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB0_90
b LBB0_85
LBB0_85: ; in Loop: Header=BB0_77 Depth=1
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_87
b LBB0_86
LBB0_86: ; in Loop: Header=BB0_77 Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
add x0, sp, #44
str w8, [sp, #44]
ldur x8, [x29, #-40]
ldr w9, [sp, #36]
ldr w10, [sp, #52]
add w9, w9, w10
add x1, x8, w9, sxtw #4
ldur x2, [x29, #-48]
ldur x8, [x29, #-40]
ldr w9, [sp, #28]
ldr w10, [sp, #52]
add w9, w9, w10
add x3, x8, w9, sxtw #4
ldur x4, [x29, #-48]
bl _zswap_
b LBB0_87
LBB0_87: ; in Loop: Header=BB0_77 Depth=1
ldr w8, [sp, #24]
ldr w9, [sp, #36]
add w9, w9, #1
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_89
b LBB0_88
LBB0_88: ; in Loop: Header=BB0_77 Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
add x0, sp, #44
str w8, [sp, #44]
ldur x8, [x29, #-40]
ldr w9, [sp, #36]
add w9, w9, #1
ldr w10, [sp, #52]
add w9, w9, w10
add x1, x8, w9, sxtw #4
ldur x2, [x29, #-48]
ldur x8, [x29, #-40]
ldr w9, [sp, #24]
ldr w10, [sp, #52]
add w9, w9, w10
add x3, x8, w9, sxtw #4
ldur x4, [x29, #-48]
bl _zswap_
b LBB0_89
LBB0_89: ; in Loop: Header=BB0_77 Depth=1
b LBB0_90
LBB0_90: ; in Loop: Header=BB0_77 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_91
LBB0_91: ; in Loop: Header=BB0_77 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_77
LBB0_92:
b LBB0_115
LBB0_93:
ldur x8, [x29, #-32]
ldr w8, [x8]
str w8, [sp, #36]
b LBB0_94
LBB0_94: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
cset w8, lt
tbnz w8, #0, LBB0_109
b LBB0_95
LBB0_95: ; in Loop: Header=BB0_94 Depth=1
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_101
b LBB0_96
LBB0_96: ; in Loop: Header=BB0_94 Depth=1
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #28]
ldr w8, [sp, #36]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB0_100
b LBB0_97
LBB0_97: ; in Loop: Header=BB0_94 Depth=1
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_99
b LBB0_98
LBB0_98: ; in Loop: Header=BB0_94 Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
add x0, sp, #44
str w8, [sp, #44]
ldur x8, [x29, #-40]
ldr w9, [sp, #28]
ldr w10, [sp, #52]
add w9, w9, w10
add x1, x8, w9, sxtw #4
ldur x2, [x29, #-48]
ldur x8, [x29, #-40]
ldr w9, [sp, #36]
ldr w10, [sp, #52]
add w9, w9, w10
add x3, x8, w9, sxtw #4
ldur x4, [x29, #-48]
bl _zswap_
b LBB0_99
LBB0_99: ; in Loop: Header=BB0_94 Depth=1
b LBB0_100
LBB0_100: ; in Loop: Header=BB0_94 Depth=1
b LBB0_108
LBB0_101: ; in Loop: Header=BB0_94 Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
str w8, [sp, #36]
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w9, [x8, x9, lsl #2]
mov w8, #0
subs w9, w8, w9
str w9, [sp, #28]
ldr x9, [sp, #64]
ldr w10, [sp, #36]
add w10, w10, #1
ldr w9, [x9, w10, sxtw #2]
subs w8, w8, w9
str w8, [sp, #24]
ldr w8, [sp, #36]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB0_107
b LBB0_102
LBB0_102: ; in Loop: Header=BB0_94 Depth=1
ldr w8, [sp, #24]
ldr w9, [sp, #36]
add w9, w9, #1
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_104
b LBB0_103
LBB0_103: ; in Loop: Header=BB0_94 Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
add x0, sp, #44
str w8, [sp, #44]
ldur x8, [x29, #-40]
ldr w9, [sp, #24]
ldr w10, [sp, #52]
add w9, w9, w10
add x1, x8, w9, sxtw #4
ldur x2, [x29, #-48]
ldur x8, [x29, #-40]
ldr w9, [sp, #36]
add w9, w9, #1
ldr w10, [sp, #52]
add w9, w9, w10
add x3, x8, w9, sxtw #4
ldur x4, [x29, #-48]
bl _zswap_
b LBB0_104
LBB0_104: ; in Loop: Header=BB0_94 Depth=1
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_106
b LBB0_105
LBB0_105: ; in Loop: Header=BB0_94 Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
add x0, sp, #44
str w8, [sp, #44]
ldur x8, [x29, #-40]
ldr w9, [sp, #28]
ldr w10, [sp, #52]
add w9, w9, w10
add x1, x8, w9, sxtw #4
ldur x2, [x29, #-48]
ldur x8, [x29, #-40]
ldr w9, [sp, #36]
ldr w10, [sp, #52]
add w9, w9, w10
add x3, x8, w9, sxtw #4
ldur x4, [x29, #-48]
bl _zswap_
b LBB0_106
LBB0_106: ; in Loop: Header=BB0_94 Depth=1
b LBB0_107
LBB0_107: ; in Loop: Header=BB0_94 Depth=1
b LBB0_108
LBB0_108: ; in Loop: Header=BB0_94 Depth=1
ldr w8, [sp, #36]
subs w8, w8, #1
str w8, [sp, #36]
b LBB0_94
LBB0_109:
mov w8, #1
str w8, [sp, #36]
b LBB0_110
LBB0_110: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
ldur x9, [x29, #-32]
ldr w9, [x9]
subs w9, w9, #1
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_114
b LBB0_111
LBB0_111: ; in Loop: Header=BB0_110 Depth=1
ldr x8, [sp, #64]
ldrsw x9, [sp, #36]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_113
b LBB0_112
LBB0_112: ; in Loop: Header=BB0_110 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
ldr w9, [sp, #36]
ldr w10, [sp, #52]
mul w9, w9, w10
add w8, w8, w9
str w8, [sp, #44]
ldr w8, [sp, #36]
str w8, [sp, #40]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #40]
lsl x9, x9, #4
ldr d0, [x8, x9]
ldur x8, [x29, #-40]
ldrsw x9, [sp, #44]
lsl x9, x9, #4
str d0, [x8, x9]
ldur x8, [x29, #-56]
ldrsw x9, [sp, #40]
add x8, x8, x9, lsl #4
ldr d0, [x8, #8]
ldur x8, [x29, #-40]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #4
str d0, [x8, #8]
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_113
LBB0_113: ; in Loop: Header=BB0_110 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_110
LBB0_114:
b LBB0_115
LBB0_115:
b LBB0_116
LBB0_116:
stur wzr, [x29, #-4]
b LBB0_117
LBB0_117:
ldur w0, [x29, #-4]
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 "U"
l_.str.1: ; @.str.1
.asciz "C"
l_.str.2: ; @.str.2
.asciz "L"
l_.str.3: ; @.str.3
.asciz "R"
l_.str.4: ; @.str.4
.asciz "ZSYCONVF_ROOK"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _zsyconvf_rook_ ## -- Begin function zsyconvf_rook_
.p2align 4, 0x90
_zsyconvf_rook_: ## @zsyconvf_rook_
.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 24(%rbp), %rax
movq 16(%rbp), %rax
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq %rcx, -40(%rbp)
movq %r8, -48(%rbp)
movq %r9, -56(%rbp)
movq -48(%rbp), %rax
movl (%rax), %eax
movl %eax, -60(%rbp)
movl -60(%rbp), %eax
shll $0, %eax
addl $1, %eax
movl %eax, -64(%rbp)
movl -64(%rbp), %ecx
movq -40(%rbp), %rax
movslq %ecx, %rdx
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq %rdx, %rcx
shlq $4, %rcx
addq %rcx, %rax
movq %rax, -40(%rbp)
movq -56(%rbp), %rax
addq $-16, %rax
movq %rax, -56(%rbp)
movq 16(%rbp), %rax
addq $-4, %rax
movq %rax, 16(%rbp)
movq 24(%rbp), %rax
movl $0, (%rax)
movq -16(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _lsame_
movl %eax, -80(%rbp)
movq -24(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _lsame_
movl %eax, -92(%rbp)
cmpl $0, -80(%rbp)
jne LBB0_3
## %bb.1:
movq -16(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _lsame_
cmpl $0, %eax
jne LBB0_3
## %bb.2:
movq 24(%rbp), %rax
movl $-1, (%rax)
jmp LBB0_16
LBB0_3:
cmpl $0, -92(%rbp)
jne LBB0_6
## %bb.4:
movq -24(%rbp), %rdi
leaq L_.str.3(%rip), %rsi
callq _lsame_
cmpl $0, %eax
jne LBB0_6
## %bb.5:
movq 24(%rbp), %rax
movl $-2, (%rax)
jmp LBB0_15
LBB0_6:
movq -32(%rbp), %rax
cmpl $0, (%rax)
jge LBB0_8
## %bb.7:
movq 24(%rbp), %rax
movl $-3, (%rax)
jmp LBB0_14
LBB0_8:
movq -48(%rbp), %rax
movl (%rax), %eax
movl %eax, -96(%rbp) ## 4-byte Spill
movq -32(%rbp), %rcx
movl $1, %eax
cmpl (%rcx), %eax
jl LBB0_10
## %bb.9:
movl $1, %eax
movl %eax, -100(%rbp) ## 4-byte Spill
jmp LBB0_11
LBB0_10:
movq -32(%rbp), %rax
movl (%rax), %eax
movl %eax, -100(%rbp) ## 4-byte Spill
LBB0_11:
movl -96(%rbp), %eax ## 4-byte Reload
movl -100(%rbp), %ecx ## 4-byte Reload
cmpl %ecx, %eax
jge LBB0_13
## %bb.12:
movq 24(%rbp), %rax
movl $-5, (%rax)
LBB0_13:
jmp LBB0_14
LBB0_14:
jmp LBB0_15
LBB0_15:
jmp LBB0_16
LBB0_16:
movq 24(%rbp), %rax
cmpl $0, (%rax)
je LBB0_18
## %bb.17:
movq 24(%rbp), %rcx
xorl %eax, %eax
subl (%rcx), %eax
movl %eax, -68(%rbp)
leaq L_.str.4(%rip), %rdi
leaq -68(%rbp), %rsi
movl $13, %edx
callq _xerbla_
movl $0, -4(%rbp)
jmp LBB0_117
LBB0_18:
movq -32(%rbp), %rax
cmpl $0, (%rax)
jne LBB0_20
## %bb.19:
movl $0, -4(%rbp)
jmp LBB0_117
LBB0_20:
cmpl $0, -80(%rbp)
je LBB0_68
## %bb.21:
cmpl $0, -92(%rbp)
je LBB0_45
## %bb.22:
movq -32(%rbp), %rax
movl (%rax), %eax
movl %eax, -76(%rbp)
movq -56(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 16(%rax)
movq -56(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 24(%rax)
LBB0_23: ## =>This Inner Loop Header: Depth=1
cmpl $1, -76(%rbp)
jle LBB0_28
## %bb.24: ## in Loop: Header=BB0_23 Depth=1
movq 16(%rbp), %rax
movslq -76(%rbp), %rcx
cmpl $0, (%rax,%rcx,4)
jge LBB0_26
## %bb.25: ## in Loop: Header=BB0_23 Depth=1
movl -76(%rbp), %eax
movl %eax, -68(%rbp)
movl -76(%rbp), %eax
subl $1, %eax
movl -76(%rbp), %ecx
imull -60(%rbp), %ecx
addl %ecx, %eax
movl %eax, -72(%rbp)
movq -40(%rbp), %rax
movslq -72(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm0 ## xmm0 = mem[0],zero
movq -56(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd %xmm0, (%rax)
movq -40(%rbp), %rax
movslq -72(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero
movq -56(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd %xmm0, 8(%rax)
movl -76(%rbp), %eax
subl $1, %eax
movl %eax, -68(%rbp)
movq -56(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -56(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 8(%rax)
movl -76(%rbp), %eax
subl $1, %eax
movl -76(%rbp), %ecx
imull -60(%rbp), %ecx
addl %ecx, %eax
movl %eax, -68(%rbp)
movq -40(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -40(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 8(%rax)
movl -76(%rbp), %eax
addl $-1, %eax
movl %eax, -76(%rbp)
jmp LBB0_27
LBB0_26: ## in Loop: Header=BB0_23 Depth=1
movl -76(%rbp), %eax
movl %eax, -68(%rbp)
movq -56(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -56(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 8(%rax)
LBB0_27: ## in Loop: Header=BB0_23 Depth=1
movl -76(%rbp), %eax
addl $-1, %eax
movl %eax, -76(%rbp)
jmp LBB0_23
LBB0_28:
movq -32(%rbp), %rax
movl (%rax), %eax
movl %eax, -76(%rbp)
LBB0_29: ## =>This Inner Loop Header: Depth=1
cmpl $1, -76(%rbp)
jl LBB0_44
## %bb.30: ## in Loop: Header=BB0_29 Depth=1
movq 16(%rbp), %rax
movslq -76(%rbp), %rcx
cmpl $0, (%rax,%rcx,4)
jle LBB0_36
## %bb.31: ## in Loop: Header=BB0_29 Depth=1
movq 16(%rbp), %rax
movslq -76(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -84(%rbp)
movl -76(%rbp), %eax
movq -32(%rbp), %rcx
cmpl (%rcx), %eax
jge LBB0_35
## %bb.32: ## in Loop: Header=BB0_29 Depth=1
movl -84(%rbp), %eax
cmpl -76(%rbp), %eax
je LBB0_34
## %bb.33: ## in Loop: Header=BB0_29 Depth=1
movq -32(%rbp), %rax
movl (%rax), %eax
subl -76(%rbp), %eax
movl %eax, -68(%rbp)
movq -40(%rbp), %rsi
movl -76(%rbp), %eax
movl -76(%rbp), %ecx
addl $1, %ecx
imull -60(%rbp), %ecx
addl %ecx, %eax
cltq
shlq $4, %rax
addq %rax, %rsi
movq -48(%rbp), %rdx
movq -40(%rbp), %rcx
movl -84(%rbp), %eax
movl -76(%rbp), %edi
addl $1, %edi
imull -60(%rbp), %edi
addl %edi, %eax
cltq
shlq $4, %rax
addq %rax, %rcx
movq -48(%rbp), %r8
leaq -68(%rbp), %rdi
callq _zswap_
LBB0_34: ## in Loop: Header=BB0_29 Depth=1
jmp LBB0_35
LBB0_35: ## in Loop: Header=BB0_29 Depth=1
jmp LBB0_43
LBB0_36: ## in Loop: Header=BB0_29 Depth=1
movq 16(%rbp), %rcx
movslq -76(%rbp), %rdx
xorl %eax, %eax
subl (%rcx,%rdx,4), %eax
movl %eax, -84(%rbp)
movq 16(%rbp), %rcx
movl -76(%rbp), %eax
subl $1, %eax
movslq %eax, %rdx
xorl %eax, %eax
subl (%rcx,%rdx,4), %eax
movl %eax, -88(%rbp)
movl -76(%rbp), %eax
movq -32(%rbp), %rcx
cmpl (%rcx), %eax
jge LBB0_42
## %bb.37: ## in Loop: Header=BB0_29 Depth=1
movl -84(%rbp), %eax
cmpl -76(%rbp), %eax
je LBB0_39
## %bb.38: ## in Loop: Header=BB0_29 Depth=1
movq -32(%rbp), %rax
movl (%rax), %eax
subl -76(%rbp), %eax
movl %eax, -68(%rbp)
movq -40(%rbp), %rsi
movl -76(%rbp), %eax
movl -76(%rbp), %ecx
addl $1, %ecx
imull -60(%rbp), %ecx
addl %ecx, %eax
cltq
shlq $4, %rax
addq %rax, %rsi
movq -48(%rbp), %rdx
movq -40(%rbp), %rcx
movl -84(%rbp), %eax
movl -76(%rbp), %edi
addl $1, %edi
imull -60(%rbp), %edi
addl %edi, %eax
cltq
shlq $4, %rax
addq %rax, %rcx
movq -48(%rbp), %r8
leaq -68(%rbp), %rdi
callq _zswap_
LBB0_39: ## in Loop: Header=BB0_29 Depth=1
movl -88(%rbp), %eax
movl -76(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
je LBB0_41
## %bb.40: ## in Loop: Header=BB0_29 Depth=1
movq -32(%rbp), %rax
movl (%rax), %eax
subl -76(%rbp), %eax
movl %eax, -68(%rbp)
movq -40(%rbp), %rsi
movl -76(%rbp), %eax
subl $1, %eax
movl -76(%rbp), %ecx
addl $1, %ecx
imull -60(%rbp), %ecx
addl %ecx, %eax
cltq
shlq $4, %rax
addq %rax, %rsi
movq -48(%rbp), %rdx
movq -40(%rbp), %rcx
movl -88(%rbp), %eax
movl -76(%rbp), %edi
addl $1, %edi
imull -60(%rbp), %edi
addl %edi, %eax
cltq
shlq $4, %rax
addq %rax, %rcx
movq -48(%rbp), %r8
leaq -68(%rbp), %rdi
callq _zswap_
LBB0_41: ## in Loop: Header=BB0_29 Depth=1
jmp LBB0_42
LBB0_42: ## in Loop: Header=BB0_29 Depth=1
movl -76(%rbp), %eax
addl $-1, %eax
movl %eax, -76(%rbp)
LBB0_43: ## in Loop: Header=BB0_29 Depth=1
movl -76(%rbp), %eax
addl $-1, %eax
movl %eax, -76(%rbp)
jmp LBB0_29
LBB0_44:
jmp LBB0_67
LBB0_45:
movl $1, -76(%rbp)
LBB0_46: ## =>This Inner Loop Header: Depth=1
movl -76(%rbp), %eax
movq -32(%rbp), %rcx
cmpl (%rcx), %eax
jg LBB0_61
## %bb.47: ## in Loop: Header=BB0_46 Depth=1
movq 16(%rbp), %rax
movslq -76(%rbp), %rcx
cmpl $0, (%rax,%rcx,4)
jle LBB0_53
## %bb.48: ## in Loop: Header=BB0_46 Depth=1
movq 16(%rbp), %rax
movslq -76(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -84(%rbp)
movl -76(%rbp), %eax
movq -32(%rbp), %rcx
cmpl (%rcx), %eax
jge LBB0_52
## %bb.49: ## in Loop: Header=BB0_46 Depth=1
movl -84(%rbp), %eax
cmpl -76(%rbp), %eax
je LBB0_51
## %bb.50: ## in Loop: Header=BB0_46 Depth=1
movq -32(%rbp), %rax
movl (%rax), %eax
subl -76(%rbp), %eax
movl %eax, -68(%rbp)
movq -40(%rbp), %rsi
movl -84(%rbp), %eax
movl -76(%rbp), %ecx
addl $1, %ecx
imull -60(%rbp), %ecx
addl %ecx, %eax
cltq
shlq $4, %rax
addq %rax, %rsi
movq -48(%rbp), %rdx
movq -40(%rbp), %rcx
movl -76(%rbp), %eax
movl -76(%rbp), %edi
addl $1, %edi
imull -60(%rbp), %edi
addl %edi, %eax
cltq
shlq $4, %rax
addq %rax, %rcx
movq -48(%rbp), %r8
leaq -68(%rbp), %rdi
callq _zswap_
LBB0_51: ## in Loop: Header=BB0_46 Depth=1
jmp LBB0_52
LBB0_52: ## in Loop: Header=BB0_46 Depth=1
jmp LBB0_60
LBB0_53: ## in Loop: Header=BB0_46 Depth=1
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
movq 16(%rbp), %rcx
movslq -76(%rbp), %rdx
xorl %eax, %eax
subl (%rcx,%rdx,4), %eax
movl %eax, -84(%rbp)
movq 16(%rbp), %rcx
movl -76(%rbp), %eax
subl $1, %eax
movslq %eax, %rdx
xorl %eax, %eax
subl (%rcx,%rdx,4), %eax
movl %eax, -88(%rbp)
movl -76(%rbp), %eax
movq -32(%rbp), %rcx
cmpl (%rcx), %eax
jge LBB0_59
## %bb.54: ## in Loop: Header=BB0_46 Depth=1
movl -88(%rbp), %eax
movl -76(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
je LBB0_56
## %bb.55: ## in Loop: Header=BB0_46 Depth=1
movq -32(%rbp), %rax
movl (%rax), %eax
subl -76(%rbp), %eax
movl %eax, -68(%rbp)
movq -40(%rbp), %rsi
movl -88(%rbp), %eax
movl -76(%rbp), %ecx
addl $1, %ecx
imull -60(%rbp), %ecx
addl %ecx, %eax
cltq
shlq $4, %rax
addq %rax, %rsi
movq -48(%rbp), %rdx
movq -40(%rbp), %rcx
movl -76(%rbp), %eax
subl $1, %eax
movl -76(%rbp), %edi
addl $1, %edi
imull -60(%rbp), %edi
addl %edi, %eax
cltq
shlq $4, %rax
addq %rax, %rcx
movq -48(%rbp), %r8
leaq -68(%rbp), %rdi
callq _zswap_
LBB0_56: ## in Loop: Header=BB0_46 Depth=1
movl -84(%rbp), %eax
cmpl -76(%rbp), %eax
je LBB0_58
## %bb.57: ## in Loop: Header=BB0_46 Depth=1
movq -32(%rbp), %rax
movl (%rax), %eax
subl -76(%rbp), %eax
movl %eax, -68(%rbp)
movq -40(%rbp), %rsi
movl -84(%rbp), %eax
movl -76(%rbp), %ecx
addl $1, %ecx
imull -60(%rbp), %ecx
addl %ecx, %eax
cltq
shlq $4, %rax
addq %rax, %rsi
movq -48(%rbp), %rdx
movq -40(%rbp), %rcx
movl -76(%rbp), %eax
movl -76(%rbp), %edi
addl $1, %edi
imull -60(%rbp), %edi
addl %edi, %eax
cltq
shlq $4, %rax
addq %rax, %rcx
movq -48(%rbp), %r8
leaq -68(%rbp), %rdi
callq _zswap_
LBB0_58: ## in Loop: Header=BB0_46 Depth=1
jmp LBB0_59
LBB0_59: ## in Loop: Header=BB0_46 Depth=1
jmp LBB0_60
LBB0_60: ## in Loop: Header=BB0_46 Depth=1
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
jmp LBB0_46
LBB0_61:
movq -32(%rbp), %rax
movl (%rax), %eax
movl %eax, -76(%rbp)
LBB0_62: ## =>This Inner Loop Header: Depth=1
cmpl $1, -76(%rbp)
jle LBB0_66
## %bb.63: ## in Loop: Header=BB0_62 Depth=1
movq 16(%rbp), %rax
movslq -76(%rbp), %rcx
cmpl $0, (%rax,%rcx,4)
jge LBB0_65
## %bb.64: ## in Loop: Header=BB0_62 Depth=1
movl -76(%rbp), %eax
subl $1, %eax
movl -76(%rbp), %ecx
imull -60(%rbp), %ecx
addl %ecx, %eax
movl %eax, -68(%rbp)
movl -76(%rbp), %eax
movl %eax, -72(%rbp)
movq -56(%rbp), %rax
movslq -72(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm0 ## xmm0 = mem[0],zero
movq -40(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd %xmm0, (%rax)
movq -56(%rbp), %rax
movslq -72(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero
movq -40(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd %xmm0, 8(%rax)
movl -76(%rbp), %eax
addl $-1, %eax
movl %eax, -76(%rbp)
LBB0_65: ## in Loop: Header=BB0_62 Depth=1
movl -76(%rbp), %eax
addl $-1, %eax
movl %eax, -76(%rbp)
jmp LBB0_62
LBB0_66:
jmp LBB0_67
LBB0_67:
jmp LBB0_116
LBB0_68:
cmpl $0, -92(%rbp)
je LBB0_93
## %bb.69:
movl $1, -76(%rbp)
movq -32(%rbp), %rax
movl (%rax), %eax
movl %eax, -68(%rbp)
movq -56(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -56(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 8(%rax)
LBB0_70: ## =>This Inner Loop Header: Depth=1
movl -76(%rbp), %eax
movq -32(%rbp), %rcx
cmpl (%rcx), %eax
jg LBB0_76
## %bb.71: ## in Loop: Header=BB0_70 Depth=1
movl -76(%rbp), %eax
movq -32(%rbp), %rcx
cmpl (%rcx), %eax
jge LBB0_74
## %bb.72: ## in Loop: Header=BB0_70 Depth=1
movq 16(%rbp), %rax
movslq -76(%rbp), %rcx
cmpl $0, (%rax,%rcx,4)
jge LBB0_74
## %bb.73: ## in Loop: Header=BB0_70 Depth=1
movl -76(%rbp), %eax
movl %eax, -68(%rbp)
movl -76(%rbp), %eax
addl $1, %eax
movl -76(%rbp), %ecx
imull -60(%rbp), %ecx
addl %ecx, %eax
movl %eax, -72(%rbp)
movq -40(%rbp), %rax
movslq -72(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm0 ## xmm0 = mem[0],zero
movq -56(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd %xmm0, (%rax)
movq -40(%rbp), %rax
movslq -72(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero
movq -56(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd %xmm0, 8(%rax)
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -68(%rbp)
movq -56(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -56(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 8(%rax)
movl -76(%rbp), %eax
addl $1, %eax
movl -76(%rbp), %ecx
imull -60(%rbp), %ecx
addl %ecx, %eax
movl %eax, -68(%rbp)
movq -40(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -40(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 8(%rax)
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
jmp LBB0_75
LBB0_74: ## in Loop: Header=BB0_70 Depth=1
movl -76(%rbp), %eax
movl %eax, -68(%rbp)
movq -56(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -56(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 8(%rax)
LBB0_75: ## in Loop: Header=BB0_70 Depth=1
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
jmp LBB0_70
LBB0_76:
movl $1, -76(%rbp)
LBB0_77: ## =>This Inner Loop Header: Depth=1
movl -76(%rbp), %eax
movq -32(%rbp), %rcx
cmpl (%rcx), %eax
jg LBB0_92
## %bb.78: ## in Loop: Header=BB0_77 Depth=1
movq 16(%rbp), %rax
movslq -76(%rbp), %rcx
cmpl $0, (%rax,%rcx,4)
jle LBB0_84
## %bb.79: ## in Loop: Header=BB0_77 Depth=1
movq 16(%rbp), %rax
movslq -76(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -84(%rbp)
cmpl $1, -76(%rbp)
jle LBB0_83
## %bb.80: ## in Loop: Header=BB0_77 Depth=1
movl -84(%rbp), %eax
cmpl -76(%rbp), %eax
je LBB0_82
## %bb.81: ## in Loop: Header=BB0_77 Depth=1
movl -76(%rbp), %eax
subl $1, %eax
movl %eax, -68(%rbp)
movq -40(%rbp), %rsi
movl -76(%rbp), %eax
addl -60(%rbp), %eax
cltq
shlq $4, %rax
addq %rax, %rsi
movq -48(%rbp), %rdx
movq -40(%rbp), %rcx
movl -84(%rbp), %eax
addl -60(%rbp), %eax
cltq
shlq $4, %rax
addq %rax, %rcx
movq -48(%rbp), %r8
leaq -68(%rbp), %rdi
callq _zswap_
LBB0_82: ## in Loop: Header=BB0_77 Depth=1
jmp LBB0_83
LBB0_83: ## in Loop: Header=BB0_77 Depth=1
jmp LBB0_91
LBB0_84: ## in Loop: Header=BB0_77 Depth=1
movq 16(%rbp), %rcx
movslq -76(%rbp), %rdx
xorl %eax, %eax
subl (%rcx,%rdx,4), %eax
movl %eax, -84(%rbp)
movq 16(%rbp), %rcx
movl -76(%rbp), %eax
addl $1, %eax
movslq %eax, %rdx
xorl %eax, %eax
subl (%rcx,%rdx,4), %eax
movl %eax, -88(%rbp)
cmpl $1, -76(%rbp)
jle LBB0_90
## %bb.85: ## in Loop: Header=BB0_77 Depth=1
movl -84(%rbp), %eax
cmpl -76(%rbp), %eax
je LBB0_87
## %bb.86: ## in Loop: Header=BB0_77 Depth=1
movl -76(%rbp), %eax
subl $1, %eax
movl %eax, -68(%rbp)
movq -40(%rbp), %rsi
movl -76(%rbp), %eax
addl -60(%rbp), %eax
cltq
shlq $4, %rax
addq %rax, %rsi
movq -48(%rbp), %rdx
movq -40(%rbp), %rcx
movl -84(%rbp), %eax
addl -60(%rbp), %eax
cltq
shlq $4, %rax
addq %rax, %rcx
movq -48(%rbp), %r8
leaq -68(%rbp), %rdi
callq _zswap_
LBB0_87: ## in Loop: Header=BB0_77 Depth=1
movl -88(%rbp), %eax
movl -76(%rbp), %ecx
addl $1, %ecx
cmpl %ecx, %eax
je LBB0_89
## %bb.88: ## in Loop: Header=BB0_77 Depth=1
movl -76(%rbp), %eax
subl $1, %eax
movl %eax, -68(%rbp)
movq -40(%rbp), %rsi
movl -76(%rbp), %eax
addl $1, %eax
addl -60(%rbp), %eax
cltq
shlq $4, %rax
addq %rax, %rsi
movq -48(%rbp), %rdx
movq -40(%rbp), %rcx
movl -88(%rbp), %eax
addl -60(%rbp), %eax
cltq
shlq $4, %rax
addq %rax, %rcx
movq -48(%rbp), %r8
leaq -68(%rbp), %rdi
callq _zswap_
LBB0_89: ## in Loop: Header=BB0_77 Depth=1
jmp LBB0_90
LBB0_90: ## in Loop: Header=BB0_77 Depth=1
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
LBB0_91: ## in Loop: Header=BB0_77 Depth=1
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
jmp LBB0_77
LBB0_92:
jmp LBB0_115
LBB0_93:
movq -32(%rbp), %rax
movl (%rax), %eax
movl %eax, -76(%rbp)
LBB0_94: ## =>This Inner Loop Header: Depth=1
cmpl $1, -76(%rbp)
jl LBB0_109
## %bb.95: ## in Loop: Header=BB0_94 Depth=1
movq 16(%rbp), %rax
movslq -76(%rbp), %rcx
cmpl $0, (%rax,%rcx,4)
jle LBB0_101
## %bb.96: ## in Loop: Header=BB0_94 Depth=1
movq 16(%rbp), %rax
movslq -76(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -84(%rbp)
cmpl $1, -76(%rbp)
jle LBB0_100
## %bb.97: ## in Loop: Header=BB0_94 Depth=1
movl -84(%rbp), %eax
cmpl -76(%rbp), %eax
je LBB0_99
## %bb.98: ## in Loop: Header=BB0_94 Depth=1
movl -76(%rbp), %eax
subl $1, %eax
movl %eax, -68(%rbp)
movq -40(%rbp), %rsi
movl -84(%rbp), %eax
addl -60(%rbp), %eax
cltq
shlq $4, %rax
addq %rax, %rsi
movq -48(%rbp), %rdx
movq -40(%rbp), %rcx
movl -76(%rbp), %eax
addl -60(%rbp), %eax
cltq
shlq $4, %rax
addq %rax, %rcx
movq -48(%rbp), %r8
leaq -68(%rbp), %rdi
callq _zswap_
LBB0_99: ## in Loop: Header=BB0_94 Depth=1
jmp LBB0_100
LBB0_100: ## in Loop: Header=BB0_94 Depth=1
jmp LBB0_108
LBB0_101: ## in Loop: Header=BB0_94 Depth=1
movl -76(%rbp), %eax
addl $-1, %eax
movl %eax, -76(%rbp)
movq 16(%rbp), %rcx
movslq -76(%rbp), %rdx
xorl %eax, %eax
subl (%rcx,%rdx,4), %eax
movl %eax, -84(%rbp)
movq 16(%rbp), %rcx
movl -76(%rbp), %eax
addl $1, %eax
movslq %eax, %rdx
xorl %eax, %eax
subl (%rcx,%rdx,4), %eax
movl %eax, -88(%rbp)
cmpl $1, -76(%rbp)
jle LBB0_107
## %bb.102: ## in Loop: Header=BB0_94 Depth=1
movl -88(%rbp), %eax
movl -76(%rbp), %ecx
addl $1, %ecx
cmpl %ecx, %eax
je LBB0_104
## %bb.103: ## in Loop: Header=BB0_94 Depth=1
movl -76(%rbp), %eax
subl $1, %eax
movl %eax, -68(%rbp)
movq -40(%rbp), %rsi
movl -88(%rbp), %eax
addl -60(%rbp), %eax
cltq
shlq $4, %rax
addq %rax, %rsi
movq -48(%rbp), %rdx
movq -40(%rbp), %rcx
movl -76(%rbp), %eax
addl $1, %eax
addl -60(%rbp), %eax
cltq
shlq $4, %rax
addq %rax, %rcx
movq -48(%rbp), %r8
leaq -68(%rbp), %rdi
callq _zswap_
LBB0_104: ## in Loop: Header=BB0_94 Depth=1
movl -84(%rbp), %eax
cmpl -76(%rbp), %eax
je LBB0_106
## %bb.105: ## in Loop: Header=BB0_94 Depth=1
movl -76(%rbp), %eax
subl $1, %eax
movl %eax, -68(%rbp)
movq -40(%rbp), %rsi
movl -84(%rbp), %eax
addl -60(%rbp), %eax
cltq
shlq $4, %rax
addq %rax, %rsi
movq -48(%rbp), %rdx
movq -40(%rbp), %rcx
movl -76(%rbp), %eax
addl -60(%rbp), %eax
cltq
shlq $4, %rax
addq %rax, %rcx
movq -48(%rbp), %r8
leaq -68(%rbp), %rdi
callq _zswap_
LBB0_106: ## in Loop: Header=BB0_94 Depth=1
jmp LBB0_107
LBB0_107: ## in Loop: Header=BB0_94 Depth=1
jmp LBB0_108
LBB0_108: ## in Loop: Header=BB0_94 Depth=1
movl -76(%rbp), %eax
addl $-1, %eax
movl %eax, -76(%rbp)
jmp LBB0_94
LBB0_109:
movl $1, -76(%rbp)
LBB0_110: ## =>This Inner Loop Header: Depth=1
movl -76(%rbp), %eax
movq -32(%rbp), %rcx
movl (%rcx), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jg LBB0_114
## %bb.111: ## in Loop: Header=BB0_110 Depth=1
movq 16(%rbp), %rax
movslq -76(%rbp), %rcx
cmpl $0, (%rax,%rcx,4)
jge LBB0_113
## %bb.112: ## in Loop: Header=BB0_110 Depth=1
movl -76(%rbp), %eax
addl $1, %eax
movl -76(%rbp), %ecx
imull -60(%rbp), %ecx
addl %ecx, %eax
movl %eax, -68(%rbp)
movl -76(%rbp), %eax
movl %eax, -72(%rbp)
movq -56(%rbp), %rax
movslq -72(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm0 ## xmm0 = mem[0],zero
movq -40(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd %xmm0, (%rax)
movq -56(%rbp), %rax
movslq -72(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero
movq -40(%rbp), %rax
movslq -68(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd %xmm0, 8(%rax)
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
LBB0_113: ## in Loop: Header=BB0_110 Depth=1
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
jmp LBB0_110
LBB0_114:
jmp LBB0_115
LBB0_115:
jmp LBB0_116
LBB0_116:
movl $0, -4(%rbp)
LBB0_117:
movl -4(%rbp), %eax
addq $112, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "U"
L_.str.1: ## @.str.1
.asciz "C"
L_.str.2: ## @.str.2
.asciz "L"
L_.str.3: ## @.str.3
.asciz "R"
L_.str.4: ## @.str.4
.asciz "ZSYCONVF_ROOK"
.subsections_via_symbols
| the_stack_data/42393.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_ultimate_div_mod ; -- Begin function ft_ultimate_div_mod
.p2align 2
_ft_ultimate_div_mod: ; @ft_ultimate_div_mod
.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]
ldr x9, [sp, #16]
ldr w9, [x9]
sdiv w8, w8, w9
str w8, [sp, #12]
ldr x8, [sp, #24]
ldr w8, [x8]
ldr x9, [sp, #16]
ldr w10, [x9]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #8]
ldr w8, [sp, #12]
ldr x9, [sp, #24]
str w8, [x9]
ldr w8, [sp, #8]
ldr x9, [sp, #16]
str w8, [x9]
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_ultimate_div_mod ## -- Begin function ft_ultimate_div_mod
.p2align 4, 0x90
_ft_ultimate_div_mod: ## @ft_ultimate_div_mod
.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
movq -16(%rbp), %rcx
cltd
idivl (%rcx)
movl %eax, -20(%rbp)
movq -8(%rbp), %rax
movl (%rax), %eax
movq -16(%rbp), %rcx
cltd
idivl (%rcx)
movl %edx, -24(%rbp)
movl -20(%rbp), %ecx
movq -8(%rbp), %rax
movl %ecx, (%rax)
movl -24(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/179830246.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, #-12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov w8, #-1
stur w8, [x29, #-8]
ldur w9, [x29, #-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
ldur w0, [x29, #-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 "The value of 'EOF' is %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, -8(%rbp)
movl -8(%rbp), %esi
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 "The value of 'EOF' is %d\n"
.subsections_via_symbols
| the_stack_data/243893444.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]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #8
str x8, [sp, #16] ; 8-byte Folded Spill
str x8, [x9]
sub x8, x29, #12
str x8, [sp, #24] ; 8-byte Folded Spill
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldr x8, [sp, #24] ; 8-byte Folded Reload
stur x9, [x29, #-24]
str x8, [sp, #32]
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x0, [x29, #-24]
ldr x1, [sp, #32]
bl _swap
b LBB0_2
LBB0_2:
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.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.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
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "please enter a and b:"
l_.str.1: ; @.str.1
.asciz "%d,%d"
l_.str.2: ; @.str.2
.asciz "max = %d, min = %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
leaq -12(%rbp), %rdx
movb $0, %al
callq _scanf
leaq -8(%rbp), %rax
movq %rax, -24(%rbp)
leaq -12(%rbp), %rax
movq %rax, -32(%rbp)
movl -8(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB0_2
## %bb.1:
movq -24(%rbp), %rdi
movq -32(%rbp), %rsi
callq _swap
LBB0_2:
movl -8(%rbp), %esi
movl -12(%rbp), %edx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.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
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "please enter a and b:"
L_.str.1: ## @.str.1
.asciz "%d,%d"
L_.str.2: ## @.str.2
.asciz "max = %d, min = %d\n"
.subsections_via_symbols
| the_stack_data/18913.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 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
ldur w0, [x29, #-4]
bl _creategraph
stur x0, [x29, #-24]
ldur x0, [x29, #-24]
mov w1, #0
stur w1, [x29, #-28] ; 4-byte Folded Spill
mov w2, #1
str w2, [sp, #20] ; 4-byte Folded Spill
bl _addEdge
ldur w1, [x29, #-28] ; 4-byte Folded Reload
ldur x0, [x29, #-24]
mov w2, #4
str w2, [sp, #32] ; 4-byte Folded Spill
bl _addEdge
ldr w1, [sp, #20] ; 4-byte Folded Reload
ldur x0, [x29, #-24]
mov w2, #2
str w2, [sp, #24] ; 4-byte Folded Spill
bl _addEdge
ldr w1, [sp, #20] ; 4-byte Folded Reload
ldur x0, [x29, #-24]
mov w2, #3
str w2, [sp, #28] ; 4-byte Folded Spill
bl _addEdge
ldr w1, [sp, #20] ; 4-byte Folded Reload
ldr w2, [sp, #32] ; 4-byte Folded Reload
ldur x0, [x29, #-24]
bl _addEdge
ldr w1, [sp, #24] ; 4-byte Folded Reload
ldr w2, [sp, #28] ; 4-byte Folded Reload
ldur x0, [x29, #-24]
bl _addEdge
ldr w1, [sp, #28] ; 4-byte Folded Reload
ldr w2, [sp, #32] ; 4-byte Folded Reload
ldur x0, [x29, #-24]
bl _addEdge
ldur x0, [x29, #-24]
bl _print
ldur w0, [x29, #-28] ; 4-byte Folded Reload
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _creategraph ; -- Begin function creategraph
.p2align 2
_creategraph: ; @creategraph
.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]
mov x0, #16
bl _malloc
str x0, [sp]
ldur w8, [x29, #-4]
ldr x9, [sp]
str w8, [x9]
ldursw x8, [x29, #-4]
lsl x0, x8, #3
bl _malloc
ldr x8, [sp]
str x0, [x8, #8]
str wzr, [sp, #8]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp]
ldr x9, [x8, #8]
ldrsw x10, [sp, #8]
mov x8, #0
str x8, [x9, x10, lsl #3]
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB1_1
LBB1_4:
ldr x0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _addEdge ; -- Begin function addEdge
.p2align 2
_addEdge: ; @addEdge
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
str w2, [sp, #16]
ldr w0, [sp, #16]
bl _createnode
str x0, [sp, #8]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldursw x9, [x29, #-12]
ldr x8, [x8, x9, lsl #3]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldr x8, [sp, #8]
ldur x9, [x29, #-8]
ldr x9, [x9, #8]
ldursw x10, [x29, #-12]
str x8, [x9, x10, lsl #3]
ldur w0, [x29, #-12]
bl _createnode
str x0, [sp, #8]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldrsw x9, [sp, #16]
ldr x8, [x8, x9, lsl #3]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldr x8, [sp, #8]
ldur x9, [x29, #-8]
ldr x9, [x9, #8]
ldrsw x10, [sp, #16]
str x8, [x9, x10, lsl #3]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _print ; -- Begin function print
.p2align 2
_print: ; @print
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur wzr, [x29, #-12]
b LBB3_1
LBB3_1: ; =>This Loop Header: Depth=1
; Child Loop BB3_3 Depth 2
ldur w8, [x29, #-12]
ldur x9, [x29, #-8]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_7
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldursw x9, [x29, #-12]
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #8]
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
b LBB3_3
LBB3_3: ; Parent Loop BB3_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB3_5
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_3 Depth=2
ldr x8, [sp, #8]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB3_3
LBB3_5: ; in Loop: Header=BB3_1 Depth=1
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB3_1
LBB3_7:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _createnode ; -- Begin function createnode
.p2align 2
_createnode: ; @createnode
.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]
mov x0, #16
bl _malloc
str x0, [sp]
ldur w8, [x29, #-4]
ldr x9, [sp]
str w8, [x9]
ldr x8, [sp]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldr x0, [sp]
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 "enter number of vertixes "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "adjecenty list of vertex %d"
l_.str.3: ; @.str.3
.asciz "->%d"
l_.str.4: ; @.str.4
.asciz "\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
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 -4(%rbp), %edi
callq _creategraph
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
xorl %esi, %esi
movl $1, %edx
callq _addEdge
movq -24(%rbp), %rdi
xorl %esi, %esi
movl $4, %edx
callq _addEdge
movq -24(%rbp), %rdi
movl $1, %esi
movl $2, %edx
callq _addEdge
movq -24(%rbp), %rdi
movl $1, %esi
movl $3, %edx
callq _addEdge
movq -24(%rbp), %rdi
movl $1, %esi
movl $4, %edx
callq _addEdge
movq -24(%rbp), %rdi
movl $2, %esi
movl $3, %edx
callq _addEdge
movq -24(%rbp), %rdi
movl $3, %esi
movl $4, %edx
callq _addEdge
movq -24(%rbp), %rdi
callq _print
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _creategraph ## -- Begin function creategraph
.p2align 4, 0x90
_creategraph: ## @creategraph
.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 $16, %edi
callq _malloc
movq %rax, -16(%rbp)
movl -4(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
movslq -4(%rbp), %rdi
shlq $3, %rdi
callq _malloc
movq %rax, %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movl $0, -8(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -8(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -16(%rbp), %rax
movq 8(%rax), %rax
movslq -8(%rbp), %rcx
movq $0, (%rax,%rcx,8)
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB1_1
LBB1_4:
movq -16(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _addEdge ## -- Begin function addEdge
.p2align 4, 0x90
_addEdge: ## @addEdge
.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 -16(%rbp), %edi
callq _createnode
movq %rax, -24(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movslq -12(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rdx
movq -8(%rbp), %rax
movq 8(%rax), %rax
movslq -12(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -12(%rbp), %edi
callq _createnode
movq %rax, -24(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movslq -16(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rdx
movq -8(%rbp), %rax
movq 8(%rax), %rax
movslq -16(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _print ## -- Begin function print
.p2align 4, 0x90
_print: ## @print
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movl $0, -12(%rbp)
LBB3_1: ## =>This Loop Header: Depth=1
## Child Loop BB3_3 Depth 2
movl -12(%rbp), %eax
movq -8(%rbp), %rcx
cmpl (%rcx), %eax
jge LBB3_7
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movq -8(%rbp), %rax
movq 8(%rax), %rax
movslq -12(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -24(%rbp)
movl -12(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
LBB3_3: ## Parent Loop BB3_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpq $0, -24(%rbp)
je LBB3_5
## %bb.4: ## in Loop: Header=BB3_3 Depth=2
movq -24(%rbp), %rax
movl (%rax), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
jmp LBB3_3
LBB3_5: ## in Loop: Header=BB3_1 Depth=1
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
## %bb.6: ## in Loop: Header=BB3_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB3_1
LBB3_7:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _createnode ## -- Begin function createnode
.p2align 4, 0x90
_createnode: ## @createnode
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movl $16, %edi
callq _malloc
movq %rax, -16(%rbp)
movl -4(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
movq -16(%rbp), %rax
movq $0, 8(%rax)
movq -16(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "enter number of vertixes "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "adjecenty list of vertex %d"
L_.str.3: ## @.str.3
.asciz "->%d"
L_.str.4: ## @.str.4
.asciz "\n"
.subsections_via_symbols
| the_stack_data/95451298.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 init_double_loop
lCPI0_0:
.quad 0x3ff199999999999a ; double 1.1000000000000001
lCPI0_1:
.quad 0x3fb999999999999a ; double 0.10000000000000001
.section __TEXT,__text,regular,pure_instructions
.globl _init_double_loop
.p2align 2
_init_double_loop: ; @init_double_loop
.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]
mov x0, #24
bl _malloc
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
; kill: def $x9 killed $xzr
str xzr, [x8]
ldur x8, [x29, #-8]
adrp x9, lCPI0_1@PAGE
ldr d0, [x9, lCPI0_1@PAGEOFF]
str d0, [x8, #8]
ldur x8, [x29, #-8]
str xzr, [x8, #16]
ldur x8, [x29, #-8]
str x8, [sp, #16]
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov x0, #24
bl _malloc
str x0, [sp]
ldr x8, [sp]
ldr x9, [sp, #16]
str x8, [x9, #16]
ldr x8, [sp]
; kill: def $x9 killed $xzr
str xzr, [x8, #16]
ldr s1, [sp, #12]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fadd d0, d0, d1
ldr x8, [sp]
str d0, [x8, #8]
ldr x8, [sp, #16]
ldr x9, [sp]
str x8, [x9]
ldr x8, [sp, #16]
ldr x8, [x8, #16]
str x8, [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 x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _insert_node ; -- Begin function insert_node
.p2align 2
_insert_node: ; @insert_node
.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]
str d0, [sp, #24]
mov x0, #24
bl _malloc
str x0, [sp, #16]
ldr d0, [sp, #24]
ldr x8, [sp, #16]
str d0, [x8, #8]
ldr x8, [sp, #16]
; kill: def $x9 killed $xzr
str xzr, [x8, #16]
ldr x8, [sp, #16]
str xzr, [x8]
ldur w9, [x29, #-12]
mov w8, #1
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldur x8, [x29, #-8]
ldr x9, [sp, #16]
str x8, [x9, #16]
ldr x8, [sp, #16]
ldur x9, [x29, #-8]
str x8, [x9]
ldr x8, [sp, #16]
stur x8, [x29, #-8]
b LBB1_10
LBB1_2:
ldur x8, [x29, #-8]
str x8, [sp, #8]
mov w8, #1
str w8, [sp, #4]
b LBB1_3
LBB1_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldur w9, [x29, #-12]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_6
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #16]
str x8, [sp, #8]
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB1_3
LBB1_6:
ldr x8, [sp, #8]
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_8
b LBB1_7
LBB1_7:
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9, #16]
ldr x8, [sp, #8]
ldr x9, [sp, #16]
str x8, [x9]
b LBB1_9
LBB1_8:
ldr x8, [sp, #8]
ldr x8, [x8, #16]
ldr x9, [sp, #16]
str x8, [x9, #16]
ldr x8, [sp, #8]
ldr x9, [sp, #16]
str x8, [x9]
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9, #16]
ldr x8, [sp, #16]
ldr x9, [sp, #8]
ldr x9, [x9, #16]
str x8, [x9]
b LBB1_9
LBB1_9:
b LBB1_10
LBB1_10:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _delete_node ; -- Begin function delete_node
.p2align 2
_delete_node: ; @delete_node
.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]
stur w1, [x29, #-20]
ldur x8, [x29, #-16]
str x8, [sp, #16]
ldur w9, [x29, #-20]
mov w8, #1
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldr x8, [sp, #16]
ldr x8, [x8, #16]
stur x8, [x29, #-16]
ldur x8, [x29, #-16]
; kill: def $x9 killed $xzr
str xzr, [x8]
b LBB2_9
LBB2_2:
str wzr, [sp, #12]
b LBB2_3
LBB2_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldur w9, [x29, #-20]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_8
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_3 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #16]
str x8, [sp, #16]
ldr x8, [sp, #16]
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_6
b LBB2_5
LBB2_5:
ldr x8, [sp, #16]
ldr x8, [x8]
; kill: def $x9 killed $xzr
str xzr, [x8, #16]
ldr x0, [sp, #16]
bl _free
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur x8, [x29, #-16]
stur x8, [x29, #-8]
b LBB2_10
LBB2_6: ; in Loop: Header=BB2_3 Depth=1
b LBB2_7
LBB2_7: ; in Loop: Header=BB2_3 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB2_3
LBB2_8:
ldr x8, [sp, #16]
ldr x8, [x8, #16]
ldr x9, [sp, #16]
ldr x9, [x9]
str x8, [x9, #16]
ldr x8, [sp, #16]
ldr x8, [x8]
ldr x9, [sp, #16]
ldr x9, [x9, #16]
str x8, [x9]
b LBB2_9
LBB2_9:
ldr x0, [sp, #16]
bl _free
ldur x8, [x29, #-16]
stur x8, [x29, #-8]
b LBB2_10
LBB2_10:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _show ; -- Begin function show
.p2align 2
_show: ; @show
.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]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB3_6
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #16]
ldr d0, [x8, #8]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB3_5
LBB3_4: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #16]
ldr d0, [x8, #8]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #16]
str x8, [sp, #16]
b LBB3_1
LBB3_6:
ldur x8, [x29, #-8]
str x8, [sp, #16]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI4_0:
.quad 0x4058ff5c28f5c28f ; double 99.989999999999994
.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
mov w8, #0
str w8, [sp, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
; kill: def $x8 killed $xzr
str xzr, [sp, #16]
ldr x0, [sp, #16]
bl _init_double_loop
str x0, [sp, #16]
ldr x0, [sp, #16]
bl _show
ldr x0, [sp, #16]
mov w1, #1
adrp x8, lCPI4_0@PAGE
ldr d0, [x8, lCPI4_0@PAGEOFF]
bl _insert_node
str x0, [sp, #16]
ldr x0, [sp, #16]
bl _show
ldr x0, [sp, #16]
mov w1, #9
bl _delete_node
str x0, [sp, #16]
ldr x0, [sp, #16]
bl _show
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 "reach the end and delete the last node\n"
l_.str.1: ; @.str.1
.asciz "data->%f\n"
l_.str.2: ; @.str.2
.asciz "data->%f\t"
.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 init_double_loop
LCPI0_0:
.quad 0x3fb999999999999a ## double 0.10000000000000001
LCPI0_1:
.quad 0x3ff199999999999a ## double 1.1000000000000001
.section __TEXT,__text,regular,pure_instructions
.globl _init_double_loop
.p2align 4, 0x90
_init_double_loop: ## @init_double_loop
.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 $24, %edi
callq _malloc
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
movq $0, (%rax)
movq -8(%rbp), %rax
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, 8(%rax)
movq -8(%rbp), %rax
movq $0, 16(%rax)
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
movl $0, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $5, -20(%rbp)
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $24, %edi
callq _malloc
movq %rax, -32(%rbp)
movq -32(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 16(%rax)
movq -32(%rbp), %rax
movq $0, 16(%rax)
cvtsi2sdl -20(%rbp), %xmm0
movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero
addsd %xmm1, %xmm0
movq -32(%rbp), %rax
movsd %xmm0, 8(%rax)
movq -16(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, (%rax)
movq -16(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -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
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _insert_node ## -- Begin function insert_node
.p2align 4, 0x90
_insert_node: ## @insert_node
.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)
movsd %xmm0, -24(%rbp)
movl $24, %edi
callq _malloc
movq %rax, -32(%rbp)
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -32(%rbp), %rax
movsd %xmm0, 8(%rax)
movq -32(%rbp), %rax
movq $0, 16(%rax)
movq -32(%rbp), %rax
movq $0, (%rax)
movl $1, %eax
cmpl -12(%rbp), %eax
jne LBB1_2
## %bb.1:
movq -8(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, 16(%rax)
movq -32(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
movq -32(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB1_10
LBB1_2:
movq -8(%rbp), %rax
movq %rax, -40(%rbp)
movl $1, -44(%rbp)
LBB1_3: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
movl -12(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB1_6
## %bb.4: ## in Loop: Header=BB1_3 Depth=1
movq -40(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -40(%rbp)
## %bb.5: ## in Loop: Header=BB1_3 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB1_3
LBB1_6:
movq -40(%rbp), %rax
cmpq $0, 16(%rax)
jne LBB1_8
## %bb.7:
movq -32(%rbp), %rcx
movq -40(%rbp), %rax
movq %rcx, 16(%rax)
movq -40(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, (%rax)
jmp LBB1_9
LBB1_8:
movq -40(%rbp), %rax
movq 16(%rax), %rcx
movq -32(%rbp), %rax
movq %rcx, 16(%rax)
movq -40(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, (%rax)
movq -32(%rbp), %rcx
movq -40(%rbp), %rax
movq %rcx, 16(%rax)
movq -32(%rbp), %rcx
movq -40(%rbp), %rax
movq 16(%rax), %rax
movq %rcx, (%rax)
LBB1_9:
jmp LBB1_10
LBB1_10:
movq -8(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _delete_node ## -- Begin function delete_node
.p2align 4, 0x90
_delete_node: ## @delete_node
.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)
movl %esi, -20(%rbp)
movq -16(%rbp), %rax
movq %rax, -32(%rbp)
movl $1, %eax
cmpl -20(%rbp), %eax
jne LBB2_2
## %bb.1:
movq -32(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq $0, (%rax)
jmp LBB2_9
LBB2_2:
movl $0, -36(%rbp)
LBB2_3: ## =>This Inner Loop Header: Depth=1
movl -36(%rbp), %eax
movl -20(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB2_8
## %bb.4: ## in Loop: Header=BB2_3 Depth=1
movq -32(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -32(%rbp)
movq -32(%rbp), %rax
cmpq $0, 16(%rax)
jne LBB2_6
## %bb.5:
movq -32(%rbp), %rax
movq (%rax), %rax
movq $0, 16(%rax)
movq -32(%rbp), %rdi
callq _free
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB2_10
LBB2_6: ## in Loop: Header=BB2_3 Depth=1
jmp LBB2_7
LBB2_7: ## in Loop: Header=BB2_3 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB2_3
LBB2_8:
movq -32(%rbp), %rax
movq 16(%rax), %rcx
movq -32(%rbp), %rax
movq (%rax), %rax
movq %rcx, 16(%rax)
movq -32(%rbp), %rax
movq (%rax), %rcx
movq -32(%rbp), %rax
movq 16(%rax), %rax
movq %rcx, (%rax)
LBB2_9:
movq -32(%rbp), %rdi
callq _free
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
LBB2_10:
movq -8(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _show ## -- Begin function show
.p2align 4, 0x90
_show: ## @show
.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, -16(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16(%rbp)
je LBB3_6
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movq -16(%rbp), %rax
cmpq $0, 16(%rax)
jne LBB3_4
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
movq -16(%rbp), %rax
movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.1(%rip), %rdi
movb $1, %al
callq _printf
jmp LBB3_5
LBB3_4: ## in Loop: Header=BB3_1 Depth=1
movq -16(%rbp), %rax
movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
LBB3_5: ## in Loop: Header=BB3_1 Depth=1
movq -16(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -16(%rbp)
jmp LBB3_1
LBB3_6:
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI4_0:
.quad 0x4058ff5c28f5c28f ## double 99.989999999999994
.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)
movq $0, -16(%rbp)
movq -16(%rbp), %rdi
callq _init_double_loop
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
callq _show
movq -16(%rbp), %rdi
movl $1, %esi
movsd LCPI4_0(%rip), %xmm0 ## xmm0 = mem[0],zero
callq _insert_node
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
callq _show
movq -16(%rbp), %rdi
movl $9, %esi
callq _delete_node
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
callq _show
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "reach the end and delete the last node\n"
L_.str.1: ## @.str.1
.asciz "data->%f\n"
L_.str.2: ## @.str.2
.asciz "data->%f\t"
.subsections_via_symbols
| the_stack_data/26700763.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:
sub sp, sp, #16
.cfi_def_cfa_offset 16
adrp x8, _Foo@GOTPAGE
ldr x8, [x8, _Foo@GOTPAGEOFF]
str w0, [sp, #12]
ldr x8, [x8, #8]
ldr w9, [sp, #12]
; kill: def $x9 killed $w9
add x0, x8, x9, lsl #2
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _Foo,16,3 ; @Foo
.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
movl %edi, -4(%rbp)
movq _Foo@GOTPCREL(%rip), %rax
movq 8(%rax), %rax
movl -4(%rbp), %ecx
## kill: def $rcx killed $ecx
shlq $2, %rcx
addq %rcx, %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _Foo,16,4 ## @Foo
.subsections_via_symbols
| the_stack_data/75137343.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
sub x8, x29, #12
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
mov w8, #1
stur w8, [x29, #-16]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldur w8, [x29, #-16]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-16]
stur w8, [x29, #-20]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldur w8, [x29, #-20]
mov w10, #10
sdiv w9, w8, w10
mul w9, w9, w10
subs w9, w8, w9
adrp x8, _a@GOTPAGE
ldr x8, [x8, _a@GOTPAGEOFF]
add x9, x8, w9, sxtw #2
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldur w8, [x29, #-20]
mov w9, #10
sdiv w8, w8, w9
stur w8, [x29, #-20]
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, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB0_1
LBB0_8:
ldursw x9, [x29, #-12]
adrp x8, _a@GOTPAGE
ldr x8, [x8, _a@GOTPAGEOFF]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #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"
.comm _a,40,2 ; @a
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 $32, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
leaq -12(%rbp), %rdx
movb $0, %al
callq _scanf
movl $1, -16(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movl -16(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
movl %eax, -20(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $0, -20(%rbp)
jle LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movl -20(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movslq %edx, %rcx
movq _a@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %edx
addl $1, %edx
movq _a@GOTPCREL(%rip), %rax
movl %edx, (%rax,%rcx,4)
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -20(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, -20(%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 -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_1
LBB0_8:
movslq -12(%rbp), %rcx
movq _a@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %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 "%d%d"
.comm _a,40,4 ## @a
L_.str.1: ## @.str.1
.asciz "%d"
.subsections_via_symbols
| the_stack_data/107954300.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl __tcsearch ; -- Begin function _tcsearch
.p2align 2
__tcsearch: ; @_tcsearch
.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]
str w3, [sp, #28]
str w4, [sp, #24]
str wzr, [sp, #20]
ldr w8, [sp, #28]
subs w8, w8, #1
str w8, [sp, #16]
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, gt
tbnz w8, #0, LBB0_12
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 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]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-16]
ldr x8, [sp, #32]
ldur x9, [x29, #-24]
ldrsw x10, [sp, #12]
ldrsh x9, [x9, x10, lsl #1]
ldr x1, [x8, x9, lsl #3]
bl _strcmp
str w0, [sp, #4] ; 4-byte Folded Spill
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-16]
ldr x8, [sp, #32]
ldur x9, [x29, #-24]
ldrsw x10, [sp, #12]
ldrsh x9, [x9, x10, lsl #1]
ldr x1, [x8, x9, lsl #3]
ldrsw x2, [sp, #24]
bl _strncmp
str w0, [sp, #4] ; 4-byte Folded Spill
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
str w8, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
subs w8, w8, #1
str w8, [sp, #16]
b LBB0_11
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_10
LBB0_9:
ldur x8, [x29, #-24]
ldrsw x9, [sp, #12]
ldrsh w8, [x8, x9, lsl #1]
stur w8, [x29, #-4]
b LBB0_13
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_12:
mov w8, #-1
stur w8, [x29, #-4]
b LBB0_13
LBB0_13:
ldur w0, [x29, #-4]
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 __tcsearch ## -- Begin function _tcsearch
.p2align 4, 0x90
__tcsearch: ## @_tcsearch
.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)
movl %ecx, -36(%rbp)
movl %r8d, -40(%rbp)
movl $0, -44(%rbp)
movl -36(%rbp), %eax
subl $1, %eax
movl %eax, -48(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
cmpl -48(%rbp), %eax
jg LBB0_12
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -44(%rbp), %eax
addl -48(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
movl %eax, -52(%rbp)
cmpl $0, -40(%rbp)
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
movq -32(%rbp), %rax
movq -24(%rbp), %rcx
movslq -52(%rbp), %rdx
movswq (%rcx,%rdx,2), %rcx
movq (%rax,%rcx,8), %rsi
callq _strcmp
movl %eax, -60(%rbp) ## 4-byte Spill
jmp LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
movq -32(%rbp), %rax
movq -24(%rbp), %rcx
movslq -52(%rbp), %rdx
movswq (%rcx,%rdx,2), %rcx
movq (%rax,%rcx,8), %rsi
movslq -40(%rbp), %rdx
callq _strncmp
movl %eax, -60(%rbp) ## 4-byte Spill
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movl -60(%rbp), %eax ## 4-byte Reload
movl %eax, -56(%rbp)
cmpl $0, -56(%rbp)
jge LBB0_7
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
movl -52(%rbp), %eax
subl $1, %eax
movl %eax, -48(%rbp)
jmp LBB0_11
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -56(%rbp)
jle LBB0_9
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_10
LBB0_9:
movq -24(%rbp), %rax
movslq -52(%rbp), %rcx
movswl (%rax,%rcx,2), %eax
movl %eax, -4(%rbp)
jmp LBB0_13
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_11
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_12:
movl $-1, -4(%rbp)
LBB0_13:
movl -4(%rbp), %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/12637370.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
stur w8, [x29, #-20] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x9, l___const.main.characterName@PAGE
add x9, x9, l___const.main.characterName@PAGEOFF
ldr w10, [x9]
sub x8, x29, #12
str x8, [sp, #16] ; 8-byte Folded Spill
stur w10, [x29, #-12]
ldrb w9, [x9, #4]
sturb w9, [x29, #-8]
mov w9, #67
stur w9, [x29, #-16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
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
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov w8, #87
stur w8, [x29, #-16]
ldur w9, [x29, #-16]
; 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 w0, [x29, #-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___const.main.characterName: ; @__const.main.characterName
.asciz "John"
l_.str: ; @.str
.asciz "There once was once a guy named %s\n"
l_.str.1: ; @.str.1
.asciz "He was %d years old \n"
l_.str.2: ; @.str.2
.asciz "He really liked the name %s\n"
l_.str.3: ; @.str.3
.asciz "But did not like being %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 L___const.main.characterName(%rip), %eax
movl %eax, -9(%rbp)
movb L___const.main.characterName+4(%rip), %al
movb %al, -5(%rbp)
movl $67, -16(%rbp)
leaq -9(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -16(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq -9(%rbp), %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $87, -16(%rbp)
movl -16(%rbp), %esi
leaq L_.str.3(%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___const.main.characterName: ## @__const.main.characterName
.asciz "John"
L_.str: ## @.str
.asciz "There once was once a guy named %s\n"
L_.str.1: ## @.str.1
.asciz "He was %d years old \n"
L_.str.2: ## @.str.2
.asciz "He really liked the name %s\n"
L_.str.3: ## @.str.3
.asciz "But did not like being %d\n"
.subsections_via_symbols
| the_stack_data/112817.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]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
add x0, sp, #32
str x0, [sp, #8] ; 8-byte Folded Spill
bl _gets
ldr x0, [sp, #8] ; 8-byte Folded Reload
bl _strlen
mov x8, x0
str w8, [sp, #24]
str wzr, [sp, #20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_19
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #32
ldrsb w8, [x8, x9]
subs w8, w8, #97
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #32
ldrsb w8, [x8, x9]
subs w8, w8, #65
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #32
ldrsb w10, [x8, x9]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #32
ldrsb w8, [x8, x9]
subs w8, w8, #101
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #32
ldrsb w8, [x8, x9]
subs w8, w8, #69
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #32
ldrsb w10, [x8, x9]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #32
ldrsb w8, [x8, x9]
subs w8, w8, #105
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #32
ldrsb w8, [x8, x9]
subs w8, w8, #73
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #32
ldrsb w10, [x8, x9]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #32
ldrsb w8, [x8, x9]
subs w8, w8, #111
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #32
ldrsb w8, [x8, x9]
subs w8, w8, #79
cset w8, ne
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #32
ldrsb w10, [x8, x9]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #32
ldrsb w8, [x8, x9]
subs w8, w8, #117
cset w8, eq
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #32
ldrsb w8, [x8, x9]
subs w8, w8, #85
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #32
ldrsb w10, [x8, x9]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_1 Depth=1
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_1
LBB0_19:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20:
bl ___stack_chk_fail
LBB0_21:
mov w0, #0
ldp x29, x30, [sp, #256] ; 16-byte Folded Reload
ldp x28, x27, [sp, #240] ; 16-byte Folded Reload
add sp, sp, #272
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Digite uma frase: "
l_.str.1: ; @.str.1
.asciz "%c\t"
.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 $224, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -212(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq -208(%rbp), %rdi
callq _gets
leaq -208(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -216(%rbp)
movl $0, -220(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -220(%rbp), %eax
cmpl -216(%rbp), %eax
jge LBB0_19
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -220(%rbp), %rax
movsbl -208(%rbp,%rax), %eax
cmpl $97, %eax
je LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movslq -220(%rbp), %rax
movsbl -208(%rbp,%rax), %eax
cmpl $65, %eax
jne LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movslq -220(%rbp), %rax
movsbl -208(%rbp,%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movslq -220(%rbp), %rax
movsbl -208(%rbp,%rax), %eax
cmpl $101, %eax
je LBB0_7
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
movslq -220(%rbp), %rax
movsbl -208(%rbp,%rax), %eax
cmpl $69, %eax
jne LBB0_8
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movslq -220(%rbp), %rax
movsbl -208(%rbp,%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movslq -220(%rbp), %rax
movsbl -208(%rbp,%rax), %eax
cmpl $105, %eax
je LBB0_10
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
movslq -220(%rbp), %rax
movsbl -208(%rbp,%rax), %eax
cmpl $73, %eax
jne LBB0_11
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movslq -220(%rbp), %rax
movsbl -208(%rbp,%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
movslq -220(%rbp), %rax
movsbl -208(%rbp,%rax), %eax
cmpl $111, %eax
je LBB0_13
## %bb.12: ## in Loop: Header=BB0_1 Depth=1
movslq -220(%rbp), %rax
movsbl -208(%rbp,%rax), %eax
cmpl $79, %eax
jne LBB0_14
LBB0_13: ## in Loop: Header=BB0_1 Depth=1
movslq -220(%rbp), %rax
movsbl -208(%rbp,%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
LBB0_14: ## in Loop: Header=BB0_1 Depth=1
movslq -220(%rbp), %rax
movsbl -208(%rbp,%rax), %eax
cmpl $117, %eax
je LBB0_16
## %bb.15: ## in Loop: Header=BB0_1 Depth=1
movslq -220(%rbp), %rax
movsbl -208(%rbp,%rax), %eax
cmpl $85, %eax
jne LBB0_17
LBB0_16: ## in Loop: Header=BB0_1 Depth=1
movslq -220(%rbp), %rax
movsbl -208(%rbp,%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
LBB0_17: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_18
LBB0_18: ## in Loop: Header=BB0_1 Depth=1
movl -220(%rbp), %eax
addl $1, %eax
movl %eax, -220(%rbp)
jmp LBB0_1
LBB0_19:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_21
## %bb.20:
xorl %eax, %eax
addq $224, %rsp
popq %rbp
retq
LBB0_21:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Digite uma frase: "
L_.str.1: ## @.str.1
.asciz "%c\t"
.subsections_via_symbols
| the_stack_data/100140966.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]
mov w8, #271
stur w8, [x29, #-8]
mov w8, #212
stur w8, [x29, #-12]
mov w8, #-1
stur w8, [x29, #-16]
mov w8, #1
stur w8, [x29, #-20]
mov w8, #5
stur w8, [x29, #-24]
mov w8, #8
stur w8, [x29, #-28]
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-8]
ldur w10, [x29, #-8]
subs w10, w10, #1
and w10, w9, w10
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-8]
ldur w10, [x29, #-8]
add w10, w10, #1
orr 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
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-8]
ldur w10, [x29, #-8]
add w10, w10, #1
and w10, w9, w10
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-12]
ldur w10, [x29, #-12]
subs w10, w10, #1
orr w10, w9, w10
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldur w8, [x29, #-8]
; implicit-def: $x11
mov x11, x8
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-8]
ldur w10, [x29, #-12]
orr 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, #-8]
; implicit-def: $x11
mov x11, x8
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-8]
ldur w10, [x29, #-12]
and 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.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldur w8, [x29, #-8]
; implicit-def: $x11
mov x11, x8
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-8]
ldur w10, [x29, #-12]
bic 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.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-16]
ldur w10, [x29, #-8]
eor w10, w9, w10
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-8]
ldur w10, [x29, #-20]
ldur w11, [x29, #-24]
lsl w10, w10, w11
orr w10, w9, w10
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-8]
ldur w10, [x29, #-20]
ldur w11, [x29, #-28]
lsl w10, w10, w11
bic w10, w9, w10
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@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 "Turning off the rightmost one bit of %d yields %d\n"
l_.str.1: ; @.str.1
.asciz "Turning off the rightmost zero bit of %d yields %d\n"
l_.str.2: ; @.str.2
.asciz "Turning off trailing ones of %d yields %d\n"
l_.str.3: ; @.str.3
.asciz "Turning on trailing zeros of %d yields %d\n"
l_.str.4: ; @.str.4
.asciz "Union of bit patterns of %d and %d yields %d\n"
l_.str.5: ; @.str.5
.asciz "Intersection of bit patterns of %d and %d yields %d\n"
l_.str.6: ; @.str.6
.asciz "Subtracting bit pattern of %d from %d yields %d\n"
l_.str.7: ; @.str.7
.asciz "Inverse of bit pattern of %d yields %d\n"
l_.str.8: ; @.str.8
.asciz "Setting the 5th bit of %d yields %d\n"
l_.str.9: ; @.str.9
.asciz "Clearing the 8th bit of %d yields %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl $271, -8(%rbp) ## imm = 0x10F
movl $212, -12(%rbp)
movl $-1, -16(%rbp)
movl $1, -20(%rbp)
movl $5, -24(%rbp)
movl $8, -28(%rbp)
movl -8(%rbp), %esi
movl -8(%rbp), %edx
movl -8(%rbp), %eax
subl $1, %eax
andl %eax, %edx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
movl -8(%rbp), %edx
movl -8(%rbp), %eax
addl $1, %eax
orl %eax, %edx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
movl -8(%rbp), %edx
movl -8(%rbp), %eax
addl $1, %eax
andl %eax, %edx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl -12(%rbp), %esi
movl -12(%rbp), %edx
movl -12(%rbp), %eax
subl $1, %eax
orl %eax, %edx
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
movl -12(%rbp), %edx
movl -8(%rbp), %ecx
orl -12(%rbp), %ecx
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
movl -12(%rbp), %edx
movl -8(%rbp), %ecx
andl -12(%rbp), %ecx
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
movl -12(%rbp), %edx
movl -8(%rbp), %ecx
movl -12(%rbp), %eax
xorl $-1, %eax
andl %eax, %ecx
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
movl -16(%rbp), %edx
xorl -8(%rbp), %edx
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
movl -8(%rbp), %edx
movl -20(%rbp), %eax
movl -24(%rbp), %ecx
## kill: def $cl killed $ecx
shll %cl, %eax
orl %eax, %edx
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
movl -8(%rbp), %edx
movl -20(%rbp), %eax
movl -28(%rbp), %ecx
## kill: def $cl killed $ecx
shll %cl, %eax
xorl $-1, %eax
andl %eax, %edx
leaq L_.str.9(%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 "Turning off the rightmost one bit of %d yields %d\n"
L_.str.1: ## @.str.1
.asciz "Turning off the rightmost zero bit of %d yields %d\n"
L_.str.2: ## @.str.2
.asciz "Turning off trailing ones of %d yields %d\n"
L_.str.3: ## @.str.3
.asciz "Turning on trailing zeros of %d yields %d\n"
L_.str.4: ## @.str.4
.asciz "Union of bit patterns of %d and %d yields %d\n"
L_.str.5: ## @.str.5
.asciz "Intersection of bit patterns of %d and %d yields %d\n"
L_.str.6: ## @.str.6
.asciz "Subtracting bit pattern of %d from %d yields %d\n"
L_.str.7: ## @.str.7
.asciz "Inverse of bit pattern of %d yields %d\n"
L_.str.8: ## @.str.8
.asciz "Setting the 5th bit of %d yields %d\n"
L_.str.9: ## @.str.9
.asciz "Clearing the 8th bit of %d yields %d\n"
.subsections_via_symbols
| the_stack_data/81955.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, #256
movk w9, #2, lsl #16
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #32, lsl #12 ; =131072
sub sp, sp, #256
add x8, sp, #16, lsl #12 ; =65536
add x8, x8, #128
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, #104]
str w0, [sp, #100]
str x1, [sp, #88]
str wzr, [sp, #80]
str wzr, [sp, #76]
str wzr, [sp, #72]
add x0, sp, #16, lsl #12 ; =65536
add x0, x0, #128
mov x1, #65536
bl _bzero
fmov s0, #-1.00000000
str s0, [sp, #68]
ldr w8, [sp, #100]
subs w8, w8, #4
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #88]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w8, #1
str w8, [sp, #104]
b LBB0_47
LBB0_2:
ldr w8, [sp, #100]
subs w8, w8, #4
cset w8, le
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #88]
ldr x0, [x8, #32]
bl _atof
fcvt s0, d0
str s0, [sp, #68]
b LBB0_4
LBB0_4:
ldr s0, [sp, #68]
fcmp s0, #0.0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
fmov s0, #-1.00000000
str s0, [sp, #68]
b LBB0_6
LBB0_6:
ldr w8, [sp, #100]
subs w8, w8, #4
cset w8, le
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldr x8, [sp, #88]
ldr x0, [x8, #32]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _strstr
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_8
LBB0_8:
ldr w8, [sp, #100]
subs w8, w8, #5
cset w8, le
tbnz w8, #0, LBB0_11
b LBB0_9
LBB0_9:
ldr x8, [sp, #88]
ldr x0, [x8, #40]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _strstr
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
mov w8, #1
str w8, [sp, #72]
b LBB0_11
LBB0_11:
ldr x8, [sp, #88]
ldr x0, [x8, #8]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fopen
mov x8, x0
str x8, [sp, #56]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
ldr x8, [sp, #88]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov w8, #1
str w8, [sp, #104]
b LBB0_47
LBB0_13:
ldr x8, [sp, #88]
ldr x0, [x8, #16]
bl _atoi
str w0, [sp, #76]
ldr w8, [sp, #76]
subs w8, w8, #1
cset w8, lt
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
ldr w8, [sp, #76]
subs w8, w8, #5
cset w8, le
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15:
ldr w9, [sp, #76]
; 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
mov w8, #1
str w8, [sp, #104]
b LBB0_47
LBB0_16:
ldr x8, [sp, #88]
ldr x11, [x8, #8]
ldr w8, [sp, #76]
; implicit-def: $x10
mov x10, x8
ldr s0, [sp, #68]
fcvt d0, s0
ldr w9, [sp, #72]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str d0, [x9, #16]
str x8, [x9, #24]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB0_17
LBB0_17: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #80]
subs w8, w8, #4, lsl #12 ; =16384
cset w8, ge
mov w9, #0
str w9, [sp, #44] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_17 Depth=1
ldr x2, [sp, #56]
sub x0, x29, #144
mov w1, #120
bl _fgets
subs x8, x0, #0
cset w8, ne
str w8, [sp, #44] ; 4-byte Folded Spill
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_17 Depth=1
ldr w8, [sp, #44] ; 4-byte Folded Reload
tbz w8, #0, LBB0_23
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_17 Depth=1
add x13, sp, #108
add x12, x13, #4
add x11, x13, #8
add x10, x13, #12
add x8, x13, #16
mov x9, sp
str x13, [x9]
str x12, [x9, #8]
str x11, [x9, #16]
str x10, [x9, #24]
str x8, [x9, #32]
sub x0, x29, #144
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _sscanf
ldr w8, [sp, #76]
subs w8, w0, w8
cset w8, lt
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_17 Depth=1
ldr w8, [sp, #76]
subs w9, w8, #1
add x8, sp, #108
ldr s0, [x8, w9, sxtw #2]
ldr s1, [sp, #68]
fmul s0, s0, s1
ldrsw x9, [sp, #80]
mov x8, x9
add w8, w8, #1
str w8, [sp, #80]
add x8, sp, #16, lsl #12 ; =65536
add x8, x8, #128
str s0, [x8, x9, lsl #2]
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_17 Depth=1
b LBB0_17
LBB0_23:
ldr x0, [sp, #56]
bl _fclose
ldr w9, [sp, #80]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
ldr w8, [sp, #80]
subs w8, w8, #4
cset w8, ge
tbnz w8, #0, LBB0_25
b LBB0_24
LBB0_24:
ldr x8, [sp, #88]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
mov w8, #1
str w8, [sp, #104]
b LBB0_47
LBB0_25:
ldr w8, [sp, #72]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_27
b LBB0_26
LBB0_26:
ldr x9, [sp, #48] ; 8-byte Folded Reload
add x8, sp, #16, lsl #12 ; =65536
add x8, x8, #128
ldr s0, [x9]
fcvt d0, s0
fabs d0, d0
ldr w9, [sp, #80]
subs w9, w9, #1
ldr s1, [x8, w9, sxtw #2]
fcvt d1, s1
fabs d1, d1
fcmp d0, d1
cset w8, pl
tbnz w8, #0, LBB0_34
b LBB0_27
LBB0_27:
ldr w8, [sp, #72]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_29
b LBB0_28
LBB0_28:
ldr x9, [sp, #48] ; 8-byte Folded Reload
add x8, sp, #16, lsl #12 ; =65536
add x8, x8, #128
ldr s0, [x9]
fcvt d0, s0
fabs d0, d0
ldr w9, [sp, #80]
subs w9, w9, #1
ldr s1, [x8, w9, sxtw #2]
fcvt d1, s1
fabs d1, d1
fcmp d0, d1
cset w8, mi
tbnz w8, #0, LBB0_34
b LBB0_29
LBB0_29:
add x0, sp, #128
add x1, sp, #16, lsl #12 ; =65536
add x1, x1, #128
mov x2, #65536
bl _memcpy
str wzr, [sp, #84]
b LBB0_30
LBB0_30: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #84]
ldr w9, [sp, #80]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_33
b LBB0_31
LBB0_31: ; in Loop: Header=BB0_30 Depth=1
ldr w8, [sp, #80]
ldr w9, [sp, #84]
subs w8, w8, w9
subs w9, w8, #1
add x8, sp, #128
ldr s0, [x8, w9, sxtw #2]
ldrsw x9, [sp, #84]
add x8, sp, #16, lsl #12 ; =65536
add x8, x8, #128
str s0, [x8, x9, lsl #2]
b LBB0_32
LBB0_32: ; in Loop: Header=BB0_30 Depth=1
ldr w8, [sp, #84]
add w8, w8, #1
str w8, [sp, #84]
b LBB0_30
LBB0_33:
b LBB0_34
LBB0_34:
ldr w8, [sp, #80]
subs w8, w8, #200
cset w8, ge
tbnz w8, #0, LBB0_36
b LBB0_35
LBB0_35:
mov w8, #200
str w8, [sp, #80]
b LBB0_36
LBB0_36:
ldr x8, [sp, #88]
ldr x0, [x8, #24]
adrp x1, l_.str.9@PAGE
add x1, x1, l_.str.9@PAGEOFF
bl _strstr
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_40
b LBB0_37
LBB0_37:
ldr w1, [sp, #80]
ldr x8, [sp, #88]
ldr x2, [x8, #24]
add x0, sp, #16, lsl #12 ; =65536
add x0, x0, #128
bl _write_spectrum
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_39
b LBB0_38
LBB0_38:
mov w8, #1
str w8, [sp, #104]
b LBB0_47
LBB0_39:
b LBB0_46
LBB0_40:
ldr x8, [sp, #88]
ldr x0, [x8, #24]
adrp x1, l_.str.10@PAGE
add x1, x1, l_.str.10@PAGEOFF
bl _strstr
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_44
b LBB0_41
LBB0_41:
ldr x8, [sp, #88]
ldr x0, [x8, #24]
adrp x1, l_.str.11@PAGE
add x1, x1, l_.str.11@PAGEOFF
bl _fopen
mov x8, x0
str x8, [sp, #56]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_43
b LBB0_42
LBB0_42:
ldr x8, [sp, #88]
ldr x8, [x8, #24]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
mov w8, #1
str w8, [sp, #104]
b LBB0_47
LBB0_43:
ldrsw x2, [sp, #80]
ldr x3, [sp, #56]
add x0, sp, #16, lsl #12 ; =65536
add x0, x0, #128
mov x1, #4
bl _fwrite
ldr x0, [sp, #56]
bl _fclose
b LBB0_45
LBB0_44:
ldr x8, [sp, #88]
ldr x8, [x8, #24]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
mov w8, #1
str w8, [sp, #104]
b LBB0_47
LBB0_45:
b LBB0_46
LBB0_46:
ldr w8, [sp, #80]
; implicit-def: $x10
mov x10, x8
ldr x8, [sp, #88]
ldr x8, [x8, #24]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
str wzr, [sp, #104]
b LBB0_47
LBB0_47:
ldr w8, [sp, #104]
str w8, [sp, #40] ; 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_49
b LBB0_48
LBB0_48:
bl ___stack_chk_fail
LBB0_49:
ldr w0, [sp, #40] ; 4-byte Folded Reload
add sp, sp, #32, lsl #12 ; =131072
add sp, sp, #256
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function write_spectrum
_write_spectrum: ; @write_spectrum
.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]
stur x0, [x29, #-56]
stur w1, [x29, #-60]
str x2, [sp, #56]
mov w8, #24
stur w8, [x29, #-12]
stur w8, [x29, #-40]
sturb wzr, [x29, #-35]
sturb wzr, [x29, #-36]
mov w8, #1
stur w8, [x29, #-16]
stur w8, [x29, #-20]
stur w8, [x29, #-24]
ldr x0, [sp, #56]
adrp x1, l_.str.11@PAGE
add x1, x1, l_.str.11@PAGEOFF
bl _fopen
str x0, [sp, #48]
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldr x8, [sp, #56]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.15@PAGE
add x1, x1, l_.str.15@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-44]
b LBB1_3
LBB1_2:
ldur w8, [x29, #-60]
sub x0, x29, #40
stur w8, [x29, #-28]
ldr x8, [sp, #56]
ldr x8, [x8]
stur x8, [x0, #4]
ldursw x9, [x29, #-28]
mov x8, #4
str x8, [sp, #16] ; 8-byte Folded Spill
mul x8, x8, x9
add x9, sp, #44
str x9, [sp, #32] ; 8-byte Folded Spill
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #44]
ldr x3, [sp, #48]
mov x1, #32
mov x2, #1
str x2, [sp, #24] ; 8-byte Folded Spill
bl _fwrite
ldr x1, [sp, #16] ; 8-byte Folded Reload
ldr x2, [sp, #24] ; 8-byte Folded Reload
ldr x0, [sp, #32] ; 8-byte Folded Reload
ldr x3, [sp, #48]
bl _fwrite
ldr x1, [sp, #16] ; 8-byte Folded Reload
ldur x0, [x29, #-56]
ldursw x2, [x29, #-60]
ldr x3, [sp, #48]
bl _fwrite
ldr x1, [sp, #16] ; 8-byte Folded Reload
ldr x2, [sp, #24] ; 8-byte Folded Reload
ldr x0, [sp, #32] ; 8-byte Folded Reload
ldr x3, [sp, #48]
bl _fwrite
ldr x0, [sp, #48]
bl _fclose
stur wzr, [x29, #-44]
b LBB1_3
LBB1_3:
ldur w8, [x29, #-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_5
b LBB1_4
LBB1_4:
bl ___stack_chk_fail
LBB1_5:
ldr w0, [sp, #12] ; 4-byte Folded Reload
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 "Usage: %s <csv_file_name> <column_number> <output_file_name> [<optional_factor>] [-r]\n Use .spe or .dat as the output file name extension\n Column number starts at 1\n Default factor value is -1, for p-type detectors in mjd_fieldgen\n -r: Reverse ordering of spectrum for use with mjd_fieldgen\n"
l_.str.1: ; @.str.1
.asciz "-r"
l_.str.2: ; @.str.2
.asciz "r"
l_.str.3: ; @.str.3
.asciz "Error: Cannot open input file %s\n"
l_.str.4: ; @.str.4
.asciz "Error: Invalid column number %d\n"
l_.str.5: ; @.str.5
.asciz "\nReading file %s, column %d, factor %f, reverse = %d\n"
l_.str.6: ; @.str.6
.asciz "%f,%f,%f,%f,%f"
l_.str.7: ; @.str.7
.asciz "%i channels read\n"
l_.str.8: ; @.str.8
.asciz "Cannot read input file %s\n"
l_.str.9: ; @.str.9
.asciz ".spe"
l_.str.10: ; @.str.10
.asciz ".dat"
l_.str.11: ; @.str.11
.asciz "w"
l_.str.12: ; @.str.12
.asciz "Error: Cannot open ioutput file %s!\n"
l_.str.13: ; @.str.13
.asciz "Error: Invalid file name extension in %s!\n"
l_.str.14: ; @.str.14
.asciz "\n Success. Wrote %d chs to %s\n\n"
l_.str.15: ; @.str.15
.asciz "Error! Unable to open spectrum file %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 0xbf800000 ## float -1
.section __TEXT,__literal16,16byte_literals
.p2align 4
LCPI0_1:
.quad 0x7fffffffffffffff ## double NaN
.quad 0x7fffffffffffffff ## double NaN
.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
movl $131296, %eax ## imm = 0x200E0
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -131236(%rbp)
movl %edi, -131240(%rbp)
movq %rsi, -131248(%rbp)
movl $0, -131256(%rbp)
movl $0, -131260(%rbp)
movl $0, -131264(%rbp)
leaq -65664(%rbp), %rdi
xorl %esi, %esi
movl $65536, %edx ## imm = 0x10000
callq _memset
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -131268(%rbp)
cmpl $4, -131240(%rbp)
jge LBB0_2
## %bb.1:
movq -131248(%rbp), %rax
movq (%rax), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -131236(%rbp)
jmp LBB0_47
LBB0_2:
cmpl $4, -131240(%rbp)
jle LBB0_4
## %bb.3:
movq -131248(%rbp), %rax
movq 32(%rax), %rdi
callq _atof
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -131268(%rbp)
LBB0_4:
movss -131268(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne LBB0_6
jp LBB0_6
## %bb.5:
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -131268(%rbp)
LBB0_6:
cmpl $4, -131240(%rbp)
jle LBB0_8
## %bb.7:
movq -131248(%rbp), %rax
movq 32(%rax), %rdi
leaq L_.str.1(%rip), %rsi
callq _strstr
cmpq $0, %rax
jne LBB0_10
LBB0_8:
cmpl $5, -131240(%rbp)
jle LBB0_11
## %bb.9:
movq -131248(%rbp), %rax
movq 40(%rax), %rdi
leaq L_.str.1(%rip), %rsi
callq _strstr
cmpq $0, %rax
je LBB0_11
LBB0_10:
movl $1, -131264(%rbp)
LBB0_11:
movq -131248(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str.2(%rip), %rsi
callq _fopen
movq %rax, -131280(%rbp)
cmpq $0, %rax
jne LBB0_13
## %bb.12:
movq -131248(%rbp), %rax
movq 8(%rax), %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -131236(%rbp)
jmp LBB0_47
LBB0_13:
movq -131248(%rbp), %rax
movq 16(%rax), %rdi
callq _atoi
movl %eax, -131260(%rbp)
cmpl $1, -131260(%rbp)
jl LBB0_15
## %bb.14:
cmpl $5, -131260(%rbp)
jle LBB0_16
LBB0_15:
movl -131260(%rbp), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -131236(%rbp)
jmp LBB0_47
LBB0_16:
movq -131248(%rbp), %rax
movq 8(%rax), %rsi
movl -131260(%rbp), %edx
movss -131268(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movl -131264(%rbp), %ecx
leaq L_.str.5(%rip), %rdi
movb $1, %al
callq _printf
LBB0_17: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $16384, -131256(%rbp) ## imm = 0x4000
movb %al, -131281(%rbp) ## 1-byte Spill
jge LBB0_19
## %bb.18: ## in Loop: Header=BB0_17 Depth=1
leaq -128(%rbp), %rdi
movq -131280(%rbp), %rdx
movl $120, %esi
callq _fgets
cmpq $0, %rax
setne %al
movb %al, -131281(%rbp) ## 1-byte Spill
LBB0_19: ## in Loop: Header=BB0_17 Depth=1
movb -131281(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_20
jmp LBB0_23
LBB0_20: ## in Loop: Header=BB0_17 Depth=1
leaq -128(%rbp), %rdi
leaq -131232(%rbp), %rdx
leaq -131232(%rbp), %rcx
addq $4, %rcx
leaq -131232(%rbp), %r8
addq $8, %r8
leaq -131232(%rbp), %r9
addq $12, %r9
leaq -131232(%rbp), %rax
addq $16, %rax
leaq L_.str.6(%rip), %rsi
movq %rax, (%rsp)
movb $0, %al
callq _sscanf
cmpl -131260(%rbp), %eax
jl LBB0_22
## %bb.21: ## in Loop: Header=BB0_17 Depth=1
movl -131260(%rbp), %eax
subl $1, %eax
cltq
movss -131232(%rbp,%rax,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
mulss -131268(%rbp), %xmm0
movl -131256(%rbp), %eax
movl %eax, %ecx
addl $1, %ecx
movl %ecx, -131256(%rbp)
cltq
movss %xmm0, -65664(%rbp,%rax,4)
LBB0_22: ## in Loop: Header=BB0_17 Depth=1
jmp LBB0_17
LBB0_23:
movq -131280(%rbp), %rdi
callq _fclose
movl -131256(%rbp), %esi
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
cmpl $4, -131256(%rbp)
jge LBB0_25
## %bb.24:
movq -131248(%rbp), %rax
movq 8(%rax), %rsi
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -131236(%rbp)
jmp LBB0_47
LBB0_25:
cmpl $0, -131264(%rbp)
jne LBB0_27
## %bb.26:
movss -65664(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm1
movaps LCPI0_1(%rip), %xmm0 ## xmm0 = [NaN,NaN]
pand %xmm0, %xmm1
movl -131256(%rbp), %eax
subl $1, %eax
cltq
movss -65664(%rbp,%rax,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movaps LCPI0_1(%rip), %xmm2 ## xmm2 = [NaN,NaN]
pand %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe LBB0_34
LBB0_27:
cmpl $0, -131264(%rbp)
je LBB0_29
## %bb.28:
movss -65664(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm1
movaps LCPI0_1(%rip), %xmm0 ## xmm0 = [NaN,NaN]
pand %xmm0, %xmm1
movl -131256(%rbp), %eax
subl $1, %eax
cltq
movss -65664(%rbp,%rax,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movaps LCPI0_1(%rip), %xmm2 ## xmm2 = [NaN,NaN]
pand %xmm2, %xmm0
ucomisd %xmm1, %xmm0
ja LBB0_34
LBB0_29:
leaq -131200(%rbp), %rdi
leaq -65664(%rbp), %rsi
movl $65536, %edx ## imm = 0x10000
callq _memcpy
movl $0, -131252(%rbp)
LBB0_30: ## =>This Inner Loop Header: Depth=1
movl -131252(%rbp), %eax
cmpl -131256(%rbp), %eax
jge LBB0_33
## %bb.31: ## in Loop: Header=BB0_30 Depth=1
movl -131256(%rbp), %eax
subl -131252(%rbp), %eax
subl $1, %eax
cltq
movss -131200(%rbp,%rax,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movslq -131252(%rbp), %rax
movss %xmm0, -65664(%rbp,%rax,4)
## %bb.32: ## in Loop: Header=BB0_30 Depth=1
movl -131252(%rbp), %eax
addl $1, %eax
movl %eax, -131252(%rbp)
jmp LBB0_30
LBB0_33:
jmp LBB0_34
LBB0_34:
cmpl $200, -131256(%rbp)
jge LBB0_36
## %bb.35:
movl $200, -131256(%rbp)
LBB0_36:
movq -131248(%rbp), %rax
movq 24(%rax), %rdi
leaq L_.str.9(%rip), %rsi
callq _strstr
cmpq $0, %rax
je LBB0_40
## %bb.37:
leaq -65664(%rbp), %rdi
movl -131256(%rbp), %esi
movq -131248(%rbp), %rax
movq 24(%rax), %rdx
callq _write_spectrum
cmpl $0, %eax
je LBB0_39
## %bb.38:
movl $1, -131236(%rbp)
jmp LBB0_47
LBB0_39:
jmp LBB0_46
LBB0_40:
movq -131248(%rbp), %rax
movq 24(%rax), %rdi
leaq L_.str.10(%rip), %rsi
callq _strstr
cmpq $0, %rax
je LBB0_44
## %bb.41:
movq -131248(%rbp), %rax
movq 24(%rax), %rdi
leaq L_.str.11(%rip), %rsi
callq _fopen
movq %rax, -131280(%rbp)
cmpq $0, %rax
jne LBB0_43
## %bb.42:
movq -131248(%rbp), %rax
movq 24(%rax), %rsi
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -131236(%rbp)
jmp LBB0_47
LBB0_43:
leaq -65664(%rbp), %rdi
movslq -131256(%rbp), %rdx
movq -131280(%rbp), %rcx
movl $4, %esi
callq _fwrite
movq -131280(%rbp), %rdi
callq _fclose
jmp LBB0_45
LBB0_44:
movq -131248(%rbp), %rax
movq 24(%rax), %rsi
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -131236(%rbp)
jmp LBB0_47
LBB0_45:
jmp LBB0_46
LBB0_46:
movl -131256(%rbp), %esi
movq -131248(%rbp), %rax
movq 24(%rax), %rdx
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -131236(%rbp)
LBB0_47:
movl -131236(%rbp), %eax
movl %eax, -131288(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_49
## %bb.48:
movl -131288(%rbp), %eax ## 4-byte Reload
addq $131296, %rsp ## imm = 0x200E0
popq %rbp
retq
LBB0_49:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function write_spectrum
_write_spectrum: ## @write_spectrum
.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)
movq %rdi, -56(%rbp)
movl %esi, -60(%rbp)
movq %rdx, -72(%rbp)
movl $24, -12(%rbp)
movl $24, -40(%rbp)
movb $0, -35(%rbp)
movb $0, -36(%rbp)
movl $1, -16(%rbp)
movl $1, -20(%rbp)
movl $1, -24(%rbp)
movq -72(%rbp), %rdi
leaq L_.str.11(%rip), %rsi
callq _fopen
movq %rax, -80(%rbp)
cmpq $0, -80(%rbp)
jne LBB1_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -72(%rbp), %rdx
leaq L_.str.15(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -44(%rbp)
jmp LBB1_3
LBB1_2:
movl -60(%rbp), %eax
movl %eax, -28(%rbp)
movq -72(%rbp), %rax
movq (%rax), %rax
movq %rax, -36(%rbp)
movslq -28(%rbp), %rax
shlq $2, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -84(%rbp)
leaq -40(%rbp), %rdi
movq -80(%rbp), %rcx
movl $32, %esi
movl $1, %edx
callq _fwrite
leaq -84(%rbp), %rdi
movq -80(%rbp), %rcx
movl $4, %esi
movl $1, %edx
callq _fwrite
movq -56(%rbp), %rdi
movslq -60(%rbp), %rdx
movq -80(%rbp), %rcx
movl $4, %esi
callq _fwrite
leaq -84(%rbp), %rdi
movq -80(%rbp), %rcx
movl $4, %esi
movl $1, %edx
callq _fwrite
movq -80(%rbp), %rdi
callq _fclose
movl $0, -44(%rbp)
LBB1_3:
movl -44(%rbp), %eax
movl %eax, -88(%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 -88(%rbp), %eax ## 4-byte Reload
addq $96, %rsp
popq %rbp
retq
LBB1_5:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage: %s <csv_file_name> <column_number> <output_file_name> [<optional_factor>] [-r]\n Use .spe or .dat as the output file name extension\n Column number starts at 1\n Default factor value is -1, for p-type detectors in mjd_fieldgen\n -r: Reverse ordering of spectrum for use with mjd_fieldgen\n"
L_.str.1: ## @.str.1
.asciz "-r"
L_.str.2: ## @.str.2
.asciz "r"
L_.str.3: ## @.str.3
.asciz "Error: Cannot open input file %s\n"
L_.str.4: ## @.str.4
.asciz "Error: Invalid column number %d\n"
L_.str.5: ## @.str.5
.asciz "\nReading file %s, column %d, factor %f, reverse = %d\n"
L_.str.6: ## @.str.6
.asciz "%f,%f,%f,%f,%f"
L_.str.7: ## @.str.7
.asciz "%i channels read\n"
L_.str.8: ## @.str.8
.asciz "Cannot read input file %s\n"
L_.str.9: ## @.str.9
.asciz ".spe"
L_.str.10: ## @.str.10
.asciz ".dat"
L_.str.11: ## @.str.11
.asciz "w"
L_.str.12: ## @.str.12
.asciz "Error: Cannot open ioutput file %s!\n"
L_.str.13: ## @.str.13
.asciz "Error: Invalid file name extension in %s!\n"
L_.str.14: ## @.str.14
.asciz "\n Success. Wrote %d chs to %s\n\n"
L_.str.15: ## @.str.15
.asciz "Error! Unable to open spectrum file %s \n"
.subsections_via_symbols
| the_stack_data/89199605.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]
add x0, sp, #16
mov x3, #0
mov x1, x3
adrp x2, _start@GOTPAGE
ldr x2, [x2, _start@GOTPAGEOFF]
bl _pthread_create
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #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__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #29
adrp x3, l_.str.1@PAGE
add x3, x3, l_.str.1@PAGEOFF
bl ___assert_rtn
LBB0_2:
b LBB0_3
LBB0_3:
ldr x0, [sp, #16]
mov x1, #0
bl _pthread_join
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___func__.main: ; @__func__.main
.asciz "main"
l_.str: ; @.str
.asciz "399727.c"
l_.str.1: ; @.str.1
.asciz "i == 0"
.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)
leaq -16(%rbp), %rdi
xorl %eax, %eax
movl %eax, %ecx
movq _start@GOTPCREL(%rip), %rdx
movq %rcx, %rsi
callq _pthread_create
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_2
## %bb.1:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rcx
movl $29, %edx
callq ___assert_rtn
LBB0_2:
jmp LBB0_3
LBB0_3:
movq -16(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_join
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L___func__.main: ## @__func__.main
.asciz "main"
L_.str: ## @.str
.asciz "399727.c"
L_.str.1: ## @.str.1
.asciz "i == 0"
.subsections_via_symbols
| the_stack_data/399727.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 x8, x29, #16
stur x8, [x29, #-64] ; 8-byte Folded Spill
stur wzr, [x29, #-16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur x8, [x29, #-64] ; 8-byte Folded Reload
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@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, #-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 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 x9, [x29, #-48] ; 8-byte Folded Reload
ldur w8, [x29, #-36]
ldur w10, [x29, #-36]
ldur w11, [x29, #-36]
mul w10, w10, w11
add w8, w8, w10
ldursw x10, [x29, #-36]
str w8, [x9, x10, lsl #2]
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]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-40]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_11
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-40]
add w8, w8, #1
subs w8, w8, #9
cset w8, gt
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldur x8, [x29, #-48] ; 8-byte Folded Reload
ldur w9, [x29, #-40]
add w11, w9, #1
ldursw x9, [x29, #-40]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
sub sp, sp, #16
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
add sp, sp, #16
b LBB0_9
LBB0_8: ; in Loop: Header=BB0_5 Depth=1
ldur x8, [x29, #-48] ; 8-byte Folded Reload
ldur w9, [x29, #-40]
add w11, w9, #1
ldursw x9, [x29, #-40]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
sub sp, sp, #16
mov x9, sp
; implicit-def: $x10
mov x10, x11
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
add sp, sp, #16
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_5 Depth=1
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-40]
add w8, w8, #1
stur w8, [x29, #-40]
b LBB0_5
LBB0_11:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
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_13
b LBB0_12
LBB0_12:
bl ___stack_chk_fail
LBB0_13:
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 "\n\n\t\tWie gross soll das Array werden?\n\n\t\t--> "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "\n\t\tZahl Nr. 0%d: %d"
l_.str.3: ; @.str.3
.asciz "\n\t\tZahl Nr. %d: %d"
l_.str.4: ; @.str.4
.asciz "\n\n\t\tFertig!\n\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -12(%rbp)
movl $0, -16(%rbp)
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movb %al, -57(%rbp) ## 1-byte Spill
callq _printf
## kill: def $ecx killed $eax
movb -57(%rbp), %al ## 1-byte Reload
leaq L_.str.1(%rip), %rdi
leaq -16(%rbp), %rsi
callq _scanf
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)
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 -48(%rbp), %rax ## 8-byte Reload
movl -36(%rbp), %edx
movl -36(%rbp), %ecx
imull -36(%rbp), %ecx
addl %ecx, %edx
movslq -36(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %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)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movl -40(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB0_11
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl -40(%rbp), %eax
addl $1, %eax
cmpl $9, %eax
jg LBB0_8
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movq -48(%rbp), %rax ## 8-byte Reload
movl -40(%rbp), %esi
addl $1, %esi
movslq -40(%rbp), %rcx
movl (%rax,%rcx,4), %edx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_9
LBB0_8: ## in Loop: Header=BB0_5 Depth=1
movq -48(%rbp), %rax ## 8-byte Reload
movl -40(%rbp), %esi
addl $1, %esi
movslq -40(%rbp), %rcx
movl (%rax,%rcx,4), %edx
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
LBB0_9: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_10
LBB0_10: ## in Loop: Header=BB0_5 Depth=1
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_5
LBB0_11:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -12(%rbp)
movq -24(%rbp), %rax
movq %rax, %rsp
movl -12(%rbp), %eax
movl %eax, -64(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_13
## %bb.12:
movl -64(%rbp), %eax ## 4-byte Reload
movq %rbp, %rsp
popq %rbp
retq
LBB0_13:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\n\n\t\tWie gross soll das Array werden?\n\n\t\t--> "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "\n\t\tZahl Nr. 0%d: %d"
L_.str.3: ## @.str.3
.asciz "\n\t\tZahl Nr. %d: %d"
L_.str.4: ## @.str.4
.asciz "\n\n\t\tFertig!\n\n"
.subsections_via_symbols
| the_stack_data/443831.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _scilab_rt_plot3d_d2d2d2d0d0s0d2d2_ ; -- Begin function scilab_rt_plot3d_d2d2d2d0d0s0d2d2_
.p2align 2
_scilab_rt_plot3d_d2d2d2d0d0s0d2d2_: ; @scilab_rt_plot3d_d2d2d2d0d0s0d2d2_
.cfi_startproc
; %bb.0:
sub sp, sp, #224
.cfi_def_cfa_offset 224
stp x29, x30, [sp, #208] ; 16-byte Folded Spill
add x29, sp, #208
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
ldr x15, [x29, #16]
ldr x14, [x29, #24]
ldr w13, [x29, #32]
ldr w12, [x29, #36]
ldr x11, [x29, #40]
ldr w10, [x29, #48]
ldr w9, [x29, #52]
ldr x8, [x29, #56]
stur w0, [x29, #-4]
stur w1, [x29, #-8]
stur x2, [x29, #-16]
stur w3, [x29, #-20]
stur w4, [x29, #-24]
stur x5, [x29, #-32]
stur w6, [x29, #-36]
stur w7, [x29, #-40]
stur x15, [x29, #-48]
stur d0, [x29, #-56]
stur d1, [x29, #-64]
stur x14, [x29, #-72]
stur w13, [x29, #-76]
stur w12, [x29, #-80]
stur x11, [x29, #-88]
stur w10, [x29, #-92]
stur w9, [x29, #-96]
str x8, [sp, #104]
ldur w8, [x29, #-8]
; kill: def $x8 killed $w8
str x8, [sp, #16] ; 8-byte Folded Spill
ldur w8, [x29, #-24]
; kill: def $x8 killed $w8
str x8, [sp, #24] ; 8-byte Folded Spill
ldur w8, [x29, #-40]
; kill: def $x8 killed $w8
str x8, [sp, #32] ; 8-byte Folded Spill
ldur w8, [x29, #-80]
; kill: def $x8 killed $w8
str x8, [sp, #40] ; 8-byte Folded Spill
ldur w8, [x29, #-96]
; kill: def $x8 killed $w8
str x8, [sp, #48] ; 8-byte Folded Spill
movi d0, #0000000000000000
str d0, [sp, #88]
str d0, [sp, #80]
str d0, [sp, #72]
str d0, [sp, #64]
str d0, [sp, #56]
str wzr, [sp, #100]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr w8, [sp, #100]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #96]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #96]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr x10, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
ldrsw x9, [sp, #100]
mul x9, x9, x10
add x8, x8, x9, lsl #3
ldrsw x9, [sp, #96]
ldr d1, [x8, x9, lsl #3]
ldr d0, [sp, #88]
fadd d0, d0, d1
str d0, [sp, #88]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #96]
add w8, w8, #1
str w8, [sp, #96]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #100]
add w8, w8, #1
str w8, [sp, #100]
b LBB0_1
LBB0_8:
ldr d0, [sp, #88]
mov x8, sp
str d0, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
str wzr, [sp, #100]
b LBB0_9
LBB0_9: ; =>This Loop Header: Depth=1
; Child Loop BB0_11 Depth 2
ldr w8, [sp, #100]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_16
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=1
str wzr, [sp, #96]
b LBB0_11
LBB0_11: ; Parent Loop BB0_9 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #96]
ldur w9, [x29, #-24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_14
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=2
ldr x10, [sp, #24] ; 8-byte Folded Reload
ldur x8, [x29, #-32]
ldrsw x9, [sp, #100]
mul x9, x9, x10
add x8, x8, x9, lsl #3
ldrsw x9, [sp, #96]
ldr d1, [x8, x9, lsl #3]
ldr d0, [sp, #80]
fadd d0, d0, d1
str d0, [sp, #80]
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_11 Depth=2
ldr w8, [sp, #96]
add w8, w8, #1
str w8, [sp, #96]
b LBB0_11
LBB0_14: ; in Loop: Header=BB0_9 Depth=1
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_9 Depth=1
ldr w8, [sp, #100]
add w8, w8, #1
str w8, [sp, #100]
b LBB0_9
LBB0_16:
ldr d0, [sp, #80]
mov x8, sp
str d0, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
str wzr, [sp, #100]
b LBB0_17
LBB0_17: ; =>This Loop Header: Depth=1
; Child Loop BB0_19 Depth 2
ldr w8, [sp, #100]
ldur w9, [x29, #-36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_24
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_17 Depth=1
str wzr, [sp, #96]
b LBB0_19
LBB0_19: ; Parent Loop BB0_17 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #96]
ldur w9, [x29, #-40]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_22
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_19 Depth=2
ldr x10, [sp, #32] ; 8-byte Folded Reload
ldur x8, [x29, #-48]
ldrsw x9, [sp, #100]
mul x9, x9, x10
add x8, x8, x9, lsl #3
ldrsw x9, [sp, #96]
ldr d1, [x8, x9, lsl #3]
ldr d0, [sp, #72]
fadd d0, d0, d1
str d0, [sp, #72]
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_19 Depth=2
ldr w8, [sp, #96]
add w8, w8, #1
str w8, [sp, #96]
b LBB0_19
LBB0_22: ; in Loop: Header=BB0_17 Depth=1
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_17 Depth=1
ldr w8, [sp, #100]
add w8, w8, #1
str w8, [sp, #100]
b LBB0_17
LBB0_24:
ldr d0, [sp, #72]
mov x8, sp
str d0, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
str x0, [sp, #8] ; 8-byte Folded Spill
bl _printf
ldr x0, [sp, #8] ; 8-byte Folded Reload
ldur d0, [x29, #-56]
mov x8, sp
str d0, [x8]
bl _printf
ldr x0, [sp, #8] ; 8-byte Folded Reload
ldur d0, [x29, #-64]
mov x8, sp
str d0, [x8]
bl _printf
ldur x8, [x29, #-72]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
str wzr, [sp, #100]
b LBB0_25
LBB0_25: ; =>This Loop Header: Depth=1
; Child Loop BB0_27 Depth 2
ldr w8, [sp, #100]
ldur w9, [x29, #-76]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_32
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_25 Depth=1
str wzr, [sp, #96]
b LBB0_27
LBB0_27: ; Parent Loop BB0_25 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #96]
ldur w9, [x29, #-80]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_30
b LBB0_28
LBB0_28: ; in Loop: Header=BB0_27 Depth=2
ldr x10, [sp, #40] ; 8-byte Folded Reload
ldur x8, [x29, #-88]
ldrsw x9, [sp, #100]
mul x9, x9, x10
add x8, x8, x9, lsl #3
ldrsw x9, [sp, #96]
ldr d1, [x8, x9, lsl #3]
ldr d0, [sp, #64]
fadd d0, d0, d1
str d0, [sp, #64]
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_27 Depth=2
ldr w8, [sp, #96]
add w8, w8, #1
str w8, [sp, #96]
b LBB0_27
LBB0_30: ; in Loop: Header=BB0_25 Depth=1
b LBB0_31
LBB0_31: ; in Loop: Header=BB0_25 Depth=1
ldr w8, [sp, #100]
add w8, w8, #1
str w8, [sp, #100]
b LBB0_25
LBB0_32:
ldr d0, [sp, #64]
mov x8, sp
str d0, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
str wzr, [sp, #100]
b LBB0_33
LBB0_33: ; =>This Loop Header: Depth=1
; Child Loop BB0_35 Depth 2
ldr w8, [sp, #100]
ldur w9, [x29, #-92]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_40
b LBB0_34
LBB0_34: ; in Loop: Header=BB0_33 Depth=1
str wzr, [sp, #96]
b LBB0_35
LBB0_35: ; Parent Loop BB0_33 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #96]
ldur w9, [x29, #-96]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_38
b LBB0_36
LBB0_36: ; in Loop: Header=BB0_35 Depth=2
ldr x10, [sp, #48] ; 8-byte Folded Reload
ldr x8, [sp, #104]
ldrsw x9, [sp, #100]
mul x9, x9, x10
add x8, x8, x9, lsl #3
ldrsw x9, [sp, #96]
ldr d1, [x8, x9, lsl #3]
ldr d0, [sp, #56]
fadd d0, d0, d1
str d0, [sp, #56]
b LBB0_37
LBB0_37: ; in Loop: Header=BB0_35 Depth=2
ldr w8, [sp, #96]
add w8, w8, #1
str w8, [sp, #96]
b LBB0_35
LBB0_38: ; in Loop: Header=BB0_33 Depth=1
b LBB0_39
LBB0_39: ; in Loop: Header=BB0_33 Depth=1
ldr w8, [sp, #100]
add w8, w8, #1
str w8, [sp, #100]
b LBB0_33
LBB0_40:
ldr d0, [sp, #56]
mov x8, sp
str d0, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldp x29, x30, [sp, #208] ; 16-byte Folded Reload
add sp, sp, #224
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%f"
l_.str.1: ; @.str.1
.asciz "%s"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _scilab_rt_plot3d_d2d2d2d0d0s0d2d2_ ## -- Begin function scilab_rt_plot3d_d2d2d2d0d0s0d2d2_
.p2align 4, 0x90
_scilab_rt_plot3d_d2d2d2d0d0s0d2d2_: ## @scilab_rt_plot3d_d2d2d2d0d0s0d2d2_
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $144, %rsp
movq 88(%rbp), %rax
movl 80(%rbp), %eax
movl 72(%rbp), %eax
movq 64(%rbp), %rax
movl 56(%rbp), %eax
movl 48(%rbp), %eax
movq 40(%rbp), %rax
movq 32(%rbp), %rax
movl 24(%rbp), %eax
movl 16(%rbp), %eax
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movq %rdx, -16(%rbp)
movl %ecx, -20(%rbp)
movl %r8d, -24(%rbp)
movq %r9, -32(%rbp)
movsd %xmm0, -40(%rbp)
movsd %xmm1, -48(%rbp)
movl -8(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -136(%rbp) ## 8-byte Spill
movl -24(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -128(%rbp) ## 8-byte Spill
movl 24(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -120(%rbp) ## 8-byte Spill
movl 56(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -112(%rbp) ## 8-byte Spill
movl 80(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -104(%rbp) ## 8-byte Spill
xorps %xmm0, %xmm0
movsd %xmm0, -64(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -72(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -80(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -88(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -96(%rbp)
movl $0, -52(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movl -52(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -56(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -56(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movq -136(%rbp), %rdx ## 8-byte Reload
movq -16(%rbp), %rax
movslq -52(%rbp), %rcx
imulq %rdx, %rcx
shlq $3, %rcx
addq %rcx, %rax
movslq -56(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
addsd -64(%rbp), %xmm0
movsd %xmm0, -64(%rbp)
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -56(%rbp), %eax
addl $1, %eax
movl %eax, -56(%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 -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB0_1
LBB0_8:
movsd -64(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str(%rip), %rdi
movb $1, %al
callq _printf
movl $0, -52(%rbp)
LBB0_9: ## =>This Loop Header: Depth=1
## Child Loop BB0_11 Depth 2
movl -52(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB0_16
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movl $0, -56(%rbp)
LBB0_11: ## Parent Loop BB0_9 Depth=1
## => This Inner Loop Header: Depth=2
movl -56(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB0_14
## %bb.12: ## in Loop: Header=BB0_11 Depth=2
movq -128(%rbp), %rdx ## 8-byte Reload
movq -32(%rbp), %rax
movslq -52(%rbp), %rcx
imulq %rdx, %rcx
shlq $3, %rcx
addq %rcx, %rax
movslq -56(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
addsd -72(%rbp), %xmm0
movsd %xmm0, -72(%rbp)
## %bb.13: ## in Loop: Header=BB0_11 Depth=2
movl -56(%rbp), %eax
addl $1, %eax
movl %eax, -56(%rbp)
jmp LBB0_11
LBB0_14: ## in Loop: Header=BB0_9 Depth=1
jmp LBB0_15
LBB0_15: ## in Loop: Header=BB0_9 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB0_9
LBB0_16:
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str(%rip), %rdi
movb $1, %al
callq _printf
movl $0, -52(%rbp)
LBB0_17: ## =>This Loop Header: Depth=1
## Child Loop BB0_19 Depth 2
movl -52(%rbp), %eax
cmpl 16(%rbp), %eax
jge LBB0_24
## %bb.18: ## in Loop: Header=BB0_17 Depth=1
movl $0, -56(%rbp)
LBB0_19: ## Parent Loop BB0_17 Depth=1
## => This Inner Loop Header: Depth=2
movl -56(%rbp), %eax
cmpl 24(%rbp), %eax
jge LBB0_22
## %bb.20: ## in Loop: Header=BB0_19 Depth=2
movq -120(%rbp), %rdx ## 8-byte Reload
movq 32(%rbp), %rax
movslq -52(%rbp), %rcx
imulq %rdx, %rcx
shlq $3, %rcx
addq %rcx, %rax
movslq -56(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
addsd -80(%rbp), %xmm0
movsd %xmm0, -80(%rbp)
## %bb.21: ## in Loop: Header=BB0_19 Depth=2
movl -56(%rbp), %eax
addl $1, %eax
movl %eax, -56(%rbp)
jmp LBB0_19
LBB0_22: ## in Loop: Header=BB0_17 Depth=1
jmp LBB0_23
LBB0_23: ## in Loop: Header=BB0_17 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB0_17
LBB0_24:
movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str(%rip), %rdi
movb $1, %al
callq _printf
movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str(%rip), %rdi
movb $1, %al
callq _printf
movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str(%rip), %rdi
movb $1, %al
callq _printf
movq 40(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -52(%rbp)
LBB0_25: ## =>This Loop Header: Depth=1
## Child Loop BB0_27 Depth 2
movl -52(%rbp), %eax
cmpl 48(%rbp), %eax
jge LBB0_32
## %bb.26: ## in Loop: Header=BB0_25 Depth=1
movl $0, -56(%rbp)
LBB0_27: ## Parent Loop BB0_25 Depth=1
## => This Inner Loop Header: Depth=2
movl -56(%rbp), %eax
cmpl 56(%rbp), %eax
jge LBB0_30
## %bb.28: ## in Loop: Header=BB0_27 Depth=2
movq -112(%rbp), %rdx ## 8-byte Reload
movq 64(%rbp), %rax
movslq -52(%rbp), %rcx
imulq %rdx, %rcx
shlq $3, %rcx
addq %rcx, %rax
movslq -56(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
addsd -88(%rbp), %xmm0
movsd %xmm0, -88(%rbp)
## %bb.29: ## in Loop: Header=BB0_27 Depth=2
movl -56(%rbp), %eax
addl $1, %eax
movl %eax, -56(%rbp)
jmp LBB0_27
LBB0_30: ## in Loop: Header=BB0_25 Depth=1
jmp LBB0_31
LBB0_31: ## in Loop: Header=BB0_25 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB0_25
LBB0_32:
movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str(%rip), %rdi
movb $1, %al
callq _printf
movl $0, -52(%rbp)
LBB0_33: ## =>This Loop Header: Depth=1
## Child Loop BB0_35 Depth 2
movl -52(%rbp), %eax
cmpl 72(%rbp), %eax
jge LBB0_40
## %bb.34: ## in Loop: Header=BB0_33 Depth=1
movl $0, -56(%rbp)
LBB0_35: ## Parent Loop BB0_33 Depth=1
## => This Inner Loop Header: Depth=2
movl -56(%rbp), %eax
cmpl 80(%rbp), %eax
jge LBB0_38
## %bb.36: ## in Loop: Header=BB0_35 Depth=2
movq -104(%rbp), %rdx ## 8-byte Reload
movq 88(%rbp), %rax
movslq -52(%rbp), %rcx
imulq %rdx, %rcx
shlq $3, %rcx
addq %rcx, %rax
movslq -56(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
addsd -96(%rbp), %xmm0
movsd %xmm0, -96(%rbp)
## %bb.37: ## in Loop: Header=BB0_35 Depth=2
movl -56(%rbp), %eax
addl $1, %eax
movl %eax, -56(%rbp)
jmp LBB0_35
LBB0_38: ## in Loop: Header=BB0_33 Depth=1
jmp LBB0_39
LBB0_39: ## in Loop: Header=BB0_33 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB0_33
LBB0_40:
movsd -96(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str(%rip), %rdi
movb $1, %al
callq _printf
addq $144, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%f"
L_.str.1: ## @.str.1
.asciz "%s"
.subsections_via_symbols
| the_stack_data/187643842.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _calcValue ; -- Begin function calcValue
.p2align 2
_calcValue: ; @calcValue
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
strb w0, [sp, #13]
ldrsb w8, [sp, #13]
subs w8, w8, #67
; kill: def $x8 killed $w8
str x8, [sp] ; 8-byte Folded Spill
subs x8, x8, #21
cset w8, hi
tbnz w8, #0, LBB0_9
; %bb.1:
ldr x11, [sp] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp1:
adr x8, Ltmp1
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_2:
mov w8, #1000
strh w8, [sp, #14]
b LBB0_10
LBB0_3:
mov w8, #500
strh w8, [sp, #14]
b LBB0_10
LBB0_4:
mov w8, #100
strh w8, [sp, #14]
b LBB0_10
LBB0_5:
mov w8, #50
strh w8, [sp, #14]
b LBB0_10
LBB0_6:
mov w8, #10
strh w8, [sp, #14]
b LBB0_10
LBB0_7:
mov w8, #5
strh w8, [sp, #14]
b LBB0_10
LBB0_8:
mov w8, #1
strh w8, [sp, #14]
b LBB0_10
LBB0_9:
strh wzr, [sp, #14]
b LBB0_10
LBB0_10:
ldrh w0, [sp, #14]
add sp, sp, #16
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_4-Ltmp1
.long LBB0_3-Ltmp1
.long LBB0_9-Ltmp1
.long LBB0_9-Ltmp1
.long LBB0_9-Ltmp1
.long LBB0_9-Ltmp1
.long LBB0_8-Ltmp1
.long LBB0_9-Ltmp1
.long LBB0_9-Ltmp1
.long LBB0_5-Ltmp1
.long LBB0_2-Ltmp1
.long LBB0_9-Ltmp1
.long LBB0_9-Ltmp1
.long LBB0_9-Ltmp1
.long LBB0_9-Ltmp1
.long LBB0_9-Ltmp1
.long LBB0_9-Ltmp1
.long LBB0_9-Ltmp1
.long LBB0_9-Ltmp1
.long LBB0_7-Ltmp1
.long LBB0_9-Ltmp1
.long LBB0_6-Ltmp1
; -- End function
.globl _romanToInt2 ; -- Begin function romanToInt2
.p2align 2
_romanToInt2: ; @romanToInt2
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
ldr x8, [sp, #16]
str x8, [sp]
strh wzr, [sp, #14]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldrh w8, [sp, #14]
add w8, w8, #1
strh w8, [sp, #14]
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB1_1
LBB1_3:
ldrh w8, [sp, #14]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4:
stur wzr, [x29, #-4]
b LBB1_14
LBB1_5:
ldrh w8, [sp, #14]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB1_7
b LBB1_6
LBB1_6:
ldr x8, [sp, #16]
ldrsb w0, [x8]
bl _calcValue
and w8, w0, #0xffff
stur w8, [x29, #-4]
b LBB1_14
LBB1_7:
strh wzr, [sp, #12]
ldr x8, [sp, #16]
str x8, [sp]
b LBB1_8
LBB1_8: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_13
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_8 Depth=1
ldr x8, [sp]
ldrsb w0, [x8]
bl _calcValue
strh w0, [sp, #10]
ldr x8, [sp]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_12
b LBB1_10
LBB1_10: ; in Loop: Header=BB1_8 Depth=1
ldr x8, [sp]
ldursb w0, [x8, #-1]
bl _calcValue
strh w0, [sp, #8]
ldrh w8, [sp, #10]
subs w8, w8, w0, uxth
cset w8, le
tbnz w8, #0, LBB1_12
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_8 Depth=1
ldrh w9, [sp, #8]
ldrh w8, [sp, #12]
subs w8, w8, w9
strh w8, [sp, #12]
ldrh w9, [sp, #8]
ldrh w8, [sp, #10]
subs w8, w8, w9
strh w8, [sp, #10]
b LBB1_12
LBB1_12: ; in Loop: Header=BB1_8 Depth=1
ldrh w9, [sp, #10]
ldrh w8, [sp, #12]
add w8, w8, w9
strh w8, [sp, #12]
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB1_8
LBB1_13:
ldrh w8, [sp, #12]
stur w8, [x29, #-4]
b LBB1_14
LBB1_14:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _romanToInt ; -- Begin function romanToInt
.p2align 2
_romanToInt: ; @romanToInt
.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]
str x0, [sp, #32]
strh wzr, [sp, #30]
strh wzr, [sp, #28]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB2_17
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #32]
add x9, x8, #1
str x9, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #67
; kill: def $x8 killed $w8
str x8, [sp, #16] ; 8-byte Folded Spill
subs x8, x8, #21
cset w8, hi
tbnz w8, #0, LBB2_11
; %bb.3: ; in Loop: Header=BB2_1 Depth=1
ldr x11, [sp, #16] ; 8-byte Folded Reload
adrp x10, lJTI2_0@PAGE
add x10, x10, lJTI2_0@PAGEOFF
Ltmp2:
adr x8, Ltmp2
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB2_4: ; in Loop: Header=BB2_1 Depth=1
ldrh w8, [sp, #30]
mov x9, x8
sub x8, x29, #38
add x9, x8, x9, lsl #1
mov w8, #1000
strh w8, [x9]
b LBB2_12
LBB2_5: ; in Loop: Header=BB2_1 Depth=1
ldrh w8, [sp, #30]
mov x9, x8
sub x8, x29, #38
add x9, x8, x9, lsl #1
mov w8, #500
strh w8, [x9]
b LBB2_12
LBB2_6: ; in Loop: Header=BB2_1 Depth=1
ldrh w8, [sp, #30]
mov x9, x8
sub x8, x29, #38
add x9, x8, x9, lsl #1
mov w8, #100
strh w8, [x9]
b LBB2_12
LBB2_7: ; in Loop: Header=BB2_1 Depth=1
ldrh w8, [sp, #30]
mov x9, x8
sub x8, x29, #38
add x9, x8, x9, lsl #1
mov w8, #50
strh w8, [x9]
b LBB2_12
LBB2_8: ; in Loop: Header=BB2_1 Depth=1
ldrh w8, [sp, #30]
mov x9, x8
sub x8, x29, #38
add x9, x8, x9, lsl #1
mov w8, #10
strh w8, [x9]
b LBB2_12
LBB2_9: ; in Loop: Header=BB2_1 Depth=1
ldrh w8, [sp, #30]
mov x9, x8
sub x8, x29, #38
add x9, x8, x9, lsl #1
mov w8, #5
strh w8, [x9]
b LBB2_12
LBB2_10: ; in Loop: Header=BB2_1 Depth=1
ldrh w8, [sp, #30]
mov x9, x8
sub x8, x29, #38
add x9, x8, x9, lsl #1
mov w8, #1
strh w8, [x9]
b LBB2_12
LBB2_11: ; in Loop: Header=BB2_1 Depth=1
ldrh w8, [sp, #30]
mov x9, x8
sub x8, x29, #38
add x8, x8, x9, lsl #1
strh wzr, [x8]
b LBB2_12
LBB2_12: ; in Loop: Header=BB2_1 Depth=1
ldrh w8, [sp, #30]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB2_15
b LBB2_13
LBB2_13: ; in Loop: Header=BB2_1 Depth=1
ldrh w8, [sp, #30]
subs w8, w8, #1
sub x9, x29, #38
ldrh w8, [x9, w8, sxtw #1]
ldrh w10, [sp, #30]
; kill: def $x10 killed $w10
ldrh w9, [x9, x10, lsl #1]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_15
b LBB2_14
LBB2_14: ; in Loop: Header=BB2_1 Depth=1
ldrh w8, [sp, #30]
subs w9, w8, #1
sub x8, x29, #38
ldrh w10, [x8, w9, sxtw #1]
ldrh w9, [sp, #28]
subs w9, w9, w10
strh w9, [sp, #28]
ldrh w9, [sp, #30]
subs w9, w9, #1
ldrh w10, [x8, w9, sxtw #1]
ldrh w9, [sp, #30]
; kill: def $x9 killed $w9
add x9, x8, x9, lsl #1
ldrh w8, [x9]
subs w8, w8, w10
strh w8, [x9]
b LBB2_15
LBB2_15: ; in Loop: Header=BB2_1 Depth=1
ldrh w8, [sp, #30]
mov x9, x8
sub x8, x29, #38
ldrh w9, [x8, x9, lsl #1]
ldrh w8, [sp, #28]
add w8, w8, w9
strh w8, [sp, #28]
b LBB2_16
LBB2_16: ; in Loop: Header=BB2_1 Depth=1
ldrh w8, [sp, #30]
add w8, w8, #1
strh w8, [sp, #30]
b LBB2_1
LBB2_17:
ldrh w8, [sp, #28]
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, LBB2_19
b LBB2_18
LBB2_18:
bl ___stack_chk_fail
LBB2_19:
ldr w0, [sp, #12] ; 4-byte Folded Reload
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
.p2align 2
lJTI2_0:
.long LBB2_6-Ltmp2
.long LBB2_5-Ltmp2
.long LBB2_11-Ltmp2
.long LBB2_11-Ltmp2
.long LBB2_11-Ltmp2
.long LBB2_11-Ltmp2
.long LBB2_10-Ltmp2
.long LBB2_11-Ltmp2
.long LBB2_11-Ltmp2
.long LBB2_7-Ltmp2
.long LBB2_4-Ltmp2
.long LBB2_11-Ltmp2
.long LBB2_11-Ltmp2
.long LBB2_11-Ltmp2
.long LBB2_11-Ltmp2
.long LBB2_11-Ltmp2
.long LBB2_11-Ltmp2
.long LBB2_11-Ltmp2
.long LBB2_11-Ltmp2
.long LBB2_9-Ltmp2
.long LBB2_11-Ltmp2
.long LBB2_8-Ltmp2
; -- 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
mov x8, x1
adrp x9, ___stack_chk_guard@GOTPAGE
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
ldr x9, [x9]
stur x9, [x29, #-8]
mov w1, #0
str wzr, [sp, #52]
str w0, [sp, #48]
str x8, [sp, #40]
add x0, sp, #56
mov x2, #48
bl _memset
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
str x8, [sp, #56]
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
str x8, [sp, #64]
adrp x8, l_.str.2@PAGE
add x8, x8, l_.str.2@PAGEOFF
str x8, [sp, #72]
adrp x8, l_.str.3@PAGE
add x8, x8, l_.str.3@PAGEOFF
str x8, [sp, #80]
adrp x8, l_.str.4@PAGE
add x8, x8, l_.str.4@PAGEOFF
str x8, [sp, #88]
adrp x8, l_.str.5@PAGE
add x8, x8, l_.str.5@PAGEOFF
str x8, [sp, #96]
mov w8, #6
str w8, [sp, #32]
str wzr, [sp, #36]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
ldr w9, [sp, #32]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_4
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldrsw x9, [sp, #36]
add x8, sp, #56
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #24]
ldr x0, [sp, #24]
bl _romanToInt
str w0, [sp, #20] ; 4-byte Folded Spill
ldr x0, [sp, #24]
bl _romanToInt2
ldr w10, [sp, #20] ; 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.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB3_1
LBB3_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, LBB3_6
b LBB3_5
LBB3_5:
bl ___stack_chk_fail
LBB3_6:
mov w0, #0
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "V"
l_.str.1: ; @.str.1
.asciz "III"
l_.str.2: ; @.str.2
.asciz "IV"
l_.str.3: ; @.str.3
.asciz "IX"
l_.str.4: ; @.str.4
.asciz "LVIII"
l_.str.5: ; @.str.5
.asciz "MCMXCIV"
l_.str.6: ; @.str.6
.asciz "Func 1: %d\nFunc 2: %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _calcValue ## -- Begin function calcValue
.p2align 4, 0x90
_calcValue: ## @calcValue
.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, -3(%rbp)
movsbl -3(%rbp), %eax
addl $-67, %eax
movl %eax, %ecx
movq %rcx, -16(%rbp) ## 8-byte Spill
subl $21, %eax
ja LBB0_8
## %bb.10:
movq -16(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_1:
movw $1000, -2(%rbp) ## imm = 0x3E8
jmp LBB0_9
LBB0_2:
movw $500, -2(%rbp) ## imm = 0x1F4
jmp LBB0_9
LBB0_3:
movw $100, -2(%rbp)
jmp LBB0_9
LBB0_4:
movw $50, -2(%rbp)
jmp LBB0_9
LBB0_5:
movw $10, -2(%rbp)
jmp LBB0_9
LBB0_6:
movw $5, -2(%rbp)
jmp LBB0_9
LBB0_7:
movw $1, -2(%rbp)
jmp LBB0_9
LBB0_8:
movw $0, -2(%rbp)
LBB0_9:
movzwl -2(%rbp), %eax
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
.long L0_0_set_3
.long L0_0_set_2
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_7
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_4
.long L0_0_set_1
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_6
.long L0_0_set_8
.long L0_0_set_5
.end_data_region
## -- End function
.globl _romanToInt2 ## -- Begin function romanToInt2
.p2align 4, 0x90
_romanToInt2: ## @romanToInt2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rax
movq %rax, -32(%rbp)
movw $0, -18(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
cmpb $0, (%rax)
je LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movw -18(%rbp), %ax
addw $1, %ax
movw %ax, -18(%rbp)
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB1_1
LBB1_3:
movzwl -18(%rbp), %eax
cmpl $0, %eax
jne LBB1_5
## %bb.4:
movl $0, -4(%rbp)
jmp LBB1_14
LBB1_5:
movzwl -18(%rbp), %eax
cmpl $1, %eax
jne LBB1_7
## %bb.6:
movq -16(%rbp), %rax
movsbl (%rax), %edi
callq _calcValue
movzwl %ax, %eax
movl %eax, -4(%rbp)
jmp LBB1_14
LBB1_7:
movw $0, -20(%rbp)
movq -16(%rbp), %rax
movq %rax, -32(%rbp)
LBB1_8: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
cmpb $0, (%rax)
je LBB1_13
## %bb.9: ## in Loop: Header=BB1_8 Depth=1
movq -32(%rbp), %rax
movsbl (%rax), %edi
callq _calcValue
movw %ax, -22(%rbp)
movq -32(%rbp), %rax
cmpq -16(%rbp), %rax
je LBB1_12
## %bb.10: ## in Loop: Header=BB1_8 Depth=1
movq -32(%rbp), %rax
movsbl -1(%rax), %edi
callq _calcValue
movw %ax, -24(%rbp)
movzwl %ax, %eax
movzwl -22(%rbp), %ecx
cmpl %ecx, %eax
jge LBB1_12
## %bb.11: ## in Loop: Header=BB1_8 Depth=1
movzwl -24(%rbp), %ecx
movzwl -20(%rbp), %eax
subl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -20(%rbp)
movzwl -24(%rbp), %ecx
movzwl -22(%rbp), %eax
subl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -22(%rbp)
LBB1_12: ## in Loop: Header=BB1_8 Depth=1
movzwl -22(%rbp), %ecx
movzwl -20(%rbp), %eax
addl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -20(%rbp)
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB1_8
LBB1_13:
movzwl -20(%rbp), %eax
movl %eax, -4(%rbp)
LBB1_14:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _romanToInt ## -- Begin function romanToInt
.p2align 4, 0x90
_romanToInt: ## @romanToInt
.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, -56(%rbp)
movw $0, -58(%rbp)
movw $0, -60(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movq -56(%rbp), %rax
cmpb $0, (%rax)
je LBB2_16
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -56(%rbp), %rax
movq %rax, %rcx
incq %rcx
movq %rcx, -56(%rbp)
movsbl (%rax), %eax
addl $-67, %eax
movl %eax, %ecx
movq %rcx, -72(%rbp) ## 8-byte Spill
subl $21, %eax
ja LBB2_10
## %bb.19: ## in Loop: Header=BB2_1 Depth=1
movq -72(%rbp), %rax ## 8-byte Reload
leaq LJTI2_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB2_3: ## in Loop: Header=BB2_1 Depth=1
movzwl -58(%rbp), %eax
## kill: def $rax killed $eax
movw $1000, -48(%rbp,%rax,2) ## imm = 0x3E8
jmp LBB2_11
LBB2_4: ## in Loop: Header=BB2_1 Depth=1
movzwl -58(%rbp), %eax
## kill: def $rax killed $eax
movw $500, -48(%rbp,%rax,2) ## imm = 0x1F4
jmp LBB2_11
LBB2_5: ## in Loop: Header=BB2_1 Depth=1
movzwl -58(%rbp), %eax
## kill: def $rax killed $eax
movw $100, -48(%rbp,%rax,2)
jmp LBB2_11
LBB2_6: ## in Loop: Header=BB2_1 Depth=1
movzwl -58(%rbp), %eax
## kill: def $rax killed $eax
movw $50, -48(%rbp,%rax,2)
jmp LBB2_11
LBB2_7: ## in Loop: Header=BB2_1 Depth=1
movzwl -58(%rbp), %eax
## kill: def $rax killed $eax
movw $10, -48(%rbp,%rax,2)
jmp LBB2_11
LBB2_8: ## in Loop: Header=BB2_1 Depth=1
movzwl -58(%rbp), %eax
## kill: def $rax killed $eax
movw $5, -48(%rbp,%rax,2)
jmp LBB2_11
LBB2_9: ## in Loop: Header=BB2_1 Depth=1
movzwl -58(%rbp), %eax
## kill: def $rax killed $eax
movw $1, -48(%rbp,%rax,2)
jmp LBB2_11
LBB2_10: ## in Loop: Header=BB2_1 Depth=1
movzwl -58(%rbp), %eax
## kill: def $rax killed $eax
movw $0, -48(%rbp,%rax,2)
LBB2_11: ## in Loop: Header=BB2_1 Depth=1
movzwl -58(%rbp), %eax
cmpl $0, %eax
je LBB2_14
## %bb.12: ## in Loop: Header=BB2_1 Depth=1
movzwl -58(%rbp), %eax
subl $1, %eax
cltq
movzwl -48(%rbp,%rax,2), %eax
movzwl -58(%rbp), %ecx
## kill: def $rcx killed $ecx
movzwl -48(%rbp,%rcx,2), %ecx
cmpl %ecx, %eax
jge LBB2_14
## %bb.13: ## in Loop: Header=BB2_1 Depth=1
movzwl -58(%rbp), %eax
subl $1, %eax
cltq
movzwl -48(%rbp,%rax,2), %ecx
movzwl -60(%rbp), %eax
subl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -60(%rbp)
movzwl -58(%rbp), %eax
subl $1, %eax
cltq
movzwl -48(%rbp,%rax,2), %edx
movzwl -58(%rbp), %eax
## kill: def $rax killed $eax
movzwl -48(%rbp,%rax,2), %ecx
subl %edx, %ecx
## kill: def $cx killed $cx killed $ecx
movw %cx, -48(%rbp,%rax,2)
LBB2_14: ## in Loop: Header=BB2_1 Depth=1
movzwl -58(%rbp), %eax
## kill: def $rax killed $eax
movzwl -48(%rbp,%rax,2), %ecx
movzwl -60(%rbp), %eax
addl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -60(%rbp)
## %bb.15: ## in Loop: Header=BB2_1 Depth=1
movw -58(%rbp), %ax
addw $1, %ax
movw %ax, -58(%rbp)
jmp LBB2_1
LBB2_16:
movzwl -60(%rbp), %eax
movl %eax, -76(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB2_18
## %bb.17:
movl -76(%rbp), %eax ## 4-byte Reload
addq $80, %rsp
popq %rbp
retq
LBB2_18:
callq ___stack_chk_fail
ud2
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L2_0_set_5, LBB2_5-LJTI2_0
.set L2_0_set_4, LBB2_4-LJTI2_0
.set L2_0_set_10, LBB2_10-LJTI2_0
.set L2_0_set_9, LBB2_9-LJTI2_0
.set L2_0_set_6, LBB2_6-LJTI2_0
.set L2_0_set_3, LBB2_3-LJTI2_0
.set L2_0_set_8, LBB2_8-LJTI2_0
.set L2_0_set_7, LBB2_7-LJTI2_0
LJTI2_0:
.long L2_0_set_5
.long L2_0_set_4
.long L2_0_set_10
.long L2_0_set_10
.long L2_0_set_10
.long L2_0_set_10
.long L2_0_set_9
.long L2_0_set_10
.long L2_0_set_10
.long L2_0_set_6
.long L2_0_set_3
.long L2_0_set_10
.long L2_0_set_10
.long L2_0_set_10
.long L2_0_set_10
.long L2_0_set_10
.long L2_0_set_10
.long L2_0_set_10
.long L2_0_set_10
.long L2_0_set_8
.long L2_0_set_10
.long L2_0_set_7
.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 $112, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -68(%rbp)
movl %edi, -72(%rbp)
movq %rsi, -80(%rbp)
leaq -64(%rbp), %rdi
xorl %esi, %esi
movl $48, %edx
callq _memset
leaq L_.str(%rip), %rax
movq %rax, -64(%rbp)
leaq L_.str.1(%rip), %rax
movq %rax, -56(%rbp)
leaq L_.str.2(%rip), %rax
movq %rax, -48(%rbp)
leaq L_.str.3(%rip), %rax
movq %rax, -40(%rbp)
leaq L_.str.4(%rip), %rax
movq %rax, -32(%rbp)
leaq L_.str.5(%rip), %rax
movq %rax, -24(%rbp)
movl $6, -88(%rbp)
movl $0, -84(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movl -84(%rbp), %eax
cmpl -88(%rbp), %eax
jge LBB3_4
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movslq -84(%rbp), %rax
movq -64(%rbp,%rax,8), %rax
movq %rax, -96(%rbp)
movq -96(%rbp), %rdi
callq _romanToInt
movl %eax, -100(%rbp) ## 4-byte Spill
movq -96(%rbp), %rdi
callq _romanToInt2
movl -100(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
movl -84(%rbp), %eax
addl $1, %eax
movl %eax, -84(%rbp)
jmp LBB3_1
LBB3_4:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB3_6
## %bb.5:
xorl %eax, %eax
addq $112, %rsp
popq %rbp
retq
LBB3_6:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "V"
L_.str.1: ## @.str.1
.asciz "III"
L_.str.2: ## @.str.2
.asciz "IV"
L_.str.3: ## @.str.3
.asciz "IX"
L_.str.4: ## @.str.4
.asciz "LVIII"
L_.str.5: ## @.str.5
.asciz "MCMXCIV"
L_.str.6: ## @.str.6
.asciz "Func 1: %d\nFunc 2: %d\n"
.subsections_via_symbols
| the_stack_data/59512633.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, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #44]
str wzr, [sp, #36]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldrsw x10, [sp, #36]
add x9, sp, #48
mov w8, #0
str w8, [x9, x10, lsl #2]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_1
LBB0_4:
str wzr, [sp, #28]
str wzr, [sp, #24]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
bl _getchar
str w0, [sp, #40]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_21
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #40]
subs w8, w8, #32
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #40]
subs w8, w8, #10
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #40]
subs w8, w8, #9
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #24]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_5 Depth=1
str wzr, [sp, #24]
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_5 Depth=1
b LBB0_15
LBB0_12: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #24]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_5 Depth=1
mov w8, #1
str w8, [sp, #24]
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_5 Depth=1
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #24]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #28]
subs w9, w8, #1
add x8, sp, #48
ldr w8, [x8, w9, sxtw #2]
subs w8, w8, #16
cset w8, ge
tbnz w8, #0, LBB0_19
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #28]
subs w8, w8, #10
cset w8, gt
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #28]
subs w9, w8, #1
add x8, sp, #48
add x9, x8, w9, sxtw #2
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_5 Depth=1
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_5 Depth=1
b LBB0_5
LBB0_21:
ldr w9, [sp, #28]
; 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 x9, sp
mov x8, #16
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov x9, sp
mov x8, #10
str x8, [x9]
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_22
LBB0_22: ; =>This Loop Header: Depth=1
; Child Loop BB0_25 Depth 2
ldr w8, [sp, #36]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_31
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_22 Depth=1
ldrsw x9, [sp, #36]
add x8, sp, #48
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_29
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_22 Depth=1
str wzr, [sp, #32]
b LBB0_25
LBB0_25: ; Parent Loop BB0_22 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #32]
ldrsw x10, [sp, #36]
add x9, sp, #48
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_28
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_25 Depth=2
mov w0, #88
bl _putchar
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_25 Depth=2
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_25
LBB0_28: ; in Loop: Header=BB0_22 Depth=1
mov w0, #10
bl _putchar
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_22 Depth=1
b LBB0_30
LBB0_30: ; in Loop: Header=BB0_22 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_22
LBB0_31:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov w8, #16
str w8, [sp, #32]
b LBB0_32
LBB0_32: ; =>This Loop Header: Depth=1
; Child Loop BB0_34 Depth 2
ldr w8, [sp, #32]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_44
b LBB0_33
LBB0_33: ; in Loop: Header=BB0_32 Depth=1
str wzr, [sp, #36]
b LBB0_34
LBB0_34: ; Parent Loop BB0_32 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #36]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_42
b LBB0_35
LBB0_35: ; in Loop: Header=BB0_34 Depth=2
ldrsw x9, [sp, #36]
add x8, sp, #48
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_40
b LBB0_36
LBB0_36: ; in Loop: Header=BB0_34 Depth=2
ldrsw x9, [sp, #36]
add x8, sp, #48
ldr w8, [x8, x9, lsl #2]
ldr w9, [sp, #32]
subs w8, w8, w9
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_38
b LBB0_37
LBB0_37: ; in Loop: Header=BB0_34 Depth=2
mov w0, #88
bl _putchar
b LBB0_39
LBB0_38: ; in Loop: Header=BB0_34 Depth=2
mov w0, #32
bl _putchar
b LBB0_39
LBB0_39: ; in Loop: Header=BB0_34 Depth=2
b LBB0_40
LBB0_40: ; in Loop: Header=BB0_34 Depth=2
b LBB0_41
LBB0_41: ; in Loop: Header=BB0_34 Depth=2
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_34
LBB0_42: ; in Loop: Header=BB0_32 Depth=1
mov w0, #10
bl _putchar
b LBB0_43
LBB0_43: ; in Loop: Header=BB0_32 Depth=1
ldr w8, [sp, #32]
subs w8, w8, #1
str w8, [sp, #32]
b LBB0_32
LBB0_44:
ldr w8, [sp, #44]
str w8, [sp, #20] ; 4-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_46
b LBB0_45
LBB0_45:
bl ___stack_chk_fail
LBB0_46:
ldr w0, [sp, #20] ; 4-byte Folded Reload
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Count of words %d\n"
l_.str.1: ; @.str.1
.asciz "Maximum %d character(s) per word\n"
l_.str.2: ; @.str.2
.asciz "Only for %d word(s) histograms will be printed\n"
l_.str.3: ; @.str.3
.asciz "A horizontal histogram\n"
l_.str.4: ; @.str.4
.asciz "A vertical histogram\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -52(%rbp)
movl $0, -60(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $10, -60(%rbp)
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -60(%rbp), %rax
movl $0, -48(%rbp,%rax,4)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -60(%rbp), %eax
addl $1, %eax
movl %eax, -60(%rbp)
jmp LBB0_1
LBB0_4:
movl $0, -68(%rbp)
movl $0, -72(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
callq _getchar
movl %eax, -56(%rbp)
cmpl $-1, %eax
je LBB0_21
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
cmpl $32, -56(%rbp)
je LBB0_9
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
cmpl $10, -56(%rbp)
je LBB0_9
## %bb.8: ## in Loop: Header=BB0_5 Depth=1
cmpl $9, -56(%rbp)
jne LBB0_12
LBB0_9: ## in Loop: Header=BB0_5 Depth=1
cmpl $1, -72(%rbp)
jne LBB0_11
## %bb.10: ## in Loop: Header=BB0_5 Depth=1
movl $0, -72(%rbp)
LBB0_11: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_15
LBB0_12: ## in Loop: Header=BB0_5 Depth=1
cmpl $0, -72(%rbp)
jne LBB0_14
## %bb.13: ## in Loop: Header=BB0_5 Depth=1
movl $1, -72(%rbp)
movl -68(%rbp), %eax
addl $1, %eax
movl %eax, -68(%rbp)
LBB0_14: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_15
LBB0_15: ## in Loop: Header=BB0_5 Depth=1
cmpl $1, -72(%rbp)
jne LBB0_20
## %bb.16: ## in Loop: Header=BB0_5 Depth=1
movl -68(%rbp), %eax
subl $1, %eax
cltq
cmpl $16, -48(%rbp,%rax,4)
jge LBB0_19
## %bb.17: ## in Loop: Header=BB0_5 Depth=1
cmpl $10, -68(%rbp)
jg LBB0_19
## %bb.18: ## in Loop: Header=BB0_5 Depth=1
movl -68(%rbp), %eax
subl $1, %eax
cltq
movl -48(%rbp,%rax,4), %ecx
addl $1, %ecx
movl %ecx, -48(%rbp,%rax,4)
LBB0_19: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_20
LBB0_20: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_5
LBB0_21:
movl -68(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
movl $16, %esi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
movl $10, %esi
movb $0, %al
callq _printf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -60(%rbp)
LBB0_22: ## =>This Loop Header: Depth=1
## Child Loop BB0_25 Depth 2
cmpl $10, -60(%rbp)
jge LBB0_31
## %bb.23: ## in Loop: Header=BB0_22 Depth=1
movslq -60(%rbp), %rax
cmpl $0, -48(%rbp,%rax,4)
jle LBB0_29
## %bb.24: ## in Loop: Header=BB0_22 Depth=1
movl $0, -64(%rbp)
LBB0_25: ## Parent Loop BB0_22 Depth=1
## => This Inner Loop Header: Depth=2
movl -64(%rbp), %eax
movslq -60(%rbp), %rcx
cmpl -48(%rbp,%rcx,4), %eax
jge LBB0_28
## %bb.26: ## in Loop: Header=BB0_25 Depth=2
movl $88, %edi
callq _putchar
## %bb.27: ## in Loop: Header=BB0_25 Depth=2
movl -64(%rbp), %eax
addl $1, %eax
movl %eax, -64(%rbp)
jmp LBB0_25
LBB0_28: ## in Loop: Header=BB0_22 Depth=1
movl $10, %edi
callq _putchar
LBB0_29: ## in Loop: Header=BB0_22 Depth=1
jmp LBB0_30
LBB0_30: ## in Loop: Header=BB0_22 Depth=1
movl -60(%rbp), %eax
addl $1, %eax
movl %eax, -60(%rbp)
jmp LBB0_22
LBB0_31:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movl $16, -64(%rbp)
LBB0_32: ## =>This Loop Header: Depth=1
## Child Loop BB0_34 Depth 2
cmpl $0, -64(%rbp)
jle LBB0_44
## %bb.33: ## in Loop: Header=BB0_32 Depth=1
movl $0, -60(%rbp)
LBB0_34: ## Parent Loop BB0_32 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $10, -60(%rbp)
jge LBB0_42
## %bb.35: ## in Loop: Header=BB0_34 Depth=2
movslq -60(%rbp), %rax
cmpl $0, -48(%rbp,%rax,4)
jle LBB0_40
## %bb.36: ## in Loop: Header=BB0_34 Depth=2
movslq -60(%rbp), %rax
movl -48(%rbp,%rax,4), %eax
subl -64(%rbp), %eax
cmpl $0, %eax
jl LBB0_38
## %bb.37: ## in Loop: Header=BB0_34 Depth=2
movl $88, %edi
callq _putchar
jmp LBB0_39
LBB0_38: ## in Loop: Header=BB0_34 Depth=2
movl $32, %edi
callq _putchar
LBB0_39: ## in Loop: Header=BB0_34 Depth=2
jmp LBB0_40
LBB0_40: ## in Loop: Header=BB0_34 Depth=2
jmp LBB0_41
LBB0_41: ## in Loop: Header=BB0_34 Depth=2
movl -60(%rbp), %eax
addl $1, %eax
movl %eax, -60(%rbp)
jmp LBB0_34
LBB0_42: ## in Loop: Header=BB0_32 Depth=1
movl $10, %edi
callq _putchar
## %bb.43: ## in Loop: Header=BB0_32 Depth=1
movl -64(%rbp), %eax
addl $-1, %eax
movl %eax, -64(%rbp)
jmp LBB0_32
LBB0_44:
movl -52(%rbp), %eax
movl %eax, -76(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_46
## %bb.45:
movl -76(%rbp), %eax ## 4-byte Reload
addq $80, %rsp
popq %rbp
retq
LBB0_46:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Count of words %d\n"
L_.str.1: ## @.str.1
.asciz "Maximum %d character(s) per word\n"
L_.str.2: ## @.str.2
.asciz "Only for %d word(s) histograms will be printed\n"
L_.str.3: ## @.str.3
.asciz "A horizontal histogram\n"
L_.str.4: ## @.str.4
.asciz "A vertical histogram\n"
.subsections_via_symbols
| the_stack_data/173579215.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
stur w8, [x29, #-16] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
bl _scanf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #12
str x8, [x9]
bl _scanf
ldur w0, [x29, #-8]
ldur w1, [x29, #-12]
bl _minimum
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
str x0, [sp, #24] ; 8-byte Folded Spill
bl _printf
ldur w0, [x29, #-8]
ldur w1, [x29, #-12]
bl _maximum
mov x10, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
bl _printf
ldur w0, [x29, #-8]
ldur w1, [x29, #-12]
bl _multiply
mov x10, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
bl _printf
ldur w0, [x29, #-16] ; 4-byte Folded Reload
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _minimum ; -- Begin function minimum
.p2align 2
_minimum: ; @minimum
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #8]
str w1, [sp, #4]
ldr w8, [sp, #8]
ldr w9, [sp, #4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr w8, [sp, #8]
str w8, [sp, #12]
b LBB1_3
LBB1_2:
ldr w8, [sp, #4]
str w8, [sp, #12]
b LBB1_3
LBB1_3:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _maximum ; -- Begin function maximum
.p2align 2
_maximum: ; @maximum
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #8]
str w1, [sp, #4]
ldr w8, [sp, #8]
ldr w9, [sp, #4]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldr w8, [sp, #8]
str w8, [sp, #12]
b LBB2_3
LBB2_2:
ldr w8, [sp, #4]
str w8, [sp, #12]
b LBB2_3
LBB2_3:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _multiply ; -- Begin function multiply
.p2align 2
_multiply: ; @multiply
.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]
mul w8, w8, w9
str w8, [sp, #4]
ldr w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Enter a value for no 1 : "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Enter a value for no 2 : "
l_.str.3: ; @.str.3
.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 -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), %edi
movl -12(%rbp), %esi
callq _minimum
movl %eax, %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %edi
movl -12(%rbp), %esi
callq _maximum
movl %eax, %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %edi
movl -12(%rbp), %esi
callq _multiply
movl %eax, %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _minimum ## -- Begin function minimum
.p2align 4, 0x90
_minimum: ## @minimum
.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 -8(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB1_2
## %bb.1:
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB1_3
LBB1_2:
movl -12(%rbp), %eax
movl %eax, -4(%rbp)
LBB1_3:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.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, -8(%rbp)
movl %esi, -12(%rbp)
movl -8(%rbp), %eax
cmpl -12(%rbp), %eax
jle LBB2_2
## %bb.1:
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB2_3
LBB2_2:
movl -12(%rbp), %eax
movl %eax, -4(%rbp)
LBB2_3:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _multiply ## -- Begin function multiply
.p2align 4, 0x90
_multiply: ## @multiply
.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
imull -8(%rbp), %eax
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter a value for no 1 : "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Enter a value for no 2 : "
L_.str.3: ## @.str.3
.asciz "%d "
.subsections_via_symbols
| the_stack_data/98249.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, #12]
add x0, sp, #16
str x0, [sp] ; 8-byte Folded Spill
adrp x1, l___const.main.m@PAGE
add x1, x1, l___const.main.m@PAGEOFF
mov x2, #40
bl _memcpy
ldr x2, [sp] ; 8-byte Folded Reload
mov w0, #4
mov w1, #10
bl _printStrings
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl ___stack_chk_fail
LBB0_2:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _printStrings ; -- Begin function printStrings
.p2align 2
_printStrings: ; @printStrings
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
stur w1, [x29, #-8]
stur x2, [x29, #-16]
ldur w8, [x29, #-8]
; kill: def $x8 killed $w8
str x8, [sp, #16] ; 8-byte Folded Spill
stur wzr, [x29, #-20]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
subs w8, w8, #4
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x10, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
mul x9, x9, x10
add x8, x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB1_1
LBB1_4:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
l___const.main.m: ; @__const.main.m
.asciz "Oi\000\000\000\000\000\000\000"
.asciz "Breno\000\000\000\000"
.asciz "Farias\000\000\000"
.asciz "Adeus\000\000\000\000"
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%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 $64, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -52(%rbp)
leaq -48(%rbp), %rdi
leaq l___const.main.m(%rip), %rsi
movl $40, %edx
callq _memcpy
leaq -48(%rbp), %rdx
movl $4, %edi
movl $10, %esi
callq _printStrings
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_2
## %bb.1:
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _printStrings ## -- Begin function printStrings
.p2align 4, 0x90
_printStrings: ## @printStrings
.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)
movq %rdx, -16(%rbp)
movl -8(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -32(%rbp) ## 8-byte Spill
movl $0, -20(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $4, -20(%rbp)
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -32(%rbp), %rcx ## 8-byte Reload
movq -16(%rbp), %rsi
movslq -20(%rbp), %rax
imulq %rcx, %rax
addq %rax, %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB1_1
LBB1_4:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 4 ## @__const.main.m
l___const.main.m:
.asciz "Oi\000\000\000\000\000\000\000"
.asciz "Breno\000\000\000\000"
.asciz "Farias\000\000\000"
.asciz "Adeus\000\000\000\000"
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s \n"
.subsections_via_symbols
| the_stack_data/106067.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #46
str x8, [sp, #24] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
bl _scanf
ldr x8, [sp, #24] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
str x0, [sp, #32] ; 8-byte Folded Spill
bl _printf
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
add x8, x8, #30
mov x9, sp
str x8, [x9]
bl _scanf
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x0, [sp, #32] ; 8-byte Folded Reload
add x8, x8, #30
mov x9, sp
str x8, [x9]
bl _printf
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
add x8, x8, #60
mov x9, sp
str x8, [x9]
bl _scanf
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x0, [sp, #32] ; 8-byte Folded Reload
add x8, x8, #60
mov x9, sp
str x8, [x9]
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, #144] ; 16-byte Folded Reload
add sp, sp, #160
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "DIGITE QUALQUER STRING: "
l_.str.1: ; @.str.1
.asciz "%s"
l_.str.2: ; @.str.2
.asciz "%s\n"
l_.str.3: ; @.str.3
.asciz "DIGITE OUTRA STRING: "
l_.str.4: ; @.str.4
.asciz "DIGITE MAIS OUTRA: "
.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)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq -112(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
leaq -112(%rbp), %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq -112(%rbp), %rsi
addq $30, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
leaq -112(%rbp), %rsi
addq $30, %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq -112(%rbp), %rsi
addq $60, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
leaq -112(%rbp), %rsi
addq $60, %rsi
leaq L_.str.2(%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 $112, %rsp
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "DIGITE QUALQUER STRING: "
L_.str.1: ## @.str.1
.asciz "%s"
L_.str.2: ## @.str.2
.asciz "%s\n"
L_.str.3: ## @.str.3
.asciz "DIGITE OUTRA STRING: "
L_.str.4: ## @.str.4
.asciz "DIGITE MAIS OUTRA: "
.subsections_via_symbols
| the_stack_data/22011460.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur wzr, [x29, #-12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _getchar
stur w0, [x29, #-8]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #32
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #9
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #11
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_8:
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
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 "%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 $0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
callq _getchar
movl %eax, -8(%rbp)
cmpl $-1, %eax
je LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
cmpl $32, -8(%rbp)
je LBB0_6
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
cmpl $9, -8(%rbp)
je LBB0_6
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
cmpl $11, -8(%rbp)
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
cmpl $10, -8(%rbp)
jne LBB0_7
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_8:
movl -12(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/9862.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 catanh
lCPI0_0:
.quad 0x8000000000000000 ; double -0
.section __TEXT,__text,regular,pure_instructions
.globl _catanh
.p2align 2
_catanh: ; @catanh
.cfi_startproc
; %bb.0:
sub sp, sp, #176
.cfi_def_cfa_offset 176
stp x29, x30, [sp, #160] ; 16-byte Folded Spill
add x29, sp, #160
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur d0, [x29, #-32]
stur d1, [x29, #-24]
ldur d1, [x29, #-32]
str d1, [sp, #48] ; 8-byte Folded Spill
ldur d2, [x29, #-24]
str d2, [sp, #56] ; 8-byte Folded Spill
movi d4, #0000000000000000
fmul d0, d1, d4
fmov d5, #1.00000000
fmul d3, d2, d5
fmul d1, d1, d5
fmul d2, d2, d4
fsub d0, d0, d3
str d0, [sp, #64] ; 8-byte Folded Spill
fadd d1, d1, d2
str d1, [sp, #72] ; 8-byte Folded Spill
fcmp d0, d0
cset w8, vc
str d0, [sp, #80] ; 8-byte Folded Spill
stur d1, [x29, #-72] ; 8-byte Folded Spill
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
ldr d1, [sp, #72] ; 8-byte Folded Reload
ldr d0, [sp, #64] ; 8-byte Folded Reload
fcmp d1, d1
cset w8, vc
str d0, [sp, #80] ; 8-byte Folded Spill
stur d1, [x29, #-72] ; 8-byte Folded Spill
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr d1, [sp, #56] ; 8-byte Folded Reload
ldr d0, [sp, #48] ; 8-byte Folded Reload
movi d2, #0000000000000000
fmov d3, #1.00000000
bl ___muldc3
str d0, [sp, #80] ; 8-byte Folded Spill
stur d1, [x29, #-72] ; 8-byte Folded Spill
b LBB0_3
LBB0_3:
ldr d1, [sp, #80] ; 8-byte Folded Reload
ldur d0, [x29, #-72] ; 8-byte Folded Reload
stur d1, [x29, #-64]
stur d0, [x29, #-56]
ldur d0, [x29, #-64]
ldur d1, [x29, #-56]
bl _catan
fmov d4, d0
str d4, [sp] ; 8-byte Folded Spill
fmov d5, d1
str d5, [sp, #8] ; 8-byte Folded Spill
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fmul d0, d1, d4
fmov d2, #-1.00000000
fmul d3, d2, d5
fmul d1, d1, d5
fmul d2, d2, d4
fsub d0, d0, d3
str d0, [sp, #16] ; 8-byte Folded Spill
fadd d1, d1, d2
str d1, [sp, #24] ; 8-byte Folded Spill
fcmp d0, d0
cset w8, vc
str d0, [sp, #32] ; 8-byte Folded Spill
str d1, [sp, #40] ; 8-byte Folded Spill
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4:
ldr d1, [sp, #24] ; 8-byte Folded Reload
ldr d0, [sp, #16] ; 8-byte Folded Reload
fcmp d1, d1
cset w8, vc
str d0, [sp, #32] ; 8-byte Folded Spill
str d1, [sp, #40] ; 8-byte Folded Spill
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr d3, [sp, #8] ; 8-byte Folded Reload
ldr d2, [sp] ; 8-byte Folded Reload
adrp x8, lCPI0_0@PAGE
ldr d0, [x8, lCPI0_0@PAGEOFF]
fmov d1, #-1.00000000
bl ___muldc3
str d0, [sp, #32] ; 8-byte Folded Spill
str d1, [sp, #40] ; 8-byte Folded Spill
b LBB0_6
LBB0_6:
ldr d1, [sp, #32] ; 8-byte Folded Reload
ldr d0, [sp, #40] ; 8-byte Folded Reload
stur d1, [x29, #-48]
stur d0, [x29, #-40]
ldur d1, [x29, #-48]
ldur d0, [x29, #-40]
stur d1, [x29, #-16]
stur d0, [x29, #-8]
ldur d0, [x29, #-16]
ldur d1, [x29, #-8]
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
; -- End function
.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 catanh
LCPI0_0:
.quad 0x3ff0000000000000 ## double 1
LCPI0_1:
.quad 0xbff0000000000000 ## double -1
LCPI0_2:
.quad 0x8000000000000000 ## double -0
.section __TEXT,__text,regular,pure_instructions
.globl _catanh
.p2align 4, 0x90
_catanh: ## @catanh
.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
movsd %xmm0, -32(%rbp)
movsd %xmm1, -24(%rbp)
movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero
movsd %xmm1, -112(%rbp) ## 8-byte Spill
movsd -24(%rbp), %xmm2 ## xmm2 = mem[0],zero
movsd %xmm2, -104(%rbp) ## 8-byte Spill
xorps %xmm3, %xmm3
movaps %xmm1, %xmm0
mulsd %xmm3, %xmm0
movsd LCPI0_0(%rip), %xmm4 ## xmm4 = mem[0],zero
movaps %xmm2, %xmm3
mulsd %xmm4, %xmm3
movsd LCPI0_0(%rip), %xmm4 ## xmm4 = mem[0],zero
mulsd %xmm4, %xmm1
xorps %xmm4, %xmm4
mulsd %xmm4, %xmm2
subsd %xmm3, %xmm0
movsd %xmm0, -96(%rbp) ## 8-byte Spill
addsd %xmm2, %xmm1
movsd %xmm1, -88(%rbp) ## 8-byte Spill
ucomisd %xmm0, %xmm0
movsd %xmm0, -80(%rbp) ## 8-byte Spill
movsd %xmm1, -72(%rbp) ## 8-byte Spill
jnp LBB0_3
## %bb.1:
movsd -88(%rbp), %xmm1 ## 8-byte Reload
## xmm1 = mem[0],zero
movsd -96(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
ucomisd %xmm1, %xmm1
movsd %xmm0, -80(%rbp) ## 8-byte Spill
movsd %xmm1, -72(%rbp) ## 8-byte Spill
jnp LBB0_3
## %bb.2:
movsd -104(%rbp), %xmm1 ## 8-byte Reload
## xmm1 = mem[0],zero
movsd -112(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
xorps %xmm2, %xmm2
movsd LCPI0_0(%rip), %xmm3 ## xmm3 = mem[0],zero
callq ___muldc3
movsd %xmm0, -80(%rbp) ## 8-byte Spill
movsd %xmm1, -72(%rbp) ## 8-byte Spill
LBB0_3:
movsd -80(%rbp), %xmm1 ## 8-byte Reload
## xmm1 = mem[0],zero
movsd -72(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
movsd %xmm1, -64(%rbp)
movsd %xmm0, -56(%rbp)
movsd -64(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd -56(%rbp), %xmm1 ## xmm1 = mem[0],zero
callq _catan
movaps %xmm0, %xmm4
movsd %xmm4, -160(%rbp) ## 8-byte Spill
movaps %xmm1, %xmm2
movsd %xmm2, -152(%rbp) ## 8-byte Spill
movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm4, %xmm0
movsd LCPI0_1(%rip), %xmm3 ## xmm3 = mem[0],zero
mulsd %xmm2, %xmm3
movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm2, %xmm1
movsd LCPI0_1(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm4, %xmm2
subsd %xmm3, %xmm0
movsd %xmm0, -144(%rbp) ## 8-byte Spill
addsd %xmm2, %xmm1
movsd %xmm1, -136(%rbp) ## 8-byte Spill
ucomisd %xmm0, %xmm0
movsd %xmm0, -128(%rbp) ## 8-byte Spill
movsd %xmm1, -120(%rbp) ## 8-byte Spill
jnp LBB0_6
## %bb.4:
movsd -136(%rbp), %xmm1 ## 8-byte Reload
## xmm1 = mem[0],zero
movsd -144(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
ucomisd %xmm1, %xmm1
movsd %xmm0, -128(%rbp) ## 8-byte Spill
movsd %xmm1, -120(%rbp) ## 8-byte Spill
jnp LBB0_6
## %bb.5:
movsd -152(%rbp), %xmm3 ## 8-byte Reload
## xmm3 = mem[0],zero
movsd -160(%rbp), %xmm2 ## 8-byte Reload
## xmm2 = mem[0],zero
movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero
callq ___muldc3
movsd %xmm0, -128(%rbp) ## 8-byte Spill
movsd %xmm1, -120(%rbp) ## 8-byte Spill
LBB0_6:
movsd -128(%rbp), %xmm1 ## 8-byte Reload
## xmm1 = mem[0],zero
movsd -120(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
movsd %xmm1, -48(%rbp)
movsd %xmm0, -40(%rbp)
movsd -48(%rbp), %xmm1 ## xmm1 = mem[0],zero
movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm1, -16(%rbp)
movsd %xmm0, -8(%rbp)
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd -8(%rbp), %xmm1 ## xmm1 = mem[0],zero
addq $160, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/90764787.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, #208
.cfi_def_cfa_offset 208
stp x29, x30, [sp, #192] ; 16-byte Folded Spill
add x29, sp, #192
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
str x8, [sp, #80] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
stur x8, [x29, #-40]
mov w8, #-1
stur w8, [x29, #-48]
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #80] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_47
LBB0_2:
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
stur x8, [x29, #-32]
ldur x0, [x29, #-40]
ldur x1, [x29, #-32]
bl _iconv_open
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
adds x8, x8, #1
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #80] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #72] ; 8-byte Folded Spill
ldur x8, [x29, #-32]
str x8, [sp, #56] ; 8-byte Folded Spill
ldur x8, [x29, #-40]
str x8, [sp, #64] ; 8-byte Folded Spill
bl ___error
ldr w0, [x0]
bl _strerror
ldr x11, [sp, #56] ; 8-byte Folded Reload
ldr x10, [sp, #64] ; 8-byte Folded Reload
mov x8, x0
ldr x0, [sp, #72] ; 8-byte Folded Reload
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_47
LBB0_4:
stur wzr, [x29, #-44]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-44]
subs w8, w8, #256
cset w8, ge
tbnz w8, #0, LBB0_41
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-44]
sub x0, x29, #50
sturb w8, [x29, #-50]
sturb wzr, [x29, #-49]
sub x8, x29, #56
stur wzr, [x29, #-56]
sturb wzr, [x29, #-52]
sub x9, x29, #64
str x9, [sp, #40] ; 8-byte Folded Spill
mov x9, x0
stur x9, [x29, #-64]
sub x9, x29, #72
str x9, [sp, #48] ; 8-byte Folded Spill
stur x8, [x29, #-72]
bl _strlen
ldr x1, [sp, #40] ; 8-byte Folded Reload
ldr x3, [sp, #48] ; 8-byte Folded Reload
sub x2, x29, #80
stur x0, [x29, #-80]
sub x4, x29, #88
mov x8, #5
stur x8, [x29, #-88]
ldur x0, [x29, #-24]
bl _iconv
str x0, [sp, #96]
mov w8, #-1
str w8, [sp, #92]
ldr x8, [sp, #96]
adds x8, x8, #1
cset w8, ne
tbnz w8, #0, LBB0_13
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
bl ___error
ldr w8, [x0]
subs w8, w8, #92
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_5 Depth=1
b LBB0_12
LBB0_9:
bl ___error
ldr w8, [x0]
subs w8, w8, #7
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldr x8, [sp, #80] ; 8-byte Folded Reload
ldr x0, [x8]
ldur w9, [x29, #-44]
; implicit-def: $x8
mov x8, x9
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_47
LBB0_11:
ldr x8, [sp, #80] ; 8-byte Folded Reload
ldr x0, [x8]
ldur w9, [x29, #-44]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_47
LBB0_12: ; in Loop: Header=BB0_5 Depth=1
b LBB0_16
LBB0_13: ; in Loop: Header=BB0_5 Depth=1
sub x0, x29, #56
str x0, [sp, #32] ; 8-byte Folded Spill
bl _strlen
mov x9, x0
ldr x0, [sp, #32] ; 8-byte Folded Reload
mov x8, x0
add x1, x8, x9
add x2, sp, #88
bl _utf8decode
str w0, [sp, #92]
ldr w8, [sp, #92]
mov w9, #65533
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_5 Depth=1
mov w8, #-1
str w8, [sp, #92]
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_5 Depth=1
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-48]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_22
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-44]
ldr w9, [sp, #92]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_22
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-48]
add w8, w8, #1
ldur w9, [x29, #-44]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-48]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-48]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB0_21
LBB0_20: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-48]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-44]
; 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
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_5 Depth=1
mov w8, #-1
stur w8, [x29, #-48]
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #92]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_5 Depth=1
ldur w9, [x29, #-44]
; 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
b LBB0_39
LBB0_24: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #92]
subs w8, w8, #255
cset w8, gt
tbnz w8, #0, LBB0_31
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-44]
ldr w9, [sp, #92]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_29
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-48]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_28
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-44]
stur w8, [x29, #-48]
b LBB0_28
LBB0_28: ; in Loop: Header=BB0_5 Depth=1
b LBB0_30
LBB0_29: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-44]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #92]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB0_30
LBB0_30: ; in Loop: Header=BB0_5 Depth=1
b LBB0_38
LBB0_31: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #92]
subs w8, w8, #16, lsl #12 ; =65536
cset w8, ge
tbnz w8, #0, LBB0_33
b LBB0_32
LBB0_32: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-44]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #92]
; 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
b LBB0_37
LBB0_33: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #92]
mov w9, #16777215
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_35
b LBB0_34
LBB0_34: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-44]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #92]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
b LBB0_36
LBB0_35: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-44]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #92]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
b LBB0_36
LBB0_36: ; in Loop: Header=BB0_5 Depth=1
b LBB0_37
LBB0_37: ; in Loop: Header=BB0_5 Depth=1
b LBB0_38
LBB0_38: ; in Loop: Header=BB0_5 Depth=1
b LBB0_39
LBB0_39: ; in Loop: Header=BB0_5 Depth=1
b LBB0_40
LBB0_40: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-44]
add w8, w8, #1
stur w8, [x29, #-44]
b LBB0_5
LBB0_41:
ldur w8, [x29, #-48]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_46
b LBB0_42
LBB0_42:
ldur w8, [x29, #-48]
add w8, w8, #1
ldur w9, [x29, #-44]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_44
b LBB0_43
LBB0_43:
ldur w8, [x29, #-48]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-48]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB0_45
LBB0_44:
ldur w8, [x29, #-48]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-44]
; 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
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB0_45
LBB0_45:
mov w8, #-1
stur w8, [x29, #-48]
b LBB0_46
LBB0_46:
ldur x0, [x29, #-24]
bl _iconv_close
stur wzr, [x29, #-4]
b LBB0_47
LBB0_47:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #192] ; 16-byte Folded Reload
add sp, sp, #208
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function utf8decode
_utf8decode: ; @utf8decode
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #32]
str x1, [sp, #24]
str x2, [sp, #16]
ldr x8, [sp, #32]
ldrb w8, [x8]
strb w8, [sp, #15]
ldrb w8, [sp, #15]
subs w8, w8, #128
cset w8, ge
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr x9, [sp, #16]
mov w8, #1
str w8, [x9]
ldrb w8, [sp, #15]
str w8, [sp, #44]
b LBB1_37
LBB1_2:
ldrb w8, [sp, #15]
subs w8, w8, #194
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
b LBB1_36
LBB1_4:
b LBB1_5
LBB1_5:
ldr x8, [sp, #32]
add x8, x8, #1
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB1_7
b LBB1_6
LBB1_6:
ldr x8, [sp, #32]
ldrsb w8, [x8, #1]
and w8, w8, #0xc0
subs w8, w8, #128
cset w8, eq
tbnz w8, #0, LBB1_8
b LBB1_7
LBB1_7:
b LBB1_36
LBB1_8:
ldrb w8, [sp, #15]
subs w8, w8, #224
cset w8, ge
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
ldr x9, [sp, #16]
mov w8, #2
str w8, [x9]
ldr x8, [sp, #32]
ldrsb w8, [x8]
and w9, w8, #0x1f
ldr x8, [sp, #32]
ldrsb w8, [x8, #1]
and w8, w8, #0x3f
add w8, w8, w9, lsl #6
str w8, [sp, #44]
b LBB1_37
LBB1_10:
ldrb w8, [sp, #15]
subs w8, w8, #224
cset w8, ne
tbnz w8, #0, LBB1_14
b LBB1_11
LBB1_11:
ldr x8, [sp, #32]
ldrb w8, [x8, #1]
subs w8, w8, #160
cset w8, ge
tbnz w8, #0, LBB1_13
b LBB1_12
LBB1_12:
b LBB1_36
LBB1_13:
b LBB1_16
LBB1_14:
ldrb w8, [sp, #15]
subs w8, w8, #240
cset w8, ge
tbnz w8, #0, LBB1_20
b LBB1_15
LBB1_15:
b LBB1_16
LBB1_16:
ldr x8, [sp, #32]
add x8, x8, #2
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB1_18
b LBB1_17
LBB1_17:
ldr x8, [sp, #32]
ldrsb w8, [x8, #2]
and w8, w8, #0xc0
subs w8, w8, #128
cset w8, eq
tbnz w8, #0, LBB1_19
b LBB1_18
LBB1_18:
b LBB1_36
LBB1_19:
ldr x9, [sp, #16]
mov w8, #3
str w8, [x9]
ldr x8, [sp, #32]
ldrsb w8, [x8]
and w9, w8, #0xf
ldr x8, [sp, #32]
ldrsb w8, [x8, #1]
and w8, w8, #0x3f
lsl w8, w8, #6
add w8, w8, w9, lsl #12
ldr x9, [sp, #32]
ldrsb w9, [x9, #2]
and w9, w9, #0x3f
add w8, w8, w9
str w8, [sp, #44]
b LBB1_37
LBB1_20:
ldrb w8, [sp, #15]
subs w8, w8, #240
cset w8, ne
tbnz w8, #0, LBB1_24
b LBB1_21
LBB1_21:
ldr x8, [sp, #32]
ldrb w8, [x8, #1]
subs w8, w8, #144
cset w8, ge
tbnz w8, #0, LBB1_23
b LBB1_22
LBB1_22:
b LBB1_36
LBB1_23:
b LBB1_26
LBB1_24:
ldrb w8, [sp, #15]
subs w8, w8, #244
cset w8, ge
tbnz w8, #0, LBB1_31
b LBB1_25
LBB1_25:
b LBB1_26
LBB1_26:
ldr x8, [sp, #32]
add x8, x8, #3
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB1_29
b LBB1_27
LBB1_27:
ldr x8, [sp, #32]
ldrsb w8, [x8, #2]
and w8, w8, #0xc0
subs w8, w8, #128
cset w8, ne
tbnz w8, #0, LBB1_29
b LBB1_28
LBB1_28:
ldr x8, [sp, #32]
ldrsb w8, [x8, #3]
and w8, w8, #0xc0
subs w8, w8, #128
cset w8, eq
tbnz w8, #0, LBB1_30
b LBB1_29
LBB1_29:
b LBB1_36
LBB1_30:
ldr x9, [sp, #16]
mov w8, #4
str w8, [x9]
ldr x8, [sp, #32]
ldrsb w8, [x8]
and w9, w8, #0x7
ldr x8, [sp, #32]
ldrsb w8, [x8, #1]
and w8, w8, #0x3f
lsl w8, w8, #12
add w8, w8, w9, lsl #18
ldr x9, [sp, #32]
ldrsb w9, [x9, #2]
and w9, w9, #0x3f
add w8, w8, w9, lsl #6
ldr x9, [sp, #32]
ldrsb w9, [x9, #3]
and w9, w9, #0x3f
add w8, w8, w9
str w8, [sp, #44]
b LBB1_37
LBB1_31:
ldrb w8, [sp, #15]
subs w8, w8, #244
cset w8, ne
tbnz w8, #0, LBB1_35
b LBB1_32
LBB1_32:
ldr x8, [sp, #32]
ldrb w8, [x8, #1]
subs w8, w8, #143
cset w8, le
tbnz w8, #0, LBB1_34
b LBB1_33
LBB1_33:
b LBB1_36
LBB1_34:
b LBB1_26
LBB1_35:
b LBB1_36
LBB1_36:
ldr x9, [sp, #16]
mov w8, #1
str w8, [x9]
mov w8, #65533
str w8, [sp, #44]
b LBB1_37
LBB1_37:
ldr w0, [sp, #44]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "UTF-8"
l_.str.1: ; @.str.1
.asciz "Usage: generate_encoding_table encoding_name\n"
l_.str.2: ; @.str.2
.asciz "Recode from %s to %s failed with the error: \"%s\"."
l_.str.3: ; @.str.3
.asciz "E2BIG for %d\n"
l_.str.4: ; @.str.4
.asciz "other error for %d\n"
l_.str.5: ; @.str.5
.asciz "info->map[0x%02X] = 0x%02X;\n"
l_.str.6: ; @.str.6
.asciz "for(i = 0x%02X; i < 0x%02X; i++)\n"
l_.str.7: ; @.str.7
.asciz " info->map[i] = i;\n"
l_.str.8: ; @.str.8
.asciz "info->map[0x%02X] = -1;\n"
l_.str.9: ; @.str.9
.asciz "info->map[0x%02X] = 0x%04X;\n"
l_.str.10: ; @.str.10
.asciz "info->map[0x%02X] = 0x%06X;\n"
l_.str.11: ; @.str.11
.asciz "info->map[0x%02X] = 0x%08X;\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 $144, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
leaq L_.str(%rip), %rax
movq %rax, -40(%rbp)
movl $-1, -48(%rbp)
cmpl $2, -8(%rbp)
je LBB0_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -4(%rbp)
jmp LBB0_47
LBB0_2:
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
movq -40(%rbp), %rdi
movq -32(%rbp), %rsi
callq _iconv_open
movq %rax, -24(%rbp)
movq $-1, %rax
cmpq %rax, -24(%rbp)
jne LBB0_4
## %bb.3:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -128(%rbp) ## 8-byte Spill
movq -32(%rbp), %rax
movq %rax, -120(%rbp) ## 8-byte Spill
movq -40(%rbp), %rax
movq %rax, -112(%rbp) ## 8-byte Spill
callq ___error
movl (%rax), %edi
callq _strerror
movq -128(%rbp), %rdi ## 8-byte Reload
movq -120(%rbp), %rdx ## 8-byte Reload
movq -112(%rbp), %rcx ## 8-byte Reload
movq %rax, %r8
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -4(%rbp)
jmp LBB0_47
LBB0_4:
movl $0, -44(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
cmpl $256, -44(%rbp) ## imm = 0x100
jge LBB0_41
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl -44(%rbp), %eax
## kill: def $al killed $al killed $eax
movb %al, -50(%rbp)
movb $0, -49(%rbp)
leaq -55(%rbp), %rdi
xorl %esi, %esi
movl $5, %edx
callq _memset
leaq -50(%rbp), %rax
movq %rax, -64(%rbp)
leaq -55(%rbp), %rax
movq %rax, -72(%rbp)
leaq -50(%rbp), %rdi
callq _strlen
movq %rax, -80(%rbp)
movq $5, -88(%rbp)
movq -24(%rbp), %rdi
leaq -64(%rbp), %rsi
leaq -80(%rbp), %rdx
leaq -72(%rbp), %rcx
leaq -88(%rbp), %r8
callq _iconv
movq %rax, -96(%rbp)
movl $-1, -100(%rbp)
cmpq $-1, -96(%rbp)
jne LBB0_13
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
callq ___error
cmpl $92, (%rax)
jne LBB0_9
## %bb.8: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_12
LBB0_9:
callq ___error
cmpl $7, (%rax)
jne LBB0_11
## %bb.10:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -44(%rbp), %edx
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -4(%rbp)
jmp LBB0_47
LBB0_11:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -44(%rbp), %edx
leaq L_.str.4(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -4(%rbp)
jmp LBB0_47
LBB0_12: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_16
LBB0_13: ## in Loop: Header=BB0_5 Depth=1
leaq -55(%rbp), %rax
movq %rax, -136(%rbp) ## 8-byte Spill
leaq -55(%rbp), %rax
movq %rax, -144(%rbp) ## 8-byte Spill
leaq -55(%rbp), %rdi
callq _strlen
movq -144(%rbp), %rsi ## 8-byte Reload
movq -136(%rbp), %rdi ## 8-byte Reload
addq %rax, %rsi
leaq -104(%rbp), %rdx
callq _utf8decode
movl %eax, -100(%rbp)
cmpl $65533, -100(%rbp) ## imm = 0xFFFD
jne LBB0_15
## %bb.14: ## in Loop: Header=BB0_5 Depth=1
movl $-1, -100(%rbp)
LBB0_15: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_16
LBB0_16: ## in Loop: Header=BB0_5 Depth=1
cmpl $0, -48(%rbp)
jl LBB0_22
## %bb.17: ## in Loop: Header=BB0_5 Depth=1
movl -44(%rbp), %eax
cmpl -100(%rbp), %eax
je LBB0_22
## %bb.18: ## in Loop: Header=BB0_5 Depth=1
movl -48(%rbp), %eax
addl $1, %eax
cmpl -44(%rbp), %eax
jne LBB0_20
## %bb.19: ## in Loop: Header=BB0_5 Depth=1
movl -48(%rbp), %esi
movl -48(%rbp), %edx
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_21
LBB0_20: ## in Loop: Header=BB0_5 Depth=1
movl -48(%rbp), %esi
movl -44(%rbp), %edx
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
LBB0_21: ## in Loop: Header=BB0_5 Depth=1
movl $-1, -48(%rbp)
LBB0_22: ## in Loop: Header=BB0_5 Depth=1
cmpl $0, -100(%rbp)
jge LBB0_24
## %bb.23: ## in Loop: Header=BB0_5 Depth=1
movl -44(%rbp), %esi
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_39
LBB0_24: ## in Loop: Header=BB0_5 Depth=1
cmpl $255, -100(%rbp)
jg LBB0_31
## %bb.25: ## in Loop: Header=BB0_5 Depth=1
movl -44(%rbp), %eax
cmpl -100(%rbp), %eax
jne LBB0_29
## %bb.26: ## in Loop: Header=BB0_5 Depth=1
cmpl $0, -48(%rbp)
jge LBB0_28
## %bb.27: ## in Loop: Header=BB0_5 Depth=1
movl -44(%rbp), %eax
movl %eax, -48(%rbp)
LBB0_28: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_30
LBB0_29: ## in Loop: Header=BB0_5 Depth=1
movl -44(%rbp), %esi
movl -100(%rbp), %edx
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
LBB0_30: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_38
LBB0_31: ## in Loop: Header=BB0_5 Depth=1
cmpl $65535, -100(%rbp) ## imm = 0xFFFF
jg LBB0_33
## %bb.32: ## in Loop: Header=BB0_5 Depth=1
movl -44(%rbp), %esi
movl -100(%rbp), %edx
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_37
LBB0_33: ## in Loop: Header=BB0_5 Depth=1
cmpl $16777215, -100(%rbp) ## imm = 0xFFFFFF
jg LBB0_35
## %bb.34: ## in Loop: Header=BB0_5 Depth=1
movl -44(%rbp), %esi
movl -100(%rbp), %edx
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_36
LBB0_35: ## in Loop: Header=BB0_5 Depth=1
movl -44(%rbp), %esi
movl -100(%rbp), %edx
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
LBB0_36: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_37
LBB0_37: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_38
LBB0_38: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_39
LBB0_39: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_40
LBB0_40: ## in Loop: Header=BB0_5 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_5
LBB0_41:
cmpl $0, -48(%rbp)
jl LBB0_46
## %bb.42:
movl -48(%rbp), %eax
addl $1, %eax
cmpl -44(%rbp), %eax
jne LBB0_44
## %bb.43:
movl -48(%rbp), %esi
movl -48(%rbp), %edx
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_45
LBB0_44:
movl -48(%rbp), %esi
movl -44(%rbp), %edx
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
LBB0_45:
movl $-1, -48(%rbp)
LBB0_46:
movq -24(%rbp), %rdi
callq _iconv_close
movl $0, -4(%rbp)
LBB0_47:
movl -4(%rbp), %eax
addq $144, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function utf8decode
_utf8decode: ## @utf8decode
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq -16(%rbp), %rax
movb (%rax), %al
movb %al, -33(%rbp)
movzbl -33(%rbp), %eax
cmpl $128, %eax
jge LBB1_2
## %bb.1:
movq -32(%rbp), %rax
movl $1, (%rax)
movzbl -33(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB1_37
LBB1_2:
movzbl -33(%rbp), %eax
cmpl $194, %eax
jge LBB1_4
## %bb.3:
jmp LBB1_36
LBB1_4:
jmp LBB1_5
LBB1_5:
movq -16(%rbp), %rax
addq $1, %rax
cmpq -24(%rbp), %rax
jae LBB1_7
## %bb.6:
movq -16(%rbp), %rax
movsbl 1(%rax), %eax
andl $192, %eax
cmpl $128, %eax
je LBB1_8
LBB1_7:
jmp LBB1_36
LBB1_8:
movzbl -33(%rbp), %eax
cmpl $224, %eax
jge LBB1_10
## %bb.9:
movq -32(%rbp), %rax
movl $2, (%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
andl $31, %eax
shll $6, %eax
movq -16(%rbp), %rcx
movsbl 1(%rcx), %ecx
andl $63, %ecx
addl %ecx, %eax
movl %eax, -4(%rbp)
jmp LBB1_37
LBB1_10:
movzbl -33(%rbp), %eax
cmpl $224, %eax
jne LBB1_14
## %bb.11:
movq -16(%rbp), %rax
movzbl 1(%rax), %eax
cmpl $160, %eax
jge LBB1_13
## %bb.12:
jmp LBB1_36
LBB1_13:
jmp LBB1_16
LBB1_14:
movzbl -33(%rbp), %eax
cmpl $240, %eax
jge LBB1_20
## %bb.15:
jmp LBB1_16
LBB1_16:
movq -16(%rbp), %rax
addq $2, %rax
cmpq -24(%rbp), %rax
jae LBB1_18
## %bb.17:
movq -16(%rbp), %rax
movsbl 2(%rax), %eax
andl $192, %eax
cmpl $128, %eax
je LBB1_19
LBB1_18:
jmp LBB1_36
LBB1_19:
movq -32(%rbp), %rax
movl $3, (%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
andl $15, %eax
shll $12, %eax
movq -16(%rbp), %rcx
movsbl 1(%rcx), %ecx
andl $63, %ecx
shll $6, %ecx
addl %ecx, %eax
movq -16(%rbp), %rcx
movsbl 2(%rcx), %ecx
andl $63, %ecx
addl %ecx, %eax
movl %eax, -4(%rbp)
jmp LBB1_37
LBB1_20:
movzbl -33(%rbp), %eax
cmpl $240, %eax
jne LBB1_24
## %bb.21:
movq -16(%rbp), %rax
movzbl 1(%rax), %eax
cmpl $144, %eax
jge LBB1_23
## %bb.22:
jmp LBB1_36
LBB1_23:
jmp LBB1_26
LBB1_24:
movzbl -33(%rbp), %eax
cmpl $244, %eax
jge LBB1_31
## %bb.25:
jmp LBB1_26
LBB1_26:
movq -16(%rbp), %rax
addq $3, %rax
cmpq -24(%rbp), %rax
jae LBB1_29
## %bb.27:
movq -16(%rbp), %rax
movsbl 2(%rax), %eax
andl $192, %eax
cmpl $128, %eax
jne LBB1_29
## %bb.28:
movq -16(%rbp), %rax
movsbl 3(%rax), %eax
andl $192, %eax
cmpl $128, %eax
je LBB1_30
LBB1_29:
jmp LBB1_36
LBB1_30:
movq -32(%rbp), %rax
movl $4, (%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
andl $7, %eax
shll $18, %eax
movq -16(%rbp), %rcx
movsbl 1(%rcx), %ecx
andl $63, %ecx
shll $12, %ecx
addl %ecx, %eax
movq -16(%rbp), %rcx
movsbl 2(%rcx), %ecx
andl $63, %ecx
shll $6, %ecx
addl %ecx, %eax
movq -16(%rbp), %rcx
movsbl 3(%rcx), %ecx
andl $63, %ecx
addl %ecx, %eax
movl %eax, -4(%rbp)
jmp LBB1_37
LBB1_31:
movzbl -33(%rbp), %eax
cmpl $244, %eax
jne LBB1_35
## %bb.32:
movq -16(%rbp), %rax
movzbl 1(%rax), %eax
cmpl $143, %eax
jle LBB1_34
## %bb.33:
jmp LBB1_36
LBB1_34:
jmp LBB1_26
LBB1_35:
jmp LBB1_36
LBB1_36:
movq -32(%rbp), %rax
movl $1, (%rax)
movl $65533, -4(%rbp) ## imm = 0xFFFD
LBB1_37:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "UTF-8"
L_.str.1: ## @.str.1
.asciz "Usage: generate_encoding_table encoding_name\n"
L_.str.2: ## @.str.2
.asciz "Recode from %s to %s failed with the error: \"%s\"."
L_.str.3: ## @.str.3
.asciz "E2BIG for %d\n"
L_.str.4: ## @.str.4
.asciz "other error for %d\n"
L_.str.5: ## @.str.5
.asciz "info->map[0x%02X] = 0x%02X;\n"
L_.str.6: ## @.str.6
.asciz "for(i = 0x%02X; i < 0x%02X; i++)\n"
L_.str.7: ## @.str.7
.asciz " info->map[i] = i;\n"
L_.str.8: ## @.str.8
.asciz "info->map[0x%02X] = -1;\n"
L_.str.9: ## @.str.9
.asciz "info->map[0x%02X] = 0x%04X;\n"
L_.str.10: ## @.str.10
.asciz "info->map[0x%02X] = 0x%06X;\n"
L_.str.11: ## @.str.11
.asciz "info->map[0x%02X] = 0x%08X;\n"
.subsections_via_symbols
| the_stack_data/1167184.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:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _foo
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:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _foo
mov w0, #0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _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
callq _foo
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
callq _foo
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/118768.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
add x8, sp, #8
mov w9, #10
str w9, [sp, #8]
str x8, [sp]
ldr x9, [sp]
mov w8, #42
str w8, [x9]
ldr w8, [sp, #8]
subs w8, w8, #42
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l___func__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #7
adrp x3, l_.str.1@PAGE
add x3, x3, l_.str.1@PAGEOFF
bl ___assert_rtn
LBB0_2:
b LBB0_3
LBB0_3:
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___func__.main: ; @__func__.main
.asciz "main"
l_.str: ; @.str
.asciz "62638227.c"
l_.str.1: ; @.str.1
.asciz "a == 42"
.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 $10, -8(%rbp)
leaq -8(%rbp), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movl $42, (%rax)
cmpl $42, -8(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_2
## %bb.1:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rcx
movl $7, %edx
callq ___assert_rtn
LBB0_2:
jmp LBB0_3
LBB0_3:
movl -4(%rbp), %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 "62638227.c"
L_.str.1: ## @.str.1
.asciz "a == 42"
.subsections_via_symbols
| the_stack_data/62638227.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
str x1, [sp, #16]
ldur w8, [x29, #-8]
subs 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_11
LBB0_2:
ldur w8, [x29, #-8]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB0_9
b LBB0_3
LBB0_3:
ldur w8, [x29, #-8]
subs w8, w8, #4
cset w8, ge
tbnz w8, #0, LBB0_9
b LBB0_4
LBB0_4:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
str wzr, [sp, #12]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_5
LBB0_8:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_10
LBB0_9:
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
b LBB0_10
LBB0_10:
b LBB0_11
LBB0_11:
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "You only have one argument. You suck. \n"
l_.str.1: ; @.str.1
.asciz "Here is your arguments:"
l_.str.2: ; @.str.2
.asciz "%s\n"
l_.str.3: ; @.str.3
.asciz "\n"
l_.str.4: ; @.str.4
.asciz "%d is too many arguments"
.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)
cmpl $1, -8(%rbp)
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_11
LBB0_2:
cmpl $1, -8(%rbp)
jle LBB0_9
## %bb.3:
cmpl $4, -8(%rbp)
jge LBB0_9
## %bb.4:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -20(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_5
LBB0_8:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_10
LBB0_9:
movl -8(%rbp), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
LBB0_10:
jmp LBB0_11
LBB0_11:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "You only have one argument. You suck. \n"
L_.str.1: ## @.str.1
.asciz "Here is your arguments:"
L_.str.2: ## @.str.2
.asciz "%s\n"
L_.str.3: ## @.str.3
.asciz "\n"
L_.str.4: ## @.str.4
.asciz "%d is too many arguments"
.subsections_via_symbols
| the_stack_data/122015460.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-28]
mov x9, sp
add x8, sp, #32
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr w8, [sp, #32]
subs w9, w8, #1
str w9, [sp, #32]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov x9, sp
sub x8, x29, #23
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
str wzr, [sp, #28]
str wzr, [sp, #24]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldrsw x8, [sp, #24]
str x8, [sp, #16] ; 8-byte Folded Spill
sub x0, x29, #23
bl _strlen
ldr x8, [sp, #16] ; 8-byte Folded Reload
subs x8, x8, x0
cset w8, hs
tbnz w8, #0, LBB0_8
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldrsw x9, [sp, #24]
sub x8, x29, #23
ldrsb w8, [x8, x9]
subs w8, w8, #52
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
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, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_3
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr w9, [sp, #28]
; 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_1
LBB0_9:
ldur w8, [x29, #-28]
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, LBB0_11
b LBB0_10
LBB0_10:
bl ___stack_chk_fail
LBB0_11:
ldr w0, [sp, #12] ; 4-byte Folded Reload
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
l_.str.1: ; @.str.1
.asciz "%s"
l_.str.2: ; @.str.2
.asciz "%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -28(%rbp)
leaq L_.str(%rip), %rdi
leaq -32(%rbp), %rsi
movb $0, %al
callq _scanf
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movl -32(%rbp), %eax
movl %eax, %ecx
addl $-1, %ecx
movl %ecx, -32(%rbp)
cmpl $0, %eax
je LBB0_9
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.1(%rip), %rdi
leaq -23(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -36(%rbp)
movl $0, -40(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movslq -40(%rbp), %rax
movq %rax, -48(%rbp) ## 8-byte Spill
leaq -23(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -48(%rbp), %rax ## 8-byte Reload
cmpq %rcx, %rax
jae LBB0_8
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movslq -40(%rbp), %rax
movsbl -23(%rbp,%rax), %eax
cmpl $52, %eax
jne LBB0_6
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
LBB0_6: ## in Loop: Header=BB0_3 Depth=2
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_3 Depth=2
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_3
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movl -36(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_1
LBB0_9:
movl -28(%rbp), %eax
movl %eax, -52(%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 -52(%rbp), %eax ## 4-byte Reload
addq $64, %rsp
popq %rbp
retq
LBB0_11:
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 "%s"
L_.str.2: ## @.str.2
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/1165681.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 wzr, [x29, #-16]
mov x9, sp
adrp x8, _n@GOTPAGE
ldr x8, [x8, _n@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
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
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w8, [x8]
stur w8, [x29, #-20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
subs w9, w8, #1
stur w9, [x29, #-20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldursw x9, [x29, #-16]
adrp x8, _A@GOTPAGE
ldr x8, [x8, _A@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
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB0_1
LBB0_3:
adrp x8, _K@GOTPAGE
ldr x8, [x8, _K@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-20]
b LBB0_4
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
subs w9, w8, #1
stur w9, [x29, #-20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=1
mov x9, sp
sub x8, x29, #8
str x8, [x9]
sub x8, x29, #12
str x8, [x9, #8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
ldur w0, [x29, #-8]
ldur w1, [x29, #-12]
bl _N
str w0, [sp, #20] ; 4-byte Folded Spill
ldur w0, [x29, #-8]
ldur w1, [x29, #-12]
bl _M
mov x1, x0
ldr w0, [sp, #20] ; 4-byte Folded Reload
bl _min
str w0, [sp, #28] ; 4-byte Folded Spill
ldur w0, [x29, #-8]
ldur w1, [x29, #-12]
bl _N
str w0, [sp, #24] ; 4-byte Folded Spill
ldur w0, [x29, #-8]
ldur w1, [x29, #-12]
bl _M
mov x1, x0
ldr w0, [sp, #24] ; 4-byte Folded Reload
bl _max
mov x1, x0
ldr w0, [sp, #28] ; 4-byte Folded Reload
bl _H
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_4
LBB0_6:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _H ; -- Begin function H
.p2align 2
_H: ; @H
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str w1, [sp, #8]
str wzr, [sp, #4]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldr w9, [sp, #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
ldr w8, [sp, #4]
ldrsw x10, [sp, #12]
adrp x9, _A@GOTPAGE
ldr x9, [x9, _A@GOTPAGEOFF]
ldr w9, [x9, x10, lsl #2]
eor w8, w8, w9
str w8, [sp, #4]
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB1_1
LBB1_4:
ldr w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _min ; -- Begin function min
.p2align 2
_min: ; @min
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #8]
str w1, [sp, #4]
ldr w8, [sp, #8]
ldr w9, [sp, #4]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldr w8, [sp, #4]
str w8, [sp, #12]
b LBB2_3
LBB2_2:
ldr w8, [sp, #8]
str w8, [sp, #12]
b LBB2_3
LBB2_3:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _N ; -- Begin function N
.p2align 2
_N: ; @N
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str w1, [sp, #8]
str wzr, [sp, #4]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldr w9, [sp, #8]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB3_4
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldrsw x9, [sp, #12]
adrp x8, _A@GOTPAGE
ldr x8, [x8, _A@GOTPAGEOFF]
ldr w8, [x8, x9, lsl #2]
adrp x9, _n@GOTPAGE
ldr x9, [x9, _n@GOTPAGEOFF]
ldr w10, [x9]
sdiv w9, w8, w10
mul w9, w9, w10
subs w9, w8, w9
ldr w8, [sp, #4]
add w8, w8, w9
str w8, [sp, #4]
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:
ldr w8, [sp, #4]
adrp x9, _n@GOTPAGE
ldr x9, [x9, _n@GOTPAGEOFF]
ldr w10, [x9]
sdiv w9, w8, w10
mul w9, w9, w10
subs w0, w8, w9
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _M ; -- Begin function M
.p2align 2
_M: ; @M
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
adrp x8, _n@GOTPAGE
ldr x8, [x8, _n@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
str w0, [sp, #28]
str w1, [sp, #24]
mov w8, #1
str w8, [sp, #20]
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #28]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB4_4
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr w8, [sp, #20]
ldr w11, [x9]
sdiv w10, w8, w11
mul w10, w10, w11
subs w8, w8, w10
ldrsw x11, [sp, #28]
adrp x10, _A@GOTPAGE
ldr x10, [x10, _A@GOTPAGEOFF]
ldr w10, [x10, x11, lsl #2]
ldr w12, [x9]
sdiv w11, w10, w12
mul w11, w11, w12
subs w10, w10, w11
mul w8, w8, w10
ldr w10, [x9]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #20]
b LBB4_3
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB4_1
LBB4_4:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr w8, [sp, #20]
ldr w10, [x9]
sdiv w9, w8, w10
mul w9, w9, w10
subs w0, w8, w9
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _max ; -- Begin function max
.p2align 2
_max: ; @max
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #8]
str w1, [sp, #4]
ldr w8, [sp, #8]
ldr w9, [sp, #4]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
ldr w8, [sp, #8]
str w8, [sp, #12]
b LBB5_3
LBB5_2:
ldr w8, [sp, #4]
str w8, [sp, #12]
b LBB5_3
LBB5_3:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d %d\n"
.comm _n,4,2 ; @n
.comm _K,4,2 ; @K
l_.str.1: ; @.str.1
.asciz "%d"
.comm _A,40004,2 ; @A
l_.str.2: ; @.str.2
.asciz "%d %d"
l_.str.3: ; @.str.3
.asciz "%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
movl $0, -16(%rbp)
leaq L_.str(%rip), %rdi
movq _n@GOTPCREL(%rip), %rsi
movq _K@GOTPCREL(%rip), %rdx
movb $0, %al
callq _scanf
movq _n@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
movl %eax, %ecx
addl $-1, %ecx
movl %ecx, -20(%rbp)
cmpl $0, %eax
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -16(%rbp), %rax
movq _A@GOTPCREL(%rip), %rsi
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_1
LBB0_3:
movq _K@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -20(%rbp)
LBB0_4: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
movl %eax, %ecx
addl $-1, %ecx
movl %ecx, -20(%rbp)
cmpl $0, %eax
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
leaq L_.str.2(%rip), %rdi
leaq -8(%rbp), %rsi
leaq -12(%rbp), %rdx
movb $0, %al
callq _scanf
movl -8(%rbp), %edi
movl -12(%rbp), %esi
callq _N
movl %eax, -36(%rbp) ## 4-byte Spill
movl -8(%rbp), %edi
movl -12(%rbp), %esi
callq _M
movl -36(%rbp), %edi ## 4-byte Reload
movl %eax, %esi
callq _min
movl %eax, -28(%rbp) ## 4-byte Spill
movl -8(%rbp), %edi
movl -12(%rbp), %esi
callq _N
movl %eax, -32(%rbp) ## 4-byte Spill
movl -8(%rbp), %edi
movl -12(%rbp), %esi
callq _M
movl -32(%rbp), %edi ## 4-byte Reload
movl %eax, %esi
callq _max
movl -28(%rbp), %edi ## 4-byte Reload
movl %eax, %esi
callq _H
movl %eax, %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_4
LBB0_6:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _H ## -- Begin function H
.p2align 4, 0x90
_H: ## @H
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl $0, -12(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -4(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -12(%rbp), %eax
movslq -4(%rbp), %rdx
movq _A@GOTPCREL(%rip), %rcx
xorl (%rcx,%rdx,4), %eax
movl %eax, -12(%rbp)
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB1_1
LBB1_4:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _min ## -- Begin function min
.p2align 4, 0x90
_min: ## @min
.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 -8(%rbp), %eax
cmpl -12(%rbp), %eax
jl LBB2_2
## %bb.1:
movl -12(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB2_3
LBB2_2:
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
LBB2_3:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _N ## -- Begin function N
.p2align 4, 0x90
_N: ## @N
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl $0, -12(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movl -4(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB3_4
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movslq -4(%rbp), %rcx
movq _A@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %eax
movq _n@GOTPCREL(%rip), %rcx
cltd
idivl (%rcx)
addl -12(%rbp), %edx
movl %edx, -12(%rbp)
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB3_1
LBB3_4:
movl -12(%rbp), %eax
movq _n@GOTPCREL(%rip), %rcx
cltd
idivl (%rcx)
movl %edx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _M ## -- Begin function M
.p2align 4, 0x90
_M: ## @M
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl $1, -12(%rbp)
LBB4_1: ## =>This Inner Loop Header: Depth=1
movl -4(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB4_4
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movl -12(%rbp), %eax
movq _n@GOTPCREL(%rip), %rcx
cltd
idivl (%rcx)
movl %edx, -16(%rbp) ## 4-byte Spill
movslq -4(%rbp), %rcx
movq _A@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %eax
movq _n@GOTPCREL(%rip), %rcx
cltd
idivl (%rcx)
movl -16(%rbp), %eax ## 4-byte Reload
imull %edx, %eax
movq _n@GOTPCREL(%rip), %rcx
cltd
idivl (%rcx)
movl %edx, -12(%rbp)
## %bb.3: ## in Loop: Header=BB4_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB4_1
LBB4_4:
movl -12(%rbp), %eax
movq _n@GOTPCREL(%rip), %rcx
cltd
idivl (%rcx)
movl %edx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _max ## -- Begin function max
.p2align 4, 0x90
_max: ## @max
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -8(%rbp)
movl %esi, -12(%rbp)
movl -8(%rbp), %eax
cmpl -12(%rbp), %eax
jl LBB5_2
## %bb.1:
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB5_3
LBB5_2:
movl -12(%rbp), %eax
movl %eax, -4(%rbp)
LBB5_3:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d %d\n"
.comm _n,4,2 ## @n
.comm _K,4,2 ## @K
L_.str.1: ## @.str.1
.asciz "%d"
.comm _A,40004,4 ## @A
L_.str.2: ## @.str.2
.asciz "%d %d"
L_.str.3: ## @.str.3
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/59511547.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/17936.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/82949228.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, #464
.cfi_def_cfa_offset 464
stp x28, x27, [sp, #432] ; 16-byte Folded Spill
stp x29, x30, [sp, #448] ; 16-byte Folded Spill
add x29, sp, #448
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #20]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #12
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
str wzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #16]
add x8, sp, #24
add x8, x8, x9, lsl #2
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_1
LBB0_4:
ldr w1, [sp, #12]
add x0, sp, #24
bl _selectionSort
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
str wzr, [sp, #16]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldrsw x9, [sp, #16]
add x8, sp, #24
ldr w9, [x8, x9, lsl #2]
; 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
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_5
LBB0_8:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@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_10
b LBB0_9
LBB0_9:
bl ___stack_chk_fail
LBB0_10:
mov w0, #0
ldp x29, x30, [sp, #448] ; 16-byte Folded Reload
ldp x28, x27, [sp, #432] ; 16-byte Folded Reload
add sp, sp, #464
ret
.cfi_endproc
; -- End function
.globl _selectionSort ; -- Begin function selectionSort
.p2align 2
_selectionSort: ; @selectionSort
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str w1, [sp, #20]
str wzr, [sp, #16]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_3 Depth 2
ldr w8, [sp, #16]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_12
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #16]
str w8, [sp, #4]
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #12]
b LBB1_3
LBB1_3: ; Parent Loop BB1_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #12]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_8
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=2
ldr x8, [sp, #24]
ldrsw x9, [sp, #12]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #24]
ldrsw x10, [sp, #4]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=2
ldr w8, [sp, #12]
str w8, [sp, #4]
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_3 Depth=2
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_3 Depth=2
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB1_3
LBB1_8: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp, #4]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #8]
ldr x8, [sp, #24]
ldrsw x9, [sp, #16]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #24]
ldrsw x10, [sp, #4]
str w8, [x9, x10, lsl #2]
ldr w8, [sp, #8]
ldr x9, [sp, #24]
ldrsw x10, [sp, #16]
str w8, [x9, x10, lsl #2]
b LBB1_10
LBB1_10: ; in Loop: Header=BB1_1 Depth=1
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB1_1
LBB1_12:
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Enter size of the array : "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Enter elements in array : \n"
l_.str.3: ; @.str.3
.asciz "The sorted Array : \n"
l_.str.4: ; @.str.4
.asciz "%d\t"
l_.str.5: ; @.str.5
.asciz "\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $432, %rsp ## imm = 0x1B0
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -420(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -428(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -424(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -424(%rbp), %eax
cmpl -428(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -424(%rbp), %rax
leaq -416(%rbp), %rsi
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -424(%rbp), %eax
addl $1, %eax
movl %eax, -424(%rbp)
jmp LBB0_1
LBB0_4:
leaq -416(%rbp), %rdi
movl -428(%rbp), %esi
callq _selectionSort
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -424(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movl -424(%rbp), %eax
cmpl -428(%rbp), %eax
jge LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movslq -424(%rbp), %rax
movl -416(%rbp,%rax,4), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movl -424(%rbp), %eax
addl $1, %eax
movl %eax, -424(%rbp)
jmp LBB0_5
LBB0_8:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_10
## %bb.9:
xorl %eax, %eax
addq $432, %rsp ## imm = 0x1B0
popq %rbp
retq
LBB0_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _selectionSort ## -- Begin function selectionSort
.p2align 4, 0x90
_selectionSort: ## @selectionSort
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl $0, -16(%rbp)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_3 Depth 2
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB1_12
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -16(%rbp), %eax
movl %eax, -28(%rbp)
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
LBB1_3: ## Parent Loop BB1_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -20(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB1_8
## %bb.4: ## in Loop: Header=BB1_3 Depth=2
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -8(%rbp), %rcx
movslq -28(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge LBB1_6
## %bb.5: ## in Loop: Header=BB1_3 Depth=2
movl -20(%rbp), %eax
movl %eax, -28(%rbp)
LBB1_6: ## in Loop: Header=BB1_3 Depth=2
jmp LBB1_7
LBB1_7: ## in Loop: Header=BB1_3 Depth=2
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB1_3
LBB1_8: ## in Loop: Header=BB1_1 Depth=1
movl -28(%rbp), %eax
cmpl -16(%rbp), %eax
je LBB1_10
## %bb.9: ## in Loop: Header=BB1_1 Depth=1
movq -8(%rbp), %rax
movslq -28(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -24(%rbp)
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -8(%rbp), %rax
movslq -28(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -24(%rbp), %edx
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
LBB1_10: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_11
LBB1_11: ## in Loop: Header=BB1_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_1
LBB1_12:
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter size of the array : "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Enter elements in array : \n"
L_.str.3: ## @.str.3
.asciz "The sorted Array : \n"
L_.str.4: ## @.str.4
.asciz "%d\t"
L_.str.5: ## @.str.5
.asciz "\n"
.subsections_via_symbols
| the_stack_data/401054.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _copy_file ; -- Begin function copy_file
.p2align 2
_copy_file: ; @copy_file
.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]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w0, [x29, #-8]
add x1, sp, #15
str x1, [sp] ; 8-byte Folded Spill
mov x2, #1
bl _read
ldr x1, [sp] ; 8-byte Folded Reload
mov x8, x0
str w8, [sp, #16]
ldur w0, [x29, #-12]
ldrsw x2, [sp, #16]
bl _write
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_1
b LBB0_3
LBB0_3:
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, #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 x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w0, #0
bl _exit
LBB1_2:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
mov w1, #0
bl _open
str w0, [sp, #12]
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
ldr x8, [sp, #16]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w0, #0
bl _exit
LBB1_4:
ldr x8, [sp, #16]
ldr x0, [x8, #16]
mov x9, sp
mov x8, #420
str x8, [x9]
mov w1, #2561
bl _open
str w0, [sp, #8]
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5:
ldr x8, [sp, #16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov w0, #0
bl _exit
LBB1_6:
ldr w0, [sp, #12]
ldr w1, [sp, #8]
bl _copy_file
ldr w0, [sp, #12]
bl _close
ldr w0, [sp, #8]
bl _close
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 "The format must be:cp file_src file_des\n"
l_.str.1: ; @.str.1
.asciz "mycp: %s: No such file or directory\n"
l_.str.2: ; @.str.2
.asciz "mycp: %s: Can't create such file\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _copy_file ## -- Begin function copy_file
.p2align 4, 0x90
_copy_file: ## @copy_file
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -8(%rbp)
movl %esi, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -8(%rbp), %edi
leaq -17(%rbp), %rsi
movl $1, %edx
callq _read
## kill: def $eax killed $eax killed $rax
movl %eax, -16(%rbp)
movl -12(%rbp), %edi
leaq -17(%rbp), %rsi
movslq -16(%rbp), %rdx
callq _write
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
cmpl $1, -16(%rbp)
je LBB0_1
## %bb.3:
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 $48, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $3, -8(%rbp)
je LBB1_2
## %bb.1:
leaq L_.str(%rip), %rdi
xorl %eax, %eax
movl %eax, -28(%rbp) ## 4-byte Spill
callq _printf
movl -28(%rbp), %edi ## 4-byte Reload
callq _exit
LBB1_2:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
xorl %esi, %esi
movb $0, %al
callq _open
movl %eax, -20(%rbp)
cmpl $-1, %eax
jne LBB1_4
## %bb.3:
movq -16(%rbp), %rax
movq 8(%rax), %rsi
leaq L_.str.1(%rip), %rdi
xorl %eax, %eax
movl %eax, -32(%rbp) ## 4-byte Spill
callq _printf
movl -32(%rbp), %edi ## 4-byte Reload
callq _exit
LBB1_4:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
movl $2561, %esi ## imm = 0xA01
movl $420, %edx ## imm = 0x1A4
movb $0, %al
callq _open
movl %eax, -24(%rbp)
cmpl $-1, %eax
jne LBB1_6
## %bb.5:
movq -16(%rbp), %rax
movq 16(%rax), %rsi
leaq L_.str.2(%rip), %rdi
xorl %eax, %eax
movl %eax, -36(%rbp) ## 4-byte Spill
callq _printf
movl -36(%rbp), %edi ## 4-byte Reload
callq _exit
LBB1_6:
movl -20(%rbp), %edi
movl -24(%rbp), %esi
callq _copy_file
movl -20(%rbp), %edi
callq _close
movl -24(%rbp), %edi
callq _close
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "The format must be:cp file_src file_des\n"
L_.str.1: ## @.str.1
.asciz "mycp: %s: No such file or directory\n"
L_.str.2: ## @.str.2
.asciz "mycp: %s: Can't create such file\n"
.subsections_via_symbols
| the_stack_data/211081850.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _do_div ; -- Begin function do_div
.p2align 2
_do_div: ; @do_div
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
fmov d1, #2.00000000
; implicit-def: $q0
fmov d0, d1
dup.2d v1, v0[0]
str x0, [sp, #24]
str x1, [sp, #16]
ldr x8, [sp, #16]
ldr q0, [x8]
str q1, [sp]
ldr q1, [sp]
fdiv.2d v0, v0, v1
ldr x8, [sp, #24]
str q0, [x8]
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
.section __TEXT,__literal16,16byte_literals
.p2align 4 ## -- Begin function do_div
LCPI0_0:
.quad 0x4000000000000000 ## double 2
.quad 0x4000000000000000 ## double 2
.section __TEXT,__text,regular,pure_instructions
.globl _do_div
.p2align 4, 0x90
_do_div: ## @do_div
.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 -16(%rbp), %rax
movapd (%rax), %xmm0
movapd LCPI0_0(%rip), %xmm1 ## xmm1 = [2.0E+0,2.0E+0]
movapd %xmm1, -32(%rbp)
divpd -32(%rbp), %xmm0
movq -8(%rbp), %rax
movapd %xmm0, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/104179.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, #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, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
stur x8, [x29, #-56] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
mov w8, #10
stur w8, [x29, #-24]
ldur x8, [x29, #-16]
ldr x0, [x8]
mov w1, #1
bl _ftok
stur w0, [x29, #-48]
adds w8, w0, #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 _perror
mov w0, #1
bl _exit
LBB0_2:
ldur w0, [x29, #-48]
mov w1, #1
mov w2, #1920
bl _semget
stur w0, [x29, #-20]
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_3
LBB0_3:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _perror
bl ___error
ldr w8, [x0]
subs w8, w8, #17
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_4
LBB0_4:
ldur w0, [x29, #-48]
mov w1, #1
stur w1, [x29, #-60] ; 4-byte Folded Spill
mov w2, #384
bl _semget
stur w0, [x29, #-20]
ldur w0, [x29, #-20]
mov x8, sp
str xzr, [x8]
mov w2, #0
mov x1, x2
bl _semctl
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x0, [x8]
ldur w9, [x29, #-20]
; 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
ldur w1, [x29, #-60] ; 4-byte Folded Reload
ldur w0, [x29, #-48]
mov w2, #1920
bl _semget
stur w0, [x29, #-20]
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_6:
b LBB0_8
LBB0_7:
mov w0, #1
bl _exit
LBB0_8:
b LBB0_9
LBB0_9:
ldur w0, [x29, #-20]
mov x9, sp
mov x8, #1
str x8, [x9]
mov w1, #0
mov w2, #8
bl _semctl
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_11:
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x8, [x8]
stur x8, [x29, #-72] ; 8-byte Folded Spill
bl _getpid
mov x10, x0
ldur x0, [x29, #-72] ; 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
bl _fork
stur w0, [x29, #-40]
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_13:
ldur w8, [x29, #-40]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_22
b LBB0_14
LBB0_14:
b LBB0_15
LBB0_15: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-24]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_21
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_15 Depth=1
sub x1, x29, #34
sturh wzr, [x29, #-34]
mov w8, #65535
sturh w8, [x29, #-32]
mov w8, #4096
sturh w8, [x29, #-30]
ldur w0, [x29, #-20]
mov x2, #1
bl _semop
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_18: ; in Loop: Header=BB0_15 Depth=1
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x8, [x8]
stur x8, [x29, #-80] ; 8-byte Folded Spill
ldur w9, [x29, #-24]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #88] ; 8-byte Folded Spill
subs w8, w8, #1
stur w8, [x29, #-24]
bl _getpid
ldr x8, [sp, #88] ; 8-byte Folded Reload
mov x10, x0
ldur x0, [x29, #-80] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
adrp x1, l_.str.7@PAGE
add x1, x1, l_.str.7@PAGEOFF
bl _fprintf
sub x1, x29, #34
sturh wzr, [x29, #-34]
mov w8, #1
sturh w8, [x29, #-32]
mov w8, #4096
sturh w8, [x29, #-30]
ldur w0, [x29, #-20]
mov x2, #1
bl _semop
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_20: ; in Loop: Header=BB0_15 Depth=1
b LBB0_15
LBB0_21:
b LBB0_30
LBB0_22:
b LBB0_23
LBB0_23: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-24]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_29
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_23 Depth=1
sub x1, x29, #34
sturh wzr, [x29, #-34]
mov w8, #65535
sturh w8, [x29, #-32]
mov w8, #4096
sturh w8, [x29, #-30]
ldur w0, [x29, #-20]
mov x2, #1
bl _semop
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_26
b LBB0_25
LBB0_25:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_26: ; in Loop: Header=BB0_23 Depth=1
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #80] ; 8-byte Folded Spill
ldur w9, [x29, #-24]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #72] ; 8-byte Folded Spill
subs w8, w8, #1
stur w8, [x29, #-24]
bl _getpid
ldr x8, [sp, #72] ; 8-byte Folded Reload
mov x10, x0
ldr x0, [sp, #80] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
adrp x1, l_.str.8@PAGE
add x1, x1, l_.str.8@PAGEOFF
bl _fprintf
sub x1, x29, #34
sturh wzr, [x29, #-34]
mov w8, #1
sturh w8, [x29, #-32]
mov w8, #4096
sturh w8, [x29, #-30]
ldur w0, [x29, #-20]
mov x2, #1
bl _semop
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_28
b LBB0_27
LBB0_27:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_28: ; in Loop: Header=BB0_23 Depth=1
b LBB0_23
LBB0_29:
b LBB0_30
LBB0_30:
ldur w8, [x29, #-40]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_45
b LBB0_31
LBB0_31:
mov w0, #-1
sub x1, x29, #28
mov w2, #0
bl _waitpid
stur w0, [x29, #-44]
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_33
b LBB0_32
LBB0_32:
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_33:
ldur w8, [x29, #-28]
ands w8, w8, #0x7f
cset w8, eq
ands w8, w8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_41
b LBB0_34
LBB0_34:
ldur w8, [x29, #-28]
asr w8, w8, #8
ands w8, w8, #0xff
cset w8, ne
tbnz w8, #0, LBB0_36
b LBB0_35
LBB0_35:
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #64] ; 8-byte Folded Spill
bl _getpid
mov x12, x0
ldr x0, [sp, #64] ; 8-byte Folded Reload
ldur w9, [x29, #-44]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-28]
asr w9, w9, #8
and w10, w9, #0xff
mov x9, sp
; implicit-def: $x11
mov x11, x12
str x11, [x9]
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #16]
adrp x1, l_.str.10@PAGE
add x1, x1, l_.str.10@PAGEOFF
bl _fprintf
b LBB0_40
LBB0_36:
ldur w8, [x29, #-28]
asr w8, w8, #8
and w8, w8, #0xff
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_38
b LBB0_37
LBB0_37:
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #56] ; 8-byte Folded Spill
bl _getpid
mov x12, x0
ldr x0, [sp, #56] ; 8-byte Folded Reload
ldur w9, [x29, #-44]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-28]
asr w9, w9, #8
and w10, w9, #0xff
mov x9, sp
; implicit-def: $x11
mov x11, x12
str x11, [x9]
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #16]
adrp x1, l_.str.11@PAGE
add x1, x1, l_.str.11@PAGEOFF
bl _fprintf
b LBB0_39
LBB0_38:
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #48] ; 8-byte Folded Spill
bl _getpid
mov x12, x0
ldr x0, [sp, #48] ; 8-byte Folded Reload
ldur w9, [x29, #-44]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-28]
asr w9, w9, #8
and w10, w9, #0xff
mov x9, sp
; implicit-def: $x11
mov x11, x12
str x11, [x9]
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #16]
adrp x1, l_.str.12@PAGE
add x1, x1, l_.str.12@PAGEOFF
bl _fprintf
b LBB0_39
LBB0_39:
b LBB0_40
LBB0_40:
b LBB0_42
LBB0_41:
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #40] ; 8-byte Folded Spill
bl _getpid
mov x11, x0
ldr x0, [sp, #40] ; 8-byte Folded Reload
ldur w9, [x29, #-44]
; implicit-def: $x8
mov x8, x9
mov x9, sp
; implicit-def: $x10
mov x10, x11
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.13@PAGE
add x1, x1, l_.str.13@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_42:
ldur w0, [x29, #-20]
mov x8, sp
str xzr, [x8]
mov w2, #0
mov x1, x2
bl _semctl
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_44
b LBB0_43
LBB0_43:
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_44:
b LBB0_45
LBB0_45:
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #32] ; 8-byte Folded Spill
bl _getpid
mov x10, x0
ldr x0, [sp, #32] ; 8-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x1, l_.str.15@PAGE
add x1, x1, l_.str.15@PAGEOFF
bl _fprintf
mov w0, #0
bl _exit
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Error in ftok"
l_.str.1: ; @.str.1
.asciz "Error in semget"
l_.str.2: ; @.str.2
.asciz "Previous semid %d removed\n"
l_.str.3: ; @.str.3
.asciz "Error in semctl"
l_.str.4: ; @.str.4
.asciz "\tRoot PID\t%d\n"
l_.str.5: ; @.str.5
.asciz "Error in fork"
l_.str.6: ; @.str.6
.asciz "Error in semop"
l_.str.7: ; @.str.7
.asciz "i %d\tChild PID\t%d\n"
l_.str.8: ; @.str.8
.asciz "i %d\tParent PID\t%d\n"
l_.str.9: ; @.str.9
.asciz "Error in waitpid"
l_.str.10: ; @.str.10
.asciz "\n\tParent PID\t%d\t\tChild PID\t%d finished with code %d == EXIT_SUCCESS\n"
l_.str.11: ; @.str.11
.asciz "\n\tParent PID\t%d\t\tChild PID\t%d finished with code %d == EXIT_FAILURE\n"
l_.str.12: ; @.str.12
.asciz "\n\tParent PID\t%d\t\tChild PID\t%d finished with code %d\n"
l_.str.13: ; @.str.13
.asciz "\n\tParent PID\t%d\t\tChild PID\t%d abnormally finished\n"
l_.str.14: ; @.str.14
.asciz "Error in semctl IPC_RMID"
l_.str.15: ; @.str.15
.asciz "\n\tPID\t\t%d finished\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 $144, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $10, -24(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rdi
movl $1, %esi
callq _ftok
movl %eax, -52(%rbp)
cmpl $-1, %eax
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_2:
movl -52(%rbp), %edi
movl $1, %esi
movl $1920, %edx ## imm = 0x780
callq _semget
movl %eax, -20(%rbp)
cmpl $-1, %eax
jne LBB0_9
## %bb.3:
leaq L_.str.1(%rip), %rdi
callq _perror
callq ___error
cmpl $17, (%rax)
jne LBB0_7
## %bb.4:
movl -52(%rbp), %edi
movl $1, %esi
movl $384, %edx ## imm = 0x180
callq _semget
movl %eax, -20(%rbp)
movl -20(%rbp), %edi
xorl %ecx, %ecx
movl %ecx, %esi
movl %ecx, %edx
movb $0, %al
callq _semctl
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -20(%rbp), %edx
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _fprintf
movl -52(%rbp), %edi
movl $1, %esi
movl $1920, %edx ## imm = 0x780
callq _semget
movl %eax, -20(%rbp)
cmpl $-1, %eax
jne LBB0_6
## %bb.5:
leaq L_.str.1(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_6:
jmp LBB0_8
LBB0_7:
movl $1, %edi
callq _exit
LBB0_8:
jmp LBB0_9
LBB0_9:
movl -20(%rbp), %edi
xorl %esi, %esi
movl $8, %edx
movl $1, %ecx
movb $0, %al
callq _semctl
cmpl $-1, %eax
jne LBB0_11
## %bb.10:
leaq L_.str.3(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_11:
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -64(%rbp) ## 8-byte Spill
callq _getpid
movq -64(%rbp), %rdi ## 8-byte Reload
movl %eax, %edx
leaq L_.str.4(%rip), %rsi
movb $0, %al
callq _fprintf
callq _fork
movl %eax, -44(%rbp)
cmpl $-1, %eax
jne LBB0_13
## %bb.12:
leaq L_.str.5(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_13:
cmpl $0, -44(%rbp)
jne LBB0_22
## %bb.14:
jmp LBB0_15
LBB0_15: ## =>This Inner Loop Header: Depth=1
cmpl $0, -24(%rbp)
jle LBB0_21
## %bb.16: ## in Loop: Header=BB0_15 Depth=1
movw $0, -40(%rbp)
movw $-1, -38(%rbp)
movw $4096, -36(%rbp) ## imm = 0x1000
movl -20(%rbp), %edi
leaq -40(%rbp), %rsi
movl $1, %edx
callq _semop
cmpl $-1, %eax
jne LBB0_18
## %bb.17:
leaq L_.str.6(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_18: ## in Loop: Header=BB0_15 Depth=1
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -80(%rbp) ## 8-byte Spill
movl -24(%rbp), %eax
movl %eax, -68(%rbp) ## 4-byte Spill
addl $-1, %eax
movl %eax, -24(%rbp)
callq _getpid
movq -80(%rbp), %rdi ## 8-byte Reload
movl -68(%rbp), %edx ## 4-byte Reload
movl %eax, %ecx
leaq L_.str.7(%rip), %rsi
movb $0, %al
callq _fprintf
movw $0, -40(%rbp)
movw $1, -38(%rbp)
movw $4096, -36(%rbp) ## imm = 0x1000
movl -20(%rbp), %edi
leaq -40(%rbp), %rsi
movl $1, %edx
callq _semop
cmpl $-1, %eax
jne LBB0_20
## %bb.19:
leaq L_.str.6(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_20: ## in Loop: Header=BB0_15 Depth=1
jmp LBB0_15
LBB0_21:
jmp LBB0_30
LBB0_22:
jmp LBB0_23
LBB0_23: ## =>This Inner Loop Header: Depth=1
cmpl $0, -24(%rbp)
jle LBB0_29
## %bb.24: ## in Loop: Header=BB0_23 Depth=1
movw $0, -40(%rbp)
movw $-1, -38(%rbp)
movw $4096, -36(%rbp) ## imm = 0x1000
movl -20(%rbp), %edi
leaq -40(%rbp), %rsi
movl $1, %edx
callq _semop
cmpl $-1, %eax
jne LBB0_26
## %bb.25:
leaq L_.str.6(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_26: ## in Loop: Header=BB0_23 Depth=1
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -96(%rbp) ## 8-byte Spill
movl -24(%rbp), %eax
movl %eax, -84(%rbp) ## 4-byte Spill
addl $-1, %eax
movl %eax, -24(%rbp)
callq _getpid
movq -96(%rbp), %rdi ## 8-byte Reload
movl -84(%rbp), %edx ## 4-byte Reload
movl %eax, %ecx
leaq L_.str.8(%rip), %rsi
movb $0, %al
callq _fprintf
movw $0, -40(%rbp)
movw $1, -38(%rbp)
movw $4096, -36(%rbp) ## imm = 0x1000
movl -20(%rbp), %edi
leaq -40(%rbp), %rsi
movl $1, %edx
callq _semop
cmpl $-1, %eax
jne LBB0_28
## %bb.27:
leaq L_.str.6(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_28: ## in Loop: Header=BB0_23 Depth=1
jmp LBB0_23
LBB0_29:
jmp LBB0_30
LBB0_30:
cmpl $0, -44(%rbp)
jle LBB0_45
## %bb.31:
movl $4294967295, %edi ## imm = 0xFFFFFFFF
leaq -28(%rbp), %rsi
xorl %edx, %edx
callq _waitpid
movl %eax, -48(%rbp)
cmpl $-1, %eax
jne LBB0_33
## %bb.32:
leaq L_.str.9(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_33:
movl -28(%rbp), %eax
andl $127, %eax
cmpl $0, %eax
sete %al
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
je LBB0_41
## %bb.34:
movl -28(%rbp), %eax
sarl $8, %eax
andl $255, %eax
cmpl $0, %eax
jne LBB0_36
## %bb.35:
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -104(%rbp) ## 8-byte Spill
callq _getpid
movq -104(%rbp), %rdi ## 8-byte Reload
movl %eax, %edx
movl -48(%rbp), %ecx
movl -28(%rbp), %r8d
sarl $8, %r8d
andl $255, %r8d
leaq L_.str.10(%rip), %rsi
movb $0, %al
callq _fprintf
jmp LBB0_40
LBB0_36:
movl -28(%rbp), %eax
sarl $8, %eax
andl $255, %eax
cmpl $1, %eax
jne LBB0_38
## %bb.37:
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -112(%rbp) ## 8-byte Spill
callq _getpid
movq -112(%rbp), %rdi ## 8-byte Reload
movl %eax, %edx
movl -48(%rbp), %ecx
movl -28(%rbp), %r8d
sarl $8, %r8d
andl $255, %r8d
leaq L_.str.11(%rip), %rsi
movb $0, %al
callq _fprintf
jmp LBB0_39
LBB0_38:
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -120(%rbp) ## 8-byte Spill
callq _getpid
movq -120(%rbp), %rdi ## 8-byte Reload
movl %eax, %edx
movl -48(%rbp), %ecx
movl -28(%rbp), %r8d
sarl $8, %r8d
andl $255, %r8d
leaq L_.str.12(%rip), %rsi
movb $0, %al
callq _fprintf
LBB0_39:
jmp LBB0_40
LBB0_40:
jmp LBB0_42
LBB0_41:
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -128(%rbp) ## 8-byte Spill
callq _getpid
movq -128(%rbp), %rdi ## 8-byte Reload
movl %eax, %edx
movl -48(%rbp), %ecx
leaq L_.str.13(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_42:
movl -20(%rbp), %edi
xorl %ecx, %ecx
movl %ecx, %esi
movl %ecx, %edx
movb $0, %al
callq _semctl
cmpl $-1, %eax
jne LBB0_44
## %bb.43:
leaq L_.str.14(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_44:
jmp LBB0_45
LBB0_45:
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -144(%rbp) ## 8-byte Spill
callq _getpid
movq -144(%rbp), %rdi ## 8-byte Reload
movl %eax, %edx
leaq L_.str.15(%rip), %rsi
xorl %eax, %eax
movl %eax, -132(%rbp) ## 4-byte Spill
callq _fprintf
movl -132(%rbp), %edi ## 4-byte Reload
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Error in ftok"
L_.str.1: ## @.str.1
.asciz "Error in semget"
L_.str.2: ## @.str.2
.asciz "Previous semid %d removed\n"
L_.str.3: ## @.str.3
.asciz "Error in semctl"
L_.str.4: ## @.str.4
.asciz "\tRoot PID\t%d\n"
L_.str.5: ## @.str.5
.asciz "Error in fork"
L_.str.6: ## @.str.6
.asciz "Error in semop"
L_.str.7: ## @.str.7
.asciz "i %d\tChild PID\t%d\n"
L_.str.8: ## @.str.8
.asciz "i %d\tParent PID\t%d\n"
L_.str.9: ## @.str.9
.asciz "Error in waitpid"
L_.str.10: ## @.str.10
.asciz "\n\tParent PID\t%d\t\tChild PID\t%d finished with code %d == EXIT_SUCCESS\n"
L_.str.11: ## @.str.11
.asciz "\n\tParent PID\t%d\t\tChild PID\t%d finished with code %d == EXIT_FAILURE\n"
L_.str.12: ## @.str.12
.asciz "\n\tParent PID\t%d\t\tChild PID\t%d finished with code %d\n"
L_.str.13: ## @.str.13
.asciz "\n\tParent PID\t%d\t\tChild PID\t%d abnormally finished\n"
L_.str.14: ## @.str.14
.asciz "Error in semctl IPC_RMID"
L_.str.15: ## @.str.15
.asciz "\n\tPID\t\t%d finished\n"
.subsections_via_symbols
| the_stack_data/36926.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pflush ; -- Begin function pflush
.p2align 2
_pflush: ; @pflush
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _update_panels
bl _doupdate
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _backfill ; -- Begin function backfill
.p2align 2
_backfill: ; @backfill
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _stdscr@GOTPAGE
ldr x8, [x8, _stdscr@GOTPAGEOFF]
ldr x0, [x8]
bl _werase
stur wzr, [x29, #-4]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_3 Depth 2
ldur w8, [x29, #-4]
adrp x9, _LINES@GOTPAGE
ldr x9, [x9, _LINES@GOTPAGEOFF]
ldr w9, [x9]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_8
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
str wzr, [sp, #8]
b LBB1_3
LBB1_3: ; Parent Loop BB1_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #8]
adrp x9, _COLS@GOTPAGE
ldr x9, [x9, _COLS@GOTPAGEOFF]
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=2
ldur w8, [x29, #-4]
ldr w9, [sp, #8]
add w8, w8, w9
mov w10, #10
sdiv w9, w8, w10
mul w9, w9, w10
subs w10, w8, w9
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printw
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=2
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB1_3
LBB1_6: ; in Loop: Header=BB1_1 Depth=1
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-4]
b LBB1_1
LBB1_8:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _wait_a_while ; -- Begin function wait_a_while
.p2align 2
_wait_a_while: ; @wait_a_while
.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]
subs x8, x8, #1
cset w8, eq
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
adrp x8, _stdscr@GOTPAGE
ldr x8, [x8, _stdscr@GOTPAGEOFF]
ldr x0, [x8]
ldr x8, [sp, #8]
mov x1, x8
bl _wtimeout
b LBB2_2
LBB2_2:
adrp x8, _stdscr@GOTPAGE
ldr x8, [x8, _stdscr@GOTPAGEOFF]
ldr x0, [x8]
bl _wgetch
str w0, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #113
cset w8, ne
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3:
bl _endwin
mov w0, #1
bl _exit
LBB2_4:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _saywhat ; -- Begin function saywhat
.p2align 2
_saywhat: ; @saywhat
.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]
adrp x8, _LINES@GOTPAGE
ldr x8, [x8, _LINES@GOTPAGEOFF]
ldr w8, [x8]
subs w0, w8, #1
ldr x8, [sp, #8]
mov x9, sp
str x8, [x9]
mov w1, #0
adrp x2, l_.str.7@PAGE
add x2, x2, l_.str.7@PAGEOFF
bl _mvprintw
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _mkpanel ; -- Begin function mkpanel
.p2align 2
_mkpanel: ; @mkpanel
.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 w2, [x29, #-12]
str w3, [sp, #16]
ldur w0, [x29, #-4]
ldur w1, [x29, #-8]
ldur w2, [x29, #-12]
ldr w3, [sp, #16]
bl _newwin
str x0, [sp, #8]
; kill: def $x8 killed $xzr
str xzr, [sp]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB4_4
b LBB4_1
LBB4_1:
ldr x0, [sp, #8]
bl _new_panel
str x0, [sp]
ldr x8, [sp]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB4_3
b LBB4_2
LBB4_2:
ldr x0, [sp, #8]
bl _delwin
b LBB4_3
LBB4_3:
b LBB4_4
LBB4_4:
ldr x0, [sp]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _rmpanel ; -- Begin function rmpanel
.p2align 2
_rmpanel: ; @rmpanel
.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 x8, [x8]
str x8, [sp]
ldr x0, [sp, #8]
bl _del_panel
ldr x0, [sp]
bl _delwin
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _fill_panel ; -- Begin function fill_panel
.p2align 2
_fill_panel: ; @fill_panel
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8]
stur x8, [x29, #-16]
ldur x8, [x29, #-8]
ldr x8, [x8, #24]
ldrb w8, [x8, #1]
sturb w8, [x29, #-17]
ldur x0, [x29, #-16]
mov x8, sp
mov w7, #0
str wzr, [x8]
mov x1, x7
mov x2, x7
mov x3, x7
mov x4, x7
mov x5, x7
mov x6, x7
bl _wborder
ldur x0, [x29, #-16]
ldursb w10, [x29, #-17]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
mov w2, #1
mov x1, x2
adrp x3, l_.str.8@PAGE
add x3, x3, l_.str.8@PAGEOFF
bl _mvwprintw
ldur x0, [x29, #-16]
bl _getmaxy
str w0, [sp, #16]
ldur x0, [x29, #-16]
bl _getmaxx
str w0, [sp, #12]
mov w8, #2
str w8, [sp, #24]
b LBB6_1
LBB6_1: ; =>This Loop Header: Depth=1
; Child Loop BB6_3 Depth 2
ldr w8, [sp, #24]
ldr w9, [sp, #16]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB6_11
b LBB6_2
LBB6_2: ; in Loop: Header=BB6_1 Depth=1
mov w8, #1
str w8, [sp, #20]
b LBB6_3
LBB6_3: ; Parent Loop BB6_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #20]
ldr w9, [sp, #12]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB6_9
b LBB6_4
LBB6_4: ; in Loop: Header=BB6_3 Depth=2
ldur x0, [x29, #-16]
ldr w1, [sp, #24]
ldr w2, [sp, #20]
bl _wmove
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB6_6
b LBB6_5
LBB6_5: ; in Loop: Header=BB6_3 Depth=2
b LBB6_7
LBB6_6: ; in Loop: Header=BB6_3 Depth=2
ldur x0, [x29, #-16]
ldursb w1, [x29, #-17]
bl _waddch
b LBB6_7
LBB6_7: ; in Loop: Header=BB6_3 Depth=2
b LBB6_8
LBB6_8: ; in Loop: Header=BB6_3 Depth=2
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB6_3
LBB6_9: ; in Loop: Header=BB6_1 Depth=1
b LBB6_10
LBB6_10: ; in Loop: Header=BB6_1 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB6_1
LBB6_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, #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, _p1@GOTPAGE
ldr x8, [x8, _p1@GOTPAGEOFF]
str x8, [sp, #48] ; 8-byte Folded Spill
adrp x8, _p2@GOTPAGE
ldr x8, [x8, _p2@GOTPAGEOFF]
str x8, [sp, #56] ; 8-byte Folded Spill
adrp x8, _p3@GOTPAGE
ldr x8, [x8, _p3@GOTPAGEOFF]
str x8, [sp, #64] ; 8-byte Folded Spill
adrp x8, _p4@GOTPAGE
ldr x8, [x8, _p4@GOTPAGEOFF]
stur x8, [x29, #-56] ; 8-byte Folded Spill
adrp x8, _w4@GOTPAGE
ldr x8, [x8, _w4@GOTPAGEOFF]
stur x8, [x29, #-48] ; 8-byte Folded Spill
adrp x8, _p5@GOTPAGE
ldr x8, [x8, _p5@GOTPAGEOFF]
stur x8, [x29, #-40] ; 8-byte Folded Spill
adrp x8, _w5@GOTPAGE
ldr x8, [x8, _w5@GOTPAGEOFF]
stur x8, [x29, #-32] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur w8, [x29, #-8]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB7_3
b LBB7_1
LBB7_1:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
bl _atol
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB7_3
b LBB7_2
LBB7_2:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
bl _atol
adrp x8, _nap_msec@PAGE
str x0, [x8, _nap_msec@PAGEOFF]
b LBB7_3
LBB7_3:
bl _initscr
bl _backfill
stur wzr, [x29, #-24]
b LBB7_4
LBB7_4: ; =>This Loop Header: Depth=1
; Child Loop BB7_6 Depth 2
ldur w8, [x29, #-24]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB7_25
b LBB7_5
LBB7_5: ; in Loop: Header=BB7_4 Depth=1
mov w1, #10
str w1, [sp, #24] ; 4-byte Folded Spill
mov x0, x1
mov w3, #0
str w3, [sp, #20] ; 4-byte Folded Spill
mov x2, x3
bl _mkpanel
ldr x8, [sp, #48] ; 8-byte Folded Reload
str x0, [x8]
ldr x0, [x8]
adrp x1, l_.str.9@PAGE
add x1, x1, l_.str.9@PAGEOFF
bl _set_panel_userptr
mov w1, #14
mov x0, x1
mov w3, #5
str w3, [sp, #28] ; 4-byte Folded Spill
mov x2, x3
bl _mkpanel
ldr x8, [sp, #56] ; 8-byte Folded Reload
str x0, [x8]
ldr x0, [x8]
adrp x1, l_.str.10@PAGE
add x1, x1, l_.str.10@PAGEOFF
bl _set_panel_userptr
mov w0, #6
mov w1, #8
mov w3, #12
mov x2, x3
bl _mkpanel
ldr x8, [sp, #64] ; 8-byte Folded Reload
str x0, [x8]
ldr x0, [x8]
adrp x1, l_.str.11@PAGE
add x1, x1, l_.str.11@PAGEOFF
bl _set_panel_userptr
ldr w2, [sp, #24] ; 4-byte Folded Reload
mov x0, x2
mov x1, x2
mov w3, #30
bl _mkpanel
ldur x8, [x29, #-56] ; 8-byte Folded Reload
str x0, [x8]
ldr x0, [x8]
bl _panel_window
ldur x9, [x29, #-48] ; 8-byte Folded Reload
ldur x8, [x29, #-56] ; 8-byte Folded Reload
str x0, [x9]
ldr x0, [x8]
adrp x1, l_.str.12@PAGE
add x1, x1, l_.str.12@PAGEOFF
bl _set_panel_userptr
ldr w1, [sp, #24] ; 4-byte Folded Reload
mov x0, x1
mov w2, #13
mov w3, #37
bl _mkpanel
ldur x8, [x29, #-40] ; 8-byte Folded Reload
str x0, [x8]
ldr x0, [x8]
bl _panel_window
ldur x9, [x29, #-32] ; 8-byte Folded Reload
ldur x8, [x29, #-40] ; 8-byte Folded Reload
str x0, [x9]
ldr x0, [x8]
adrp x1, l_.str.13@PAGE
add x1, x1, l_.str.13@PAGEOFF
bl _set_panel_userptr
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fill_panel
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fill_panel
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fill_panel
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fill_panel
ldur x8, [x29, #-40] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fill_panel
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _hide_panel
ldur x8, [x29, #-40] ; 8-byte Folded Reload
ldr x0, [x8]
bl _hide_panel
bl _pflush
adrp x8, _nap_msec@PAGE
str x8, [sp, #40] ; 8-byte Folded Spill
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _saywhat
ldr w2, [sp, #20] ; 4-byte Folded Reload
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x0, [x8]
mov x1, x2
bl _move_panel
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr x0, [x8]
bl _hide_panel
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x0, [x8]
bl _show_panel
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _show_panel
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _show_panel
ldur x8, [x29, #-40] ; 8-byte Folded Reload
ldr x0, [x8]
bl _show_panel
bl _pflush
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _saywhat
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x0, [x8]
bl _show_panel
bl _pflush
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.16@PAGE
add x0, x0, l_.str.16@PAGEOFF
bl _saywhat
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _show_panel
bl _pflush
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.17@PAGE
add x0, x0, l_.str.17@PAGEOFF
bl _saywhat
ldr w2, [sp, #24] ; 4-byte Folded Reload
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
mov x1, x2
bl _move_panel
bl _pflush
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.18@PAGE
add x0, x0, l_.str.18@PAGEOFF
bl _saywhat
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr x0, [x8]
bl _show_panel
bl _pflush
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.19@PAGE
add x0, x0, l_.str.19@PAGEOFF
bl _saywhat
ldr w2, [sp, #28] ; 4-byte Folded Reload
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr x0, [x8]
mov x1, x2
bl _move_panel
bl _pflush
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.20@PAGE
add x0, x0, l_.str.20@PAGEOFF
bl _saywhat
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr x0, [x8]
bl _bottom_panel
bl _pflush
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.21@PAGE
add x0, x0, l_.str.21@PAGEOFF
bl _saywhat
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _show_panel
bl _pflush
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.22@PAGE
add x0, x0, l_.str.22@PAGEOFF
bl _saywhat
ldur x8, [x29, #-40] ; 8-byte Folded Reload
ldr x0, [x8]
bl _show_panel
bl _pflush
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.23@PAGE
add x0, x0, l_.str.23@PAGEOFF
str x0, [sp, #32] ; 8-byte Folded Spill
bl _saywhat
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr x0, [x8]
bl _top_panel
bl _pflush
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.24@PAGE
add x0, x0, l_.str.24@PAGEOFF
bl _saywhat
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x0, [x8]
bl _top_panel
bl _pflush
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.25@PAGE
add x0, x0, l_.str.25@PAGEOFF
bl _saywhat
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _top_panel
bl _pflush
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
ldr x0, [sp, #32] ; 8-byte Folded Reload
bl _saywhat
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr x0, [x8]
bl _top_panel
bl _pflush
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.26@PAGE
add x0, x0, l_.str.26@PAGEOFF
bl _saywhat
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _top_panel
bl _pflush
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
stur wzr, [x29, #-20]
b LBB7_6
LBB7_6: ; Parent Loop BB7_4 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-20]
subs w8, w8, #6
cset w8, ge
tbnz w8, #0, LBB7_21
b LBB7_7
LBB7_7: ; in Loop: Header=BB7_6 Depth=2
adrp x0, l_.str.27@PAGE
add x0, x0, l_.str.27@PAGEOFF
bl _saywhat
ldur x8, [x29, #-48] ; 8-byte Folded Reload
ldr x0, [x8]
mov w1, #3
mov w2, #1
bl _wmove
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB7_9
b LBB7_8
LBB7_8: ; in Loop: Header=BB7_6 Depth=2
b LBB7_10
LBB7_9: ; in Loop: Header=BB7_6 Depth=2
ldur x8, [x29, #-48] ; 8-byte Folded Reload
ldr x0, [x8]
ldursw x9, [x29, #-20]
adrp x8, _mod@PAGE
add x8, x8, _mod@PAGEOFF
ldr x1, [x8, x9, lsl #3]
mov w2, #-1
bl _waddnstr
b LBB7_10
LBB7_10: ; in Loop: Header=BB7_6 Depth=2
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x0, [x8]
ldur w8, [x29, #-20]
mov w9, #10
mul w2, w8, w9
mov w1, #4
str w1, [sp, #16] ; 4-byte Folded Spill
bl _move_panel
ldur x8, [x29, #-32] ; 8-byte Folded Reload
ldr w1, [sp, #16] ; 4-byte Folded Reload
ldr x0, [x8]
mov w2, #1
bl _wmove
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB7_12
b LBB7_11
LBB7_11: ; in Loop: Header=BB7_6 Depth=2
b LBB7_13
LBB7_12: ; in Loop: Header=BB7_6 Depth=2
ldur x8, [x29, #-32] ; 8-byte Folded Reload
ldr x0, [x8]
ldursw x9, [x29, #-20]
adrp x8, _mod@PAGE
add x8, x8, _mod@PAGEOFF
ldr x1, [x8, x9, lsl #3]
mov w2, #-1
bl _waddnstr
b LBB7_13
LBB7_13: ; in Loop: Header=BB7_6 Depth=2
bl _pflush
adrp x8, _nap_msec@PAGE
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.28@PAGE
add x0, x0, l_.str.28@PAGEOFF
bl _saywhat
ldur x8, [x29, #-48] ; 8-byte Folded Reload
ldr x0, [x8]
mov w1, #4
mov w2, #1
bl _wmove
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB7_15
b LBB7_14
LBB7_14: ; in Loop: Header=BB7_6 Depth=2
b LBB7_16
LBB7_15: ; in Loop: Header=BB7_6 Depth=2
ldur x8, [x29, #-48] ; 8-byte Folded Reload
ldr x0, [x8]
ldursw x9, [x29, #-20]
adrp x8, _mod@PAGE
add x8, x8, _mod@PAGEOFF
ldr x1, [x8, x9, lsl #3]
mov w2, #-1
bl _waddnstr
b LBB7_16
LBB7_16: ; in Loop: Header=BB7_6 Depth=2
ldur x8, [x29, #-40] ; 8-byte Folded Reload
ldr x0, [x8]
ldur w8, [x29, #-20]
mov w9, #10
mul w8, w8, w9
add w2, w8, #6
mov w1, #7
bl _move_panel
ldur x8, [x29, #-32] ; 8-byte Folded Reload
ldr x0, [x8]
mov w1, #3
mov w2, #1
bl _wmove
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB7_18
b LBB7_17
LBB7_17: ; in Loop: Header=BB7_6 Depth=2
b LBB7_19
LBB7_18: ; in Loop: Header=BB7_6 Depth=2
ldur x8, [x29, #-32] ; 8-byte Folded Reload
ldr x0, [x8]
ldursw x9, [x29, #-20]
adrp x8, _mod@PAGE
add x8, x8, _mod@PAGEOFF
ldr x1, [x8, x9, lsl #3]
mov w2, #-1
bl _waddnstr
b LBB7_19
LBB7_19: ; in Loop: Header=BB7_6 Depth=2
bl _pflush
adrp x8, _nap_msec@PAGE
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
b LBB7_20
LBB7_20: ; in Loop: Header=BB7_6 Depth=2
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB7_6
LBB7_21: ; in Loop: Header=BB7_4 Depth=1
adrp x0, l_.str.27@PAGE
add x0, x0, l_.str.27@PAGEOFF
bl _saywhat
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x0, [x8]
ldur w8, [x29, #-20]
mov w9, #10
mul w2, w8, w9
mov w1, #4
bl _move_panel
bl _pflush
adrp x8, _nap_msec@PAGE
str x8, [sp, #8] ; 8-byte Folded Spill
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.29@PAGE
add x0, x0, l_.str.29@PAGEOFF
bl _saywhat
ldur x8, [x29, #-40] ; 8-byte Folded Reload
ldr x0, [x8]
bl _top_panel
bl _pflush
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.25@PAGE
add x0, x0, l_.str.25@PAGEOFF
bl _saywhat
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _top_panel
bl _pflush
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.24@PAGE
add x0, x0, l_.str.24@PAGEOFF
bl _saywhat
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x0, [x8]
bl _top_panel
bl _pflush
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.30@PAGE
add x0, x0, l_.str.30@PAGEOFF
bl _saywhat
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _rmpanel
bl _pflush
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.31@PAGE
add x0, x0, l_.str.31@PAGEOFF
bl _saywhat
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr x0, [x8]
bl _hide_panel
bl _pflush
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.32@PAGE
add x0, x0, l_.str.32@PAGEOFF
bl _saywhat
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x0, [x8]
bl _rmpanel
bl _pflush
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.33@PAGE
add x0, x0, l_.str.33@PAGEOFF
bl _saywhat
ldur x8, [x29, #-56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _rmpanel
bl _pflush
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
adrp x0, l_.str.34@PAGE
add x0, x0, l_.str.34@PAGEOFF
bl _saywhat
ldur x8, [x29, #-40] ; 8-byte Folded Reload
ldr x0, [x8]
bl _rmpanel
bl _pflush
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [x8, _nap_msec@PAGEOFF]
bl _wait_a_while
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x8, _nap_msec@PAGEOFF]
subs x8, x8, #1
cset w8, ne
tbnz w8, #0, LBB7_23
b LBB7_22
LBB7_22:
b LBB7_25
LBB7_23: ; in Loop: Header=BB7_4 Depth=1
mov x8, #100
adrp x9, _nap_msec@PAGE
str x8, [x9, _nap_msec@PAGEOFF]
b LBB7_24
LBB7_24: ; in Loop: Header=BB7_4 Depth=1
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
b LBB7_4
LBB7_25:
bl _endwin
mov w0, #0
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
add sp, sp, #144
ret
.cfi_endproc
; -- End function
.section __DATA,__data
.globl _nap_msec ; @nap_msec
.p2align 3
_nap_msec:
.quad 1 ; 0x1
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "test "
l_.str.1: ; @.str.1
.asciz "TEST "
l_.str.2: ; @.str.2
.asciz "(**) "
l_.str.3: ; @.str.3
.asciz "*()* "
l_.str.4: ; @.str.4
.asciz "<--> "
l_.str.5: ; @.str.5
.asciz "LAST "
.section __DATA,__data
.globl _mod ; @mod
.p2align 3
_mod:
.quad l_.str
.quad l_.str.1
.quad l_.str.2
.quad l_.str.3
.quad l_.str.4
.quad l_.str.5
.section __TEXT,__cstring,cstring_literals
l_.str.6: ; @.str.6
.asciz "%d"
l_.str.7: ; @.str.7
.asciz "%-20.20s"
l_.str.8: ; @.str.8
.asciz "-pan%c-"
.comm _p1,8,3 ; @p1
l_.str.9: ; @.str.9
.asciz "p1"
.comm _p2,8,3 ; @p2
l_.str.10: ; @.str.10
.asciz "p2"
.comm _p3,8,3 ; @p3
l_.str.11: ; @.str.11
.asciz "p3"
.comm _p4,8,3 ; @p4
.comm _w4,8,3 ; @w4
l_.str.12: ; @.str.12
.asciz "p4"
.comm _p5,8,3 ; @p5
.comm _w5,8,3 ; @w5
l_.str.13: ; @.str.13
.asciz "p5"
l_.str.14: ; @.str.14
.asciz "h3 s1 s2 s4 s5;"
l_.str.15: ; @.str.15
.asciz "s1;"
l_.str.16: ; @.str.16
.asciz "s2;"
l_.str.17: ; @.str.17
.asciz "m2;"
l_.str.18: ; @.str.18
.asciz "s3;"
l_.str.19: ; @.str.19
.asciz "m3;"
l_.str.20: ; @.str.20
.asciz "b3;"
l_.str.21: ; @.str.21
.asciz "s4;"
l_.str.22: ; @.str.22
.asciz "s5;"
l_.str.23: ; @.str.23
.asciz "t3;"
l_.str.24: ; @.str.24
.asciz "t1;"
l_.str.25: ; @.str.25
.asciz "t2;"
l_.str.26: ; @.str.26
.asciz "t4;"
l_.str.27: ; @.str.27
.asciz "m4;"
l_.str.28: ; @.str.28
.asciz "m5;"
l_.str.29: ; @.str.29
.asciz "t5;"
l_.str.30: ; @.str.30
.asciz "d2;"
l_.str.31: ; @.str.31
.asciz "h3;"
l_.str.32: ; @.str.32
.asciz "d1;"
l_.str.33: ; @.str.33
.asciz "d4; "
l_.str.34: ; @.str.34
.asciz "d5; "
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pflush ## -- Begin function pflush
.p2align 4, 0x90
_pflush: ## @pflush
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _update_panels
callq _doupdate
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _backfill ## -- Begin function backfill
.p2align 4, 0x90
_backfill: ## @backfill
.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 _stdscr@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _werase
movl $0, -4(%rbp)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_3 Depth 2
movl -4(%rbp), %eax
movq _LINES@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB1_8
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl $0, -8(%rbp)
LBB1_3: ## Parent Loop BB1_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -8(%rbp), %eax
movq _COLS@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_6
## %bb.4: ## in Loop: Header=BB1_3 Depth=2
movl -4(%rbp), %eax
addl -8(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %edx, %esi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printw
## %bb.5: ## in Loop: Header=BB1_3 Depth=2
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB1_3
LBB1_6: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_7
LBB1_7: ## in Loop: Header=BB1_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB1_1
LBB1_8:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _wait_a_while ## -- Begin function wait_a_while
.p2align 4, 0x90
_wait_a_while: ## @wait_a_while
.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)
cmpq $1, -8(%rbp)
je LBB2_2
## %bb.1:
movq _stdscr@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -8(%rbp), %rax
movl %eax, %esi
callq _wtimeout
LBB2_2:
movq _stdscr@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _wgetch
movl %eax, -12(%rbp)
cmpl $113, -12(%rbp)
jne LBB2_4
## %bb.3:
callq _endwin
movl $1, %edi
callq _exit
LBB2_4:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _saywhat ## -- Begin function saywhat
.p2align 4, 0x90
_saywhat: ## @saywhat
.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 _LINES@GOTPCREL(%rip), %rax
movl (%rax), %edi
subl $1, %edi
movq -8(%rbp), %rcx
xorl %esi, %esi
leaq L_.str.7(%rip), %rdx
movb $0, %al
callq _mvprintw
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _mkpanel ## -- Begin function mkpanel
.p2align 4, 0x90
_mkpanel: ## @mkpanel
.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 %edx, -12(%rbp)
movl %ecx, -16(%rbp)
movl -4(%rbp), %edi
movl -8(%rbp), %esi
movl -12(%rbp), %edx
movl -16(%rbp), %ecx
callq _newwin
movq %rax, -24(%rbp)
movq $0, -32(%rbp)
cmpq $0, -24(%rbp)
je LBB4_4
## %bb.1:
movq -24(%rbp), %rdi
callq _new_panel
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB4_3
## %bb.2:
movq -24(%rbp), %rdi
callq _delwin
LBB4_3:
jmp LBB4_4
LBB4_4:
movq -32(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _rmpanel ## -- Begin function rmpanel
.p2align 4, 0x90
_rmpanel: ## @rmpanel
.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), %rax
movq %rax, -16(%rbp)
movq -8(%rbp), %rdi
callq _del_panel
movq -16(%rbp), %rdi
callq _delwin
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _fill_panel ## -- Begin function fill_panel
.p2align 4, 0x90
_fill_panel: ## @fill_panel
.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 -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
movq -8(%rbp), %rax
movq 24(%rax), %rax
movb 1(%rax), %al
movb %al, -17(%rbp)
movq -16(%rbp), %rdi
xorl %r9d, %r9d
movl %r9d, %esi
movl %r9d, %edx
movl %r9d, %ecx
movl %r9d, %r8d
movl $0, (%rsp)
movl $0, 8(%rsp)
movl $0, 16(%rsp)
callq _wborder
movq -16(%rbp), %rdi
movsbl -17(%rbp), %r8d
movl $1, %edx
leaq L_.str.8(%rip), %rcx
movl %edx, %esi
movb $0, %al
callq _mvwprintw
movq -16(%rbp), %rdi
callq _getmaxy
movl %eax, -32(%rbp)
movq -16(%rbp), %rdi
callq _getmaxx
movl %eax, -36(%rbp)
movl $2, -24(%rbp)
LBB6_1: ## =>This Loop Header: Depth=1
## Child Loop BB6_3 Depth 2
movl -24(%rbp), %eax
movl -32(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB6_11
## %bb.2: ## in Loop: Header=BB6_1 Depth=1
movl $1, -28(%rbp)
LBB6_3: ## Parent Loop BB6_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -28(%rbp), %eax
movl -36(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB6_9
## %bb.4: ## in Loop: Header=BB6_3 Depth=2
movq -16(%rbp), %rdi
movl -24(%rbp), %esi
movl -28(%rbp), %edx
callq _wmove
cmpl $-1, %eax
jne LBB6_6
## %bb.5: ## in Loop: Header=BB6_3 Depth=2
jmp LBB6_7
LBB6_6: ## in Loop: Header=BB6_3 Depth=2
movq -16(%rbp), %rdi
movsbl -17(%rbp), %esi
callq _waddch
LBB6_7: ## in Loop: Header=BB6_3 Depth=2
## %bb.8: ## in Loop: Header=BB6_3 Depth=2
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB6_3
LBB6_9: ## in Loop: Header=BB6_1 Depth=1
jmp LBB6_10
LBB6_10: ## in Loop: Header=BB6_1 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB6_1
LBB6_11:
addq $64, %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 %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $1, -8(%rbp)
jle LBB7_3
## %bb.1:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _atol
cmpq $0, %rax
je LBB7_3
## %bb.2:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _atol
movq %rax, _nap_msec(%rip)
LBB7_3:
callq _initscr
callq _backfill
movl $0, -24(%rbp)
LBB7_4: ## =>This Loop Header: Depth=1
## Child Loop BB7_6 Depth 2
cmpl $5, -24(%rbp)
jge LBB7_25
## %bb.5: ## in Loop: Header=BB7_4 Depth=1
movl $10, %esi
xorl %ecx, %ecx
movl %esi, %edi
movl %ecx, %edx
callq _mkpanel
movq %rax, %rcx
movq _p1@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _p1@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.9(%rip), %rsi
callq _set_panel_userptr
movl $14, %esi
movl $5, %ecx
movl %esi, %edi
movl %ecx, %edx
callq _mkpanel
movq %rax, %rcx
movq _p2@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _p2@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.10(%rip), %rsi
callq _set_panel_userptr
movl $6, %edi
movl $8, %esi
movl $12, %ecx
movl %ecx, %edx
callq _mkpanel
movq %rax, %rcx
movq _p3@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _p3@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.11(%rip), %rsi
callq _set_panel_userptr
movl $10, %edx
movl $30, %ecx
movl %edx, %edi
movl %edx, %esi
callq _mkpanel
movq %rax, %rcx
movq _p4@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _p4@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _panel_window
movq %rax, %rcx
movq _w4@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _p4@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.12(%rip), %rsi
callq _set_panel_userptr
movl $10, %esi
movl $13, %edx
movl $37, %ecx
movl %esi, %edi
callq _mkpanel
movq %rax, %rcx
movq _p5@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _p5@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _panel_window
movq %rax, %rcx
movq _w5@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _p5@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.13(%rip), %rsi
callq _set_panel_userptr
movq _p1@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fill_panel
movq _p2@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fill_panel
movq _p3@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fill_panel
movq _p4@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fill_panel
movq _p5@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fill_panel
movq _p4@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _hide_panel
movq _p5@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _hide_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.14(%rip), %rdi
callq _saywhat
movq _p1@GOTPCREL(%rip), %rax
movq (%rax), %rdi
xorl %edx, %edx
movl %edx, %esi
callq _move_panel
movq _p3@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _hide_panel
movq _p1@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _show_panel
movq _p2@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _show_panel
movq _p4@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _show_panel
movq _p5@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _show_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.15(%rip), %rdi
callq _saywhat
movq _p1@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _show_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.16(%rip), %rdi
callq _saywhat
movq _p2@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _show_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.17(%rip), %rdi
callq _saywhat
movq _p2@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl $10, %edx
movl %edx, %esi
callq _move_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.18(%rip), %rdi
callq _saywhat
movq _p3@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _show_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.19(%rip), %rdi
callq _saywhat
movq _p3@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl $5, %edx
movl %edx, %esi
callq _move_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.20(%rip), %rdi
callq _saywhat
movq _p3@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _bottom_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.21(%rip), %rdi
callq _saywhat
movq _p4@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _show_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.22(%rip), %rdi
callq _saywhat
movq _p5@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _show_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.23(%rip), %rdi
callq _saywhat
movq _p3@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _top_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.24(%rip), %rdi
callq _saywhat
movq _p1@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _top_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.25(%rip), %rdi
callq _saywhat
movq _p2@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _top_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.23(%rip), %rdi
callq _saywhat
movq _p3@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _top_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.26(%rip), %rdi
callq _saywhat
movq _p4@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _top_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
movl $0, -20(%rbp)
LBB7_6: ## Parent Loop BB7_4 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $6, -20(%rbp)
jge LBB7_21
## %bb.7: ## in Loop: Header=BB7_6 Depth=2
leaq L_.str.27(%rip), %rdi
callq _saywhat
movq _w4@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl $3, %esi
movl $1, %edx
callq _wmove
cmpl $-1, %eax
jne LBB7_9
## %bb.8: ## in Loop: Header=BB7_6 Depth=2
jmp LBB7_10
LBB7_9: ## in Loop: Header=BB7_6 Depth=2
movq _w4@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movslq -20(%rbp), %rcx
leaq _mod(%rip), %rax
movq (%rax,%rcx,8), %rsi
movl $4294967295, %edx ## imm = 0xFFFFFFFF
callq _waddnstr
LBB7_10: ## in Loop: Header=BB7_6 Depth=2
movq _p4@GOTPCREL(%rip), %rax
movq (%rax), %rdi
imull $10, -20(%rbp), %edx
movl $4, %esi
callq _move_panel
movq _w5@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl $4, %esi
movl $1, %edx
callq _wmove
cmpl $-1, %eax
jne LBB7_12
## %bb.11: ## in Loop: Header=BB7_6 Depth=2
jmp LBB7_13
LBB7_12: ## in Loop: Header=BB7_6 Depth=2
movq _w5@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movslq -20(%rbp), %rcx
leaq _mod(%rip), %rax
movq (%rax,%rcx,8), %rsi
movl $4294967295, %edx ## imm = 0xFFFFFFFF
callq _waddnstr
LBB7_13: ## in Loop: Header=BB7_6 Depth=2
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.28(%rip), %rdi
callq _saywhat
movq _w4@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl $4, %esi
movl $1, %edx
callq _wmove
cmpl $-1, %eax
jne LBB7_15
## %bb.14: ## in Loop: Header=BB7_6 Depth=2
jmp LBB7_16
LBB7_15: ## in Loop: Header=BB7_6 Depth=2
movq _w4@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movslq -20(%rbp), %rcx
leaq _mod(%rip), %rax
movq (%rax,%rcx,8), %rsi
movl $4294967295, %edx ## imm = 0xFFFFFFFF
callq _waddnstr
LBB7_16: ## in Loop: Header=BB7_6 Depth=2
movq _p5@GOTPCREL(%rip), %rax
movq (%rax), %rdi
imull $10, -20(%rbp), %edx
addl $6, %edx
movl $7, %esi
callq _move_panel
movq _w5@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl $3, %esi
movl $1, %edx
callq _wmove
cmpl $-1, %eax
jne LBB7_18
## %bb.17: ## in Loop: Header=BB7_6 Depth=2
jmp LBB7_19
LBB7_18: ## in Loop: Header=BB7_6 Depth=2
movq _w5@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movslq -20(%rbp), %rcx
leaq _mod(%rip), %rax
movq (%rax,%rcx,8), %rsi
movl $4294967295, %edx ## imm = 0xFFFFFFFF
callq _waddnstr
LBB7_19: ## in Loop: Header=BB7_6 Depth=2
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
## %bb.20: ## in Loop: Header=BB7_6 Depth=2
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB7_6
LBB7_21: ## in Loop: Header=BB7_4 Depth=1
leaq L_.str.27(%rip), %rdi
callq _saywhat
movq _p4@GOTPCREL(%rip), %rax
movq (%rax), %rdi
imull $10, -20(%rbp), %edx
movl $4, %esi
callq _move_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.29(%rip), %rdi
callq _saywhat
movq _p5@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _top_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.25(%rip), %rdi
callq _saywhat
movq _p2@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _top_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.24(%rip), %rdi
callq _saywhat
movq _p1@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _top_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.30(%rip), %rdi
callq _saywhat
movq _p2@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _rmpanel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.31(%rip), %rdi
callq _saywhat
movq _p3@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _hide_panel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.32(%rip), %rdi
callq _saywhat
movq _p1@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _rmpanel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.33(%rip), %rdi
callq _saywhat
movq _p4@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _rmpanel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
leaq L_.str.34(%rip), %rdi
callq _saywhat
movq _p5@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _rmpanel
callq _pflush
movq _nap_msec(%rip), %rdi
callq _wait_a_while
cmpq $1, _nap_msec(%rip)
jne LBB7_23
## %bb.22:
jmp LBB7_25
LBB7_23: ## in Loop: Header=BB7_4 Depth=1
movq $100, _nap_msec(%rip)
## %bb.24: ## in Loop: Header=BB7_4 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB7_4
LBB7_25:
callq _endwin
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.globl _nap_msec ## @nap_msec
.p2align 3
_nap_msec:
.quad 1 ## 0x1
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "test "
L_.str.1: ## @.str.1
.asciz "TEST "
L_.str.2: ## @.str.2
.asciz "(**) "
L_.str.3: ## @.str.3
.asciz "*()* "
L_.str.4: ## @.str.4
.asciz "<--> "
L_.str.5: ## @.str.5
.asciz "LAST "
.section __DATA,__data
.globl _mod ## @mod
.p2align 4
_mod:
.quad L_.str
.quad L_.str.1
.quad L_.str.2
.quad L_.str.3
.quad L_.str.4
.quad L_.str.5
.section __TEXT,__cstring,cstring_literals
L_.str.6: ## @.str.6
.asciz "%d"
L_.str.7: ## @.str.7
.asciz "%-20.20s"
L_.str.8: ## @.str.8
.asciz "-pan%c-"
.comm _p1,8,3 ## @p1
L_.str.9: ## @.str.9
.asciz "p1"
.comm _p2,8,3 ## @p2
L_.str.10: ## @.str.10
.asciz "p2"
.comm _p3,8,3 ## @p3
L_.str.11: ## @.str.11
.asciz "p3"
.comm _p4,8,3 ## @p4
.comm _w4,8,3 ## @w4
L_.str.12: ## @.str.12
.asciz "p4"
.comm _p5,8,3 ## @p5
.comm _w5,8,3 ## @w5
L_.str.13: ## @.str.13
.asciz "p5"
L_.str.14: ## @.str.14
.asciz "h3 s1 s2 s4 s5;"
L_.str.15: ## @.str.15
.asciz "s1;"
L_.str.16: ## @.str.16
.asciz "s2;"
L_.str.17: ## @.str.17
.asciz "m2;"
L_.str.18: ## @.str.18
.asciz "s3;"
L_.str.19: ## @.str.19
.asciz "m3;"
L_.str.20: ## @.str.20
.asciz "b3;"
L_.str.21: ## @.str.21
.asciz "s4;"
L_.str.22: ## @.str.22
.asciz "s5;"
L_.str.23: ## @.str.23
.asciz "t3;"
L_.str.24: ## @.str.24
.asciz "t1;"
L_.str.25: ## @.str.25
.asciz "t2;"
L_.str.26: ## @.str.26
.asciz "t4;"
L_.str.27: ## @.str.27
.asciz "m4;"
L_.str.28: ## @.str.28
.asciz "m5;"
L_.str.29: ## @.str.29
.asciz "t5;"
L_.str.30: ## @.str.30
.asciz "d2;"
L_.str.31: ## @.str.31
.asciz "h3;"
L_.str.32: ## @.str.32
.asciz "d1;"
L_.str.33: ## @.str.33
.asciz "d4; "
L_.str.34: ## @.str.34
.asciz "d5; "
.subsections_via_symbols
| the_stack_data/168892828.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 x0, #4
bl _malloc
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur x9, [x29, #-8]
mov w8, #1500
str w8, [x9]
ldur x8, [x29, #-8]
ldr w9, [x8]
; 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, #16] ; 8-byte Folded Spill
bl _printf
ldur x0, [x29, #-8]
bl _free
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "O endere\303\247o alocado foi: %p\n"
l_.str.1: ; @.str.1
.asciz "Valor: %i\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 $4, %edi
callq _malloc
movq %rax, -8(%rbp)
movq -8(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movl $1500, (%rax) ## imm = 0x5DC
movq -8(%rbp), %rax
movl (%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rdi
callq _free
movq -8(%rbp), %rax
movl (%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "O endere\303\247o alocado foi: %p\n"
L_.str.1: ## @.str.1
.asciz "Valor: %i\n"
.subsections_via_symbols
| the_stack_data/9512045.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, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
stur x8, [x29, #-24]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
stur x8, [x29, #-32]
ldur x0, [x29, #-24]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fopen
stur x0, [x29, #-40]
ldur x0, [x29, #-32]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fopen
str x0, [sp, #48]
str wzr, [sp, #36]
str wzr, [sp, #32]
ldur x3, [x29, #-40]
add x0, sp, #40
mov x1, #4
mov x2, #1
bl _fread
mov x8, x0
str w8, [sp, #44]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #44]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w0, [sp, #40]
bl __OSSwapInt32
str w0, [sp, #24] ; 4-byte Folded Spill
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24] ; 4-byte Folded Reload
add x9, sp, #40
str x9, [sp, #16] ; 8-byte Folded Spill
str w8, [sp, #40]
ldr w9, [sp, #40]
ldr w8, [sp, #36]
add w8, w8, w9
str w8, [sp, #36]
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
ldr x0, [sp, #48]
ldr w9, [sp, #40]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldur x3, [x29, #-40]
mov x1, #4
mov x2, #1
bl _fread
mov x8, x0
str w8, [sp, #44]
b LBB0_1
LBB0_5:
ldr s0, [sp, #36]
scvtf s0, s0
ldr s1, [sp, #32]
scvtf s1, s1
fdiv s0, s0, s1
str s0, [sp, #28]
ldr s0, [sp, #28]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldur x0, [x29, #-40]
bl _fclose
ldr x0, [sp, #48]
bl _fclose
mov w0, #0
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function _OSSwapInt32
__OSSwapInt32: ; @_OSSwapInt32
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w8, [sp, #12]
rev w8, w8
str w8, [sp, #12]
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "r"
l_.str.1: ; @.str.1
.asciz "w"
l_.str.2: ; @.str.2
.asciz "%u\n"
l_.str.3: ; @.str.3
.asciz "Average: %0.3f\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -32(%rbp)
movq -24(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _fopen
movq %rax, -40(%rbp)
movq -32(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _fopen
movq %rax, -48(%rbp)
movl $0, -60(%rbp)
movl $0, -64(%rbp)
leaq -56(%rbp), %rdi
movq -40(%rbp), %rcx
movl $4, %esi
movl $1, %edx
callq _fread
## kill: def $eax killed $eax killed $rax
movl %eax, -52(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -52(%rbp)
jle LBB0_5
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -56(%rbp), %edi
callq __OSSwapInt32
movl %eax, -72(%rbp) ## 4-byte Spill
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movl -72(%rbp), %eax ## 4-byte Reload
movl %eax, -56(%rbp)
movl -56(%rbp), %eax
addl -60(%rbp), %eax
movl %eax, -60(%rbp)
movl -64(%rbp), %eax
addl $1, %eax
movl %eax, -64(%rbp)
movq -48(%rbp), %rdi
movl -56(%rbp), %edx
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _fprintf
leaq -56(%rbp), %rdi
movq -40(%rbp), %rcx
movl $4, %esi
movl $1, %edx
callq _fread
## kill: def $eax killed $eax killed $rax
movl %eax, -52(%rbp)
jmp LBB0_1
LBB0_5:
cvtsi2ssl -60(%rbp), %xmm0
cvtsi2ssl -64(%rbp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -68(%rbp)
movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.3(%rip), %rdi
movb $1, %al
callq _printf
movq -40(%rbp), %rdi
callq _fclose
movq -48(%rbp), %rdi
callq _fclose
xorl %eax, %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function _OSSwapInt32
__OSSwapInt32: ## @_OSSwapInt32
.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
bswapl %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "r"
L_.str.1: ## @.str.1
.asciz "w"
L_.str.2: ## @.str.2
.asciz "%u\n"
L_.str.3: ## @.str.3
.asciz "Average: %0.3f\n"
.subsections_via_symbols
| the_stack_data/48575060.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _buf_cap ; -- Begin function buf_cap
.p2align 2
_buf_cap: ; @buf_cap
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
mov w8, #1
str w8, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8]
lsl w8, w8, #1
str w8, [sp, #8]
b LBB0_1
LBB0_3:
ldr w0, [sp, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _str_new ; -- Begin function str_new
.p2align 2
_str_new: ; @str_new
.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, #8]
ldr x0, [sp, #8]
bl _strlen
mov x8, x0
str w8, [sp, #4]
ldr w8, [sp, #4]
add w0, w8, #1
bl _buf_cap
str w0, [sp]
ldrsw x0, [sp]
bl _malloc
str x0, [sp, #16]
ldr x0, [sp, #16]
ldr x1, [sp, #8]
ldrsw x2, [sp, #4]
mov x3, #-1
bl ___strncpy_chk
ldr x8, [sp, #16]
ldrsw x9, [sp, #4]
add x8, x8, x9
strb wzr, [x8]
ldr w8, [sp, #4]
str w8, [sp, #24]
ldr w8, [sp]
str w8, [sp, #28]
ldr x0, [sp, #16]
ldr x1, [sp, #24]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _str_free ; -- Begin function str_free
.p2align 2
_str_free: ; @str_free
.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]
str x1, [sp, #8]
ldr x0, [sp]
bl _free
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _str_repr ; -- Begin function str_repr
.p2align 2
_str_repr: ; @str_repr
.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]
stur x1, [x29, #-8]
ldur x11, [x29, #-16]
ldur w8, [x29, #-8]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-4]
; 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
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl __str_realloc_len ; -- Begin function _str_realloc_len
.p2align 2
__str_realloc_len: ; @_str_realloc_len
.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]
add w8, w8, #1
ldr x9, [sp, #8]
ldr w9, [x9, #12]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
ldr w8, [sp, #4]
add w0, w8, #1
bl _buf_cap
str w0, [sp]
ldr x8, [sp, #8]
ldr x0, [x8]
ldrsw x1, [sp]
bl _realloc
ldr x8, [sp, #8]
str x0, [x8]
ldr w8, [sp]
ldr x9, [sp, #8]
str w8, [x9, #12]
b LBB4_2
LBB4_2:
ldr w8, [sp, #4]
ldr x9, [sp, #8]
str w8, [x9, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _str_append ; -- Begin function str_append
.p2align 2
_str_append: ; @str_append
.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
add x8, sp, #32
str x8, [sp, #8] ; 8-byte Folded Spill
str x0, [sp, #32]
str x1, [sp, #40]
str x2, [sp, #24]
ldr x0, [sp, #24]
bl _strlen
mov x8, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #20]
ldr w8, [sp, #40]
ldr w9, [sp, #20]
add w1, w8, w9
bl __str_realloc_len
ldr x0, [sp, #32]
ldr x1, [sp, #24]
ldrsw x2, [sp, #20]
mov x3, #-1
bl ___strncat_chk
ldr q0, [sp, #32]
stur q0, [x29, #-16]
ldur x0, [x29, #-16]
ldur x1, [x29, #-8]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _str_insert ; -- Begin function str_insert
.p2align 2
_str_insert: ; @str_insert
.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
str x0, [sp, #32]
str x1, [sp, #40]
str w2, [sp, #28]
str x3, [sp, #16]
ldr w8, [sp, #28]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
str wzr, [sp, #28]
b LBB6_2
LBB6_2:
ldr w8, [sp, #28]
ldr w9, [sp, #40]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB6_4
b LBB6_3
LBB6_3:
ldr w8, [sp, #40]
str w8, [sp, #28]
b LBB6_4
LBB6_4:
ldr x0, [sp, #16]
bl _strlen
mov x8, x0
str w8, [sp, #12]
add x0, sp, #32
ldr w8, [sp, #40]
ldr w9, [sp, #12]
add w1, w8, w9
bl __str_realloc_len
ldr x8, [sp, #32]
ldrsw x9, [sp, #28]
add x8, x8, x9
ldrsw x9, [sp, #12]
add x0, x8, x9
ldr x8, [sp, #32]
ldrsw x9, [sp, #28]
add x1, x8, x9
ldr w8, [sp, #40]
ldr w9, [sp, #28]
subs w9, w8, w9
; implicit-def: $x8
mov x8, x9
sxtw x2, w8
mov x3, #-1
str x3, [sp] ; 8-byte Folded Spill
bl ___memcpy_chk
ldr x3, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #32]
ldrsw x9, [sp, #28]
add x0, x8, x9
ldr x1, [sp, #16]
ldrsw x2, [sp, #12]
bl ___memcpy_chk
ldr x8, [sp, #32]
ldrsw x9, [sp, #40]
add x8, x8, x9
strb wzr, [x8]
ldr q0, [sp, #32]
stur q0, [x29, #-16]
ldur x0, [x29, #-16]
ldur x1, [x29, #-8]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _str_slice ; -- Begin function str_slice
.p2align 2
_str_slice: ; @str_slice
.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
str x0, [sp, #32]
str x1, [sp, #40]
str w2, [sp, #28]
str w3, [sp, #24]
ldr w8, [sp, #28]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB7_2
b LBB7_1
LBB7_1:
str wzr, [sp, #28]
b LBB7_2
LBB7_2:
ldr w8, [sp, #24]
ldr w9, [sp, #40]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB7_4
b LBB7_3
LBB7_3:
ldr w8, [sp, #40]
str w8, [sp, #24]
b LBB7_4
LBB7_4:
ldr w8, [sp, #24]
ldr w9, [sp, #28]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB7_6
b LBB7_5
LBB7_5:
ldr w8, [sp, #28]
str w8, [sp, #24]
b LBB7_6
LBB7_6:
ldr w8, [sp, #24]
ldr w9, [sp, #28]
subs w8, w8, w9
str w8, [sp, #20]
ldr w8, [sp, #20]
add w9, w8, #1
; implicit-def: $x8
mov x8, x9
sxtw x0, w8
bl _malloc
str x0, [sp, #8]
ldr x0, [sp, #8]
ldr x8, [sp, #32]
ldrsw x9, [sp, #28]
add x1, x8, x9
ldrsw x2, [sp, #20]
mov x3, #-1
bl ___memcpy_chk
ldr x8, [sp, #8]
ldrsw x9, [sp, #20]
add x8, x8, x9
strb wzr, [x8]
ldr x0, [sp, #8]
bl _str_new
stur x0, [x29, #-16]
stur x1, [x29, #-8]
ldr x0, [sp, #8]
bl _free
ldur x0, [x29, #-16]
ldur x1, [x29, #-8]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _strnode_new ; -- Begin function strnode_new
.p2align 2
_strnode_new: ; @strnode_new
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
str x1, [sp, #24]
mov x0, #24
bl _malloc
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr q0, [sp, #16]
str q0, [x8]
ldr x8, [sp, #8]
; kill: def $x9 killed $xzr
str xzr, [x8, #16]
ldr x0, [sp, #8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _strnode_free ; -- Begin function strnode_free
.p2align 2
_strnode_free: ; @strnode_free
.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]
b LBB9_1
LBB9_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB9_3
b LBB9_2
LBB9_2: ; in Loop: Header=BB9_1 Depth=1
ldr x8, [sp, #16]
ldr x0, [x8]
ldr x1, [x8, #8]
bl _str_free
ldr x8, [sp, #16]
str x8, [sp, #8]
ldr x8, [sp, #16]
ldr x8, [x8, #16]
str x8, [sp, #16]
ldr x0, [sp, #8]
bl _free
b LBB9_1
LBB9_3:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _strnode_repr ; -- Begin function strnode_repr
.p2align 2
_strnode_repr: ; @strnode_repr
.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]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr x8, [sp, #8]
str x8, [sp]
b LBB10_1
LBB10_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB10_3
b LBB10_2
LBB10_2: ; in Loop: Header=BB10_1 Depth=1
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x8, [sp]
ldr x0, [x8]
ldr x1, [x8, #8]
bl _str_repr
ldr x8, [sp]
ldr x8, [x8, #16]
str x8, [sp]
b LBB10_1
LBB10_3:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _str_split ; -- Begin function str_split
.p2align 2
_str_split: ; @str_split
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur x1, [x29, #-8]
sturb w2, [x29, #-17]
; kill: def $x8 killed $xzr
stur xzr, [x29, #-32]
stur xzr, [x29, #-40]
stur wzr, [x29, #-44]
str wzr, [sp, #48]
b LBB11_1
LBB11_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #48]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB11_8
b LBB11_2
LBB11_2: ; in Loop: Header=BB11_1 Depth=1
ldur x8, [x29, #-16]
ldrsw x9, [sp, #48]
ldrsb w8, [x8, x9]
ldursb w9, [x29, #-17]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB11_6
b LBB11_3
LBB11_3: ; in Loop: Header=BB11_1 Depth=1
ldur w2, [x29, #-44]
ldr w3, [sp, #48]
ldur x0, [x29, #-16]
ldur x1, [x29, #-8]
bl _str_slice
str x0, [sp, #32]
str x1, [sp, #40]
ldr x0, [sp, #32]
ldr x1, [sp, #40]
bl _strnode_new
str x0, [sp, #24]
ldr w8, [sp, #48]
add w8, w8, #1
stur w8, [x29, #-44]
ldur x8, [x29, #-40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB11_5
b LBB11_4
LBB11_4: ; in Loop: Header=BB11_1 Depth=1
ldr x8, [sp, #24]
stur x8, [x29, #-32]
ldr x8, [sp, #24]
stur x8, [x29, #-40]
b LBB11_7
LBB11_5: ; in Loop: Header=BB11_1 Depth=1
ldr x8, [sp, #24]
ldur x9, [x29, #-40]
str x8, [x9, #16]
ldr x8, [sp, #24]
stur x8, [x29, #-40]
b LBB11_6
LBB11_6: ; in Loop: Header=BB11_1 Depth=1
b LBB11_7
LBB11_7: ; in Loop: Header=BB11_1 Depth=1
ldr w8, [sp, #48]
add w8, w8, #1
str w8, [sp, #48]
b LBB11_1
LBB11_8:
ldur w2, [x29, #-44]
ldur w8, [x29, #-8]
add w3, w8, #1
ldur x0, [x29, #-16]
ldur x1, [x29, #-8]
bl _str_slice
str x0, [sp, #8]
str x1, [sp, #16]
ldr x0, [sp, #8]
ldr x1, [sp, #16]
bl _strnode_new
str x0, [sp]
ldur x8, [x29, #-40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB11_10
b LBB11_9
LBB11_9:
ldr x8, [sp]
stur x8, [x29, #-32]
b LBB11_11
LBB11_10:
ldr x8, [sp]
ldur x9, [x29, #-40]
str x8, [x9, #16]
b LBB11_11
LBB11_11:
ldur x0, [x29, #-32]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.globl _str_split2 ; -- Begin function str_split2
.p2align 2
_str_split2: ; @str_split2
.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
stur x0, [x29, #-16]
stur x1, [x29, #-8]
sturb w2, [x29, #-17]
stur x3, [x29, #-32]
; kill: def $x8 killed $xzr
stur xzr, [x29, #-40]
stur wzr, [x29, #-44]
stur wzr, [x29, #-48]
stur wzr, [x29, #-52]
b LBB12_1
LBB12_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-52]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB12_9
b LBB12_2
LBB12_2: ; in Loop: Header=BB12_1 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-52]
ldrsb w8, [x8, x9]
ldursb w9, [x29, #-17]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB12_4
b LBB12_3
LBB12_3: ; in Loop: Header=BB12_1 Depth=1
b LBB12_8
LBB12_4: ; in Loop: Header=BB12_1 Depth=1
ldur w8, [x29, #-44]
add w8, w8, #1
stur w8, [x29, #-44]
ldur x8, [x29, #-40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB12_6
b LBB12_5
LBB12_5: ; in Loop: Header=BB12_1 Depth=1
mov x0, #16
bl _malloc
stur x0, [x29, #-40]
b LBB12_7
LBB12_6: ; in Loop: Header=BB12_1 Depth=1
ldur x0, [x29, #-40]
ldursw x9, [x29, #-44]
mov x8, #16
mul x1, x8, x9
bl _realloc
stur x0, [x29, #-40]
b LBB12_7
LBB12_7: ; in Loop: Header=BB12_1 Depth=1
ldur x8, [x29, #-40]
str x8, [sp, #32] ; 8-byte Folded Spill
ldur w8, [x29, #-44]
subs w8, w8, #1
str w8, [sp, #28] ; 4-byte Folded Spill
ldur w2, [x29, #-48]
ldur w3, [x29, #-52]
ldur x0, [x29, #-16]
ldur x1, [x29, #-8]
bl _str_slice
ldr w9, [sp, #28] ; 4-byte Folded Reload
ldr x8, [sp, #32] ; 8-byte Folded Reload
str x0, [sp, #56]
str x1, [sp, #64]
ldur q0, [sp, #56]
str q0, [x8, w9, sxtw #4]
ldur w8, [x29, #-52]
add w8, w8, #1
stur w8, [x29, #-48]
b LBB12_8
LBB12_8: ; in Loop: Header=BB12_1 Depth=1
ldur w8, [x29, #-52]
add w8, w8, #1
stur w8, [x29, #-52]
b LBB12_1
LBB12_9:
ldur w8, [x29, #-44]
add w8, w8, #1
stur w8, [x29, #-44]
ldur x8, [x29, #-40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB12_11
b LBB12_10
LBB12_10:
mov x0, #16
bl _malloc
stur x0, [x29, #-40]
b LBB12_12
LBB12_11:
ldur x0, [x29, #-40]
ldursw x9, [x29, #-44]
mov x8, #16
mul x1, x8, x9
bl _realloc
stur x0, [x29, #-40]
b LBB12_12
LBB12_12:
ldur x8, [x29, #-40]
str x8, [sp, #16] ; 8-byte Folded Spill
ldur w8, [x29, #-44]
subs w8, w8, #1
str w8, [sp, #12] ; 4-byte Folded Spill
ldur w2, [x29, #-48]
ldur w3, [x29, #-8]
ldur x0, [x29, #-16]
ldur x1, [x29, #-8]
bl _str_slice
ldr w9, [sp, #12] ; 4-byte Folded Reload
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [sp, #40]
str x1, [sp, #48]
ldur q0, [sp, #40]
str q0, [x8, w9, sxtw #4]
ldur x8, [x29, #-40]
ldur x9, [x29, #-32]
str x8, [x9]
ldur w0, [x29, #-44]
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
add sp, sp, #144
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #240
.cfi_def_cfa_offset 240
stp x29, x30, [sp, #224] ; 16-byte Folded Spill
add x29, sp, #224
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _str_new
stur x0, [x29, #-32]
stur x1, [x29, #-24]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _str_new
stur x0, [x29, #-48]
stur x1, [x29, #-40]
ldur x0, [x29, #-32]
ldur x1, [x29, #-24]
bl _str_repr
ldur x0, [x29, #-48]
ldur x1, [x29, #-40]
bl _str_repr
stur wzr, [x29, #-52]
b LBB13_1
LBB13_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-52]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB13_4
b LBB13_2
LBB13_2: ; in Loop: Header=BB13_1 Depth=1
ldur x0, [x29, #-48]
ldur x1, [x29, #-40]
adrp x2, l_.str.6@PAGE
add x2, x2, l_.str.6@PAGEOFF
bl _str_append
stur x0, [x29, #-72]
stur x1, [x29, #-64]
ldur q0, [x29, #-72]
stur q0, [x29, #-48]
ldur x0, [x29, #-48]
ldur x1, [x29, #-40]
bl _str_repr
b LBB13_3
LBB13_3: ; in Loop: Header=BB13_1 Depth=1
ldur w8, [x29, #-52]
add w8, w8, #1
stur w8, [x29, #-52]
b LBB13_1
LBB13_4:
ldur x0, [x29, #-32]
ldur x1, [x29, #-24]
bl _str_free
ldur x0, [x29, #-48]
ldur x1, [x29, #-40]
bl _str_free
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _str_new
stur x0, [x29, #-88]
stur x1, [x29, #-80]
ldur q0, [x29, #-88]
stur q0, [x29, #-32]
ldur x0, [x29, #-32]
ldur x1, [x29, #-24]
mov w2, #5
adrp x3, l_.str.8@PAGE
add x3, x3, l_.str.8@PAGEOFF
bl _str_insert
stur x0, [x29, #-104]
stur x1, [x29, #-96]
ldur q0, [x29, #-104]
stur q0, [x29, #-32]
ldur x0, [x29, #-32]
ldur x1, [x29, #-24]
bl _str_repr
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _str_new
str x0, [sp, #104]
str x1, [sp, #112]
ldur q0, [sp, #104]
stur q0, [x29, #-48]
ldur x0, [x29, #-48]
ldur x1, [x29, #-40]
mov w2, #24
mov w3, #27
bl _str_slice
str x0, [sp, #88]
str x1, [sp, #96]
ldur x0, [x29, #-48]
ldur x1, [x29, #-40]
mov w2, #2
mov w3, #23
bl _str_slice
str x0, [sp, #72]
str x1, [sp, #80]
ldur x0, [x29, #-48]
ldur x1, [x29, #-40]
bl _str_repr
ldr x0, [sp, #88]
ldr x1, [sp, #96]
bl _str_repr
ldr x0, [sp, #72]
ldr x1, [sp, #80]
bl _str_repr
ldur x0, [x29, #-32]
ldur x1, [x29, #-24]
bl _str_free
ldur x0, [x29, #-48]
ldur x1, [x29, #-40]
bl _str_free
ldr x0, [sp, #88]
ldr x1, [sp, #96]
bl _str_free
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
str x0, [sp] ; 8-byte Folded Spill
bl _str_new
str x0, [sp, #56]
str x1, [sp, #64]
ldur q0, [sp, #56]
stur q0, [x29, #-32]
ldur x0, [x29, #-32]
ldur x1, [x29, #-24]
mov w2, #59
str w2, [sp, #12] ; 4-byte Folded Spill
bl _str_split
str x0, [sp, #48]
ldr x0, [sp, #48]
bl _strnode_repr
ldr x0, [sp, #48]
bl _strnode_free
ldur x0, [x29, #-32]
ldur x1, [x29, #-24]
bl _str_free
ldr x0, [sp] ; 8-byte Folded Reload
bl _str_new
ldr w2, [sp, #12] ; 4-byte Folded Reload
str x0, [sp, #32]
str x1, [sp, #40]
ldr q0, [sp, #32]
stur q0, [x29, #-32]
add x3, sp, #24
; kill: def $x8 killed $xzr
str xzr, [sp, #24]
ldur x0, [x29, #-32]
ldur x1, [x29, #-24]
bl _str_split2
str w0, [sp, #20]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
str wzr, [sp, #16]
b LBB13_5
LBB13_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB13_8
b LBB13_6
LBB13_6: ; in Loop: Header=BB13_5 Depth=1
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x8, [sp, #24]
ldrsw x9, [sp, #16]
add x8, x8, x9, lsl #4
ldr x0, [x8]
ldr x1, [x8, #8]
bl _str_repr
ldr x8, [sp, #24]
ldrsw x9, [sp, #16]
add x8, x8, x9, lsl #4
ldr x0, [x8]
ldr x1, [x8, #8]
bl _str_free
b LBB13_7
LBB13_7: ; in Loop: Header=BB13_5 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB13_5
LBB13_8:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #224] ; 16-byte Folded Reload
add sp, sp, #240
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "'%s' len:%d cap:%d\n"
l_.str.1: ; @.str.1
.asciz "[\n"
l_.str.2: ; @.str.2
.asciz "\t"
l_.str.3: ; @.str.3
.asciz "]\n"
l_.str.4: ; @.str.4
.space 1
l_.str.5: ; @.str.5
.asciz "rob"
l_.str.6: ; @.str.6
.asciz "123_"
l_.str.7: ; @.str.7
.asciz "HelloWorld"
l_.str.8: ; @.str.8
.asciz "123"
l_.str.9: ; @.str.9
.asciz "abcdefghijklmnopqrstuvwxyz"
l_.str.10: ; @.str.10
.asciz "abc;def;ghi;jklmnop;qrstuv;wxyz"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _buf_cap ## -- Begin function buf_cap
.p2align 4, 0x90
_buf_cap: ## @buf_cap
.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 $1, -8(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -8(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
shll $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_3:
movl -8(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _str_new ## -- Begin function str_new
.p2align 4, 0x90
_str_new: ## @str_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 $32, %rsp
movq %rdi, -24(%rbp)
movq -24(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -28(%rbp)
movl -28(%rbp), %edi
incl %edi
callq _buf_cap
movl %eax, -32(%rbp)
movslq -32(%rbp), %rdi
callq _malloc
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
movslq -28(%rbp), %rdx
movq $-1, %rcx
callq ___strncpy_chk
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movb $0, (%rax,%rcx)
movl -28(%rbp), %eax
movl %eax, -8(%rbp)
movl -32(%rbp), %eax
movl %eax, -4(%rbp)
movq -16(%rbp), %rax
movq -8(%rbp), %rdx
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _str_free ## -- Begin function str_free
.p2align 4, 0x90
_str_free: ## @str_free
.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 %rsi, -8(%rbp)
movq -16(%rbp), %rdi
callq _free
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _str_repr ## -- Begin function str_repr
.p2align 4, 0x90
_str_repr: ## @str_repr
.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 %rsi, -8(%rbp)
movq -16(%rbp), %rsi
movl -8(%rbp), %edx
movl -4(%rbp), %ecx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl __str_realloc_len ## -- Begin function _str_realloc_len
.p2align 4, 0x90
__str_realloc_len: ## @_str_realloc_len
.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
addl $1, %eax
movq -8(%rbp), %rcx
cmpl 12(%rcx), %eax
jle LBB4_2
## %bb.1:
movl -12(%rbp), %edi
addl $1, %edi
callq _buf_cap
movl %eax, -16(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rdi
movslq -16(%rbp), %rsi
callq _realloc
movq %rax, %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
movl -16(%rbp), %ecx
movq -8(%rbp), %rax
movl %ecx, 12(%rax)
LBB4_2:
movl -12(%rbp), %ecx
movq -8(%rbp), %rax
movl %ecx, 8(%rax)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _str_append ## -- Begin function str_append
.p2align 4, 0x90
_str_append: ## @str_append
.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, -32(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -40(%rbp)
movq -40(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -44(%rbp)
movl -24(%rbp), %esi
movl -44(%rbp), %eax
addl %eax, %esi
leaq -32(%rbp), %rdi
callq __str_realloc_len
movq -32(%rbp), %rdi
movq -40(%rbp), %rsi
movslq -44(%rbp), %rdx
movq $-1, %rcx
callq ___strncat_chk
movups -32(%rbp), %xmm0
movaps %xmm0, -16(%rbp)
movq -16(%rbp), %rax
movq -8(%rbp), %rdx
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _str_insert ## -- Begin function str_insert
.p2align 4, 0x90
_str_insert: ## @str_insert
.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, -32(%rbp)
movq %rsi, -24(%rbp)
movl %edx, -36(%rbp)
movq %rcx, -48(%rbp)
cmpl $0, -36(%rbp)
jge LBB6_2
## %bb.1:
movl $0, -36(%rbp)
LBB6_2:
movl -36(%rbp), %eax
cmpl -24(%rbp), %eax
jle LBB6_4
## %bb.3:
movl -24(%rbp), %eax
movl %eax, -36(%rbp)
LBB6_4:
movq -48(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -52(%rbp)
movl -24(%rbp), %esi
movl -52(%rbp), %eax
addl %eax, %esi
leaq -32(%rbp), %rdi
callq __str_realloc_len
movq -32(%rbp), %rsi
movslq -36(%rbp), %rax
movl %eax, %ecx
addq %rax, %rsi
movslq -52(%rbp), %rax
movq %rsi, %rdi
addq %rax, %rdi
movl -24(%rbp), %eax
subl %ecx, %eax
movslq %eax, %rdx
movq $-1, %rcx
movq %rcx, -64(%rbp) ## 8-byte Spill
callq ___memcpy_chk
movq -64(%rbp), %rcx ## 8-byte Reload
movq -32(%rbp), %rdi
movslq -36(%rbp), %rax
addq %rax, %rdi
movq -48(%rbp), %rsi
movslq -52(%rbp), %rdx
callq ___memcpy_chk
movq -32(%rbp), %rax
movslq -24(%rbp), %rcx
movb $0, (%rax,%rcx)
movups -32(%rbp), %xmm0
movaps %xmm0, -16(%rbp)
movq -16(%rbp), %rax
movq -8(%rbp), %rdx
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _str_slice ## -- Begin function str_slice
.p2align 4, 0x90
_str_slice: ## @str_slice
.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, -32(%rbp)
movq %rsi, -24(%rbp)
movl %edx, -36(%rbp)
movl %ecx, -40(%rbp)
cmpl $0, -36(%rbp)
jge LBB7_2
## %bb.1:
movl $0, -36(%rbp)
LBB7_2:
movl -40(%rbp), %eax
cmpl -24(%rbp), %eax
jle LBB7_4
## %bb.3:
movl -24(%rbp), %eax
movl %eax, -40(%rbp)
LBB7_4:
movl -40(%rbp), %eax
cmpl -36(%rbp), %eax
jg LBB7_6
## %bb.5:
movl -36(%rbp), %eax
movl %eax, -40(%rbp)
LBB7_6:
movl -40(%rbp), %eax
movl -36(%rbp), %ecx
subl %ecx, %eax
movl %eax, -44(%rbp)
movl -44(%rbp), %eax
incl %eax
movslq %eax, %rdi
callq _malloc
movq %rax, -56(%rbp)
movq -56(%rbp), %rdi
movq -32(%rbp), %rsi
movslq -36(%rbp), %rax
addq %rax, %rsi
movslq -44(%rbp), %rdx
movq $-1, %rcx
callq ___memcpy_chk
movq -56(%rbp), %rax
movslq -44(%rbp), %rcx
movb $0, (%rax,%rcx)
movq -56(%rbp), %rdi
callq _str_new
movq %rax, -16(%rbp)
movq %rdx, -8(%rbp)
movq -56(%rbp), %rdi
callq _free
movq -16(%rbp), %rax
movq -8(%rbp), %rdx
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _strnode_new ## -- Begin function strnode_new
.p2align 4, 0x90
_strnode_new: ## @strnode_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 $32, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -8(%rbp)
movl $24, %edi
callq _malloc
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movq -16(%rbp), %rcx
movq %rcx, (%rax)
movq -8(%rbp), %rcx
movq %rcx, 8(%rax)
movq -24(%rbp), %rax
movq $0, 16(%rax)
movq -24(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _strnode_free ## -- Begin function strnode_free
.p2align 4, 0x90
_strnode_free: ## @strnode_free
.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)
LBB9_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16(%rbp)
je LBB9_3
## %bb.2: ## in Loop: Header=BB9_1 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rdi
movq 8(%rax), %rsi
callq _str_free
movq -16(%rbp), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -16(%rbp)
movq -24(%rbp), %rdi
callq _free
jmp LBB9_1
LBB9_3:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _strnode_repr ## -- Begin function strnode_repr
.p2align 4, 0x90
_strnode_repr: ## @strnode_repr
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
LBB10_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16(%rbp)
je LBB10_3
## %bb.2: ## in Loop: Header=BB10_1 Depth=1
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rax
movq (%rax), %rdi
movq 8(%rax), %rsi
callq _str_repr
movq -16(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -16(%rbp)
jmp LBB10_1
LBB10_3:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _str_split ## -- Begin function str_split
.p2align 4, 0x90
_str_split: ## @str_split
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $96, %rsp
movb %dl, %al
movq %rdi, -16(%rbp)
movq %rsi, -8(%rbp)
movb %al, -17(%rbp)
movq $0, -32(%rbp)
movq $0, -40(%rbp)
movl $0, -44(%rbp)
movl $0, -48(%rbp)
LBB11_1: ## =>This Inner Loop Header: Depth=1
movl -48(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB11_8
## %bb.2: ## in Loop: Header=BB11_1 Depth=1
movq -16(%rbp), %rax
movslq -48(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movsbl -17(%rbp), %ecx
cmpl %ecx, %eax
jne LBB11_6
## %bb.3: ## in Loop: Header=BB11_1 Depth=1
movl -44(%rbp), %edx
movl -48(%rbp), %ecx
movq -16(%rbp), %rdi
movq -8(%rbp), %rsi
callq _str_slice
movq %rax, -64(%rbp)
movq %rdx, -56(%rbp)
movq -64(%rbp), %rdi
movq -56(%rbp), %rsi
callq _strnode_new
movq %rax, -72(%rbp)
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
cmpq $0, -40(%rbp)
jne LBB11_5
## %bb.4: ## in Loop: Header=BB11_1 Depth=1
movq -72(%rbp), %rax
movq %rax, -32(%rbp)
movq -72(%rbp), %rax
movq %rax, -40(%rbp)
jmp LBB11_7
LBB11_5: ## in Loop: Header=BB11_1 Depth=1
movq -72(%rbp), %rcx
movq -40(%rbp), %rax
movq %rcx, 16(%rax)
movq -72(%rbp), %rax
movq %rax, -40(%rbp)
LBB11_6: ## in Loop: Header=BB11_1 Depth=1
jmp LBB11_7
LBB11_7: ## in Loop: Header=BB11_1 Depth=1
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
jmp LBB11_1
LBB11_8:
movl -44(%rbp), %edx
movl -8(%rbp), %ecx
addl $1, %ecx
movq -16(%rbp), %rdi
movq -8(%rbp), %rsi
callq _str_slice
movq %rax, -88(%rbp)
movq %rdx, -80(%rbp)
movq -88(%rbp), %rdi
movq -80(%rbp), %rsi
callq _strnode_new
movq %rax, -96(%rbp)
cmpq $0, -40(%rbp)
jne LBB11_10
## %bb.9:
movq -96(%rbp), %rax
movq %rax, -32(%rbp)
jmp LBB11_11
LBB11_10:
movq -96(%rbp), %rcx
movq -40(%rbp), %rax
movq %rcx, 16(%rax)
LBB11_11:
movq -32(%rbp), %rax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _str_split2 ## -- Begin function str_split2
.p2align 4, 0x90
_str_split2: ## @str_split2
.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
movb %dl, %al
movq %rdi, -16(%rbp)
movq %rsi, -8(%rbp)
movb %al, -17(%rbp)
movq %rcx, -32(%rbp)
movq $0, -40(%rbp)
movl $0, -44(%rbp)
movl $0, -48(%rbp)
movl $0, -52(%rbp)
LBB12_1: ## =>This Inner Loop Header: Depth=1
movl -52(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB12_9
## %bb.2: ## in Loop: Header=BB12_1 Depth=1
movq -16(%rbp), %rax
movslq -52(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movsbl -17(%rbp), %ecx
cmpl %ecx, %eax
je LBB12_4
## %bb.3: ## in Loop: Header=BB12_1 Depth=1
jmp LBB12_8
LBB12_4: ## in Loop: Header=BB12_1 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
cmpq $0, -40(%rbp)
jne LBB12_6
## %bb.5: ## in Loop: Header=BB12_1 Depth=1
movl $16, %edi
callq _malloc
movq %rax, -40(%rbp)
jmp LBB12_7
LBB12_6: ## in Loop: Header=BB12_1 Depth=1
movq -40(%rbp), %rdi
movslq -44(%rbp), %rsi
shlq $4, %rsi
callq _realloc
movq %rax, -40(%rbp)
LBB12_7: ## in Loop: Header=BB12_1 Depth=1
movq -40(%rbp), %rax
movl -44(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
shlq $4, %rcx
addq %rcx, %rax
movq %rax, -96(%rbp) ## 8-byte Spill
movl -48(%rbp), %edx
movl -52(%rbp), %ecx
movq -16(%rbp), %rdi
movq -8(%rbp), %rsi
callq _str_slice
movq %rax, %rcx
movq -96(%rbp), %rax ## 8-byte Reload
movq %rcx, -72(%rbp)
movq %rdx, -64(%rbp)
movq -72(%rbp), %rcx
movq %rcx, (%rax)
movq -64(%rbp), %rcx
movq %rcx, 8(%rax)
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
LBB12_8: ## in Loop: Header=BB12_1 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB12_1
LBB12_9:
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
cmpq $0, -40(%rbp)
jne LBB12_11
## %bb.10:
movl $16, %edi
callq _malloc
movq %rax, -40(%rbp)
jmp LBB12_12
LBB12_11:
movq -40(%rbp), %rdi
movslq -44(%rbp), %rsi
shlq $4, %rsi
callq _realloc
movq %rax, -40(%rbp)
LBB12_12:
movq -40(%rbp), %rax
movl -44(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
shlq $4, %rcx
addq %rcx, %rax
movq %rax, -104(%rbp) ## 8-byte Spill
movl -48(%rbp), %edx
movl -8(%rbp), %ecx
movq -16(%rbp), %rdi
movq -8(%rbp), %rsi
callq _str_slice
movq %rax, %rcx
movq -104(%rbp), %rax ## 8-byte Reload
movq %rcx, -88(%rbp)
movq %rdx, -80(%rbp)
movq -88(%rbp), %rcx
movq %rcx, (%rax)
movq -80(%rbp), %rcx
movq %rcx, 8(%rax)
movq -40(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, (%rax)
movl -44(%rbp), %eax
addq $112, %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 $208, %rsp
movl $0, -4(%rbp)
leaq L_.str.4(%rip), %rdi
callq _str_new
movq %rax, -24(%rbp)
movq %rdx, -16(%rbp)
leaq L_.str.5(%rip), %rdi
callq _str_new
movq %rax, -40(%rbp)
movq %rdx, -32(%rbp)
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
callq _str_repr
movq -40(%rbp), %rdi
movq -32(%rbp), %rsi
callq _str_repr
movl $0, -44(%rbp)
LBB13_1: ## =>This Inner Loop Header: Depth=1
cmpl $10, -44(%rbp)
jge LBB13_4
## %bb.2: ## in Loop: Header=BB13_1 Depth=1
movq -40(%rbp), %rdi
movq -32(%rbp), %rsi
leaq L_.str.6(%rip), %rdx
callq _str_append
movq %rax, -64(%rbp)
movq %rdx, -56(%rbp)
movq -64(%rbp), %rax
movq %rax, -40(%rbp)
movq -56(%rbp), %rax
movq %rax, -32(%rbp)
movq -40(%rbp), %rdi
movq -32(%rbp), %rsi
callq _str_repr
## %bb.3: ## in Loop: Header=BB13_1 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB13_1
LBB13_4:
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
callq _str_free
movq -40(%rbp), %rdi
movq -32(%rbp), %rsi
callq _str_free
leaq L_.str.7(%rip), %rdi
callq _str_new
movq %rax, -80(%rbp)
movq %rdx, -72(%rbp)
movq -80(%rbp), %rax
movq %rax, -24(%rbp)
movq -72(%rbp), %rax
movq %rax, -16(%rbp)
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
movl $5, %edx
leaq L_.str.8(%rip), %rcx
callq _str_insert
movq %rax, -96(%rbp)
movq %rdx, -88(%rbp)
movq -96(%rbp), %rax
movq %rax, -24(%rbp)
movq -88(%rbp), %rax
movq %rax, -16(%rbp)
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
callq _str_repr
leaq L_.str.9(%rip), %rdi
callq _str_new
movq %rax, -112(%rbp)
movq %rdx, -104(%rbp)
movq -112(%rbp), %rax
movq %rax, -40(%rbp)
movq -104(%rbp), %rax
movq %rax, -32(%rbp)
movq -40(%rbp), %rdi
movq -32(%rbp), %rsi
movl $24, %edx
movl $27, %ecx
callq _str_slice
movq %rax, -128(%rbp)
movq %rdx, -120(%rbp)
movq -40(%rbp), %rdi
movq -32(%rbp), %rsi
movl $2, %edx
movl $23, %ecx
callq _str_slice
movq %rax, -144(%rbp)
movq %rdx, -136(%rbp)
movq -40(%rbp), %rdi
movq -32(%rbp), %rsi
callq _str_repr
movq -128(%rbp), %rdi
movq -120(%rbp), %rsi
callq _str_repr
movq -144(%rbp), %rdi
movq -136(%rbp), %rsi
callq _str_repr
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
callq _str_free
movq -40(%rbp), %rdi
movq -32(%rbp), %rsi
callq _str_free
movq -128(%rbp), %rdi
movq -120(%rbp), %rsi
callq _str_free
leaq L_.str.10(%rip), %rdi
callq _str_new
movq %rax, -160(%rbp)
movq %rdx, -152(%rbp)
movq -160(%rbp), %rax
movq %rax, -24(%rbp)
movq -152(%rbp), %rax
movq %rax, -16(%rbp)
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
movl $59, %edx
callq _str_split
movq %rax, -168(%rbp)
movq -168(%rbp), %rdi
callq _strnode_repr
movq -168(%rbp), %rdi
callq _strnode_free
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
callq _str_free
leaq L_.str.10(%rip), %rdi
callq _str_new
movq %rax, -184(%rbp)
movq %rdx, -176(%rbp)
movq -184(%rbp), %rax
movq %rax, -24(%rbp)
movq -176(%rbp), %rax
movq %rax, -16(%rbp)
movq $0, -192(%rbp)
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
movl $59, %edx
leaq -192(%rbp), %rcx
callq _str_split2
movl %eax, -196(%rbp)
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -200(%rbp)
LBB13_5: ## =>This Inner Loop Header: Depth=1
movl -200(%rbp), %eax
cmpl -196(%rbp), %eax
jge LBB13_8
## %bb.6: ## in Loop: Header=BB13_5 Depth=1
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movq -192(%rbp), %rax
movslq -200(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq 8(%rax), %rsi
callq _str_repr
movq -192(%rbp), %rax
movslq -200(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq 8(%rax), %rsi
callq _str_free
## %bb.7: ## in Loop: Header=BB13_5 Depth=1
movl -200(%rbp), %eax
addl $1, %eax
movl %eax, -200(%rbp)
jmp LBB13_5
LBB13_8:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $208, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "'%s' len:%d cap:%d\n"
L_.str.1: ## @.str.1
.asciz "[\n"
L_.str.2: ## @.str.2
.asciz "\t"
L_.str.3: ## @.str.3
.asciz "]\n"
L_.str.4: ## @.str.4
.space 1
L_.str.5: ## @.str.5
.asciz "rob"
L_.str.6: ## @.str.6
.asciz "123_"
L_.str.7: ## @.str.7
.asciz "HelloWorld"
L_.str.8: ## @.str.8
.asciz "123"
L_.str.9: ## @.str.9
.asciz "abcdefghijklmnopqrstuvwxyz"
L_.str.10: ## @.str.10
.asciz "abc;def;ghi;jklmnop;qrstuv;wxyz"
.subsections_via_symbols
| the_stack_data/161079941.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]
str wzr, [sp, #20]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #16
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
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
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldr w9, [sp, #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
ldrsw x9, [sp, #12]
add x8, sp, #24
add x8, x8, x9, lsl #2
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
b 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:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
str wzr, [sp, #12]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldr w9, [sp, #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
ldrsw x9, [sp, #12]
add x8, sp, #24
ldr w9, [x8, x9, lsl #2]
; 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
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_5
LBB0_8:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldr w1, [sp, #16]
ldr w2, [sp, #16]
add x0, sp, #24
bl _bubble_sort
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
str wzr, [sp, #12]
b LBB0_9
LBB0_9: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_12
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=1
ldrsw x9, [sp, #12]
add x8, sp, #24
ldr w9, [x8, x9, lsl #2]
; 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
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_9 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_9
LBB0_12:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@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_14
b LBB0_13
LBB0_13:
bl ___stack_chk_fail
LBB0_14:
mov w0, #0
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.globl _bubble_sort ; -- Begin function bubble_sort
.p2align 2
_bubble_sort: ; @bubble_sort
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str w1, [sp, #4]
str w2, [sp]
ldr w8, [sp]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
b LBB1_3
LBB1_2:
ldr x0, [sp, #8]
ldr w1, [sp, #4]
bl _pass
ldr x0, [sp, #8]
ldr w1, [sp, #4]
ldr w8, [sp]
subs w2, w8, #1
bl _bubble_sort
b LBB1_3
LBB1_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _pass ; -- Begin function pass
.p2align 2
_pass: ; @pass
.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]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
b LBB2_5
LBB2_2:
ldr x8, [sp, #8]
ldrsw x9, [sp, #4]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #8]
ldr w10, [sp, #4]
subs w10, w10, #1
ldr w9, [x9, w10, sxtw #2]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3:
ldr x8, [sp, #8]
ldrsw x9, [sp, #4]
ldr w8, [x8, x9, lsl #2]
str w8, [sp]
ldr x8, [sp, #8]
ldr w9, [sp, #4]
subs w9, w9, #1
ldr w8, [x8, w9, sxtw #2]
ldr x9, [sp, #8]
ldrsw x10, [sp, #4]
str w8, [x9, x10, lsl #2]
ldr w8, [sp]
ldr x9, [sp, #8]
ldr w10, [sp, #4]
subs w10, w10, #1
str w8, [x9, w10, sxtw #2]
b LBB2_4
LBB2_4:
ldr x0, [sp, #8]
ldr w8, [sp, #4]
subs w1, w8, #1
bl _pass
b LBB2_5
LBB2_5:
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 "\nEnter no. of elements: "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "\nEnter %d elements:\n"
l_.str.3: ; @.str.3
.asciz "\nGiven Array:-\n"
l_.str.4: ; @.str.4
.asciz " %d"
l_.str.5: ; @.str.5
.asciz "\n"
l_.str.6: ; @.str.6
.asciz "\nSorted Array:-\n"
l_.str.7: ; @.str.7
.asciz "\n\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $112, %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 -104(%rbp), %rsi
movb $0, %al
callq _scanf
movl -104(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -108(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -108(%rbp), %eax
cmpl -104(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq -96(%rbp), %rsi
movslq -108(%rbp), %rax
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 -108(%rbp), %eax
addl $1, %eax
movl %eax, -108(%rbp)
jmp LBB0_1
LBB0_4:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -108(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movl -108(%rbp), %eax
cmpl -104(%rbp), %eax
jge LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movslq -108(%rbp), %rax
movl -96(%rbp,%rax,4), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movl -108(%rbp), %eax
addl $1, %eax
movl %eax, -108(%rbp)
jmp LBB0_5
LBB0_8:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
leaq -96(%rbp), %rdi
movl -104(%rbp), %esi
movl -104(%rbp), %edx
callq _bubble_sort
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -108(%rbp)
LBB0_9: ## =>This Inner Loop Header: Depth=1
movl -108(%rbp), %eax
cmpl -104(%rbp), %eax
jge LBB0_12
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movslq -108(%rbp), %rax
movl -96(%rbp,%rax,4), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
## %bb.11: ## in Loop: Header=BB0_9 Depth=1
movl -108(%rbp), %eax
addl $1, %eax
movl %eax, -108(%rbp)
jmp LBB0_9
LBB0_12:
leaq L_.str.7(%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_14
## %bb.13:
xorl %eax, %eax
addq $112, %rsp
popq %rbp
retq
LBB0_14:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _bubble_sort ## -- Begin function bubble_sort
.p2align 4, 0x90
_bubble_sort: ## @bubble_sort
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
cmpl $1, -16(%rbp)
jne LBB1_2
## %bb.1:
jmp LBB1_3
LBB1_2:
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
callq _pass
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
movl -16(%rbp), %edx
subl $1, %edx
callq _bubble_sort
LBB1_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _pass ## -- Begin function pass
.p2align 4, 0x90
_pass: ## @pass
.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)
cmpl $0, -12(%rbp)
jne LBB2_2
## %bb.1:
jmp LBB2_5
LBB2_2:
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -8(%rbp), %rcx
movl -12(%rbp), %edx
subl $1, %edx
movslq %edx, %rdx
cmpl (%rcx,%rdx,4), %eax
jge LBB2_4
## %bb.3:
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -16(%rbp)
movq -8(%rbp), %rax
movl -12(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -16(%rbp), %edx
movq -8(%rbp), %rax
movl -12(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
LBB2_4:
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
subl $1, %esi
callq _pass
LBB2_5:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\nEnter no. of elements: "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "\nEnter %d elements:\n"
L_.str.3: ## @.str.3
.asciz "\nGiven Array:-\n"
L_.str.4: ## @.str.4
.asciz " %d"
L_.str.5: ## @.str.5
.asciz "\n"
L_.str.6: ## @.str.6
.asciz "\nSorted Array:-\n"
L_.str.7: ## @.str.7
.asciz "\n\n"
.subsections_via_symbols
| the_stack_data/100139207.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, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
add x0, sp, #48
str x0, [sp, #32] ; 8-byte Folded Spill
bl _preenche_vetor
ldr x1, [sp, #32] ; 8-byte Folded Reload
mov w0, #10
str w0, [sp, #28] ; 4-byte Folded Spill
bl _media
ldr w0, [sp, #28] ; 4-byte Folded Reload
ldr x1, [sp, #32] ; 8-byte Folded Reload
str s0, [sp, #44]
ldr s0, [sp, #44]
bl _variancia
ldr x0, [sp, #32] ; 8-byte Folded Reload
str s0, [sp, #40]
bl _exibe_vetor
ldr s0, [sp, #44]
fcvt d1, s0
ldr s0, [sp, #40]
fcvt d0, s0
mov x8, sp
str d1, [x8]
str d0, [x8, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
bl _getchar
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl ___stack_chk_fail
LBB0_2:
mov w0, #0
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.globl _preenche_vetor ; -- Begin function preenche_vetor
.p2align 2
_preenche_vetor: ; @preenche_vetor
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur wzr, [x29, #-12]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
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 w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldursw x9, [x29, #-12]
add x8, x8, x9, lsl #2
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _scanf
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:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _media ; -- Begin function media
.p2align 2
_media: ; @media
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #28]
str x1, [sp, #16]
movi d0, #0000000000000000
str s0, [sp, #12]
str wzr, [sp, #8]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
ldr w9, [sp, #28]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_4
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #8]
ldr s1, [x8, x9, lsl #2]
ldr s0, [sp, #12]
fadd s0, s0, s1
str s0, [sp, #12]
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB2_1
LBB2_4:
ldr s0, [sp, #12]
ldr s1, [sp, #28]
scvtf s1, s1
fdiv s0, s0, s1
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _variancia ; -- Begin function variancia
.p2align 2
_variancia: ; @variancia
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #28]
str x1, [sp, #16]
str s0, [sp, #12]
movi d0, #0000000000000000
str s0, [sp, #8]
str wzr, [sp, #4]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #28]
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 x8, [sp, #16]
ldrsw x9, [sp, #4]
ldr s0, [x8, x9, lsl #2]
ldr s1, [sp, #12]
fsub s0, s0, s1
ldr x8, [sp, #16]
ldrsw x9, [sp, #4]
ldr s1, [x8, x9, lsl #2]
ldr s2, [sp, #12]
fsub s1, s1, s2
ldr s2, [sp, #8]
fmadd s0, s0, s1, s2
str s0, [sp, #8]
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB3_1
LBB3_4:
ldr s0, [sp, #8]
ldr s1, [sp, #28]
scvtf s1, s1
fdiv s0, s0, s1
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _exibe_vetor ; -- Begin function exibe_vetor
.p2align 2
_exibe_vetor: ; @exibe_vetor
.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]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
stur wzr, [x29, #-12]
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB4_4
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldur x8, [x29, #-8]
ldursw x9, [x29, #-12]
ldr s0, [x8, x9, lsl #2]
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 LBB4_3
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB4_1
LBB4_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 "\n\nA Media = %g e a Variancia = %g \n"
l_.str.1: ; @.str.1
.asciz "\nO vetor digitado eh\n\n"
l_.str.2: ; @.str.2
.asciz "%-3g "
l_.str.3: ; @.str.3
.asciz "\nDigite o elemento %d do vetor: "
l_.str.4: ; @.str.4
.asciz "%g"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq -48(%rbp), %rdi
callq _preenche_vetor
leaq -48(%rbp), %rsi
movl $10, %edi
callq _media
movss %xmm0, -52(%rbp)
leaq -48(%rbp), %rsi
movss -52(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movl $10, %edi
callq _variancia
movss %xmm0, -56(%rbp)
leaq -48(%rbp), %rdi
callq _exibe_vetor
movss -52(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movss -56(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
leaq L_.str(%rip), %rdi
movb $2, %al
callq _printf
callq _getchar
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_2
## %bb.1:
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _preenche_vetor ## -- Begin function preenche_vetor
.p2align 4, 0x90
_preenche_vetor: ## @preenche_vetor
.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)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $10, -12(%rbp)
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -12(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rsi
movslq -12(%rbp), %rax
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _scanf
## %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:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _media ## -- Begin function media
.p2align 4, 0x90
_media: ## @media
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -20(%rbp)
movl $0, -24(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movl -24(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB2_4
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -16(%rbp), %rax
movslq -24(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addss -20(%rbp), %xmm0
movss %xmm0, -20(%rbp)
## %bb.3: ## in Loop: Header=BB2_1 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB2_1
LBB2_4:
movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtsi2ssl -4(%rbp), %xmm1
divss %xmm1, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _variancia ## -- Begin function variancia
.p2align 4, 0x90
_variancia: ## @variancia
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movss %xmm0, -20(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -24(%rbp)
movl $0, -28(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB3_4
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
subss -20(%rbp), %xmm0
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero
subss -20(%rbp), %xmm2
movss -24(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -24(%rbp)
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB3_1
LBB3_4:
movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtsi2ssl -4(%rbp), %xmm1
divss %xmm1, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _exibe_vetor ## -- Begin function exibe_vetor
.p2align 4, 0x90
_exibe_vetor: ## @exibe_vetor
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -12(%rbp)
LBB4_1: ## =>This Inner Loop Header: Depth=1
cmpl $10, -12(%rbp)
jge LBB4_4
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
## %bb.3: ## in Loop: Header=BB4_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB4_1
LBB4_4:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\n\nA Media = %g e a Variancia = %g \n"
L_.str.1: ## @.str.1
.asciz "\nO vetor digitado eh\n\n"
L_.str.2: ## @.str.2
.asciz "%-3g "
L_.str.3: ## @.str.3
.asciz "\nDigite o elemento %d do vetor: "
L_.str.4: ## @.str.4
.asciz "%g"
.subsections_via_symbols
| the_stack_data/147154.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, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur wzr, [x29, #-24]
stur wzr, [x29, #-28]
movi d0, #0000000000000000
stur s0, [x29, #-32]
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
str x0, [sp, #48] ; 8-byte Folded Spill
bl _scanf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x0, [sp, #48] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #8
str x8, [x9]
bl _scanf
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr x0, [sp, #48] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #12
str x8, [x9]
bl _scanf
stur wzr, [x29, #-20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #36
str x8, [x9]
sub x8, x29, #40
str x8, [x9, #8]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
ldur s0, [x29, #-36]
mov w8, #1108606976
fmov s1, w8
fcmp s0, s1
cset w8, hi
tbnz w8, #0, LBB0_8
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-40]
ldur w9, [x29, #-28]
add w8, w8, w9
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-24]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur w9, [x29, #-40]
ldur w8, [x29, #-28]
add w8, w8, w9
stur w8, [x29, #-28]
ldur s1, [x29, #-36]
ldur s0, [x29, #-32]
fadd s0, s0, s1
stur s0, [x29, #-32]
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
str x0, [sp, #40] ; 8-byte Folded Spill
bl _printf
ldur s0, [x29, #-36]
fcvt d0, s0
ldur w9, [x29, #-40]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str d0, [x9]
str x8, [x9, #8]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
ldur w8, [x29, #-24]
; implicit-def: $x10
mov x10, x8
ldur s0, [x29, #-32]
fcvt d0, s0
ldur w9, [x29, #-28]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str d0, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
ldr x0, [sp, #40] ; 8-byte Folded Reload
bl _printf
b LBB0_7
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
str x0, [sp, #32] ; 8-byte Folded Spill
bl _printf
ldr x0, [sp, #32] ; 8-byte Folded Reload
bl _printf
ldur w8, [x29, #-28]
; implicit-def: $x9
mov x9, x8
ldur s0, [x29, #-32]
fcvt d0, s0
fmov d1, #1.00000000
fmul d0, d0, d1
ldur s2, [x29, #-24]
; 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
mov x8, sp
str x9, [x8]
str d0, [x8, #8]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
ldr x0, [sp, #32] ; 8-byte Folded Reload
ldur s0, [x29, #-36]
stur s0, [x29, #-32]
ldur w8, [x29, #-40]
stur w8, [x29, #-28]
mov w8, #1
stur w8, [x29, #-24]
bl _printf
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_1
LBB0_10:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Unesite broj studenata: "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Unesite broj osoba u liftu: "
l_.str.3: ; @.str.3
.asciz "Unesite maksimalnu nosivost lifta: "
l_.str.4: ; @.str.4
.asciz "Unesi podatke o studentu: "
l_.str.5: ; @.str.5
.asciz "%f%d"
l_.str.6: ; @.str.6
.asciz "============================\n"
l_.str.7: ; @.str.7
.asciz "Student je usao u lift: %.2f\t%d\n"
l_.str.8: ; @.str.8
.asciz "Trenutno stanje => brStudenata: %d\tTemperatura:%.2f\tTezina:%d\n"
l_.str.9: ; @.str.9
.asciz "Lift je pun...\nStanje:\n%5d\n%.2f\n"
l_.str.10: ; @.str.10
.asciz "Zapocinjem punjenje sledece ture...\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 0x42140000 ## float 37
.section __TEXT,__literal8,8byte_literals
.p2align 3
LCPI0_1:
.quad 0x3ff0000000000000 ## double 1
.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
movl $0, -4(%rbp)
movl $0, -24(%rbp)
movl $0, -28(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -32(%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
leaq L_.str.2(%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.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB0_10
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.5(%rip), %rdi
leaq -36(%rbp), %rsi
leaq -40(%rbp), %rdx
movb $0, %al
callq _scanf
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -36(%rbp), %xmm0
jb LBB0_8
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -40(%rbp), %eax
addl -28(%rbp), %eax
cmpl -12(%rbp), %eax
jg LBB0_6
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movl -24(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movl -40(%rbp), %eax
addl -28(%rbp), %eax
movl %eax, -28(%rbp)
movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addss -32(%rbp), %xmm0
movss %xmm0, -32(%rbp)
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movl -40(%rbp), %esi
leaq L_.str.7(%rip), %rdi
movb $1, %al
callq _printf
movl -24(%rbp), %esi
movss -32(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movl -28(%rbp), %edx
leaq L_.str.8(%rip), %rdi
movb $1, %al
callq _printf
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_7
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
movl -28(%rbp), %esi
movss -32(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
cvtsi2sdl -24(%rbp), %xmm1
divsd %xmm1, %xmm0
leaq L_.str.9(%rip), %rdi
movb $1, %al
callq _printf
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -32(%rbp)
movl -40(%rbp), %eax
movl %eax, -28(%rbp)
movl $1, -24(%rbp)
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_8
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_1
LBB0_10:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Unesite broj studenata: "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Unesite broj osoba u liftu: "
L_.str.3: ## @.str.3
.asciz "Unesite maksimalnu nosivost lifta: "
L_.str.4: ## @.str.4
.asciz "Unesi podatke o studentu: "
L_.str.5: ## @.str.5
.asciz "%f%d"
L_.str.6: ## @.str.6
.asciz "============================\n"
L_.str.7: ## @.str.7
.asciz "Student je usao u lift: %.2f\t%d\n"
L_.str.8: ## @.str.8
.asciz "Trenutno stanje => brStudenata: %d\tTemperatura:%.2f\tTezina:%d\n"
L_.str.9: ## @.str.9
.asciz "Lift je pun...\nStanje:\n%5d\n%.2f\n"
L_.str.10: ## @.str.10
.asciz "Zapocinjem punjenje sledece ture...\n"
.subsections_via_symbols
| the_stack_data/242331822.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:
mov w0, #1
ret
.cfi_endproc
; -- End function
.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
movl $1, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/89201543.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, #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 _sub ; -- Begin function sub
.p2align 2
_sub: ; @sub
.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 _mul ; -- Begin function mul
.p2align 2
_mul: ; @mul
.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]
mul w0, w8, w9
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _div ; -- Begin function div
.p2align 2
_div: ; @div
.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]
sdiv w0, w8, w9
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _compute ; -- Begin function compute
.p2align 2
_compute: ; @compute
.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 _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, #20
stur w8, [x29, #-8]
mov w8, #30
stur w8, [x29, #-12]
str wzr, [sp, #16]
ldur w0, [x29, #-8]
ldur w1, [x29, #-12]
adrp x2, _add@PAGE
add x2, x2, _add@PAGEOFF
bl _compute
str w0, [sp, #16]
ldr w9, [sp, #16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur w0, [x29, #-8]
ldur w1, [x29, #-12]
adrp x2, _sub@PAGE
add x2, x2, _sub@PAGEOFF
bl _compute
str w0, [sp, #16]
ldr w9, [sp, #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
ldur w0, [x29, #-8]
ldur w1, [x29, #-12]
adrp x2, _mul@PAGE
add x2, x2, _mul@PAGEOFF
bl _compute
str w0, [sp, #16]
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
ldur w0, [x29, #-8]
ldur w1, [x29, #-12]
adrp x2, _div@PAGE
add x2, x2, _div@PAGEOFF
bl _compute
str w0, [sp, #16]
ldr w9, [sp, #16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr 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 "add c = %d\n"
l_.str.1: ; @.str.1
.asciz "sub c = %d\n"
l_.str.2: ; @.str.2
.asciz "mul c = %d\n"
l_.str.3: ; @.str.3
.asciz "div c = %d\n"
.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
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl -4(%rbp), %eax
addl -8(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _sub ## -- Begin function sub
.p2align 4, 0x90
_sub: ## @sub
.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 _mul ## -- Begin function mul
.p2align 4, 0x90
_mul: ## @mul
.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
imull -8(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _div ## -- Begin function div
.p2align 4, 0x90
_div: ## @div
.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
cltd
idivl -8(%rbp)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _compute ## -- Begin function compute
.p2align 4, 0x90
_compute: ## @compute
.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 _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 $20, -8(%rbp)
movl $30, -12(%rbp)
movl $0, -16(%rbp)
movl -8(%rbp), %edi
movl -12(%rbp), %esi
leaq _add(%rip), %rdx
callq _compute
movl %eax, -16(%rbp)
movl -16(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %edi
movl -12(%rbp), %esi
leaq _sub(%rip), %rdx
callq _compute
movl %eax, -16(%rbp)
movl -16(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %edi
movl -12(%rbp), %esi
leaq _mul(%rip), %rdx
callq _compute
movl %eax, -16(%rbp)
movl -16(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %edi
movl -12(%rbp), %esi
leaq _div(%rip), %rdx
callq _compute
movl %eax, -16(%rbp)
movl -16(%rbp), %esi
leaq L_.str.3(%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 "add c = %d\n"
L_.str.1: ## @.str.1
.asciz "sub c = %d\n"
L_.str.2: ## @.str.2
.asciz "mul c = %d\n"
L_.str.3: ## @.str.3
.asciz "div c = %d\n"
.subsections_via_symbols
| the_stack_data/105728.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 0x3fe999999999999a ; double 0.80000000000000004
.section __TEXT,__text,regular,pure_instructions
.globl _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
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
ldur s0, [x29, #-4]
fcvt d0, s0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fmul d0, d0, d1
fcvt s0, d0
str s0, [sp, #8]
ldr s0, [sp, #8]
ldur s1, [x29, #-4]
fadd s0, s0, s1
fcvt d0, s0
mov x8, sp
str d0, [x8]
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 _system
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Quanto foi a tarifa da agua? "
l_.str.1: ; @.str.1
.asciz "%f"
l_.str.2: ; @.str.2
.asciz "A conta sera de %.2f reais.\n"
l_.str.3: ; @.str.3
.asciz "pause"
.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 0x3fe999999999999a ## double 0.80000000000000004
.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
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
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -8(%rbp)
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addss -4(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
leaq L_.str.3(%rip), %rdi
callq _system
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Quanto foi a tarifa da agua? "
L_.str.1: ## @.str.1
.asciz "%f"
L_.str.2: ## @.str.2
.asciz "A conta sera de %.2f reais.\n"
L_.str.3: ## @.str.3
.asciz "pause"
.subsections_via_symbols
| the_stack_data/90764725.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _big_function_1 ; -- Begin function big_function_1
.p2align 2
_big_function_1: ; @big_function_1
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #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:
b LBB0_4
LBB0_4: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=1
b LBB0_4
LBB0_6:
b LBB0_7
LBB0_7: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=1
b LBB0_7
LBB0_9:
b LBB0_10
LBB0_10: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_10 Depth=1
b LBB0_10
LBB0_12:
b LBB0_13
LBB0_13: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=1
b LBB0_13
LBB0_15:
b LBB0_16
LBB0_16: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_16 Depth=1
b LBB0_16
LBB0_18:
b LBB0_19
LBB0_19: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_19 Depth=1
b LBB0_19
LBB0_21:
b LBB0_22
LBB0_22: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_22 Depth=1
b LBB0_22
LBB0_24:
b LBB0_25
LBB0_25: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_27
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_25 Depth=1
b LBB0_25
LBB0_27:
b LBB0_28
LBB0_28: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_30
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_28 Depth=1
b LBB0_28
LBB0_30:
b LBB0_31
LBB0_31: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_33
b LBB0_32
LBB0_32: ; in Loop: Header=BB0_31 Depth=1
b LBB0_31
LBB0_33:
b LBB0_34
LBB0_34: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_36
b LBB0_35
LBB0_35: ; in Loop: Header=BB0_34 Depth=1
b LBB0_34
LBB0_36:
b LBB0_37
LBB0_37: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_39
b LBB0_38
LBB0_38: ; in Loop: Header=BB0_37 Depth=1
b LBB0_37
LBB0_39:
b LBB0_40
LBB0_40: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_42
b LBB0_41
LBB0_41: ; in Loop: Header=BB0_40 Depth=1
b LBB0_40
LBB0_42:
b LBB0_43
LBB0_43: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_45
b LBB0_44
LBB0_44: ; in Loop: Header=BB0_43 Depth=1
b LBB0_43
LBB0_45:
b LBB0_46
LBB0_46: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_48
b LBB0_47
LBB0_47: ; in Loop: Header=BB0_46 Depth=1
b LBB0_46
LBB0_48:
b LBB0_49
LBB0_49: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_51
b LBB0_50
LBB0_50: ; in Loop: Header=BB0_49 Depth=1
b LBB0_49
LBB0_51:
bl _big_function_2
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function big_function_2
_big_function_2: ; @big_function_2
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
b LBB1_1
LBB1_3:
b LBB1_4
LBB1_4: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_4 Depth=1
b LBB1_4
LBB1_6:
b LBB1_7
LBB1_7: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_9
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_7 Depth=1
b LBB1_7
LBB1_9:
b LBB1_10
LBB1_10: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_12
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_10 Depth=1
b LBB1_10
LBB1_12:
b LBB1_13
LBB1_13: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_15
b LBB1_14
LBB1_14: ; in Loop: Header=BB1_13 Depth=1
b LBB1_13
LBB1_15:
b LBB1_16
LBB1_16: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_18
b LBB1_17
LBB1_17: ; in Loop: Header=BB1_16 Depth=1
b LBB1_16
LBB1_18:
b LBB1_19
LBB1_19: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_21
b LBB1_20
LBB1_20: ; in Loop: Header=BB1_19 Depth=1
b LBB1_19
LBB1_21:
b LBB1_22
LBB1_22: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_24
b LBB1_23
LBB1_23: ; in Loop: Header=BB1_22 Depth=1
b LBB1_22
LBB1_24:
b LBB1_25
LBB1_25: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_27
b LBB1_26
LBB1_26: ; in Loop: Header=BB1_25 Depth=1
b LBB1_25
LBB1_27:
b LBB1_28
LBB1_28: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_30
b LBB1_29
LBB1_29: ; in Loop: Header=BB1_28 Depth=1
b LBB1_28
LBB1_30:
b LBB1_31
LBB1_31: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_33
b LBB1_32
LBB1_32: ; in Loop: Header=BB1_31 Depth=1
b LBB1_31
LBB1_33:
b LBB1_34
LBB1_34: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_36
b LBB1_35
LBB1_35: ; in Loop: Header=BB1_34 Depth=1
b LBB1_34
LBB1_36:
b LBB1_37
LBB1_37: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_39
b LBB1_38
LBB1_38: ; in Loop: Header=BB1_37 Depth=1
b LBB1_37
LBB1_39:
b LBB1_40
LBB1_40: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_42
b LBB1_41
LBB1_41: ; in Loop: Header=BB1_40 Depth=1
b LBB1_40
LBB1_42:
b LBB1_43
LBB1_43: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_45
b LBB1_44
LBB1_44: ; in Loop: Header=BB1_43 Depth=1
b LBB1_43
LBB1_45:
b LBB1_46
LBB1_46: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_48
b LBB1_47
LBB1_47: ; in Loop: Header=BB1_46 Depth=1
b LBB1_46
LBB1_48:
b LBB1_49
LBB1_49: ; =>This Inner Loop Header: Depth=1
bl _t
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_51
b LBB1_50
LBB1_50: ; in Loop: Header=BB1_49 Depth=1
b LBB1_49
LBB1_51:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _big_function_1 ## -- Begin function big_function_1
.p2align 4, 0x90
_big_function_1: ## @big_function_1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
jmp LBB0_1
LBB0_1: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_3:
jmp LBB0_4
LBB0_4: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
jmp LBB0_4
LBB0_6:
jmp LBB0_7
LBB0_7: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_9
## %bb.8: ## in Loop: Header=BB0_7 Depth=1
jmp LBB0_7
LBB0_9:
jmp LBB0_10
LBB0_10: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_12
## %bb.11: ## in Loop: Header=BB0_10 Depth=1
jmp LBB0_10
LBB0_12:
jmp LBB0_13
LBB0_13: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_15
## %bb.14: ## in Loop: Header=BB0_13 Depth=1
jmp LBB0_13
LBB0_15:
jmp LBB0_16
LBB0_16: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_18
## %bb.17: ## in Loop: Header=BB0_16 Depth=1
jmp LBB0_16
LBB0_18:
jmp LBB0_19
LBB0_19: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_21
## %bb.20: ## in Loop: Header=BB0_19 Depth=1
jmp LBB0_19
LBB0_21:
jmp LBB0_22
LBB0_22: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_24
## %bb.23: ## in Loop: Header=BB0_22 Depth=1
jmp LBB0_22
LBB0_24:
jmp LBB0_25
LBB0_25: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_27
## %bb.26: ## in Loop: Header=BB0_25 Depth=1
jmp LBB0_25
LBB0_27:
jmp LBB0_28
LBB0_28: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_30
## %bb.29: ## in Loop: Header=BB0_28 Depth=1
jmp LBB0_28
LBB0_30:
jmp LBB0_31
LBB0_31: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_33
## %bb.32: ## in Loop: Header=BB0_31 Depth=1
jmp LBB0_31
LBB0_33:
jmp LBB0_34
LBB0_34: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_36
## %bb.35: ## in Loop: Header=BB0_34 Depth=1
jmp LBB0_34
LBB0_36:
jmp LBB0_37
LBB0_37: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_39
## %bb.38: ## in Loop: Header=BB0_37 Depth=1
jmp LBB0_37
LBB0_39:
jmp LBB0_40
LBB0_40: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_42
## %bb.41: ## in Loop: Header=BB0_40 Depth=1
jmp LBB0_40
LBB0_42:
jmp LBB0_43
LBB0_43: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_45
## %bb.44: ## in Loop: Header=BB0_43 Depth=1
jmp LBB0_43
LBB0_45:
jmp LBB0_46
LBB0_46: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_48
## %bb.47: ## in Loop: Header=BB0_46 Depth=1
jmp LBB0_46
LBB0_48:
jmp LBB0_49
LBB0_49: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB0_51
## %bb.50: ## in Loop: Header=BB0_49 Depth=1
jmp LBB0_49
LBB0_51:
callq _big_function_2
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function big_function_2
_big_function_2: ## @big_function_2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
jmp LBB1_1
LBB1_1: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_1
LBB1_3:
jmp LBB1_4
LBB1_4: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_6
## %bb.5: ## in Loop: Header=BB1_4 Depth=1
jmp LBB1_4
LBB1_6:
jmp LBB1_7
LBB1_7: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_9
## %bb.8: ## in Loop: Header=BB1_7 Depth=1
jmp LBB1_7
LBB1_9:
jmp LBB1_10
LBB1_10: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_12
## %bb.11: ## in Loop: Header=BB1_10 Depth=1
jmp LBB1_10
LBB1_12:
jmp LBB1_13
LBB1_13: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_15
## %bb.14: ## in Loop: Header=BB1_13 Depth=1
jmp LBB1_13
LBB1_15:
jmp LBB1_16
LBB1_16: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_18
## %bb.17: ## in Loop: Header=BB1_16 Depth=1
jmp LBB1_16
LBB1_18:
jmp LBB1_19
LBB1_19: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_21
## %bb.20: ## in Loop: Header=BB1_19 Depth=1
jmp LBB1_19
LBB1_21:
jmp LBB1_22
LBB1_22: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_24
## %bb.23: ## in Loop: Header=BB1_22 Depth=1
jmp LBB1_22
LBB1_24:
jmp LBB1_25
LBB1_25: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_27
## %bb.26: ## in Loop: Header=BB1_25 Depth=1
jmp LBB1_25
LBB1_27:
jmp LBB1_28
LBB1_28: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_30
## %bb.29: ## in Loop: Header=BB1_28 Depth=1
jmp LBB1_28
LBB1_30:
jmp LBB1_31
LBB1_31: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_33
## %bb.32: ## in Loop: Header=BB1_31 Depth=1
jmp LBB1_31
LBB1_33:
jmp LBB1_34
LBB1_34: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_36
## %bb.35: ## in Loop: Header=BB1_34 Depth=1
jmp LBB1_34
LBB1_36:
jmp LBB1_37
LBB1_37: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_39
## %bb.38: ## in Loop: Header=BB1_37 Depth=1
jmp LBB1_37
LBB1_39:
jmp LBB1_40
LBB1_40: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_42
## %bb.41: ## in Loop: Header=BB1_40 Depth=1
jmp LBB1_40
LBB1_42:
jmp LBB1_43
LBB1_43: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_45
## %bb.44: ## in Loop: Header=BB1_43 Depth=1
jmp LBB1_43
LBB1_45:
jmp LBB1_46
LBB1_46: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_48
## %bb.47: ## in Loop: Header=BB1_46 Depth=1
jmp LBB1_46
LBB1_48:
jmp LBB1_49
LBB1_49: ## =>This Inner Loop Header: Depth=1
callq _t
cmpl $0, %eax
je LBB1_51
## %bb.50: ## in Loop: Header=BB1_49 Depth=1
jmp LBB1_49
LBB1_51:
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/37637319.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _f ; -- Begin function f
.p2align 2
_f: ; @f
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w8, [sp, #12]
adrp x9, _glob_x@GOTPAGE
ldr x9, [x9, _glob_x@GOTPAGEOFF]
ldr w9, [x9]
add w8, w8, w9
add w0, w8, #3
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _vector_get_x ; -- Begin function vector_get_x
.p2align 2
_vector_get_x: ; @vector_get_x
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr w8, [sp, #8]
str w8, [sp, #4]
ldr w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _f ## -- Begin function f
.p2align 4, 0x90
_f: ## @f
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl -4(%rbp), %eax
movq _glob_x@GOTPCREL(%rip), %rcx
addl (%rcx), %eax
addl $3, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _vector_get_x ## -- Begin function vector_get_x
.p2align 4, 0x90
_vector_get_x: ## @vector_get_x
.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 -8(%rbp), %eax
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/80048.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
str wzr, [sp]
str wzr, [sp, #4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _getchar
str w0, [sp, #8]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
ldr w8, [sp, #8]
subs w8, w8, #32
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp]
add w8, w8, #1
str w8, [sp]
ldr w8, [sp]
subs w8, w8, #4
cset w8, lt
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w0, [sp, #4]
ldr w1, [sp]
bl _entab
b LBB0_6
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr w0, [sp, #8]
bl _putchar
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_11
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp]
str wzr, [sp, #4]
ldr w0, [sp, #8]
bl _putchar
b LBB0_10
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr w0, [sp, #8]
bl _putchar
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_12:
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _entab ; -- Begin function entab
.p2align 2
_entab: ; @entab
.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]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
subs w8, w8, #4
cset w8, lt
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
mov w0, #9
bl _putchar
ldr w8, [sp, #8]
subs w8, w8, #4
str w8, [sp, #8]
b LBB1_1
LBB1_3:
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4:
b LBB1_5
LBB1_5:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $0, -16(%rbp)
movl $0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
callq _getchar
movl %eax, -8(%rbp)
cmpl $-1, %eax
je LBB0_12
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
cmpl $32, -8(%rbp)
jne LBB0_7
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
cmpl $4, -16(%rbp)
jl LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %edi
movl -16(%rbp), %esi
callq _entab
jmp LBB0_6
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %edi
callq _putchar
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_11
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
cmpl $10, -8(%rbp)
jne LBB0_9
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
movl $0, -16(%rbp)
movl $0, -12(%rbp)
movl -8(%rbp), %edi
callq _putchar
jmp LBB0_10
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %edi
callq _putchar
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_11
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_12:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _entab ## -- Begin function entab
.p2align 4, 0x90
_entab: ## @entab
.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)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $4, -8(%rbp)
jl LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl $9, %edi
callq _putchar
movl -8(%rbp), %eax
subl $4, %eax
movl %eax, -8(%rbp)
jmp LBB1_1
LBB1_3:
cmpl $0, -8(%rbp)
jle LBB1_5
## %bb.4:
jmp LBB1_5
LBB1_5:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/43888094.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]
mov w8, #1
stur w8, [x29, #-8]
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, #2
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_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
ldr w10, [sp, #16]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
stur wzr, [x29, #-8]
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, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_1
LBB0_6:
ldur w8, [x29, #-12]
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
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
b LBB0_10
LBB0_9:
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_10
LBB0_10:
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 a number: "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "\n%d is not a prime number\n"
l_.str.3: ; @.str.3
.asciz "\n%d is a prime number\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, -8(%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 $2, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
cltd
idivl -16(%rbp)
cmpl $0, %edx
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl $0, -8(%rbp)
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_1
LBB0_6:
cmpl $1, -12(%rbp)
je LBB0_8
## %bb.7:
cmpl $0, -8(%rbp)
jne LBB0_9
LBB0_8:
movl -12(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_10
LBB0_9:
movl -12(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
LBB0_10:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter a number: "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "\n%d is not a prime number\n"
L_.str.3: ## @.str.3
.asciz "\n%d is a prime number\n"
.subsections_via_symbols
| the_stack_data/516805.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]
mov w8, #20
stur w8, [x29, #-8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
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
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _scanf
ldur w8, [x29, #-8]
subs w8, w8, #1
; kill: def $x8 killed $w8
str x8, [sp, #16] ; 8-byte Folded Spill
subs x8, x8, #8
cset w8, hi
tbnz w8, #0, LBB0_12
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
ldr x11, [sp, #16] ; 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
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
bl _create
b LBB0_13
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
bl _insert
b LBB0_13
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
bl _display
b LBB0_13
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
bl _delete1
b LBB0_13
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
bl _deletelast
b LBB0_13
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
bl _deletepart
b LBB0_13
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _printf
bl _displayreverse
b LBB0_13
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.16@PAGE
add x0, x0, l_.str.16@PAGEOFF
bl _printf
b LBB0_13
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.17@PAGE
add x0, x0, l_.str.17@PAGEOFF
bl _printf
b LBB0_13
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.18@PAGE
add x0, x0, l_.str.18@PAGEOFF
bl _printf
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_1 Depth=1
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB0_1
b LBB0_15
LBB0_15:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_3-Ltmp0
.long LBB0_4-Ltmp0
.long LBB0_5-Ltmp0
.long LBB0_6-Ltmp0
.long LBB0_7-Ltmp0
.long LBB0_8-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_10-Ltmp0
.long LBB0_11-Ltmp0
; -- End function
.globl _create ; -- Begin function create
.p2align 2
_create: ; @create
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
; kill: def $x8 killed $xzr
str xzr, [sp, #16]
adrp x0, l_.str.19@PAGE
add x0, x0, l_.str.19@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _scanf
stur wzr, [x29, #-4]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-4]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_7
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
mov x0, #24
bl _malloc
str x0, [sp, #16]
adrp x0, l_.str.20@PAGE
add x0, x0, l_.str.20@PAGEOFF
bl _printf
ldr x8, [sp, #16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _scanf
ldr x8, [sp, #16]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldr x8, [sp, #16]
str xzr, [x8, #16]
adrp x8, _header@PAGE
ldr x8, [x8, _header@PAGEOFF]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #16]
adrp x9, _last@PAGE
str x8, [x9, _last@PAGEOFF]
adrp x9, _header@PAGE
str x8, [x9, _header@PAGEOFF]
b LBB1_5
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #16]
adrp x9, _last@PAGE
ldr x10, [x9, _last@PAGEOFF]
str x8, [x10, #8]
ldr x8, [x9, _last@PAGEOFF]
ldr x10, [sp, #16]
str x8, [x10, #16]
ldr x8, [sp, #16]
str x8, [x9, _last@PAGEOFF]
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-4]
b LBB1_1
LBB1_7:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
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
; kill: def $x8 killed $xzr
str xzr, [sp, #8]
adrp x8, _header@PAGE
ldr x8, [x8, _header@PAGEOFF]
str x8, [sp, #8]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #8]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.21@PAGE
add x0, x0, l_.str.21@PAGEOFF
bl _printf
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB2_1
LBB2_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _delete1 ; -- Begin function delete1
.p2align 2
_delete1: ; @delete1
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _header@PAGE
ldr x9, [x8, _header@PAGEOFF]
str x9, [sp, #8]
ldr x8, [x8, _header@PAGEOFF]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
adrp x0, l_.str.22@PAGE
add x0, x0, l_.str.22@PAGEOFF
bl _printf
b LBB3_5
LBB3_2:
adrp x8, _header@PAGE
ldr x8, [x8, _header@PAGEOFF]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3:
; kill: def $x8 killed $xzr
adrp x8, _header@PAGE
str xzr, [x8, _header@PAGEOFF]
b LBB3_4
LBB3_4:
adrp x8, _header@PAGE
ldr x9, [x8, _header@PAGEOFF]
ldr x9, [x9, #8]
str x9, [x8, _header@PAGEOFF]
ldr x8, [x8, _header@PAGEOFF]
; kill: def $x9 killed $xzr
str xzr, [x8, #16]
b LBB3_5
LBB3_5:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _deletelast ; -- Begin function deletelast
.p2align 2
_deletelast: ; @deletelast
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _header@PAGE
ldr x8, [x8, _header@PAGEOFF]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
adrp x0, l_.str.22@PAGE
add x0, x0, l_.str.22@PAGEOFF
bl _printf
b LBB4_5
LBB4_2:
adrp x8, _header@PAGE
ldr x8, [x8, _header@PAGEOFF]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB4_4
b LBB4_3
LBB4_3:
; kill: def $x8 killed $xzr
adrp x8, _header@PAGE
str xzr, [x8, _header@PAGEOFF]
b LBB4_4
LBB4_4:
adrp x8, _last@PAGE
ldr x8, [x8, _last@PAGEOFF]
ldr x8, [x8, #16]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
b LBB4_5
LBB4_5:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _deletepart ; -- Begin function deletepart
.p2align 2
_deletepart: ; @deletepart
.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 x0, l_.str.23@PAGE
add x0, x0, l_.str.23@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #12
str x8, [x9]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _scanf
adrp x8, _header@PAGE
ldr x9, [x8, _header@PAGEOFF]
stur x9, [x29, #-8]
ldr x8, [x8, _header@PAGEOFF]
ldr w8, [x8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
adrp x9, _header@PAGE
ldr x8, [x9, _header@PAGEOFF]
ldr x8, [x8, #8]
str x8, [x9, _header@PAGEOFF]
b LBB5_6
LBB5_2:
b LBB5_3
LBB5_3: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
ldr w8, [x8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB5_5
b LBB5_4
LBB5_4: ; in Loop: Header=BB5_3 Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
stur x8, [x29, #-8]
b LBB5_3
LBB5_5:
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldur x9, [x29, #-8]
ldr x9, [x9, #16]
str x8, [x9, #8]
ldur x8, [x29, #-8]
ldr x8, [x8, #16]
ldur x9, [x29, #-8]
ldr x9, [x9, #8]
str x8, [x9, #16]
b LBB5_6
LBB5_6:
adrp x0, l_.str.24@PAGE
add x0, x0, l_.str.24@PAGEOFF
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _insert ; -- Begin function insert
.p2align 2
_insert: ; @insert
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, #24
bl _malloc
stur x0, [x29, #-16]
adrp x0, l_.str.25@PAGE
add x0, x0, l_.str.25@PAGEOFF
bl _printf
ldur x8, [x29, #-16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
bl _scanf
adrp x0, l_.str.26@PAGE
add x0, x0, l_.str.26@PAGEOFF
bl _printf
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
add x8, sp, #24
str x8, [x9]
bl _scanf
adrp x8, _header@PAGE
ldr x8, [x8, _header@PAGEOFF]
stur x8, [x29, #-8]
b LBB6_1
LBB6_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
ldr w8, [x8]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB6_3
b LBB6_2
LBB6_2: ; in Loop: Header=BB6_1 Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
stur x8, [x29, #-8]
b LBB6_1
LBB6_3:
ldur x8, [x29, #-16]
ldur x9, [x29, #-8]
ldr x9, [x9, #16]
str x8, [x9, #8]
ldur x8, [x29, #-8]
ldur x9, [x29, #-16]
str x8, [x9, #8]
ldur x8, [x29, #-8]
ldr x8, [x8, #16]
ldur x9, [x29, #-16]
str x8, [x9, #16]
ldur x8, [x29, #-16]
ldur x9, [x29, #-8]
str x8, [x9, #16]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _displayreverse ; -- Begin function displayreverse
.p2align 2
_displayreverse: ; @displayreverse
.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
; kill: def $x8 killed $xzr
str xzr, [sp, #8]
adrp x8, _last@PAGE
ldr x8, [x8, _last@PAGEOFF]
str x8, [sp, #8]
b LBB7_1
LBB7_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB7_3
b LBB7_2
LBB7_2: ; in Loop: Header=BB7_1 Depth=1
ldr x8, [sp, #8]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.21@PAGE
add x0, x0, l_.str.21@PAGEOFF
bl _printf
ldr x8, [sp, #8]
ldr x8, [x8, #16]
str x8, [sp, #8]
b LBB7_1
LBB7_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _inserlast ; -- Begin function inserlast
.p2align 2
_inserlast: ; @inserlast
.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 x0, #24
bl _malloc
stur x0, [x29, #-8]
adrp x0, l_.str.27@PAGE
add x0, x0, l_.str.27@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldr w9, [x8]
; 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 _scanf
adrp x8, _header@PAGE
ldr x8, [x8, _header@PAGEOFF]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB8_2
b LBB8_1
LBB8_1:
ldur x8, [x29, #-8]
str x8, [sp, #16]
adrp x9, _header@PAGE
str x8, [x9, _header@PAGEOFF]
ldur x8, [x29, #-8]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldur x8, [x29, #-8]
str xzr, [x8, #16]
b LBB8_4
LBB8_2:
ldur x8, [x29, #-8]
ldr x9, [sp, #16]
str x8, [x9, #8]
ldur x8, [x29, #-8]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldr x8, [sp, #16]
ldur x9, [x29, #-8]
str x8, [x9, #16]
ldur x8, [x29, #-8]
str x8, [sp, #16]
b LBB8_3
LBB8_3:
ldur x8, [x29, #-8]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldur x8, [x29, #-8]
str xzr, [x8, #16]
ldur x9, [x29, #-8]
adrp x8, _last@PAGE
ldr x10, [x8, _last@PAGEOFF]
str x9, [x10, #8]
ldr x8, [x8, _last@PAGEOFF]
ldur x9, [x29, #-8]
str x8, [x9, #16]
b LBB8_4
LBB8_4:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _header ; @header
.zerofill __DATA,__common,_header,8,3
.globl _last ; @last
.zerofill __DATA,__common,_last,8,3
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "press 1 to create a list\n"
l_.str.1: ; @.str.1
.asciz "press 2 to insert a number\n"
l_.str.2: ; @.str.2
.asciz "press 3 to display a list \n"
l_.str.3: ; @.str.3
.asciz "press 4 to deleting 1 element of a list item\n"
l_.str.4: ; @.str.4
.asciz "press 5 to deleting last element of a list item\n"
l_.str.5: ; @.str.5
.asciz "press 6 to delete particular element of a list item\n"
l_.str.6: ; @.str.6
.asciz "press 7 to display reverse of a list \n"
l_.str.7: ; @.str.7
.asciz "press 8 to exit"
l_.str.8: ; @.str.8
.asciz "%d"
l_.str.9: ; @.str.9
.asciz "create\n"
l_.str.10: ; @.str.10
.asciz "insert\n"
l_.str.11: ; @.str.11
.asciz "display\n"
l_.str.12: ; @.str.12
.asciz "delete first\n"
l_.str.13: ; @.str.13
.asciz "delete last\n"
l_.str.14: ; @.str.14
.asciz "delete particular\n"
l_.str.15: ; @.str.15
.asciz "display reverse\n"
l_.str.16: ; @.str.16
.asciz "alternate\n"
l_.str.17: ; @.str.17
.asciz "::::::::::::EXIT:::::::::::\n"
l_.str.18: ; @.str.18
.asciz "invalid input"
l_.str.19: ; @.str.19
.asciz "enter the number of nodes"
l_.str.20: ; @.str.20
.asciz "enter the integer part"
l_.str.21: ; @.str.21
.asciz "->%d\n"
l_.str.22: ; @.str.22
.asciz "detletion not possible"
l_.str.23: ; @.str.23
.asciz "enter the int part to be deleted"
l_.str.24: ; @.str.24
.asciz "element is not present"
l_.str.25: ; @.str.25
.asciz "\nenter the integer to be inserted\n"
l_.str.26: ; @.str.26
.asciz "\nthe integer before which it is to be inserted\n"
l_.str.27: ; @.str.27
.asciz "\nenter the integer part"
.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 $20, -8(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movb %al, -17(%rbp) ## 1-byte Spill
callq _printf
## kill: def $ecx killed $eax
movb -17(%rbp), %al ## 1-byte Reload
leaq L_.str.1(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -17(%rbp), %al ## 1-byte Reload
leaq L_.str.2(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -17(%rbp), %al ## 1-byte Reload
leaq L_.str.3(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -17(%rbp), %al ## 1-byte Reload
leaq L_.str.4(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -17(%rbp), %al ## 1-byte Reload
leaq L_.str.5(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -17(%rbp), %al ## 1-byte Reload
leaq L_.str.6(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -17(%rbp), %al ## 1-byte Reload
leaq L_.str.7(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -17(%rbp), %al ## 1-byte Reload
leaq L_.str.8(%rip), %rdi
leaq -8(%rbp), %rsi
callq _scanf
movl -8(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -16(%rbp) ## 8-byte Spill
subl $8, %eax
ja LBB0_11
## %bb.15: ## in Loop: Header=BB0_1 Depth=1
movq -16(%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
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
callq _create
jmp LBB0_12
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
callq _insert
jmp LBB0_12
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
callq _display
jmp LBB0_12
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
callq _delete1
jmp LBB0_12
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
callq _deletelast
jmp LBB0_12
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
callq _deletepart
jmp LBB0_12
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.15(%rip), %rdi
movb $0, %al
callq _printf
callq _displayreverse
jmp LBB0_12
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.16(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_12
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.17(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_12
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.18(%rip), %rdi
movb $0, %al
callq _printf
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_13
LBB0_13: ## in Loop: Header=BB0_1 Depth=1
cmpl $10, -8(%rbp)
jne LBB0_1
## %bb.14:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
.long L0_0_set_2
.long L0_0_set_3
.long L0_0_set_4
.long L0_0_set_5
.long L0_0_set_6
.long L0_0_set_7
.long L0_0_set_8
.long L0_0_set_9
.long L0_0_set_10
.end_data_region
## -- End function
.globl _create ## -- Begin function create
.p2align 4, 0x90
_create: ## @create
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq $0, -16(%rbp)
leaq L_.str.19(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.8(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -4(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -4(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB1_7
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl $24, %edi
callq _malloc
movq %rax, -16(%rbp)
leaq L_.str.20(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rsi
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _scanf
movq -16(%rbp), %rax
movq $0, 8(%rax)
movq -16(%rbp), %rax
movq $0, 16(%rax)
cmpq $0, _header(%rip)
jne LBB1_4
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movq -16(%rbp), %rax
movq %rax, _last(%rip)
movq %rax, _header(%rip)
jmp LBB1_5
LBB1_4: ## in Loop: Header=BB1_1 Depth=1
movq -16(%rbp), %rcx
movq _last(%rip), %rax
movq %rcx, 8(%rax)
movq _last(%rip), %rcx
movq -16(%rbp), %rax
movq %rcx, 16(%rax)
movq -16(%rbp), %rax
movq %rax, _last(%rip)
LBB1_5: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_6
LBB1_6: ## in Loop: Header=BB1_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB1_1
LBB1_7:
addq $16, %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 $0, -8(%rbp)
movq _header(%rip), %rax
movq %rax, -8(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -8(%rbp)
je LBB2_3
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -8(%rbp), %rax
movl (%rax), %esi
leaq L_.str.21(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -8(%rbp)
jmp LBB2_1
LBB2_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _delete1 ## -- Begin function delete1
.p2align 4, 0x90
_delete1: ## @delete1
.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 _header(%rip), %rax
movq %rax, -8(%rbp)
cmpq $0, _header(%rip)
jne LBB3_2
## %bb.1:
leaq L_.str.22(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB3_5
LBB3_2:
movq _header(%rip), %rax
cmpq $0, 8(%rax)
jne LBB3_4
## %bb.3:
movq $0, _header(%rip)
LBB3_4:
movq _header(%rip), %rax
movq 8(%rax), %rax
movq %rax, _header(%rip)
movq _header(%rip), %rax
movq $0, 16(%rax)
LBB3_5:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _deletelast ## -- Begin function deletelast
.p2align 4, 0x90
_deletelast: ## @deletelast
.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
cmpq $0, _header(%rip)
jne LBB4_2
## %bb.1:
leaq L_.str.22(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB4_5
LBB4_2:
movq _header(%rip), %rax
cmpq $0, 8(%rax)
jne LBB4_4
## %bb.3:
movq $0, _header(%rip)
LBB4_4:
movq _last(%rip), %rax
movq 16(%rax), %rax
movq $0, 8(%rax)
LBB4_5:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _deletepart ## -- Begin function deletepart
.p2align 4, 0x90
_deletepart: ## @deletepart
.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.23(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.8(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
movq _header(%rip), %rax
movq %rax, -8(%rbp)
movq _header(%rip), %rax
movl (%rax), %eax
cmpl -12(%rbp), %eax
jne LBB5_2
## %bb.1:
movq _header(%rip), %rax
movq 8(%rax), %rax
movq %rax, _header(%rip)
jmp LBB5_6
LBB5_2:
jmp LBB5_3
LBB5_3: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movl (%rax), %eax
cmpl -12(%rbp), %eax
je LBB5_5
## %bb.4: ## in Loop: Header=BB5_3 Depth=1
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -8(%rbp)
jmp LBB5_3
LBB5_5:
movq -8(%rbp), %rax
movq 8(%rax), %rcx
movq -8(%rbp), %rax
movq 16(%rax), %rax
movq %rcx, 8(%rax)
movq -8(%rbp), %rax
movq 16(%rax), %rcx
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rcx, 16(%rax)
LBB5_6:
leaq L_.str.24(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.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
subq $32, %rsp
movl $24, %edi
callq _malloc
movq %rax, -16(%rbp)
leaq L_.str.25(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rsi
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _scanf
leaq L_.str.26(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.8(%rip), %rdi
leaq -24(%rbp), %rsi
movb $0, %al
callq _scanf
movq _header(%rip), %rax
movq %rax, -8(%rbp)
LBB6_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movl (%rax), %eax
cmpl -24(%rbp), %eax
je LBB6_3
## %bb.2: ## in Loop: Header=BB6_1 Depth=1
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -8(%rbp)
jmp LBB6_1
LBB6_3:
movq -16(%rbp), %rcx
movq -8(%rbp), %rax
movq 16(%rax), %rax
movq %rcx, 8(%rax)
movq -8(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movq -8(%rbp), %rax
movq 16(%rax), %rcx
movq -16(%rbp), %rax
movq %rcx, 16(%rax)
movq -16(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, 16(%rax)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _displayreverse ## -- Begin function displayreverse
.p2align 4, 0x90
_displayreverse: ## @displayreverse
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq $0, -8(%rbp)
movq _last(%rip), %rax
movq %rax, -8(%rbp)
LBB7_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -8(%rbp)
je LBB7_3
## %bb.2: ## in Loop: Header=BB7_1 Depth=1
movq -8(%rbp), %rax
movl (%rax), %esi
leaq L_.str.21(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -8(%rbp)
jmp LBB7_1
LBB7_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _inserlast ## -- Begin function inserlast
.p2align 4, 0x90
_inserlast: ## @inserlast
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $24, %edi
callq _malloc
movq %rax, -8(%rbp)
leaq L_.str.27(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movl (%rax), %esi
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _scanf
cmpq $0, _header(%rip)
jne LBB8_2
## %bb.1:
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
movq %rax, _header(%rip)
movq -8(%rbp), %rax
movq $0, 8(%rax)
movq -8(%rbp), %rax
movq $0, 16(%rax)
jmp LBB8_4
LBB8_2:
movq -8(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movq -8(%rbp), %rax
movq $0, 8(%rax)
movq -16(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, 16(%rax)
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
## %bb.3:
movq -8(%rbp), %rax
movq $0, 8(%rax)
movq -8(%rbp), %rax
movq $0, 16(%rax)
movq -8(%rbp), %rcx
movq _last(%rip), %rax
movq %rcx, 8(%rax)
movq _last(%rip), %rcx
movq -8(%rbp), %rax
movq %rcx, 16(%rax)
LBB8_4:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _header ## @header
.zerofill __DATA,__common,_header,8,3
.globl _last ## @last
.zerofill __DATA,__common,_last,8,3
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "press 1 to create a list\n"
L_.str.1: ## @.str.1
.asciz "press 2 to insert a number\n"
L_.str.2: ## @.str.2
.asciz "press 3 to display a list \n"
L_.str.3: ## @.str.3
.asciz "press 4 to deleting 1 element of a list item\n"
L_.str.4: ## @.str.4
.asciz "press 5 to deleting last element of a list item\n"
L_.str.5: ## @.str.5
.asciz "press 6 to delete particular element of a list item\n"
L_.str.6: ## @.str.6
.asciz "press 7 to display reverse of a list \n"
L_.str.7: ## @.str.7
.asciz "press 8 to exit"
L_.str.8: ## @.str.8
.asciz "%d"
L_.str.9: ## @.str.9
.asciz "create\n"
L_.str.10: ## @.str.10
.asciz "insert\n"
L_.str.11: ## @.str.11
.asciz "display\n"
L_.str.12: ## @.str.12
.asciz "delete first\n"
L_.str.13: ## @.str.13
.asciz "delete last\n"
L_.str.14: ## @.str.14
.asciz "delete particular\n"
L_.str.15: ## @.str.15
.asciz "display reverse\n"
L_.str.16: ## @.str.16
.asciz "alternate\n"
L_.str.17: ## @.str.17
.asciz "::::::::::::EXIT:::::::::::\n"
L_.str.18: ## @.str.18
.asciz "invalid input"
L_.str.19: ## @.str.19
.asciz "enter the number of nodes"
L_.str.20: ## @.str.20
.asciz "enter the integer part"
L_.str.21: ## @.str.21
.asciz "->%d\n"
L_.str.22: ## @.str.22
.asciz "detletion not possible"
L_.str.23: ## @.str.23
.asciz "enter the int part to be deleted"
L_.str.24: ## @.str.24
.asciz "element is not present"
L_.str.25: ## @.str.25
.asciz "\nenter the integer to be inserted\n"
L_.str.26: ## @.str.26
.asciz "\nthe integer before which it is to be inserted\n"
L_.str.27: ## @.str.27
.asciz "\nenter the integer part"
.subsections_via_symbols
| the_stack_data/401700.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 w0, [x29, #-4]
str x1, [sp]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "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 %edi, -4(%rbp)
movq %rsi, -16(%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/90763275.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-28]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fopen
str x0, [sp, #24]
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, #16]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_1
LBB0_1:
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2:
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x0, [sp, #24]
mov x9, sp
sub x8, x29, #24
str x8, [x9]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fscanf
subs w8, w0, #0
cset w8, le
tbnz w8, #0, LBB0_7
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
sub x0, x29, #24
bl _analizzastringa
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr x0, [sp, #16]
mov x9, sp
sub x8, x29, #24
str x8, [x9]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _fprintf
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
b LBB0_3
LBB0_7:
ldr x0, [sp, #24]
bl _fclose
ldr x0, [sp, #16]
bl _fclose
; kill: def $x8 killed $xzr
str xzr, [sp, #24]
str xzr, [sp, #16]
b LBB0_9
LBB0_8:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
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:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _analizzastringa ; -- Begin function analizzastringa
.p2align 2
_analizzastringa: ; @analizzastringa
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str wzr, [sp, #12]
ldur x0, [x29, #-8]
bl _strlen
mov x8, x0
str w8, [sp, #16]
stur wzr, [x29, #-12]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_7
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldur x8, [x29, #-8]
ldursw x9, [x29, #-12]
ldrsb w8, [x8, x9]
subs w8, w8, #48
cset w8, lt
tbnz w8, #0, LBB1_5
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldur x8, [x29, #-8]
ldursw x9, [x29, #-12]
ldrsb w8, [x8, x9]
subs w8, w8, #57
cset w8, gt
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB1_1
LBB1_7:
ldr w8, [sp, #16]
subs w8, w8, #5
cset w8, le
tbnz w8, #0, LBB1_11
b LBB1_8
LBB1_8:
ldr w8, [sp, #12]
subs w8, w8, #2
cset w8, lt
tbnz w8, #0, LBB1_11
b LBB1_9
LBB1_9:
ldr w8, [sp, #16]
ldr w9, [sp, #12]
subs w8, w8, w9
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB1_11
b LBB1_10
LBB1_10:
mov w8, #1
str w8, [sp, #8]
b LBB1_12
LBB1_11:
str wzr, [sp, #8]
b LBB1_12
LBB1_12:
ldr w0, [sp, #8]
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 "testo.txt"
l_.str.1: ; @.str.1
.asciz "r"
l_.str.2: ; @.str.2
.asciz "risultato.txt"
l_.str.3: ; @.str.3
.asciz "w"
l_.str.4: ; @.str.4
.asciz "%s"
l_.str.5: ; @.str.5
.asciz "%s\n"
l_.str.6: ; @.str.6
.asciz "Errore apertura file\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -36(%rbp)
leaq L_.str(%rip), %rdi
leaq L_.str.1(%rip), %rsi
callq _fopen
movq %rax, -48(%rbp)
leaq L_.str.2(%rip), %rdi
leaq L_.str.3(%rip), %rsi
callq _fopen
movq %rax, -56(%rbp)
cmpq $0, -48(%rbp)
je LBB0_8
## %bb.1:
cmpq $0, -56(%rbp)
je LBB0_8
## %bb.2:
jmp LBB0_3
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq -48(%rbp), %rdi
leaq -32(%rbp), %rdx
leaq L_.str.4(%rip), %rsi
movb $0, %al
callq _fscanf
cmpl $0, %eax
jle LBB0_7
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
leaq -32(%rbp), %rdi
callq _analizzastringa
cmpl $0, %eax
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movq -56(%rbp), %rdi
leaq -32(%rbp), %rdx
leaq L_.str.5(%rip), %rsi
movb $0, %al
callq _fprintf
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_3
LBB0_7:
movq -48(%rbp), %rdi
callq _fclose
movq -56(%rbp), %rdi
callq _fclose
movq $0, -48(%rbp)
movq $0, -56(%rbp)
jmp LBB0_9
LBB0_8:
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
LBB0_9:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_11
## %bb.10:
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
LBB0_11:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _analizzastringa ## -- Begin function analizzastringa
.p2align 4, 0x90
_analizzastringa: ## @analizzastringa
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movl $0, -20(%rbp)
movq -8(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -16(%rbp)
movl $0, -12(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB1_7
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $48, %eax
jl LBB1_5
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $57, %eax
jg LBB1_5
## %bb.4: ## in Loop: Header=BB1_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
LBB1_5: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_6
LBB1_6: ## in Loop: Header=BB1_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB1_1
LBB1_7:
cmpl $5, -16(%rbp)
jle LBB1_11
## %bb.8:
cmpl $2, -20(%rbp)
jl LBB1_11
## %bb.9:
movl -16(%rbp), %eax
subl -20(%rbp), %eax
cmpl $0, %eax
jle LBB1_11
## %bb.10:
movl $1, -24(%rbp)
jmp LBB1_12
LBB1_11:
movl $0, -24(%rbp)
LBB1_12:
movl -24(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "testo.txt"
L_.str.1: ## @.str.1
.asciz "r"
L_.str.2: ## @.str.2
.asciz "risultato.txt"
L_.str.3: ## @.str.3
.asciz "w"
L_.str.4: ## @.str.4
.asciz "%s"
L_.str.5: ## @.str.5
.asciz "%s\n"
L_.str.6: ## @.str.6
.asciz "Errore apertura file\n"
.subsections_via_symbols
| the_stack_data/61076093.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _check_input ; -- Begin function check_input
.p2align 2
_check_input: ; @check_input
.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, #3
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w0, #1
bl _exit
LBB0_2:
ldur w8, [x29, #-4]
subs w8, w8, #4
cset w8, le
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w0, #1
bl _exit
LBB0_4:
b LBB0_5
LBB0_5:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _overwrite_prevent ; -- Begin function overwrite_prevent
.p2align 2
_overwrite_prevent: ; @overwrite_prevent
.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 x1, [sp]
ldur w8, [x29, #-4]
subs w8, w8, #4
cset w8, ne
tbnz w8, #0, LBB1_5
b LBB1_1
LBB1_1:
ldr x8, [sp]
ldr x0, [x8, #8]
ldr x8, [sp]
ldr x1, [x8, #24]
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2:
ldr x8, [sp]
ldr x0, [x8, #16]
ldr x8, [sp]
ldr x1, [x8, #24]
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w0, #1
bl _exit
LBB1_4:
b LBB1_5
LBB1_5:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _open_input ; -- Begin function open_input
.p2align 2
_open_input: ; @open_input
.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]
mov w1, #0
bl _open
str w0, [sp, #4]
ldr w8, [sp, #4]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldr x0, [sp, #8]
bl _perror
ldr w0, [sp, #4]
bl _close
mov w0, #1
bl _exit
LBB2_2:
ldr w0, [sp, #4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _open_output ; -- Begin function open_output
.p2align 2
_open_output: ; @open_output
.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]
str x1, [sp, #16]
ldur w8, [x29, #-8]
subs w8, w8, #4
cset w8, ne
tbnz w8, #0, LBB3_4
b LBB3_1
LBB3_1:
ldr x8, [sp, #16]
ldr x0, [x8, #24]
mov x9, sp
mov x8, #384
str x8, [x9]
mov w1, #1537
bl _open
str w0, [sp, #12]
ldr w8, [sp, #12]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB3_3
b LBB3_2
LBB3_2:
ldr x8, [sp, #16]
ldr x0, [x8, #24]
bl _perror
ldr w0, [sp, #12]
bl _close
mov w0, #1
bl _exit
LBB3_3:
ldr w8, [sp, #12]
stur w8, [x29, #-4]
b LBB3_7
LBB3_4:
mov x9, sp
mov x8, #384
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
mov w1, #1537
bl _open
str w0, [sp, #8]
ldr w8, [sp, #8]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB3_6
b LBB3_5
LBB3_5:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB3_6:
ldr w8, [sp, #8]
stur w8, [x29, #-4]
b LBB3_7
LBB3_7:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _shutdown_input ; -- Begin function shutdown_input
.p2align 2
_shutdown_input: ; @shutdown_input
.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 x1, [sp]
ldur w0, [x29, #-4]
bl _close
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
ldr x0, [sp]
bl _perror
mov w0, #1
bl _exit
LBB4_2:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _shutdown_output ; -- Begin function shutdown_output
.p2align 2
_shutdown_output: ; @shutdown_output
.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 w0, [x29, #-4]
bl _close
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB5_2:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _doWrite ; -- Begin function doWrite
.p2align 2
_doWrite: ; @doWrite
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
stur x1, [x29, #-16]
stur w2, [x29, #-20]
ldur w0, [x29, #-4]
ldur x1, [x29, #-16]
ldursw x2, [x29, #-20]
bl _write
str x0, [sp, #16]
str xzr, [sp, #8]
ldr x8, [sp, #16]
adds x8, x8, #1
cset w8, ne
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _perror
ldur w0, [x29, #-4]
bl _close
mov w0, #1
bl _exit
LBB6_2:
ldr x8, [sp, #16]
ldursw x9, [x29, #-20]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB6_9
b LBB6_3
LBB6_3:
ldr x9, [sp, #16]
ldr x8, [sp, #8]
add x8, x8, x9
str x8, [sp, #8]
b LBB6_4
LBB6_4: ; =>This Inner Loop Header: Depth=1
ldursw x8, [x29, #-20]
ldr x9, [sp, #8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB6_8
b LBB6_5
LBB6_5: ; in Loop: Header=BB6_4 Depth=1
ldur w0, [x29, #-4]
ldur x8, [x29, #-16]
ldr x9, [sp, #8]
add x1, x8, x9
ldursw x8, [x29, #-20]
ldr x9, [sp, #8]
subs x2, x8, x9
bl _write
ldr x8, [sp, #8]
add x8, x8, x0
str x8, [sp, #8]
ldr x8, [sp, #16]
adds x8, x8, #1
cset w8, ne
tbnz w8, #0, LBB6_7
b LBB6_6
LBB6_6:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _perror
ldur w0, [x29, #-4]
bl _close
mov w0, #1
bl _exit
LBB6_7: ; in Loop: Header=BB6_4 Depth=1
b LBB6_4
LBB6_8:
b LBB6_9
LBB6_9:
b LBB6_10
LBB6_10:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _write_file ; -- Begin function write_file
.p2align 2
_write_file: ; @write_file
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str w0, [sp, #28]
str x1, [sp, #16]
ldr x0, [sp, #16]
bl _open_input
str w0, [sp, #12]
mov x8, #1
str x8, [sp]
b LBB7_1
LBB7_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB7_6
b LBB7_2
LBB7_2: ; in Loop: Header=BB7_1 Depth=1
ldr w0, [sp, #12]
add x1, sp, #35
mov x2, #100
bl _read
str x0, [sp]
ldr x8, [sp]
adds x8, x8, #1
cset w8, ne
tbnz w8, #0, LBB7_4
b LBB7_3
LBB7_3:
ldr x0, [sp, #16]
bl _perror
ldr w0, [sp, #12]
bl _close
ldr w0, [sp, #28]
bl _close
mov w0, #1
bl _exit
LBB7_4: ; in Loop: Header=BB7_1 Depth=1
ldr x9, [sp]
add x1, sp, #35
mov x8, x1
add x8, x8, x9
strb wzr, [x8]
ldr w0, [sp, #28]
ldr x8, [sp]
mov x2, x8
bl _doWrite
b LBB7_5
LBB7_5: ; in Loop: Header=BB7_1 Depth=1
b LBB7_1
LBB7_6:
ldr w0, [sp, #12]
ldr x1, [sp, #16]
bl _shutdown_input
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_8
b LBB7_7
LBB7_7:
bl ___stack_chk_fail
LBB7_8:
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
add sp, sp, #160
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #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]
ldur w0, [x29, #-8]
bl _check_input
ldur w0, [x29, #-8]
ldr x1, [sp, #16]
bl _overwrite_prevent
ldur w0, [x29, #-8]
ldr x1, [sp, #16]
bl _open_output
str w0, [sp, #12]
ldr w0, [sp, #12]
ldr x8, [sp, #16]
ldr x1, [x8, #8]
bl _write_file
ldr w0, [sp, #12]
ldr x8, [sp, #16]
ldr x1, [x8, #16]
bl _write_file
ldr w0, [sp, #12]
bl _shutdown_output
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
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Usage: ./fconc infile1 infile2 [outfile (default: focnc.out)]\n"
l_.str.1: ; @.str.1
.asciz "Please do not use any input files as output\n"
l_.str.2: ; @.str.2
.asciz "fconc.out"
l_.str.3: ; @.str.3
.asciz "Output File"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _check_input ## -- Begin function check_input
.p2align 4, 0x90
_check_input: ## @check_input
.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 $3, -4(%rbp)
jge LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $1, %edi
callq _exit
LBB0_2:
cmpl $4, -4(%rbp)
jle LBB0_4
## %bb.3:
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $1, %edi
callq _exit
LBB0_4:
jmp LBB0_5
LBB0_5:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _overwrite_prevent ## -- Begin function overwrite_prevent
.p2align 4, 0x90
_overwrite_prevent: ## @overwrite_prevent
.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)
movq %rsi, -16(%rbp)
cmpl $4, -4(%rbp)
jne LBB1_5
## %bb.1:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
movq -16(%rbp), %rax
movq 24(%rax), %rsi
callq _strcmp
cmpl $0, %eax
je LBB1_3
## %bb.2:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
movq -16(%rbp), %rax
movq 24(%rax), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB1_4
LBB1_3:
leaq L_.str.1(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $1, %edi
callq _exit
LBB1_4:
jmp LBB1_5
LBB1_5:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _open_input ## -- Begin function open_input
.p2align 4, 0x90
_open_input: ## @open_input
.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
xorl %esi, %esi
movb $0, %al
callq _open
movl %eax, -12(%rbp)
cmpl $-1, -12(%rbp)
jne LBB2_2
## %bb.1:
movq -8(%rbp), %rdi
callq _perror
movl -12(%rbp), %edi
callq _close
movl $1, %edi
callq _exit
LBB2_2:
movl -12(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _open_output ## -- Begin function open_output
.p2align 4, 0x90
_open_output: ## @open_output
.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)
movq %rsi, -16(%rbp)
cmpl $4, -8(%rbp)
jne LBB3_4
## %bb.1:
movq -16(%rbp), %rax
movq 24(%rax), %rdi
movl $1537, %esi ## imm = 0x601
movl $384, %edx ## imm = 0x180
movb $0, %al
callq _open
movl %eax, -20(%rbp)
cmpl $-1, -20(%rbp)
jne LBB3_3
## %bb.2:
movq -16(%rbp), %rax
movq 24(%rax), %rdi
callq _perror
movl -20(%rbp), %edi
callq _close
movl $1, %edi
callq _exit
LBB3_3:
movl -20(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB3_7
LBB3_4:
leaq L_.str.2(%rip), %rdi
movl $1537, %esi ## imm = 0x601
movl $384, %edx ## imm = 0x180
movb $0, %al
callq _open
movl %eax, -24(%rbp)
cmpl $-1, -24(%rbp)
jne LBB3_6
## %bb.5:
leaq L_.str.2(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB3_6:
movl -24(%rbp), %eax
movl %eax, -4(%rbp)
LBB3_7:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _shutdown_input ## -- Begin function shutdown_input
.p2align 4, 0x90
_shutdown_input: ## @shutdown_input
.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)
movq %rsi, -16(%rbp)
movl -4(%rbp), %edi
callq _close
cmpl $-1, %eax
jne LBB4_2
## %bb.1:
movq -16(%rbp), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB4_2:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _shutdown_output ## -- Begin function shutdown_output
.p2align 4, 0x90
_shutdown_output: ## @shutdown_output
.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), %edi
callq _close
cmpl $-1, %eax
jne LBB5_2
## %bb.1:
leaq L_.str.3(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB5_2:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _doWrite ## -- Begin function doWrite
.p2align 4, 0x90
_doWrite: ## @doWrite
.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)
movl %edx, -20(%rbp)
movl -4(%rbp), %edi
movq -16(%rbp), %rsi
movslq -20(%rbp), %rdx
callq _write
movq %rax, -32(%rbp)
movq $0, -40(%rbp)
cmpq $-1, -32(%rbp)
jne LBB6_2
## %bb.1:
leaq L_.str.3(%rip), %rdi
callq _perror
movl -4(%rbp), %edi
callq _close
movl $1, %edi
callq _exit
LBB6_2:
movq -32(%rbp), %rax
movslq -20(%rbp), %rcx
cmpq %rcx, %rax
je LBB6_9
## %bb.3:
movq -32(%rbp), %rax
addq -40(%rbp), %rax
movq %rax, -40(%rbp)
LBB6_4: ## =>This Inner Loop Header: Depth=1
movslq -20(%rbp), %rax
cmpq -40(%rbp), %rax
je LBB6_8
## %bb.5: ## in Loop: Header=BB6_4 Depth=1
movl -4(%rbp), %edi
movq -16(%rbp), %rsi
addq -40(%rbp), %rsi
movslq -20(%rbp), %rdx
subq -40(%rbp), %rdx
callq _write
addq -40(%rbp), %rax
movq %rax, -40(%rbp)
cmpq $-1, -32(%rbp)
jne LBB6_7
## %bb.6:
leaq L_.str.3(%rip), %rdi
callq _perror
movl -4(%rbp), %edi
callq _close
movl $1, %edi
callq _exit
LBB6_7: ## in Loop: Header=BB6_4 Depth=1
jmp LBB6_4
LBB6_8:
jmp LBB6_9
LBB6_9:
jmp LBB6_10
LBB6_10:
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _write_file ## -- Begin function write_file
.p2align 4, 0x90
_write_file: ## @write_file
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $144, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl %edi, -116(%rbp)
movq %rsi, -128(%rbp)
movq -128(%rbp), %rdi
callq _open_input
movl %eax, -132(%rbp)
movq $1, -144(%rbp)
LBB7_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -144(%rbp)
je LBB7_6
## %bb.2: ## in Loop: Header=BB7_1 Depth=1
movl -132(%rbp), %edi
leaq -112(%rbp), %rsi
movl $100, %edx
callq _read
movq %rax, -144(%rbp)
cmpq $-1, -144(%rbp)
jne LBB7_4
## %bb.3:
movq -128(%rbp), %rdi
callq _perror
movl -132(%rbp), %edi
callq _close
movl -116(%rbp), %edi
callq _close
movl $1, %edi
callq _exit
LBB7_4: ## in Loop: Header=BB7_1 Depth=1
movq -144(%rbp), %rax
movb $0, -112(%rbp,%rax)
movl -116(%rbp), %edi
leaq -112(%rbp), %rsi
movq -144(%rbp), %rax
movl %eax, %edx
callq _doWrite
## %bb.5: ## in Loop: Header=BB7_1 Depth=1
jmp LBB7_1
LBB7_6:
movl -132(%rbp), %edi
movq -128(%rbp), %rsi
callq _shutdown_input
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB7_8
## %bb.7:
addq $144, %rsp
popq %rbp
retq
LBB7_8:
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 %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl -8(%rbp), %edi
callq _check_input
movl -8(%rbp), %edi
movq -16(%rbp), %rsi
callq _overwrite_prevent
movl -8(%rbp), %edi
movq -16(%rbp), %rsi
callq _open_output
movl %eax, -20(%rbp)
movl -20(%rbp), %edi
movq -16(%rbp), %rax
movq 8(%rax), %rsi
callq _write_file
movl -20(%rbp), %edi
movq -16(%rbp), %rax
movq 16(%rax), %rsi
callq _write_file
movl -20(%rbp), %edi
callq _shutdown_output
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage: ./fconc infile1 infile2 [outfile (default: focnc.out)]\n"
L_.str.1: ## @.str.1
.asciz "Please do not use any input files as output\n"
L_.str.2: ## @.str.2
.asciz "fconc.out"
L_.str.3: ## @.str.3
.asciz "Output File"
.subsections_via_symbols
| the_stack_data/714939.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 convert_memory
lCPI0_0:
.quad 0x3fb27bb2fec56d5d ; double 0.0722
lCPI0_1:
.quad 0x3fcb367a0f9096bc ; double 0.21260000000000001
lCPI0_2:
.quad 0x3fe6e2eb1c432ca5 ; double 0.71519999999999995
.section __TEXT,__text,regular,pure_instructions
.globl _convert_memory
.p2align 2
_convert_memory: ; @convert_memory
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #40]
str w1, [sp, #36]
str w2, [sp, #32]
str w3, [sp, #28]
str w4, [sp, #24]
str x5, [sp, #16]
ldr w8, [sp, #36]
ldr w9, [sp, #32]
mul w8, w8, w9
ldr w9, [sp, #24]
sdiv w8, w8, w9
str w8, [sp, #12]
str wzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_6 Depth 2
ldr w8, [sp, #8]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_11
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #36]
ldr w9, [sp, #32]
mul w8, w8, w9
str w8, [sp, #4]
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
ldr w9, [sp, #8]
add w9, w9, #1
mul w8, w8, w9
str w8, [sp, #4]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
ldr w9, [sp, #8]
mul w8, w8, w9
str w8, [sp]
b LBB0_6
LBB0_6: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp]
ldr w9, [sp, #4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_9
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_6 Depth=2
ldr x8, [sp, #40]
ldr w9, [sp]
ldr w10, [sp, #28]
mul w9, w9, w10
ldrb w8, [x8, w9, sxtw]
scvtf d1, w8
ldr x8, [sp, #40]
ldr w9, [sp]
ldr w10, [sp, #28]
mul w9, w9, w10
add w9, w9, #1
ldrb w8, [x8, w9, sxtw]
scvtf d2, w8
adrp x8, lCPI0_2@PAGE
ldr d0, [x8, lCPI0_2@PAGEOFF]
fmul d2, d0, d2
adrp x8, lCPI0_1@PAGE
ldr d0, [x8, lCPI0_1@PAGEOFF]
fmadd d2, d0, d1, d2
ldr x8, [sp, #40]
ldr w9, [sp]
ldr w10, [sp, #28]
mul w9, w9, w10
add w9, w9, #2
ldrb w8, [x8, w9, sxtw]
scvtf d1, w8
adrp x8, lCPI0_0@PAGE
ldr d0, [x8, lCPI0_0@PAGEOFF]
fmadd d0, d0, d1, d2
fcvtzu w8, d0
ldr x9, [sp, #16]
ldrsw x10, [sp]
strb w8, [x9, x10]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_6 Depth=2
ldr w8, [sp]
add w8, w8, #1
str w8, [sp]
b LBB0_6
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB0_1
LBB0_11:
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
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function convert_memory
LCPI0_0:
.quad 0x3fe6e2eb1c432ca5 ## double 0.71519999999999995
LCPI0_1:
.quad 0x3fcb367a0f9096bc ## double 0.21260000000000001
LCPI0_2:
.quad 0x3fb27bb2fec56d5d ## double 0.0722
.section __TEXT,__text,regular,pure_instructions
.globl _convert_memory
.p2align 4, 0x90
_convert_memory: ## @convert_memory
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movl %ecx, -20(%rbp)
movl %r8d, -24(%rbp)
movq %r9, -32(%rbp)
movl -12(%rbp), %eax
imull -16(%rbp), %eax
cltd
idivl -24(%rbp)
movl %eax, -36(%rbp)
movl $0, -40(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_6 Depth 2
movl -40(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB0_11
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -40(%rbp), %eax
addl $1, %eax
cmpl -24(%rbp), %eax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
imull -16(%rbp), %eax
movl %eax, -44(%rbp)
jmp LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movl -36(%rbp), %eax
movl -40(%rbp), %ecx
addl $1, %ecx
imull %ecx, %eax
movl %eax, -44(%rbp)
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movl -36(%rbp), %eax
imull -40(%rbp), %eax
movl %eax, -48(%rbp)
LBB0_6: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -48(%rbp), %eax
cmpl -44(%rbp), %eax
jge LBB0_9
## %bb.7: ## in Loop: Header=BB0_6 Depth=2
movq -8(%rbp), %rax
movl -48(%rbp), %ecx
movl -20(%rbp), %edx
imull %edx, %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %edx
cvtsi2sd %edx, %xmm1
movzbl 1(%rax,%rcx), %edx
cvtsi2sd %edx, %xmm0
movsd LCPI0_0(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
movsd LCPI0_1(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
movzbl 2(%rax,%rcx), %eax
cvtsi2sd %eax, %xmm0
movsd LCPI0_2(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movb %al, %dl
movq -32(%rbp), %rax
movslq -48(%rbp), %rcx
movb %dl, (%rax,%rcx)
## %bb.8: ## in Loop: Header=BB0_6 Depth=2
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
jmp LBB0_6
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_10
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_1
LBB0_11:
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/129761.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/67324943.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sht11_temp_convert_sensirion ; -- Begin function sht11_temp_convert_sensirion
.p2align 2
_sht11_temp_convert_sensirion: ; @sht11_temp_convert_sensirion
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
strh w0, [sp, #14]
mov w8, #39322
movk w8, #49694, lsl #16
fmov s2, w8
str s2, [sp, #8]
mov w8, #55050
movk w8, #15395, lsl #16
fmov s0, w8
str s0, [sp, #4]
ldrh w8, [sp, #14]
sxth w8, w8
scvtf s1, w8
fmadd s0, s0, s1, s2
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function sht11_humid_convert_sensirion
lCPI1_0:
.quad 0x3fb999999999999a ; double 0.10000000000000001
.section __TEXT,__text,regular,pure_instructions
.globl _sht11_humid_convert_sensirion
.p2align 2
_sht11_humid_convert_sensirion: ; @sht11_humid_convert_sensirion
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str s0, [sp, #44]
strh w0, [sp, #42]
mov w8, #65221
movk w8, #49154, lsl #16
fmov s3, w8
str s3, [sp, #36]
mov w8, #21181
movk w8, #15638, lsl #16
fmov s1, w8
str s1, [sp, #32]
mov w8, #9462
movk w8, #46550, lsl #16
fmov s0, w8
str s0, [sp, #28]
ldr h4, [sp, #42]
; implicit-def: $d2
fmov s2, s4
sshll.4s v2, v2, #0
; kill: def $s2 killed $s2 killed $q2
scvtf s2, s2
fmadd s2, s1, s2, s3
ldrsh w8, [sp, #42]
ldrsh w9, [sp, #42]
mul w8, w8, w9
scvtf s1, w8
fmadd s0, s0, s1, s2
str s0, [sp, #24]
mov w8, #55050
movk w8, #15395, lsl #16
fmov s3, w8
str s3, [sp, #20]
mov w8, #50604
movk w8, #14503, lsl #16
fmov s1, w8
str s1, [sp, #16]
ldr s0, [sp, #44]
fmov s2, #25.00000000
fsub s0, s0, s2
ldr h4, [sp, #42]
; implicit-def: $d2
fmov s2, s4
sshll.4s v2, v2, #0
; kill: def $s2 killed $s2 killed $q2
scvtf s2, s2
fmadd s1, s1, s2, s3
ldr s2, [sp, #24]
fmadd s0, s0, s1, s2
str s0, [sp, #12]
ldr s0, [sp, #12]
mov w8, #1120403456
fmov s1, w8
fcmp s0, s1
cset w8, le
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
mov w8, #1120403456
fmov s0, w8
str s0, [sp, #12]
b LBB1_2
LBB1_2:
ldr s0, [sp, #12]
fcvt d0, s0
adrp x8, lCPI1_0@PAGE
ldr d1, [x8, lCPI1_0@PAGEOFF]
fcmp d0, d1
cset w8, pl
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
mov w8, #52429
movk w8, #15820, lsl #16
fmov s0, w8
str s0, [sp, #12]
b LBB1_4
LBB1_4:
ldr s0, [sp, #12]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function calc_sth11
lCPI2_0:
.quad 0x3fb999999999999a ; double 0.10000000000000001
.section __TEXT,__text,regular,pure_instructions
.globl _calc_sth11
.p2align 2
_calc_sth11: ; @calc_sth11
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
str x0, [sp, #56]
str x1, [sp, #48]
mov w8, #65221
movk w8, #49154, lsl #16
fmov s2, w8
str s2, [sp, #44]
mov w8, #21181
movk w8, #15638, lsl #16
fmov s5, w8
str s5, [sp, #40]
mov w8, #9462
movk w8, #46550, lsl #16
fmov s0, w8
str s0, [sp, #36]
mov w8, #55050
movk w8, #15395, lsl #16
fmov s3, w8
str s3, [sp, #32]
mov w8, #50604
movk w8, #14503, lsl #16
fmov s1, w8
str s1, [sp, #28]
mov w8, #39322
movk w8, #49694, lsl #16
fmov s6, w8
str s6, [sp, #24]
str s3, [sp, #20]
ldr x8, [sp, #56]
ldr s4, [x8]
str s4, [sp, #16]
ldr x8, [sp, #48]
ldr s4, [x8]
str s4, [sp, #12]
ldr s4, [sp, #12]
fmadd s4, s4, s3, s6
str s4, [sp]
ldr s4, [sp, #16]
fmul s0, s0, s4
ldr s4, [sp, #16]
ldr s6, [sp, #16]
fmul s5, s5, s6
fmadd s0, s0, s4, s5
fadd s0, s0, s2
str s0, [sp, #8]
ldr s0, [sp]
fmov s2, #25.00000000
fsub s0, s0, s2
ldr s2, [sp, #16]
fmadd s1, s1, s2, s3
ldr s2, [sp, #8]
fmadd s0, s0, s1, s2
str s0, [sp, #4]
ldr s0, [sp, #4]
mov w8, #1120403456
fmov s1, w8
fcmp s0, s1
cset w8, le
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
mov w8, #1120403456
fmov s0, w8
str s0, [sp, #4]
b LBB2_2
LBB2_2:
ldr s0, [sp, #4]
fcvt d0, s0
adrp x8, lCPI2_0@PAGE
ldr d1, [x8, lCPI2_0@PAGEOFF]
fcmp d0, d1
cset w8, pl
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3:
mov w8, #52429
movk w8, #15820, lsl #16
fmov s0, w8
str s0, [sp, #4]
b LBB2_4
LBB2_4:
ldr s0, [sp]
ldr x8, [sp, #48]
str s0, [x8]
ldr s0, [sp, #4]
ldr x8, [sp, #56]
str s0, [x8]
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function calc_dewpoint
lCPI3_0:
.quad 0x406e63d70a3d70a4 ; double 243.12
lCPI3_1:
.quad 0x40319eb851eb851f ; double 17.620000000000001
lCPI3_2:
.quad 0x3fdbcb923a29c77a ; double 0.43430000000000002
.section __TEXT,__text,regular,pure_instructions
.globl _calc_dewpoint
.p2align 2
_calc_dewpoint: ; @calc_dewpoint
.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 s0, [x29, #-4]
str s1, [sp, #8]
ldur s0, [x29, #-4]
fcvt d0, s0
bl _log10
fmov d1, #2.00000000
fsub d0, d0, d1
adrp x8, lCPI3_2@PAGE
ldr d1, [x8, lCPI3_2@PAGEOFF]
fdiv d2, d0, d1
ldr s0, [sp, #8]
fcvt d0, s0
adrp x8, lCPI3_1@PAGE
ldr d1, [x8, lCPI3_1@PAGEOFF]
fmul d3, d1, d0
ldr s0, [sp, #8]
fcvt d4, s0
adrp x8, lCPI3_0@PAGE
ldr d0, [x8, lCPI3_0@PAGEOFF]
fadd d4, d0, d4
fdiv d3, d3, d4
fadd d2, d2, d3
fcvt s2, d2
str s2, [sp, #4]
ldr s2, [sp, #4]
fcvt d2, s2
fmul d0, d0, d2
ldr s2, [sp, #4]
fcvt d2, s2
fsub d1, d1, d2
fdiv d0, d0, d1
fcvt s0, d0
str s0, [sp]
ldr s0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _log10_approx ; -- Begin function log10_approx
.p2align 2
_log10_approx: ; @log10_approx
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
strb w0, [sp, #11]
ldrb w8, [sp, #11]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
str wzr, [sp, #12]
b LBB4_14
LBB4_2:
ldrb w8, [sp, #11]
subs w8, w8, #8
cset w8, ge
tbnz w8, #0, LBB4_4
b LBB4_3
LBB4_3:
ldrb w9, [sp, #11]
mov w8, #11
mul w8, w8, w9
add w8, w8, #11
str w8, [sp, #12]
b LBB4_14
LBB4_4:
ldrb w9, [sp, #11]
mov w8, #980
sdiv w9, w8, w9
subs w8, w8, w9
str w8, [sp]
ldr w8, [sp]
mov w9, #10
sdiv w8, w8, w9
str w8, [sp]
ldrb w8, [sp, #11]
subs w8, w8, #31
cset w8, ge
tbnz w8, #0, LBB4_6
b LBB4_5
LBB4_5:
ldrb w9, [sp, #11]
mov w8, #19
mul w8, w8, w9
str w8, [sp, #4]
ldr w8, [sp, #4]
mov w9, #10
sdiv w8, w8, w9
str w8, [sp, #4]
ldr w8, [sp, #4]
subs w9, w8, #4
ldr w8, [sp]
add w8, w8, w9
str w8, [sp]
b LBB4_11
LBB4_6:
ldrb w9, [sp, #11]
mov w8, #67
mul w8, w8, w9
str w8, [sp, #4]
ldr w8, [sp, #4]
mov w9, #100
sdiv w8, w8, w9
str w8, [sp, #4]
ldrb w8, [sp, #11]
subs w8, w8, #51
cset w8, le
tbnz w8, #0, LBB4_9
b LBB4_7
LBB4_7:
ldrb w8, [sp, #11]
subs w8, w8, #81
cset w8, ge
tbnz w8, #0, LBB4_9
b LBB4_8
LBB4_8:
ldr w8, [sp, #4]
add w9, w8, #42
ldr w8, [sp]
add w8, w8, w9
str w8, [sp]
b LBB4_10
LBB4_9:
ldr w8, [sp, #4]
add w9, w8, #39
ldr w8, [sp]
add w8, w8, w9
str w8, [sp]
b LBB4_10
LBB4_10:
b LBB4_11
LBB4_11:
ldr w8, [sp]
subs w8, w8, #200
cset w8, le
tbnz w8, #0, LBB4_13
b LBB4_12
LBB4_12:
mov w8, #200
str w8, [sp]
b LBB4_13
LBB4_13:
ldr w8, [sp]
str w8, [sp, #12]
b LBB4_14
LBB4_14:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _calc_dewpoint_approx ; -- Begin function calc_dewpoint_approx
.p2align 2
_calc_dewpoint_approx: ; @calc_dewpoint_approx
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sturb w0, [x29, #-1]
str w1, [sp, #8]
ldurb w0, [x29, #-1]
bl _log10_approx
mov w8, #100
mul w8, w8, w0
mov w9, #20000
subs w8, w8, w9
mov w9, #43
sdiv w8, w8, w9
str w8, [sp, #4]
ldr w8, [sp, #8]
mov w10, #10
sdiv w8, w8, w10
str w8, [sp]
ldr w9, [sp]
mov w8, #881
mul w8, w8, w9
str w8, [sp]
ldr w8, [sp]
ldr w9, [sp, #8]
sdiv w9, w9, w10
add w9, w9, #243
sdiv w8, w8, w9
str w8, [sp]
ldr w9, [sp]
ldr w8, [sp, #4]
add w8, w8, w9, lsl #1
str w8, [sp, #4]
ldr w9, [sp, #4]
mov w8, #1762
subs w8, w8, w9
str w8, [sp]
ldr w9, [sp]
mov w8, #24310
sdiv w8, w8, w9
str w8, [sp]
ldr w9, [sp, #4]
ldr w8, [sp]
mul w8, w8, w9
str w8, [sp]
ldr w8, [sp]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
ldr w8, [sp]
subs w8, w8, #51
str w8, [sp]
b LBB5_3
LBB5_2:
ldr w8, [sp]
add w8, w8, #51
str w8, [sp]
b LBB5_3
LBB5_3:
ldr w8, [sp]
mov w9, #10
sdiv w0, w8, w9
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI6_0:
.quad 0x40494f5c20000000 ; double 50.619998931884766
lCPI6_1:
.quad 0x4036deb860000000 ; double 22.870000839233398
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
mov w8, #6257
sturh w8, [x29, #-18]
mov w8, #1547
sturh w8, [x29, #-20]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
adrp x8, l_.str.2@PAGE
add x8, x8, l_.str.2@PAGEOFF
str x8, [x9]
adrp x8, l_.str.3@PAGE
add x8, x8, l_.str.3@PAGEOFF
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov x9, sp
mov x8, #6257
str x8, [x9]
mov x8, #1547
str x8, [x9, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov w0, #6257
stur w0, [x29, #-68] ; 4-byte Folded Spill
bl _sht11_temp_convert_sensirion
stur s0, [x29, #-24]
ldur s0, [x29, #-24]
mov w0, #1547
bl _sht11_humid_convert_sensirion
stur s0, [x29, #-28]
ldur s0, [x29, #-24]
fcvt d1, s0
ldur s0, [x29, #-28]
fcvt d0, s0
mov x8, sp
str d1, [x8]
str d0, [x8, #8]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
sub x0, x29, #32
mov w8, #24576
movk w8, #17601, lsl #16
fmov s0, w8
stur s0, [x29, #-32]
sub x1, x29, #36
mov w8, #34816
movk w8, #17859, lsl #16
fmov s0, w8
stur s0, [x29, #-36]
bl _calc_sth11
ldur s0, [x29, #-36]
fcvt d1, s0
ldur s0, [x29, #-32]
fcvt d0, s0
mov x8, sp
str d1, [x8]
str d0, [x8, #8]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
mov x8, sp
adrp x9, lCPI6_1@PAGE
ldr d0, [x9, lCPI6_1@PAGEOFF]
str d0, [x8]
adrp x9, lCPI6_0@PAGE
ldr d0, [x9, lCPI6_0@PAGEOFF]
str d0, [x8, #8]
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 w0, [x29, #-68] ; 4-byte Folded Reload
bl _sht11_temp_convert_sensirion
stur s0, [x29, #-40]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
sturh wzr, [x29, #-42]
b LBB6_1
LBB6_1: ; =>This Inner Loop Header: Depth=1
ldursh w8, [x29, #-42]
subs w8, w8, #3500
cset w8, gt
tbnz w8, #0, LBB6_4
b LBB6_2
LBB6_2: ; in Loop: Header=BB6_1 Depth=1
ldur s0, [x29, #-40]
ldursh w0, [x29, #-42]
bl _sht11_humid_convert_sensirion
stur s0, [x29, #-48]
sub x1, x29, #56
mov w8, #34816
movk w8, #17859, lsl #16
fmov s0, w8
stur s0, [x29, #-56]
ldurh w8, [x29, #-42]
sxth w8, w8
scvtf s0, w8
sub x0, x29, #52
stur s0, [x29, #-52]
bl _calc_sth11
ldur s0, [x29, #-52]
ldur s1, [x29, #-56]
bl _calc_dewpoint
stur s0, [x29, #-60]
ldur s0, [x29, #-52]
fcvtzs w8, s0
ldur s0, [x29, #-56]
fmov s1, #10.00000000
fmul s0, s0, s1
fcvtzs w1, s0
and w0, w8, #0xff
bl _calc_dewpoint_approx
scvtf d0, w0
fmov d1, #10.00000000
fdiv d0, d0, d1
fcvt s0, d0
stur s0, [x29, #-64]
ldursh w10, [x29, #-42]
ldur s0, [x29, #-40]
fcvt d5, s0
ldur s0, [x29, #-56]
fcvt d4, s0
ldur s0, [x29, #-48]
fcvt d3, s0
ldur s0, [x29, #-52]
fcvt d2, s0
ldur s0, [x29, #-60]
fcvt d1, s0
ldur s0, [x29, #-64]
fcvt d0, s0
mov x8, sp
str x8, [sp, #64] ; 8-byte Folded Spill
mov x9, #6257
str x9, [x8]
; implicit-def: $x9
mov x9, x10
str x9, [x8, #8]
str d5, [x8, #16]
str d4, [x8, #24]
str d3, [x8, #32]
str d2, [x8, #40]
str d1, [x8, #48]
str d0, [x8, #56]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
b LBB6_3
LBB6_3: ; in Loop: Header=BB6_1 Depth=1
ldursh w8, [x29, #-42]
add w8, w8, #50
sturh w8, [x29, #-42]
b LBB6_1
LBB6_4:
mov w0, #0
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
add sp, sp, #160
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "SHT11 single conversion\n\n"
l_.str.1: ; @.str.1
.asciz "%6s %6s\n"
l_.str.2: ; @.str.2
.asciz "Traw"
l_.str.3: ; @.str.3
.asciz "Hraw"
l_.str.4: ; @.str.4
.asciz "%6d %6d\n"
l_.str.5: ; @.str.5
.asciz "%6.2f %6.2f Host: Sensirion convert mine\n"
l_.str.6: ; @.str.6
.asciz "%6.2f %6.2f Host: Sensirion convert datasheet\n"
l_.str.7: ; @.str.7
.asciz "%6.2f %6.2f AVR: Highlevel output\n"
l_.str.8: ; @.str.8
.asciz "**************************************************\n\nSHT11 tabular conversion with fixed temperature\nand raw humidity ranging in [0..3500]\n\n"
l_.str.9: ; @.str.9
.asciz "Traw Hraw Tcels Tcels2 RH1 RH2 DP DP2\n"
l_.str.10: ; @.str.10
.asciz "%4hu %4hu %5.2f %5.2f %6.2f %6.2f %6.2f %6.2f\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 sht11_temp_convert_sensirion
LCPI0_0:
.long 0x3c23d70a ## float 0.00999999977
LCPI0_1:
.long 0xc21e999a ## float -39.6500015
.section __TEXT,__text,regular,pure_instructions
.globl _sht11_temp_convert_sensirion
.p2align 4, 0x90
_sht11_temp_convert_sensirion: ## @sht11_temp_convert_sensirion
.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)
movl $-1038181990, -8(%rbp) ## imm = 0xC21E999A
movl $1008981770, -12(%rbp) ## imm = 0x3C23D70A
movswl -2(%rbp), %eax
## kill: def $cx killed $ax
cvtsi2ss %eax, %xmm0
movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm1, %xmm0
movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
addss %xmm1, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function sht11_humid_convert_sensirion
LCPI1_0:
.long 0x42c80000 ## float 100
LCPI1_1:
.long 0x38a7c5ac ## float 7.9999998E-5
LCPI1_2:
.long 0x3c23d70a ## float 0.00999999977
LCPI1_3:
.long 0x41c80000 ## float 25
LCPI1_4:
.long 0xb5d624f6 ## float -1.59549995E-6
LCPI1_5:
.long 0x3d1652bd ## float 0.0366999991
LCPI1_6:
.long 0xc002fec5 ## float -2.0467999
LCPI1_8:
.long 0x3dcccccd ## float 0.100000001
.section __TEXT,__literal8,8byte_literals
.p2align 3
LCPI1_7:
.quad 0x3fb999999999999a ## double 0.10000000000000001
.section __TEXT,__text,regular,pure_instructions
.globl _sht11_humid_convert_sensirion
.p2align 4, 0x90
_sht11_humid_convert_sensirion: ## @sht11_humid_convert_sensirion
.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
movss %xmm0, -4(%rbp)
movw %ax, -6(%rbp)
movss LCPI1_6(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -12(%rbp)
movss LCPI1_5(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -16(%rbp)
movss LCPI1_4(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -20(%rbp)
movswl -6(%rbp), %eax
cvtsi2ss %eax, %xmm1
movss LCPI1_5(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
mulss %xmm0, %xmm1
movss LCPI1_6(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addss %xmm0, %xmm1
movswl -6(%rbp), %eax
movswl -6(%rbp), %ecx
imull %ecx, %eax
cvtsi2ss %eax, %xmm0
movss LCPI1_4(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -24(%rbp)
movss LCPI1_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -28(%rbp)
movss LCPI1_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -32(%rbp)
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss LCPI1_3(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
subss %xmm1, %xmm0
movswl -6(%rbp), %eax
cvtsi2ss %eax, %xmm2
movss LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm1, %xmm2
movss LCPI1_2(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
addss %xmm1, %xmm2
movss -24(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -36(%rbp)
movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
jbe LBB1_2
## %bb.1:
movss LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -36(%rbp)
LBB1_2:
movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm1
movsd LCPI1_7(%rip), %xmm0 ## xmm0 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB1_4
## %bb.3:
movss LCPI1_8(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -36(%rbp)
LBB1_4:
movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function calc_sth11
LCPI2_0:
.long 0x42c80000 ## float 100
LCPI2_1:
.long 0x38a7c5ac ## float 7.9999998E-5
LCPI2_2:
.long 0x3c23d70a ## float 0.00999999977
LCPI2_3:
.long 0x41c80000 ## float 25
LCPI2_4:
.long 0xc002fec5 ## float -2.0467999
LCPI2_5:
.long 0x3d1652bd ## float 0.0366999991
LCPI2_6:
.long 0xb5d624f6 ## float -1.59549995E-6
LCPI2_7:
.long 0xc21e999a ## float -39.6500015
LCPI2_9:
.long 0x3dcccccd ## float 0.100000001
.section __TEXT,__literal8,8byte_literals
.p2align 3
LCPI2_8:
.quad 0x3fb999999999999a ## double 0.10000000000000001
.section __TEXT,__text,regular,pure_instructions
.globl _calc_sth11
.p2align 4, 0x90
_calc_sth11: ## @calc_sth11
.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)
movss LCPI2_4(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -20(%rbp)
movss LCPI2_5(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -24(%rbp)
movss LCPI2_6(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -28(%rbp)
movss LCPI2_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -32(%rbp)
movss LCPI2_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -36(%rbp)
movss LCPI2_7(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -40(%rbp)
movss LCPI2_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -44(%rbp)
movq -8(%rbp), %rax
movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -48(%rbp)
movq -16(%rbp), %rax
movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -52(%rbp)
movss -52(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss LCPI2_2(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm1, %xmm0
movss LCPI2_7(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
addss %xmm1, %xmm0
movss %xmm0, -64(%rbp)
movss LCPI2_6(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
mulss -48(%rbp), %xmm0
movss -48(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movss LCPI2_5(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss -48(%rbp), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss LCPI2_4(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
addss %xmm1, %xmm0
movss %xmm0, -56(%rbp)
movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss LCPI2_3(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
subss %xmm1, %xmm0
movss -48(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movss LCPI2_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm1, %xmm2
movss LCPI2_2(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
addss %xmm1, %xmm2
movss -56(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -60(%rbp)
movss -60(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss LCPI2_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
jbe LBB2_2
## %bb.1:
movss LCPI2_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -60(%rbp)
LBB2_2:
movss -60(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm1
movsd LCPI2_8(%rip), %xmm0 ## xmm0 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB2_4
## %bb.3:
movss LCPI2_9(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -60(%rbp)
LBB2_4:
movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -16(%rbp), %rax
movss %xmm0, (%rax)
movss -60(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -8(%rbp), %rax
movss %xmm0, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function calc_dewpoint
LCPI3_0:
.quad 0x40319eb851eb851f ## double 17.620000000000001
LCPI3_1:
.quad 0x406e63d70a3d70a4 ## double 243.12
LCPI3_2:
.quad 0x3fdbcb923a29c77a ## double 0.43430000000000002
LCPI3_3:
.quad 0x4000000000000000 ## double 2
.section __TEXT,__text,regular,pure_instructions
.globl _calc_dewpoint
.p2align 4, 0x90
_calc_dewpoint: ## @calc_dewpoint
.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
movss %xmm0, -4(%rbp)
movss %xmm1, -8(%rbp)
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
callq _log10
movsd LCPI3_3(%rip), %xmm1 ## xmm1 = mem[0],zero
subsd %xmm1, %xmm0
movsd LCPI3_2(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm2
movsd LCPI3_0(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm2, %xmm1
movss -8(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero
cvtss2sd %xmm2, %xmm3
movsd LCPI3_1(%rip), %xmm2 ## xmm2 = mem[0],zero
addsd %xmm3, %xmm2
divsd %xmm2, %xmm1
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -12(%rbp)
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm1
movsd LCPI3_1(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm1, %xmm0
movss -12(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm2
movsd LCPI3_0(%rip), %xmm1 ## xmm1 = mem[0],zero
subsd %xmm2, %xmm1
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -16(%rbp)
movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _log10_approx ## -- Begin function log10_approx
.p2align 4, 0x90
_log10_approx: ## @log10_approx
.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)
movzbl -5(%rbp), %eax
cmpl $1, %eax
jne LBB4_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB4_14
LBB4_2:
movzbl -5(%rbp), %eax
cmpl $8, %eax
jge LBB4_4
## %bb.3:
movzbl -5(%rbp), %eax
imull $11, %eax, %eax
addl $11, %eax
movl %eax, -4(%rbp)
jmp LBB4_14
LBB4_4:
movzbl -5(%rbp), %ecx
movl $980, %eax ## imm = 0x3D4
cltd
idivl %ecx
movl %eax, %ecx
movl $980, %eax ## imm = 0x3D4
subl %ecx, %eax
movl %eax, -16(%rbp)
movl -16(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, -16(%rbp)
movzbl -5(%rbp), %eax
cmpl $31, %eax
jge LBB4_6
## %bb.5:
movzbl -5(%rbp), %eax
imull $19, %eax, %eax
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
subl $4, %eax
addl -16(%rbp), %eax
movl %eax, -16(%rbp)
jmp LBB4_11
LBB4_6:
movzbl -5(%rbp), %eax
imull $67, %eax, %eax
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
movl $100, %ecx
cltd
idivl %ecx
movl %eax, -12(%rbp)
movzbl -5(%rbp), %eax
cmpl $51, %eax
jle LBB4_9
## %bb.7:
movzbl -5(%rbp), %eax
cmpl $81, %eax
jge LBB4_9
## %bb.8:
movl -12(%rbp), %eax
addl $42, %eax
addl -16(%rbp), %eax
movl %eax, -16(%rbp)
jmp LBB4_10
LBB4_9:
movl -12(%rbp), %eax
addl $39, %eax
addl -16(%rbp), %eax
movl %eax, -16(%rbp)
LBB4_10:
jmp LBB4_11
LBB4_11:
cmpl $200, -16(%rbp)
jle LBB4_13
## %bb.12:
movl $200, -16(%rbp)
LBB4_13:
movl -16(%rbp), %eax
movl %eax, -4(%rbp)
LBB4_14:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _calc_dewpoint_approx ## -- Begin function calc_dewpoint_approx
.p2align 4, 0x90
_calc_dewpoint_approx: ## @calc_dewpoint_approx
.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 %dil, %al
movb %al, -1(%rbp)
movl %esi, -8(%rbp)
movzbl -1(%rbp), %edi
callq _log10_approx
imull $100, %eax, %eax
subl $20000, %eax ## imm = 0x4E20
movl $43, %ecx
cltd
idivl %ecx
movl %eax, -12(%rbp)
movl -8(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, -16(%rbp)
imull $881, -16(%rbp), %eax ## imm = 0x371
movl %eax, -16(%rbp)
movl -16(%rbp), %eax
movl %eax, -20(%rbp) ## 4-byte Spill
movl -8(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -20(%rbp), %eax ## 4-byte Reload
addl $243, %ecx
cltd
idivl %ecx
movl %eax, -16(%rbp)
movl -16(%rbp), %eax
shll $1, %eax
addl -12(%rbp), %eax
movl %eax, -12(%rbp)
movl $1762, %eax ## imm = 0x6E2
subl -12(%rbp), %eax
movl %eax, -16(%rbp)
movl $24310, %eax ## imm = 0x5EF6
cltd
idivl -16(%rbp)
movl %eax, -16(%rbp)
movl -12(%rbp), %eax
imull -16(%rbp), %eax
movl %eax, -16(%rbp)
cmpl $0, -16(%rbp)
jge LBB5_2
## %bb.1:
movl -16(%rbp), %eax
subl $51, %eax
movl %eax, -16(%rbp)
jmp LBB5_3
LBB5_2:
movl -16(%rbp), %eax
addl $51, %eax
movl %eax, -16(%rbp)
LBB5_3:
movl -16(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI6_0:
.quad 0x4036deb860000000 ## double 22.870000839233398
LCPI6_1:
.quad 0x40494f5c20000000 ## double 50.619998931884766
LCPI6_4:
.quad 0x4024000000000000 ## double 10
.section __TEXT,__literal4,4byte_literals
.p2align 2
LCPI6_2:
.long 0x45c38800 ## float 6257
LCPI6_3:
.long 0x44c16000 ## float 1547
LCPI6_5:
.long 0x41200000 ## float 10
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movw $6257, -18(%rbp) ## imm = 0x1871
movw $1547, -20(%rbp) ## imm = 0x60B
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq L_.str.2(%rip), %rsi
leaq L_.str.3(%rip), %rdx
movb $0, %al
callq _printf
leaq L_.str.4(%rip), %rdi
movl $6257, %esi ## imm = 0x1871
movl $1547, %edx ## imm = 0x60B
movb $0, %al
callq _printf
movl $6257, %edi ## imm = 0x1871
callq _sht11_temp_convert_sensirion
movss %xmm0, -24(%rbp)
movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movl $1547, %edi ## imm = 0x60B
callq _sht11_humid_convert_sensirion
movss %xmm0, -28(%rbp)
movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movss -28(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
leaq L_.str.5(%rip), %rdi
movb $2, %al
callq _printf
movss LCPI6_3(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -32(%rbp)
movss LCPI6_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -36(%rbp)
leaq -32(%rbp), %rdi
leaq -36(%rbp), %rsi
callq _calc_sth11
movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movss -32(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
leaq L_.str.6(%rip), %rdi
movb $2, %al
callq _printf
leaq L_.str.7(%rip), %rdi
movsd LCPI6_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI6_1(%rip), %xmm1 ## xmm1 = mem[0],zero
movb $2, %al
callq _printf
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movl $6257, %edi ## imm = 0x1871
callq _sht11_temp_convert_sensirion
movss %xmm0, -40(%rbp)
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
movw $0, -42(%rbp)
LBB6_1: ## =>This Inner Loop Header: Depth=1
movswl -42(%rbp), %eax
cmpl $3500, %eax ## imm = 0xDAC
jg LBB6_4
## %bb.2: ## in Loop: Header=BB6_1 Depth=1
movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movswl -42(%rbp), %edi
callq _sht11_humid_convert_sensirion
movss %xmm0, -48(%rbp)
movl $1170442240, -56(%rbp) ## imm = 0x45C38800
movswl -42(%rbp), %eax
## kill: def $cx killed $ax
cvtsi2ss %eax, %xmm0
movss %xmm0, -52(%rbp)
leaq -52(%rbp), %rdi
leaq -56(%rbp), %rsi
callq _calc_sth11
movss -52(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss -56(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
callq _calc_dewpoint
movss %xmm0, -60(%rbp)
cvttss2si -52(%rbp), %eax
## kill: def $al killed $al killed $eax
movss LCPI6_5(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
mulss -56(%rbp), %xmm0
cvttss2si %xmm0, %esi
movzbl %al, %edi
callq _calc_dewpoint_approx
cvtsi2sd %eax, %xmm0
movsd LCPI6_4(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -64(%rbp)
movswl -42(%rbp), %edx
movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movss -56(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
movss -48(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero
cvtss2sd %xmm2, %xmm2
movss -52(%rbp), %xmm3 ## xmm3 = mem[0],zero,zero,zero
cvtss2sd %xmm3, %xmm3
movss -60(%rbp), %xmm4 ## xmm4 = mem[0],zero,zero,zero
cvtss2sd %xmm4, %xmm4
movss -64(%rbp), %xmm5 ## xmm5 = mem[0],zero,zero,zero
cvtss2sd %xmm5, %xmm5
leaq L_.str.10(%rip), %rdi
movl $6257, %esi ## imm = 0x1871
movb $6, %al
callq _printf
## %bb.3: ## in Loop: Header=BB6_1 Depth=1
movswl -42(%rbp), %eax
addl $50, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -42(%rbp)
jmp LBB6_1
LBB6_4:
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "SHT11 single conversion\n\n"
L_.str.1: ## @.str.1
.asciz "%6s %6s\n"
L_.str.2: ## @.str.2
.asciz "Traw"
L_.str.3: ## @.str.3
.asciz "Hraw"
L_.str.4: ## @.str.4
.asciz "%6d %6d\n"
L_.str.5: ## @.str.5
.asciz "%6.2f %6.2f Host: Sensirion convert mine\n"
L_.str.6: ## @.str.6
.asciz "%6.2f %6.2f Host: Sensirion convert datasheet\n"
L_.str.7: ## @.str.7
.asciz "%6.2f %6.2f AVR: Highlevel output\n"
L_.str.8: ## @.str.8
.asciz "**************************************************\n\nSHT11 tabular conversion with fixed temperature\nand raw humidity ranging in [0..3500]\n\n"
L_.str.9: ## @.str.9
.asciz "Traw Hraw Tcels Tcels2 RH1 RH2 DP DP2\n"
L_.str.10: ## @.str.10
.asciz "%4hu %4hu %5.2f %5.2f %6.2f %6.2f %6.2f %6.2f\n"
.subsections_via_symbols
| the_stack_data/805933.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl __lis ; -- Begin function _lis
.p2align 2
__lis: ; @_lis
.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]
stur w1, [x29, #-20]
str x2, [sp, #16]
ldur w8, [x29, #-20]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_12
LBB0_2:
mov w8, #1
str w8, [sp, #8]
str w8, [sp, #4]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_9
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldur x0, [x29, #-16]
ldr w1, [sp, #4]
ldr x2, [sp, #16]
bl __lis
str w0, [sp, #12]
ldur x8, [x29, #-16]
ldr w9, [sp, #4]
subs w9, w9, #1
ldr w8, [x8, w9, sxtw #2]
ldur x9, [x29, #-16]
ldur w10, [x29, #-20]
subs w10, w10, #1
ldr w9, [x9, w10, sxtw #2]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_7
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
ldr w9, [sp, #8]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #8]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_3
LBB0_9:
ldr x8, [sp, #16]
ldr w8, [x8]
ldr w9, [sp, #8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldr w8, [sp, #8]
ldr x9, [sp, #16]
str w8, [x9]
b LBB0_11
LBB0_11:
ldr w8, [sp, #8]
stur w8, [x29, #-4]
b LBB0_12
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 _lis ; -- Begin function lis
.p2align 2
_lis: ; @lis
.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]
mov x2, sp
mov w8, #1
str w8, [sp]
ldr x0, [sp, #8]
ldr w1, [sp, #4]
bl __lis
ldr w0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #12]
adrp x8, l___const.main.arr@PAGE
add x8, x8, l___const.main.arr@PAGEOFF
ldr q0, [x8]
add x0, sp, #16
str q0, [sp, #16]
ldr q0, [x8, #16]
str q0, [sp, #32]
mov w8, #8
str w8, [sp, #8]
ldr w1, [sp, #8]
bl _lis
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
bl _getchar
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
bl ___stack_chk_fail
LBB2_2:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2 ; @__const.main.arr
l___const.main.arr:
.long 10 ; 0xa
.long 22 ; 0x16
.long 9 ; 0x9
.long 33 ; 0x21
.long 21 ; 0x15
.long 50 ; 0x32
.long 41 ; 0x29
.long 60 ; 0x3c
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Length of LIS is %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl __lis ## -- Begin function _lis
.p2align 4, 0x90
__lis: ## @_lis
.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)
movl %esi, -20(%rbp)
movq %rdx, -32(%rbp)
cmpl $1, -20(%rbp)
jne LBB0_2
## %bb.1:
movl $1, -4(%rbp)
jmp LBB0_12
LBB0_2:
movl $1, -40(%rbp)
movl $1, -44(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB0_9
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -16(%rbp), %rdi
movl -44(%rbp), %esi
movq -32(%rbp), %rdx
callq __lis
movl %eax, -36(%rbp)
movq -16(%rbp), %rax
movl -44(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movq -16(%rbp), %rcx
movl -20(%rbp), %edx
subl $1, %edx
movslq %edx, %rdx
cmpl (%rcx,%rdx,4), %eax
jge LBB0_7
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
cmpl -40(%rbp), %eax
jle LBB0_7
## %bb.6: ## in Loop: Header=BB0_3 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
LBB0_7: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_8
LBB0_8: ## in Loop: Header=BB0_3 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_3
LBB0_9:
movq -32(%rbp), %rax
movl (%rax), %eax
cmpl -40(%rbp), %eax
jge LBB0_11
## %bb.10:
movl -40(%rbp), %ecx
movq -32(%rbp), %rax
movl %ecx, (%rax)
LBB0_11:
movl -40(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_12:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _lis ## -- Begin function lis
.p2align 4, 0x90
_lis: ## @lis
.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 $1, -16(%rbp)
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
leaq -16(%rbp), %rdx
callq __lis
movl -16(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -52(%rbp)
movq l___const.main.arr(%rip), %rax
movq %rax, -48(%rbp)
movq l___const.main.arr+8(%rip), %rax
movq %rax, -40(%rbp)
movq l___const.main.arr+16(%rip), %rax
movq %rax, -32(%rbp)
movq l___const.main.arr+24(%rip), %rax
movq %rax, -24(%rbp)
movl $8, -56(%rbp)
leaq -48(%rbp), %rdi
movl -56(%rbp), %esi
callq _lis
movl %eax, %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
callq _getchar
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB2_2
## %bb.1:
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
LBB2_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 4 ## @__const.main.arr
l___const.main.arr:
.long 10 ## 0xa
.long 22 ## 0x16
.long 9 ## 0x9
.long 33 ## 0x21
.long 21 ## 0x15
.long 50 ## 0x32
.long 41 ## 0x29
.long 60 ## 0x3c
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Length of LIS is %d\n"
.subsections_via_symbols
| the_stack_data/82950308.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]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _puts
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
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _puts
mov w0, #-1
bl _exit
LBB0_2:
ldur w0, [x29, #-8]
add x8, sp, #16
str x8, [sp, #8] ; 8-byte Folded Spill
bl _Crear_Pila
ldr x0, [sp, #8] ; 8-byte Folded Reload
bl _Menu
ldr x0, [sp, #8] ; 8-byte Folded Reload
bl _Vaciar_Pila
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _Crear_Pila ; -- Begin function Crear_Pila
.p2align 2
_Crear_Pila: ; @Crear_Pila
.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 x9, x8
str x9, [sp] ; 8-byte Folded Spill
stur w0, [x29, #-4]
str wzr, [x9]
ldur w8, [x29, #-4]
str w8, [x9, #16]
ldursw x8, [x29, #-4]
lsl x0, x8, #2
bl _malloc
ldr x8, [sp] ; 8-byte Folded Reload
str x0, [x8, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _Menu ; -- Begin function Menu
.p2align 2
_Menu: ; @Menu
.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 wzr, [x29, #-12]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _puts
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _puts
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
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _puts
mov w0, #-1
bl _exit
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #0
; kill: def $x8 killed $w8
str x8, [sp, #24] ; 8-byte Folded Spill
subs x8, x8, #3
cset w8, hi
tbnz w8, #0, LBB2_13
; %bb.4: ; in Loop: Header=BB2_1 Depth=1
ldr x11, [sp, #24] ; 8-byte Folded Reload
adrp x10, lJTI2_0@PAGE
add x10, x10, lJTI2_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB2_5: ; in Loop: Header=BB2_1 Depth=1
b LBB2_14
LBB2_6: ; in Loop: Header=BB2_1 Depth=1
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _puts
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
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB2_8
b LBB2_7
LBB2_7:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _puts
mov w0, #-1
bl _exit
LBB2_8: ; in Loop: Header=BB2_1 Depth=1
ldur w8, [x29, #-16]
stur w8, [x29, #-20]
ldur x0, [x29, #-8]
ldur w1, [x29, #-20]
bl _Q_Push
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB2_10
b LBB2_9
LBB2_9: ; in Loop: Header=BB2_1 Depth=1
ldur w8, [x29, #-16]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-8]
ldr w9, [x8]
; 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
b LBB2_10
LBB2_10: ; in Loop: Header=BB2_1 Depth=1
b LBB2_14
LBB2_11: ; in Loop: Header=BB2_1 Depth=1
ldur x0, [x29, #-8]
bl _Q_Pop
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
b LBB2_14
LBB2_12: ; in Loop: Header=BB2_1 Depth=1
ldur x8, [x29, #-8]
ldr q0, [x8]
add x0, sp, #32
str q0, [sp, #32]
ldr x8, [x8, #16]
str x8, [sp, #48]
bl _Q_Top
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
b LBB2_14
LBB2_13: ; in Loop: Header=BB2_1 Depth=1
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _puts
b LBB2_14
LBB2_14: ; in Loop: Header=BB2_1 Depth=1
b LBB2_15
LBB2_15: ; in Loop: Header=BB2_1 Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB2_1
b LBB2_16
LBB2_16:
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
.p2align 2
lJTI2_0:
.long LBB2_5-Ltmp0
.long LBB2_6-Ltmp0
.long LBB2_11-Ltmp0
.long LBB2_12-Ltmp0
; -- End function
.globl _Vaciar_Pila ; -- Begin function Vaciar_Pila
.p2align 2
_Vaciar_Pila: ; @Vaciar_Pila
.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 x0, [x8, #8]
bl _free
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _Q_Push ; -- Begin function Q_Push
.p2align 2
_Q_Push: ; @Q_Push
.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]
stur w1, [x29, #-20]
ldur x8, [x29, #-16]
ldr q0, [x8]
mov x0, sp
str q0, [sp]
ldr x8, [x8, #16]
str x8, [sp, #16]
bl _Pila_Llena
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
ldur x10, [x29, #-16]
ldr w9, [x10]
mov w8, #1
add w9, w9, #1
str w9, [x10]
ldur w9, [x29, #-20]
ldur x10, [x29, #-16]
ldr x10, [x10, #8]
ldur x11, [x29, #-16]
ldrsw x11, [x11]
str w9, [x10, x11, lsl #2]
stur w8, [x29, #-4]
b LBB4_3
LBB4_2:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _puts
stur wzr, [x29, #-4]
b LBB4_3
LBB4_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _Pila_Llena ; -- Begin function Pila_Llena
.p2align 2
_Pila_Llena: ; @Pila_Llena
.cfi_startproc
; %bb.0:
ldr w8, [x0]
ldr w9, [x0, #16]
subs w8, w8, w9
cset w8, eq
and w9, w8, #0x1
mov w8, #0
ands w9, w9, #0x1
csinc w0, w8, wzr, eq
ret
.cfi_endproc
; -- End function
.globl _Q_Pop ; -- Begin function Q_Pop
.p2align 2
_Q_Pop: ; @Q_Pop
.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]
ldr q0, [x8]
mov x0, sp
str q0, [sp]
ldr x8, [x8, #16]
str x8, [sp, #16]
bl _Pila_Vacia
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
ldur x9, [x29, #-16]
ldr w8, [x9]
subs w8, w8, #1
str w8, [x9]
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
ldur x9, [x29, #-16]
ldr w9, [x9]
add w9, w9, #1
ldr w8, [x8, w9, sxtw #2]
stur w8, [x29, #-4]
b LBB6_3
LBB6_2:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _puts
b LBB6_3
LBB6_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _Pila_Vacia ; -- Begin function Pila_Vacia
.p2align 2
_Pila_Vacia: ; @Pila_Vacia
.cfi_startproc
; %bb.0:
ldr w9, [x0]
mov w8, #0
subs w9, w9, #0
cset w9, eq
and w9, w9, #0x1
ands w9, w9, #0x1
csinc w0, w8, wzr, eq
ret
.cfi_endproc
; -- End function
.globl _Q_Top ; -- Begin function Q_Top
.p2align 2
_Q_Top: ; @Q_Top
.cfi_startproc
; %bb.0:
ldr x8, [x0, #8]
ldrsw x9, [x0]
ldr w0, [x8, x9, lsl #2]
ret
.cfi_endproc
; -- End function
.globl _Longitud_Pila ; -- Begin function Longitud_Pila
.p2align 2
_Longitud_Pila: ; @Longitud_Pila
.cfi_startproc
; %bb.0:
ldr w0, [x0]
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Ingrese el tama\303\261o maximo de la pila:"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Error: Input invalido."
l_.str.3: ; @.str.3
.asciz "Error: No se puede agregar el dato (la pila esta llena)."
l_.str.4: ; @.str.4
.asciz "Error: La pila esta vacia."
l_.str.5: ; @.str.5
.asciz "Que desea realizar?"
l_.str.6: ; @.str.6
.asciz "1)-Agregar dato (push)\n2)-Eliminar dato (pop)\n3)-Imprimir Tope de Pila\n0)-Salir\n"
l_.str.7: ; @.str.7
.asciz "Error de input."
l_.str.8: ; @.str.8
.asciz "Ingrese el elemento que desea agregar:"
l_.str.9: ; @.str.9
.asciz "El dato %d fue ingresado en la posicion %d\n"
l_.str.10: ; @.str.10
.asciz "El dato eliminado es: %d\n"
l_.str.11: ; @.str.11
.asciz "El dato en el tope de la pila es: %d\n"
l_.str.12: ; @.str.12
.asciz "Error: Opcion invalida."
.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)
leaq L_.str(%rip), %rdi
callq _puts
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $0, %eax
jne LBB0_2
## %bb.1:
leaq L_.str.2(%rip), %rdi
callq _puts
movl $-1, %edi
callq _exit
LBB0_2:
movl -8(%rbp), %esi
leaq -32(%rbp), %rdi
callq _Crear_Pila
leaq -32(%rbp), %rdi
callq _Menu
leaq -32(%rbp), %rdi
callq _Vaciar_Pila
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Crear_Pila ## -- Begin function Crear_Pila
.p2align 4, 0x90
_Crear_Pila: ## @Crear_Pila
.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, -24(%rbp) ## 8-byte Spill
movq %rdi, %rax
movq %rax, -16(%rbp) ## 8-byte Spill
movl %esi, -4(%rbp)
movl $0, (%rdi)
movl -4(%rbp), %eax
movl %eax, 16(%rdi)
movslq -4(%rbp), %rdi
shlq $2, %rdi
callq _malloc
movq -24(%rbp), %rdi ## 8-byte Reload
movq %rax, %rcx
movq -16(%rbp), %rax ## 8-byte Reload
movq %rcx, 8(%rdi)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Menu ## -- Begin function Menu
.p2align 4, 0x90
_Menu: ## @Menu
.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)
movl $0, -12(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
leaq L_.str.5(%rip), %rdi
callq _puts
leaq L_.str.6(%rip), %rdi
callq _puts
leaq L_.str.1(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $0, %eax
jne LBB2_3
## %bb.2:
leaq L_.str.7(%rip), %rdi
callq _puts
movl $-1, %edi
callq _exit
LBB2_3: ## in Loop: Header=BB2_1 Depth=1
movl -12(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -32(%rbp) ## 8-byte Spill
subq $3, %rax
ja LBB2_12
## %bb.16: ## in Loop: Header=BB2_1 Depth=1
movq -32(%rbp), %rax ## 8-byte Reload
leaq LJTI2_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB2_4: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_13
LBB2_5: ## in Loop: Header=BB2_1 Depth=1
leaq L_.str.8(%rip), %rdi
callq _puts
leaq L_.str.1(%rip), %rdi
leaq -16(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $0, %eax
jne LBB2_7
## %bb.6:
leaq L_.str.7(%rip), %rdi
callq _puts
movl $-1, %edi
callq _exit
LBB2_7: ## in Loop: Header=BB2_1 Depth=1
movl -16(%rbp), %eax
movl %eax, -20(%rbp)
movq -8(%rbp), %rdi
movl -20(%rbp), %esi
callq _Q_Push
cmpl $0, %eax
je LBB2_9
## %bb.8: ## in Loop: Header=BB2_1 Depth=1
movl -16(%rbp), %esi
movq -8(%rbp), %rax
movl (%rax), %edx
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
LBB2_9: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_13
LBB2_10: ## in Loop: Header=BB2_1 Depth=1
movq -8(%rbp), %rdi
callq _Q_Pop
movl %eax, %esi
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB2_13
LBB2_11: ## in Loop: Header=BB2_1 Depth=1
movq -8(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 8(%rax), %rcx
movq %rcx, 8(%rsp)
movq 16(%rax), %rax
movq %rax, 16(%rsp)
callq _Q_Top
movl %eax, %esi
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB2_13
LBB2_12: ## in Loop: Header=BB2_1 Depth=1
leaq L_.str.12(%rip), %rdi
callq _puts
LBB2_13: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_14
LBB2_14: ## in Loop: Header=BB2_1 Depth=1
cmpl $0, -12(%rbp)
jne LBB2_1
## %bb.15:
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L2_0_set_4, LBB2_4-LJTI2_0
.set L2_0_set_5, LBB2_5-LJTI2_0
.set L2_0_set_10, LBB2_10-LJTI2_0
.set L2_0_set_11, LBB2_11-LJTI2_0
LJTI2_0:
.long L2_0_set_4
.long L2_0_set_5
.long L2_0_set_10
.long L2_0_set_11
.end_data_region
## -- End function
.globl _Vaciar_Pila ## -- Begin function Vaciar_Pila
.p2align 4, 0x90
_Vaciar_Pila: ## @Vaciar_Pila
.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
movq 8(%rax), %rdi
callq _free
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Q_Push ## -- Begin function Q_Push
.p2align 4, 0x90
_Q_Push: ## @Q_Push
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 8(%rax), %rcx
movq %rcx, 8(%rsp)
movq 16(%rax), %rax
movq %rax, 16(%rsp)
callq _Pila_Llena
cmpl $0, %eax
jne LBB4_2
## %bb.1:
movq -16(%rbp), %rax
movl (%rax), %ecx
addl $1, %ecx
movl %ecx, (%rax)
movl -20(%rbp), %edx
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq -16(%rbp), %rcx
movslq (%rcx), %rcx
movl %edx, (%rax,%rcx,4)
movl $1, -4(%rbp)
jmp LBB4_3
LBB4_2:
leaq L_.str.3(%rip), %rdi
callq _puts
movl $0, -4(%rbp)
LBB4_3:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Pila_Llena ## -- Begin function Pila_Llena
.p2align 4, 0x90
_Pila_Llena: ## @Pila_Llena
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq 16(%rbp), %rax
movl (%rax), %edx
movl 16(%rax), %esi
xorl %eax, %eax
movl $1, %ecx
cmpl %esi, %edx
cmovel %ecx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Q_Pop ## -- Begin function Q_Pop
.p2align 4, 0x90
_Q_Pop: ## @Q_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 $48, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 8(%rax), %rcx
movq %rcx, 8(%rsp)
movq 16(%rax), %rax
movq %rax, 16(%rsp)
callq _Pila_Vacia
cmpl $0, %eax
jne LBB6_2
## %bb.1:
movq -16(%rbp), %rax
movl (%rax), %ecx
addl $-1, %ecx
movl %ecx, (%rax)
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq -16(%rbp), %rcx
movl (%rcx), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -4(%rbp)
jmp LBB6_3
LBB6_2:
leaq L_.str.4(%rip), %rdi
callq _puts
LBB6_3:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Pila_Vacia ## -- Begin function Pila_Vacia
.p2align 4, 0x90
_Pila_Vacia: ## @Pila_Vacia
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq 16(%rbp), %rax
movl (%rax), %edx
xorl %eax, %eax
movl $1, %ecx
cmpl $0, %edx
cmovel %ecx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Q_Top ## -- Begin function Q_Top
.p2align 4, 0x90
_Q_Top: ## @Q_Top
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq 16(%rbp), %rcx
movq 8(%rcx), %rax
movslq (%rcx), %rcx
movl (%rax,%rcx,4), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Longitud_Pila ## -- Begin function Longitud_Pila
.p2align 4, 0x90
_Longitud_Pila: ## @Longitud_Pila
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq 16(%rbp), %rax
movl (%rax), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Ingrese el tama\303\261o maximo de la pila:"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Error: Input invalido."
L_.str.3: ## @.str.3
.asciz "Error: No se puede agregar el dato (la pila esta llena)."
L_.str.4: ## @.str.4
.asciz "Error: La pila esta vacia."
L_.str.5: ## @.str.5
.asciz "Que desea realizar?"
L_.str.6: ## @.str.6
.asciz "1)-Agregar dato (push)\n2)-Eliminar dato (pop)\n3)-Imprimir Tope de Pila\n0)-Salir\n"
L_.str.7: ## @.str.7
.asciz "Error de input."
L_.str.8: ## @.str.8
.asciz "Ingrese el elemento que desea agregar:"
L_.str.9: ## @.str.9
.asciz "El dato %d fue ingresado en la posicion %d\n"
L_.str.10: ## @.str.10
.asciz "El dato eliminado es: %d\n"
L_.str.11: ## @.str.11
.asciz "El dato en el tope de la pila es: %d\n"
L_.str.12: ## @.str.12
.asciz "Error: Opcion invalida."
.subsections_via_symbols
| the_stack_data/198581523.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fun_5 ; -- Begin function fun_5
.p2align 2
_fun_5: ; @fun_5
.cfi_startproc
; %bb.0:
mov w0, #5
ret
.cfi_endproc
; -- End function
.globl _fun_6 ; -- Begin function fun_6
.p2align 2
_fun_6: ; @fun_6
.cfi_startproc
; %bb.0:
mov w0, #6
ret
.cfi_endproc
; -- End function
.globl _fun_5b ; -- Begin function fun_5b
.p2align 2
_fun_5b: ; @fun_5b
.cfi_startproc
; %bb.0:
mov w0, #5
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #320
.cfi_def_cfa_offset 320
stp x28, x27, [sp, #288] ; 16-byte Folded Spill
stp x29, x30, [sp, #304] ; 16-byte Folded Spill
add x29, sp, #304
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub x8, x29, #96
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x9, ___stack_chk_guard@GOTPAGE
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
ldr x9, [x9]
stur x9, [x29, #-24]
str wzr, [sp, #92]
adrp x9, l___const.main.a@PAGE
add x9, x9, l___const.main.a@PAGEOFF
ldr x10, [x9]
str x10, [x8, #56]
ldr w9, [x9, #8]
stur w9, [x29, #-32]
adrp x9, l___const.main.f@PAGE
add x9, x9, l___const.main.f@PAGEOFF
ldr q0, [x9]
str q0, [x8, #16]
adrp x9, l___const.main.g@PAGE
add x9, x9, l___const.main.g@PAGEOFF
ldr q0, [x9]
str q0, [x8]
ldr w8, [sp, #88]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
add x8, sp, #72
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #72]
b LBB3_3
LBB3_2:
mov w8, #5
str w8, [sp, #72]
b LBB3_3
LBB3_3:
ldur w8, [x29, #-40]
subs w8, w8, #2
cset w9, ne
; 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, #32
adrp x3, l_.str.1@PAGE
add x3, x3, l_.str.1@PAGEOFF
bl ___assert_rtn
LBB3_5:
b LBB3_6
LBB3_6:
ldur w8, [x29, #-36]
subs w8, w8, #2
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_8
b LBB3_7
LBB3_7:
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, #33
adrp x3, l_.str.2@PAGE
add x3, x3, l_.str.2@PAGEOFF
bl ___assert_rtn
LBB3_8:
b LBB3_9
LBB3_9:
ldur w8, [x29, #-32]
subs w8, w8, #2
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_11
b LBB3_10
LBB3_10:
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, #34
adrp x3, l_.str.3@PAGE
add x3, x3, l_.str.3@PAGEOFF
bl ___assert_rtn
LBB3_11:
b LBB3_12
LBB3_12:
ldr w8, [sp, #80]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB3_14
b LBB3_13
LBB3_13:
str wzr, [sp, #88]
b LBB3_15
LBB3_14:
mov w8, #1
str w8, [sp, #88]
b LBB3_15
LBB3_15:
ldrsw x10, [sp, #88]
sub x9, x29, #40
mov w8, #0
str w8, [x9, x10, lsl #2]
ldur w8, [x29, #-40]
subs w8, w8, #0
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_17
b LBB3_16
LBB3_16:
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, #40
adrp x3, l_.str.4@PAGE
add x3, x3, l_.str.4@PAGEOFF
bl ___assert_rtn
LBB3_17:
b LBB3_18
LBB3_18:
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_20
b LBB3_19
LBB3_19:
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.5@PAGE
add x3, x3, l_.str.5@PAGEOFF
bl ___assert_rtn
LBB3_20:
b LBB3_21
LBB3_21:
ldur w8, [x29, #-32]
subs w8, w8, #0
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_23
b LBB3_22
LBB3_22:
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, #42
adrp x3, l_.str.6@PAGE
add x3, x3, l_.str.6@PAGEOFF
bl ___assert_rtn
LBB3_23:
b LBB3_24
LBB3_24:
sub x8, x29, #48
mov w9, #2
stur w9, [x29, #-48]
stur w9, [x29, #-44]
ldrsw x9, [sp, #88]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #2
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_26
b LBB3_25
LBB3_25:
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.7@PAGE
add x3, x3, l_.str.7@PAGEOFF
bl ___assert_rtn
LBB3_26:
b LBB3_27
LBB3_27:
sub x8, x29, #48
mov w9, #3
stur w9, [x29, #-48]
ldrsw x9, [sp, #88]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #2
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_29
b LBB3_28
LBB3_28:
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, #48
adrp x3, l_.str.7@PAGE
add x3, x3, l_.str.7@PAGEOFF
bl ___assert_rtn
LBB3_29:
b LBB3_30
LBB3_30:
ldrsw x9, [sp, #88]
sub x8, x29, #80
ldr x8, [x8, x9, lsl #3]
blr x8
str w0, [sp, #84]
ldr w8, [sp, #84]
subs w8, w8, #5
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_32
b LBB3_31
LBB3_31:
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, #52
adrp x3, l_.str.8@PAGE
add x3, x3, l_.str.8@PAGEOFF
bl ___assert_rtn
LBB3_32:
b LBB3_33
LBB3_33:
ldrsw x9, [sp, #88]
sub x8, x29, #96
ldr x8, [x8, x9, lsl #3]
blr x8
str w0, [sp, #84]
ldr w8, [sp, #84]
subs w8, w8, #5
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_35
b LBB3_34
LBB3_34:
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, #54
adrp x3, l_.str.8@PAGE
add x3, x3, l_.str.8@PAGEOFF
bl ___assert_rtn
LBB3_35:
b LBB3_36
LBB3_36:
ldr w8, [sp, #76]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB3_38
b LBB3_37
LBB3_37:
ldrsw x10, [sp, #88]
sub x9, x29, #80
adrp x8, _fun_5b@PAGE
add x8, x8, _fun_5b@PAGEOFF
str x8, [x9, x10, lsl #3]
b LBB3_38
LBB3_38:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x8, #24]
blr x8
str w0, [sp, #84]
ldr w8, [sp, #84]
subs w8, w8, #5
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_40
b LBB3_39
LBB3_39:
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, #59
adrp x3, l_.str.8@PAGE
add x3, x3, l_.str.8@PAGEOFF
bl ___assert_rtn
LBB3_40:
b LBB3_41
LBB3_41:
ldrsw x9, [sp, #88]
sub x8, x29, #80
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #64]
ldr x8, [sp, #64]
blr x8
str w0, [sp, #84]
ldr w8, [sp, #84]
subs w8, w8, #5
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_43
b LBB3_42
LBB3_42:
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, #64
adrp x3, l_.str.8@PAGE
add x3, x3, l_.str.8@PAGEOFF
bl ___assert_rtn
LBB3_43:
b LBB3_44
LBB3_44:
ldrsw x9, [sp, #88]
sub x8, x29, #96
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #64]
ldr x8, [sp, #64]
blr x8
str w0, [sp, #84]
ldr w8, [sp, #84]
subs w8, w8, #5
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_46
b LBB3_45
LBB3_45:
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, #67
adrp x3, l_.str.8@PAGE
add x3, x3, l_.str.8@PAGEOFF
bl ___assert_rtn
LBB3_46:
b LBB3_47
LBB3_47:
sub x8, x29, #60
mov w9, #5
stur w9, [x29, #-60]
stur w9, [x29, #-56]
stur w9, [x29, #-52]
str x8, [sp, #48]
ldr x8, [sp, #48]
ldr w8, [x8, #8]
str w8, [sp, #84]
ldr w8, [sp, #84]
subs w8, w8, #5
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_49
b LBB3_48
LBB3_48:
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, #74
adrp x3, l_.str.8@PAGE
add x3, x3, l_.str.8@PAGEOFF
bl ___assert_rtn
LBB3_49:
b LBB3_50
LBB3_50:
sub x8, x29, #60
str x8, [sp, #56]
ldr x8, [sp, #56]
ldr w8, [x8]
subs w8, w8, #5
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_52
b LBB3_51
LBB3_51:
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, #80
adrp x3, l_.str.9@PAGE
add x3, x3, l_.str.9@PAGEOFF
bl ___assert_rtn
LBB3_52:
b LBB3_53
LBB3_53:
sub x8, x29, #60
add x8, x8, #4
str x8, [sp, #56]
ldr x8, [sp, #56]
ldr w8, [x8]
subs w8, w8, #5
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_55
b LBB3_54
LBB3_54:
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, #84
adrp x3, l_.str.9@PAGE
add x3, x3, l_.str.9@PAGEOFF
bl ___assert_rtn
LBB3_55:
b LBB3_56
LBB3_56:
ldr x9, [sp, #56]
mov w8, #6
str w8, [x9]
ldr x8, [sp, #56]
add x8, x8, #4
str x8, [sp, #56]
ldr x8, [sp, #56]
ldr w8, [x8]
subs w8, w8, #5
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_58
b LBB3_57
LBB3_57:
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, #89
adrp x3, l_.str.9@PAGE
add x3, x3, l_.str.9@PAGEOFF
bl ___assert_rtn
LBB3_58:
b LBB3_59
LBB3_59:
add x8, sp, #28
str x8, [sp, #56]
mov w8, #7
str w8, [sp, #28]
ldr x8, [sp, #56]
ldr w8, [x8]
subs w8, w8, #7
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_61
b LBB3_60
LBB3_60:
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, #95
adrp x3, l_.str.10@PAGE
add x3, x3, l_.str.10@PAGEOFF
bl ___assert_rtn
LBB3_61:
b LBB3_62
LBB3_62:
ldrsw x9, [sp, #72]
add x8, sp, #28
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #7
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_64
b LBB3_63
LBB3_63:
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, #98
adrp x3, l_.str.11@PAGE
add x3, x3, l_.str.11@PAGEOFF
bl ___assert_rtn
LBB3_64:
b LBB3_65
LBB3_65:
ldur q0, [sp, #28]
add x8, sp, #96
str q0, [sp, #96]
ldr w9, [sp, #44]
str w9, [sp, #112]
str x8, [sp, #56]
mov w8, #42
str w8, [sp, #24]
ldr w8, [sp, #24]
subs w8, w8, #42
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_67
b LBB3_66
LBB3_66:
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, #107
adrp x3, l_.str.12@PAGE
add x3, x3, l_.str.12@PAGEOFF
bl ___assert_rtn
LBB3_67:
b LBB3_68
LBB3_68:
mov w8, #42
str w8, [sp, #20]
ldr w8, [sp, #20]
subs w8, w8, #42
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_70
b LBB3_69
LBB3_69:
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, #112
adrp x3, l_.str.13@PAGE
add x3, x3, l_.str.13@PAGEOFF
bl ___assert_rtn
LBB3_70:
b LBB3_71
LBB3_71:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB3_73
b LBB3_72
LBB3_72:
bl ___stack_chk_fail
LBB3_73:
mov w0, #0
ldp x29, x30, [sp, #304] ; 16-byte Folded Reload
ldp x28, x27, [sp, #288] ; 16-byte Folded Reload
add sp, sp, #320
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2 ; @__const.main.a
l___const.main.a:
.long 2 ; 0x2
.long 2 ; 0x2
.long 2 ; 0x2
.section __DATA,__const
.p2align 3 ; @__const.main.f
l___const.main.f:
.quad _fun_5
.quad _fun_6
.p2align 3 ; @__const.main.g
l___const.main.g:
.quad _fun_5
.quad _fun_5b
.section __TEXT,__cstring,cstring_literals
l___func__.main: ; @__func__.main
.asciz "main"
l_.str: ; @.str
.asciz "71707.c"
l_.str.1: ; @.str.1
.asciz "a[0] == 2"
l_.str.2: ; @.str.2
.asciz "a[1] == 2"
l_.str.3: ; @.str.3
.asciz "a[2] == 2"
l_.str.4: ; @.str.4
.asciz "a[0] == 0"
l_.str.5: ; @.str.5
.asciz "a[1] == 0"
l_.str.6: ; @.str.6
.asciz "a[2] == 0"
l_.str.7: ; @.str.7
.asciz "b[i] == 2"
l_.str.8: ; @.str.8
.asciz "t == 5"
l_.str.9: ; @.str.9
.asciz "*ip == 5"
l_.str.10: ; @.str.10
.asciz "*ip == 7"
l_.str.11: ; @.str.11
.asciz "x.a[top] == 7"
l_.str.12: ; @.str.12
.asciz "k[0].v == 42"
l_.str.13: ; @.str.13
.asciz "ma[0][0] == 42"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fun_5 ## -- Begin function fun_5
.p2align 4, 0x90
_fun_5: ## @fun_5
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $5, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _fun_6 ## -- Begin function fun_6
.p2align 4, 0x90
_fun_6: ## @fun_6
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $6, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _fun_5b ## -- Begin function fun_5b
.p2align 4, 0x90
_fun_5b: ## @fun_5b
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $5, %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 $288, %rsp ## imm = 0x120
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -196(%rbp)
movq l___const.main.a(%rip), %rax
movq %rax, -20(%rbp)
movl l___const.main.a+8(%rip), %eax
movl %eax, -12(%rbp)
movq l___const.main.f(%rip), %rax
movq %rax, -64(%rbp)
movq l___const.main.f+8(%rip), %rax
movq %rax, -56(%rbp)
movq l___const.main.g(%rip), %rax
movq %rax, -80(%rbp)
movq l___const.main.g+8(%rip), %rax
movq %rax, -72(%rbp)
cmpl $0, -200(%rbp)
je LBB3_2
## %bb.1:
leaq -216(%rbp), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -216(%rbp)
jmp LBB3_3
LBB3_2:
movl $5, -216(%rbp)
LBB3_3:
cmpl $2, -20(%rbp)
sete %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.1(%rip), %rcx
movl $32, %edx
callq ___assert_rtn
LBB3_5:
jmp LBB3_6
LBB3_6:
cmpl $2, -16(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_8
## %bb.7:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.2(%rip), %rcx
movl $33, %edx
callq ___assert_rtn
LBB3_8:
jmp LBB3_9
LBB3_9:
cmpl $2, -12(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_11
## %bb.10:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.3(%rip), %rcx
movl $34, %edx
callq ___assert_rtn
LBB3_11:
jmp LBB3_12
LBB3_12:
cmpl $0, -208(%rbp)
je LBB3_14
## %bb.13:
movl $0, -200(%rbp)
jmp LBB3_15
LBB3_14:
movl $1, -200(%rbp)
LBB3_15:
movslq -200(%rbp), %rax
movl $0, -20(%rbp,%rax,4)
cmpl $0, -20(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_17
## %bb.16:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.4(%rip), %rcx
movl $40, %edx
callq ___assert_rtn
LBB3_17:
jmp LBB3_18
LBB3_18:
cmpl $0, -16(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_20
## %bb.19:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.5(%rip), %rcx
movl $41, %edx
callq ___assert_rtn
LBB3_20:
jmp LBB3_21
LBB3_21:
cmpl $0, -12(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_23
## %bb.22:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.6(%rip), %rcx
movl $42, %edx
callq ___assert_rtn
LBB3_23:
jmp LBB3_24
LBB3_24:
movl $2, -28(%rbp)
movl $2, -24(%rbp)
movslq -200(%rbp), %rax
cmpl $2, -28(%rbp,%rax,4)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_26
## %bb.25:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.7(%rip), %rcx
movl $46, %edx
callq ___assert_rtn
LBB3_26:
jmp LBB3_27
LBB3_27:
movl $3, -28(%rbp)
movslq -200(%rbp), %rax
cmpl $2, -28(%rbp,%rax,4)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_29
## %bb.28:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.7(%rip), %rcx
movl $48, %edx
callq ___assert_rtn
LBB3_29:
jmp LBB3_30
LBB3_30:
movslq -200(%rbp), %rcx
movb $0, %al
callq *-64(%rbp,%rcx,8)
movl %eax, -204(%rbp)
cmpl $5, -204(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_32
## %bb.31:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.8(%rip), %rcx
movl $52, %edx
callq ___assert_rtn
LBB3_32:
jmp LBB3_33
LBB3_33:
movslq -200(%rbp), %rcx
movb $0, %al
callq *-80(%rbp,%rcx,8)
movl %eax, -204(%rbp)
cmpl $5, -204(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_35
## %bb.34:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.8(%rip), %rcx
movl $54, %edx
callq ___assert_rtn
LBB3_35:
jmp LBB3_36
LBB3_36:
cmpl $0, -212(%rbp)
je LBB3_38
## %bb.37:
movslq -200(%rbp), %rax
leaq _fun_5b(%rip), %rcx
movq %rcx, -64(%rbp,%rax,8)
LBB3_38:
movb $0, %al
callq *-56(%rbp)
movl %eax, -204(%rbp)
cmpl $5, -204(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_40
## %bb.39:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.8(%rip), %rcx
movl $59, %edx
callq ___assert_rtn
LBB3_40:
jmp LBB3_41
LBB3_41:
movslq -200(%rbp), %rax
movq -64(%rbp,%rax,8), %rax
movq %rax, -224(%rbp)
movb $0, %al
callq *-224(%rbp)
movl %eax, -204(%rbp)
cmpl $5, -204(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_43
## %bb.42:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.8(%rip), %rcx
movl $64, %edx
callq ___assert_rtn
LBB3_43:
jmp LBB3_44
LBB3_44:
movslq -200(%rbp), %rax
movq -80(%rbp,%rax,8), %rax
movq %rax, -224(%rbp)
movb $0, %al
callq *-224(%rbp)
movl %eax, -204(%rbp)
cmpl $5, -204(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_46
## %bb.45:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.8(%rip), %rcx
movl $67, %edx
callq ___assert_rtn
LBB3_46:
jmp LBB3_47
LBB3_47:
movl $5, -40(%rbp)
movl $5, -36(%rbp)
movl $5, -32(%rbp)
leaq -40(%rbp), %rax
movq %rax, -240(%rbp)
movq -240(%rbp), %rax
movl 8(%rax), %eax
movl %eax, -204(%rbp)
cmpl $5, -204(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_49
## %bb.48:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.8(%rip), %rcx
movl $74, %edx
callq ___assert_rtn
LBB3_49:
jmp LBB3_50
LBB3_50:
leaq -40(%rbp), %rax
movq %rax, -232(%rbp)
movq -232(%rbp), %rax
cmpl $5, (%rax)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_52
## %bb.51:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.9(%rip), %rcx
movl $80, %edx
callq ___assert_rtn
LBB3_52:
jmp LBB3_53
LBB3_53:
leaq -40(%rbp), %rax
addq $4, %rax
movq %rax, -232(%rbp)
movq -232(%rbp), %rax
cmpl $5, (%rax)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_55
## %bb.54:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.9(%rip), %rcx
movl $84, %edx
callq ___assert_rtn
LBB3_55:
jmp LBB3_56
LBB3_56:
movq -232(%rbp), %rax
movl $6, (%rax)
movq -232(%rbp), %rax
addq $4, %rax
movq %rax, -232(%rbp)
movq -232(%rbp), %rax
cmpl $5, (%rax)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_58
## %bb.57:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.9(%rip), %rcx
movl $89, %edx
callq ___assert_rtn
LBB3_58:
jmp LBB3_59
LBB3_59:
leaq -264(%rbp), %rax
movq %rax, -232(%rbp)
movl $7, -264(%rbp)
movq -232(%rbp), %rax
cmpl $7, (%rax)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_61
## %bb.60:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.10(%rip), %rcx
movl $95, %edx
callq ___assert_rtn
LBB3_61:
jmp LBB3_62
LBB3_62:
movslq -216(%rbp), %rax
cmpl $7, -264(%rbp,%rax,4)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_64
## %bb.63:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.11(%rip), %rcx
movl $98, %edx
callq ___assert_rtn
LBB3_64:
jmp LBB3_65
LBB3_65:
movq -264(%rbp), %rax
movq %rax, -192(%rbp)
movq -256(%rbp), %rax
movq %rax, -184(%rbp)
movl -248(%rbp), %eax
movl %eax, -176(%rbp)
leaq -192(%rbp), %rax
movq %rax, -232(%rbp)
movl $42, -272(%rbp)
cmpl $42, -272(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_67
## %bb.66:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.12(%rip), %rcx
movl $107, %edx
callq ___assert_rtn
LBB3_67:
jmp LBB3_68
LBB3_68:
movl $42, -276(%rbp)
cmpl $42, -276(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_70
## %bb.69:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.13(%rip), %rcx
movl $112, %edx
callq ___assert_rtn
LBB3_70:
jmp LBB3_71
LBB3_71:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB3_73
## %bb.72:
xorl %eax, %eax
addq $288, %rsp ## imm = 0x120
popq %rbp
retq
LBB3_73:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 2 ## @__const.main.a
l___const.main.a:
.long 2 ## 0x2
.long 2 ## 0x2
.long 2 ## 0x2
.section __DATA,__const
.p2align 4 ## @__const.main.f
l___const.main.f:
.quad _fun_5
.quad _fun_6
.p2align 4 ## @__const.main.g
l___const.main.g:
.quad _fun_5
.quad _fun_5b
.section __TEXT,__cstring,cstring_literals
L___func__.main: ## @__func__.main
.asciz "main"
L_.str: ## @.str
.asciz "71707.c"
L_.str.1: ## @.str.1
.asciz "a[0] == 2"
L_.str.2: ## @.str.2
.asciz "a[1] == 2"
L_.str.3: ## @.str.3
.asciz "a[2] == 2"
L_.str.4: ## @.str.4
.asciz "a[0] == 0"
L_.str.5: ## @.str.5
.asciz "a[1] == 0"
L_.str.6: ## @.str.6
.asciz "a[2] == 0"
L_.str.7: ## @.str.7
.asciz "b[i] == 2"
L_.str.8: ## @.str.8
.asciz "t == 5"
L_.str.9: ## @.str.9
.asciz "*ip == 5"
L_.str.10: ## @.str.10
.asciz "*ip == 7"
L_.str.11: ## @.str.11
.asciz "x.a[top] == 7"
L_.str.12: ## @.str.12
.asciz "k[0].v == 42"
L_.str.13: ## @.str.13
.asciz "ma[0][0] == 42"
.subsections_via_symbols
| the_stack_data/71707.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 _printf
mov w8, #1
str w8, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
subs w8, w8, #100
cset w8, gt
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8]
mov w10, #2
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=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_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, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB0_1
LBB0_6:
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Even numbers between 1 to 100 are:\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
movl $1, -8(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $100, -8(%rbp)
jg LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
cmpl $0, %edx
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
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 "Even numbers between 1 to 100 are:\n"
L_.str.1: ## @.str.1
.asciz "%d,"
.subsections_via_symbols
| the_stack_data/167323.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:
mov w0, #42
ret
.cfi_endproc
; -- End function
.globl _bar ; -- Begin function bar
.p2align 2
_bar: ; @bar
.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
.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 $42, %eax
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
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl -4(%rbp), %eax
addl -8(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/32949817.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub sp, sp, #1040
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #28]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
add x0, sp, #32
mov w1, #1000
bl _setline_getlen
str w0, [sp, #24]
subs w8, w0, #0
cset w8, le
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w9, [sp, #24]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
add x8, sp, #32
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB0_1
LBB0_3:
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_5
b LBB0_4
LBB0_4:
bl ___stack_chk_fail
LBB0_5:
mov w0, #0
add sp, sp, #1040
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _setline_getlen ; -- Begin function setline_getlen
.p2align 2
_setline_getlen: ; @setline_getlen
.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, #12]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldur w9, [x29, #-12]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
mov w9, #0
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
bl _getchar
str w0, [sp, #16]
adds w8, w0, #1
cset w8, eq
mov w9, #0
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #16]
subs w8, w8, #10
cset w8, ne
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #8] ; 4-byte Folded Reload
tbz w8, #0, LBB1_7
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #16]
ldur x9, [x29, #-8]
ldrsw x10, [sp, #12]
strb w8, [x9, x10]
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:
ldr w8, [sp, #16]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB1_9
b LBB1_8
LBB1_8:
ldr w8, [sp, #16]
ldur x9, [x29, #-8]
ldrsw x10, [sp, #12]
strb w8, [x9, x10]
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB1_9
LBB1_9:
ldur x8, [x29, #-8]
ldrsw x9, [sp, #12]
add x8, x8, x9
strb wzr, [x8]
ldr w0, [sp, #12]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\nLength: %d\nString:\n%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 $1024, %rsp ## imm = 0x400
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -1012(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
leaq -1008(%rbp), %rdi
movl $1000, %esi ## imm = 0x3E8
callq _setline_getlen
movl %eax, -1016(%rbp)
cmpl $0, %eax
jle LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -1016(%rbp), %esi
leaq -1008(%rbp), %rdx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_1
LBB0_3:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_5
## %bb.4:
xorl %eax, %eax
addq $1024, %rsp ## imm = 0x400
popq %rbp
retq
LBB0_5:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _setline_getlen ## -- Begin function setline_getlen
.p2align 4, 0x90
_setline_getlen: ## @setline_getlen
.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 $0, -20(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %ecx
movl -12(%rbp), %edx
subl $1, %edx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl %edx, %ecx
movb %al, -21(%rbp) ## 1-byte Spill
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
callq _getchar
movl %eax, %ecx
movl %ecx, -16(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $-1, %ecx
movb %al, -21(%rbp) ## 1-byte Spill
je LBB1_4
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
cmpl $10, -16(%rbp)
setne %al
movb %al, -21(%rbp) ## 1-byte Spill
LBB1_4: ## in Loop: Header=BB1_1 Depth=1
movb -21(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB1_5
jmp LBB1_7
LBB1_5: ## in Loop: Header=BB1_1 Depth=1
movl -16(%rbp), %eax
movb %al, %dl
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movb %dl, (%rax,%rcx)
## %bb.6: ## in Loop: Header=BB1_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB1_1
LBB1_7:
cmpl $10, -16(%rbp)
jne LBB1_9
## %bb.8:
movl -16(%rbp), %eax
movb %al, %dl
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
LBB1_9:
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movb $0, (%rax,%rcx)
movl -20(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\nLength: %d\nString:\n%s\n"
.subsections_via_symbols
| the_stack_data/143602.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _transpose1 ; -- Begin function transpose1
.p2align 2
_transpose1: ; @transpose1
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr w8, [sp, #12]
subs w8, w8, #2
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #8]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #8]
subs w8, w8, #2
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
add x8, x8, x9, lsl #3
ldrsw x9, [sp, #8]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #24]
ldrsw x10, [sp, #8]
add x9, x9, x10, lsl #3
ldrsw x10, [sp, #12]
str w8, [x9, x10, lsl #2]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_1
LBB0_8:
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 _transpose1 ## -- Begin function transpose1
.p2align 4, 0x90
_transpose1: ## @transpose1
.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 $0, -20(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
cmpl $2, -20(%rbp)
jge LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -24(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $2, -24(%rbp)
jge LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
shlq $3, %rcx
addq %rcx, %rax
movslq -24(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -8(%rbp), %rax
movslq -24(%rbp), %rcx
shlq $3, %rcx
addq %rcx, %rax
movslq -20(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%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 -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_1
LBB0_8:
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/162642383.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]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
sub sp, sp, #16
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
add sp, sp, #16
ldur w8, [x29, #-16]
; kill: def $x8 killed $w8
mov x9, sp
stur x9, [x29, #-48]
lsl x9, x8, #2
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-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, #-56]
stur wzr, [x29, #-20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-64] ; 8-byte Folded Reload
ldursw x9, [x29, #-20]
add x8, x8, x9, lsl #2
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
add sp, sp, #16
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_1
LBB0_4:
ldur x8, [x29, #-64] ; 8-byte Folded Reload
ldr w9, [x8]
stur w9, [x29, #-32]
ldr w8, [x8]
stur w8, [x29, #-36]
stur wzr, [x29, #-20]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_12
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldur x8, [x29, #-64] ; 8-byte Folded Reload
ldursw x9, [x29, #-20]
ldr w8, [x8, x9, lsl #2]
ldur w9, [x29, #-36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldur x8, [x29, #-64] ; 8-byte Folded Reload
ldursw x9, [x29, #-20]
ldr w8, [x8, x9, lsl #2]
stur w8, [x29, #-36]
ldur w8, [x29, #-20]
stur w8, [x29, #-28]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_5 Depth=1
ldur x8, [x29, #-64] ; 8-byte Folded Reload
ldursw x9, [x29, #-20]
ldr w8, [x8, x9, lsl #2]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_5 Depth=1
ldur x8, [x29, #-64] ; 8-byte Folded Reload
ldursw x9, [x29, #-20]
ldr w8, [x8, x9, lsl #2]
stur w8, [x29, #-32]
ldur w8, [x29, #-20]
stur w8, [x29, #-24]
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_5 Depth=1
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_5
LBB0_12:
ldur w8, [x29, #-32]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-24]
; implicit-def: $x8
mov x8, x9
sub sp, sp, #16
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
add sp, sp, #16
ldur w8, [x29, #-36]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-28]
; implicit-def: $x8
mov x8, x9
sub sp, sp, #16
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
add sp, sp, #16
ldur x8, [x29, #-48]
mov sp, x8
ldur w8, [x29, #-12]
stur w8, [x29, #-76] ; 4-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
bl ___stack_chk_fail
LBB0_14:
ldur w0, [x29, #-76] ; 4-byte Folded Reload
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Digite o valor n:"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Maior=%d[%d]\n"
l_.str.3: ; @.str.3
.asciz "Menor=%d[%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
movb %al, -73(%rbp) ## 1-byte Spill
callq _printf
## kill: def $ecx killed $eax
movb -73(%rbp), %al ## 1-byte Reload
leaq L_.str.1(%rip), %rdi
leaq -16(%rbp), %rsi
callq _scanf
movl -16(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -72(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -48(%rbp)
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -72(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -64(%rbp) ## 8-byte Spill
movq %rax, -56(%rbp)
movl $0, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -64(%rbp), %rsi ## 8-byte Reload
movslq -20(%rbp), %rax
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 -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_1
LBB0_4:
movq -64(%rbp), %rax ## 8-byte Reload
movl (%rax), %ecx
movl %ecx, -32(%rbp)
movl (%rax), %eax
movl %eax, -36(%rbp)
movl $0, -20(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB0_12
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -64(%rbp), %rax ## 8-byte Reload
movslq -20(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -36(%rbp), %eax
jge LBB0_8
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movq -64(%rbp), %rax ## 8-byte Reload
movslq -20(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -36(%rbp)
movl -20(%rbp), %eax
movl %eax, -28(%rbp)
LBB0_8: ## in Loop: Header=BB0_5 Depth=1
movq -64(%rbp), %rax ## 8-byte Reload
movslq -20(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -32(%rbp), %eax
jle LBB0_10
## %bb.9: ## in Loop: Header=BB0_5 Depth=1
movq -64(%rbp), %rax ## 8-byte Reload
movslq -20(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -32(%rbp)
movl -20(%rbp), %eax
movl %eax, -24(%rbp)
LBB0_10: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_11
LBB0_11: ## in Loop: Header=BB0_5 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_5
LBB0_12:
movl -32(%rbp), %esi
movl -24(%rbp), %edx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl -36(%rbp), %esi
movl -28(%rbp), %edx
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movq -48(%rbp), %rax
movq %rax, %rsp
movl -12(%rbp), %eax
movl %eax, -80(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_14
## %bb.13:
movl -80(%rbp), %eax ## 4-byte Reload
movq %rbp, %rsp
popq %rbp
retq
LBB0_14:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Digite o valor n:"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Maior=%d[%d]\n"
L_.str.3: ## @.str.3
.asciz "Menor=%d[%d]"
.subsections_via_symbols
| the_stack_data/6388860.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 x8, [x29, #-16]
ldr x0, [x8, #8]
bl _strdup
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur x0, [x29, #-24]
bl _trim
ldur x8, [x29, #-24]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldur x0, [x29, #-24]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _tokenise
str x0, [sp, #32]
str wzr, [sp, #28]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32]
ldrsw x9, [sp, #28]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #28]
; implicit-def: $x10
mov x10, x8
ldr x8, [sp, #32]
ldrsw x9, [sp, #28]
ldr x8, [x8, x9, lsl #3]
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
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_1
LBB0_4:
ldr x0, [sp, #32]
bl _freeTokens
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _trim ; -- Begin function trim
.p2align 2
_trim: ; @trim
.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 wzr, [x29, #-12]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
ldursw x9, [x29, #-12]
ldrsb w0, [x8, x9]
bl _isspace
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB1_1
LBB1_3:
ldur x0, [x29, #-8]
bl _strlen
subs x8, x0, #1
; kill: def $w8 killed $w8 killed $x8
stur w8, [x29, #-16]
b LBB1_4
LBB1_4: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
ldursw x9, [x29, #-16]
ldrsb w0, [x8, x9]
bl _isspace
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, #-16]
subs w8, w8, #1
stur w8, [x29, #-16]
b LBB1_4
LBB1_6:
stur wzr, [x29, #-20]
str wzr, [sp, #24]
ldur w8, [x29, #-12]
stur w8, [x29, #-20]
b LBB1_7
LBB1_7: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_10
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_7 Depth=1
ldur w8, [x29, #-20]
; implicit-def: $x11
mov x11, x8
ldr w9, [sp, #24]
; implicit-def: $x8
mov x8, x9
ldur x9, [x29, #-8]
ldursw x10, [x29, #-20]
ldrsb w10, [x9, x10]
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 x8, [x29, #-8]
ldursw x9, [x29, #-20]
add x8, x8, x9
ldrb w8, [x8]
ldur x9, [x29, #-8]
ldrsw x10, [sp, #24]
add x9, x9, x10
strb w8, [x9]
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_7 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB1_7
LBB1_10:
ldur x8, [x29, #-8]
ldrsw x9, [sp, #24]
add x8, x8, x9
strb wzr, [x8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _tokenise ; -- Begin function tokenise
.p2align 2
_tokenise: ; @tokenise
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
bl _strdup
stur x0, [x29, #-24]
stur wzr, [x29, #-28]
ldur x0, [x29, #-24]
ldur x1, [x29, #-16]
bl _strtok
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldur x1, [x29, #-16]
mov x0, #0
bl _strtok
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB2_1
LBB2_3:
ldur x0, [x29, #-24]
bl _free
ldur w8, [x29, #-28]
add w9, w8, #1
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
lsl x0, x8, #3
bl _malloc
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w9, eq
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB2_5
b LBB2_4
LBB2_4:
adrp x0, l___func__.tokenise@PAGE
add x0, x0, l___func__.tokenise@PAGEOFF
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
mov w2, #61
adrp x3, l_.str.6@PAGE
add x3, x3, l_.str.6@PAGEOFF
bl ___assert_rtn
LBB2_5:
b LBB2_6
LBB2_6:
ldur x0, [x29, #-8]
bl _strdup
stur x0, [x29, #-24]
str wzr, [sp, #12]
ldur x0, [x29, #-24]
ldur x1, [x29, #-16]
bl _strtok
str x0, [sp, #16]
ldr x0, [sp, #16]
bl _strdup
ldr x8, [sp, #24]
ldrsw x9, [sp, #12]
mov x10, x9
add w10, w10, #1
str w10, [sp, #12]
str x0, [x8, x9, lsl #3]
b LBB2_7
LBB2_7: ; =>This Inner Loop Header: Depth=1
ldur x1, [x29, #-16]
mov x0, #0
bl _strtok
mov x8, x0
str x8, [sp, #16]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB2_9
b LBB2_8
LBB2_8: ; in Loop: Header=BB2_7 Depth=1
ldr x0, [sp, #16]
bl _strdup
ldr x8, [sp, #24]
ldrsw x9, [sp, #12]
mov x10, x9
add w10, w10, #1
str w10, [sp, #12]
str x0, [x8, x9, lsl #3]
b LBB2_7
LBB2_9:
ldr x9, [sp, #24]
ldrsw x10, [sp, #12]
mov x8, #0
str x8, [x9, x10, lsl #3]
ldur x0, [x29, #-24]
bl _free
ldr x0, [sp, #24]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _freeTokens ; -- Begin function freeTokens
.p2align 2
_freeTokens: ; @freeTokens
.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 wzr, [sp, #4]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldrsw x9, [sp, #4]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB3_4
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #8]
ldrsw x9, [sp, #4]
ldr x0, [x8, x9, lsl #3]
bl _free
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB3_1
LBB3_4:
ldr x0, [sp, #8]
bl _free
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 "Input: \"%s\"\n"
l_.str.1: ; @.str.1
.asciz "Trimmed: \"%s\"\n"
l_.str.2: ; @.str.2
.asciz " "
l_.str.3: ; @.str.3
.asciz "tok[%d] = \"%s\"\n"
l_.str.4: ; @.str.4
.asciz "i = %d, j = %d, str[i] = %c\n"
l___func__.tokenise: ; @__func__.tokenise
.asciz "tokenise"
l_.str.5: ; @.str.5
.asciz "97011895.c"
l_.str.6: ; @.str.6
.asciz "strings != NULL"
.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)
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _strdup
movq %rax, -24(%rbp)
movq -24(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq -24(%rbp), %rdi
callq _trim
movq -24(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq -24(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _tokenise
movq %rax, -32(%rbp)
movl $0, -36(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
movslq -36(%rbp), %rcx
cmpq $0, (%rax,%rcx,8)
je LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -36(%rbp), %esi
movq -32(%rbp), %rax
movslq -36(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
## %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:
movq -32(%rbp), %rdi
callq _freeTokens
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _trim ## -- Begin function trim
.p2align 4, 0x90
_trim: ## @trim
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movl $0, -12(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movsbl (%rax,%rcx), %edi
callq _isspace
cmpl $0, %eax
je LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB1_1
LBB1_3:
movq -8(%rbp), %rdi
callq _strlen
subq $1, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -16(%rbp)
LBB1_4: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movsbl (%rax,%rcx), %edi
callq _isspace
cmpl $0, %eax
je LBB1_6
## %bb.5: ## in Loop: Header=BB1_4 Depth=1
movl -16(%rbp), %eax
addl $-1, %eax
movl %eax, -16(%rbp)
jmp LBB1_4
LBB1_6:
movl $0, -20(%rbp)
movl $0, -24(%rbp)
movl -12(%rbp), %eax
movl %eax, -20(%rbp)
LBB1_7: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -16(%rbp), %eax
jg LBB1_10
## %bb.8: ## in Loop: Header=BB1_7 Depth=1
movl -20(%rbp), %esi
movl -24(%rbp), %edx
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -8(%rbp), %rax
movslq -24(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
## %bb.9: ## in Loop: Header=BB1_7 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB1_7
LBB1_10:
movq -8(%rbp), %rax
movslq -24(%rbp), %rcx
movb $0, (%rax,%rcx)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _tokenise ## -- Begin function tokenise
.p2align 4, 0x90
_tokenise: ## @tokenise
.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 -8(%rbp), %rdi
callq _strdup
movq %rax, -24(%rbp)
movl $0, -28(%rbp)
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
callq _strtok
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edi
callq _strtok
cmpq $0, %rax
je LBB2_3
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB2_1
LBB2_3:
movq -24(%rbp), %rdi
callq _free
movl -28(%rbp), %eax
addl $1, %eax
movslq %eax, %rdi
shlq $3, %rdi
callq _malloc
movq %rax, -40(%rbp)
cmpq $0, -40(%rbp)
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB2_5
## %bb.4:
leaq L___func__.tokenise(%rip), %rdi
leaq L_.str.5(%rip), %rsi
leaq L_.str.6(%rip), %rcx
movl $61, %edx
callq ___assert_rtn
LBB2_5:
jmp LBB2_6
LBB2_6:
movq -8(%rbp), %rdi
callq _strdup
movq %rax, -24(%rbp)
movl $0, -52(%rbp)
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
callq _strtok
movq %rax, -48(%rbp)
movq -48(%rbp), %rdi
callq _strdup
movq %rax, %rdx
movq -40(%rbp), %rax
movl -52(%rbp), %ecx
movl %ecx, %esi
addl $1, %esi
movl %esi, -52(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
LBB2_7: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edi
callq _strtok
movq %rax, -48(%rbp)
cmpq $0, %rax
je LBB2_9
## %bb.8: ## in Loop: Header=BB2_7 Depth=1
movq -48(%rbp), %rdi
callq _strdup
movq %rax, %rdx
movq -40(%rbp), %rax
movl -52(%rbp), %ecx
movl %ecx, %esi
addl $1, %esi
movl %esi, -52(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp LBB2_7
LBB2_9:
movq -40(%rbp), %rax
movslq -52(%rbp), %rcx
movq $0, (%rax,%rcx,8)
movq -24(%rbp), %rdi
callq _free
movq -40(%rbp), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _freeTokens ## -- Begin function freeTokens
.p2align 4, 0x90
_freeTokens: ## @freeTokens
.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)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
cmpq $0, (%rax,%rcx,8)
je LBB3_4
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq _free
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB3_1
LBB3_4:
movq -8(%rbp), %rdi
callq _free
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Input: \"%s\"\n"
L_.str.1: ## @.str.1
.asciz "Trimmed: \"%s\"\n"
L_.str.2: ## @.str.2
.asciz " "
L_.str.3: ## @.str.3
.asciz "tok[%d] = \"%s\"\n"
L_.str.4: ## @.str.4
.asciz "i = %d, j = %d, str[i] = %c\n"
L___func__.tokenise: ## @__func__.tokenise
.asciz "tokenise"
L_.str.5: ## @.str.5
.asciz "97011895.c"
L_.str.6: ## @.str.6
.asciz "strings != NULL"
.subsections_via_symbols
| the_stack_data/97011895.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _maisVelho ; -- Begin function maisVelho
.p2align 2
_maisVelho: ; @maisVelho
.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 wzr, [x29, #-20]
stur wzr, [x29, #-16]
movi d0, #0000000000000000
str s0, [sp, #32]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-16]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_7
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
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
str x0, [sp, #24] ; 8-byte Folded Spill
bl _scanf
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #24
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
bl _scanf
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #28
str x8, [x9]
bl _scanf
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
ldr x0, [sp, #24] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #12
str x8, [x9]
bl _scanf
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, #-12]
stur w8, [x29, #-20]
ldur s0, [x29, #-24]
ldur s1, [x29, #-28]
fadd s0, s0, s1
fcvt d0, s0
fmov d1, #2.00000000
fdiv d0, d0, d1
fcvt s0, d0
str s0, [sp, #32]
ldr s0, [sp, #32]
fcvt d0, s0
fmov d1, #7.00000000
fcmp d0, d1
cset w8, lt
tbnz w8, #0, LBB0_6
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
stur w8, [x29, #-20]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB0_1
LBB0_7:
ldur w0, [x29, #-20]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
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
stur w8, [x29, #-12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@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 w0, [x29, #-8]
bl _maisVelho
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
ldur w0, [x29, #-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 "\n---------------Programa Comeco------------------"
l_.str.1: ; @.str.1
.asciz "\nForneca sua matricula: "
l_.str.2: ; @.str.2
.asciz "%d"
l_.str.3: ; @.str.3
.asciz "Forneca sua Nota1: "
l_.str.4: ; @.str.4
.asciz "%f"
l_.str.5: ; @.str.5
.asciz "Forneca sua Nota2: "
l_.str.6: ; @.str.6
.asciz "Forneca sua idade: "
l_.str.7: ; @.str.7
.asciz "\n---------------Fim------------------"
l_.str.8: ; @.str.8
.asciz "\n\n\n"
l_.str.9: ; @.str.9
.asciz "Forneca a quantidade de alunos da escola: "
l_.str.10: ; @.str.10
.asciz "\nA idade o aluno mais velho eh: %d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function maisVelho
LCPI0_0:
.quad 0x401c000000000000 ## double 7
LCPI0_1:
.quad 0x4000000000000000 ## double 2
.section __TEXT,__text,regular,pure_instructions
.globl _maisVelho
.p2align 4, 0x90
_maisVelho: ## @maisVelho
.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 $0, -20(%rbp)
movl $0, -16(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -32(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB0_7
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.4(%rip), %rdi
leaq -24(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.4(%rip), %rdi
leaq -28(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movl -12(%rbp), %eax
movl %eax, -20(%rbp)
movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addss -28(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -32(%rbp)
movss -32(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
ucomisd %xmm1, %xmm0
jb LBB0_6
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
cmpl -20(%rbp), %eax
jle LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
movl %eax, -20(%rbp)
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_6
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_1
LBB0_7:
movl -20(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl -8(%rbp), %edi
callq _maisVelho
movl %eax, %esi
leaq L_.str.10(%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 "\n---------------Programa Comeco------------------"
L_.str.1: ## @.str.1
.asciz "\nForneca sua matricula: "
L_.str.2: ## @.str.2
.asciz "%d"
L_.str.3: ## @.str.3
.asciz "Forneca sua Nota1: "
L_.str.4: ## @.str.4
.asciz "%f"
L_.str.5: ## @.str.5
.asciz "Forneca sua Nota2: "
L_.str.6: ## @.str.6
.asciz "Forneca sua idade: "
L_.str.7: ## @.str.7
.asciz "\n---------------Fim------------------"
L_.str.8: ## @.str.8
.asciz "\n\n\n"
L_.str.9: ## @.str.9
.asciz "Forneca a quantidade de alunos da escola: "
L_.str.10: ## @.str.10
.asciz "\nA idade o aluno mais velho eh: %d"
.subsections_via_symbols
| the_stack_data/173578514.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]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldursw x8, [x29, #-8]
lsl x0, x8, #2
bl _malloc
stur x0, [x29, #-16]
stur wzr, [x29, #-20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-8]
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, #-16]
ldursw x9, [x29, #-20]
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
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_1
LBB0_4:
str xzr, [sp, #32]
ldur w8, [x29, #-8]
mov w9, #2
sdiv w9, w8, w9
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
str x8, [sp, #24]
b LBB0_5
LBB0_5: ; =>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_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldur x8, [x29, #-16]
ldr x9, [sp, #32]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #20]
ldur x8, [x29, #-16]
ldur w9, [x29, #-8]
subs w10, w9, #1
; implicit-def: $x9
mov x9, x10
sxtw x9, w9
ldr x10, [sp, #32]
subs x9, x9, x10
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-16]
ldr x10, [sp, #32]
str w8, [x9, x10, lsl #2]
ldr w8, [sp, #20]
ldur x9, [x29, #-16]
ldur w10, [x29, #-8]
subs w11, w10, #1
; implicit-def: $x10
mov x10, x11
sxtw x10, w10
ldr x11, [sp, #32]
subs x10, x10, x11
str w8, [x9, x10, lsl #2]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB0_5
LBB0_8:
stur wzr, [x29, #-20]
b LBB0_9
LBB0_9: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_12
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr w9, [x8, x9, lsl #2]
; 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_11
LBB0_11: ; in Loop: Header=BB0_9 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_9
LBB0_12:
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 "%d"
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 $48, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movslq -8(%rbp), %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -16(%rbp)
movl $0, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rsi
movslq -20(%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 -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_1
LBB0_4:
movq $0, -32(%rbp)
movl -8(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
cltq
movq %rax, -40(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
cmpq -40(%rbp), %rax
jae LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -16(%rbp), %rax
movq -32(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -44(%rbp)
movq -16(%rbp), %rax
movl -8(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
subq -32(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -16(%rbp), %rax
movq -32(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -44(%rbp), %edx
movq -16(%rbp), %rax
movl -8(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
subq -32(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB0_5
LBB0_8:
movl $0, -20(%rbp)
LBB0_9: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_12
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.11: ## in Loop: Header=BB0_9 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_9
LBB0_12:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
L_.str.1: ## @.str.1
.asciz "%d "
.subsections_via_symbols
| the_stack_data/198582003.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, #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
.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
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl -4(%rbp), %eax
addl -8(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/108063.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _factorial ; -- Begin function factorial
.p2align 2
_factorial: ; @factorial
.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 wzr, [sp, #8]
ldur w8, [x29, #-4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur w8, [x29, #-4]
str w8, [sp, #4] ; 4-byte Folded Spill
ldur w8, [x29, #-4]
subs w0, w8, #1
bl _factorial
ldr w8, [sp, #4] ; 4-byte Folded Reload
add w8, w8, w0
str w8, [sp, #8]
b LBB0_2
LBB0_2:
ldr w0, [sp, #8]
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
stur w8, [x29, #-12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov w0, #10
stur w0, [x29, #-8]
bl _factorial
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
mov w0, #5
bl _factorial
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, #1
bl _factorial
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, #-12] ; 4-byte Folded Reload
bl _factorial
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldur w0, [x29, #-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 "factorial(10)= %d\n"
l_.str.1: ; @.str.1
.asciz "factorial(5)= %d\n"
l_.str.2: ; @.str.2
.asciz "factorial(1)= %d\n"
l_.str.3: ; @.str.3
.asciz "factorial(0)= %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _factorial ## -- Begin function factorial
.p2align 4, 0x90
_factorial: ## @factorial
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movl $0, -8(%rbp)
movb $1, %al
cmpl $0, -4(%rbp)
movb %al, -9(%rbp) ## 1-byte Spill
je LBB0_2
## %bb.1:
movl -4(%rbp), %eax
movl %eax, -16(%rbp) ## 4-byte Spill
movl -4(%rbp), %edi
subl $1, %edi
callq _factorial
movl %eax, %ecx
movl -16(%rbp), %eax ## 4-byte Reload
addl %ecx, %eax
movl %eax, -8(%rbp)
cmpl $0, %eax
setne %al
movb %al, -9(%rbp) ## 1-byte Spill
LBB0_2:
movb -9(%rbp), %al ## 1-byte Reload
movl -8(%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 $16, %rsp
movl $0, -4(%rbp)
movl $10, -8(%rbp)
movl $10, %edi
callq _factorial
movl %eax, %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $5, %edi
callq _factorial
movl %eax, %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl $1, %edi
callq _factorial
movl %eax, %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
xorl %edi, %edi
callq _factorial
movl %eax, %esi
leaq L_.str.3(%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 "factorial(10)= %d\n"
L_.str.1: ## @.str.1
.asciz "factorial(5)= %d\n"
L_.str.2: ## @.str.2
.asciz "factorial(1)= %d\n"
L_.str.3: ## @.str.3
.asciz "factorial(0)= %d\n"
.subsections_via_symbols
| the_stack_data/86075561.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 _getchar
str w0, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w0, [sp, #8]
bl _putchar
bl _getchar
str w0, [sp, #8]
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
.globl _optimse ; -- Begin function optimse
.p2align 2
_optimse: ; @optimse
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
bl _getchar
sturb w0, [x29, #-1]
mov w8, #-1
subs w8, w8, w0, sxtb
cset w8, eq
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldursb w0, [x29, #-1]
bl _putchar
b LBB1_1
LBB1_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
callq _getchar
movl %eax, -8(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $-1, -8(%rbp)
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %edi
callq _putchar
callq _getchar
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_3:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _optimse ## -- Begin function optimse
.p2align 4, 0x90
_optimse: ## @optimse
.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
LBB1_1: ## =>This Inner Loop Header: Depth=1
callq _getchar
## kill: def $al killed $al killed $eax
movb %al, -1(%rbp)
movsbl %al, %eax
cmpl $-1, %eax
je LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movsbl -1(%rbp), %edi
callq _putchar
jmp LBB1_1
LBB1_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/92325362.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]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldur w8, [x29, #-8]
subs w9, w8, #1
stur w9, [x29, #-8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov x9, sp
sub x8, x29, #12
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
mov w8, #1
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 w8, [sp, #12]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_9
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #12]
ands w8, w8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #16]
orr w8, w8, #0x1
str w8, [sp, #16]
b LBB0_7
LBB0_6: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #16]
lsl w8, w8, #1
str w8, [sp, #16]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=2
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_3
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr w9, [sp, #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
b LBB0_1
LBB0_10:
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 $32, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movl -8(%rbp), %eax
movl %eax, %ecx
addl $-1, %ecx
movl %ecx, -8(%rbp)
cmpl $0, %eax
je LBB0_10
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
movl $1, -16(%rbp)
movl $0, -20(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -20(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB0_9
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movl -20(%rbp), %eax
andl $1, %eax
cmpl $0, %eax
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -16(%rbp), %eax
orl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_7
LBB0_6: ## in Loop: Header=BB0_3 Depth=2
movl -16(%rbp), %eax
shll $1, %eax
movl %eax, -16(%rbp)
LBB0_7: ## in Loop: Header=BB0_3 Depth=2
jmp LBB0_8
LBB0_8: ## in Loop: Header=BB0_3 Depth=2
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_3
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_1
LBB0_10:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
L_.str.1: ## @.str.1
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/6196.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/59513581.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/98575639.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _di6 ; -- Begin function di6
.p2align 2
_di6: ; @di6
.cfi_startproc
; %bb.0:
sub sp, sp, #224
.cfi_def_cfa_offset 224
stp x29, x30, [sp, #208] ; 16-byte Folded Spill
add x29, sp, #208
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
mov x11, x8
adrp x8, _board@GOTPAGE
ldr x8, [x8, _board@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
add x9, sp, #50
str x9, [sp, #8] ; 8-byte Folded Spill
mov w10, #3
str w10, [sp, #16] ; 4-byte Folded Spill
strb w10, [sp, #50]
strb w10, [sp, #51]
mov w13, #2
str w13, [sp, #20] ; 4-byte Folded Spill
strb w13, [sp, #52]
strb w13, [sp, #53]
strb w10, [sp, #54]
strb w10, [sp, #55]
strb w13, [sp, #56]
strb w11, [sp, #57]
strb w10, [sp, #58]
strb w13, [sp, #59]
strb w13, [sp, #60]
strb w13, [sp, #61]
strb w13, [sp, #62]
strb w10, [sp, #63]
strb w10, [sp, #64]
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
str x8, [sp, #24] ; 8-byte Folded Spill
ldr x12, [x8]
stur x12, [x9, #15]
ldur x12, [x8, #7]
stur x12, [x9, #22]
strb w13, [sp, #80]
strb w13, [sp, #81]
strb w13, [sp, #82]
strb w13, [sp, #83]
strb w13, [sp, #84]
strb w13, [sp, #85]
strb w10, [sp, #86]
strb w11, [sp, #87]
strb w13, [sp, #88]
strb w13, [sp, #89]
strb w13, [sp, #90]
strb w13, [sp, #91]
strb w13, [sp, #92]
strb w13, [sp, #93]
mov w10, #4
strb w10, [sp, #94]
ldr x12, [x8]
stur x12, [x9, #45]
ldur x12, [x8, #7]
stur x12, [x9, #52]
strb w13, [sp, #110]
strb w13, [sp, #111]
mov w12, #1
str w12, [sp, #36] ; 4-byte Folded Spill
strb w12, [sp, #112]
strb w12, [sp, #113]
strb w13, [sp, #114]
strb w13, [sp, #115]
strb w10, [sp, #116]
strb w11, [sp, #117]
strb w13, [sp, #118]
strb w13, [sp, #119]
strb w12, [sp, #120]
strb w12, [sp, #121]
strb w13, [sp, #122]
strb w13, [sp, #123]
strb w10, [sp, #124]
ldr x14, [x8]
stur x14, [x9, #75]
ldur x14, [x8, #7]
stur x14, [x9, #82]
strb w13, [sp, #140]
strb w12, [sp, #141]
strb wzr, [sp, #142]
strb wzr, [sp, #143]
strb w12, [sp, #144]
strb w13, [sp, #145]
strb w10, [sp, #146]
strb w11, [sp, #147]
strb w12, [sp, #148]
strb w12, [sp, #149]
strb wzr, [sp, #150]
strb wzr, [sp, #151]
strb w12, [sp, #152]
strb w12, [sp, #153]
strb w10, [sp, #154]
ldr x12, [x8]
stur x12, [x9, #105]
ldur x12, [x8, #7]
stur x12, [sp, #162]
strb wzr, [sp, #170]
strb wzr, [sp, #171]
strb wzr, [sp, #172]
strb wzr, [sp, #173]
strb wzr, [sp, #174]
strb wzr, [sp, #175]
strb w10, [sp, #176]
strb w11, [sp, #177]
strb wzr, [sp, #178]
strb wzr, [sp, #179]
strb wzr, [sp, #180]
strb wzr, [sp, #181]
strb wzr, [sp, #182]
strb wzr, [sp, #183]
strb w10, [sp, #184]
ldr x10, [x8]
stur x10, [x9, #135]
ldur x8, [x8, #7]
stur x8, [x9, #142]
strb wzr, [sp, #49]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
; Child Loop BB0_5 Depth 3
; Child Loop BB0_7 Depth 4
; Child Loop BB0_9 Depth 5
; Child Loop BB0_11 Depth 6
; Child Loop BB0_13 Depth 7
ldrsb w8, [sp, #49]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB0_28
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp] ; 8-byte Folded Reload
ldrb w8, [sp, #49]
strb w8, [x9, #55]
strb wzr, [sp, #48]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_5 Depth 3
; Child Loop BB0_7 Depth 4
; Child Loop BB0_9 Depth 5
; Child Loop BB0_11 Depth 6
; Child Loop BB0_13 Depth 7
ldrsb w8, [sp, #48]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB0_26
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr x9, [sp] ; 8-byte Folded Reload
ldrb w8, [sp, #48]
strb w8, [x9, #47]
strb wzr, [sp, #47]
b LBB0_5
LBB0_5: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_3 Depth=2
; => This Loop Header: Depth=3
; Child Loop BB0_7 Depth 4
; Child Loop BB0_9 Depth 5
; Child Loop BB0_11 Depth 6
; Child Loop BB0_13 Depth 7
ldrsb w8, [sp, #47]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB0_24
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=3
ldr x9, [sp] ; 8-byte Folded Reload
ldrb w8, [sp, #47]
strb w8, [x9, #39]
strb wzr, [sp, #46]
b LBB0_7
LBB0_7: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_3 Depth=2
; Parent Loop BB0_5 Depth=3
; => This Loop Header: Depth=4
; Child Loop BB0_9 Depth 5
; Child Loop BB0_11 Depth 6
; Child Loop BB0_13 Depth 7
ldrsb w8, [sp, #46]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB0_22
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=4
ldr x9, [sp] ; 8-byte Folded Reload
ldrb w8, [sp, #46]
strb w8, [x9, #31]
strb wzr, [sp, #45]
b LBB0_9
LBB0_9: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_3 Depth=2
; Parent Loop BB0_5 Depth=3
; Parent Loop BB0_7 Depth=4
; => This Loop Header: Depth=5
; Child Loop BB0_11 Depth 6
; Child Loop BB0_13 Depth 7
ldrsb w8, [sp, #45]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB0_20
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=5
ldr x9, [sp] ; 8-byte Folded Reload
ldrb w8, [sp, #45]
strb w8, [x9, #23]
strb wzr, [sp, #44]
b LBB0_11
LBB0_11: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_3 Depth=2
; Parent Loop BB0_5 Depth=3
; Parent Loop BB0_7 Depth=4
; Parent Loop BB0_9 Depth=5
; => This Loop Header: Depth=6
; Child Loop BB0_13 Depth 7
ldrsb w8, [sp, #44]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB0_18
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=6
ldr x9, [sp] ; 8-byte Folded Reload
ldrb w8, [sp, #44]
strb w8, [x9, #15]
strb wzr, [sp, #43]
b LBB0_13
LBB0_13: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_3 Depth=2
; Parent Loop BB0_5 Depth=3
; Parent Loop BB0_7 Depth=4
; Parent Loop BB0_9 Depth=5
; Parent Loop BB0_11 Depth=6
; => This Inner Loop Header: Depth=7
ldrsb w8, [sp, #43]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_16
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=7
ldrsb x8, [sp, #43]
mov x10, #15
mul x11, x8, x10
add x8, sp, #50
mov x9, x8
add x2, x9, x11
ldrsb x9, [sp, #43]
mul x9, x9, x10
add x8, x8, x9
ldrsb w3, [x8, #6]
mov w0, #15
mov w1, #8
bl _line
sxtb w0, w0
adrp x8, _ef@GOTPAGE
ldr x8, [x8, _ef@GOTPAGEOFF]
ldr x1, [x8]
bl _fputc
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_13 Depth=7
ldrb w8, [sp, #43]
add w8, w8, #1
strb w8, [sp, #43]
b LBB0_13
LBB0_16: ; in Loop: Header=BB0_11 Depth=6
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_11 Depth=6
ldrb w8, [sp, #44]
add w8, w8, #1
strb w8, [sp, #44]
b LBB0_11
LBB0_18: ; in Loop: Header=BB0_9 Depth=5
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_9 Depth=5
ldrb w8, [sp, #45]
add w8, w8, #1
strb w8, [sp, #45]
b LBB0_9
LBB0_20: ; in Loop: Header=BB0_7 Depth=4
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_7 Depth=4
ldrb w8, [sp, #46]
add w8, w8, #1
strb w8, [sp, #46]
b LBB0_7
LBB0_22: ; in Loop: Header=BB0_5 Depth=3
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_5 Depth=3
ldrb w8, [sp, #47]
add w8, w8, #1
strb w8, [sp, #47]
b LBB0_5
LBB0_24: ; in Loop: Header=BB0_3 Depth=2
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_3 Depth=2
ldrb w8, [sp, #48]
add w8, w8, #1
strb w8, [sp, #48]
b LBB0_3
LBB0_26: ; in Loop: Header=BB0_1 Depth=1
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_1 Depth=1
ldrb w8, [sp, #49]
add w8, w8, #1
strb w8, [sp, #49]
b LBB0_1
LBB0_28:
ldr x8, [sp] ; 8-byte Folded Reload
strb wzr, [x8, #55]
strb wzr, [x8, #47]
strb wzr, [x8, #39]
strb wzr, [x8, #31]
strb wzr, [x8, #23]
strb wzr, [x8, #15]
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_30
b LBB0_29
LBB0_29:
bl ___stack_chk_fail
LBB0_30:
ldp x29, x30, [sp, #208] ; 16-byte Folded Reload
add sp, sp, #224
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
l_.str: ; @.str
.space 2
l_.str.1: ; @.str.1
.space 15
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _di6 ## -- Begin function di6
.p2align 4, 0x90
_di6: ## @di6
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $176, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movb $3, -160(%rbp)
movb $3, -159(%rbp)
movb $2, -158(%rbp)
movb $2, -157(%rbp)
movb $3, -156(%rbp)
movb $3, -155(%rbp)
movb $2, -154(%rbp)
leaq l_.str(%rip), %rax
## kill: def $al killed $al killed $rax
movb %al, -153(%rbp)
movb $3, -152(%rbp)
movb $2, -151(%rbp)
movb $2, -150(%rbp)
movb $2, -149(%rbp)
movb $2, -148(%rbp)
movb $3, -147(%rbp)
movb $3, -146(%rbp)
movq l_.str.1(%rip), %rax
movq %rax, -145(%rbp)
movl l_.str.1+8(%rip), %eax
movl %eax, -137(%rbp)
movw l_.str.1+12(%rip), %ax
movw %ax, -133(%rbp)
movb l_.str.1+14(%rip), %al
movb %al, -131(%rbp)
movb $2, -130(%rbp)
movb $2, -129(%rbp)
movb $2, -128(%rbp)
movb $2, -127(%rbp)
movb $2, -126(%rbp)
movb $2, -125(%rbp)
movb $3, -124(%rbp)
leaq l_.str(%rip), %rax
## kill: def $al killed $al killed $rax
movb %al, -123(%rbp)
movb $2, -122(%rbp)
movb $2, -121(%rbp)
movb $2, -120(%rbp)
movb $2, -119(%rbp)
movb $2, -118(%rbp)
movb $2, -117(%rbp)
movb $4, -116(%rbp)
movq l_.str.1(%rip), %rax
movq %rax, -115(%rbp)
movl l_.str.1+8(%rip), %eax
movl %eax, -107(%rbp)
movw l_.str.1+12(%rip), %ax
movw %ax, -103(%rbp)
movb l_.str.1+14(%rip), %al
movb %al, -101(%rbp)
movb $2, -100(%rbp)
movb $2, -99(%rbp)
movb $1, -98(%rbp)
movb $1, -97(%rbp)
movb $2, -96(%rbp)
movb $2, -95(%rbp)
movb $4, -94(%rbp)
leaq l_.str(%rip), %rax
## kill: def $al killed $al killed $rax
movb %al, -93(%rbp)
movb $2, -92(%rbp)
movb $2, -91(%rbp)
movb $1, -90(%rbp)
movb $1, -89(%rbp)
movb $2, -88(%rbp)
movb $2, -87(%rbp)
movb $4, -86(%rbp)
movq l_.str.1(%rip), %rax
movq %rax, -85(%rbp)
movl l_.str.1+8(%rip), %eax
movl %eax, -77(%rbp)
movw l_.str.1+12(%rip), %ax
movw %ax, -73(%rbp)
movb l_.str.1+14(%rip), %al
movb %al, -71(%rbp)
movb $2, -70(%rbp)
movb $1, -69(%rbp)
movb $0, -68(%rbp)
movb $0, -67(%rbp)
movb $1, -66(%rbp)
movb $2, -65(%rbp)
movb $4, -64(%rbp)
leaq l_.str(%rip), %rax
## kill: def $al killed $al killed $rax
movb %al, -63(%rbp)
movb $1, -62(%rbp)
movb $1, -61(%rbp)
movb $0, -60(%rbp)
movb $0, -59(%rbp)
movb $1, -58(%rbp)
movb $1, -57(%rbp)
movb $4, -56(%rbp)
movq l_.str.1(%rip), %rax
movq %rax, -55(%rbp)
movl l_.str.1+8(%rip), %eax
movl %eax, -47(%rbp)
movw l_.str.1+12(%rip), %ax
movw %ax, -43(%rbp)
movb l_.str.1+14(%rip), %al
movb %al, -41(%rbp)
movb $0, -40(%rbp)
movb $0, -39(%rbp)
movb $0, -38(%rbp)
movb $0, -37(%rbp)
movb $0, -36(%rbp)
movb $0, -35(%rbp)
movb $4, -34(%rbp)
leaq l_.str(%rip), %rax
## kill: def $al killed $al killed $rax
movb %al, -33(%rbp)
movb $0, -32(%rbp)
movb $0, -31(%rbp)
movb $0, -30(%rbp)
movb $0, -29(%rbp)
movb $0, -28(%rbp)
movb $0, -27(%rbp)
movb $4, -26(%rbp)
movq l_.str.1(%rip), %rax
movq %rax, -25(%rbp)
movl l_.str.1+8(%rip), %eax
movl %eax, -17(%rbp)
movw l_.str.1+12(%rip), %ax
movw %ax, -13(%rbp)
movb l_.str.1+14(%rip), %al
movb %al, -11(%rbp)
movb $0, -161(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
## Child Loop BB0_5 Depth 3
## Child Loop BB0_7 Depth 4
## Child Loop BB0_9 Depth 5
## Child Loop BB0_11 Depth 6
## Child Loop BB0_13 Depth 7
movsbl -161(%rbp), %eax
cmpl $3, %eax
jge LBB0_28
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movb -161(%rbp), %cl
movq _board@GOTPCREL(%rip), %rax
movb %cl, 55(%rax)
movb $0, -162(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_5 Depth 3
## Child Loop BB0_7 Depth 4
## Child Loop BB0_9 Depth 5
## Child Loop BB0_11 Depth 6
## Child Loop BB0_13 Depth 7
movsbl -162(%rbp), %eax
cmpl $3, %eax
jge LBB0_26
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movb -162(%rbp), %cl
movq _board@GOTPCREL(%rip), %rax
movb %cl, 47(%rax)
movb $0, -163(%rbp)
LBB0_5: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_3 Depth=2
## => This Loop Header: Depth=3
## Child Loop BB0_7 Depth 4
## Child Loop BB0_9 Depth 5
## Child Loop BB0_11 Depth 6
## Child Loop BB0_13 Depth 7
movsbl -163(%rbp), %eax
cmpl $3, %eax
jge LBB0_24
## %bb.6: ## in Loop: Header=BB0_5 Depth=3
movb -163(%rbp), %cl
movq _board@GOTPCREL(%rip), %rax
movb %cl, 39(%rax)
movb $0, -164(%rbp)
LBB0_7: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_3 Depth=2
## Parent Loop BB0_5 Depth=3
## => This Loop Header: Depth=4
## Child Loop BB0_9 Depth 5
## Child Loop BB0_11 Depth 6
## Child Loop BB0_13 Depth 7
movsbl -164(%rbp), %eax
cmpl $3, %eax
jge LBB0_22
## %bb.8: ## in Loop: Header=BB0_7 Depth=4
movb -164(%rbp), %cl
movq _board@GOTPCREL(%rip), %rax
movb %cl, 31(%rax)
movb $0, -165(%rbp)
LBB0_9: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_3 Depth=2
## Parent Loop BB0_5 Depth=3
## Parent Loop BB0_7 Depth=4
## => This Loop Header: Depth=5
## Child Loop BB0_11 Depth 6
## Child Loop BB0_13 Depth 7
movsbl -165(%rbp), %eax
cmpl $3, %eax
jge LBB0_20
## %bb.10: ## in Loop: Header=BB0_9 Depth=5
movb -165(%rbp), %cl
movq _board@GOTPCREL(%rip), %rax
movb %cl, 23(%rax)
movb $0, -166(%rbp)
LBB0_11: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_3 Depth=2
## Parent Loop BB0_5 Depth=3
## Parent Loop BB0_7 Depth=4
## Parent Loop BB0_9 Depth=5
## => This Loop Header: Depth=6
## Child Loop BB0_13 Depth 7
movsbl -166(%rbp), %eax
cmpl $3, %eax
jge LBB0_18
## %bb.12: ## in Loop: Header=BB0_11 Depth=6
movb -166(%rbp), %cl
movq _board@GOTPCREL(%rip), %rax
movb %cl, 15(%rax)
movb $0, -167(%rbp)
LBB0_13: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_3 Depth=2
## Parent Loop BB0_5 Depth=3
## Parent Loop BB0_7 Depth=4
## Parent Loop BB0_9 Depth=5
## Parent Loop BB0_11 Depth=6
## => This Inner Loop Header: Depth=7
movsbl -167(%rbp), %eax
cmpl $10, %eax
jge LBB0_16
## %bb.14: ## in Loop: Header=BB0_13 Depth=7
movsbq -167(%rbp), %rax
leaq -160(%rbp), %rdx
imulq $15, %rax, %rax
addq %rax, %rdx
movsbq -167(%rbp), %rcx
leaq -160(%rbp), %rax
imulq $15, %rcx, %rcx
addq %rcx, %rax
movl $15, %edi
movl $8, %esi
movsbl 6(%rax), %ecx
callq _line
movsbl %al, %edi
movq _ef@GOTPCREL(%rip), %rax
movq (%rax), %rsi
callq _fputc
## %bb.15: ## in Loop: Header=BB0_13 Depth=7
movb -167(%rbp), %al
addb $1, %al
movb %al, -167(%rbp)
jmp LBB0_13
LBB0_16: ## in Loop: Header=BB0_11 Depth=6
jmp LBB0_17
LBB0_17: ## in Loop: Header=BB0_11 Depth=6
movb -166(%rbp), %al
addb $1, %al
movb %al, -166(%rbp)
jmp LBB0_11
LBB0_18: ## in Loop: Header=BB0_9 Depth=5
jmp LBB0_19
LBB0_19: ## in Loop: Header=BB0_9 Depth=5
movb -165(%rbp), %al
addb $1, %al
movb %al, -165(%rbp)
jmp LBB0_9
LBB0_20: ## in Loop: Header=BB0_7 Depth=4
jmp LBB0_21
LBB0_21: ## in Loop: Header=BB0_7 Depth=4
movb -164(%rbp), %al
addb $1, %al
movb %al, -164(%rbp)
jmp LBB0_7
LBB0_22: ## in Loop: Header=BB0_5 Depth=3
jmp LBB0_23
LBB0_23: ## in Loop: Header=BB0_5 Depth=3
movb -163(%rbp), %al
addb $1, %al
movb %al, -163(%rbp)
jmp LBB0_5
LBB0_24: ## in Loop: Header=BB0_3 Depth=2
jmp LBB0_25
LBB0_25: ## in Loop: Header=BB0_3 Depth=2
movb -162(%rbp), %al
addb $1, %al
movb %al, -162(%rbp)
jmp LBB0_3
LBB0_26: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_27
LBB0_27: ## in Loop: Header=BB0_1 Depth=1
movb -161(%rbp), %al
addb $1, %al
movb %al, -161(%rbp)
jmp LBB0_1
LBB0_28:
movq _board@GOTPCREL(%rip), %rax
movb $0, 55(%rax)
movq _board@GOTPCREL(%rip), %rax
movb $0, 47(%rax)
movq _board@GOTPCREL(%rip), %rax
movb $0, 39(%rax)
movq _board@GOTPCREL(%rip), %rax
movb $0, 31(%rax)
movq _board@GOTPCREL(%rip), %rax
movb $0, 23(%rax)
movq _board@GOTPCREL(%rip), %rax
movb $0, 15(%rax)
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_30
## %bb.29:
addq $176, %rsp
popq %rbp
retq
LBB0_30:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__const
l_.str: ## @.str
.space 2
l_.str.1: ## @.str.1
.space 15
.subsections_via_symbols
| the_stack_data/154831508.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _spawn_childs ; -- Begin function spawn_childs
.p2align 2
_spawn_childs: ; @spawn_childs
.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 wzr, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp]
ldr w9, [sp, #8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_9
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
bl _fork
str w0, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
mov w8, #-1
stur w8, [x29, #-4]
b LBB0_10
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr w8, [sp]
add w8, w8, #1
stur w8, [x29, #-4]
b LBB0_10
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]
add w8, w8, #1
str w8, [sp]
b LBB0_1
LBB0_9:
stur wzr, [x29, #-4]
b LBB0_10
LBB0_10:
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, #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 w0, #6
bl _spawn_childs
stur w0, [x29, #-8]
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldur w8, [x29, #-8]
lsl w0, w8, #1
bl _exit
LBB1_2:
str wzr, [sp, #16]
b LBB1_3
LBB1_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
subs w8, w8, #6
cset w8, ge
tbnz w8, #0, LBB1_8
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=1
sub x0, x29, #12
bl _wait
ldur w8, [x29, #-12]
ands w8, w8, #0x7f
cset w8, ne
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=1
ldur w8, [x29, #-12]
asr w8, w8, #8
and w10, w8, #0xff
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_6
LBB1_6: ; in Loop: Header=BB1_3 Depth=1
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_3 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB1_3
LBB1_8:
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\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _spawn_childs ## -- Begin function spawn_childs
.p2align 4, 0x90
_spawn_childs: ## @spawn_childs
.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 $0, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_9
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
callq _fork
movl %eax, -12(%rbp)
cmpl $0, -12(%rbp)
jge LBB0_4
## %bb.3:
movl $-1, -4(%rbp)
jmp LBB0_10
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -12(%rbp)
jne LBB0_6
## %bb.5:
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB0_10
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 -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_1
LBB0_9:
movl $0, -4(%rbp)
LBB0_10:
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 $16, %rsp
movl $0, -4(%rbp)
movl $6, %edi
callq _spawn_childs
movl %eax, -8(%rbp)
cmpl $0, -8(%rbp)
jle LBB1_2
## %bb.1:
movl -8(%rbp), %edi
addl %edi, %edi
callq _exit
LBB1_2:
movl $0, -16(%rbp)
LBB1_3: ## =>This Inner Loop Header: Depth=1
cmpl $6, -16(%rbp)
jge LBB1_8
## %bb.4: ## in Loop: Header=BB1_3 Depth=1
leaq -12(%rbp), %rdi
callq _wait
movl -12(%rbp), %eax
andl $127, %eax
cmpl $0, %eax
jne LBB1_6
## %bb.5: ## in Loop: Header=BB1_3 Depth=1
movl -12(%rbp), %esi
sarl $8, %esi
andl $255, %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
LBB1_6: ## in Loop: Header=BB1_3 Depth=1
jmp LBB1_7
LBB1_7: ## in Loop: Header=BB1_3 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_3
LBB1_8:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/206393191.c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.