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
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
| the_stack_data/57928.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _wcsnlen ; -- Begin function wcsnlen
.p2align 2
_wcsnlen: ; @wcsnlen
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
ldr x8, [sp, #24]
str x8, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
subs x9, x8, #1
str x9, [sp, #16]
subs x8, x8, #0
cset w8, hi
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
tbz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #4
str x8, [sp, #8]
b LBB0_1
LBB0_5:
ldr x8, [sp, #8]
ldr x9, [sp, #24]
subs x8, x8, x9
mov x9, #4
sdiv x0, x8, 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 _wcsnlen ## -- Begin function wcsnlen
.p2align 4, 0x90
_wcsnlen: ## @wcsnlen
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rax
movq %rax, -24(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, (%rcx)
movb %al, -25(%rbp) ## 1-byte Spill
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq %rax, %rcx
addq $-1, %rcx
movq %rcx, -16(%rbp)
cmpq $0, %rax
seta %al
movb %al, -25(%rbp) ## 1-byte Spill
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movb -25(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_4
jmp LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
addq $4, %rax
movq %rax, -24(%rbp)
jmp LBB0_1
LBB0_5:
movq -24(%rbp), %rax
movq -8(%rbp), %rcx
subq %rcx, %rax
sarq $2, %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/115766638.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/621682.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]
sub x8, x29, #12
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldur w8, [x29, #-8]
ldur w10, [x29, #-12]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur w8, [x29, #-12]
ldur w10, [x29, #-8]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_4
LBB0_3:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_4
LBB0_4:
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 %d"
l_.str.1: ; @.str.1
.asciz "Sao Multiplos\n"
l_.str.2: ; @.str.2
.asciz "Nao sao Multiplos\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
leaq -12(%rbp), %rdx
movb $0, %al
callq _scanf
movl -8(%rbp), %eax
cltd
idivl -12(%rbp)
cmpl $0, %edx
je LBB0_2
## %bb.1:
movl -12(%rbp), %eax
cltd
idivl -8(%rbp)
cmpl $0, %edx
jne LBB0_3
LBB0_2:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_4
LBB0_3:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
LBB0_4:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d %d"
L_.str.1: ## @.str.1
.asciz "Sao Multiplos\n"
L_.str.2: ## @.str.2
.asciz "Nao sao Multiplos\n"
.subsections_via_symbols
| the_stack_data/20450395.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 wzr, [sp, #8]
mov w8, #1
str w8, [sp, #4]
str w8, [sp]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
str wzr, [sp, #8]
b LBB0_3
LBB0_2:
mov w8, #10
str w8, [sp, #8]
b LBB0_3
LBB0_3:
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #4]
ldr w9, [sp, #4]
mov w8, #5
mul w8, w8, w9
str w8, [sp]
ldr w0, [sp]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _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 $0, -8(%rbp)
movl $1, -12(%rbp)
movl $1, -16(%rbp)
cmpl $0, -4(%rbp)
je LBB0_2
## %bb.1:
movl $0, -8(%rbp)
jmp LBB0_3
LBB0_2:
movl $10, -8(%rbp)
LBB0_3:
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
imull $5, -12(%rbp), %eax
movl %eax, -16(%rbp)
movl -16(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/36075023.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _entry ; -- Begin function entry
.p2align 2
_entry: ; @entry
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #16
mov w8, #1
str w8, [sp, #16]
mov w8, #64
str w8, [sp, #20]
mov w8, #32
str w8, [sp, #24]
bl _foo
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:
add x0, sp, #16
mov w8, #2
str w8, [sp, #24]
bl _foo
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function foo
_foo: ; @foo
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr w8, [x8, #8]
str w8, [sp, #16]
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
str w8, [sp, #12]
ldur x8, [x29, #-8]
str x8, [sp]
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_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #12]
ldur w9, [x29, #-12]
add w0, w8, w9
ldr x1, [sp]
bl _blah
str x0, [sp]
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
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _entry ## -- Begin function entry
.p2align 4, 0x90
_entry: ## @entry
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
movl $0, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $1, -16(%rbp)
movl $64, -12(%rbp)
movl $32, -8(%rbp)
leaq -16(%rbp), %rdi
callq _foo
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_1
LBB0_4:
movl $2, -8(%rbp)
leaq -16(%rbp), %rdi
callq _foo
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function foo
_foo: ## @foo
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movl 8(%rax), %eax
movl %eax, -16(%rbp)
movq -8(%rbp), %rax
movl 4(%rax), %eax
movl %eax, -20(%rbp)
movq -8(%rbp), %rax
movq %rax, -32(%rbp)
movl $0, -12(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -20(%rbp), %edi
addl -12(%rbp), %edi
movq -32(%rbp), %rsi
callq _blah
movq %rax, -32(%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:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/57951228.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
lCPI0_0:
.quad 0x4058c00000000000 ; double 99
lCPI0_1:
.quad 0x400921fb54442d18 ; double 3.1415926535897931
.section __TEXT,__text,regular,pure_instructions
.globl _init
.p2align 2
_init: ; @init
.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]
mov w8, #1
stur w8, [x29, #-20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
subs w8, w8, #99
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur s1, [x29, #-20]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d1, d0
adrp x8, lCPI0_1@PAGE
ldr d0, [x8, lCPI0_1@PAGEOFF]
str d0, [sp, #16] ; 8-byte Folded Spill
fmul d0, d0, d1
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
str d1, [sp, #8] ; 8-byte Folded Spill
fdiv d0, d0, d1
bl _sin
ldr d1, [sp, #8] ; 8-byte Folded Reload
fmov d2, d0
ldr d0, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldursw x9, [x29, #-20]
str d2, [x8, x9, lsl #3]
ldur s3, [x29, #-20]
; implicit-def: $d2
fmov s2, s3
sshll.2d v2, v2, #0
; kill: def $d2 killed $d2 killed $q2
scvtf d2, d2
fmul d0, d0, d2
fdiv d0, d0, d1
bl _sin
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
str d0, [x8, x9, lsl #3]
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, #-8]
movi d0, #0000000000000000
str d0, [x8]
ldur x8, [x29, #-8]
str d0, [x8, #792]
ldur x8, [x29, #-16]
str d0, [x8]
ldur x8, [x29, #-16]
str d0, [x8, #792]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function update
lCPI1_0:
.quad 0x3f947ae147ae147b ; double 0.02
lCPI1_1:
.quad 0x3f847ae147ae147b ; double 0.01
.section __TEXT,__text,regular,pure_instructions
.globl _update
.p2align 2
_update: ; @update
.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, #896
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #72]
str x1, [sp, #64]
str x2, [sp, #56]
mov w8, #1
str w8, [sp, #52]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #52]
subs w8, w8, #99
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #72]
ldr w9, [sp, #52]
add w9, w9, #1
ldr d0, [x8, w9, sxtw #3]
ldr x8, [sp, #72]
ldr w9, [sp, #52]
subs w9, w9, #1
ldr d1, [x8, w9, sxtw #3]
fadd d2, d0, d1
ldr x8, [sp, #72]
ldrsw x9, [sp, #52]
ldr d1, [x8, x9, lsl #3]
fmov d0, #-2.00000000
fmadd d0, d0, d1, d2
str d0, [sp, #24] ; 8-byte Folded Spill
ldr x8, [sp, #72]
ldr w9, [sp, #52]
add w9, w9, #1
ldr d0, [x8, w9, sxtw #3]
ldr x8, [sp, #72]
ldrsw x9, [sp, #52]
ldr d1, [x8, x9, lsl #3]
fsub d0, d0, d1
fmov d1, #2.00000000
str d1, [sp, #32] ; 8-byte Folded Spill
bl _pow
ldr d1, [sp, #32] ; 8-byte Folded Reload
str d0, [sp, #16] ; 8-byte Folded Spill
ldr x8, [sp, #72]
ldrsw x9, [sp, #52]
ldr d0, [x8, x9, lsl #3]
ldr x8, [sp, #72]
ldr w9, [sp, #52]
subs w9, w9, #1
ldr d2, [x8, w9, sxtw #3]
fsub d0, d0, d2
bl _pow
ldr d1, [sp, #16] ; 8-byte Folded Reload
ldr d3, [sp, #24] ; 8-byte Folded Reload
fmov d2, d0
ldr d0, [sp, #32] ; 8-byte Folded Reload
fsub d2, d1, d2
fmov d1, #0.25000000
fmadd d1, d1, d2, d3
str d1, [sp, #40]
ldr x8, [sp, #72]
ldrsw x9, [sp, #52]
ldr d1, [x8, x9, lsl #3]
ldr x8, [sp, #64]
ldrsw x9, [sp, #52]
ldr d2, [x8, x9, lsl #3]
fnmsub d2, d0, d1, d2
ldr d0, [sp, #40]
adrp x8, lCPI1_1@PAGE
ldr d1, [x8, lCPI1_1@PAGEOFF]
fmul d0, d0, d1
fmadd d0, d0, d1, d2
ldrsw x9, [sp, #52]
add x8, sp, #88
str d0, [x8, x9, lsl #3]
ldrsw x9, [sp, #52]
ldr d0, [x8, x9, lsl #3]
ldr x8, [sp, #64]
ldrsw x9, [sp, #52]
ldr d1, [x8, x9, lsl #3]
fsub d0, d0, d1
adrp x8, lCPI1_0@PAGE
ldr d1, [x8, lCPI1_0@PAGEOFF]
fdiv d0, d0, d1
ldr x8, [sp, #56]
ldrsw x9, [sp, #52]
str d0, [x8, x9, lsl #3]
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #52]
add w8, w8, #1
str w8, [sp, #52]
b LBB1_1
LBB1_4:
mov w8, #1
str w8, [sp, #52]
b LBB1_5
LBB1_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #52]
subs w8, w8, #99
cset w8, ge
tbnz w8, #0, LBB1_8
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_5 Depth=1
ldr x8, [sp, #72]
ldrsw x9, [sp, #52]
ldr d0, [x8, x9, lsl #3]
ldr x8, [sp, #64]
ldrsw x9, [sp, #52]
str d0, [x8, x9, lsl #3]
ldrsw x9, [sp, #52]
add x8, sp, #88
ldr d0, [x8, x9, lsl #3]
ldr x8, [sp, #72]
ldrsw x9, [sp, #52]
str d0, [x8, x9, lsl #3]
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_5 Depth=1
ldr w8, [sp, #52]
add w8, w8, #1
str w8, [sp, #52]
b LBB1_5
LBB1_8:
ldr d0, [sp, #80]
str d0, [sp, #8] ; 8-byte Folded Spill
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
bl ___stack_chk_fail
LBB1_10:
ldr d0, [sp, #8] ; 8-byte Folded Reload
add sp, sp, #896
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function anima
lCPI2_0:
.quad 0x3fc999999999999a ; double 0.20000000000000001
lCPI2_1:
.quad 0x4059000000000000 ; double 100
.section __TEXT,__text,regular,pure_instructions
.globl _anima
.p2align 2
_anima: ; @anima
.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 LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #100
cset w8, ge
tbnz w8, #0, LBB2_4
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldur s1, [x29, #-12]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
adrp x8, lCPI2_1@PAGE
ldr d1, [x8, lCPI2_1@PAGEOFF]
fdiv d1, d0, d1
ldur x8, [x29, #-8]
ldursw x9, [x29, #-12]
ldr d2, [x8, x9, lsl #3]
fmov d3, #0.50000000
adrp x8, lCPI2_0@PAGE
ldr d0, [x8, lCPI2_0@PAGEOFF]
fmadd d0, d0, d2, d3
mov x8, sp
str d1, [x8]
str d0, [x8, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB2_1
LBB2_4:
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 enerModo
lCPI3_0:
.quad 0x4058c00000000000 ; double 99
lCPI3_1:
.quad 0x400921fb54442d18 ; double 3.1415926535897931
.section __TEXT,__text,regular,pure_instructions
.globl _enerModo
.p2align 2
_enerModo: ; @enerModo
.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 d0, [sp, #128]
str x0, [sp, #120]
str x1, [sp, #112]
mov w8, #1
str w8, [sp, #104]
b LBB3_1
LBB3_1: ; =>This Loop Header: Depth=1
; Child Loop BB3_3 Depth 2
ldr w8, [sp, #104]
subs w8, w8, #6
cset w8, ge
tbnz w8, #0, LBB3_8
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldrsw x9, [sp, #104]
sub x8, x29, #72
movi d0, #0000000000000000
str d0, [x8, x9, lsl #3]
ldrsw x9, [sp, #104]
sub x8, x29, #120
str d0, [x8, x9, lsl #3]
str wzr, [sp, #108]
b LBB3_3
LBB3_3: ; Parent Loop BB3_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #108]
subs w8, w8, #100
cset w8, ge
tbnz w8, #0, LBB3_6
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_3 Depth=2
ldr x8, [sp, #120]
ldrsw x9, [sp, #108]
ldr d0, [x8, x9, lsl #3]
str d0, [sp, #72] ; 8-byte Folded Spill
ldr s1, [sp, #104]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d1, d0
adrp x8, lCPI3_1@PAGE
ldr d0, [x8, lCPI3_1@PAGEOFF]
str d0, [sp, #88] ; 8-byte Folded Spill
fmul d0, d0, d1
ldr s2, [sp, #108]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
fmul d0, d0, d1
adrp x8, lCPI3_0@PAGE
ldr d1, [x8, lCPI3_0@PAGEOFF]
str d1, [sp, #80] ; 8-byte Folded Spill
fdiv d0, d0, d1
bl _sin
ldr d2, [sp, #72] ; 8-byte Folded Reload
ldr d1, [sp, #80] ; 8-byte Folded Reload
fmov d3, d0
ldr d0, [sp, #88] ; 8-byte Folded Reload
ldrsw x9, [sp, #104]
sub x8, x29, #72
add x8, x8, x9, lsl #3
ldr d4, [x8]
fmadd d2, d2, d3, d4
str d2, [x8]
ldr x8, [sp, #112]
ldrsw x9, [sp, #108]
ldr d2, [x8, x9, lsl #3]
str d2, [sp, #96] ; 8-byte Folded Spill
ldr s3, [sp, #104]
; implicit-def: $d2
fmov s2, s3
sshll.2d v2, v2, #0
; kill: def $d2 killed $d2 killed $q2
scvtf d2, d2
fmul d0, d0, d2
ldr s3, [sp, #108]
; implicit-def: $d2
fmov s2, s3
sshll.2d v2, v2, #0
; kill: def $d2 killed $d2 killed $q2
scvtf d2, d2
fmul d0, d0, d2
fdiv d0, d0, d1
bl _sin
fmov d1, d0
ldr d0, [sp, #96] ; 8-byte Folded Reload
ldrsw x9, [sp, #104]
sub x8, x29, #120
add x8, x8, x9, lsl #3
ldr d2, [x8]
fmadd d0, d0, d1, d2
str d0, [x8]
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_3 Depth=2
ldr w8, [sp, #108]
add w8, w8, #1
str w8, [sp, #108]
b LBB3_3
LBB3_6: ; in Loop: Header=BB3_1 Depth=1
ldr w9, [sp, #104]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #48] ; 8-byte Folded Spill
ldr d0, [sp, #128]
str d0, [sp, #56] ; 8-byte Folded Spill
ldrsw x9, [sp, #104]
sub x8, x29, #120
ldr d1, [x8, x9, lsl #3]
fmov d0, #0.50000000
fmul d0, d0, d1
str d0, [sp, #64] ; 8-byte Folded Spill
ldrsw x9, [sp, #104]
ldr d0, [x8, x9, lsl #3]
str d0, [sp, #40] ; 8-byte Folded Spill
ldr s1, [sp, #104]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d1, d0
adrp x8, lCPI3_1@PAGE
ldr d0, [x8, lCPI3_1@PAGEOFF]
fmul d0, d0, d1
adrp x8, lCPI3_0@PAGE
ldr d1, [x8, lCPI3_0@PAGEOFF]
fdiv d0, d0, d1
fmov d1, #2.00000000
str d1, [sp, #32] ; 8-byte Folded Spill
fdiv d0, d0, d1
bl _sin
ldr d1, [sp, #32] ; 8-byte Folded Reload
bl _pow
ldr d3, [sp, #32] ; 8-byte Folded Reload
ldr d2, [sp, #40] ; 8-byte Folded Reload
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr d1, [sp, #56] ; 8-byte Folded Reload
fmov d4, d0
ldr d0, [sp, #64] ; 8-byte Folded Reload
fmul d3, d3, d4
ldrsw x10, [sp, #104]
sub x8, x29, #72
ldr d4, [x8, x10, lsl #3]
fmul d3, d3, d4
ldrsw x10, [sp, #104]
ldr d4, [x8, x10, lsl #3]
fmul d3, d3, d4
fmadd d0, d0, d2, d3
mov x8, sp
str x9, [x8]
str d1, [x8, #8]
str d0, [x8, #16]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #104]
add w8, w8, #1
str w8, [sp, #104]
b LBB3_1
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:
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
.globl _max ; -- Begin function max
.p2align 2
_max: ; @max
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
movi d0, #0000000000000000
str d0, [sp, #16]
str wzr, [sp, #12]
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #100
cset w8, ge
tbnz w8, #0, LBB4_7
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp, #12]
ldr d0, [x8, x9, lsl #3]
fabs d0, d0
ldr d1, [sp, #16]
fcmp d0, d1
cset w8, le
tbnz w8, #0, LBB4_4
b LBB4_3
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp, #12]
ldr d0, [x8, x9, lsl #3]
fabs d0, d0
str d0, [sp] ; 8-byte Folded Spill
b LBB4_5
LBB4_4: ; in Loop: Header=BB4_1 Depth=1
ldr d0, [sp, #16]
str d0, [sp] ; 8-byte Folded Spill
b LBB4_5
LBB4_5: ; in Loop: Header=BB4_1 Depth=1
ldr d0, [sp] ; 8-byte Folded Reload
str d0, [sp, #16]
b LBB4_6
LBB4_6: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB4_1
LBB4_7:
ldr d0, [sp, #16]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub sp, sp, #3264
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #52]
str w0, [sp, #48]
str x1, [sp, #40]
movi d0, #0000000000000000
str d0, [sp, #56]
add x0, sp, #2456
add x1, sp, #1656
bl _init
str wzr, [sp, #32]
b LBB5_1
LBB5_1: ; =>This Loop Header: Depth=1
; Child Loop BB5_5 Depth 2
; Child Loop BB5_9 Depth 2
ldr w8, [sp, #32]
mov w9, #20352
movk w9, #18, lsl #16
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_15
b LBB5_2
LBB5_2: ; in Loop: Header=BB5_1 Depth=1
add x0, sp, #2456
add x1, sp, #1656
add x2, sp, #856
bl _update
ldr w8, [sp, #32]
mov w10, #50
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB5_13
b LBB5_3
LBB5_3: ; in Loop: Header=BB5_1 Depth=1
ldr w8, [sp, #32]
mov w9, #51424
movk w9, #16, lsl #16
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB5_13
b LBB5_4
LBB5_4: ; in Loop: Header=BB5_1 Depth=1
mov w8, #1
str w8, [sp, #36]
b LBB5_5
LBB5_5: ; Parent Loop BB5_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #36]
subs w8, w8, #100
cset w8, ge
tbnz w8, #0, LBB5_8
b LBB5_6
LBB5_6: ; in Loop: Header=BB5_5 Depth=2
ldrsw x9, [sp, #36]
add x8, sp, #2456
ldr d0, [x8, x9, lsl #3]
ldr w9, [sp, #36]
subs w9, w9, #1
ldr d1, [x8, w9, sxtw #3]
fsub d0, d0, d1
ldrsw x9, [sp, #36]
add x8, sp, #56
str d0, [x8, x9, lsl #3]
b LBB5_7
LBB5_7: ; in Loop: Header=BB5_5 Depth=2
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB5_5
LBB5_8: ; in Loop: Header=BB5_1 Depth=1
add x0, sp, #56
ldr d0, [sp, #64]
str d0, [sp, #56]
bl _max
str d0, [sp, #16]
str wzr, [sp, #36]
b LBB5_9
LBB5_9: ; Parent Loop BB5_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #36]
subs w8, w8, #100
cset w8, ge
tbnz w8, #0, LBB5_12
b LBB5_10
LBB5_10: ; in Loop: Header=BB5_9 Depth=2
ldr w8, [sp, #36]
; implicit-def: $x9
mov x9, x8
ldrsw x10, [sp, #36]
add x8, sp, #56
ldr d0, [x8, x10, lsl #3]
ldr d1, [sp, #16]
fdiv d0, d0, d1
mov x8, sp
str x9, [x8]
str d0, [x8, #8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB5_11
LBB5_11: ; in Loop: Header=BB5_9 Depth=2
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB5_9
LBB5_12: ; in Loop: Header=BB5_1 Depth=1
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB5_13
LBB5_13: ; in Loop: Header=BB5_1 Depth=1
b LBB5_14
LBB5_14: ; in Loop: Header=BB5_1 Depth=1
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB5_1
LBB5_15:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB5_17
b LBB5_16
LBB5_16:
bl ___stack_chk_fail
LBB5_17:
mov w0, #0
add sp, sp, #3264
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%lf %lf 5\n"
l_.str.1: ; @.str.1
.asciz "%d %lf %lf\n"
l_.str.2: ; @.str.2
.asciz "%d\t%lf\n"
l_.str.3: ; @.str.3
.asciz "\n\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function init
LCPI0_0:
.quad 0x4058c00000000000 ## double 99
LCPI0_1:
.quad 0x400921fb54442d18 ## double 3.1415926535897931
.section __TEXT,__text,regular,pure_instructions
.globl _init
.p2align 4, 0x90
_init: ## @init
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $1, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $99, -20(%rbp)
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
cvtsi2sdl -20(%rbp), %xmm1
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm1, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
callq _sin
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
cvtsi2sdl -20(%rbp), %xmm1
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm1, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
callq _sin
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
## %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
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -8(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 792(%rax)
movq -16(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -16(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 792(%rax)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function update
LCPI1_0:
.quad 0x3f947ae147ae147b ## double 0.02
LCPI1_1:
.quad 0x3f847ae147ae147b ## double 0.01
LCPI1_2:
.quad 0x3fd0000000000000 ## double 0.25
LCPI1_3:
.quad 0x4000000000000000 ## double 2
.section __TEXT,__text,regular,pure_instructions
.globl _update
.p2align 4, 0x90
_update: ## @update
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $896, %rsp ## imm = 0x380
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -832(%rbp)
movq %rsi, -840(%rbp)
movq %rdx, -848(%rbp)
movl $1, -852(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $99, -852(%rbp)
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -832(%rbp), %rax
movl -852(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -832(%rbp), %rax
movl -852(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
addsd (%rax,%rcx,8), %xmm0
movq -832(%rbp), %rax
movslq -852(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero
addsd %xmm1, %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, -880(%rbp) ## 8-byte Spill
movq -832(%rbp), %rax
movl -852(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -832(%rbp), %rax
movslq -852(%rbp), %rcx
subsd (%rax,%rcx,8), %xmm0
movsd LCPI1_3(%rip), %xmm1 ## xmm1 = mem[0],zero
callq _pow
movsd %xmm0, -872(%rbp) ## 8-byte Spill
movq -832(%rbp), %rax
movslq -852(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -832(%rbp), %rax
movl -852(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
subsd (%rax,%rcx,8), %xmm0
movsd LCPI1_3(%rip), %xmm1 ## xmm1 = mem[0],zero
callq _pow
movsd -880(%rbp), %xmm1 ## 8-byte Reload
## xmm1 = mem[0],zero
movaps %xmm0, %xmm2
movsd -872(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
subsd %xmm2, %xmm0
movsd LCPI1_2(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -864(%rbp)
movq -832(%rbp), %rax
movslq -852(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero
movq -840(%rbp), %rax
movslq -852(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq %xmm0, %rax
movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
addsd %xmm1, %xmm1
addsd %xmm0, %xmm1
movsd LCPI1_1(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd -864(%rbp), %xmm0
movsd LCPI1_1(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movslq -852(%rbp), %rax
movsd %xmm0, -816(%rbp,%rax,8)
movslq -852(%rbp), %rax
movsd -816(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero
movq -840(%rbp), %rax
movslq -852(%rbp), %rcx
subsd (%rax,%rcx,8), %xmm0
movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movq -848(%rbp), %rax
movslq -852(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -852(%rbp), %eax
addl $1, %eax
movl %eax, -852(%rbp)
jmp LBB1_1
LBB1_4:
movl $1, -852(%rbp)
LBB1_5: ## =>This Inner Loop Header: Depth=1
cmpl $99, -852(%rbp)
jge LBB1_8
## %bb.6: ## in Loop: Header=BB1_5 Depth=1
movq -832(%rbp), %rax
movslq -852(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -840(%rbp), %rax
movslq -852(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movslq -852(%rbp), %rax
movsd -816(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero
movq -832(%rbp), %rax
movslq -852(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
## %bb.7: ## in Loop: Header=BB1_5 Depth=1
movl -852(%rbp), %eax
addl $1, %eax
movl %eax, -852(%rbp)
jmp LBB1_5
LBB1_8:
movsd -824(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -888(%rbp) ## 8-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_10
## %bb.9:
movsd -888(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
addq $896, %rsp ## imm = 0x380
popq %rbp
retq
LBB1_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function anima
LCPI2_0:
.quad 0x3fc999999999999a ## double 0.20000000000000001
LCPI2_1:
.quad 0x3fe0000000000000 ## double 0.5
LCPI2_2:
.quad 0x4059000000000000 ## double 100
.section __TEXT,__text,regular,pure_instructions
.globl _anima
.p2align 4, 0x90
_anima: ## @anima
.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)
LBB2_1: ## =>This Inner Loop Header: Depth=1
cmpl $100, -12(%rbp)
jge LBB2_4
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
cvtsi2sdl -12(%rbp), %xmm0
movsd LCPI2_2(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero
movsd LCPI2_0(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm1
movsd LCPI2_1(%rip), %xmm2 ## xmm2 = mem[0],zero
addsd %xmm2, %xmm1
leaq L_.str(%rip), %rdi
movb $2, %al
callq _printf
## %bb.3: ## in Loop: Header=BB2_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB2_1
LBB2_4:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function enerModo
LCPI3_0:
.quad 0x4000000000000000 ## double 2
LCPI3_1:
.quad 0x4058c00000000000 ## double 99
LCPI3_2:
.quad 0x400921fb54442d18 ## double 3.1415926535897931
LCPI3_3:
.quad 0x3fe0000000000000 ## double 0.5
.section __TEXT,__text,regular,pure_instructions
.globl _enerModo
.p2align 4, 0x90
_enerModo: ## @enerModo
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $192, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movsd %xmm0, -120(%rbp)
movq %rdi, -128(%rbp)
movq %rsi, -136(%rbp)
movl $1, -144(%rbp)
LBB3_1: ## =>This Loop Header: Depth=1
## Child Loop BB3_3 Depth 2
cmpl $6, -144(%rbp)
jge LBB3_8
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movslq -144(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, -64(%rbp,%rax,8)
movslq -144(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, -112(%rbp,%rax,8)
movl $0, -140(%rbp)
LBB3_3: ## Parent Loop BB3_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $100, -140(%rbp)
jge LBB3_6
## %bb.4: ## in Loop: Header=BB3_3 Depth=2
movq -128(%rbp), %rax
movslq -140(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -160(%rbp) ## 8-byte Spill
cvtsi2sdl -144(%rbp), %xmm1
movsd LCPI3_2(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm1, %xmm0
cvtsi2sdl -140(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd LCPI3_1(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
callq _sin
movaps %xmm0, %xmm2
movsd -160(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
movslq -144(%rbp), %rax
movsd -64(%rbp,%rax,8), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -64(%rbp,%rax,8)
movq -136(%rbp), %rax
movslq -140(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -152(%rbp) ## 8-byte Spill
cvtsi2sdl -144(%rbp), %xmm1
movsd LCPI3_2(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm1, %xmm0
cvtsi2sdl -140(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd LCPI3_1(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
callq _sin
movaps %xmm0, %xmm2
movsd -152(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
movslq -144(%rbp), %rax
movsd -112(%rbp,%rax,8), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -112(%rbp,%rax,8)
## %bb.5: ## in Loop: Header=BB3_3 Depth=2
movl -140(%rbp), %eax
addl $1, %eax
movl %eax, -140(%rbp)
jmp LBB3_3
LBB3_6: ## in Loop: Header=BB3_1 Depth=1
movl -144(%rbp), %eax
movl %eax, -172(%rbp) ## 4-byte Spill
movsd -120(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -168(%rbp) ## 8-byte Spill
movslq -144(%rbp), %rax
movsd LCPI3_3(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd -112(%rbp,%rax,8), %xmm0
movsd %xmm0, -192(%rbp) ## 8-byte Spill
movslq -144(%rbp), %rax
movsd -112(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -184(%rbp) ## 8-byte Spill
cvtsi2sdl -144(%rbp), %xmm1
movsd LCPI3_2(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm1, %xmm0
movsd LCPI3_1(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movsd LCPI3_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
callq _sin
movsd LCPI3_0(%rip), %xmm1 ## xmm1 = mem[0],zero
callq _pow
movsd -192(%rbp), %xmm1 ## 8-byte Reload
## xmm1 = mem[0],zero
movsd -184(%rbp), %xmm3 ## 8-byte Reload
## xmm3 = mem[0],zero
movl -172(%rbp), %esi ## 4-byte Reload
movaps %xmm0, %xmm4
movsd -168(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
movsd LCPI3_0(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm4, %xmm2
movslq -144(%rbp), %rax
mulsd -64(%rbp,%rax,8), %xmm2
movslq -144(%rbp), %rax
mulsd -64(%rbp,%rax,8), %xmm2
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
leaq L_.str.1(%rip), %rdi
movb $2, %al
callq _printf
## %bb.7: ## in Loop: Header=BB3_1 Depth=1
movl -144(%rbp), %eax
addl $1, %eax
movl %eax, -144(%rbp)
jmp LBB3_1
LBB3_8:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB3_10
## %bb.9:
addq $192, %rsp
popq %rbp
retq
LBB3_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__literal16,16byte_literals
.p2align 4 ## -- Begin function max
LCPI4_0:
.quad 0x7fffffffffffffff ## double NaN
.quad 0x7fffffffffffffff ## double NaN
.section __TEXT,__text,regular,pure_instructions
.globl _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
movq %rdi, -8(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -16(%rbp)
movl $0, -20(%rbp)
LBB4_1: ## =>This Inner Loop Header: Depth=1
cmpl $100, -20(%rbp)
jge LBB4_7
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movaps LCPI4_0(%rip), %xmm1 ## xmm1 = [NaN,NaN]
pand %xmm1, %xmm0
ucomisd -16(%rbp), %xmm0
jbe LBB4_4
## %bb.3: ## in Loop: Header=BB4_1 Depth=1
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movaps LCPI4_0(%rip), %xmm1 ## xmm1 = [NaN,NaN]
pand %xmm1, %xmm0
movsd %xmm0, -32(%rbp) ## 8-byte Spill
jmp LBB4_5
LBB4_4: ## in Loop: Header=BB4_1 Depth=1
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -32(%rbp) ## 8-byte Spill
LBB4_5: ## in Loop: Header=BB4_1 Depth=1
movsd -32(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
movsd %xmm0, -16(%rbp)
## %bb.6: ## in Loop: Header=BB4_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB4_1
LBB4_7:
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
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 $3264, %rsp ## imm = 0xCC0
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -3220(%rbp)
movl %edi, -3224(%rbp)
movq %rsi, -3232(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -3216(%rbp)
leaq -816(%rbp), %rdi
leaq -1616(%rbp), %rsi
callq _init
movl $0, -3240(%rbp)
LBB5_1: ## =>This Loop Header: Depth=1
## Child Loop BB5_5 Depth 2
## Child Loop BB5_9 Depth 2
cmpl $1200000, -3240(%rbp) ## imm = 0x124F80
jge LBB5_15
## %bb.2: ## in Loop: Header=BB5_1 Depth=1
leaq -816(%rbp), %rdi
leaq -1616(%rbp), %rsi
leaq -2416(%rbp), %rdx
callq _update
movl -3240(%rbp), %eax
movl $50, %ecx
cltd
idivl %ecx
cmpl $0, %edx
jne LBB5_13
## %bb.3: ## in Loop: Header=BB5_1 Depth=1
cmpl $1100000, -3240(%rbp) ## imm = 0x10C8E0
jle LBB5_13
## %bb.4: ## in Loop: Header=BB5_1 Depth=1
movl $1, -3236(%rbp)
LBB5_5: ## Parent Loop BB5_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $100, -3236(%rbp)
jge LBB5_8
## %bb.6: ## in Loop: Header=BB5_5 Depth=2
movslq -3236(%rbp), %rax
movsd -816(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero
movl -3236(%rbp), %eax
subl $1, %eax
cltq
subsd -816(%rbp,%rax,8), %xmm0
movslq -3236(%rbp), %rax
movsd %xmm0, -3216(%rbp,%rax,8)
## %bb.7: ## in Loop: Header=BB5_5 Depth=2
movl -3236(%rbp), %eax
addl $1, %eax
movl %eax, -3236(%rbp)
jmp LBB5_5
LBB5_8: ## in Loop: Header=BB5_1 Depth=1
movsd -3208(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -3216(%rbp)
leaq -3216(%rbp), %rdi
callq _max
movsd %xmm0, -3256(%rbp)
movl $0, -3236(%rbp)
LBB5_9: ## Parent Loop BB5_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $100, -3236(%rbp)
jge LBB5_12
## %bb.10: ## in Loop: Header=BB5_9 Depth=2
movl -3236(%rbp), %esi
movslq -3236(%rbp), %rax
movsd -3216(%rbp,%rax,8), %xmm0 ## xmm0 = mem[0],zero
divsd -3256(%rbp), %xmm0
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
## %bb.11: ## in Loop: Header=BB5_9 Depth=2
movl -3236(%rbp), %eax
addl $1, %eax
movl %eax, -3236(%rbp)
jmp LBB5_9
LBB5_12: ## in Loop: Header=BB5_1 Depth=1
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
LBB5_13: ## in Loop: Header=BB5_1 Depth=1
jmp LBB5_14
LBB5_14: ## in Loop: Header=BB5_1 Depth=1
movl -3240(%rbp), %eax
addl $1, %eax
movl %eax, -3240(%rbp)
jmp LBB5_1
LBB5_15:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB5_17
## %bb.16:
xorl %eax, %eax
addq $3264, %rsp ## imm = 0xCC0
popq %rbp
retq
LBB5_17:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%lf %lf 5\n"
L_.str.1: ## @.str.1
.asciz "%d %lf %lf\n"
L_.str.2: ## @.str.2
.asciz "%d\t%lf\n"
L_.str.3: ## @.str.3
.asciz "\n\n"
.subsections_via_symbols
| the_stack_data/72138.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #32]
mov x9, sp
mov x8, #5
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
str wzr, [sp, #28]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #28]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #28]
add w10, w8, #1
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
ldrsw x9, [sp, #28]
sub x8, x29, #28
str x8, [sp, #16] ; 8-byte Folded Spill
add x8, x8, x9, lsl #2
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldrsw x9, [sp, #28]
ldr w9, [x8, x9, lsl #2]
ldr w8, [sp, #24]
add w8, w8, w9
str w8, [sp, #24]
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 w9, [sp, #24]
; 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 s1, [sp, #24]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
fmov d1, #5.00000000
fdiv d0, d0, d1
mov x8, sp
str d0, [x8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
bl ___stack_chk_fail
LBB0_6:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d \n"
l_.str.1: ; @.str.1
.asciz "%2d:"
l_.str.2: ; @.str.2
.asciz "%d"
l_.str.3: ; @.str.3
.asciz "total: %5d \n"
l_.str.4: ; @.str.4
.asciz "mean: %5.1f\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI0_0:
.quad 0x4014000000000000 ## double 5
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -36(%rbp)
leaq L_.str(%rip), %rdi
movl $5, %esi
movb $0, %al
callq _printf
movl $0, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $5, -40(%rbp)
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -40(%rbp), %esi
addl $1, %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movslq -40(%rbp), %rax
leaq -32(%rbp), %rsi
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _scanf
movslq -40(%rbp), %rax
movl -32(%rbp,%rax,4), %eax
addl -44(%rbp), %eax
movl %eax, -44(%rbp)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_1
LBB0_4:
movl -44(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
cvtsi2sdl -44(%rbp), %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
leaq L_.str.4(%rip), %rdi
movb $1, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_6
## %bb.5:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
LBB0_6:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d \n"
L_.str.1: ## @.str.1
.asciz "%2d:"
L_.str.2: ## @.str.2
.asciz "%d"
L_.str.3: ## @.str.3
.asciz "total: %5d \n"
L_.str.4: ## @.str.4
.asciz "mean: %5.1f\n"
.subsections_via_symbols
| the_stack_data/167330761.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, #8]
ldr w9, [sp, #12]
subs w8, w8, w9
str w8, [sp, #4]
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, #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, #900
mov w1, #5
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 -8(%rbp), %eax
subl -4(%rbp), %eax
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $900, %edi ## imm = 0x384
movl $5, %esi
callq _foo
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/151080.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _g ; -- Begin function g
.p2align 2
_g: ; @g
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
ldur w8, [x29, #-4]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur w8, [x29, #-4]
subs w0, w8, #1
bl _f
b LBB0_2
LBB0_2:
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 _g ## -- Begin function g
.p2align 4, 0x90
_g: ## @g
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
cmpl $0, -4(%rbp)
jle LBB0_2
## %bb.1:
movl -4(%rbp), %edi
subl $1, %edi
callq _f
LBB0_2:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/75137369.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 x8, l___const.main.str2@PAGE
add x8, x8, l___const.main.str2@PAGEOFF
ldr w9, [x8]
sub x10, x29, #16
str x10, [sp, #16] ; 8-byte Folded Spill
stur w9, [x29, #-16]
ldrb w8, [x8, #4]
sturb w8, [x29, #-12]
mov x9, sp
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr x8, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x1, [sp, #16] ; 8-byte Folded Reload
mov w8, #1
stur w8, [x29, #-20]
sub x0, x29, #9
bl _strcmp
stur w0, [x29, #-20]
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_3
LBB0_2:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB0_3
LBB0_3:
bl _getchar
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l___const.main.str2: ; @__const.main.str2
.asciz "john"
l_.str: ; @.str
.asciz "%c"
l_.str.1: ; @.str.1
.asciz "john"
l_.str.2: ; @.str.2
.asciz "String 1 = %s\n"
l_.str.3: ; @.str.3
.asciz "Strings are identical"
l_.str.4: ; @.str.4
.asciz "Strings are not identical"
.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 L___const.main.str2(%rip), %eax
movl %eax, -14(%rbp)
movb L___const.main.str2+4(%rip), %al
movb %al, -10(%rbp)
leaq L_.str(%rip), %rdi
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _scanf
leaq -14(%rbp), %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -20(%rbp)
leaq -9(%rbp), %rdi
leaq -14(%rbp), %rsi
callq _strcmp
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
jne LBB0_2
## %bb.1:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_3
LBB0_2:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
LBB0_3:
callq _getchar
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L___const.main.str2: ## @__const.main.str2
.asciz "john"
L_.str: ## @.str
.asciz "%c"
L_.str.1: ## @.str.1
.asciz "john"
L_.str.2: ## @.str.2
.asciz "String 1 = %s\n"
L_.str.3: ## @.str.3
.asciz "Strings are identical"
L_.str.4: ## @.str.4
.asciz "Strings are not identical"
.subsections_via_symbols
| the_stack_data/90765746.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _Array_Declaration ; -- Begin function Array_Declaration
.p2align 2
_Array_Declaration: ; @Array_Declaration
.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, #544
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fopen
str x0, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x0, [sp, #24]
bl _feof
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x2, [sp, #24]
add x0, sp, #36
str x0, [sp, #8] ; 8-byte Folded Spill
mov w1, #500
bl _fgets
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_1
LBB0_3:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #20
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
bl _Array
b LBB0_8
LBB0_5:
ldr w8, [sp, #20]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
bl _Array_Initialization
b LBB0_7
LBB0_7:
b LBB0_8
LBB0_8:
ldr x0, [sp, #24]
bl _fclose
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:
add sp, sp, #544
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _Array_Initialization ; -- Begin function Array_Initialization
.p2align 2
_Array_Initialization: ; @Array_Initialization
.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, #544
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fopen
str x0, [sp, #24]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x0, [sp, #24]
bl _feof
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x2, [sp, #24]
add x0, sp, #36
str x0, [sp, #8] ; 8-byte Folded Spill
mov w1, #500
bl _fgets
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB1_1
LBB1_3:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #20
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
bl _Array
b LBB1_8
LBB1_5:
ldr w8, [sp, #20]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB1_7
b LBB1_6
LBB1_6:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
bl _Array_Terminology
b LBB1_7
LBB1_7:
b LBB1_8
LBB1_8:
ldr x0, [sp, #24]
bl _fclose
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
bl ___stack_chk_fail
LBB1_10:
add sp, sp, #544
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _Array_Terminology ; -- Begin function Array_Terminology
.p2align 2
_Array_Terminology: ; @Array_Terminology
.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, #544
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fopen
str x0, [sp, #24]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr x0, [sp, #24]
bl _feof
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x2, [sp, #24]
add x0, sp, #36
str x0, [sp, #8] ; 8-byte Folded Spill
mov w1, #500
bl _fgets
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB2_1
LBB2_3:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #20
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB2_5
b LBB2_4
LBB2_4:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
bl _Array
b LBB2_8
LBB2_5:
ldr w8, [sp, #20]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB2_7
b LBB2_6
LBB2_6:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
bl _One_Dimensional_Array
b LBB2_7
LBB2_7:
b LBB2_8
LBB2_8:
ldr x0, [sp, #24]
bl _fclose
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB2_10
b LBB2_9
LBB2_9:
bl ___stack_chk_fail
LBB2_10:
add sp, sp, #544
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _One_Dimensional_Array ; -- Begin function One_Dimensional_Array
.p2align 2
_One_Dimensional_Array: ; @One_Dimensional_Array
.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, #544
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fopen
str x0, [sp, #24]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr x0, [sp, #24]
bl _feof
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB3_3
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldr x2, [sp, #24]
add x0, sp, #36
str x0, [sp, #8] ; 8-byte Folded Spill
mov w1, #500
bl _fgets
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB3_1
LBB3_3:
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #20
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB3_5
b LBB3_4
LBB3_4:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
bl _Array
b LBB3_11
LBB3_5:
ldr w8, [sp, #20]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB3_7
b LBB3_6
LBB3_6:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
bl _Two_Dimensional_Array
b LBB3_10
LBB3_7:
ldr w8, [sp, #20]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB3_9
b LBB3_8
LBB3_8:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
bl _prgooda
b LBB3_9
LBB3_9:
b LBB3_10
LBB3_10:
b LBB3_11
LBB3_11:
ldr x0, [sp, #24]
bl _fclose
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_13
b LBB3_12
LBB3_12:
bl ___stack_chk_fail
LBB3_13:
add sp, sp, #544
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _prgooda ; -- Begin function prgooda
.p2align 2
_prgooda: ; @prgooda
.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]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
str wzr, [sp, #16]
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB4_4
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldrsw x9, [sp, #16]
add x8, sp, #20
add x8, x8, x9, lsl #2
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
b LBB4_3
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB4_1
LBB4_4:
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
str wzr, [sp, #16]
b LBB4_5
LBB4_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB4_8
b LBB4_6
LBB4_6: ; in Loop: Header=BB4_5 Depth=1
ldrsw x9, [sp, #16]
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.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
b LBB4_7
LBB4_7: ; in Loop: Header=BB4_5 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB4_5
LBB4_8:
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #15
str x8, [x9]
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _scanf
subs w8, w0, #105
cset w8, ne
tbnz w8, #0, LBB4_10
b LBB4_9
LBB4_9:
bl _Index
b LBB4_10
LBB4_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, LBB4_12
b LBB4_11
LBB4_11:
bl ___stack_chk_fail
LBB4_12:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _Two_Dimensional_Array ; -- Begin function Two_Dimensional_Array
.p2align 2
_Two_Dimensional_Array: ; @Two_Dimensional_Array
.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, #544
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fopen
str x0, [sp, #24]
b LBB5_1
LBB5_1: ; =>This Inner Loop Header: Depth=1
ldr x0, [sp, #24]
bl _feof
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB5_3
b LBB5_2
LBB5_2: ; in Loop: Header=BB5_1 Depth=1
ldr x2, [sp, #24]
add x0, sp, #36
str x0, [sp, #8] ; 8-byte Folded Spill
mov w1, #500
bl _fgets
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB5_1
LBB5_3:
adrp x0, l_.str.16@PAGE
add x0, x0, l_.str.16@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #20
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB5_5
b LBB5_4
LBB5_4:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
bl _Index
b LBB5_8
LBB5_5:
ldr w8, [sp, #20]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB5_7
b LBB5_6
LBB5_6:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _system
bl _prgotda
b LBB5_7
LBB5_7:
b LBB5_8
LBB5_8:
ldr x0, [sp, #24]
bl _fclose
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB5_10
b LBB5_9
LBB5_9:
bl ___stack_chk_fail
LBB5_10:
add sp, sp, #544
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _prgotda ; -- Begin function prgotda
.p2align 2
_prgotda: ; @prgotda
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #28]
b LBB6_1
LBB6_1: ; =>This Loop Header: Depth=1
; Child Loop BB6_3 Depth 2
ldr w8, [sp, #28]
subs w8, w8, #2
cset w8, ge
tbnz w8, #0, LBB6_8
b LBB6_2
LBB6_2: ; in Loop: Header=BB6_1 Depth=1
str wzr, [sp, #24]
b LBB6_3
LBB6_3: ; Parent Loop BB6_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #24]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB6_6
b LBB6_4
LBB6_4: ; in Loop: Header=BB6_3 Depth=2
ldr w8, [sp, #28]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #24]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.17@PAGE
add x0, x0, l_.str.17@PAGEOFF
bl _printf
ldrsw x8, [sp, #28]
mov x9, #12
mul x9, x8, x9
add x8, sp, #32
add x8, x8, x9
ldrsw x9, [sp, #24]
add x8, x8, x9, lsl #2
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
b LBB6_5
LBB6_5: ; in Loop: Header=BB6_3 Depth=2
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB6_3
LBB6_6: ; in Loop: Header=BB6_1 Depth=1
b LBB6_7
LBB6_7: ; in Loop: Header=BB6_1 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB6_1
LBB6_8:
adrp x0, l_.str.18@PAGE
add x0, x0, l_.str.18@PAGEOFF
bl _printf
str wzr, [sp, #28]
b LBB6_9
LBB6_9: ; =>This Loop Header: Depth=1
; Child Loop BB6_11 Depth 2
ldr w8, [sp, #28]
subs w8, w8, #2
cset w8, ge
tbnz w8, #0, LBB6_18
b LBB6_10
LBB6_10: ; in Loop: Header=BB6_9 Depth=1
str wzr, [sp, #24]
b LBB6_11
LBB6_11: ; Parent Loop BB6_9 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #24]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB6_16
b LBB6_12
LBB6_12: ; in Loop: Header=BB6_11 Depth=2
ldrsw x8, [sp, #28]
mov x9, #12
mul x9, x8, x9
add x8, sp, #32
add x8, x8, x9
ldrsw x9, [sp, #24]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.19@PAGE
add x0, x0, l_.str.19@PAGEOFF
bl _printf
ldr w8, [sp, #24]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB6_14
b LBB6_13
LBB6_13: ; in Loop: Header=BB6_11 Depth=2
adrp x0, l_.str.20@PAGE
add x0, x0, l_.str.20@PAGEOFF
bl _printf
b LBB6_14
LBB6_14: ; in Loop: Header=BB6_11 Depth=2
b LBB6_15
LBB6_15: ; in Loop: Header=BB6_11 Depth=2
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB6_11
LBB6_16: ; in Loop: Header=BB6_9 Depth=1
b LBB6_17
LBB6_17: ; in Loop: Header=BB6_9 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB6_9
LBB6_18:
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #23
str x8, [x9]
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _scanf
subs w8, w0, #105
cset w8, ne
tbnz w8, #0, LBB6_20
b LBB6_19
LBB6_19:
bl _Index
b LBB6_20
LBB6_20:
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB6_22
b LBB6_21
LBB6_21:
bl ___stack_chk_fail
LBB6_22:
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 "cls"
l_.str.1: ; @.str.1
.asciz "src/text_src/Array_Declaration.txt"
l_.str.2: ; @.str.2
.asciz "r"
l_.str.3: ; @.str.3
.asciz "%s\n"
l_.str.4: ; @.str.4
.asciz "/npress 0 for chapter outline \n press 1 for next topic"
l_.str.5: ; @.str.5
.asciz "%d"
l_.str.6: ; @.str.6
.asciz "src/text_src/Array_Initialization.txt"
l_.str.7: ; @.str.7
.asciz "src/text_src/Array_Terminology.txt"
l_.str.8: ; @.str.8
.asciz "src/text_src/One_Dimensional_Array.txt"
l_.str.9: ; @.str.9
.asciz "/npress 0 for chapter outline \n press 1 for next topic \n if yuo want to run this code so press 2"
l_.str.10: ; @.str.10
.asciz "Enter 5 number \n"
l_.str.11: ; @.str.11
.asciz "Array elements are \n"
l_.str.12: ; @.str.12
.asciz "%d\n"
l_.str.13: ; @.str.13
.asciz "\n\npress i for going to Index"
l_.str.14: ; @.str.14
.asciz "%c"
l_.str.15: ; @.str.15
.asciz "src/text_src/Two_Dimensional_Array.txt"
l_.str.16: ; @.str.16
.asciz "/npress 0 for index \n if you want to run this code so press 1"
l_.str.17: ; @.str.17
.asciz "Enter value for disp[%d][%d]:"
l_.str.18: ; @.str.18
.asciz "Two Dimensional array elements:\n"
l_.str.19: ; @.str.19
.asciz "%d "
l_.str.20: ; @.str.20
.asciz "\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _Array_Declaration ## -- Begin function Array_Declaration
.p2align 4, 0x90
_Array_Declaration: ## @Array_Declaration
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $528, %rsp ## imm = 0x210
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq L_.str(%rip), %rdi
callq _system
leaq L_.str.1(%rip), %rdi
leaq L_.str.2(%rip), %rsi
callq _fopen
movq %rax, -520(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -520(%rbp), %rdi
callq _feof
cmpl $0, %eax
setne %al
xorb $-1, %al
testb $1, %al
jne LBB0_2
jmp LBB0_3
LBB0_2: ## in Loop: Header=BB0_1 Depth=1
leaq -512(%rbp), %rdi
movq -520(%rbp), %rdx
movl $500, %esi ## imm = 0x1F4
callq _fgets
leaq -512(%rbp), %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_1
LBB0_3:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.5(%rip), %rdi
leaq -524(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $0, -524(%rbp)
jne LBB0_5
## %bb.4:
leaq L_.str(%rip), %rdi
callq _system
movb $0, %al
callq _Array
jmp LBB0_8
LBB0_5:
cmpl $1, -524(%rbp)
jne LBB0_7
## %bb.6:
leaq L_.str(%rip), %rdi
callq _system
callq _Array_Initialization
LBB0_7:
jmp LBB0_8
LBB0_8:
movq -520(%rbp), %rdi
callq _fclose
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_10
## %bb.9:
addq $528, %rsp ## imm = 0x210
popq %rbp
retq
LBB0_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _Array_Initialization ## -- Begin function Array_Initialization
.p2align 4, 0x90
_Array_Initialization: ## @Array_Initialization
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $528, %rsp ## imm = 0x210
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq L_.str(%rip), %rdi
callq _system
leaq L_.str.6(%rip), %rdi
leaq L_.str.2(%rip), %rsi
callq _fopen
movq %rax, -520(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movq -520(%rbp), %rdi
callq _feof
cmpl $0, %eax
setne %al
xorb $-1, %al
testb $1, %al
jne LBB1_2
jmp LBB1_3
LBB1_2: ## in Loop: Header=BB1_1 Depth=1
leaq -512(%rbp), %rdi
movq -520(%rbp), %rdx
movl $500, %esi ## imm = 0x1F4
callq _fgets
leaq -512(%rbp), %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB1_1
LBB1_3:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.5(%rip), %rdi
leaq -524(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $0, -524(%rbp)
jne LBB1_5
## %bb.4:
leaq L_.str(%rip), %rdi
callq _system
movb $0, %al
callq _Array
jmp LBB1_8
LBB1_5:
cmpl $1, -524(%rbp)
jne LBB1_7
## %bb.6:
leaq L_.str(%rip), %rdi
callq _system
callq _Array_Terminology
LBB1_7:
jmp LBB1_8
LBB1_8:
movq -520(%rbp), %rdi
callq _fclose
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_10
## %bb.9:
addq $528, %rsp ## imm = 0x210
popq %rbp
retq
LBB1_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _Array_Terminology ## -- Begin function Array_Terminology
.p2align 4, 0x90
_Array_Terminology: ## @Array_Terminology
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $528, %rsp ## imm = 0x210
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq L_.str(%rip), %rdi
callq _system
leaq L_.str.7(%rip), %rdi
leaq L_.str.2(%rip), %rsi
callq _fopen
movq %rax, -520(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movq -520(%rbp), %rdi
callq _feof
cmpl $0, %eax
setne %al
xorb $-1, %al
testb $1, %al
jne LBB2_2
jmp LBB2_3
LBB2_2: ## in Loop: Header=BB2_1 Depth=1
leaq -512(%rbp), %rdi
movq -520(%rbp), %rdx
movl $500, %esi ## imm = 0x1F4
callq _fgets
leaq -512(%rbp), %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB2_1
LBB2_3:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.5(%rip), %rdi
leaq -524(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $0, -524(%rbp)
jne LBB2_5
## %bb.4:
leaq L_.str(%rip), %rdi
callq _system
movb $0, %al
callq _Array
jmp LBB2_8
LBB2_5:
cmpl $1, -524(%rbp)
jne LBB2_7
## %bb.6:
leaq L_.str(%rip), %rdi
callq _system
callq _One_Dimensional_Array
LBB2_7:
jmp LBB2_8
LBB2_8:
movq -520(%rbp), %rdi
callq _fclose
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB2_10
## %bb.9:
addq $528, %rsp ## imm = 0x210
popq %rbp
retq
LBB2_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _One_Dimensional_Array ## -- Begin function One_Dimensional_Array
.p2align 4, 0x90
_One_Dimensional_Array: ## @One_Dimensional_Array
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $528, %rsp ## imm = 0x210
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq L_.str(%rip), %rdi
callq _system
leaq L_.str.8(%rip), %rdi
leaq L_.str.2(%rip), %rsi
callq _fopen
movq %rax, -520(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movq -520(%rbp), %rdi
callq _feof
cmpl $0, %eax
setne %al
xorb $-1, %al
testb $1, %al
jne LBB3_2
jmp LBB3_3
LBB3_2: ## in Loop: Header=BB3_1 Depth=1
leaq -512(%rbp), %rdi
movq -520(%rbp), %rdx
movl $500, %esi ## imm = 0x1F4
callq _fgets
leaq -512(%rbp), %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB3_1
LBB3_3:
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.5(%rip), %rdi
leaq -524(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $0, -524(%rbp)
jne LBB3_5
## %bb.4:
leaq L_.str(%rip), %rdi
callq _system
movb $0, %al
callq _Array
jmp LBB3_11
LBB3_5:
cmpl $1, -524(%rbp)
jne LBB3_7
## %bb.6:
leaq L_.str(%rip), %rdi
callq _system
callq _Two_Dimensional_Array
jmp LBB3_10
LBB3_7:
cmpl $2, -524(%rbp)
jne LBB3_9
## %bb.8:
leaq L_.str(%rip), %rdi
callq _system
callq _prgooda
LBB3_9:
jmp LBB3_10
LBB3_10:
jmp LBB3_11
LBB3_11:
movq -520(%rbp), %rdi
callq _fclose
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB3_13
## %bb.12:
addq $528, %rsp ## imm = 0x210
popq %rbp
retq
LBB3_13:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _prgooda ## -- Begin function prgooda
.p2align 4, 0x90
_prgooda: ## @prgooda
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -36(%rbp)
LBB4_1: ## =>This Inner Loop Header: Depth=1
cmpl $5, -36(%rbp)
jge LBB4_4
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movslq -36(%rbp), %rax
leaq -32(%rbp), %rsi
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.3: ## in Loop: Header=BB4_1 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB4_1
LBB4_4:
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -36(%rbp)
LBB4_5: ## =>This Inner Loop Header: Depth=1
cmpl $5, -36(%rbp)
jge LBB4_8
## %bb.6: ## in Loop: Header=BB4_5 Depth=1
movslq -36(%rbp), %rax
movl -32(%rbp,%rax,4), %esi
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
## %bb.7: ## in Loop: Header=BB4_5 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB4_5
LBB4_8:
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.14(%rip), %rdi
leaq -37(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $105, %eax
jne LBB4_10
## %bb.9:
movb $0, %al
callq _Index
LBB4_10:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB4_12
## %bb.11:
addq $48, %rsp
popq %rbp
retq
LBB4_12:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _Two_Dimensional_Array ## -- Begin function Two_Dimensional_Array
.p2align 4, 0x90
_Two_Dimensional_Array: ## @Two_Dimensional_Array
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $528, %rsp ## imm = 0x210
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq L_.str(%rip), %rdi
callq _system
leaq L_.str.15(%rip), %rdi
leaq L_.str.2(%rip), %rsi
callq _fopen
movq %rax, -520(%rbp)
LBB5_1: ## =>This Inner Loop Header: Depth=1
movq -520(%rbp), %rdi
callq _feof
cmpl $0, %eax
setne %al
xorb $-1, %al
testb $1, %al
jne LBB5_2
jmp LBB5_3
LBB5_2: ## in Loop: Header=BB5_1 Depth=1
leaq -512(%rbp), %rdi
movq -520(%rbp), %rdx
movl $500, %esi ## imm = 0x1F4
callq _fgets
leaq -512(%rbp), %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB5_1
LBB5_3:
leaq L_.str.16(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.5(%rip), %rdi
leaq -524(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $0, -524(%rbp)
jne LBB5_5
## %bb.4:
leaq L_.str(%rip), %rdi
callq _system
movb $0, %al
callq _Index
jmp LBB5_8
LBB5_5:
cmpl $1, -524(%rbp)
jne LBB5_7
## %bb.6:
leaq L_.str(%rip), %rdi
callq _system
callq _prgotda
LBB5_7:
jmp LBB5_8
LBB5_8:
movq -520(%rbp), %rdi
callq _fclose
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB5_10
## %bb.9:
addq $528, %rsp ## imm = 0x210
popq %rbp
retq
LBB5_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _prgotda ## -- Begin function prgotda
.p2align 4, 0x90
_prgotda: ## @prgotda
.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)
LBB6_1: ## =>This Loop Header: Depth=1
## Child Loop BB6_3 Depth 2
cmpl $2, -36(%rbp)
jge LBB6_8
## %bb.2: ## in Loop: Header=BB6_1 Depth=1
movl $0, -40(%rbp)
LBB6_3: ## Parent Loop BB6_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $3, -40(%rbp)
jge LBB6_6
## %bb.4: ## in Loop: Header=BB6_3 Depth=2
movl -36(%rbp), %esi
movl -40(%rbp), %edx
leaq L_.str.17(%rip), %rdi
movb $0, %al
callq _printf
movslq -36(%rbp), %rax
leaq -32(%rbp), %rsi
imulq $12, %rax, %rax
addq %rax, %rsi
movslq -40(%rbp), %rax
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.5: ## in Loop: Header=BB6_3 Depth=2
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB6_3
LBB6_6: ## in Loop: Header=BB6_1 Depth=1
jmp LBB6_7
LBB6_7: ## in Loop: Header=BB6_1 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB6_1
LBB6_8:
leaq L_.str.18(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -36(%rbp)
LBB6_9: ## =>This Loop Header: Depth=1
## Child Loop BB6_11 Depth 2
cmpl $2, -36(%rbp)
jge LBB6_18
## %bb.10: ## in Loop: Header=BB6_9 Depth=1
movl $0, -40(%rbp)
LBB6_11: ## Parent Loop BB6_9 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $3, -40(%rbp)
jge LBB6_16
## %bb.12: ## in Loop: Header=BB6_11 Depth=2
movslq -36(%rbp), %rcx
leaq -32(%rbp), %rax
imulq $12, %rcx, %rcx
addq %rcx, %rax
movslq -40(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.19(%rip), %rdi
movb $0, %al
callq _printf
cmpl $2, -40(%rbp)
jne LBB6_14
## %bb.13: ## in Loop: Header=BB6_11 Depth=2
leaq L_.str.20(%rip), %rdi
movb $0, %al
callq _printf
LBB6_14: ## in Loop: Header=BB6_11 Depth=2
jmp LBB6_15
LBB6_15: ## in Loop: Header=BB6_11 Depth=2
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB6_11
LBB6_16: ## in Loop: Header=BB6_9 Depth=1
jmp LBB6_17
LBB6_17: ## in Loop: Header=BB6_9 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB6_9
LBB6_18:
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.14(%rip), %rdi
leaq -41(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $105, %eax
jne LBB6_20
## %bb.19:
movb $0, %al
callq _Index
LBB6_20:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB6_22
## %bb.21:
addq $48, %rsp
popq %rbp
retq
LBB6_22:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "cls"
L_.str.1: ## @.str.1
.asciz "src/text_src/Array_Declaration.txt"
L_.str.2: ## @.str.2
.asciz "r"
L_.str.3: ## @.str.3
.asciz "%s\n"
L_.str.4: ## @.str.4
.asciz "/npress 0 for chapter outline \n press 1 for next topic"
L_.str.5: ## @.str.5
.asciz "%d"
L_.str.6: ## @.str.6
.asciz "src/text_src/Array_Initialization.txt"
L_.str.7: ## @.str.7
.asciz "src/text_src/Array_Terminology.txt"
L_.str.8: ## @.str.8
.asciz "src/text_src/One_Dimensional_Array.txt"
L_.str.9: ## @.str.9
.asciz "/npress 0 for chapter outline \n press 1 for next topic \n if yuo want to run this code so press 2"
L_.str.10: ## @.str.10
.asciz "Enter 5 number \n"
L_.str.11: ## @.str.11
.asciz "Array elements are \n"
L_.str.12: ## @.str.12
.asciz "%d\n"
L_.str.13: ## @.str.13
.asciz "\n\npress i for going to Index"
L_.str.14: ## @.str.14
.asciz "%c"
L_.str.15: ## @.str.15
.asciz "src/text_src/Two_Dimensional_Array.txt"
L_.str.16: ## @.str.16
.asciz "/npress 0 for index \n if you want to run this code so press 1"
L_.str.17: ## @.str.17
.asciz "Enter value for disp[%d][%d]:"
L_.str.18: ## @.str.18
.asciz "Two Dimensional array elements:\n"
L_.str.19: ## @.str.19
.asciz "%d "
L_.str.20: ## @.str.20
.asciz "\n"
.subsections_via_symbols
| the_stack_data/155085.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 w8, [x29, #-8]
subs w8, w8, #30
cset w8, gt
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur w8, [x29, #-8]
mov w9, #50
mul w8, w8, w9
scvtf s0, w8
stur s0, [x29, #-12]
b LBB0_3
LBB0_2:
ldur w9, [x29, #-8]
mov w8, #30
mul w8, w8, w9
ldur w9, [x29, #-8]
subs w9, w9, #30
mov w10, #40
mul w9, w9, w10
add w8, w8, w9
scvtf s0, w8
stur s0, [x29, #-12]
b LBB0_3
LBB0_3:
ldur s0, [x29, #-12]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Enter Distance : "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Total amount : %2.f\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $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
cmpl $30, -8(%rbp)
jg LBB0_2
## %bb.1:
imull $50, -8(%rbp), %eax
cvtsi2ss %eax, %xmm0
movss %xmm0, -12(%rbp)
jmp LBB0_3
LBB0_2:
imull $30, -8(%rbp), %eax
movl -8(%rbp), %ecx
subl $30, %ecx
imull $40, %ecx, %ecx
addl %ecx, %eax
cvtsi2ss %eax, %xmm0
movss %xmm0, -12(%rbp)
LBB0_3:
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter Distance : "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Total amount : %2.f\n"
.subsections_via_symbols
| the_stack_data/67326661.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]
mov w1, #0
str wzr, [sp, #20]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _open
str w0, [sp, #16]
ldr w8, [sp, #16]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_1
LBB0_1:
bl ___error
ldr w8, [x0]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
mov w8, #4
str w8, [sp, #20]
b LBB0_9
LBB0_3:
mov w8, #1
str w8, [sp, #20]
b LBB0_9
LBB0_4:
add x1, sp, #24
strb wzr, [sp, #24]
ldr w0, [sp, #16]
mov x2, #64
bl _read
subs x8, x0, #1
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
mov w8, #1
str w8, [sp, #20]
b LBB0_9
LBB0_6:
ldrsb w8, [sp, #24]
subs w8, w8, #48
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
mov w8, #1
str w8, [sp, #20]
b LBB0_9
LBB0_8:
str wzr, [sp, #20]
b LBB0_9
LBB0_9:
ldr w8, [sp, #20]
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, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "/proc/self/wchan"
.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 $96, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -84(%rbp)
leaq L_.str(%rip), %rdi
xorl %esi, %esi
movb $0, %al
callq _open
movl %eax, -88(%rbp)
cmpl $-1, -88(%rbp)
jne LBB0_4
## %bb.1:
callq ___error
cmpl $2, (%rax)
jne LBB0_3
## %bb.2:
movl $4, -84(%rbp)
jmp LBB0_9
LBB0_3:
movl $1, -84(%rbp)
jmp LBB0_9
LBB0_4:
movb $0, -80(%rbp)
movl -88(%rbp), %edi
leaq -80(%rbp), %rsi
movl $64, %edx
callq _read
cmpq $1, %rax
je LBB0_6
## %bb.5:
movl $1, -84(%rbp)
jmp LBB0_9
LBB0_6:
movsbl -80(%rbp), %eax
cmpl $48, %eax
je LBB0_8
## %bb.7:
movl $1, -84(%rbp)
jmp LBB0_9
LBB0_8:
movl $0, -84(%rbp)
LBB0_9:
movl -84(%rbp), %eax
movl %eax, -92(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_11
## %bb.10:
movl -92(%rbp), %eax ## 4-byte Reload
addq $96, %rsp
popq %rbp
retq
LBB0_11:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "/proc/self/wchan"
.subsections_via_symbols
| the_stack_data/103266457.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub sp, sp, #1072
adrp x9, _args@PAGE
adrp x8, _args@PAGE
add x8, x8, _args@PAGEOFF
adrp x10, ___stack_chk_guard@GOTPAGE
ldr x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
ldr x10, [x10]
stur x10, [x29, #-24]
str wzr, [sp, #36]
str w0, [sp, #32]
str x1, [sp, #24]
str wzr, [x9, _args@PAGEOFF]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
str xzr, [x8, #16]
ldr w0, [sp, #32]
ldr x1, [sp, #24]
bl _parse_args
tbnz w0, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w0, #3
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _syslog$DARWIN_EXTSN
mov w8, #1
str w8, [sp, #36]
b LBB0_8
LBB0_2:
bl _init_iphist
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
mov w1, #3
str w1, [sp, #4] ; 4-byte Folded Spill
mov w2, #32
bl _openlog
ldr w0, [sp, #4] ; 4-byte Folded Reload
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _syslog$DARWIN_EXTSN
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x2, [x8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
str x1, [sp, #8] ; 8-byte Folded Spill
bl _freopen
ldr x1, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x2, [x8]
bl _freopen
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
adrp x8, ___stdinp@GOTPAGE
ldr x8, [x8, ___stdinp@GOTPAGEOFF]
ldr x2, [x8]
add x0, sp, #40
mov w1, #1024
bl _fgets
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
add x0, sp, #40
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _strstr
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
add x0, sp, #40
bl _checkline
b LBB0_3
LBB0_7:
mov w0, #3
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _syslog$DARWIN_EXTSN
str wzr, [sp, #36]
b LBB0_8
LBB0_8:
ldr w8, [sp, #36]
str w8, [sp] ; 4-byte Folded Spill
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
bl ___stack_chk_fail
LBB0_10:
ldr w0, [sp] ; 4-byte Folded Reload
add sp, sp, #1072
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function parse_args
_parse_args: ; @parse_args
.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, _args@PAGE
add x8, x8, _args@PAGEOFF
str x8, [sp] ; 8-byte Folded Spill
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, lt
tbnz w8, #0, LBB1_29
b LBB1_1
LBB1_1:
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB1_29
b LBB1_2
LBB1_2:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
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, LBB1_10
b LBB1_3
LBB1_3:
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
str x8, [sp, #24]
ldur w8, [x29, #-8]
subs w8, w8, #3
cset w8, ne
tbnz w8, #0, LBB1_9
b LBB1_4
LBB1_4:
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB1_9
b LBB1_5
LBB1_5:
ldr x0, [sp, #24]
bl _strlen
subs x8, x0, #0
cset w8, ls
tbnz w8, #0, LBB1_8
b LBB1_6
LBB1_6:
ldr x0, [sp, #24]
bl _strlen
subs x8, x0, #20
cset w8, hs
tbnz w8, #0, LBB1_8
b LBB1_7
LBB1_7:
ldr x8, [sp] ; 8-byte Folded Reload
adrp x10, _args@PAGE
mov w9, #1
str w9, [x10, _args@PAGEOFF]
ldr x9, [sp, #24]
str x9, [x8, #8]
; kill: def $x9 killed $xzr
str xzr, [x8, #16]
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB1_30
LBB1_8:
b LBB1_9
LBB1_9:
b LBB1_10
LBB1_10:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
adrp x1, l_.str.8@PAGE
add x1, x1, l_.str.8@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB1_28
b LBB1_11
LBB1_11:
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
str x8, [sp, #16]
ldur w8, [x29, #-8]
subs w8, w8, #3
cset w8, ne
tbnz w8, #0, LBB1_27
b LBB1_12
LBB1_12:
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB1_27
b LBB1_13
LBB1_13:
ldr x0, [sp, #16]
bl _strlen
subs x8, x0, #0
cset w8, ls
tbnz w8, #0, LBB1_26
b LBB1_14
LBB1_14:
ldr x0, [sp, #16]
bl _strlen
subs x8, x0, #5
cset w8, hi
tbnz w8, #0, LBB1_26
b LBB1_15
LBB1_15:
ldr x8, [sp, #16]
str x8, [sp, #8]
b LBB1_16
LBB1_16: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_21
b LBB1_17
LBB1_17: ; in Loop: Header=BB1_16 Depth=1
ldr x8, [sp, #8]
ldrsb w0, [x8]
bl _isdigit
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB1_19
b LBB1_18
LBB1_18:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB1_30
LBB1_19: ; in Loop: Header=BB1_16 Depth=1
b LBB1_20
LBB1_20: ; in Loop: Header=BB1_16 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB1_16
LBB1_21:
ldr x0, [sp, #16]
bl _atoi
subs w8, w0, #1
cset w8, ge
tbnz w8, #0, LBB1_23
b LBB1_22
LBB1_22:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB1_30
LBB1_23:
ldr x0, [sp, #16]
bl _atoi
subs w8, w0, #16, lsl #12 ; =65536
cset w8, lt
tbnz w8, #0, LBB1_25
b LBB1_24
LBB1_24:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB1_30
LBB1_25:
ldr x8, [sp] ; 8-byte Folded Reload
adrp x10, _args@PAGE
mov w9, #2
str w9, [x10, _args@PAGEOFF]
ldr x9, [sp, #16]
str x9, [x8, #8]
; kill: def $x9 killed $xzr
str xzr, [x8, #16]
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB1_30
LBB1_26:
b LBB1_27
LBB1_27:
b LBB1_28
LBB1_28:
b LBB1_29
LBB1_29:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB1_30
LBB1_30:
ldurb w8, [x29, #-1]
and w0, w8, #0x1
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function init_iphist
_init_iphist: ; @init_iphist
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
adrp x9, _hist_base@PAGE
adrp x8, _hist_base@PAGE
add x8, x8, _hist_base@PAGEOFF
; kill: def $x10 killed $xzr
str xzr, [x9, _hist_base@PAGEOFF]
adrp x9, _hist_tail@PAGE
str x8, [x9, _hist_tail@PAGEOFF]
str wzr, [sp, #12]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #1024
cset w8, ge
tbnz w8, #0, LBB2_4
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldrsw x10, [sp, #12]
adrp x9, _hist_hash@PAGE
add x9, x9, _hist_hash@PAGEOFF
mov x8, #0
str x8, [x9, x10, lsl #3]
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB2_1
LBB2_4:
adrp x8, _hist_count@PAGE
str wzr, [x8, _hist_count@PAGEOFF]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function checkline
_checkline: ; @checkline
.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 x0, [x29, #-8]
adrp x1, l_.str.9@PAGE
add x1, x1, l_.str.9@PAGEOFF
bl _strstr
mov x8, x0
str x8, [sp, #16]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
ldur x0, [x29, #-8]
adrp x1, l_.str.10@PAGE
add x1, x1, l_.str.10@PAGEOFF
bl _strstr
mov x8, x0
str x8, [sp, #16]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB3_10
b LBB3_2
LBB3_2:
b LBB3_3
LBB3_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB3_7
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_3 Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #1
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB3_6
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_3 Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, gt
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_3 Depth=1
ldr w8, [sp, #8] ; 4-byte Folded Reload
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_3 Depth=1
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB3_9
b LBB3_8
LBB3_8: ; in Loop: Header=BB3_3 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB3_3
LBB3_9:
ldr x0, [sp, #16]
adrp x1, l_.str.11@PAGE
add x1, x1, l_.str.11@PAGEOFF
adrp x2, l_.str.12@PAGE
add x2, x2, l_.str.12@PAGEOFF
bl _checkip
b LBB3_37
LBB3_10:
ldur x0, [x29, #-8]
adrp x1, l_.str.13@PAGE
add x1, x1, l_.str.13@PAGEOFF
bl _strstr
mov x8, x0
str x8, [sp, #16]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB3_22
b LBB3_11
LBB3_11:
ldr x8, [sp, #16]
add x8, x8, #32
str x8, [sp, #16]
b LBB3_12
LBB3_12: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #32
cset w8, ne
tbnz w8, #0, LBB3_14
b LBB3_13
LBB3_13: ; in Loop: Header=BB3_12 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB3_12
LBB3_14:
b LBB3_15
LBB3_15: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB3_17
b LBB3_16
LBB3_16: ; in Loop: Header=BB3_15 Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #32
cset w8, ne
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB3_17
LBB3_17: ; in Loop: Header=BB3_15 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
tbz w8, #0, LBB3_19
b LBB3_18
LBB3_18: ; in Loop: Header=BB3_15 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB3_15
LBB3_19:
ldr x0, [sp, #16]
adrp x1, l_.str.14@PAGE
add x1, x1, l_.str.14@PAGEOFF
mov x2, #5
bl _strncmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB3_21
b LBB3_20
LBB3_20:
ldr x8, [sp, #16]
add x0, x8, #5
adrp x1, l_.str.11@PAGE
add x1, x1, l_.str.11@PAGEOFF
adrp x2, l_.str.15@PAGE
add x2, x2, l_.str.15@PAGEOFF
bl _checkip
b LBB3_21
LBB3_21:
b LBB3_37
LBB3_22:
ldur x0, [x29, #-8]
adrp x1, l_.str.16@PAGE
add x1, x1, l_.str.16@PAGEOFF
bl _strstr
mov x8, x0
str x8, [sp, #16]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB3_34
b LBB3_23
LBB3_23:
ldr x8, [sp, #16]
add x8, x8, #12
str x8, [sp, #16]
b LBB3_24
LBB3_24: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #32
cset w8, ne
tbnz w8, #0, LBB3_26
b LBB3_25
LBB3_25: ; in Loop: Header=BB3_24 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB3_24
LBB3_26:
b LBB3_27
LBB3_27: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp] ; 4-byte Folded Spill
tbnz w8, #0, LBB3_29
b LBB3_28
LBB3_28: ; in Loop: Header=BB3_27 Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #32
cset w8, ne
str w8, [sp] ; 4-byte Folded Spill
b LBB3_29
LBB3_29: ; in Loop: Header=BB3_27 Depth=1
ldr w8, [sp] ; 4-byte Folded Reload
tbz w8, #0, LBB3_31
b LBB3_30
LBB3_30: ; in Loop: Header=BB3_27 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB3_27
LBB3_31:
ldr x0, [sp, #16]
adrp x1, l_.str.14@PAGE
add x1, x1, l_.str.14@PAGEOFF
mov x2, #5
bl _strncmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB3_33
b LBB3_32
LBB3_32:
ldr x8, [sp, #16]
add x0, x8, #5
adrp x1, l_.str.17@PAGE
add x1, x1, l_.str.17@PAGEOFF
adrp x2, l_.str.15@PAGE
add x2, x2, l_.str.15@PAGEOFF
bl _checkip
b LBB3_33
LBB3_33:
b LBB3_37
LBB3_34:
ldur x0, [x29, #-8]
adrp x1, l_.str.18@PAGE
add x1, x1, l_.str.18@PAGEOFF
bl _strstr
mov x8, x0
str x8, [sp, #16]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB3_37
b LBB3_35
LBB3_35:
ldur x0, [x29, #-8]
adrp x1, l_.str.19@PAGE
add x1, x1, l_.str.19@PAGEOFF
bl _strstr
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB3_37
b LBB3_36
LBB3_36:
ldr x8, [sp, #16]
add x0, x8, #25
adrp x1, l_.str.20@PAGE
add x1, x1, l_.str.20@PAGEOFF
adrp x2, l_.str.15@PAGE
add x2, x2, l_.str.15@PAGEOFF
bl _checkip
b LBB3_37
LBB3_37:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function checkip
_checkip: ; @checkip
.cfi_startproc
; %bb.0:
sub sp, sp, #288
.cfi_def_cfa_offset 288
stp x28, x27, [sp, #256] ; 16-byte Folded Spill
stp x29, x30, [sp, #272] ; 16-byte Folded Spill
add x29, sp, #272
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #112]
str x1, [sp, #104]
str x2, [sp, #96]
mov x0, #0
bl _time
str x0, [sp, #72]
strb wzr, [sp, #120]
ldr x0, [sp, #112]
mov x9, sp
add x8, sp, #92
str x8, [x9]
add x8, sp, #88
str x8, [x9, #8]
add x8, sp, #84
str x8, [x9, #16]
add x8, sp, #80
str x8, [x9, #24]
adrp x1, l_.str.21@PAGE
add x1, x1, l_.str.21@PAGEOFF
bl _sscanf
subs w8, w0, #4
cset w8, ne
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
ldr w8, [sp, #92]
; implicit-def: $x12
mov x12, x8
ldr w8, [sp, #88]
; implicit-def: $x11
mov x11, x8
ldr w8, [sp, #84]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #80]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x12, [x9]
str x11, [x9, #8]
str x10, [x9, #16]
str x8, [x9, #24]
add x0, sp, #120
mov x3, #128
mov x1, x3
mov w2, #0
adrp x4, l_.str.21@PAGE
add x4, x4, l_.str.21@PAGEOFF
bl ___snprintf_chk
b LBB4_11
LBB4_2:
str wzr, [sp, #68]
b LBB4_3
LBB4_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #112]
ldrsw x9, [sp, #68]
ldrsb w8, [x8, x9]
subs w8, w8, #58
cset w8, eq
mov w9, #1
str w9, [sp, #48] ; 4-byte Folded Spill
tbnz w8, #0, LBB4_5
b LBB4_4
LBB4_4: ; in Loop: Header=BB4_3 Depth=1
ldr x8, [sp, #112]
ldrsw x9, [sp, #68]
ldrsb w0, [x8, x9]
bl _isxdigit
subs w8, w0, #0
cset w8, ne
str w8, [sp, #48] ; 4-byte Folded Spill
b LBB4_5
LBB4_5: ; in Loop: Header=BB4_3 Depth=1
ldr w8, [sp, #48] ; 4-byte Folded Reload
tbz w8, #0, LBB4_7
b LBB4_6
LBB4_6: ; in Loop: Header=BB4_3 Depth=1
ldr w8, [sp, #68]
add w8, w8, #1
str w8, [sp, #68]
b LBB4_3
LBB4_7:
ldr w8, [sp, #68]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB4_10
b LBB4_8
LBB4_8:
ldr w8, [sp, #68]
subs w8, w8, #128
cset w8, ge
tbnz w8, #0, LBB4_10
b LBB4_9
LBB4_9:
ldr x1, [sp, #112]
ldrsw x2, [sp, #68]
add x0, sp, #120
str x0, [sp, #40] ; 8-byte Folded Spill
mov x3, #128
bl ___memcpy_chk
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldrsw x9, [sp, #68]
add x8, x8, x9
strb wzr, [x8]
b LBB4_10
LBB4_10:
b LBB4_11
LBB4_11:
add x0, sp, #120
adrp x1, l_.str.22@PAGE
add x1, x1, l_.str.22@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_13
b LBB4_12
LBB4_12:
b LBB4_26
LBB4_13:
add x0, sp, #120
adrp x1, l_.str.23@PAGE
add x1, x1, l_.str.23@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_15
b LBB4_14
LBB4_14:
b LBB4_26
LBB4_15:
add x0, sp, #120
bl _strlen
subs x8, x0, #0
cset w8, ls
tbnz w8, #0, LBB4_26
b LBB4_16
LBB4_16:
adrp x8, _hist_count@PAGE
ldr w8, [x8, _hist_count@PAGEOFF]
subs w8, w8, #116
cset w8, le
tbnz w8, #0, LBB4_23
b LBB4_17
LBB4_17:
b LBB4_18
LBB4_18: ; =>This Inner Loop Header: Depth=1
adrp x8, _hist_count@PAGE
ldr w8, [x8, _hist_count@PAGEOFF]
subs w8, w8, #100
cset w8, le
tbnz w8, #0, LBB4_22
b LBB4_19
LBB4_19: ; in Loop: Header=BB4_18 Depth=1
adrp x8, _hist_base@PAGE
ldr x8, [x8, _hist_base@PAGEOFF]
str x8, [sp, #56]
ldr x8, [sp, #72]
ldr x9, [sp, #56]
ldr x9, [x9, #24]
subs x8, x8, x9
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #52]
ldr w8, [sp, #52]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB4_21
b LBB4_20
LBB4_20: ; in Loop: Header=BB4_18 Depth=1
ldr x8, [sp, #56]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
mov w0, #3
adrp x1, l_.str.24@PAGE
add x1, x1, l_.str.24@PAGEOFF
bl _syslog$DARWIN_EXTSN
ldr x8, [sp, #56]
ldr x0, [x8, #16]
bl _block_ip
b LBB4_21
LBB4_21: ; in Loop: Header=BB4_18 Depth=1
ldr x0, [sp, #56]
bl _delete_iph
b LBB4_18
LBB4_22:
b LBB4_23
LBB4_23:
ldr x1, [sp, #72]
add x0, sp, #120
bl _insert_iph
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_25
b LBB4_24
LBB4_24:
ldr x10, [sp, #104]
ldr x8, [sp, #96]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
add x8, sp, #120
str x8, [sp, #32] ; 8-byte Folded Spill
str x8, [x9, #16]
mov w0, #3
adrp x1, l_.str.25@PAGE
add x1, x1, l_.str.25@PAGEOFF
bl _syslog$DARWIN_EXTSN
ldr x0, [sp, #32] ; 8-byte Folded Reload
bl _block_ip
b LBB4_25
LBB4_25:
b LBB4_26
LBB4_26:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB4_28
b LBB4_27
LBB4_27:
bl ___stack_chk_fail
LBB4_28:
ldp x29, x30, [sp, #272] ; 16-byte Folded Reload
ldp x28, x27, [sp, #256] ; 16-byte Folded Reload
add sp, sp, #288
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function block_ip
_block_ip: ; @block_ip
.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, _args@PAGE
adrp x9, _args@PAGE
add x9, x9, _args@PAGEOFF
str x9, [sp, #16] ; 8-byte Folded Spill
adrp x9, ___stack_chk_guard@GOTPAGE
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
ldr x9, [x9]
stur x9, [x29, #-8]
str x0, [sp, #32]
str wzr, [sp, #28]
ldr w8, [x8, _args@PAGEOFF]
str w8, [sp, #24] ; 4-byte Folded Spill
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
ldr w8, [sp, #24] ; 4-byte Folded Reload
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB5_3
b LBB5_4
LBB5_2:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x10, [x8, #8]
ldr x8, [sp, #32]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
add x0, sp, #40
mov x3, #128
mov x1, x3
mov w2, #0
adrp x4, l_.str.26@PAGE
add x4, x4, l_.str.26@PAGEOFF
bl ___snprintf_chk
str w0, [sp, #28]
b LBB5_4
LBB5_3:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x10, [x8, #8]
ldr x8, [sp, #32]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
add x0, sp, #40
mov x3, #128
mov x1, x3
mov w2, #0
adrp x4, l_.str.27@PAGE
add x4, x4, l_.str.27@PAGEOFF
bl ___snprintf_chk
str w0, [sp, #28]
b LBB5_4
LBB5_4:
ldr w8, [sp, #28]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB5_7
b LBB5_5
LBB5_5:
add x0, sp, #40
bl _strlen
mov x8, x0
ldr w9, [sp, #28]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB5_7
b LBB5_6
LBB5_6:
add x0, sp, #40
bl _system
b LBB5_8
LBB5_7:
mov w0, #3
adrp x1, l_.str.28@PAGE
add x1, x1, l_.str.28@PAGEOFF
bl _syslog$DARWIN_EXTSN
b LBB5_8
LBB5_8:
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB5_10
b LBB5_9
LBB5_9:
bl ___stack_chk_fail
LBB5_10:
ldp x29, x30, [sp, #176] ; 16-byte Folded Reload
add sp, sp, #192
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function delete_iph
_delete_iph: ; @delete_iph
.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 x8, _hist_base@PAGE
add x8, x8, _hist_base@PAGEOFF
str x8, [sp, #16]
b LBB6_1
LBB6_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
str x8, [sp, #8]
ldur x9, [x29, #-8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB6_3
b LBB6_2
LBB6_2: ; in Loop: Header=BB6_1 Depth=1
ldr x8, [sp, #8]
str x8, [sp, #16]
b LBB6_1
LBB6_3:
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [sp, #16]
str x8, [x9]
adrp x8, _hist_tail@PAGE
ldr x8, [x8, _hist_tail@PAGEOFF]
ldur x9, [x29, #-8]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB6_5
b LBB6_4
LBB6_4:
ldr x8, [sp, #16]
adrp x9, _hist_tail@PAGE
str x8, [x9, _hist_tail@PAGEOFF]
b LBB6_5
LBB6_5:
ldur x8, [x29, #-8]
ldr w8, [x8, #32]
and w9, w8, #0x3ff
adrp x8, _hist_hash@PAGE
add x8, x8, _hist_hash@PAGEOFF
add x8, x8, w9, sxtw #3
str x8, [sp, #16]
b LBB6_6
LBB6_6: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
str x8, [sp, #8]
ldur x9, [x29, #-8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB6_8
b LBB6_7
LBB6_7: ; in Loop: Header=BB6_6 Depth=1
ldr x8, [sp, #8]
add x8, x8, #8
str x8, [sp, #16]
b LBB6_6
LBB6_8:
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldr x9, [sp, #16]
str x8, [x9]
adrp x9, _hist_count@PAGE
ldr w8, [x9, _hist_count@PAGEOFF]
subs w8, w8, #1
str w8, [x9, _hist_count@PAGEOFF]
ldur x0, [x29, #-8]
bl _free
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function insert_iph
_insert_iph: ; @insert_iph
.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]
mov x0, #40
bl _malloc
str x0, [sp, #24]
ldur x0, [x29, #-8]
bl _iphash
ldr x8, [sp, #24]
str w0, [x8, #32]
ldur x0, [x29, #-8]
bl _strdup
ldr x8, [sp, #24]
str x0, [x8, #16]
ldur x8, [x29, #-16]
ldr x9, [sp, #24]
str x8, [x9, #24]
ldr x8, [sp, #24]
ldr w8, [x8, #32]
and w8, w8, #0x3ff
adrp x9, _hist_hash@PAGE
add x9, x9, _hist_hash@PAGEOFF
ldr x8, [x9, w8, sxtw #3]
ldr x10, [sp, #24]
str x8, [x10, #8]
ldr x8, [sp, #24]
ldr x10, [sp, #24]
ldr w10, [x10, #32]
and w10, w10, #0x3ff
str x8, [x9, w10, sxtw #3]
ldr x8, [sp, #24]
; kill: def $x9 killed $xzr
str xzr, [x8]
ldr x8, [sp, #24]
adrp x9, _hist_tail@PAGE
ldr x10, [x9, _hist_tail@PAGEOFF]
str x8, [x10]
ldr x8, [sp, #24]
str x8, [x9, _hist_tail@PAGEOFF]
adrp x8, _hist_count@PAGE
ldr w9, [x8, _hist_count@PAGEOFF]
add w9, w9, #1
str w9, [x8, _hist_count@PAGEOFF]
ldr w8, [x8, _hist_count@PAGEOFF]
subs w8, w8, #116
cset w8, le
tbnz w8, #0, LBB7_5
b LBB7_1
LBB7_1:
b LBB7_2
LBB7_2: ; =>This Inner Loop Header: Depth=1
adrp x8, _hist_count@PAGE
ldr w8, [x8, _hist_count@PAGEOFF]
subs w8, w8, #100
cset w8, le
tbnz w8, #0, LBB7_4
b LBB7_3
LBB7_3: ; in Loop: Header=BB7_2 Depth=1
adrp x8, _hist_base@PAGE
ldr x0, [x8, _hist_base@PAGEOFF]
bl _delete_iph
b LBB7_2
LBB7_4:
b LBB7_5
LBB7_5:
str wzr, [sp, #12]
ldr x8, [sp, #24]
ldr w8, [x8, #32]
and w9, w8, #0x3ff
adrp x8, _hist_hash@PAGE
add x8, x8, _hist_hash@PAGEOFF
ldr x8, [x8, w9, sxtw #3]
str x8, [sp, #16]
b LBB7_6
LBB7_6: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB7_16
b LBB7_7
LBB7_7: ; in Loop: Header=BB7_6 Depth=1
ldr x8, [sp, #16]
ldr w8, [x8, #32]
ldr x9, [sp, #24]
ldr w9, [x9, #32]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB7_14
b LBB7_8
LBB7_8: ; in Loop: Header=BB7_6 Depth=1
ldr x8, [sp, #16]
ldr x0, [x8, #16]
ldr x8, [sp, #24]
ldr x1, [x8, #16]
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_14
b LBB7_9
LBB7_9: ; in Loop: Header=BB7_6 Depth=1
ldur x8, [x29, #-16]
ldr x9, [sp, #24]
ldr x9, [x9, #24]
subs x8, x8, x9
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #3600
cset w8, ge
tbnz w8, #0, LBB7_13
b LBB7_10
LBB7_10: ; in Loop: Header=BB7_6 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #5
cset w8, le
tbnz w8, #0, LBB7_12
b LBB7_11
LBB7_11:
b LBB7_16
LBB7_12: ; in Loop: Header=BB7_6 Depth=1
b LBB7_13
LBB7_13: ; in Loop: Header=BB7_6 Depth=1
b LBB7_14
LBB7_14: ; in Loop: Header=BB7_6 Depth=1
b LBB7_15
LBB7_15: ; in Loop: Header=BB7_6 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #8]
str x8, [sp, #16]
b LBB7_6
LBB7_16:
ldr w8, [sp, #12]
subs w8, w8, #5
cset w8, gt
and w0, w8, #0x1
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function iphash
_iphash: ; @iphash
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
mov w8, #22173
movk w8, #41395, lsl #16
str w8, [sp, #4]
b LBB8_1
LBB8_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB8_3
b LBB8_2
LBB8_2: ; in Loop: Header=BB8_1 Depth=1
ldr w9, [sp, #4]
ldr x8, [sp, #8]
ldrsb w8, [x8]
eor w8, w8, w9, lsl #5
ldr w9, [sp, #4]
eor w8, w8, w9, asr #23
str w8, [sp, #4]
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB8_1
LBB8_3:
ldr w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_args,24,3 ; @args
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "sshlockout: invalid argument"
l_.str.1: ; @.str.1
.asciz "sshlockout"
l_.str.2: ; @.str.2
.asciz "sshlockout starting up"
l_.str.3: ; @.str.3
.asciz "/dev/null"
l_.str.4: ; @.str.4
.asciz "w"
l_.str.5: ; @.str.5
.asciz "sshd"
l_.str.6: ; @.str.6
.asciz "sshlockout exiting"
l_.str.7: ; @.str.7
.asciz "-pf"
l_.str.8: ; @.str.8
.asciz "-ipfw"
l_.str.9: ; @.str.9
.asciz "Failed password for root from"
l_.str.10: ; @.str.10
.asciz "Failed password for admin from"
l_.str.11: ; @.str.11
.asciz "password login"
l_.str.12: ; @.str.12
.asciz "root or admin"
l_.str.13: ; @.str.13
.asciz "Failed password for invalid user"
l_.str.14: ; @.str.14
.asciz " from"
l_.str.15: ; @.str.15
.asciz "an invalid user"
l_.str.16: ; @.str.16
.asciz "Invalid user"
l_.str.17: ; @.str.17
.asciz "login"
l_.str.18: ; @.str.18
.asciz "Received disconnect from "
l_.str.19: ; @.str.19
.asciz "[preauth]"
l_.str.20: ; @.str.20
.asciz "preauth"
l_.str.21: ; @.str.21
.asciz "%d.%d.%d.%d"
l_.str.22: ; @.str.22
.asciz "127.0.0.1"
l_.str.23: ; @.str.23
.asciz "::1"
.zerofill __DATA,__bss,_hist_count,4,2 ; @hist_count
.zerofill __DATA,__bss,_hist_base,8,3 ; @hist_base
l_.str.24: ; @.str.24
.asciz "Detected overflow attack, locking out %s\n"
l_.str.25: ; @.str.25
.asciz "Detected ssh %s attempt for %s, locking out %s\n"
l_.str.26: ; @.str.26
.asciz "pfctl -t%s -Tadd %s"
l_.str.27: ; @.str.27
.asciz "ipfw add %s deny tcp from %s to me 22"
l_.str.28: ; @.str.28
.asciz "sshlockout: invalid command"
.section __DATA,__data
.p2align 3 ; @hist_tail
_hist_tail:
.quad _hist_base
.zerofill __DATA,__bss,_hist_hash,8192,3 ; @hist_hash
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $1072, %rsp ## imm = 0x430
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -1044(%rbp)
movl %edi, -1048(%rbp)
movq %rsi, -1056(%rbp)
movl $0, _args(%rip)
movq $0, _args+8(%rip)
movq $0, _args+16(%rip)
movl -1048(%rbp), %edi
movq -1056(%rbp), %rsi
callq _parse_args
testb $1, %al
jne LBB0_2
## %bb.1:
movl $3, %edi
leaq L_.str(%rip), %rsi
movb $0, %al
callq _syslog$DARWIN_EXTSN
movl $1, -1044(%rbp)
jmp LBB0_8
LBB0_2:
callq _init_iphist
leaq L_.str.1(%rip), %rdi
movl $3, %esi
movl $32, %edx
callq _openlog
movl $3, %edi
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _syslog$DARWIN_EXTSN
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdx
leaq L_.str.3(%rip), %rdi
leaq L_.str.4(%rip), %rsi
callq _freopen
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdx
leaq L_.str.3(%rip), %rdi
leaq L_.str.4(%rip), %rsi
callq _freopen
LBB0_3: ## =>This Inner Loop Header: Depth=1
leaq -1040(%rbp), %rdi
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rdx
movl $1024, %esi ## imm = 0x400
callq _fgets
cmpq $0, %rax
je LBB0_7
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
leaq -1040(%rbp), %rdi
leaq L_.str.5(%rip), %rsi
callq _strstr
cmpq $0, %rax
jne LBB0_6
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_3
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
leaq -1040(%rbp), %rdi
callq _checkline
jmp LBB0_3
LBB0_7:
movl $3, %edi
leaq L_.str.6(%rip), %rsi
movb $0, %al
callq _syslog$DARWIN_EXTSN
movl $0, -1044(%rbp)
LBB0_8:
movl -1044(%rbp), %eax
movl %eax, -1060(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_10
## %bb.9:
movl -1060(%rbp), %eax ## 4-byte Reload
addq $1072, %rsp ## imm = 0x430
popq %rbp
retq
LBB0_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function parse_args
_parse_args: ## @parse_args
.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, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $2, -8(%rbp)
jl LBB1_29
## %bb.1:
movq -16(%rbp), %rax
cmpq $0, 8(%rax)
je LBB1_29
## %bb.2:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str.7(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB1_10
## %bb.3:
movq -16(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -24(%rbp)
cmpl $3, -8(%rbp)
jne LBB1_9
## %bb.4:
cmpq $0, -24(%rbp)
je LBB1_9
## %bb.5:
movq -24(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jbe LBB1_8
## %bb.6:
movq -24(%rbp), %rdi
callq _strlen
cmpq $20, %rax
jae LBB1_8
## %bb.7:
movl $1, _args(%rip)
movq -24(%rbp), %rax
movq %rax, _args+8(%rip)
movq $0, _args+16(%rip)
movb $1, -1(%rbp)
jmp LBB1_30
LBB1_8:
jmp LBB1_9
LBB1_9:
jmp LBB1_10
LBB1_10:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str.8(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB1_28
## %bb.11:
movq -16(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -32(%rbp)
cmpl $3, -8(%rbp)
jne LBB1_27
## %bb.12:
cmpq $0, -32(%rbp)
je LBB1_27
## %bb.13:
movq -32(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jbe LBB1_26
## %bb.14:
movq -32(%rbp), %rdi
callq _strlen
cmpq $5, %rax
ja LBB1_26
## %bb.15:
movq -32(%rbp), %rax
movq %rax, -40(%rbp)
LBB1_16: ## =>This Inner Loop Header: Depth=1
movq -40(%rbp), %rax
cmpb $0, (%rax)
je LBB1_21
## %bb.17: ## in Loop: Header=BB1_16 Depth=1
movq -40(%rbp), %rax
movsbl (%rax), %edi
callq _isdigit
cmpl $0, %eax
jne LBB1_19
## %bb.18:
movb $0, -1(%rbp)
jmp LBB1_30
LBB1_19: ## in Loop: Header=BB1_16 Depth=1
jmp LBB1_20
LBB1_20: ## in Loop: Header=BB1_16 Depth=1
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
jmp LBB1_16
LBB1_21:
movq -32(%rbp), %rdi
callq _atoi
cmpl $1, %eax
jge LBB1_23
## %bb.22:
movb $0, -1(%rbp)
jmp LBB1_30
LBB1_23:
movq -32(%rbp), %rdi
callq _atoi
cmpl $65535, %eax ## imm = 0xFFFF
jle LBB1_25
## %bb.24:
movb $0, -1(%rbp)
jmp LBB1_30
LBB1_25:
movl $2, _args(%rip)
movq -32(%rbp), %rax
movq %rax, _args+8(%rip)
movq $0, _args+16(%rip)
movb $1, -1(%rbp)
jmp LBB1_30
LBB1_26:
jmp LBB1_27
LBB1_27:
jmp LBB1_28
LBB1_28:
jmp LBB1_29
LBB1_29:
movb $0, -1(%rbp)
LBB1_30:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function init_iphist
_init_iphist: ## @init_iphist
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq $0, _hist_base(%rip)
leaq _hist_base(%rip), %rax
movq %rax, _hist_tail(%rip)
movl $0, -4(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
cmpl $1024, -4(%rbp) ## imm = 0x400
jge LBB2_4
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movslq -4(%rbp), %rcx
leaq _hist_hash(%rip), %rax
movq $0, (%rax,%rcx,8)
## %bb.3: ## in Loop: Header=BB2_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB2_1
LBB2_4:
movl $0, _hist_count(%rip)
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function checkline
_checkline: ## @checkline
.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), %rdi
leaq L_.str.9(%rip), %rsi
callq _strstr
movq %rax, -16(%rbp)
cmpq $0, %rax
jne LBB3_2
## %bb.1:
movq -8(%rbp), %rdi
leaq L_.str.10(%rip), %rsi
callq _strstr
movq %rax, -16(%rbp)
cmpq $0, %rax
je LBB3_10
LBB3_2:
jmp LBB3_3
LBB3_3: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, %ecx
movb %al, -17(%rbp) ## 1-byte Spill
je LBB3_7
## %bb.4: ## in Loop: Header=BB3_3 Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %ecx
movb $1, %al
cmpl $48, %ecx
movb %al, -18(%rbp) ## 1-byte Spill
jl LBB3_6
## %bb.5: ## in Loop: Header=BB3_3 Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setg %al
movb %al, -18(%rbp) ## 1-byte Spill
LBB3_6: ## in Loop: Header=BB3_3 Depth=1
movb -18(%rbp), %al ## 1-byte Reload
movb %al, -17(%rbp) ## 1-byte Spill
LBB3_7: ## in Loop: Header=BB3_3 Depth=1
movb -17(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB3_8
jmp LBB3_9
LBB3_8: ## in Loop: Header=BB3_3 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB3_3
LBB3_9:
movq -16(%rbp), %rdi
leaq L_.str.11(%rip), %rsi
leaq L_.str.12(%rip), %rdx
callq _checkip
jmp LBB3_37
LBB3_10:
movq -8(%rbp), %rdi
leaq L_.str.13(%rip), %rsi
callq _strstr
movq %rax, -16(%rbp)
cmpq $0, %rax
je LBB3_22
## %bb.11:
movq -16(%rbp), %rax
addq $32, %rax
movq %rax, -16(%rbp)
LBB3_12: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $32, %eax
jne LBB3_14
## %bb.13: ## in Loop: Header=BB3_12 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB3_12
LBB3_14:
jmp LBB3_15
LBB3_15: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, %ecx
movb %al, -19(%rbp) ## 1-byte Spill
je LBB3_17
## %bb.16: ## in Loop: Header=BB3_15 Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $32, %eax
setne %al
movb %al, -19(%rbp) ## 1-byte Spill
LBB3_17: ## in Loop: Header=BB3_15 Depth=1
movb -19(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB3_18
jmp LBB3_19
LBB3_18: ## in Loop: Header=BB3_15 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB3_15
LBB3_19:
movq -16(%rbp), %rdi
leaq L_.str.14(%rip), %rsi
movl $5, %edx
callq _strncmp
cmpl $0, %eax
jne LBB3_21
## %bb.20:
movq -16(%rbp), %rdi
addq $5, %rdi
leaq L_.str.11(%rip), %rsi
leaq L_.str.15(%rip), %rdx
callq _checkip
LBB3_21:
jmp LBB3_37
LBB3_22:
movq -8(%rbp), %rdi
leaq L_.str.16(%rip), %rsi
callq _strstr
movq %rax, -16(%rbp)
cmpq $0, %rax
je LBB3_34
## %bb.23:
movq -16(%rbp), %rax
addq $12, %rax
movq %rax, -16(%rbp)
LBB3_24: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $32, %eax
jne LBB3_26
## %bb.25: ## in Loop: Header=BB3_24 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB3_24
LBB3_26:
jmp LBB3_27
LBB3_27: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, %ecx
movb %al, -20(%rbp) ## 1-byte Spill
je LBB3_29
## %bb.28: ## in Loop: Header=BB3_27 Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $32, %eax
setne %al
movb %al, -20(%rbp) ## 1-byte Spill
LBB3_29: ## in Loop: Header=BB3_27 Depth=1
movb -20(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB3_30
jmp LBB3_31
LBB3_30: ## in Loop: Header=BB3_27 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB3_27
LBB3_31:
movq -16(%rbp), %rdi
leaq L_.str.14(%rip), %rsi
movl $5, %edx
callq _strncmp
cmpl $0, %eax
jne LBB3_33
## %bb.32:
movq -16(%rbp), %rdi
addq $5, %rdi
leaq L_.str.17(%rip), %rsi
leaq L_.str.15(%rip), %rdx
callq _checkip
LBB3_33:
jmp LBB3_37
LBB3_34:
movq -8(%rbp), %rdi
leaq L_.str.18(%rip), %rsi
callq _strstr
movq %rax, -16(%rbp)
cmpq $0, %rax
je LBB3_37
## %bb.35:
movq -8(%rbp), %rdi
leaq L_.str.19(%rip), %rsi
callq _strstr
cmpq $0, %rax
je LBB3_37
## %bb.36:
movq -16(%rbp), %rdi
addq $25, %rdi
leaq L_.str.20(%rip), %rsi
leaq L_.str.15(%rip), %rdx
callq _checkip
LBB3_37:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function checkip
_checkip: ## @checkip
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $240, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -152(%rbp)
movq %rsi, -160(%rbp)
movq %rdx, -168(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq _time
movq %rax, -192(%rbp)
movb $0, -144(%rbp)
movq -152(%rbp), %rdi
leaq L_.str.21(%rip), %rsi
leaq -172(%rbp), %rdx
leaq -176(%rbp), %rcx
leaq -180(%rbp), %r8
leaq -184(%rbp), %r9
movb $0, %al
callq _sscanf
cmpl $4, %eax
jne LBB4_2
## %bb.1:
leaq -144(%rbp), %rdi
movl -172(%rbp), %r9d
movl -176(%rbp), %r11d
movl -180(%rbp), %r10d
movl -184(%rbp), %eax
movl $128, %ecx
xorl %edx, %edx
leaq L_.str.21(%rip), %r8
movq %rcx, %rsi
movl %r11d, (%rsp)
movl %r10d, 8(%rsp)
movl %eax, 16(%rsp)
movb $0, %al
callq ___snprintf_chk
jmp LBB4_11
LBB4_2:
movl $0, -196(%rbp)
LBB4_3: ## =>This Inner Loop Header: Depth=1
movq -152(%rbp), %rax
movslq -196(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
movb $1, %al
cmpl $58, %ecx
movb %al, -213(%rbp) ## 1-byte Spill
je LBB4_5
## %bb.4: ## in Loop: Header=BB4_3 Depth=1
movq -152(%rbp), %rax
movslq -196(%rbp), %rcx
movsbl (%rax,%rcx), %edi
callq _isxdigit
cmpl $0, %eax
setne %al
movb %al, -213(%rbp) ## 1-byte Spill
LBB4_5: ## in Loop: Header=BB4_3 Depth=1
movb -213(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB4_6
jmp LBB4_7
LBB4_6: ## in Loop: Header=BB4_3 Depth=1
movl -196(%rbp), %eax
addl $1, %eax
movl %eax, -196(%rbp)
jmp LBB4_3
LBB4_7:
cmpl $0, -196(%rbp)
jle LBB4_10
## %bb.8:
cmpl $128, -196(%rbp)
jge LBB4_10
## %bb.9:
leaq -144(%rbp), %rdi
movq -152(%rbp), %rsi
movslq -196(%rbp), %rdx
movl $128, %ecx
callq ___memcpy_chk
movslq -196(%rbp), %rax
movb $0, -144(%rbp,%rax)
LBB4_10:
jmp LBB4_11
LBB4_11:
leaq -144(%rbp), %rdi
leaq L_.str.22(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB4_13
## %bb.12:
jmp LBB4_26
LBB4_13:
leaq -144(%rbp), %rdi
leaq L_.str.23(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB4_15
## %bb.14:
jmp LBB4_26
LBB4_15:
leaq -144(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jbe LBB4_26
## %bb.16:
cmpl $116, _hist_count(%rip)
jle LBB4_23
## %bb.17:
jmp LBB4_18
LBB4_18: ## =>This Inner Loop Header: Depth=1
cmpl $100, _hist_count(%rip)
jle LBB4_22
## %bb.19: ## in Loop: Header=BB4_18 Depth=1
movq _hist_base(%rip), %rax
movq %rax, -208(%rbp)
movq -192(%rbp), %rax
movq -208(%rbp), %rcx
subq 24(%rcx), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -212(%rbp)
cmpl $10, -212(%rbp)
jge LBB4_21
## %bb.20: ## in Loop: Header=BB4_18 Depth=1
movq -208(%rbp), %rax
movq 16(%rax), %rdx
movl $3, %edi
leaq L_.str.24(%rip), %rsi
movb $0, %al
callq _syslog$DARWIN_EXTSN
movq -208(%rbp), %rax
movq 16(%rax), %rdi
callq _block_ip
LBB4_21: ## in Loop: Header=BB4_18 Depth=1
movq -208(%rbp), %rdi
callq _delete_iph
jmp LBB4_18
LBB4_22:
jmp LBB4_23
LBB4_23:
leaq -144(%rbp), %rdi
movq -192(%rbp), %rsi
callq _insert_iph
cmpl $0, %eax
je LBB4_25
## %bb.24:
movq -160(%rbp), %rdx
movq -168(%rbp), %rcx
leaq -144(%rbp), %r8
movl $3, %edi
leaq L_.str.25(%rip), %rsi
movb $0, %al
callq _syslog$DARWIN_EXTSN
leaq -144(%rbp), %rdi
callq _block_ip
LBB4_25:
jmp LBB4_26
LBB4_26:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB4_28
## %bb.27:
addq $240, %rsp
popq %rbp
retq
LBB4_28:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function block_ip
_block_ip: ## @block_ip
.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)
movq %rdi, -152(%rbp)
movl $0, -156(%rbp)
movl _args(%rip), %eax
movl %eax, -160(%rbp) ## 4-byte Spill
subl $1, %eax
je LBB5_1
jmp LBB5_10
LBB5_10:
movl -160(%rbp), %eax ## 4-byte Reload
subl $2, %eax
je LBB5_2
jmp LBB5_3
LBB5_1:
leaq -144(%rbp), %rdi
movq _args+8(%rip), %r9
movq -152(%rbp), %rax
movl $128, %ecx
xorl %edx, %edx
leaq L_.str.26(%rip), %r8
movq %rcx, %rsi
movq %rax, (%rsp)
movb $0, %al
callq ___snprintf_chk
movl %eax, -156(%rbp)
jmp LBB5_3
LBB5_2:
leaq -144(%rbp), %rdi
movq _args+8(%rip), %r9
movq -152(%rbp), %rax
movl $128, %ecx
xorl %edx, %edx
leaq L_.str.27(%rip), %r8
movq %rcx, %rsi
movq %rax, (%rsp)
movb $0, %al
callq ___snprintf_chk
movl %eax, -156(%rbp)
LBB5_3:
cmpl $0, -156(%rbp)
jle LBB5_6
## %bb.4:
leaq -144(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
cmpl -156(%rbp), %eax
jne LBB5_6
## %bb.5:
leaq -144(%rbp), %rdi
callq _system
jmp LBB5_7
LBB5_6:
movl $3, %edi
leaq L_.str.28(%rip), %rsi
movb $0, %al
callq _syslog$DARWIN_EXTSN
LBB5_7:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB5_9
## %bb.8:
addq $176, %rsp
popq %rbp
retq
LBB5_9:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function delete_iph
_delete_iph: ## @delete_iph
.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)
leaq _hist_base(%rip), %rax
movq %rax, -16(%rbp)
LBB6_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
cmpq -8(%rbp), %rax
je LBB6_3
## %bb.2: ## in Loop: Header=BB6_1 Depth=1
movq -24(%rbp), %rax
movq %rax, -16(%rbp)
jmp LBB6_1
LBB6_3:
movq -8(%rbp), %rax
movq (%rax), %rcx
movq -16(%rbp), %rax
movq %rcx, (%rax)
movq _hist_tail(%rip), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB6_5
## %bb.4:
movq -16(%rbp), %rax
movq %rax, _hist_tail(%rip)
LBB6_5:
movq -8(%rbp), %rax
movl 32(%rax), %eax
andl $1023, %eax ## imm = 0x3FF
movslq %eax, %rcx
leaq _hist_hash(%rip), %rax
shlq $3, %rcx
addq %rcx, %rax
movq %rax, -16(%rbp)
LBB6_6: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
cmpq -8(%rbp), %rax
je LBB6_8
## %bb.7: ## in Loop: Header=BB6_6 Depth=1
movq -24(%rbp), %rax
addq $8, %rax
movq %rax, -16(%rbp)
jmp LBB6_6
LBB6_8:
movq -8(%rbp), %rax
movq 8(%rax), %rcx
movq -16(%rbp), %rax
movq %rcx, (%rax)
movl _hist_count(%rip), %eax
addl $-1, %eax
movl %eax, _hist_count(%rip)
movq -8(%rbp), %rdi
callq _free
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function insert_iph
_insert_iph: ## @insert_iph
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $40, %edi
callq _malloc
movq %rax, -24(%rbp)
movq -8(%rbp), %rdi
callq _iphash
movl %eax, %ecx
movq -24(%rbp), %rax
movl %ecx, 32(%rax)
movq -8(%rbp), %rdi
callq _strdup
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, 16(%rax)
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 24(%rax)
movq -24(%rbp), %rax
movl 32(%rax), %eax
andl $1023, %eax ## imm = 0x3FF
movslq %eax, %rcx
leaq _hist_hash(%rip), %rax
movq (%rax,%rcx,8), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rdx
movq -24(%rbp), %rax
movl 32(%rax), %eax
andl $1023, %eax ## imm = 0x3FF
movslq %eax, %rcx
leaq _hist_hash(%rip), %rax
movq %rdx, (%rax,%rcx,8)
movq -24(%rbp), %rax
movq $0, (%rax)
movq -24(%rbp), %rcx
movq _hist_tail(%rip), %rax
movq %rcx, (%rax)
movq -24(%rbp), %rax
movq %rax, _hist_tail(%rip)
movl _hist_count(%rip), %eax
addl $1, %eax
movl %eax, _hist_count(%rip)
cmpl $116, _hist_count(%rip)
jle LBB7_5
## %bb.1:
jmp LBB7_2
LBB7_2: ## =>This Inner Loop Header: Depth=1
cmpl $100, _hist_count(%rip)
jle LBB7_4
## %bb.3: ## in Loop: Header=BB7_2 Depth=1
movq _hist_base(%rip), %rdi
callq _delete_iph
jmp LBB7_2
LBB7_4:
jmp LBB7_5
LBB7_5:
movl $0, -36(%rbp)
movq -24(%rbp), %rax
movl 32(%rax), %eax
andl $1023, %eax ## imm = 0x3FF
movslq %eax, %rcx
leaq _hist_hash(%rip), %rax
movq (%rax,%rcx,8), %rax
movq %rax, -32(%rbp)
LBB7_6: ## =>This Inner Loop Header: Depth=1
cmpq $0, -32(%rbp)
je LBB7_16
## %bb.7: ## in Loop: Header=BB7_6 Depth=1
movq -32(%rbp), %rax
movl 32(%rax), %eax
movq -24(%rbp), %rcx
cmpl 32(%rcx), %eax
jne LBB7_14
## %bb.8: ## in Loop: Header=BB7_6 Depth=1
movq -32(%rbp), %rax
movq 16(%rax), %rdi
movq -24(%rbp), %rax
movq 16(%rax), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB7_14
## %bb.9: ## in Loop: Header=BB7_6 Depth=1
movq -16(%rbp), %rax
movq -24(%rbp), %rcx
subq 24(%rcx), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -40(%rbp)
cmpl $3600, -40(%rbp) ## imm = 0xE10
jge LBB7_13
## %bb.10: ## in Loop: Header=BB7_6 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
cmpl $5, -36(%rbp)
jle LBB7_12
## %bb.11:
jmp LBB7_16
LBB7_12: ## in Loop: Header=BB7_6 Depth=1
jmp LBB7_13
LBB7_13: ## in Loop: Header=BB7_6 Depth=1
jmp LBB7_14
LBB7_14: ## in Loop: Header=BB7_6 Depth=1
jmp LBB7_15
LBB7_15: ## in Loop: Header=BB7_6 Depth=1
movq -32(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
jmp LBB7_6
LBB7_16:
cmpl $5, -36(%rbp)
setg %al
andb $1, %al
movzbl %al, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function iphash
_iphash: ## @iphash
.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 $-1582082403, -12(%rbp) ## imm = 0xA1B3569D
LBB8_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
cmpb $0, (%rax)
je LBB8_3
## %bb.2: ## in Loop: Header=BB8_1 Depth=1
movl -12(%rbp), %eax
shll $5, %eax
movq -8(%rbp), %rcx
movsbl (%rcx), %ecx
xorl %ecx, %eax
movl -12(%rbp), %ecx
sarl $23, %ecx
xorl %ecx, %eax
movl %eax, -12(%rbp)
movq -8(%rbp), %rax
addq $1, %rax
movq %rax, -8(%rbp)
jmp LBB8_1
LBB8_3:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_args,24,3 ## @args
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "sshlockout: invalid argument"
L_.str.1: ## @.str.1
.asciz "sshlockout"
L_.str.2: ## @.str.2
.asciz "sshlockout starting up"
L_.str.3: ## @.str.3
.asciz "/dev/null"
L_.str.4: ## @.str.4
.asciz "w"
L_.str.5: ## @.str.5
.asciz "sshd"
L_.str.6: ## @.str.6
.asciz "sshlockout exiting"
L_.str.7: ## @.str.7
.asciz "-pf"
L_.str.8: ## @.str.8
.asciz "-ipfw"
L_.str.9: ## @.str.9
.asciz "Failed password for root from"
L_.str.10: ## @.str.10
.asciz "Failed password for admin from"
L_.str.11: ## @.str.11
.asciz "password login"
L_.str.12: ## @.str.12
.asciz "root or admin"
L_.str.13: ## @.str.13
.asciz "Failed password for invalid user"
L_.str.14: ## @.str.14
.asciz " from"
L_.str.15: ## @.str.15
.asciz "an invalid user"
L_.str.16: ## @.str.16
.asciz "Invalid user"
L_.str.17: ## @.str.17
.asciz "login"
L_.str.18: ## @.str.18
.asciz "Received disconnect from "
L_.str.19: ## @.str.19
.asciz "[preauth]"
L_.str.20: ## @.str.20
.asciz "preauth"
L_.str.21: ## @.str.21
.asciz "%d.%d.%d.%d"
L_.str.22: ## @.str.22
.asciz "127.0.0.1"
L_.str.23: ## @.str.23
.asciz "::1"
.zerofill __DATA,__bss,_hist_count,4,2 ## @hist_count
.zerofill __DATA,__bss,_hist_base,8,3 ## @hist_base
L_.str.24: ## @.str.24
.asciz "Detected overflow attack, locking out %s\n"
L_.str.25: ## @.str.25
.asciz "Detected ssh %s attempt for %s, locking out %s\n"
L_.str.26: ## @.str.26
.asciz "pfctl -t%s -Tadd %s"
L_.str.27: ## @.str.27
.asciz "ipfw add %s deny tcp from %s to me 22"
L_.str.28: ## @.str.28
.asciz "sshlockout: invalid command"
.section __DATA,__data
.p2align 3 ## @hist_tail
_hist_tail:
.quad _hist_base
.zerofill __DATA,__bss,_hist_hash,8192,4 ## @hist_hash
.subsections_via_symbols
| the_stack_data/167330596.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/28263475.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, #40]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
; Child Loop BB0_7 Depth 2
ldr w8, [sp, #40]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_12
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w0, [sp, #40]
bl _srand
add x0, sp, #48
mov w1, #0
mov x2, #40
bl _memset
str wzr, [sp, #36]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #36]
subs w8, w8, #1000
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
bl _rand
mov w9, #10
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
add w8, w8, #1
str w8, [sp, #32]
ldr w8, [sp, #32]
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_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr w9, [sp, #40]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
str wzr, [sp, #28]
b LBB0_7
LBB0_7: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #28]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=2
ldr w8, [sp, #28]
add w11, w8, #1
ldrsw x9, [sp, #28]
add x8, sp, #48
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
; implicit-def: $x10
mov x10, x11
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_7 Depth=2
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_7
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
mov w0, #10
bl _putchar
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #40]
add w8, w8, #1
str w8, [sp, #40]
b LBB0_1
LBB0_12:
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
bl ___stack_chk_fail
LBB0_14:
mov w0, #0
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "seed: %1d\n"
l_.str.1: ; @.str.1
.asciz "%2d: %4d\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, -56(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
## Child Loop BB0_7 Depth 2
cmpl $10, -56(%rbp)
jge LBB0_12
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -56(%rbp), %edi
callq _srand
leaq -48(%rbp), %rdi
xorl %esi, %esi
movl $40, %edx
callq _memset
movl $0, -60(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $1000, -60(%rbp) ## imm = 0x3E8
jge LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
callq _rand
movl $10, %ecx
cltd
idivl %ecx
addl $1, %edx
movl %edx, -64(%rbp)
movl -64(%rbp), %eax
subl $1, %eax
cltq
movl -48(%rbp,%rax,4), %ecx
addl $1, %ecx
movl %ecx, -48(%rbp,%rax,4)
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -60(%rbp), %eax
addl $1, %eax
movl %eax, -60(%rbp)
jmp LBB0_3
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movl -56(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -68(%rbp)
LBB0_7: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $10, -68(%rbp)
jge LBB0_10
## %bb.8: ## in Loop: Header=BB0_7 Depth=2
movl -68(%rbp), %esi
addl $1, %esi
movslq -68(%rbp), %rax
movl -48(%rbp,%rax,4), %edx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.9: ## in Loop: Header=BB0_7 Depth=2
movl -68(%rbp), %eax
addl $1, %eax
movl %eax, -68(%rbp)
jmp LBB0_7
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movl $10, %edi
callq _putchar
## %bb.11: ## in Loop: Header=BB0_1 Depth=1
movl -56(%rbp), %eax
addl $1, %eax
movl %eax, -56(%rbp)
jmp LBB0_1
LBB0_12:
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 $80, %rsp
popq %rbp
retq
LBB0_14:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "seed: %1d\n"
L_.str.1: ## @.str.1
.asciz "%2d: %4d\n"
.subsections_via_symbols
| the_stack_data/12638417.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/64222.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, #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
sub x8, x29, #80
str x8, [sp, #56] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #68]
sub x0, x29, #80
str x0, [sp, #40] ; 8-byte Folded Spill
adrp x1, l___const.main.me@PAGE
add x1, x1, l___const.main.me@PAGEOFF
mov x2, #72
str x2, [sp, #32] ; 8-byte Folded Spill
bl _memcpy
ldr x2, [sp, #32] ; 8-byte Folded Reload
add x0, sp, #72
str x0, [sp, #48] ; 8-byte Folded Spill
adrp x1, l___const.main.you@PAGE
add x1, x1, l___const.main.you@PAGEOFF
bl _memcpy
ldr x12, [sp, #40] ; 8-byte Folded Reload
ldr x10, [sp, #48] ; 8-byte Folded Reload
add x11, x12, #30
add x8, x10, #30
mov x9, sp
str x12, [x9]
str x11, [x9, #8]
str x10, [x9, #16]
str x8, [x9, #24]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur w9, [x29, #-20]
; 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, #56] ; 8-byte Folded Reload
ldr d0, [x8, #64]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl ___stack_chk_fail
LBB0_2:
mov w0, #0
ldp x29, x30, [sp, #224] ; 16-byte Folded Reload
add sp, sp, #240
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 3 ; @__const.main.me
l___const.main.me:
.asciz "Petra\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.asciz "Bonfert-Taylor\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.long 1989 ; 0x7c5
.quad 0x400c000000000000 ; double 3.5
.p2align 3 ; @__const.main.you
l___const.main.you:
.asciz "Remi\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.asciz "Sharrock\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.long 2005 ; 0x7d5
.quad 0x400c000000000000 ; double 3.5
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Names: %s %s, %s %s\n"
l_.str.1: ; @.str.1
.asciz "Year of birth: %d\n"
l_.str.2: ; @.str.2
.asciz "Average grade: %.2lf\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 $160, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -156(%rbp)
leaq -80(%rbp), %rdi
leaq l___const.main.me(%rip), %rsi
movl $72, %edx
callq _memcpy
leaq -152(%rbp), %rdi
leaq l___const.main.you(%rip), %rsi
movl $72, %edx
callq _memcpy
leaq -80(%rbp), %rsi
leaq -80(%rbp), %rdx
addq $30, %rdx
leaq -152(%rbp), %rcx
leaq -152(%rbp), %r8
addq $30, %r8
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -20(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_2
## %bb.1:
xorl %eax, %eax
addq $160, %rsp
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 3 ## @__const.main.me
l___const.main.me:
.asciz "Petra\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.asciz "Bonfert-Taylor\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.long 1989 ## 0x7c5
.quad 0x400c000000000000 ## double 3.5
.p2align 3 ## @__const.main.you
l___const.main.you:
.asciz "Remi\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.asciz "Sharrock\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.long 2005 ## 0x7d5
.quad 0x400c000000000000 ## double 3.5
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Names: %s %s, %s %s\n"
L_.str.1: ## @.str.1
.asciz "Year of birth: %d\n"
L_.str.2: ## @.str.2
.asciz "Average grade: %.2lf\n"
.subsections_via_symbols
| the_stack_data/116645.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/216324.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 0x412e848000000000 ; double 1.0E+6
.section __TEXT,__text,regular,pure_instructions
.globl _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, #28] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
bl _clock
ucvtf d0, x0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
str d1, [sp, #16] ; 8-byte Folded Spill
fdiv d0, d0, d1
stur d0, [x29, #-16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
bl _clock
ldr d1, [sp, #16] ; 8-byte Folded Reload
ucvtf d0, x0
fdiv d0, d0, d1
stur d0, [x29, #-24]
ldur d0, [x29, #-24]
ldur d1, [x29, #-16]
fsub d0, d0, d1
str d0, [sp, #32]
ldr d0, [sp, #32]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr w0, [sp, #28] ; 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 "Hello, World!\n"
l_.str.1: ; @.str.1
.asciz "Time Elapsed: %lf\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI0_0:
.quad 0x412e848000000000 ## double 1.0E+6
.section __TEXT,__literal16,16byte_literals
.p2align 4
LCPI0_1:
.long 1127219200 ## 0x43300000
.long 1160773632 ## 0x45300000
.long 0 ## 0x0
.long 0 ## 0x0
LCPI0_2:
.quad 0x4330000000000000 ## double 4503599627370496
.quad 0x4530000000000000 ## double 1.9342813113834067E+25
.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)
callq _clock
movq %rax, %xmm0
movaps LCPI0_1(%rip), %xmm1 ## xmm1 = [1127219200,1160773632,0,0]
movaps %xmm1, -64(%rbp) ## 16-byte Spill
punpckldq %xmm1, %xmm0 ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd LCPI0_2(%rip), %xmm1 ## xmm1 = [4.503599627370496E+15,1.9342813113834067E+25]
movaps %xmm1, -48(%rbp) ## 16-byte Spill
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0 ## xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movsd %xmm0, -16(%rbp)
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
callq _clock
movaps -64(%rbp), %xmm2 ## 16-byte Reload
movaps -48(%rbp), %xmm1 ## 16-byte Reload
movq %rax, %xmm0
punpckldq %xmm2, %xmm0 ## xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0 ## xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movsd %xmm0, -24(%rbp)
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
subsd -16(%rbp), %xmm0
movsd %xmm0, -32(%rbp)
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.1(%rip), %rdi
movb $1, %al
callq _printf
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Hello, World!\n"
L_.str.1: ## @.str.1
.asciz "Time Elapsed: %lf\n"
.subsections_via_symbols
| the_stack_data/218892267.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _thread_main ; -- Begin function thread_main
.p2align 2
_thread_main: ; @thread_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 x0, [x29, #-8]
ldur x8, [x29, #-8]
subs x8, x8, #0
cset w9, eq
; 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__.thread_main@PAGE
add x0, x0, l___func__.thread_main@PAGEOFF
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
mov w2, #37
adrp x3, l_.str.4@PAGE
add x3, x3, l_.str.4@PAGEOFF
bl ___assert_rtn
LBB0_2:
b LBB0_3
LBB0_3:
str wzr, [sp, #12]
b LBB0_4
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
adrp x9, _iter@PAGE
ldr w9, [x9, _iter@PAGEOFF]
subs w8, w8, w9
cset w8, hs
tbnz w8, #0, LBB0_10
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=1
adrp x8, _size@PAGE
ldr x0, [x8, _size@PAGEOFF]
bl _malloc
str x0, [sp, #16]
ldr x8, [sp, #16]
subs x8, x8, #0
cset w9, eq
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
adrp x0, l___func__.thread_main@PAGE
add x0, x0, l___func__.thread_main@PAGEOFF
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
mov w2, #42
adrp x3, l_.str.5@PAGE
add x3, x3, l_.str.5@PAGEOFF
bl ___assert_rtn
LBB0_7: ; in Loop: Header=BB0_4 Depth=1
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_4 Depth=1
ldr x0, [sp, #16]
adrp x8, _size@PAGE
ldr x2, [x8, _size@PAGEOFF]
mov w1, #0
mov x3, #-1
bl ___memset_chk
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_4
LBB0_10:
mov x0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _do_test ; -- Begin function do_test
.p2align 2
_do_test: ; @do_test
.cfi_startproc
; %bb.0:
sub sp, sp, #448
.cfi_def_cfa_offset 448
stp x28, x27, [sp, #416] ; 16-byte Folded Spill
stp x29, x30, [sp, #432] ; 16-byte Folded Spill
add x29, sp, #432
.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, #4]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
adrp x9, _nthread@PAGE
ldr w9, [x9, _nthread@PAGEOFF]
subs w8, w8, w9
cset w8, hs
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
add x3, sp, #4
ldr w8, [sp, #4]
mov x9, x8
add x8, sp, #8
add x0, x8, x9, lsl #3
mov x1, #0
adrp x2, _thread_main@PAGE
add x2, x2, _thread_main@PAGEOFF
bl _pthread_create
mov w0, #1000
bl _usleep
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:
str wzr, [sp, #4]
b LBB1_5
LBB1_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
adrp x9, _nthread@PAGE
ldr w9, [x9, _nthread@PAGEOFF]
subs w8, w8, w9
cset w8, hs
tbnz w8, #0, LBB1_8
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_5 Depth=1
ldr w8, [sp, #4]
mov x9, x8
add x8, sp, #8
ldr x0, [x8, x9, lsl #3]
mov x1, #0
bl _pthread_join
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_5 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB1_5
LBB1_8:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
bl ___stack_chk_fail
LBB1_10:
ldp x29, x30, [sp, #432] ; 16-byte Folded Reload
ldp x28, x27, [sp, #416] ; 16-byte Folded Reload
add sp, sp, #448
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, _optarg@GOTPAGE
ldr x8, [x8, _optarg@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-24]
stur w0, [x29, #-28]
str x1, [sp, #24]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldur w0, [x29, #-28]
ldr x1, [sp, #24]
sub x2, x29, #17
adrp x3, _opts@PAGE
add x3, x3, _opts@PAGEOFF
mov x4, #0
bl _getopt_long
str w0, [sp, #20]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB2_10
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #20]
str w8, [sp, #4] ; 4-byte Folded Spill
subs w8, w8, #99
cset w8, eq
tbnz w8, #0, LBB2_7
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #105
cset w8, eq
tbnz w8, #0, LBB2_6
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #115
cset w8, ne
tbnz w8, #0, LBB2_8
b LBB2_5
LBB2_5: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [x8]
bl _atoi
; implicit-def: $x8
mov x8, x0
sxtw x8, w8
adrp x9, _size@PAGE
str x8, [x9, _size@PAGEOFF]
b LBB2_9
LBB2_6: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [x8]
bl _atoi
adrp x8, _iter@PAGE
str w0, [x8, _iter@PAGEOFF]
b LBB2_9
LBB2_7: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x0, [x8]
bl _atoi
adrp x8, _nthread@PAGE
str w0, [x8, _nthread@PAGEOFF]
b LBB2_9
LBB2_8: ; in Loop: Header=BB2_1 Depth=1
b LBB2_9
LBB2_9: ; in Loop: Header=BB2_1 Depth=1
b LBB2_1
LBB2_10:
bl _do_test
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_12
b LBB2_11
LBB2_11:
bl ___stack_chk_fail
LBB2_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 "size"
l_.str.1: ; @.str.1
.asciz "iter"
l_.str.2: ; @.str.2
.asciz "thread"
.section __DATA,__data
.globl _opts ; @opts
.p2align 3
_opts:
.quad l_.str
.long 1 ; 0x1
.space 4
.quad 0
.long 115 ; 0x73
.space 4
.quad l_.str.1
.long 1 ; 0x1
.space 4
.quad 0
.long 105 ; 0x69
.space 4
.quad l_.str.2
.long 1 ; 0x1
.space 4
.quad 0
.long 99 ; 0x63
.space 4
.space 32
.globl _size ; @size
.p2align 3
_size:
.quad 65536 ; 0x10000
.globl _iter ; @iter
.p2align 2
_iter:
.long 10 ; 0xa
.globl _nthread ; @nthread
.p2align 2
_nthread:
.long 1 ; 0x1
.section __TEXT,__cstring,cstring_literals
l___func__.thread_main: ; @__func__.thread_main
.asciz "thread_main"
l_.str.3: ; @.str.3
.asciz "503361.c"
l_.str.4: ; @.str.4
.asciz "arg"
l_.str.5: ; @.str.5
.asciz "addr"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _thread_main ## -- Begin function thread_main
.p2align 4, 0x90
_thread_main: ## @thread_main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
cmpq $0, -8(%rbp)
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_2
## %bb.1:
leaq L___func__.thread_main(%rip), %rdi
leaq L_.str.3(%rip), %rsi
leaq L_.str.4(%rip), %rcx
movl $37, %edx
callq ___assert_rtn
LBB0_2:
jmp LBB0_3
LBB0_3:
movl $0, -20(%rbp)
LBB0_4: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl _iter(%rip), %eax
jae LBB0_10
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movq _size(%rip), %rdi
callq _malloc
movq %rax, -16(%rbp)
cmpq $0, -16(%rbp)
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_7
## %bb.6:
leaq L___func__.thread_main(%rip), %rdi
leaq L_.str.3(%rip), %rsi
leaq L_.str.5(%rip), %rcx
movl $42, %edx
callq ___assert_rtn
LBB0_7: ## in Loop: Header=BB0_4 Depth=1
jmp LBB0_8
LBB0_8: ## in Loop: Header=BB0_4 Depth=1
movq -16(%rbp), %rdi
movq _size(%rip), %rdx
xorl %esi, %esi
movq $-1, %rcx
callq ___memset_chk
## %bb.9: ## in Loop: Header=BB0_4 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_4
LBB0_10:
xorl %eax, %eax
## kill: def $rax killed $eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _do_test ## -- Begin function do_test
.p2align 4, 0x90
_do_test: ## @do_test
.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)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -420(%rbp), %eax
cmpl _nthread(%rip), %eax
jae LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -420(%rbp), %eax
## kill: def $rax killed $eax
leaq -416(%rbp), %rdi
shlq $3, %rax
addq %rax, %rdi
leaq -420(%rbp), %rcx
xorl %eax, %eax
movl %eax, %esi
leaq _thread_main(%rip), %rdx
callq _pthread_create
movl $1000, %edi ## imm = 0x3E8
callq _usleep
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -420(%rbp), %eax
addl $1, %eax
movl %eax, -420(%rbp)
jmp LBB1_1
LBB1_4:
movl $0, -420(%rbp)
LBB1_5: ## =>This Inner Loop Header: Depth=1
movl -420(%rbp), %eax
cmpl _nthread(%rip), %eax
jae LBB1_8
## %bb.6: ## in Loop: Header=BB1_5 Depth=1
movl -420(%rbp), %eax
## kill: def $rax killed $eax
movq -416(%rbp,%rax,8), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_join
## %bb.7: ## in Loop: Header=BB1_5 Depth=1
movl -420(%rbp), %eax
addl $1, %eax
movl %eax, -420(%rbp)
jmp LBB1_5
LBB1_8:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_10
## %bb.9:
addq $432, %rsp ## imm = 0x1B0
popq %rbp
retq
LBB1_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -24(%rbp)
movl %edi, -28(%rbp)
movq %rsi, -40(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %edi
movq -40(%rbp), %rsi
leaq -17(%rbp), %rdx
leaq _opts(%rip), %rcx
xorl %eax, %eax
movl %eax, %r8d
callq _getopt_long
movl %eax, -44(%rbp)
cmpl $-1, %eax
je LBB2_8
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movl -44(%rbp), %eax
movl %eax, -48(%rbp) ## 4-byte Spill
subl $99, %eax
je LBB2_5
jmp LBB2_11
LBB2_11: ## in Loop: Header=BB2_1 Depth=1
movl -48(%rbp), %eax ## 4-byte Reload
subl $105, %eax
je LBB2_4
jmp LBB2_12
LBB2_12: ## in Loop: Header=BB2_1 Depth=1
movl -48(%rbp), %eax ## 4-byte Reload
subl $115, %eax
jne LBB2_6
jmp LBB2_3
LBB2_3: ## in Loop: Header=BB2_1 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _atoi
cltq
movq %rax, _size(%rip)
jmp LBB2_7
LBB2_4: ## in Loop: Header=BB2_1 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _atoi
movl %eax, _iter(%rip)
jmp LBB2_7
LBB2_5: ## in Loop: Header=BB2_1 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _atoi
movl %eax, _nthread(%rip)
jmp LBB2_7
LBB2_6: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_7
LBB2_7: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_1
LBB2_8:
callq _do_test
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB2_10
## %bb.9:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
LBB2_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "size"
L_.str.1: ## @.str.1
.asciz "iter"
L_.str.2: ## @.str.2
.asciz "thread"
.section __DATA,__data
.globl _opts ## @opts
.p2align 4
_opts:
.quad L_.str
.long 1 ## 0x1
.space 4
.quad 0
.long 115 ## 0x73
.space 4
.quad L_.str.1
.long 1 ## 0x1
.space 4
.quad 0
.long 105 ## 0x69
.space 4
.quad L_.str.2
.long 1 ## 0x1
.space 4
.quad 0
.long 99 ## 0x63
.space 4
.space 32
.globl _size ## @size
.p2align 3
_size:
.quad 65536 ## 0x10000
.globl _iter ## @iter
.p2align 2
_iter:
.long 10 ## 0xa
.globl _nthread ## @nthread
.p2align 2
_nthread:
.long 1 ## 0x1
.section __TEXT,__cstring,cstring_literals
L___func__.thread_main: ## @__func__.thread_main
.asciz "thread_main"
L_.str.3: ## @.str.3
.asciz "503361.c"
L_.str.4: ## @.str.4
.asciz "arg"
L_.str.5: ## @.str.5
.asciz "addr"
.subsections_via_symbols
| the_stack_data/503361.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sigchld_handler ; -- Begin function sigchld_handler
.p2align 2
_sigchld_handler: ; @sigchld_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]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x0, #0
bl _wait
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
sub x1, x29, #24
adrp x8, _sigchld_handler@PAGE
add x8, x8, _sigchld_handler@PAGEOFF
stur x8, [x29, #-24]
stur wzr, [x29, #-16]
stur wzr, [x29, #-12]
mov w0, #20
mov x2, #0
bl _sigaction
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB1_2:
mov w8, #1
stur w8, [x29, #-32]
b LBB1_3
LBB1_3: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-32]
subs w8, w8, #10
cset w8, gt
tbnz w8, #0, LBB1_11
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=1
bl _fork
stur w0, [x29, #-28]
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB1_9
b LBB1_5
LBB1_5:
ldur w9, [x29, #-32]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #24] ; 8-byte Folded Spill
bl _getpid
ldr x8, [sp, #24] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x0
str x8, [x9, #8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB1_6
LBB1_6: ; =>This Inner Loop Header: Depth=1
mov w0, #15
bl _sleep
subs w8, w0, #0
cset w8, ne
and w9, w8, #0x1
str w9, [sp, #40]
tbz w8, #0, LBB1_8
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_6 Depth=1
ldr w0, [sp, #40]
bl _sleep
str w0, [sp, #40]
b LBB1_6
LBB1_8:
ldur w9, [x29, #-32]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #16] ; 8-byte Folded Spill
bl _getpid
ldr x8, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x0
str x8, [x9, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov w0, #0
bl _exit
LBB1_9: ; in Loop: Header=BB1_3 Depth=1
b LBB1_10
LBB1_10: ; in Loop: Header=BB1_3 Depth=1
ldur w8, [x29, #-32]
add w8, w8, #1
stur w8, [x29, #-32]
b LBB1_3
LBB1_11:
mov w8, #1
str w8, [sp, #36]
b LBB1_12
LBB1_12: ; =>This Loop Header: Depth=1
; Child Loop BB1_14 Depth 2
ldr w8, [sp, #36]
subs w8, w8, #4
cset w8, gt
tbnz w8, #0, LBB1_18
b LBB1_13
LBB1_13: ; in Loop: Header=BB1_12 Depth=1
ldr w9, [sp, #36]
; 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
mov w8, #20
stur w8, [x29, #-36]
b LBB1_14
LBB1_14: ; Parent Loop BB1_12 Depth=1
; => This Inner Loop Header: Depth=2
ldur w0, [x29, #-36]
bl _sleep
stur w0, [x29, #-36]
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_16
b LBB1_15
LBB1_15: ; in Loop: Header=BB1_14 Depth=2
b LBB1_14
LBB1_16: ; in Loop: Header=BB1_12 Depth=1
ldr w9, [sp, #36]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
ldr w9, [sp, #36]
; 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
b LBB1_17
LBB1_17: ; in Loop: Header=BB1_12 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB1_12
LBB1_18:
mov w0, #0
bl _exit
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Entering SIGCHLD handler ...\n"
l_.str.1: ; @.str.1
.asciz "Exiting SIGCHLD handler ...\n"
l_.str.2: ; @.str.2
.asciz "Unable to install SIGCHLD handler\n"
l_.str.3: ; @.str.3
.asciz "CHILD no. %d (PID=%d) working ... \n"
l_.str.4: ; @.str.4
.asciz "CHILD no. %d (PID=%d) exiting ... \n"
l_.str.5: ; @.str.5
.asciz "PARENT: working hard (task no. %d) ...\n"
l_.str.6: ; @.str.6
.asciz "PARENT: end of task no. %d\n"
l_.str.7: ; @.str.7
.asciz "PARENT: waiting for child no. %d ...\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sigchld_handler ## -- Begin function sigchld_handler
.p2align 4, 0x90
_sigchld_handler: ## @sigchld_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)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
movl %eax, %edi
callq _wait
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl $0, -4(%rbp)
leaq _sigchld_handler(%rip), %rax
movq %rax, -24(%rbp)
movl $0, -16(%rbp)
movl $0, -12(%rbp)
movl $20, %edi
leaq -24(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq _sigaction
cmpl $0, %eax
jge LBB1_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.2(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB1_2:
movl $1, -32(%rbp)
LBB1_3: ## =>This Inner Loop Header: Depth=1
cmpl $10, -32(%rbp)
jg LBB1_11
## %bb.4: ## in Loop: Header=BB1_3 Depth=1
callq _fork
movl %eax, -28(%rbp)
cmpl $0, %eax
jne LBB1_9
## %bb.5:
movl -32(%rbp), %eax
movl %eax, -48(%rbp) ## 4-byte Spill
callq _getpid
movl -48(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
LBB1_6: ## =>This Inner Loop Header: Depth=1
movl $15, %edi
callq _sleep
cmpl $0, %eax
setne %al
movb %al, %cl
andb $1, %cl
movzbl %cl, %ecx
movl %ecx, -40(%rbp)
testb $1, %al
jne LBB1_7
jmp LBB1_8
LBB1_7: ## in Loop: Header=BB1_6 Depth=1
movl -40(%rbp), %edi
callq _sleep
movl %eax, -40(%rbp)
jmp LBB1_6
LBB1_8:
movl -32(%rbp), %eax
movl %eax, -56(%rbp) ## 4-byte Spill
callq _getpid
movl -56(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq L_.str.4(%rip), %rdi
xorl %eax, %eax
movl %eax, -52(%rbp) ## 4-byte Spill
callq _printf
movl -52(%rbp), %edi ## 4-byte Reload
callq _exit
LBB1_9: ## in Loop: Header=BB1_3 Depth=1
jmp LBB1_10
LBB1_10: ## in Loop: Header=BB1_3 Depth=1
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB1_3
LBB1_11:
movl $1, -44(%rbp)
LBB1_12: ## =>This Loop Header: Depth=1
## Child Loop BB1_14 Depth 2
cmpl $4, -44(%rbp)
jg LBB1_18
## %bb.13: ## in Loop: Header=BB1_12 Depth=1
movl -44(%rbp), %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movl $20, -36(%rbp)
LBB1_14: ## Parent Loop BB1_12 Depth=1
## => This Inner Loop Header: Depth=2
movl -36(%rbp), %edi
callq _sleep
movl %eax, -36(%rbp)
cmpl $0, %eax
je LBB1_16
## %bb.15: ## in Loop: Header=BB1_14 Depth=2
jmp LBB1_14
LBB1_16: ## in Loop: Header=BB1_12 Depth=1
movl -44(%rbp), %esi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
movl -44(%rbp), %esi
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
## %bb.17: ## in Loop: Header=BB1_12 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB1_12
LBB1_18:
xorl %edi, %edi
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Entering SIGCHLD handler ...\n"
L_.str.1: ## @.str.1
.asciz "Exiting SIGCHLD handler ...\n"
L_.str.2: ## @.str.2
.asciz "Unable to install SIGCHLD handler\n"
L_.str.3: ## @.str.3
.asciz "CHILD no. %d (PID=%d) working ... \n"
L_.str.4: ## @.str.4
.asciz "CHILD no. %d (PID=%d) exiting ... \n"
L_.str.5: ## @.str.5
.asciz "PARENT: working hard (task no. %d) ...\n"
L_.str.6: ## @.str.6
.asciz "PARENT: end of task no. %d\n"
L_.str.7: ## @.str.7
.asciz "PARENT: waiting for child no. %d ...\n"
.subsections_via_symbols
| the_stack_data/1195643.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/70451377.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vowelCopy ; -- Begin function vowelCopy
.p2align 2
_vowelCopy: ; @vowelCopy
.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]
str wzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #8]
ldrsb w8, [x8, x9]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_15
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #8]
ldrsb w8, [x8, x9]
str w8, [sp, #4] ; 4-byte Folded Spill
subs w8, w8, #65
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #69
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #73
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #79
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #85
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #97
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #101
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #105
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #111
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, #117
cset w8, ne
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #8]
add x8, x8, x9
ldrb w8, [x8]
ldr x9, [sp, #24]
ldrsw x10, [sp, #12]
add x9, x9, x10
strb w8, [x9]
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_1 Depth=1
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB0_1
LBB0_15:
ldr x8, [sp, #24]
ldrsw x9, [sp, #12]
add x8, x8, x9
strb wzr, [x8]
ldr w0, [sp, #12]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #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
sub x0, x29, #124
str x0, [sp, #8] ; 8-byte Folded Spill
bl _gets
ldr x1, [sp, #8] ; 8-byte Folded Reload
add x0, sp, #32
str x0, [sp, #16] ; 8-byte Folded Spill
bl _vowelCopy
ldr x8, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
bl ___stack_chk_fail
LBB1_2:
mov w0, #0
ldp x29, x30, [sp, #256] ; 16-byte Folded Reload
ldp x28, x27, [sp, #240] ; 16-byte Folded Reload
add sp, sp, #272
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Please give a string: "
l_.str.1: ; @.str.1
.asciz "Output: %s\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vowelCopy ## -- Begin function vowelCopy
.p2align 4, 0x90
_vowelCopy: ## @vowelCopy
.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)
movl $0, -24(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movslq -24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0, %eax
je LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movslq -24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movl %eax, -28(%rbp) ## 4-byte Spill
subl $65, %eax
je LBB0_3
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax ## 4-byte Reload
subl $69, %eax
je LBB0_3
jmp LBB0_8
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax ## 4-byte Reload
subl $73, %eax
je LBB0_3
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax ## 4-byte Reload
subl $79, %eax
je LBB0_3
jmp LBB0_10
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax ## 4-byte Reload
subl $85, %eax
je LBB0_3
jmp LBB0_11
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax ## 4-byte Reload
subl $97, %eax
je LBB0_3
jmp LBB0_12
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax ## 4-byte Reload
subl $101, %eax
je LBB0_3
jmp LBB0_13
LBB0_13: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax ## 4-byte Reload
subl $105, %eax
je LBB0_3
jmp LBB0_14
LBB0_14: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax ## 4-byte Reload
subl $111, %eax
je LBB0_3
jmp LBB0_15
LBB0_15: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax ## 4-byte Reload
subl $117, %eax
jne LBB0_4
jmp LBB0_3
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movslq -24(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB0_1
LBB0_6:
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movb $0, (%rax,%rcx)
movl -20(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $240, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -228(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq -112(%rbp), %rdi
callq _gets
leaq -224(%rbp), %rdi
leaq -112(%rbp), %rsi
callq _vowelCopy
leaq -224(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_2
## %bb.1:
xorl %eax, %eax
addq $240, %rsp
popq %rbp
retq
LBB1_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Please give a string: "
L_.str.1: ## @.str.1
.asciz "Output: %s\n"
.subsections_via_symbols
| the_stack_data/1016712.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/57949033.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _copiar_struct ; -- Begin function copiar_struct
.p2align 2
_copiar_struct: ; @copiar_struct
.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 x9, [sp, #8]
mov w8, #49664
movk w8, #1, lsl #16
str w8, [x9, #4]
ldr x8, [sp, #8]
add x8, x8, #8
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr x8, [sp, #8]
ldr w9, [x8, #4]
; 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
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, #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]
mov w1, #0
str w1, [sp, #12] ; 4-byte Folded Spill
str wzr, [sp, #24]
add x0, sp, #28
str x0, [sp, #16] ; 8-byte Folded Spill
mov x2, #108
bl _memset
ldr w2, [sp, #12] ; 4-byte Folded Reload
ldr x8, [sp, #16] ; 8-byte Folded Reload
mov w9, #9600
str w9, [sp, #32]
mov x10, sp
adrp x9, l_.str.3@PAGE
add x9, x9, l_.str.3@PAGEOFF
str x9, [x10]
add x0, x8, #8
mov x3, #100
mov x1, x3
adrp x4, l_.str.2@PAGE
add x4, x4, l_.str.2@PAGEOFF
bl ___snprintf_chk
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _copiar_struct
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
bl ___stack_chk_fail
LBB1_2:
mov w0, #0
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
add sp, sp, #160
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "MSG: %s"
l_.str.1: ; @.str.1
.asciz "BaudRate: %d\n"
l_.str.2: ; @.str.2
.asciz "%s"
l_.str.3: ; @.str.3
.asciz "Serial COM XPTO"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _copiar_struct ## -- Begin function copiar_struct
.p2align 4, 0x90
_copiar_struct: ## @copiar_struct
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movl $115200, 4(%rax) ## imm = 0x1C200
movq -8(%rbp), %rsi
addq $8, %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movl 4(%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -124(%rbp)
leaq -120(%rbp), %rdi
xorl %esi, %esi
movl $108, %edx
callq _memset
movl $9600, -116(%rbp) ## imm = 0x2580
leaq -120(%rbp), %rdi
addq $8, %rdi
movl $100, %ecx
xorl %edx, %edx
leaq L_.str.2(%rip), %r8
leaq L_.str.3(%rip), %r9
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
leaq -120(%rbp), %rdi
callq _copiar_struct
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_2
## %bb.1:
xorl %eax, %eax
addq $128, %rsp
popq %rbp
retq
LBB1_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "MSG: %s"
L_.str.1: ## @.str.1
.asciz "BaudRate: %d\n"
L_.str.2: ## @.str.2
.asciz "%s"
L_.str.3: ## @.str.3
.asciz "Serial COM XPTO"
.subsections_via_symbols
| the_stack_data/22012108.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/87123.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function pm8xxx_gpio_probe
_pm8xxx_gpio_probe: ; @pm8xxx_gpio_probe
.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, _GFP_KERNEL@GOTPAGE
ldr x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
adrp x9, _ENOMEM@GOTPAGE
ldr x9, [x9, _ENOMEM@GOTPAGEOFF]
str x9, [sp, #32] ; 8-byte Folded Spill
adrp x9, _ENXIO@GOTPAGE
ldr x9, [x9, _ENXIO@GOTPAGEOFF]
str x9, [sp, #40] ; 8-byte Folded Spill
stur x0, [x29, #-16]
ldur x0, [x29, #-16]
ldr w2, [x8]
mov w1, #104
bl _devm_kzalloc
str x0, [sp, #56]
ldr x8, [sp, #56]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w9, [x8]
mov w8, #0
subs w8, w8, w9
stur w8, [x29, #-4]
b LBB0_31
LBB0_2:
ldur x8, [x29, #-16]
ldr x9, [sp, #56]
str x8, [x9, #48]
ldur x0, [x29, #-16]
bl _device_get_match_data
ldr x8, [sp, #56]
str x0, [x8]
ldur x8, [x29, #-16]
ldr w0, [x8, #4]
mov x1, #0
bl _dev_get_regmap
ldr x8, [sp, #56]
str w0, [x8, #96]
ldr x8, [sp, #56]
ldr w8, [x8, #96]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur x0, [x29, #-16]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _dev_err
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w9, [x8]
mov w8, #0
subs w8, w8, w9
stur w8, [x29, #-4]
b LBB0_31
LBB0_4:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x9, [sp, #56]
adrp x10, _pm8xxx_pinctrl_desc@GOTPAGE
ldr x10, [x10, _pm8xxx_pinctrl_desc@GOTPAGEOFF]
ldr q0, [x10]
str q0, [x9, #64]
ldr q0, [x10, #16]
str q0, [x9, #80]
ldr x9, [sp, #56]
ldr x9, [x9]
ldr x10, [sp, #56]
str x9, [x10, #64]
ldur x0, [x29, #-16]
ldr x9, [sp, #56]
ldr x1, [x9, #64]
ldr w3, [x8]
mov w2, #24
bl _devm_kcalloc
stur x0, [x29, #-48]
ldur x8, [x29, #-48]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w9, [x8]
mov w8, #0
subs w8, w8, w9
stur w8, [x29, #-4]
b LBB0_31
LBB0_6:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x0, [x29, #-16]
ldr x9, [sp, #56]
ldr x1, [x9, #64]
ldr w3, [x8]
mov w2, #8
bl _devm_kcalloc
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w9, [x8]
mov w8, #0
subs w8, w8, w9
stur w8, [x29, #-4]
b LBB0_31
LBB0_8:
str wzr, [sp, #48]
b LBB0_9
LBB0_9: ; =>This Inner Loop Header: Depth=1
ldrsw x8, [sp, #48]
ldr x9, [sp, #56]
ldr x9, [x9, #64]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_14
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=1
ldr w0, [sp, #48]
bl _SSBI_REG_ADDR_GPIO
ldur x8, [x29, #-24]
ldrsw x9, [sp, #48]
add x8, x8, x9, lsl #3
str w0, [x8, #4]
ldur x9, [x29, #-24]
ldrsw x8, [sp, #48]
lsl x10, x8, #3
mov w8, #-1
str w8, [x9, x10]
ldr x0, [sp, #56]
ldur x8, [x29, #-24]
ldrsw x9, [sp, #48]
add x1, x8, x9, lsl #3
bl _pm8xxx_pin_populate
str w0, [sp, #52]
ldr w8, [sp, #52]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
ldr w8, [sp, #52]
stur w8, [x29, #-4]
b LBB0_31
LBB0_12: ; in Loop: Header=BB0_9 Depth=1
ldr w8, [sp, #48]
ldur x9, [x29, #-48]
ldrsw x10, [sp, #48]
mov x11, #24
mul x10, x10, x11
str w8, [x9, x10]
adrp x8, _pm8xxx_groups@GOTPAGE
ldr x8, [x8, _pm8xxx_groups@GOTPAGEOFF]
ldr x8, [x8]
ldrsw x9, [sp, #48]
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-48]
ldrsw x10, [sp, #48]
mul x10, x10, x11
add x9, x9, x10
str w8, [x9, #16]
ldur x8, [x29, #-24]
ldrsw x9, [sp, #48]
add x8, x8, x9, lsl #3
ldur x9, [x29, #-48]
ldrsw x10, [sp, #48]
mul x10, x10, x11
add x9, x9, x10
str x8, [x9, #8]
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_9 Depth=1
ldr w8, [sp, #48]
add w8, w8, #1
str w8, [sp, #48]
b LBB0_9
LBB0_14:
ldur x8, [x29, #-48]
ldr x9, [sp, #56]
str x8, [x9, #88]
adrp x8, _pm8xxx_gpio_bindings@GOTPAGE
ldr x8, [x8, _pm8xxx_gpio_bindings@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
ldr w0, [x8]
bl _ARRAY_SIZE
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x9, [sp, #56]
str w0, [x9, #80]
ldr w8, [x8]
ldr x9, [sp, #56]
str w8, [x9, #76]
ldur x0, [x29, #-16]
ldr x8, [sp, #56]
add x1, x8, #64
ldr x2, [sp, #56]
bl _devm_pinctrl_register
ldr x8, [sp, #56]
str w0, [x8, #60]
ldr x8, [sp, #56]
ldr w0, [x8, #60]
bl _IS_ERR
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15:
ldur x0, [x29, #-16]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _dev_err
ldr x8, [sp, #56]
ldr w0, [x8, #60]
bl _PTR_ERR
stur w0, [x29, #-4]
b LBB0_31
LBB0_16:
ldr x8, [sp, #56]
adrp x9, _pm8xxx_gpio_template@GOTPAGE
ldr x9, [x9, _pm8xxx_gpio_template@GOTPAGEOFF]
ldr q0, [x9]
str q0, [x8, #16]
ldr q0, [x9, #16]
str q0, [x8, #32]
ldr x9, [sp, #56]
mov w8, #-1
str w8, [x9, #16]
ldur x8, [x29, #-16]
ldr x9, [sp, #56]
str x8, [x9, #40]
ldur x8, [x29, #-16]
ldr w8, [x8]
ldr x9, [sp, #56]
str w8, [x9, #36]
ldr x9, [sp, #56]
mov w8, #2
str w8, [x9, #20]
ldr x8, [sp, #56]
ldr x0, [x8, #48]
bl _dev_name
ldr x8, [sp, #56]
str w0, [x8, #32]
ldr x8, [sp, #56]
ldr x8, [x8]
ldr x9, [sp, #56]
str x8, [x9, #24]
ldr x8, [sp, #56]
ldr x8, [x8, #48]
ldr w0, [x8]
bl _of_irq_find_parent
stur x0, [x29, #-40]
ldur x8, [x29, #-40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17:
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w9, [x8]
mov w8, #0
subs w8, w8, w9
stur w8, [x29, #-4]
b LBB0_31
LBB0_18:
ldur x0, [x29, #-40]
bl _irq_find_host
stur x0, [x29, #-32]
ldur x0, [x29, #-40]
bl _of_node_put
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19:
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w9, [x8]
mov w8, #0
subs w8, w8, w9
stur w8, [x29, #-4]
b LBB0_31
LBB0_20:
ldr x8, [sp, #56]
ldr x8, [x8, #48]
ldr w0, [x8]
bl _of_node_to_fwnode
ldr x8, [sp, #56]
str w0, [x8, #56]
ldur x0, [x29, #-32]
ldr x8, [sp, #56]
ldr x2, [x8, #24]
ldr x8, [sp, #56]
ldr w3, [x8, #56]
ldr x8, [sp, #56]
add x5, x8, #16
mov w1, #0
adrp x4, _pm8xxx_domain_ops@GOTPAGE
ldr x4, [x4, _pm8xxx_domain_ops@GOTPAGEOFF]
bl _irq_domain_create_hierarchy
ldr x8, [sp, #56]
str w0, [x8, #8]
ldr x8, [sp, #56]
ldr w8, [x8, #8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21:
adrp x8, _ENODEV@GOTPAGE
ldr x8, [x8, _ENODEV@GOTPAGEOFF]
ldr w9, [x8]
mov w8, #0
subs w8, w8, w9
stur w8, [x29, #-4]
b LBB0_31
LBB0_22:
ldr x8, [sp, #56]
add x0, x8, #16
ldr x1, [sp, #56]
bl _gpiochip_add_data
str w0, [sp, #52]
ldr w8, [sp, #52]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23:
ldur x0, [x29, #-16]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _dev_err
b LBB0_30
LBB0_24:
ldr x8, [sp, #56]
ldr x8, [x8, #48]
ldr w0, [x8]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _of_property_read_bool
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_28
b LBB0_25
LBB0_25:
ldr x8, [sp, #56]
add x8, x8, #16
str x8, [sp, #8] ; 8-byte Folded Spill
ldr x8, [sp, #56]
ldr x0, [x8, #48]
bl _dev_name
mov x1, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
ldr x8, [sp, #56]
ldr x4, [x8, #24]
mov w3, #0
mov x2, x3
bl _gpiochip_add_pin_range
str w0, [sp, #52]
ldr w8, [sp, #52]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_27
b LBB0_26
LBB0_26:
ldr x8, [sp, #56]
ldr x0, [x8, #48]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _dev_err
b LBB0_29
LBB0_27:
b LBB0_28
LBB0_28:
ldur x0, [x29, #-16]
ldr x1, [sp, #56]
bl _platform_set_drvdata
ldur x0, [x29, #-16]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _dev_dbg
stur wzr, [x29, #-4]
b LBB0_31
LBB0_29:
ldr x8, [sp, #56]
add x0, x8, #16
bl _gpiochip_remove
b LBB0_30
LBB0_30:
ldr x8, [sp, #56]
ldr w0, [x8, #8]
bl _irq_domain_remove
ldr w8, [sp, #52]
stur w8, [x29, #-4]
b LBB0_31
LBB0_31:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.comm _GFP_KERNEL,4,2 ; @GFP_KERNEL
.comm _ENOMEM,4,2 ; @ENOMEM
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "parent regmap unavailable\n"
.comm _ENXIO,4,2 ; @ENXIO
.comm _pm8xxx_pinctrl_desc,32,3 ; @pm8xxx_pinctrl_desc
.comm _pm8xxx_groups,8,3 ; @pm8xxx_groups
.comm _pm8xxx_gpio_bindings,4,2 ; @pm8xxx_gpio_bindings
l_.str.1: ; @.str.1
.asciz "couldn't register pm8xxx gpio driver\n"
.comm _pm8xxx_gpio_template,32,3 ; @pm8xxx_gpio_template
.comm _pm8xxx_domain_ops,4,2 ; @pm8xxx_domain_ops
.comm _ENODEV,4,2 ; @ENODEV
l_.str.2: ; @.str.2
.asciz "failed register gpiochip\n"
l_.str.3: ; @.str.3
.asciz "gpio-ranges"
l_.str.4: ; @.str.4
.asciz "failed to add pin range\n"
l_.str.5: ; @.str.5
.asciz "Qualcomm pm8xxx gpio driver probed\n"
.comm _pm8xxx_conf_items,4,2 ; @pm8xxx_conf_items
.no_dead_strip _pm8xxx_gpio_probe
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function pm8xxx_gpio_probe
_pm8xxx_gpio_probe: ## @pm8xxx_gpio_probe
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rdi
movq _GFP_KERNEL@GOTPCREL(%rip), %rax
movl (%rax), %edx
movl $104, %esi
callq _devm_kzalloc
movq %rax, -56(%rbp)
cmpq $0, -56(%rbp)
jne LBB0_2
## %bb.1:
xorl %eax, %eax
movq _ENOMEM@GOTPCREL(%rip), %rcx
subl (%rcx), %eax
movl %eax, -4(%rbp)
jmp LBB0_31
LBB0_2:
movq -16(%rbp), %rcx
movq -56(%rbp), %rax
movq %rcx, 48(%rax)
movq -16(%rbp), %rdi
callq _device_get_match_data
movq %rax, %rcx
movq -56(%rbp), %rax
movq %rcx, (%rax)
movq -16(%rbp), %rax
movl 4(%rax), %edi
xorl %eax, %eax
movl %eax, %esi
callq _dev_get_regmap
movl %eax, %ecx
movq -56(%rbp), %rax
movl %ecx, 96(%rax)
movq -56(%rbp), %rax
cmpl $0, 96(%rax)
jne LBB0_4
## %bb.3:
movq -16(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _dev_err
xorl %eax, %eax
movq _ENXIO@GOTPCREL(%rip), %rcx
subl (%rcx), %eax
movl %eax, -4(%rbp)
jmp LBB0_31
LBB0_4:
movq -56(%rbp), %rax
movq _pm8xxx_pinctrl_desc@GOTPCREL(%rip), %rcx
movq (%rcx), %rdx
movq %rdx, 64(%rax)
movq 8(%rcx), %rdx
movq %rdx, 72(%rax)
movq 16(%rcx), %rdx
movq %rdx, 80(%rax)
movq 24(%rcx), %rcx
movq %rcx, 88(%rax)
movq -56(%rbp), %rax
movq (%rax), %rcx
movq -56(%rbp), %rax
movq %rcx, 64(%rax)
movq -16(%rbp), %rdi
movq -56(%rbp), %rax
movq 64(%rax), %rsi
movq _GFP_KERNEL@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movl $24, %edx
callq _devm_kcalloc
movq %rax, -48(%rbp)
cmpq $0, -48(%rbp)
jne LBB0_6
## %bb.5:
xorl %eax, %eax
movq _ENOMEM@GOTPCREL(%rip), %rcx
subl (%rcx), %eax
movl %eax, -4(%rbp)
jmp LBB0_31
LBB0_6:
movq -16(%rbp), %rdi
movq -56(%rbp), %rax
movq 64(%rax), %rsi
movq _GFP_KERNEL@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movl $8, %edx
callq _devm_kcalloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_8
## %bb.7:
xorl %eax, %eax
movq _ENOMEM@GOTPCREL(%rip), %rcx
subl (%rcx), %eax
movl %eax, -4(%rbp)
jmp LBB0_31
LBB0_8:
movl $0, -64(%rbp)
LBB0_9: ## =>This Inner Loop Header: Depth=1
movslq -64(%rbp), %rax
movq -56(%rbp), %rcx
cmpq 64(%rcx), %rax
jae LBB0_14
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movl -64(%rbp), %edi
callq _SSBI_REG_ADDR_GPIO
movl %eax, %edx
movq -24(%rbp), %rax
movslq -64(%rbp), %rcx
movl %edx, 4(%rax,%rcx,8)
movq -24(%rbp), %rax
movslq -64(%rbp), %rcx
movl $-1, (%rax,%rcx,8)
movq -56(%rbp), %rdi
movq -24(%rbp), %rsi
movslq -64(%rbp), %rax
shlq $3, %rax
addq %rax, %rsi
callq _pm8xxx_pin_populate
movl %eax, -60(%rbp)
cmpl $0, -60(%rbp)
je LBB0_12
## %bb.11:
movl -60(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_31
LBB0_12: ## in Loop: Header=BB0_9 Depth=1
movl -64(%rbp), %ecx
movq -48(%rbp), %rax
movslq -64(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movq _pm8xxx_groups@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -64(%rbp), %rcx
movl (%rax,%rcx,4), %ecx
movq -48(%rbp), %rax
movslq -64(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 16(%rax)
movq -24(%rbp), %rcx
movslq -64(%rbp), %rax
shlq $3, %rax
addq %rax, %rcx
movq -48(%rbp), %rax
movslq -64(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 8(%rax)
## %bb.13: ## in Loop: Header=BB0_9 Depth=1
movl -64(%rbp), %eax
addl $1, %eax
movl %eax, -64(%rbp)
jmp LBB0_9
LBB0_14:
movq -48(%rbp), %rcx
movq -56(%rbp), %rax
movq %rcx, 88(%rax)
movq _pm8xxx_gpio_bindings@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _ARRAY_SIZE
movl %eax, %ecx
movq -56(%rbp), %rax
movl %ecx, 80(%rax)
movq _pm8xxx_gpio_bindings@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -56(%rbp), %rax
movl %ecx, 76(%rax)
movq -16(%rbp), %rdi
movq -56(%rbp), %rsi
addq $64, %rsi
movq -56(%rbp), %rdx
callq _devm_pinctrl_register
movl %eax, %ecx
movq -56(%rbp), %rax
movl %ecx, 60(%rax)
movq -56(%rbp), %rax
movl 60(%rax), %edi
callq _IS_ERR
cmpq $0, %rax
je LBB0_16
## %bb.15:
movq -16(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _dev_err
movq -56(%rbp), %rax
movl 60(%rax), %edi
callq _PTR_ERR
movl %eax, -4(%rbp)
jmp LBB0_31
LBB0_16:
movq -56(%rbp), %rax
movq _pm8xxx_gpio_template@GOTPCREL(%rip), %rcx
movq (%rcx), %rdx
movq %rdx, 16(%rax)
movq 8(%rcx), %rdx
movq %rdx, 24(%rax)
movq 16(%rcx), %rdx
movq %rdx, 32(%rax)
movq 24(%rcx), %rcx
movq %rcx, 40(%rax)
movq -56(%rbp), %rax
movl $-1, 16(%rax)
movq -16(%rbp), %rcx
movq -56(%rbp), %rax
movq %rcx, 40(%rax)
movq -16(%rbp), %rax
movl (%rax), %ecx
movq -56(%rbp), %rax
movl %ecx, 36(%rax)
movq -56(%rbp), %rax
movl $2, 20(%rax)
movq -56(%rbp), %rax
movq 48(%rax), %rdi
callq _dev_name
movl %eax, %ecx
movq -56(%rbp), %rax
movl %ecx, 32(%rax)
movq -56(%rbp), %rax
movq (%rax), %rcx
movq -56(%rbp), %rax
movq %rcx, 24(%rax)
movq -56(%rbp), %rax
movq 48(%rax), %rax
movl (%rax), %edi
callq _of_irq_find_parent
movq %rax, -40(%rbp)
cmpq $0, -40(%rbp)
jne LBB0_18
## %bb.17:
xorl %eax, %eax
movq _ENXIO@GOTPCREL(%rip), %rcx
subl (%rcx), %eax
movl %eax, -4(%rbp)
jmp LBB0_31
LBB0_18:
movq -40(%rbp), %rdi
callq _irq_find_host
movq %rax, -32(%rbp)
movq -40(%rbp), %rdi
callq _of_node_put
cmpq $0, -32(%rbp)
jne LBB0_20
## %bb.19:
xorl %eax, %eax
movq _ENXIO@GOTPCREL(%rip), %rcx
subl (%rcx), %eax
movl %eax, -4(%rbp)
jmp LBB0_31
LBB0_20:
movq -56(%rbp), %rax
movq 48(%rax), %rax
movl (%rax), %edi
callq _of_node_to_fwnode
movl %eax, %ecx
movq -56(%rbp), %rax
movl %ecx, 56(%rax)
movq -32(%rbp), %rdi
movq -56(%rbp), %rax
movq 24(%rax), %rdx
movq -56(%rbp), %rax
movl 56(%rax), %ecx
movq -56(%rbp), %r9
addq $16, %r9
xorl %esi, %esi
movq _pm8xxx_domain_ops@GOTPCREL(%rip), %r8
callq _irq_domain_create_hierarchy
movl %eax, %ecx
movq -56(%rbp), %rax
movl %ecx, 8(%rax)
movq -56(%rbp), %rax
cmpl $0, 8(%rax)
jne LBB0_22
## %bb.21:
xorl %eax, %eax
movq _ENODEV@GOTPCREL(%rip), %rcx
subl (%rcx), %eax
movl %eax, -4(%rbp)
jmp LBB0_31
LBB0_22:
movq -56(%rbp), %rdi
addq $16, %rdi
movq -56(%rbp), %rsi
callq _gpiochip_add_data
movl %eax, -60(%rbp)
cmpl $0, -60(%rbp)
je LBB0_24
## %bb.23:
movq -16(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _dev_err
jmp LBB0_30
LBB0_24:
movq -56(%rbp), %rax
movq 48(%rax), %rax
movl (%rax), %edi
leaq L_.str.3(%rip), %rsi
callq _of_property_read_bool
cmpl $0, %eax
jne LBB0_28
## %bb.25:
movq -56(%rbp), %rax
addq $16, %rax
movq %rax, -72(%rbp) ## 8-byte Spill
movq -56(%rbp), %rax
movq 48(%rax), %rdi
callq _dev_name
movq -72(%rbp), %rdi ## 8-byte Reload
movl %eax, %esi
movq -56(%rbp), %rax
movq 24(%rax), %r8
xorl %ecx, %ecx
movl %ecx, %edx
callq _gpiochip_add_pin_range
movl %eax, -60(%rbp)
cmpl $0, -60(%rbp)
je LBB0_27
## %bb.26:
movq -56(%rbp), %rax
movq 48(%rax), %rdi
leaq L_.str.4(%rip), %rsi
callq _dev_err
jmp LBB0_29
LBB0_27:
jmp LBB0_28
LBB0_28:
movq -16(%rbp), %rdi
movq -56(%rbp), %rsi
callq _platform_set_drvdata
movq -16(%rbp), %rdi
leaq L_.str.5(%rip), %rsi
callq _dev_dbg
movl $0, -4(%rbp)
jmp LBB0_31
LBB0_29:
movq -56(%rbp), %rdi
addq $16, %rdi
callq _gpiochip_remove
LBB0_30:
movq -56(%rbp), %rax
movl 8(%rax), %edi
callq _irq_domain_remove
movl -60(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_31:
movl -4(%rbp), %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _GFP_KERNEL,4,2 ## @GFP_KERNEL
.comm _ENOMEM,4,2 ## @ENOMEM
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "parent regmap unavailable\n"
.comm _ENXIO,4,2 ## @ENXIO
.comm _pm8xxx_pinctrl_desc,32,3 ## @pm8xxx_pinctrl_desc
.comm _pm8xxx_groups,8,3 ## @pm8xxx_groups
.comm _pm8xxx_gpio_bindings,4,2 ## @pm8xxx_gpio_bindings
L_.str.1: ## @.str.1
.asciz "couldn't register pm8xxx gpio driver\n"
.comm _pm8xxx_gpio_template,32,3 ## @pm8xxx_gpio_template
.comm _pm8xxx_domain_ops,4,2 ## @pm8xxx_domain_ops
.comm _ENODEV,4,2 ## @ENODEV
L_.str.2: ## @.str.2
.asciz "failed register gpiochip\n"
L_.str.3: ## @.str.3
.asciz "gpio-ranges"
L_.str.4: ## @.str.4
.asciz "failed to add pin range\n"
L_.str.5: ## @.str.5
.asciz "Qualcomm pm8xxx gpio driver probed\n"
.comm _pm8xxx_conf_items,4,2 ## @pm8xxx_conf_items
.no_dead_strip _pm8xxx_gpio_probe
.subsections_via_symbols
| the_stack_data/184517764.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _get_int ; -- Begin function get_int
.p2align 2
_get_int: ; @get_int
.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, #-12]
stur wzr, [x29, #-20]
str xzr, [sp, #16]
ldur w0, [x29, #-12]
bl __abs
stur w0, [x29, #-16]
ldur w0, [x29, #-16]
mov w1, #10
bl _get_numbase_len
stur w0, [x29, #-20]
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, ge
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_3
LBB0_3:
ldur w8, [x29, #-20]
add w9, w8, #1
; implicit-def: $x8
mov x8, x9
sxtw x0, w8
bl _malloc
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB0_9
LBB0_5:
ldur w0, [x29, #-16]
ldr x2, [sp, #8]
ldur w3, [x29, #-20]
mov w1, #10
bl _fill_numbase_buff
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldr x9, [sp, #8]
mov w8, #45
strb w8, [x9]
b LBB0_8
LBB0_8:
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB0_9
LBB0_9:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl __abs ; -- Begin function _abs
.p2align 2
__abs: ; @_abs
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr w9, [sp, #8]
mov w8, #0
subs w8, w8, w9
str w8, [sp, #12]
b LBB1_3
LBB1_2:
ldr w8, [sp, #8]
str w8, [sp, #12]
b LBB1_3
LBB1_3:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _get_numbase_len ; -- Begin function get_numbase_len
.p2align 2
_get_numbase_len: ; @get_numbase_len
.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 LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldr w9, [sp, #8]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ls
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
ldr w9, [sp, #8]
ldr w8, [sp, #12]
udiv w8, w8, w9
str w8, [sp, #12]
b LBB2_1
LBB2_3:
ldr w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _fill_numbase_buff ; -- Begin function fill_numbase_buff
.p2align 2
_fill_numbase_buff: ; @fill_numbase_buff
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #28]
str w1, [sp, #24]
str x2, [sp, #16]
str w3, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #1
str w8, [sp, #4]
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
add x8, x8, x9
strb wzr, [x8]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB3_6
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #28]
ldr w10, [sp, #24]
udiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #9
cset w8, le
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #8]
add w8, w8, #87
ldr x9, [sp, #16]
ldrsw x10, [sp, #4]
strb w8, [x9, x10]
b LBB3_5
LBB3_4: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #8]
add w8, w8, #48
ldr x9, [sp, #16]
ldrsw x10, [sp, #4]
strb w8, [x9, x10]
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_1 Depth=1
ldr w9, [sp, #24]
ldr w8, [sp, #28]
udiv w8, w8, w9
str w8, [sp, #28]
ldr w8, [sp, #4]
subs w8, w8, #1
str w8, [sp, #4]
b LBB3_1
LBB3_6:
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 _get_int ## -- Begin function get_int
.p2align 4, 0x90
_get_int: ## @get_int
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl %edi, -12(%rbp)
movl $0, -20(%rbp)
movq $0, -32(%rbp)
movl -12(%rbp), %edi
callq __abs
movl %eax, -16(%rbp)
movl -16(%rbp), %edi
movl $10, %esi
callq _get_numbase_len
movl %eax, -20(%rbp)
cmpl $0, -12(%rbp)
jl LBB0_2
## %bb.1:
cmpq $0, -32(%rbp)
jge LBB0_3
LBB0_2:
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
LBB0_3:
movl -20(%rbp), %eax
addl $1, %eax
movslq %eax, %rdi
callq _malloc
movq %rax, -40(%rbp)
cmpq $0, -40(%rbp)
jne LBB0_5
## %bb.4:
movq $0, -8(%rbp)
jmp LBB0_9
LBB0_5:
movl -16(%rbp), %edi
movq -40(%rbp), %rdx
movl -20(%rbp), %ecx
movl $10, %esi
callq _fill_numbase_buff
cmpl $0, -12(%rbp)
jl LBB0_7
## %bb.6:
cmpq $0, -32(%rbp)
jge LBB0_8
LBB0_7:
movq -40(%rbp), %rax
movb $45, (%rax)
LBB0_8:
movq -40(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_9:
movq -8(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl __abs ## -- Begin function _abs
.p2align 4, 0x90
__abs: ## @_abs
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -8(%rbp)
cmpl $0, -8(%rbp)
jge LBB1_2
## %bb.1:
xorl %eax, %eax
subl -8(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB1_3
LBB1_2:
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
LBB1_3:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _get_numbase_len ## -- Begin function get_numbase_len
.p2align 4, 0x90
_get_numbase_len: ## @get_numbase_len
.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)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movl -4(%rbp), %eax
movl -8(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jbe LBB2_3
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
movl -8(%rbp), %ecx
movl -4(%rbp), %eax
xorl %edx, %edx
divl %ecx
movl %eax, -4(%rbp)
jmp LBB2_1
LBB2_3:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _fill_numbase_buff ## -- Begin function fill_numbase_buff
.p2align 4, 0x90
_fill_numbase_buff: ## @fill_numbase_buff
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movq %rdx, -16(%rbp)
movl %ecx, -20(%rbp)
movl -20(%rbp), %eax
subl $1, %eax
movl %eax, -28(%rbp)
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movb $0, (%rax,%rcx)
LBB3_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -28(%rbp)
jl LBB3_6
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movl -4(%rbp), %eax
xorl %edx, %edx
divl -8(%rbp)
movl %edx, -24(%rbp)
cmpl $9, -24(%rbp)
jle LBB3_4
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
movl -24(%rbp), %eax
addl $87, %eax
movb %al, %dl
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movb %dl, (%rax,%rcx)
jmp LBB3_5
LBB3_4: ## in Loop: Header=BB3_1 Depth=1
movl -24(%rbp), %eax
addl $48, %eax
movb %al, %dl
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movb %dl, (%rax,%rcx)
LBB3_5: ## in Loop: Header=BB3_1 Depth=1
movl -8(%rbp), %ecx
movl -4(%rbp), %eax
xorl %edx, %edx
divl %ecx
movl %eax, -4(%rbp)
movl -28(%rbp), %eax
addl $-1, %eax
movl %eax, -28(%rbp)
jmp LBB3_1
LBB3_6:
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/11074329.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _print_int_array ; -- Begin function print_int_array
.p2align 2
_print_int_array: ; @print_int_array
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
str wzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_7
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
ldur w9, [x29, #-12]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldrsw x9, [sp, #16]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldrsw x9, [sp, #16]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@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, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_1
LBB0_7:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _merge ; -- Begin function merge
.p2align 2
_merge: ; @merge
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub sp, sp, #96
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur x0, [x29, #-16]
stur w1, [x29, #-20]
stur w2, [x29, #-24]
stur w3, [x29, #-28]
stur w4, [x29, #-32]
ldur w8, [x29, #-20]
; kill: def $x8 killed $w8
mov x9, sp
stur x9, [x29, #-40]
lsl x9, x8, #2
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-80] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-80] ; 8-byte Folded Reload
mov x9, sp
subs x9, x9, x10
mov sp, x9
stur x9, [x29, #-72] ; 8-byte Folded Spill
stur x8, [x29, #-48]
ldur w8, [x29, #-24]
stur w8, [x29, #-52]
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-56]
stur wzr, [x29, #-60]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-52]
ldur w9, [x29, #-28]
subs w8, w8, w9
cset w8, gt
mov w9, #0
stur w9, [x29, #-84] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-56]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, le
stur w8, [x29, #-84] ; 4-byte Folded Spill
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-84] ; 4-byte Folded Reload
tbz w8, #0, LBB1_8
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-52]
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-16]
ldursw x10, [x29, #-56]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-52]
ldr w8, [x8, x9, lsl #2]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-16]
ldursw x9, [x29, #-56]
ldr w9, [x8, x9, lsl #2]
; 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
ldur x9, [x29, #-72] ; 8-byte Folded Reload
add sp, sp, #16
ldur x8, [x29, #-16]
ldursw x10, [x29, #-52]
ldr w8, [x8, x10, lsl #2]
ldursw x10, [x29, #-60]
str w8, [x9, x10, lsl #2]
ldur w8, [x29, #-52]
add w8, w8, #1
stur w8, [x29, #-52]
b LBB1_7
LBB1_6: ; in Loop: Header=BB1_1 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-52]
ldr w8, [x8, x9, lsl #2]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-16]
ldursw x9, [x29, #-56]
ldr w9, [x8, x9, lsl #2]
; 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
ldur x9, [x29, #-72] ; 8-byte Folded Reload
add sp, sp, #16
ldur x8, [x29, #-16]
ldursw x10, [x29, #-56]
ldr w8, [x8, x10, lsl #2]
ldursw x10, [x29, #-60]
str w8, [x9, x10, lsl #2]
ldur w8, [x29, #-56]
add w8, w8, #1
stur w8, [x29, #-56]
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-60]
add w8, w8, #1
stur w8, [x29, #-60]
b LBB1_1
LBB1_8:
b LBB1_9
LBB1_9: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-52]
ldur w9, [x29, #-28]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_11
b LBB1_10
LBB1_10: ; in Loop: Header=BB1_9 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-52]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldur x9, [x29, #-72] ; 8-byte Folded Reload
add sp, sp, #16
ldur x8, [x29, #-16]
ldursw x10, [x29, #-52]
ldr w8, [x8, x10, lsl #2]
ldursw x10, [x29, #-60]
str w8, [x9, x10, lsl #2]
ldur w8, [x29, #-52]
add w8, w8, #1
stur w8, [x29, #-52]
ldur w8, [x29, #-60]
add w8, w8, #1
stur w8, [x29, #-60]
b LBB1_9
LBB1_11:
b LBB1_12
LBB1_12: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-56]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_14
b LBB1_13
LBB1_13: ; in Loop: Header=BB1_12 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-56]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldur x9, [x29, #-72] ; 8-byte Folded Reload
add sp, sp, #16
ldur x8, [x29, #-16]
ldursw x10, [x29, #-56]
ldr w8, [x8, x10, lsl #2]
ldursw x10, [x29, #-60]
str w8, [x9, x10, lsl #2]
ldur w8, [x29, #-56]
add w8, w8, #1
stur w8, [x29, #-56]
ldur w8, [x29, #-60]
add w8, w8, #1
stur w8, [x29, #-60]
b LBB1_12
LBB1_14:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
ldur x0, [x29, #-72] ; 8-byte Folded Reload
ldur w1, [x29, #-20]
bl _print_int_array
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
stur wzr, [x29, #-64]
b LBB1_15
LBB1_15: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-64]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_18
b LBB1_16
LBB1_16: ; in Loop: Header=BB1_15 Depth=1
ldur x8, [x29, #-72] ; 8-byte Folded Reload
ldursw x9, [x29, #-64]
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-16]
ldur w10, [x29, #-24]
ldur w11, [x29, #-64]
add w10, w10, w11
str w8, [x9, w10, sxtw #2]
b LBB1_17
LBB1_17: ; in Loop: Header=BB1_15 Depth=1
ldur w8, [x29, #-64]
add w8, w8, #1
stur w8, [x29, #-64]
b LBB1_15
LBB1_18:
ldur x8, [x29, #-40]
stur x8, [x29, #-96] ; 8-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_20
b LBB1_19
LBB1_19:
bl ___stack_chk_fail
LBB1_20:
ldur x8, [x29, #-96] ; 8-byte Folded Reload
mov sp, x8
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _merge_sort ; -- Begin function merge_sort
.p2align 2
_merge_sort: ; @merge_sort
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
str w2, [sp, #16]
str w3, [sp, #12]
ldr w8, [sp, #12]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldr w8, [sp, #16]
ldr w9, [sp, #12]
add w8, w8, w9
mov w9, #2
str w9, [sp, #4] ; 4-byte Folded Spill
sdiv w8, w8, w9
str w8, [sp, #8]
ldur x0, [x29, #-8]
ldur w8, [x29, #-12]
sdiv w1, w8, w9
ldr w2, [sp, #16]
ldr w3, [sp, #8]
bl _merge_sort
ldr w9, [sp, #4] ; 4-byte Folded Reload
ldur x0, [x29, #-8]
ldur w8, [x29, #-12]
sdiv w1, w8, w9
ldr w8, [sp, #8]
add w2, w8, #1
ldr w3, [sp, #12]
bl _merge_sort
ldur x0, [x29, #-8]
ldur w1, [x29, #-12]
ldr w2, [sp, #16]
ldr w3, [sp, #8]
ldr w4, [sp, #12]
bl _merge
b LBB2_2
LBB2_2:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #192
.cfi_def_cfa_offset 192
stp x29, x30, [sp, #176] ; 16-byte Folded Spill
add x29, sp, #176
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
mov w8, #0
str w8, [sp, #20] ; 4-byte Folded Spill
str wzr, [sp, #60]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
ldr w2, [sp, #20] ; 4-byte Folded Reload
adrp x8, l___const.main.collection_0@PAGE
add x8, x8, l___const.main.collection_0@PAGEOFF
ldr q0, [x8]
sub x0, x29, #48
str x0, [sp] ; 8-byte Folded Spill
stur q0, [x29, #-48]
ldur q0, [x8, #12]
stur q0, [x0, #12]
adrp x8, l___const.main.collection_1@PAGE
add x8, x8, l___const.main.collection_1@PAGEOFF
ldr q0, [x8]
sub x9, x29, #80
str x9, [sp, #8] ; 8-byte Folded Spill
stur q0, [x29, #-80]
ldr q0, [x8, #16]
stur q0, [x29, #-64]
adrp x9, l___const.main.collection_2@PAGE
add x9, x9, l___const.main.collection_2@PAGEOFF
ldr q0, [x9]
add x8, sp, #64
str x8, [sp, #32] ; 8-byte Folded Spill
str q0, [sp, #64]
ldur q0, [x9, #12]
stur q0, [x8, #12]
mov w8, #7
str w8, [sp, #56]
mov w9, #8
str w9, [sp, #52]
str w8, [sp, #48]
ldr w1, [sp, #56]
ldr w8, [sp, #56]
subs w3, w8, #1
bl _merge_sort
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
str x0, [sp, #24] ; 8-byte Folded Spill
bl _printf
ldr x0, [sp] ; 8-byte Folded Reload
ldr w1, [sp, #56]
bl _print_int_array
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
str x0, [sp, #40] ; 8-byte Folded Spill
bl _printf
ldr w2, [sp, #20] ; 4-byte Folded Reload
ldr x0, [sp, #8] ; 8-byte Folded Reload
ldr w1, [sp, #52]
ldr w8, [sp, #52]
subs w3, w8, #1
bl _merge_sort
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _printf
ldr x0, [sp, #8] ; 8-byte Folded Reload
ldr w1, [sp, #52]
bl _print_int_array
ldr x0, [sp, #40] ; 8-byte Folded Reload
bl _printf
ldr w2, [sp, #20] ; 4-byte Folded Reload
ldr x0, [sp, #32] ; 8-byte Folded Reload
ldr w1, [sp, #48]
ldr w8, [sp, #48]
subs w3, w8, #1
bl _merge_sort
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _printf
ldr x0, [sp, #32] ; 8-byte Folded Reload
ldr w1, [sp, #48]
bl _print_int_array
ldr x0, [sp, #40] ; 8-byte Folded Reload
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, LBB3_2
b LBB3_1
LBB3_1:
bl ___stack_chk_fail
LBB3_2:
mov w0, #0
ldp x29, x30, [sp, #176] ; 16-byte Folded Reload
add sp, sp, #192
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d, "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "%d <= %d\n"
l_.str.3: ; @.str.3
.asciz "%d >= %d\n"
l_.str.4: ; @.str.4
.asciz "Appending remaining element from left: %d\n"
l_.str.5: ; @.str.5
.asciz "Appending remaining element from right: %d\n"
l_.str.6: ; @.str.6
.asciz "Intermediate result: "
l_.str.7: ; @.str.7
.asciz "\n"
l_.str.8: ; @.str.8
.asciz "Merge sort example - Copyright 2016, Sjors van Gelderen\n\n"
.section __TEXT,__const
.p2align 2 ; @__const.main.collection_0
l___const.main.collection_0:
.long 14 ; 0xe
.long 2 ; 0x2
.long 6 ; 0x6
.long 23 ; 0x17
.long 6 ; 0x6
.long 753 ; 0x2f1
.long 2 ; 0x2
.p2align 2 ; @__const.main.collection_1
l___const.main.collection_1:
.long 0 ; 0x0
.long 4 ; 0x4
.long 2 ; 0x2
.long 6 ; 0x6
.long 3 ; 0x3
.long 745 ; 0x2e9
.long 7 ; 0x7
.long 3 ; 0x3
.p2align 2 ; @__const.main.collection_2
l___const.main.collection_2:
.long 6 ; 0x6
.long 6 ; 0x6
.long 6 ; 0x6
.long 6 ; 0x6
.long 6 ; 0x6
.long 6 ; 0x6
.long 3 ; 0x3
.section __TEXT,__cstring,cstring_literals
l_.str.9: ; @.str.9
.asciz "Final result: "
l_.str.10: ; @.str.10
.asciz "\n\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _print_int_array ## -- Begin function print_int_array
.p2align 4, 0x90
_print_int_array: ## @print_int_array
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl $0, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB0_7
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
movl -12(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.1(%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 -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_1
LBB0_7:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _merge ## -- Begin function merge
.p2align 4, 0x90
_merge: ## @merge
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $96, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movl %edx, -24(%rbp)
movl %ecx, -28(%rbp)
movl %r8d, -32(%rbp)
movl -20(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -80(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -40(%rbp)
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -80(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -72(%rbp) ## 8-byte Spill
movq %rax, -48(%rbp)
movl -24(%rbp), %eax
movl %eax, -52(%rbp)
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -56(%rbp)
movl $0, -60(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -52(%rbp), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl -28(%rbp), %ecx
movb %al, -81(%rbp) ## 1-byte Spill
jg LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -56(%rbp), %eax
cmpl -32(%rbp), %eax
setle %al
movb %al, -81(%rbp) ## 1-byte Spill
LBB1_3: ## in Loop: Header=BB1_1 Depth=1
movb -81(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB1_4
jmp LBB1_8
LBB1_4: ## in Loop: Header=BB1_1 Depth=1
movq -16(%rbp), %rax
movslq -52(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -16(%rbp), %rcx
movslq -56(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jg LBB1_6
## %bb.5: ## in Loop: Header=BB1_1 Depth=1
movq -16(%rbp), %rax
movslq -52(%rbp), %rcx
movl (%rax,%rcx,4), %esi
movq -16(%rbp), %rax
movslq -56(%rbp), %rcx
movl (%rax,%rcx,4), %edx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## kill: def $ecx killed $eax
movq -72(%rbp), %rax ## 8-byte Reload
movq -16(%rbp), %rcx
movslq -52(%rbp), %rdx
movl (%rcx,%rdx,4), %edx
movslq -60(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB1_7
LBB1_6: ## in Loop: Header=BB1_1 Depth=1
movq -16(%rbp), %rax
movslq -52(%rbp), %rcx
movl (%rax,%rcx,4), %esi
movq -16(%rbp), %rax
movslq -56(%rbp), %rcx
movl (%rax,%rcx,4), %edx
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
## kill: def $ecx killed $eax
movq -72(%rbp), %rax ## 8-byte Reload
movq -16(%rbp), %rcx
movslq -56(%rbp), %rdx
movl (%rcx,%rdx,4), %edx
movslq -60(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -56(%rbp), %eax
addl $1, %eax
movl %eax, -56(%rbp)
LBB1_7: ## in Loop: Header=BB1_1 Depth=1
movl -60(%rbp), %eax
addl $1, %eax
movl %eax, -60(%rbp)
jmp LBB1_1
LBB1_8:
jmp LBB1_9
LBB1_9: ## =>This Inner Loop Header: Depth=1
movl -52(%rbp), %eax
cmpl -28(%rbp), %eax
jg LBB1_11
## %bb.10: ## in Loop: Header=BB1_9 Depth=1
movq -16(%rbp), %rax
movslq -52(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
## kill: def $ecx killed $eax
movq -72(%rbp), %rax ## 8-byte Reload
movq -16(%rbp), %rcx
movslq -52(%rbp), %rdx
movl (%rcx,%rdx,4), %edx
movslq -60(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
movl -60(%rbp), %eax
addl $1, %eax
movl %eax, -60(%rbp)
jmp LBB1_9
LBB1_11:
jmp LBB1_12
LBB1_12: ## =>This Inner Loop Header: Depth=1
movl -56(%rbp), %eax
cmpl -32(%rbp), %eax
jg LBB1_14
## %bb.13: ## in Loop: Header=BB1_12 Depth=1
movq -16(%rbp), %rax
movslq -56(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
## kill: def $ecx killed $eax
movq -72(%rbp), %rax ## 8-byte Reload
movq -16(%rbp), %rcx
movslq -56(%rbp), %rdx
movl (%rcx,%rdx,4), %edx
movslq -60(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -56(%rbp), %eax
addl $1, %eax
movl %eax, -56(%rbp)
movl -60(%rbp), %eax
addl $1, %eax
movl %eax, -60(%rbp)
jmp LBB1_12
LBB1_14:
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
movq -72(%rbp), %rdi ## 8-byte Reload
movl -20(%rbp), %esi
callq _print_int_array
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -64(%rbp)
LBB1_15: ## =>This Inner Loop Header: Depth=1
movl -64(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB1_18
## %bb.16: ## in Loop: Header=BB1_15 Depth=1
movq -72(%rbp), %rax ## 8-byte Reload
movslq -64(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -16(%rbp), %rax
movl -24(%rbp), %ecx
addl -64(%rbp), %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
## %bb.17: ## in Loop: Header=BB1_15 Depth=1
movl -64(%rbp), %eax
addl $1, %eax
movl %eax, -64(%rbp)
jmp LBB1_15
LBB1_18:
movq -40(%rbp), %rax
movq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_20
## %bb.19:
movq %rbp, %rsp
popq %rbp
retq
LBB1_20:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _merge_sort ## -- Begin function merge_sort
.p2align 4, 0x90
_merge_sort: ## @merge_sort
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movl %ecx, -20(%rbp)
movl -20(%rbp), %eax
cmpl -16(%rbp), %eax
jle LBB2_2
## %bb.1:
movl -16(%rbp), %eax
addl -20(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
movl %eax, -24(%rbp)
movq -8(%rbp), %rdi
movl -12(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
movl %eax, %esi
movl -16(%rbp), %edx
movl -24(%rbp), %ecx
callq _merge_sort
movq -8(%rbp), %rdi
movl -12(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
movl %eax, %esi
movl -24(%rbp), %edx
addl $1, %edx
movl -20(%rbp), %ecx
callq _merge_sort
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
movl -16(%rbp), %edx
movl -24(%rbp), %ecx
movl -20(%rbp), %r8d
callq _merge
LBB2_2:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -116(%rbp)
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movq l___const.main.collection_0(%rip), %rax
movq %rax, -48(%rbp)
movq l___const.main.collection_0+8(%rip), %rax
movq %rax, -40(%rbp)
movq l___const.main.collection_0+16(%rip), %rax
movq %rax, -32(%rbp)
movl l___const.main.collection_0+24(%rip), %eax
movl %eax, -24(%rbp)
movq l___const.main.collection_1(%rip), %rax
movq %rax, -80(%rbp)
movq l___const.main.collection_1+8(%rip), %rax
movq %rax, -72(%rbp)
movq l___const.main.collection_1+16(%rip), %rax
movq %rax, -64(%rbp)
movq l___const.main.collection_1+24(%rip), %rax
movq %rax, -56(%rbp)
movq l___const.main.collection_2(%rip), %rax
movq %rax, -112(%rbp)
movq l___const.main.collection_2+8(%rip), %rax
movq %rax, -104(%rbp)
movq l___const.main.collection_2+16(%rip), %rax
movq %rax, -96(%rbp)
movl l___const.main.collection_2+24(%rip), %eax
movl %eax, -88(%rbp)
movl $7, -120(%rbp)
movl $8, -124(%rbp)
movl $7, -128(%rbp)
leaq -48(%rbp), %rdi
movl -120(%rbp), %esi
movl -120(%rbp), %ecx
subl $1, %ecx
xorl %edx, %edx
callq _merge_sort
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
leaq -48(%rbp), %rdi
movl -120(%rbp), %esi
callq _print_int_array
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
leaq -80(%rbp), %rdi
movl -124(%rbp), %esi
movl -124(%rbp), %ecx
subl $1, %ecx
xorl %edx, %edx
callq _merge_sort
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
leaq -80(%rbp), %rdi
movl -124(%rbp), %esi
callq _print_int_array
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
leaq -112(%rbp), %rdi
movl -128(%rbp), %esi
movl -128(%rbp), %ecx
subl $1, %ecx
xorl %edx, %edx
callq _merge_sort
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
leaq -112(%rbp), %rdi
movl -128(%rbp), %esi
callq _print_int_array
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB3_2
## %bb.1:
xorl %eax, %eax
addq $128, %rsp
popq %rbp
retq
LBB3_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d, "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "%d <= %d\n"
L_.str.3: ## @.str.3
.asciz "%d >= %d\n"
L_.str.4: ## @.str.4
.asciz "Appending remaining element from left: %d\n"
L_.str.5: ## @.str.5
.asciz "Appending remaining element from right: %d\n"
L_.str.6: ## @.str.6
.asciz "Intermediate result: "
L_.str.7: ## @.str.7
.asciz "\n"
L_.str.8: ## @.str.8
.asciz "Merge sort example - Copyright 2016, Sjors van Gelderen\n\n"
.section __TEXT,__const
.p2align 4 ## @__const.main.collection_0
l___const.main.collection_0:
.long 14 ## 0xe
.long 2 ## 0x2
.long 6 ## 0x6
.long 23 ## 0x17
.long 6 ## 0x6
.long 753 ## 0x2f1
.long 2 ## 0x2
.p2align 4 ## @__const.main.collection_1
l___const.main.collection_1:
.long 0 ## 0x0
.long 4 ## 0x4
.long 2 ## 0x2
.long 6 ## 0x6
.long 3 ## 0x3
.long 745 ## 0x2e9
.long 7 ## 0x7
.long 3 ## 0x3
.p2align 4 ## @__const.main.collection_2
l___const.main.collection_2:
.long 6 ## 0x6
.long 6 ## 0x6
.long 6 ## 0x6
.long 6 ## 0x6
.long 6 ## 0x6
.long 6 ## 0x6
.long 3 ## 0x3
.section __TEXT,__cstring,cstring_literals
L_.str.9: ## @.str.9
.asciz "Final result: "
L_.str.10: ## @.str.10
.asciz "\n\n"
.subsections_via_symbols
| the_stack_data/90764798.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _preorder ; -- Begin function preorder
.p2align 2
_preorder: ; @preorder
.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, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
b LBB0_3
LBB0_2:
ldr x8, [sp, #8]
ldr w9, [x8, #8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr x8, [sp, #8]
ldr x0, [x8]
bl _preorder
ldr x8, [sp, #8]
ldr x0, [x8, #16]
bl _preorder
b LBB0_3
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _inorder ; -- Begin function inorder
.p2align 2
_inorder: ; @inorder
.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, #0
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
b LBB1_3
LBB1_2:
ldr x8, [sp, #8]
ldr x0, [x8]
bl _inorder
ldr x8, [sp, #8]
ldr w9, [x8, #8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr x8, [sp, #8]
ldr x0, [x8, #16]
bl _inorder
b LBB1_3
LBB1_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _postorder ; -- Begin function postorder
.p2align 2
_postorder: ; @postorder
.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, #0
cset w8, ne
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
b LBB2_3
LBB2_2:
ldr x8, [sp, #8]
ldr x0, [x8]
bl _postorder
ldr x8, [sp, #8]
ldr x0, [x8, #16]
bl _postorder
ldr x8, [sp, #8]
ldr w9, [x8, #8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB2_3
LBB2_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _addtoempty ; -- Begin function addtoempty
.p2align 2
_addtoempty: ; @addtoempty
.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]
mov x0, #24
bl _malloc
str x0, [sp, #8]
ldur w8, [x29, #-12]
ldr x9, [sp, #8]
str w8, [x9, #8]
ldr x8, [sp, #8]
; kill: def $x9 killed $xzr
str xzr, [x8]
ldr x8, [sp, #8]
str xzr, [x8, #16]
ldr x8, [sp, #8]
stur x8, [x29, #-8]
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _addtoend ; -- Begin function addtoend
.p2align 2
_addtoend: ; @addtoend
.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]
mov x0, #8
bl _malloc
str x0, [sp, #8]
ldur w8, [x29, #-12]
ldr x9, [sp, #8]
str w8, [x9, #8]
ldur x8, [x29, #-8]
str x8, [sp]
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB4_3
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp]
ldr x8, [x8, #16]
str x8, [sp]
b LBB4_1
LBB4_3:
ldr x8, [sp, #8]
ldr x9, [sp]
str x8, [x9, #16]
ldr x8, [sp, #8]
; kill: def $x9 killed $xzr
str xzr, [x8, #16]
ldr x8, [sp]
ldr x9, [sp, #8]
str x8, [x9]
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _create_list ; -- Begin function create_list
.p2align 2
_create_list: ; @create_list
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
mov w8, #1
str w8, [sp, #16]
b LBB5_1
LBB5_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB5_7
b LBB5_2
LBB5_2: ; in Loop: Header=BB5_1 Depth=1
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #12
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
ldur x8, [x29, #-8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB5_4
b LBB5_3
LBB5_3: ; in Loop: Header=BB5_1 Depth=1
ldur x0, [x29, #-8]
ldr w1, [sp, #12]
bl _addtoempty
stur x0, [x29, #-8]
b LBB5_5
LBB5_4: ; in Loop: Header=BB5_1 Depth=1
ldur x0, [x29, #-8]
ldr w1, [sp, #12]
bl _addtoend
stur x0, [x29, #-8]
b LBB5_5
LBB5_5: ; in Loop: Header=BB5_1 Depth=1
b LBB5_6
LBB5_6: ; in Loop: Header=BB5_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB5_1
LBB5_7:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _construct ; -- Begin function construct
.p2align 2
_construct: ; @construct
.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]
stur w2, [x29, #-28]
ldur w8, [x29, #-28]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB6_13
LBB6_2:
mov x0, #24
bl _malloc
str x0, [sp, #24]
ldur x8, [x29, #-24]
ldr w8, [x8, #8]
ldr x9, [sp, #24]
str w8, [x9, #8]
ldr x8, [sp, #24]
; kill: def $x9 killed $xzr
str xzr, [x8]
ldr x8, [sp, #24]
str xzr, [x8, #16]
ldur w8, [x29, #-28]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB6_4
b LBB6_3
LBB6_3:
ldr x8, [sp, #24]
stur x8, [x29, #-8]
b LBB6_13
LBB6_4:
ldur x8, [x29, #-16]
str x8, [sp, #16]
str wzr, [sp, #12]
b LBB6_5
LBB6_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldr w8, [x8, #8]
ldur x9, [x29, #-24]
ldr w9, [x9, #8]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB6_8
b LBB6_6
LBB6_6: ; in Loop: Header=BB6_5 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #16]
str x8, [sp, #16]
b LBB6_7
LBB6_7: ; in Loop: Header=BB6_5 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB6_5
LBB6_8:
ldur x0, [x29, #-16]
ldur x8, [x29, #-24]
ldr x1, [x8, #16]
ldr w2, [sp, #12]
bl _construct
ldr x8, [sp, #24]
str x0, [x8]
mov w8, #1
str w8, [sp, #8]
b LBB6_9
LBB6_9: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
ldr w9, [sp, #12]
add w9, w9, #1
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB6_12
b LBB6_10
LBB6_10: ; in Loop: Header=BB6_9 Depth=1
ldur x8, [x29, #-24]
ldr x8, [x8, #16]
stur x8, [x29, #-24]
b LBB6_11
LBB6_11: ; in Loop: Header=BB6_9 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB6_9
LBB6_12:
ldr x8, [sp, #16]
ldr x0, [x8, #16]
ldur x1, [x29, #-24]
ldur w8, [x29, #-28]
ldr w9, [sp, #12]
subs w8, w8, w9
subs w2, w8, #1
bl _construct
ldr x8, [sp, #24]
str x0, [x8, #16]
ldr x8, [sp, #24]
stur x8, [x29, #-8]
b LBB6_13
LBB6_13:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _display ; -- Begin function display
.p2align 2
_display: ; @display
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
ldur x8, [x29, #-8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB7_6
b LBB7_1
LBB7_1:
ldur x8, [x29, #-8]
ldr x0, [x8, #16]
ldur w8, [x29, #-12]
add w1, w8, #1
bl _display
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
str wzr, [sp, #16]
b LBB7_2
LBB7_2: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB7_5
b LBB7_3
LBB7_3: ; in Loop: Header=BB7_2 Depth=1
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB7_4
LBB7_4: ; in Loop: Header=BB7_2 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB7_2
LBB7_5:
ldur x8, [x29, #-8]
ldr w9, [x8, #8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldr x0, [x8]
ldur w8, [x29, #-12]
add w1, w8, #1
bl _display
b LBB7_6
LBB7_6:
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
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #4
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
adrp x8, _in@PAGE
str x8, [sp, #16] ; 8-byte Folded Spill
ldr x0, [x8, _in@PAGEOFF]
ldur w1, [x29, #-4]
bl _create_list
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [x8, _in@PAGEOFF]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
adrp x8, _pre@PAGE
str x8, [sp, #24] ; 8-byte Folded Spill
ldr x0, [x8, _pre@PAGEOFF]
ldur w1, [x29, #-4]
bl _create_list
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldr x8, [sp, #24] ; 8-byte Folded Reload
str x0, [x8, _pre@PAGEOFF]
ldr x0, [x9, _in@PAGEOFF]
ldr x1, [x8, _pre@PAGEOFF]
ldur w2, [x29, #-4]
bl _construct
adrp x8, _root@PAGE
stur x8, [x29, #-16] ; 8-byte Folded Spill
str x0, [x8, _root@PAGEOFF]
ldr x0, [x8, _root@PAGEOFF]
mov w1, #0
bl _display
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldr x0, [x8, _root@PAGEOFF]
bl _inorder
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldr x0, [x8, _root@PAGEOFF]
bl _preorder
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldr x0, [x8, _root@PAGEOFF]
bl _postorder
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _root ; @root
.zerofill __DATA,__common,_root,8,3
.globl _in ; @in
.zerofill __DATA,__common,_in,8,3
.globl _pre ; @pre
.zerofill __DATA,__common,_pre,8,3
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d "
l_.str.1: ; @.str.1
.asciz "Enter the element to be inserted:"
l_.str.2: ; @.str.2
.asciz "%d"
l_.str.3: ; @.str.3
.asciz "\n"
l_.str.4: ; @.str.4
.asciz "\t"
l_.str.5: ; @.str.5
.asciz "\nEnter the number of nodes: "
l_.str.6: ; @.str.6
.asciz "Enter inorder:\n"
l_.str.7: ; @.str.7
.asciz "Enter preorder:\n"
l_.str.8: ; @.str.8
.asciz "\nInorder is:"
l_.str.9: ; @.str.9
.asciz "\nPreorder is:"
l_.str.10: ; @.str.10
.asciz "\nPostorder is:"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _preorder ## -- Begin function preorder
.p2align 4, 0x90
_preorder: ## @preorder
.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)
jne LBB0_2
## %bb.1:
jmp LBB0_3
LBB0_2:
movq -8(%rbp), %rax
movl 8(%rax), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movq (%rax), %rdi
callq _preorder
movq -8(%rbp), %rax
movq 16(%rax), %rdi
callq _preorder
LBB0_3:
addq $16, %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)
jne LBB1_2
## %bb.1:
jmp LBB1_3
LBB1_2:
movq -8(%rbp), %rax
movq (%rax), %rdi
callq _inorder
movq -8(%rbp), %rax
movl 8(%rax), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movq 16(%rax), %rdi
callq _inorder
LBB1_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _postorder ## -- Begin function postorder
.p2align 4, 0x90
_postorder: ## @postorder
.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)
jne LBB2_2
## %bb.1:
jmp LBB2_3
LBB2_2:
movq -8(%rbp), %rax
movq (%rax), %rdi
callq _postorder
movq -8(%rbp), %rax
movq 16(%rax), %rdi
callq _postorder
movq -8(%rbp), %rax
movl 8(%rax), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
LBB2_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _addtoempty ## -- Begin function addtoempty
.p2align 4, 0x90
_addtoempty: ## @addtoempty
.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 $24, %edi
callq _malloc
movq %rax, -24(%rbp)
movl -12(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, 8(%rax)
movq -24(%rbp), %rax
movq $0, (%rax)
movq -24(%rbp), %rax
movq $0, 16(%rax)
movq -24(%rbp), %rax
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _addtoend ## -- Begin function addtoend
.p2align 4, 0x90
_addtoend: ## @addtoend
.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 $8, %edi
callq _malloc
movq %rax, -24(%rbp)
movl -12(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, 8(%rax)
movq -8(%rbp), %rax
movq %rax, -32(%rbp)
LBB4_1: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
cmpq $0, 16(%rax)
je LBB4_3
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movq -32(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -32(%rbp)
jmp LBB4_1
LBB4_3:
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, 16(%rax)
movq -24(%rbp), %rax
movq $0, 16(%rax)
movq -32(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _create_list ## -- Begin function create_list
.p2align 4, 0x90
_create_list: ## @create_list
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq $0, -8(%rbp)
movl $1, -16(%rbp)
LBB5_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jg LBB5_7
## %bb.2: ## in Loop: Header=BB5_1 Depth=1
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
leaq -20(%rbp), %rsi
movb $0, %al
callq _scanf
cmpq $0, -8(%rbp)
jne LBB5_4
## %bb.3: ## in Loop: Header=BB5_1 Depth=1
movq -8(%rbp), %rdi
movl -20(%rbp), %esi
callq _addtoempty
movq %rax, -8(%rbp)
jmp LBB5_5
LBB5_4: ## in Loop: Header=BB5_1 Depth=1
movq -8(%rbp), %rdi
movl -20(%rbp), %esi
callq _addtoend
movq %rax, -8(%rbp)
LBB5_5: ## in Loop: Header=BB5_1 Depth=1
jmp LBB5_6
LBB5_6: ## in Loop: Header=BB5_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB5_1
LBB5_7:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _construct ## -- Begin function construct
.p2align 4, 0x90
_construct: ## @construct
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movl %edx, -28(%rbp)
cmpl $0, -28(%rbp)
jne LBB6_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB6_13
LBB6_2:
movl $24, %edi
callq _malloc
movq %rax, -40(%rbp)
movq -24(%rbp), %rax
movl 8(%rax), %ecx
movq -40(%rbp), %rax
movl %ecx, 8(%rax)
movq -40(%rbp), %rax
movq $0, (%rax)
movq -40(%rbp), %rax
movq $0, 16(%rax)
cmpl $1, -28(%rbp)
jne LBB6_4
## %bb.3:
movq -40(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB6_13
LBB6_4:
movq -16(%rbp), %rax
movq %rax, -48(%rbp)
movl $0, -52(%rbp)
LBB6_5: ## =>This Inner Loop Header: Depth=1
movq -48(%rbp), %rax
movl 8(%rax), %eax
movq -24(%rbp), %rcx
cmpl 8(%rcx), %eax
je LBB6_8
## %bb.6: ## in Loop: Header=BB6_5 Depth=1
movq -48(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -48(%rbp)
## %bb.7: ## in Loop: Header=BB6_5 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB6_5
LBB6_8:
movq -16(%rbp), %rdi
movq -24(%rbp), %rax
movq 16(%rax), %rsi
movl -52(%rbp), %edx
callq _construct
movq %rax, %rcx
movq -40(%rbp), %rax
movq %rcx, (%rax)
movl $1, -56(%rbp)
LBB6_9: ## =>This Inner Loop Header: Depth=1
movl -56(%rbp), %eax
movl -52(%rbp), %ecx
addl $1, %ecx
cmpl %ecx, %eax
jg LBB6_12
## %bb.10: ## in Loop: Header=BB6_9 Depth=1
movq -24(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -24(%rbp)
## %bb.11: ## in Loop: Header=BB6_9 Depth=1
movl -56(%rbp), %eax
addl $1, %eax
movl %eax, -56(%rbp)
jmp LBB6_9
LBB6_12:
movq -48(%rbp), %rax
movq 16(%rax), %rdi
movq -24(%rbp), %rsi
movl -28(%rbp), %edx
subl -52(%rbp), %edx
subl $1, %edx
callq _construct
movq %rax, %rcx
movq -40(%rbp), %rax
movq %rcx, 16(%rax)
movq -40(%rbp), %rax
movq %rax, -8(%rbp)
LBB6_13:
movq -8(%rbp), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _display ## -- Begin function display
.p2align 4, 0x90
_display: ## @display
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
cmpq $0, -8(%rbp)
je LBB7_6
## %bb.1:
movq -8(%rbp), %rax
movq 16(%rax), %rdi
movl -12(%rbp), %esi
addl $1, %esi
callq _display
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -16(%rbp)
LBB7_2: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB7_5
## %bb.3: ## in Loop: Header=BB7_2 Depth=1
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
## %bb.4: ## in Loop: Header=BB7_2 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB7_2
LBB7_5:
movq -8(%rbp), %rax
movl 8(%rax), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movq (%rax), %rdi
movl -12(%rbp), %esi
addl $1, %esi
callq _display
LBB7_6:
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
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
leaq -4(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
movq _in(%rip), %rdi
movl -4(%rbp), %esi
callq _create_list
movq %rax, _in(%rip)
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
movq _pre(%rip), %rdi
movl -4(%rbp), %esi
callq _create_list
movq %rax, _pre(%rip)
movq _in(%rip), %rdi
movq _pre(%rip), %rsi
movl -4(%rbp), %edx
callq _construct
movq %rax, _root(%rip)
movq _root(%rip), %rdi
xorl %esi, %esi
callq _display
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movq _root(%rip), %rdi
callq _inorder
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
movq _root(%rip), %rdi
callq _preorder
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movq _root(%rip), %rdi
callq _postorder
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _root ## @root
.zerofill __DATA,__common,_root,8,3
.globl _in ## @in
.zerofill __DATA,__common,_in,8,3
.globl _pre ## @pre
.zerofill __DATA,__common,_pre,8,3
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d "
L_.str.1: ## @.str.1
.asciz "Enter the element to be inserted:"
L_.str.2: ## @.str.2
.asciz "%d"
L_.str.3: ## @.str.3
.asciz "\n"
L_.str.4: ## @.str.4
.asciz "\t"
L_.str.5: ## @.str.5
.asciz "\nEnter the number of nodes: "
L_.str.6: ## @.str.6
.asciz "Enter inorder:\n"
L_.str.7: ## @.str.7
.asciz "Enter preorder:\n"
L_.str.8: ## @.str.8
.asciz "\nInorder is:"
L_.str.9: ## @.str.9
.asciz "\nPreorder is:"
L_.str.10: ## @.str.10
.asciz "\nPostorder is:"
.subsections_via_symbols
| the_stack_data/43886704.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _is_empty ; -- Begin function is_empty
.p2align 2
_is_empty: ; @is_empty
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
and w0, w8, #0x1
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _create_stack ; -- Begin function create_stack
.p2align 2
_create_stack: ; @create_stack
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, #16
bl _malloc
str x0, [sp, #8]
ldr x8, [sp, #8]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _push ; -- Begin function push
.p2align 2
_push: ; @push
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
str x1, [sp, #16]
mov x0, #16
bl _malloc
str x0, [sp, #8]
ldur w8, [x29, #-4]
ldr x9, [sp, #8]
str w8, [x9]
ldr x8, [sp, #16]
ldr x8, [x8, #8]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldr x8, [sp, #8]
ldr x9, [sp, #16]
str x8, [x9, #8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _print_stack ; -- Begin function print_stack
.p2align 2
_print_stack: ; @print_stack
.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@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB3_3
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldur x8, [x29, #-8]
ldr w8, [x8]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
stur x8, [x29, #-8]
b LBB3_1
LBB3_3:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _top ; -- Begin function top
.p2align 2
_top: ; @top
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp]
ldr x8, [sp]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
str wzr, [sp, #12]
b LBB4_3
LBB4_2:
ldr x8, [sp]
ldr x8, [x8, #8]
ldr w8, [x8]
str w8, [sp, #12]
b LBB4_3
LBB4_3:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _pop ; -- Begin function pop
.p2align 2
_pop: ; @pop
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
ldr x8, [sp, #16]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
stur wzr, [x29, #-4]
b LBB5_3
LBB5_2:
ldr x8, [sp, #16]
ldr x8, [x8, #8]
str x8, [sp, #8]
ldr x8, [sp, #8]
ldr x8, [x8, #8]
ldr x9, [sp, #16]
str x8, [x9, #8]
ldr x8, [sp, #8]
ldr w8, [x8]
str w8, [sp, #4]
ldr x0, [sp, #8]
bl _free
ldr w8, [sp, #4]
stur w8, [x29, #-4]
b LBB5_3
LBB5_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]
bl _create_stack
str x0, [sp, #16]
ldr x0, [sp, #16]
bl _is_empty
subs w8, w0, #1
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
adrp x0, l___func__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
mov w2, #69
adrp x3, l_.str.3@PAGE
add x3, x3, l_.str.3@PAGEOFF
bl ___assert_rtn
LBB6_2:
b LBB6_3
LBB6_3:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldr x0, [sp, #16]
bl _print_stack
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldr x1, [sp, #16]
mov w0, #1
bl _push
ldr x0, [sp, #16]
bl _print_stack
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
ldr x0, [sp, #16]
bl _top
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
ldr x0, [sp, #16]
bl _top
subs w8, w0, #1
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB6_5
b LBB6_4
LBB6_4:
adrp x0, l___func__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
mov w2, #77
adrp x3, l_.str.8@PAGE
add x3, x3, l_.str.8@PAGEOFF
bl ___assert_rtn
LBB6_5:
b LBB6_6
LBB6_6:
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
ldr x0, [sp, #16]
bl _pop
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #1
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB6_8
b LBB6_7
LBB6_7:
adrp x0, l___func__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
mov w2, #80
adrp x3, l_.str.10@PAGE
add x3, x3, l_.str.10@PAGEOFF
bl ___assert_rtn
LBB6_8:
b LBB6_9
LBB6_9:
ldr x1, [sp, #16]
mov w0, #2
bl _push
ldr x1, [sp, #16]
mov w0, #3
bl _push
ldr x0, [sp, #16]
bl _pop
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #3
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB6_11
b LBB6_10
LBB6_10:
adrp x0, l___func__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
mov w2, #84
adrp x3, l_.str.11@PAGE
add x3, x3, l_.str.11@PAGEOFF
bl ___assert_rtn
LBB6_11:
b LBB6_12
LBB6_12:
ldr x0, [sp, #16]
bl _print_stack
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 "inverse print stack: \n"
l_.str.1: ; @.str.1
.asciz "{.value=%d .next=%x}\n"
l___func__.main: ; @__func__.main
.asciz "main"
l_.str.2: ; @.str.2
.asciz "198579645.c"
l_.str.3: ; @.str.3
.asciz "is_empty(s) == 1"
l_.str.4: ; @.str.4
.asciz "print empty stack\n"
l_.str.5: ; @.str.5
.asciz "push 1 to stack\n"
l_.str.6: ; @.str.6
.asciz "get top of stack\n"
l_.str.7: ; @.str.7
.asciz "%d\n"
l_.str.8: ; @.str.8
.asciz "top(s) == 1"
l_.str.9: ; @.str.9
.asciz "pop 1 from stack and push 2, 3, then pop 3 from stack\n"
l_.str.10: ; @.str.10
.asciz "pop_value == 1"
l_.str.11: ; @.str.11
.asciz "pop_value == 3"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _is_empty ## -- Begin function is_empty
.p2align 4, 0x90
_is_empty: ## @is_empty
.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
cmpq $0, 8(%rax)
sete %al
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _create_stack ## -- Begin function create_stack
.p2align 4, 0x90
_create_stack: ## @create_stack
.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 $16, %edi
callq _malloc
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
movq $0, 8(%rax)
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _push ## -- Begin function push
.p2align 4, 0x90
_push: ## @push
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movl $16, %edi
callq _malloc
movq %rax, -24(%rbp)
movl -4(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movq -16(%rbp), %rax
movq 8(%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _print_stack ## -- Begin function print_stack
.p2align 4, 0x90
_print_stack: ## @print_stack
.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(%rip), %rdi
movb $0, %al
callq _printf
LBB3_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -8(%rbp)
je LBB3_3
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movq -8(%rbp), %rax
movl (%rax), %esi
movq -8(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -8(%rbp)
jmp LBB3_1
LBB3_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _top ## -- Begin function top
.p2align 4, 0x90
_top: ## @top
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rax
cmpq $0, 8(%rax)
jne LBB4_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB4_3
LBB4_2:
movq -16(%rbp), %rax
movq 8(%rax), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
LBB4_3:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _pop ## -- Begin function pop
.p2align 4, 0x90
_pop: ## @pop
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rax
cmpq $0, 8(%rax)
jne LBB5_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB5_3
LBB5_2:
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movq 8(%rax), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rax
movl (%rax), %eax
movl %eax, -28(%rbp)
movq -24(%rbp), %rdi
callq _free
movl -28(%rbp), %eax
movl %eax, -4(%rbp)
LBB5_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 $32, %rsp
movl $0, -4(%rbp)
callq _create_stack
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
callq _is_empty
cmpl $1, %eax
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB6_2
## %bb.1:
leaq L___func__.main(%rip), %rdi
leaq L_.str.2(%rip), %rsi
leaq L_.str.3(%rip), %rcx
movl $69, %edx
callq ___assert_rtn
LBB6_2:
jmp LBB6_3
LBB6_3:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rdi
callq _print_stack
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rsi
movl $1, %edi
callq _push
movq -16(%rbp), %rdi
callq _print_stack
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rdi
callq _top
movl %eax, %esi
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rdi
callq _top
cmpl $1, %eax
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB6_5
## %bb.4:
leaq L___func__.main(%rip), %rdi
leaq L_.str.2(%rip), %rsi
leaq L_.str.8(%rip), %rcx
movl $77, %edx
callq ___assert_rtn
LBB6_5:
jmp LBB6_6
LBB6_6:
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rdi
callq _pop
movl %eax, -20(%rbp)
cmpl $1, -20(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB6_8
## %bb.7:
leaq L___func__.main(%rip), %rdi
leaq L_.str.2(%rip), %rsi
leaq L_.str.10(%rip), %rcx
movl $80, %edx
callq ___assert_rtn
LBB6_8:
jmp LBB6_9
LBB6_9:
movq -16(%rbp), %rsi
movl $2, %edi
callq _push
movq -16(%rbp), %rsi
movl $3, %edi
callq _push
movq -16(%rbp), %rdi
callq _pop
movl %eax, -20(%rbp)
cmpl $3, -20(%rbp)
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB6_11
## %bb.10:
leaq L___func__.main(%rip), %rdi
leaq L_.str.2(%rip), %rsi
leaq L_.str.11(%rip), %rcx
movl $84, %edx
callq ___assert_rtn
LBB6_11:
jmp LBB6_12
LBB6_12:
movq -16(%rbp), %rdi
callq _print_stack
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "inverse print stack: \n"
L_.str.1: ## @.str.1
.asciz "{.value=%d .next=%x}\n"
L___func__.main: ## @__func__.main
.asciz "main"
L_.str.2: ## @.str.2
.asciz "198579645.c"
L_.str.3: ## @.str.3
.asciz "is_empty(s) == 1"
L_.str.4: ## @.str.4
.asciz "print empty stack\n"
L_.str.5: ## @.str.5
.asciz "push 1 to stack\n"
L_.str.6: ## @.str.6
.asciz "get top of stack\n"
L_.str.7: ## @.str.7
.asciz "%d\n"
L_.str.8: ## @.str.8
.asciz "top(s) == 1"
L_.str.9: ## @.str.9
.asciz "pop 1 from stack and push 2, 3, then pop 3 from stack\n"
L_.str.10: ## @.str.10
.asciz "pop_value == 1"
L_.str.11: ## @.str.11
.asciz "pop_value == 3"
.subsections_via_symbols
| the_stack_data/198579645.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__const
.globl _glsl_bilinear_rgb32_lut_fsh_src ; @glsl_bilinear_rgb32_lut_fsh_src
_glsl_bilinear_rgb32_lut_fsh_src:
.asciz "\n#pragma optimize (on)\n#pragma debug (off)\n\nuniform sampler2D color_texture;\nuniform sampler2D colortable_texture;\nuniform vec2 colortable_sz; // orig size\nuniform vec2 colortable_pow2_sz; // pow2 ct size\nuniform vec2 color_texture_pow2_sz; // pow2 tex size\n\nvec4 lutTex2D(in vec2 texcoord)\n{\n\tvec4 color_tex;\n\tvec2 color_map_coord;\n\tvec4 color0;\n\tfloat colortable_scale = (colortable_sz.x/3.0) / colortable_pow2_sz.x;\n\n\t// normalized texture coordinates ..\n\tcolor_tex = texture2D(color_texture, texcoord) * ((colortable_sz.x/3.0)-1.0)/colortable_pow2_sz.x;// lookup space \n\n\tcolor_map_coord.x = color_tex.b;\n\tcolor0.b = texture2D(colortable_texture, color_map_coord).b;\n\n\tcolor_map_coord.x = color_tex.g + colortable_scale;\n\tcolor0.g = texture2D(colortable_texture, color_map_coord).g;\n\n\tcolor_map_coord.x = color_tex.r + 2.0 * colortable_scale;\n\tcolor0.r = texture2D(colortable_texture, color_map_coord).r;\n\n\treturn color0;\n}\n\nvoid main()\n{\n\tvec2 xy = gl_TexCoord[0].st;\n\n\t// mix(x,y,a): x*(1-a) + y*a\n\t//\n\t// bilinear filtering includes 2 mix:\n\t//\n\t// pix1 = tex[x0][y0] * ( 1 - u_ratio ) + tex[x1][y0] * u_ratio\n\t// pix2 = tex[x0][y1] * ( 1 - u_ratio ) + tex[x1][y1] * u_ratio\n\t// fin = pix1 * ( 1 - v_ratio ) + pix2 * v_ratio\n\t//\n\t// so we can use the build in mix function for these 2 computations ;-)\n\t//\n\tvec2 uv_ratio = fract(xy*color_texture_pow2_sz); // xy*color_texture_pow2_sz - floor(xy*color_texture_pow2_sz);\n\tvec2 one = 1.0/color_texture_pow2_sz;\n\n\tvec4 col1, col2;\n\n\tcol1 = mix( lutTex2D(xy ), lutTex2D(xy + vec2(one.x, 0.0)), uv_ratio.x);\n\tcol2 = mix( lutTex2D(xy + vec2(0.0, one.y)), lutTex2D(xy + one ), uv_ratio.x);\n\n\tgl_FragColor = mix ( col1, col2, uv_ratio.y );\n}\n\n\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__const
.globl _glsl_bilinear_rgb32_lut_fsh_src ## @glsl_bilinear_rgb32_lut_fsh_src
.p2align 4
_glsl_bilinear_rgb32_lut_fsh_src:
.asciz "\n#pragma optimize (on)\n#pragma debug (off)\n\nuniform sampler2D color_texture;\nuniform sampler2D colortable_texture;\nuniform vec2 colortable_sz; // orig size\nuniform vec2 colortable_pow2_sz; // pow2 ct size\nuniform vec2 color_texture_pow2_sz; // pow2 tex size\n\nvec4 lutTex2D(in vec2 texcoord)\n{\n\tvec4 color_tex;\n\tvec2 color_map_coord;\n\tvec4 color0;\n\tfloat colortable_scale = (colortable_sz.x/3.0) / colortable_pow2_sz.x;\n\n\t// normalized texture coordinates ..\n\tcolor_tex = texture2D(color_texture, texcoord) * ((colortable_sz.x/3.0)-1.0)/colortable_pow2_sz.x;// lookup space \n\n\tcolor_map_coord.x = color_tex.b;\n\tcolor0.b = texture2D(colortable_texture, color_map_coord).b;\n\n\tcolor_map_coord.x = color_tex.g + colortable_scale;\n\tcolor0.g = texture2D(colortable_texture, color_map_coord).g;\n\n\tcolor_map_coord.x = color_tex.r + 2.0 * colortable_scale;\n\tcolor0.r = texture2D(colortable_texture, color_map_coord).r;\n\n\treturn color0;\n}\n\nvoid main()\n{\n\tvec2 xy = gl_TexCoord[0].st;\n\n\t// mix(x,y,a): x*(1-a) + y*a\n\t//\n\t// bilinear filtering includes 2 mix:\n\t//\n\t// pix1 = tex[x0][y0] * ( 1 - u_ratio ) + tex[x1][y0] * u_ratio\n\t// pix2 = tex[x0][y1] * ( 1 - u_ratio ) + tex[x1][y1] * u_ratio\n\t// fin = pix1 * ( 1 - v_ratio ) + pix2 * v_ratio\n\t//\n\t// so we can use the build in mix function for these 2 computations ;-)\n\t//\n\tvec2 uv_ratio = fract(xy*color_texture_pow2_sz); // xy*color_texture_pow2_sz - floor(xy*color_texture_pow2_sz);\n\tvec2 one = 1.0/color_texture_pow2_sz;\n\n\tvec4 col1, col2;\n\n\tcol1 = mix( lutTex2D(xy ), lutTex2D(xy + vec2(one.x, 0.0)), uv_ratio.x);\n\tcol2 = mix( lutTex2D(xy + vec2(0.0, one.y)), lutTex2D(xy + one ), uv_ratio.x);\n\n\tgl_FragColor = mix ( col1, col2, uv_ratio.y );\n}\n\n\n"
.subsections_via_symbols
| the_stack_data/425445.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/12638904.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _wcsncat ; -- Begin function wcsncat
.p2align 2
_wcsncat: ; @wcsncat
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
str x0, [sp, #56]
str x1, [sp, #48]
str x2, [sp, #40]
ldr x8, [sp, #56]
str x8, [sp, #32]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #32]
add x8, x8, #4
str x8, [sp, #32]
b LBB0_1
LBB0_3:
ldr x8, [sp, #32]
str x8, [sp, #24]
ldr x8, [sp, #48]
str x8, [sp, #16]
b LBB0_4
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, ne
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [sp, #16]
add x9, x8, #4
str x9, [sp, #16]
ldr w8, [x8]
ldr x9, [sp, #24]
add x10, x9, #4
str x10, [sp, #24]
str w8, [x9]
ldr x8, [sp, #40]
subs x8, x8, #1
str x8, [sp, #40]
b LBB0_4
LBB0_8:
ldr x8, [sp, #24]
str wzr, [x8]
ldr x0, [sp, #56]
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _wcsncat ## -- Begin function wcsncat
.p2align 4, 0x90
_wcsncat: ## @wcsncat
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -8(%rbp), %rax
movq %rax, -32(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
cmpl $0, (%rax)
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
addq $4, %rax
movq %rax, -32(%rbp)
jmp LBB0_1
LBB0_3:
movq -32(%rbp), %rax
movq %rax, -40(%rbp)
movq -16(%rbp), %rax
movq %rax, -48(%rbp)
LBB0_4: ## =>This Inner Loop Header: Depth=1
movq -48(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, (%rcx)
movb %al, -49(%rbp) ## 1-byte Spill
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
cmpq $0, -24(%rbp)
setne %al
movb %al, -49(%rbp) ## 1-byte Spill
LBB0_6: ## in Loop: Header=BB0_4 Depth=1
movb -49(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_7
jmp LBB0_8
LBB0_7: ## in Loop: Header=BB0_4 Depth=1
movq -48(%rbp), %rax
movq %rax, %rcx
addq $4, %rcx
movq %rcx, -48(%rbp)
movl (%rax), %ecx
movq -40(%rbp), %rax
movq %rax, %rdx
addq $4, %rdx
movq %rdx, -40(%rbp)
movl %ecx, (%rax)
movq -24(%rbp), %rax
addq $-1, %rax
movq %rax, -24(%rbp)
jmp LBB0_4
LBB0_8:
movq -40(%rbp), %rax
movl $0, (%rax)
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/61075235.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur w8, [x29, #-8]
subs w8, w8, #3
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_25
LBB0_2:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
bl _atoi
stur w0, [x29, #-20]
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
bl _atoi
str w0, [sp, #24]
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
mul 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 LBB0_24
LBB0_4:
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_14
b LBB0_5
LBB0_5:
ldur w8, [x29, #-20]
str w8, [sp, #20]
b LBB0_6
LBB0_6: ; =>This Loop Header: Depth=1
; Child Loop BB0_8 Depth 2
ldr w8, [sp, #20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_13
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_6 Depth=1
ldur w8, [x29, #-20]
str w8, [sp, #16]
b LBB0_8
LBB0_8: ; Parent Loop BB0_6 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #16]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_11
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_8 Depth=2
ldr w8, [sp, #20]
ldr w9, [sp, #16]
mul w10, w8, w9
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_10
LBB0_10: ; in Loop: Header=BB0_8 Depth=2
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_8
LBB0_11: ; in Loop: Header=BB0_6 Depth=1
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_6 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_6
LBB0_13:
b LBB0_23
LBB0_14:
ldur w8, [x29, #-20]
str w8, [sp, #20]
b LBB0_15
LBB0_15: ; =>This Loop Header: Depth=1
; Child Loop BB0_17 Depth 2
ldr w8, [sp, #20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB0_22
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_15 Depth=1
ldur w8, [x29, #-20]
str w8, [sp, #16]
b LBB0_17
LBB0_17: ; Parent Loop BB0_15 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #16]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB0_20
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_17 Depth=2
ldr w8, [sp, #20]
ldr w9, [sp, #16]
mul w10, w8, w9
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_19
LBB0_19: ; in Loop: Header=BB0_17 Depth=2
ldr w8, [sp, #16]
subs w8, w8, #1
str w8, [sp, #16]
b LBB0_17
LBB0_20: ; in Loop: Header=BB0_15 Depth=1
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_15 Depth=1
ldr w8, [sp, #20]
subs w8, w8, #1
str w8, [sp, #20]
b LBB0_15
LBB0_22:
b LBB0_23
LBB0_23:
b LBB0_24
LBB0_24:
stur wzr, [x29, #-4]
b LBB0_25
LBB0_25:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Nombre de param\303\250tres insuffisants\n"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz " %d "
l_.str.3: ; @.str.3
.asciz "\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $3, -8(%rbp)
je LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -4(%rbp)
jmp LBB0_25
LBB0_2:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _atoi
movl %eax, -20(%rbp)
movq -16(%rbp), %rax
movq 16(%rax), %rdi
callq _atoi
movl %eax, -24(%rbp)
movl -20(%rbp), %eax
cmpl -24(%rbp), %eax
jne LBB0_4
## %bb.3:
movl -20(%rbp), %esi
imull -24(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_24
LBB0_4:
movl -20(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB0_14
## %bb.5:
movl -20(%rbp), %eax
movl %eax, -28(%rbp)
LBB0_6: ## =>This Loop Header: Depth=1
## Child Loop BB0_8 Depth 2
movl -28(%rbp), %eax
cmpl -24(%rbp), %eax
jg LBB0_13
## %bb.7: ## in Loop: Header=BB0_6 Depth=1
movl -20(%rbp), %eax
movl %eax, -32(%rbp)
LBB0_8: ## Parent Loop BB0_6 Depth=1
## => This Inner Loop Header: Depth=2
movl -32(%rbp), %eax
cmpl -24(%rbp), %eax
jg LBB0_11
## %bb.9: ## in Loop: Header=BB0_8 Depth=2
movl -28(%rbp), %esi
imull -32(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.10: ## in Loop: Header=BB0_8 Depth=2
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB0_8
LBB0_11: ## in Loop: Header=BB0_6 Depth=1
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
## %bb.12: ## in Loop: Header=BB0_6 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_6
LBB0_13:
jmp LBB0_23
LBB0_14:
movl -20(%rbp), %eax
movl %eax, -28(%rbp)
LBB0_15: ## =>This Loop Header: Depth=1
## Child Loop BB0_17 Depth 2
movl -28(%rbp), %eax
cmpl -24(%rbp), %eax
jl LBB0_22
## %bb.16: ## in Loop: Header=BB0_15 Depth=1
movl -20(%rbp), %eax
movl %eax, -32(%rbp)
LBB0_17: ## Parent Loop BB0_15 Depth=1
## => This Inner Loop Header: Depth=2
movl -32(%rbp), %eax
cmpl -24(%rbp), %eax
jl LBB0_20
## %bb.18: ## in Loop: Header=BB0_17 Depth=2
movl -28(%rbp), %esi
imull -32(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.19: ## in Loop: Header=BB0_17 Depth=2
movl -32(%rbp), %eax
addl $-1, %eax
movl %eax, -32(%rbp)
jmp LBB0_17
LBB0_20: ## in Loop: Header=BB0_15 Depth=1
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
## %bb.21: ## in Loop: Header=BB0_15 Depth=1
movl -28(%rbp), %eax
addl $-1, %eax
movl %eax, -28(%rbp)
jmp LBB0_15
LBB0_22:
jmp LBB0_23
LBB0_23:
jmp LBB0_24
LBB0_24:
movl $0, -4(%rbp)
LBB0_25:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Nombre de param\303\250tres insuffisants\n"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz " %d "
L_.str.3: ## @.str.3
.asciz "\n"
.subsections_via_symbols
| the_stack_data/69353.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 compute
lCPI0_0:
.quad 0x9f2958c88aaa66f5 ; double -1.4422999999999999E-158
lCPI0_1:
.quad 0x8000000000000000 ; double -0
lCPI0_2:
.quad 0x6e768ccfb8800579 ; double 1.3041999999999999E+224
lCPI0_3:
.quad 0x8000000000000027 ; double -1.9268560187808615E-322
lCPI0_4:
.quad 0xff4a5229cfb4c191 ; double -1.444E+305
lCPI0_5:
.quad 0x80406607d11f7043 ; double -1.8244000000000001E-307
lCPI0_6:
.quad 0x8038249ce151defa ; double -1.343E-307
lCPI0_7:
.quad 0x8000000000000028 ; double -1.9762625833649862E-322
lCPI0_8:
.quad 0x00723fb37b83ac60 ; double 1.6241999999999999E-306
lCPI0_9:
.quad 0x7f7aaad2c8557346 ; double 1.1704000000000001E+306
lCPI0_10:
.quad 0xfc60f5f17633fb60 ; double -1.3222999999999999E+291
.section __TEXT,__text,regular,pure_instructions
.globl _compute
.p2align 2
_compute: ; @compute
.cfi_startproc
; %bb.0:
sub sp, sp, #304
.cfi_def_cfa_offset 304
stp x28, x27, [sp, #272] ; 16-byte Folded Spill
stp x29, x30, [sp, #288] ; 16-byte Folded Spill
add x29, sp, #288
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
ldr x13, [x29, #16]
ldr x12, [x29, #24]
ldr x11, [x29, #32]
ldr x10, [x29, #40]
ldr x9, [x29, #48]
ldr x8, [x29, #56]
stur d0, [x29, #-24]
stur w0, [x29, #-28]
stur d1, [x29, #-40]
stur d2, [x29, #-48]
stur d3, [x29, #-56]
stur d4, [x29, #-64]
stur d5, [x29, #-72]
stur d6, [x29, #-80]
stur d7, [x29, #-88]
stur x13, [x29, #-96]
stur x12, [x29, #-104]
stur x11, [x29, #-112]
stur x10, [x29, #-120]
stur x9, [x29, #-128]
stur x8, [x29, #-136]
ldur d0, [x29, #-24]
str d0, [sp, #144]
ldur d0, [x29, #-40]
str d0, [sp, #136]
ldur d0, [x29, #-48]
str d0, [sp, #128]
ldur d0, [x29, #-56]
str d0, [sp, #120]
ldur d0, [x29, #-64]
str d0, [sp, #112]
ldur d0, [x29, #-72]
str d0, [sp, #104]
ldur d0, [x29, #-80]
str d0, [sp, #96]
ldur d0, [x29, #-88]
str d0, [sp, #88]
ldur d0, [x29, #-96]
str d0, [sp, #80]
ldur d0, [x29, #-104]
str d0, [sp, #72]
ldur d0, [x29, #-112]
str d0, [sp, #64]
ldur d0, [x29, #-120]
str d0, [sp, #56]
ldur d0, [x29, #-128]
str d0, [sp, #48]
ldur d0, [x29, #-136]
str d0, [sp, #40]
ldr d0, [sp, #144]
ldr d1, [sp, #136]
adrp x8, lCPI0_10@PAGE
ldr d2, [x8, lCPI0_10@PAGEOFF]
fdiv d1, d1, d2
ldr d3, [sp, #128]
movi d2, #0000000000000000
fmul d2, d2, d3
fdiv d1, d1, d2
fcmp d0, d1
cset w8, pl
tbnz w8, #0, LBB0_10
b LBB0_1
LBB0_1:
str wzr, [sp, #36]
b LBB0_2
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
ldur w9, [x29, #-28]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_9
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_2 Depth=1
ldr d0, [sp, #120]
ldr d2, [sp, #112]
adrp x8, lCPI0_9@PAGE
ldr d1, [x8, lCPI0_9@PAGEOFF]
fsub d2, d1, d2
adrp x8, lCPI0_8@PAGE
ldr d1, [x8, lCPI0_8@PAGEOFF]
fsub d2, d1, d2
adrp x8, lCPI0_7@PAGE
ldr d1, [x8, lCPI0_7@PAGEOFF]
fmul d1, d1, d2
fmul d0, d0, d1
str d0, [sp, #144]
ldr d0, [sp, #104]
ldr d1, [sp, #96]
fdiv d0, d0, d1
bl _log10
str d0, [sp, #144]
ldr d0, [sp, #144]
adrp x8, lCPI0_6@PAGE
ldr d1, [x8, lCPI0_6@PAGEOFF]
fabs d1, d1
fcmp d0, d1
cset w8, lt
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_2 Depth=1
adrp x8, lCPI0_5@PAGE
ldr d0, [x8, lCPI0_5@PAGEOFF]
str d0, [sp, #24]
ldr d0, [sp, #24]
ldr d1, [sp, #88]
fmul d0, d0, d1
ldr d2, [sp, #80]
adrp x8, lCPI0_4@PAGE
ldr d3, [x8, lCPI0_4@PAGEOFF]
adrp x8, lCPI0_3@PAGE
ldr d1, [x8, lCPI0_3@PAGEOFF]
fmadd d2, d1, d2, d3
adrp x8, lCPI0_2@PAGE
ldr d1, [x8, lCPI0_2@PAGEOFF]
fmadd d0, d0, d1, d2
str d0, [sp, #144]
ldr d0, [sp, #72]
ldr d1, [sp, #64]
ldr d2, [sp, #144]
fmadd d0, d0, d1, d2
str d0, [sp, #144]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_2 Depth=1
ldr d0, [sp, #144]
str d0, [sp, #16] ; 8-byte Folded Spill
ldr d1, [sp, #56]
adrp x8, lCPI0_1@PAGE
ldr d0, [x8, lCPI0_1@PAGEOFF]
fmul d0, d0, d1
bl _sin
fmov d1, d0
ldr d0, [sp, #16] ; 8-byte Folded Reload
fcmp d0, d1
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_2 Depth=1
ldr d0, [sp, #48]
ldr d1, [sp, #40]
adrp x8, lCPI0_0@PAGE
ldr d2, [x8, lCPI0_0@PAGEOFF]
fsub d1, d1, d2
fdiv d0, d0, d1
str d0, [sp, #144]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_2 Depth=1
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_2 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_2
LBB0_9:
b LBB0_10
LBB0_10:
ldr d0, [sp, #144]
mov x8, sp
str d0, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldp x29, x30, [sp, #288] ; 16-byte Folded Reload
ldp x28, x27, [sp, #272] ; 16-byte Folded Reload
add sp, sp, #304
ret
.cfi_endproc
; -- End function
.globl _initPointer ; -- Begin function initPointer
.p2align 2
_initPointer: ; @initPointer
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur d0, [x29, #-8]
mov x0, #80
bl _malloc
str x0, [sp, #16]
str wzr, [sp, #12]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #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 d0, [x29, #-8]
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
str d0, [x8, x9, lsl #3]
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 x0, [sp, #16]
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, #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
mov w8, #0
str w8, [sp, #52] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
bl _atof
stur d0, [x29, #-24]
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
bl _atoi
stur w0, [x29, #-28]
ldur x8, [x29, #-16]
ldr x0, [x8, #24]
bl _atof
stur d0, [x29, #-40]
ldur x8, [x29, #-16]
ldr x0, [x8, #32]
bl _atof
stur d0, [x29, #-48]
ldur x8, [x29, #-16]
ldr x0, [x8, #40]
bl _atof
stur d0, [x29, #-56]
ldur x8, [x29, #-16]
ldr x0, [x8, #48]
bl _atof
stur d0, [x29, #-64]
ldur x8, [x29, #-16]
ldr x0, [x8, #56]
bl _atof
stur d0, [x29, #-72]
ldur x8, [x29, #-16]
ldr x0, [x8, #64]
bl _atof
stur d0, [x29, #-80]
ldur x8, [x29, #-16]
ldr x0, [x8, #72]
bl _atof
stur d0, [x29, #-88]
ldur x8, [x29, #-16]
ldr x0, [x8, #80]
bl _atof
str d0, [sp, #96]
ldur x8, [x29, #-16]
ldr x0, [x8, #88]
bl _atof
str d0, [sp, #88]
ldur x8, [x29, #-16]
ldr x0, [x8, #96]
bl _atof
str d0, [sp, #80]
ldur x8, [x29, #-16]
ldr x0, [x8, #104]
bl _atof
str d0, [sp, #72]
ldur x8, [x29, #-16]
ldr x0, [x8, #112]
bl _atof
str d0, [sp, #64]
ldur x8, [x29, #-16]
ldr x0, [x8, #120]
bl _atof
str d0, [sp, #56]
ldur d0, [x29, #-24]
ldur w0, [x29, #-28]
ldur d1, [x29, #-40]
ldur d2, [x29, #-48]
ldur d3, [x29, #-56]
ldur d4, [x29, #-64]
ldur d5, [x29, #-72]
ldur d6, [x29, #-80]
ldur d7, [x29, #-88]
ldr d21, [sp, #96]
ldr d20, [sp, #88]
ldr d19, [sp, #80]
ldr d18, [sp, #72]
ldr d17, [sp, #64]
ldr d16, [sp, #56]
mov x8, sp
str d21, [x8]
str d20, [x8, #8]
str d19, [x8, #16]
str d18, [x8, #24]
str d17, [x8, #32]
str d16, [x8, #40]
bl _compute
ldr w0, [sp, #52] ; 4-byte Folded Reload
ldp x29, x30, [sp, #192] ; 16-byte Folded Reload
add sp, sp, #208
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%.17Lg\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function compute
LCPI0_0:
.quad 0xfc60f5f17633fb60 ## double -1.3222999999999999E+291
LCPI0_1:
.quad 0x7f7aaad2c8557346 ## double 1.1704000000000001E+306
LCPI0_2:
.quad 0x00723fb37b83ac60 ## double 1.6241999999999999E-306
LCPI0_3:
.quad 0x8000000000000028 ## double -1.9762625833649862E-322
LCPI0_4:
.quad 0x0038249ce151defa ## double 1.343E-307
LCPI0_5:
.quad 0x80406607d11f7043 ## double -1.8244000000000001E-307
LCPI0_6:
.quad 0x8000000000000027 ## double -1.9268560187808615E-322
LCPI0_7:
.quad 0xff4a5229cfb4c191 ## double -1.444E+305
LCPI0_8:
.quad 0x6e768ccfb8800579 ## double 1.3041999999999999E+224
LCPI0_9:
.quad 0x1f2958c88aaa66f5 ## double 1.4422999999999999E-158
.section __TEXT,__text,regular,pure_instructions
.globl _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 $368, %rsp ## imm = 0x170
movsd 56(%rbp), %xmm8 ## xmm8 = mem[0],zero
movsd 48(%rbp), %xmm8 ## xmm8 = mem[0],zero
movsd 40(%rbp), %xmm8 ## xmm8 = mem[0],zero
movsd 32(%rbp), %xmm8 ## xmm8 = mem[0],zero
movsd 24(%rbp), %xmm8 ## xmm8 = mem[0],zero
movsd 16(%rbp), %xmm8 ## xmm8 = mem[0],zero
movsd %xmm0, -8(%rbp)
movl %edi, -12(%rbp)
movsd %xmm1, -24(%rbp)
movsd %xmm2, -32(%rbp)
movsd %xmm3, -40(%rbp)
movsd %xmm4, -48(%rbp)
movsd %xmm5, -56(%rbp)
movsd %xmm6, -64(%rbp)
movsd %xmm7, -72(%rbp)
fldl -8(%rbp)
fstpt -96(%rbp)
fldl -24(%rbp)
fstpt -112(%rbp)
fldl -32(%rbp)
fstpt -128(%rbp)
fldl -40(%rbp)
fstpt -144(%rbp)
fldl -48(%rbp)
fstpt -160(%rbp)
fldl -56(%rbp)
fstpt -176(%rbp)
fldl -64(%rbp)
fstpt -192(%rbp)
fldl -72(%rbp)
fstpt -208(%rbp)
fldl 16(%rbp)
fstpt -224(%rbp)
fldl 24(%rbp)
fstpt -240(%rbp)
fldl 32(%rbp)
fstpt -256(%rbp)
fldl 40(%rbp)
fstpt -272(%rbp)
fldl 48(%rbp)
fstpt -288(%rbp)
fldl 56(%rbp)
fstpt -304(%rbp)
fldt -96(%rbp)
fldt -112(%rbp)
fldl LCPI0_0(%rip)
fdivrp %st, %st(1)
fldt -128(%rbp)
fldz
fmulp %st, %st(1)
fdivrp %st, %st(1)
fucompi %st(1), %st
fstp %st(0)
jbe LBB0_10
jmp LBB0_1
LBB0_1:
movl $0, -308(%rbp)
LBB0_2: ## =>This Inner Loop Header: Depth=1
movl -308(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB0_9
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
fldt -144(%rbp)
fldt -160(%rbp)
fldl LCPI0_1(%rip)
fsubp %st, %st(1)
fldl LCPI0_2(%rip)
fsubp %st, %st(1)
fldl LCPI0_3(%rip)
fmulp %st, %st(1)
fmulp %st, %st(1)
fstpt -96(%rbp)
fldt -176(%rbp)
fldt -192(%rbp)
fdivrp %st, %st(1)
movq %rsp, %rax
fstpt (%rax)
callq _log10l
fstpt -96(%rbp)
fldt -96(%rbp)
fldl LCPI0_4(%rip)
fxch %st(1)
fucompi %st(1), %st
fstp %st(0)
jb LBB0_5
jmp LBB0_4
LBB0_4: ## in Loop: Header=BB0_2 Depth=1
fldl LCPI0_5(%rip)
fstpt -336(%rbp)
fldt -336(%rbp)
fldt -208(%rbp)
fmulp %st, %st(1)
fldt -224(%rbp)
fldl LCPI0_6(%rip)
fmulp %st, %st(1)
fldl LCPI0_7(%rip)
faddp %st, %st(1)
fldl LCPI0_8(%rip)
fmulp %st, %st(2)
faddp %st, %st(1)
fstpt -96(%rbp)
fldt -240(%rbp)
fldt -256(%rbp)
fldt -96(%rbp)
fxch %st(2)
fmulp %st, %st(1)
faddp %st, %st(1)
fstpt -96(%rbp)
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
fldt -96(%rbp)
fstpt -348(%rbp) ## 10-byte Folded Spill
fldt -272(%rbp)
fldz
fchs
fmulp %st, %st(1)
movq %rsp, %rax
fstpt (%rax)
callq _sinl
fldt -348(%rbp) ## 10-byte Folded Reload
fucompi %st(1), %st
fstp %st(0)
jne LBB0_7
jp LBB0_7
jmp LBB0_6
LBB0_6: ## in Loop: Header=BB0_2 Depth=1
fldt -288(%rbp)
fldt -304(%rbp)
fldl LCPI0_9(%rip)
faddp %st, %st(1)
fdivrp %st, %st(1)
fstpt -96(%rbp)
LBB0_7: ## in Loop: Header=BB0_2 Depth=1
jmp LBB0_8
LBB0_8: ## in Loop: Header=BB0_2 Depth=1
movl -308(%rbp), %eax
addl $1, %eax
movl %eax, -308(%rbp)
jmp LBB0_2
LBB0_9:
jmp LBB0_10
LBB0_10:
fldt -96(%rbp)
movq %rsp, %rax
fstpt (%rax)
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
addq $368, %rsp ## imm = 0x170
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _initPointer ## -- Begin function initPointer
.p2align 4, 0x90
_initPointer: ## @initPointer
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movsd %xmm0, -8(%rbp)
movl $80, %edi
callq _malloc
movq %rax, -16(%rbp)
movl $0, -20(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $10, -20(%rbp)
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
## %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:
movq -16(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $192, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _atof
movsd %xmm0, -24(%rbp)
movq -16(%rbp), %rax
movq 16(%rax), %rdi
callq _atoi
movl %eax, -28(%rbp)
movq -16(%rbp), %rax
movq 24(%rax), %rdi
callq _atof
movsd %xmm0, -40(%rbp)
movq -16(%rbp), %rax
movq 32(%rax), %rdi
callq _atof
movsd %xmm0, -48(%rbp)
movq -16(%rbp), %rax
movq 40(%rax), %rdi
callq _atof
movsd %xmm0, -56(%rbp)
movq -16(%rbp), %rax
movq 48(%rax), %rdi
callq _atof
movsd %xmm0, -64(%rbp)
movq -16(%rbp), %rax
movq 56(%rax), %rdi
callq _atof
movsd %xmm0, -72(%rbp)
movq -16(%rbp), %rax
movq 64(%rax), %rdi
callq _atof
movsd %xmm0, -80(%rbp)
movq -16(%rbp), %rax
movq 72(%rax), %rdi
callq _atof
movsd %xmm0, -88(%rbp)
movq -16(%rbp), %rax
movq 80(%rax), %rdi
callq _atof
movsd %xmm0, -96(%rbp)
movq -16(%rbp), %rax
movq 88(%rax), %rdi
callq _atof
movsd %xmm0, -104(%rbp)
movq -16(%rbp), %rax
movq 96(%rax), %rdi
callq _atof
movsd %xmm0, -112(%rbp)
movq -16(%rbp), %rax
movq 104(%rax), %rdi
callq _atof
movsd %xmm0, -120(%rbp)
movq -16(%rbp), %rax
movq 112(%rax), %rdi
callq _atof
movsd %xmm0, -128(%rbp)
movq -16(%rbp), %rax
movq 120(%rax), %rdi
callq _atof
movsd %xmm0, -136(%rbp)
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
movl -28(%rbp), %edi
movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero
movsd -48(%rbp), %xmm2 ## xmm2 = mem[0],zero
movsd -56(%rbp), %xmm3 ## xmm3 = mem[0],zero
movsd -64(%rbp), %xmm4 ## xmm4 = mem[0],zero
movsd -72(%rbp), %xmm5 ## xmm5 = mem[0],zero
movsd -80(%rbp), %xmm6 ## xmm6 = mem[0],zero
movsd -88(%rbp), %xmm7 ## xmm7 = mem[0],zero
movsd -96(%rbp), %xmm13 ## xmm13 = mem[0],zero
movsd -104(%rbp), %xmm12 ## xmm12 = mem[0],zero
movsd -112(%rbp), %xmm11 ## xmm11 = mem[0],zero
movsd -120(%rbp), %xmm10 ## xmm10 = mem[0],zero
movsd -128(%rbp), %xmm9 ## xmm9 = mem[0],zero
movsd -136(%rbp), %xmm8 ## xmm8 = mem[0],zero
movsd %xmm13, (%rsp)
movsd %xmm12, 8(%rsp)
movsd %xmm11, 16(%rsp)
movsd %xmm10, 24(%rsp)
movsd %xmm9, 32(%rsp)
movsd %xmm8, 40(%rsp)
callq _compute
xorl %eax, %eax
addq $192, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%.17Lg\n"
.subsections_via_symbols
| the_stack_data/125499.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _run_fill ; -- Begin function run_fill
.p2align 2
_run_fill: ; @run_fill
.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 w1, [x29, #-12]
ldur w8, [x29, #-12]
add w9, w8, #1
; implicit-def: $x8
mov x8, x9
sxtw x0, w8
bl _malloc
stur x0, [x29, #-24]
stur wzr, [x29, #-28]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-28]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-24]
ldursw x9, [x29, #-28]
add x8, x8, x9
strb wzr, [x8]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB0_1
LBB0_4:
ldur x8, [x29, #-24]
str x8, [sp, #16] ; 8-byte Folded Spill
ldur x8, [x29, #-8]
str x8, [sp, #8] ; 8-byte Folded Spill
ldur x0, [x29, #-8]
bl _strlen
ldr x1, [sp, #8] ; 8-byte Folded Reload
mov x2, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov x3, #-1
bl ___strncpy_chk
mov w8, #1
str w8, [sp, #28]
b LBB0_5
LBB0_5: ; =>This Loop Header: Depth=1
; Child Loop BB0_7 Depth 2
ldr w8, [sp, #28]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldur x0, [x29, #-24]
bl _strlen
mov x8, x0
str w8, [sp, #32]
ldur x8, [x29, #-24]
ldrsw x9, [sp, #32]
add x9, x8, x9
mov w8, #48
strb w8, [x9]
stur wzr, [x29, #-28]
b LBB0_7
LBB0_7: ; Parent Loop BB0_5 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-28]
ldr w9, [sp, #32]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_12
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=2
ldur w8, [x29, #-28]
ldr w9, [sp, #32]
add w8, w8, w9
add w8, w8, #1
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_5 Depth=1
str wzr, [sp, #28]
b LBB0_12
LBB0_10: ; in Loop: Header=BB0_7 Depth=2
ldur x8, [x29, #-24]
ldr w9, [sp, #32]
ldur w10, [x29, #-28]
subs w9, w9, w10
subs w9, w9, #1
ldrsb w8, [x8, w9, sxtw]
mov w9, #48
subs w8, w8, #48
cset w8, eq
and w10, w8, #0x1
mov w8, #49
ands w10, w10, #0x1
csel w8, w8, w9, ne
ldur x9, [x29, #-24]
ldr w10, [sp, #32]
ldur w11, [x29, #-28]
add w10, w10, w11
add w10, w10, #1
strb w8, [x9, w10, sxtw]
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_7 Depth=2
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB0_7
LBB0_12: ; in Loop: Header=BB0_5 Depth=1
b LBB0_5
LBB0_13:
ldur x0, [x29, #-24]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _create_empty_checksum ; -- Begin function create_empty_checksum
.p2align 2
_create_empty_checksum: ; @create_empty_checksum
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
ldur w8, [x29, #-4]
mov w9, #2
sdiv w8, w8, w9
add w9, w8, #1
; implicit-def: $x8
mov x8, x9
sxtw x0, w8
bl _malloc
str x0, [sp, #16]
str wzr, [sp, #12]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldrsw x8, [sp, #12]
str x8, [sp] ; 8-byte Folded Spill
ldr x0, [sp, #16]
bl _strlen
ldr x8, [sp] ; 8-byte Folded Reload
subs x8, x8, x0
cset w8, hi
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
add x8, x8, x9
strb wzr, [x8]
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 x0, [sp, #16]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _checksum ; -- Begin function checksum
.p2align 2
_checksum: ; @checksum
.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]
b LBB2_1
LBB2_1: ; =>This Loop Header: Depth=1
; Child Loop BB2_2 Depth 2
ldur x0, [x29, #-8]
bl _strlen
mov x8, x0
str w8, [sp, #20]
ldr w0, [sp, #20]
bl _create_empty_checksum
stur x0, [x29, #-16]
str wzr, [sp, #12]
b LBB2_2
LBB2_2: ; Parent Loop BB2_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, LBB2_5
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_2 Depth=2
ldur x8, [x29, #-8]
ldrsw x9, [sp, #12]
ldrsb w8, [x8, x9]
ldur x9, [x29, #-8]
ldr w10, [sp, #12]
add w10, w10, #1
ldrsb w9, [x9, w10, sxtw]
subs w8, w8, w9
cset w8, eq
and w10, w8, #0x1
mov w9, #48
mov w8, #49
ands w10, w10, #0x1
csel w8, w8, w9, ne
ldur x9, [x29, #-16]
ldr w10, [sp, #12]
mov w11, #2
sdiv w10, w10, w11
strb w8, [x9, w10, sxtw]
ldur x8, [x29, #-8]
ldr w9, [sp, #12]
add w9, w9, #1
add x8, x8, w9, sxtw
strb wzr, [x8]
ldur x8, [x29, #-8]
ldrsw x9, [sp, #12]
add x8, x8, x9
strb wzr, [x8]
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_2 Depth=2
ldr w8, [sp, #12]
add w8, w8, #2
str w8, [sp, #12]
b LBB2_2
LBB2_5: ; in Loop: Header=BB2_1 Depth=1
ldur x8, [x29, #-16]
stur x8, [x29, #-8]
b LBB2_6
LBB2_6: ; in Loop: Header=BB2_1 Depth=1
ldur x0, [x29, #-8]
bl _strlen
mov x9, #2
udiv x8, x0, x9
mul x8, x8, x9
subs x8, x0, x8
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_1
b LBB2_7
LBB2_7:
ldur x0, [x29, #-8]
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, #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, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-92]
stur w0, [x29, #-96]
str x1, [sp, #104]
ldur w8, [x29, #-96]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
ldr x8, [sp, #104]
ldr x8, [x8, #8]
str x8, [sp, #88]
b LBB3_18
LBB3_2:
mov x0, #13
bl _malloc
str x0, [sp, #88]
ldr x8, [sp, #88]
add x0, x8, #2
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov x2, #12
mov x3, #-1
bl ___strncat_chk
ldr x8, [sp, #104]
ldr x8, [x8]
ldrsb w0, [x8]
bl _isdigit
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB3_6
b LBB3_3
LBB3_3:
ldr x8, [sp, #104]
ldr x8, [x8]
ldrsb w0, [x8, #1]
bl _isdigit
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB3_6
b LBB3_4
LBB3_4:
ldr x8, [sp, #104]
ldr x8, [x8]
ldrsb w8, [x8, #2]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB3_6
b LBB3_5
LBB3_5:
ldr x8, [sp, #104]
ldr x8, [x8]
ldrb w8, [x8]
ldr x9, [sp, #88]
strb w8, [x9]
ldr x8, [sp, #104]
ldr x8, [x8]
ldrb w8, [x8, #2]
ldr x9, [sp, #88]
strb w8, [x9, #1]
b LBB3_17
LBB3_6:
mov x0, #80
bl _malloc
str x0, [sp, #64]
ldr x0, [sp, #64]
mov x1, #79
bl _getcwd
ldr x0, [sp, #64]
bl _strlen
mov x8, x0
str w8, [sp, #60]
b LBB3_7
LBB3_7: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #60]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB3_12
b LBB3_8
LBB3_8: ; in Loop: Header=BB3_7 Depth=1
ldr x8, [sp, #64]
ldrsw x9, [sp, #60]
ldrsb w8, [x8, x9]
subs w8, w8, #47
cset w8, ne
tbnz w8, #0, LBB3_10
b LBB3_9
LBB3_9:
b LBB3_12
LBB3_10: ; in Loop: Header=BB3_7 Depth=1
b LBB3_11
LBB3_11: ; in Loop: Header=BB3_7 Depth=1
ldr w8, [sp, #60]
subs w8, w8, #1
str w8, [sp, #60]
b LBB3_7
LBB3_12:
ldr x8, [sp, #64]
ldr w9, [sp, #60]
add w9, w9, #1
ldrsb w0, [x8, w9, sxtw]
bl _isdigit
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB3_15
b LBB3_13
LBB3_13:
ldr x8, [sp, #64]
ldr w9, [sp, #60]
add w9, w9, #2
ldrsb w0, [x8, w9, sxtw]
bl _isdigit
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB3_15
b LBB3_14
LBB3_14:
ldr x8, [sp, #64]
ldr w9, [sp, #60]
add w9, w9, #1
add x8, x8, w9, sxtw
ldrb w8, [x8]
ldr x9, [sp, #88]
strb w8, [x9]
ldr x8, [sp, #64]
ldr w9, [sp, #60]
add w9, w9, #2
add x8, x8, w9, sxtw
ldrb w8, [x8]
ldr x9, [sp, #88]
strb w8, [x9, #1]
b LBB3_16
LBB3_15:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldr x8, [sp, #104]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-92]
b LBB3_21
LBB3_16:
ldr x0, [sp, #64]
bl _free
b LBB3_17
LBB3_17:
b LBB3_18
LBB3_18:
ldr x0, [sp, #88]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fopen
str x0, [sp, #96]
ldr x8, [sp, #96]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB3_20
b LBB3_19
LBB3_19:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x8, [x8]
str x8, [sp, #48] ; 8-byte Folded Spill
ldr x8, [sp, #88]
str x8, [sp, #40] ; 8-byte Folded Spill
bl ___error
ldr w0, [x0]
bl _strerror
ldr x10, [sp, #40] ; 8-byte Folded Reload
mov x8, x0
ldr x0, [sp, #48] ; 8-byte Folded Reload
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-92]
b LBB3_21
LBB3_20:
ldr x2, [sp, #96]
sub x0, x29, #88
str x0, [sp, #32] ; 8-byte Folded Spill
mov w1, #79
bl _fgets
ldr x0, [sp, #32] ; 8-byte Folded Reload
bl _strlen
mov x8, x0
ldr x0, [sp, #32] ; 8-byte Folded Reload
subs x9, x8, #1
mov x8, x0
add x8, x8, x9
strb wzr, [x8]
mov w1, #272
bl _run_fill
str x0, [sp, #80]
ldr x0, [sp, #80]
bl _checksum
str x0, [sp, #72]
ldr x0, [sp, #72]
bl _puts
ldr x0, [sp, #32] ; 8-byte Folded Reload
mov w1, #35651584
bl _run_fill
str x0, [sp, #80]
ldr x0, [sp, #80]
bl _checksum
str x0, [sp, #72]
ldr x0, [sp, #72]
bl _puts
b LBB3_21
LBB3_21:
ldur w8, [x29, #-92]
str w8, [sp, #28] ; 4-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB3_23
b LBB3_22
LBB3_22:
bl ___stack_chk_fail
LBB3_23:
ldr w0, [sp, #28] ; 4-byte Folded Reload
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 "-input.txt"
l_.str.1: ; @.str.1
.asciz "%s: unable to determine input filename from executable or PWD\n"
l_.str.2: ; @.str.2
.asciz "r"
l_.str.3: ; @.str.3
.asciz "%s: %s\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _run_fill ## -- Begin function run_fill
.p2align 4, 0x90
_run_fill: ## @run_fill
.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 %esi, -12(%rbp)
movl -12(%rbp), %eax
addl $1, %eax
movslq %eax, %rdi
callq _malloc
movq %rax, -24(%rbp)
movl $0, -28(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
cmpl -12(%rbp), %eax
jg LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movslq -28(%rbp), %rcx
movb $0, (%rax,%rcx)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_1
LBB0_4:
movq -24(%rbp), %rax
movq %rax, -56(%rbp) ## 8-byte Spill
movq -8(%rbp), %rax
movq %rax, -48(%rbp) ## 8-byte Spill
movq -8(%rbp), %rdi
callq _strlen
movq -56(%rbp), %rdi ## 8-byte Reload
movq -48(%rbp), %rsi ## 8-byte Reload
movq %rax, %rdx
movq $-1, %rcx
callq ___strncpy_chk
movl $1, -36(%rbp)
LBB0_5: ## =>This Loop Header: Depth=1
## Child Loop BB0_7 Depth 2
cmpl $0, -36(%rbp)
je LBB0_13
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -24(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -32(%rbp)
movq -24(%rbp), %rax
movslq -32(%rbp), %rcx
movb $48, (%rax,%rcx)
movl $0, -28(%rbp)
LBB0_7: ## Parent Loop BB0_5 Depth=1
## => This Inner Loop Header: Depth=2
movl -28(%rbp), %eax
cmpl -32(%rbp), %eax
jge LBB0_12
## %bb.8: ## in Loop: Header=BB0_7 Depth=2
movl -28(%rbp), %eax
addl -32(%rbp), %eax
addl $1, %eax
cmpl -12(%rbp), %eax
jne LBB0_10
## %bb.9: ## in Loop: Header=BB0_5 Depth=1
movl $0, -36(%rbp)
jmp LBB0_12
LBB0_10: ## in Loop: Header=BB0_7 Depth=2
movq -24(%rbp), %rax
movl -32(%rbp), %ecx
subl -28(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %edx
movl $48, %eax
movl $49, %ecx
cmpl $48, %edx
cmovel %ecx, %eax
movb %al, %dl
movq -24(%rbp), %rax
movl -32(%rbp), %ecx
addl -28(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
## %bb.11: ## in Loop: Header=BB0_7 Depth=2
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_7
LBB0_12: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_5
LBB0_13:
movq -24(%rbp), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _create_empty_checksum ## -- Begin function create_empty_checksum
.p2align 4, 0x90
_create_empty_checksum: ## @create_empty_checksum
.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 -4(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
addl $1, %eax
movslq %eax, %rdi
callq _malloc
movq %rax, -16(%rbp)
movl $0, -20(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movslq -20(%rbp), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq -16(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -32(%rbp), %rax ## 8-byte Reload
cmpq %rcx, %rax
ja LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movb $0, (%rax,%rcx)
## %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:
movq -16(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _checksum ## -- Begin function checksum
.p2align 4, 0x90
_checksum: ## @checksum
.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)
LBB2_1: ## =>This Loop Header: Depth=1
## Child Loop BB2_2 Depth 2
movq -8(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -28(%rbp)
movl -28(%rbp), %edi
callq _create_empty_checksum
movq %rax, -16(%rbp)
movl $0, -36(%rbp)
LBB2_2: ## Parent Loop BB2_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -36(%rbp), %eax
cmpl -28(%rbp), %eax
jge LBB2_5
## %bb.3: ## in Loop: Header=BB2_2 Depth=2
movq -8(%rbp), %rax
movslq -36(%rbp), %rcx
movsbl (%rax,%rcx), %edx
movq -8(%rbp), %rax
movl -36(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %esi
movl $48, %eax
movl $49, %ecx
cmpl %esi, %edx
cmovel %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -49(%rbp) ## 1-byte Spill
movq -16(%rbp), %rax
movq %rax, -48(%rbp) ## 8-byte Spill
movl -36(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
movb -49(%rbp), %dl ## 1-byte Reload
movl %eax, %ecx
movq -48(%rbp), %rax ## 8-byte Reload
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movq -8(%rbp), %rax
movl -36(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movb $0, (%rax,%rcx)
movq -8(%rbp), %rax
movslq -36(%rbp), %rcx
movb $0, (%rax,%rcx)
## %bb.4: ## in Loop: Header=BB2_2 Depth=2
movl -36(%rbp), %eax
addl $2, %eax
movl %eax, -36(%rbp)
jmp LBB2_2
LBB2_5: ## in Loop: Header=BB2_1 Depth=1
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
## %bb.6: ## in Loop: Header=BB2_1 Depth=1
movq -8(%rbp), %rdi
callq _strlen
andq $1, %rax
cmpq $0, %rax
je LBB2_1
## %bb.7:
movq -8(%rbp), %rax
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 $192, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -100(%rbp)
movl %edi, -104(%rbp)
movq %rsi, -112(%rbp)
cmpl $1, -104(%rbp)
jle LBB3_2
## %bb.1:
movq -112(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -128(%rbp)
jmp LBB3_18
LBB3_2:
movl $13, %edi
callq _malloc
movq %rax, -128(%rbp)
movq -128(%rbp), %rdi
addq $2, %rdi
leaq L_.str(%rip), %rsi
movl $12, %edx
movq $-1, %rcx
callq ___strncat_chk
movq -112(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %edi
callq _isdigit
cmpl $0, %eax
je LBB3_6
## %bb.3:
movq -112(%rbp), %rax
movq (%rax), %rax
movsbl 1(%rax), %edi
callq _isdigit
cmpl $0, %eax
je LBB3_6
## %bb.4:
movq -112(%rbp), %rax
movq (%rax), %rax
movsbl 2(%rax), %eax
cmpl $45, %eax
jne LBB3_6
## %bb.5:
movq -112(%rbp), %rax
movq (%rax), %rax
movb (%rax), %cl
movq -128(%rbp), %rax
movb %cl, (%rax)
movq -112(%rbp), %rax
movq (%rax), %rax
movb 2(%rax), %cl
movq -128(%rbp), %rax
movb %cl, 1(%rax)
jmp LBB3_17
LBB3_6:
movl $80, %edi
callq _malloc
movq %rax, -152(%rbp)
movq -152(%rbp), %rdi
movl $79, %esi
callq _getcwd
movq -152(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -156(%rbp)
LBB3_7: ## =>This Inner Loop Header: Depth=1
cmpl $0, -156(%rbp)
je LBB3_12
## %bb.8: ## in Loop: Header=BB3_7 Depth=1
movq -152(%rbp), %rax
movslq -156(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $47, %eax
jne LBB3_10
## %bb.9:
jmp LBB3_12
LBB3_10: ## in Loop: Header=BB3_7 Depth=1
jmp LBB3_11
LBB3_11: ## in Loop: Header=BB3_7 Depth=1
movl -156(%rbp), %eax
addl $-1, %eax
movl %eax, -156(%rbp)
jmp LBB3_7
LBB3_12:
movq -152(%rbp), %rax
movl -156(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %edi
callq _isdigit
cmpl $0, %eax
je LBB3_15
## %bb.13:
movq -152(%rbp), %rax
movl -156(%rbp), %ecx
addl $2, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %edi
callq _isdigit
cmpl $0, %eax
je LBB3_15
## %bb.14:
movq -152(%rbp), %rax
movl -156(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movb (%rax,%rcx), %cl
movq -128(%rbp), %rax
movb %cl, (%rax)
movq -152(%rbp), %rax
movl -156(%rbp), %ecx
addl $2, %ecx
movslq %ecx, %rcx
movb (%rax,%rcx), %cl
movq -128(%rbp), %rax
movb %cl, 1(%rax)
jmp LBB3_16
LBB3_15:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -112(%rbp), %rax
movq (%rax), %rdx
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -100(%rbp)
jmp LBB3_21
LBB3_16:
movq -152(%rbp), %rdi
callq _free
LBB3_17:
jmp LBB3_18
LBB3_18:
movq -128(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _fopen
movq %rax, -120(%rbp)
cmpq $0, -120(%rbp)
jne LBB3_20
## %bb.19:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -176(%rbp) ## 8-byte Spill
movq -128(%rbp), %rax
movq %rax, -168(%rbp) ## 8-byte Spill
callq ___error
movl (%rax), %edi
callq _strerror
movq -176(%rbp), %rdi ## 8-byte Reload
movq -168(%rbp), %rdx ## 8-byte Reload
movq %rax, %rcx
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -100(%rbp)
jmp LBB3_21
LBB3_20:
leaq -96(%rbp), %rdi
movq -120(%rbp), %rdx
movl $79, %esi
callq _fgets
leaq -96(%rbp), %rdi
callq _strlen
subq $1, %rax
movb $0, -96(%rbp,%rax)
leaq -96(%rbp), %rdi
movl $272, %esi ## imm = 0x110
callq _run_fill
movq %rax, -136(%rbp)
movq -136(%rbp), %rdi
callq _checksum
movq %rax, -144(%rbp)
movq -144(%rbp), %rdi
callq _puts
leaq -96(%rbp), %rdi
movl $35651584, %esi ## imm = 0x2200000
callq _run_fill
movq %rax, -136(%rbp)
movq -136(%rbp), %rdi
callq _checksum
movq %rax, -144(%rbp)
movq -144(%rbp), %rdi
callq _puts
LBB3_21:
movl -100(%rbp), %eax
movl %eax, -180(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB3_23
## %bb.22:
movl -180(%rbp), %eax ## 4-byte Reload
addq $192, %rsp
popq %rbp
retq
LBB3_23:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "-input.txt"
L_.str.1: ## @.str.1
.asciz "%s: unable to determine input filename from executable or PWD\n"
L_.str.2: ## @.str.2
.asciz "r"
L_.str.3: ## @.str.3
.asciz "%s: %s\n"
.subsections_via_symbols
| the_stack_data/98575927.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _read_file ; -- Begin function read_file
.p2align 2
_read_file: ; @read_file
.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, #224
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur x0, [x29, #-16]
stur w1, [x29, #-20]
ldur x0, [x29, #-16]
sub x1, x29, #176
bl _stat
subs w8, w0, #0
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 _perror
mov w0, #1
bl _exit
LBB0_2:
ldur x8, [x29, #-80]
; kill: def $w8 killed $w8 killed $x8
stur w8, [x29, #-28]
ldur w8, [x29, #-28]
; kill: def $x8 killed $w8
mov x9, sp
stur x9, [x29, #-192]
lsr x9, x8, #0
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-216] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-216] ; 8-byte Folded Reload
mov x9, sp
subs x0, x9, x10
stur x0, [x29, #-208] ; 8-byte Folded Spill
mov sp, x0
stur x8, [x29, #-200]
ldur x0, [x29, #-16]
mov w1, #0
bl _open
stur w0, [x29, #-24]
ldur w8, [x29, #-24]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_4:
ldur w0, [x29, #-24]
mov x1, #0
mov w2, #2
bl _lseek
adds x8, x0, #1
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_6:
b LBB0_7
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_15
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=1
ldur w0, [x29, #-24]
sub x1, x29, #177
mov x2, #1
bl _read
adds x8, x0, #1
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_10: ; in Loop: Header=BB0_7 Depth=1
ldursb w8, [x29, #-177]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_7 Depth=1
ldur w8, [x29, #-20]
subs w8, w8, #1
stur w8, [x29, #-20]
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_7 Depth=1
ldur w0, [x29, #-24]
mov x1, #-2
mov w2, #1
bl _lseek
adds x8, x0, #1
cset w8, ne
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_14: ; in Loop: Header=BB0_7 Depth=1
b LBB0_7
LBB0_15:
ldur x0, [x29, #-208] ; 8-byte Folded Reload
ldursw x2, [x29, #-28]
mov w1, #0
mov x3, #-1
bl ___memset_chk
ldur x1, [x29, #-208] ; 8-byte Folded Reload
ldur w0, [x29, #-24]
ldursw x2, [x29, #-28]
bl _read
adds x8, x0, #1
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_17:
ldur x8, [x29, #-208] ; 8-byte Folded Reload
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
add sp, sp, #16
ldur w0, [x29, #-24]
bl _close
ldur x8, [x29, #-192]
stur x8, [x29, #-224] ; 8-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18:
bl ___stack_chk_fail
LBB0_19:
ldur x8, [x29, #-224] ; 8-byte Folded Reload
mov sp, x8
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _usage ; -- Begin function usage
.p2align 2
_usage: ; @usage
.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, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldr x8, [sp, #8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
.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, #1
cset w8, eq
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldur w8, [x29, #-8]
subs w8, w8, #3
cset w8, le
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2:
ldr x8, [sp, #16]
ldr x0, [x8]
bl _usage
b LBB2_7
LBB2_3:
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB2_5
b LBB2_4
LBB2_4:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
mov w1, #10
bl _read_file
b LBB2_6
LBB2_5:
ldr x8, [sp, #16]
ldr x8, [x8, #16]
str x8, [sp, #8] ; 8-byte Folded Spill
ldr x8, [sp, #16]
ldr x0, [x8, #8]
bl _atoi
mov x1, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
bl _read_file
b LBB2_6
LBB2_6:
b LBB2_7
LBB2_7:
mov w0, #0
bl _exit
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "stat"
l_.str.1: ; @.str.1
.asciz "open"
l_.str.2: ; @.str.2
.asciz "lseek"
l_.str.3: ; @.str.3
.asciz "read"
l_.str.4: ; @.str.4
.asciz "lseek2:"
l_.str.5: ; @.str.5
.asciz "%s"
l_.str.6: ; @.str.6
.asciz "usage: %s [lines] <file>\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _read_file ## -- Begin function read_file
.p2align 4, 0x90
_read_file: ## @read_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 $224, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movq -16(%rbp), %rdi
leaq -176(%rbp), %rsi
callq _stat$INODE64
cmpl $0, %eax
jge LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_2:
movl -80(%rbp), %eax
movl %eax, -28(%rbp)
movl -28(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -216(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -192(%rbp)
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -216(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -208(%rbp) ## 8-byte Spill
movq %rax, -200(%rbp)
movq -16(%rbp), %rdi
xorl %esi, %esi
movb $0, %al
callq _open
movl %eax, -24(%rbp)
cmpl $0, -24(%rbp)
jne LBB0_4
## %bb.3:
leaq L_.str.1(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_4:
movl -24(%rbp), %edi
xorl %eax, %eax
movl %eax, %esi
movl $2, %edx
callq _lseek
cmpq $-1, %rax
jne LBB0_6
## %bb.5:
leaq L_.str.2(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_6:
jmp LBB0_7
LBB0_7: ## =>This Inner Loop Header: Depth=1
cmpl $0, -20(%rbp)
jle LBB0_15
## %bb.8: ## in Loop: Header=BB0_7 Depth=1
movl -24(%rbp), %edi
leaq -177(%rbp), %rsi
movl $1, %edx
callq _read
cmpq $-1, %rax
jne LBB0_10
## %bb.9:
leaq L_.str.3(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_10: ## in Loop: Header=BB0_7 Depth=1
movsbl -177(%rbp), %eax
cmpl $10, %eax
jne LBB0_12
## %bb.11: ## in Loop: Header=BB0_7 Depth=1
movl -20(%rbp), %eax
addl $-1, %eax
movl %eax, -20(%rbp)
LBB0_12: ## in Loop: Header=BB0_7 Depth=1
movl -24(%rbp), %edi
movq $-2, %rsi
movl $1, %edx
callq _lseek
cmpq $-1, %rax
jne LBB0_14
## %bb.13:
leaq L_.str.4(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_14: ## in Loop: Header=BB0_7 Depth=1
jmp LBB0_7
LBB0_15:
movq -208(%rbp), %rdi ## 8-byte Reload
movslq -28(%rbp), %rdx
xorl %esi, %esi
movq $-1, %rcx
callq ___memset_chk
movq -208(%rbp), %rsi ## 8-byte Reload
movl -24(%rbp), %edi
movslq -28(%rbp), %rdx
callq _read
cmpq $-1, %rax
jne LBB0_17
## %bb.16:
leaq L_.str.3(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_17:
movq -208(%rbp), %rsi ## 8-byte Reload
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movl -24(%rbp), %edi
callq _close
movq -192(%rbp), %rax
movq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_19
## %bb.18:
movq %rbp, %rsp
popq %rbp
retq
LBB0_19:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _usage ## -- Begin function usage
.p2align 4, 0x90
_usage: ## @usage
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -8(%rbp), %rdx
leaq L_.str.6(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
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 $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $1, -8(%rbp)
je LBB2_2
## %bb.1:
cmpl $3, -8(%rbp)
jle LBB2_3
LBB2_2:
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _usage
jmp LBB2_7
LBB2_3:
cmpl $2, -8(%rbp)
jne LBB2_5
## %bb.4:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
movl $10, %esi
callq _read_file
jmp LBB2_6
LBB2_5:
movq -16(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -24(%rbp) ## 8-byte Spill
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _atoi
movq -24(%rbp), %rdi ## 8-byte Reload
movl %eax, %esi
callq _read_file
LBB2_6:
jmp LBB2_7
LBB2_7:
xorl %edi, %edi
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "stat"
L_.str.1: ## @.str.1
.asciz "open"
L_.str.2: ## @.str.2
.asciz "lseek"
L_.str.3: ## @.str.3
.asciz "read"
L_.str.4: ## @.str.4
.asciz "lseek2:"
L_.str.5: ## @.str.5
.asciz "%s"
L_.str.6: ## @.str.6
.asciz "usage: %s [lines] <file>\n"
.subsections_via_symbols
| the_stack_data/140766352.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _RegionKR920GetPhyParam ; -- Begin function RegionKR920GetPhyParam
.p2align 2
_RegionKR920GetPhyParam: ; @RegionKR920GetPhyParam
.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 xzr, [x29, #-8]
ldur x8, [x29, #-16]
ldr w8, [x8]
subs w8, w8, #1
; kill: def $x8 killed $w8
str x8, [sp] ; 8-byte Folded Spill
subs x8, x8, #55
cset w8, hi
tbnz w8, #0, LBB0_37
; %bb.1:
ldr x11, [sp] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_2:
stur xzr, [x29, #-8]
b LBB0_38
LBB0_3:
stur xzr, [x29, #-8]
b LBB0_38
LBB0_4:
stur xzr, [x29, #-8]
b LBB0_38
LBB0_5:
ldur x8, [x29, #-16]
ldrb w8, [x8, #4]
add x0, sp, #8
strb w8, [sp, #8]
mov w8, #5
strb w8, [sp, #9]
strb wzr, [sp, #10]
mov w8, #16
strb w8, [sp, #11]
adrp x8, _RegionNvmGroup2@PAGE
ldr x9, [x8, _RegionNvmGroup2@PAGEOFF]
add x9, x9, #2304
str x9, [sp, #16]
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
str x8, [sp, #24]
bl _RegionCommonGetNextLowerTxDr
; implicit-def: $x8
mov x8, x0
sxtb x8, w8
stur x8, [x29, #-8]
b LBB0_38
LBB0_6:
stur xzr, [x29, #-8]
b LBB0_38
LBB0_7:
stur xzr, [x29, #-8]
b LBB0_38
LBB0_8:
mov x8, #64
stur x8, [x29, #-8]
b LBB0_38
LBB0_9:
mov x8, #32
stur x8, [x29, #-8]
b LBB0_38
LBB0_10:
ldur x8, [x29, #-16]
ldrsb x9, [x8, #4]
adrp x8, _MaxPayloadOfDatarateKR920@PAGE
add x8, x8, _MaxPayloadOfDatarateKR920@PAGEOFF
ldrb w8, [x8, x9]
; kill: def $x8 killed $w8
stur x8, [x29, #-8]
b LBB0_38
LBB0_11:
stur xzr, [x29, #-8]
b LBB0_38
LBB0_12:
mov x8, #4000
stur x8, [x29, #-8]
b LBB0_38
LBB0_13:
mov x8, #1000
stur x8, [x29, #-8]
b LBB0_38
LBB0_14:
mov x8, #2000
stur x8, [x29, #-8]
b LBB0_38
LBB0_15:
mov x8, #5000
stur x8, [x29, #-8]
b LBB0_38
LBB0_16:
mov x8, #6000
stur x8, [x29, #-8]
b LBB0_38
LBB0_17:
mov x8, #16384
stur x8, [x29, #-8]
b LBB0_38
LBB0_18:
mov x0, #-1000
mov x1, #1000
bl _randr
add x8, x0, #2000
stur x8, [x29, #-8]
b LBB0_38
LBB0_19:
stur xzr, [x29, #-8]
b LBB0_38
LBB0_20:
mov x8, #5088
movk x8, #14067, lsl #16
stur x8, [x29, #-8]
b LBB0_38
LBB0_21:
stur xzr, [x29, #-8]
b LBB0_38
LBB0_22:
adrp x8, _RegionNvmGroup2@PAGE
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
add x8, x8, #2304
stur x8, [x29, #-8]
b LBB0_38
LBB0_23:
adrp x8, _RegionNvmGroup2@PAGE
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
add x8, x8, #2316
stur x8, [x29, #-8]
b LBB0_38
LBB0_24:
mov x8, #16
stur x8, [x29, #-8]
b LBB0_38
LBB0_25:
adrp x8, _RegionNvmGroup2@PAGE
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
stur x8, [x29, #-8]
b LBB0_38
LBB0_26:
stur xzr, [x29, #-8]
b LBB0_38
LBB0_27:
stur xzr, [x29, #-8]
b LBB0_38
LBB0_28:
fmov s0, #14.00000000
stur s0, [x29, #-8]
b LBB0_38
LBB0_29:
mov w8, #39322
movk w8, #16393, lsl #16
fmov s0, w8
stur s0, [x29, #-8]
b LBB0_38
LBB0_30:
mov x8, #25440
movk x8, #14085, lsl #16
stur x8, [x29, #-8]
b LBB0_38
LBB0_31:
mov w8, #17
sturb w8, [x29, #-8]
mov w8, #2
sturb w8, [x29, #-7]
sturb wzr, [x29, #-6]
b LBB0_38
LBB0_32:
mov x8, #3
stur x8, [x29, #-8]
b LBB0_38
LBB0_33:
mov x8, #25440
movk x8, #14085, lsl #16
stur x8, [x29, #-8]
b LBB0_38
LBB0_34:
mov x8, #3
stur x8, [x29, #-8]
b LBB0_38
LBB0_35:
ldur x8, [x29, #-16]
ldrsb x9, [x8, #4]
adrp x8, _DataratesKR920@PAGE
add x8, x8, _DataratesKR920@PAGEOFF
ldrb w8, [x8, x9]
; kill: def $x8 killed $w8
stur x8, [x29, #-8]
b LBB0_38
LBB0_36:
ldur x8, [x29, #-16]
ldrsb x0, [x8, #4]
adrp x1, _BandwidthsKR920@PAGE
add x1, x1, _BandwidthsKR920@PAGEOFF
bl _RegionCommonGetBandwidth
stur x0, [x29, #-8]
b LBB0_38
LBB0_37:
b LBB0_38
LBB0_38:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_2-Ltmp0
.long LBB0_3-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_4-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_6-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_7-Ltmp0
.long LBB0_8-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_10-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_12-Ltmp0
.long LBB0_13-Ltmp0
.long LBB0_14-Ltmp0
.long LBB0_15-Ltmp0
.long LBB0_16-Ltmp0
.long LBB0_17-Ltmp0
.long LBB0_18-Ltmp0
.long LBB0_19-Ltmp0
.long LBB0_20-Ltmp0
.long LBB0_21-Ltmp0
.long LBB0_22-Ltmp0
.long LBB0_23-Ltmp0
.long LBB0_24-Ltmp0
.long LBB0_25-Ltmp0
.long LBB0_26-Ltmp0
.long LBB0_27-Ltmp0
.long LBB0_28-Ltmp0
.long LBB0_29-Ltmp0
.long LBB0_5-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_30-Ltmp0
.long LBB0_31-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_33-Ltmp0
.long LBB0_34-Ltmp0
.long LBB0_37-Ltmp0
.long LBB0_35-Ltmp0
.long LBB0_36-Ltmp0
; -- End function
.globl _RegionKR920SetBandTxDone ; -- Begin function RegionKR920SetBandTxDone
.p2align 2
_RegionKR920SetBandTxDone: ; @RegionKR920SetBandTxDone
.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, _RegionNvmGroup1@PAGE
ldr x9, [x8, _RegionNvmGroup1@PAGEOFF]
adrp x8, _RegionNvmGroup2@PAGE
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
ldr x10, [sp, #8]
ldrb w10, [x10]
; kill: def $x10 killed $w10
mov x11, #24
mul x10, x10, x11
add x8, x8, x10
ldrb w8, [x8, #17]
; kill: def $x8 killed $w8
mov x10, #48
mul x10, x8, x10
ldr x8, [sp, #8]
ldr x1, [x8, #16]
ldr x8, [sp, #8]
ldrb w8, [x8, #1]
ldr x11, [sp, #8]
ldr x3, [x11, #24]
ldr x4, [x11, #32]
add x0, x9, x10
and w2, w8, #0x1
bl _RegionCommonSetBandTxDone
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _RegionKR920InitDefaults ; -- Begin function RegionKR920InitDefaults
.p2align 2
_RegionKR920InitDefaults: ; @RegionKR920InitDefaults
.cfi_startproc
; %bb.0:
sub sp, sp, #176
.cfi_def_cfa_offset 176
stp x29, x30, [sp, #160] ; 16-byte Folded Spill
add x29, sp, #160
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur x0, [x29, #-64]
sub x0, x29, #56
mov w1, #0
mov x2, #48
bl _memset
mov w8, #1
sturh w8, [x29, #-56]
ldur x8, [x29, #-64]
ldr w8, [x8, #16]
str w8, [sp, #20] ; 4-byte Folded Spill
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB2_3
b LBB2_1
LBB2_1:
ldr w8, [sp, #20] ; 4-byte Folded Reload
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB2_7
b LBB2_2
LBB2_2:
ldr w8, [sp, #20] ; 4-byte Folded Reload
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB2_8
b LBB2_9
LBB2_3:
ldur x8, [x29, #-64]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_5
b LBB2_4
LBB2_4:
ldur x8, [x29, #-64]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_6
b LBB2_5
LBB2_5:
b LBB2_10
LBB2_6:
ldur x8, [x29, #-64]
ldr x9, [x8]
adrp x8, _RegionNvmGroup1@PAGE
str x9, [x8, _RegionNvmGroup1@PAGEOFF]
ldur x9, [x29, #-64]
ldr x9, [x9, #8]
adrp x10, _RegionNvmGroup2@PAGE
str x10, [sp, #8] ; 8-byte Folded Spill
str x9, [x10, _RegionNvmGroup2@PAGEOFF]
ldr x0, [x8, _RegionNvmGroup1@PAGEOFF]
sub x1, x29, #56
mov w2, #48
bl _memcpy1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x11, [x8, _RegionNvmGroup2@PAGEOFF]
mov x9, #8480
movk x9, #14070, lsl #16
str x9, [sp, #72]
str xzr, [sp, #80]
mov w9, #80
strb w9, [sp, #88]
strb wzr, [sp, #89]
ldur q0, [sp, #72]
str q0, [x11]
ldr x10, [sp, #88]
str x10, [x11, #16]
ldr x11, [x8, _RegionNvmGroup2@PAGEOFF]
mov x10, #11872
movk x10, #14073, lsl #16
str x10, [sp, #48]
str xzr, [sp, #56]
strb w9, [sp, #64]
strb wzr, [sp, #65]
ldr q0, [sp, #48]
stur q0, [x11, #24]
ldr x10, [sp, #64]
str x10, [x11, #40]
ldr x10, [x8, _RegionNvmGroup2@PAGEOFF]
mov x11, #15264
movk x11, #14076, lsl #16
str x11, [sp, #24]
str xzr, [sp, #32]
strb w9, [sp, #40]
strb wzr, [sp, #41]
ldur q0, [sp, #24]
str q0, [x10, #48]
ldr x9, [sp, #40]
str x9, [x10, #64]
ldr x10, [x8, _RegionNvmGroup2@PAGEOFF]
mov w9, #7
strh w9, [x10, #2316]
ldr x9, [x8, _RegionNvmGroup2@PAGEOFF]
add x0, x9, #2304
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
add x1, x8, #2316
mov w2, #1
bl _RegionCommonChanMaskCopy
b LBB2_10
LBB2_7:
adrp x8, _RegionNvmGroup2@PAGE
ldr x9, [x8, _RegionNvmGroup2@PAGEOFF]
str xzr, [x9, #8]
ldr x9, [x8, _RegionNvmGroup2@PAGEOFF]
str xzr, [x9, #32]
ldr x9, [x8, _RegionNvmGroup2@PAGEOFF]
str xzr, [x9, #56]
ldr x9, [x8, _RegionNvmGroup2@PAGEOFF]
add x0, x9, #2304
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
add x1, x8, #2316
mov w2, #1
bl _RegionCommonChanMaskCopy
b LBB2_10
LBB2_8:
adrp x8, _RegionNvmGroup2@PAGE
ldr x9, [x8, _RegionNvmGroup2@PAGEOFF]
ldrh w10, [x9, #2316]
ldr x9, [x8, _RegionNvmGroup2@PAGEOFF]
ldrh w8, [x9, #2304]
orr w8, w8, w10
strh w8, [x9, #2304]
b LBB2_10
LBB2_9:
b LBB2_10
LBB2_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, LBB2_12
b LBB2_11
LBB2_11:
bl ___stack_chk_fail
LBB2_12:
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
; -- End function
.globl _RegionKR920Verify ; -- Begin function RegionKR920Verify
.p2align 2
_RegionKR920Verify: ; @RegionKR920Verify
.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 w1, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
; kill: def $x8 killed $w8
str x8, [sp] ; 8-byte Folded Spill
subs x8, x8, #14
cset w8, hi
tbnz w8, #0, LBB3_8
; %bb.1:
ldr x11, [sp] ; 8-byte Folded Reload
adrp x10, lJTI3_0@PAGE
add x10, x10, lJTI3_0@PAGEOFF
Ltmp1:
adr x8, Ltmp1
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB3_2:
ldr x8, [sp, #16]
ldr x0, [x8]
bl _VerifyRfFreq
and w8, w0, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB3_9
LBB3_3:
ldr x8, [sp, #16]
ldrsb w0, [x8]
mov w1, #0
mov w2, #5
bl _RegionCommonValueInRange
ands w8, w0, #0xff
cset w8, ne
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB3_9
LBB3_4:
ldr x8, [sp, #16]
ldrsb w0, [x8]
mov w1, #0
mov w2, #5
bl _RegionCommonValueInRange
ands w8, w0, #0xff
cset w8, ne
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB3_9
LBB3_5:
ldr x8, [sp, #16]
ldrsb w0, [x8]
mov w1, #0
mov w2, #5
bl _RegionCommonValueInRange
ands w8, w0, #0xff
cset w8, ne
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB3_9
LBB3_6:
ldr x8, [sp, #16]
ldrsb w0, [x8]
mov w1, #0
mov w2, #7
bl _RegionCommonValueInRange
ands w8, w0, #0xff
cset w8, ne
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB3_9
LBB3_7:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB3_9
LBB3_8:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB3_9
LBB3_9:
ldurb w8, [x29, #-1]
and w0, w8, #0x1
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
.p2align 2
lJTI3_0:
.long LBB3_2-Ltmp1
.long LBB3_8-Ltmp1
.long LBB3_8-Ltmp1
.long LBB3_8-Ltmp1
.long LBB3_8-Ltmp1
.long LBB3_3-Ltmp1
.long LBB3_4-Ltmp1
.long LBB3_5-Ltmp1
.long LBB3_8-Ltmp1
.long LBB3_6-Ltmp1
.long LBB3_6-Ltmp1
.long LBB3_8-Ltmp1
.long LBB3_8-Ltmp1
.long LBB3_8-Ltmp1
.long LBB3_7-Ltmp1
; -- End function
.p2align 2 ; -- Begin function VerifyRfFreq
_VerifyRfFreq: ; @VerifyRfFreq
.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, _Radio@GOTPAGE
ldr x8, [x8, _Radio@GOTPAGEOFF]
str x0, [sp, #16]
ldr x9, [sp, #16]
str x9, [sp, #8]
ldr x8, [x8, #64]
ldr x0, [sp, #8]
blr x8
ands w8, w0, #0x1
cset w8, ne
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB4_8
LBB4_2:
ldr x8, [sp, #8]
mov x9, #53664
movk x9, #14051, lsl #16
subs x8, x8, x9
cset w8, lo
tbnz w8, #0, LBB4_7
b LBB4_3
LBB4_3:
ldr x8, [sp, #8]
mov x9, #28832
movk x9, #14088, lsl #16
subs x8, x8, x9
cset w8, hi
tbnz w8, #0, LBB4_7
b LBB4_4
LBB4_4:
ldr x8, [sp, #8]
mov x9, #53664
movk x9, #14051, lsl #16
subs x8, x8, x9
str x8, [sp, #8]
ldr x8, [sp, #8]
mov x10, #3392
movk x10, #3, lsl #16
udiv x9, x8, x10
mul x9, x9, x10
subs x8, x8, x9
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB4_6
b LBB4_5
LBB4_5:
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB4_8
LBB4_6:
b LBB4_7
LBB4_7:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB4_8
LBB4_8:
ldurb w8, [x29, #-1]
and w0, w8, #0x1
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _RegionKR920ApplyCFList ; -- Begin function RegionKR920ApplyCFList
.p2align 2
_RegionKR920ApplyCFList: ; @RegionKR920ApplyCFList
.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]
mov w8, #80
strb w8, [sp, #48]
ldur x8, [x29, #-8]
ldrb w8, [x8, #8]
subs w8, w8, #16
cset w8, eq
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
b LBB5_14
LBB5_2:
ldur x8, [x29, #-8]
ldr x8, [x8]
ldrb w8, [x8, #15]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB5_4
b LBB5_3
LBB5_3:
b LBB5_14
LBB5_4:
strb wzr, [sp, #14]
mov w8, #3
strb w8, [sp, #13]
b LBB5_5
LBB5_5: ; =>This Inner Loop Header: Depth=1
ldrb w8, [sp, #13]
subs w8, w8, #16
cset w8, ge
tbnz w8, #0, LBB5_14
b LBB5_6
LBB5_6: ; in Loop: Header=BB5_5 Depth=1
ldrb w8, [sp, #13]
subs w8, w8, #8
cset w8, ge
tbnz w8, #0, LBB5_8
b LBB5_7
LBB5_7: ; in Loop: Header=BB5_5 Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8]
ldrb w9, [sp, #14]
; kill: def $x9 killed $w9
ldrb w8, [x8, x9]
; kill: def $x8 killed $w8
str x8, [sp, #32]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldrb w9, [sp, #14]
add w9, w9, #1
ldrb w8, [x8, w9, sxtw]
mov x9, x8
ldr x8, [sp, #32]
orr x8, x8, x9, lsl #8
str x8, [sp, #32]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldrb w9, [sp, #14]
add w9, w9, #2
ldrb w8, [x8, w9, sxtw]
mov x9, x8
ldr x8, [sp, #32]
orr x8, x8, x9, lsl #16
str x8, [sp, #32]
ldr x8, [sp, #32]
mov x9, #100
mul x8, x8, x9
str x8, [sp, #32]
str xzr, [sp, #40]
b LBB5_9
LBB5_8: ; in Loop: Header=BB5_5 Depth=1
str xzr, [sp, #32]
strb wzr, [sp, #48]
str xzr, [sp, #40]
b LBB5_9
LBB5_9: ; in Loop: Header=BB5_5 Depth=1
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB5_11
b LBB5_10
LBB5_10: ; in Loop: Header=BB5_5 Depth=1
add x0, sp, #16
add x8, sp, #32
str x8, [sp, #16]
ldrb w8, [sp, #13]
strb w8, [sp, #24]
bl _RegionKR920ChannelAdd
b LBB5_12
LBB5_11: ; in Loop: Header=BB5_5 Depth=1
ldrb w8, [sp, #13]
add x0, sp, #15
strb w8, [sp, #15]
bl _RegionKR920ChannelsRemove
b LBB5_12
LBB5_12: ; in Loop: Header=BB5_5 Depth=1
b LBB5_13
LBB5_13: ; in Loop: Header=BB5_5 Depth=1
ldrb w8, [sp, #14]
add w8, w8, #3
strb w8, [sp, #14]
ldrb w8, [sp, #13]
add w8, w8, #1
strb w8, [sp, #13]
b LBB5_5
LBB5_14:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _RegionKR920ChannelAdd ; -- Begin function RegionKR920ChannelAdd
.p2align 2
_RegionKR920ChannelAdd: ; @RegionKR920ChannelAdd
.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]
sturb wzr, [x29, #-17]
sturb wzr, [x29, #-18]
ldur x8, [x29, #-16]
ldrb w8, [x8, #8]
sturb w8, [x29, #-19]
ldurb w8, [x29, #-19]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
mov w8, #6
stur w8, [x29, #-4]
b LBB6_22
LBB6_2:
ldurb w8, [x29, #-19]
subs w8, w8, #16
cset w8, lt
tbnz w8, #0, LBB6_4
b LBB6_3
LBB6_3:
mov w8, #3
stur w8, [x29, #-4]
b LBB6_22
LBB6_4:
ldur x8, [x29, #-16]
ldr x8, [x8]
ldrb w8, [x8, #16]
lsl w8, w8, #4
sxtb w8, w8
asr w8, w8, #4
sxtb w0, w8
mov w1, #0
mov w2, #5
bl _RegionCommonValueInRange
ands w8, w0, #0xff
cset w8, ne
tbnz w8, #0, LBB6_6
b LBB6_5
LBB6_5:
mov w8, #1
sturb w8, [x29, #-17]
b LBB6_6
LBB6_6:
ldur x8, [x29, #-16]
ldr x8, [x8]
ldrb w8, [x8, #16]
sxtb w8, w8
asr w8, w8, #4
sxtb w0, w8
mov w1, #0
mov w2, #5
bl _RegionCommonValueInRange
ands w8, w0, #0xff
cset w8, ne
tbnz w8, #0, LBB6_8
b LBB6_7
LBB6_7:
mov w8, #1
sturb w8, [x29, #-17]
b LBB6_8
LBB6_8:
ldur x8, [x29, #-16]
ldr x8, [x8]
ldrb w8, [x8, #16]
lsl w8, w8, #4
sxtb w8, w8
asr w8, w8, #4
sxtb w8, w8
ldur x9, [x29, #-16]
ldr x9, [x9]
ldrb w9, [x9, #16]
sxtb w9, w9
asr w9, w9, #4
subs w8, w8, w9, sxtb
cset w8, le
tbnz w8, #0, LBB6_10
b LBB6_9
LBB6_9:
mov w8, #1
sturb w8, [x29, #-17]
b LBB6_10
LBB6_10:
ldurb w8, [x29, #-18]
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB6_14
b LBB6_11
LBB6_11:
ldur x8, [x29, #-16]
ldr x8, [x8]
ldr x0, [x8]
bl _VerifyRfFreq
ands w8, w0, #0x1
cset w8, ne
tbnz w8, #0, LBB6_13
b LBB6_12
LBB6_12:
mov w8, #1
sturb w8, [x29, #-18]
b LBB6_13
LBB6_13:
b LBB6_14
LBB6_14:
ldurb w8, [x29, #-17]
and w8, w8, #0x1
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB6_17
b LBB6_15
LBB6_15:
ldurb w8, [x29, #-18]
and w8, w8, #0x1
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB6_17
b LBB6_16
LBB6_16:
mov w8, #6
stur w8, [x29, #-4]
b LBB6_22
LBB6_17:
ldurb w8, [x29, #-17]
and w8, w8, #0x1
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB6_19
b LBB6_18
LBB6_18:
mov w8, #5
stur w8, [x29, #-4]
b LBB6_22
LBB6_19:
ldurb w8, [x29, #-18]
and w8, w8, #0x1
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB6_21
b LBB6_20
LBB6_20:
mov w8, #4
stur w8, [x29, #-4]
b LBB6_22
LBB6_21:
adrp x8, _RegionNvmGroup2@PAGE
str x8, [sp, #16] ; 8-byte Folded Spill
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
ldurb w9, [x29, #-19]
; kill: def $x9 killed $w9
mov x10, #24
str x10, [sp, #8] ; 8-byte Folded Spill
mul x9, x9, x10
add x0, x8, x9
ldur x8, [x29, #-16]
ldr x1, [x8]
mov w2, #24
bl _memcpy1
ldr x11, [sp, #8] ; 8-byte Folded Reload
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x9, [x8, _RegionNvmGroup2@PAGEOFF]
ldurb w10, [x29, #-19]
; kill: def $x10 killed $w10
mul x10, x10, x11
add x9, x9, x10
strb wzr, [x9, #17]
ldurb w10, [x29, #-19]
mov w9, #1
lsl w10, w9, w10
ldr x9, [x8, _RegionNvmGroup2@PAGEOFF]
ldrh w8, [x9, #2304]
orr w8, w8, w10
strh w8, [x9, #2304]
stur wzr, [x29, #-4]
b LBB6_22
LBB6_22:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _RegionKR920ChannelsRemove ; -- Begin function RegionKR920ChannelsRemove
.p2align 2
_RegionKR920ChannelsRemove: ; @RegionKR920ChannelsRemove
.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]
ldrb w8, [x8]
sturb w8, [x29, #-17]
ldurb w8, [x29, #-17]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB7_2
b LBB7_1
LBB7_1:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB7_3
LBB7_2:
adrp x8, _RegionNvmGroup2@PAGE
ldr x9, [x8, _RegionNvmGroup2@PAGEOFF]
ldurb w10, [x29, #-17]
; kill: def $x10 killed $w10
mov x11, #24
mul x10, x10, x11
add x10, x9, x10
str xzr, [sp]
str xzr, [sp, #8]
str xzr, [sp, #16]
ldr q0, [sp]
str q0, [x10]
ldr x9, [sp, #16]
str x9, [x10, #16]
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
add x0, x8, #2304
ldurb w1, [x29, #-17]
mov w2, #16
bl _RegionCommonChanDisable
and w8, w0, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB7_3
LBB7_3:
ldurb w8, [x29, #-1]
and w0, w8, #0x1
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _RegionKR920ChanMaskSet ; -- Begin function RegionKR920ChanMaskSet
.p2align 2
_RegionKR920ChanMaskSet: ; @RegionKR920ChanMaskSet
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
ldr x8, [sp, #16]
ldr w8, [x8, #8]
str w8, [sp, #12] ; 4-byte Folded Spill
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB8_2
b LBB8_1
LBB8_1:
ldr w8, [sp, #12] ; 4-byte Folded Reload
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB8_3
b LBB8_4
LBB8_2:
adrp x8, _RegionNvmGroup2@PAGE
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
add x0, x8, #2304
ldr x8, [sp, #16]
ldr x1, [x8]
mov w2, #1
bl _RegionCommonChanMaskCopy
b LBB8_5
LBB8_3:
adrp x8, _RegionNvmGroup2@PAGE
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
add x0, x8, #2316
ldr x8, [sp, #16]
ldr x1, [x8]
mov w2, #1
bl _RegionCommonChanMaskCopy
b LBB8_5
LBB8_4:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB8_6
LBB8_5:
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB8_6
LBB8_6:
ldurb w8, [x29, #-1]
and w0, w8, #0x1
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _RegionKR920ComputeRxWindowParameters ; -- Begin function RegionKR920ComputeRxWindowParameters
.p2align 2
_RegionKR920ComputeRxWindowParameters: ; @RegionKR920ComputeRxWindowParameters
.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, _Radio@GOTPAGE
ldr x8, [x8, _Radio@GOTPAGEOFF]
str x8, [sp, #40] ; 8-byte Folded Spill
sturb w0, [x29, #-1]
sturb w1, [x29, #-2]
stur x2, [x29, #-16]
stur x3, [x29, #-24]
stur xzr, [x29, #-32]
ldursb w8, [x29, #-1]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB9_2
b LBB9_1
LBB9_1:
ldursb w8, [x29, #-1]
str w8, [sp, #36] ; 4-byte Folded Spill
b LBB9_3
LBB9_2:
mov w8, #5
str w8, [sp, #36] ; 4-byte Folded Spill
b LBB9_3
LBB9_3:
ldr w8, [sp, #36] ; 4-byte Folded Reload
ldur x9, [x29, #-24]
strb w8, [x9, #1]
ldur x8, [x29, #-24]
ldrsb x0, [x8, #1]
adrp x1, _BandwidthsKR920@PAGE
add x1, x1, _BandwidthsKR920@PAGEOFF
str x1, [sp] ; 8-byte Folded Spill
bl _RegionCommonGetBandwidth
ldr x8, [sp] ; 8-byte Folded Reload
ldur x10, [x29, #-24]
mov x9, x0
strb w9, [x10, #2]
ldur x9, [x29, #-24]
ldrsb x10, [x9, #1]
adrp x9, _DataratesKR920@PAGE
add x9, x9, _DataratesKR920@PAGEOFF
ldrb w0, [x9, x10]
ldur x9, [x29, #-24]
ldrsb x9, [x9, #1]
ldr x1, [x8, x9, lsl #3]
bl _RegionCommonComputeSymbolTimeLoRa
ldr x8, [sp, #40] ; 8-byte Folded Reload
stur x0, [x29, #-32]
ldur x9, [x29, #-32]
str x9, [sp, #24] ; 8-byte Folded Spill
ldurb w9, [x29, #-2]
str w9, [sp, #12] ; 4-byte Folded Spill
ldur x9, [x29, #-16]
str x9, [sp, #16] ; 8-byte Folded Spill
ldr x8, [x8, #184]
blr x8
ldr w1, [sp, #12] ; 4-byte Folded Reload
ldr x2, [sp, #16] ; 8-byte Folded Reload
mov x3, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldur x8, [x29, #-24]
add x4, x8, #16
ldur x8, [x29, #-24]
add x5, x8, #24
bl _RegionCommonComputeRxWindowParameters
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _RegionKR920RxConfig ; -- Begin function RegionKR920RxConfig
.p2align 2
_RegionKR920RxConfig: ; @RegionKR920RxConfig
.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, _Radio@GOTPAGE
ldr x8, [x8, _Radio@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
stur x0, [x29, #-16]
stur x1, [x29, #-24]
ldur x9, [x29, #-16]
ldrb w9, [x9, #1]
sturb w9, [x29, #-25]
sturb wzr, [x29, #-26]
ldur x9, [x29, #-16]
ldr x9, [x9, #8]
str x9, [sp, #24]
ldr x8, [x8, #8]
blr x8
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB10_2
b LBB10_1
LBB10_1:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB10_7
LBB10_2:
ldur x8, [x29, #-16]
ldr w8, [x8, #36]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB10_6
b LBB10_3
LBB10_3:
adrp x8, _RegionNvmGroup2@PAGE
ldr x9, [x8, _RegionNvmGroup2@PAGEOFF]
ldur x10, [x29, #-16]
ldrb w10, [x10]
mov x11, x10
mov x10, #24
mul x11, x11, x10
ldr x9, [x9, x11]
str x9, [sp, #24]
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
ldur x9, [x29, #-16]
ldrb w9, [x9]
; kill: def $x9 killed $w9
mul x9, x9, x10
add x8, x8, x9
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB10_5
b LBB10_4
LBB10_4:
adrp x8, _RegionNvmGroup2@PAGE
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
ldur x9, [x29, #-16]
ldrb w9, [x9]
; kill: def $x9 killed $w9
mov x10, #24
mul x9, x9, x10
add x8, x8, x9
ldr x8, [x8, #8]
str x8, [sp, #24]
b LBB10_5
LBB10_5:
b LBB10_6
LBB10_6:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldursb x10, [x29, #-25]
adrp x9, _DataratesKR920@PAGE
add x9, x9, _DataratesKR920@PAGEOFF
add x9, x9, x10
ldrb w9, [x9]
sturb w9, [x29, #-26]
ldr x8, [x8, #24]
ldr x0, [sp, #24]
blr x8
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x8, [x8, #48]
ldur x9, [x29, #-16]
ldrb w9, [x9, #2]
mov x1, x9
ldursb x2, [x29, #-26]
ldur x9, [x29, #-16]
ldr x9, [x9, #16]
ldur x10, [x29, #-16]
ldrb w10, [x10, #33]
mov w12, #1
mov w3, #1
str w3, [sp, #12] ; 4-byte Folded Spill
and w10, w10, w3
mov x11, sp
strb wzr, [x11]
strb wzr, [x11, #1]
strb wzr, [x11, #2]
strb wzr, [x11, #3]
strb w12, [x11, #4]
strb w10, [x11, #5]
mov w0, #1
str w0, [sp, #8] ; 4-byte Folded Spill
mov x4, #0
mov w5, #8
; kill: def $w9 killed $w9 killed $x9
and w6, w9, #0xffff
mov w9, #0
and w7, w9, #0x1
blr x8
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldr x8, [x8, #168]
ldursb x10, [x29, #-25]
adrp x9, _MaxPayloadOfDatarateKR920@PAGE
add x9, x9, _MaxPayloadOfDatarateKR920@PAGEOFF
ldrb w9, [x9, x10]
add w9, w9, #13
and w1, w9, #0xff
blr x8
ldr w8, [sp, #12] ; 4-byte Folded Reload
ldurb w9, [x29, #-25]
ldur x10, [x29, #-24]
strb w9, [x10]
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB10_7
LBB10_7:
ldurb w8, [x29, #-1]
and w0, w8, #0x1
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _RegionKR920TxConfig ; -- Begin function RegionKR920TxConfig
.p2align 2
_RegionKR920TxConfig: ; @RegionKR920TxConfig
.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, _Radio@GOTPAGE
ldr x8, [x8, _Radio@GOTPAGEOFF]
str x8, [sp, #40] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
ldur x8, [x29, #-8]
ldrsb x9, [x8, #1]
adrp x8, _DataratesKR920@PAGE
add x8, x8, _DataratesKR920@PAGEOFF
add x8, x8, x9
ldrb w8, [x8]
sturb w8, [x29, #-25]
ldur x8, [x29, #-8]
ldrsb w0, [x8, #2]
adrp x8, _RegionNvmGroup1@PAGE
ldr x8, [x8, _RegionNvmGroup1@PAGEOFF]
adrp x9, _RegionNvmGroup2@PAGE
str x9, [sp, #48] ; 8-byte Folded Spill
ldr x9, [x9, _RegionNvmGroup2@PAGEOFF]
ldur x10, [x29, #-8]
ldrb w10, [x10]
; kill: def $x10 killed $w10
mov x11, #24
str x11, [sp, #56] ; 8-byte Folded Spill
mul x10, x10, x11
add x9, x9, x10
ldrb w9, [x9, #17]
; kill: def $x9 killed $w9
mov x10, #48
mul x9, x9, x10
add x8, x8, x9
ldrsb w1, [x8, #2]
bl _RegionCommonLimitTxPower
sturb w0, [x29, #-26]
ldur x8, [x29, #-8]
ldrsb x0, [x8, #1]
adrp x1, _BandwidthsKR920@PAGE
add x1, x1, _BandwidthsKR920@PAGEOFF
bl _RegionCommonGetBandwidth
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x10, [sp, #56] ; 8-byte Folded Reload
stur x0, [x29, #-40]
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
ldur x9, [x29, #-8]
ldrb w9, [x9]
; kill: def $x9 killed $w9
mul x9, x9, x10
ldr x0, [x8, x9]
bl _GetMaxEIRP
sxtb w8, w0
scvtf s0, w8
stur s0, [x29, #-44]
sturb wzr, [x29, #-45]
ldur x8, [x29, #-8]
ldr s0, [x8, #4]
ldur s1, [x29, #-44]
fcmp s0, s1
cset w8, pl
tbnz w8, #0, LBB11_2
b LBB11_1
LBB11_1:
ldur x8, [x29, #-8]
ldr s0, [x8, #4]
str s0, [sp, #36] ; 4-byte Folded Spill
b LBB11_3
LBB11_2:
ldur s0, [x29, #-44]
str s0, [sp, #36] ; 4-byte Folded Spill
b LBB11_3
LBB11_3:
ldr s0, [sp, #36] ; 4-byte Folded Reload
stur s0, [x29, #-44]
ldursb w0, [x29, #-26]
ldur s0, [x29, #-44]
ldur x8, [x29, #-8]
ldr s1, [x8, #8]
bl _RegionCommonComputeTxPower
ldr x8, [sp, #40] ; 8-byte Folded Reload
sturb w0, [x29, #-45]
ldr x8, [x8, #24]
adrp x9, _RegionNvmGroup2@PAGE
ldr x9, [x9, _RegionNvmGroup2@PAGEOFF]
ldur x10, [x29, #-8]
ldrb w10, [x10]
; kill: def $x10 killed $w10
mov x11, #24
mul x10, x10, x11
ldr x0, [x9, x10]
blr x8
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr x8, [x8, #56]
ldursb w1, [x29, #-45]
ldur x3, [x29, #-40]
ldursb x4, [x29, #-25]
mov w9, #1
mov x10, sp
strb w9, [x10]
strb wzr, [x10, #1]
strb wzr, [x10, #2]
strb wzr, [x10, #3]
mov x9, #4000
str x9, [x10, #8]
mov w0, #1
str w0, [sp, #28] ; 4-byte Folded Spill
mov x2, #0
mov w5, #1
str w5, [sp, #32] ; 4-byte Folded Spill
mov w6, #8
mov w9, #0
and w7, w9, #0x1
blr x8
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w0, [sp, #28] ; 4-byte Folded Reload
ldr x8, [x8, #168]
ldur x9, [x29, #-8]
ldrh w9, [x9, #12]
and w1, w9, #0xff
blr x8
ldur x8, [x29, #-8]
ldrsb w0, [x8, #1]
ldur x8, [x29, #-8]
ldrh w1, [x8, #12]
bl _GetTimeOnAir
ldr w8, [sp, #32] ; 4-byte Folded Reload
ldur x9, [x29, #-24]
str x0, [x9]
ldurb w9, [x29, #-26]
ldur x10, [x29, #-16]
strb w9, [x10]
and w0, w8, #0x1
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function GetMaxEIRP
_GetMaxEIRP: ; @GetMaxEIRP
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp]
ldr x8, [sp]
mov x9, #8480
movk x9, #14070, lsl #16
subs x8, x8, x9
cset w8, lo
tbnz w8, #0, LBB12_2
b LBB12_1
LBB12_1:
mov w8, #14
strb w8, [sp, #15]
b LBB12_3
LBB12_2:
mov w8, #10
strb w8, [sp, #15]
b LBB12_3
LBB12_3:
ldrsb w0, [sp, #15]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function GetTimeOnAir
_GetTimeOnAir: ; @GetTimeOnAir
.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, _Radio@GOTPAGE
ldr x8, [x8, _Radio@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
sturb w0, [x29, #-1]
sturh w1, [x29, #-4]
ldursb x9, [x29, #-1]
adrp x8, _DataratesKR920@PAGE
add x8, x8, _DataratesKR920@PAGEOFF
add x8, x8, x9
ldrb w8, [x8]
sturb w8, [x29, #-5]
ldursb x0, [x29, #-1]
adrp x1, _BandwidthsKR920@PAGE
add x1, x1, _BandwidthsKR920@PAGEOFF
bl _RegionCommonGetBandwidth
ldr x8, [sp, #8] ; 8-byte Folded Reload
str x0, [sp, #16]
ldr x8, [x8, #72]
ldr x1, [sp, #16]
ldursb x2, [x29, #-5]
ldurh w10, [x29, #-4]
mov w9, #1
mov x0, x9
mov x3, x9
mov w4, #8
mov w11, #0
and w5, w11, #0x1
and w6, w10, #0xff
and w7, w9, #0x1
blr x8
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _RegionKR920LinkAdrReq ; -- Begin function RegionKR920LinkAdrReq
.p2align 2
_RegionKR920LinkAdrReq: ; @RegionKR920LinkAdrReq
.cfi_startproc
; %bb.0:
sub sp, sp, #176
.cfi_def_cfa_offset 176
stp x29, x30, [sp, #160] ; 16-byte Folded Spill
add x29, sp, #160
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
stur x4, [x29, #-40]
mov w8, #7
sturb w8, [x29, #-41]
stur wzr, [x29, #-48]
sturh wzr, [x29, #-44]
sturb wzr, [x29, #-49]
sturb wzr, [x29, #-50]
sturh wzr, [x29, #-52]
b LBB14_1
LBB14_1: ; =>This Loop Header: Depth=1
; Child Loop BB14_12 Depth 2
ldurb w8, [x29, #-50]
ldur x9, [x29, #-8]
ldrb w9, [x9, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB14_26
b LBB14_2
LBB14_2: ; in Loop: Header=BB14_1 Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldurb w9, [x29, #-50]
; kill: def $x9 killed $w9
add x0, x8, x9
sub x1, x29, #48
bl _RegionCommonParseLinkAdrReq
sturb w0, [x29, #-49]
ldurb w8, [x29, #-49]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB14_4
b LBB14_3
LBB14_3:
b LBB14_26
LBB14_4: ; in Loop: Header=BB14_1 Depth=1
ldurb w9, [x29, #-49]
ldurb w8, [x29, #-50]
add w8, w8, w9
sturb w8, [x29, #-50]
mov w8, #7
sturb w8, [x29, #-41]
ldurh w8, [x29, #-44]
sturh w8, [x29, #-52]
ldurb w8, [x29, #-45]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB14_7
b LBB14_5
LBB14_5: ; in Loop: Header=BB14_1 Depth=1
ldurh w8, [x29, #-52]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB14_7
b LBB14_6
LBB14_6: ; in Loop: Header=BB14_1 Depth=1
ldurb w8, [x29, #-41]
and w8, w8, #0xfe
sturb w8, [x29, #-41]
b LBB14_25
LBB14_7: ; in Loop: Header=BB14_1 Depth=1
ldurb w8, [x29, #-45]
subs w8, w8, #1
cset w8, lt
tbnz w8, #0, LBB14_9
b LBB14_8
LBB14_8: ; in Loop: Header=BB14_1 Depth=1
ldurb w8, [x29, #-45]
subs w8, w8, #5
cset w8, le
tbnz w8, #0, LBB14_10
b LBB14_9
LBB14_9: ; in Loop: Header=BB14_1 Depth=1
ldurb w8, [x29, #-45]
subs w8, w8, #7
cset w8, lt
tbnz w8, #0, LBB14_11
b LBB14_10
LBB14_10: ; in Loop: Header=BB14_1 Depth=1
ldurb w8, [x29, #-41]
and w8, w8, #0xfe
sturb w8, [x29, #-41]
b LBB14_24
LBB14_11: ; in Loop: Header=BB14_1 Depth=1
strb wzr, [sp, #31]
b LBB14_12
LBB14_12: ; Parent Loop BB14_1 Depth=1
; => This Inner Loop Header: Depth=2
ldrb w8, [sp, #31]
subs w8, w8, #16
cset w8, ge
tbnz w8, #0, LBB14_23
b LBB14_13
LBB14_13: ; in Loop: Header=BB14_12 Depth=2
ldurb w8, [x29, #-45]
subs w8, w8, #6
cset w8, ne
tbnz w8, #0, LBB14_17
b LBB14_14
LBB14_14: ; in Loop: Header=BB14_12 Depth=2
adrp x8, _RegionNvmGroup2@PAGE
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
ldrb w9, [sp, #31]
; kill: def $x9 killed $w9
mov x10, #24
mul x9, x9, x10
ldr x8, [x8, x9]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB14_16
b LBB14_15
LBB14_15: ; in Loop: Header=BB14_12 Depth=2
ldrb w9, [sp, #31]
mov w8, #1
lsl w9, w8, w9
ldurh w8, [x29, #-52]
orr w8, w8, w9
sturh w8, [x29, #-52]
b LBB14_16
LBB14_16: ; in Loop: Header=BB14_12 Depth=2
b LBB14_21
LBB14_17: ; in Loop: Header=BB14_12 Depth=2
ldurh w8, [x29, #-52]
ldrb w10, [sp, #31]
mov w9, #1
lsl w9, w9, w10
ands w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB14_20
b LBB14_18
LBB14_18: ; in Loop: Header=BB14_12 Depth=2
adrp x8, _RegionNvmGroup2@PAGE
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
ldrb w9, [sp, #31]
; kill: def $x9 killed $w9
mov x10, #24
mul x9, x9, x10
ldr x8, [x8, x9]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB14_20
b LBB14_19
LBB14_19: ; in Loop: Header=BB14_12 Depth=2
ldurb w8, [x29, #-41]
and w8, w8, #0xfe
sturb w8, [x29, #-41]
b LBB14_20
LBB14_20: ; in Loop: Header=BB14_12 Depth=2
b LBB14_21
LBB14_21: ; in Loop: Header=BB14_12 Depth=2
b LBB14_22
LBB14_22: ; in Loop: Header=BB14_12 Depth=2
ldrb w8, [sp, #31]
add w8, w8, #1
strb w8, [sp, #31]
b LBB14_12
LBB14_23: ; in Loop: Header=BB14_1 Depth=1
b LBB14_24
LBB14_24: ; in Loop: Header=BB14_1 Depth=1
b LBB14_25
LBB14_25: ; in Loop: Header=BB14_1 Depth=1
b LBB14_1
LBB14_26:
sub x0, x29, #60
mov w8, #2
stur w8, [x29, #-60]
ldur x8, [x29, #-8]
ldrb w8, [x8, #17]
sturb w8, [x29, #-55]
bl _RegionKR920GetPhyParam
str x0, [sp, #16]
ldr x8, [sp, #16]
stur x8, [x29, #-72]
ldurb w8, [x29, #-41]
add x0, sp, #32
strb w8, [sp, #40]
ldur x8, [x29, #-8]
ldrb w8, [x8, #18]
mov w9, #1
and w8, w8, w9
strb w8, [sp, #41]
sub x3, x29, #48
ldurb w8, [x29, #-47]
strb w8, [sp, #42]
ldurb w8, [x29, #-46]
strb w8, [sp, #43]
ldurb w8, [x29, #-48]
strb w8, [sp, #44]
ldur x8, [x29, #-8]
ldrb w8, [x8, #19]
strb w8, [sp, #45]
ldur x8, [x29, #-8]
ldrb w8, [x8, #20]
strb w8, [sp, #46]
ldur x8, [x29, #-8]
ldrb w8, [x8, #21]
strb w8, [sp, #47]
mov w8, #16
strb w8, [sp, #48]
sub x8, x29, #52
str x8, [sp, #56]
ldur x8, [x29, #-72]
; kill: def $w8 killed $w8 killed $x8
strb w8, [sp, #64]
mov w8, #5
strb w8, [sp, #65]
adrp x8, _RegionNvmGroup2@PAGE
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
str x8, [sp, #72]
mov w8, #7
strb w8, [sp, #80]
strb wzr, [sp, #81]
ldur x8, [x29, #-8]
ldr x8, [x8]
str x8, [sp, #32]
add x1, x3, #1
add x2, x3, #2
bl _RegionCommonLinkAdrReqVerifyParams
sturb w0, [x29, #-41]
ldurb w8, [x29, #-41]
subs w8, w8, #7
cset w8, ne
tbnz w8, #0, LBB14_28
b LBB14_27
LBB14_27:
adrp x8, _RegionNvmGroup2@PAGE
str x8, [sp, #8] ; 8-byte Folded Spill
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
add x0, x8, #2304
mov w1, #0
mov w2, #12
bl _memset1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldurh w8, [x29, #-52]
ldr x9, [x9, _RegionNvmGroup2@PAGEOFF]
strh w8, [x9, #2304]
b LBB14_28
LBB14_28:
ldurb w8, [x29, #-47]
ldur x9, [x29, #-16]
strb w8, [x9]
ldurb w8, [x29, #-46]
ldur x9, [x29, #-24]
strb w8, [x9]
ldurb w8, [x29, #-48]
ldur x9, [x29, #-32]
strb w8, [x9]
ldurb w8, [x29, #-50]
ldur x9, [x29, #-40]
strb w8, [x9]
ldurb w0, [x29, #-41]
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
; -- End function
.globl _RegionKR920RxParamSetupReq ; -- Begin function RegionKR920RxParamSetupReq
.p2align 2
_RegionKR920RxParamSetupReq: ; @RegionKR920RxParamSetupReq
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
mov w8, #7
strb w8, [sp, #7]
ldr x8, [sp, #8]
ldr x0, [x8, #8]
bl _VerifyRfFreq
ands w8, w0, #0x1
cset w8, ne
tbnz w8, #0, LBB15_2
b LBB15_1
LBB15_1:
ldrb w8, [sp, #7]
and w8, w8, #0xfe
strb w8, [sp, #7]
b LBB15_2
LBB15_2:
ldr x8, [sp, #8]
ldrsb w0, [x8]
mov w1, #0
mov w2, #5
bl _RegionCommonValueInRange
ands w8, w0, #0xff
cset w8, ne
tbnz w8, #0, LBB15_4
b LBB15_3
LBB15_3:
ldrb w8, [sp, #7]
mov w9, #253
and w8, w8, w9
strb w8, [sp, #7]
b LBB15_4
LBB15_4:
ldr x8, [sp, #8]
ldrsb w0, [x8, #1]
mov w1, #0
mov w2, #5
bl _RegionCommonValueInRange
ands w8, w0, #0xff
cset w8, ne
tbnz w8, #0, LBB15_6
b LBB15_5
LBB15_5:
ldrb w8, [sp, #7]
mov w9, #251
and w8, w8, w9
strb w8, [sp, #7]
b LBB15_6
LBB15_6:
ldrb w0, [sp, #7]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _RegionKR920NewChannelReq ; -- Begin function RegionKR920NewChannelReq
.p2align 2
_RegionKR920NewChannelReq: ; @RegionKR920NewChannelReq
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
mov w8, #3
sturb w8, [x29, #-9]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB16_4
b LBB16_1
LBB16_1:
ldur x8, [x29, #-8]
ldrb w8, [x8, #8]
add x0, sp, #15
strb w8, [sp, #15]
bl _RegionKR920ChannelsRemove
ands w8, w0, #0x1
cset w8, ne
tbnz w8, #0, LBB16_3
b LBB16_2
LBB16_2:
ldurb w8, [x29, #-9]
and w8, w8, #0xfc
sturb w8, [x29, #-9]
b LBB16_3
LBB16_3:
b LBB16_12
LBB16_4:
ldur x8, [x29, #-8]
ldr x8, [x8]
add x0, sp, #16
str x8, [sp, #16]
ldur x8, [x29, #-8]
ldrb w8, [x8, #8]
strb w8, [sp, #24]
bl _RegionKR920ChannelAdd
subs w8, w0, #0
; kill: def $x8 killed $w8
str x8, [sp] ; 8-byte Folded Spill
subs x8, x8, #6
cset w8, hi
tbnz w8, #0, LBB16_10
; %bb.5:
ldr x11, [sp] ; 8-byte Folded Reload
adrp x10, lJTI16_0@PAGE
add x10, x10, lJTI16_0@PAGEOFF
Ltmp3:
adr x8, Ltmp3
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB16_6:
b LBB16_11
LBB16_7:
ldurb w8, [x29, #-9]
and w8, w8, #0xfe
sturb w8, [x29, #-9]
b LBB16_11
LBB16_8:
ldurb w8, [x29, #-9]
mov w9, #253
and w8, w8, w9
sturb w8, [x29, #-9]
b LBB16_11
LBB16_9:
ldurb w8, [x29, #-9]
and w8, w8, #0xfc
sturb w8, [x29, #-9]
b LBB16_11
LBB16_10:
ldurb w8, [x29, #-9]
and w8, w8, #0xfc
sturb w8, [x29, #-9]
b LBB16_11
LBB16_11:
b LBB16_12
LBB16_12:
ldursb w0, [x29, #-9]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
.p2align 2
lJTI16_0:
.long LBB16_6-Ltmp3
.long LBB16_10-Ltmp3
.long LBB16_10-Ltmp3
.long LBB16_10-Ltmp3
.long LBB16_7-Ltmp3
.long LBB16_8-Ltmp3
.long LBB16_9-Ltmp3
; -- End function
.globl _RegionKR920TxParamSetupReq ; -- Begin function RegionKR920TxParamSetupReq
.p2align 2
_RegionKR920TxParamSetupReq: ; @RegionKR920TxParamSetupReq
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
mov w0, #-1
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _RegionKR920DlChannelReq ; -- Begin function RegionKR920DlChannelReq
.p2align 2
_RegionKR920DlChannelReq: ; @RegionKR920DlChannelReq
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
mov w8, #3
strb w8, [sp, #7]
ldr x8, [sp, #8]
ldr x0, [x8, #8]
bl _VerifyRfFreq
ands w8, w0, #0x1
cset w8, ne
tbnz w8, #0, LBB18_2
b LBB18_1
LBB18_1:
ldrb w8, [sp, #7]
and w8, w8, #0xfe
strb w8, [sp, #7]
b LBB18_2
LBB18_2:
adrp x8, _RegionNvmGroup2@PAGE
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
ldr x9, [sp, #8]
ldrb w9, [x9]
; kill: def $x9 killed $w9
mov x10, #24
mul x9, x9, x10
ldr x8, [x8, x9]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB18_4
b LBB18_3
LBB18_3:
ldrb w8, [sp, #7]
mov w9, #253
and w8, w8, w9
strb w8, [sp, #7]
b LBB18_4
LBB18_4:
ldrb w8, [sp, #7]
subs w8, w8, #3
cset w8, ne
tbnz w8, #0, LBB18_6
b LBB18_5
LBB18_5:
ldr x8, [sp, #8]
ldr x8, [x8, #8]
adrp x9, _RegionNvmGroup2@PAGE
ldr x9, [x9, _RegionNvmGroup2@PAGEOFF]
ldr x10, [sp, #8]
ldrb w10, [x10]
; kill: def $x10 killed $w10
mov x11, #24
mul x10, x10, x11
add x9, x9, x10
str x8, [x9, #8]
b LBB18_6
LBB18_6:
ldrsb w0, [sp, #7]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _RegionKR920AlternateDr ; -- Begin function RegionKR920AlternateDr
.p2align 2
_RegionKR920AlternateDr: ; @RegionKR920AlternateDr
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
strb w0, [sp, #15]
str w1, [sp, #8]
ldrsb w0, [sp, #15]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _RegionKR920NextChannel ; -- Begin function RegionKR920NextChannel
.p2align 2
_RegionKR920NextChannel: ; @RegionKR920NextChannel
.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
adrp x8, _Radio@GOTPAGE
ldr x8, [x8, _Radio@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur x0, [x29, #-40]
stur x1, [x29, #-48]
stur x2, [x29, #-56]
stur x3, [x29, #-64]
sturb wzr, [x29, #-65]
sturb wzr, [x29, #-66]
sturb wzr, [x29, #-67]
stur xzr, [x29, #-24]
stur xzr, [x29, #-16]
mov w8, #12
str w8, [sp, #36]
mov w8, #7
strh w8, [sp, #34]
adrp x8, _RegionNvmGroup2@PAGE
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
add x0, x8, #2304
mov w1, #0
mov w2, #1
bl _RegionCommonCountChannels
ands w8, w0, #0xff
cset w8, ne
tbnz w8, #0, LBB20_2
b LBB20_1
LBB20_1:
adrp x8, _RegionNvmGroup2@PAGE
ldr x9, [x8, _RegionNvmGroup2@PAGEOFF]
ldrh w8, [x9, #2304]
orr w8, w8, #0x7
strh w8, [x9, #2304]
b LBB20_2
LBB20_2:
ldur x8, [x29, #-40]
ldrb w8, [x8, #17]
mov w9, #1
and w8, w8, w9
add x10, sp, #40
str x10, [sp, #8] ; 8-byte Folded Spill
strb w8, [sp, #40]
ldur x8, [x29, #-40]
ldrb w8, [x8, #16]
strb w8, [sp, #41]
adrp x8, _RegionNvmGroup2@PAGE
ldr x10, [x8, _RegionNvmGroup2@PAGEOFF]
add x10, x10, #2304
str x10, [sp, #48]
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
str x8, [sp, #56]
adrp x8, _RegionNvmGroup1@PAGE
ldr x8, [x8, _RegionNvmGroup1@PAGEOFF]
str x8, [sp, #64]
mov w8, #16
strh w8, [sp, #72]
add x8, sp, #34
str x8, [sp, #80]
ldur x8, [x29, #-40]
ldr x10, [x8]
add x8, sp, #88
str x8, [sp, #16] ; 8-byte Folded Spill
str x10, [sp, #88]
ldur x10, [x29, #-40]
ldr x10, [x10, #8]
str x10, [sp, #96]
ldur x10, [x29, #-40]
ldrb w10, [x10, #18]
and w10, w10, w9
strb w10, [sp, #104]
mov w10, #1
strb w10, [sp, #105]
ldur x10, [x29, #-40]
ldur q0, [x10, #24]
stur q0, [x8, #24]
ldur x8, [x29, #-40]
ldrb w8, [x8, #40]
and w8, w8, w9
strb w8, [sp, #128]
ldur x8, [x29, #-40]
ldrsb w0, [x8, #16]
ldur x8, [x29, #-40]
ldrh w1, [x8, #42]
bl _GetTimeOnAir
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
str x9, [sp, #136]
str x8, [sp, #144]
ldur x1, [x29, #-64]
ldur x5, [x29, #-56]
sub x2, x29, #24
sub x3, x29, #66
sub x4, x29, #67
bl _RegionCommonIdentifyChannels
str w0, [sp, #36]
ldr w8, [sp, #36]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB20_10
b LBB20_3
LBB20_3:
strb wzr, [sp, #33]
ldurb w8, [x29, #-66]
subs w9, w8, #1
; implicit-def: $x8
mov x8, x9
sxtw x1, w8
mov x0, #0
bl _randr
mov x8, x0
strb w8, [sp, #32]
b LBB20_4
LBB20_4: ; =>This Inner Loop Header: Depth=1
ldrb w8, [sp, #33]
subs w8, w8, #16
cset w8, ge
tbnz w8, #0, LBB20_9
b LBB20_5
LBB20_5: ; in Loop: Header=BB20_4 Depth=1
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldrb w9, [sp, #32]
mov x10, x9
sub x9, x29, #24
add x9, x9, x10
ldrb w9, [x9]
sturb w9, [x29, #-65]
ldrb w9, [sp, #32]
add w9, w9, #1
ldurb w11, [x29, #-66]
sdiv w10, w9, w11
mul w10, w10, w11
subs w9, w9, w10
strb w9, [sp, #32]
ldr x8, [x8, #32]
adrp x9, _RegionNvmGroup2@PAGE
ldr x9, [x9, _RegionNvmGroup2@PAGEOFF]
ldurb w10, [x29, #-65]
; kill: def $x10 killed $w10
mov x11, #24
mul x10, x10, x11
ldr x0, [x9, x10]
mov x1, #3392
movk x1, #3, lsl #16
mov w2, #-65
mov x3, #6
blr x8
and w8, w0, #0x1
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB20_7
b LBB20_6
LBB20_6:
ldurb w8, [x29, #-65]
ldur x9, [x29, #-48]
strb w8, [x9]
stur wzr, [x29, #-28]
b LBB20_14
LBB20_7: ; in Loop: Header=BB20_4 Depth=1
b LBB20_8
LBB20_8: ; in Loop: Header=BB20_4 Depth=1
ldrb w8, [sp, #33]
add w8, w8, #1
strb w8, [sp, #33]
b LBB20_4
LBB20_9:
mov w8, #13
str w8, [sp, #36]
b LBB20_13
LBB20_10:
ldr w8, [sp, #36]
subs w8, w8, #12
cset w8, ne
tbnz w8, #0, LBB20_12
b LBB20_11
LBB20_11:
adrp x8, _RegionNvmGroup2@PAGE
ldr x9, [x8, _RegionNvmGroup2@PAGEOFF]
ldrh w8, [x9, #2304]
orr w8, w8, #0x7
strh w8, [x9, #2304]
b LBB20_12
LBB20_12:
b LBB20_13
LBB20_13:
ldr w8, [sp, #36]
stur w8, [x29, #-28]
b LBB20_14
LBB20_14:
ldur w8, [x29, #-28]
str w8, [sp, #4] ; 4-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB20_16
b LBB20_15
LBB20_15:
bl ___stack_chk_fail
LBB20_16:
ldr w0, [sp, #4] ; 4-byte Folded Reload
ldp x29, x30, [sp, #224] ; 16-byte Folded Reload
add sp, sp, #240
ret
.cfi_endproc
; -- End function
.globl _RegionKR920SetContinuousWave ; -- Begin function RegionKR920SetContinuousWave
.p2align 2
_RegionKR920SetContinuousWave: ; @RegionKR920SetContinuousWave
.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, _Radio@GOTPAGE
ldr x8, [x8, _Radio@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldrsb w0, [x8, #2]
adrp x8, _RegionNvmGroup1@PAGE
ldr x8, [x8, _RegionNvmGroup1@PAGEOFF]
adrp x9, _RegionNvmGroup2@PAGE
str x9, [sp, #16] ; 8-byte Folded Spill
ldr x9, [x9, _RegionNvmGroup2@PAGEOFF]
ldur x10, [x29, #-8]
ldrb w10, [x10]
; kill: def $x10 killed $w10
mov x11, #24
str x11, [sp, #24] ; 8-byte Folded Spill
mul x10, x10, x11
add x9, x9, x10
ldrb w9, [x9, #17]
; kill: def $x9 killed $w9
mov x10, #48
mul x9, x9, x10
add x8, x8, x9
ldrsb w1, [x8, #2]
bl _RegionCommonLimitTxPower
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x10, [sp, #24] ; 8-byte Folded Reload
sturb w0, [x29, #-9]
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
ldur x9, [x29, #-8]
ldrb w9, [x9]
; kill: def $x9 killed $w9
mul x9, x9, x10
ldr x0, [x8, x9]
bl _GetMaxEIRP
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x10, [sp, #24] ; 8-byte Folded Reload
sxtb w9, w0
scvtf s0, w9
stur s0, [x29, #-16]
sturb wzr, [x29, #-17]
ldr x8, [x8, _RegionNvmGroup2@PAGEOFF]
ldur x9, [x29, #-8]
ldrb w9, [x9]
; kill: def $x9 killed $w9
mul x9, x9, x10
ldr x8, [x8, x9]
str x8, [sp, #32]
ldur x8, [x29, #-8]
ldr s0, [x8, #4]
ldur s1, [x29, #-16]
fcmp s0, s1
cset w8, pl
tbnz w8, #0, LBB21_2
b LBB21_1
LBB21_1:
ldur x8, [x29, #-8]
ldr s0, [x8, #4]
str s0, [sp, #4] ; 4-byte Folded Spill
b LBB21_3
LBB21_2:
ldur s0, [x29, #-16]
str s0, [sp, #4] ; 4-byte Folded Spill
b LBB21_3
LBB21_3:
ldr s0, [sp, #4] ; 4-byte Folded Reload
stur s0, [x29, #-16]
ldursb w0, [x29, #-9]
ldur s0, [x29, #-16]
ldur x8, [x29, #-8]
ldr s1, [x8, #8]
bl _RegionCommonComputeTxPower
ldr x8, [sp, #8] ; 8-byte Folded Reload
sturb w0, [x29, #-17]
ldr x8, [x8, #120]
ldr x0, [sp, #32]
ldursb w1, [x29, #-17]
ldur x9, [x29, #-8]
ldrh w2, [x9, #12]
blr x8
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _RegionKR920ApplyDrOffset ; -- Begin function RegionKR920ApplyDrOffset
.p2align 2
_RegionKR920ApplyDrOffset: ; @RegionKR920ApplyDrOffset
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
strb w0, [sp, #15]
strb w1, [sp, #14]
strb w2, [sp, #13]
ldrsb w8, [sp, #14]
ldrsb w9, [sp, #13]
subs w8, w8, w9
strb w8, [sp, #12]
ldrsb w8, [sp, #12]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB22_2
b LBB22_1
LBB22_1:
strb wzr, [sp, #12]
b LBB22_2
LBB22_2:
ldrb w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _RegionKR920RxBeaconSetup ; -- Begin function RegionKR920RxBeaconSetup
.p2align 2
_RegionKR920RxBeaconSetup: ; @RegionKR920RxBeaconSetup
.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]
add x0, sp, #8
adrp x8, _DataratesKR920@PAGE
add x8, x8, _DataratesKR920@PAGEOFF
str x8, [sp, #8]
ldur x8, [x29, #-8]
ldr x8, [x8, #16]
str x8, [sp, #16]
mov w8, #17
strb w8, [sp, #24]
mov w8, #3
str w8, [sp, #4] ; 4-byte Folded Spill
strb w8, [sp, #25]
strb wzr, [sp, #26]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
str x8, [sp, #32]
ldur x8, [x29, #-8]
ldrh w8, [x8]
strh w8, [sp, #40]
bl _RegionCommonRxBeaconSetup
ldr w8, [sp, #4] ; 4-byte Folded Reload
ldur x9, [x29, #-16]
strb w8, [x9]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_RegionNvmGroup2,8,3 ; @RegionNvmGroup2
.section __TEXT,__const
_MaxPayloadOfDatarateKR920: ; @MaxPayloadOfDatarateKR920
.ascii "333s\362\362"
_DataratesKR920: ; @DataratesKR920
.ascii "\f\013\n\t\b\007"
.p2align 3 ; @BandwidthsKR920
_BandwidthsKR920:
.quad 125000 ; 0x1e848
.quad 125000 ; 0x1e848
.quad 125000 ; 0x1e848
.quad 125000 ; 0x1e848
.quad 125000 ; 0x1e848
.quad 125000 ; 0x1e848
.zerofill __DATA,__bss,_RegionNvmGroup1,8,3 ; @RegionNvmGroup1
.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 RegionKR920GetPhyParam
LCPI0_0:
.long 0x4009999a ## float 2.1500001
LCPI0_1:
.long 0x41600000 ## float 14
.section __TEXT,__text,regular,pure_instructions
.globl _RegionKR920GetPhyParam
.p2align 4, 0x90
_RegionKR920GetPhyParam: ## @RegionKR920GetPhyParam
.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 $0, -8(%rbp)
movq -16(%rbp), %rax
movl (%rax), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -48(%rbp) ## 8-byte Spill
subl $55, %eax
ja LBB0_36
## %bb.38:
movq -48(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_1:
movq $0, -8(%rbp)
jmp LBB0_37
LBB0_2:
movq $0, -8(%rbp)
jmp LBB0_37
LBB0_3:
movq $0, -8(%rbp)
jmp LBB0_37
LBB0_4:
movq -16(%rbp), %rax
movb 4(%rax), %al
movb %al, -40(%rbp)
movb $5, -39(%rbp)
movb $0, -38(%rbp)
movb $16, -37(%rbp)
movq _RegionNvmGroup2(%rip), %rax
addq $2304, %rax ## imm = 0x900
movq %rax, -32(%rbp)
movq _RegionNvmGroup2(%rip), %rax
movq %rax, -24(%rbp)
leaq -40(%rbp), %rdi
callq _RegionCommonGetNextLowerTxDr
movsbq %al, %rax
movq %rax, -8(%rbp)
jmp LBB0_37
LBB0_5:
movq $0, -8(%rbp)
jmp LBB0_37
LBB0_6:
movq $0, -8(%rbp)
jmp LBB0_37
LBB0_7:
movq $64, -8(%rbp)
jmp LBB0_37
LBB0_8:
movq $32, -8(%rbp)
jmp LBB0_37
LBB0_9:
movq -16(%rbp), %rax
movsbq 4(%rax), %rcx
leaq _MaxPayloadOfDatarateKR920(%rip), %rax
movzbl (%rax,%rcx), %eax
## kill: def $rax killed $eax
movq %rax, -8(%rbp)
jmp LBB0_37
LBB0_10:
movq $0, -8(%rbp)
jmp LBB0_37
LBB0_11:
movq $4000, -8(%rbp) ## imm = 0xFA0
jmp LBB0_37
LBB0_12:
movq $1000, -8(%rbp) ## imm = 0x3E8
jmp LBB0_37
LBB0_13:
movq $2000, -8(%rbp) ## imm = 0x7D0
jmp LBB0_37
LBB0_14:
movq $5000, -8(%rbp) ## imm = 0x1388
jmp LBB0_37
LBB0_15:
movq $6000, -8(%rbp) ## imm = 0x1770
jmp LBB0_37
LBB0_16:
movq $16384, -8(%rbp) ## imm = 0x4000
jmp LBB0_37
LBB0_17:
movq $-1000, %rdi ## imm = 0xFC18
movl $1000, %esi ## imm = 0x3E8
callq _randr
addq $2000, %rax ## imm = 0x7D0
movq %rax, -8(%rbp)
jmp LBB0_37
LBB0_18:
movq $0, -8(%rbp)
jmp LBB0_37
LBB0_19:
movq $921900000, -8(%rbp) ## imm = 0x36F313E0
jmp LBB0_37
LBB0_20:
movq $0, -8(%rbp)
jmp LBB0_37
LBB0_21:
movq _RegionNvmGroup2(%rip), %rax
addq $2304, %rax ## imm = 0x900
movq %rax, -8(%rbp)
jmp LBB0_37
LBB0_22:
movq _RegionNvmGroup2(%rip), %rax
addq $2316, %rax ## imm = 0x90C
movq %rax, -8(%rbp)
jmp LBB0_37
LBB0_23:
movq $16, -8(%rbp)
jmp LBB0_37
LBB0_24:
movq _RegionNvmGroup2(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB0_37
LBB0_25:
movq $0, -8(%rbp)
jmp LBB0_37
LBB0_26:
movq $0, -8(%rbp)
jmp LBB0_37
LBB0_27:
movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -8(%rbp)
jmp LBB0_37
LBB0_28:
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -8(%rbp)
jmp LBB0_37
LBB0_29:
movq $923100000, -8(%rbp) ## imm = 0x37056360
jmp LBB0_37
LBB0_30:
movb $17, -8(%rbp)
movb $2, -7(%rbp)
movb $0, -6(%rbp)
jmp LBB0_37
LBB0_31:
movq $3, -8(%rbp)
jmp LBB0_37
LBB0_32:
movq $923100000, -8(%rbp) ## imm = 0x37056360
jmp LBB0_37
LBB0_33:
movq $3, -8(%rbp)
jmp LBB0_37
LBB0_34:
movq -16(%rbp), %rax
movsbq 4(%rax), %rcx
leaq _DataratesKR920(%rip), %rax
movzbl (%rax,%rcx), %eax
## kill: def $rax killed $eax
movq %rax, -8(%rbp)
jmp LBB0_37
LBB0_35:
movq -16(%rbp), %rax
movsbq 4(%rax), %rdi
leaq _BandwidthsKR920(%rip), %rsi
callq _RegionCommonGetBandwidth
movq %rax, -8(%rbp)
jmp LBB0_37
LBB0_36:
jmp LBB0_37
LBB0_37:
movq -8(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_3, LBB0_3-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
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
LJTI0_0:
.long L0_0_set_1
.long L0_0_set_2
.long L0_0_set_36
.long L0_0_set_36
.long L0_0_set_36
.long L0_0_set_3
.long L0_0_set_36
.long L0_0_set_5
.long L0_0_set_36
.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
.long L0_0_set_11
.long L0_0_set_12
.long L0_0_set_13
.long L0_0_set_14
.long L0_0_set_15
.long L0_0_set_16
.long L0_0_set_17
.long L0_0_set_18
.long L0_0_set_19
.long L0_0_set_20
.long L0_0_set_21
.long L0_0_set_22
.long L0_0_set_23
.long L0_0_set_24
.long L0_0_set_25
.long L0_0_set_26
.long L0_0_set_27
.long L0_0_set_28
.long L0_0_set_4
.long L0_0_set_36
.long L0_0_set_36
.long L0_0_set_36
.long L0_0_set_36
.long L0_0_set_36
.long L0_0_set_36
.long L0_0_set_36
.long L0_0_set_36
.long L0_0_set_36
.long L0_0_set_36
.long L0_0_set_36
.long L0_0_set_36
.long L0_0_set_36
.long L0_0_set_29
.long L0_0_set_30
.long L0_0_set_31
.long L0_0_set_36
.long L0_0_set_36
.long L0_0_set_32
.long L0_0_set_33
.long L0_0_set_36
.long L0_0_set_34
.long L0_0_set_35
.end_data_region
## -- End function
.globl _RegionKR920SetBandTxDone ## -- Begin function RegionKR920SetBandTxDone
.p2align 4, 0x90
_RegionKR920SetBandTxDone: ## @RegionKR920SetBandTxDone
.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 _RegionNvmGroup1(%rip), %rdi
movq _RegionNvmGroup2(%rip), %rax
movq -8(%rbp), %rcx
movzbl (%rcx), %ecx
## kill: def $rcx killed $ecx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movzbl 17(%rax), %eax
## kill: def $rax killed $eax
imulq $48, %rax, %rax
addq %rax, %rdi
movq -8(%rbp), %rax
movq 16(%rax), %rsi
movq -8(%rbp), %rax
movb 1(%rax), %dl
movq -8(%rbp), %rax
movq 24(%rax), %rcx
andb $1, %dl
movzbl %dl, %edx
movzwl 32(%rax), %r8d
callq _RegionCommonSetBandTxDone
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920InitDefaults ## -- Begin function RegionKR920InitDefaults
.p2align 4, 0x90
_RegionKR920InitDefaults: ## @RegionKR920InitDefaults
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $160, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -72(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -32(%rbp)
movaps %xmm0, -48(%rbp)
movaps %xmm0, -64(%rbp)
movw $1, -64(%rbp)
movq -72(%rbp), %rax
movl 16(%rax), %eax
movl %eax, -148(%rbp) ## 4-byte Spill
testl %eax, %eax
je LBB2_1
jmp LBB2_11
LBB2_11:
movl -148(%rbp), %eax ## 4-byte Reload
subl $1, %eax
je LBB2_5
jmp LBB2_12
LBB2_12:
movl -148(%rbp), %eax ## 4-byte Reload
subl $2, %eax
je LBB2_6
jmp LBB2_7
LBB2_1:
movq -72(%rbp), %rax
cmpq $0, (%rax)
je LBB2_3
## %bb.2:
movq -72(%rbp), %rax
cmpq $0, 8(%rax)
jne LBB2_4
LBB2_3:
jmp LBB2_8
LBB2_4:
movq -72(%rbp), %rax
movq (%rax), %rax
movq %rax, _RegionNvmGroup1(%rip)
movq -72(%rbp), %rax
movq 8(%rax), %rax
movq %rax, _RegionNvmGroup2(%rip)
movq _RegionNvmGroup1(%rip), %rdi
leaq -64(%rbp), %rsi
movl $48, %edx
callq _memcpy1
movq _RegionNvmGroup2(%rip), %rax
movq $922100000, -96(%rbp) ## imm = 0x36F62120
movq $0, -88(%rbp)
movb $80, -80(%rbp)
movb $0, -79(%rbp)
movq -96(%rbp), %rcx
movq %rcx, (%rax)
movq -88(%rbp), %rcx
movq %rcx, 8(%rax)
movq -80(%rbp), %rcx
movq %rcx, 16(%rax)
movq _RegionNvmGroup2(%rip), %rax
movq $922300000, -120(%rbp) ## imm = 0x36F92E60
movq $0, -112(%rbp)
movb $80, -104(%rbp)
movb $0, -103(%rbp)
movq -120(%rbp), %rcx
movq %rcx, 24(%rax)
movq -112(%rbp), %rcx
movq %rcx, 32(%rax)
movq -104(%rbp), %rcx
movq %rcx, 40(%rax)
movq _RegionNvmGroup2(%rip), %rax
movq $922500000, -144(%rbp) ## imm = 0x36FC3BA0
movq $0, -136(%rbp)
movb $80, -128(%rbp)
movb $0, -127(%rbp)
movq -144(%rbp), %rcx
movq %rcx, 48(%rax)
movq -136(%rbp), %rcx
movq %rcx, 56(%rax)
movq -128(%rbp), %rcx
movq %rcx, 64(%rax)
movq _RegionNvmGroup2(%rip), %rax
movw $7, 2316(%rax)
movq _RegionNvmGroup2(%rip), %rdi
addq $2304, %rdi ## imm = 0x900
movq _RegionNvmGroup2(%rip), %rsi
addq $2316, %rsi ## imm = 0x90C
movl $1, %edx
callq _RegionCommonChanMaskCopy
jmp LBB2_8
LBB2_5:
movq _RegionNvmGroup2(%rip), %rax
movq $0, 8(%rax)
movq _RegionNvmGroup2(%rip), %rax
movq $0, 32(%rax)
movq _RegionNvmGroup2(%rip), %rax
movq $0, 56(%rax)
movq _RegionNvmGroup2(%rip), %rdi
addq $2304, %rdi ## imm = 0x900
movq _RegionNvmGroup2(%rip), %rsi
addq $2316, %rsi ## imm = 0x90C
movl $1, %edx
callq _RegionCommonChanMaskCopy
jmp LBB2_8
LBB2_6:
movq _RegionNvmGroup2(%rip), %rax
movzwl 2316(%rax), %edx
movq _RegionNvmGroup2(%rip), %rax
movzwl 2304(%rax), %ecx
orl %edx, %ecx
## kill: def $cx killed $cx killed $ecx
movw %cx, 2304(%rax)
jmp LBB2_8
LBB2_7:
jmp LBB2_8
LBB2_8:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB2_10
## %bb.9:
addq $160, %rsp
popq %rbp
retq
LBB2_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _RegionKR920Verify ## -- Begin function RegionKR920Verify
.p2align 4, 0x90
_RegionKR920Verify: ## @RegionKR920Verify
.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)
movl %esi, -20(%rbp)
movl -20(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -32(%rbp) ## 8-byte Spill
subq $14, %rax
ja LBB3_7
## %bb.9:
movq -32(%rbp), %rax ## 8-byte Reload
leaq LJTI3_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB3_1:
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _VerifyRfFreq
andb $1, %al
movb %al, -1(%rbp)
jmp LBB3_8
LBB3_2:
movq -16(%rbp), %rax
xorl %esi, %esi
movl $5, %edx
movsbl (%rax), %edi
callq _RegionCommonValueInRange
cmpb $0, %al
setne %al
andb $1, %al
movb %al, -1(%rbp)
jmp LBB3_8
LBB3_3:
movq -16(%rbp), %rax
xorl %esi, %esi
movl $5, %edx
movsbl (%rax), %edi
callq _RegionCommonValueInRange
cmpb $0, %al
setne %al
andb $1, %al
movb %al, -1(%rbp)
jmp LBB3_8
LBB3_4:
movq -16(%rbp), %rax
xorl %esi, %esi
movl $5, %edx
movsbl (%rax), %edi
callq _RegionCommonValueInRange
cmpb $0, %al
setne %al
andb $1, %al
movb %al, -1(%rbp)
jmp LBB3_8
LBB3_5:
movq -16(%rbp), %rax
xorl %esi, %esi
movl $7, %edx
movsbl (%rax), %edi
callq _RegionCommonValueInRange
cmpb $0, %al
setne %al
andb $1, %al
movb %al, -1(%rbp)
jmp LBB3_8
LBB3_6:
movb $0, -1(%rbp)
jmp LBB3_8
LBB3_7:
movb $0, -1(%rbp)
LBB3_8:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L3_0_set_1, LBB3_1-LJTI3_0
.set L3_0_set_7, LBB3_7-LJTI3_0
.set L3_0_set_2, LBB3_2-LJTI3_0
.set L3_0_set_3, LBB3_3-LJTI3_0
.set L3_0_set_4, LBB3_4-LJTI3_0
.set L3_0_set_5, LBB3_5-LJTI3_0
.set L3_0_set_6, LBB3_6-LJTI3_0
LJTI3_0:
.long L3_0_set_1
.long L3_0_set_7
.long L3_0_set_7
.long L3_0_set_7
.long L3_0_set_7
.long L3_0_set_2
.long L3_0_set_3
.long L3_0_set_4
.long L3_0_set_7
.long L3_0_set_5
.long L3_0_set_5
.long L3_0_set_7
.long L3_0_set_7
.long L3_0_set_7
.long L3_0_set_6
.end_data_region
## -- End function
.p2align 4, 0x90 ## -- Begin function VerifyRfFreq
_VerifyRfFreq: ## @VerifyRfFreq
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rax
movq %rax, -24(%rbp)
movq _Radio@GOTPCREL(%rip), %rax
movq 64(%rax), %rax
movq -24(%rbp), %rdi
callq *%rax
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB4_2
## %bb.1:
movb $0, -1(%rbp)
jmp LBB4_8
LBB4_2:
cmpq $920900000, -24(%rbp) ## imm = 0x36E3D1A0
jb LBB4_7
## %bb.3:
cmpq $923300000, -24(%rbp) ## imm = 0x370870A0
ja LBB4_7
## %bb.4:
movq -24(%rbp), %rax
subq $920900000, %rax ## imm = 0x36E3D1A0
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movl $200000, %ecx ## imm = 0x30D40
xorl %edx, %edx
## kill: def $rdx killed $edx
divq %rcx
cmpq $0, %rdx
jne LBB4_6
## %bb.5:
movb $1, -1(%rbp)
jmp LBB4_8
LBB4_6:
jmp LBB4_7
LBB4_7:
movb $0, -1(%rbp)
LBB4_8:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920ApplyCFList ## -- Begin function RegionKR920ApplyCFList
.p2align 4, 0x90
_RegionKR920ApplyCFList: ## @RegionKR920ApplyCFList
.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)
movb $80, -16(%rbp)
movq -8(%rbp), %rax
movzbl 8(%rax), %eax
cmpl $16, %eax
je LBB5_2
## %bb.1:
jmp LBB5_14
LBB5_2:
movq -8(%rbp), %rax
movq (%rax), %rax
movzbl 15(%rax), %eax
cmpl $0, %eax
je LBB5_4
## %bb.3:
jmp LBB5_14
LBB5_4:
movb $0, -57(%rbp)
movb $3, -58(%rbp)
LBB5_5: ## =>This Inner Loop Header: Depth=1
movzbl -58(%rbp), %eax
cmpl $16, %eax
jge LBB5_14
## %bb.6: ## in Loop: Header=BB5_5 Depth=1
movzbl -58(%rbp), %eax
cmpl $8, %eax
jge LBB5_8
## %bb.7: ## in Loop: Header=BB5_5 Depth=1
movq -8(%rbp), %rax
movq (%rax), %rax
movzbl -57(%rbp), %ecx
## kill: def $rcx killed $ecx
movzbl (%rax,%rcx), %eax
## kill: def $rax killed $eax
movq %rax, -32(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movzbl -57(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %eax
## kill: def $rax killed $eax
shlq $8, %rax
orq -32(%rbp), %rax
movq %rax, -32(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movzbl -57(%rbp), %ecx
addl $2, %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %eax
## kill: def $rax killed $eax
shlq $16, %rax
orq -32(%rbp), %rax
movq %rax, -32(%rbp)
imulq $100, -32(%rbp), %rax
movq %rax, -32(%rbp)
movq $0, -24(%rbp)
jmp LBB5_9
LBB5_8: ## in Loop: Header=BB5_5 Depth=1
movq $0, -32(%rbp)
movb $0, -16(%rbp)
movq $0, -24(%rbp)
LBB5_9: ## in Loop: Header=BB5_5 Depth=1
cmpq $0, -32(%rbp)
je LBB5_11
## %bb.10: ## in Loop: Header=BB5_5 Depth=1
leaq -32(%rbp), %rax
movq %rax, -48(%rbp)
movb -58(%rbp), %al
movb %al, -40(%rbp)
leaq -48(%rbp), %rdi
callq _RegionKR920ChannelAdd
jmp LBB5_12
LBB5_11: ## in Loop: Header=BB5_5 Depth=1
movb -58(%rbp), %al
movb %al, -56(%rbp)
leaq -56(%rbp), %rdi
callq _RegionKR920ChannelsRemove
LBB5_12: ## in Loop: Header=BB5_5 Depth=1
jmp LBB5_13
LBB5_13: ## in Loop: Header=BB5_5 Depth=1
movzbl -57(%rbp), %eax
addl $3, %eax
## kill: def $al killed $al killed $eax
movb %al, -57(%rbp)
movb -58(%rbp), %al
addb $1, %al
movb %al, -58(%rbp)
jmp LBB5_5
LBB5_14:
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920ChannelAdd ## -- Begin function RegionKR920ChannelAdd
.p2align 4, 0x90
_RegionKR920ChannelAdd: ## @RegionKR920ChannelAdd
.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)
movb $0, -17(%rbp)
movb $0, -18(%rbp)
movq -16(%rbp), %rax
movb 8(%rax), %al
movb %al, -19(%rbp)
movzbl -19(%rbp), %eax
cmpl $3, %eax
jge LBB6_2
## %bb.1:
movl $6, -4(%rbp)
jmp LBB6_22
LBB6_2:
movzbl -19(%rbp), %eax
cmpl $16, %eax
jl LBB6_4
## %bb.3:
movl $3, -4(%rbp)
jmp LBB6_22
LBB6_4:
movq -16(%rbp), %rax
movq (%rax), %rax
movb 16(%rax), %al
shlb $4, %al
sarb $4, %al
xorl %esi, %esi
movl $5, %edx
movsbl %al, %edi
callq _RegionCommonValueInRange
movzbl %al, %eax
cmpl $0, %eax
jne LBB6_6
## %bb.5:
movb $1, -17(%rbp)
LBB6_6:
movq -16(%rbp), %rax
movq (%rax), %rax
movb 16(%rax), %al
sarb $4, %al
xorl %esi, %esi
movl $5, %edx
movsbl %al, %edi
callq _RegionCommonValueInRange
movzbl %al, %eax
cmpl $0, %eax
jne LBB6_8
## %bb.7:
movb $1, -17(%rbp)
LBB6_8:
movq -16(%rbp), %rax
movq (%rax), %rax
movb 16(%rax), %al
shlb $4, %al
sarb $4, %al
movsbl %al, %eax
movq -16(%rbp), %rcx
movq (%rcx), %rcx
movb 16(%rcx), %cl
sarb $4, %cl
movsbl %cl, %ecx
cmpl %ecx, %eax
jle LBB6_10
## %bb.9:
movb $1, -17(%rbp)
LBB6_10:
movb -18(%rbp), %al
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB6_14
## %bb.11:
movq -16(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq _VerifyRfFreq
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB6_13
## %bb.12:
movb $1, -18(%rbp)
LBB6_13:
jmp LBB6_14
LBB6_14:
movb -17(%rbp), %al
andb $1, %al
movzbl %al, %eax
cmpl $1, %eax
jne LBB6_17
## %bb.15:
movb -18(%rbp), %al
andb $1, %al
movzbl %al, %eax
cmpl $1, %eax
jne LBB6_17
## %bb.16:
movl $6, -4(%rbp)
jmp LBB6_22
LBB6_17:
movb -17(%rbp), %al
andb $1, %al
movzbl %al, %eax
cmpl $1, %eax
jne LBB6_19
## %bb.18:
movl $5, -4(%rbp)
jmp LBB6_22
LBB6_19:
movb -18(%rbp), %al
andb $1, %al
movzbl %al, %eax
cmpl $1, %eax
jne LBB6_21
## %bb.20:
movl $4, -4(%rbp)
jmp LBB6_22
LBB6_21:
movq _RegionNvmGroup2(%rip), %rdi
movzbl -19(%rbp), %eax
## kill: def $rax killed $eax
imulq $24, %rax, %rax
addq %rax, %rdi
movq -16(%rbp), %rax
movq (%rax), %rsi
movl $24, %edx
callq _memcpy1
movq _RegionNvmGroup2(%rip), %rax
movzbl -19(%rbp), %ecx
## kill: def $rcx killed $ecx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movb $0, 17(%rax)
movzbl -19(%rbp), %ecx
movl $1, %edx
## kill: def $cl killed $ecx
shll %cl, %edx
movq _RegionNvmGroup2(%rip), %rax
movzwl 2304(%rax), %ecx
orl %edx, %ecx
## kill: def $cx killed $cx killed $ecx
movw %cx, 2304(%rax)
movl $0, -4(%rbp)
LBB6_22:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920ChannelsRemove ## -- Begin function RegionKR920ChannelsRemove
.p2align 4, 0x90
_RegionKR920ChannelsRemove: ## @RegionKR920ChannelsRemove
.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 -16(%rbp), %rax
movb (%rax), %al
movb %al, -17(%rbp)
movzbl -17(%rbp), %eax
cmpl $3, %eax
jge LBB7_2
## %bb.1:
movb $0, -1(%rbp)
jmp LBB7_3
LBB7_2:
movq _RegionNvmGroup2(%rip), %rax
movzbl -17(%rbp), %ecx
## kill: def $rcx killed $ecx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq %rax, -56(%rbp) ## 8-byte Spill
leaq -48(%rbp), %rdi
xorl %esi, %esi
movl $24, %edx
callq _memset
movq -56(%rbp), %rax ## 8-byte Reload
movq -48(%rbp), %rcx
movq %rcx, (%rax)
movq -40(%rbp), %rcx
movq %rcx, 8(%rax)
movq -32(%rbp), %rcx
movq %rcx, 16(%rax)
movq _RegionNvmGroup2(%rip), %rdi
addq $2304, %rdi ## imm = 0x900
movl $16, %edx
movzbl -17(%rbp), %esi
callq _RegionCommonChanDisable
andb $1, %al
movb %al, -1(%rbp)
LBB7_3:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920ChanMaskSet ## -- Begin function RegionKR920ChanMaskSet
.p2align 4, 0x90
_RegionKR920ChanMaskSet: ## @RegionKR920ChanMaskSet
.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
movl 8(%rax), %eax
movl %eax, -20(%rbp) ## 4-byte Spill
testl %eax, %eax
je LBB8_1
jmp LBB8_6
LBB8_6:
movl -20(%rbp), %eax ## 4-byte Reload
subl $1, %eax
je LBB8_2
jmp LBB8_3
LBB8_1:
movq _RegionNvmGroup2(%rip), %rdi
addq $2304, %rdi ## imm = 0x900
movq -16(%rbp), %rax
movq (%rax), %rsi
movl $1, %edx
callq _RegionCommonChanMaskCopy
jmp LBB8_4
LBB8_2:
movq _RegionNvmGroup2(%rip), %rdi
addq $2316, %rdi ## imm = 0x90C
movq -16(%rbp), %rax
movq (%rax), %rsi
movl $1, %edx
callq _RegionCommonChanMaskCopy
jmp LBB8_4
LBB8_3:
movb $0, -1(%rbp)
jmp LBB8_5
LBB8_4:
movb $1, -1(%rbp)
LBB8_5:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920ComputeRxWindowParameters ## -- Begin function RegionKR920ComputeRxWindowParameters
.p2align 4, 0x90
_RegionKR920ComputeRxWindowParameters: ## @RegionKR920ComputeRxWindowParameters
.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
movb %sil, %al
movb %dil, %sil
movb %sil, -1(%rbp)
movb %al, -2(%rbp)
movq %rdx, -16(%rbp)
movq %rcx, -24(%rbp)
movq $0, -32(%rbp)
movsbl -1(%rbp), %eax
cmpl $5, %eax
jge LBB9_2
## %bb.1:
movsbl -1(%rbp), %eax
movl %eax, -36(%rbp) ## 4-byte Spill
jmp LBB9_3
LBB9_2:
movl $5, %eax
movl %eax, -36(%rbp) ## 4-byte Spill
jmp LBB9_3
LBB9_3:
movl -36(%rbp), %eax ## 4-byte Reload
movb %al, %cl
movq -24(%rbp), %rax
movb %cl, 1(%rax)
movq -24(%rbp), %rax
movsbq 1(%rax), %rdi
leaq _BandwidthsKR920(%rip), %rsi
callq _RegionCommonGetBandwidth
movb %al, %cl
movq -24(%rbp), %rax
movb %cl, 2(%rax)
movq -24(%rbp), %rax
movsbq 1(%rax), %rcx
leaq _DataratesKR920(%rip), %rax
movb (%rax,%rcx), %al
movq -24(%rbp), %rcx
movsbq 1(%rcx), %rdx
leaq _BandwidthsKR920(%rip), %rcx
movq (%rcx,%rdx,8), %rsi
movzbl %al, %edi
callq _RegionCommonComputeSymbolTimeLoRa
movq %rax, -32(%rbp)
movq -32(%rbp), %rax
movq %rax, -56(%rbp) ## 8-byte Spill
movb -2(%rbp), %al
movb %al, -37(%rbp) ## 1-byte Spill
movq -16(%rbp), %rax
movq %rax, -48(%rbp) ## 8-byte Spill
movq _Radio@GOTPCREL(%rip), %rax
callq *184(%rax)
movq -56(%rbp), %rdi ## 8-byte Reload
movq -48(%rbp), %rdx ## 8-byte Reload
movq %rax, %rcx
movb -37(%rbp), %al ## 1-byte Reload
movq -24(%rbp), %r8
addq $16, %r8
movq -24(%rbp), %r9
addq $24, %r9
movzbl %al, %esi
callq _RegionCommonComputeRxWindowParameters
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920RxConfig ## -- Begin function RegionKR920RxConfig
.p2align 4, 0x90
_RegionKR920RxConfig: ## @RegionKR920RxConfig
.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 %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -16(%rbp), %rax
movb 1(%rax), %al
movb %al, -25(%rbp)
movb $0, -26(%rbp)
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -40(%rbp)
movq _Radio@GOTPCREL(%rip), %rax
callq *8(%rax)
cmpl $0, %eax
je LBB10_2
## %bb.1:
movb $0, -1(%rbp)
jmp LBB10_7
LBB10_2:
movq -16(%rbp), %rax
cmpl $0, 36(%rax)
jne LBB10_6
## %bb.3:
movq _RegionNvmGroup2(%rip), %rax
movq -16(%rbp), %rcx
movzbl (%rcx), %ecx
## kill: def $rcx killed $ecx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -40(%rbp)
movq _RegionNvmGroup2(%rip), %rax
movq -16(%rbp), %rcx
movzbl (%rcx), %ecx
## kill: def $rcx killed $ecx
imulq $24, %rcx, %rcx
addq %rcx, %rax
cmpq $0, 8(%rax)
je LBB10_5
## %bb.4:
movq _RegionNvmGroup2(%rip), %rax
movq -16(%rbp), %rcx
movzbl (%rcx), %ecx
## kill: def $rcx killed $ecx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq 8(%rax), %rax
movq %rax, -40(%rbp)
LBB10_5:
jmp LBB10_6
LBB10_6:
movsbq -25(%rbp), %rcx
leaq _DataratesKR920(%rip), %rax
movb (%rax,%rcx), %al
movb %al, -26(%rbp)
movq _Radio@GOTPCREL(%rip), %rax
movq 24(%rax), %rax
movq -40(%rbp), %rdi
callq *%rax
movq _Radio@GOTPCREL(%rip), %rax
movq 48(%rax), %rax
movq -16(%rbp), %rcx
movzbl 2(%rcx), %ecx
movl %ecx, %esi
movsbq -26(%rbp), %rdx
movq -16(%rbp), %rcx
movq 16(%rcx), %rcx
movw %cx, %r11w
movq -16(%rbp), %rcx
movb 33(%rcx), %r10b
movl $1, %ecx
xorl %edi, %edi
movl %edi, %r8d
movl $8, %r9d
xorl %edi, %edi
andb $1, %r10b
movl %ecx, %edi
movzwl %r11w, %r11d
movl %r11d, (%rsp)
movl $0, 8(%rsp)
movl $0, 16(%rsp)
movl $0, 24(%rsp)
movl $0, 32(%rsp)
movl $0, 40(%rsp)
movl $1, 48(%rsp)
movzbl %r10b, %r10d
movl %r10d, 56(%rsp)
callq *%rax
movq _Radio@GOTPCREL(%rip), %rax
movq 168(%rax), %rax
movsbq -25(%rbp), %rdx
leaq _MaxPayloadOfDatarateKR920(%rip), %rcx
movzbl (%rcx,%rdx), %ecx
addl $13, %ecx
## kill: def $cl killed $cl killed $ecx
movl $1, %edi
movzbl %cl, %esi
callq *%rax
movb -25(%rbp), %cl
movq -24(%rbp), %rax
movb %cl, (%rax)
movb $1, -1(%rbp)
LBB10_7:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
addq $112, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920TxConfig ## -- Begin function RegionKR920TxConfig
.p2align 4, 0x90
_RegionKR920TxConfig: ## @RegionKR920TxConfig
.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 %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -8(%rbp), %rax
movsbq 1(%rax), %rax
leaq _DataratesKR920(%rip), %rcx
movb (%rax,%rcx), %al
movb %al, -25(%rbp)
movq -8(%rbp), %rdx
movsbl 2(%rdx), %edi
movq _RegionNvmGroup1(%rip), %rax
movq _RegionNvmGroup2(%rip), %rcx
movzbl (%rdx), %edx
## kill: def $rdx killed $edx
leaq (%rdx,%rdx,2), %rdx
movzbl 17(%rcx,%rdx,8), %ecx
## kill: def $rcx killed $ecx
leaq (%rcx,%rcx,2), %rcx
shlq $4, %rcx
movsbl 2(%rax,%rcx), %esi
callq _RegionCommonLimitTxPower
movb %al, -26(%rbp)
movq -8(%rbp), %rax
movsbq 1(%rax), %rdi
leaq _BandwidthsKR920(%rip), %rsi
callq _RegionCommonGetBandwidth
movq %rax, -40(%rbp)
movq _RegionNvmGroup2(%rip), %rax
movq -8(%rbp), %rcx
movzbl (%rcx), %ecx
## kill: def $rcx killed $ecx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,8), %rdi
callq _GetMaxEIRP
## kill: def $cl killed $al
movsbl %al, %eax
cvtsi2ss %eax, %xmm0
movss %xmm0, -44(%rbp)
movb $0, -45(%rbp)
movq -8(%rbp), %rax
movss 4(%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -44(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
jbe LBB11_2
## %bb.1:
movq -8(%rbp), %rax
movss 4(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -52(%rbp) ## 4-byte Spill
jmp LBB11_3
LBB11_2:
movss -44(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -52(%rbp) ## 4-byte Spill
LBB11_3:
movss -52(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -44(%rbp)
movb -26(%rbp), %al
movss -44(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -8(%rbp), %rcx
movss 8(%rcx), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movsbl %al, %edi
callq _RegionCommonComputeTxPower
movb %al, -45(%rbp)
movq _Radio@GOTPCREL(%rip), %rax
movq 24(%rax), %rax
movq _RegionNvmGroup2(%rip), %rcx
movq -8(%rbp), %rdx
movzbl (%rdx), %edx
## kill: def $rdx killed $edx
imulq $24, %rdx, %rdx
addq %rdx, %rcx
movq (%rcx), %rdi
callq *%rax
movq _Radio@GOTPCREL(%rip), %rax
movq 56(%rax), %rax
movb -45(%rbp), %sil
movq -40(%rbp), %rcx
movsbq -25(%rbp), %r8
movl $1, %r9d
xorl %edx, %edx
## kill: def $rdx killed $edx
xorl %edi, %edi
movl %r9d, %edi
movsbl %sil, %esi
movl $8, (%rsp)
movl $0, 8(%rsp)
movl $1, 16(%rsp)
movl $0, 24(%rsp)
movl $0, 32(%rsp)
movl $0, 40(%rsp)
movq $4000, 48(%rsp) ## imm = 0xFA0
callq *%rax
movq _Radio@GOTPCREL(%rip), %rax
movq 168(%rax), %rax
movq -8(%rbp), %rcx
movw 12(%rcx), %cx
## kill: def $cl killed $cl killed $cx
movl $1, %edi
movzbl %cl, %esi
callq *%rax
movq -8(%rbp), %rax
movb 1(%rax), %cl
movq -8(%rbp), %rax
movsbl %cl, %edi
movzwl 12(%rax), %esi
callq _GetTimeOnAir
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
movb -26(%rbp), %cl
movq -16(%rbp), %rax
movb %cl, (%rax)
movb $1, %al
andb $1, %al
movzbl %al, %eax
addq $112, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function GetMaxEIRP
_GetMaxEIRP: ## @GetMaxEIRP
.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 $922100000, -16(%rbp) ## imm = 0x36F62120
jb LBB12_2
## %bb.1:
movb $14, -1(%rbp)
jmp LBB12_3
LBB12_2:
movb $10, -1(%rbp)
LBB12_3:
movsbl -1(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function GetTimeOnAir
_GetTimeOnAir: ## @GetTimeOnAir
.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
movw %si, %ax
movb %dil, %cl
movb %cl, -1(%rbp)
movw %ax, -4(%rbp)
movsbq -1(%rbp), %rcx
leaq _DataratesKR920(%rip), %rax
movb (%rax,%rcx), %al
movb %al, -5(%rbp)
movsbq -1(%rbp), %rdi
leaq _BandwidthsKR920(%rip), %rsi
callq _RegionCommonGetBandwidth
movq %rax, -16(%rbp)
movq _Radio@GOTPCREL(%rip), %rax
movq 72(%rax), %rax
movq -16(%rbp), %rsi
movsbq -5(%rbp), %rdx
movw -4(%rbp), %cx
movb %cl, %r10b
movl $1, %ecx
movl $8, %r8d
xorl %r9d, %r9d
movl %ecx, %edi
movzbl %r10b, %r10d
movl %r10d, (%rsp)
movl $1, 8(%rsp)
callq *%rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920LinkAdrReq ## -- Begin function RegionKR920LinkAdrReq
.p2align 4, 0x90
_RegionKR920LinkAdrReq: ## @RegionKR920LinkAdrReq
.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 %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movb $7, -41(%rbp)
leaq -48(%rbp), %rdi
xorl %esi, %esi
movl $6, %edx
callq _memset
movb $0, -49(%rbp)
movb $0, -50(%rbp)
movw $0, -52(%rbp)
LBB14_1: ## =>This Loop Header: Depth=1
## Child Loop BB14_12 Depth 2
movzbl -50(%rbp), %eax
movq -8(%rbp), %rcx
movzbl 16(%rcx), %ecx
cmpl %ecx, %eax
jge LBB14_26
## %bb.2: ## in Loop: Header=BB14_1 Depth=1
movq -8(%rbp), %rax
movq 8(%rax), %rdi
movzbl -50(%rbp), %eax
## kill: def $rax killed $eax
addq %rax, %rdi
leaq -48(%rbp), %rsi
callq _RegionCommonParseLinkAdrReq
movb %al, -49(%rbp)
movzbl -49(%rbp), %eax
cmpl $0, %eax
jne LBB14_4
## %bb.3:
jmp LBB14_26
LBB14_4: ## in Loop: Header=BB14_1 Depth=1
movzbl -49(%rbp), %ecx
movzbl -50(%rbp), %eax
addl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -50(%rbp)
movb $7, -41(%rbp)
movw -44(%rbp), %ax
movw %ax, -52(%rbp)
movzbl -45(%rbp), %eax
cmpl $0, %eax
jne LBB14_7
## %bb.5: ## in Loop: Header=BB14_1 Depth=1
movzwl -52(%rbp), %eax
cmpl $0, %eax
jne LBB14_7
## %bb.6: ## in Loop: Header=BB14_1 Depth=1
movzbl -41(%rbp), %eax
andl $254, %eax
## kill: def $al killed $al killed $eax
movb %al, -41(%rbp)
jmp LBB14_25
LBB14_7: ## in Loop: Header=BB14_1 Depth=1
movzbl -45(%rbp), %eax
cmpl $1, %eax
jl LBB14_9
## %bb.8: ## in Loop: Header=BB14_1 Depth=1
movzbl -45(%rbp), %eax
cmpl $5, %eax
jle LBB14_10
LBB14_9: ## in Loop: Header=BB14_1 Depth=1
movzbl -45(%rbp), %eax
cmpl $7, %eax
jl LBB14_11
LBB14_10: ## in Loop: Header=BB14_1 Depth=1
movzbl -41(%rbp), %eax
andl $254, %eax
## kill: def $al killed $al killed $eax
movb %al, -41(%rbp)
jmp LBB14_24
LBB14_11: ## in Loop: Header=BB14_1 Depth=1
movb $0, -129(%rbp)
LBB14_12: ## Parent Loop BB14_1 Depth=1
## => This Inner Loop Header: Depth=2
movzbl -129(%rbp), %eax
cmpl $16, %eax
jge LBB14_23
## %bb.13: ## in Loop: Header=BB14_12 Depth=2
movzbl -45(%rbp), %eax
cmpl $6, %eax
jne LBB14_17
## %bb.14: ## in Loop: Header=BB14_12 Depth=2
movq _RegionNvmGroup2(%rip), %rax
movzbl -129(%rbp), %ecx
## kill: def $rcx killed $ecx
imulq $24, %rcx, %rcx
addq %rcx, %rax
cmpq $0, (%rax)
je LBB14_16
## %bb.15: ## in Loop: Header=BB14_12 Depth=2
movzbl -129(%rbp), %ecx
movl $1, %eax
## kill: def $cl killed $ecx
shll %cl, %eax
movl %eax, %ecx
movzwl -52(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -52(%rbp)
LBB14_16: ## in Loop: Header=BB14_12 Depth=2
jmp LBB14_21
LBB14_17: ## in Loop: Header=BB14_12 Depth=2
movzwl -52(%rbp), %eax
movzbl -129(%rbp), %ecx
movl $1, %edx
## kill: def $cl killed $ecx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0, %eax
je LBB14_20
## %bb.18: ## in Loop: Header=BB14_12 Depth=2
movq _RegionNvmGroup2(%rip), %rax
movzbl -129(%rbp), %ecx
## kill: def $rcx killed $ecx
imulq $24, %rcx, %rcx
addq %rcx, %rax
cmpq $0, (%rax)
jne LBB14_20
## %bb.19: ## in Loop: Header=BB14_12 Depth=2
movzbl -41(%rbp), %eax
andl $254, %eax
## kill: def $al killed $al killed $eax
movb %al, -41(%rbp)
LBB14_20: ## in Loop: Header=BB14_12 Depth=2
jmp LBB14_21
LBB14_21: ## in Loop: Header=BB14_12 Depth=2
jmp LBB14_22
LBB14_22: ## in Loop: Header=BB14_12 Depth=2
movb -129(%rbp), %al
addb $1, %al
movb %al, -129(%rbp)
jmp LBB14_12
LBB14_23: ## in Loop: Header=BB14_1 Depth=1
jmp LBB14_24
LBB14_24: ## in Loop: Header=BB14_1 Depth=1
jmp LBB14_25
LBB14_25: ## in Loop: Header=BB14_1 Depth=1
jmp LBB14_1
LBB14_26:
movl $2, -64(%rbp)
movq -8(%rbp), %rax
movb 17(%rax), %al
movb %al, -59(%rbp)
leaq -64(%rbp), %rdi
callq _RegionKR920GetPhyParam
movq %rax, -144(%rbp)
movq -144(%rbp), %rax
movq %rax, -72(%rbp)
movb -41(%rbp), %al
movb %al, -120(%rbp)
movq -8(%rbp), %rax
movb 18(%rax), %al
andb $1, %al
movb %al, -119(%rbp)
movb -47(%rbp), %al
movb %al, -118(%rbp)
movb -46(%rbp), %al
movb %al, -117(%rbp)
movb -48(%rbp), %al
movb %al, -116(%rbp)
movq -8(%rbp), %rax
movb 19(%rax), %al
movb %al, -115(%rbp)
movq -8(%rbp), %rax
movb 20(%rax), %al
movb %al, -114(%rbp)
movq -8(%rbp), %rax
movb 21(%rax), %al
movb %al, -113(%rbp)
movb $16, -112(%rbp)
leaq -52(%rbp), %rax
movq %rax, -104(%rbp)
movq -72(%rbp), %rax
## kill: def $al killed $al killed $rax
movb %al, -96(%rbp)
movb $5, -95(%rbp)
movq _RegionNvmGroup2(%rip), %rax
movq %rax, -88(%rbp)
movb $7, -80(%rbp)
movb $0, -79(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -128(%rbp)
leaq -48(%rbp), %rsi
addq $1, %rsi
leaq -48(%rbp), %rdx
addq $2, %rdx
leaq -48(%rbp), %rcx
leaq -128(%rbp), %rdi
callq _RegionCommonLinkAdrReqVerifyParams
movb %al, -41(%rbp)
movzbl -41(%rbp), %eax
cmpl $7, %eax
jne LBB14_28
## %bb.27:
movq _RegionNvmGroup2(%rip), %rdi
addq $2304, %rdi ## imm = 0x900
xorl %esi, %esi
movl $12, %edx
callq _memset1
movw -52(%rbp), %cx
movq _RegionNvmGroup2(%rip), %rax
movw %cx, 2304(%rax)
LBB14_28:
movb -47(%rbp), %cl
movq -16(%rbp), %rax
movb %cl, (%rax)
movb -46(%rbp), %cl
movq -24(%rbp), %rax
movb %cl, (%rax)
movb -48(%rbp), %cl
movq -32(%rbp), %rax
movb %cl, (%rax)
movb -50(%rbp), %cl
movq -40(%rbp), %rax
movb %cl, (%rax)
movzbl -41(%rbp), %eax
addq $144, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920RxParamSetupReq ## -- Begin function RegionKR920RxParamSetupReq
.p2align 4, 0x90
_RegionKR920RxParamSetupReq: ## @RegionKR920RxParamSetupReq
.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)
movb $7, -9(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rdi
callq _VerifyRfFreq
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB15_2
## %bb.1:
movzbl -9(%rbp), %eax
andl $254, %eax
## kill: def $al killed $al killed $eax
movb %al, -9(%rbp)
LBB15_2:
movq -8(%rbp), %rax
xorl %esi, %esi
movl $5, %edx
movsbl (%rax), %edi
callq _RegionCommonValueInRange
movzbl %al, %eax
cmpl $0, %eax
jne LBB15_4
## %bb.3:
movzbl -9(%rbp), %eax
andl $253, %eax
## kill: def $al killed $al killed $eax
movb %al, -9(%rbp)
LBB15_4:
movq -8(%rbp), %rax
xorl %esi, %esi
movl $5, %edx
movsbl 1(%rax), %edi
callq _RegionCommonValueInRange
movzbl %al, %eax
cmpl $0, %eax
jne LBB15_6
## %bb.5:
movzbl -9(%rbp), %eax
andl $251, %eax
## kill: def $al killed $al killed $eax
movb %al, -9(%rbp)
LBB15_6:
movzbl -9(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920NewChannelReq ## -- Begin function RegionKR920NewChannelReq
.p2align 4, 0x90
_RegionKR920NewChannelReq: ## @RegionKR920NewChannelReq
.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)
movb $3, -9(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
cmpq $0, (%rax)
jne LBB16_4
## %bb.1:
movq -8(%rbp), %rax
movb 8(%rax), %al
movb %al, -40(%rbp)
leaq -40(%rbp), %rdi
callq _RegionKR920ChannelsRemove
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB16_3
## %bb.2:
movzbl -9(%rbp), %eax
andl $252, %eax
## kill: def $al killed $al killed $eax
movb %al, -9(%rbp)
LBB16_3:
jmp LBB16_11
LBB16_4:
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
movq -8(%rbp), %rax
movb 8(%rax), %al
movb %al, -24(%rbp)
leaq -32(%rbp), %rdi
callq _RegionKR920ChannelAdd
movl %eax, %ecx
## kill: def $rcx killed $ecx
movq %rcx, -48(%rbp) ## 8-byte Spill
subl $6, %eax
ja LBB16_9
## %bb.12:
movq -48(%rbp), %rax ## 8-byte Reload
leaq LJTI16_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB16_5:
jmp LBB16_10
LBB16_6:
movzbl -9(%rbp), %eax
andl $254, %eax
## kill: def $al killed $al killed $eax
movb %al, -9(%rbp)
jmp LBB16_10
LBB16_7:
movzbl -9(%rbp), %eax
andl $253, %eax
## kill: def $al killed $al killed $eax
movb %al, -9(%rbp)
jmp LBB16_10
LBB16_8:
movzbl -9(%rbp), %eax
andl $252, %eax
## kill: def $al killed $al killed $eax
movb %al, -9(%rbp)
jmp LBB16_10
LBB16_9:
movzbl -9(%rbp), %eax
andl $252, %eax
## kill: def $al killed $al killed $eax
movb %al, -9(%rbp)
LBB16_10:
jmp LBB16_11
LBB16_11:
movsbl -9(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L16_0_set_5, LBB16_5-LJTI16_0
.set L16_0_set_9, LBB16_9-LJTI16_0
.set L16_0_set_6, LBB16_6-LJTI16_0
.set L16_0_set_7, LBB16_7-LJTI16_0
.set L16_0_set_8, LBB16_8-LJTI16_0
LJTI16_0:
.long L16_0_set_5
.long L16_0_set_9
.long L16_0_set_9
.long L16_0_set_9
.long L16_0_set_6
.long L16_0_set_7
.long L16_0_set_8
.end_data_region
## -- End function
.globl _RegionKR920TxParamSetupReq ## -- Begin function RegionKR920TxParamSetupReq
.p2align 4, 0x90
_RegionKR920TxParamSetupReq: ## @RegionKR920TxParamSetupReq
.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 $255, %al
movsbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920DlChannelReq ## -- Begin function RegionKR920DlChannelReq
.p2align 4, 0x90
_RegionKR920DlChannelReq: ## @RegionKR920DlChannelReq
.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)
movb $3, -9(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rdi
callq _VerifyRfFreq
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB18_2
## %bb.1:
movzbl -9(%rbp), %eax
andl $254, %eax
## kill: def $al killed $al killed $eax
movb %al, -9(%rbp)
LBB18_2:
movq _RegionNvmGroup2(%rip), %rax
movq -8(%rbp), %rcx
movzbl (%rcx), %ecx
## kill: def $rcx killed $ecx
imulq $24, %rcx, %rcx
addq %rcx, %rax
cmpq $0, (%rax)
jne LBB18_4
## %bb.3:
movzbl -9(%rbp), %eax
andl $253, %eax
## kill: def $al killed $al killed $eax
movb %al, -9(%rbp)
LBB18_4:
movzbl -9(%rbp), %eax
cmpl $3, %eax
jne LBB18_6
## %bb.5:
movq -8(%rbp), %rax
movq 8(%rax), %rcx
movq _RegionNvmGroup2(%rip), %rax
movq -8(%rbp), %rdx
movzbl (%rdx), %edx
## kill: def $rdx killed $edx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 8(%rax)
LBB18_6:
movsbl -9(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920AlternateDr ## -- Begin function RegionKR920AlternateDr
.p2align 4, 0x90
_RegionKR920AlternateDr: ## @RegionKR920AlternateDr
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movb %dil, %al
movb %al, -1(%rbp)
movl %esi, -8(%rbp)
movsbl -1(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920NextChannel ## -- Begin function RegionKR920NextChannel
.p2align 4, 0x90
_RegionKR920NextChannel: ## @RegionKR920NextChannel
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $208, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -48(%rbp)
movq %rsi, -56(%rbp)
movq %rdx, -64(%rbp)
movq %rcx, -72(%rbp)
movb $0, -73(%rbp)
movb $0, -74(%rbp)
movb $0, -75(%rbp)
leaq -32(%rbp), %rdi
xorl %esi, %esi
movl $16, %edx
callq _memset
movl $12, -196(%rbp)
movw $7, -198(%rbp)
movq _RegionNvmGroup2(%rip), %rdi
addq $2304, %rdi ## imm = 0x900
xorl %esi, %esi
movl $1, %edx
callq _RegionCommonCountChannels
movzbl %al, %eax
cmpl $0, %eax
jne LBB20_2
## %bb.1:
movq _RegionNvmGroup2(%rip), %rax
movzwl 2304(%rax), %ecx
orl $7, %ecx
## kill: def $cx killed $cx killed $ecx
movw %cx, 2304(%rax)
LBB20_2:
movq -48(%rbp), %rax
movb 17(%rax), %al
andb $1, %al
movb %al, -192(%rbp)
movq -48(%rbp), %rax
movb 16(%rax), %al
movb %al, -191(%rbp)
movq _RegionNvmGroup2(%rip), %rax
addq $2304, %rax ## imm = 0x900
movq %rax, -184(%rbp)
movq _RegionNvmGroup2(%rip), %rax
movq %rax, -176(%rbp)
movq _RegionNvmGroup1(%rip), %rax
movq %rax, -168(%rbp)
movw $16, -160(%rbp)
leaq -198(%rbp), %rax
movq %rax, -152(%rbp)
movq -48(%rbp), %rax
movq (%rax), %rax
movq %rax, -144(%rbp)
movq -48(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -136(%rbp)
movq -48(%rbp), %rax
movb 18(%rax), %al
andb $1, %al
movb %al, -128(%rbp)
movb $1, -127(%rbp)
movq -48(%rbp), %rax
movq 24(%rax), %rcx
movq %rcx, -120(%rbp)
movq 32(%rax), %rax
movq %rax, -112(%rbp)
movq -48(%rbp), %rax
movb 40(%rax), %al
andb $1, %al
movb %al, -104(%rbp)
movq -48(%rbp), %rax
movb 16(%rax), %cl
movq -48(%rbp), %rax
movsbl %cl, %edi
movzwl 42(%rax), %esi
callq _GetTimeOnAir
movq %rax, -96(%rbp)
leaq -192(%rbp), %rax
movq %rax, -88(%rbp)
movq -72(%rbp), %rsi
leaq -32(%rbp), %rdx
movq -64(%rbp), %r9
leaq -144(%rbp), %rdi
leaq -74(%rbp), %rcx
leaq -75(%rbp), %r8
callq _RegionCommonIdentifyChannels
movl %eax, -196(%rbp)
cmpl $0, -196(%rbp)
jne LBB20_10
## %bb.3:
movb $0, -199(%rbp)
movzbl -74(%rbp), %eax
subl $1, %eax
movslq %eax, %rsi
xorl %eax, %eax
movl %eax, %edi
callq _randr
## kill: def $al killed $al killed $rax
movb %al, -200(%rbp)
LBB20_4: ## =>This Inner Loop Header: Depth=1
movzbl -199(%rbp), %eax
cmpl $16, %eax
jge LBB20_9
## %bb.5: ## in Loop: Header=BB20_4 Depth=1
movzbl -200(%rbp), %eax
## kill: def $rax killed $eax
movb -32(%rbp,%rax), %al
movb %al, -73(%rbp)
movzbl -200(%rbp), %eax
addl $1, %eax
movzbl -74(%rbp), %ecx
cltd
idivl %ecx
movb %dl, %al
movb %al, -200(%rbp)
movq _Radio@GOTPCREL(%rip), %rax
movq 32(%rax), %rax
movq _RegionNvmGroup2(%rip), %rcx
movzbl -73(%rbp), %edx
## kill: def $rdx killed $edx
imulq $24, %rdx, %rdx
addq %rdx, %rcx
movq (%rcx), %rdi
movl $200000, %esi ## imm = 0x30D40
movl $4294967231, %edx ## imm = 0xFFFFFFBF
movl $6, %ecx
callq *%rax
andb $1, %al
movzbl %al, %eax
cmpl $1, %eax
jne LBB20_7
## %bb.6:
movb -73(%rbp), %cl
movq -56(%rbp), %rax
movb %cl, (%rax)
movl $0, -36(%rbp)
jmp LBB20_14
LBB20_7: ## in Loop: Header=BB20_4 Depth=1
jmp LBB20_8
LBB20_8: ## in Loop: Header=BB20_4 Depth=1
movb -199(%rbp), %al
addb $1, %al
movb %al, -199(%rbp)
jmp LBB20_4
LBB20_9:
movl $13, -196(%rbp)
jmp LBB20_13
LBB20_10:
cmpl $12, -196(%rbp)
jne LBB20_12
## %bb.11:
movq _RegionNvmGroup2(%rip), %rax
movzwl 2304(%rax), %ecx
orl $7, %ecx
## kill: def $cx killed $cx killed $ecx
movw %cx, 2304(%rax)
LBB20_12:
jmp LBB20_13
LBB20_13:
movl -196(%rbp), %eax
movl %eax, -36(%rbp)
LBB20_14:
movl -36(%rbp), %eax
movl %eax, -204(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB20_16
## %bb.15:
movl -204(%rbp), %eax ## 4-byte Reload
addq $208, %rsp
popq %rbp
retq
LBB20_16:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _RegionKR920SetContinuousWave ## -- Begin function RegionKR920SetContinuousWave
.p2align 4, 0x90
_RegionKR920SetContinuousWave: ## @RegionKR920SetContinuousWave
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdx
movsbl 2(%rdx), %edi
movq _RegionNvmGroup1(%rip), %rax
movq _RegionNvmGroup2(%rip), %rcx
movzbl (%rdx), %edx
## kill: def $rdx killed $edx
leaq (%rdx,%rdx,2), %rdx
movzbl 17(%rcx,%rdx,8), %ecx
## kill: def $rcx killed $ecx
leaq (%rcx,%rcx,2), %rcx
shlq $4, %rcx
movsbl 2(%rax,%rcx), %esi
callq _RegionCommonLimitTxPower
movb %al, -9(%rbp)
movq _RegionNvmGroup2(%rip), %rax
movq -8(%rbp), %rcx
movzbl (%rcx), %ecx
## kill: def $rcx killed $ecx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,8), %rdi
callq _GetMaxEIRP
## kill: def $cl killed $al
movsbl %al, %eax
cvtsi2ss %eax, %xmm0
movss %xmm0, -16(%rbp)
movb $0, -17(%rbp)
movq _RegionNvmGroup2(%rip), %rax
movq -8(%rbp), %rcx
movzbl (%rcx), %ecx
## kill: def $rcx killed $ecx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
movq -8(%rbp), %rax
movss 4(%rax), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
jbe LBB21_2
## %bb.1:
movq -8(%rbp), %rax
movss 4(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -36(%rbp) ## 4-byte Spill
jmp LBB21_3
LBB21_2:
movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -36(%rbp) ## 4-byte Spill
LBB21_3:
movss -36(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -16(%rbp)
movb -9(%rbp), %al
movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq -8(%rbp), %rcx
movss 8(%rcx), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movsbl %al, %edi
callq _RegionCommonComputeTxPower
movb %al, -17(%rbp)
movq _Radio@GOTPCREL(%rip), %rax
movq 120(%rax), %rax
movq -32(%rbp), %rdi
movb -17(%rbp), %dl
movq -8(%rbp), %rcx
movsbl %dl, %esi
movzwl 12(%rcx), %edx
callq *%rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920ApplyDrOffset ## -- Begin function RegionKR920ApplyDrOffset
.p2align 4, 0x90
_RegionKR920ApplyDrOffset: ## @RegionKR920ApplyDrOffset
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movb %dl, %al
movb %sil, %cl
movb %dil, %dl
movb %dl, -1(%rbp)
movb %cl, -2(%rbp)
movb %al, -3(%rbp)
movsbl -2(%rbp), %eax
movsbl -3(%rbp), %ecx
subl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -4(%rbp)
movsbl -4(%rbp), %eax
cmpl $0, %eax
jge LBB22_2
## %bb.1:
movb $0, -4(%rbp)
LBB22_2:
movzbl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _RegionKR920RxBeaconSetup ## -- Begin function RegionKR920RxBeaconSetup
.p2align 4, 0x90
_RegionKR920RxBeaconSetup: ## @RegionKR920RxBeaconSetup
.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)
leaq _DataratesKR920(%rip), %rax
movq %rax, -56(%rbp)
movq -8(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -48(%rbp)
movb $17, -40(%rbp)
movb $3, -39(%rbp)
movb $0, -38(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
movq -8(%rbp), %rax
movw (%rax), %ax
movw %ax, -24(%rbp)
leaq -56(%rbp), %rdi
callq _RegionCommonRxBeaconSetup
movq -16(%rbp), %rax
movb $3, (%rax)
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_RegionNvmGroup2,8,3 ## @RegionNvmGroup2
.section __TEXT,__const
_MaxPayloadOfDatarateKR920: ## @MaxPayloadOfDatarateKR920
.ascii "333s\362\362"
_DataratesKR920: ## @DataratesKR920
.ascii "\f\013\n\t\b\007"
.p2align 4 ## @BandwidthsKR920
_BandwidthsKR920:
.quad 125000 ## 0x1e848
.quad 125000 ## 0x1e848
.quad 125000 ## 0x1e848
.quad 125000 ## 0x1e848
.quad 125000 ## 0x1e848
.quad 125000 ## 0x1e848
.zerofill __DATA,__bss,_RegionNvmGroup1,8,3 ## @RegionNvmGroup1
.subsections_via_symbols
| the_stack_data/204268.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 x0, #0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _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
xorl %eax, %eax
## kill: def $rax killed $eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/48574883.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _my_strlowcase ; -- Begin function my_strlowcase
.p2align 2
_my_strlowcase: ; @my_strlowcase
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #16]
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
; kill: def $x8 killed $xzr
str xzr, [sp, #24]
b LBB0_10
LBB0_2:
str wzr, [sp, #12]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
ldrsb w8, [x8, x9]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
ldrsb w8, [x8, x9]
subs w8, w8, #65
cset w8, lt
tbnz w8, #0, LBB0_7
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
ldrsb w8, [x8, x9]
subs w8, w8, #90
cset w8, gt
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
ldrsb w8, [x8, x9]
add w8, w8, #32
ldr x9, [sp, #16]
ldrsw x10, [sp, #12]
strb w8, [x9, x10]
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, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_3
LBB0_9:
ldr x8, [sp, #16]
str x8, [sp, #24]
b LBB0_10
LBB0_10:
ldr x0, [sp, #24]
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 _my_strlowcase ## -- Begin function my_strlowcase
.p2align 4, 0x90
_my_strlowcase: ## @my_strlowcase
.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)
jne LBB0_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB0_10
LBB0_2:
movl $0, -20(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0, %eax
je LBB0_9
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $65, %eax
jl LBB0_7
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $90, %eax
jg LBB0_7
## %bb.6: ## in Loop: Header=BB0_3 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movsbl (%rax,%rcx), %eax
addl $32, %eax
movb %al, %dl
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movb %dl, (%rax,%rcx)
LBB0_7: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_8
LBB0_8: ## in Loop: Header=BB0_3 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_3
LBB0_9:
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_10:
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/19678.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _function ; -- Begin function function
.p2align 2
_function: ; @function
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-8]
stur w1, [x29, #-12]
ldur w8, [x29, #-8]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur w8, [x29, #-8]
subs w0, w8, #2
ldur w8, [x29, #-12]
add w1, w8, #2
bl _function
b LBB0_2
LBB0_2:
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
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #8] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov w0, #4
mov w1, #5
bl _function
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d "
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _function ## -- Begin function function
.p2align 4, 0x90
_function: ## @function
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -8(%rbp)
movl %esi, -12(%rbp)
cmpl $1, -8(%rbp)
jle LBB0_2
## %bb.1:
movl -8(%rbp), %edi
subl $2, %edi
movl -12(%rbp), %esi
addl $2, %esi
callq _function
LBB0_2:
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
.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 $4, %edi
movl $5, %esi
callq _function
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d "
.subsections_via_symbols
| the_stack_data/1202134.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test ; -- Begin function test
.p2align 2
_test: ; @test
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
movi d0, #0000000000000000
str d0, [sp]
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
mov w9, #16960
movk w9, #15, lsl #16
subs w8, w8, w9
cset w8, hs
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
mov x9, x8
adrp x8, _a@GOTPAGE
ldr x8, [x8, _a@GOTPAGEOFF]
ldr d0, [x8, x9, lsl #3]
ldr w9, [sp, #12]
add w9, w9, #1
ldr d1, [x8, w9, uxtw #3]
ldr d2, [sp]
fmadd d0, d0, d1, d2
str d0, [sp]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #2
str w8, [sp, #12]
b LBB0_1
LBB0_4:
ldr d0, [sp]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _a,8000000,3 ; @a
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test ## -- Begin function test
.p2align 4, 0x90
_test: ## @test
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorps %xmm0, %xmm0
movsd %xmm0, -16(%rbp)
movl $0, -4(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $1000000, -4(%rbp) ## imm = 0xF4240
jae LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -4(%rbp), %eax
movl %eax, %ecx
movq _a@GOTPCREL(%rip), %rax
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, %eax
movl %eax, %ecx
movq _a@GOTPCREL(%rip), %rax
movsd (%rax,%rcx,8), %xmm2 ## xmm2 = mem[0],zero
movsd -16(%rbp), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -16(%rbp)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -4(%rbp), %eax
addl $2, %eax
movl %eax, -4(%rbp)
jmp LBB0_1
LBB0_4:
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _a,8000000,4 ## @a
.subsections_via_symbols
| the_stack_data/200144117.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.comm _x2,4,2 ; @x2
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.comm _x2,4,2 ## @x2
.subsections_via_symbols
| the_stack_data/247018532.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
stur w8, [x29, #-24] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
sub x8, x29, #8
str x8, [sp, #16] ; 8-byte Folded Spill
stur wzr, [x29, #-8]
sub x8, x29, #12
str x8, [sp, #24] ; 8-byte Folded Spill
stur wzr, [x29, #-12]
stur wzr, [x29, #-16]
stur wzr, [x29, #-20]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr x8, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
str x0, [sp, #32] ; 8-byte Folded Spill
bl _scanf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x0, [sp, #32] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
bl _scanf
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
sdiv w8, w8, w9
stur w8, [x29, #-16]
ldur w8, [x29, #-8]
ldur w10, [x29, #-12]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
stur w8, [x29, #-20]
ldur w8, [x29, #-16]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldur w0, [x29, #-24] ; 4-byte Folded Reload
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Enter a value to be the numerator: "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Enter a value for the denominator: "
l_.str.3: ; @.str.3
.asciz "The dividend is %d with a remainder of %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 $0, -8(%rbp)
movl $0, -12(%rbp)
movl $0, -16(%rbp)
movl $0, -20(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
movl -8(%rbp), %eax
cltd
idivl -12(%rbp)
movl %eax, -16(%rbp)
movl -8(%rbp), %eax
cltd
idivl -12(%rbp)
movl %edx, -20(%rbp)
movl -16(%rbp), %esi
movl -20(%rbp), %edx
leaq L_.str.3(%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 "Enter a value to be the numerator: "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Enter a value for the denominator: "
L_.str.3: ## @.str.3
.asciz "The dividend is %d with a remainder of %d\n"
.subsections_via_symbols
| the_stack_data/75136510.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _rand ; -- Begin function rand
.p2align 2
_rand: ; @rand
.cfi_startproc
; %bb.0:
adrp x8, __next@GOTPAGE
ldr x8, [x8, __next@GOTPAGEOFF]
ldr w9, [x8]
mov w10, #20077
movk w10, #16838, lsl #16
mul w9, w9, w10
mov w10, #12345
add w9, w9, w10
str w9, [x8]
ldr w8, [x8]
asr w8, w8, #16
and w0, w8, #0x7fff
ret
.cfi_endproc
; -- End function
.globl _HariMain ; -- Begin function HariMain
.p2align 2
_HariMain: ; @HariMain
.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
bl _api_initmalloc
mov w0, #15000
bl _api_malloc
stur x0, [x29, #-8]
ldur x0, [x29, #-8]
mov w1, #150
mov w2, #100
mov w3, #-1
adrp x4, l_.str@PAGE
add x4, x4, l_.str@PAGEOFF
bl _api_openwin
stur w0, [x29, #-12]
ldur w0, [x29, #-12]
mov w1, #6
mov w2, #26
mov w3, #143
mov w4, #93
mov w5, #0
bl _api_boxfilwin
str wzr, [sp, #16]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
subs w8, w8, #50
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
bl _rand
mov w9, #137
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
add w8, w8, #6
str w8, [sp, #12]
bl _rand
mov w9, #67
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
add w8, w8, #26
str w8, [sp, #8]
ldur w0, [x29, #-12]
ldr w1, [sp, #12]
ldr w2, [sp, #8]
mov w3, #3
bl _api_point
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB1_1
LBB1_4:
bl _api_end
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm __next,4,2 ; @_next
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "stars"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _rand ## -- Begin function rand
.p2align 4, 0x90
_rand: ## @rand
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq __next@GOTPCREL(%rip), %rax
imull $1103515245, (%rax), %ecx ## imm = 0x41C64E6D
addl $12345, %ecx ## imm = 0x3039
movq __next@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq __next@GOTPCREL(%rip), %rax
movl (%rax), %eax
sarl $16, %eax
andl $32767, %eax ## imm = 0x7FFF
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _HariMain ## -- Begin function HariMain
.p2align 4, 0x90
_HariMain: ## @HariMain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
callq _api_initmalloc
movl $15000, %edi ## imm = 0x3A98
callq _api_malloc
movq %rax, -8(%rbp)
movq -8(%rbp), %rdi
movl $150, %esi
movl $100, %edx
movl $4294967295, %ecx ## imm = 0xFFFFFFFF
leaq L_.str(%rip), %r8
callq _api_openwin
movl %eax, -12(%rbp)
movl -12(%rbp), %edi
movl $6, %esi
movl $26, %edx
movl $143, %ecx
movl $93, %r8d
xorl %r9d, %r9d
callq _api_boxfilwin
movl $0, -16(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $50, -16(%rbp)
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
callq _rand
movl $137, %ecx
cltd
idivl %ecx
addl $6, %edx
movl %edx, -20(%rbp)
callq _rand
movl $67, %ecx
cltd
idivl %ecx
addl $26, %edx
movl %edx, -24(%rbp)
movl -12(%rbp), %edi
movl -20(%rbp), %esi
movl -24(%rbp), %edx
movl $3, %ecx
callq _api_point
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_1
LBB1_4:
callq _api_end
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm __next,4,2 ## @_next
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "stars"
.subsections_via_symbols
| the_stack_data/150140171.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]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x8, _foo@PAGE
add x8, x8, _foo@PAGEOFF
str x8, [sp, #16]
ldr x8, [sp, #16]
mov w0, #1
blr x8
ldr x8, [sp, #16]
mov w0, #2
blr x8
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
.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)
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 _foo(%rip), %rax
movq %rax, -16(%rbp)
movl $1, %edi
callq *-16(%rbp)
movl $2, %edi
callq *-16(%rbp)
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/184519524.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _swap ; -- Begin function swap
.p2align 2
_swap: ; @swap
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str w1, [sp, #20]
str w2, [sp, #16]
ldr x8, [sp, #24]
ldrsw x9, [sp, #20]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #12]
ldr x8, [sp, #24]
ldrsw x9, [sp, #16]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #24]
ldrsw x10, [sp, #20]
str w8, [x9, x10, lsl #2]
ldr w8, [sp, #12]
ldr x9, [sp, #24]
ldrsw x10, [sp, #16]
str w8, [x9, x10, lsl #2]
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, #480
.cfi_def_cfa_offset 480
stp x28, x27, [sp, #448] ; 16-byte Folded Spill
stp x29, x30, [sp, #464] ; 16-byte Folded Spill
add x29, sp, #464
.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, #36]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #32
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
str wzr, [sp, #28]
ldr w9, [sp, #32]
; 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, #28]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #28]
ldr w9, [sp, #32]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldrsw x9, [sp, #28]
add x8, sp, #40
add x8, x8, x9, lsl #2
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB1_1
LBB1_4:
ldrsw x9, [sp, #28]
add x8, sp, #40
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #2
cset w8, le
tbnz w8, #0, LBB1_7
b LBB1_5
LBB1_5:
ldrsw x9, [sp, #28]
add x8, sp, #40
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB1_7
b LBB1_6
LBB1_6:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov w0, #0
bl _exit
LBB1_7:
str wzr, [sp, #24]
mov w8, #1
str w8, [sp, #20]
ldr w8, [sp, #32]
subs w8, w8, #1
str w8, [sp, #16]
b LBB1_8
LBB1_8: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #20]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_16
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_8 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #40
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_11
b LBB1_10
LBB1_10: ; in Loop: Header=BB1_8 Depth=1
ldr w1, [sp, #20]
ldr w2, [sp, #24]
add x0, sp, #40
bl _swap
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB1_15
LBB1_11: ; in Loop: Header=BB1_8 Depth=1
ldrsw x9, [sp, #20]
add x8, sp, #40
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB1_13
b LBB1_12
LBB1_12: ; in Loop: Header=BB1_8 Depth=1
ldr w1, [sp, #20]
ldr w2, [sp, #16]
add x0, sp, #40
bl _swap
ldr w8, [sp, #16]
subs w8, w8, #1
str w8, [sp, #16]
b LBB1_14
LBB1_13: ; in Loop: Header=BB1_8 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB1_14
LBB1_14: ; in Loop: Header=BB1_8 Depth=1
b LBB1_15
LBB1_15: ; in Loop: Header=BB1_8 Depth=1
b LBB1_8
LBB1_16:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _puts
str wzr, [sp, #28]
b LBB1_17
LBB1_17: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #28]
ldr w9, [sp, #32]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_20
b LBB1_18
LBB1_18: ; in Loop: Header=BB1_17 Depth=1
ldrsw x9, [sp, #28]
add x8, sp, #40
ldr w9, [x8, x9, lsl #2]
; 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
b LBB1_19
LBB1_19: ; in Loop: Header=BB1_17 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB1_17
LBB1_20:
ldr w8, [sp, #36]
str w8, [sp, #12] ; 4-byte Folded Spill
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_22
b LBB1_21
LBB1_21:
bl ___stack_chk_fail
LBB1_22:
ldr w0, [sp, #12] ; 4-byte Folded Reload
ldp x29, x30, [sp, #464] ; 16-byte Folded Reload
ldp x28, x27, [sp, #448] ; 16-byte Folded Reload
add sp, sp, #480
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Enter n : "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Enter %d elements containing only 0 , 1 or 2 : "
l_.str.3: ; @.str.3
.asciz "Invalid Input ! "
l_.str.4: ; @.str.4
.space 1
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 _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)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -20(%rbp)
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -20(%rbp), %edx
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
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 $448, %rsp ## imm = 0x1C0
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 -424(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -428(%rbp)
movl -424(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -428(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -428(%rbp), %eax
cmpl -424(%rbp), %eax
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movslq -428(%rbp), %rax
leaq -416(%rbp), %rsi
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -428(%rbp), %eax
addl $1, %eax
movl %eax, -428(%rbp)
jmp LBB1_1
LBB1_4:
movslq -428(%rbp), %rax
cmpl $2, -416(%rbp,%rax,4)
jle LBB1_7
## %bb.5:
movslq -428(%rbp), %rax
cmpl $0, -416(%rbp,%rax,4)
jge LBB1_7
## %bb.6:
leaq L_.str.3(%rip), %rdi
xorl %eax, %eax
movl %eax, -444(%rbp) ## 4-byte Spill
callq _printf
movl -444(%rbp), %edi ## 4-byte Reload
callq _exit
LBB1_7:
movl $0, -432(%rbp)
movl $1, -436(%rbp)
movl -424(%rbp), %eax
subl $1, %eax
movl %eax, -440(%rbp)
LBB1_8: ## =>This Inner Loop Header: Depth=1
movl -436(%rbp), %eax
cmpl -440(%rbp), %eax
jg LBB1_16
## %bb.9: ## in Loop: Header=BB1_8 Depth=1
movslq -436(%rbp), %rax
cmpl $0, -416(%rbp,%rax,4)
jne LBB1_11
## %bb.10: ## in Loop: Header=BB1_8 Depth=1
leaq -416(%rbp), %rdi
movl -436(%rbp), %esi
movl -432(%rbp), %edx
callq _swap
movl -432(%rbp), %eax
addl $1, %eax
movl %eax, -432(%rbp)
movl -436(%rbp), %eax
addl $1, %eax
movl %eax, -436(%rbp)
jmp LBB1_15
LBB1_11: ## in Loop: Header=BB1_8 Depth=1
movslq -436(%rbp), %rax
cmpl $2, -416(%rbp,%rax,4)
jne LBB1_13
## %bb.12: ## in Loop: Header=BB1_8 Depth=1
leaq -416(%rbp), %rdi
movl -436(%rbp), %esi
movl -440(%rbp), %edx
callq _swap
movl -440(%rbp), %eax
addl $-1, %eax
movl %eax, -440(%rbp)
jmp LBB1_14
LBB1_13: ## in Loop: Header=BB1_8 Depth=1
movl -436(%rbp), %eax
addl $1, %eax
movl %eax, -436(%rbp)
LBB1_14: ## in Loop: Header=BB1_8 Depth=1
jmp LBB1_15
LBB1_15: ## in Loop: Header=BB1_8 Depth=1
jmp LBB1_8
LBB1_16:
leaq L_.str.4(%rip), %rdi
callq _puts
movl $0, -428(%rbp)
LBB1_17: ## =>This Inner Loop Header: Depth=1
movl -428(%rbp), %eax
cmpl -424(%rbp), %eax
jge LBB1_20
## %bb.18: ## in Loop: Header=BB1_17 Depth=1
movslq -428(%rbp), %rax
movl -416(%rbp,%rax,4), %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
## %bb.19: ## in Loop: Header=BB1_17 Depth=1
movl -428(%rbp), %eax
addl $1, %eax
movl %eax, -428(%rbp)
jmp LBB1_17
LBB1_20:
movl -420(%rbp), %eax
movl %eax, -448(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_22
## %bb.21:
movl -448(%rbp), %eax ## 4-byte Reload
addq $448, %rsp ## imm = 0x1C0
popq %rbp
retq
LBB1_22:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter n : "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Enter %d elements containing only 0 , 1 or 2 : "
L_.str.3: ## @.str.3
.asciz "Invalid Input ! "
L_.str.4: ## @.str.4
.space 1
L_.str.5: ## @.str.5
.asciz "%d "
.subsections_via_symbols
| the_stack_data/95449873.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_putstr ; -- Begin function ft_putstr
.p2align 2
_ft_putstr: ; @ft_putstr
.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 LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldrsw x9, [sp, #4]
add x8, x8, x9
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldrsw x9, [sp, #4]
ldrsb w0, [x8, x9]
bl _ft_putchar
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_1
LBB0_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 _ft_putstr ## -- Begin function ft_putstr
.p2align 4, 0x90
_ft_putstr: ## @ft_putstr
.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)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
cmpb $0, (%rax,%rcx)
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movsbl (%rax,%rcx), %edi
callq _ft_putchar
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_1
LBB0_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/175144360.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _shlib_func ; -- Begin function shlib_func
.p2align 2
_shlib_func: ; @shlib_func
.cfi_startproc
; %bb.0:
adrp x9, _globalvar@GOTPAGE
ldr x9, [x9, _globalvar@GOTPAGEOFF]
mov w8, #1
str w8, [x9]
ret
.cfi_endproc
; -- End function
.section __DATA,__data
.globl _shlibvar ; @shlibvar
.p2align 2
_shlibvar:
.long 10 ; 0xa
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _shlib_func ## -- Begin function shlib_func
.p2align 4, 0x90
_shlib_func: ## @shlib_func
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _globalvar@GOTPCREL(%rip), %rax
movl $1, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.globl _shlibvar ## @shlibvar
.p2align 2
_shlibvar:
.long 10 ## 0xa
.subsections_via_symbols
| the_stack_data/1250545.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _kernel_heat_3d ; -- Begin function kernel_heat_3d
.p2align 2
_kernel_heat_3d: ; @kernel_heat_3d
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
str w0, [sp, #108]
str w1, [sp, #104]
str x2, [sp, #96]
str x3, [sp, #88]
mov w8, #1
str w8, [sp, #64]
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_10 Depth 4
; Child Loop BB0_12 Depth 5
; Child Loop BB0_17 Depth 6
; Child Loop BB0_29 Depth 2
; Child Loop BB0_31 Depth 3
; Child Loop BB0_36 Depth 4
; Child Loop BB0_38 Depth 5
; Child Loop BB0_43 Depth 6
ldr w8, [sp, #64]
subs w8, w8, #500
cset w8, gt
tbnz w8, #0, LBB0_56
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov w8, #1
str w8, [sp, #68]
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_10 Depth 4
; Child Loop BB0_12 Depth 5
; Child Loop BB0_17 Depth 6
ldr w8, [sp, #68]
ldr w9, [sp, #104]
subs w9, w9, #2
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_28
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #68]
str w8, [sp, #72]
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_10 Depth 4
; Child Loop BB0_12 Depth 5
; Child Loop BB0_17 Depth 6
ldr w8, [sp, #72]
str w8, [sp, #60] ; 4-byte Folded Spill
ldr w8, [sp, #68]
add w8, w8, #15
ldr w9, [sp, #104]
subs w9, w9, #2
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=3
ldr w8, [sp, #68]
add w8, w8, #15
str w8, [sp, #56] ; 4-byte Folded Spill
b LBB0_8
LBB0_7: ; in Loop: Header=BB0_5 Depth=3
ldr w8, [sp, #104]
subs w8, w8, #2
str w8, [sp, #56] ; 4-byte Folded Spill
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_5 Depth=3
ldr w8, [sp, #60] ; 4-byte Folded Reload
ldr w9, [sp, #56] ; 4-byte Folded Reload
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_26
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_5 Depth=3
mov w8, #1
str w8, [sp, #76]
b LBB0_10
LBB0_10: ; 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_12 Depth 5
; Child Loop BB0_17 Depth 6
ldr w8, [sp, #76]
ldr w9, [sp, #104]
subs w9, w9, #2
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_24
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_10 Depth=4
ldr w8, [sp, #76]
str w8, [sp, #80]
b LBB0_12
LBB0_12: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_3 Depth=2
; Parent Loop BB0_5 Depth=3
; Parent Loop BB0_10 Depth=4
; => This Loop Header: Depth=5
; Child Loop BB0_17 Depth 6
ldr w8, [sp, #80]
str w8, [sp, #52] ; 4-byte Folded Spill
ldr w8, [sp, #76]
add w8, w8, #31
ldr w9, [sp, #104]
subs w9, w9, #2
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_12 Depth=5
ldr w8, [sp, #76]
add w8, w8, #31
str w8, [sp, #48] ; 4-byte Folded Spill
b LBB0_15
LBB0_14: ; in Loop: Header=BB0_12 Depth=5
ldr w8, [sp, #104]
subs w8, w8, #2
str w8, [sp, #48] ; 4-byte Folded Spill
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_12 Depth=5
ldr w8, [sp, #52] ; 4-byte Folded Reload
ldr w9, [sp, #48] ; 4-byte Folded Reload
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_22
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_12 Depth=5
mov w8, #1
str w8, [sp, #84]
b LBB0_17
LBB0_17: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_3 Depth=2
; Parent Loop BB0_5 Depth=3
; Parent Loop BB0_10 Depth=4
; Parent Loop BB0_12 Depth=5
; => This Inner Loop Header: Depth=6
ldr w8, [sp, #84]
ldr w9, [sp, #104]
subs w9, w9, #2
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_20
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_17 Depth=6
ldr x10, [sp, #96]
ldr w8, [sp, #72]
add w8, w8, #1
mov x11, #49664
movk x11, #1, lsl #16
str x11, [sp, #32] ; 8-byte Folded Spill
mov w9, #49664
movk w9, #1, lsl #16
smaddl x8, w8, w9, x10
ldrsw x9, [sp, #80]
mov x10, #960
str x10, [sp, #40] ; 8-byte Folded Spill
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #84]
ldr d2, [x8, x9, lsl #3]
ldr x8, [sp, #96]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #84]
ldr d0, [x8, x9, lsl #3]
fmov d1, #-2.00000000
fmadd d0, d1, d0, d2
ldr x12, [sp, #96]
ldr w8, [sp, #72]
subs w8, w8, #1
mov w9, #49664
movk w9, #1, lsl #16
smaddl x8, w8, w9, x12
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #84]
ldr d2, [x8, x9, lsl #3]
fadd d2, d0, d2
ldr x8, [sp, #96]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x12, x8, x9
ldr w8, [sp, #80]
add w8, w8, #1
mov w9, #960
smaddl x8, w8, w9, x12
ldrsw x9, [sp, #84]
ldr d3, [x8, x9, lsl #3]
ldr x8, [sp, #96]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #84]
ldr d0, [x8, x9, lsl #3]
fmadd d0, d1, d0, d3
ldr x8, [sp, #96]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x12, x8, x9
ldr w8, [sp, #80]
subs w8, w8, #1
mov w9, #960
smaddl x8, w8, w9, x12
ldrsw x9, [sp, #84]
ldr d3, [x8, x9, lsl #3]
fadd d3, d0, d3
fmov d0, #0.12500000
fmul d3, d0, d3
fmadd d2, d0, d2, d3
ldr x8, [sp, #96]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldr w9, [sp, #84]
add w9, w9, #1
ldr d4, [x8, w9, sxtw #3]
ldr x8, [sp, #96]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #84]
ldr d3, [x8, x9, lsl #3]
fmadd d1, d1, d3, d4
ldr x8, [sp, #96]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldr w9, [sp, #84]
subs w9, w9, #1
ldr d3, [x8, w9, sxtw #3]
fadd d1, d1, d3
fmadd d0, d0, d1, d2
ldr x8, [sp, #96]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #84]
ldr d1, [x8, x9, lsl #3]
fadd d0, d0, d1
ldr x8, [sp, #88]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #84]
str d0, [x8, x9, lsl #3]
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_17 Depth=6
ldr w8, [sp, #84]
add w8, w8, #1
str w8, [sp, #84]
b LBB0_17
LBB0_20: ; in Loop: Header=BB0_12 Depth=5
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_12 Depth=5
ldr w8, [sp, #80]
add w8, w8, #1
str w8, [sp, #80]
b LBB0_12
LBB0_22: ; in Loop: Header=BB0_10 Depth=4
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_10 Depth=4
ldr w8, [sp, #76]
add w8, w8, #32
str w8, [sp, #76]
b LBB0_10
LBB0_24: ; in Loop: Header=BB0_5 Depth=3
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_5 Depth=3
ldr w8, [sp, #72]
add w8, w8, #1
str w8, [sp, #72]
b LBB0_5
LBB0_26: ; in Loop: Header=BB0_3 Depth=2
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #68]
add w8, w8, #16
str w8, [sp, #68]
b LBB0_3
LBB0_28: ; in Loop: Header=BB0_1 Depth=1
mov w8, #1
str w8, [sp, #68]
b LBB0_29
LBB0_29: ; Parent Loop BB0_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_31 Depth 3
; Child Loop BB0_36 Depth 4
; Child Loop BB0_38 Depth 5
; Child Loop BB0_43 Depth 6
ldr w8, [sp, #68]
ldr w9, [sp, #104]
subs w9, w9, #2
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_54
b LBB0_30
LBB0_30: ; in Loop: Header=BB0_29 Depth=2
ldr w8, [sp, #68]
str w8, [sp, #72]
b LBB0_31
LBB0_31: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_29 Depth=2
; => This Loop Header: Depth=3
; Child Loop BB0_36 Depth 4
; Child Loop BB0_38 Depth 5
; Child Loop BB0_43 Depth 6
ldr w8, [sp, #72]
str w8, [sp, #28] ; 4-byte Folded Spill
ldr w8, [sp, #68]
add w8, w8, #15
ldr w9, [sp, #104]
subs w9, w9, #2
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_33
b LBB0_32
LBB0_32: ; in Loop: Header=BB0_31 Depth=3
ldr w8, [sp, #68]
add w8, w8, #15
str w8, [sp, #24] ; 4-byte Folded Spill
b LBB0_34
LBB0_33: ; in Loop: Header=BB0_31 Depth=3
ldr w8, [sp, #104]
subs w8, w8, #2
str w8, [sp, #24] ; 4-byte Folded Spill
b LBB0_34
LBB0_34: ; in Loop: Header=BB0_31 Depth=3
ldr w8, [sp, #28] ; 4-byte Folded Reload
ldr w9, [sp, #24] ; 4-byte Folded Reload
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_52
b LBB0_35
LBB0_35: ; in Loop: Header=BB0_31 Depth=3
mov w8, #1
str w8, [sp, #76]
b LBB0_36
LBB0_36: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_29 Depth=2
; Parent Loop BB0_31 Depth=3
; => This Loop Header: Depth=4
; Child Loop BB0_38 Depth 5
; Child Loop BB0_43 Depth 6
ldr w8, [sp, #76]
ldr w9, [sp, #104]
subs w9, w9, #2
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_50
b LBB0_37
LBB0_37: ; in Loop: Header=BB0_36 Depth=4
ldr w8, [sp, #76]
str w8, [sp, #80]
b LBB0_38
LBB0_38: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_29 Depth=2
; Parent Loop BB0_31 Depth=3
; Parent Loop BB0_36 Depth=4
; => This Loop Header: Depth=5
; Child Loop BB0_43 Depth 6
ldr w8, [sp, #80]
str w8, [sp, #20] ; 4-byte Folded Spill
ldr w8, [sp, #76]
add w8, w8, #31
ldr w9, [sp, #104]
subs w9, w9, #2
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_40
b LBB0_39
LBB0_39: ; in Loop: Header=BB0_38 Depth=5
ldr w8, [sp, #76]
add w8, w8, #31
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_41
LBB0_40: ; in Loop: Header=BB0_38 Depth=5
ldr w8, [sp, #104]
subs w8, w8, #2
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_41
LBB0_41: ; in Loop: Header=BB0_38 Depth=5
ldr w8, [sp, #20] ; 4-byte Folded Reload
ldr w9, [sp, #16] ; 4-byte Folded Reload
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_48
b LBB0_42
LBB0_42: ; in Loop: Header=BB0_38 Depth=5
mov w8, #1
str w8, [sp, #84]
b LBB0_43
LBB0_43: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_29 Depth=2
; Parent Loop BB0_31 Depth=3
; Parent Loop BB0_36 Depth=4
; Parent Loop BB0_38 Depth=5
; => This Inner Loop Header: Depth=6
ldr w8, [sp, #84]
ldr w9, [sp, #104]
subs w9, w9, #2
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_46
b LBB0_44
LBB0_44: ; in Loop: Header=BB0_43 Depth=6
ldr x10, [sp, #88]
ldr w8, [sp, #72]
add w8, w8, #1
mov x11, #49664
movk x11, #1, lsl #16
str x11, [sp] ; 8-byte Folded Spill
mov w9, #49664
movk w9, #1, lsl #16
smaddl x8, w8, w9, x10
ldrsw x9, [sp, #80]
mov x10, #960
str x10, [sp, #8] ; 8-byte Folded Spill
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #84]
ldr d2, [x8, x9, lsl #3]
ldr x8, [sp, #88]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #84]
ldr d0, [x8, x9, lsl #3]
fmov d1, #-2.00000000
fmadd d0, d1, d0, d2
ldr x12, [sp, #88]
ldr w8, [sp, #72]
subs w8, w8, #1
mov w9, #49664
movk w9, #1, lsl #16
smaddl x8, w8, w9, x12
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #84]
ldr d2, [x8, x9, lsl #3]
fadd d2, d0, d2
ldr x8, [sp, #88]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x12, x8, x9
ldr w8, [sp, #80]
add w8, w8, #1
mov w9, #960
smaddl x8, w8, w9, x12
ldrsw x9, [sp, #84]
ldr d3, [x8, x9, lsl #3]
ldr x8, [sp, #88]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #84]
ldr d0, [x8, x9, lsl #3]
fmadd d0, d1, d0, d3
ldr x8, [sp, #88]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x12, x8, x9
ldr w8, [sp, #80]
subs w8, w8, #1
mov w9, #960
smaddl x8, w8, w9, x12
ldrsw x9, [sp, #84]
ldr d3, [x8, x9, lsl #3]
fadd d3, d0, d3
fmov d0, #0.12500000
fmul d3, d0, d3
fmadd d2, d0, d2, d3
ldr x8, [sp, #88]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldr w9, [sp, #84]
add w9, w9, #1
ldr d4, [x8, w9, sxtw #3]
ldr x8, [sp, #88]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #84]
ldr d3, [x8, x9, lsl #3]
fmadd d1, d1, d3, d4
ldr x8, [sp, #88]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldr w9, [sp, #84]
subs w9, w9, #1
ldr d3, [x8, w9, sxtw #3]
fadd d1, d1, d3
fmadd d0, d0, d1, d2
ldr x8, [sp, #88]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #84]
ldr d1, [x8, x9, lsl #3]
fadd d0, d0, d1
ldr x8, [sp, #96]
ldrsw x9, [sp, #72]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #80]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #84]
str d0, [x8, x9, lsl #3]
b LBB0_45
LBB0_45: ; in Loop: Header=BB0_43 Depth=6
ldr w8, [sp, #84]
add w8, w8, #1
str w8, [sp, #84]
b LBB0_43
LBB0_46: ; in Loop: Header=BB0_38 Depth=5
b LBB0_47
LBB0_47: ; in Loop: Header=BB0_38 Depth=5
ldr w8, [sp, #80]
add w8, w8, #1
str w8, [sp, #80]
b LBB0_38
LBB0_48: ; in Loop: Header=BB0_36 Depth=4
b LBB0_49
LBB0_49: ; in Loop: Header=BB0_36 Depth=4
ldr w8, [sp, #76]
add w8, w8, #32
str w8, [sp, #76]
b LBB0_36
LBB0_50: ; in Loop: Header=BB0_31 Depth=3
b LBB0_51
LBB0_51: ; in Loop: Header=BB0_31 Depth=3
ldr w8, [sp, #72]
add w8, w8, #1
str w8, [sp, #72]
b LBB0_31
LBB0_52: ; in Loop: Header=BB0_29 Depth=2
b LBB0_53
LBB0_53: ; in Loop: Header=BB0_29 Depth=2
ldr w8, [sp, #68]
add w8, w8, #16
str w8, [sp, #68]
b LBB0_29
LBB0_54: ; in Loop: Header=BB0_1 Depth=1
b LBB0_55
LBB0_55: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #64]
add w8, w8, #1
str w8, [sp, #64]
b LBB0_1
LBB0_56:
add sp, sp, #112
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 kernel_heat_3d
LCPI0_0:
.quad 0x3fc0000000000000 ## double 0.125
.section __TEXT,__text,regular,pure_instructions
.globl _kernel_heat_3d
.p2align 4, 0x90
_kernel_heat_3d: ## @kernel_heat_3d
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movq %rdx, -16(%rbp)
movq %rcx, -24(%rbp)
movl $1, -48(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
## Child Loop BB0_5 Depth 3
## Child Loop BB0_10 Depth 4
## Child Loop BB0_12 Depth 5
## Child Loop BB0_17 Depth 6
## Child Loop BB0_29 Depth 2
## Child Loop BB0_31 Depth 3
## Child Loop BB0_36 Depth 4
## Child Loop BB0_38 Depth 5
## Child Loop BB0_43 Depth 6
cmpl $500, -48(%rbp) ## imm = 0x1F4
jg LBB0_56
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $1, -44(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_5 Depth 3
## Child Loop BB0_10 Depth 4
## Child Loop BB0_12 Depth 5
## Child Loop BB0_17 Depth 6
movl -44(%rbp), %eax
movl -8(%rbp), %ecx
subl $2, %ecx
cmpl %ecx, %eax
jg LBB0_28
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movl -44(%rbp), %eax
movl %eax, -40(%rbp)
LBB0_5: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_3 Depth=2
## => This Loop Header: Depth=3
## Child Loop BB0_10 Depth 4
## Child Loop BB0_12 Depth 5
## Child Loop BB0_17 Depth 6
movl -40(%rbp), %eax
movl %eax, -52(%rbp) ## 4-byte Spill
movl -44(%rbp), %eax
addl $15, %eax
movl -8(%rbp), %ecx
subl $2, %ecx
cmpl %ecx, %eax
jge LBB0_7
## %bb.6: ## in Loop: Header=BB0_5 Depth=3
movl -44(%rbp), %eax
addl $15, %eax
movl %eax, -56(%rbp) ## 4-byte Spill
jmp LBB0_8
LBB0_7: ## in Loop: Header=BB0_5 Depth=3
movl -8(%rbp), %eax
subl $2, %eax
movl %eax, -56(%rbp) ## 4-byte Spill
LBB0_8: ## in Loop: Header=BB0_5 Depth=3
movl -52(%rbp), %eax ## 4-byte Reload
movl -56(%rbp), %ecx ## 4-byte Reload
cmpl %ecx, %eax
jg LBB0_26
## %bb.9: ## in Loop: Header=BB0_5 Depth=3
movl $1, -36(%rbp)
LBB0_10: ## 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_12 Depth 5
## Child Loop BB0_17 Depth 6
movl -36(%rbp), %eax
movl -8(%rbp), %ecx
subl $2, %ecx
cmpl %ecx, %eax
jg LBB0_24
## %bb.11: ## in Loop: Header=BB0_10 Depth=4
movl -36(%rbp), %eax
movl %eax, -32(%rbp)
LBB0_12: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_3 Depth=2
## Parent Loop BB0_5 Depth=3
## Parent Loop BB0_10 Depth=4
## => This Loop Header: Depth=5
## Child Loop BB0_17 Depth 6
movl -32(%rbp), %eax
movl %eax, -60(%rbp) ## 4-byte Spill
movl -36(%rbp), %eax
addl $31, %eax
movl -8(%rbp), %ecx
subl $2, %ecx
cmpl %ecx, %eax
jge LBB0_14
## %bb.13: ## in Loop: Header=BB0_12 Depth=5
movl -36(%rbp), %eax
addl $31, %eax
movl %eax, -64(%rbp) ## 4-byte Spill
jmp LBB0_15
LBB0_14: ## in Loop: Header=BB0_12 Depth=5
movl -8(%rbp), %eax
subl $2, %eax
movl %eax, -64(%rbp) ## 4-byte Spill
LBB0_15: ## in Loop: Header=BB0_12 Depth=5
movl -60(%rbp), %eax ## 4-byte Reload
movl -64(%rbp), %ecx ## 4-byte Reload
cmpl %ecx, %eax
jg LBB0_22
## %bb.16: ## in Loop: Header=BB0_12 Depth=5
movl $1, -28(%rbp)
LBB0_17: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_3 Depth=2
## Parent Loop BB0_5 Depth=3
## Parent Loop BB0_10 Depth=4
## Parent Loop BB0_12 Depth=5
## => This Inner Loop Header: Depth=6
movl -28(%rbp), %eax
movl -8(%rbp), %ecx
subl $2, %ecx
cmpl %ecx, %eax
jg LBB0_20
## %bb.18: ## in Loop: Header=BB0_17 Depth=6
movq -16(%rbp), %rax
movl -40(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero
movq -16(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
addsd %xmm0, %xmm0
subsd %xmm0, %xmm1
movq -16(%rbp), %rax
movl -40(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm1
movq -16(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movl -32(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm2 ## xmm2 = mem[0],zero
movq -16(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
addsd %xmm0, %xmm0
subsd %xmm0, %xmm2
movq -16(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movl -32(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm2
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm2, %xmm0
movsd LCPI0_0(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
movq -16(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movl -28(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -16(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm2 ## xmm2 = mem[0],zero
addsd %xmm2, %xmm2
subsd %xmm2, %xmm0
movq -16(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movl -28(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
addsd (%rax,%rcx,8), %xmm0
movsd LCPI0_0(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -16(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movq -24(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
## %bb.19: ## in Loop: Header=BB0_17 Depth=6
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_17
LBB0_20: ## in Loop: Header=BB0_12 Depth=5
jmp LBB0_21
LBB0_21: ## in Loop: Header=BB0_12 Depth=5
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB0_12
LBB0_22: ## in Loop: Header=BB0_10 Depth=4
jmp LBB0_23
LBB0_23: ## in Loop: Header=BB0_10 Depth=4
movl -36(%rbp), %eax
addl $32, %eax
movl %eax, -36(%rbp)
jmp LBB0_10
LBB0_24: ## in Loop: Header=BB0_5 Depth=3
jmp LBB0_25
LBB0_25: ## in Loop: Header=BB0_5 Depth=3
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_5
LBB0_26: ## in Loop: Header=BB0_3 Depth=2
jmp LBB0_27
LBB0_27: ## in Loop: Header=BB0_3 Depth=2
movl -44(%rbp), %eax
addl $16, %eax
movl %eax, -44(%rbp)
jmp LBB0_3
LBB0_28: ## in Loop: Header=BB0_1 Depth=1
movl $1, -44(%rbp)
LBB0_29: ## Parent Loop BB0_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_31 Depth 3
## Child Loop BB0_36 Depth 4
## Child Loop BB0_38 Depth 5
## Child Loop BB0_43 Depth 6
movl -44(%rbp), %eax
movl -8(%rbp), %ecx
subl $2, %ecx
cmpl %ecx, %eax
jg LBB0_54
## %bb.30: ## in Loop: Header=BB0_29 Depth=2
movl -44(%rbp), %eax
movl %eax, -40(%rbp)
LBB0_31: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_29 Depth=2
## => This Loop Header: Depth=3
## Child Loop BB0_36 Depth 4
## Child Loop BB0_38 Depth 5
## Child Loop BB0_43 Depth 6
movl -40(%rbp), %eax
movl %eax, -68(%rbp) ## 4-byte Spill
movl -44(%rbp), %eax
addl $15, %eax
movl -8(%rbp), %ecx
subl $2, %ecx
cmpl %ecx, %eax
jge LBB0_33
## %bb.32: ## in Loop: Header=BB0_31 Depth=3
movl -44(%rbp), %eax
addl $15, %eax
movl %eax, -72(%rbp) ## 4-byte Spill
jmp LBB0_34
LBB0_33: ## in Loop: Header=BB0_31 Depth=3
movl -8(%rbp), %eax
subl $2, %eax
movl %eax, -72(%rbp) ## 4-byte Spill
LBB0_34: ## in Loop: Header=BB0_31 Depth=3
movl -68(%rbp), %eax ## 4-byte Reload
movl -72(%rbp), %ecx ## 4-byte Reload
cmpl %ecx, %eax
jg LBB0_52
## %bb.35: ## in Loop: Header=BB0_31 Depth=3
movl $1, -36(%rbp)
LBB0_36: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_29 Depth=2
## Parent Loop BB0_31 Depth=3
## => This Loop Header: Depth=4
## Child Loop BB0_38 Depth 5
## Child Loop BB0_43 Depth 6
movl -36(%rbp), %eax
movl -8(%rbp), %ecx
subl $2, %ecx
cmpl %ecx, %eax
jg LBB0_50
## %bb.37: ## in Loop: Header=BB0_36 Depth=4
movl -36(%rbp), %eax
movl %eax, -32(%rbp)
LBB0_38: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_29 Depth=2
## Parent Loop BB0_31 Depth=3
## Parent Loop BB0_36 Depth=4
## => This Loop Header: Depth=5
## Child Loop BB0_43 Depth 6
movl -32(%rbp), %eax
movl %eax, -76(%rbp) ## 4-byte Spill
movl -36(%rbp), %eax
addl $31, %eax
movl -8(%rbp), %ecx
subl $2, %ecx
cmpl %ecx, %eax
jge LBB0_40
## %bb.39: ## in Loop: Header=BB0_38 Depth=5
movl -36(%rbp), %eax
addl $31, %eax
movl %eax, -80(%rbp) ## 4-byte Spill
jmp LBB0_41
LBB0_40: ## in Loop: Header=BB0_38 Depth=5
movl -8(%rbp), %eax
subl $2, %eax
movl %eax, -80(%rbp) ## 4-byte Spill
LBB0_41: ## in Loop: Header=BB0_38 Depth=5
movl -76(%rbp), %eax ## 4-byte Reload
movl -80(%rbp), %ecx ## 4-byte Reload
cmpl %ecx, %eax
jg LBB0_48
## %bb.42: ## in Loop: Header=BB0_38 Depth=5
movl $1, -28(%rbp)
LBB0_43: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_29 Depth=2
## Parent Loop BB0_31 Depth=3
## Parent Loop BB0_36 Depth=4
## Parent Loop BB0_38 Depth=5
## => This Inner Loop Header: Depth=6
movl -28(%rbp), %eax
movl -8(%rbp), %ecx
subl $2, %ecx
cmpl %ecx, %eax
jg LBB0_46
## %bb.44: ## in Loop: Header=BB0_43 Depth=6
movq -24(%rbp), %rax
movl -40(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero
movq -24(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
addsd %xmm0, %xmm0
subsd %xmm0, %xmm1
movq -24(%rbp), %rax
movl -40(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm1
movq -24(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movl -32(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm2 ## xmm2 = mem[0],zero
movq -24(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
addsd %xmm0, %xmm0
subsd %xmm0, %xmm2
movq -24(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movl -32(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm2
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm2, %xmm0
movsd LCPI0_0(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
movq -24(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movl -28(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -24(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm2 ## xmm2 = mem[0],zero
addsd %xmm2, %xmm2
subsd %xmm2, %xmm0
movq -24(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movl -28(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
addsd (%rax,%rcx,8), %xmm0
movsd LCPI0_0(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -24(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movq -16(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $115200, %rcx, %rcx ## imm = 0x1C200
addq %rcx, %rax
movslq -32(%rbp), %rcx
imulq $960, %rcx, %rcx ## imm = 0x3C0
addq %rcx, %rax
movslq -28(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
## %bb.45: ## in Loop: Header=BB0_43 Depth=6
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_43
LBB0_46: ## in Loop: Header=BB0_38 Depth=5
jmp LBB0_47
LBB0_47: ## in Loop: Header=BB0_38 Depth=5
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB0_38
LBB0_48: ## in Loop: Header=BB0_36 Depth=4
jmp LBB0_49
LBB0_49: ## in Loop: Header=BB0_36 Depth=4
movl -36(%rbp), %eax
addl $32, %eax
movl %eax, -36(%rbp)
jmp LBB0_36
LBB0_50: ## in Loop: Header=BB0_31 Depth=3
jmp LBB0_51
LBB0_51: ## in Loop: Header=BB0_31 Depth=3
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_31
LBB0_52: ## in Loop: Header=BB0_29 Depth=2
jmp LBB0_53
LBB0_53: ## in Loop: Header=BB0_29 Depth=2
movl -44(%rbp), %eax
addl $16, %eax
movl %eax, -44(%rbp)
jmp LBB0_29
LBB0_54: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_55
LBB0_55: ## in Loop: Header=BB0_1 Depth=1
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
jmp LBB0_1
LBB0_56:
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/15761980.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
stp x29, x30, [sp, #128] ; 16-byte Folded Spill
add x29, sp, #128
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #16]
; kill: def $x8 killed $xzr
str xzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
add x0, sp, #20
mov w1, #100
bl _getword
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldrsb w0, [sp, #20]
bl _isalpha
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #8]
add x1, sp, #20
bl _addtree
str x0, [sp, #8]
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_5:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr x0, [sp, #8]
bl _treeprint
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_7
b LBB0_6
LBB0_6:
bl ___stack_chk_fail
LBB0_7:
mov w0, #0
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
add sp, sp, #144
ret
.cfi_endproc
; -- End function
.globl _getword ; -- Begin function getword
.p2align 2
_getword: ; @getword
.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 w1, [sp, #12]
ldr x8, [sp, #16]
str x8, [sp]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
bl _getch
str w0, [sp, #8]
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
b LBB1_1
LBB1_3:
ldr w8, [sp, #8]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4:
ldr w8, [sp, #8]
ldr x9, [sp]
add x10, x9, #1
str x10, [sp]
strb w8, [x9]
b LBB1_5
LBB1_5:
ldr w0, [sp, #8]
bl _isalpha
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB1_7
b LBB1_6
LBB1_6:
ldr x8, [sp]
strb wzr, [x8]
ldr w8, [sp, #8]
stur w8, [x29, #-4]
b LBB1_14
LBB1_7:
b LBB1_8
LBB1_8: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #1
str w8, [sp, #12]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB1_13
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_8 Depth=1
bl _getch
ldr x8, [sp]
strb w0, [x8]
sxtb w0, w0
bl _isalnum
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB1_11
b LBB1_10
LBB1_10:
ldr x8, [sp]
ldrsb w0, [x8]
bl _ungetch
b LBB1_13
LBB1_11: ; in Loop: Header=BB1_8 Depth=1
b LBB1_12
LBB1_12: ; in Loop: Header=BB1_8 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB1_8
LBB1_13:
ldr x8, [sp]
strb wzr, [x8]
ldr x8, [sp, #16]
ldrsb w8, [x8]
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 _addtree ; -- Begin function addtree
.p2align 2
_addtree: ; @addtree
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
str x1, [sp, #24]
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
bl _talloc
str x0, [sp, #16]
ldr x0, [sp, #24]
bl _mystrdup
ldr x8, [sp, #16]
str x0, [x8]
ldr x9, [sp, #16]
mov w8, #1
str w8, [x9, #8]
ldr x8, [sp, #16]
; kill: def $x9 killed $xzr
str xzr, [x8, #24]
ldr x8, [sp, #16]
str xzr, [x8, #16]
ldr x8, [sp, #16]
stur x8, [x29, #-8]
b LBB2_10
LBB2_2:
ldr x0, [sp, #24]
ldur x8, [x29, #-16]
ldr x1, [x8]
bl _strcmp
str w0, [sp, #12]
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3:
ldur x9, [x29, #-16]
ldr w8, [x9, #8]
add w8, w8, #1
str w8, [x9, #8]
b LBB2_8
LBB2_4:
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB2_6
b LBB2_5
LBB2_5:
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
ldr x1, [sp, #24]
bl _addtree
ldur x8, [x29, #-16]
str x0, [x8, #16]
b LBB2_7
LBB2_6:
ldur x8, [x29, #-16]
ldr x0, [x8, #24]
ldr x1, [sp, #24]
bl _addtree
ldur x8, [x29, #-16]
str x0, [x8, #24]
b LBB2_7
LBB2_7:
b LBB2_8
LBB2_8:
b LBB2_9
LBB2_9:
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 _treeprint ; -- Begin function treeprint
.p2align 2
_treeprint: ; @treeprint
.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, LBB3_2
b LBB3_1
LBB3_1:
ldur x8, [x29, #-8]
ldr x0, [x8, #16]
bl _treeprint
ldur x8, [x29, #-8]
ldr w8, [x8, #8]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-8]
ldr x8, [x8]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldr x0, [x8, #24]
bl _treeprint
b LBB3_2
LBB3_2:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _talloc ; -- Begin function talloc
.p2align 2
_talloc: ; @talloc
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, #32
bl _malloc
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _mystrdup ; -- Begin function mystrdup
.p2align 2
_mystrdup: ; @mystrdup
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _strlen
add x0, x0, #1
bl _malloc
str x0, [sp]
ldr x8, [sp]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
ldr x0, [sp]
ldr x1, [sp, #8]
mov x2, #-1
bl ___strcpy_chk
b LBB5_2
LBB5_2:
ldr x0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _getch ; -- Begin function getch
.p2align 2
_getch: ; @getch
.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, _bufp@PAGE
ldr w8, [x8, _bufp@PAGEOFF]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
adrp x8, _bufp@PAGE
ldr w9, [x8, _bufp@PAGEOFF]
subs w9, w9, #1
str w9, [x8, _bufp@PAGEOFF]
adrp x8, _buf@GOTPAGE
ldr x8, [x8, _buf@GOTPAGEOFF]
ldrsb w0, [x8, w9, sxtw]
stur w0, [x29, #-4] ; 4-byte Folded Spill
b LBB6_3
LBB6_2:
bl _getchar
stur w0, [x29, #-4] ; 4-byte Folded Spill
b LBB6_3
LBB6_3:
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
.globl _ungetch ; -- Begin function ungetch
.p2align 2
_ungetch: ; @ungetch
.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]
adrp x8, _bufp@PAGE
ldr w8, [x8, _bufp@PAGEOFF]
subs w8, w8, #100
cset w8, lt
tbnz w8, #0, LBB7_2
b LBB7_1
LBB7_1:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB7_3
LBB7_2:
ldur w8, [x29, #-4]
adrp x11, _bufp@PAGE
ldrsw x10, [x11, _bufp@PAGEOFF]
mov x9, x10
add w9, w9, #1
str w9, [x11, _bufp@PAGEOFF]
adrp x9, _buf@GOTPAGE
ldr x9, [x9, _buf@GOTPAGEOFF]
strb w8, [x9, x10]
b LBB7_3
LBB7_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 "the results are:\n"
l_.str.1: ; @.str.1
.asciz "%4d %s\n"
.globl _bufp ; @bufp
.zerofill __DATA,__common,_bufp,4,2
.comm _buf,100,0 ; @buf
l_.str.2: ; @.str.2
.asciz "ungetch:too much characters\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 $128, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -116(%rbp)
movq $0, -128(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
leaq -112(%rbp), %rdi
movl $100, %esi
callq _getword
cmpl $-1, %eax
je LBB0_5
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movsbl -112(%rbp), %edi
callq _isalpha
cmpl $0, %eax
je LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -128(%rbp), %rdi
leaq -112(%rbp), %rsi
callq _addtree
movq %rax, -128(%rbp)
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_5:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq -128(%rbp), %rdi
callq _treeprint
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_7
## %bb.6:
xorl %eax, %eax
addq $128, %rsp
popq %rbp
retq
LBB0_7:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _getword ## -- Begin function getword
.p2align 4, 0x90
_getword: ## @getword
.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)
movl %esi, -20(%rbp)
movq -16(%rbp), %rax
movq %rax, -32(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
callq _getch
movl %eax, %edi
movl %edi, -24(%rbp)
callq _isspace
cmpl $0, %eax
je LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_1
LBB1_3:
cmpl $-1, -24(%rbp)
je LBB1_5
## %bb.4:
movl -24(%rbp), %eax
movb %al, %cl
movq -32(%rbp), %rax
movq %rax, %rdx
addq $1, %rdx
movq %rdx, -32(%rbp)
movb %cl, (%rax)
LBB1_5:
movl -24(%rbp), %edi
callq _isalpha
cmpl $0, %eax
jne LBB1_7
## %bb.6:
movq -32(%rbp), %rax
movb $0, (%rax)
movl -24(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB1_14
LBB1_7:
jmp LBB1_8
LBB1_8: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
addl $-1, %eax
movl %eax, -20(%rbp)
cmpl $0, %eax
jle LBB1_13
## %bb.9: ## in Loop: Header=BB1_8 Depth=1
callq _getch
## kill: def $al killed $al killed $eax
movq -32(%rbp), %rcx
movb %al, (%rcx)
movsbl %al, %edi
callq _isalnum
cmpl $0, %eax
jne LBB1_11
## %bb.10:
movq -32(%rbp), %rax
movsbl (%rax), %edi
callq _ungetch
jmp LBB1_13
LBB1_11: ## in Loop: Header=BB1_8 Depth=1
jmp LBB1_12
LBB1_12: ## in Loop: Header=BB1_8 Depth=1
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB1_8
LBB1_13:
movq -32(%rbp), %rax
movb $0, (%rax)
movq -16(%rbp), %rax
movsbl (%rax), %eax
movl %eax, -4(%rbp)
LBB1_14:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _addtree ## -- Begin function addtree
.p2align 4, 0x90
_addtree: ## @addtree
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
cmpq $0, -16(%rbp)
jne LBB2_2
## %bb.1:
callq _talloc
movq %rax, -32(%rbp)
movq -24(%rbp), %rdi
callq _mystrdup
movq %rax, %rcx
movq -32(%rbp), %rax
movq %rcx, (%rax)
movq -32(%rbp), %rax
movl $1, 8(%rax)
movq -32(%rbp), %rax
movq $0, 24(%rax)
movq -32(%rbp), %rax
movq $0, 16(%rax)
movq -32(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB2_10
LBB2_2:
movq -24(%rbp), %rdi
movq -16(%rbp), %rax
movq (%rax), %rsi
callq _strcmp
movl %eax, -36(%rbp)
cmpl $0, %eax
jne LBB2_4
## %bb.3:
movq -16(%rbp), %rax
movl 8(%rax), %ecx
addl $1, %ecx
movl %ecx, 8(%rax)
jmp LBB2_8
LBB2_4:
cmpl $0, -36(%rbp)
jge LBB2_6
## %bb.5:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
movq -24(%rbp), %rsi
callq _addtree
movq %rax, %rcx
movq -16(%rbp), %rax
movq %rcx, 16(%rax)
jmp LBB2_7
LBB2_6:
movq -16(%rbp), %rax
movq 24(%rax), %rdi
movq -24(%rbp), %rsi
callq _addtree
movq %rax, %rcx
movq -16(%rbp), %rax
movq %rcx, 24(%rax)
LBB2_7:
jmp LBB2_8
LBB2_8:
jmp LBB2_9
LBB2_9:
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 _treeprint ## -- Begin function treeprint
.p2align 4, 0x90
_treeprint: ## @treeprint
.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 LBB3_2
## %bb.1:
movq -8(%rbp), %rax
movq 16(%rax), %rdi
callq _treeprint
movq -8(%rbp), %rax
movl 8(%rax), %esi
movq -8(%rbp), %rax
movq (%rax), %rdx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movq 24(%rax), %rdi
callq _treeprint
LBB3_2:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _talloc ## -- Begin function talloc
.p2align 4, 0x90
_talloc: ## @talloc
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $32, %edi
callq _malloc
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _mystrdup ## -- Begin function mystrdup
.p2align 4, 0x90
_mystrdup: ## @mystrdup
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
callq _strlen
movq %rax, %rdi
addq $1, %rdi
callq _malloc
movq %rax, -16(%rbp)
cmpq $0, -16(%rbp)
je LBB5_2
## %bb.1:
movq -16(%rbp), %rdi
movq -8(%rbp), %rsi
movq $-1, %rdx
callq ___strcpy_chk
LBB5_2:
movq -16(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _getch ## -- Begin function getch
.p2align 4, 0x90
_getch: ## @getch
.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, _bufp(%rip)
jle LBB6_2
## %bb.1:
movl _bufp(%rip), %eax
addl $-1, %eax
movl %eax, _bufp(%rip)
movslq %eax, %rcx
movq _buf@GOTPCREL(%rip), %rax
movsbl (%rax,%rcx), %eax
movl %eax, -4(%rbp) ## 4-byte Spill
jmp LBB6_3
LBB6_2:
callq _getchar
movl %eax, -4(%rbp) ## 4-byte Spill
LBB6_3:
movl -4(%rbp), %eax ## 4-byte Reload
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _ungetch ## -- Begin function ungetch
.p2align 4, 0x90
_ungetch: ## @ungetch
.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 $100, _bufp(%rip)
jl LBB7_2
## %bb.1:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB7_3
LBB7_2:
movl -4(%rbp), %eax
movb %al, %dl
movl _bufp(%rip), %eax
movl %eax, %ecx
addl $1, %ecx
movl %ecx, _bufp(%rip)
movslq %eax, %rcx
movq _buf@GOTPCREL(%rip), %rax
movb %dl, (%rax,%rcx)
LBB7_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "the results are:\n"
L_.str.1: ## @.str.1
.asciz "%4d %s\n"
.globl _bufp ## @bufp
.zerofill __DATA,__common,_bufp,4,2
.comm _buf,100,4 ## @buf
L_.str.2: ## @.str.2
.asciz "ungetch:too much characters\n"
.subsections_via_symbols
| the_stack_data/175142023.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mbtowc ; -- Begin function mbtowc
.p2align 2
_mbtowc: ; @mbtowc
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #16]
str x1, [sp, #8]
str x2, [sp]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
str wzr, [sp, #28]
b LBB0_7
LBB0_2:
ldr x8, [sp]
subs x8, x8, #0
cset w8, hi
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
str wzr, [sp, #28]
b LBB0_7
LBB0_4:
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x8, [sp, #8]
ldrsb w8, [x8]
ldr x9, [sp, #16]
str w8, [x9]
b LBB0_6
LBB0_6:
ldr x8, [sp, #8]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, ne
and w8, w8, #0x1
str w8, [sp, #28]
b LBB0_7
LBB0_7:
ldr w0, [sp, #28]
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 _mbtowc ## -- Begin function mbtowc
.p2align 4, 0x90
_mbtowc: ## @mbtowc
.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)
cmpq $0, -24(%rbp)
jne LBB0_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB0_7
LBB0_2:
cmpq $0, -32(%rbp)
ja LBB0_4
## %bb.3:
movl $0, -4(%rbp)
jmp LBB0_7
LBB0_4:
cmpq $0, -16(%rbp)
je LBB0_6
## %bb.5:
movq -24(%rbp), %rax
movsbl (%rax), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
LBB0_6:
movq -24(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
setne %al
andb $1, %al
movzbl %al, %eax
movl %eax, -4(%rbp)
LBB0_7:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/113532.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _isValidBST ; -- Begin function isValidBST
.p2align 2
_isValidBST: ; @isValidBST
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
.cfi_offset w27, -8
.cfi_offset w28, -16
str x30, [sp, #-16]!
mov w9, #14528
movk w9, #1, lsl #16
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldr x30, [sp], #16
sub sp, sp, #19, lsl #12 ; =77824
.cfi_def_cfa_offset 77840
sub sp, sp, #2240
.cfi_def_cfa_offset 80080
add x8, sp, #19, lsl #12 ; =77824
add x8, x8, #2208
str x8, [sp, #8] ; 8-byte Folded Spill
str x0, [x8, #16]
mov w9, #1
strb w9, [sp, #23]
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x9, [sp, #8] ; 8-byte Folded Reload
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [x9, #31]
b LBB0_15
LBB0_2:
ldr x9, [sp, #8] ; 8-byte Folded Reload
mov x11, #14464
movk x11, #1, lsl #16
add x10, sp, #24
mov x8, #0
str x8, [x10, x11]
; kill: def $x8 killed $xzr
str xzr, [x9]
ldr x8, [x9, #16]
str x8, [x9, #8]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x9, #8]
mov x12, #14464
movk x12, #1, lsl #16
add x10, sp, #24
mov x11, x10
add x13, x11, x12
ldr x11, [x13]
add x12, x11, #1
str x12, [x13]
str x8, [x10, x11, lsl #3]
ldr x8, [x9, #8]
ldr x8, [x8, #8]
str x8, [x9, #8]
b LBB0_11
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
mov x9, #14464
movk x9, #1, lsl #16
add x8, sp, #24
ldr x8, [x8, x9]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x11, #14464
movk x11, #1, lsl #16
add x9, sp, #24
mov x10, x9
add x11, x10, x11
ldr x10, [x11]
subs x10, x10, #1
str x10, [x11]
ldr x9, [x9, x10, lsl #3]
str x9, [x8, #8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x9]
ldr w8, [x8]
ldr x9, [x9, #8]
ldr w9, [x9]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldr x9, [sp, #8] ; 8-byte Folded Reload
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [x9, #31]
b LBB0_15
LBB0_9: ; in Loop: Header=BB0_3 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x9, #8]
str x8, [x9]
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_3 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x9, #8]
ldr x8, [x8, #16]
str x8, [x9, #8]
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
mov w9, #1
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_3 Depth=1
mov x9, #14464
movk x9, #1, lsl #16
add x8, sp, #24
ldr x8, [x8, x9]
subs x8, x8, #0
cset w8, ne
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
tbnz w8, #0, LBB0_3
b LBB0_14
LBB0_14:
ldr x9, [sp, #8] ; 8-byte Folded Reload
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [x9, #31]
b LBB0_15
LBB0_15:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldrb w8, [x8, #31]
and w0, w8, #0x1
add sp, sp, #19, lsl #12 ; =77824
add sp, sp, #2240
ldp x28, x27, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #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
mov w8, #0
str w8, [sp, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x8, l___const.main.t1@PAGE
add x8, x8, l___const.main.t1@PAGEOFF
ldr q0, [x8]
sub x9, x29, #32
stur q0, [x29, #-32]
ldr x8, [x8, #16]
stur x8, [x29, #-16]
adrp x8, l___const.main.t2@PAGE
add x8, x8, l___const.main.t2@PAGEOFF
ldr q0, [x8]
sub x0, x29, #64
stur q0, [x29, #-64]
ldr x8, [x8, #16]
stur x8, [x29, #-48]
adrp x10, l___const.main.t3@PAGE
add x10, x10, l___const.main.t3@PAGEOFF
ldr q0, [x10]
sub x8, x29, #96
stur q0, [x29, #-96]
ldr x10, [x10, #16]
stur x10, [x29, #-80]
adrp x10, l___const.main.t4@PAGE
add x10, x10, l___const.main.t4@PAGEOFF
ldr q0, [x10]
str q0, [sp, #80]
ldr x10, [x10, #16]
str x10, [sp, #96]
adrp x10, l___const.main.t5@PAGE
add x10, x10, l___const.main.t5@PAGEOFF
ldr q0, [x10]
str q0, [sp, #48]
ldr x10, [x10, #16]
str x10, [sp, #64]
adrp x10, l___const.main.t6@PAGE
add x10, x10, l___const.main.t6@PAGEOFF
ldr q0, [x10]
str q0, [sp, #16]
ldr x10, [x10, #16]
str x10, [sp, #32]
stur x9, [x29, #-56]
stur x8, [x29, #-48]
bl _isValidBST
mov w8, #1
and w8, w0, w8
sturb w8, [x29, #-5]
ldurb w8, [x29, #-5]
and w10, w8, #0x1
adrp x9, l_.str.2@PAGE
add x9, x9, l_.str.2@PAGEOFF
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
ands w10, w10, #0x1
csel x8, x8, x9, ne
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr w0, [sp, #12] ; 4-byte Folded Reload
ldp x29, x30, [sp, #208] ; 16-byte Folded Reload
add sp, sp, #224
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 3 ; @__const.main.t1
l___const.main.t1:
.long 1 ; 0x1
.space 4
.quad 0
.quad 0
.p2align 3 ; @__const.main.t2
l___const.main.t2:
.long 2 ; 0x2
.space 4
.quad 0
.quad 0
.p2align 3 ; @__const.main.t3
l___const.main.t3:
.long 3 ; 0x3
.space 4
.quad 0
.quad 0
.p2align 3 ; @__const.main.t4
l___const.main.t4:
.long 4 ; 0x4
.space 4
.quad 0
.quad 0
.p2align 3 ; @__const.main.t5
l___const.main.t5:
.long 5 ; 0x5
.space 4
.quad 0
.quad 0
.p2align 3 ; @__const.main.t6
l___const.main.t6:
.long 6 ; 0x6
.space 4
.quad 0
.quad 0
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "is valid BST : %s\n"
l_.str.1: ; @.str.1
.asciz "true"
l_.str.2: ; @.str.2
.asciz "false"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _isValidBST ## -- Begin function isValidBST
.p2align 4, 0x90
_isValidBST: ## @isValidBST
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $80048, %eax ## imm = 0x138B0
callq ____chkstk_darwin
subq %rax, %rsp
movq %rdi, -16(%rbp)
movb $1, -80041(%rbp)
cmpq $0, -16(%rbp)
jne LBB0_2
## %bb.1:
movb $1, -1(%rbp)
jmp LBB0_15
LBB0_2:
movq $0, -40(%rbp)
movq $0, -32(%rbp)
movq -16(%rbp), %rax
movq %rax, -24(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
cmpq $0, -24(%rbp)
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -24(%rbp), %rcx
movq -40(%rbp), %rax
movq %rax, %rdx
addq $1, %rdx
movq %rdx, -40(%rbp)
movq %rcx, -80040(%rbp,%rax,8)
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
jmp LBB0_11
LBB0_5: ## in Loop: Header=BB0_3 Depth=1
cmpq $0, -40(%rbp)
je LBB0_10
## %bb.6: ## in Loop: Header=BB0_3 Depth=1
movq -40(%rbp), %rax
movq %rax, %rcx
addq $-1, %rcx
movq %rcx, -40(%rbp)
movq -80048(%rbp,%rax,8), %rax
movq %rax, -24(%rbp)
cmpq $0, -32(%rbp)
je LBB0_9
## %bb.7: ## in Loop: Header=BB0_3 Depth=1
movq -32(%rbp), %rax
movl (%rax), %eax
movq -24(%rbp), %rcx
cmpl (%rcx), %eax
jl LBB0_9
## %bb.8:
movb $0, -1(%rbp)
jmp LBB0_15
LBB0_9: ## in Loop: Header=BB0_3 Depth=1
movq -24(%rbp), %rax
movq %rax, -32(%rbp)
LBB0_10: ## in Loop: Header=BB0_3 Depth=1
movq -24(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -24(%rbp)
LBB0_11: ## in Loop: Header=BB0_3 Depth=1
movb $1, %al
cmpq $0, -24(%rbp)
movb %al, -80042(%rbp) ## 1-byte Spill
jne LBB0_13
## %bb.12: ## in Loop: Header=BB0_3 Depth=1
cmpq $0, -40(%rbp)
sete %al
xorb $-1, %al
movb %al, -80042(%rbp) ## 1-byte Spill
LBB0_13: ## in Loop: Header=BB0_3 Depth=1
movb -80042(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_3
## %bb.14:
movb $1, -1(%rbp)
LBB0_15:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
addq $80048, %rsp ## imm = 0x138B0
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $160, %rsp
movl $0, -4(%rbp)
movq l___const.main.t1(%rip), %rax
movq %rax, -32(%rbp)
movq l___const.main.t1+8(%rip), %rax
movq %rax, -24(%rbp)
movq l___const.main.t1+16(%rip), %rax
movq %rax, -16(%rbp)
movq l___const.main.t2(%rip), %rax
movq %rax, -56(%rbp)
movq l___const.main.t2+8(%rip), %rax
movq %rax, -48(%rbp)
movq l___const.main.t2+16(%rip), %rax
movq %rax, -40(%rbp)
movq l___const.main.t3(%rip), %rax
movq %rax, -80(%rbp)
movq l___const.main.t3+8(%rip), %rax
movq %rax, -72(%rbp)
movq l___const.main.t3+16(%rip), %rax
movq %rax, -64(%rbp)
movq l___const.main.t4(%rip), %rax
movq %rax, -104(%rbp)
movq l___const.main.t4+8(%rip), %rax
movq %rax, -96(%rbp)
movq l___const.main.t4+16(%rip), %rax
movq %rax, -88(%rbp)
movq l___const.main.t5(%rip), %rax
movq %rax, -128(%rbp)
movq l___const.main.t5+8(%rip), %rax
movq %rax, -120(%rbp)
movq l___const.main.t5+16(%rip), %rax
movq %rax, -112(%rbp)
movq l___const.main.t6(%rip), %rax
movq %rax, -152(%rbp)
movq l___const.main.t6+8(%rip), %rax
movq %rax, -144(%rbp)
movq l___const.main.t6+16(%rip), %rax
movq %rax, -136(%rbp)
leaq -32(%rbp), %rax
movq %rax, -48(%rbp)
leaq -80(%rbp), %rax
movq %rax, -40(%rbp)
leaq -56(%rbp), %rdi
callq _isValidBST
andb $1, %al
movb %al, -5(%rbp)
movb -5(%rbp), %cl
leaq L_.str.2(%rip), %rsi
leaq L_.str.1(%rip), %rax
testb $1, %cl
cmovneq %rax, %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $160, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 3 ## @__const.main.t1
l___const.main.t1:
.long 1 ## 0x1
.space 4
.quad 0
.quad 0
.p2align 3 ## @__const.main.t2
l___const.main.t2:
.long 2 ## 0x2
.space 4
.quad 0
.quad 0
.p2align 3 ## @__const.main.t3
l___const.main.t3:
.long 3 ## 0x3
.space 4
.quad 0
.quad 0
.p2align 3 ## @__const.main.t4
l___const.main.t4:
.long 4 ## 0x4
.space 4
.quad 0
.quad 0
.p2align 3 ## @__const.main.t5
l___const.main.t5:
.long 5 ## 0x5
.space 4
.quad 0
.quad 0
.p2align 3 ## @__const.main.t6
l___const.main.t6:
.long 6 ## 0x6
.space 4
.quad 0
.quad 0
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "is valid BST : %s\n"
L_.str.1: ## @.str.1
.asciz "true"
L_.str.2: ## @.str.2
.asciz "false"
.subsections_via_symbols
| the_stack_data/32951483.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mul ; -- Begin function mul
.p2align 2
_mul: ; @mul
.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, #-8]
stur w1, [x29, #-12]
ldur w8, [x29, #-8]
subs w8, w8, #11
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
stur wzr, [x29, #-4]
b LBB0_4
LBB0_2:
ldur w8, [x29, #-12]
; implicit-def: $x11
mov x11, x8
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-12]
ldur w10, [x29, #-8]
mul w10, w9, w10
mov x9, sp
str x11, [x9]
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB0_3
LBB0_3:
ldur w8, [x29, #-8]
add w0, w8, #1
stur w0, [x29, #-8]
ldur w1, [x29, #-12]
bl _mul
b LBB0_4
LBB0_4:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
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.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #4
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
ldur w1, [x29, #-4]
mov w0, #1
bl _mul
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d * %d=%d\n"
l_.str.1: ; @.str.1
.asciz "Enter the number to get table:"
l_.str.2: ; @.str.2
.asciz "%d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.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
subq $16, %rsp
movl %edi, -8(%rbp)
movl %esi, -12(%rbp)
cmpl $11, -8(%rbp)
jne LBB0_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB0_4
LBB0_2:
movl -12(%rbp), %esi
movl -8(%rbp), %edx
movl -12(%rbp), %ecx
imull -8(%rbp), %ecx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3:
movl -8(%rbp), %edi
addl $1, %edi
movl %edi, -8(%rbp)
movl -12(%rbp), %esi
callq _mul
LBB0_4:
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
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
leaq -4(%rbp), %rsi
movb $0, %al
callq _scanf
movl -4(%rbp), %esi
movl $1, %edi
callq _mul
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d * %d=%d\n"
L_.str.1: ## @.str.1
.asciz "Enter the number to get table:"
L_.str.2: ## @.str.2
.asciz "%d"
.subsections_via_symbols
| the_stack_data/168893012.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 calculateScaleRange
lCPI0_0:
.quad 0x4059000000000000 ; double 100
.section __TEXT,__text,regular,pure_instructions
.globl _calculateScaleRange
.p2align 2
_calculateScaleRange: ; @calculateScaleRange
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str s0, [sp, #28]
str s1, [sp, #24]
str s2, [sp, #20]
str s3, [sp, #16]
str s4, [sp, #12]
str w0, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr s0, [sp, #20]
fcvt d1, s0
fmov d0, #1.00000000
fdiv d1, d0, d1
fcvt s1, d1
str s1, [sp, #4]
ldr s1, [sp, #24]
fcvt d1, s1
fdiv d0, d0, d1
fcvt s0, d0
str s0, [sp]
b LBB0_3
LBB0_2:
ldr s0, [sp, #24]
str s0, [sp, #4]
ldr s0, [sp, #20]
str s0, [sp]
b LBB0_3
LBB0_3:
ldr s0, [sp, #28]
adrp x8, _percentualeIncremento@PAGE
str s0, [x8, _percentualeIncremento@PAGEOFF]
adrp x9, _minScaleFactor@PAGE
movi d0, #0000000000000000
str s0, [x9, _minScaleFactor@PAGEOFF]
ldr s0, [x8, _percentualeIncremento@PAGEOFF]
fcvt d1, s0
adrp x8, lCPI0_0@PAGE
ldr d0, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
ldr s1, [sp]
ldr s2, [sp, #4]
fsub s1, s1, s2
fcvt d1, s1
fmul d0, d0, d1
ldr s1, [sp, #12]
ldr s2, [sp, #16]
fsub s1, s1, s2
fcvt d1, s1
fdiv d0, d0, d1
fcvt s0, d0
adrp x8, _maxScaleFactor@PAGE
str s0, [x8, _maxScaleFactor@PAGEOFF]
ldr s2, [sp, #4]
ldr s0, [sp, #16]
ldr s1, [x8, _maxScaleFactor@PAGEOFF]
fmsub s0, s0, s1, s2
adrp x8, _minShiftFactor@PAGE
str s0, [x8, _minShiftFactor@PAGEOFF]
ldr s0, [sp]
adrp x8, _maxShiftFactor@PAGE
str s0, [x8, _maxShiftFactor@PAGEOFF]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _setScaleRange ; -- Begin function setScaleRange
.p2align 2
_setScaleRange: ; @setScaleRange
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str s0, [sp, #28]
str s1, [sp, #24]
str s2, [sp, #20]
str s3, [sp, #16]
str s4, [sp, #12]
ldr s0, [sp, #28]
adrp x8, _percentualeIncremento@PAGE
str s0, [x8, _percentualeIncremento@PAGEOFF]
ldr s0, [sp, #24]
adrp x8, _minScaleFactor@PAGE
str s0, [x8, _minScaleFactor@PAGEOFF]
ldr s0, [sp, #20]
adrp x8, _maxScaleFactor@PAGE
str s0, [x8, _maxScaleFactor@PAGEOFF]
ldr s0, [sp, #16]
adrp x8, _minShiftFactor@PAGE
str s0, [x8, _minShiftFactor@PAGEOFF]
ldr s0, [sp, #12]
adrp x8, _maxShiftFactor@PAGE
str s0, [x8, _maxShiftFactor@PAGEOFF]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl __checkScaleRange ; -- Begin function _checkScaleRange
.p2align 2
__checkScaleRange: ; @_checkScaleRange
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str s0, [sp, #28]
str s1, [sp, #24]
adrp x8, _minScaleFactor@PAGE
ldr s0, [x8, _minScaleFactor@PAGEOFF]
ldr s1, [sp, #28]
fcmp s0, s1
cset w8, hi
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldr s0, [sp, #28]
adrp x8, _maxScaleFactor@PAGE
ldr s1, [x8, _maxScaleFactor@PAGEOFF]
fcmp s0, s1
cset w8, ls
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB2_2
LBB2_2:
ldr w8, [sp, #12] ; 4-byte Folded Reload
and w8, w8, #0x1
str w8, [sp, #20]
adrp x8, _minShiftFactor@PAGE
ldr s0, [x8, _minShiftFactor@PAGEOFF]
ldr s1, [sp, #24]
fcmp s0, s1
cset w8, hi
mov w9, #0
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3:
ldr s0, [sp, #24]
adrp x8, _maxShiftFactor@PAGE
ldr s1, [x8, _maxShiftFactor@PAGEOFF]
fcmp s0, s1
cset w8, ls
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB2_4
LBB2_4:
ldr w8, [sp, #8] ; 4-byte Folded Reload
and w8, w8, #0x1
str w8, [sp, #16]
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB2_6
b LBB2_5
LBB2_5:
ldr w8, [sp, #16]
subs w8, w8, #0
cset w8, ne
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB2_6
LBB2_6:
ldr w8, [sp, #4] ; 4-byte Folded Reload
and w0, w8, #0x1
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _initSeed ; -- Begin function initSeed
.p2align 2
_initSeed: ; @initSeed
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, #0
bl _time
; kill: def $w0 killed $w0 killed $x0
bl _srand
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl __assoluto ; -- Begin function _assoluto
.p2align 2
__assoluto: ; @_assoluto
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str s0, [sp, #8]
ldr s0, [sp, #8]
fcvt d0, s0
fcmp d0, #0.0
cset w8, pl
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
ldr s0, [sp, #8]
fneg s0, s0
str s0, [sp, #12]
b LBB4_3
LBB4_2:
ldr s0, [sp, #8]
str s0, [sp, #12]
b LBB4_3
LBB4_3:
ldr s0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function ransacMethod
lCPI5_0:
.quad 0x4059000000000000 ; double 100
.section __TEXT,__text,regular,pure_instructions
.globl _ransacMethod
.p2align 2
_ransacMethod: ; @ransacMethod
.cfi_startproc
; %bb.0:
sub sp, sp, #208
.cfi_def_cfa_offset 208
stp x29, x30, [sp, #192] ; 16-byte Folded Spill
add x29, sp, #192
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur w2, [x29, #-20]
stur w3, [x29, #-24]
stur w4, [x29, #-28]
stur w5, [x29, #-32]
stur s0, [x29, #-36]
stur x6, [x29, #-48]
ldursw x0, [x29, #-28]
mov x1, #4
bl _calloc
stur x0, [x29, #-56]
stur wzr, [x29, #-60]
stur wzr, [x29, #-64]
stur wzr, [x29, #-68]
b LBB5_1
LBB5_1: ; =>This Loop Header: Depth=1
; Child Loop BB5_3 Depth 2
; Child Loop BB5_13 Depth 2
; Child Loop BB5_21 Depth 2
ldur w8, [x29, #-68]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_30
b LBB5_2
LBB5_2: ; in Loop: Header=BB5_1 Depth=1
movi d0, #0000000000000000
stur s0, [x29, #-72]
stur s0, [x29, #-76]
stur wzr, [x29, #-80]
stur wzr, [x29, #-84]
b LBB5_3
LBB5_3: ; Parent Loop BB5_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-84]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, ge
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB5_5
b LBB5_4
LBB5_4: ; in Loop: Header=BB5_3 Depth=2
ldur w8, [x29, #-80]
subs w8, w8, #0
cset w8, eq
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB5_5
LBB5_5: ; in Loop: Header=BB5_3 Depth=2
ldr w8, [sp, #4] ; 4-byte Folded Reload
tbz w8, #0, LBB5_10
b LBB5_6
LBB5_6: ; in Loop: Header=BB5_3 Depth=2
bl _rand
ldur w9, [x29, #-28]
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
stur w8, [x29, #-88]
bl _rand
ldur w9, [x29, #-28]
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
stur w8, [x29, #-92]
ldur x8, [x29, #-16]
ldur w10, [x29, #-88]
mov w9, #3
mul w10, w9, w10
add w10, w10, #2
ldr s0, [x8, w10, sxtw #2]
str s0, [sp, #96]
ldur x8, [x29, #-16]
ldur w10, [x29, #-88]
mul w10, w9, w10
add w10, w10, #0
ldr s0, [x8, w10, sxtw #2]
fcvtzs w8, s0
str w8, [sp, #92]
ldur x8, [x29, #-16]
ldur w10, [x29, #-88]
mul w10, w9, w10
add w10, w10, #1
ldr s0, [x8, w10, sxtw #2]
fcvtzs w8, s0
str w8, [sp, #88]
ldur x8, [x29, #-8]
ldr w10, [sp, #88]
ldur w11, [x29, #-24]
mul w10, w10, w11
ldr w11, [sp, #92]
add w10, w10, w11
ldr s0, [x8, w10, sxtw #2]
str s0, [sp, #84]
ldur x8, [x29, #-16]
ldur w10, [x29, #-92]
mul w10, w9, w10
add w10, w10, #2
ldr s0, [x8, w10, sxtw #2]
str s0, [sp, #80]
ldur x8, [x29, #-16]
ldur w10, [x29, #-92]
mul w10, w9, w10
add w10, w10, #0
ldr s0, [x8, w10, sxtw #2]
fcvtzs w8, s0
str w8, [sp, #76]
ldur x8, [x29, #-16]
ldur w10, [x29, #-92]
mul w9, w9, w10
add w9, w9, #1
ldr s0, [x8, w9, sxtw #2]
fcvtzs w8, s0
str w8, [sp, #72]
ldur x8, [x29, #-8]
ldr w9, [sp, #72]
ldur w10, [x29, #-24]
mul w9, w9, w10
ldr w10, [sp, #76]
add w9, w9, w10
ldr s0, [x8, w9, sxtw #2]
str s0, [sp, #68]
ldr s0, [sp, #68]
ldr s1, [sp, #84]
fsub s0, s0, s1
bl __assoluto
fcvt d0, s0
adrp x8, _percentualeIncremento@PAGE
ldr s1, [x8, _percentualeIncremento@PAGEOFF]
fcvt d1, s1
adrp x8, lCPI5_0@PAGE
ldr d2, [x8, lCPI5_0@PAGEOFF]
fdiv d1, d1, d2
fcmp d0, d1
cset w8, le
tbnz w8, #0, LBB5_8
b LBB5_7
LBB5_7: ; in Loop: Header=BB5_3 Depth=2
ldr s0, [sp, #96]
ldr s1, [sp, #80]
fsub s0, s0, s1
ldr s1, [sp, #84]
ldr s2, [sp, #68]
fsub s1, s1, s2
fdiv s0, s0, s1
stur s0, [x29, #-72]
ldr s2, [sp, #96]
ldr s0, [sp, #84]
ldur s1, [x29, #-72]
fmsub s0, s0, s1, s2
stur s0, [x29, #-76]
ldur s0, [x29, #-72]
ldur s1, [x29, #-76]
bl __checkScaleRange
stur w0, [x29, #-80]
b LBB5_8
LBB5_8: ; in Loop: Header=BB5_3 Depth=2
b LBB5_9
LBB5_9: ; in Loop: Header=BB5_3 Depth=2
ldur w8, [x29, #-84]
add w8, w8, #1
stur w8, [x29, #-84]
b LBB5_3
LBB5_10: ; in Loop: Header=BB5_1 Depth=1
ldur w8, [x29, #-80]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB5_12
b LBB5_11
LBB5_11:
ldur s0, [x29, #-72]
ldur x8, [x29, #-48]
str s0, [x8]
ldur s0, [x29, #-76]
ldur x8, [x29, #-48]
str s0, [x8, #4]
ldur x8, [x29, #-48]
str wzr, [x8, #8]
ldur x0, [x29, #-56]
bl _free
b LBB5_31
LBB5_12: ; in Loop: Header=BB5_1 Depth=1
stur wzr, [x29, #-60]
mov w8, #2139095039
fmov s0, w8
str s0, [sp, #64]
mov w8, #8388608
fmov s0, w8
str s0, [sp, #60]
str wzr, [sp, #56]
b LBB5_13
LBB5_13: ; Parent Loop BB5_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #56]
ldur w9, [x29, #-28]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_20
b LBB5_14
LBB5_14: ; in Loop: Header=BB5_13 Depth=2
ldur x8, [x29, #-16]
ldr w10, [sp, #56]
mov w9, #3
mul w10, w9, w10
add w10, w10, #2
ldr s0, [x8, w10, sxtw #2]
str s0, [sp, #52]
ldur x8, [x29, #-16]
ldr w10, [sp, #56]
mul w10, w9, w10
add w10, w10, #0
ldr s0, [x8, w10, sxtw #2]
fcvtzs w8, s0
str w8, [sp, #48]
ldur x8, [x29, #-16]
ldr w10, [sp, #56]
mul w9, w9, w10
add w9, w9, #1
ldr s0, [x8, w9, sxtw #2]
fcvtzs w8, s0
str w8, [sp, #44]
ldur x8, [x29, #-8]
ldr w9, [sp, #44]
ldur w10, [x29, #-24]
mul w9, w9, w10
ldr w10, [sp, #48]
add w9, w9, w10
ldr s0, [x8, w9, sxtw #2]
str s0, [sp, #40]
ldr s0, [sp, #40]
ldur s1, [x29, #-72]
ldur s2, [x29, #-76]
fmadd s0, s0, s1, s2
ldr s1, [sp, #52]
fsub s0, s0, s1
fcvt d0, s0
fmov d1, #2.00000000
bl _pow
fcvt s0, d0
str s0, [sp, #36]
ldr s0, [sp, #36]
ldr s1, [sp, #64]
fcmp s0, s1
cset w8, pl
tbnz w8, #0, LBB5_16
b LBB5_15
LBB5_15: ; in Loop: Header=BB5_13 Depth=2
ldr s0, [sp, #36]
str s0, [sp, #64]
b LBB5_16
LBB5_16: ; in Loop: Header=BB5_13 Depth=2
ldr s0, [sp, #36]
ldr s1, [sp, #60]
fcmp s0, s1
cset w8, le
tbnz w8, #0, LBB5_18
b LBB5_17
LBB5_17: ; in Loop: Header=BB5_13 Depth=2
ldr s0, [sp, #36]
str s0, [sp, #60]
b LBB5_18
LBB5_18: ; in Loop: Header=BB5_13 Depth=2
b LBB5_19
LBB5_19: ; in Loop: Header=BB5_13 Depth=2
ldr w8, [sp, #56]
add w8, w8, #1
str w8, [sp, #56]
b LBB5_13
LBB5_20: ; in Loop: Header=BB5_1 Depth=1
str wzr, [sp, #32]
b LBB5_21
LBB5_21: ; Parent Loop BB5_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #32]
ldur w9, [x29, #-28]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_26
b LBB5_22
LBB5_22: ; in Loop: Header=BB5_21 Depth=2
ldur x8, [x29, #-16]
ldr w10, [sp, #32]
mov w9, #3
mul w10, w9, w10
add w10, w10, #2
ldr s0, [x8, w10, sxtw #2]
str s0, [sp, #28]
ldur x8, [x29, #-16]
ldr w10, [sp, #32]
mul w10, w9, w10
add w10, w10, #0
ldr s0, [x8, w10, sxtw #2]
fcvtzs w8, s0
str w8, [sp, #24]
ldur x8, [x29, #-16]
ldr w10, [sp, #32]
mul w9, w9, w10
add w9, w9, #1
ldr s0, [x8, w9, sxtw #2]
fcvtzs w8, s0
str w8, [sp, #20]
ldur x8, [x29, #-8]
ldr w9, [sp, #20]
ldur w10, [x29, #-24]
mul w9, w9, w10
ldr w10, [sp, #24]
add w9, w9, w10
ldr s0, [x8, w9, sxtw #2]
str s0, [sp, #16]
ldr s0, [sp, #16]
ldur s1, [x29, #-72]
ldur s2, [x29, #-76]
fmadd s0, s0, s1, s2
ldr s1, [sp, #28]
fsub s0, s0, s1
fcvt d0, s0
fmov d1, #2.00000000
bl _pow
fcvt s0, d0
str s0, [sp, #12]
ldr s0, [sp, #12]
ldr s1, [sp, #64]
fsub s0, s0, s1
ldr s1, [sp, #60]
ldr s2, [sp, #64]
fsub s1, s1, s2
fdiv s0, s0, s1
str s0, [sp, #8]
ldr s0, [sp, #8]
ldur s1, [x29, #-36]
fcmp s0, s1
cset w8, pl
tbnz w8, #0, LBB5_24
b LBB5_23
LBB5_23: ; in Loop: Header=BB5_21 Depth=2
ldr w8, [sp, #32]
ldur x9, [x29, #-56]
ldursw x10, [x29, #-60]
mov x11, x10
add w11, w11, #1
stur w11, [x29, #-60]
str w8, [x9, x10, lsl #2]
b LBB5_24
LBB5_24: ; in Loop: Header=BB5_21 Depth=2
b LBB5_25
LBB5_25: ; in Loop: Header=BB5_21 Depth=2
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB5_21
LBB5_26: ; in Loop: Header=BB5_1 Depth=1
ldur w8, [x29, #-60]
ldur w9, [x29, #-64]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB5_28
b LBB5_27
LBB5_27: ; in Loop: Header=BB5_1 Depth=1
ldur s0, [x29, #-72]
ldur x8, [x29, #-48]
str s0, [x8]
ldur s0, [x29, #-76]
ldur x8, [x29, #-48]
str s0, [x8, #4]
ldur x9, [x29, #-48]
mov w8, #1
str w8, [x9, #8]
ldur w8, [x29, #-60]
stur w8, [x29, #-64]
b LBB5_28
LBB5_28: ; in Loop: Header=BB5_1 Depth=1
b LBB5_29
LBB5_29: ; in Loop: Header=BB5_1 Depth=1
ldur w8, [x29, #-68]
add w8, w8, #1
stur w8, [x29, #-68]
b LBB5_1
LBB5_30:
ldur x0, [x29, #-56]
bl _free
b LBB5_31
LBB5_31:
ldp x29, x30, [sp, #192] ; 16-byte Folded Reload
add sp, sp, #208
ret
.cfi_endproc
; -- End function
.globl _percentualeIncremento ; @percentualeIncremento
.zerofill __DATA,__common,_percentualeIncremento,4,2
.globl _minScaleFactor ; @minScaleFactor
.zerofill __DATA,__common,_minScaleFactor,4,2
.globl _maxScaleFactor ; @maxScaleFactor
.zerofill __DATA,__common,_maxScaleFactor,4,2
.globl _minShiftFactor ; @minShiftFactor
.zerofill __DATA,__common,_minShiftFactor,4,2
.globl _maxShiftFactor ; @maxShiftFactor
.zerofill __DATA,__common,_maxShiftFactor,4,2
.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 calculateScaleRange
LCPI0_0:
.quad 0x3ff0000000000000 ## double 1
LCPI0_1:
.quad 0x4059000000000000 ## double 100
.section __TEXT,__text,regular,pure_instructions
.globl _calculateScaleRange
.p2align 4, 0x90
_calculateScaleRange: ## @calculateScaleRange
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movss %xmm0, -4(%rbp)
movss %xmm1, -8(%rbp)
movss %xmm2, -12(%rbp)
movss %xmm3, -16(%rbp)
movss %xmm4, -20(%rbp)
movl %edi, -24(%rbp)
cmpl $1, -24(%rbp)
jne LBB0_2
## %bb.1:
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm1
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -28(%rbp)
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm1
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -32(%rbp)
jmp LBB0_3
LBB0_2:
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -28(%rbp)
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -32(%rbp)
LBB0_3:
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, _percentualeIncremento(%rip)
xorps %xmm0, %xmm0
movss %xmm0, _minScaleFactor(%rip)
movss _percentualeIncremento(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm1
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
divsd %xmm1, %xmm0
movss -32(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
subss -28(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
subss -16(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, _maxScaleFactor(%rip)
movss -28(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss _maxScaleFactor(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movd %xmm0, %eax
xorl $2147483648, %eax ## imm = 0x80000000
movd %eax, %xmm0
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, _minShiftFactor(%rip)
movss -32(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, _maxShiftFactor(%rip)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _setScaleRange ## -- Begin function setScaleRange
.p2align 4, 0x90
_setScaleRange: ## @setScaleRange
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movss %xmm0, -4(%rbp)
movss %xmm1, -8(%rbp)
movss %xmm2, -12(%rbp)
movss %xmm3, -16(%rbp)
movss %xmm4, -20(%rbp)
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, _percentualeIncremento(%rip)
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, _minScaleFactor(%rip)
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, _maxScaleFactor(%rip)
movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, _minShiftFactor(%rip)
movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, _maxShiftFactor(%rip)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl __checkScaleRange ## -- Begin function _checkScaleRange
.p2align 4, 0x90
__checkScaleRange: ## @_checkScaleRange
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movss %xmm0, -4(%rbp)
movss %xmm1, -8(%rbp)
movss _minScaleFactor(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
xorl %eax, %eax
## kill: def $al killed $al killed $eax
ucomiss %xmm1, %xmm0
movb %al, -17(%rbp) ## 1-byte Spill
jb LBB2_2
## %bb.1:
movss -4(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss _maxScaleFactor(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
setae %al
movb %al, -17(%rbp) ## 1-byte Spill
LBB2_2:
movb -17(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
movl %eax, -12(%rbp)
movss _minShiftFactor(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
xorl %eax, %eax
## kill: def $al killed $al killed $eax
ucomiss %xmm1, %xmm0
movb %al, -18(%rbp) ## 1-byte Spill
jb LBB2_4
## %bb.3:
movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss _maxShiftFactor(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
setae %al
movb %al, -18(%rbp) ## 1-byte Spill
LBB2_4:
movb -18(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
movl %eax, -16(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, -12(%rbp)
movb %al, -19(%rbp) ## 1-byte Spill
je LBB2_6
## %bb.5:
cmpl $0, -16(%rbp)
setne %al
movb %al, -19(%rbp) ## 1-byte Spill
LBB2_6:
movb -19(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _initSeed ## -- Begin function initSeed
.p2align 4, 0x90
_initSeed: ## @initSeed
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %eax, %eax
movl %eax, %edi
callq _time
movl %eax, %edi
callq _srand
popq %rbp
retq
.cfi_endproc
## -- End function
.globl __assoluto ## -- Begin function _assoluto
.p2align 4, 0x90
__assoluto: ## @_assoluto
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movss %xmm0, -8(%rbp)
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm1
xorps %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jbe LBB4_2
## %bb.1:
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movd %xmm0, %eax
xorl $2147483648, %eax ## imm = 0x80000000
movd %eax, %xmm0
movss %xmm0, -4(%rbp)
jmp LBB4_3
LBB4_2:
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -4(%rbp)
LBB4_3:
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function ransacMethod
LCPI5_0:
.long 0x00800000 ## float 1.17549435E-38
LCPI5_1:
.long 0x7f7fffff ## float 3.40282347E+38
.section __TEXT,__literal8,8byte_literals
.p2align 3
LCPI5_2:
.quad 0x4000000000000000 ## double 2
LCPI5_3:
.quad 0x4059000000000000 ## double 100
.section __TEXT,__text,regular,pure_instructions
.globl _ransacMethod
.p2align 4, 0x90
_ransacMethod: ## @ransacMethod
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $192, %rsp
movq 16(%rbp), %rax
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl %edx, -20(%rbp)
movl %ecx, -24(%rbp)
movl %r8d, -28(%rbp)
movl %r9d, -32(%rbp)
movss %xmm0, -36(%rbp)
movslq -28(%rbp), %rdi
movl $4, %esi
callq _calloc
movq %rax, -48(%rbp)
movl $0, -52(%rbp)
movl $0, -56(%rbp)
movl $0, -60(%rbp)
LBB5_1: ## =>This Loop Header: Depth=1
## Child Loop BB5_3 Depth 2
## Child Loop BB5_13 Depth 2
## Child Loop BB5_21 Depth 2
movl -60(%rbp), %eax
cmpl -32(%rbp), %eax
jge LBB5_30
## %bb.2: ## in Loop: Header=BB5_1 Depth=1
xorps %xmm0, %xmm0
movss %xmm0, -64(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -68(%rbp)
movl $0, -72(%rbp)
movl $0, -76(%rbp)
LBB5_3: ## Parent Loop BB5_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -76(%rbp), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl -32(%rbp), %ecx
movb %al, -177(%rbp) ## 1-byte Spill
jge LBB5_5
## %bb.4: ## in Loop: Header=BB5_3 Depth=2
cmpl $0, -72(%rbp)
setne %al
xorb $-1, %al
movb %al, -177(%rbp) ## 1-byte Spill
LBB5_5: ## in Loop: Header=BB5_3 Depth=2
movb -177(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB5_6
jmp LBB5_10
LBB5_6: ## in Loop: Header=BB5_3 Depth=2
callq _rand
cltd
idivl -28(%rbp)
movl %edx, -80(%rbp)
callq _rand
cltd
idivl -28(%rbp)
movl %edx, -84(%rbp)
movq -16(%rbp), %rax
imull $3, -80(%rbp), %ecx
addl $2, %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -88(%rbp)
movq -16(%rbp), %rax
imull $3, -80(%rbp), %ecx
addl $0, %ecx
movslq %ecx, %rcx
cvttss2si (%rax,%rcx,4), %eax
movl %eax, -92(%rbp)
movq -16(%rbp), %rax
imull $3, -80(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
cvttss2si (%rax,%rcx,4), %eax
movl %eax, -96(%rbp)
movq -8(%rbp), %rax
movl -96(%rbp), %ecx
imull -24(%rbp), %ecx
addl -92(%rbp), %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -100(%rbp)
movq -16(%rbp), %rax
imull $3, -84(%rbp), %ecx
addl $2, %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -104(%rbp)
movq -16(%rbp), %rax
imull $3, -84(%rbp), %ecx
addl $0, %ecx
movslq %ecx, %rcx
cvttss2si (%rax,%rcx,4), %eax
movl %eax, -108(%rbp)
movq -16(%rbp), %rax
imull $3, -84(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
cvttss2si (%rax,%rcx,4), %eax
movl %eax, -112(%rbp)
movq -8(%rbp), %rax
movl -112(%rbp), %ecx
imull -24(%rbp), %ecx
addl -108(%rbp), %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -116(%rbp)
movss -116(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
subss -100(%rbp), %xmm0
callq __assoluto
cvtss2sd %xmm0, %xmm0
movss _percentualeIncremento(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
movsd LCPI5_3(%rip), %xmm2 ## xmm2 = mem[0],zero
divsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jbe LBB5_8
## %bb.7: ## in Loop: Header=BB5_3 Depth=2
movss -88(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
subss -104(%rbp), %xmm0
movss -100(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
subss -116(%rbp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -64(%rbp)
movss -88(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -100(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss -64(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movd %xmm0, %eax
xorl $2147483648, %eax ## imm = 0x80000000
movd %eax, %xmm0
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -68(%rbp)
movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss -68(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
callq __checkScaleRange
movl %eax, -72(%rbp)
LBB5_8: ## in Loop: Header=BB5_3 Depth=2
jmp LBB5_9
LBB5_9: ## in Loop: Header=BB5_3 Depth=2
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
jmp LBB5_3
LBB5_10: ## in Loop: Header=BB5_1 Depth=1
cmpl $0, -72(%rbp)
jne LBB5_12
## %bb.11:
movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq 16(%rbp), %rax
movss %xmm0, (%rax)
movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq 16(%rbp), %rax
movss %xmm0, 4(%rax)
movq 16(%rbp), %rax
movl $0, 8(%rax)
movq -48(%rbp), %rdi
callq _free
jmp LBB5_31
LBB5_12: ## in Loop: Header=BB5_1 Depth=1
movl $0, -52(%rbp)
movss LCPI5_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -120(%rbp)
movss LCPI5_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -124(%rbp)
movl $0, -128(%rbp)
LBB5_13: ## Parent Loop BB5_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -128(%rbp), %eax
cmpl -28(%rbp), %eax
jge LBB5_20
## %bb.14: ## in Loop: Header=BB5_13 Depth=2
movq -16(%rbp), %rax
imull $3, -128(%rbp), %ecx
addl $2, %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -132(%rbp)
movq -16(%rbp), %rax
imull $3, -128(%rbp), %ecx
addl $0, %ecx
movslq %ecx, %rcx
cvttss2si (%rax,%rcx,4), %eax
movl %eax, -136(%rbp)
movq -16(%rbp), %rax
imull $3, -128(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
cvttss2si (%rax,%rcx,4), %eax
movl %eax, -140(%rbp)
movq -8(%rbp), %rax
movl -140(%rbp), %ecx
imull -24(%rbp), %ecx
addl -136(%rbp), %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -144(%rbp)
movss -144(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss -64(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movss -68(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
subss -132(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd LCPI5_2(%rip), %xmm1 ## xmm1 = mem[0],zero
callq _pow
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -148(%rbp)
movss -148(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -120(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
jbe LBB5_16
## %bb.15: ## in Loop: Header=BB5_13 Depth=2
movss -148(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -120(%rbp)
LBB5_16: ## in Loop: Header=BB5_13 Depth=2
movss -148(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -124(%rbp), %xmm0
jbe LBB5_18
## %bb.17: ## in Loop: Header=BB5_13 Depth=2
movss -148(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -124(%rbp)
LBB5_18: ## in Loop: Header=BB5_13 Depth=2
jmp LBB5_19
LBB5_19: ## in Loop: Header=BB5_13 Depth=2
movl -128(%rbp), %eax
addl $1, %eax
movl %eax, -128(%rbp)
jmp LBB5_13
LBB5_20: ## in Loop: Header=BB5_1 Depth=1
movl $0, -152(%rbp)
LBB5_21: ## Parent Loop BB5_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -152(%rbp), %eax
cmpl -28(%rbp), %eax
jge LBB5_26
## %bb.22: ## in Loop: Header=BB5_21 Depth=2
movq -16(%rbp), %rax
imull $3, -152(%rbp), %ecx
addl $2, %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -156(%rbp)
movq -16(%rbp), %rax
imull $3, -152(%rbp), %ecx
addl $0, %ecx
movslq %ecx, %rcx
cvttss2si (%rax,%rcx,4), %eax
movl %eax, -160(%rbp)
movq -16(%rbp), %rax
imull $3, -152(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
cvttss2si (%rax,%rcx,4), %eax
movl %eax, -164(%rbp)
movq -8(%rbp), %rax
movl -164(%rbp), %ecx
imull -24(%rbp), %ecx
addl -160(%rbp), %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -168(%rbp)
movss -168(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss -64(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movss -68(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
subss -156(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd LCPI5_2(%rip), %xmm1 ## xmm1 = mem[0],zero
callq _pow
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -172(%rbp)
movss -172(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
subss -120(%rbp), %xmm0
movss -124(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
subss -120(%rbp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -176(%rbp)
movss -176(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
jbe LBB5_24
## %bb.23: ## in Loop: Header=BB5_21 Depth=2
movl -152(%rbp), %edx
movq -48(%rbp), %rax
movl -52(%rbp), %ecx
movl %ecx, %esi
addl $1, %esi
movl %esi, -52(%rbp)
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
LBB5_24: ## in Loop: Header=BB5_21 Depth=2
jmp LBB5_25
LBB5_25: ## in Loop: Header=BB5_21 Depth=2
movl -152(%rbp), %eax
addl $1, %eax
movl %eax, -152(%rbp)
jmp LBB5_21
LBB5_26: ## in Loop: Header=BB5_1 Depth=1
movl -52(%rbp), %eax
cmpl -56(%rbp), %eax
jle LBB5_28
## %bb.27: ## in Loop: Header=BB5_1 Depth=1
movss -64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq 16(%rbp), %rax
movss %xmm0, (%rax)
movss -68(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movq 16(%rbp), %rax
movss %xmm0, 4(%rax)
movq 16(%rbp), %rax
movl $1, 8(%rax)
movl -52(%rbp), %eax
movl %eax, -56(%rbp)
LBB5_28: ## in Loop: Header=BB5_1 Depth=1
jmp LBB5_29
LBB5_29: ## in Loop: Header=BB5_1 Depth=1
movl -60(%rbp), %eax
addl $1, %eax
movl %eax, -60(%rbp)
jmp LBB5_1
LBB5_30:
movq -48(%rbp), %rdi
callq _free
LBB5_31:
addq $192, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _percentualeIncremento ## @percentualeIncremento
.zerofill __DATA,__common,_percentualeIncremento,4,2
.globl _minScaleFactor ## @minScaleFactor
.zerofill __DATA,__common,_minScaleFactor,4,2
.globl _maxScaleFactor ## @maxScaleFactor
.zerofill __DATA,__common,_maxScaleFactor,4,2
.globl _minShiftFactor ## @minShiftFactor
.zerofill __DATA,__common,_minShiftFactor,4,2
.globl _maxShiftFactor ## @maxShiftFactor
.zerofill __DATA,__common,_maxShiftFactor,4,2
.subsections_via_symbols
| the_stack_data/125141185.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _N ; -- Begin function N
.p2align 2
_N: ; @N
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str w1, [sp, #8]
str wzr, [sp]
ldr w8, [sp, #12]
str w8, [sp, #4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #8]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp]
ldrsw x10, [sp, #4]
adrp x9, _a@GOTPAGE
ldr x9, [x9, _a@GOTPAGEOFF]
ldr w9, [x9, x10, lsl #2]
add w8, w8, w9
str w8, [sp]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_1
LBB0_4:
ldr w8, [sp]
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-byte Folded Spill
str w0, [sp, #28]
str w1, [sp, #24]
mov w8, #1
str w8, [sp, #16]
str w8, [sp, #12]
ldr w8, [sp, #28]
str w8, [sp, #20]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #20]
ldr w9, [sp, #24]
ldr w10, [sp, #28]
add w9, w9, w10
mov w10, #2
sdiv w9, w9, w10
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 x9, [sp] ; 8-byte Folded Reload
ldr w8, [sp, #16]
ldrsw x11, [sp, #20]
adrp x10, _a@GOTPAGE
ldr x10, [x10, _a@GOTPAGEOFF]
ldr w10, [x10, x11, lsl #2]
mul w8, w8, w10
str w8, [sp, #16]
ldr w8, [sp, #16]
ldr w10, [x9]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #16]
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB1_1
LBB1_4:
b LBB1_5
LBB1_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_8
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_5 Depth=1
ldr x9, [sp] ; 8-byte Folded Reload
ldr w8, [sp, #12]
ldrsw x11, [sp, #20]
adrp x10, _a@GOTPAGE
ldr x10, [x10, _a@GOTPAGEOFF]
ldr w10, [x10, x11, lsl #2]
mul w8, w8, w10
str w8, [sp, #12]
ldr w8, [sp, #12]
ldr w10, [x9]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #12]
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_5 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB1_5
LBB1_8:
ldr x9, [sp] ; 8-byte Folded Reload
ldr w8, [sp, #16]
ldr w10, [sp, #12]
mul w8, w8, w10
ldr w10, [x9]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #16]
ldr w0, [sp, #16]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _H ; -- Begin function H
.p2align 2
_H: ; @H
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str w1, [sp, #8]
str wzr, [sp]
ldr w8, [sp, #12]
str w8, [sp, #4]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #8]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB2_4
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp]
ldrsw x10, [sp, #4]
adrp x9, _a@GOTPAGE
ldr x9, [x9, _a@GOTPAGEOFF]
ldr w9, [x9, x10, lsl #2]
eor w8, w8, w9
str w8, [sp]
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB2_1
LBB2_4:
ldr w0, [sp]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
mov w9, #8112
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #1, lsl #12 ; =4096
sub sp, sp, #4016
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #100]
mov x9, sp
adrp x8, _n@GOTPAGE
ldr x8, [x8, _n@GOTPAGEOFF]
str x8, [x9]
add x8, sp, #92
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
str wzr, [sp, #96]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #96]
adrp x9, _n@GOTPAGE
ldr x9, [x9, _n@GOTPAGEOFF]
ldr w9, [x9]
subs w9, w9, #1
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, #96]
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
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #96]
add w8, w8, #1
str w8, [sp, #96]
b LBB3_1
LBB3_4:
mov w8, #1
str w8, [sp, #96]
b LBB3_5
LBB3_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #96]
ldr w9, [sp, #92]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB3_8
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_5 Depth=1
ldrsw x9, [sp, #96]
add x8, sp, #1, lsl #12 ; =4096
add x8, x8, #8
add x10, x8, x9, lsl #2
ldrsw x9, [sp, #96]
add x8, sp, #104
add x8, x8, x9, lsl #2
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_5 Depth=1
ldr w8, [sp, #96]
add w8, w8, #1
str w8, [sp, #96]
b LBB3_5
LBB3_8:
mov w8, #1
str w8, [sp, #96]
b LBB3_9
LBB3_9: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #96]
ldr w9, [sp, #92]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB3_17
b LBB3_10
LBB3_10: ; in Loop: Header=BB3_9 Depth=1
ldrsw x9, [sp, #96]
add x8, sp, #1, lsl #12 ; =4096
add x8, x8, #8
str x8, [sp, #72] ; 8-byte Folded Spill
ldr w0, [x8, x9, lsl #2]
ldrsw x9, [sp, #96]
add x8, sp, #104
str x8, [sp, #80] ; 8-byte Folded Spill
ldr w1, [x8, x9, lsl #2]
bl _N
ldr x9, [sp, #72] ; 8-byte Folded Reload
ldr x8, [sp, #80] ; 8-byte Folded Reload
str w0, [sp, #88] ; 4-byte Folded Spill
ldrsw x10, [sp, #96]
ldr w0, [x9, x10, lsl #2]
ldrsw x9, [sp, #96]
ldr w1, [x8, x9, lsl #2]
bl _M
mov x8, x0
ldr w0, [sp, #88] ; 4-byte Folded Reload
subs w8, w0, w8
cset w8, le
tbnz w8, #0, LBB3_12
b LBB3_11
LBB3_11: ; in Loop: Header=BB3_9 Depth=1
ldrsw x9, [sp, #96]
add x8, sp, #1, lsl #12 ; =4096
add x8, x8, #8
str x8, [sp, #48] ; 8-byte Folded Spill
ldr w0, [x8, x9, lsl #2]
ldrsw x9, [sp, #96]
add x8, sp, #104
str x8, [sp, #56] ; 8-byte Folded Spill
ldr w1, [x8, x9, lsl #2]
bl _M
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr x8, [sp, #56] ; 8-byte Folded Reload
str w0, [sp, #68] ; 4-byte Folded Spill
ldrsw x10, [sp, #96]
ldr w0, [x9, x10, lsl #2]
ldrsw x9, [sp, #96]
ldr w1, [x8, x9, lsl #2]
bl _N
mov x1, x0
ldr w0, [sp, #68] ; 4-byte Folded Reload
bl _H
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
b LBB3_13
LBB3_12: ; in Loop: Header=BB3_9 Depth=1
ldrsw x9, [sp, #96]
add x8, sp, #1, lsl #12 ; =4096
add x8, x8, #8
str x8, [sp, #24] ; 8-byte Folded Spill
ldr w0, [x8, x9, lsl #2]
ldrsw x9, [sp, #96]
add x8, sp, #104
str x8, [sp, #32] ; 8-byte Folded Spill
ldr w1, [x8, x9, lsl #2]
bl _N
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #32] ; 8-byte Folded Reload
str w0, [sp, #44] ; 4-byte Folded Spill
ldrsw x10, [sp, #96]
ldr w0, [x9, x10, lsl #2]
ldrsw x9, [sp, #96]
ldr w1, [x8, x9, lsl #2]
bl _M
mov x1, x0
ldr w0, [sp, #44] ; 4-byte Folded Reload
bl _H
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
b LBB3_13
LBB3_13: ; in Loop: Header=BB3_9 Depth=1
ldr w8, [sp, #96]
ldr w9, [sp, #92]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB3_15
b LBB3_14
LBB3_14: ; in Loop: Header=BB3_9 Depth=1
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB3_15
LBB3_15: ; in Loop: Header=BB3_9 Depth=1
b LBB3_16
LBB3_16: ; in Loop: Header=BB3_9 Depth=1
ldr w8, [sp, #96]
add w8, w8, #1
str w8, [sp, #96]
b LBB3_9
LBB3_17:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB3_19
b LBB3_18
LBB3_18:
bl ___stack_chk_fail
LBB3_19:
mov w0, #0
add sp, sp, #1, lsl #12 ; =4096
add sp, sp, #4016
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.comm _a,120000,2 ; @a
.comm _n,4,2 ; @n
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d%d"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _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, -16(%rbp)
movl -4(%rbp), %eax
movl %eax, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
movslq -12(%rbp), %rdx
movq _a@GOTPCREL(%rip), %rcx
addl (%rcx,%rdx,4), %eax
movl %eax, -16(%rbp)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_1
LBB0_4:
movl -16(%rbp), %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, -16(%rbp)
movl $1, -20(%rbp)
movl -4(%rbp), %eax
movl %eax, -12(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
movl %eax, -24(%rbp) ## 4-byte Spill
movl -8(%rbp), %eax
addl -4(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -24(%rbp), %eax ## 4-byte Reload
cmpl %ecx, %eax
jg LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -16(%rbp), %eax
movslq -12(%rbp), %rdx
movq _a@GOTPCREL(%rip), %rcx
imull (%rcx,%rdx,4), %eax
movl %eax, -16(%rbp)
movl -16(%rbp), %eax
movq _n@GOTPCREL(%rip), %rcx
cltd
idivl (%rcx)
movl %edx, -16(%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:
LBB1_5: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB1_8
## %bb.6: ## in Loop: Header=BB1_5 Depth=1
movl -20(%rbp), %eax
movslq -12(%rbp), %rdx
movq _a@GOTPCREL(%rip), %rcx
imull (%rcx,%rdx,4), %eax
movl %eax, -20(%rbp)
movl -20(%rbp), %eax
movq _n@GOTPCREL(%rip), %rcx
cltd
idivl (%rcx)
movl %edx, -20(%rbp)
## %bb.7: ## in Loop: Header=BB1_5 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB1_5
LBB1_8:
movl -16(%rbp), %eax
imull -20(%rbp), %eax
movq _n@GOTPCREL(%rip), %rcx
cltd
idivl (%rcx)
movl %edx, -16(%rbp)
movl -16(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _H ## -- Begin function H
.p2align 4, 0x90
_H: ## @H
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl $0, -16(%rbp)
movl -4(%rbp), %eax
movl %eax, -12(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB2_4
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movl -16(%rbp), %eax
movslq -12(%rbp), %rdx
movq _a@GOTPCREL(%rip), %rcx
xorl (%rcx,%rdx,4), %eax
movl %eax, -16(%rbp)
## %bb.3: ## in Loop: Header=BB2_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB2_1
LBB2_4:
movl -16(%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
movl $8048, %eax ## imm = 0x1F70
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -8020(%rbp)
leaq L_.str(%rip), %rdi
movq _n@GOTPCREL(%rip), %rsi
leaq -8028(%rbp), %rdx
movb $0, %al
callq _scanf
movl $0, -8024(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movl -8024(%rbp), %eax
movq _n@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jg LBB3_4
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movslq -8024(%rbp), %rax
movq _a@GOTPCREL(%rip), %rsi
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
movl -8024(%rbp), %eax
addl $1, %eax
movl %eax, -8024(%rbp)
jmp LBB3_1
LBB3_4:
movl $1, -8024(%rbp)
LBB3_5: ## =>This Inner Loop Header: Depth=1
movl -8024(%rbp), %eax
cmpl -8028(%rbp), %eax
jg LBB3_8
## %bb.6: ## in Loop: Header=BB3_5 Depth=1
movslq -8024(%rbp), %rax
leaq -4016(%rbp), %rsi
shlq $2, %rax
addq %rax, %rsi
movslq -8024(%rbp), %rax
leaq -8016(%rbp), %rdx
shlq $2, %rax
addq %rax, %rdx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.7: ## in Loop: Header=BB3_5 Depth=1
movl -8024(%rbp), %eax
addl $1, %eax
movl %eax, -8024(%rbp)
jmp LBB3_5
LBB3_8:
movl $1, -8024(%rbp)
LBB3_9: ## =>This Inner Loop Header: Depth=1
movl -8024(%rbp), %eax
cmpl -8028(%rbp), %eax
jg LBB3_17
## %bb.10: ## in Loop: Header=BB3_9 Depth=1
movslq -8024(%rbp), %rax
movl -4016(%rbp,%rax,4), %edi
movslq -8024(%rbp), %rax
movl -8016(%rbp,%rax,4), %esi
callq _N
movl %eax, -8032(%rbp) ## 4-byte Spill
movslq -8024(%rbp), %rax
movl -4016(%rbp,%rax,4), %edi
movslq -8024(%rbp), %rax
movl -8016(%rbp,%rax,4), %esi
callq _M
movl %eax, %ecx
movl -8032(%rbp), %eax ## 4-byte Reload
cmpl %ecx, %eax
jle LBB3_12
## %bb.11: ## in Loop: Header=BB3_9 Depth=1
movslq -8024(%rbp), %rax
movl -4016(%rbp,%rax,4), %edi
movslq -8024(%rbp), %rax
movl -8016(%rbp,%rax,4), %esi
callq _M
movl %eax, -8036(%rbp) ## 4-byte Spill
movslq -8024(%rbp), %rax
movl -4016(%rbp,%rax,4), %edi
movslq -8024(%rbp), %rax
movl -8016(%rbp,%rax,4), %esi
callq _N
movl -8036(%rbp), %edi ## 4-byte Reload
movl %eax, %esi
callq _H
movl %eax, %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB3_13
LBB3_12: ## in Loop: Header=BB3_9 Depth=1
movslq -8024(%rbp), %rax
movl -4016(%rbp,%rax,4), %edi
movslq -8024(%rbp), %rax
movl -8016(%rbp,%rax,4), %esi
callq _N
movl %eax, -8040(%rbp) ## 4-byte Spill
movslq -8024(%rbp), %rax
movl -4016(%rbp,%rax,4), %edi
movslq -8024(%rbp), %rax
movl -8016(%rbp,%rax,4), %esi
callq _M
movl -8040(%rbp), %edi ## 4-byte Reload
movl %eax, %esi
callq _H
movl %eax, %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
LBB3_13: ## in Loop: Header=BB3_9 Depth=1
movl -8024(%rbp), %eax
cmpl -8028(%rbp), %eax
je LBB3_15
## %bb.14: ## in Loop: Header=BB3_9 Depth=1
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
LBB3_15: ## in Loop: Header=BB3_9 Depth=1
jmp LBB3_16
LBB3_16: ## in Loop: Header=BB3_9 Depth=1
movl -8024(%rbp), %eax
addl $1, %eax
movl %eax, -8024(%rbp)
jmp LBB3_9
LBB3_17:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB3_19
## %bb.18:
xorl %eax, %eax
addq $8048, %rsp ## imm = 0x1F70
popq %rbp
retq
LBB3_19:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.comm _a,120000,4 ## @a
.comm _n,4,2 ## @n
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d%d"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "\n"
.subsections_via_symbols
| the_stack_data/150140179.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, #3
sturh w8, [x29, #-2]
mov w8, #6
sturh w8, [x29, #-4]
ldurh w8, [x29, #-2]
ldurh w9, [x29, #-4]
and w8, w8, w9
sturh w8, [x29, #-6]
ldurh w12, [x29, #-2]
ldurh w11, [x29, #-4]
ldurh w10, [x29, #-6]
mov x9, sp
; implicit-def: $x8
mov x8, x12
str x8, [x9]
; implicit-def: $x8
mov x8, x11
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldurh w8, [x29, #-2]
ldurh w9, [x29, #-4]
orr w8, w8, w9
sturh w8, [x29, #-8]
ldurh w12, [x29, #-2]
ldurh w11, [x29, #-4]
ldurh w10, [x29, #-8]
mov x9, sp
; implicit-def: $x8
mov x8, x12
str x8, [x9]
; implicit-def: $x8
mov x8, x11
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #16]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldurh w8, [x29, #-2]
ldurh w9, [x29, #-4]
eor w8, w8, w9
sturh w8, [x29, #-10]
ldurh w12, [x29, #-2]
ldurh w11, [x29, #-4]
ldurh w10, [x29, #-10]
mov x9, sp
; implicit-def: $x8
mov x8, x12
str x8, [x9]
; implicit-def: $x8
mov x8, x11
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #16]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldurh w8, [x29, #-2]
mvn w8, w8
sturh w8, [x29, #-12]
ldurh w11, [x29, #-2]
ldurh w10, [x29, #-12]
mov x9, sp
; implicit-def: $x8
mov x8, x11
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
ldurh w8, [x29, #-2]
asr w8, w8, #1
sturh w8, [x29, #-14]
ldurh w11, [x29, #-2]
ldurh w10, [x29, #-14]
mov x9, sp
; implicit-def: $x8
mov x8, x11
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldurh w8, [x29, #-2]
lsl w8, w8, #1
sturh w8, [x29, #-16]
ldurh w11, [x29, #-2]
ldurh w10, [x29, #-16]
mov x9, sp
; implicit-def: $x8
mov x8, x11
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
mov w0, #0
bl _exit
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Bitwise AND of %d and %d is %d\n"
l_.str.1: ; @.str.1
.asciz "Bitwise OR of %d and %d is %d\n"
l_.str.2: ; @.str.2
.asciz "Bitwise XOR of %d and %d is %d\n"
l_.str.3: ; @.str.3
.asciz "Bitwise complement of %d is %d\n"
l_.str.4: ; @.str.4
.asciz "Shifting 1 bit of %d to the right yields %d\n"
l_.str.5: ; @.str.5
.asciz "Shifting 1 bit of %d to the left 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
movw $3, -2(%rbp)
movw $6, -4(%rbp)
movzwl -2(%rbp), %eax
movzwl -4(%rbp), %ecx
andl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -6(%rbp)
movzwl -2(%rbp), %esi
movzwl -4(%rbp), %edx
movzwl -6(%rbp), %ecx
leaq L_.str(%rip), %rdi
xorl %eax, %eax
movl %eax, -20(%rbp) ## 4-byte Spill
movb %al, -21(%rbp) ## 1-byte Spill
callq _printf
## kill: def $ecx killed $eax
movb -21(%rbp), %al ## 1-byte Reload
movzwl -2(%rbp), %ecx
movzwl -4(%rbp), %edx
orl %edx, %ecx
## kill: def $cx killed $cx killed $ecx
movw %cx, -8(%rbp)
movzwl -2(%rbp), %esi
movzwl -4(%rbp), %edx
movzwl -8(%rbp), %ecx
leaq L_.str.1(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -21(%rbp), %al ## 1-byte Reload
movzwl -2(%rbp), %ecx
movzwl -4(%rbp), %edx
xorl %edx, %ecx
## kill: def $cx killed $cx killed $ecx
movw %cx, -10(%rbp)
movzwl -2(%rbp), %esi
movzwl -4(%rbp), %edx
movzwl -10(%rbp), %ecx
leaq L_.str.2(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -21(%rbp), %al ## 1-byte Reload
movzwl -2(%rbp), %ecx
notl %ecx
## kill: def $cx killed $cx killed $ecx
movw %cx, -12(%rbp)
movzwl -2(%rbp), %esi
movzwl -12(%rbp), %edx
leaq L_.str.3(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -21(%rbp), %al ## 1-byte Reload
movzwl -2(%rbp), %ecx
shrl %ecx
## kill: def $cx killed $cx killed $ecx
movw %cx, -14(%rbp)
movzwl -2(%rbp), %esi
movzwl -14(%rbp), %edx
leaq L_.str.4(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -21(%rbp), %al ## 1-byte Reload
movzwl -2(%rbp), %ecx
addl %ecx, %ecx
## kill: def $cx killed $cx killed $ecx
movw %cx, -16(%rbp)
movzwl -2(%rbp), %esi
movzwl -16(%rbp), %edx
leaq L_.str.5(%rip), %rdi
callq _printf
movl -20(%rbp), %edi ## 4-byte Reload
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Bitwise AND of %d and %d is %d\n"
L_.str.1: ## @.str.1
.asciz "Bitwise OR of %d and %d is %d\n"
L_.str.2: ## @.str.2
.asciz "Bitwise XOR of %d and %d is %d\n"
L_.str.3: ## @.str.3
.asciz "Bitwise complement of %d is %d\n"
L_.str.4: ## @.str.4
.asciz "Shifting 1 bit of %d to the right yields %d\n"
L_.str.5: ## @.str.5
.asciz "Shifting 1 bit of %d to the left yields %d\n"
.subsections_via_symbols
| the_stack_data/375056.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _process_signal ; -- Begin function process_signal
.p2align 2
_process_signal: ; @process_signal
.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, _pid_1@GOTPAGE
ldr x8, [x8, _pid_1@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x9, _pid_2@GOTPAGE
ldr x9, [x9, _pid_2@GOTPAGEOFF]
str x9, [sp, #16] ; 8-byte Folded Spill
stur w0, [x29, #-4]
ldr w8, [x8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_6
b LBB0_1
LBB0_1:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w8, [x8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w0, [x8]
mov w1, #2
str w1, [sp, #4] ; 4-byte Folded Spill
bl _kill
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w1, [sp, #4] ; 4-byte Folded Reload
ldr w0, [x8]
bl _kill
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
mov x0, #0
bl _wait
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
b LBB0_3
LBB0_5:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _puts
mov w0, #0
bl _exit
LBB0_6:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _puts
mov w0, #0
bl _exit
LBB0_8:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _puts
mov w0, #0
bl _exit
LBB0_10:
b LBB0_11
LBB0_11:
b LBB0_12
LBB0_12:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #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, #2
adrp x1, _process_signal@PAGE
add x1, x1, _process_signal@PAGEOFF
bl _signal
bl _fork
adrp x8, _pid_1@GOTPAGE
ldr x8, [x8, _pid_1@GOTPAGEOFF]
str w0, [x8]
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
bl _fork
adrp x8, _pid_2@GOTPAGE
ldr x8, [x8, _pid_2@GOTPAGEOFF]
str w0, [x8]
b LBB1_2
LBB1_2:
b LBB1_3
LBB1_3: ; =>This Inner Loop Header: Depth=1
b LBB1_3
.cfi_endproc
; -- End function
.comm _pid_1,4,2 ; @pid_1
.comm _pid_2,4,2 ; @pid_2
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "parent process is killed!\n"
l_.str.1: ; @.str.1
.asciz "child process 1 is killed by parent!\n"
l_.str.2: ; @.str.2
.asciz "child process 2 is killed by parent!\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _process_signal ## -- Begin function process_signal
.p2align 4, 0x90
_process_signal: ## @process_signal
.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 _pid_1@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jle LBB0_6
## %bb.1:
movq _pid_2@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jle LBB0_6
## %bb.2:
movq _pid_1@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl $2, %esi
callq _kill
movq _pid_2@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl $2, %esi
callq _kill
LBB0_3: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
movl %eax, %edi
callq _wait
cmpl $-1, %eax
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_3
LBB0_5:
leaq L_.str(%rip), %rdi
callq _puts
xorl %edi, %edi
callq _exit
LBB0_6:
movq _pid_1@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB0_8
## %bb.7:
leaq L_.str.1(%rip), %rdi
callq _puts
xorl %edi, %edi
callq _exit
LBB0_8:
movq _pid_2@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB0_10
## %bb.9:
leaq L_.str.2(%rip), %rdi
callq _puts
xorl %edi, %edi
callq _exit
LBB0_10:
jmp LBB0_11
LBB0_11:
jmp LBB0_12
LBB0_12:
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 $2, %edi
leaq _process_signal(%rip), %rsi
callq _signal
callq _fork
movq _pid_1@GOTPCREL(%rip), %rcx
movl %eax, (%rcx)
cmpl $0, %eax
je LBB1_2
## %bb.1:
callq _fork
movl %eax, %ecx
movq _pid_2@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
LBB1_2:
jmp LBB1_3
LBB1_3: ## =>This Inner Loop Header: Depth=1
jmp LBB1_3
.cfi_endproc
## -- End function
.comm _pid_1,4,2 ## @pid_1
.comm _pid_2,4,2 ## @pid_2
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "parent process is killed!\n"
L_.str.1: ## @.str.1
.asciz "child process 1 is killed by parent!\n"
L_.str.2: ## @.str.2
.asciz "child process 2 is killed by parent!\n"
.subsections_via_symbols
| the_stack_data/419994.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lookFoo ; -- Begin function lookFoo
.p2align 2
_lookFoo: ; @lookFoo
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
ldr w9, [x0]
; 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
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
stp x29, x30, [sp, #128] ; 16-byte Folded Spill
add x29, sp, #128
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
mov w8, #5
stur w8, [x29, #-40]
fmov d0, #10.00000000
stur d0, [x29, #-32]
mov w8, #99
sturb w8, [x29, #-24]
ldur q0, [x29, #-40]
add x0, sp, #64
str q0, [sp, #64]
ldur x8, [x29, #-24]
str x8, [sp, #80]
bl _lookFoo
mov w8, #1
str w8, [sp, #40]
fmov d0, #2.00000000
str d0, [sp, #48]
mov w8, #101
strb w8, [sp, #56]
ldur q0, [sp, #40]
add x0, sp, #16
str q0, [sp, #16]
ldr x8, [sp, #56]
str x8, [sp, #32]
bl _lookFoo
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 "Foo.a: %i\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lookFoo ## -- Begin function lookFoo
.p2align 4, 0x90
_lookFoo: ## @lookFoo
.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), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI1_0:
.quad 0x4000000000000000 ## double 2
LCPI1_1:
.quad 0x4024000000000000 ## double 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 $96, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $5, -40(%rbp)
movsd LCPI1_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -32(%rbp)
movb $99, -24(%rbp)
leaq -40(%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 _lookFoo
movl $1, -64(%rbp)
movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -56(%rbp)
movb $101, -48(%rbp)
leaq -64(%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 _lookFoo
xorl %eax, %eax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Foo.a: %i\n"
.subsections_via_symbols
| the_stack_data/17538.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur xzr, [x29, #-16]
str xzr, [sp, #24]
mov x8, #1
str x8, [sp, #16]
str xzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
ldr x9, [sp, #16]
add x8, x8, x9
stur x8, [x29, #-16]
ldr x8, [sp, #16]
str x8, [sp, #24]
ldur x8, [x29, #-16]
str x8, [sp, #16]
ldur x8, [x29, #-16]
mov x10, #2
sdiv x9, x8, x10
mul x9, x9, x10
subs x8, x8, x9
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x9, [x29, #-16]
ldr x8, [sp, #8]
add x8, x8, x9
str x8, [sp, #8]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
mov x9, #2304
movk x9, #61, lsl #16
subs x8, x8, x9
cset w8, le
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
b LBB0_6
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_6:
ldr x8, [sp, #8]
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, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\n sum is %llu"
.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)
movq $0, -16(%rbp)
movq $0, -24(%rbp)
movq $1, -32(%rbp)
movq $0, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
addq -32(%rbp), %rax
movq %rax, -16(%rbp)
movq -32(%rbp), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
movq %rax, -32(%rbp)
movq -16(%rbp), %rax
movl $2, %ecx
cqto
idivq %rcx
cmpq $0, %rdx
jne LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq -40(%rbp), %rax
movq %rax, -40(%rbp)
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
cmpq $4000000, -16(%rbp) ## imm = 0x3D0900
jle LBB0_5
## %bb.4:
jmp LBB0_6
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_6:
movq -40(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\n sum is %llu"
.subsections_via_symbols
| the_stack_data/103816.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #20] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov w8, #3
stur w8, [x29, #-16]
stur w8, [x29, #-12]
stur w8, [x29, #-8]
mov w8, #5
stur w8, [x29, #-8]
mov x9, sp
mov x8, #5
str x8, [x9]
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 w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
bl _printf
ldr x0, [sp, #8] ; 8-byte Folded Reload
ldur w9, [x29, #-16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
bl _printf
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov w8, #33
stur w8, [x29, #-20]
mov w8, #1107558400
fmov s0, w8
str s0, [sp, #24]
ldur w9, [x29, #-20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
bl _printf
ldr s0, [sp, #24]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr w0, [sp, #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\n"
l_.str.1: ; @.str.1
.asciz "%f\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function main
LCPI0_0:
.long 0x42040000 ## float 33
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl $3, -16(%rbp)
movl $3, -12(%rbp)
movl $3, -8(%rbp)
movl $5, -8(%rbp)
leaq L_.str(%rip), %rdi
movl $5, %esi
movb $0, %al
callq _printf
movl -12(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -16(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $33, -20(%rbp)
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -24(%rbp)
movl -20(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.1(%rip), %rdi
movb $1, %al
callq _printf
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d\n"
L_.str.1: ## @.str.1
.asciz "%f\n"
.subsections_via_symbols
| the_stack_data/28261765.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
str w0, [sp, #12]
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
mov w0, #0
str wzr, [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 _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 -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $0, -4(%rbp)
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/1102541.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 w8, [x29, #-8]
subs w8, w8, #30
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur w8, [x29, #-8]
mov w9, #50
mul w8, w8, w9
scvtf s0, w8
stur s0, [x29, #-12]
b LBB0_5
LBB0_2:
ldur w8, [x29, #-8]
subs w8, w8, #30
cset w8, le
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur w8, [x29, #-8]
subs w8, w8, #30
mov w9, #40
mul w8, w8, w9
add w8, w8, #1500
scvtf s0, w8
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 the van has travelled : "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Total Amount %.2f"
.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
cmpl $30, -8(%rbp)
jge LBB0_2
## %bb.1:
imull $50, -8(%rbp), %eax
cvtsi2ss %eax, %xmm0
movss %xmm0, -12(%rbp)
jmp LBB0_5
LBB0_2:
cmpl $30, -8(%rbp)
jle LBB0_4
## %bb.3:
movl -8(%rbp), %eax
subl $30, %eax
imull $40, %eax, %eax
addl $1500, %eax ## imm = 0x5DC
cvtsi2ss %eax, %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 the van has travelled : "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Total Amount %.2f"
.subsections_via_symbols
| the_stack_data/59522.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _NAME ; -- Begin function NAME
.p2align 2
_NAME: ; @NAME
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
ldr x8, [sp, #24]
ldrb w8, [x8]
strb w8, [sp, #15]
ldr x8, [sp, #16]
ldrb w8, [x8]
strb w8, [sp, #14]
ldrsb w8, [sp, #15]
subs w8, w8, #96
cset w8, le
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldrsb w8, [sp, #15]
subs w8, w8, #32
strb w8, [sp, #15]
b LBB0_2
LBB0_2:
ldrsb w8, [sp, #14]
subs w8, w8, #96
cset w8, le
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldrsb w8, [sp, #14]
subs w8, w8, #32
strb w8, [sp, #14]
b LBB0_4
LBB0_4:
ldrsb w8, [sp, #15]
ldrsb w9, [sp, #14]
subs w8, w8, w9
cset w8, eq
and w0, w8, #0x1
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 _NAME ## -- Begin function NAME
.p2align 4, 0x90
_NAME: ## @NAME
.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
movb (%rax), %al
movb %al, -17(%rbp)
movq -16(%rbp), %rax
movb (%rax), %al
movb %al, -18(%rbp)
movsbl -17(%rbp), %eax
cmpl $96, %eax
jle LBB0_2
## %bb.1:
movsbl -17(%rbp), %eax
subl $32, %eax
## kill: def $al killed $al killed $eax
movb %al, -17(%rbp)
LBB0_2:
movsbl -18(%rbp), %eax
cmpl $96, %eax
jle LBB0_4
## %bb.3:
movsbl -18(%rbp), %eax
subl $32, %eax
## kill: def $al killed $al killed $eax
movb %al, -18(%rbp)
LBB0_4:
movsbl -17(%rbp), %eax
movsbl -18(%rbp), %ecx
cmpl %ecx, %eax
sete %al
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/162642778.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _f ; -- Begin function f
.p2align 2
_f: ; @f
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
adrp x8, _i@GOTPAGE
ldr x8, [x8, _i@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
str wzr, [x8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w8, [x8]
subs w8, w8, #8
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
adrp x8, _b@GOTPAGE
ldr x8, [x8, _b@GOTPAGEOFF]
ldr w10, [x8]
mov w12, #1
sdiv w11, w10, w12
mul w11, w11, w12
subs w10, w10, w11
str w10, [x8]
ldr w8, [x9]
orr w8, w8, w10
str w8, [x9]
subs w8, w8, #0
cset w8, eq
and w10, w8, #0x1
adrp x9, _a@GOTPAGE
ldr x9, [x9, _a@GOTPAGEOFF]
ldr w8, [x9]
orr w8, w8, w10
str w8, [x9]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB0_1
LBB0_4:
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _i,4,2 ; @i
.comm _b,4,2 ; @b
.comm _a,4,2 ; @a
.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 _i@GOTPCREL(%rip), %rax
movl $0, (%rax)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq _i@GOTPCREL(%rip), %rax
cmpl $8, (%rax)
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq _b@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl $1, %ecx
cltd
idivl %ecx
movq _b@GOTPCREL(%rip), %rax
movl %edx, (%rax)
movq _i@GOTPCREL(%rip), %rax
orl (%rax), %edx
movq _i@GOTPCREL(%rip), %rax
movl %edx, (%rax)
cmpl $0, %edx
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %ecx
movq _a@GOTPCREL(%rip), %rax
orl (%rax), %ecx
movq _a@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq _i@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _i@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB0_1
LBB0_4:
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _i,4,2 ## @i
.comm _b,4,2 ## @b
.comm _a,4,2 ## @a
.subsections_via_symbols
| the_stack_data/97013875.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _dfs ; -- Begin function dfs
.p2align 2
_dfs: ; @dfs
.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]
ldur w8, [x29, #-4]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_5
b LBB0_1
LBB0_1:
ldur w8, [x29, #-4]
adrp x9, _m@GOTPAGE
ldr x9, [x9, _m@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2:
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3:
ldr w8, [sp, #8]
adrp x9, _n@GOTPAGE
ldr x9, [x9, _n@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldursw x8, [x29, #-4]
mov x9, #105
mul x9, x8, x9
adrp x8, _grid@GOTPAGE
ldr x8, [x8, _grid@GOTPAGEOFF]
add x8, x8, x9
ldrsw x9, [sp, #8]
ldrsb w8, [x8, x9]
subs w8, w8, #42
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
b LBB0_7
LBB0_6:
ldursw x8, [x29, #-4]
mov x9, #105
mul x9, x8, x9
adrp x8, _grid@GOTPAGE
ldr x8, [x8, _grid@GOTPAGEOFF]
add x8, x8, x9
ldrsw x9, [sp, #8]
add x9, x8, x9
mov w8, #42
strb w8, [x9]
ldur w8, [x29, #-4]
subs w0, w8, #1
ldr w1, [sp, #8]
bl _dfs
ldur w8, [x29, #-4]
subs w0, w8, #1
ldr w8, [sp, #8]
add w1, w8, #1
bl _dfs
ldur w0, [x29, #-4]
ldr w8, [sp, #8]
add w1, w8, #1
bl _dfs
ldur w8, [x29, #-4]
add w0, w8, #1
ldr w8, [sp, #8]
add w1, w8, #1
bl _dfs
ldur w8, [x29, #-4]
add w0, w8, #1
ldr w1, [sp, #8]
bl _dfs
ldur w8, [x29, #-4]
add w0, w8, #1
ldr w8, [sp, #8]
subs w1, w8, #1
bl _dfs
ldur w0, [x29, #-4]
ldr w8, [sp, #8]
subs w1, w8, #1
bl _dfs
ldur w8, [x29, #-4]
subs w0, w8, #1
ldr w8, [sp, #8]
subs w1, w8, #1
bl _dfs
b LBB0_7
LBB0_7:
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, _m@GOTPAGE
ldr x8, [x8, _m@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
adrp x8, _n@GOTPAGE
ldr x8, [x8, _n@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
adrp x8, _cnt@GOTPAGE
ldr x8, [x8, _cnt@GOTPAGEOFF]
stur x8, [x29, #-24] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_6 Depth 2
; Child Loop BB1_10 Depth 2
; Child Loop BB1_12 Depth 3
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x10, [sp, #24] ; 8-byte Folded Reload
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_20
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_5
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4:
b LBB1_20
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
ldur x8, [x29, #-24] ; 8-byte Folded Reload
str wzr, [x8]
stur wzr, [x29, #-8]
b LBB1_6
LBB1_6: ; Parent Loop BB1_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldur w8, [x29, #-8]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_9
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_6 Depth=2
ldursw x8, [x29, #-8]
mov x9, #105
mul x9, x8, x9
adrp x8, _grid@GOTPAGE
ldr x8, [x8, _grid@GOTPAGEOFF]
add x8, x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_6 Depth=2
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB1_6
LBB1_9: ; in Loop: Header=BB1_1 Depth=1
stur wzr, [x29, #-12]
b LBB1_10
LBB1_10: ; Parent Loop BB1_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB1_12 Depth 3
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldur w8, [x29, #-12]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_19
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_10 Depth=2
stur wzr, [x29, #-16]
b LBB1_12
LBB1_12: ; Parent Loop BB1_1 Depth=1
; Parent Loop BB1_10 Depth=2
; => This Inner Loop Header: Depth=3
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldur w8, [x29, #-16]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_17
b LBB1_13
LBB1_13: ; in Loop: Header=BB1_12 Depth=3
ldursw x8, [x29, #-12]
mov x9, #105
mul x9, x8, x9
adrp x8, _grid@GOTPAGE
ldr x8, [x8, _grid@GOTPAGEOFF]
add x8, x8, x9
ldursw x9, [x29, #-16]
ldrsb w8, [x8, x9]
subs w8, w8, #64
cset w8, ne
tbnz w8, #0, LBB1_15
b LBB1_14
LBB1_14: ; in Loop: Header=BB1_12 Depth=3
ldur x9, [x29, #-24] ; 8-byte Folded Reload
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
ldur w0, [x29, #-12]
ldur w1, [x29, #-16]
bl _dfs
b LBB1_15
LBB1_15: ; in Loop: Header=BB1_12 Depth=3
b LBB1_16
LBB1_16: ; in Loop: Header=BB1_12 Depth=3
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB1_12
LBB1_17: ; in Loop: Header=BB1_10 Depth=2
b LBB1_18
LBB1_18: ; in Loop: Header=BB1_10 Depth=2
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB1_10
LBB1_19: ; in Loop: Header=BB1_1 Depth=1
ldur x8, [x29, #-24] ; 8-byte Folded Reload
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB1_1
LBB1_20:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.comm _m,4,2 ; @m
.comm _n,4,2 ; @n
.comm _grid,11025,0 ; @grid
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d %d"
.comm _cnt,4,2 ; @cnt
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 _dfs ## -- Begin function dfs
.p2align 4, 0x90
_dfs: ## @dfs
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
cmpl $0, -4(%rbp)
jl LBB0_5
## %bb.1:
movl -4(%rbp), %eax
movq _m@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB0_5
## %bb.2:
cmpl $0, -8(%rbp)
jl LBB0_5
## %bb.3:
movl -8(%rbp), %eax
movq _n@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB0_5
## %bb.4:
movslq -4(%rbp), %rcx
movq _grid@GOTPCREL(%rip), %rax
imulq $105, %rcx, %rcx
addq %rcx, %rax
movslq -8(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $42, %eax
jne LBB0_6
LBB0_5:
jmp LBB0_7
LBB0_6:
movslq -4(%rbp), %rcx
movq _grid@GOTPCREL(%rip), %rax
imulq $105, %rcx, %rcx
addq %rcx, %rax
movslq -8(%rbp), %rcx
movb $42, (%rax,%rcx)
movl -4(%rbp), %edi
subl $1, %edi
movl -8(%rbp), %esi
callq _dfs
movl -4(%rbp), %edi
subl $1, %edi
movl -8(%rbp), %esi
addl $1, %esi
callq _dfs
movl -4(%rbp), %edi
movl -8(%rbp), %esi
addl $1, %esi
callq _dfs
movl -4(%rbp), %edi
addl $1, %edi
movl -8(%rbp), %esi
addl $1, %esi
callq _dfs
movl -4(%rbp), %edi
addl $1, %edi
movl -8(%rbp), %esi
callq _dfs
movl -4(%rbp), %edi
addl $1, %edi
movl -8(%rbp), %esi
subl $1, %esi
callq _dfs
movl -4(%rbp), %edi
movl -8(%rbp), %esi
subl $1, %esi
callq _dfs
movl -4(%rbp), %edi
subl $1, %edi
movl -8(%rbp), %esi
subl $1, %esi
callq _dfs
LBB0_7:
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)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_6 Depth 2
## Child Loop BB1_10 Depth 2
## Child Loop BB1_12 Depth 3
leaq L_.str(%rip), %rdi
movq _m@GOTPCREL(%rip), %rsi
movq _n@GOTPCREL(%rip), %rdx
movb $0, %al
callq _scanf
cmpl $0, %eax
je LBB1_20
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq _m@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB1_5
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movq _n@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB1_5
## %bb.4:
jmp LBB1_20
LBB1_5: ## in Loop: Header=BB1_1 Depth=1
movq _cnt@GOTPCREL(%rip), %rax
movl $0, (%rax)
movl $0, -8(%rbp)
LBB1_6: ## Parent Loop BB1_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -8(%rbp), %eax
movq _m@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_9
## %bb.7: ## in Loop: Header=BB1_6 Depth=2
movslq -8(%rbp), %rax
movq _grid@GOTPCREL(%rip), %rsi
imulq $105, %rax, %rax
addq %rax, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.8: ## in Loop: Header=BB1_6 Depth=2
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB1_6
LBB1_9: ## in Loop: Header=BB1_1 Depth=1
movl $0, -12(%rbp)
LBB1_10: ## Parent Loop BB1_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB1_12 Depth 3
movl -12(%rbp), %eax
movq _m@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_19
## %bb.11: ## in Loop: Header=BB1_10 Depth=2
movl $0, -16(%rbp)
LBB1_12: ## Parent Loop BB1_1 Depth=1
## Parent Loop BB1_10 Depth=2
## => This Inner Loop Header: Depth=3
movl -16(%rbp), %eax
movq _n@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_17
## %bb.13: ## in Loop: Header=BB1_12 Depth=3
movslq -12(%rbp), %rcx
movq _grid@GOTPCREL(%rip), %rax
imulq $105, %rcx, %rcx
addq %rcx, %rax
movslq -16(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $64, %eax
jne LBB1_15
## %bb.14: ## in Loop: Header=BB1_12 Depth=3
movq _cnt@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _cnt@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movl -12(%rbp), %edi
movl -16(%rbp), %esi
callq _dfs
LBB1_15: ## in Loop: Header=BB1_12 Depth=3
jmp LBB1_16
LBB1_16: ## in Loop: Header=BB1_12 Depth=3
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_12
LBB1_17: ## in Loop: Header=BB1_10 Depth=2
jmp LBB1_18
LBB1_18: ## in Loop: Header=BB1_10 Depth=2
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB1_10
LBB1_19: ## in Loop: Header=BB1_1 Depth=1
movq _cnt@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB1_1
LBB1_20:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _m,4,2 ## @m
.comm _n,4,2 ## @n
.comm _grid,11025,4 ## @grid
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d %d"
.comm _cnt,4,2 ## @cnt
L_.str.1: ## @.str.1
.asciz "%s"
L_.str.2: ## @.str.2
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/798423.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/140764840.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur w8, [x29, #-8]
subs w8, w8, #2
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
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov w8, #-1
stur w8, [x29, #-4]
b LBB0_23
LBB0_2:
ldur x8, [x29, #-16]
ldr x1, [x8, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_3
LBB0_3:
stur xzr, [x29, #-24]
; kill: def $x8 killed $xzr
stur xzr, [x29, #-32]
str xzr, [sp, #40]
ldur w8, [x29, #-8]
subs w8, w8, #5
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov w8, #-1
stur w8, [x29, #-4]
b LBB0_23
LBB0_5:
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
stur x8, [x29, #-32]
ldur x8, [x29, #-16]
ldr x8, [x8, #24]
str x8, [sp, #40]
ldur x8, [x29, #-16]
ldr x0, [x8, #32]
bl _atol
stur x0, [x29, #-24]
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6:
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
mov w8, #-1
stur w8, [x29, #-4]
b LBB0_23
LBB0_9:
ldur x0, [x29, #-32]
ldr x1, [sp, #40]
ldur x2, [x29, #-24]
bl _update_fmp_hmac
stur w0, [x29, #-4]
b LBB0_23
LBB0_10:
ldur x8, [x29, #-16]
ldr x1, [x8, #8]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_11
LBB0_11:
; kill: def $x8 killed $xzr
str xzr, [sp, #32]
str xzr, [sp, #24]
str xzr, [sp, #16]
str xzr, [sp, #8]
str xzr, [sp]
ldur w8, [x29, #-8]
subs w8, w8, #7
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov w8, #-1
stur w8, [x29, #-4]
b LBB0_23
LBB0_13:
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
str x8, [sp, #32]
ldur x8, [x29, #-16]
ldr x8, [x8, #24]
str x8, [sp, #24]
ldur x8, [x29, #-16]
ldr x0, [x8, #32]
bl _atol
str x0, [sp, #16]
ldur x8, [x29, #-16]
ldr x0, [x8, #40]
bl _atol
str x0, [sp, #8]
ldur x8, [x29, #-16]
ldr x8, [x8, #48]
str x8, [sp]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_18
b LBB0_14
LBB0_14:
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_18
b LBB0_15
LBB0_15:
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_18
b LBB0_16
LBB0_16:
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17:
ldr x8, [sp]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
mov w8, #-1
stur w8, [x29, #-4]
b LBB0_23
LBB0_19:
ldr x0, [sp, #32]
ldr x1, [sp, #24]
ldr x2, [sp, #16]
ldr x3, [sp, #8]
ldr x4, [sp]
bl _collect_fmp_bytes
stur w0, [x29, #-4]
b LBB0_23
LBB0_20:
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
b LBB0_21
LBB0_21:
b LBB0_22
LBB0_22:
mov w8, #-1
stur w8, [x29, #-4]
b LBB0_23
LBB0_23:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _update_fmp_hmac ; -- Begin function update_fmp_hmac
.p2align 2
_update_fmp_hmac: ; @update_fmp_hmac
.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]
str x1, [sp, #64]
str x2, [sp, #56]
; kill: def $x8 killed $xzr
str xzr, [sp, #48]
str xzr, [sp, #40]
str wzr, [sp, #36]
str wzr, [sp, #32]
ldur x8, [x29, #-56]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB1_3
b LBB1_1
LBB1_1:
ldr x8, [sp, #64]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2:
ldr x8, [sp, #56]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
adrp x0, l_.str.17@PAGE
add x0, x0, l_.str.17@PAGEOFF
bl _printf
mov w8, #-1
stur w8, [x29, #-44]
b LBB1_15
LBB1_4:
ldur x0, [x29, #-56]
adrp x1, l_.str.18@PAGE
add x1, x1, l_.str.18@PAGEOFF
bl _fopen
str x0, [sp, #48]
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5:
adrp x0, l_.str.19@PAGE
add x0, x0, l_.str.19@PAGEOFF
bl _printf
mov w8, #-1
stur w8, [x29, #-44]
b LBB1_15
LBB1_6:
ldr x0, [sp, #64]
adrp x1, l_.str.20@PAGE
add x1, x1, l_.str.20@PAGEOFF
bl _fopen
str x0, [sp, #40]
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_8
b LBB1_7
LBB1_7:
adrp x0, l_.str.21@PAGE
add x0, x0, l_.str.21@PAGEOFF
bl _printf
ldr x0, [sp, #48]
bl _fclose
mov w8, #-1
stur w8, [x29, #-44]
b LBB1_15
LBB1_8:
ldr x3, [sp, #40]
sub x0, x29, #40
mov x1, #1
mov x2, #32
str x2, [sp, #24] ; 8-byte Folded Spill
bl _fread
ldr x8, [sp, #24] ; 8-byte Folded Reload
subs x8, x8, x0
cset w8, eq
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
mov x9, sp
mov x8, #32
str x8, [x9]
adrp x0, l_.str.22@PAGE
add x0, x0, l_.str.22@PAGEOFF
bl _printf
ldr x0, [sp, #40]
bl _fclose
ldr x0, [sp, #48]
bl _fclose
mov w8, #-1
stur w8, [x29, #-44]
b LBB1_15
LBB1_10:
ldr x0, [sp, #48]
ldr x1, [sp, #56]
mov w2, #0
bl _fseek
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_12
b LBB1_11
LBB1_11:
adrp x0, l_.str.23@PAGE
add x0, x0, l_.str.23@PAGEOFF
bl _printf
ldr x0, [sp, #40]
bl _fclose
ldr x0, [sp, #48]
bl _fclose
mov w8, #-1
stur w8, [x29, #-44]
b LBB1_15
LBB1_12:
ldr x3, [sp, #48]
sub x0, x29, #40
mov x1, #1
mov x2, #32
str x2, [sp, #16] ; 8-byte Folded Spill
bl _fwrite
ldr x8, [sp, #16] ; 8-byte Folded Reload
subs x8, x8, x0
cset w8, eq
tbnz w8, #0, LBB1_14
b LBB1_13
LBB1_13:
mov x9, sp
mov x8, #32
str x8, [x9]
adrp x0, l_.str.24@PAGE
add x0, x0, l_.str.24@PAGEOFF
bl _printf
ldr x0, [sp, #40]
bl _fclose
ldr x0, [sp, #48]
bl _fclose
mov w8, #-1
stur w8, [x29, #-44]
b LBB1_15
LBB1_14:
ldr x0, [sp, #48]
bl _fclose
ldr x0, [sp, #40]
bl _fclose
stur wzr, [x29, #-44]
b LBB1_15
LBB1_15:
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_17
b LBB1_16
LBB1_16:
bl ___stack_chk_fail
LBB1_17:
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
.globl _collect_fmp_bytes ; -- Begin function collect_fmp_bytes
.p2align 2
_collect_fmp_bytes: ; @collect_fmp_bytes
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur x2, [x29, #-32]
stur x3, [x29, #-40]
stur x4, [x29, #-48]
; kill: def $x8 killed $xzr
str xzr, [sp, #56]
str xzr, [sp, #48]
str wzr, [sp, #44]
strb wzr, [sp, #43]
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_5
b LBB2_1
LBB2_1:
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_5
b LBB2_2
LBB2_2:
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_5
b LBB2_3
LBB2_3:
ldur x8, [x29, #-40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_5
b LBB2_4
LBB2_4:
ldur x8, [x29, #-48]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_6
b LBB2_5
LBB2_5:
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
mov w8, #-1
stur w8, [x29, #-4]
b LBB2_23
LBB2_6:
ldur x8, [x29, #-24]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
ldur x0, [x29, #-16]
adrp x1, l_.str.10@PAGE
add x1, x1, l_.str.10@PAGEOFF
bl _fopen
str x0, [sp, #56]
ldr x8, [sp, #56]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_8
b LBB2_7
LBB2_7:
ldur x8, [x29, #-16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
mov w8, #-1
stur w8, [x29, #-4]
b LBB2_23
LBB2_8:
ldr x0, [sp, #56]
ldur x1, [x29, #-32]
mov w2, #0
bl _fseek
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB2_10
b LBB2_9
LBB2_9:
ldur x8, [x29, #-16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
ldr x0, [sp, #56]
bl _fclose
mov w8, #-1
stur w8, [x29, #-4]
b LBB2_23
LBB2_10:
ldur x0, [x29, #-48]
adrp x1, l_.str.13@PAGE
add x1, x1, l_.str.13@PAGEOFF
bl _fopen
str x0, [sp, #48]
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_12
b LBB2_11
LBB2_11:
ldur x8, [x29, #-48]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
ldr x0, [sp, #56]
bl _fclose
mov w8, #-1
stur w8, [x29, #-4]
b LBB2_23
LBB2_12:
mov w8, #1
str w8, [sp, #44]
b LBB2_13
LBB2_13: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #44]
; kill: def $x8 killed $w8
ldur x9, [x29, #-40]
subs x8, x8, x9
cset w8, hi
tbnz w8, #0, LBB2_22
b LBB2_14
LBB2_14: ; in Loop: Header=BB2_13 Depth=1
ldr x3, [sp, #56]
add x0, sp, #43
mov x2, #1
str x2, [sp, #32] ; 8-byte Folded Spill
mov x1, x2
bl _fread
ldr x8, [sp, #32] ; 8-byte Folded Reload
subs x8, x8, x0
cset w8, eq
tbnz w8, #0, LBB2_16
b LBB2_15
LBB2_15:
ldur x8, [x29, #-16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
ldr x0, [sp, #56]
bl _fclose
ldr x0, [sp, #48]
bl _fclose
mov w8, #-1
stur w8, [x29, #-4]
b LBB2_23
LBB2_16: ; in Loop: Header=BB2_13 Depth=1
add x8, sp, #43
str x8, [sp, #16] ; 8-byte Folded Spill
ldrb w10, [sp, #43]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _printf
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldr x3, [sp, #48]
mov x2, #1
str x2, [sp, #24] ; 8-byte Folded Spill
mov x1, x2
bl _fwrite
ldr x8, [sp, #24] ; 8-byte Folded Reload
subs x8, x8, x0
cset w8, eq
tbnz w8, #0, LBB2_18
b LBB2_17
LBB2_17:
ldur x8, [x29, #-48]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.16@PAGE
add x0, x0, l_.str.16@PAGEOFF
bl _printf
ldr x0, [sp, #56]
bl _fclose
ldr x0, [sp, #48]
bl _fclose
mov w8, #-1
stur w8, [x29, #-4]
b LBB2_23
LBB2_18: ; in Loop: Header=BB2_13 Depth=1
ldr w8, [sp, #44]
mov w10, #16
udiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB2_20
b LBB2_19
LBB2_19: ; in Loop: Header=BB2_13 Depth=1
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB2_20
LBB2_20: ; in Loop: Header=BB2_13 Depth=1
b LBB2_21
LBB2_21: ; in Loop: Header=BB2_13 Depth=1
ldr w8, [sp, #44]
add w8, w8, #1
str w8, [sp, #44]
b LBB2_13
LBB2_22:
ldr x0, [sp, #56]
bl _fclose
ldr x0, [sp, #48]
bl _fclose
stur wzr, [x29, #-4]
b LBB2_23
LBB2_23:
ldur w0, [x29, #-4]
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 "\nUsage : \n"
l_.str.1: ; @.str.1
.asciz "fips_fmp_utils -u vmlinux_file hmac_file offset"
l_.str.2: ; @.str.2
.asciz "fips_fmp_utils -g vmlinux_file section_name offset size out_file"
l_.str.3: ; @.str.3
.asciz "\n"
l_.str.4: ; @.str.4
.asciz "-u"
l_.str.5: ; @.str.5
.asciz "./fips_fmp_utils -u vmlinux_file hmac_file offset"
l_.str.6: ; @.str.6
.asciz "-g"
l_.str.7: ; @.str.7
.asciz "./fips_fmp_utils -g vmlinux_file section_name offset size out_file"
l_.str.8: ; @.str.8
.asciz "collect_fmp_bytes : Invalid arguments"
l_.str.9: ; @.str.9
.asciz "Section : %s\n"
l_.str.10: ; @.str.10
.asciz "r"
l_.str.11: ; @.str.11
.asciz "Unable to open file : %s"
l_.str.12: ; @.str.12
.asciz "Unable to seek file : %s"
l_.str.13: ; @.str.13
.asciz "ab"
l_.str.14: ; @.str.14
.asciz "Unable to read 1 byte from file : %s"
l_.str.15: ; @.str.15
.asciz "%02x "
l_.str.16: ; @.str.16
.asciz "Unable to write 1 byte to file : %s"
l_.str.17: ; @.str.17
.asciz "FIPS update_fmp_hmac : Invalid Params"
l_.str.18: ; @.str.18
.asciz "r+b"
l_.str.19: ; @.str.19
.asciz "Unable to open vmlinux file "
l_.str.20: ; @.str.20
.asciz "rb"
l_.str.21: ; @.str.21
.asciz "Unable to open hmac file "
l_.str.22: ; @.str.22
.asciz "Unable to read %d bytes from hmac file"
l_.str.23: ; @.str.23
.asciz "Unable to seek into vmlinux file."
l_.str.24: ; @.str.24
.asciz "Unable to write %d byte into vmlinux"
.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)
cmpl $2, -8(%rbp)
jge LBB0_2
## %bb.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
movb $0, %al
callq _printf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $-1, -4(%rbp)
jmp LBB0_23
LBB0_2:
movq -16(%rbp), %rax
movq 8(%rax), %rsi
leaq L_.str.4(%rip), %rdi
callq _strcmp
cmpl $0, %eax
jne LBB0_10
## %bb.3:
movq $0, -24(%rbp)
movq $0, -32(%rbp)
movq $0, -40(%rbp)
cmpl $5, -8(%rbp)
je LBB0_5
## %bb.4:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $-1, -4(%rbp)
jmp LBB0_23
LBB0_5:
movq -16(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -32(%rbp)
movq -16(%rbp), %rax
movq 24(%rax), %rax
movq %rax, -40(%rbp)
movq -16(%rbp), %rax
movq 32(%rax), %rdi
callq _atol
movq %rax, -24(%rbp)
cmpq $0, -32(%rbp)
je LBB0_8
## %bb.6:
cmpq $0, -40(%rbp)
je LBB0_8
## %bb.7:
cmpq $0, -24(%rbp)
jne LBB0_9
LBB0_8:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movl $-1, -4(%rbp)
jmp LBB0_23
LBB0_9:
movq -32(%rbp), %rdi
movq -40(%rbp), %rsi
movq -24(%rbp), %rdx
callq _update_fmp_hmac
movl %eax, -4(%rbp)
jmp LBB0_23
LBB0_10:
movq -16(%rbp), %rax
movq 8(%rax), %rsi
leaq L_.str.6(%rip), %rdi
callq _strcmp
cmpl $0, %eax
jne LBB0_20
## %bb.11:
movq $0, -48(%rbp)
movq $0, -56(%rbp)
movq $0, -64(%rbp)
movq $0, -72(%rbp)
movq $0, -80(%rbp)
cmpl $7, -8(%rbp)
je LBB0_13
## %bb.12:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $-1, -4(%rbp)
jmp LBB0_23
LBB0_13:
movq -16(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -48(%rbp)
movq -16(%rbp), %rax
movq 24(%rax), %rax
movq %rax, -56(%rbp)
movq -16(%rbp), %rax
movq 32(%rax), %rdi
callq _atol
movq %rax, -64(%rbp)
movq -16(%rbp), %rax
movq 40(%rax), %rdi
callq _atol
movq %rax, -72(%rbp)
movq -16(%rbp), %rax
movq 48(%rax), %rax
movq %rax, -80(%rbp)
cmpq $0, -48(%rbp)
je LBB0_18
## %bb.14:
cmpq $0, -56(%rbp)
je LBB0_18
## %bb.15:
cmpq $0, -64(%rbp)
je LBB0_18
## %bb.16:
cmpq $0, -72(%rbp)
je LBB0_18
## %bb.17:
cmpq $0, -80(%rbp)
jne LBB0_19
LBB0_18:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
movl $-1, -4(%rbp)
jmp LBB0_23
LBB0_19:
movq -48(%rbp), %rdi
movq -56(%rbp), %rsi
movq -64(%rbp), %rdx
movq -72(%rbp), %rcx
movq -80(%rbp), %r8
callq _collect_fmp_bytes
movl %eax, -4(%rbp)
jmp LBB0_23
LBB0_20:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
## %bb.21:
jmp LBB0_22
LBB0_22:
movl $-1, -4(%rbp)
LBB0_23:
movl -4(%rbp), %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _update_fmp_hmac ## -- Begin function update_fmp_hmac
.p2align 4, 0x90
_update_fmp_hmac: ## @update_fmp_hmac
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $112, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -64(%rbp)
movq %rsi, -72(%rbp)
movq %rdx, -80(%rbp)
movq $0, -88(%rbp)
movq $0, -96(%rbp)
movl $0, -100(%rbp)
movl $0, -104(%rbp)
cmpq $0, -64(%rbp)
je LBB1_3
## %bb.1:
cmpq $0, -72(%rbp)
je LBB1_3
## %bb.2:
cmpq $0, -80(%rbp)
jne LBB1_4
LBB1_3:
leaq L_.str.17(%rip), %rdi
movb $0, %al
callq _printf
movl $-1, -52(%rbp)
jmp LBB1_15
LBB1_4:
movq -64(%rbp), %rdi
leaq L_.str.18(%rip), %rsi
callq _fopen
movq %rax, -88(%rbp)
cmpq $0, -88(%rbp)
jne LBB1_6
## %bb.5:
leaq L_.str.19(%rip), %rdi
movb $0, %al
callq _printf
movl $-1, -52(%rbp)
jmp LBB1_15
LBB1_6:
movq -72(%rbp), %rdi
leaq L_.str.20(%rip), %rsi
callq _fopen
movq %rax, -96(%rbp)
cmpq $0, -96(%rbp)
jne LBB1_8
## %bb.7:
leaq L_.str.21(%rip), %rdi
movb $0, %al
callq _printf
movq -88(%rbp), %rdi
callq _fclose
movl $-1, -52(%rbp)
jmp LBB1_15
LBB1_8:
leaq -48(%rbp), %rdi
movq -96(%rbp), %rcx
movl $1, %esi
movl $32, %edx
callq _fread
movq %rax, %rcx
movl $32, %eax
cmpq %rcx, %rax
je LBB1_10
## %bb.9:
leaq L_.str.22(%rip), %rdi
movl $32, %esi
movb $0, %al
callq _printf
movq -96(%rbp), %rdi
callq _fclose
movq -88(%rbp), %rdi
callq _fclose
movl $-1, -52(%rbp)
jmp LBB1_15
LBB1_10:
movq -88(%rbp), %rdi
movq -80(%rbp), %rsi
xorl %edx, %edx
callq _fseek
cmpl $0, %eax
je LBB1_12
## %bb.11:
leaq L_.str.23(%rip), %rdi
movb $0, %al
callq _printf
movq -96(%rbp), %rdi
callq _fclose
movq -88(%rbp), %rdi
callq _fclose
movl $-1, -52(%rbp)
jmp LBB1_15
LBB1_12:
leaq -48(%rbp), %rdi
movq -88(%rbp), %rcx
movl $1, %esi
movl $32, %edx
callq _fwrite
movq %rax, %rcx
movl $32, %eax
cmpq %rcx, %rax
je LBB1_14
## %bb.13:
leaq L_.str.24(%rip), %rdi
movl $32, %esi
movb $0, %al
callq _printf
movq -96(%rbp), %rdi
callq _fclose
movq -88(%rbp), %rdi
callq _fclose
movl $-1, -52(%rbp)
jmp LBB1_15
LBB1_14:
movq -88(%rbp), %rdi
callq _fclose
movq -96(%rbp), %rdi
callq _fclose
movl $0, -52(%rbp)
LBB1_15:
movl -52(%rbp), %eax
movl %eax, -108(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_17
## %bb.16:
movl -108(%rbp), %eax ## 4-byte Reload
addq $112, %rsp
popq %rbp
retq
LBB1_17:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _collect_fmp_bytes ## -- Begin function collect_fmp_bytes
.p2align 4, 0x90
_collect_fmp_bytes: ## @collect_fmp_bytes
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq %rcx, -40(%rbp)
movq %r8, -48(%rbp)
movq $0, -56(%rbp)
movq $0, -64(%rbp)
movl $0, -68(%rbp)
movb $0, -69(%rbp)
cmpq $0, -16(%rbp)
je LBB2_5
## %bb.1:
cmpq $0, -24(%rbp)
je LBB2_5
## %bb.2:
cmpq $0, -32(%rbp)
je LBB2_5
## %bb.3:
cmpq $0, -40(%rbp)
je LBB2_5
## %bb.4:
cmpq $0, -48(%rbp)
jne LBB2_6
LBB2_5:
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movl $-1, -4(%rbp)
jmp LBB2_23
LBB2_6:
movq -24(%rbp), %rsi
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rdi
leaq L_.str.10(%rip), %rsi
callq _fopen
movq %rax, -56(%rbp)
cmpq $0, -56(%rbp)
jne LBB2_8
## %bb.7:
movq -16(%rbp), %rsi
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
movl $-1, -4(%rbp)
jmp LBB2_23
LBB2_8:
movq -56(%rbp), %rdi
movq -32(%rbp), %rsi
xorl %edx, %edx
callq _fseek
cmpl $0, %eax
je LBB2_10
## %bb.9:
movq -16(%rbp), %rsi
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
movq -56(%rbp), %rdi
callq _fclose
movl $-1, -4(%rbp)
jmp LBB2_23
LBB2_10:
movq -48(%rbp), %rdi
leaq L_.str.13(%rip), %rsi
callq _fopen
movq %rax, -64(%rbp)
cmpq $0, -64(%rbp)
jne LBB2_12
## %bb.11:
movq -48(%rbp), %rsi
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
movq -56(%rbp), %rdi
callq _fclose
movl $-1, -4(%rbp)
jmp LBB2_23
LBB2_12:
movl $1, -68(%rbp)
LBB2_13: ## =>This Inner Loop Header: Depth=1
movl -68(%rbp), %eax
## kill: def $rax killed $eax
cmpq -40(%rbp), %rax
ja LBB2_22
## %bb.14: ## in Loop: Header=BB2_13 Depth=1
movq -56(%rbp), %rcx
leaq -69(%rbp), %rdi
movl $1, %edx
movq %rdx, %rsi
callq _fread
movq %rax, %rcx
movl $1, %eax
cmpq %rcx, %rax
je LBB2_16
## %bb.15:
movq -16(%rbp), %rsi
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
movq -56(%rbp), %rdi
callq _fclose
movq -64(%rbp), %rdi
callq _fclose
movl $-1, -4(%rbp)
jmp LBB2_23
LBB2_16: ## in Loop: Header=BB2_13 Depth=1
movzbl -69(%rbp), %esi
leaq L_.str.15(%rip), %rdi
movb $0, %al
callq _printf
movq -64(%rbp), %rcx
leaq -69(%rbp), %rdi
movl $1, %edx
movq %rdx, %rsi
callq _fwrite
movq %rax, %rcx
movl $1, %eax
cmpq %rcx, %rax
je LBB2_18
## %bb.17:
movq -48(%rbp), %rsi
leaq L_.str.16(%rip), %rdi
movb $0, %al
callq _printf
movq -56(%rbp), %rdi
callq _fclose
movq -64(%rbp), %rdi
callq _fclose
movl $-1, -4(%rbp)
jmp LBB2_23
LBB2_18: ## in Loop: Header=BB2_13 Depth=1
movl -68(%rbp), %eax
andl $15, %eax
cmpl $0, %eax
jne LBB2_20
## %bb.19: ## in Loop: Header=BB2_13 Depth=1
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
LBB2_20: ## in Loop: Header=BB2_13 Depth=1
jmp LBB2_21
LBB2_21: ## in Loop: Header=BB2_13 Depth=1
movl -68(%rbp), %eax
addl $1, %eax
movl %eax, -68(%rbp)
jmp LBB2_13
LBB2_22:
movq -56(%rbp), %rdi
callq _fclose
movq -64(%rbp), %rdi
callq _fclose
movl $0, -4(%rbp)
LBB2_23:
movl -4(%rbp), %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\nUsage : \n"
L_.str.1: ## @.str.1
.asciz "fips_fmp_utils -u vmlinux_file hmac_file offset"
L_.str.2: ## @.str.2
.asciz "fips_fmp_utils -g vmlinux_file section_name offset size out_file"
L_.str.3: ## @.str.3
.asciz "\n"
L_.str.4: ## @.str.4
.asciz "-u"
L_.str.5: ## @.str.5
.asciz "./fips_fmp_utils -u vmlinux_file hmac_file offset"
L_.str.6: ## @.str.6
.asciz "-g"
L_.str.7: ## @.str.7
.asciz "./fips_fmp_utils -g vmlinux_file section_name offset size out_file"
L_.str.8: ## @.str.8
.asciz "collect_fmp_bytes : Invalid arguments"
L_.str.9: ## @.str.9
.asciz "Section : %s\n"
L_.str.10: ## @.str.10
.asciz "r"
L_.str.11: ## @.str.11
.asciz "Unable to open file : %s"
L_.str.12: ## @.str.12
.asciz "Unable to seek file : %s"
L_.str.13: ## @.str.13
.asciz "ab"
L_.str.14: ## @.str.14
.asciz "Unable to read 1 byte from file : %s"
L_.str.15: ## @.str.15
.asciz "%02x "
L_.str.16: ## @.str.16
.asciz "Unable to write 1 byte to file : %s"
L_.str.17: ## @.str.17
.asciz "FIPS update_fmp_hmac : Invalid Params"
L_.str.18: ## @.str.18
.asciz "r+b"
L_.str.19: ## @.str.19
.asciz "Unable to open vmlinux file "
L_.str.20: ## @.str.20
.asciz "rb"
L_.str.21: ## @.str.21
.asciz "Unable to open hmac file "
L_.str.22: ## @.str.22
.asciz "Unable to read %d bytes from hmac file"
L_.str.23: ## @.str.23
.asciz "Unable to seek into vmlinux file."
L_.str.24: ## @.str.24
.asciz "Unable to write %d byte into vmlinux"
.subsections_via_symbols
| the_stack_data/70766.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 x9, sp
sub x8, x29, #4
str x8, [x9]
sub x8, x29, #8
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldur w8, [x29, #-4]
ldur w9, [x29, #-8]
mul w8, w8, w9
mov w9, #2
sdiv 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
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 %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 $16, %rsp
leaq L_.str(%rip), %rdi
leaq -4(%rbp), %rsi
leaq -8(%rbp), %rdx
movb $0, %al
callq _scanf
movl -4(%rbp), %eax
imull -8(%rbp), %eax
movl $2, %ecx
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/242331671.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __DATA,__data
.globl __libf77_version_f2c ; @_libf77_version_f2c
__libf77_version_f2c:
.asciz "\n@(#) LIBF77 VERSION (f2c) 20051004\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __DATA,__data
.globl __libf77_version_f2c ## @_libf77_version_f2c
.p2align 4
__libf77_version_f2c:
.asciz "\n@(#) LIBF77 VERSION (f2c) 20051004\n"
.subsections_via_symbols
| the_stack_data/130225.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI0_0:
.quad 0x3fe1c71c71c71c72 ; double 0.55555555555555558
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
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
mov w8, #300
stur w8, [x29, #-8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
; implicit-def: $x9
mov x9, x8
ldur w8, [x29, #-8]
subs w8, w8, #32
scvtf d1, w8
adrp x8, lCPI0_0@PAGE
ldr d0, [x8, lCPI0_0@PAGEOFF]
fmul d0, d0, d1
mov x8, sp
str x9, [x8]
str d0, [x8, #8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #20
stur w8, [x29, #-8]
b LBB0_1
LBB0_4:
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 " TEMPERATURES\n"
l_.str.1: ; @.str.1
.asciz "--------------------------\n"
l_.str.2: ; @.str.2
.asciz " Celsius\tFahrenheit\n"
l_.str.3: ; @.str.3
.asciz " %3d \t \t %6.1f\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI0_0:
.quad 0x3fe1c71c71c71c72 ## double 0.55555555555555558
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $300, -8(%rbp) ## imm = 0x12C
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -8(%rbp)
jl LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %esi
movl -8(%rbp), %eax
subl $32, %eax
cvtsi2sd %eax, %xmm1
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm1, %xmm0
leaq L_.str.3(%rip), %rdi
movb $1, %al
callq _printf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
subl $20, %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_4:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz " TEMPERATURES\n"
L_.str.1: ## @.str.1
.asciz "--------------------------\n"
L_.str.2: ## @.str.2
.asciz " Celsius\tFahrenheit\n"
L_.str.3: ## @.str.3
.asciz " %3d \t \t %6.1f\n"
.subsections_via_symbols
| the_stack_data/156393590.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Release 2.3.5"
.section __DATA,__data
.globl _VersionIdentString ; @VersionIdentString
.p2align 3
_VersionIdentString:
.quad l_.str
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Release 2.3.5"
.section __DATA,__data
.globl _VersionIdentString ## @VersionIdentString
.p2align 3
_VersionIdentString:
.quad L_.str
.subsections_via_symbols
| the_stack_data/43888411.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 x9, sp
sub x8, x29, #4
str x8, [x9]
sub x8, x29, #8
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldur w8, [x29, #-4]
ldur w9, [x29, #-8]
add 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
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 %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 $16, %rsp
leaq L_.str(%rip), %rdi
leaq -4(%rbp), %rsi
leaq -8(%rbp), %rdx
movb $0, %al
callq _scanf
movl -4(%rbp), %esi
addl -8(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d %d"
L_.str.1: ## @.str.1
.asciz "%d"
.subsections_via_symbols
| the_stack_data/167330693.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, #2
cset w8, eq
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:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
mov w1, #384
bl _mkfifo
bl _fork
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
mov w1, #0
bl _open
str w0, [sp, #8]
ldr w0, [sp, #8]
bl _close
b LBB0_5
LBB0_4:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
mov w1, #1
bl _open
str w0, [sp, #4]
ldr w0, [sp, #4]
bl _close
b LBB0_5
LBB0_5:
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Usage: ./mkfifo <pipe name>\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $2, -8(%rbp)
je 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:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
movl $384, %esi ## imm = 0x180
callq _mkfifo
callq _fork
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
jne LBB0_4
## %bb.3:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
xorl %esi, %esi
movb $0, %al
callq _open
movl %eax, -24(%rbp)
movl -24(%rbp), %edi
callq _close
jmp LBB0_5
LBB0_4:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
movl $1, %esi
movb $0, %al
callq _open
movl %eax, -28(%rbp)
movl -28(%rbp), %edi
callq _close
LBB0_5:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage: ./mkfifo <pipe name>\n"
.subsections_via_symbols
| the_stack_data/150142966.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/175144387.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]
sturb wzr, [x29, #-5]
str wzr, [sp, #4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _getchar
str w0, [sp, #4]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4]
subs w8, w8, #32
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldurb w8, [x29, #-5]
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w0, [sp, #4]
bl _putchar
mov w8, #1
sturb w8, [x29, #-5]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
sturb wzr, [x29, #-5]
ldr w0, [sp, #4]
bl _putchar
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_8:
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movb $0, -5(%rbp)
movl $0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
callq _getchar
movl %eax, -12(%rbp)
cmpl $-1, %eax
je LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
cmpl $32, -12(%rbp)
jne LBB0_6
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
testb $1, -5(%rbp)
jne LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %edi
callq _putchar
movb $1, -5(%rbp)
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movb $0, -5(%rbp)
movl -12(%rbp), %edi
callq _putchar
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_8:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/82950379.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, #0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _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
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/247018767.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, #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 wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
adrp x8, l_.str.156@PAGE
add x8, x8, l_.str.156@PAGEOFF
stur x8, [x29, #-24]
stur xzr, [x29, #-32]
ldur x0, [x29, #-24]
bl _strlen
stur x0, [x29, #-40]
ldur x0, [x29, #-24]
bl _strlen
stur x0, [x29, #-48]
stur xzr, [x29, #-56]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-56]
subs x8, x8, #78
cset w8, hs
tbnz w8, #0, LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-56]
mov x9, #24
mul x9, x8, x9
adrp x8, _error@PAGE
add x8, x8, _error@PAGEOFF
add x8, x8, x9
ldrsw x8, [x8, #8]
ldur x9, [x29, #-32]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-56]
mov x9, #24
mul x9, x8, x9
adrp x8, _error@PAGE
add x8, x8, _error@PAGEOFF
add x8, x8, x9
ldrsw x8, [x8, #8]
stur x8, [x29, #-32]
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-56]
mov x9, #24
mul x9, x8, x9
adrp x8, _error@PAGE
add x8, x8, _error@PAGEOFF
ldr x0, [x8, x9]
bl _strlen
ldur x8, [x29, #-48]
subs x8, x0, x8
cset w8, ls
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-56]
mov x9, #24
mul x9, x8, x9
adrp x8, _error@PAGE
add x8, x8, _error@PAGEOFF
ldr x0, [x8, x9]
bl _strlen
stur x0, [x29, #-48]
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-56]
mov x9, #24
mul x9, x8, x9
adrp x8, _error@PAGE
add x8, x8, _error@PAGEOFF
add x8, x8, x9
ldr x0, [x8, #16]
bl _strlen
ldur x8, [x29, #-40]
subs x8, x0, x8
cset w8, ls
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-56]
mov x9, #24
mul x9, x8, x9
adrp x8, _error@PAGE
add x8, x8, _error@PAGEOFF
add x8, x8, x9
ldr x0, [x8, #16]
bl _strlen
stur x0, [x29, #-40]
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 x8, [x29, #-56]
add x8, x8, #1
stur x8, [x29, #-56]
b LBB0_1
LBB0_10:
adrp x0, l_.str.157@PAGE
add x0, x0, l_.str.157@PAGEOFF
str x0, [sp, #56] ; 8-byte Folded Spill
bl _puts
adrp x0, l_.str.158@PAGE
add x0, x0, l_.str.158@PAGEOFF
bl _puts
ldr x0, [sp, #56] ; 8-byte Folded Reload
bl _puts
adrp x0, l_.str.159@PAGE
add x0, x0, l_.str.159@PAGEOFF
bl _puts
stur xzr, [x29, #-64]
b LBB0_11
LBB0_11: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-64]
subs x8, x8, #78
cset w8, hs
tbnz w8, #0, LBB0_14
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=1
ldur x8, [x29, #-64]
mov x13, #24
mul x10, x8, x13
adrp x8, _error@PAGE
add x8, x8, _error@PAGEOFF
mov x9, x8
add x9, x9, x10
ldr x12, [x9, #16]
ldur x11, [x29, #-48]
ldur x9, [x29, #-64]
mul x9, x9, x13
ldr x10, [x8, x9]
ldur x9, [x29, #-64]
mul x9, x9, x13
add x8, x8, x9
ldr w9, [x8, #8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x12, [x9]
str x11, [x9, #8]
str x10, [x9, #16]
str x8, [x9, #24]
adrp x0, l_.str.160@PAGE
add x0, x0, l_.str.160@PAGEOFF
bl _printf
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_11 Depth=1
ldur x8, [x29, #-64]
add x8, x8, #1
stur x8, [x29, #-64]
b LBB0_11
LBB0_14:
adrp x0, l_.str.159@PAGE
add x0, x0, l_.str.159@PAGEOFF
str x0, [sp, #40] ; 8-byte Folded Spill
bl _puts
adrp x0, l_.str.161@PAGE
add x0, x0, l_.str.161@PAGEOFF
bl _puts
adrp x0, l_.str.162@PAGE
add x0, x0, l_.str.162@PAGEOFF
bl _puts
adrp x0, l_.str.163@PAGE
add x0, x0, l_.str.163@PAGEOFF
bl _puts
adrp x0, l_.str.164@PAGE
add x0, x0, l_.str.164@PAGEOFF
bl _puts
adrp x0, l_.str.165@PAGE
add x0, x0, l_.str.165@PAGEOFF
bl _puts
ldur x8, [x29, #-32]
; kill: def $w8 killed $w8 killed $x8
add w10, w8, #1
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.166@PAGE
add x0, x0, l_.str.166@PAGEOFF
bl _printf
ldr x0, [sp, #40] ; 8-byte Folded Reload
bl _puts
adrp x0, l_.str.167@PAGE
add x0, x0, l_.str.167@PAGEOFF
bl _puts
adrp x0, l_.str.168@PAGE
add x0, x0, l_.str.168@PAGEOFF
bl _puts
adrp x0, l_.str.169@PAGE
add x0, x0, l_.str.169@PAGEOFF
bl _puts
ldur x8, [x29, #-24]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.170@PAGE
add x0, x0, l_.str.170@PAGEOFF
bl _printf
ldr x0, [sp, #40] ; 8-byte Folded Reload
bl _puts
adrp x0, l_.str.171@PAGE
add x0, x0, l_.str.171@PAGEOFF
str x0, [sp, #32] ; 8-byte Folded Spill
bl _puts
adrp x0, l_.str.172@PAGE
add x0, x0, l_.str.172@PAGEOFF
bl _puts
ldr x0, [sp, #32] ; 8-byte Folded Reload
bl _puts
ldr x0, [sp, #40] ; 8-byte Folded Reload
bl _puts
ldur x8, [x29, #-48]
subs x8, x8, #8
stur x8, [x29, #-48]
ldur x8, [x29, #-32]
mov x9, #1
str x9, [sp, #48] ; 8-byte Folded Spill
add x9, x8, #1
mov x8, #24
mul x0, x8, x9
bl _malloc
ldr x8, [sp, #40] ; 8-byte Folded Reload
stur x0, [x29, #-72]
ldur x10, [x29, #-48]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.173@PAGE
add x0, x0, l_.str.173@PAGEOFF
bl _printf
ldr x8, [sp, #48] ; 8-byte Folded Reload
str x8, [sp, #80]
b LBB0_15
LBB0_15: ; =>This Loop Header: Depth=1
; Child Loop BB0_17 Depth 2
ldr x8, [sp, #80]
ldur x9, [x29, #-32]
subs x8, x8, x9
cset w8, hi
tbnz w8, #0, LBB0_27
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_15 Depth=1
mov w8, #-1
str w8, [sp, #76]
str xzr, [sp, #64]
b LBB0_17
LBB0_17: ; Parent Loop BB0_15 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #64]
subs x8, x8, #78
cset w8, hs
tbnz w8, #0, LBB0_22
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_17 Depth=2
ldr x8, [sp, #64]
mov x9, #24
mul x9, x8, x9
adrp x8, _error@PAGE
add x8, x8, _error@PAGEOFF
add x8, x8, x9
ldrsw x8, [x8, #8]
ldr x9, [sp, #80]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_15 Depth=1
ldr x8, [sp, #64]
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #76]
b LBB0_22
LBB0_20: ; in Loop: Header=BB0_17 Depth=2
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_17 Depth=2
ldr x8, [sp, #64]
add x8, x8, #1
str x8, [sp, #64]
b LBB0_17
LBB0_22: ; in Loop: Header=BB0_15 Depth=1
ldr w8, [sp, #76]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_15 Depth=1
ldur x12, [x29, #-48]
ldrsw x8, [sp, #76]
mov x13, #24
mul x9, x8, x13
adrp x8, _error@PAGE
add x8, x8, _error@PAGEOFF
ldr x9, [x8, x9]
add x11, x9, #8
ldrsw x9, [sp, #76]
mul x9, x9, x13
ldr x9, [x8, x9]
add x10, x9, #8
ldrsw x9, [sp, #76]
mul x9, x9, x13
add x8, x8, x9
ldr x8, [x8, #16]
mov x9, sp
str x12, [x9]
str x11, [x9, #8]
str x10, [x9, #16]
str x8, [x9, #24]
adrp x0, l_.str.174@PAGE
add x0, x0, l_.str.174@PAGEOFF
bl _printf
b LBB0_25
LBB0_24: ; in Loop: Header=BB0_15 Depth=1
ldur x11, [x29, #-48]
ldur x10, [x29, #-24]
ldur x8, [x29, #-24]
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.175@PAGE
add x0, x0, l_.str.175@PAGEOFF
bl _printf
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_15 Depth=1
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_15 Depth=1
ldr x8, [sp, #80]
add x8, x8, #1
str x8, [sp, #80]
b LBB0_15
LBB0_27:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "_PDCLIB_E2BIG"
l_.str.1: ; @.str.1
.asciz "Argument list too long"
l_.str.2: ; @.str.2
.asciz "_PDCLIB_EACCES"
l_.str.3: ; @.str.3
.asciz "Permission denied"
l_.str.4: ; @.str.4
.asciz "_PDCLIB_EADDRINUSE"
l_.str.5: ; @.str.5
.asciz "Address in use"
l_.str.6: ; @.str.6
.asciz "_PDCLIB_EADDRNOTAVAIL"
l_.str.7: ; @.str.7
.asciz "Address not available"
l_.str.8: ; @.str.8
.asciz "_PDCLIB_EAFNOSUPPORT"
l_.str.9: ; @.str.9
.asciz "Address family not supported"
l_.str.10: ; @.str.10
.asciz "_PDCLIB_EAGAIN"
l_.str.11: ; @.str.11
.asciz "Resource unavailable, try again"
l_.str.12: ; @.str.12
.asciz "_PDCLIB_EALREADY"
l_.str.13: ; @.str.13
.asciz "Connection already in progress"
l_.str.14: ; @.str.14
.asciz "_PDCLIB_EBADF"
l_.str.15: ; @.str.15
.asciz "Bad file descriptor"
l_.str.16: ; @.str.16
.asciz "_PDCLIB_EBADMSG"
l_.str.17: ; @.str.17
.asciz "Bad message"
l_.str.18: ; @.str.18
.asciz "_PDCLIB_EBUSY"
l_.str.19: ; @.str.19
.asciz "Device or resource busy"
l_.str.20: ; @.str.20
.asciz "_PDCLIB_ECANCELED"
l_.str.21: ; @.str.21
.asciz "Operation canceled"
l_.str.22: ; @.str.22
.asciz "_PDCLIB_ECHILD"
l_.str.23: ; @.str.23
.asciz "No child processes"
l_.str.24: ; @.str.24
.asciz "_PDCLIB_ECONNABORTED"
l_.str.25: ; @.str.25
.asciz "Connection aborted"
l_.str.26: ; @.str.26
.asciz "_PDCLIB_ECONNREFUSED"
l_.str.27: ; @.str.27
.asciz "Connection refused"
l_.str.28: ; @.str.28
.asciz "_PDCLIB_ECONNRESET"
l_.str.29: ; @.str.29
.asciz "Connection reset"
l_.str.30: ; @.str.30
.asciz "_PDCLIB_EDEADLK"
l_.str.31: ; @.str.31
.asciz "Resource deadlock would occur"
l_.str.32: ; @.str.32
.asciz "_PDCLIB_EDESTADDRREQ"
l_.str.33: ; @.str.33
.asciz "Destination address required"
l_.str.34: ; @.str.34
.asciz "_PDCLIB_EDOM"
l_.str.35: ; @.str.35
.asciz "Mathematics argument out of domain of function"
l_.str.36: ; @.str.36
.asciz "_PDCLIB_EEXIST"
l_.str.37: ; @.str.37
.asciz "File exists"
l_.str.38: ; @.str.38
.asciz "_PDCLIB_EFAULT"
l_.str.39: ; @.str.39
.asciz "Bad address"
l_.str.40: ; @.str.40
.asciz "_PDCLIB_EFBIG"
l_.str.41: ; @.str.41
.asciz "File too large"
l_.str.42: ; @.str.42
.asciz "_PDCLIB_EHOSTUNREACH"
l_.str.43: ; @.str.43
.asciz "Host is unreachable"
l_.str.44: ; @.str.44
.asciz "_PDCLIB_EIDRM"
l_.str.45: ; @.str.45
.asciz "Identifier removed"
l_.str.46: ; @.str.46
.asciz "_PDCLIB_EILSEQ"
l_.str.47: ; @.str.47
.asciz "Illegal byte sequence"
l_.str.48: ; @.str.48
.asciz "_PDCLIB_EINPROGRESS"
l_.str.49: ; @.str.49
.asciz "Operation in progress"
l_.str.50: ; @.str.50
.asciz "_PDCLIB_EINTR"
l_.str.51: ; @.str.51
.asciz "Interrupted function"
l_.str.52: ; @.str.52
.asciz "_PDCLIB_EINVAL"
l_.str.53: ; @.str.53
.asciz "Invalid argument"
l_.str.54: ; @.str.54
.asciz "_PDCLIB_EIO"
l_.str.55: ; @.str.55
.asciz "I/O error"
l_.str.56: ; @.str.56
.asciz "_PDCLIB_EISCONN"
l_.str.57: ; @.str.57
.asciz "Socket is connected"
l_.str.58: ; @.str.58
.asciz "_PDCLIB_EISDIR"
l_.str.59: ; @.str.59
.asciz "Is a directory"
l_.str.60: ; @.str.60
.asciz "_PDCLIB_ELOOP"
l_.str.61: ; @.str.61
.asciz "Too many levels of symbolic links"
l_.str.62: ; @.str.62
.asciz "_PDCLIB_EMFILE"
l_.str.63: ; @.str.63
.asciz "File descriptor value too large"
l_.str.64: ; @.str.64
.asciz "_PDCLIB_EMLINK"
l_.str.65: ; @.str.65
.asciz "Too many links"
l_.str.66: ; @.str.66
.asciz "_PDCLIB_EMSGSIZE"
l_.str.67: ; @.str.67
.asciz "Message too large"
l_.str.68: ; @.str.68
.asciz "_PDCLIB_ENAMETOOLONG"
l_.str.69: ; @.str.69
.asciz "Filename too long"
l_.str.70: ; @.str.70
.asciz "_PDCLIB_ENETDOWN"
l_.str.71: ; @.str.71
.asciz "Network is down"
l_.str.72: ; @.str.72
.asciz "_PDCLIB_ENETRESET"
l_.str.73: ; @.str.73
.asciz "Connection aborted by network"
l_.str.74: ; @.str.74
.asciz "_PDCLIB_ENETUNREACH"
l_.str.75: ; @.str.75
.asciz "Network unreachable"
l_.str.76: ; @.str.76
.asciz "_PDCLIB_ENFILE"
l_.str.77: ; @.str.77
.asciz "Too many files open in system"
l_.str.78: ; @.str.78
.asciz "_PDCLIB_ENOBUFS"
l_.str.79: ; @.str.79
.asciz "No buffer space available"
l_.str.80: ; @.str.80
.asciz "_PDCLIB_ENODATA"
l_.str.81: ; @.str.81
.asciz "No message is available on the STREAM head read queue"
l_.str.82: ; @.str.82
.asciz "_PDCLIB_ENODEV"
l_.str.83: ; @.str.83
.asciz "No such device"
l_.str.84: ; @.str.84
.asciz "_PDCLIB_ENOENT"
l_.str.85: ; @.str.85
.asciz "No such file or directory"
l_.str.86: ; @.str.86
.asciz "_PDCLIB_ENOEXEC"
l_.str.87: ; @.str.87
.asciz "Executable file format error"
l_.str.88: ; @.str.88
.asciz "_PDCLIB_ENOLCK"
l_.str.89: ; @.str.89
.asciz "No locks available"
l_.str.90: ; @.str.90
.asciz "_PDCLIB_ENOLINK"
l_.str.91: ; @.str.91
.asciz "Link has been severed"
l_.str.92: ; @.str.92
.asciz "_PDCLIB_ENOMEM"
l_.str.93: ; @.str.93
.asciz "Not enough space"
l_.str.94: ; @.str.94
.asciz "_PDCLIB_ENOMSG"
l_.str.95: ; @.str.95
.asciz "No message of the desired type"
l_.str.96: ; @.str.96
.asciz "_PDCLIB_ENOPROTOOPT"
l_.str.97: ; @.str.97
.asciz "Protocol not available"
l_.str.98: ; @.str.98
.asciz "_PDCLIB_ENOSPC"
l_.str.99: ; @.str.99
.asciz "No space left on device"
l_.str.100: ; @.str.100
.asciz "_PDCLIB_ENOSR"
l_.str.101: ; @.str.101
.asciz "No STREAM resources"
l_.str.102: ; @.str.102
.asciz "_PDCLIB_ENOSTR"
l_.str.103: ; @.str.103
.asciz "Not a STREAM"
l_.str.104: ; @.str.104
.asciz "_PDCLIB_ENOSYS"
l_.str.105: ; @.str.105
.asciz "Function not supported"
l_.str.106: ; @.str.106
.asciz "_PDCLIB_ENOTCONN"
l_.str.107: ; @.str.107
.asciz "The socket is not connected"
l_.str.108: ; @.str.108
.asciz "_PDCLIB_ENOTDIR"
l_.str.109: ; @.str.109
.asciz "Not a directory"
l_.str.110: ; @.str.110
.asciz "_PDCLIB_ENOTEMPTY"
l_.str.111: ; @.str.111
.asciz "Directory not empty"
l_.str.112: ; @.str.112
.asciz "_PDCLIB_ENOTRECOVERABLE"
l_.str.113: ; @.str.113
.asciz "State not recoverable"
l_.str.114: ; @.str.114
.asciz "_PDCLIB_ENOTSOCK"
l_.str.115: ; @.str.115
.asciz "Not a socket"
l_.str.116: ; @.str.116
.asciz "_PDCLIB_ENOTSUP"
l_.str.117: ; @.str.117
.asciz "Not supported"
l_.str.118: ; @.str.118
.asciz "_PDCLIB_ENOTTY"
l_.str.119: ; @.str.119
.asciz "Inappropriate I/O control operation"
l_.str.120: ; @.str.120
.asciz "_PDCLIB_ENXIO"
l_.str.121: ; @.str.121
.asciz "No such device or address"
l_.str.122: ; @.str.122
.asciz "_PDCLIB_EOPNOTSUPP"
l_.str.123: ; @.str.123
.asciz "Operation not supported on socket"
l_.str.124: ; @.str.124
.asciz "_PDCLIB_EOVERFLOW"
l_.str.125: ; @.str.125
.asciz "Value too large to be stored in data type"
l_.str.126: ; @.str.126
.asciz "_PDCLIB_EOWNERDEAD"
l_.str.127: ; @.str.127
.asciz "Previous owner died"
l_.str.128: ; @.str.128
.asciz "_PDCLIB_EPERM"
l_.str.129: ; @.str.129
.asciz "Operation not permitted"
l_.str.130: ; @.str.130
.asciz "_PDCLIB_EPIPE"
l_.str.131: ; @.str.131
.asciz "Broken pipe"
l_.str.132: ; @.str.132
.asciz "_PDCLIB_EPROTO"
l_.str.133: ; @.str.133
.asciz "Protocol error"
l_.str.134: ; @.str.134
.asciz "_PDCLIB_EPROTONOSUPPORT"
l_.str.135: ; @.str.135
.asciz "Protocol not supported"
l_.str.136: ; @.str.136
.asciz "_PDCLIB_EPROTOTYPE"
l_.str.137: ; @.str.137
.asciz "Protocol wrong type for socket"
l_.str.138: ; @.str.138
.asciz "_PDCLIB_ERANGE"
l_.str.139: ; @.str.139
.asciz "Result too large"
l_.str.140: ; @.str.140
.asciz "_PDCLIB_EROFS"
l_.str.141: ; @.str.141
.asciz "Read-only file system"
l_.str.142: ; @.str.142
.asciz "_PDCLIB_ESPIPE"
l_.str.143: ; @.str.143
.asciz "Invalid seek"
l_.str.144: ; @.str.144
.asciz "_PDCLIB_ESRCH"
l_.str.145: ; @.str.145
.asciz "No such process"
l_.str.146: ; @.str.146
.asciz "_PDCLIB_ETIME"
l_.str.147: ; @.str.147
.asciz "Stream ioctl() timeout"
l_.str.148: ; @.str.148
.asciz "_PDCLIB_ETIMEDOUT"
l_.str.149: ; @.str.149
.asciz "Connection timed out"
l_.str.150: ; @.str.150
.asciz "_PDCLIB_ETXTBSY"
l_.str.151: ; @.str.151
.asciz "Text file busy"
l_.str.152: ; @.str.152
.asciz "_PDCLIB_EWOULDBLOCK"
l_.str.153: ; @.str.153
.asciz "Operation would block"
l_.str.154: ; @.str.154
.asciz "_PDCLIB_EXDEV"
l_.str.155: ; @.str.155
.asciz "Cross-device link"
.section __DATA,__data
.globl _error ; @error
.p2align 3
_error:
.quad l_.str
.long 7 ; 0x7
.space 4
.quad l_.str.1
.quad l_.str.2
.long 13 ; 0xd
.space 4
.quad l_.str.3
.quad l_.str.4
.long 48 ; 0x30
.space 4
.quad l_.str.5
.quad l_.str.6
.long 49 ; 0x31
.space 4
.quad l_.str.7
.quad l_.str.8
.long 47 ; 0x2f
.space 4
.quad l_.str.9
.quad l_.str.10
.long 35 ; 0x23
.space 4
.quad l_.str.11
.quad l_.str.12
.long 37 ; 0x25
.space 4
.quad l_.str.13
.quad l_.str.14
.long 9 ; 0x9
.space 4
.quad l_.str.15
.quad l_.str.16
.long 94 ; 0x5e
.space 4
.quad l_.str.17
.quad l_.str.18
.long 16 ; 0x10
.space 4
.quad l_.str.19
.quad l_.str.20
.long 89 ; 0x59
.space 4
.quad l_.str.21
.quad l_.str.22
.long 10 ; 0xa
.space 4
.quad l_.str.23
.quad l_.str.24
.long 53 ; 0x35
.space 4
.quad l_.str.25
.quad l_.str.26
.long 61 ; 0x3d
.space 4
.quad l_.str.27
.quad l_.str.28
.long 54 ; 0x36
.space 4
.quad l_.str.29
.quad l_.str.30
.long 11 ; 0xb
.space 4
.quad l_.str.31
.quad l_.str.32
.long 39 ; 0x27
.space 4
.quad l_.str.33
.quad l_.str.34
.long 33 ; 0x21
.space 4
.quad l_.str.35
.quad l_.str.36
.long 17 ; 0x11
.space 4
.quad l_.str.37
.quad l_.str.38
.long 14 ; 0xe
.space 4
.quad l_.str.39
.quad l_.str.40
.long 27 ; 0x1b
.space 4
.quad l_.str.41
.quad l_.str.42
.long 65 ; 0x41
.space 4
.quad l_.str.43
.quad l_.str.44
.long 90 ; 0x5a
.space 4
.quad l_.str.45
.quad l_.str.46
.long 92 ; 0x5c
.space 4
.quad l_.str.47
.quad l_.str.48
.long 36 ; 0x24
.space 4
.quad l_.str.49
.quad l_.str.50
.long 4 ; 0x4
.space 4
.quad l_.str.51
.quad l_.str.52
.long 22 ; 0x16
.space 4
.quad l_.str.53
.quad l_.str.54
.long 5 ; 0x5
.space 4
.quad l_.str.55
.quad l_.str.56
.long 56 ; 0x38
.space 4
.quad l_.str.57
.quad l_.str.58
.long 21 ; 0x15
.space 4
.quad l_.str.59
.quad l_.str.60
.long 62 ; 0x3e
.space 4
.quad l_.str.61
.quad l_.str.62
.long 24 ; 0x18
.space 4
.quad l_.str.63
.quad l_.str.64
.long 31 ; 0x1f
.space 4
.quad l_.str.65
.quad l_.str.66
.long 40 ; 0x28
.space 4
.quad l_.str.67
.quad l_.str.68
.long 63 ; 0x3f
.space 4
.quad l_.str.69
.quad l_.str.70
.long 50 ; 0x32
.space 4
.quad l_.str.71
.quad l_.str.72
.long 52 ; 0x34
.space 4
.quad l_.str.73
.quad l_.str.74
.long 51 ; 0x33
.space 4
.quad l_.str.75
.quad l_.str.76
.long 23 ; 0x17
.space 4
.quad l_.str.77
.quad l_.str.78
.long 55 ; 0x37
.space 4
.quad l_.str.79
.quad l_.str.80
.long 96 ; 0x60
.space 4
.quad l_.str.81
.quad l_.str.82
.long 19 ; 0x13
.space 4
.quad l_.str.83
.quad l_.str.84
.long 2 ; 0x2
.space 4
.quad l_.str.85
.quad l_.str.86
.long 8 ; 0x8
.space 4
.quad l_.str.87
.quad l_.str.88
.long 77 ; 0x4d
.space 4
.quad l_.str.89
.quad l_.str.90
.long 97 ; 0x61
.space 4
.quad l_.str.91
.quad l_.str.92
.long 12 ; 0xc
.space 4
.quad l_.str.93
.quad l_.str.94
.long 91 ; 0x5b
.space 4
.quad l_.str.95
.quad l_.str.96
.long 42 ; 0x2a
.space 4
.quad l_.str.97
.quad l_.str.98
.long 28 ; 0x1c
.space 4
.quad l_.str.99
.quad l_.str.100
.long 98 ; 0x62
.space 4
.quad l_.str.101
.quad l_.str.102
.long 99 ; 0x63
.space 4
.quad l_.str.103
.quad l_.str.104
.long 78 ; 0x4e
.space 4
.quad l_.str.105
.quad l_.str.106
.long 57 ; 0x39
.space 4
.quad l_.str.107
.quad l_.str.108
.long 20 ; 0x14
.space 4
.quad l_.str.109
.quad l_.str.110
.long 66 ; 0x42
.space 4
.quad l_.str.111
.quad l_.str.112
.long 104 ; 0x68
.space 4
.quad l_.str.113
.quad l_.str.114
.long 38 ; 0x26
.space 4
.quad l_.str.115
.quad l_.str.116
.long 45 ; 0x2d
.space 4
.quad l_.str.117
.quad l_.str.118
.long 25 ; 0x19
.space 4
.quad l_.str.119
.quad l_.str.120
.long 6 ; 0x6
.space 4
.quad l_.str.121
.quad l_.str.122
.long 102 ; 0x66
.space 4
.quad l_.str.123
.quad l_.str.124
.long 84 ; 0x54
.space 4
.quad l_.str.125
.quad l_.str.126
.long 105 ; 0x69
.space 4
.quad l_.str.127
.quad l_.str.128
.long 1 ; 0x1
.space 4
.quad l_.str.129
.quad l_.str.130
.long 32 ; 0x20
.space 4
.quad l_.str.131
.quad l_.str.132
.long 100 ; 0x64
.space 4
.quad l_.str.133
.quad l_.str.134
.long 43 ; 0x2b
.space 4
.quad l_.str.135
.quad l_.str.136
.long 41 ; 0x29
.space 4
.quad l_.str.137
.quad l_.str.138
.long 34 ; 0x22
.space 4
.quad l_.str.139
.quad l_.str.140
.long 30 ; 0x1e
.space 4
.quad l_.str.141
.quad l_.str.142
.long 29 ; 0x1d
.space 4
.quad l_.str.143
.quad l_.str.144
.long 3 ; 0x3
.space 4
.quad l_.str.145
.quad l_.str.146
.long 101 ; 0x65
.space 4
.quad l_.str.147
.quad l_.str.148
.long 60 ; 0x3c
.space 4
.quad l_.str.149
.quad l_.str.150
.long 26 ; 0x1a
.space 4
.quad l_.str.151
.quad l_.str.152
.long 35 ; 0x23
.space 4
.quad l_.str.153
.quad l_.str.154
.long 18 ; 0x12
.space 4
.quad l_.str.155
.section __TEXT,__cstring,cstring_literals
l_.str.156: ; @.str.156
.asciz "unknown error"
l_.str.157: ; @.str.157
.asciz "/* ------------------------------------- */"
l_.str.158: ; @.str.158
.asciz "/* The definitions, for _PDCLIB_config.h */"
l_.str.159: ; @.str.159
.space 1
l_.str.160: ; @.str.160
.asciz "/* %s */\n#define %-*s %3d\n"
l_.str.161: ; @.str.161
.asciz "/* The highest defined errno value, plus one. This is used to set the size */"
l_.str.162: ; @.str.162
.asciz "/* of the array in struct _PDCLIB_lc_text_t holding error messages for the */"
l_.str.163: ; @.str.163
.asciz "/* strerror() and perror() functions. (If you change this value because you */"
l_.str.164: ; @.str.164
.asciz "/* are using additional errno values, you *HAVE* to provide appropriate error */"
l_.str.165: ; @.str.165
.asciz "/* messages for *ALL* locales.) */"
l_.str.166: ; @.str.166
.asciz "#define _PDCLIB_ERRNO_MAX %d\n"
l_.str.167: ; @.str.167
.asciz "/* The error message used for unknown error codes (generated by errno_readout */"
l_.str.168: ; @.str.168
.asciz "/* for consistency between the 'holes' in the list of defined error messages */"
l_.str.169: ; @.str.169
.asciz "/* and the text generated by e.g. strerror() for out-of-range error values.) */"
l_.str.170: ; @.str.170
.asciz "#define _PDCLIB_EUNKNOWN_TEXT (char*)\"%s\"\n"
l_.str.171: ; @.str.171
.asciz "/* -------------------------------------------------- */"
l_.str.172: ; @.str.172
.asciz "/* An array of the error texts, for _PDCLIB_stdinit.c */"
l_.str.173: ; @.str.173
.asciz " /* %-*s */ (char *)\"Success\",\n"
l_.str.174: ; @.str.174
.asciz " /* %-*s */ (char *)\"%s (%s)\",\n"
l_.str.175: ; @.str.175
.asciz " /* %-*s */ (char *)\"%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 $96, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
leaq L_.str.156(%rip), %rax
movq %rax, -24(%rbp)
movq $0, -32(%rbp)
movq -24(%rbp), %rdi
callq _strlen
movq %rax, -40(%rbp)
movq -24(%rbp), %rdi
callq _strlen
movq %rax, -48(%rbp)
movq $0, -56(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpq $78, -56(%rbp)
jae LBB0_10
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq _error(%rip), %rax
imulq $24, -56(%rbp), %rcx
addq %rcx, %rax
movslq 8(%rax), %rax
cmpq -32(%rbp), %rax
jbe LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
leaq _error(%rip), %rax
imulq $24, -56(%rbp), %rcx
addq %rcx, %rax
movslq 8(%rax), %rax
movq %rax, -32(%rbp)
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
leaq _error(%rip), %rax
imulq $24, -56(%rbp), %rcx
addq %rcx, %rax
movq (%rax), %rdi
callq _strlen
cmpq -48(%rbp), %rax
jbe LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
leaq _error(%rip), %rax
imulq $24, -56(%rbp), %rcx
addq %rcx, %rax
movq (%rax), %rdi
callq _strlen
movq %rax, -48(%rbp)
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
leaq _error(%rip), %rax
imulq $24, -56(%rbp), %rcx
addq %rcx, %rax
movq 16(%rax), %rdi
callq _strlen
cmpq -40(%rbp), %rax
jbe LBB0_8
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
leaq _error(%rip), %rax
imulq $24, -56(%rbp), %rcx
addq %rcx, %rax
movq 16(%rax), %rdi
callq _strlen
movq %rax, -40(%rbp)
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rax
addq $1, %rax
movq %rax, -56(%rbp)
jmp LBB0_1
LBB0_10:
leaq L_.str.157(%rip), %rdi
callq _puts
leaq L_.str.158(%rip), %rdi
callq _puts
leaq L_.str.157(%rip), %rdi
callq _puts
leaq L_.str.159(%rip), %rdi
callq _puts
movq $0, -64(%rbp)
LBB0_11: ## =>This Inner Loop Header: Depth=1
cmpq $78, -64(%rbp)
jae LBB0_14
## %bb.12: ## in Loop: Header=BB0_11 Depth=1
leaq _error(%rip), %rax
imulq $24, -64(%rbp), %rcx
addq %rcx, %rax
movq 16(%rax), %rsi
movq -48(%rbp), %rax
movl %eax, %edx
leaq _error(%rip), %rax
imulq $24, -64(%rbp), %rcx
addq %rcx, %rax
movq (%rax), %rcx
leaq _error(%rip), %rax
imulq $24, -64(%rbp), %rdi
addq %rdi, %rax
movl 8(%rax), %r8d
leaq L_.str.160(%rip), %rdi
movb $0, %al
callq _printf
## %bb.13: ## in Loop: Header=BB0_11 Depth=1
movq -64(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
jmp LBB0_11
LBB0_14:
leaq L_.str.159(%rip), %rdi
callq _puts
leaq L_.str.161(%rip), %rdi
callq _puts
leaq L_.str.162(%rip), %rdi
callq _puts
leaq L_.str.163(%rip), %rdi
callq _puts
leaq L_.str.164(%rip), %rdi
callq _puts
leaq L_.str.165(%rip), %rdi
callq _puts
movq -32(%rbp), %rax
movl %eax, %esi
addl $1, %esi
leaq L_.str.166(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.159(%rip), %rdi
callq _puts
leaq L_.str.167(%rip), %rdi
callq _puts
leaq L_.str.168(%rip), %rdi
callq _puts
leaq L_.str.169(%rip), %rdi
callq _puts
movq -24(%rbp), %rsi
leaq L_.str.170(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.159(%rip), %rdi
callq _puts
leaq L_.str.171(%rip), %rdi
callq _puts
leaq L_.str.172(%rip), %rdi
callq _puts
leaq L_.str.171(%rip), %rdi
callq _puts
leaq L_.str.159(%rip), %rdi
callq _puts
movq -48(%rbp), %rax
subq $8, %rax
movq %rax, -48(%rbp)
movq -32(%rbp), %rax
addq $1, %rax
imulq $24, %rax, %rdi
callq _malloc
movq %rax, -72(%rbp)
movq -48(%rbp), %rax
movl %eax, %esi
leaq L_.str.173(%rip), %rdi
leaq L_.str.159(%rip), %rdx
movb $0, %al
callq _printf
movq $1, -80(%rbp)
LBB0_15: ## =>This Loop Header: Depth=1
## Child Loop BB0_17 Depth 2
movq -80(%rbp), %rax
cmpq -32(%rbp), %rax
ja LBB0_27
## %bb.16: ## in Loop: Header=BB0_15 Depth=1
movl $-1, -84(%rbp)
movq $0, -96(%rbp)
LBB0_17: ## Parent Loop BB0_15 Depth=1
## => This Inner Loop Header: Depth=2
cmpq $78, -96(%rbp)
jae LBB0_22
## %bb.18: ## in Loop: Header=BB0_17 Depth=2
leaq _error(%rip), %rax
imulq $24, -96(%rbp), %rcx
addq %rcx, %rax
movslq 8(%rax), %rax
cmpq -80(%rbp), %rax
jne LBB0_20
## %bb.19: ## in Loop: Header=BB0_15 Depth=1
movq -96(%rbp), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -84(%rbp)
jmp LBB0_22
LBB0_20: ## in Loop: Header=BB0_17 Depth=2
jmp LBB0_21
LBB0_21: ## in Loop: Header=BB0_17 Depth=2
movq -96(%rbp), %rax
addq $1, %rax
movq %rax, -96(%rbp)
jmp LBB0_17
LBB0_22: ## in Loop: Header=BB0_15 Depth=1
cmpl $0, -84(%rbp)
jl LBB0_24
## %bb.23: ## in Loop: Header=BB0_15 Depth=1
movq -48(%rbp), %rax
movl %eax, %esi
movslq -84(%rbp), %rcx
leaq _error(%rip), %rax
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdx
addq $8, %rdx
movslq -84(%rbp), %rcx
leaq _error(%rip), %rax
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rcx
addq $8, %rcx
movslq -84(%rbp), %rdi
leaq _error(%rip), %rax
imulq $24, %rdi, %rdi
addq %rdi, %rax
movq 16(%rax), %r8
leaq L_.str.174(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_25
LBB0_24: ## in Loop: Header=BB0_15 Depth=1
movq -48(%rbp), %rax
movl %eax, %esi
movq -24(%rbp), %rdx
movq -24(%rbp), %rcx
leaq L_.str.175(%rip), %rdi
movb $0, %al
callq _printf
LBB0_25: ## in Loop: Header=BB0_15 Depth=1
jmp LBB0_26
LBB0_26: ## in Loop: Header=BB0_15 Depth=1
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
jmp LBB0_15
LBB0_27:
movl -4(%rbp), %eax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "_PDCLIB_E2BIG"
L_.str.1: ## @.str.1
.asciz "Argument list too long"
L_.str.2: ## @.str.2
.asciz "_PDCLIB_EACCES"
L_.str.3: ## @.str.3
.asciz "Permission denied"
L_.str.4: ## @.str.4
.asciz "_PDCLIB_EADDRINUSE"
L_.str.5: ## @.str.5
.asciz "Address in use"
L_.str.6: ## @.str.6
.asciz "_PDCLIB_EADDRNOTAVAIL"
L_.str.7: ## @.str.7
.asciz "Address not available"
L_.str.8: ## @.str.8
.asciz "_PDCLIB_EAFNOSUPPORT"
L_.str.9: ## @.str.9
.asciz "Address family not supported"
L_.str.10: ## @.str.10
.asciz "_PDCLIB_EAGAIN"
L_.str.11: ## @.str.11
.asciz "Resource unavailable, try again"
L_.str.12: ## @.str.12
.asciz "_PDCLIB_EALREADY"
L_.str.13: ## @.str.13
.asciz "Connection already in progress"
L_.str.14: ## @.str.14
.asciz "_PDCLIB_EBADF"
L_.str.15: ## @.str.15
.asciz "Bad file descriptor"
L_.str.16: ## @.str.16
.asciz "_PDCLIB_EBADMSG"
L_.str.17: ## @.str.17
.asciz "Bad message"
L_.str.18: ## @.str.18
.asciz "_PDCLIB_EBUSY"
L_.str.19: ## @.str.19
.asciz "Device or resource busy"
L_.str.20: ## @.str.20
.asciz "_PDCLIB_ECANCELED"
L_.str.21: ## @.str.21
.asciz "Operation canceled"
L_.str.22: ## @.str.22
.asciz "_PDCLIB_ECHILD"
L_.str.23: ## @.str.23
.asciz "No child processes"
L_.str.24: ## @.str.24
.asciz "_PDCLIB_ECONNABORTED"
L_.str.25: ## @.str.25
.asciz "Connection aborted"
L_.str.26: ## @.str.26
.asciz "_PDCLIB_ECONNREFUSED"
L_.str.27: ## @.str.27
.asciz "Connection refused"
L_.str.28: ## @.str.28
.asciz "_PDCLIB_ECONNRESET"
L_.str.29: ## @.str.29
.asciz "Connection reset"
L_.str.30: ## @.str.30
.asciz "_PDCLIB_EDEADLK"
L_.str.31: ## @.str.31
.asciz "Resource deadlock would occur"
L_.str.32: ## @.str.32
.asciz "_PDCLIB_EDESTADDRREQ"
L_.str.33: ## @.str.33
.asciz "Destination address required"
L_.str.34: ## @.str.34
.asciz "_PDCLIB_EDOM"
L_.str.35: ## @.str.35
.asciz "Mathematics argument out of domain of function"
L_.str.36: ## @.str.36
.asciz "_PDCLIB_EEXIST"
L_.str.37: ## @.str.37
.asciz "File exists"
L_.str.38: ## @.str.38
.asciz "_PDCLIB_EFAULT"
L_.str.39: ## @.str.39
.asciz "Bad address"
L_.str.40: ## @.str.40
.asciz "_PDCLIB_EFBIG"
L_.str.41: ## @.str.41
.asciz "File too large"
L_.str.42: ## @.str.42
.asciz "_PDCLIB_EHOSTUNREACH"
L_.str.43: ## @.str.43
.asciz "Host is unreachable"
L_.str.44: ## @.str.44
.asciz "_PDCLIB_EIDRM"
L_.str.45: ## @.str.45
.asciz "Identifier removed"
L_.str.46: ## @.str.46
.asciz "_PDCLIB_EILSEQ"
L_.str.47: ## @.str.47
.asciz "Illegal byte sequence"
L_.str.48: ## @.str.48
.asciz "_PDCLIB_EINPROGRESS"
L_.str.49: ## @.str.49
.asciz "Operation in progress"
L_.str.50: ## @.str.50
.asciz "_PDCLIB_EINTR"
L_.str.51: ## @.str.51
.asciz "Interrupted function"
L_.str.52: ## @.str.52
.asciz "_PDCLIB_EINVAL"
L_.str.53: ## @.str.53
.asciz "Invalid argument"
L_.str.54: ## @.str.54
.asciz "_PDCLIB_EIO"
L_.str.55: ## @.str.55
.asciz "I/O error"
L_.str.56: ## @.str.56
.asciz "_PDCLIB_EISCONN"
L_.str.57: ## @.str.57
.asciz "Socket is connected"
L_.str.58: ## @.str.58
.asciz "_PDCLIB_EISDIR"
L_.str.59: ## @.str.59
.asciz "Is a directory"
L_.str.60: ## @.str.60
.asciz "_PDCLIB_ELOOP"
L_.str.61: ## @.str.61
.asciz "Too many levels of symbolic links"
L_.str.62: ## @.str.62
.asciz "_PDCLIB_EMFILE"
L_.str.63: ## @.str.63
.asciz "File descriptor value too large"
L_.str.64: ## @.str.64
.asciz "_PDCLIB_EMLINK"
L_.str.65: ## @.str.65
.asciz "Too many links"
L_.str.66: ## @.str.66
.asciz "_PDCLIB_EMSGSIZE"
L_.str.67: ## @.str.67
.asciz "Message too large"
L_.str.68: ## @.str.68
.asciz "_PDCLIB_ENAMETOOLONG"
L_.str.69: ## @.str.69
.asciz "Filename too long"
L_.str.70: ## @.str.70
.asciz "_PDCLIB_ENETDOWN"
L_.str.71: ## @.str.71
.asciz "Network is down"
L_.str.72: ## @.str.72
.asciz "_PDCLIB_ENETRESET"
L_.str.73: ## @.str.73
.asciz "Connection aborted by network"
L_.str.74: ## @.str.74
.asciz "_PDCLIB_ENETUNREACH"
L_.str.75: ## @.str.75
.asciz "Network unreachable"
L_.str.76: ## @.str.76
.asciz "_PDCLIB_ENFILE"
L_.str.77: ## @.str.77
.asciz "Too many files open in system"
L_.str.78: ## @.str.78
.asciz "_PDCLIB_ENOBUFS"
L_.str.79: ## @.str.79
.asciz "No buffer space available"
L_.str.80: ## @.str.80
.asciz "_PDCLIB_ENODATA"
L_.str.81: ## @.str.81
.asciz "No message is available on the STREAM head read queue"
L_.str.82: ## @.str.82
.asciz "_PDCLIB_ENODEV"
L_.str.83: ## @.str.83
.asciz "No such device"
L_.str.84: ## @.str.84
.asciz "_PDCLIB_ENOENT"
L_.str.85: ## @.str.85
.asciz "No such file or directory"
L_.str.86: ## @.str.86
.asciz "_PDCLIB_ENOEXEC"
L_.str.87: ## @.str.87
.asciz "Executable file format error"
L_.str.88: ## @.str.88
.asciz "_PDCLIB_ENOLCK"
L_.str.89: ## @.str.89
.asciz "No locks available"
L_.str.90: ## @.str.90
.asciz "_PDCLIB_ENOLINK"
L_.str.91: ## @.str.91
.asciz "Link has been severed"
L_.str.92: ## @.str.92
.asciz "_PDCLIB_ENOMEM"
L_.str.93: ## @.str.93
.asciz "Not enough space"
L_.str.94: ## @.str.94
.asciz "_PDCLIB_ENOMSG"
L_.str.95: ## @.str.95
.asciz "No message of the desired type"
L_.str.96: ## @.str.96
.asciz "_PDCLIB_ENOPROTOOPT"
L_.str.97: ## @.str.97
.asciz "Protocol not available"
L_.str.98: ## @.str.98
.asciz "_PDCLIB_ENOSPC"
L_.str.99: ## @.str.99
.asciz "No space left on device"
L_.str.100: ## @.str.100
.asciz "_PDCLIB_ENOSR"
L_.str.101: ## @.str.101
.asciz "No STREAM resources"
L_.str.102: ## @.str.102
.asciz "_PDCLIB_ENOSTR"
L_.str.103: ## @.str.103
.asciz "Not a STREAM"
L_.str.104: ## @.str.104
.asciz "_PDCLIB_ENOSYS"
L_.str.105: ## @.str.105
.asciz "Function not supported"
L_.str.106: ## @.str.106
.asciz "_PDCLIB_ENOTCONN"
L_.str.107: ## @.str.107
.asciz "The socket is not connected"
L_.str.108: ## @.str.108
.asciz "_PDCLIB_ENOTDIR"
L_.str.109: ## @.str.109
.asciz "Not a directory"
L_.str.110: ## @.str.110
.asciz "_PDCLIB_ENOTEMPTY"
L_.str.111: ## @.str.111
.asciz "Directory not empty"
L_.str.112: ## @.str.112
.asciz "_PDCLIB_ENOTRECOVERABLE"
L_.str.113: ## @.str.113
.asciz "State not recoverable"
L_.str.114: ## @.str.114
.asciz "_PDCLIB_ENOTSOCK"
L_.str.115: ## @.str.115
.asciz "Not a socket"
L_.str.116: ## @.str.116
.asciz "_PDCLIB_ENOTSUP"
L_.str.117: ## @.str.117
.asciz "Not supported"
L_.str.118: ## @.str.118
.asciz "_PDCLIB_ENOTTY"
L_.str.119: ## @.str.119
.asciz "Inappropriate I/O control operation"
L_.str.120: ## @.str.120
.asciz "_PDCLIB_ENXIO"
L_.str.121: ## @.str.121
.asciz "No such device or address"
L_.str.122: ## @.str.122
.asciz "_PDCLIB_EOPNOTSUPP"
L_.str.123: ## @.str.123
.asciz "Operation not supported on socket"
L_.str.124: ## @.str.124
.asciz "_PDCLIB_EOVERFLOW"
L_.str.125: ## @.str.125
.asciz "Value too large to be stored in data type"
L_.str.126: ## @.str.126
.asciz "_PDCLIB_EOWNERDEAD"
L_.str.127: ## @.str.127
.asciz "Previous owner died"
L_.str.128: ## @.str.128
.asciz "_PDCLIB_EPERM"
L_.str.129: ## @.str.129
.asciz "Operation not permitted"
L_.str.130: ## @.str.130
.asciz "_PDCLIB_EPIPE"
L_.str.131: ## @.str.131
.asciz "Broken pipe"
L_.str.132: ## @.str.132
.asciz "_PDCLIB_EPROTO"
L_.str.133: ## @.str.133
.asciz "Protocol error"
L_.str.134: ## @.str.134
.asciz "_PDCLIB_EPROTONOSUPPORT"
L_.str.135: ## @.str.135
.asciz "Protocol not supported"
L_.str.136: ## @.str.136
.asciz "_PDCLIB_EPROTOTYPE"
L_.str.137: ## @.str.137
.asciz "Protocol wrong type for socket"
L_.str.138: ## @.str.138
.asciz "_PDCLIB_ERANGE"
L_.str.139: ## @.str.139
.asciz "Result too large"
L_.str.140: ## @.str.140
.asciz "_PDCLIB_EROFS"
L_.str.141: ## @.str.141
.asciz "Read-only file system"
L_.str.142: ## @.str.142
.asciz "_PDCLIB_ESPIPE"
L_.str.143: ## @.str.143
.asciz "Invalid seek"
L_.str.144: ## @.str.144
.asciz "_PDCLIB_ESRCH"
L_.str.145: ## @.str.145
.asciz "No such process"
L_.str.146: ## @.str.146
.asciz "_PDCLIB_ETIME"
L_.str.147: ## @.str.147
.asciz "Stream ioctl() timeout"
L_.str.148: ## @.str.148
.asciz "_PDCLIB_ETIMEDOUT"
L_.str.149: ## @.str.149
.asciz "Connection timed out"
L_.str.150: ## @.str.150
.asciz "_PDCLIB_ETXTBSY"
L_.str.151: ## @.str.151
.asciz "Text file busy"
L_.str.152: ## @.str.152
.asciz "_PDCLIB_EWOULDBLOCK"
L_.str.153: ## @.str.153
.asciz "Operation would block"
L_.str.154: ## @.str.154
.asciz "_PDCLIB_EXDEV"
L_.str.155: ## @.str.155
.asciz "Cross-device link"
.section __DATA,__data
.globl _error ## @error
.p2align 4
_error:
.quad L_.str
.long 7 ## 0x7
.space 4
.quad L_.str.1
.quad L_.str.2
.long 13 ## 0xd
.space 4
.quad L_.str.3
.quad L_.str.4
.long 48 ## 0x30
.space 4
.quad L_.str.5
.quad L_.str.6
.long 49 ## 0x31
.space 4
.quad L_.str.7
.quad L_.str.8
.long 47 ## 0x2f
.space 4
.quad L_.str.9
.quad L_.str.10
.long 35 ## 0x23
.space 4
.quad L_.str.11
.quad L_.str.12
.long 37 ## 0x25
.space 4
.quad L_.str.13
.quad L_.str.14
.long 9 ## 0x9
.space 4
.quad L_.str.15
.quad L_.str.16
.long 94 ## 0x5e
.space 4
.quad L_.str.17
.quad L_.str.18
.long 16 ## 0x10
.space 4
.quad L_.str.19
.quad L_.str.20
.long 89 ## 0x59
.space 4
.quad L_.str.21
.quad L_.str.22
.long 10 ## 0xa
.space 4
.quad L_.str.23
.quad L_.str.24
.long 53 ## 0x35
.space 4
.quad L_.str.25
.quad L_.str.26
.long 61 ## 0x3d
.space 4
.quad L_.str.27
.quad L_.str.28
.long 54 ## 0x36
.space 4
.quad L_.str.29
.quad L_.str.30
.long 11 ## 0xb
.space 4
.quad L_.str.31
.quad L_.str.32
.long 39 ## 0x27
.space 4
.quad L_.str.33
.quad L_.str.34
.long 33 ## 0x21
.space 4
.quad L_.str.35
.quad L_.str.36
.long 17 ## 0x11
.space 4
.quad L_.str.37
.quad L_.str.38
.long 14 ## 0xe
.space 4
.quad L_.str.39
.quad L_.str.40
.long 27 ## 0x1b
.space 4
.quad L_.str.41
.quad L_.str.42
.long 65 ## 0x41
.space 4
.quad L_.str.43
.quad L_.str.44
.long 90 ## 0x5a
.space 4
.quad L_.str.45
.quad L_.str.46
.long 92 ## 0x5c
.space 4
.quad L_.str.47
.quad L_.str.48
.long 36 ## 0x24
.space 4
.quad L_.str.49
.quad L_.str.50
.long 4 ## 0x4
.space 4
.quad L_.str.51
.quad L_.str.52
.long 22 ## 0x16
.space 4
.quad L_.str.53
.quad L_.str.54
.long 5 ## 0x5
.space 4
.quad L_.str.55
.quad L_.str.56
.long 56 ## 0x38
.space 4
.quad L_.str.57
.quad L_.str.58
.long 21 ## 0x15
.space 4
.quad L_.str.59
.quad L_.str.60
.long 62 ## 0x3e
.space 4
.quad L_.str.61
.quad L_.str.62
.long 24 ## 0x18
.space 4
.quad L_.str.63
.quad L_.str.64
.long 31 ## 0x1f
.space 4
.quad L_.str.65
.quad L_.str.66
.long 40 ## 0x28
.space 4
.quad L_.str.67
.quad L_.str.68
.long 63 ## 0x3f
.space 4
.quad L_.str.69
.quad L_.str.70
.long 50 ## 0x32
.space 4
.quad L_.str.71
.quad L_.str.72
.long 52 ## 0x34
.space 4
.quad L_.str.73
.quad L_.str.74
.long 51 ## 0x33
.space 4
.quad L_.str.75
.quad L_.str.76
.long 23 ## 0x17
.space 4
.quad L_.str.77
.quad L_.str.78
.long 55 ## 0x37
.space 4
.quad L_.str.79
.quad L_.str.80
.long 96 ## 0x60
.space 4
.quad L_.str.81
.quad L_.str.82
.long 19 ## 0x13
.space 4
.quad L_.str.83
.quad L_.str.84
.long 2 ## 0x2
.space 4
.quad L_.str.85
.quad L_.str.86
.long 8 ## 0x8
.space 4
.quad L_.str.87
.quad L_.str.88
.long 77 ## 0x4d
.space 4
.quad L_.str.89
.quad L_.str.90
.long 97 ## 0x61
.space 4
.quad L_.str.91
.quad L_.str.92
.long 12 ## 0xc
.space 4
.quad L_.str.93
.quad L_.str.94
.long 91 ## 0x5b
.space 4
.quad L_.str.95
.quad L_.str.96
.long 42 ## 0x2a
.space 4
.quad L_.str.97
.quad L_.str.98
.long 28 ## 0x1c
.space 4
.quad L_.str.99
.quad L_.str.100
.long 98 ## 0x62
.space 4
.quad L_.str.101
.quad L_.str.102
.long 99 ## 0x63
.space 4
.quad L_.str.103
.quad L_.str.104
.long 78 ## 0x4e
.space 4
.quad L_.str.105
.quad L_.str.106
.long 57 ## 0x39
.space 4
.quad L_.str.107
.quad L_.str.108
.long 20 ## 0x14
.space 4
.quad L_.str.109
.quad L_.str.110
.long 66 ## 0x42
.space 4
.quad L_.str.111
.quad L_.str.112
.long 104 ## 0x68
.space 4
.quad L_.str.113
.quad L_.str.114
.long 38 ## 0x26
.space 4
.quad L_.str.115
.quad L_.str.116
.long 45 ## 0x2d
.space 4
.quad L_.str.117
.quad L_.str.118
.long 25 ## 0x19
.space 4
.quad L_.str.119
.quad L_.str.120
.long 6 ## 0x6
.space 4
.quad L_.str.121
.quad L_.str.122
.long 102 ## 0x66
.space 4
.quad L_.str.123
.quad L_.str.124
.long 84 ## 0x54
.space 4
.quad L_.str.125
.quad L_.str.126
.long 105 ## 0x69
.space 4
.quad L_.str.127
.quad L_.str.128
.long 1 ## 0x1
.space 4
.quad L_.str.129
.quad L_.str.130
.long 32 ## 0x20
.space 4
.quad L_.str.131
.quad L_.str.132
.long 100 ## 0x64
.space 4
.quad L_.str.133
.quad L_.str.134
.long 43 ## 0x2b
.space 4
.quad L_.str.135
.quad L_.str.136
.long 41 ## 0x29
.space 4
.quad L_.str.137
.quad L_.str.138
.long 34 ## 0x22
.space 4
.quad L_.str.139
.quad L_.str.140
.long 30 ## 0x1e
.space 4
.quad L_.str.141
.quad L_.str.142
.long 29 ## 0x1d
.space 4
.quad L_.str.143
.quad L_.str.144
.long 3 ## 0x3
.space 4
.quad L_.str.145
.quad L_.str.146
.long 101 ## 0x65
.space 4
.quad L_.str.147
.quad L_.str.148
.long 60 ## 0x3c
.space 4
.quad L_.str.149
.quad L_.str.150
.long 26 ## 0x1a
.space 4
.quad L_.str.151
.quad L_.str.152
.long 35 ## 0x23
.space 4
.quad L_.str.153
.quad L_.str.154
.long 18 ## 0x12
.space 4
.quad L_.str.155
.section __TEXT,__cstring,cstring_literals
L_.str.156: ## @.str.156
.asciz "unknown error"
L_.str.157: ## @.str.157
.asciz "/* ------------------------------------- */"
L_.str.158: ## @.str.158
.asciz "/* The definitions, for _PDCLIB_config.h */"
L_.str.159: ## @.str.159
.space 1
L_.str.160: ## @.str.160
.asciz "/* %s */\n#define %-*s %3d\n"
L_.str.161: ## @.str.161
.asciz "/* The highest defined errno value, plus one. This is used to set the size */"
L_.str.162: ## @.str.162
.asciz "/* of the array in struct _PDCLIB_lc_text_t holding error messages for the */"
L_.str.163: ## @.str.163
.asciz "/* strerror() and perror() functions. (If you change this value because you */"
L_.str.164: ## @.str.164
.asciz "/* are using additional errno values, you *HAVE* to provide appropriate error */"
L_.str.165: ## @.str.165
.asciz "/* messages for *ALL* locales.) */"
L_.str.166: ## @.str.166
.asciz "#define _PDCLIB_ERRNO_MAX %d\n"
L_.str.167: ## @.str.167
.asciz "/* The error message used for unknown error codes (generated by errno_readout */"
L_.str.168: ## @.str.168
.asciz "/* for consistency between the 'holes' in the list of defined error messages */"
L_.str.169: ## @.str.169
.asciz "/* and the text generated by e.g. strerror() for out-of-range error values.) */"
L_.str.170: ## @.str.170
.asciz "#define _PDCLIB_EUNKNOWN_TEXT (char*)\"%s\"\n"
L_.str.171: ## @.str.171
.asciz "/* -------------------------------------------------- */"
L_.str.172: ## @.str.172
.asciz "/* An array of the error texts, for _PDCLIB_stdinit.c */"
L_.str.173: ## @.str.173
.asciz " /* %-*s */ (char *)\"Success\",\n"
L_.str.174: ## @.str.174
.asciz " /* %-*s */ (char *)\"%s (%s)\",\n"
L_.str.175: ## @.str.175
.asciz " /* %-*s */ (char *)\"%s\",\n"
.subsections_via_symbols
| the_stack_data/98575901.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _done ; -- Begin function done
.p2align 2
_done: ; @done
.cfi_startproc
; %bb.0:
adrp x9, _dummy@PAGE
ldrb w8, [x9, _dummy@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _dummy@PAGEOFF]
ret
.cfi_endproc
; -- End function
.globl _c_0 ; -- Begin function c_0
.p2align 2
_c_0: ; @c_0
.cfi_startproc
; %bb.0:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB1_2
LBB1_2:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
subs x8, x8, #0
cset w8, le
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB1_4
LBB1_4:
adrp x8, _ulong0@PAGE
ldr x8, [x8, _ulong0@PAGEOFF]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB1_6
LBB1_6:
adrp x8, _ulong0@PAGE
ldr x8, [x8, _ulong0@PAGEOFF]
subs x8, x8, #0
cset w8, ls
tbnz w8, #0, LBB1_8
b LBB1_7
LBB1_7:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB1_8
LBB1_8:
ret
.cfi_endproc
; -- End function
.globl _c_1 ; -- Begin function c_1
.p2align 2
_c_1: ; @c_1
.cfi_startproc
; %bb.0:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
subs x8, x8, #1
cset w8, ne
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB2_2
LBB2_2:
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
subs x8, x8, #1
cset w8, eq
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB2_4
LBB2_4:
adrp x8, _ulong0@PAGE
ldr x8, [x8, _ulong0@PAGEOFF]
subs x8, x8, #1
cset w8, ne
tbnz w8, #0, LBB2_6
b LBB2_5
LBB2_5:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB2_6
LBB2_6:
adrp x8, _ulong1@PAGE
ldr x8, [x8, _ulong1@PAGEOFF]
subs x8, x8, #1
cset w8, eq
tbnz w8, #0, LBB2_8
b LBB2_7
LBB2_7:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB2_8
LBB2_8:
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
subs x8, x8, #0
cset w8, ge
tbnz w8, #0, LBB2_10
b LBB2_9
LBB2_9:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB2_10
LBB2_10:
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
subs x8, x8, #1
cset w8, ge
tbnz w8, #0, LBB2_12
b LBB2_11
LBB2_11:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB2_12
LBB2_12:
adrp x8, _ulong1@PAGE
ldr x8, [x8, _ulong1@PAGEOFF]
subs x8, x8, #1
cset w8, hs
tbnz w8, #0, LBB2_14
b LBB2_13
LBB2_13:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB2_14
LBB2_14:
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
subs x8, x8, #1
cset w8, le
tbnz w8, #0, LBB2_16
b LBB2_15
LBB2_15:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB2_16
LBB2_16:
adrp x8, _ulong1@PAGE
ldr x8, [x8, _ulong1@PAGEOFF]
subs x8, x8, #1
cset w8, ls
tbnz w8, #0, LBB2_18
b LBB2_17
LBB2_17:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB2_18
LBB2_18:
ret
.cfi_endproc
; -- End function
.globl _c_2 ; -- Begin function c_2
.p2align 2
_c_2: ; @c_2
.cfi_startproc
; %bb.0:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
subs x8, x8, #2
cset w8, eq
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB3_2
LBB3_2:
adrp x8, _ulong0@PAGE
ldr x8, [x8, _ulong0@PAGEOFF]
subs x8, x8, #2
cset w8, eq
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB3_4
LBB3_4:
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
subs x8, x8, #2
cset w8, ne
tbnz w8, #0, LBB3_6
b LBB3_5
LBB3_5:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB3_6
LBB3_6:
adrp x8, _ulong1@PAGE
ldr x8, [x8, _ulong1@PAGEOFF]
subs x8, x8, #2
cset w8, ne
tbnz w8, #0, LBB3_8
b LBB3_7
LBB3_7:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB3_8
LBB3_8:
ret
.cfi_endproc
; -- End function
.globl _c_ff ; -- Begin function c_ff
.p2align 2
_c_ff: ; @c_ff
.cfi_startproc
; %bb.0:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
subs x8, x8, #255
cset w8, eq
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB4_2
LBB4_2:
adrp x8, _ulong0@PAGE
ldr x8, [x8, _ulong0@PAGEOFF]
subs x8, x8, #255
cset w8, eq
tbnz w8, #0, LBB4_4
b LBB4_3
LBB4_3:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB4_4
LBB4_4:
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
subs x8, x8, #255
cset w8, ne
tbnz w8, #0, LBB4_6
b LBB4_5
LBB4_5:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB4_6
LBB4_6:
adrp x8, _ulong1@PAGE
ldr x8, [x8, _ulong1@PAGEOFF]
subs x8, x8, #255
cset w8, ne
tbnz w8, #0, LBB4_8
b LBB4_7
LBB4_7:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB4_8
LBB4_8:
ret
.cfi_endproc
; -- End function
.globl _c_200 ; -- Begin function c_200
.p2align 2
_c_200: ; @c_200
.cfi_startproc
; %bb.0:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
subs x8, x8, #512
cset w8, eq
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB5_2
LBB5_2:
adrp x8, _ulong0@PAGE
ldr x8, [x8, _ulong0@PAGEOFF]
subs x8, x8, #512
cset w8, eq
tbnz w8, #0, LBB5_4
b LBB5_3
LBB5_3:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB5_4
LBB5_4:
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
subs x8, x8, #512
cset w8, ne
tbnz w8, #0, LBB5_6
b LBB5_5
LBB5_5:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB5_6
LBB5_6:
adrp x8, _ulong1@PAGE
ldr x8, [x8, _ulong1@PAGEOFF]
subs x8, x8, #512
cset w8, ne
tbnz w8, #0, LBB5_8
b LBB5_7
LBB5_7:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB5_8
LBB5_8:
ret
.cfi_endproc
; -- End function
.globl _c_20000 ; -- Begin function c_20000
.p2align 2
_c_20000: ; @c_20000
.cfi_startproc
; %bb.0:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
subs x8, x8, #32, lsl #12 ; =131072
cset w8, eq
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB6_2
LBB6_2:
adrp x8, _ulong0@PAGE
ldr x8, [x8, _ulong0@PAGEOFF]
subs x8, x8, #32, lsl #12 ; =131072
cset w8, eq
tbnz w8, #0, LBB6_4
b LBB6_3
LBB6_3:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB6_4
LBB6_4:
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
subs x8, x8, #32, lsl #12 ; =131072
cset w8, ne
tbnz w8, #0, LBB6_6
b LBB6_5
LBB6_5:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB6_6
LBB6_6:
adrp x8, _ulong1@PAGE
ldr x8, [x8, _ulong1@PAGEOFF]
subs x8, x8, #32, lsl #12 ; =131072
cset w8, ne
tbnz w8, #0, LBB6_8
b LBB6_7
LBB6_7:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB6_8
LBB6_8:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
subs x8, x8, #16, lsl #12 ; =65536
cset w8, gt
tbnz w8, #0, LBB6_10
b LBB6_9
LBB6_9:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB6_10
LBB6_10:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
subs x8, x8, #16, lsl #12 ; =65536
cset w8, ge
tbnz w8, #0, LBB6_12
b LBB6_11
LBB6_11:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB6_12
LBB6_12:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB6_14
b LBB6_13
LBB6_13:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB6_14
LBB6_14:
ret
.cfi_endproc
; -- End function
.globl _c_a5 ; -- Begin function c_a5
.p2align 2
_c_a5: ; @c_a5
.cfi_startproc
; %bb.0:
adrp x8, _char0@PAGE
ldrsb w8, [x8, _char0@PAGEOFF]
subs w8, w8, #165
cset w8, eq
tbnz w8, #0, LBB7_2
b LBB7_1
LBB7_1:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB7_2
LBB7_2:
adrp x8, _int0@PAGE
ldr w8, [x8, _int0@PAGEOFF]
subs w8, w8, #165
cset w8, eq
tbnz w8, #0, LBB7_4
b LBB7_3
LBB7_3:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB7_4
LBB7_4:
adrp x8, _int0@PAGE
ldr w8, [x8, _int0@PAGEOFF]
subs w8, w8, #164
cset w8, ne
tbnz w8, #0, LBB7_6
b LBB7_5
LBB7_5:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB7_6
LBB7_6:
adrp x8, _int0@PAGE
ldr w8, [x8, _int0@PAGEOFF]
mov w9, #42240
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB7_8
b LBB7_7
LBB7_7:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB7_8
LBB7_8:
ret
.cfi_endproc
; -- End function
.globl _c_a500 ; -- Begin function c_a500
.p2align 2
_c_a500: ; @c_a500
.cfi_startproc
; %bb.0:
adrp x8, _char0@PAGE
ldrsb w8, [x8, _char0@PAGEOFF]
mov w9, #42240
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB8_2
b LBB8_1
LBB8_1:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB8_2
LBB8_2:
adrp x8, _int0@PAGE
ldr w8, [x8, _int0@PAGEOFF]
mov w9, #42240
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB8_4
b LBB8_3
LBB8_3:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB8_4
LBB8_4:
adrp x8, _int0@PAGE
ldr w8, [x8, _int0@PAGEOFF]
mov w9, #41984
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB8_6
b LBB8_5
LBB8_5:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB8_6
LBB8_6:
adrp x8, _int0@PAGE
ldr w8, [x8, _int0@PAGEOFF]
subs w8, w8, #165
cset w8, ne
tbnz w8, #0, LBB8_8
b LBB8_7
LBB8_7:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB8_8
LBB8_8:
ret
.cfi_endproc
; -- End function
.globl _c_abcd ; -- Begin function c_abcd
.p2align 2
_c_abcd: ; @c_abcd
.cfi_startproc
; %bb.0:
adrp x8, _char0@PAGE
ldrsb w8, [x8, _char0@PAGEOFF]
mov w9, #43981
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB9_2
b LBB9_1
LBB9_1:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB9_2
LBB9_2:
adrp x8, _int0@PAGE
ldr w8, [x8, _int0@PAGEOFF]
mov w9, #43981
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB9_4
b LBB9_3
LBB9_3:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB9_4
LBB9_4:
adrp x8, _int0@PAGE
ldr w8, [x8, _int0@PAGEOFF]
mov w9, #43776
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB9_6
b LBB9_5
LBB9_5:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB9_6
LBB9_6:
adrp x8, _int0@PAGE
ldr w8, [x8, _int0@PAGEOFF]
subs w8, w8, #205
cset w8, ne
tbnz w8, #0, LBB9_8
b LBB9_7
LBB9_7:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB9_8
LBB9_8:
adrp x8, _int0@PAGE
ldr w8, [x8, _int0@PAGEOFF]
subs w8, w8, #1485
cset w8, ne
tbnz w8, #0, LBB9_10
b LBB9_9
LBB9_9:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB9_10
LBB9_10:
adrp x8, _int0@PAGE
ldr w8, [x8, _int0@PAGEOFF]
mov w9, #43781
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB9_12
b LBB9_11
LBB9_11:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB9_12
LBB9_12:
adrp x8, _int0@PAGE
ldr w8, [x8, _int0@PAGEOFF]
mov w9, #43777
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB9_14
b LBB9_13
LBB9_13:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB9_14
LBB9_14:
adrp x8, _int0@PAGE
ldr w8, [x8, _int0@PAGEOFF]
subs w8, w8, #461
cset w8, ne
tbnz w8, #0, LBB9_16
b LBB9_15
LBB9_15:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB9_16
LBB9_16:
adrp x8, _int0@PAGE
ldr w8, [x8, _int0@PAGEOFF]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB9_18
b LBB9_17
LBB9_17:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB9_18
LBB9_18:
adrp x8, _int0@PAGE
ldr w8, [x8, _int0@PAGEOFF]
mov w9, #43981
movk w9, #4660, lsl #16
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB9_20
b LBB9_19
LBB9_19:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB9_20
LBB9_20:
ret
.cfi_endproc
; -- End function
.globl _c_ifelse1 ; -- Begin function c_ifelse1
.p2align 2
_c_ifelse1: ; @c_ifelse1
.cfi_startproc
; %bb.0:
adrp x8, _char0@PAGE
ldrb w8, [x8, _char0@PAGEOFF]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB10_2
b LBB10_1
LBB10_1:
adrp x8, _char1@PAGE
ldrb w8, [x8, _char1@PAGEOFF]
adrp x9, _char0@PAGE
strb w8, [x9, _char0@PAGEOFF]
b LBB10_3
LBB10_2:
adrp x8, _char0@PAGE
strb wzr, [x8, _char0@PAGEOFF]
b LBB10_3
LBB10_3:
adrp x8, _char0@PAGE
ldrb w8, [x8, _char0@PAGEOFF]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB10_5
b LBB10_4
LBB10_4:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB10_5
LBB10_5:
ret
.cfi_endproc
; -- End function
.globl _c_minus1 ; -- Begin function c_minus1
.p2align 2
_c_minus1: ; @c_minus1
.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, _long0@PAGE
stur x8, [x29, #-8] ; 8-byte Folded Spill
ldr x10, [x8, _long0@PAGEOFF]
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldur x8, [x29, #-8] ; 8-byte Folded Reload
ldr x8, [x8, _long0@PAGEOFF]
adds x8, x8, #1
cset w8, eq
tbnz w8, #0, LBB11_2
b LBB11_1
LBB11_1:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB11_2
LBB11_2:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
subs x8, x8, #0
cset w8, le
tbnz w8, #0, LBB11_4
b LBB11_3
LBB11_3:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB11_4
LBB11_4:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
subs x8, x8, #0
cset w8, ge
tbnz w8, #0, LBB11_6
b LBB11_5
LBB11_5:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB11_6
LBB11_6:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _c_long2long_eq ; -- Begin function c_long2long_eq
.p2align 2
_c_long2long_eq: ; @c_long2long_eq
.cfi_startproc
; %bb.0:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
adrp x9, _long1@PAGE
ldr x9, [x9, _long1@PAGEOFF]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB12_2
b LBB12_1
LBB12_1:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB12_2
LBB12_2:
adrp x8, _ulong0@PAGE
ldr x8, [x8, _ulong0@PAGEOFF]
adrp x9, _ulong1@PAGE
ldr x9, [x9, _ulong1@PAGEOFF]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB12_4
b LBB12_3
LBB12_3:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB12_4
LBB12_4:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
adrp x9, _ulong1@PAGE
ldr x9, [x9, _ulong1@PAGEOFF]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB12_6
b LBB12_5
LBB12_5:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB12_6
LBB12_6:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
adrp x9, _long1@PAGE
ldr x9, [x9, _long1@PAGEOFF]
subs x8, x8, x9
cset w8, le
tbnz w8, #0, LBB12_8
b LBB12_7
LBB12_7:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB12_8
LBB12_8:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
adrp x9, _long1@PAGE
ldr x9, [x9, _long1@PAGEOFF]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB12_10
b LBB12_9
LBB12_9:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB12_10
LBB12_10:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
adrp x9, _ulong0@PAGE
ldr x9, [x9, _ulong0@PAGEOFF]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB12_12
b LBB12_11
LBB12_11:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB12_12
LBB12_12:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
adrp x9, _ulong0@PAGE
ldr x9, [x9, _ulong0@PAGEOFF]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB12_14
b LBB12_13
LBB12_13:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB12_14
LBB12_14:
ret
.cfi_endproc
; -- End function
.globl _c_long2long_neq ; -- Begin function c_long2long_neq
.p2align 2
_c_long2long_neq: ; @c_long2long_neq
.cfi_startproc
; %bb.0:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
adrp x9, _long1@PAGE
ldr x9, [x9, _long1@PAGEOFF]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB13_2
b LBB13_1
LBB13_1:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB13_2
LBB13_2:
adrp x8, _ulong0@PAGE
ldr x8, [x8, _ulong0@PAGEOFF]
adrp x9, _ulong1@PAGE
ldr x9, [x9, _ulong1@PAGEOFF]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB13_4
b LBB13_3
LBB13_3:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB13_4
LBB13_4:
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
adrp x9, _ulong1@PAGE
ldr x9, [x9, _ulong1@PAGEOFF]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB13_6
b LBB13_5
LBB13_5:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB13_6
LBB13_6:
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
adrp x9, _long0@PAGE
ldr x9, [x9, _long0@PAGEOFF]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB13_8
b LBB13_7
LBB13_7:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB13_8
LBB13_8:
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
adrp x9, _long0@PAGE
ldr x9, [x9, _long0@PAGEOFF]
subs x8, x8, x9
cset w8, gt
tbnz w8, #0, LBB13_10
b LBB13_9
LBB13_9:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB13_10
LBB13_10:
adrp x8, _ulong1@PAGE
ldr x8, [x8, _ulong1@PAGEOFF]
adrp x9, _ulong0@PAGE
ldr x9, [x9, _ulong0@PAGEOFF]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB13_12
b LBB13_11
LBB13_11:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB13_12
LBB13_12:
adrp x8, _ulong1@PAGE
ldr x8, [x8, _ulong1@PAGEOFF]
adrp x9, _ulong0@PAGE
ldr x9, [x9, _ulong0@PAGEOFF]
subs x8, x8, x9
cset w8, hi
tbnz w8, #0, LBB13_14
b LBB13_13
LBB13_13:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB13_14
LBB13_14:
ret
.cfi_endproc
; -- End function
.globl _c_long2neglit ; -- Begin function c_long2neglit
.p2align 2
_c_long2neglit: ; @c_long2neglit
.cfi_startproc
; %bb.0:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
subs x8, x8, #0
cset w8, le
tbnz w8, #0, LBB14_2
b LBB14_1
LBB14_1:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB14_2
LBB14_2:
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
subs x8, x8, #0
cset w8, le
tbnz w8, #0, LBB14_4
b LBB14_3
LBB14_3:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB14_4
LBB14_4:
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
adrp x9, _long0@PAGE
ldr x9, [x9, _long0@PAGEOFF]
subs x8, x8, x9
cset w8, le
tbnz w8, #0, LBB14_6
b LBB14_5
LBB14_5:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB14_6
LBB14_6:
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
subs x8, x8, #100
cset w8, le
tbnz w8, #0, LBB14_8
b LBB14_7
LBB14_7:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB14_8
LBB14_8:
adrp x8, _long0@PAGE
ldr x8, [x8, _long0@PAGEOFF]
adds x8, x8, #50
cset w8, le
tbnz w8, #0, LBB14_10
b LBB14_9
LBB14_9:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB14_10
LBB14_10:
adrp x8, _long1@PAGE
ldr x8, [x8, _long1@PAGEOFF]
mov x9, #-5000
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB14_12
b LBB14_11
LBB14_11:
adrp x9, _failures@PAGE
ldrb w8, [x9, _failures@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _failures@PAGEOFF]
b LBB14_12
LBB14_12:
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]
bl _c_0
adrp x8, _failures@PAGE
stur x8, [x29, #-16] ; 8-byte Folded Spill
ldrb w10, [x8, _failures@PAGEOFF]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
bl _c_long2long_eq
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldrb w10, [x8, _failures@PAGEOFF]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
adrp x9, _long1@PAGE
str x9, [sp, #24] ; 8-byte Folded Spill
mov x8, #1
str x8, [x9, _long1@PAGEOFF]
adrp x9, _ulong1@PAGE
str x8, [x9, _ulong1@PAGEOFF]
bl _c_1
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldrb w10, [x8, _failures@PAGEOFF]
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 _printf
bl _c_long2long_neq
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldrb w10, [x8, _failures@PAGEOFF]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
adrp x9, _long0@PAGE
str x9, [sp, #16] ; 8-byte Folded Spill
mov x8, #2
str x8, [x9, _long0@PAGEOFF]
adrp x9, _ulong0@PAGE
str x9, [sp, #8] ; 8-byte Folded Spill
str x8, [x9, _ulong0@PAGEOFF]
bl _c_2
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldrb w10, [x8, _failures@PAGEOFF]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x10, [sp, #16] ; 8-byte Folded Reload
mov x8, #255
str x8, [x10, _long0@PAGEOFF]
str x8, [x9, _ulong0@PAGEOFF]
bl _c_ff
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldrb w10, [x8, _failures@PAGEOFF]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x10, [sp, #16] ; 8-byte Folded Reload
mov x8, #512
str x8, [x10, _long0@PAGEOFF]
str x8, [x9, _ulong0@PAGEOFF]
bl _c_200
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldrb w10, [x8, _failures@PAGEOFF]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x10, [sp, #16] ; 8-byte Folded Reload
mov x8, #131072
str x8, [x10, _long0@PAGEOFF]
str x8, [x9, _ulong0@PAGEOFF]
bl _c_20000
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldrb w10, [x8, _failures@PAGEOFF]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
ldr x9, [sp, #16] ; 8-byte Folded Reload
mov x8, #-1
str x8, [x9, _long0@PAGEOFF]
bl _c_minus1
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldrb w10, [x8, _failures@PAGEOFF]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
ldr x10, [sp, #16] ; 8-byte Folded Reload
ldr x9, [sp, #24] ; 8-byte Folded Reload
mov x8, #-100
str x8, [x10, _long0@PAGEOFF]
mov x8, #-1000
str x8, [x9, _long1@PAGEOFF]
bl _c_long2neglit
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldrb w10, [x8, _failures@PAGEOFF]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldrb w8, [x8, _failures@PAGEOFF]
adrp x9, _success@PAGE
strb w8, [x9, _success@PAGEOFF]
bl _done
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldrb w10, [x8, _failures@PAGEOFF]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
ldur x8, [x29, #-16] ; 8-byte Folded Reload
ldrb w0, [x8, _failures@PAGEOFF]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _success ; @success
.zerofill __DATA,__common,_success,1,0
.globl _failures ; @failures
.zerofill __DATA,__common,_failures,1,0
.globl _dummy ; @dummy
.zerofill __DATA,__common,_dummy,1,0
.globl _int0 ; @int0
.zerofill __DATA,__common,_int0,4,2
.globl _int1 ; @int1
.zerofill __DATA,__common,_int1,4,2
.globl _char0 ; @char0
.zerofill __DATA,__common,_char0,1,0
.globl _char1 ; @char1
.zerofill __DATA,__common,_char1,1,0
.globl _long0 ; @long0
.zerofill __DATA,__common,_long0,8,3
.globl _long1 ; @long1
.zerofill __DATA,__common,_long1,8,3
.globl _ulong0 ; @ulong0
.zerofill __DATA,__common,_ulong0,8,3
.globl _ulong1 ; @ulong1
.zerofill __DATA,__common,_ulong1,8,3
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "long0:%ld long1:%ld\n"
l_.str.1: ; @.str.1
.asciz "(long0 != -1)\n"
l_.str.2: ; @.str.2
.asciz "(long0 > 0)\n"
l_.str.3: ; @.str.3
.asciz "(long1 < 0)\n"
l_.str.4: ; @.str.4
.asciz "c_0: %d\n"
l_.str.5: ; @.str.5
.asciz "c_long2long_eq: %d\n"
l_.str.6: ; @.str.6
.asciz "c_1: %d\n"
l_.str.7: ; @.str.7
.asciz "c_long2long_neq: %d\n"
l_.str.8: ; @.str.8
.asciz "c_2: %d\n"
l_.str.9: ; @.str.9
.asciz "c_ff: %d\n"
l_.str.10: ; @.str.10
.asciz "c_200: %d\n"
l_.str.11: ; @.str.11
.asciz "c_20000: %d\n"
l_.str.12: ; @.str.12
.asciz "c_minus1: %d\n"
l_.str.13: ; @.str.13
.asciz "c_long2neglit: %d\n"
l_.str.14: ; @.str.14
.asciz "failures: %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _done ## -- Begin function done
.p2align 4, 0x90
_done: ## @done
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movb _dummy(%rip), %al
addb $1, %al
movb %al, _dummy(%rip)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _c_0 ## -- Begin function c_0
.p2align 4, 0x90
_c_0: ## @c_0
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cmpq $0, _long0(%rip)
je LBB1_2
## %bb.1:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB1_2:
cmpq $0, _long0(%rip)
jle LBB1_4
## %bb.3:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB1_4:
cmpq $0, _ulong0(%rip)
je LBB1_6
## %bb.5:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB1_6:
cmpq $0, _ulong0(%rip)
jbe LBB1_8
## %bb.7:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB1_8:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _c_1 ## -- Begin function c_1
.p2align 4, 0x90
_c_1: ## @c_1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cmpq $1, _long0(%rip)
jne LBB2_2
## %bb.1:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB2_2:
cmpq $1, _long1(%rip)
je LBB2_4
## %bb.3:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB2_4:
cmpq $1, _ulong0(%rip)
jne LBB2_6
## %bb.5:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB2_6:
cmpq $1, _ulong1(%rip)
je LBB2_8
## %bb.7:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB2_8:
cmpq $0, _long1(%rip)
jge LBB2_10
## %bb.9:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB2_10:
cmpq $1, _long1(%rip)
jge LBB2_12
## %bb.11:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB2_12:
cmpq $1, _ulong1(%rip)
jae LBB2_14
## %bb.13:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB2_14:
cmpq $1, _long1(%rip)
jle LBB2_16
## %bb.15:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB2_16:
cmpq $1, _ulong1(%rip)
jbe LBB2_18
## %bb.17:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB2_18:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _c_2 ## -- Begin function c_2
.p2align 4, 0x90
_c_2: ## @c_2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cmpq $2, _long0(%rip)
je LBB3_2
## %bb.1:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB3_2:
cmpq $2, _ulong0(%rip)
je LBB3_4
## %bb.3:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB3_4:
cmpq $2, _long1(%rip)
jne LBB3_6
## %bb.5:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB3_6:
cmpq $2, _ulong1(%rip)
jne LBB3_8
## %bb.7:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB3_8:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _c_ff ## -- Begin function c_ff
.p2align 4, 0x90
_c_ff: ## @c_ff
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cmpq $255, _long0(%rip)
je LBB4_2
## %bb.1:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB4_2:
cmpq $255, _ulong0(%rip)
je LBB4_4
## %bb.3:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB4_4:
cmpq $255, _long1(%rip)
jne LBB4_6
## %bb.5:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB4_6:
cmpq $255, _ulong1(%rip)
jne LBB4_8
## %bb.7:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB4_8:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _c_200 ## -- Begin function c_200
.p2align 4, 0x90
_c_200: ## @c_200
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cmpq $512, _long0(%rip) ## imm = 0x200
je LBB5_2
## %bb.1:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB5_2:
cmpq $512, _ulong0(%rip) ## imm = 0x200
je LBB5_4
## %bb.3:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB5_4:
cmpq $512, _long1(%rip) ## imm = 0x200
jne LBB5_6
## %bb.5:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB5_6:
cmpq $512, _ulong1(%rip) ## imm = 0x200
jne LBB5_8
## %bb.7:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB5_8:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _c_20000 ## -- Begin function c_20000
.p2align 4, 0x90
_c_20000: ## @c_20000
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cmpq $131072, _long0(%rip) ## imm = 0x20000
je LBB6_2
## %bb.1:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB6_2:
cmpq $131072, _ulong0(%rip) ## imm = 0x20000
je LBB6_4
## %bb.3:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB6_4:
cmpq $131072, _long1(%rip) ## imm = 0x20000
jne LBB6_6
## %bb.5:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB6_6:
cmpq $131072, _ulong1(%rip) ## imm = 0x20000
jne LBB6_8
## %bb.7:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB6_8:
cmpq $65536, _long0(%rip) ## imm = 0x10000
jg LBB6_10
## %bb.9:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB6_10:
cmpq $65536, _long0(%rip) ## imm = 0x10000
jge LBB6_12
## %bb.11:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB6_12:
cmpq $0, _long0(%rip)
jne LBB6_14
## %bb.13:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB6_14:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _c_a5 ## -- Begin function c_a5
.p2align 4, 0x90
_c_a5: ## @c_a5
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movsbl _char0(%rip), %eax
cmpl $165, %eax
je LBB7_2
## %bb.1:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB7_2:
cmpl $165, _int0(%rip)
je LBB7_4
## %bb.3:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB7_4:
cmpl $164, _int0(%rip)
jne LBB7_6
## %bb.5:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB7_6:
cmpl $42240, _int0(%rip) ## imm = 0xA500
jne LBB7_8
## %bb.7:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB7_8:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _c_a500 ## -- Begin function c_a500
.p2align 4, 0x90
_c_a500: ## @c_a500
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movsbl _char0(%rip), %eax
cmpl $42240, %eax ## imm = 0xA500
jne LBB8_2
## %bb.1:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB8_2:
cmpl $42240, _int0(%rip) ## imm = 0xA500
je LBB8_4
## %bb.3:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB8_4:
cmpl $41984, _int0(%rip) ## imm = 0xA400
jne LBB8_6
## %bb.5:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB8_6:
cmpl $165, _int0(%rip)
jne LBB8_8
## %bb.7:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB8_8:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _c_abcd ## -- Begin function c_abcd
.p2align 4, 0x90
_c_abcd: ## @c_abcd
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movsbl _char0(%rip), %eax
cmpl $43981, %eax ## imm = 0xABCD
jne LBB9_2
## %bb.1:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB9_2:
cmpl $43981, _int0(%rip) ## imm = 0xABCD
je LBB9_4
## %bb.3:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB9_4:
cmpl $43776, _int0(%rip) ## imm = 0xAB00
jne LBB9_6
## %bb.5:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB9_6:
cmpl $205, _int0(%rip)
jne LBB9_8
## %bb.7:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB9_8:
cmpl $1485, _int0(%rip) ## imm = 0x5CD
jne LBB9_10
## %bb.9:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB9_10:
cmpl $43781, _int0(%rip) ## imm = 0xAB05
jne LBB9_12
## %bb.11:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB9_12:
cmpl $43777, _int0(%rip) ## imm = 0xAB01
jne LBB9_14
## %bb.13:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB9_14:
cmpl $461, _int0(%rip) ## imm = 0x1CD
jne LBB9_16
## %bb.15:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB9_16:
cmpl $0, _int0(%rip)
jle LBB9_18
## %bb.17:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB9_18:
cmpl $305441741, _int0(%rip) ## imm = 0x1234ABCD
jne LBB9_20
## %bb.19:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB9_20:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _c_ifelse1 ## -- Begin function c_ifelse1
.p2align 4, 0x90
_c_ifelse1: ## @c_ifelse1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cmpb $0, _char0(%rip)
je LBB10_2
## %bb.1:
movb _char1(%rip), %al
movb %al, _char0(%rip)
jmp LBB10_3
LBB10_2:
movb $0, _char0(%rip)
LBB10_3:
cmpb $0, _char0(%rip)
je LBB10_5
## %bb.4:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB10_5:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _c_minus1 ## -- Begin function c_minus1
.p2align 4, 0x90
_c_minus1: ## @c_minus1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _long0(%rip), %rsi
movq _long1(%rip), %rdx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
cmpq $-1, _long0(%rip)
je LBB11_2
## %bb.1:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB11_2:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
cmpq $0, _long0(%rip)
jle LBB11_4
## %bb.3:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB11_4:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
cmpq $0, _long1(%rip)
jge LBB11_6
## %bb.5:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB11_6:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _c_long2long_eq ## -- Begin function c_long2long_eq
.p2align 4, 0x90
_c_long2long_eq: ## @c_long2long_eq
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _long0(%rip), %rax
cmpq _long1(%rip), %rax
je LBB12_2
## %bb.1:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB12_2:
movq _ulong0(%rip), %rax
cmpq _ulong1(%rip), %rax
je LBB12_4
## %bb.3:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB12_4:
movq _long0(%rip), %rax
cmpq _ulong1(%rip), %rax
je LBB12_6
## %bb.5:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB12_6:
movq _long0(%rip), %rax
cmpq _long1(%rip), %rax
jle LBB12_8
## %bb.7:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB12_8:
movq _long0(%rip), %rax
cmpq _long1(%rip), %rax
jge LBB12_10
## %bb.9:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB12_10:
movq _long0(%rip), %rax
cmpq _ulong0(%rip), %rax
jbe LBB12_12
## %bb.11:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB12_12:
movq _long0(%rip), %rax
cmpq _ulong0(%rip), %rax
jae LBB12_14
## %bb.13:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB12_14:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _c_long2long_neq ## -- Begin function c_long2long_neq
.p2align 4, 0x90
_c_long2long_neq: ## @c_long2long_neq
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _long0(%rip), %rax
cmpq _long1(%rip), %rax
jne LBB13_2
## %bb.1:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB13_2:
movq _ulong0(%rip), %rax
cmpq _ulong1(%rip), %rax
jne LBB13_4
## %bb.3:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB13_4:
movq _long1(%rip), %rax
cmpq _ulong1(%rip), %rax
je LBB13_6
## %bb.5:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB13_6:
movq _long1(%rip), %rax
cmpq _long0(%rip), %rax
jge LBB13_8
## %bb.7:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB13_8:
movq _long1(%rip), %rax
cmpq _long0(%rip), %rax
jg LBB13_10
## %bb.9:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB13_10:
movq _ulong1(%rip), %rax
cmpq _ulong0(%rip), %rax
jae LBB13_12
## %bb.11:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB13_12:
movq _ulong1(%rip), %rax
cmpq _ulong0(%rip), %rax
ja LBB13_14
## %bb.13:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB13_14:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _c_long2neglit ## -- Begin function c_long2neglit
.p2align 4, 0x90
_c_long2neglit: ## @c_long2neglit
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cmpq $0, _long0(%rip)
jle LBB14_2
## %bb.1:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB14_2:
cmpq $0, _long1(%rip)
jle LBB14_4
## %bb.3:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB14_4:
movq _long1(%rip), %rax
cmpq _long0(%rip), %rax
jle LBB14_6
## %bb.5:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB14_6:
cmpq $100, _long1(%rip)
jle LBB14_8
## %bb.7:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB14_8:
cmpq $-50, _long0(%rip)
jle LBB14_10
## %bb.9:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB14_10:
cmpq $-5000, _long1(%rip) ## imm = 0xEC78
jge LBB14_12
## %bb.11:
movb _failures(%rip), %al
addb $1, %al
movb %al, _failures(%rip)
LBB14_12:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
callq _c_0
movzbl _failures(%rip), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
callq _c_long2long_eq
movzbl _failures(%rip), %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movq $1, _long1(%rip)
movq $1, _ulong1(%rip)
callq _c_1
movzbl _failures(%rip), %esi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
callq _c_long2long_neq
movzbl _failures(%rip), %esi
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
movq $2, _long0(%rip)
movq $2, _ulong0(%rip)
callq _c_2
movzbl _failures(%rip), %esi
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movq $255, _long0(%rip)
movq $255, _ulong0(%rip)
callq _c_ff
movzbl _failures(%rip), %esi
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
movq $512, _long0(%rip) ## imm = 0x200
movq $512, _ulong0(%rip) ## imm = 0x200
callq _c_200
movzbl _failures(%rip), %esi
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movq $131072, _long0(%rip) ## imm = 0x20000
movq $131072, _ulong0(%rip) ## imm = 0x20000
callq _c_20000
movzbl _failures(%rip), %esi
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
movq $-1, _long0(%rip)
callq _c_minus1
movzbl _failures(%rip), %esi
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
movq $-100, _long0(%rip)
movq $-1000, _long1(%rip) ## imm = 0xFC18
callq _c_long2neglit
movzbl _failures(%rip), %esi
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
movb _failures(%rip), %al
movb %al, _success(%rip)
callq _done
movzbl _failures(%rip), %esi
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
movzbl _failures(%rip), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _success ## @success
.zerofill __DATA,__common,_success,1,0
.globl _failures ## @failures
.zerofill __DATA,__common,_failures,1,0
.globl _dummy ## @dummy
.zerofill __DATA,__common,_dummy,1,0
.globl _int0 ## @int0
.zerofill __DATA,__common,_int0,4,2
.globl _int1 ## @int1
.zerofill __DATA,__common,_int1,4,2
.globl _char0 ## @char0
.zerofill __DATA,__common,_char0,1,0
.globl _char1 ## @char1
.zerofill __DATA,__common,_char1,1,0
.globl _long0 ## @long0
.zerofill __DATA,__common,_long0,8,3
.globl _long1 ## @long1
.zerofill __DATA,__common,_long1,8,3
.globl _ulong0 ## @ulong0
.zerofill __DATA,__common,_ulong0,8,3
.globl _ulong1 ## @ulong1
.zerofill __DATA,__common,_ulong1,8,3
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "long0:%ld long1:%ld\n"
L_.str.1: ## @.str.1
.asciz "(long0 != -1)\n"
L_.str.2: ## @.str.2
.asciz "(long0 > 0)\n"
L_.str.3: ## @.str.3
.asciz "(long1 < 0)\n"
L_.str.4: ## @.str.4
.asciz "c_0: %d\n"
L_.str.5: ## @.str.5
.asciz "c_long2long_eq: %d\n"
L_.str.6: ## @.str.6
.asciz "c_1: %d\n"
L_.str.7: ## @.str.7
.asciz "c_long2long_neq: %d\n"
L_.str.8: ## @.str.8
.asciz "c_2: %d\n"
L_.str.9: ## @.str.9
.asciz "c_ff: %d\n"
L_.str.10: ## @.str.10
.asciz "c_200: %d\n"
L_.str.11: ## @.str.11
.asciz "c_20000: %d\n"
L_.str.12: ## @.str.12
.asciz "c_minus1: %d\n"
L_.str.13: ## @.str.13
.asciz "c_long2neglit: %d\n"
L_.str.14: ## @.str.14
.asciz "failures: %d\n"
.subsections_via_symbols
| the_stack_data/864008.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/43887152.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-36]
str w0, [sp, #40]
str x1, [sp, #32]
ldr w8, [sp, #40]
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:
sub x0, x29, #16
bl _pipe
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w0, #-3
bl _exit
LBB0_4:
bl _fork
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldur w0, [x29, #-16]
bl _close
ldur w0, [x29, #-12]
mov w1, #1
bl _dup2
ldr x8, [sp, #32]
ldr x9, [x8, #8]
mov x8, sp
str x9, [x8]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
mov x0, x1
bl _execlp
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov w0, #-10
bl _exit
LBB0_6:
ldur w0, [x29, #-12]
bl _close
sub x0, x29, #24
bl _pipe
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w0, #-3
bl _exit
LBB0_8:
ldur w0, [x29, #-20]
bl _close
bl _fork
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
ldur w0, [x29, #-24]
bl _close
ldur w0, [x29, #-16]
mov w1, #0
bl _dup2
ldur w0, [x29, #-20]
mov w1, #1
bl _dup2
ldr x8, [sp, #32]
ldr x9, [x8, #16]
mov x8, sp
str x9, [x8]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
mov x0, x1
bl _execlp
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
mov w0, #-10
bl _exit
LBB0_10:
sub x0, x29, #32
bl _pipe
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w0, #-3
bl _exit
LBB0_12:
bl _fork
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
ldur w0, [x29, #-20]
bl _close
ldur w0, [x29, #-16]
bl _close
ldur w0, [x29, #-24]
mov w1, #0
bl _dup2
ldur w0, [x29, #-28]
mov w1, #1
bl _dup2
mov x8, sp
; kill: def $x9 killed $xzr
str xzr, [x8]
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
mov x0, x1
bl _execlp
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
mov w0, #-10
bl _exit
LBB0_14:
ldur w0, [x29, #-28]
bl _close
mov x0, #100
bl _malloc
str x0, [sp, #24]
b LBB0_15
LBB0_15: ; =>This Inner Loop Header: Depth=1
ldur w0, [x29, #-32]
ldr x1, [sp, #24]
mov x2, #100
bl _read
mov x8, x0
mov x9, x0
str w9, [sp, #20]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_15 Depth=1
ldr x1, [sp, #24]
ldrsw x2, [sp, #20]
mov w0, #1
bl _write
b LBB0_15
LBB0_17:
ldr x0, [sp, #24]
bl _free
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18:
bl ___stack_chk_fail
LBB0_19:
mov w0, #0
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Error! I must get two arguments!\n"
l_.str.1: ; @.str.1
.asciz "Error! Could not open pipe!\n"
l_.str.2: ; @.str.2
.asciz "ls"
l_.str.3: ; @.str.3
.asciz "Error calling ls!\n"
l_.str.4: ; @.str.4
.asciz "grep"
l_.str.5: ; @.str.5
.asciz "Error calling grep!\n"
l_.str.6: ; @.str.6
.asciz "sort"
l_.str.7: ; @.str.7
.asciz "Error calling sort!\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, -36(%rbp)
movl %edi, -40(%rbp)
movq %rsi, -48(%rbp)
cmpl $3, -40(%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:
leaq -16(%rbp), %rdi
callq _pipe
cmpl $-1, %eax
jne LBB0_4
## %bb.3:
leaq L_.str.1(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $-3, %edi
callq _exit
LBB0_4:
callq _fork
cmpl $0, %eax
jne LBB0_6
## %bb.5:
movl -16(%rbp), %edi
callq _close
movl -12(%rbp), %edi
movl $1, %esi
callq _dup2
movq -48(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.2(%rip), %rsi
xorl %eax, %eax
movl %eax, %ecx
## kill: def $al killed $al killed $eax
movb %al, -61(%rbp) ## 1-byte Spill
movq %rsi, %rdi
callq _execlp
## kill: def $ecx killed $eax
movb -61(%rbp), %al ## 1-byte Reload
leaq L_.str.3(%rip), %rdi
callq _printf
movl $-10, %edi
callq _exit
LBB0_6:
movl -12(%rbp), %edi
callq _close
leaq -24(%rbp), %rdi
callq _pipe
cmpl $-1, %eax
jne LBB0_8
## %bb.7:
leaq L_.str.1(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $-3, %edi
callq _exit
LBB0_8:
movl -20(%rbp), %edi
callq _close
callq _fork
cmpl $0, %eax
jne LBB0_10
## %bb.9:
movl -24(%rbp), %edi
callq _close
movl -16(%rbp), %edi
xorl %esi, %esi
movl %esi, -68(%rbp) ## 4-byte Spill
callq _dup2
movl -20(%rbp), %edi
movl $1, %esi
callq _dup2
## kill: def $ecx killed $eax
movl -68(%rbp), %eax ## 4-byte Reload
movq -48(%rbp), %rcx
movq 16(%rcx), %rdx
leaq L_.str.4(%rip), %rsi
movl %eax, %ecx
## kill: def $al killed $al killed $eax
movb %al, -62(%rbp) ## 1-byte Spill
movq %rsi, %rdi
callq _execlp
## kill: def $ecx killed $eax
movb -62(%rbp), %al ## 1-byte Reload
leaq L_.str.5(%rip), %rdi
callq _printf
movl $-10, %edi
callq _exit
LBB0_10:
leaq -32(%rbp), %rdi
callq _pipe
cmpl $-1, %eax
jne LBB0_12
## %bb.11:
leaq L_.str.1(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $-3, %edi
callq _exit
LBB0_12:
callq _fork
cmpl $0, %eax
jne LBB0_14
## %bb.13:
movl -20(%rbp), %edi
callq _close
movl -16(%rbp), %edi
callq _close
movl -24(%rbp), %edi
xorl %esi, %esi
movl %esi, -76(%rbp) ## 4-byte Spill
callq _dup2
movl -28(%rbp), %edi
movl $1, %esi
callq _dup2
## kill: def $ecx killed $eax
movl -76(%rbp), %eax ## 4-byte Reload
leaq L_.str.6(%rip), %rsi
movl %eax, %edx
## kill: def $al killed $al killed $eax
movb %al, -69(%rbp) ## 1-byte Spill
movq %rsi, %rdi
callq _execlp
## kill: def $ecx killed $eax
movb -69(%rbp), %al ## 1-byte Reload
leaq L_.str.7(%rip), %rdi
callq _printf
movl $-10, %edi
callq _exit
LBB0_14:
movl -28(%rbp), %edi
callq _close
movl $100, %edi
callq _malloc
movq %rax, -56(%rbp)
LBB0_15: ## =>This Inner Loop Header: Depth=1
movl -32(%rbp), %edi
movq -56(%rbp), %rsi
movl $100, %edx
callq _read
## kill: def $eax killed $eax killed $rax
movl %eax, -60(%rbp)
cmpl $0, %eax
jle LBB0_17
## %bb.16: ## in Loop: Header=BB0_15 Depth=1
movq -56(%rbp), %rsi
movslq -60(%rbp), %rdx
movl $1, %edi
callq _write
jmp LBB0_15
LBB0_17:
movq -56(%rbp), %rdi
callq _free
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_19
## %bb.18:
xorl %eax, %eax
addq $80, %rsp
popq %rbp
retq
LBB0_19:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Error! I must get two arguments!\n"
L_.str.1: ## @.str.1
.asciz "Error! Could not open pipe!\n"
L_.str.2: ## @.str.2
.asciz "ls"
L_.str.3: ## @.str.3
.asciz "Error calling ls!\n"
L_.str.4: ## @.str.4
.asciz "grep"
L_.str.5: ## @.str.5
.asciz "Error calling grep!\n"
L_.str.6: ## @.str.6
.asciz "sort"
L_.str.7: ## @.str.7
.asciz "Error calling sort!\n"
.subsections_via_symbols
| the_stack_data/150141841.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, #1376
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #44]
str wzr, [sp, #20]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #40
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
str wzr, [sp, #32]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #32]
ldr w9, [sp, #40]
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 x10, [sp, #32]
add x9, sp, #88
mov w8, #0
str w8, [x9, x10, lsl #2]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_1
LBB0_4:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #36
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
str wzr, [sp, #32]
b LBB0_5
LBB0_5: ; =>This Loop Header: Depth=1
; Child Loop BB0_7 Depth 2
ldr w8, [sp, #32]
ldr w9, [sp, #40]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_12
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #32]
add w10, w8, #1
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
str wzr, [sp, #28]
b LBB0_7
LBB0_7: ; Parent Loop BB0_5 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=2
ldrsw x8, [sp, #32]
mov x9, #40
mul x9, x8, x9
add x8, sp, #968
add x8, x8, x9
ldrsw x9, [sp, #28]
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_9
LBB0_9: ; in Loop: Header=BB0_7 Depth=2
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_7
LBB0_10: ; in Loop: Header=BB0_5 Depth=1
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_5
LBB0_12:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
str wzr, [sp, #32]
b LBB0_13
LBB0_13: ; =>This Loop Header: Depth=1
; Child Loop BB0_15 Depth 2
ldr w8, [sp, #32]
ldr w9, [sp, #40]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_20
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=1
ldr w8, [sp, #32]
add w10, w8, #1
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
str wzr, [sp, #28]
b LBB0_15
LBB0_15: ; Parent Loop BB0_13 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_18
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_15 Depth=2
ldrsw x8, [sp, #32]
mov x9, #40
mul x9, x8, x9
add x8, sp, #168
add x8, x8, x9
ldrsw x9, [sp, #28]
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_17
LBB0_17: ; in Loop: Header=BB0_15 Depth=2
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_15
LBB0_18: ; in Loop: Header=BB0_13 Depth=1
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_13 Depth=1
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_13
LBB0_20:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
str wzr, [sp, #32]
b LBB0_21
LBB0_21: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #32]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_24
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_21 Depth=1
ldrsw x9, [sp, #32]
add x8, sp, #128
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_23
LBB0_23: ; in Loop: Header=BB0_21 Depth=1
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_21
LBB0_24:
str wzr, [sp, #32]
b LBB0_25
LBB0_25: ; =>This Loop Header: Depth=1
; Child Loop BB0_27 Depth 2
ldr w8, [sp, #32]
ldr w9, [sp, #40]
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, #28]
b LBB0_27
LBB0_27: ; Parent Loop BB0_25 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_30
b LBB0_28
LBB0_28: ; in Loop: Header=BB0_27 Depth=2
ldrsw x8, [sp, #32]
mov x10, #40
mul x9, x8, x10
add x8, sp, #968
add x8, x8, x9
ldrsw x9, [sp, #28]
ldr w8, [x8, x9, lsl #2]
ldrsw x9, [sp, #32]
mul x11, x9, x10
add x9, sp, #168
add x9, x9, x11
ldrsw x11, [sp, #28]
ldr w9, [x9, x11, lsl #2]
subs w8, w8, w9
ldrsw x9, [sp, #32]
mul x10, x9, x10
add x9, sp, #568
add x9, x9, x10
ldrsw x10, [sp, #28]
str w8, [x9, x10, lsl #2]
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_27 Depth=2
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
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, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_25
LBB0_32:
b LBB0_33
LBB0_33: ; =>This Loop Header: Depth=1
; Child Loop BB0_34 Depth 2
; Child Loop BB0_36 Depth 3
; Child Loop BB0_40 Depth 3
; Child Loop BB0_46 Depth 2
; Child Loop BB0_49 Depth 3
; Child Loop BB0_61 Depth 2
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
str wzr, [sp, #32]
b LBB0_34
LBB0_34: ; Parent Loop BB0_33 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_36 Depth 3
; Child Loop BB0_40 Depth 3
ldr w8, [sp, #32]
ldr w9, [sp, #40]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_45
b LBB0_35
LBB0_35: ; in Loop: Header=BB0_34 Depth=2
str wzr, [sp, #28]
b LBB0_36
LBB0_36: ; Parent Loop BB0_33 Depth=1
; Parent Loop BB0_34 Depth=2
; => This Inner Loop Header: Depth=3
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_39
b LBB0_37
LBB0_37: ; in Loop: Header=BB0_36 Depth=3
ldrsw x8, [sp, #32]
mov x9, #40
mul x9, x8, x9
add x8, sp, #968
add x8, x8, x9
ldrsw x9, [sp, #28]
ldr w9, [x8, x9, lsl #2]
; 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_38
LBB0_38: ; in Loop: Header=BB0_36 Depth=3
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_36
LBB0_39: ; in Loop: Header=BB0_34 Depth=2
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
str wzr, [sp, #28]
b LBB0_40
LBB0_40: ; Parent Loop BB0_33 Depth=1
; Parent Loop BB0_34 Depth=2
; => This Inner Loop Header: Depth=3
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_43
b LBB0_41
LBB0_41: ; in Loop: Header=BB0_40 Depth=3
ldrsw x8, [sp, #32]
mov x9, #40
mul x9, x8, x9
add x8, sp, #168
add x8, x8, x9
ldrsw x9, [sp, #28]
ldr w9, [x8, x9, lsl #2]
; 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_42
LBB0_42: ; in Loop: Header=BB0_40 Depth=3
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_40
LBB0_43: ; in Loop: Header=BB0_34 Depth=2
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
b LBB0_44
LBB0_44: ; in Loop: Header=BB0_34 Depth=2
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_34
LBB0_45: ; in Loop: Header=BB0_33 Depth=1
mov w8, #-1
str w8, [sp, #24]
str wzr, [sp, #32]
b LBB0_46
LBB0_46: ; Parent Loop BB0_33 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_49 Depth 3
ldr w8, [sp, #32]
ldr w9, [sp, #40]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_59
b LBB0_47
LBB0_47: ; in Loop: Header=BB0_46 Depth=2
ldrsw x9, [sp, #32]
add x8, sp, #88
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_55
b LBB0_48
LBB0_48: ; in Loop: Header=BB0_46 Depth=2
ldr w8, [sp, #32]
str w8, [sp, #24]
str wzr, [sp, #28]
b LBB0_49
LBB0_49: ; Parent Loop BB0_33 Depth=1
; Parent Loop BB0_46 Depth=2
; => This Inner Loop Header: Depth=3
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_54
b LBB0_50
LBB0_50: ; in Loop: Header=BB0_49 Depth=3
ldrsw x9, [sp, #28]
add x8, sp, #128
ldr w8, [x8, x9, lsl #2]
ldrsw x9, [sp, #32]
mov x10, #40
mul x10, x9, x10
add x9, sp, #568
add x9, x9, x10
ldrsw x10, [sp, #28]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_52
b LBB0_51
LBB0_51: ; in Loop: Header=BB0_46 Depth=2
mov w8, #-1
str w8, [sp, #24]
b LBB0_54
LBB0_52: ; in Loop: Header=BB0_49 Depth=3
b LBB0_53
LBB0_53: ; in Loop: Header=BB0_49 Depth=3
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_49
LBB0_54: ; in Loop: Header=BB0_46 Depth=2
b LBB0_55
LBB0_55: ; in Loop: Header=BB0_46 Depth=2
ldr w8, [sp, #24]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_57
b LBB0_56
LBB0_56: ; in Loop: Header=BB0_33 Depth=1
b LBB0_59
LBB0_57: ; in Loop: Header=BB0_46 Depth=2
b LBB0_58
LBB0_58: ; in Loop: Header=BB0_46 Depth=2
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_46
LBB0_59: ; in Loop: Header=BB0_33 Depth=1
ldr w8, [sp, #24]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_65
b LBB0_60
LBB0_60: ; in Loop: Header=BB0_33 Depth=1
ldr w8, [sp, #24]
add w10, w8, #1
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
ldr w8, [sp, #24]
add w8, w8, #1
ldrsw x10, [sp, #20]
add x9, sp, #48
str w8, [x9, x10, lsl #2]
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
str wzr, [sp, #28]
b LBB0_61
LBB0_61: ; Parent Loop BB0_33 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_64
b LBB0_62
LBB0_62: ; in Loop: Header=BB0_61 Depth=2
ldrsw x8, [sp, #24]
mov x10, #40
mul x11, x8, x10
add x8, sp, #168
mov x9, x8
add x9, x9, x11
ldrsw x11, [sp, #28]
ldr w12, [x9, x11, lsl #2]
ldrsw x11, [sp, #28]
add x9, sp, #128
add x11, x9, x11, lsl #2
ldr w9, [x11]
add w9, w9, w12
str w9, [x11]
ldrsw x9, [sp, #24]
mul x9, x9, x10
add x9, x8, x9
ldrsw x11, [sp, #28]
mov w8, #0
str w8, [x9, x11, lsl #2]
ldrsw x9, [sp, #24]
mul x10, x9, x10
add x9, sp, #968
add x9, x9, x10
ldrsw x10, [sp, #28]
str w8, [x9, x10, lsl #2]
ldrsw x10, [sp, #24]
add x9, sp, #88
mov w8, #1
str w8, [x9, x10, lsl #2]
b LBB0_63
LBB0_63: ; in Loop: Header=BB0_61 Depth=2
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_61
LBB0_64: ; in Loop: Header=BB0_33 Depth=1
b LBB0_65
LBB0_65: ; in Loop: Header=BB0_33 Depth=1
b LBB0_66
LBB0_66: ; in Loop: Header=BB0_33 Depth=1
ldr w8, [sp, #20]
ldr w9, [sp, #40]
subs w8, w8, w9
cset w8, eq
mov w9, #0
str w9, [sp, #16] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_68
b LBB0_67
LBB0_67: ; in Loop: Header=BB0_33 Depth=1
ldr w8, [sp, #24]
adds w8, w8, #1
cset w8, ne
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_68
LBB0_68: ; in Loop: Header=BB0_33 Depth=1
ldr w8, [sp, #16] ; 4-byte Folded Reload
tbnz w8, #0, LBB0_33
b LBB0_69
LBB0_69:
ldr w8, [sp, #20]
ldr w9, [sp, #40]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_75
b LBB0_70
LBB0_70:
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
str wzr, [sp, #32]
b LBB0_71
LBB0_71: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #32]
ldr w9, [sp, #40]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_74
b LBB0_72
LBB0_72: ; in Loop: Header=BB0_71 Depth=1
ldrsw x9, [sp, #32]
add x8, sp, #48
ldr w9, [x8, x9, lsl #2]
; 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_73
LBB0_73: ; in Loop: Header=BB0_71 Depth=1
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_71
LBB0_74:
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
b LBB0_76
LBB0_75:
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _printf
b LBB0_76
LBB0_76:
ldr w8, [sp, #44]
str w8, [sp, #12] ; 4-byte Folded Spill
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_78
b LBB0_77
LBB0_77:
bl ___stack_chk_fail
LBB0_78:
ldr w0, [sp, #12] ; 4-byte Folded Reload
add sp, sp, #1376
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Enter the no of processes : "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "\n\nEnter the no of resources : "
l_.str.3: ; @.str.3
.asciz "\n\nEnter the Max Matrix for each process : "
l_.str.4: ; @.str.4
.asciz "\nFor process %d : "
l_.str.5: ; @.str.5
.asciz "\n\nEnter the allocation for each process : "
l_.str.6: ; @.str.6
.asciz "\n\nEnter the Available Resources : "
l_.str.7: ; @.str.7
.asciz "\n Max matrix:\tAllocation matrix:\n"
l_.str.8: ; @.str.8
.asciz "%d "
l_.str.9: ; @.str.9
.asciz "\t\t"
l_.str.10: ; @.str.10
.asciz "\n"
l_.str.11: ; @.str.11
.asciz "\nProcess %d runs to completion!"
l_.str.12: ; @.str.12
.asciz "\nThe system is in a safe state!!\n"
l_.str.13: ; @.str.13
.asciz "Safe Sequence : < "
l_.str.14: ; @.str.14
.asciz ">\n"
l_.str.15: ; @.str.15
.asciz "\nThe system is in an unsafe state!!"
.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 $1408, %rsp ## imm = 0x580
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -1364(%rbp)
movl $0, -1388(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -1368(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -1376(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -1376(%rbp), %eax
cmpl -1368(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -1376(%rbp), %rax
movl $0, -1312(%rbp,%rax,4)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -1376(%rbp), %eax
addl $1, %eax
movl %eax, -1376(%rbp)
jmp LBB0_1
LBB0_4:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -1372(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -1376(%rbp)
LBB0_5: ## =>This Loop Header: Depth=1
## Child Loop BB0_7 Depth 2
movl -1376(%rbp), %eax
cmpl -1368(%rbp), %eax
jge LBB0_12
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl -1376(%rbp), %esi
addl $1, %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -1380(%rbp)
LBB0_7: ## Parent Loop BB0_5 Depth=1
## => This Inner Loop Header: Depth=2
movl -1380(%rbp), %eax
cmpl -1372(%rbp), %eax
jge LBB0_10
## %bb.8: ## in Loop: Header=BB0_7 Depth=2
movslq -1376(%rbp), %rax
leaq -416(%rbp), %rsi
imulq $40, %rax, %rax
addq %rax, %rsi
movslq -1380(%rbp), %rax
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.9: ## in Loop: Header=BB0_7 Depth=2
movl -1380(%rbp), %eax
addl $1, %eax
movl %eax, -1380(%rbp)
jmp LBB0_7
LBB0_10: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_11
LBB0_11: ## in Loop: Header=BB0_5 Depth=1
movl -1376(%rbp), %eax
addl $1, %eax
movl %eax, -1376(%rbp)
jmp LBB0_5
LBB0_12:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -1376(%rbp)
LBB0_13: ## =>This Loop Header: Depth=1
## Child Loop BB0_15 Depth 2
movl -1376(%rbp), %eax
cmpl -1368(%rbp), %eax
jge LBB0_20
## %bb.14: ## in Loop: Header=BB0_13 Depth=1
movl -1376(%rbp), %esi
addl $1, %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -1380(%rbp)
LBB0_15: ## Parent Loop BB0_13 Depth=1
## => This Inner Loop Header: Depth=2
movl -1380(%rbp), %eax
cmpl -1372(%rbp), %eax
jge LBB0_18
## %bb.16: ## in Loop: Header=BB0_15 Depth=2
movslq -1376(%rbp), %rax
leaq -1216(%rbp), %rsi
imulq $40, %rax, %rax
addq %rax, %rsi
movslq -1380(%rbp), %rax
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.17: ## in Loop: Header=BB0_15 Depth=2
movl -1380(%rbp), %eax
addl $1, %eax
movl %eax, -1380(%rbp)
jmp LBB0_15
LBB0_18: ## in Loop: Header=BB0_13 Depth=1
jmp LBB0_19
LBB0_19: ## in Loop: Header=BB0_13 Depth=1
movl -1376(%rbp), %eax
addl $1, %eax
movl %eax, -1376(%rbp)
jmp LBB0_13
LBB0_20:
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -1376(%rbp)
LBB0_21: ## =>This Inner Loop Header: Depth=1
movl -1376(%rbp), %eax
cmpl -1372(%rbp), %eax
jge LBB0_24
## %bb.22: ## in Loop: Header=BB0_21 Depth=1
movslq -1376(%rbp), %rax
leaq -1264(%rbp), %rsi
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.23: ## in Loop: Header=BB0_21 Depth=1
movl -1376(%rbp), %eax
addl $1, %eax
movl %eax, -1376(%rbp)
jmp LBB0_21
LBB0_24:
movl $0, -1376(%rbp)
LBB0_25: ## =>This Loop Header: Depth=1
## Child Loop BB0_27 Depth 2
movl -1376(%rbp), %eax
cmpl -1368(%rbp), %eax
jge LBB0_32
## %bb.26: ## in Loop: Header=BB0_25 Depth=1
movl $0, -1380(%rbp)
LBB0_27: ## Parent Loop BB0_25 Depth=1
## => This Inner Loop Header: Depth=2
movl -1380(%rbp), %eax
cmpl -1372(%rbp), %eax
jge LBB0_30
## %bb.28: ## in Loop: Header=BB0_27 Depth=2
movslq -1376(%rbp), %rcx
leaq -416(%rbp), %rax
imulq $40, %rcx, %rcx
addq %rcx, %rax
movslq -1380(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movslq -1376(%rbp), %rcx
leaq -1216(%rbp), %rax
imulq $40, %rcx, %rcx
addq %rcx, %rax
movslq -1380(%rbp), %rcx
subl (%rax,%rcx,4), %edx
movslq -1376(%rbp), %rcx
leaq -816(%rbp), %rax
imulq $40, %rcx, %rcx
addq %rcx, %rax
movslq -1380(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.29: ## in Loop: Header=BB0_27 Depth=2
movl -1380(%rbp), %eax
addl $1, %eax
movl %eax, -1380(%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 -1376(%rbp), %eax
addl $1, %eax
movl %eax, -1376(%rbp)
jmp LBB0_25
LBB0_32:
jmp LBB0_33
LBB0_33: ## =>This Loop Header: Depth=1
## Child Loop BB0_34 Depth 2
## Child Loop BB0_36 Depth 3
## Child Loop BB0_40 Depth 3
## Child Loop BB0_46 Depth 2
## Child Loop BB0_49 Depth 3
## Child Loop BB0_61 Depth 2
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -1376(%rbp)
LBB0_34: ## Parent Loop BB0_33 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_36 Depth 3
## Child Loop BB0_40 Depth 3
movl -1376(%rbp), %eax
cmpl -1368(%rbp), %eax
jge LBB0_45
## %bb.35: ## in Loop: Header=BB0_34 Depth=2
movl $0, -1380(%rbp)
LBB0_36: ## Parent Loop BB0_33 Depth=1
## Parent Loop BB0_34 Depth=2
## => This Inner Loop Header: Depth=3
movl -1380(%rbp), %eax
cmpl -1372(%rbp), %eax
jge LBB0_39
## %bb.37: ## in Loop: Header=BB0_36 Depth=3
movslq -1376(%rbp), %rcx
leaq -416(%rbp), %rax
imulq $40, %rcx, %rcx
addq %rcx, %rax
movslq -1380(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
## %bb.38: ## in Loop: Header=BB0_36 Depth=3
movl -1380(%rbp), %eax
addl $1, %eax
movl %eax, -1380(%rbp)
jmp LBB0_36
LBB0_39: ## in Loop: Header=BB0_34 Depth=2
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -1380(%rbp)
LBB0_40: ## Parent Loop BB0_33 Depth=1
## Parent Loop BB0_34 Depth=2
## => This Inner Loop Header: Depth=3
movl -1380(%rbp), %eax
cmpl -1372(%rbp), %eax
jge LBB0_43
## %bb.41: ## in Loop: Header=BB0_40 Depth=3
movslq -1376(%rbp), %rcx
leaq -1216(%rbp), %rax
imulq $40, %rcx, %rcx
addq %rcx, %rax
movslq -1380(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
## %bb.42: ## in Loop: Header=BB0_40 Depth=3
movl -1380(%rbp), %eax
addl $1, %eax
movl %eax, -1380(%rbp)
jmp LBB0_40
LBB0_43: ## in Loop: Header=BB0_34 Depth=2
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
## %bb.44: ## in Loop: Header=BB0_34 Depth=2
movl -1376(%rbp), %eax
addl $1, %eax
movl %eax, -1376(%rbp)
jmp LBB0_34
LBB0_45: ## in Loop: Header=BB0_33 Depth=1
movl $-1, -1384(%rbp)
movl $0, -1376(%rbp)
LBB0_46: ## Parent Loop BB0_33 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_49 Depth 3
movl -1376(%rbp), %eax
cmpl -1368(%rbp), %eax
jge LBB0_59
## %bb.47: ## in Loop: Header=BB0_46 Depth=2
movslq -1376(%rbp), %rax
cmpl $0, -1312(%rbp,%rax,4)
jne LBB0_55
## %bb.48: ## in Loop: Header=BB0_46 Depth=2
movl -1376(%rbp), %eax
movl %eax, -1384(%rbp)
movl $0, -1380(%rbp)
LBB0_49: ## Parent Loop BB0_33 Depth=1
## Parent Loop BB0_46 Depth=2
## => This Inner Loop Header: Depth=3
movl -1380(%rbp), %eax
cmpl -1372(%rbp), %eax
jge LBB0_54
## %bb.50: ## in Loop: Header=BB0_49 Depth=3
movslq -1380(%rbp), %rax
movl -1264(%rbp,%rax,4), %eax
movslq -1376(%rbp), %rdx
leaq -816(%rbp), %rcx
imulq $40, %rdx, %rdx
addq %rdx, %rcx
movslq -1380(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge LBB0_52
## %bb.51: ## in Loop: Header=BB0_46 Depth=2
movl $-1, -1384(%rbp)
jmp LBB0_54
LBB0_52: ## in Loop: Header=BB0_49 Depth=3
jmp LBB0_53
LBB0_53: ## in Loop: Header=BB0_49 Depth=3
movl -1380(%rbp), %eax
addl $1, %eax
movl %eax, -1380(%rbp)
jmp LBB0_49
LBB0_54: ## in Loop: Header=BB0_46 Depth=2
jmp LBB0_55
LBB0_55: ## in Loop: Header=BB0_46 Depth=2
cmpl $-1, -1384(%rbp)
je LBB0_57
## %bb.56: ## in Loop: Header=BB0_33 Depth=1
jmp LBB0_59
LBB0_57: ## in Loop: Header=BB0_46 Depth=2
jmp LBB0_58
LBB0_58: ## in Loop: Header=BB0_46 Depth=2
movl -1376(%rbp), %eax
addl $1, %eax
movl %eax, -1376(%rbp)
jmp LBB0_46
LBB0_59: ## in Loop: Header=BB0_33 Depth=1
cmpl $-1, -1384(%rbp)
je LBB0_65
## %bb.60: ## in Loop: Header=BB0_33 Depth=1
movl -1384(%rbp), %esi
addl $1, %esi
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
movl -1384(%rbp), %ecx
addl $1, %ecx
movslq -1388(%rbp), %rax
movl %ecx, -1360(%rbp,%rax,4)
movl -1388(%rbp), %eax
addl $1, %eax
movl %eax, -1388(%rbp)
movl $0, -1380(%rbp)
LBB0_61: ## Parent Loop BB0_33 Depth=1
## => This Inner Loop Header: Depth=2
movl -1380(%rbp), %eax
cmpl -1372(%rbp), %eax
jge LBB0_64
## %bb.62: ## in Loop: Header=BB0_61 Depth=2
movslq -1384(%rbp), %rcx
leaq -1216(%rbp), %rax
imulq $40, %rcx, %rcx
addq %rcx, %rax
movslq -1380(%rbp), %rcx
movl (%rax,%rcx,4), %ecx
movslq -1380(%rbp), %rax
addl -1264(%rbp,%rax,4), %ecx
movl %ecx, -1264(%rbp,%rax,4)
movslq -1384(%rbp), %rcx
leaq -1216(%rbp), %rax
imulq $40, %rcx, %rcx
addq %rcx, %rax
movslq -1380(%rbp), %rcx
movl $0, (%rax,%rcx,4)
movslq -1384(%rbp), %rcx
leaq -416(%rbp), %rax
imulq $40, %rcx, %rcx
addq %rcx, %rax
movslq -1380(%rbp), %rcx
movl $0, (%rax,%rcx,4)
movslq -1384(%rbp), %rax
movl $1, -1312(%rbp,%rax,4)
## %bb.63: ## in Loop: Header=BB0_61 Depth=2
movl -1380(%rbp), %eax
addl $1, %eax
movl %eax, -1380(%rbp)
jmp LBB0_61
LBB0_64: ## in Loop: Header=BB0_33 Depth=1
jmp LBB0_65
LBB0_65: ## in Loop: Header=BB0_33 Depth=1
jmp LBB0_66
LBB0_66: ## in Loop: Header=BB0_33 Depth=1
movl -1388(%rbp), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl -1368(%rbp), %ecx
movb %al, -1389(%rbp) ## 1-byte Spill
je LBB0_68
## %bb.67: ## in Loop: Header=BB0_33 Depth=1
cmpl $-1, -1384(%rbp)
setne %al
movb %al, -1389(%rbp) ## 1-byte Spill
LBB0_68: ## in Loop: Header=BB0_33 Depth=1
movb -1389(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_33
## %bb.69:
movl -1388(%rbp), %eax
cmpl -1368(%rbp), %eax
jne LBB0_75
## %bb.70:
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -1376(%rbp)
LBB0_71: ## =>This Inner Loop Header: Depth=1
movl -1376(%rbp), %eax
cmpl -1368(%rbp), %eax
jge LBB0_74
## %bb.72: ## in Loop: Header=BB0_71 Depth=1
movslq -1376(%rbp), %rax
movl -1360(%rbp,%rax,4), %esi
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
## %bb.73: ## in Loop: Header=BB0_71 Depth=1
movl -1376(%rbp), %eax
addl $1, %eax
movl %eax, -1376(%rbp)
jmp LBB0_71
LBB0_74:
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_76
LBB0_75:
leaq L_.str.15(%rip), %rdi
movb $0, %al
callq _printf
LBB0_76:
movl -1364(%rbp), %eax
movl %eax, -1396(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_78
## %bb.77:
movl -1396(%rbp), %eax ## 4-byte Reload
addq $1408, %rsp ## imm = 0x580
popq %rbp
retq
LBB0_78:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter the no of processes : "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "\n\nEnter the no of resources : "
L_.str.3: ## @.str.3
.asciz "\n\nEnter the Max Matrix for each process : "
L_.str.4: ## @.str.4
.asciz "\nFor process %d : "
L_.str.5: ## @.str.5
.asciz "\n\nEnter the allocation for each process : "
L_.str.6: ## @.str.6
.asciz "\n\nEnter the Available Resources : "
L_.str.7: ## @.str.7
.asciz "\n Max matrix:\tAllocation matrix:\n"
L_.str.8: ## @.str.8
.asciz "%d "
L_.str.9: ## @.str.9
.asciz "\t\t"
L_.str.10: ## @.str.10
.asciz "\n"
L_.str.11: ## @.str.11
.asciz "\nProcess %d runs to completion!"
L_.str.12: ## @.str.12
.asciz "\nThe system is in a safe state!!\n"
L_.str.13: ## @.str.13
.asciz "Safe Sequence : < "
L_.str.14: ## @.str.14
.asciz ">\n"
L_.str.15: ## @.str.15
.asciz "\nThe system is in an unsafe state!!"
.subsections_via_symbols
| the_stack_data/711794.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 x9, sp
mov x8, #2147483647
str x8, [x9]
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 "%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
leaq L_.str(%rip), %rdi
movl $2147483647, %esi ## imm = 0x7FFFFFFF
movb $0, %al
callq _printf
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/1170214.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]
str wzr, [sp, #4]
mov w8, #1
str w8, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w9, [sp, #8]
ldr w8, [sp, #4]
add w8, w8, w9
str w8, [sp, #4]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp]
add w8, w8, #1
str w8, [sp]
b LBB0_1
LBB0_4:
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, #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 w0, [sp, #8]
str x1, [sp]
ldr w8, [sp, #8]
subs w8, w8, #18
cset w8, lt
tbnz w8, #0, LBB1_3
b LBB1_1
LBB1_1:
ldr w8, [sp, #8]
subs w8, w8, #22
cset w8, ge
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2:
ldr w0, [sp, #8]
mov w1, #20
bl _foo
stur w0, [x29, #-4]
b LBB1_4
LBB1_3:
stur wzr, [x29, #-4]
b LBB1_4
LBB1_4:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _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 $0, -12(%rbp)
movl $1, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -4(%rbp), %eax
jg LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl -12(%rbp), %eax
movl %eax, -12(%rbp)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_1
LBB0_4:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $18, -8(%rbp)
jl LBB1_3
## %bb.1:
cmpl $22, -8(%rbp)
jge LBB1_3
## %bb.2:
movl -8(%rbp), %edi
movl $20, %esi
callq _foo
movl %eax, -4(%rbp)
jmp LBB1_4
LBB1_3:
movl $0, -4(%rbp)
LBB1_4:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/200143773.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, #12]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
adrp x8, l___const.main.argv@PAGE
add x8, x8, l___const.main.argv@PAGEOFF
ldr q0, [x8]
add x1, sp, #16
str q0, [sp, #16]
ldr x8, [x8, #16]
str x8, [sp, #32]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _execvp
str w0, [sp, #8]
ldr w8, [sp, #8]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _perror
b LBB0_2
LBB0_2:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
bl ___stack_chk_fail
LBB0_4:
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "entering main process---\n"
l_.str.1: ; @.str.1
.asciz "ls"
l_.str.2: ; @.str.2
.asciz "-l"
.section __DATA,__const
.p2align 3 ; @__const.main.argv
l___const.main.argv:
.quad l_.str.1
.quad l_.str.2
.quad 0
.section __TEXT,__cstring,cstring_literals
l_.str.3: ; @.str.3
.asciz "execl error"
l_.str.4: ; @.str.4
.asciz "exiting main process ----\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -36(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq l___const.main.argv(%rip), %rax
movq %rax, -32(%rbp)
movq l___const.main.argv+8(%rip), %rax
movq %rax, -24(%rbp)
movq l___const.main.argv+16(%rip), %rax
movq %rax, -16(%rbp)
leaq -32(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
callq _execvp
movl %eax, -40(%rbp)
cmpl $-1, -40(%rbp)
jne LBB0_2
## %bb.1:
leaq L_.str.3(%rip), %rdi
callq _perror
LBB0_2:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_4
## %bb.3:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
LBB0_4:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "entering main process---\n"
L_.str.1: ## @.str.1
.asciz "ls"
L_.str.2: ## @.str.2
.asciz "-l"
.section __DATA,__const
.p2align 4 ## @__const.main.argv
l___const.main.argv:
.quad L_.str.1
.quad L_.str.2
.quad 0
.section __TEXT,__cstring,cstring_literals
L_.str.3: ## @.str.3
.asciz "execl error"
L_.str.4: ## @.str.4
.asciz "exiting main process ----\n"
.subsections_via_symbols
| the_stack_data/433600.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]
str w0, [sp, #8]
str x1, [sp]
mov w0, #2
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $2, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/75137587.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _usage ; -- Begin function usage
.p2align 2
_usage: ; @usage
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
.cfi_endproc
; -- End function
.globl _error ; -- Begin function error
.p2align 2
_error: ; @error
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _perror
bl _usage
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, #176
.cfi_def_cfa_offset 176
stp x29, x30, [sp, #160] ; 16-byte Folded Spill
add x29, sp, #160
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-32]
stur w0, [x29, #-36]
stur x1, [x29, #-48]
ldur w8, [x29, #-36]
subs w8, w8, #2
cset w8, ge
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
bl _usage
b LBB2_2
LBB2_2:
ldur x8, [x29, #-48]
ldr x0, [x8, #8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB2_27
b LBB2_3
LBB2_3:
ldur w8, [x29, #-36]
subs w8, w8, #4
cset w8, ge
tbnz w8, #0, LBB2_5
b LBB2_4
LBB2_4:
bl _usage
b LBB2_5
LBB2_5:
ldur w8, [x29, #-36]
subs w8, w8, #2
stur w8, [x29, #-52]
ldursw x8, [x29, #-52]
lsl x0, x8, #3
bl _malloc
stur x0, [x29, #-64]
ldur x8, [x29, #-64]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_7
b LBB2_6
LBB2_6:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _error
b LBB2_7
LBB2_7:
stur wzr, [x29, #-68]
b LBB2_8
LBB2_8: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-68]
ldur w9, [x29, #-52]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_13
b LBB2_9
LBB2_9: ; in Loop: Header=BB2_8 Depth=1
ldur x8, [x29, #-48]
ldur w9, [x29, #-68]
add w9, w9, #2
ldr x0, [x8, w9, sxtw #3]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fopen
ldur x8, [x29, #-64]
ldursw x9, [x29, #-68]
str x0, [x8, x9, lsl #3]
ldur x8, [x29, #-64]
ldursw x9, [x29, #-68]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_11
b LBB2_10
LBB2_10: ; in Loop: Header=BB2_8 Depth=1
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _error
b LBB2_11
LBB2_11: ; in Loop: Header=BB2_8 Depth=1
b LBB2_12
LBB2_12: ; in Loop: Header=BB2_8 Depth=1
ldur w8, [x29, #-68]
add w8, w8, #1
stur w8, [x29, #-68]
b LBB2_8
LBB2_13:
b LBB2_14
LBB2_14: ; =>This Loop Header: Depth=1
; Child Loop BB2_16 Depth 2
ldur x8, [x29, #-64]
ldr x0, [x8]
bl _getc
stur w0, [x29, #-72]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB2_22
b LBB2_15
LBB2_15: ; in Loop: Header=BB2_14 Depth=1
ldur w8, [x29, #-72]
sturb w8, [x29, #-73]
mov w8, #1
str w8, [sp, #80]
b LBB2_16
LBB2_16: ; Parent Loop BB2_14 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #80]
ldur w9, [x29, #-52]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_21
b LBB2_17
LBB2_17: ; in Loop: Header=BB2_16 Depth=2
ldur x8, [x29, #-64]
ldrsw x9, [sp, #80]
ldr x0, [x8, x9, lsl #3]
bl _getc
stur w0, [x29, #-72]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB2_19
b LBB2_18
LBB2_18: ; in Loop: Header=BB2_16 Depth=2
ldur w8, [x29, #-72]
sxtb w9, w8
ldursb w8, [x29, #-73]
eor w8, w8, w9
sturb w8, [x29, #-73]
b LBB2_19
LBB2_19: ; in Loop: Header=BB2_16 Depth=2
b LBB2_20
LBB2_20: ; in Loop: Header=BB2_16 Depth=2
ldr w8, [sp, #80]
add w8, w8, #1
str w8, [sp, #80]
b LBB2_16
LBB2_21: ; in Loop: Header=BB2_14 Depth=1
ldursb w0, [x29, #-73]
bl _putchar
b LBB2_14
LBB2_22:
str wzr, [sp, #76]
b LBB2_23
LBB2_23: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #76]
ldur w9, [x29, #-52]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_26
b LBB2_24
LBB2_24: ; in Loop: Header=BB2_23 Depth=1
ldur x8, [x29, #-64]
ldrsw x9, [sp, #76]
ldr x0, [x8, x9, lsl #3]
bl _fclose
b LBB2_25
LBB2_25: ; in Loop: Header=BB2_23 Depth=1
ldr w8, [sp, #76]
add w8, w8, #1
str w8, [sp, #76]
b LBB2_23
LBB2_26:
ldur x0, [x29, #-64]
bl _free
b LBB2_62
LBB2_27:
ldur x8, [x29, #-48]
ldr x0, [x8, #8]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB2_60
b LBB2_28
LBB2_28:
ldur w8, [x29, #-36]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB2_30
b LBB2_29
LBB2_29:
bl _usage
b LBB2_30
LBB2_30:
ldur x8, [x29, #-48]
ldr x0, [x8, #16]
bl _atoi
str w0, [sp, #72]
ldr w8, [sp, #72]
subs w8, w8, #2
cset w8, ge
tbnz w8, #0, LBB2_32
b LBB2_31
LBB2_31:
bl _usage
b LBB2_32
LBB2_32:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fopen
str x0, [sp, #64]
ldr x8, [sp, #64]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_34
b LBB2_33
LBB2_33:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _error
b LBB2_34
LBB2_34:
ldrsw x8, [sp, #72]
lsl x0, x8, #3
bl _malloc
str x0, [sp, #56]
ldr x8, [sp, #56]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_36
b LBB2_35
LBB2_35:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _error
b LBB2_36
LBB2_36:
str wzr, [sp, #52]
b LBB2_37
LBB2_37: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #52]
ldr w9, [sp, #72]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_42
b LBB2_38
LBB2_38: ; in Loop: Header=BB2_37 Depth=1
ldr w9, [sp, #52]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
sub x0, x29, #28
str x0, [sp, #24] ; 8-byte Folded Spill
mov x3, #20
mov x1, x3
mov w2, #0
adrp x4, l_.str.8@PAGE
add x4, x4, l_.str.8@PAGEOFF
bl ___snprintf_chk
ldr x0, [sp, #24] ; 8-byte Folded Reload
adrp x1, l_.str.9@PAGE
add x1, x1, l_.str.9@PAGEOFF
bl _fopen
ldr x8, [sp, #56]
ldrsw x9, [sp, #52]
str x0, [x8, x9, lsl #3]
ldr x8, [sp, #56]
ldrsw x9, [sp, #52]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_40
b LBB2_39
LBB2_39: ; in Loop: Header=BB2_37 Depth=1
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _error
b LBB2_40
LBB2_40: ; in Loop: Header=BB2_37 Depth=1
b LBB2_41
LBB2_41: ; in Loop: Header=BB2_37 Depth=1
ldr w8, [sp, #52]
add w8, w8, #1
str w8, [sp, #52]
b LBB2_37
LBB2_42:
b LBB2_43
LBB2_43: ; =>This Loop Header: Depth=1
; Child Loop BB2_45 Depth 2
bl _getchar
str w0, [sp, #48]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB2_55
b LBB2_44
LBB2_44: ; in Loop: Header=BB2_43 Depth=1
ldr w8, [sp, #48]
strb w8, [sp, #43]
str wzr, [sp, #36]
b LBB2_45
LBB2_45: ; Parent Loop BB2_43 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #36]
ldr w9, [sp, #72]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_52
b LBB2_46
LBB2_46: ; in Loop: Header=BB2_45 Depth=2
ldr x0, [sp, #64]
bl _getc
str w0, [sp, #44]
ldr w9, [sp, #44]
mov w8, #-1
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB2_48
b LBB2_47
LBB2_47: ; in Loop: Header=BB2_45 Depth=2
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _error
b LBB2_48
LBB2_48: ; in Loop: Header=BB2_45 Depth=2
ldr w0, [sp, #44]
ldr x8, [sp, #56]
ldrsw x9, [sp, #36]
ldr x1, [x8, x9, lsl #3]
bl _putc
mov w8, #-1
subs w8, w8, w0
cset w8, ne
tbnz w8, #0, LBB2_50
b LBB2_49
LBB2_49: ; in Loop: Header=BB2_45 Depth=2
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _error
b LBB2_50
LBB2_50: ; in Loop: Header=BB2_45 Depth=2
ldr w9, [sp, #44]
ldrsb w8, [sp, #43]
eor w8, w8, w9
strb w8, [sp, #43]
b LBB2_51
LBB2_51: ; in Loop: Header=BB2_45 Depth=2
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB2_45
LBB2_52: ; in Loop: Header=BB2_43 Depth=1
ldrsb w0, [sp, #43]
ldr x8, [sp, #56]
ldr w9, [sp, #72]
subs w9, w9, #1
ldr x1, [x8, w9, sxtw #3]
bl _putc
mov w8, #-1
subs w8, w8, w0
cset w8, ne
tbnz w8, #0, LBB2_54
b LBB2_53
LBB2_53: ; in Loop: Header=BB2_43 Depth=1
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _error
b LBB2_54
LBB2_54: ; in Loop: Header=BB2_43 Depth=1
b LBB2_43
LBB2_55:
str wzr, [sp, #32]
b LBB2_56
LBB2_56: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #32]
ldr w9, [sp, #72]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_59
b LBB2_57
LBB2_57: ; in Loop: Header=BB2_56 Depth=1
ldr x8, [sp, #56]
ldrsw x9, [sp, #32]
ldr x0, [x8, x9, lsl #3]
bl _fclose
b LBB2_58
LBB2_58: ; in Loop: Header=BB2_56 Depth=1
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB2_56
LBB2_59:
ldr x0, [sp, #56]
bl _free
ldr x0, [sp, #64]
bl _fclose
b LBB2_61
LBB2_60:
bl _usage
b LBB2_61
LBB2_61:
b LBB2_62
LBB2_62:
ldur w8, [x29, #-32]
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, LBB2_64
b LBB2_63
LBB2_63:
bl ___stack_chk_fail
LBB2_64:
ldr w0, [sp, #20] ; 4-byte Folded Reload
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Trivial secret sharing under n parties so that all n pieces are needed for reconstruction\n(see https://en.wikipedia.org/wiki/Secret_sharing#t_=_n).\n\nusage: ./xor [ out <numoutfiles> | in <in1> <in2> ... ]\n\nXOR for multiple streams.\n\nout:\tSplit up the input read from stdin into <numoutfiles> files\n\twhich XORed together result in the original input file (exactly all are needed).\n\tThis uses numoutfiles-1 random bytestreams of the same length as the input\n\tand XORes them together.\n\nin:\tCombine/XOR each input file together to reconstruct the original file\n\twhich is then printed to stdout.\n\n\nExample calls: Split up some file into five parts out1, out2, out3, out4, out5:\n\n\techo 'Hello-World' | ./xor out 5\n\nReconstruct the original file from the five parts (all five are needed),\neach has to be specified exactly once, the order doesn't matter because\nXOR is commutative.\n\n\t./xor in out*\n\t# Hello-World\n"
l_.str.1: ; @.str.1
.asciz "in"
l_.str.2: ; @.str.2
.asciz "malloc"
l_.str.3: ; @.str.3
.asciz "rb"
l_.str.4: ; @.str.4
.asciz "opening input file"
l_.str.5: ; @.str.5
.asciz "out"
l_.str.6: ; @.str.6
.asciz "/dev/urandom"
l_.str.7: ; @.str.7
.asciz "opening /dev/urandom"
l_.str.8: ; @.str.8
.asciz "out%d"
l_.str.9: ; @.str.9
.asciz "wb"
l_.str.10: ; @.str.10
.asciz "opening output file"
l_.str.11: ; @.str.11
.asciz "reading from /dev/urandom"
l_.str.12: ; @.str.12
.asciz "writing to output file"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _usage ## -- Begin function usage
.p2align 4, 0x90
_usage: ## @usage
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
.cfi_endproc
## -- End function
.globl _error ## -- Begin function error
.p2align 4, 0x90
_error: ## @error
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
callq _perror
callq _usage
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 $144, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -36(%rbp)
movl %edi, -40(%rbp)
movq %rsi, -48(%rbp)
cmpl $2, -40(%rbp)
jge LBB2_2
## %bb.1:
callq _usage
LBB2_2:
movq -48(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str.1(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB2_27
## %bb.3:
cmpl $4, -40(%rbp)
jge LBB2_5
## %bb.4:
callq _usage
LBB2_5:
movl -40(%rbp), %eax
subl $2, %eax
movl %eax, -52(%rbp)
movslq -52(%rbp), %rdi
shlq $3, %rdi
callq _malloc
movq %rax, -64(%rbp)
cmpq $0, -64(%rbp)
jne LBB2_7
## %bb.6:
leaq L_.str.2(%rip), %rdi
callq _error
LBB2_7:
movl $0, -68(%rbp)
LBB2_8: ## =>This Inner Loop Header: Depth=1
movl -68(%rbp), %eax
cmpl -52(%rbp), %eax
jge LBB2_13
## %bb.9: ## in Loop: Header=BB2_8 Depth=1
movq -48(%rbp), %rax
movl -68(%rbp), %ecx
addl $2, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
leaq L_.str.3(%rip), %rsi
callq _fopen
movq %rax, %rdx
movq -64(%rbp), %rax
movslq -68(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -64(%rbp), %rax
movslq -68(%rbp), %rcx
cmpq $0, (%rax,%rcx,8)
jne LBB2_11
## %bb.10: ## in Loop: Header=BB2_8 Depth=1
leaq L_.str.4(%rip), %rdi
callq _error
LBB2_11: ## in Loop: Header=BB2_8 Depth=1
jmp LBB2_12
LBB2_12: ## in Loop: Header=BB2_8 Depth=1
movl -68(%rbp), %eax
addl $1, %eax
movl %eax, -68(%rbp)
jmp LBB2_8
LBB2_13:
jmp LBB2_14
LBB2_14: ## =>This Loop Header: Depth=1
## Child Loop BB2_16 Depth 2
movq -64(%rbp), %rax
movq (%rax), %rdi
callq _getc
movl %eax, -72(%rbp)
cmpl $-1, %eax
je LBB2_22
## %bb.15: ## in Loop: Header=BB2_14 Depth=1
movl -72(%rbp), %eax
## kill: def $al killed $al killed $eax
movb %al, -73(%rbp)
movl $1, -80(%rbp)
LBB2_16: ## Parent Loop BB2_14 Depth=1
## => This Inner Loop Header: Depth=2
movl -80(%rbp), %eax
cmpl -52(%rbp), %eax
jge LBB2_21
## %bb.17: ## in Loop: Header=BB2_16 Depth=2
movq -64(%rbp), %rax
movslq -80(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq _getc
movl %eax, -72(%rbp)
cmpl $-1, %eax
je LBB2_19
## %bb.18: ## in Loop: Header=BB2_16 Depth=2
movl -72(%rbp), %eax
## kill: def $al killed $al killed $eax
movsbl %al, %ecx
movsbl -73(%rbp), %eax
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -73(%rbp)
LBB2_19: ## in Loop: Header=BB2_16 Depth=2
jmp LBB2_20
LBB2_20: ## in Loop: Header=BB2_16 Depth=2
movl -80(%rbp), %eax
addl $1, %eax
movl %eax, -80(%rbp)
jmp LBB2_16
LBB2_21: ## in Loop: Header=BB2_14 Depth=1
movsbl -73(%rbp), %edi
callq _putchar
jmp LBB2_14
LBB2_22:
movl $0, -84(%rbp)
LBB2_23: ## =>This Inner Loop Header: Depth=1
movl -84(%rbp), %eax
cmpl -52(%rbp), %eax
jge LBB2_26
## %bb.24: ## in Loop: Header=BB2_23 Depth=1
movq -64(%rbp), %rax
movslq -84(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq _fclose
## %bb.25: ## in Loop: Header=BB2_23 Depth=1
movl -84(%rbp), %eax
addl $1, %eax
movl %eax, -84(%rbp)
jmp LBB2_23
LBB2_26:
movq -64(%rbp), %rdi
callq _free
jmp LBB2_62
LBB2_27:
movq -48(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str.5(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB2_60
## %bb.28:
cmpl $3, -40(%rbp)
jge LBB2_30
## %bb.29:
callq _usage
LBB2_30:
movq -48(%rbp), %rax
movq 16(%rax), %rdi
callq _atoi
movl %eax, -88(%rbp)
cmpl $2, -88(%rbp)
jge LBB2_32
## %bb.31:
callq _usage
LBB2_32:
leaq L_.str.6(%rip), %rdi
leaq L_.str.3(%rip), %rsi
callq _fopen
movq %rax, -96(%rbp)
cmpq $0, -96(%rbp)
jne LBB2_34
## %bb.33:
leaq L_.str.7(%rip), %rdi
callq _error
LBB2_34:
movslq -88(%rbp), %rdi
shlq $3, %rdi
callq _malloc
movq %rax, -104(%rbp)
cmpq $0, -104(%rbp)
jne LBB2_36
## %bb.35:
leaq L_.str.2(%rip), %rdi
callq _error
LBB2_36:
movl $0, -108(%rbp)
LBB2_37: ## =>This Inner Loop Header: Depth=1
movl -108(%rbp), %eax
cmpl -88(%rbp), %eax
jge LBB2_42
## %bb.38: ## in Loop: Header=BB2_37 Depth=1
leaq -32(%rbp), %rdi
movl -108(%rbp), %r9d
movl $20, %ecx
xorl %edx, %edx
leaq L_.str.8(%rip), %r8
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
leaq -32(%rbp), %rdi
leaq L_.str.9(%rip), %rsi
callq _fopen
movq %rax, %rdx
movq -104(%rbp), %rax
movslq -108(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -104(%rbp), %rax
movslq -108(%rbp), %rcx
cmpq $0, (%rax,%rcx,8)
jne LBB2_40
## %bb.39: ## in Loop: Header=BB2_37 Depth=1
leaq L_.str.10(%rip), %rdi
callq _error
LBB2_40: ## in Loop: Header=BB2_37 Depth=1
jmp LBB2_41
LBB2_41: ## in Loop: Header=BB2_37 Depth=1
movl -108(%rbp), %eax
addl $1, %eax
movl %eax, -108(%rbp)
jmp LBB2_37
LBB2_42:
jmp LBB2_43
LBB2_43: ## =>This Loop Header: Depth=1
## Child Loop BB2_45 Depth 2
callq _getchar
movl %eax, -112(%rbp)
cmpl $-1, %eax
je LBB2_55
## %bb.44: ## in Loop: Header=BB2_43 Depth=1
movl -112(%rbp), %eax
## kill: def $al killed $al killed $eax
movb %al, -117(%rbp)
movl $0, -124(%rbp)
LBB2_45: ## Parent Loop BB2_43 Depth=1
## => This Inner Loop Header: Depth=2
movl -124(%rbp), %eax
movl -88(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB2_52
## %bb.46: ## in Loop: Header=BB2_45 Depth=2
movq -96(%rbp), %rdi
callq _getc
movl %eax, -116(%rbp)
movl $4294967295, %eax ## imm = 0xFFFFFFFF
cmpl -116(%rbp), %eax
jne LBB2_48
## %bb.47: ## in Loop: Header=BB2_45 Depth=2
leaq L_.str.11(%rip), %rdi
callq _error
LBB2_48: ## in Loop: Header=BB2_45 Depth=2
movl -116(%rbp), %edi
movq -104(%rbp), %rax
movslq -124(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq _putc
movl %eax, %ecx
movl $4294967295, %eax ## imm = 0xFFFFFFFF
cmpl %ecx, %eax
jne LBB2_50
## %bb.49: ## in Loop: Header=BB2_45 Depth=2
leaq L_.str.12(%rip), %rdi
callq _error
LBB2_50: ## in Loop: Header=BB2_45 Depth=2
movl -116(%rbp), %ecx
movsbl -117(%rbp), %eax
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -117(%rbp)
## %bb.51: ## in Loop: Header=BB2_45 Depth=2
movl -124(%rbp), %eax
addl $1, %eax
movl %eax, -124(%rbp)
jmp LBB2_45
LBB2_52: ## in Loop: Header=BB2_43 Depth=1
movsbl -117(%rbp), %edi
movq -104(%rbp), %rax
movl -88(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rsi
callq _putc
movl %eax, %ecx
movl $4294967295, %eax ## imm = 0xFFFFFFFF
cmpl %ecx, %eax
jne LBB2_54
## %bb.53: ## in Loop: Header=BB2_43 Depth=1
leaq L_.str.12(%rip), %rdi
callq _error
LBB2_54: ## in Loop: Header=BB2_43 Depth=1
jmp LBB2_43
LBB2_55:
movl $0, -128(%rbp)
LBB2_56: ## =>This Inner Loop Header: Depth=1
movl -128(%rbp), %eax
cmpl -88(%rbp), %eax
jge LBB2_59
## %bb.57: ## in Loop: Header=BB2_56 Depth=1
movq -104(%rbp), %rax
movslq -128(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq _fclose
## %bb.58: ## in Loop: Header=BB2_56 Depth=1
movl -128(%rbp), %eax
addl $1, %eax
movl %eax, -128(%rbp)
jmp LBB2_56
LBB2_59:
movq -104(%rbp), %rdi
callq _free
movq -96(%rbp), %rdi
callq _fclose
jmp LBB2_61
LBB2_60:
callq _usage
LBB2_61:
jmp LBB2_62
LBB2_62:
movl -36(%rbp), %eax
movl %eax, -132(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB2_64
## %bb.63:
movl -132(%rbp), %eax ## 4-byte Reload
addq $144, %rsp
popq %rbp
retq
LBB2_64:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Trivial secret sharing under n parties so that all n pieces are needed for reconstruction\n(see https://en.wikipedia.org/wiki/Secret_sharing#t_=_n).\n\nusage: ./xor [ out <numoutfiles> | in <in1> <in2> ... ]\n\nXOR for multiple streams.\n\nout:\tSplit up the input read from stdin into <numoutfiles> files\n\twhich XORed together result in the original input file (exactly all are needed).\n\tThis uses numoutfiles-1 random bytestreams of the same length as the input\n\tand XORes them together.\n\nin:\tCombine/XOR each input file together to reconstruct the original file\n\twhich is then printed to stdout.\n\n\nExample calls: Split up some file into five parts out1, out2, out3, out4, out5:\n\n\techo 'Hello-World' | ./xor out 5\n\nReconstruct the original file from the five parts (all five are needed),\neach has to be specified exactly once, the order doesn't matter because\nXOR is commutative.\n\n\t./xor in out*\n\t# Hello-World\n"
L_.str.1: ## @.str.1
.asciz "in"
L_.str.2: ## @.str.2
.asciz "malloc"
L_.str.3: ## @.str.3
.asciz "rb"
L_.str.4: ## @.str.4
.asciz "opening input file"
L_.str.5: ## @.str.5
.asciz "out"
L_.str.6: ## @.str.6
.asciz "/dev/urandom"
L_.str.7: ## @.str.7
.asciz "opening /dev/urandom"
L_.str.8: ## @.str.8
.asciz "out%d"
L_.str.9: ## @.str.9
.asciz "wb"
L_.str.10: ## @.str.10
.asciz "opening output file"
L_.str.11: ## @.str.11
.asciz "reading from /dev/urandom"
L_.str.12: ## @.str.12
.asciz "writing to output file"
.subsections_via_symbols
| the_stack_data/40107.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:
mov w0, #0
ret
.cfi_endproc
; -- End function
.comm _s,4,2 ; @s
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _s,4,2 ## @s
.subsections_via_symbols
| the_stack_data/557267.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 0x4052c00000000000 ; double 75
lCPI0_1:
.quad 0x4059000000000000 ; double 100
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #208
.cfi_def_cfa_offset 208
stp x29, x30, [sp, #192] ; 16-byte Folded Spill
add x29, sp, #192
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur wzr, [x29, #-40]
stur wzr, [x29, #-44]
stur wzr, [x29, #-48]
stur wzr, [x29, #-52]
stur wzr, [x29, #-56]
movi d0, #0000000000000000
str d0, [sp, #96]
str d0, [sp, #88]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
mov w8, #1
stur w8, [x29, #-16]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
; Child Loop BB0_7 Depth 3
ldur w8, [x29, #-16]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_37
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #84]
str wzr, [sp, #80]
str wzr, [sp, #76]
str wzr, [sp, #72]
movi d0, #0000000000000000
str d0, [sp, #64]
str d0, [sp, #56]
ldur w9, [x29, #-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
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@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
ldur w9, [x29, #-12]
ldur w8, [x29, #-48]
add w8, w8, w9
stur w8, [x29, #-48]
mov w8, #1
stur w8, [x29, #-20]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_7 Depth 3
ldur w8, [x29, #-20]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_32
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldur w9, [x29, #-20]
; 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
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #28
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.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
ldr x0, [sp, #48] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #32
str x8, [x9]
bl _scanf
ldur w8, [x29, #-32]
ldur w9, [x29, #-28]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
stur wzr, [x29, #-4]
b LBB0_41
LBB0_6: ; in Loop: Header=BB0_3 Depth=2
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #36
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
mov w8, #1
stur w8, [x29, #-24]
b LBB0_7
LBB0_7: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_3 Depth=2
; => This Inner Loop Header: Depth=3
ldur w8, [x29, #-24]
ldur w9, [x29, #-36]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_30
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=3
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #80
str x8, [x9]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _scanf
ldur d0, [x29, #-80]
fcmp d0, #0.0
cset w8, mi
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_7 Depth=3
ldur d0, [x29, #-80]
fmov d1, #10.00000000
fcmp d0, d1
cset w8, le
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
stur wzr, [x29, #-4]
b LBB0_41
LBB0_11: ; in Loop: Header=BB0_7 Depth=3
ldur d0, [x29, #-64]
ldur d1, [x29, #-80]
fadd d0, d0, d1
stur d0, [x29, #-64]
ldur w8, [x29, #-24]
ldur w9, [x29, #-36]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_28
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_7 Depth=3
ldur d0, [x29, #-64]
ldur s2, [x29, #-36]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
fdiv d0, d0, d1
stur d0, [x29, #-72]
ldur d0, [x29, #-72]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
movi d0, #0000000000000000
stur d0, [x29, #-64]
ldur w8, [x29, #-32]
mov w9, #100
mul w8, w8, w9
ldur w9, [x29, #-28]
sdiv w8, w8, w9
scvtf d0, w8
stur d0, [x29, #-88]
ldur d0, [x29, #-72]
fmov d1, #7.00000000
fcmp d0, d1
cset w8, le
tbnz w8, #0, LBB0_15
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_7 Depth=3
ldur d0, [x29, #-88]
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fcmp d0, d1
cset w8, le
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_7 Depth=3
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
ldur w8, [x29, #-40]
add w8, w8, #1
stur w8, [x29, #-40]
ldr w8, [sp, #84]
add w8, w8, #1
str w8, [sp, #84]
ldur d0, [x29, #-72]
ldur s2, [x29, #-28]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
ldr d2, [sp, #64]
fmadd d0, d0, d1, d2
str d0, [sp, #64]
ldur d1, [x29, #-72]
ldr d0, [sp, #56]
fadd d0, d0, d1
str d0, [sp, #56]
b LBB0_27
LBB0_15: ; in Loop: Header=BB0_7 Depth=3
ldur d0, [x29, #-72]
fmov d1, #7.00000000
fcmp d0, d1
cset w8, le
tbnz w8, #0, LBB0_18
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_7 Depth=3
ldur d0, [x29, #-88]
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fcmp d0, d1
cset w8, pl
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_7 Depth=3
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
ldur w8, [x29, #-52]
add w8, w8, #1
stur w8, [x29, #-52]
ldr w8, [sp, #76]
add w8, w8, #1
str w8, [sp, #76]
ldur d1, [x29, #-72]
fmov d0, #7.00000000
fsub d0, d0, d1
ldur s2, [x29, #-28]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
ldr d2, [sp, #64]
fmsub d0, d0, d1, d2
str d0, [sp, #64]
b LBB0_26
LBB0_18: ; in Loop: Header=BB0_7 Depth=3
ldur d0, [x29, #-72]
fmov d1, #7.00000000
fcmp d0, d1
cset w8, pl
tbnz w8, #0, LBB0_21
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_7 Depth=3
ldur d0, [x29, #-88]
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fcmp d0, d1
cset w8, le
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_7 Depth=3
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
ldur w8, [x29, #-44]
add w8, w8, #1
stur w8, [x29, #-44]
ldr w8, [sp, #80]
add w8, w8, #1
str w8, [sp, #80]
ldur d1, [x29, #-72]
fmov d0, #7.00000000
fsub d0, d0, d1
ldur s2, [x29, #-28]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
ldr d2, [sp, #64]
fmsub d0, d0, d1, d2
str d0, [sp, #64]
b LBB0_25
LBB0_21: ; in Loop: Header=BB0_7 Depth=3
ldur d0, [x29, #-72]
fmov d1, #7.00000000
fcmp d0, d1
cset w8, pl
tbnz w8, #0, LBB0_24
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_7 Depth=3
ldur d0, [x29, #-88]
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fcmp d0, d1
cset w8, pl
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_7 Depth=3
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
ldur w8, [x29, #-56]
add w8, w8, #1
stur w8, [x29, #-56]
ldr w8, [sp, #72]
add w8, w8, #1
str w8, [sp, #72]
ldur d1, [x29, #-72]
fmov d0, #7.00000000
fsub d0, d0, d1
ldur s2, [x29, #-28]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
ldr d2, [sp, #64]
fmsub d0, d0, d1, d2
str d0, [sp, #64]
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_7 Depth=3
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_7 Depth=3
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_7 Depth=3
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_7 Depth=3
b LBB0_28
LBB0_28: ; in Loop: Header=BB0_7 Depth=3
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_7 Depth=3
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
b LBB0_7
LBB0_30: ; in Loop: Header=BB0_3 Depth=2
b LBB0_31
LBB0_31: ; in Loop: Header=BB0_3 Depth=2
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_3
LBB0_32: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _printf
ldr w8, [sp, #84]
; implicit-def: $x11
mov x11, x8
ldr w8, [sp, #80]
ldr w9, [sp, #76]
add w12, w8, w9
ldr w8, [sp, #80]
; implicit-def: $x10
mov x10, x8
ldr w8, [sp, #76]
; implicit-def: $x9
mov x9, x8
ldr s1, [sp, #84]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
adrp x8, lCPI0_1@PAGE
ldr d1, [x8, lCPI0_1@PAGEOFF]
fmul d0, d0, d1
ldur s2, [x29, #-12]
; 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 x11, [x8]
; implicit-def: $x11
mov x11, x12
str x11, [x8, #8]
str x10, [x8, #16]
str x9, [x8, #24]
str d0, [x8, #32]
adrp x0, l_.str.16@PAGE
add x0, x0, l_.str.16@PAGEOFF
bl _printf
ldr d0, [sp, #64]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.17@PAGE
add x0, x0, l_.str.17@PAGEOFF
bl _printf
ldr w8, [sp, #84]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_34
b LBB0_33
LBB0_33: ; in Loop: Header=BB0_1 Depth=1
ldr d0, [sp, #56]
ldr s2, [sp, #84]
; 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 d0, [x8]
adrp x0, l_.str.18@PAGE
add x0, x0, l_.str.18@PAGEOFF
bl _printf
b LBB0_35
LBB0_34: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.19@PAGE
add x0, x0, l_.str.19@PAGEOFF
bl _printf
b LBB0_35
LBB0_35: ; in Loop: Header=BB0_1 Depth=1
ldr d1, [sp, #64]
ldr d0, [sp, #96]
fadd d0, d0, d1
str d0, [sp, #96]
ldr d1, [sp, #56]
ldr d0, [sp, #88]
fadd d0, d0, d1
str d0, [sp, #88]
b LBB0_36
LBB0_36: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB0_1
LBB0_37:
adrp x0, l_.str.20@PAGE
add x0, x0, l_.str.20@PAGEOFF
bl _printf
ldur w9, [x29, #-48]
; 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
ldur w8, [x29, #-40]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-44]
ldur w9, [x29, #-52]
add w12, w8, w9
ldur w8, [x29, #-44]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-52]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x11, [x9]
; implicit-def: $x11
mov x11, x12
str x11, [x9, #8]
str x10, [x9, #16]
str x8, [x9, #24]
adrp x0, l_.str.22@PAGE
add x0, x0, l_.str.22@PAGEOFF
bl _printf
ldr d0, [sp, #96]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.17@PAGE
add x0, x0, l_.str.17@PAGEOFF
bl _printf
ldur w8, [x29, #-40]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_39
b LBB0_38
LBB0_38:
ldr d0, [sp, #88]
ldur s2, [x29, #-40]
; 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 d0, [x8]
adrp x0, l_.str.18@PAGE
add x0, x0, l_.str.18@PAGEOFF
bl _printf
b LBB0_40
LBB0_39:
adrp x0, l_.str.19@PAGE
add x0, x0, l_.str.19@PAGEOFF
bl _printf
b LBB0_40
LBB0_40:
stur wzr, [x29, #-4]
b LBB0_41
LBB0_41:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #192] ; 16-byte Folded Reload
add sp, sp, #208
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Quantos semestres: "
l_.str.1: ; @.str.1
.asciz "%i"
l_.str.2: ; @.str.2
.asciz "Semestre %i\n"
l_.str.3: ; @.str.3
.asciz "Quantas disciplinas: "
l_.str.4: ; @.str.4
.asciz "Disciplinas: %i\n"
l_.str.5: ; @.str.5
.asciz "\nCarga horaria: "
l_.str.6: ; @.str.6
.asciz "\nHoras cumpridas: "
l_.str.7: ; @.str.7
.asciz "\nQuantidades de notas: "
l_.str.8: ; @.str.8
.asciz "Notas: \n"
l_.str.9: ; @.str.9
.asciz "%lf"
l_.str.10: ; @.str.10
.asciz "sua media das disciplinas: %.2lf\n"
l_.str.11: ; @.str.11
.asciz "\n-Aprovado!\n\n"
l_.str.12: ; @.str.12
.asciz "\n-Reprovado por frequencia!\n\n"
l_.str.13: ; @.str.13
.asciz "\n-Reprovado por nota!\n\n"
l_.str.14: ; @.str.14
.asciz "\n-Reprovado!\n\n!"
l_.str.15: ; @.str.15
.asciz "=========Relatorio do Semestre=============\n"
l_.str.16: ; @.str.16
.asciz "Aprovadas:%i \n Reprovadas:%i \n Reprovadas por nota: %i\n Reprovas por Frequecia: %i\n Aprovadas em %.2lf%% das disciplinas do semestre\n"
l_.str.17: ; @.str.17
.asciz "IDA: %.2lf\n"
l_.str.18: ; @.str.18
.asciz "MGA: %.2lf\n"
l_.str.19: ; @.str.19
.asciz "MGA indefinido\n"
l_.str.20: ; @.str.20
.asciz "=========Relatorio Final=============\n"
l_.str.21: ; @.str.21
.asciz "Quantidade de disciplinas:%i \n"
l_.str.22: ; @.str.22
.asciz "Aprovadas:%i \n Reprovadas:%i \n Reprovadas por nota: %i\n Reprovas por Frequecia: %i\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI0_0:
.quad 0x4059000000000000 ## double 100
LCPI0_1:
.quad 0x4024000000000000 ## double 10
LCPI0_2:
.quad 0x401c000000000000 ## double 7
LCPI0_3:
.quad 0x4052c00000000000 ## double 75
.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 $144, %rsp
movl $0, -4(%rbp)
movl $0, -40(%rbp)
movl $0, -44(%rbp)
movl $0, -48(%rbp)
movl $0, -52(%rbp)
movl $0, -56(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -96(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -104(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl $1, -16(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
## Child Loop BB0_7 Depth 3
movl -16(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB0_37
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -108(%rbp)
movl $0, -112(%rbp)
movl $0, -116(%rbp)
movl $0, -120(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -128(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -136(%rbp)
movl -16(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
movl -12(%rbp), %eax
addl -48(%rbp), %eax
movl %eax, -48(%rbp)
movl $1, -20(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_7 Depth 3
movl -20(%rbp), %eax
cmpl -12(%rbp), %eax
jg LBB0_32
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movl -20(%rbp), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%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.1(%rip), %rdi
leaq -32(%rbp), %rsi
movb $0, %al
callq _scanf
movl -32(%rbp), %eax
cmpl -28(%rbp), %eax
jle LBB0_6
## %bb.5:
movl $0, -4(%rbp)
jmp LBB0_41
LBB0_6: ## in Loop: Header=BB0_3 Depth=2
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -36(%rbp), %rsi
movb $0, %al
callq _scanf
movl $1, -24(%rbp)
LBB0_7: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_3 Depth=2
## => This Inner Loop Header: Depth=3
movl -24(%rbp), %eax
cmpl -36(%rbp), %eax
jg LBB0_30
## %bb.8: ## in Loop: Header=BB0_7 Depth=3
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.9(%rip), %rdi
leaq -80(%rbp), %rsi
movb $0, %al
callq _scanf
xorps %xmm0, %xmm0
ucomisd -80(%rbp), %xmm0
ja LBB0_10
## %bb.9: ## in Loop: Header=BB0_7 Depth=3
movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB0_11
LBB0_10:
movl $0, -4(%rbp)
jmp LBB0_41
LBB0_11: ## in Loop: Header=BB0_7 Depth=3
movsd -64(%rbp), %xmm0 ## xmm0 = mem[0],zero
addsd -80(%rbp), %xmm0
movsd %xmm0, -64(%rbp)
movl -24(%rbp), %eax
cmpl -36(%rbp), %eax
jne LBB0_28
## %bb.12: ## in Loop: Header=BB0_7 Depth=3
movsd -64(%rbp), %xmm0 ## xmm0 = mem[0],zero
cvtsi2sdl -36(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -72(%rbp)
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.10(%rip), %rdi
movb $1, %al
callq _printf
xorps %xmm0, %xmm0
movsd %xmm0, -64(%rbp)
imull $100, -32(%rbp), %eax
cltd
idivl -28(%rbp)
cvtsi2sd %eax, %xmm0
movsd %xmm0, -88(%rbp)
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB0_15
## %bb.13: ## in Loop: Header=BB0_7 Depth=3
movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_3(%rip), %xmm1 ## xmm1 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB0_15
## %bb.14: ## in Loop: Header=BB0_7 Depth=3
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
movl -108(%rbp), %eax
addl $1, %eax
movl %eax, -108(%rbp)
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
cvtsi2sdl -28(%rbp), %xmm2
movsd -128(%rbp), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -128(%rbp)
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
addsd -136(%rbp), %xmm0
movsd %xmm0, -136(%rbp)
jmp LBB0_27
LBB0_15: ## in Loop: Header=BB0_7 Depth=3
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB0_18
## %bb.16: ## in Loop: Header=BB0_7 Depth=3
movsd LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero
ucomisd -88(%rbp), %xmm0
jbe LBB0_18
## %bb.17: ## in Loop: Header=BB0_7 Depth=3
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
movl -116(%rbp), %eax
addl $1, %eax
movl %eax, -116(%rbp)
movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero
subsd -72(%rbp), %xmm0
cvtsi2sdl -28(%rbp), %xmm2
movsd -128(%rbp), %xmm1 ## xmm1 = mem[0],zero
movq %xmm0, %rax
movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -128(%rbp)
jmp LBB0_26
LBB0_18: ## in Loop: Header=BB0_7 Depth=3
movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero
ucomisd -72(%rbp), %xmm0
jbe LBB0_21
## %bb.19: ## in Loop: Header=BB0_7 Depth=3
movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_3(%rip), %xmm1 ## xmm1 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB0_21
## %bb.20: ## in Loop: Header=BB0_7 Depth=3
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
movl -112(%rbp), %eax
addl $1, %eax
movl %eax, -112(%rbp)
movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero
subsd -72(%rbp), %xmm0
cvtsi2sdl -28(%rbp), %xmm2
movsd -128(%rbp), %xmm1 ## xmm1 = mem[0],zero
movq %xmm0, %rax
movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -128(%rbp)
jmp LBB0_25
LBB0_21: ## in Loop: Header=BB0_7 Depth=3
movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero
ucomisd -72(%rbp), %xmm0
jbe LBB0_24
## %bb.22: ## in Loop: Header=BB0_7 Depth=3
movsd LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero
ucomisd -88(%rbp), %xmm0
jbe LBB0_24
## %bb.23: ## in Loop: Header=BB0_7 Depth=3
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
movl -56(%rbp), %eax
addl $1, %eax
movl %eax, -56(%rbp)
movl -120(%rbp), %eax
addl $1, %eax
movl %eax, -120(%rbp)
movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero
subsd -72(%rbp), %xmm0
cvtsi2sdl -28(%rbp), %xmm2
movsd -128(%rbp), %xmm1 ## xmm1 = mem[0],zero
movq %xmm0, %rax
movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -128(%rbp)
LBB0_24: ## in Loop: Header=BB0_7 Depth=3
jmp LBB0_25
LBB0_25: ## in Loop: Header=BB0_7 Depth=3
jmp LBB0_26
LBB0_26: ## in Loop: Header=BB0_7 Depth=3
jmp LBB0_27
LBB0_27: ## in Loop: Header=BB0_7 Depth=3
jmp LBB0_28
LBB0_28: ## in Loop: Header=BB0_7 Depth=3
jmp LBB0_29
LBB0_29: ## in Loop: Header=BB0_7 Depth=3
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB0_7
LBB0_30: ## in Loop: Header=BB0_3 Depth=2
jmp LBB0_31
LBB0_31: ## in Loop: Header=BB0_3 Depth=2
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_3
LBB0_32: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.15(%rip), %rdi
movb $0, %al
callq _printf
movl -108(%rbp), %esi
movl -112(%rbp), %edx
addl -116(%rbp), %edx
movl -112(%rbp), %ecx
movl -116(%rbp), %r8d
cvtsi2sdl -108(%rbp), %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
cvtsi2sdl -12(%rbp), %xmm1
divsd %xmm1, %xmm0
leaq L_.str.16(%rip), %rdi
movb $1, %al
callq _printf
movsd -128(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.17(%rip), %rdi
movb $1, %al
callq _printf
cmpl $0, -108(%rbp)
jle LBB0_34
## %bb.33: ## in Loop: Header=BB0_1 Depth=1
movsd -136(%rbp), %xmm0 ## xmm0 = mem[0],zero
cvtsi2sdl -108(%rbp), %xmm1
divsd %xmm1, %xmm0
leaq L_.str.18(%rip), %rdi
movb $1, %al
callq _printf
jmp LBB0_35
LBB0_34: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.19(%rip), %rdi
movb $0, %al
callq _printf
LBB0_35: ## in Loop: Header=BB0_1 Depth=1
movsd -128(%rbp), %xmm0 ## xmm0 = mem[0],zero
addsd -96(%rbp), %xmm0
movsd %xmm0, -96(%rbp)
movsd -136(%rbp), %xmm0 ## xmm0 = mem[0],zero
addsd -104(%rbp), %xmm0
movsd %xmm0, -104(%rbp)
## %bb.36: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_1
LBB0_37:
leaq L_.str.20(%rip), %rdi
movb $0, %al
callq _printf
movl -48(%rbp), %esi
leaq L_.str.21(%rip), %rdi
movb $0, %al
callq _printf
movl -40(%rbp), %esi
movl -44(%rbp), %edx
addl -52(%rbp), %edx
movl -44(%rbp), %ecx
movl -52(%rbp), %r8d
leaq L_.str.22(%rip), %rdi
movb $0, %al
callq _printf
movsd -96(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.17(%rip), %rdi
movb $1, %al
callq _printf
cmpl $0, -40(%rbp)
jle LBB0_39
## %bb.38:
movsd -104(%rbp), %xmm0 ## xmm0 = mem[0],zero
cvtsi2sdl -40(%rbp), %xmm1
divsd %xmm1, %xmm0
leaq L_.str.18(%rip), %rdi
movb $1, %al
callq _printf
jmp LBB0_40
LBB0_39:
leaq L_.str.19(%rip), %rdi
movb $0, %al
callq _printf
LBB0_40:
movl $0, -4(%rbp)
LBB0_41:
movl -4(%rbp), %eax
addq $144, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Quantos semestres: "
L_.str.1: ## @.str.1
.asciz "%i"
L_.str.2: ## @.str.2
.asciz "Semestre %i\n"
L_.str.3: ## @.str.3
.asciz "Quantas disciplinas: "
L_.str.4: ## @.str.4
.asciz "Disciplinas: %i\n"
L_.str.5: ## @.str.5
.asciz "\nCarga horaria: "
L_.str.6: ## @.str.6
.asciz "\nHoras cumpridas: "
L_.str.7: ## @.str.7
.asciz "\nQuantidades de notas: "
L_.str.8: ## @.str.8
.asciz "Notas: \n"
L_.str.9: ## @.str.9
.asciz "%lf"
L_.str.10: ## @.str.10
.asciz "sua media das disciplinas: %.2lf\n"
L_.str.11: ## @.str.11
.asciz "\n-Aprovado!\n\n"
L_.str.12: ## @.str.12
.asciz "\n-Reprovado por frequencia!\n\n"
L_.str.13: ## @.str.13
.asciz "\n-Reprovado por nota!\n\n"
L_.str.14: ## @.str.14
.asciz "\n-Reprovado!\n\n!"
L_.str.15: ## @.str.15
.asciz "=========Relatorio do Semestre=============\n"
L_.str.16: ## @.str.16
.asciz "Aprovadas:%i \n Reprovadas:%i \n Reprovadas por nota: %i\n Reprovas por Frequecia: %i\n Aprovadas em %.2lf%% das disciplinas do semestre\n"
L_.str.17: ## @.str.17
.asciz "IDA: %.2lf\n"
L_.str.18: ## @.str.18
.asciz "MGA: %.2lf\n"
L_.str.19: ## @.str.19
.asciz "MGA indefinido\n"
L_.str.20: ## @.str.20
.asciz "=========Relatorio Final=============\n"
L_.str.21: ## @.str.21
.asciz "Quantidade de disciplinas:%i \n"
L_.str.22: ## @.str.22
.asciz "Aprovadas:%i \n Reprovadas:%i \n Reprovadas por nota: %i\n Reprovas por Frequecia: %i\n"
.subsections_via_symbols
| the_stack_data/839962.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _print ; -- Begin function print
.p2align 2
_print: ; @print
.cfi_startproc
; %bb.0:
sub sp, sp, #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]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
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 "%s\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _print ## -- Begin function print
.p2align 4, 0x90
_print: ## @print
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rsi
leaq L_.str(%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 "%s\n"
.subsections_via_symbols
| the_stack_data/103264874.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _change_user ; -- Begin function change_user
.p2align 2
_change_user: ; @change_user
.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 x0, [x29, #-16]
stur w1, [x29, #-20]
stur w2, [x29, #-24]
ldur w8, [x29, #-20]
stur w8, [x29, #-28] ; 4-byte Folded Spill
bl _getuid
ldur w8, [x29, #-28] ; 4-byte Folded Reload
subs w8, w8, w0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_1
LBB0_1:
ldur w8, [x29, #-20]
stur w8, [x29, #-32] ; 4-byte Folded Spill
bl _geteuid
ldur w8, [x29, #-32] ; 4-byte Folded Reload
subs w8, w8, w0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2:
ldur w8, [x29, #-24]
stur w8, [x29, #-36] ; 4-byte Folded Spill
bl _getgid
ldur w8, [x29, #-36] ; 4-byte Folded Reload
subs w8, w8, w0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3:
ldur w8, [x29, #-24]
stur w8, [x29, #-40] ; 4-byte Folded Spill
bl _getegid
ldur w8, [x29, #-40] ; 4-byte Folded Reload
subs w8, w8, w0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
stur wzr, [x29, #-4]
b LBB0_14
LBB0_5:
ldur x0, [x29, #-16]
ldur w1, [x29, #-24]
bl _initgroups
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
adrp x8, _LOGFILE@PAGE
ldr x8, [x8, _LOGFILE@PAGEOFF]
stur x8, [x29, #-48] ; 8-byte Folded Spill
ldur x8, [x29, #-16]
stur x8, [x29, #-56] ; 8-byte Folded Spill
bl ___error
ldr w0, [x0]
bl _strerror
ldur x10, [x29, #-56] ; 8-byte Folded Reload
mov x8, x0
ldur x0, [x29, #-48] ; 8-byte Folded Reload
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
adrp x8, _SETUID_OPER_FAILED@PAGE
ldr w8, [x8, _SETUID_OPER_FAILED@PAGEOFF]
stur w8, [x29, #-4]
b LBB0_14
LBB0_7:
mov w0, #0
bl _seteuid
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
adrp x8, _LOGFILE@PAGE
stur x8, [x29, #-88] ; 8-byte Folded Spill
ldr x8, [x8, _LOGFILE@PAGEOFF]
stur x8, [x29, #-96] ; 8-byte Folded Spill
bl ___error
ldr w0, [x0]
bl _strerror
mov x8, x0
ldur x0, [x29, #-96] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
ldur x8, [x29, #-88] ; 8-byte Folded Reload
ldr x8, [x8, _LOGFILE@PAGEOFF]
stur x8, [x29, #-64] ; 8-byte Folded Spill
bl _getuid
stur w0, [x29, #-76] ; 4-byte Folded Spill
bl _getgid
stur w0, [x29, #-72] ; 4-byte Folded Spill
bl _geteuid
stur w0, [x29, #-68] ; 4-byte Folded Spill
bl _getegid
ldur w13, [x29, #-76] ; 4-byte Folded Reload
ldur w12, [x29, #-72] ; 4-byte Folded Reload
ldur w11, [x29, #-68] ; 4-byte Folded Reload
mov x10, x0
ldur x0, [x29, #-64] ; 8-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x13
str x8, [x9]
; implicit-def: $x8
mov x8, x12
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x11
str x8, [x9, #16]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #24]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
adrp x8, _SETUID_OPER_FAILED@PAGE
ldr w8, [x8, _SETUID_OPER_FAILED@PAGEOFF]
stur w8, [x29, #-4]
b LBB0_14
LBB0_9:
ldur w0, [x29, #-24]
bl _setgid
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
adrp x8, _LOGFILE@PAGE
str x8, [sp, #96] ; 8-byte Folded Spill
ldr x8, [x8, _LOGFILE@PAGEOFF]
str x8, [sp, #88] ; 8-byte Folded Spill
ldur w9, [x29, #-24]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #80] ; 8-byte Folded Spill
bl ___error
ldr w0, [x0]
bl _strerror
ldr x10, [sp, #80] ; 8-byte Folded Reload
mov x8, x0
ldr x0, [sp, #88] ; 8-byte Folded Reload
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
ldr x8, [sp, #96] ; 8-byte Folded Reload
ldr x8, [x8, _LOGFILE@PAGEOFF]
stur x8, [x29, #-104] ; 8-byte Folded Spill
bl _getuid
str w0, [sp, #108] ; 4-byte Folded Spill
bl _getgid
str w0, [sp, #112] ; 4-byte Folded Spill
bl _geteuid
stur w0, [x29, #-108] ; 4-byte Folded Spill
bl _getegid
ldr w13, [sp, #108] ; 4-byte Folded Reload
ldr w12, [sp, #112] ; 4-byte Folded Reload
ldur w11, [x29, #-108] ; 4-byte Folded Reload
mov x10, x0
ldur x0, [x29, #-104] ; 8-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x13
str x8, [x9]
; implicit-def: $x8
mov x8, x12
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x11
str x8, [x9, #16]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #24]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
adrp x8, _SETUID_OPER_FAILED@PAGE
ldr w8, [x8, _SETUID_OPER_FAILED@PAGEOFF]
stur w8, [x29, #-4]
b LBB0_14
LBB0_11:
ldur w0, [x29, #-20]
bl _setuid
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
adrp x8, _LOGFILE@PAGE
str x8, [sp, #48] ; 8-byte Folded Spill
ldr x8, [x8, _LOGFILE@PAGEOFF]
str x8, [sp, #40] ; 8-byte Folded Spill
ldur w9, [x29, #-20]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #32] ; 8-byte Folded Spill
bl ___error
ldr w0, [x0]
bl _strerror
ldr x10, [sp, #32] ; 8-byte Folded Reload
mov x8, x0
ldr x0, [sp, #40] ; 8-byte Folded Reload
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x8, [x8, _LOGFILE@PAGEOFF]
str x8, [sp, #72] ; 8-byte Folded Spill
bl _getuid
str w0, [sp, #60] ; 4-byte Folded Spill
bl _getgid
str w0, [sp, #64] ; 4-byte Folded Spill
bl _geteuid
str w0, [sp, #68] ; 4-byte Folded Spill
bl _getegid
ldr w13, [sp, #60] ; 4-byte Folded Reload
ldr w12, [sp, #64] ; 4-byte Folded Reload
ldr w11, [sp, #68] ; 4-byte Folded Reload
mov x10, x0
ldr x0, [sp, #72] ; 8-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x13
str x8, [x9]
; implicit-def: $x8
mov x8, x12
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x11
str x8, [x9, #16]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #24]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
adrp x8, _SETUID_OPER_FAILED@PAGE
ldr w8, [x8, _SETUID_OPER_FAILED@PAGEOFF]
stur w8, [x29, #-4]
b LBB0_14
LBB0_13:
stur wzr, [x29, #-4]
b LBB0_14
LBB0_14:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #224] ; 16-byte Folded Reload
add sp, sp, #240
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
adrp x8, _LOGFILE@PAGE
ldr x8, [x8, _LOGFILE@PAGEOFF]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x8, [x8]
adrp x9, _LOGFILE@PAGE
str x8, [x9, _LOGFILE@PAGEOFF]
b LBB1_2
LBB1_2:
adrp x8, _ERRORFILE@PAGE
ldr x8, [x8, _ERRORFILE@PAGEOFF]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x8, [x8]
adrp x9, _ERRORFILE@PAGE
str x8, [x9, _ERRORFILE@PAGEOFF]
b LBB1_4
LBB1_4:
ldur w8, [x29, #-8]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5:
adrp x8, _ERRORFILE@PAGE
ldr x0, [x8, _ERRORFILE@PAGEOFF]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _fprintf
adrp x8, _INVALID_INPUT@PAGE
ldr w8, [x8, _INVALID_INPUT@PAGEOFF]
stur w8, [x29, #-4]
b LBB1_13
LBB1_6:
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
stur x8, [x29, #-24]
ldur x0, [x29, #-24]
bl _getpwnam
stur x0, [x29, #-32]
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_8
b LBB1_7
LBB1_7:
adrp x8, _LOGFILE@PAGE
ldr x0, [x8, _LOGFILE@PAGEOFF]
ldur x8, [x29, #-24]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _fprintf
adrp x8, _USER_NOT_FOUND@PAGE
ldr w8, [x8, _USER_NOT_FOUND@PAGEOFF]
stur w8, [x29, #-4]
b LBB1_13
LBB1_8:
adrp x8, _LOGFILE@PAGE
ldr x0, [x8, _LOGFILE@PAGEOFF]
ldur x11, [x29, #-24]
ldur x8, [x29, #-32]
ldr w8, [x8, #16]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-32]
ldr w9, [x8, #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.7@PAGE
add x1, x1, l_.str.7@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
ldur x8, [x29, #-32]
ldr w1, [x8, #16]
ldur x8, [x29, #-32]
ldr w2, [x8, #20]
bl _change_user
stur w0, [x29, #-36]
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
adrp x8, _LOGFILE@PAGE
ldr x0, [x8, _LOGFILE@PAGEOFF]
ldur x8, [x29, #-24]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.8@PAGE
add x1, x1, l_.str.8@PAGEOFF
bl _fprintf
adrp x8, _SETUID_OPER_FAILED@PAGE
ldr w8, [x8, _SETUID_OPER_FAILED@PAGEOFF]
stur w8, [x29, #-4]
b LBB1_13
LBB1_10:
ldur x8, [x29, #-16]
add x8, x8, #16
str x8, [sp, #32]
adrp x8, _LOGFILE@PAGE
str x8, [sp, #24] ; 8-byte Folded Spill
ldr x0, [x8, _LOGFILE@PAGEOFF]
ldr x8, [sp, #32]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.9@PAGE
add x1, x1, l_.str.9@PAGEOFF
bl _fprintf
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x0, [x8, _LOGFILE@PAGEOFF]
bl _fflush
ldr x8, [sp, #32]
ldr x0, [x8]
ldr x1, [sp, #32]
bl _execvp
ldr x8, [sp, #24] ; 8-byte Folded Reload
stur w0, [x29, #-36]
ldr x0, [x8, _LOGFILE@PAGEOFF]
ldur w9, [x29, #-36]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.10@PAGE
add x1, x1, l_.str.10@PAGEOFF
bl _fprintf
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_12
b LBB1_11
LBB1_11:
mov w8, #1
stur w8, [x29, #-4]
b LBB1_13
LBB1_12:
stur wzr, [x29, #-4]
b LBB1_13
LBB1_13:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _LOGFILE ; @LOGFILE
.zerofill __DATA,__common,_LOGFILE,8,3
.globl _ERRORFILE ; @ERRORFILE
.zerofill __DATA,__common,_ERRORFILE,8,3
.section __DATA,__data
.globl _SETUID_OPER_FAILED ; @SETUID_OPER_FAILED
.p2align 2
_SETUID_OPER_FAILED:
.long 10 ; 0xa
.globl _USER_NOT_FOUND ; @USER_NOT_FOUND
.p2align 2
_USER_NOT_FOUND:
.long 20 ; 0x14
.globl _INVALID_INPUT ; @INVALID_INPUT
.p2align 2
_INVALID_INPUT:
.long 30 ; 0x1e
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Error setting supplementary groups for user %s: %s\n"
l_.str.1: ; @.str.1
.asciz "unable to reacquire root - %s\n"
l_.str.2: ; @.str.2
.asciz "Real: %d:%d; Effective: %d:%d\n"
l_.str.3: ; @.str.3
.asciz "unable to set group to %d - %s\n"
l_.str.4: ; @.str.4
.asciz "unable to set user to %d - %s\n"
l_.str.5: ; @.str.5
.asciz "Requires at least 3 variables: ./execute-as-user username command [args]"
l_.str.6: ; @.str.6
.asciz "user does not exist: %s"
l_.str.7: ; @.str.7
.asciz "Changing user: user: %s, uid: %d, gid: %d\n"
l_.str.8: ; @.str.8
.asciz "Error changing user to %s\n"
l_.str.9: ; @.str.9
.asciz "user command starting from: %s\n"
l_.str.10: ; @.str.10
.asciz "system call return value: %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _change_user ## -- Begin function change_user
.p2align 4, 0x90
_change_user: ## @change_user
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $176, %rsp
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movl %edx, -24(%rbp)
movl -20(%rbp), %eax
movl %eax, -28(%rbp) ## 4-byte Spill
callq _getuid
movl %eax, %ecx
movl -28(%rbp), %eax ## 4-byte Reload
cmpl %ecx, %eax
jne LBB0_5
## %bb.1:
movl -20(%rbp), %eax
movl %eax, -32(%rbp) ## 4-byte Spill
callq _geteuid
movl %eax, %ecx
movl -32(%rbp), %eax ## 4-byte Reload
cmpl %ecx, %eax
jne LBB0_5
## %bb.2:
movl -24(%rbp), %eax
movl %eax, -36(%rbp) ## 4-byte Spill
callq _getgid
movl %eax, %ecx
movl -36(%rbp), %eax ## 4-byte Reload
cmpl %ecx, %eax
jne LBB0_5
## %bb.3:
movl -24(%rbp), %eax
movl %eax, -40(%rbp) ## 4-byte Spill
callq _getegid
movl %eax, %ecx
movl -40(%rbp), %eax ## 4-byte Reload
cmpl %ecx, %eax
jne LBB0_5
## %bb.4:
movl $0, -4(%rbp)
jmp LBB0_14
LBB0_5:
movq -16(%rbp), %rdi
movl -24(%rbp), %esi
callq _initgroups
cmpl $0, %eax
je LBB0_7
## %bb.6:
movq _LOGFILE(%rip), %rax
movq %rax, -56(%rbp) ## 8-byte Spill
movq -16(%rbp), %rax
movq %rax, -48(%rbp) ## 8-byte Spill
callq ___error
movl (%rax), %edi
callq _strerror
movq -56(%rbp), %rdi ## 8-byte Reload
movq -48(%rbp), %rdx ## 8-byte Reload
movq %rax, %rcx
leaq L_.str(%rip), %rsi
movb $0, %al
callq _fprintf
movl _SETUID_OPER_FAILED(%rip), %eax
movl %eax, -4(%rbp)
jmp LBB0_14
LBB0_7:
xorl %edi, %edi
callq _seteuid
cmpl $0, %eax
je LBB0_9
## %bb.8:
movq _LOGFILE(%rip), %rax
movq %rax, -88(%rbp) ## 8-byte Spill
callq ___error
movl (%rax), %edi
callq _strerror
movq -88(%rbp), %rdi ## 8-byte Reload
movq %rax, %rdx
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _fprintf
movq _LOGFILE(%rip), %rax
movq %rax, -80(%rbp) ## 8-byte Spill
callq _getuid
movl %eax, -68(%rbp) ## 4-byte Spill
callq _getgid
movl %eax, -64(%rbp) ## 4-byte Spill
callq _geteuid
movl %eax, -60(%rbp) ## 4-byte Spill
callq _getegid
movq -80(%rbp), %rdi ## 8-byte Reload
movl -68(%rbp), %edx ## 4-byte Reload
movl -64(%rbp), %ecx ## 4-byte Reload
movl -60(%rbp), %r8d ## 4-byte Reload
movl %eax, %r9d
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _fprintf
movl _SETUID_OPER_FAILED(%rip), %eax
movl %eax, -4(%rbp)
jmp LBB0_14
LBB0_9:
movl -24(%rbp), %edi
callq _setgid
cmpl $0, %eax
je LBB0_11
## %bb.10:
movq _LOGFILE(%rip), %rax
movq %rax, -128(%rbp) ## 8-byte Spill
movl -24(%rbp), %eax
movl %eax, -116(%rbp) ## 4-byte Spill
callq ___error
movl (%rax), %edi
callq _strerror
movq -128(%rbp), %rdi ## 8-byte Reload
movl -116(%rbp), %edx ## 4-byte Reload
movq %rax, %rcx
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _fprintf
movq _LOGFILE(%rip), %rax
movq %rax, -112(%rbp) ## 8-byte Spill
callq _getuid
movl %eax, -100(%rbp) ## 4-byte Spill
callq _getgid
movl %eax, -96(%rbp) ## 4-byte Spill
callq _geteuid
movl %eax, -92(%rbp) ## 4-byte Spill
callq _getegid
movq -112(%rbp), %rdi ## 8-byte Reload
movl -100(%rbp), %edx ## 4-byte Reload
movl -96(%rbp), %ecx ## 4-byte Reload
movl -92(%rbp), %r8d ## 4-byte Reload
movl %eax, %r9d
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _fprintf
movl _SETUID_OPER_FAILED(%rip), %eax
movl %eax, -4(%rbp)
jmp LBB0_14
LBB0_11:
movl -20(%rbp), %edi
callq _setuid
cmpl $0, %eax
je LBB0_13
## %bb.12:
movq _LOGFILE(%rip), %rax
movq %rax, -168(%rbp) ## 8-byte Spill
movl -20(%rbp), %eax
movl %eax, -156(%rbp) ## 4-byte Spill
callq ___error
movl (%rax), %edi
callq _strerror
movq -168(%rbp), %rdi ## 8-byte Reload
movl -156(%rbp), %edx ## 4-byte Reload
movq %rax, %rcx
leaq L_.str.4(%rip), %rsi
movb $0, %al
callq _fprintf
movq _LOGFILE(%rip), %rax
movq %rax, -152(%rbp) ## 8-byte Spill
callq _getuid
movl %eax, -140(%rbp) ## 4-byte Spill
callq _getgid
movl %eax, -136(%rbp) ## 4-byte Spill
callq _geteuid
movl %eax, -132(%rbp) ## 4-byte Spill
callq _getegid
movq -152(%rbp), %rdi ## 8-byte Reload
movl -140(%rbp), %edx ## 4-byte Reload
movl -136(%rbp), %ecx ## 4-byte Reload
movl -132(%rbp), %r8d ## 4-byte Reload
movl %eax, %r9d
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _fprintf
movl _SETUID_OPER_FAILED(%rip), %eax
movl %eax, -4(%rbp)
jmp LBB0_14
LBB0_13:
movl $0, -4(%rbp)
LBB0_14:
movl -4(%rbp), %eax
addq $176, %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)
cmpq $0, _LOGFILE(%rip)
jne LBB1_2
## %bb.1:
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, _LOGFILE(%rip)
LBB1_2:
cmpq $0, _ERRORFILE(%rip)
jne LBB1_4
## %bb.3:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, _ERRORFILE(%rip)
LBB1_4:
cmpl $3, -8(%rbp)
jge LBB1_6
## %bb.5:
movq _ERRORFILE(%rip), %rdi
leaq L_.str.5(%rip), %rsi
movb $0, %al
callq _fprintf
movl _INVALID_INPUT(%rip), %eax
movl %eax, -4(%rbp)
jmp LBB1_13
LBB1_6:
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
callq _getpwnam
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB1_8
## %bb.7:
movq _LOGFILE(%rip), %rdi
movq -24(%rbp), %rdx
leaq L_.str.6(%rip), %rsi
movb $0, %al
callq _fprintf
movl _USER_NOT_FOUND(%rip), %eax
movl %eax, -4(%rbp)
jmp LBB1_13
LBB1_8:
movq _LOGFILE(%rip), %rdi
movq -24(%rbp), %rdx
movq -32(%rbp), %rax
movl 16(%rax), %ecx
movq -32(%rbp), %rax
movl 20(%rax), %r8d
leaq L_.str.7(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rdi
movq -32(%rbp), %rax
movl 16(%rax), %esi
movq -32(%rbp), %rax
movl 20(%rax), %edx
callq _change_user
movl %eax, -36(%rbp)
cmpl $0, -36(%rbp)
je LBB1_10
## %bb.9:
movq _LOGFILE(%rip), %rdi
movq -24(%rbp), %rdx
leaq L_.str.8(%rip), %rsi
movb $0, %al
callq _fprintf
movl _SETUID_OPER_FAILED(%rip), %eax
movl %eax, -4(%rbp)
jmp LBB1_13
LBB1_10:
movq -16(%rbp), %rax
addq $16, %rax
movq %rax, -48(%rbp)
movq _LOGFILE(%rip), %rdi
movq -48(%rbp), %rax
movq (%rax), %rdx
leaq L_.str.9(%rip), %rsi
movb $0, %al
callq _fprintf
movq _LOGFILE(%rip), %rdi
callq _fflush
movq -48(%rbp), %rax
movq (%rax), %rdi
movq -48(%rbp), %rsi
callq _execvp
movl %eax, -36(%rbp)
movq _LOGFILE(%rip), %rdi
movl -36(%rbp), %edx
leaq L_.str.10(%rip), %rsi
movb $0, %al
callq _fprintf
cmpl $0, -36(%rbp)
je LBB1_12
## %bb.11:
movl $1, -4(%rbp)
jmp LBB1_13
LBB1_12:
movl $0, -4(%rbp)
LBB1_13:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _LOGFILE ## @LOGFILE
.zerofill __DATA,__common,_LOGFILE,8,3
.globl _ERRORFILE ## @ERRORFILE
.zerofill __DATA,__common,_ERRORFILE,8,3
.section __DATA,__data
.globl _SETUID_OPER_FAILED ## @SETUID_OPER_FAILED
.p2align 2
_SETUID_OPER_FAILED:
.long 10 ## 0xa
.globl _USER_NOT_FOUND ## @USER_NOT_FOUND
.p2align 2
_USER_NOT_FOUND:
.long 20 ## 0x14
.globl _INVALID_INPUT ## @INVALID_INPUT
.p2align 2
_INVALID_INPUT:
.long 30 ## 0x1e
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Error setting supplementary groups for user %s: %s\n"
L_.str.1: ## @.str.1
.asciz "unable to reacquire root - %s\n"
L_.str.2: ## @.str.2
.asciz "Real: %d:%d; Effective: %d:%d\n"
L_.str.3: ## @.str.3
.asciz "unable to set group to %d - %s\n"
L_.str.4: ## @.str.4
.asciz "unable to set user to %d - %s\n"
L_.str.5: ## @.str.5
.asciz "Requires at least 3 variables: ./execute-as-user username command [args]"
L_.str.6: ## @.str.6
.asciz "user does not exist: %s"
L_.str.7: ## @.str.7
.asciz "Changing user: user: %s, uid: %d, gid: %d\n"
L_.str.8: ## @.str.8
.asciz "Error changing user to %s\n"
L_.str.9: ## @.str.9
.asciz "user command starting from: %s\n"
L_.str.10: ## @.str.10
.asciz "system call return value: %d\n"
.subsections_via_symbols
| the_stack_data/87890.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
str wzr, [sp, #28]
str wzr, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
; Child Loop BB0_5 Depth 3
ldr w8, [sp, #24]
subs w8, w8, #2048
cset w8, ge
tbnz w8, #0, LBB0_12
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #20]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_5 Depth 3
ldr w8, [sp, #20]
subs w8, w8, #2048
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
str wzr, [sp, #16]
b LBB0_5
LBB0_5: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_3 Depth=2
; => This Inner Loop Header: Depth=3
ldr w8, [sp, #16]
subs w8, w8, #2048
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=3
ldrsw x8, [sp, #24]
mov x10, #16488
mul x11, x8, x10
adrp x8, _C@GOTPAGE
ldr x8, [x8, _C@GOTPAGEOFF]
mov x9, x8
add x9, x9, x11
ldrsw x11, [sp, #20]
ldr d2, [x9, x11, lsl #3]
ldrsw x9, [sp, #24]
mul x11, x9, x10
adrp x9, _A@GOTPAGE
ldr x9, [x9, _A@GOTPAGEOFF]
add x9, x9, x11
ldrsw x11, [sp, #16]
ldr d0, [x9, x11, lsl #3]
ldrsw x9, [sp, #16]
mul x11, x9, x10
adrp x9, _B@GOTPAGE
ldr x9, [x9, _B@GOTPAGEOFF]
add x9, x9, x11
ldrsw x11, [sp, #20]
ldr d1, [x9, x11, lsl #3]
fmadd d0, d0, d1, d2
ldrsw x9, [sp, #24]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #20]
str d0, [x8, x9, lsl #3]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=3
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_5
LBB0_8: ; in Loop: Header=BB0_3 Depth=2
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_3
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_1
LBB0_12:
mov w0, #0
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _C,33767424,3 ; @C
.comm _A,33767424,3 ; @A
.comm _B,33767424,3 ; @B
.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 $0, -8(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
## Child Loop BB0_5 Depth 3
cmpl $2048, -8(%rbp) ## imm = 0x800
jge LBB0_12
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -12(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_5 Depth 3
cmpl $2048, -12(%rbp) ## imm = 0x800
jge LBB0_10
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movl $0, -16(%rbp)
LBB0_5: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_3 Depth=2
## => This Inner Loop Header: Depth=3
cmpl $2048, -16(%rbp) ## imm = 0x800
jge LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=3
movslq -8(%rbp), %rcx
movq _C@GOTPCREL(%rip), %rax
imulq $16488, %rcx, %rcx ## imm = 0x4068
addq %rcx, %rax
movslq -12(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero
movslq -8(%rbp), %rcx
movq _A@GOTPCREL(%rip), %rax
imulq $16488, %rcx, %rcx ## imm = 0x4068
addq %rcx, %rax
movslq -16(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movslq -16(%rbp), %rcx
movq _B@GOTPCREL(%rip), %rax
imulq $16488, %rcx, %rcx ## imm = 0x4068
addq %rcx, %rax
movslq -12(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movslq -8(%rbp), %rcx
movq _C@GOTPCREL(%rip), %rax
imulq $16488, %rcx, %rcx ## imm = 0x4068
addq %rcx, %rax
movslq -12(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
## %bb.7: ## in Loop: Header=BB0_5 Depth=3
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_5
LBB0_8: ## in Loop: Header=BB0_3 Depth=2
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_3 Depth=2
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_3
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_11
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_12:
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _C,33767424,4 ## @C
.comm _A,33767424,4 ## @A
.comm _B,33767424,4 ## @B
.subsections_via_symbols
| the_stack_data/1051404.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 _printf
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
stur wzr, [x29, #-12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #10
cset w8, gt
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
; implicit-def: $x11
mov x11, x8
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-8]
ldur w10, [x29, #-12]
mul w10, w9, w10
mov x9, sp
str x11, [x9]
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #16]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_1
LBB0_4:
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 "Inserisci un numero da 1 a 12: "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "%d x %d = %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $10, -12(%rbp)
jg LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %esi
movl -12(%rbp), %edx
movl -8(%rbp), %ecx
imull -12(%rbp), %ecx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_1
LBB0_4:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Inserisci un numero da 1 a 12: "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "%d x %d = %d\n"
.subsections_via_symbols
| the_stack_data/398.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __DATA,__data
.globl _Versionstr ; @Versionstr
_Versionstr:
.asciz " ldapd %VERSION% (%WHEN%)\n\t%WHOANDWHERE%\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __DATA,__data
.globl _Versionstr ## @Versionstr
.p2align 4
_Versionstr:
.asciz " ldapd %VERSION% (%WHEN%)\n\t%WHOANDWHERE%\n"
.subsections_via_symbols
| the_stack_data/34513150.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _isP ; -- Begin function isP
.p2align 2
_isP: ; @isP
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
adrp x8, _prime@GOTPAGE
ldr x8, [x8, _prime@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
str w0, [sp, #28]
str wzr, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #24]
subs w8, w8, #1000
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldrsw x10, [sp, #24]
mov w8, #1
str w8, [x9, x10, lsl #2]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_1
LBB0_4:
ldr x8, [sp, #8] ; 8-byte Folded Reload
str wzr, [x8]
str wzr, [x8, #4]
mov w8, #2
str w8, [sp, #20]
b LBB0_5
LBB0_5: ; =>This Loop Header: Depth=1
; Child Loop BB0_7 Depth 2
ldr w8, [sp, #20]
ldr w9, [sp, #20]
mul w8, w8, w9
subs w8, w8, #1000
cset w8, ge
tbnz w8, #0, LBB0_14
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #20]
ldr w9, [sp, #20]
mul w8, w8, w9
str w8, [sp, #16]
b LBB0_7
LBB0_7: ; Parent Loop BB0_5 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #16]
subs w8, w8, #1000
cset w8, ge
tbnz w8, #0, LBB0_12
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=2
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldrsw x9, [sp, #16]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_7 Depth=2
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldrsw x10, [sp, #16]
mov w8, #0
str w8, [x9, x10, lsl #2]
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_7 Depth=2
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_7 Depth=2
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_7
LBB0_12: ; in Loop: Header=BB0_5 Depth=1
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_5
LBB0_14:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldrsw x9, [sp, #28]
ldr w0, [x8, x9, lsl #2]
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, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
mov w2, #0
str wzr, [sp, #36]
mov w1, #2
mov x0, x1
bl _socket
str w0, [sp, #32]
ldr w8, [sp, #32]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB1_3
LBB1_2:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB1_3
LBB1_3:
sub x1, x29, #24
mov w8, #2
sturb w8, [x29, #-23]
mov w8, #29975
sturh w8, [x29, #-22]
stur wzr, [x29, #-20]
ldr w0, [sp, #32]
mov w2, #16
bl _bind
str w0, [sp, #28]
ldr w8, [sp, #28]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB1_6
LBB1_5:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB1_6
LBB1_6:
ldr w0, [sp, #32]
add x1, sp, #16
mov x2, #5
mov w3, #10
add x4, sp, #40
add x5, sp, #20
bl _recvfrom
mov x8, x0
str w8, [sp, #24]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldr w8, [sp, #24]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB1_8
b LBB1_7
LBB1_7:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB1_8:
ldr w0, [sp, #16]
bl _isP
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
ldr w9, [sp, #16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB1_11
LBB1_10:
ldr w9, [sp, #16]
; 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
b LBB1_11
LBB1_11:
b LBB1_12
LBB1_12:
ldr w0, [sp, #32]
bl _close
ldr w8, [sp, #36]
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_14
b LBB1_13
LBB1_13:
bl ___stack_chk_fail
LBB1_14:
ldr w0, [sp, #12] ; 4-byte Folded Reload
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.comm _prime,4000,2 ; @prime
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Socket not created error\n"
l_.str.1: ; @.str.1
.asciz "Socket created successfully\n"
l_.str.2: ; @.str.2
.asciz "Bind not created error\n"
l_.str.3: ; @.str.3
.asciz "Bind created successfully\n"
l_.str.4: ; @.str.4
.asciz "1"
l_.str.5: ; @.str.5
.asciz "sendto"
l_.str.6: ; @.str.6
.asciz "\n %d Is Prime \"\n"
l_.str.7: ; @.str.7
.asciz "\n %d IS not prime \"\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _isP ## -- Begin function isP
.p2align 4, 0x90
_isP: ## @isP
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl $0, -8(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $1000, -8(%rbp) ## imm = 0x3E8
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -8(%rbp), %rcx
movq _prime@GOTPCREL(%rip), %rax
movl $1, (%rax,%rcx,4)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_4:
movq _prime@GOTPCREL(%rip), %rax
movl $0, (%rax)
movq _prime@GOTPCREL(%rip), %rax
movl $0, 4(%rax)
movl $2, -12(%rbp)
LBB0_5: ## =>This Loop Header: Depth=1
## Child Loop BB0_7 Depth 2
movl -12(%rbp), %eax
imull -12(%rbp), %eax
cmpl $1000, %eax ## imm = 0x3E8
jge LBB0_14
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl -12(%rbp), %eax
imull -12(%rbp), %eax
movl %eax, -16(%rbp)
LBB0_7: ## Parent Loop BB0_5 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $1000, -16(%rbp) ## imm = 0x3E8
jge LBB0_12
## %bb.8: ## in Loop: Header=BB0_7 Depth=2
movslq -16(%rbp), %rcx
movq _prime@GOTPCREL(%rip), %rax
cmpl $0, (%rax,%rcx,4)
je LBB0_10
## %bb.9: ## in Loop: Header=BB0_7 Depth=2
movslq -16(%rbp), %rcx
movq _prime@GOTPCREL(%rip), %rax
movl $0, (%rax,%rcx,4)
LBB0_10: ## in Loop: Header=BB0_7 Depth=2
jmp LBB0_11
LBB0_11: ## in Loop: Header=BB0_7 Depth=2
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_7
LBB0_12: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_13
LBB0_13: ## in Loop: Header=BB0_5 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_5
LBB0_14:
movslq -4(%rbp), %rcx
movq _prime@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %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 $80, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -44(%rbp)
movl $2, %esi
xorl %edx, %edx
movl %esi, %edi
callq _socket
movl %eax, -48(%rbp)
cmpl $-1, -48(%rbp)
jne LBB1_2
## %bb.1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB1_3
LBB1_2:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
LBB1_3:
movb $2, -23(%rbp)
movw $29975, -22(%rbp) ## imm = 0x7517
movl $0, -20(%rbp)
movl -48(%rbp), %edi
leaq -24(%rbp), %rsi
movl $16, %edx
callq _bind
movl %eax, -52(%rbp)
cmpl $-1, -52(%rbp)
jne LBB1_5
## %bb.4:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB1_6
LBB1_5:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
LBB1_6:
movl -48(%rbp), %edi
leaq -64(%rbp), %rsi
leaq -40(%rbp), %r8
movl $5, %edx
movl $10, %ecx
leaq -60(%rbp), %r9
callq _recvfrom
## kill: def $eax killed $eax killed $rax
movl %eax, -56(%rbp)
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
cmpl $-1, -56(%rbp)
jne LBB1_8
## %bb.7:
leaq L_.str.5(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB1_8:
movl -64(%rbp), %edi
callq _isP
cmpl $0, %eax
je LBB1_10
## %bb.9:
movl -64(%rbp), %esi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB1_11
LBB1_10:
movl -64(%rbp), %esi
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
LBB1_11:
jmp LBB1_12
LBB1_12:
movl -48(%rbp), %edi
callq _close
movl -44(%rbp), %eax
movl %eax, -68(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_14
## %bb.13:
movl -68(%rbp), %eax ## 4-byte Reload
addq $80, %rsp
popq %rbp
retq
LBB1_14:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.comm _prime,4000,4 ## @prime
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Socket not created error\n"
L_.str.1: ## @.str.1
.asciz "Socket created successfully\n"
L_.str.2: ## @.str.2
.asciz "Bind not created error\n"
L_.str.3: ## @.str.3
.asciz "Bind created successfully\n"
L_.str.4: ## @.str.4
.asciz "1"
L_.str.5: ## @.str.5
.asciz "sendto"
L_.str.6: ## @.str.6
.asciz "\n %d Is Prime \"\n"
L_.str.7: ## @.str.7
.asciz "\n %d IS not prime \"\n"
.subsections_via_symbols
| the_stack_data/173579312.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _Q ; -- Begin function Q
.p2align 2
_Q: ; @Q
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str d0, [sp, #16]
ldr d0, [sp, #16]
fmov d1, #1.00000000
fcmp d0, d1
cset w8, le
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr d0, [sp, #16]
fmov d1, #1.00000000
fsub d0, d0, d1
str d0, [sp, #16]
b LBB0_2
LBB0_2:
mov w8, #1
str w8, [sp, #12]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp, #12]
ldr d0, [x8, x9, lsl #3]
ldr d1, [sp, #16]
fdiv d0, d0, d1
fcmp d0, #0.0
cset w8, le
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr d0, [sp, #16]
ldr x8, [sp, #24]
str d0, [x8]
ldr x8, [sp, #24]
ldrsw x9, [sp, #12]
ldr d0, [x8, x9, lsl #3]
ldr d1, [sp, #16]
fdiv d0, d0, d1
ldr x8, [sp, #24]
ldrsw x9, [sp, #12]
str d0, [x8, x9, lsl #3]
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_3
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
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function Q
LCPI0_0:
.quad 0x3ff0000000000000 ## double 1
.section __TEXT,__text,regular,pure_instructions
.globl _Q
.p2align 4, 0x90
_Q: ## @Q
.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)
movsd %xmm0, -16(%rbp)
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB0_2
## %bb.1:
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
subsd %xmm1, %xmm0
movsd %xmm0, -16(%rbp)
LBB0_2:
movl $1, -20(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
cmpl $3, -20(%rbp)
jge LBB0_8
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
divsd -16(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe LBB0_6
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -8(%rbp), %rax
movsd %xmm0, (%rax)
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
divsd -16(%rbp), %xmm0
movq -8(%rbp), %rax
movslq -20(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_3 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_3
LBB0_8:
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/72013876.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/6388388.c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.