arm
stringlengths 122
20M
| x86
stringlengths 122
20M
| filename
stringlengths 18
26
|
---|---|---|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sizeof_array_element ; -- Begin function sizeof_array_element
.p2align 2
_sizeof_array_element: ; @sizeof_array_element
.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, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-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, LBB0_2
b LBB0_1
LBB0_1:
bl ___stack_chk_fail
LBB0_2:
mov w0, #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 _sizeof_array_element ## -- Begin function sizeof_array_element
.p2align 4, 0x90
_sizeof_array_element: ## @sizeof_array_element
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_2
## %bb.1:
movl $4, %eax
addq $32, %rsp
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/162644106.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _foo ; -- Begin function foo
.p2align 2
_foo: ; @foo
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
adrp x8, _d@GOTPAGE
ldr x8, [x8, _d@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
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, #0
cset w8, gt
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _a@GOTPAGE
ldr x8, [x8, _a@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
mov w9, #1
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
and w8, w8, #0x1
adrp x9, _c@GOTPAGE
ldr x9, [x9, _c@GOTPAGEOFF]
ldr w9, [x9]
eor w8, w8, w9
subs w8, w8, #1
cset w8, eq
and w10, w8, #0x1
adrp x9, _b@GOTPAGE
ldr x9, [x9, _b@GOTPAGEOFF]
ldr w8, [x9]
and w8, w8, w10
str w8, [x9]
b LBB0_5
LBB0_5: ; 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_6:
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _d,4,2 ; @d
.comm _a,8,3 ; @a
.comm _c,4,2 ; @c
.comm _b,4,2 ; @b
.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
jmp LBB0_1
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq _d@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jg LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movb $1, %al
movq _a@GOTPCREL(%rip), %rcx
cmpq $0, (%rcx)
movb %al, -1(%rbp) ## 1-byte Spill
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq _d@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
setne %al
movb %al, -1(%rbp) ## 1-byte Spill
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movb -1(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
movq _c@GOTPCREL(%rip), %rcx
xorl (%rcx), %eax
cmpl $1, %eax
sete %al
andb $1, %al
movzbl %al, %ecx
movq _b@GOTPCREL(%rip), %rax
andl (%rax), %ecx
movq _b@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq _d@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _d@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB0_1
LBB0_6:
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _d,4,2 ## @d
.comm _a,8,3 ## @a
.comm _c,4,2 ## @c
.comm _b,4,2 ## @b
.subsections_via_symbols
| the_stack_data/248581758.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _set_interface_attribs ; -- Begin function set_interface_attribs
.p2align 2
_set_interface_attribs: ; @set_interface_attribs
.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 w0, [sp, #40]
str w1, [sp, #36]
str w2, [sp, #32]
add x0, sp, #48
str x0, [sp, #24] ; 8-byte Folded Spill
mov w1, #0
mov x2, #72
bl _memset
ldr x1, [sp, #24] ; 8-byte Folded Reload
ldr w0, [sp, #40]
bl _tcgetattr
subs w8, w0, #0
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 _perror
mov w8, #-1
str w8, [sp, #44]
b LBB0_5
LBB0_2:
ldrsw x1, [sp, #36]
add x0, sp, #48
str x0, [sp, #16] ; 8-byte Folded Spill
bl _cfsetospeed
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldrsw x1, [sp, #36]
bl _cfsetispeed
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x8, [sp, #64]
and x8, x8, #0xfffffffffffffcff
orr x8, x8, #0x300
str x8, [sp, #64]
ldr x8, [sp, #48]
and x8, x8, #0xfffffffffffffffe
str x8, [sp, #48]
str xzr, [sp, #72]
str xzr, [sp, #56]
strb wzr, [sp, #96]
mov w8, #5
strb w8, [sp, #97]
ldr x8, [sp, #48]
and x8, x8, #0xfffffffffffff1ff
str x8, [sp, #48]
ldr x8, [sp, #64]
mov x9, #34816
orr x8, x8, x9
str x8, [sp, #64]
ldr x8, [sp, #64]
and x8, x8, #0xffffffffffffcfff
str x8, [sp, #64]
ldrsw x9, [sp, #32]
ldr x8, [sp, #64]
orr x8, x8, x9
str x8, [sp, #64]
ldr x8, [sp, #64]
and x8, x8, #0xfffffffffffffbff
str x8, [sp, #64]
ldr x8, [sp, #64]
and x8, x8, #0xfffffffffffcffff
str x8, [sp, #64]
ldr w0, [sp, #40]
mov w1, #0
bl _tcsetattr
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _perror
mov w8, #-1
str w8, [sp, #44]
b LBB0_5
LBB0_4:
str wzr, [sp, #44]
b LBB0_5
LBB0_5:
ldr w8, [sp, #44]
str w8, [sp, #12] ; 4-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
bl ___stack_chk_fail
LBB0_7:
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 _set_blocking ; -- Begin function set_blocking
.p2align 2
_set_blocking: ; @set_blocking
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str w0, [sp, #28]
str w1, [sp, #24]
add x0, sp, #32
str x0, [sp, #16] ; 8-byte Folded Spill
mov w1, #0
mov x2, #72
bl _memset
ldr x1, [sp, #16] ; 8-byte Folded Reload
ldr w0, [sp, #28]
bl _tcgetattr
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _perror
b LBB1_4
LBB1_2:
ldr w8, [sp, #24]
mov w1, #0
subs w8, w8, #0
cset w8, ne
and w8, w8, #0x1
ands w8, w8, #0x1
csinc w8, w1, wzr, eq
add x2, sp, #32
strb w8, [sp, #80]
mov w8, #10
strb w8, [sp, #81]
ldr w0, [sp, #28]
bl _tcsetattr
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
bl ___error
ldr w9, [x0]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB1_4
LBB1_4:
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5:
bl ___stack_chk_fail
LBB1_6:
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.globl _print_welcome ; -- Begin function print_welcome
.p2align 2
_print_welcome: ; @print_welcome
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _clear_screen
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x0, [x8]
bl _fflush
bl _option_selected
sxtb w0, w0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function clear_screen
_clear_screen: ; @clear_screen
.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, l_.str.54@PAGE
add x8, x8, l_.str.54@PAGEOFF
str x8, [sp, #8]
ldr x1, [sp, #8]
mov w0, #1
mov x2, #12
bl _write
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function option_selected
_option_selected: ; @option_selected
.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 wzr, [sp, #8]
mov w0, #1
bl _nonblock
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB4_10
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
mov w0, #1
bl _usleep
bl _kbhit
str w0, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB4_9
b LBB4_3
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
adrp x8, ___stdinp@GOTPAGE
ldr x8, [x8, ___stdinp@GOTPAGEOFF]
ldr x0, [x8]
bl _fgetc
sturb w0, [x29, #-1]
ldursb w8, [x29, #-1]
subs w8, w8, #49
cset w8, eq
tbnz w8, #0, LBB4_6
b LBB4_4
LBB4_4: ; in Loop: Header=BB4_1 Depth=1
ldursb w8, [x29, #-1]
subs w8, w8, #50
cset w8, eq
tbnz w8, #0, LBB4_6
b LBB4_5
LBB4_5: ; in Loop: Header=BB4_1 Depth=1
ldursb w8, [x29, #-1]
subs w8, w8, #113
cset w8, ne
tbnz w8, #0, LBB4_7
b LBB4_6
LBB4_6: ; in Loop: Header=BB4_1 Depth=1
mov w8, #1
str w8, [sp, #8]
b LBB4_8
LBB4_7: ; in Loop: Header=BB4_1 Depth=1
str wzr, [sp, #8]
adrp x0, l_.str.55@PAGE
add x0, x0, l_.str.55@PAGEOFF
bl _printf
adrp x0, l_.str.56@PAGE
add x0, x0, l_.str.56@PAGEOFF
bl _printf
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x0, [x8]
bl _fflush
b LBB4_8
LBB4_8: ; in Loop: Header=BB4_1 Depth=1
b LBB4_9
LBB4_9: ; in Loop: Header=BB4_1 Depth=1
b LBB4_1
LBB4_10:
mov w0, #0
bl _nonblock
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
ldursb w0, [x29, #-1]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _open_port ; -- Begin function open_port
.p2align 2
_open_port: ; @open_port
.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]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x0, [x8]
bl _fflush
mov x9, sp
sub x8, x29, #28
str x8, [sp, #48] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _scanf
ldr x0, [sp, #48] ; 8-byte Folded Reload
mov w1, #130
movk w1, #2, lsl #16
bl _open
stur w0, [x29, #-36]
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
bl ___error
ldr w9, [x0]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #40] ; 8-byte Folded Spill
bl ___error
ldr w0, [x0]
bl _strerror
ldr x9, [sp, #40] ; 8-byte Folded Reload
mov x8, sp
str x9, [x8]
sub x9, x29, #28
str x9, [x8, #8]
str x0, [x8, #16]
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
ldur w8, [x29, #-36]
stur w8, [x29, #-32]
b LBB5_3
LBB5_2:
ldur w0, [x29, #-36]
mov w1, #9600
mov w2, #0
str w2, [sp, #36] ; 4-byte Folded Spill
bl _set_interface_attribs
ldr w1, [sp, #36] ; 4-byte Folded Reload
ldur w0, [x29, #-36]
bl _set_blocking
ldur w8, [x29, #-36]
stur w8, [x29, #-32]
b LBB5_3
LBB5_3:
ldur w8, [x29, #-32]
str w8, [sp, #32] ; 4-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB5_5
b LBB5_4
LBB5_4:
bl ___stack_chk_fail
LBB5_5:
ldr w0, [sp, #32] ; 4-byte Folded Reload
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function parse_and_print
lCPI6_0:
.quad 0x4090000000000000 ; double 1024
.section __TEXT,__text,regular,pure_instructions
.globl _parse_and_print
.p2align 2
_parse_and_print: ; @parse_and_print
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldrb w8, [x8, #1]
asr w8, w8, #6
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #20] ; 4-byte Folded Spill
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
mov w8, #1
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB6_2
LBB6_2:
ldr w8, [sp, #20] ; 4-byte Folded Reload
and w8, w8, #0x1
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB6_4
b LBB6_3
LBB6_3:
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _printf
b LBB6_5
LBB6_4:
adrp x0, l_.str.16@PAGE
add x0, x0, l_.str.16@PAGEOFF
bl _printf
b LBB6_5
LBB6_5:
ldur x8, [x29, #-8]
ldrb w8, [x8, #1]
asr w8, w8, #5
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #16] ; 4-byte Folded Spill
tbnz w8, #0, LBB6_7
b LBB6_6
LBB6_6:
mov w8, #1
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB6_7
LBB6_7:
ldr w8, [sp, #16] ; 4-byte Folded Reload
and w8, w8, #0x1
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB6_9
b LBB6_8
LBB6_8:
adrp x0, l_.str.17@PAGE
add x0, x0, l_.str.17@PAGEOFF
bl _printf
b LBB6_10
LBB6_9:
adrp x0, l_.str.18@PAGE
add x0, x0, l_.str.18@PAGEOFF
bl _printf
b LBB6_10
LBB6_10:
ldur x8, [x29, #-8]
ldrb w8, [x8, #6]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB6_12
b LBB6_11
LBB6_11:
adrp x0, l_.str.19@PAGE
add x0, x0, l_.str.19@PAGEOFF
bl _printf
adrp x0, l_.str.20@PAGE
add x0, x0, l_.str.20@PAGEOFF
bl _printf
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
b LBB6_37
LBB6_12:
adrp x0, l_.str.21@PAGE
add x0, x0, l_.str.21@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldrb w8, [x8, #1]
asr w8, w8, #4
and w8, w8, #0x1
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB6_14
b LBB6_13
LBB6_13:
adrp x0, l_.str.22@PAGE
add x0, x0, l_.str.22@PAGEOFF
bl _printf
b LBB6_15
LBB6_14:
adrp x0, l_.str.23@PAGE
add x0, x0, l_.str.23@PAGEOFF
bl _printf
b LBB6_15
LBB6_15:
adrp x0, l_.str.24@PAGE
add x0, x0, l_.str.24@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldrb w8, [x8, #1]
asr w8, w8, #3
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB6_18
b LBB6_16
LBB6_16:
ldur x8, [x29, #-8]
ldrb w8, [x8, #1]
asr w8, w8, #3
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB6_18
b LBB6_17
LBB6_17:
adrp x0, l_.str.25@PAGE
add x0, x0, l_.str.25@PAGEOFF
bl _printf
b LBB6_23
LBB6_18:
ldur x8, [x29, #-8]
ldrb w8, [x8, #1]
asr w8, w8, #3
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB6_21
b LBB6_19
LBB6_19:
ldur x8, [x29, #-8]
ldrb w8, [x8, #1]
asr w8, w8, #3
and w8, w8, #0x1
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB6_21
b LBB6_20
LBB6_20:
adrp x0, l_.str.26@PAGE
add x0, x0, l_.str.26@PAGEOFF
bl _printf
b LBB6_22
LBB6_21:
adrp x0, l_.str.27@PAGE
add x0, x0, l_.str.27@PAGEOFF
bl _printf
b LBB6_22
LBB6_22:
b LBB6_23
LBB6_23:
adrp x0, l_.str.28@PAGE
add x0, x0, l_.str.28@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldrb w8, [x8, #1]
and w8, w8, #0x3
sturb w8, [x29, #-21]
ldurb w8, [x29, #-21]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB6_25
b LBB6_24
LBB6_24:
adrp x0, l_.str.29@PAGE
add x0, x0, l_.str.29@PAGEOFF
bl _printf
b LBB6_34
LBB6_25:
ldurb w8, [x29, #-21]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB6_27
b LBB6_26
LBB6_26:
adrp x0, l_.str.30@PAGE
add x0, x0, l_.str.30@PAGEOFF
bl _printf
b LBB6_33
LBB6_27:
ldurb w8, [x29, #-21]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB6_29
b LBB6_28
LBB6_28:
adrp x0, l_.str.31@PAGE
add x0, x0, l_.str.31@PAGEOFF
bl _printf
b LBB6_32
LBB6_29:
ldurb w8, [x29, #-21]
subs w8, w8, #3
cset w8, ne
tbnz w8, #0, LBB6_31
b LBB6_30
LBB6_30:
adrp x0, l_.str.32@PAGE
add x0, x0, l_.str.32@PAGEOFF
bl _printf
b LBB6_31
LBB6_31:
b LBB6_32
LBB6_32:
b LBB6_33
LBB6_33:
b LBB6_34
LBB6_34:
stur wzr, [x29, #-12]
ldur x8, [x29, #-8]
ldrb w8, [x8, #2]
stur w8, [x29, #-12]
ldur w9, [x29, #-12]
ldur x8, [x29, #-8]
ldrb w8, [x8, #3]
orr w8, w8, w9, lsl #8
stur w8, [x29, #-12]
stur wzr, [x29, #-16]
ldur x8, [x29, #-8]
ldrb w8, [x8, #4]
stur w8, [x29, #-16]
ldur w9, [x29, #-16]
ldur x8, [x29, #-8]
ldrb w8, [x8, #5]
orr w8, w8, w9, lsl #8
stur w8, [x29, #-16]
ldur w8, [x29, #-12]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.33@PAGE
add x0, x0, l_.str.33@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldrb w10, [x8, #6]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.34@PAGE
add x0, x0, l_.str.34@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldrb w8, [x8, #7]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB6_36
b LBB6_35
LBB6_35:
adrp x0, l_.str.35@PAGE
add x0, x0, l_.str.35@PAGEOFF
bl _printf
adrp x0, l_.str.36@PAGE
add x0, x0, l_.str.36@PAGEOFF
bl _printf
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
adrp x0, l_.str.37@PAGE
add x0, x0, l_.str.37@PAGEOFF
bl _printf
adrp x0, l_.str.38@PAGE
add x0, x0, l_.str.38@PAGEOFF
bl _printf
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
b LBB6_37
LBB6_36:
ldur x8, [x29, #-8]
ldrb w10, [x8, #7]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.39@PAGE
add x0, x0, l_.str.39@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldrb w10, [x8, #8]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.40@PAGE
add x0, x0, l_.str.40@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldrb w10, [x8, #9]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.41@PAGE
add x0, x0, l_.str.41@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldrb w10, [x8, #10]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.42@PAGE
add x0, x0, l_.str.42@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldrb w8, [x8, #11]
stur w8, [x29, #-20]
ldur w9, [x29, #-20]
ldur x8, [x29, #-8]
ldrb w8, [x8, #12]
orr w8, w8, w9, lsl #8
stur w8, [x29, #-20]
ldur w9, [x29, #-20]
ldur x8, [x29, #-8]
ldrb w8, [x8, #13]
orr w8, w8, w9, lsl #8
stur w8, [x29, #-20]
ldur s1, [x29, #-20]
; implicit-def: $d0
fmov s0, s1
ucvtf d0, d0
fmov d1, #8.00000000
fmul d0, d0, d1
adrp x8, lCPI6_0@PAGE
ldr d1, [x8, lCPI6_0@PAGEOFF]
fdiv d0, d0, d1
fdiv d0, d0, d1
mov x8, sp
str d0, [x8]
adrp x0, l_.str.43@PAGE
add x0, x0, l_.str.43@PAGEOFF
bl _printf
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
adrp x0, l_.str.37@PAGE
add x0, x0, l_.str.37@PAGEOFF
bl _printf
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x0, [x8]
bl _fflush
b LBB6_37
LBB6_37:
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, #176
.cfi_def_cfa_offset 176
stp x29, x30, [sp, #160] ; 16-byte Folded Spill
add x29, sp, #160
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #32]
b LBB7_1
LBB7_1: ; =>This Loop Header: Depth=1
; Child Loop BB7_31 Depth 2
; Child Loop BB7_15 Depth 2
; Child Loop BB7_17 Depth 3
; Child Loop BB7_22 Depth 3
; Child Loop BB7_8 Depth 2
bl _print_welcome
strb w0, [sp, #31]
ldrsb w8, [sp, #31]
subs w8, w8, #49
cset w8, ne
tbnz w8, #0, LBB7_29
b LBB7_2
LBB7_2: ; in Loop: Header=BB7_1 Depth=1
bl _clear_screen
adrp x0, l_.str.44@PAGE
add x0, x0, l_.str.44@PAGEOFF
bl _printf
adrp x0, l_.str.45@PAGE
add x0, x0, l_.str.45@PAGEOFF
bl _printf
adrp x0, l_.str.46@PAGE
add x0, x0, l_.str.46@PAGEOFF
bl _printf
adrp x0, l_.str.47@PAGE
add x0, x0, l_.str.47@PAGEOFF
bl _printf
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x0, [x8]
bl _fflush
bl _option_selected
strb w0, [sp, #30]
ldrsb w8, [sp, #30]
subs w8, w8, #113
cset w8, ne
tbnz w8, #0, LBB7_4
b LBB7_3
LBB7_3: ; in Loop: Header=BB7_1 Depth=1
bl _print_welcome
b LBB7_28
LBB7_4: ; in Loop: Header=BB7_1 Depth=1
bl _open_port
str w0, [sp, #24]
ldr w8, [sp, #24]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB7_6
b LBB7_5
LBB7_5:
str wzr, [sp, #32]
b LBB7_37
LBB7_6: ; in Loop: Header=BB7_1 Depth=1
mov w8, #170
strb w8, [sp, #23]
ldrsb w8, [sp, #30]
subs w8, w8, #49
cset w8, ne
tbnz w8, #0, LBB7_13
b LBB7_7
LBB7_7: ; in Loop: Header=BB7_1 Depth=1
b LBB7_8
LBB7_8: ; Parent Loop BB7_1 Depth=1
; => This Inner Loop Header: Depth=2
bl _kbhit
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_12
b LBB7_9
LBB7_9: ; in Loop: Header=BB7_8 Depth=2
ldr w0, [sp, #24]
adrp x1, l_.str.48@PAGE
add x1, x1, l_.str.48@PAGEOFF
mov x2, #2
bl _write
ldr w0, [sp, #24]
add x1, sp, #52
mov x2, #100
bl _read
subs x8, x0, #0
cset w8, ge
tbnz w8, #0, LBB7_11
b LBB7_10
LBB7_10: ; in Loop: Header=BB7_8 Depth=2
adrp x0, l_.str.49@PAGE
add x0, x0, l_.str.49@PAGEOFF
bl _perror
b LBB7_11
LBB7_11: ; in Loop: Header=BB7_8 Depth=2
add x0, sp, #52
bl _parse_and_print
mov w0, #1
bl _sleep
b LBB7_8
LBB7_12: ; in Loop: Header=BB7_1 Depth=1
bl _getchar
ldr w0, [sp, #24]
bl _close
b LBB7_27
LBB7_13: ; in Loop: Header=BB7_1 Depth=1
ldrsb w8, [sp, #30]
subs w8, w8, #50
cset w8, ne
tbnz w8, #0, LBB7_26
b LBB7_14
LBB7_14: ; in Loop: Header=BB7_1 Depth=1
b LBB7_15
LBB7_15: ; Parent Loop BB7_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB7_17 Depth 3
; Child Loop BB7_22 Depth 3
bl _kbhit
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_25
b LBB7_16
LBB7_16: ; in Loop: Header=BB7_15 Depth=2
mov w8, #1
str w8, [sp, #16]
b LBB7_17
LBB7_17: ; Parent Loop BB7_1 Depth=1
; Parent Loop BB7_15 Depth=2
; => This Inner Loop Header: Depth=3
ldrb w8, [sp, #52]
ldrb w9, [sp, #23]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB7_21
b LBB7_18
LBB7_18: ; in Loop: Header=BB7_17 Depth=3
ldr w0, [sp, #24]
add x1, sp, #52
mov x2, #100
bl _read
subs x8, x0, #0
cset w8, ge
tbnz w8, #0, LBB7_20
b LBB7_19
LBB7_19: ; in Loop: Header=BB7_17 Depth=3
adrp x0, l_.str.49@PAGE
add x0, x0, l_.str.49@PAGEOFF
bl _perror
b LBB7_20
LBB7_20: ; in Loop: Header=BB7_17 Depth=3
b LBB7_17
LBB7_21: ; in Loop: Header=BB7_15 Depth=2
b LBB7_22
LBB7_22: ; Parent Loop BB7_1 Depth=1
; Parent Loop BB7_15 Depth=2
; => This Inner Loop Header: Depth=3
ldr w8, [sp, #16]
subs w8, w8, #14
cset w8, ge
tbnz w8, #0, LBB7_24
b LBB7_23
LBB7_23: ; in Loop: Header=BB7_22 Depth=3
ldr w0, [sp, #24]
add x1, sp, #52
mov x2, #10
bl _read
ldrb w8, [sp, #52]
ldrsw x10, [sp, #16]
add x9, sp, #36
add x9, x9, x10
strb w8, [x9]
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB7_22
LBB7_24: ; in Loop: Header=BB7_15 Depth=2
add x0, sp, #36
bl _parse_and_print
b LBB7_15
LBB7_25: ; in Loop: Header=BB7_1 Depth=1
bl _getchar
ldr w0, [sp, #24]
bl _close
b LBB7_26
LBB7_26: ; in Loop: Header=BB7_1 Depth=1
b LBB7_27
LBB7_27: ; in Loop: Header=BB7_1 Depth=1
b LBB7_28
LBB7_28: ; in Loop: Header=BB7_1 Depth=1
b LBB7_36
LBB7_29: ; in Loop: Header=BB7_1 Depth=1
ldrsb w8, [sp, #31]
subs w8, w8, #50
cset w8, ne
tbnz w8, #0, LBB7_34
b LBB7_30
LBB7_30: ; in Loop: Header=BB7_1 Depth=1
bl _clear_screen
adrp x0, l_.str.50@PAGE
add x0, x0, l_.str.50@PAGEOFF
bl _printf
adrp x0, l_.str.51@PAGE
add x0, x0, l_.str.51@PAGEOFF
bl _printf
b LBB7_31
LBB7_31: ; Parent Loop BB7_1 Depth=1
; => This Inner Loop Header: Depth=2
bl _kbhit
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_33
b LBB7_32
LBB7_32: ; in Loop: Header=BB7_31 Depth=2
b LBB7_31
LBB7_33: ; in Loop: Header=BB7_1 Depth=1
bl _getchar
b LBB7_35
LBB7_34:
adrp x0, l_.str.52@PAGE
add x0, x0, l_.str.52@PAGEOFF
bl _printf
adrp x0, l_.str.53@PAGE
add x0, x0, l_.str.53@PAGEOFF
bl _printf
str wzr, [sp, #32]
b LBB7_37
LBB7_35: ; in Loop: Header=BB7_1 Depth=1
b LBB7_36
LBB7_36: ; in Loop: Header=BB7_1 Depth=1
bl _getchar
b LBB7_1
LBB7_37:
ldr w8, [sp, #32]
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, LBB7_39
b LBB7_38
LBB7_38:
bl ___stack_chk_fail
LBB7_39:
ldr w0, [sp, #12] ; 4-byte Folded Reload
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function kbhit
_kbhit: ; @kbhit
.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, ___darwin_check_fd_set_overflow@GOTPAGE
ldr x8, [x8, ___darwin_check_fd_set_overflow@GOTPAGEOFF]
subs x8, x8, #0
cset w8, ne
str w8, [sp, #28] ; 4-byte Folded Spill
stur xzr, [x29, #-96]
mov w1, #0
stur wzr, [x29, #-88]
add x0, sp, #32
str x0, [sp, #16] ; 8-byte Folded Spill
mov x2, #128
bl _memset
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldr w8, [sp, #28] ; 4-byte Folded Reload
stur wzr, [x29, #-68]
stur x9, [x29, #-80]
ldur w10, [x29, #-68]
ldur x9, [x29, #-80]
stur w10, [x29, #-24]
stur x9, [x29, #-32]
tbz w8, #0, LBB8_2
b LBB8_1
LBB8_1:
ldur w0, [x29, #-24]
ldur x1, [x29, #-32]
mov w2, #0
bl ___darwin_check_fd_set_overflow
stur w0, [x29, #-20]
b LBB8_3
LBB8_2:
mov w8, #1
stur w8, [x29, #-20]
b LBB8_3
LBB8_3:
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB8_5
b LBB8_4
LBB8_4:
ldursw x8, [x29, #-68]
mov x11, #32
udiv x9, x8, x11
mul x9, x9, x11
subs x9, x8, x9
mov x8, #1
lsl x8, x8, x9
mov x10, x8
ldur x8, [x29, #-80]
ldursw x9, [x29, #-68]
udiv x9, x9, x11
add x9, x8, x9, lsl #2
ldr w8, [x9]
orr w8, w8, w10
str w8, [x9]
b LBB8_5
LBB8_5:
mov w0, #1
add x1, sp, #32
str x1, [sp, #8] ; 8-byte Folded Spill
mov x3, #0
mov x2, x3
sub x4, x29, #96
bl _select
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr w8, [sp, #28] ; 4-byte Folded Reload
stur wzr, [x29, #-56]
stur x9, [x29, #-64]
ldur w10, [x29, #-56]
ldur x9, [x29, #-64]
stur w10, [x29, #-40]
stur x9, [x29, #-48]
tbz w8, #0, LBB8_7
b LBB8_6
LBB8_6:
ldur w0, [x29, #-40]
ldur x1, [x29, #-48]
mov w2, #0
bl ___darwin_check_fd_set_overflow
stur w0, [x29, #-36]
b LBB8_8
LBB8_7:
mov w8, #1
stur w8, [x29, #-36]
b LBB8_8
LBB8_8:
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB8_10
b LBB8_9
LBB8_9:
ldur x8, [x29, #-64]
ldursw x9, [x29, #-56]
mov x11, #32
udiv x9, x9, x11
ldr w8, [x8, x9, lsl #2]
ldursw x9, [x29, #-56]
udiv x10, x9, x11
mul x10, x10, x11
subs x10, x9, x10
mov x9, #1
lsl x9, x9, x10
; kill: def $w9 killed $w9 killed $x9
and w8, w8, w9
stur w8, [x29, #-52]
b LBB8_11
LBB8_10:
stur wzr, [x29, #-52]
b LBB8_11
LBB8_11:
ldur w0, [x29, #-52]
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
.p2align 2 ; -- Begin function nonblock
_nonblock: ; @nonblock
.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 w0, [sp, #12]
mov w0, #0
add x1, sp, #16
bl _tcgetattr
ldr w8, [sp, #12]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB9_2
b LBB9_1
LBB9_1:
ldr x8, [sp, #40]
and x8, x8, #0xfffffffffffffeff
str x8, [sp, #40]
mov w8, #1
strb w8, [sp, #64]
b LBB9_5
LBB9_2:
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB9_4
b LBB9_3
LBB9_3:
ldr x8, [sp, #40]
orr x8, x8, #0x100
str x8, [sp, #40]
b LBB9_4
LBB9_4:
b LBB9_5
LBB9_5:
mov w1, #0
mov x0, x1
add x2, sp, #16
bl _tcsetattr
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB9_7
b LBB9_6
LBB9_6:
bl ___stack_chk_fail
LBB9_7:
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 "tcgetattr"
l_.str.1: ; @.str.1
.asciz "tcsetattr"
l_.str.2: ; @.str.2
.asciz "tggetattr"
l_.str.3: ; @.str.3
.asciz "error %d setting term attributes\n"
l_.str.4: ; @.str.4
.asciz "**************FPGA FIRMWARE DEBUGGER*************\n"
l_.str.5: ; @.str.5
.asciz "Chose your device\n"
l_.str.6: ; @.str.6
.asciz "\n1-HDMI2USB\n"
l_.str.7: ; @.str.7
.asciz "\n2-HDMI2ETHERNET\n"
l_.str.8: ; @.str.8
.asciz "\nq-QUIT\n"
l_.str.9: ; @.str.9
.asciz "\nTo select press [1/2/q]: "
l_.str.10: ; @.str.10
.asciz "\n"
l_.str.11: ; @.str.11
.asciz "Portname of selected device: "
l_.str.12: ; @.str.12
.asciz "%s"
l_.str.13: ; @.str.13
.asciz "error %d opening %s: %s\n"
l_.str.14: ; @.str.14
.asciz "\033[2J\033[1;1H"
l_.str.15: ; @.str.15
.asciz "HDMI 0 is connected\n"
l_.str.16: ; @.str.16
.asciz "HDMI 0 is not connected\n"
l_.str.17: ; @.str.17
.asciz "HDMI 1 is connected\n"
l_.str.18: ; @.str.18
.asciz "HDMI 1 is not connected\n"
l_.str.19: ; @.str.19
.asciz "\n***CONNECT INPUT SOURCE***\n\n\n"
l_.str.20: ; @.str.20
.asciz "Press ENTER to return\n\n"
l_.str.21: ; @.str.21
.asciz "Output Format: "
l_.str.22: ; @.str.22
.asciz "JPEG\n"
l_.str.23: ; @.str.23
.asciz "RAW\n"
l_.str.24: ; @.str.24
.asciz "Selected Source: "
l_.str.25: ; @.str.25
.asciz "HDMI 0\n"
l_.str.26: ; @.str.26
.asciz "HDMI 1\n"
l_.str.27: ; @.str.27
.asciz "Test Pattern\n"
l_.str.28: ; @.str.28
.asciz "Encoding Quality: "
l_.str.29: ; @.str.29
.asciz "100%%\n"
l_.str.30: ; @.str.30
.asciz "85%%\n"
l_.str.31: ; @.str.31
.asciz "75%%\n"
l_.str.32: ; @.str.32
.asciz "50%%\n"
l_.str.33: ; @.str.33
.asciz "Input Resolution: %ux%u\n"
l_.str.34: ; @.str.34
.asciz "Input Frame Rate: %hhu fps\n"
l_.str.35: ; @.str.35
.asciz "Output Frame Rate: 0 fps\n"
l_.str.36: ; @.str.36
.asciz "\n***START/RESTART USB STREAMING***\n\n"
l_.str.37: ; @.str.37
.asciz "Press ENTER to return"
l_.str.38: ; @.str.38
.asciz "\n\n"
l_.str.39: ; @.str.39
.asciz "Output Frame Rate: %hhu fps\n"
l_.str.40: ; @.str.40
.asciz "Frame Write Time: %hhu ms\n"
l_.str.41: ; @.str.41
.asciz "Frame Processing Time: %hhu ms\n"
l_.str.42: ; @.str.42
.asciz "No. of Frames Dropped: %hhu fps\n"
l_.str.43: ; @.str.43
.asciz "Frame Size: %f Mbytes\n"
l_.str.44: ; @.str.44
.asciz "Chose Debugging Output Method\n"
l_.str.45: ; @.str.45
.asciz "\n1- CDC\n"
l_.str.46: ; @.str.46
.asciz "\n2- UART\n"
l_.str.47: ; @.str.47
.asciz "\nq- Return\n"
l_.str.48: ; @.str.48
.asciz "DS"
l_.str.49: ; @.str.49
.asciz "read"
l_.str.50: ; @.str.50
.asciz "Packets are on their way....feature coming soon\n"
l_.str.51: ; @.str.51
.asciz "Press ENTER to return\n"
l_.str.52: ; @.str.52
.asciz "Thank You\n"
l_.str.53: ; @.str.53
.asciz "TimVideos - World wide Leader in Live Event Streaming\n"
l_.str.54: ; @.str.54
.asciz "\033[1;1H\033[2J"
l_.str.55: ; @.str.55
.asciz "\nInvalid Input\n"
l_.str.56: ; @.str.56
.asciz " To select press [1/2/q]: "
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _set_interface_attribs ## -- Begin function set_interface_attribs
.p2align 4, 0x90
_set_interface_attribs: ## @set_interface_attribs
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $112, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl %edi, -88(%rbp)
movl %esi, -92(%rbp)
movl %edx, -96(%rbp)
leaq -80(%rbp), %rdi
xorl %esi, %esi
movl $72, %edx
callq _memset
movl -88(%rbp), %edi
leaq -80(%rbp), %rsi
callq _tcgetattr
cmpl $0, %eax
je LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
callq _perror
movl $-1, -84(%rbp)
jmp LBB0_5
LBB0_2:
movslq -92(%rbp), %rsi
leaq -80(%rbp), %rdi
callq _cfsetospeed
movslq -92(%rbp), %rsi
leaq -80(%rbp), %rdi
callq _cfsetispeed
movq -64(%rbp), %rax
andq $-769, %rax ## imm = 0xFCFF
orq $768, %rax ## imm = 0x300
movq %rax, -64(%rbp)
movq -80(%rbp), %rax
andq $-2, %rax
movq %rax, -80(%rbp)
movq $0, -56(%rbp)
movq $0, -72(%rbp)
movb $0, -32(%rbp)
movb $5, -31(%rbp)
movq -80(%rbp), %rax
andq $-3585, %rax ## imm = 0xF1FF
movq %rax, -80(%rbp)
movq -64(%rbp), %rax
orq $34816, %rax ## imm = 0x8800
movq %rax, -64(%rbp)
movq -64(%rbp), %rax
andq $-12289, %rax ## imm = 0xCFFF
movq %rax, -64(%rbp)
movslq -96(%rbp), %rax
orq -64(%rbp), %rax
movq %rax, -64(%rbp)
movq -64(%rbp), %rax
andq $-1025, %rax ## imm = 0xFBFF
movq %rax, -64(%rbp)
movq -64(%rbp), %rax
andq $-196609, %rax ## imm = 0xFFFCFFFF
movq %rax, -64(%rbp)
movl -88(%rbp), %edi
xorl %esi, %esi
leaq -80(%rbp), %rdx
callq _tcsetattr
cmpl $0, %eax
je LBB0_4
## %bb.3:
leaq L_.str.1(%rip), %rdi
callq _perror
movl $-1, -84(%rbp)
jmp LBB0_5
LBB0_4:
movl $0, -84(%rbp)
LBB0_5:
movl -84(%rbp), %eax
movl %eax, -100(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_7
## %bb.6:
movl -100(%rbp), %eax ## 4-byte Reload
addq $112, %rsp
popq %rbp
retq
LBB0_7:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _set_blocking ## -- Begin function set_blocking
.p2align 4, 0x90
_set_blocking: ## @set_blocking
.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 %edi, -84(%rbp)
movl %esi, -88(%rbp)
leaq -80(%rbp), %rdi
xorl %esi, %esi
movl $72, %edx
callq _memset
movl -84(%rbp), %edi
leaq -80(%rbp), %rsi
callq _tcgetattr
cmpl $0, %eax
je LBB1_2
## %bb.1:
leaq L_.str.2(%rip), %rdi
callq _perror
jmp LBB1_4
LBB1_2:
movl -88(%rbp), %edx
xorl %eax, %eax
movl $1, %ecx
cmpl $0, %edx
cmovnel %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -32(%rbp)
movb $10, -31(%rbp)
movl -84(%rbp), %edi
xorl %esi, %esi
leaq -80(%rbp), %rdx
callq _tcsetattr
cmpl $0, %eax
je LBB1_4
## %bb.3:
callq ___error
movl (%rax), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
LBB1_4:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_6
## %bb.5:
addq $96, %rsp
popq %rbp
retq
LBB1_6:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _print_welcome ## -- Begin function print_welcome
.p2align 4, 0x90
_print_welcome: ## @print_welcome
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _clear_screen
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.6(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fflush
callq _option_selected
movsbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function clear_screen
_clear_screen: ## @clear_screen
.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.54(%rip), %rax
movq %rax, -8(%rbp)
movq -8(%rbp), %rsi
movl $1, %edi
movl $12, %edx
callq _write
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function option_selected
_option_selected: ## @option_selected
.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, -8(%rbp)
movl $1, %edi
callq _nonblock
LBB4_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -8(%rbp)
setne %al
xorb $-1, %al
testb $1, %al
jne LBB4_2
jmp LBB4_10
LBB4_2: ## in Loop: Header=BB4_1 Depth=1
movl $1, %edi
callq _usleep
callq _kbhit
movl %eax, -8(%rbp)
cmpl $0, -8(%rbp)
je LBB4_9
## %bb.3: ## in Loop: Header=BB4_1 Depth=1
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fgetc
## kill: def $al killed $al killed $eax
movb %al, -1(%rbp)
movsbl -1(%rbp), %eax
cmpl $49, %eax
je LBB4_6
## %bb.4: ## in Loop: Header=BB4_1 Depth=1
movsbl -1(%rbp), %eax
cmpl $50, %eax
je LBB4_6
## %bb.5: ## in Loop: Header=BB4_1 Depth=1
movsbl -1(%rbp), %eax
cmpl $113, %eax
jne LBB4_7
LBB4_6: ## in Loop: Header=BB4_1 Depth=1
movl $1, -8(%rbp)
jmp LBB4_8
LBB4_7: ## in Loop: Header=BB4_1 Depth=1
movl $0, -8(%rbp)
leaq L_.str.55(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.56(%rip), %rdi
movb $0, %al
callq _printf
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fflush
LBB4_8: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_9
LBB4_9: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_1
LBB4_10:
xorl %edi, %edi
callq _nonblock
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movsbl -1(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _open_port ## -- Begin function open_port
.p2align 4, 0x90
_open_port: ## @open_port
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fflush
leaq -32(%rbp), %rsi
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _scanf
leaq -32(%rbp), %rdi
movl $131202, %esi ## imm = 0x20082
movb $0, %al
callq _open
movl %eax, -40(%rbp)
cmpl $0, -40(%rbp)
jge LBB5_2
## %bb.1:
callq ___error
movl (%rax), %eax
movl %eax, -52(%rbp) ## 4-byte Spill
leaq -32(%rbp), %rax
movq %rax, -48(%rbp) ## 8-byte Spill
callq ___error
movl (%rax), %edi
callq _strerror
movl -52(%rbp), %esi ## 4-byte Reload
movq -48(%rbp), %rdx ## 8-byte Reload
movq %rax, %rcx
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
movl -40(%rbp), %eax
movl %eax, -36(%rbp)
jmp LBB5_3
LBB5_2:
movl -40(%rbp), %edi
movl $9600, %esi ## imm = 0x2580
xorl %edx, %edx
callq _set_interface_attribs
movl -40(%rbp), %edi
xorl %esi, %esi
callq _set_blocking
movl -40(%rbp), %eax
movl %eax, -36(%rbp)
LBB5_3:
movl -36(%rbp), %eax
movl %eax, -56(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB5_5
## %bb.4:
movl -56(%rbp), %eax ## 4-byte Reload
addq $64, %rsp
popq %rbp
retq
LBB5_5:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function parse_and_print
LCPI6_0:
.quad 0x4090000000000000 ## double 1024
LCPI6_1:
.quad 0x4020000000000000 ## double 8
.section __TEXT,__text,regular,pure_instructions
.globl _parse_and_print
.p2align 4, 0x90
_parse_and_print: ## @parse_and_print
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movzbl 1(%rax), %ecx
sarl $6, %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, %ecx
movb %al, -22(%rbp) ## 1-byte Spill
je LBB6_2
## %bb.1:
movb $1, %al
movb %al, -22(%rbp) ## 1-byte Spill
jmp LBB6_2
LBB6_2:
movb -22(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
cmpl $1, %eax
jne LBB6_4
## %bb.3:
leaq L_.str.15(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB6_5
LBB6_4:
leaq L_.str.16(%rip), %rdi
movb $0, %al
callq _printf
LBB6_5:
movq -8(%rbp), %rax
movzbl 1(%rax), %ecx
sarl $5, %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, %ecx
movb %al, -23(%rbp) ## 1-byte Spill
je LBB6_7
## %bb.6:
movb $1, %al
movb %al, -23(%rbp) ## 1-byte Spill
jmp LBB6_7
LBB6_7:
movb -23(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
cmpl $1, %eax
jne LBB6_9
## %bb.8:
leaq L_.str.17(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB6_10
LBB6_9:
leaq L_.str.18(%rip), %rdi
movb $0, %al
callq _printf
LBB6_10:
movq -8(%rbp), %rax
movzbl 6(%rax), %eax
cmpl $0, %eax
jne LBB6_12
## %bb.11:
leaq L_.str.19(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.20(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB6_37
LBB6_12:
leaq L_.str.21(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movzbl 1(%rax), %eax
sarl $4, %eax
andl $1, %eax
cmpl $1, %eax
jne LBB6_14
## %bb.13:
leaq L_.str.22(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB6_15
LBB6_14:
leaq L_.str.23(%rip), %rdi
movb $0, %al
callq _printf
LBB6_15:
leaq L_.str.24(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movzbl 1(%rax), %eax
sarl $3, %eax
andl $1, %eax
cmpl $0, %eax
jne LBB6_18
## %bb.16:
movq -8(%rbp), %rax
movzbl 1(%rax), %eax
sarl $3, %eax
andl $1, %eax
cmpl $0, %eax
jne LBB6_18
## %bb.17:
leaq L_.str.25(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB6_23
LBB6_18:
movq -8(%rbp), %rax
movzbl 1(%rax), %eax
sarl $3, %eax
andl $1, %eax
cmpl $0, %eax
jne LBB6_21
## %bb.19:
movq -8(%rbp), %rax
movzbl 1(%rax), %eax
sarl $3, %eax
andl $1, %eax
cmpl $1, %eax
jne LBB6_21
## %bb.20:
leaq L_.str.26(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB6_22
LBB6_21:
leaq L_.str.27(%rip), %rdi
movb $0, %al
callq _printf
LBB6_22:
jmp LBB6_23
LBB6_23:
leaq L_.str.28(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movzbl 1(%rax), %eax
andl $3, %eax
## kill: def $al killed $al killed $eax
movb %al, -21(%rbp)
movzbl -21(%rbp), %eax
cmpl $0, %eax
jne LBB6_25
## %bb.24:
leaq L_.str.29(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB6_34
LBB6_25:
movzbl -21(%rbp), %eax
cmpl $1, %eax
jne LBB6_27
## %bb.26:
leaq L_.str.30(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB6_33
LBB6_27:
movzbl -21(%rbp), %eax
cmpl $2, %eax
jne LBB6_29
## %bb.28:
leaq L_.str.31(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB6_32
LBB6_29:
movzbl -21(%rbp), %eax
cmpl $3, %eax
jne LBB6_31
## %bb.30:
leaq L_.str.32(%rip), %rdi
movb $0, %al
callq _printf
LBB6_31:
jmp LBB6_32
LBB6_32:
jmp LBB6_33
LBB6_33:
jmp LBB6_34
LBB6_34:
movl $0, -12(%rbp)
movq -8(%rbp), %rax
movzbl 2(%rax), %eax
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
shll $8, %eax
movq -8(%rbp), %rcx
movzbl 3(%rcx), %ecx
orl %ecx, %eax
movl %eax, -12(%rbp)
movl $0, -16(%rbp)
movq -8(%rbp), %rax
movzbl 4(%rax), %eax
movl %eax, -16(%rbp)
movl -16(%rbp), %eax
shll $8, %eax
movq -8(%rbp), %rcx
movzbl 5(%rcx), %ecx
orl %ecx, %eax
movl %eax, -16(%rbp)
movl -12(%rbp), %esi
movl -16(%rbp), %edx
leaq L_.str.33(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movzbl 6(%rax), %esi
leaq L_.str.34(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movzbl 7(%rax), %eax
cmpl $0, %eax
jg LBB6_36
## %bb.35:
leaq L_.str.35(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.36(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.37(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.38(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB6_37
LBB6_36:
movq -8(%rbp), %rax
movzbl 7(%rax), %esi
leaq L_.str.39(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movb %al, -24(%rbp) ## 1-byte Spill
callq _printf
## kill: def $ecx killed $eax
movb -24(%rbp), %al ## 1-byte Reload
movq -8(%rbp), %rcx
movzbl 8(%rcx), %esi
leaq L_.str.40(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -24(%rbp), %al ## 1-byte Reload
movq -8(%rbp), %rcx
movzbl 9(%rcx), %esi
leaq L_.str.41(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -24(%rbp), %al ## 1-byte Reload
movq -8(%rbp), %rcx
movzbl 10(%rcx), %esi
leaq L_.str.42(%rip), %rdi
callq _printf
movq -8(%rbp), %rax
movzbl 11(%rax), %eax
movl %eax, -20(%rbp)
movl -20(%rbp), %eax
shll $8, %eax
movq -8(%rbp), %rcx
movzbl 12(%rcx), %ecx
orl %ecx, %eax
movl %eax, -20(%rbp)
movl -20(%rbp), %eax
shll $8, %eax
movq -8(%rbp), %rcx
movzbl 13(%rcx), %ecx
orl %ecx, %eax
movl %eax, -20(%rbp)
movl -20(%rbp), %eax
## kill: def $rax killed $eax
cvtsi2sd %rax, %xmm0
movsd LCPI6_1(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
movsd LCPI6_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movsd LCPI6_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
leaq L_.str.43(%rip), %rdi
movb $1, %al
callq _printf
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.37(%rip), %rdi
movb $0, %al
callq _printf
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fflush
LBB6_37:
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 $160, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -132(%rbp)
LBB7_1: ## =>This Loop Header: Depth=1
## Child Loop BB7_8 Depth 2
## Child Loop BB7_15 Depth 2
## Child Loop BB7_17 Depth 3
## Child Loop BB7_22 Depth 3
## Child Loop BB7_31 Depth 2
callq _print_welcome
movb %al, -133(%rbp)
movsbl -133(%rbp), %eax
cmpl $49, %eax
jne LBB7_29
## %bb.2: ## in Loop: Header=BB7_1 Depth=1
callq _clear_screen
leaq L_.str.44(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.45(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.46(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.47(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fflush
callq _option_selected
movb %al, -134(%rbp)
movsbl -134(%rbp), %eax
cmpl $113, %eax
jne LBB7_4
## %bb.3: ## in Loop: Header=BB7_1 Depth=1
callq _print_welcome
jmp LBB7_28
LBB7_4: ## in Loop: Header=BB7_1 Depth=1
callq _open_port
movl %eax, -140(%rbp)
cmpl $0, -140(%rbp)
jge LBB7_6
## %bb.5:
movl $0, -132(%rbp)
jmp LBB7_37
LBB7_6: ## in Loop: Header=BB7_1 Depth=1
movb $-86, -141(%rbp)
movsbl -134(%rbp), %eax
cmpl $49, %eax
jne LBB7_13
## %bb.7: ## in Loop: Header=BB7_1 Depth=1
jmp LBB7_8
LBB7_8: ## Parent Loop BB7_1 Depth=1
## => This Inner Loop Header: Depth=2
callq _kbhit
cmpl $0, %eax
setne %al
xorb $-1, %al
testb $1, %al
jne LBB7_9
jmp LBB7_12
LBB7_9: ## in Loop: Header=BB7_8 Depth=2
movl -140(%rbp), %edi
leaq L_.str.48(%rip), %rsi
movl $2, %edx
callq _write
movl -140(%rbp), %edi
leaq -112(%rbp), %rsi
movl $100, %edx
callq _read
cmpq $0, %rax
jge LBB7_11
## %bb.10: ## in Loop: Header=BB7_8 Depth=2
leaq L_.str.49(%rip), %rdi
callq _perror
LBB7_11: ## in Loop: Header=BB7_8 Depth=2
leaq -112(%rbp), %rdi
callq _parse_and_print
movl $1, %edi
callq _sleep
jmp LBB7_8
LBB7_12: ## in Loop: Header=BB7_1 Depth=1
callq _getchar
movl -140(%rbp), %edi
callq _close
jmp LBB7_27
LBB7_13: ## in Loop: Header=BB7_1 Depth=1
movsbl -134(%rbp), %eax
cmpl $50, %eax
jne LBB7_26
## %bb.14: ## in Loop: Header=BB7_1 Depth=1
jmp LBB7_15
LBB7_15: ## Parent Loop BB7_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB7_17 Depth 3
## Child Loop BB7_22 Depth 3
callq _kbhit
cmpl $0, %eax
setne %al
xorb $-1, %al
testb $1, %al
jne LBB7_16
jmp LBB7_25
LBB7_16: ## in Loop: Header=BB7_15 Depth=2
movl $1, -148(%rbp)
LBB7_17: ## Parent Loop BB7_1 Depth=1
## Parent Loop BB7_15 Depth=2
## => This Inner Loop Header: Depth=3
movzbl -112(%rbp), %eax
movzbl -141(%rbp), %ecx
cmpl %ecx, %eax
je LBB7_21
## %bb.18: ## in Loop: Header=BB7_17 Depth=3
movl -140(%rbp), %edi
leaq -112(%rbp), %rsi
movl $100, %edx
callq _read
cmpq $0, %rax
jge LBB7_20
## %bb.19: ## in Loop: Header=BB7_17 Depth=3
leaq L_.str.49(%rip), %rdi
callq _perror
LBB7_20: ## in Loop: Header=BB7_17 Depth=3
jmp LBB7_17
LBB7_21: ## in Loop: Header=BB7_15 Depth=2
jmp LBB7_22
LBB7_22: ## Parent Loop BB7_1 Depth=1
## Parent Loop BB7_15 Depth=2
## => This Inner Loop Header: Depth=3
cmpl $14, -148(%rbp)
jge LBB7_24
## %bb.23: ## in Loop: Header=BB7_22 Depth=3
movl -140(%rbp), %edi
leaq -112(%rbp), %rsi
movl $10, %edx
callq _read
movb -112(%rbp), %cl
movslq -148(%rbp), %rax
movb %cl, -128(%rbp,%rax)
movl -148(%rbp), %eax
addl $1, %eax
movl %eax, -148(%rbp)
jmp LBB7_22
LBB7_24: ## in Loop: Header=BB7_15 Depth=2
leaq -128(%rbp), %rdi
callq _parse_and_print
jmp LBB7_15
LBB7_25: ## in Loop: Header=BB7_1 Depth=1
callq _getchar
movl -140(%rbp), %edi
callq _close
LBB7_26: ## in Loop: Header=BB7_1 Depth=1
jmp LBB7_27
LBB7_27: ## in Loop: Header=BB7_1 Depth=1
jmp LBB7_28
LBB7_28: ## in Loop: Header=BB7_1 Depth=1
jmp LBB7_36
LBB7_29: ## in Loop: Header=BB7_1 Depth=1
movsbl -133(%rbp), %eax
cmpl $50, %eax
jne LBB7_34
## %bb.30: ## in Loop: Header=BB7_1 Depth=1
callq _clear_screen
leaq L_.str.50(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.51(%rip), %rdi
movb $0, %al
callq _printf
LBB7_31: ## Parent Loop BB7_1 Depth=1
## => This Inner Loop Header: Depth=2
callq _kbhit
cmpl $0, %eax
setne %al
xorb $-1, %al
testb $1, %al
jne LBB7_32
jmp LBB7_33
LBB7_32: ## in Loop: Header=BB7_31 Depth=2
jmp LBB7_31
LBB7_33: ## in Loop: Header=BB7_1 Depth=1
callq _getchar
jmp LBB7_35
LBB7_34:
leaq L_.str.52(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.53(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -132(%rbp)
jmp LBB7_37
LBB7_35: ## in Loop: Header=BB7_1 Depth=1
jmp LBB7_36
LBB7_36: ## in Loop: Header=BB7_1 Depth=1
callq _getchar
jmp LBB7_1
LBB7_37:
movl -132(%rbp), %eax
movl %eax, -152(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB7_39
## %bb.38:
movl -152(%rbp), %eax ## 4-byte Reload
addq $160, %rsp
popq %rbp
retq
LBB7_39:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function kbhit
_kbhit: ## @kbhit
.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 $0, -80(%rbp)
movl $0, -72(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -224(%rbp) ## 16-byte Spill
movaps %xmm0, -96(%rbp)
movaps %xmm0, -112(%rbp)
movaps %xmm0, -128(%rbp)
movaps %xmm0, -144(%rbp)
movaps %xmm0, -160(%rbp)
movaps %xmm0, -176(%rbp)
movaps %xmm0, -192(%rbp)
movaps %xmm0, -208(%rbp)
movl $0, -52(%rbp)
leaq -208(%rbp), %rax
movq %rax, -64(%rbp)
movl -52(%rbp), %ecx
movq -64(%rbp), %rax
movl %ecx, -8(%rbp)
movq %rax, -16(%rbp)
movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax
testq %rax, %rax
je LBB8_2
jmp LBB8_1
LBB8_1:
movl -8(%rbp), %edi
movq -16(%rbp), %rsi
xorl %edx, %edx
callq ___darwin_check_fd_set_overflow
movl %eax, -4(%rbp)
jmp LBB8_3
LBB8_2:
movl $1, -4(%rbp)
LBB8_3:
cmpl $0, -4(%rbp)
je LBB8_5
## %bb.4:
movslq -52(%rbp), %rcx
andq $31, %rcx
movl $1, %eax
## kill: def $cl killed $rcx
shlq %cl, %rax
movl %eax, %edx
movq -64(%rbp), %rax
movslq -52(%rbp), %rcx
shrq $5, %rcx
orl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
LBB8_5:
xorl %eax, %eax
movl %eax, %ecx
movl $1, %edi
leaq -208(%rbp), %rsi
movq %rsi, -232(%rbp) ## 8-byte Spill
leaq -80(%rbp), %r8
movq %rcx, %rdx
callq _select$1050
## kill: def $ecx killed $eax
movq -232(%rbp), %rax ## 8-byte Reload
movl $0, -40(%rbp)
movq %rax, -48(%rbp)
movl -40(%rbp), %ecx
movq -48(%rbp), %rax
movl %ecx, -24(%rbp)
movq %rax, -32(%rbp)
movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax
testq %rax, %rax
je LBB8_7
jmp LBB8_6
LBB8_6:
movl -24(%rbp), %edi
movq -32(%rbp), %rsi
xorl %edx, %edx
callq ___darwin_check_fd_set_overflow
movl %eax, -20(%rbp)
jmp LBB8_8
LBB8_7:
movl $1, -20(%rbp)
LBB8_8:
cmpl $0, -20(%rbp)
je LBB8_10
## %bb.9:
movq -48(%rbp), %rax
movslq -40(%rbp), %rcx
shrq $5, %rcx
movl (%rax,%rcx,4), %eax
movslq -40(%rbp), %rcx
andq $31, %rcx
movl $1, %edx
## kill: def $cl killed $rcx
shlq %cl, %rdx
movq %rdx, %rcx
## kill: def $ecx killed $ecx killed $rcx
andl %ecx, %eax
movl %eax, -36(%rbp)
jmp LBB8_11
LBB8_10:
movl $0, -36(%rbp)
LBB8_11:
movl -36(%rbp), %eax
addq $240, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function nonblock
_nonblock: ## @nonblock
.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 %edi, -84(%rbp)
xorl %edi, %edi
leaq -80(%rbp), %rsi
callq _tcgetattr
cmpl $1, -84(%rbp)
jne LBB9_2
## %bb.1:
movq -56(%rbp), %rax
andq $-257, %rax ## imm = 0xFEFF
movq %rax, -56(%rbp)
movb $1, -32(%rbp)
jmp LBB9_5
LBB9_2:
cmpl $0, -84(%rbp)
jne LBB9_4
## %bb.3:
movq -56(%rbp), %rax
orq $256, %rax ## imm = 0x100
movq %rax, -56(%rbp)
LBB9_4:
jmp LBB9_5
LBB9_5:
xorl %esi, %esi
leaq -80(%rbp), %rdx
movl %esi, %edi
callq _tcsetattr
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB9_7
## %bb.6:
addq $96, %rsp
popq %rbp
retq
LBB9_7:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "tcgetattr"
L_.str.1: ## @.str.1
.asciz "tcsetattr"
L_.str.2: ## @.str.2
.asciz "tggetattr"
L_.str.3: ## @.str.3
.asciz "error %d setting term attributes\n"
L_.str.4: ## @.str.4
.asciz "**************FPGA FIRMWARE DEBUGGER*************\n"
L_.str.5: ## @.str.5
.asciz "Chose your device\n"
L_.str.6: ## @.str.6
.asciz "\n1-HDMI2USB\n"
L_.str.7: ## @.str.7
.asciz "\n2-HDMI2ETHERNET\n"
L_.str.8: ## @.str.8
.asciz "\nq-QUIT\n"
L_.str.9: ## @.str.9
.asciz "\nTo select press [1/2/q]: "
L_.str.10: ## @.str.10
.asciz "\n"
L_.str.11: ## @.str.11
.asciz "Portname of selected device: "
L_.str.12: ## @.str.12
.asciz "%s"
L_.str.13: ## @.str.13
.asciz "error %d opening %s: %s\n"
L_.str.14: ## @.str.14
.asciz "\033[2J\033[1;1H"
L_.str.15: ## @.str.15
.asciz "HDMI 0 is connected\n"
L_.str.16: ## @.str.16
.asciz "HDMI 0 is not connected\n"
L_.str.17: ## @.str.17
.asciz "HDMI 1 is connected\n"
L_.str.18: ## @.str.18
.asciz "HDMI 1 is not connected\n"
L_.str.19: ## @.str.19
.asciz "\n***CONNECT INPUT SOURCE***\n\n\n"
L_.str.20: ## @.str.20
.asciz "Press ENTER to return\n\n"
L_.str.21: ## @.str.21
.asciz "Output Format: "
L_.str.22: ## @.str.22
.asciz "JPEG\n"
L_.str.23: ## @.str.23
.asciz "RAW\n"
L_.str.24: ## @.str.24
.asciz "Selected Source: "
L_.str.25: ## @.str.25
.asciz "HDMI 0\n"
L_.str.26: ## @.str.26
.asciz "HDMI 1\n"
L_.str.27: ## @.str.27
.asciz "Test Pattern\n"
L_.str.28: ## @.str.28
.asciz "Encoding Quality: "
L_.str.29: ## @.str.29
.asciz "100%%\n"
L_.str.30: ## @.str.30
.asciz "85%%\n"
L_.str.31: ## @.str.31
.asciz "75%%\n"
L_.str.32: ## @.str.32
.asciz "50%%\n"
L_.str.33: ## @.str.33
.asciz "Input Resolution: %ux%u\n"
L_.str.34: ## @.str.34
.asciz "Input Frame Rate: %hhu fps\n"
L_.str.35: ## @.str.35
.asciz "Output Frame Rate: 0 fps\n"
L_.str.36: ## @.str.36
.asciz "\n***START/RESTART USB STREAMING***\n\n"
L_.str.37: ## @.str.37
.asciz "Press ENTER to return"
L_.str.38: ## @.str.38
.asciz "\n\n"
L_.str.39: ## @.str.39
.asciz "Output Frame Rate: %hhu fps\n"
L_.str.40: ## @.str.40
.asciz "Frame Write Time: %hhu ms\n"
L_.str.41: ## @.str.41
.asciz "Frame Processing Time: %hhu ms\n"
L_.str.42: ## @.str.42
.asciz "No. of Frames Dropped: %hhu fps\n"
L_.str.43: ## @.str.43
.asciz "Frame Size: %f Mbytes\n"
L_.str.44: ## @.str.44
.asciz "Chose Debugging Output Method\n"
L_.str.45: ## @.str.45
.asciz "\n1- CDC\n"
L_.str.46: ## @.str.46
.asciz "\n2- UART\n"
L_.str.47: ## @.str.47
.asciz "\nq- Return\n"
L_.str.48: ## @.str.48
.asciz "DS"
L_.str.49: ## @.str.49
.asciz "read"
L_.str.50: ## @.str.50
.asciz "Packets are on their way....feature coming soon\n"
L_.str.51: ## @.str.51
.asciz "Press ENTER to return\n"
L_.str.52: ## @.str.52
.asciz "Thank You\n"
L_.str.53: ## @.str.53
.asciz "TimVideos - World wide Leader in Live Event Streaming\n"
L_.str.54: ## @.str.54
.asciz "\033[1;1H\033[2J"
L_.str.55: ## @.str.55
.asciz "\nInvalid Input\n"
L_.str.56: ## @.str.56
.asciz " To select press [1/2/q]: "
.subsections_via_symbols
| the_stack_data/179831363.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/112400.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_recursive_power ; -- Begin function ft_recursive_power
.p2align 2
_ft_recursive_power: ; @ft_recursive_power
.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]
str w8, [sp, #16]
ldr w8, [sp, #16]
ldr w9, [sp, #16]
ldur w10, [x29, #-8]
mul w9, w9, w10
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
stur wzr, [x29, #-4]
b LBB0_9
LBB0_2:
ldur w8, [x29, #-12]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr w8, [sp, #16]
str w8, [sp, #12] ; 4-byte Folded Spill
ldr w0, [sp, #16]
ldur w8, [x29, #-12]
subs w1, w8, #1
bl _ft_recursive_power
ldr w8, [sp, #12] ; 4-byte Folded Reload
mul w8, w8, w0
stur w8, [x29, #-4]
b LBB0_9
LBB0_4:
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_9
LBB0_6:
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
stur wzr, [x29, #-4]
b LBB0_9
LBB0_8:
ldr w8, [sp, #16]
stur w8, [x29, #-4]
b LBB0_9
LBB0_9:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_recursive_power ## -- Begin function ft_recursive_power
.p2align 4, 0x90
_ft_recursive_power: ## @ft_recursive_power
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -8(%rbp)
movl %esi, -12(%rbp)
movl -8(%rbp), %eax
movl %eax, -16(%rbp)
movl -16(%rbp), %eax
movl -16(%rbp), %ecx
imull -8(%rbp), %ecx
cmpl %ecx, %eax
jle LBB0_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB0_9
LBB0_2:
cmpl $1, -12(%rbp)
jle LBB0_4
## %bb.3:
movl -16(%rbp), %eax
movl %eax, -20(%rbp) ## 4-byte Spill
movl -16(%rbp), %edi
movl -12(%rbp), %esi
subl $1, %esi
callq _ft_recursive_power
movl %eax, %ecx
movl -20(%rbp), %eax ## 4-byte Reload
imull %ecx, %eax
movl %eax, -4(%rbp)
jmp LBB0_9
LBB0_4:
cmpl $0, -12(%rbp)
jne LBB0_6
## %bb.5:
movl $1, -4(%rbp)
jmp LBB0_9
LBB0_6:
cmpl $0, -12(%rbp)
jge LBB0_8
## %bb.7:
movl $0, -4(%rbp)
jmp LBB0_9
LBB0_8:
movl -16(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_9:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/92326288.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]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_2 Depth 2
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #12
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
stur wzr, [x29, #-16]
b LBB0_2
LBB0_2: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-16]
subs w8, w8, #10
cset w8, gt
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_2 Depth=2
ldur w8, [x29, #-12]
; implicit-def: $x11
mov x11, x8
ldur w9, [x29, #-16]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-12]
ldur w10, [x29, #-16]
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.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_2 Depth=2
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB0_2
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
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, #8
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_1
b LBB0_7
LBB0_7:
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 "----------TABUADA----------\n"
l_.str.1: ; @.str.1
.asciz "Digite um numero: "
l_.str.2: ; @.str.2
.asciz "%i"
l_.str.3: ; @.str.3
.asciz "%i x %i = %i\n"
l_.str.4: ; @.str.4
.asciz "---------------------------\n"
l_.str.5: ; @.str.5
.asciz "Deseja testar outro numero ?\n[0]Nao\n[1]Sim\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)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_2 Depth 2
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -16(%rbp)
LBB0_2: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $10, -16(%rbp)
jg LBB0_5
## %bb.3: ## in Loop: Header=BB0_2 Depth=2
movl -12(%rbp), %esi
movl -16(%rbp), %edx
movl -12(%rbp), %ecx
imull -16(%rbp), %ecx
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
## %bb.4: ## in Loop: Header=BB0_2 Depth=2
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_2
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
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.2(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -8(%rbp)
jne LBB0_1
## %bb.7:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "----------TABUADA----------\n"
L_.str.1: ## @.str.1
.asciz "Digite um numero: "
L_.str.2: ## @.str.2
.asciz "%i"
L_.str.3: ## @.str.3
.asciz "%i x %i = %i\n"
L_.str.4: ## @.str.4
.asciz "---------------------------\n"
L_.str.5: ## @.str.5
.asciz "Deseja testar outro numero ?\n[0]Nao\n[1]Sim\n"
.subsections_via_symbols
| the_stack_data/64201429.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/237641928.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/73763.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]
fmov s0, #1.00000000
stur s0, [x29, #-16]
fmov s0, #10.00000000
stur s0, [x29, #-12]
fmov s0, #15.00000000
stur s0, [x29, #-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 s0, [x29, #-16]
fcvt d2, s0
ldur s0, [x29, #-12]
fcvt d1, s0
ldur s0, [x29, #-8]
fcvt d0, s0
mov x8, sp
str d2, [x8]
str d1, [x8, #8]
str d0, [x8, #16]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov w8, #1
str w8, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #24]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
bl _MostrarEstados
ldur w0, [x29, #-20]
bl _EscolherEstado
stur w0, [x29, #-20]
ldur w0, [x29, #-20]
sub x1, x29, #16
bl _ExecutarTarefa
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #24
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
b LBB0_1
LBB0_3:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _MostrarEstados ; -- Begin function MostrarEstados
.p2align 2
_MostrarEstados: ; @MostrarEstados
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x0, l_.str.24@PAGE
add x0, x0, l_.str.24@PAGEOFF
bl _printf
adrp x0, l_.str.25@PAGE
add x0, x0, l_.str.25@PAGEOFF
bl _printf
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _EscolherEstado ; -- Begin function EscolherEstado
.p2align 2
_EscolherEstado: ; @EscolherEstado
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
stur wzr, [x29, #-8]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB2_10
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
adrp x0, l_.str.26@PAGE
add x0, x0, l_.str.26@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #4
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
ldur w8, [x29, #-4]
stur w8, [x29, #-12] ; 4-byte Folded Spill
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB2_5
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldur w8, [x29, #-12] ; 4-byte Folded Reload
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB2_6
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_1 Depth=1
ldur w8, [x29, #-12] ; 4-byte Folded Reload
subs w8, w8, #3
cset w8, eq
tbnz w8, #0, LBB2_7
b LBB2_8
LBB2_5: ; in Loop: Header=BB2_1 Depth=1
adrp x0, l_.str.27@PAGE
add x0, x0, l_.str.27@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-8]
b LBB2_9
LBB2_6: ; in Loop: Header=BB2_1 Depth=1
adrp x0, l_.str.28@PAGE
add x0, x0, l_.str.28@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-8]
b LBB2_9
LBB2_7: ; in Loop: Header=BB2_1 Depth=1
adrp x0, l_.str.29@PAGE
add x0, x0, l_.str.29@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-8]
b LBB2_9
LBB2_8: ; in Loop: Header=BB2_1 Depth=1
adrp x0, l_.str.30@PAGE
add x0, x0, l_.str.30@PAGEOFF
bl _printf
bl _MostrarEstados
b LBB2_9
LBB2_9: ; in Loop: Header=BB2_1 Depth=1
b LBB2_1
LBB2_10:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _ExecutarTarefa ; -- Begin function ExecutarTarefa
.p2align 2
_ExecutarTarefa: ; @ExecutarTarefa
.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]
ldur w8, [x29, #-4]
str w8, [sp, #12] ; 4-byte Folded Spill
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB3_3
b LBB3_1
LBB3_1:
ldr w8, [sp, #12] ; 4-byte Folded Reload
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB3_4
b LBB3_2
LBB3_2:
ldr w8, [sp, #12] ; 4-byte Folded Reload
subs w8, w8, #3
cset w8, eq
tbnz w8, #0, LBB3_5
b LBB3_6
LBB3_3:
ldr x0, [sp, #16]
bl _Escreve_txt
b LBB3_6
LBB3_4:
ldr x0, [sp, #16]
bl _Atualiza
b LBB3_6
LBB3_5:
ldr x8, [sp, #16]
ldr s0, [x8]
ldr s1, [x8, #4]
ldr s2, [x8, #8]
bl _Imprime
b LBB3_6
LBB3_6:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _Imprime ; -- Begin function Imprime
.p2align 2
_Imprime: ; @Imprime
.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 s0, [x29, #-12]
stur s1, [x29, #-8]
stur s2, [x29, #-4]
ldur s0, [x29, #-12]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
ldur s0, [x29, #-8]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
ldur s0, [x29, #-4]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _Atualiza ; -- Begin function Atualiza
.p2align 2
_Atualiza: ; @Atualiza
.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.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
bl _scanf
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
add x8, x8, #4
mov x9, sp
str x8, [x9]
bl _scanf
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
add x8, x8, #8
mov x9, sp
str x8, [x9]
bl _scanf
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldr s0, [x8]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.16@PAGE
add x0, x0, l_.str.16@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldr s0, [x8, #4]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.17@PAGE
add x0, x0, l_.str.17@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldr s0, [x8, #8]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.18@PAGE
add x0, x0, l_.str.18@PAGEOFF
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _Endereco_Valor ; -- Begin function Endereco_Valor
.p2align 2
_Endereco_Valor: ; @Endereco_Valor
.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.19@PAGE
add x0, x0, l_.str.19@PAGEOFF
bl _printf
adrp x0, l_.str.20@PAGE
add x0, x0, l_.str.20@PAGEOFF
bl _printf
ldur x9, [x29, #-8]
ldur x8, [x29, #-8]
ldr s0, [x8]
fcvt d0, s0
mov x8, sp
str x9, [x8]
str d0, [x8, #8]
adrp x0, l_.str.21@PAGE
add x0, x0, l_.str.21@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
bl _printf
adrp x0, l_.str.22@PAGE
add x0, x0, l_.str.22@PAGEOFF
bl _printf
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
add x9, x8, #4
ldur x8, [x29, #-8]
ldr s0, [x8, #4]
fcvt d0, s0
mov x8, sp
str x9, [x8]
str d0, [x8, #8]
bl _printf
adrp x0, l_.str.23@PAGE
add x0, x0, l_.str.23@PAGEOFF
bl _printf
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
add x9, x8, #8
ldur x8, [x29, #-8]
ldr s0, [x8, #8]
fcvt d0, s0
mov x8, sp
str x9, [x8]
str d0, [x8, #8]
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _Escreve_txt ; -- Begin function Escreve_txt
.p2align 2
_Escreve_txt: ; @Escreve_txt
.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.31@PAGE
add x0, x0, l_.str.31@PAGEOFF
adrp x1, l_.str.32@PAGE
add x1, x1, l_.str.32@PAGEOFF
bl _fopen
str x0, [sp, #16]
ldr x0, [sp, #16]
adrp x1, l_.str.33@PAGE
add x1, x1, l_.str.33@PAGEOFF
bl _fprintf
ldr x0, [sp, #16]
ldur x8, [x29, #-8]
ldr s0, [x8]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x1, l_.str.16@PAGE
add x1, x1, l_.str.16@PAGEOFF
bl _fprintf
ldr x0, [sp, #16]
ldur x8, [x29, #-8]
ldr s0, [x8, #4]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x1, l_.str.17@PAGE
add x1, x1, l_.str.17@PAGEOFF
bl _fprintf
ldr x0, [sp, #16]
ldur x8, [x29, #-8]
ldr s0, [x8, #8]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x1, l_.str.18@PAGE
add x1, x1, l_.str.18@PAGEOFF
bl _fprintf
ldr x0, [sp, #16]
bl _fclose
adrp x0, l_.str.34@PAGE
add x0, x0, l_.str.34@PAGEOFF
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\n===> Maquina de Estados Inicializada <===\n"
l_.str.1: ; @.str.1
.asciz "\nValores padrao:\n"
l_.str.2: ; @.str.2
.asciz "Modo = %f;\nAbertura em t = %fs;\nTempo de abertura = %f s.\n"
l_.str.3: ; @.str.3
.asciz "\nDeseja inserir um novo estado? \n0 - NAO\n1 - SIM\n"
l_.str.4: ; @.str.4
.asciz "Sua escolha: "
l_.str.5: ; @.str.5
.asciz "%d"
l_.str.6: ; @.str.6
.asciz "\nPrograma finalizado.\n"
l_.str.7: ; @.str.7
.asciz "\n --> Modo de Operacao = %f;"
l_.str.8: ; @.str.8
.asciz "\n --> Abertura da valvula em t = %f s;"
l_.str.9: ; @.str.9
.asciz "\n --> Tempo de abertura da valvula = %f s.\n"
l_.str.10: ; @.str.10
.asciz "\nDigite os novos valores para:\n"
l_.str.11: ; @.str.11
.asciz "Modo de Operacao: "
l_.str.12: ; @.str.12
.asciz "%f"
l_.str.13: ; @.str.13
.asciz "Abertura da valvula de vazao de ar: "
l_.str.14: ; @.str.14
.asciz "Tempo de abertura da valvula de vazao de ar: "
l_.str.15: ; @.str.15
.asciz "\nValores atualizados:\n"
l_.str.16: ; @.str.16
.asciz "\n - Modo = %f;"
l_.str.17: ; @.str.17
.asciz "\n - Abertura da valvula em t = %f s;"
l_.str.18: ; @.str.18
.asciz "\n - Tempo de abertura da valvula = %f s.\n"
l_.str.19: ; @.str.19
.asciz "\nEnderecos e valores das variaveis atuais:\n"
l_.str.20: ; @.str.20
.asciz "\nModo de operacao:"
l_.str.21: ; @.str.21
.asciz "\n - Endereco = %p\n - Valor = %f\n"
l_.str.22: ; @.str.22
.asciz "\nAbertura da valvula de vazao de ar:"
l_.str.23: ; @.str.23
.asciz "\nTempo de abertura da valvula:"
l_.str.24: ; @.str.24
.asciz "\nEstados Disponiveis:\n"
l_.str.25: ; @.str.25
.asciz "\n 1. Escrever um arquivo;\n 2. Adicionar novos valores;\n 3. Mostrar valores atuais.\n"
l_.str.26: ; @.str.26
.asciz "\nInsira um novo estado: "
l_.str.27: ; @.str.27
.asciz "\n1. Escrevendo um arquivo...\n"
l_.str.28: ; @.str.28
.asciz "\n2. Adicionando novos valores...\n"
l_.str.29: ; @.str.29
.asciz "\n3. Apresentando valores atuais...\n"
l_.str.30: ; @.str.30
.asciz "\nEntrada invalida."
l_.str.31: ; @.str.31
.asciz "struct.txt"
l_.str.32: ; @.str.32
.asciz "w"
l_.str.33: ; @.str.33
.asciz "\nValores atuais:\n"
l_.str.34: ; @.str.34
.asciz "... Escrita concluida.\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 0x41700000 ## float 15
LCPI0_1:
.long 0x41200000 ## float 10
LCPI0_2:
.long 0x3f800000 ## float 1
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movss LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -16(%rbp)
movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -12(%rbp)
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -8(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movss -12(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
movss -8(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero
cvtss2sd %xmm2, %xmm2
leaq L_.str.2(%rip), %rdi
movb $3, %al
callq _printf
movl $1, -24(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $1, -24(%rbp)
jne LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
callq _MostrarEstados
movl -20(%rbp), %edi
callq _EscolherEstado
movl %eax, -20(%rbp)
movl -20(%rbp), %edi
leaq -16(%rbp), %rsi
callq _ExecutarTarefa
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.5(%rip), %rdi
leaq -24(%rbp), %rsi
movb $0, %al
callq _scanf
jmp LBB0_1
LBB0_3:
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _MostrarEstados ## -- Begin function MostrarEstados
.p2align 4, 0x90
_MostrarEstados: ## @MostrarEstados
.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.24(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.25(%rip), %rdi
movb $0, %al
callq _printf
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _EscolherEstado ## -- Begin function EscolherEstado
.p2align 4, 0x90
_EscolherEstado: ## @EscolherEstado
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movl $0, -8(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -8(%rbp)
jne LBB2_8
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
leaq L_.str.26(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movb %al, -13(%rbp) ## 1-byte Spill
callq _printf
## kill: def $ecx killed $eax
movb -13(%rbp), %al ## 1-byte Reload
leaq L_.str.5(%rip), %rdi
leaq -4(%rbp), %rsi
callq _scanf
movl -4(%rbp), %eax
movl %eax, -12(%rbp) ## 4-byte Spill
subl $1, %eax
je LBB2_3
jmp LBB2_9
LBB2_9: ## in Loop: Header=BB2_1 Depth=1
movl -12(%rbp), %eax ## 4-byte Reload
subl $2, %eax
je LBB2_4
jmp LBB2_10
LBB2_10: ## in Loop: Header=BB2_1 Depth=1
movl -12(%rbp), %eax ## 4-byte Reload
subl $3, %eax
je LBB2_5
jmp LBB2_6
LBB2_3: ## in Loop: Header=BB2_1 Depth=1
leaq L_.str.27(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -8(%rbp)
jmp LBB2_7
LBB2_4: ## in Loop: Header=BB2_1 Depth=1
leaq L_.str.28(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -8(%rbp)
jmp LBB2_7
LBB2_5: ## in Loop: Header=BB2_1 Depth=1
leaq L_.str.29(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -8(%rbp)
jmp LBB2_7
LBB2_6: ## in Loop: Header=BB2_1 Depth=1
leaq L_.str.30(%rip), %rdi
movb $0, %al
callq _printf
callq _MostrarEstados
LBB2_7: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_1
LBB2_8:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _ExecutarTarefa ## -- Begin function ExecutarTarefa
.p2align 4, 0x90
_ExecutarTarefa: ## @ExecutarTarefa
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movl -4(%rbp), %eax
movl %eax, -36(%rbp) ## 4-byte Spill
subl $1, %eax
je LBB3_1
jmp LBB3_5
LBB3_5:
movl -36(%rbp), %eax ## 4-byte Reload
subl $2, %eax
je LBB3_2
jmp LBB3_6
LBB3_6:
movl -36(%rbp), %eax ## 4-byte Reload
subl $3, %eax
je LBB3_3
jmp LBB3_4
LBB3_1:
movq -16(%rbp), %rdi
callq _Escreve_txt
jmp LBB3_4
LBB3_2:
movq -16(%rbp), %rdi
callq _Atualiza
jmp LBB3_4
LBB3_3:
movq -16(%rbp), %rax
movl 8(%rax), %ecx
movl %ecx, -24(%rbp)
movq (%rax), %rax
movq %rax, -32(%rbp)
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
movss -24(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
callq _Imprime
LBB3_4:
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Imprime ## -- Begin function Imprime
.p2align 4, 0x90
_Imprime: ## @Imprime
.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
movlpd %xmm0, -32(%rbp)
movss %xmm1, -24(%rbp)
movq -32(%rbp), %rax
movq %rax, -16(%rbp)
movl -24(%rbp), %eax
movl %eax, -8(%rbp)
movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.7(%rip), %rdi
movb $1, %al
callq _printf
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.8(%rip), %rdi
movb $1, %al
callq _printf
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.9(%rip), %rdi
movb $1, %al
callq _printf
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Atualiza ## -- Begin function Atualiza
.p2align 4, 0x90
_Atualiza: ## @Atualiza
.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.10(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rsi
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _scanf
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rsi
addq $4, %rsi
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _scanf
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rsi
addq $8, %rsi
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _scanf
leaq L_.str.15(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.16(%rip), %rdi
movb $1, %al
callq _printf
movq -8(%rbp), %rax
movss 4(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.17(%rip), %rdi
movb $1, %al
callq _printf
movq -8(%rbp), %rax
movss 8(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.18(%rip), %rdi
movb $1, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Endereco_Valor ## -- Begin function Endereco_Valor
.p2align 4, 0x90
_Endereco_Valor: ## @Endereco_Valor
.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.19(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.20(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rsi
movq -8(%rbp), %rax
movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.21(%rip), %rdi
movb $1, %al
callq _printf
leaq L_.str.22(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rsi
addq $4, %rsi
movq -8(%rbp), %rax
movss 4(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.21(%rip), %rdi
movb $1, %al
callq _printf
leaq L_.str.23(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rsi
addq $8, %rsi
movq -8(%rbp), %rax
movss 8(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.21(%rip), %rdi
movb $1, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Escreve_txt ## -- Begin function Escreve_txt
.p2align 4, 0x90
_Escreve_txt: ## @Escreve_txt
.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.31(%rip), %rdi
leaq L_.str.32(%rip), %rsi
callq _fopen
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
leaq L_.str.33(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rdi
movq -8(%rbp), %rax
movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.16(%rip), %rsi
movb $1, %al
callq _fprintf
movq -16(%rbp), %rdi
movq -8(%rbp), %rax
movss 4(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.17(%rip), %rsi
movb $1, %al
callq _fprintf
movq -16(%rbp), %rdi
movq -8(%rbp), %rax
movss 8(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.18(%rip), %rsi
movb $1, %al
callq _fprintf
movq -16(%rbp), %rdi
callq _fclose
leaq L_.str.34(%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 "\n===> Maquina de Estados Inicializada <===\n"
L_.str.1: ## @.str.1
.asciz "\nValores padrao:\n"
L_.str.2: ## @.str.2
.asciz "Modo = %f;\nAbertura em t = %fs;\nTempo de abertura = %f s.\n"
L_.str.3: ## @.str.3
.asciz "\nDeseja inserir um novo estado? \n0 - NAO\n1 - SIM\n"
L_.str.4: ## @.str.4
.asciz "Sua escolha: "
L_.str.5: ## @.str.5
.asciz "%d"
L_.str.6: ## @.str.6
.asciz "\nPrograma finalizado.\n"
L_.str.7: ## @.str.7
.asciz "\n --> Modo de Operacao = %f;"
L_.str.8: ## @.str.8
.asciz "\n --> Abertura da valvula em t = %f s;"
L_.str.9: ## @.str.9
.asciz "\n --> Tempo de abertura da valvula = %f s.\n"
L_.str.10: ## @.str.10
.asciz "\nDigite os novos valores para:\n"
L_.str.11: ## @.str.11
.asciz "Modo de Operacao: "
L_.str.12: ## @.str.12
.asciz "%f"
L_.str.13: ## @.str.13
.asciz "Abertura da valvula de vazao de ar: "
L_.str.14: ## @.str.14
.asciz "Tempo de abertura da valvula de vazao de ar: "
L_.str.15: ## @.str.15
.asciz "\nValores atualizados:\n"
L_.str.16: ## @.str.16
.asciz "\n - Modo = %f;"
L_.str.17: ## @.str.17
.asciz "\n - Abertura da valvula em t = %f s;"
L_.str.18: ## @.str.18
.asciz "\n - Tempo de abertura da valvula = %f s.\n"
L_.str.19: ## @.str.19
.asciz "\nEnderecos e valores das variaveis atuais:\n"
L_.str.20: ## @.str.20
.asciz "\nModo de operacao:"
L_.str.21: ## @.str.21
.asciz "\n - Endereco = %p\n - Valor = %f\n"
L_.str.22: ## @.str.22
.asciz "\nAbertura da valvula de vazao de ar:"
L_.str.23: ## @.str.23
.asciz "\nTempo de abertura da valvula:"
L_.str.24: ## @.str.24
.asciz "\nEstados Disponiveis:\n"
L_.str.25: ## @.str.25
.asciz "\n 1. Escrever um arquivo;\n 2. Adicionar novos valores;\n 3. Mostrar valores atuais.\n"
L_.str.26: ## @.str.26
.asciz "\nInsira um novo estado: "
L_.str.27: ## @.str.27
.asciz "\n1. Escrevendo um arquivo...\n"
L_.str.28: ## @.str.28
.asciz "\n2. Adicionando novos valores...\n"
L_.str.29: ## @.str.29
.asciz "\n3. Apresentando valores atuais...\n"
L_.str.30: ## @.str.30
.asciz "\nEntrada invalida."
L_.str.31: ## @.str.31
.asciz "struct.txt"
L_.str.32: ## @.str.32
.asciz "w"
L_.str.33: ## @.str.33
.asciz "\nValores atuais:\n"
L_.str.34: ## @.str.34
.asciz "... Escrita concluida.\n"
.subsections_via_symbols
| the_stack_data/140766508.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov w8, #1
stur w8, [x29, #-8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #11
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur s1, [x29, #-8]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
fmov d1, #2.00000000
bl _pow
str d0, [sp, #16]
ldur w8, [x29, #-8]
; implicit-def: $x9
mov x9, x8
ldr d0, [sp, #16]
mov x8, sp
str x9, [x8]
str d0, [x8, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB0_1
LBB0_4:
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d^2 = %g\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI0_0:
.quad 0x4000000000000000 ## double 2
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $1, -8(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $11, -8(%rbp)
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
cvtsi2sdl -8(%rbp), %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
callq _pow
movsd %xmm0, -16(%rbp)
movl -8(%rbp), %esi
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str(%rip), %rdi
movb $1, %al
callq _printf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_4:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d^2 = %g\n"
.subsections_via_symbols
| the_stack_data/90571.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _readLine ; -- Begin function readLine
.p2align 2
_readLine: ; @readLine
.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]
adrp x8, _readLine.line@PAGE
add x8, x8, _readLine.line@PAGEOFF
str x8, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_2 Depth 2
ldur w0, [x29, #-4]
ldr x1, [sp, #8]
mov x2, #255
bl _read
mov x8, x0
stur w8, [x29, #-8]
b LBB0_2
LBB0_2: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_6
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_2 Depth=2
ldr x8, [sp, #8]
ldrsb w8, [x8]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
ldr x8, [sp, #8]
strb wzr, [x8]
adrp x0, _readLine.line@PAGE
add x0, x0, _readLine.line@PAGEOFF
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
LBB0_5: ; in Loop: Header=BB0_2 Depth=2
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
ldur w8, [x29, #-8]
subs w8, w8, #1
stur w8, [x29, #-8]
b LBB0_2
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
.cfi_endproc
; -- End function
.globl _uart_test ; -- Begin function uart_test
.p2align 2
_uart_test: ; @uart_test
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov w1, #131074
bl _open
str w0, [sp, #52]
ldr w0, [sp, #52]
add x1, sp, #64
str x1, [sp, #32] ; 8-byte Folded Spill
bl _tcgetattr
ldr x2, [sp, #32] ; 8-byte Folded Reload
mov x8, #51968
movk x8, #1, lsl #16
str x8, [sp, #80]
mov x8, #4
str x8, [sp, #64]
str xzr, [sp, #72]
str xzr, [sp, #88]
ldr w0, [sp, #52]
mov w1, #0
bl _tcsetattr
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x8, [x8]
str x8, [sp, #24] ; 8-byte Folded Spill
bl ___error
mov x8, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
mov w8, #-1
str w8, [sp, #60]
b LBB1_7
LBB1_2:
ldr w0, [sp, #52]
mov w1, #1
bl _tcflush
mov w8, #48
str w8, [sp, #56]
b LBB1_3
LBB1_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #56]
subs w8, w8, #126
cset w8, gt
tbnz w8, #0, LBB1_6
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=1
adrp x8, l___const.uart_test.i@PAGE
add x8, x8, l___const.uart_test.i@PAGEOFF
ldrh w9, [x8]
add x1, sp, #48
strh w9, [sp, #48]
ldrb w8, [x8, #2]
strb w8, [sp, #50]
ldr w8, [sp, #56]
strb w8, [sp, #48]
ldr w0, [sp, #52]
mov x2, #3
bl _write
ldr w0, [sp, #52]
bl _readLine
str x0, [sp, #40]
ldr x8, [sp, #40]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=1
ldr w8, [sp, #56]
add w8, w8, #1
str w8, [sp, #56]
b LBB1_3
LBB1_6:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr w0, [sp, #52]
bl _close
str wzr, [sp, #60]
b LBB1_7
LBB1_7:
ldr w8, [sp, #60]
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, LBB1_9
b LBB1_8
LBB1_8:
bl ___stack_chk_fail
LBB1_9:
ldr w0, [sp, #20] ; 4-byte Folded Reload
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
add sp, sp, #160
ret
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_readLine.line,256,0 ; @readLine.line
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "/dev/ttyS4"
l_.str.1: ; @.str.1
.asciz "error %d from tcsetattr"
.section __TEXT,__const
l___const.uart_test.i: ; @__const.uart_test.i
.ascii "9\r\n"
.section __TEXT,__cstring,cstring_literals
l_.str.2: ; @.str.2
.asciz "%s"
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 _readLine ## -- Begin function readLine
.p2align 4, 0x90
_readLine: ## @readLine
.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)
leaq _readLine.line(%rip), %rax
movq %rax, -24(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_2 Depth 2
movl -4(%rbp), %edi
movq -24(%rbp), %rsi
movl $255, %edx
callq _read
## kill: def $eax killed $eax killed $rax
movl %eax, -8(%rbp)
LBB0_2: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $0, -8(%rbp)
jle LBB0_6
## %bb.3: ## in Loop: Header=BB0_2 Depth=2
movq -24(%rbp), %rax
movsbl (%rax), %eax
cmpl $10, %eax
jne LBB0_5
## %bb.4:
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movb $0, (%rax)
leaq _readLine.line(%rip), %rax
addq $32, %rsp
popq %rbp
retq
LBB0_5: ## in Loop: Header=BB0_2 Depth=2
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
movl -8(%rbp), %eax
addl $-1, %eax
movl %eax, -8(%rbp)
jmp LBB0_2
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
.cfi_endproc
## -- End function
.globl _uart_test ## -- Begin function uart_test
.p2align 4, 0x90
_uart_test: ## @uart_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 $128, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq L_.str(%rip), %rdi
movl $131074, %esi ## imm = 0x20002
movb $0, %al
callq _open
movl %eax, -92(%rbp)
movl -92(%rbp), %edi
leaq -80(%rbp), %rsi
callq _tcgetattr
movq $117504, -64(%rbp) ## imm = 0x1CB00
movq $4, -80(%rbp)
movq $0, -72(%rbp)
movq $0, -56(%rbp)
movl -92(%rbp), %edi
xorl %esi, %esi
leaq -80(%rbp), %rdx
callq _tcsetattr
cmpl $0, %eax
je LBB1_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -112(%rbp) ## 8-byte Spill
callq ___error
movq -112(%rbp), %rdi ## 8-byte Reload
movl (%rax), %edx
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _fprintf
movl $-1, -84(%rbp)
jmp LBB1_7
LBB1_2:
movl -92(%rbp), %edi
movl $1, %esi
callq _tcflush
movl $48, -88(%rbp)
LBB1_3: ## =>This Inner Loop Header: Depth=1
cmpl $126, -88(%rbp)
jg LBB1_6
## %bb.4: ## in Loop: Header=BB1_3 Depth=1
movw l___const.uart_test.i(%rip), %ax
movw %ax, -95(%rbp)
movb l___const.uart_test.i+2(%rip), %al
movb %al, -93(%rbp)
movl -88(%rbp), %eax
## kill: def $al killed $al killed $eax
movb %al, -95(%rbp)
movl -92(%rbp), %edi
leaq -95(%rbp), %rsi
movl $3, %edx
callq _write
movl -92(%rbp), %edi
callq _readLine
movq %rax, -104(%rbp)
movq -104(%rbp), %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.5: ## in Loop: Header=BB1_3 Depth=1
movl -88(%rbp), %eax
addl $1, %eax
movl %eax, -88(%rbp)
jmp LBB1_3
LBB1_6:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl -92(%rbp), %edi
callq _close
movl $0, -84(%rbp)
LBB1_7:
movl -84(%rbp), %eax
movl %eax, -116(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_9
## %bb.8:
movl -116(%rbp), %eax ## 4-byte Reload
addq $128, %rsp
popq %rbp
retq
LBB1_9:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_readLine.line,256,4 ## @readLine.line
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "/dev/ttyS4"
L_.str.1: ## @.str.1
.asciz "error %d from tcsetattr"
.section __TEXT,__const
l___const.uart_test.i: ## @__const.uart_test.i
.ascii "9\r\n"
.section __TEXT,__cstring,cstring_literals
L_.str.2: ## @.str.2
.asciz "%s"
L_.str.3: ## @.str.3
.asciz "\n"
.subsections_via_symbols
| the_stack_data/62637944.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 0x40f86a0000000000 ; double 1.0E+5
lCPI0_1:
.quad 0x40c3880000000000 ; double 1.0E+4
lCPI0_2:
.quad 0x408f400000000000 ; double 1000
lCPI0_3:
.quad 0x4059000000000000 ; double 100
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub sp, sp, #1712
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #140]
str w0, [sp, #136]
str x1, [sp, #128]
ldr w8, [sp, #136]
subs w8, w8, #2
cset w8, lt
mov w9, #0
str w9, [sp, #28] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #1
str w8, [sp, #28] ; 4-byte Folded Spill
b LBB0_2
LBB0_2:
ldr w8, [sp, #28] ; 4-byte Folded Reload
eor w9, w8, #0x1
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x0, l___func__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
mov w2, #11
adrp x3, l_.str.2@PAGE
add x3, x3, l_.str.2@PAGEOFF
bl ___assert_rtn
LBB0_4:
b LBB0_5
LBB0_5:
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x0, [x8]
adrp x1, _main.stdoutBuffer@PAGE
add x1, x1, _main.stdoutBuffer@PAGEOFF
mov w2, #0
mov x3, #8192
bl _setvbuf
ldr x8, [sp, #128]
ldr x0, [x8, #8]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fopen
str x0, [sp, #120]
ldr x8, [sp, #120]
subs x8, x8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #24] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
mov w8, #1
str w8, [sp, #24] ; 4-byte Folded Spill
b LBB0_7
LBB0_7:
ldr w8, [sp, #24] ; 4-byte Folded Reload
eor w9, w8, #0x1
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
adrp x0, l___func__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
mov w2, #20
adrp x3, l_.str.5@PAGE
add x3, x3, l_.str.5@PAGEOFF
bl ___assert_rtn
LBB0_9:
b LBB0_10
LBB0_10:
add x0, sp, #1192
mov x1, #512
bl _bzero
b LBB0_11
LBB0_11: ; =>This Loop Header: Depth=1
; Child Loop BB0_13 Depth 2
; Child Loop BB0_29 Depth 2
; Child Loop BB0_49 Depth 2
; Child Loop BB0_68 Depth 3
; Child Loop BB0_72 Depth 3
ldr x2, [sp, #120]
add x0, sp, #1192
mov w1, #512
bl _fgets
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_81
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=1
add x8, sp, #1192
str x8, [sp, #112]
add x0, sp, #168
mov x1, #1024
bl _bzero
str xzr, [sp, #104]
str wzr, [sp, #100]
b LBB0_13
LBB0_13: ; Parent Loop BB0_11 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #112]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_28
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=2
ldr x8, [sp, #112]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
tbnz w8, #0, LBB0_17
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_13 Depth=2
ldr x8, [sp, #112]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, gt
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_13 Depth=2
ldr w8, [sp, #100]
mov w9, #10
mul w8, w8, w9
ldr x9, [sp, #112]
ldrsb w9, [x9]
subs w9, w9, #48
add w8, w8, w9
str w8, [sp, #100]
b LBB0_23
LBB0_17: ; in Loop: Header=BB0_13 Depth=2
ldr x8, [sp, #112]
ldrsb w8, [x8]
subs w8, w8, #32
cset w8, ne
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_13 Depth=2
ldr w8, [sp, #100]
ldr x10, [sp, #104]
add x9, x10, #1
str x9, [sp, #104]
add x9, sp, #168
str w8, [x9, x10, lsl #2]
str wzr, [sp, #100]
b LBB0_22
LBB0_19: ; in Loop: Header=BB0_13 Depth=2
ldr x8, [sp, #112]
ldrsb w8, [x8]
subs w8, w8, #58
cset w8, ne
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #112]
add x8, x8, #1
str x8, [sp, #112]
b LBB0_28
LBB0_21: ; in Loop: Header=BB0_13 Depth=2
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_13 Depth=2
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_13 Depth=2
ldr x8, [sp, #104]
subs x8, x8, #256
cset w9, hs
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_25
b LBB0_24
LBB0_24:
adrp x0, l___func__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
mov w2, #50
adrp x3, l_.str.6@PAGE
add x3, x3, l_.str.6@PAGEOFF
bl ___assert_rtn
LBB0_25: ; in Loop: Header=BB0_13 Depth=2
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_13 Depth=2
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_13 Depth=2
ldr x8, [sp, #112]
add x8, x8, #1
str x8, [sp, #112]
b LBB0_13
LBB0_28: ; in Loop: Header=BB0_11 Depth=1
add x8, sp, #160
str xzr, [sp, #160]
str x8, [sp, #88]
b LBB0_29
LBB0_29: ; Parent Loop BB0_11 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #112]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
tbnz w8, #0, LBB0_32
b LBB0_30
LBB0_30: ; in Loop: Header=BB0_29 Depth=2
ldr x8, [sp, #112]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, gt
tbnz w8, #0, LBB0_32
b LBB0_31
LBB0_31: ; in Loop: Header=BB0_29 Depth=2
ldr x8, [sp, #88]
ldr w8, [x8]
mov w9, #10
mul w8, w8, w9
ldr x9, [sp, #112]
ldrsb w9, [x9]
subs w9, w9, #48
add w8, w8, w9
ldr x9, [sp, #88]
str w8, [x9]
b LBB0_43
LBB0_32: ; in Loop: Header=BB0_29 Depth=2
ldr x8, [sp, #112]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB0_34
b LBB0_33
LBB0_33: ; in Loop: Header=BB0_29 Depth=2
ldr x8, [sp, #88]
add x8, x8, #4
str x8, [sp, #88]
b LBB0_42
LBB0_34: ; in Loop: Header=BB0_29 Depth=2
ldr x8, [sp, #112]
ldrsb w8, [x8]
subs w8, w8, #44
cset w8, eq
tbnz w8, #0, LBB0_37
b LBB0_35
LBB0_35: ; in Loop: Header=BB0_29 Depth=2
ldr x8, [sp, #112]
ldrsb w8, [x8]
subs w8, w8, #10
cset w8, eq
tbnz w8, #0, LBB0_37
b LBB0_36
LBB0_36: ; in Loop: Header=BB0_29 Depth=2
ldr x8, [sp, #112]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_41
b LBB0_37
LBB0_37: ; in Loop: Header=BB0_29 Depth=2
add x8, sp, #160
ldr w9, [sp, #160]
; kill: def $x9 killed $w9
add x10, sp, #168
ldr w9, [x10, x9, lsl #2]
str w9, [sp, #84]
ldr w9, [sp, #164]
; kill: def $x9 killed $w9
ldr w9, [x10, x9, lsl #2]
ldr w11, [sp, #160]
; kill: def $x11 killed $w11
str w9, [x10, x11, lsl #2]
ldr w9, [sp, #84]
ldr w11, [sp, #164]
; kill: def $x11 killed $w11
str w9, [x10, x11, lsl #2]
str wzr, [sp, #164]
str wzr, [sp, #160]
str x8, [sp, #88]
ldr x8, [sp, #112]
ldrsb w8, [x8]
subs w8, w8, #10
cset w8, eq
tbnz w8, #0, LBB0_39
b LBB0_38
LBB0_38: ; in Loop: Header=BB0_29 Depth=2
ldr x8, [sp, #112]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_40
b LBB0_39
LBB0_39: ; in Loop: Header=BB0_11 Depth=1
b LBB0_48
LBB0_40: ; in Loop: Header=BB0_29 Depth=2
b LBB0_41
LBB0_41: ; in Loop: Header=BB0_29 Depth=2
b LBB0_42
LBB0_42: ; in Loop: Header=BB0_29 Depth=2
b LBB0_43
LBB0_43: ; in Loop: Header=BB0_29 Depth=2
ldr x8, [sp, #88]
add x9, sp, #160
subs x8, x8, x9
mov x9, #4
sdiv x8, x8, x9
subs x8, x8, #2
cset w9, ge
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_45
b LBB0_44
LBB0_44:
adrp x0, l___func__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
mov w2, #75
adrp x3, l_.str.7@PAGE
add x3, x3, l_.str.7@PAGEOFF
bl ___assert_rtn
LBB0_45: ; in Loop: Header=BB0_29 Depth=2
b LBB0_46
LBB0_46: ; in Loop: Header=BB0_29 Depth=2
b LBB0_47
LBB0_47: ; in Loop: Header=BB0_29 Depth=2
ldr x8, [sp, #112]
add x8, x8, #1
str x8, [sp, #112]
b LBB0_29
LBB0_48: ; in Loop: Header=BB0_11 Depth=1
add x8, sp, #1192
str x8, [sp, #72]
str xzr, [sp, #64]
b LBB0_49
LBB0_49: ; Parent Loop BB0_11 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_68 Depth 3
; Child Loop BB0_72 Depth 3
ldr x8, [sp, #64]
ldr x9, [sp, #104]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_80
b LBB0_50
LBB0_50: ; in Loop: Header=BB0_49 Depth=2
str xzr, [sp, #144]
str xzr, [sp, #152]
ldr x9, [sp, #64]
add x8, sp, #168
ldr s1, [x8, x9, lsl #2]
; implicit-def: $d0
fmov s0, s1
ucvtf d0, d0
fmov d1, #10.00000000
fcmp d0, d1
cset w8, pl
tbnz w8, #0, LBB0_52
b LBB0_51
LBB0_51: ; in Loop: Header=BB0_49 Depth=2
mov w8, #1
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB0_62
LBB0_52: ; in Loop: Header=BB0_49 Depth=2
ldr x9, [sp, #64]
add x8, sp, #168
ldr s1, [x8, x9, lsl #2]
; implicit-def: $d0
fmov s0, s1
ucvtf d0, d0
adrp x8, lCPI0_3@PAGE
ldr d1, [x8, lCPI0_3@PAGEOFF]
fcmp d0, d1
cset w8, pl
tbnz w8, #0, LBB0_54
b LBB0_53
LBB0_53: ; in Loop: Header=BB0_49 Depth=2
mov w8, #2
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_61
LBB0_54: ; in Loop: Header=BB0_49 Depth=2
ldr x9, [sp, #64]
add x8, sp, #168
ldr s1, [x8, x9, lsl #2]
; implicit-def: $d0
fmov s0, s1
ucvtf d0, d0
adrp x8, lCPI0_2@PAGE
ldr d1, [x8, lCPI0_2@PAGEOFF]
fcmp d0, d1
cset w8, pl
tbnz w8, #0, LBB0_56
b LBB0_55
LBB0_55: ; in Loop: Header=BB0_49 Depth=2
mov w8, #3
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_60
LBB0_56: ; in Loop: Header=BB0_49 Depth=2
ldr x9, [sp, #64]
add x8, sp, #168
ldr s1, [x8, x9, lsl #2]
; implicit-def: $d0
fmov s0, s1
ucvtf d0, d0
adrp x8, lCPI0_1@PAGE
ldr d1, [x8, lCPI0_1@PAGEOFF]
fcmp d0, d1
cset w8, pl
tbnz w8, #0, LBB0_58
b LBB0_57
LBB0_57: ; in Loop: Header=BB0_49 Depth=2
mov w8, #4
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_59
LBB0_58: ; in Loop: Header=BB0_49 Depth=2
ldr x9, [sp, #64]
add x8, sp, #168
ldr s1, [x8, x9, lsl #2]
; implicit-def: $d0
fmov s0, s1
ucvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fcmp d0, d1
cset w8, mi
and w10, w8, #0x1
mov w8, #5
mov w9, #0
ands w10, w10, #0x1
csel w8, w8, w9, ne
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_59
LBB0_59: ; in Loop: Header=BB0_49 Depth=2
ldr w8, [sp, #8] ; 4-byte Folded Reload
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_60
LBB0_60: ; in Loop: Header=BB0_49 Depth=2
ldr w8, [sp, #12] ; 4-byte Folded Reload
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_61
LBB0_61: ; in Loop: Header=BB0_49 Depth=2
ldr w8, [sp, #16] ; 4-byte Folded Reload
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB0_62
LBB0_62: ; in Loop: Header=BB0_49 Depth=2
ldr w9, [sp, #20] ; 4-byte Folded Reload
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
str x8, [sp, #56]
ldr x8, [sp, #56]
subs x8, x8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_64
b LBB0_63
LBB0_63: ; in Loop: Header=BB0_49 Depth=2
ldr x8, [sp, #56]
subs x8, x8, #16
cset w8, lo
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB0_64
LBB0_64: ; in Loop: Header=BB0_49 Depth=2
ldr w8, [sp, #4] ; 4-byte Folded Reload
eor w9, w8, #0x1
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_66
b LBB0_65
LBB0_65:
adrp x0, l___func__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
mov w2, #94
adrp x3, l_.str.8@PAGE
add x3, x3, l_.str.8@PAGEOFF
bl ___assert_rtn
LBB0_66: ; in Loop: Header=BB0_49 Depth=2
b LBB0_67
LBB0_67: ; in Loop: Header=BB0_49 Depth=2
ldr x9, [sp, #64]
add x8, sp, #168
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #52]
ldr x8, [sp, #56]
str x8, [sp, #40]
b LBB0_68
LBB0_68: ; Parent Loop BB0_11 Depth=1
; Parent Loop BB0_49 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #40]
subs x9, x8, #1
str x9, [sp, #40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_71
b LBB0_69
LBB0_69: ; in Loop: Header=BB0_68 Depth=3
ldr w8, [sp, #52]
mov w10, #10
udiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
add w8, w8, #48
ldr x10, [sp, #40]
add x9, sp, #144
strb w8, [x9, x10]
b LBB0_70
LBB0_70: ; in Loop: Header=BB0_68 Depth=3
ldr w8, [sp, #52]
mov w9, #10
udiv w8, w8, w9
str w8, [sp, #52]
b LBB0_68
LBB0_71: ; in Loop: Header=BB0_49 Depth=2
str xzr, [sp, #32]
b LBB0_72
LBB0_72: ; Parent Loop BB0_11 Depth=1
; Parent Loop BB0_49 Depth=2
; => This Inner Loop Header: Depth=3
ldr x8, [sp, #32]
ldr x9, [sp, #56]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_78
b LBB0_73
LBB0_73: ; in Loop: Header=BB0_72 Depth=3
ldr x9, [sp, #32]
add x8, sp, #144
add x8, x8, x9
ldrb w8, [x8]
ldr x9, [sp, #72]
add x10, x9, #1
str x10, [sp, #72]
strb w8, [x9]
ldr x8, [sp, #72]
add x9, sp, #1192
subs x8, x8, x9
subs x8, x8, #512
cset w9, hs
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_75
b LBB0_74
LBB0_74:
adrp x0, l___func__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
mov w2, #109
adrp x3, l_.str.9@PAGE
add x3, x3, l_.str.9@PAGEOFF
bl ___assert_rtn
LBB0_75: ; in Loop: Header=BB0_72 Depth=3
b LBB0_76
LBB0_76: ; in Loop: Header=BB0_72 Depth=3
b LBB0_77
LBB0_77: ; in Loop: Header=BB0_72 Depth=3
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB0_72
LBB0_78: ; in Loop: Header=BB0_49 Depth=2
ldr x9, [sp, #72]
add x8, x9, #1
str x8, [sp, #72]
mov w8, #32
strb w8, [x9]
b LBB0_79
LBB0_79: ; in Loop: Header=BB0_49 Depth=2
ldr x8, [sp, #64]
add x8, x8, #1
str x8, [sp, #64]
b LBB0_49
LBB0_80: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #72]
strb wzr, [x8]
add x0, sp, #1192
bl _puts
b LBB0_11
LBB0_81:
ldr w8, [sp, #140]
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_83
b LBB0_82
LBB0_82:
bl ___stack_chk_fail
LBB0_83:
ldr w0, [sp] ; 4-byte Folded Reload
add sp, sp, #1712
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 "Expecting at least one command-line argument."
l___func__.main: ; @__func__.main
.asciz "main"
l_.str.1: ; @.str.1
.asciz "90766861.c"
l_.str.2: ; @.str.2
.asciz "argc >= 2 && \"Expecting at least one command-line argument.\""
.zerofill __DATA,__bss,_main.stdoutBuffer,8192,0 ; @main.stdoutBuffer
l_.str.3: ; @.str.3
.asciz "r"
l_.str.4: ; @.str.4
.asciz "Failed to open input stream."
l_.str.5: ; @.str.5
.asciz "inputStream && \"Failed to open input stream.\""
l_.str.6: ; @.str.6
.asciz "numberCount < (sizeof numbers / sizeof *numbers)"
l_.str.7: ; @.str.7
.asciz "(n - positions) < 2"
l_.str.8: ; @.str.8
.asciz "digitCount && digitCount < (sizeof digits / sizeof *digits)"
l_.str.9: ; @.str.9
.asciz "(size_t)(out - lineBuffer) < sizeof lineBuffer"
.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 0x4024000000000000 ## double 10
LCPI0_1:
.quad 0x4059000000000000 ## double 100
LCPI0_2:
.quad 0x408f400000000000 ## double 1000
LCPI0_3:
.quad 0x40c3880000000000 ## double 1.0E+4
LCPI0_4:
.quad 0x40f86a0000000000 ## double 1.0E+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 $1728, %rsp ## imm = 0x6C0
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -1588(%rbp)
movl %edi, -1592(%rbp)
movq %rsi, -1600(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $2, -1592(%rbp)
movb %al, -1697(%rbp) ## 1-byte Spill
jl LBB0_2
## %bb.1:
movb $1, %al
movb %al, -1697(%rbp) ## 1-byte Spill
jmp LBB0_2
LBB0_2:
movb -1697(%rbp), %al ## 1-byte Reload
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_4
## %bb.3:
leaq L___func__.main(%rip), %rdi
leaq L_.str.1(%rip), %rsi
leaq L_.str.2(%rip), %rcx
movl $11, %edx
callq ___assert_rtn
LBB0_4:
jmp LBB0_5
LBB0_5:
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq _main.stdoutBuffer(%rip), %rsi
xorl %edx, %edx
movl $8192, %ecx ## imm = 0x2000
callq _setvbuf
movq -1600(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str.3(%rip), %rsi
callq _fopen
movq %rax, -1608(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq $0, -1608(%rbp)
movb %al, -1698(%rbp) ## 1-byte Spill
je LBB0_7
## %bb.6:
movb $1, %al
movb %al, -1698(%rbp) ## 1-byte Spill
jmp LBB0_7
LBB0_7:
movb -1698(%rbp), %al ## 1-byte Reload
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_9
## %bb.8:
leaq L___func__.main(%rip), %rdi
leaq L_.str.1(%rip), %rsi
leaq L_.str.5(%rip), %rcx
movl $20, %edx
callq ___assert_rtn
LBB0_9:
jmp LBB0_10
LBB0_10:
leaq -528(%rbp), %rdi
xorl %esi, %esi
movl $512, %edx ## imm = 0x200
callq _memset
LBB0_11: ## =>This Loop Header: Depth=1
## Child Loop BB0_13 Depth 2
## Child Loop BB0_29 Depth 2
## Child Loop BB0_49 Depth 2
## Child Loop BB0_68 Depth 3
## Child Loop BB0_72 Depth 3
leaq -528(%rbp), %rdi
movq -1608(%rbp), %rdx
movl $512, %esi ## imm = 0x200
callq _fgets
cmpq $0, %rax
je LBB0_81
## %bb.12: ## in Loop: Header=BB0_11 Depth=1
leaq -528(%rbp), %rax
movq %rax, -1616(%rbp)
leaq -1552(%rbp), %rdi
xorl %esi, %esi
movl $1024, %edx ## imm = 0x400
callq _memset
movq $0, -1624(%rbp)
movl $0, -1628(%rbp)
LBB0_13: ## Parent Loop BB0_11 Depth=1
## => This Inner Loop Header: Depth=2
movq -1616(%rbp), %rax
cmpb $0, (%rax)
je LBB0_28
## %bb.14: ## in Loop: Header=BB0_13 Depth=2
movq -1616(%rbp), %rax
movsbl (%rax), %eax
cmpl $48, %eax
jl LBB0_17
## %bb.15: ## in Loop: Header=BB0_13 Depth=2
movq -1616(%rbp), %rax
movsbl (%rax), %eax
cmpl $57, %eax
jg LBB0_17
## %bb.16: ## in Loop: Header=BB0_13 Depth=2
imull $10, -1628(%rbp), %eax
movq -1616(%rbp), %rcx
movsbl (%rcx), %ecx
subl $48, %ecx
addl %ecx, %eax
movl %eax, -1628(%rbp)
jmp LBB0_23
LBB0_17: ## in Loop: Header=BB0_13 Depth=2
movq -1616(%rbp), %rax
movsbl (%rax), %eax
cmpl $32, %eax
jne LBB0_19
## %bb.18: ## in Loop: Header=BB0_13 Depth=2
movl -1628(%rbp), %ecx
movq -1624(%rbp), %rax
movq %rax, %rdx
addq $1, %rdx
movq %rdx, -1624(%rbp)
movl %ecx, -1552(%rbp,%rax,4)
movl $0, -1628(%rbp)
jmp LBB0_22
LBB0_19: ## in Loop: Header=BB0_13 Depth=2
movq -1616(%rbp), %rax
movsbl (%rax), %eax
cmpl $58, %eax
jne LBB0_21
## %bb.20: ## in Loop: Header=BB0_11 Depth=1
movq -1616(%rbp), %rax
addq $1, %rax
movq %rax, -1616(%rbp)
jmp LBB0_28
LBB0_21: ## in Loop: Header=BB0_13 Depth=2
jmp LBB0_22
LBB0_22: ## in Loop: Header=BB0_13 Depth=2
jmp LBB0_23
LBB0_23: ## in Loop: Header=BB0_13 Depth=2
cmpq $256, -1624(%rbp) ## imm = 0x100
setb %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_25
## %bb.24:
leaq L___func__.main(%rip), %rdi
leaq L_.str.1(%rip), %rsi
leaq L_.str.6(%rip), %rcx
movl $50, %edx
callq ___assert_rtn
LBB0_25: ## in Loop: Header=BB0_13 Depth=2
jmp LBB0_26
LBB0_26: ## in Loop: Header=BB0_13 Depth=2
jmp LBB0_27
LBB0_27: ## in Loop: Header=BB0_13 Depth=2
movq -1616(%rbp), %rax
addq $1, %rax
movq %rax, -1616(%rbp)
jmp LBB0_13
LBB0_28: ## in Loop: Header=BB0_11 Depth=1
leaq -1560(%rbp), %rdi
xorl %esi, %esi
movl $8, %edx
callq _memset
leaq -1560(%rbp), %rax
movq %rax, -1640(%rbp)
LBB0_29: ## Parent Loop BB0_11 Depth=1
## => This Inner Loop Header: Depth=2
movq -1616(%rbp), %rax
movsbl (%rax), %eax
cmpl $48, %eax
jl LBB0_32
## %bb.30: ## in Loop: Header=BB0_29 Depth=2
movq -1616(%rbp), %rax
movsbl (%rax), %eax
cmpl $57, %eax
jg LBB0_32
## %bb.31: ## in Loop: Header=BB0_29 Depth=2
movq -1640(%rbp), %rax
imull $10, (%rax), %ecx
movq -1616(%rbp), %rax
movsbl (%rax), %eax
subl $48, %eax
addl %eax, %ecx
movq -1640(%rbp), %rax
movl %ecx, (%rax)
jmp LBB0_43
LBB0_32: ## in Loop: Header=BB0_29 Depth=2
movq -1616(%rbp), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB0_34
## %bb.33: ## in Loop: Header=BB0_29 Depth=2
movq -1640(%rbp), %rax
addq $4, %rax
movq %rax, -1640(%rbp)
jmp LBB0_42
LBB0_34: ## in Loop: Header=BB0_29 Depth=2
movq -1616(%rbp), %rax
movsbl (%rax), %eax
cmpl $44, %eax
je LBB0_37
## %bb.35: ## in Loop: Header=BB0_29 Depth=2
movq -1616(%rbp), %rax
movsbl (%rax), %eax
cmpl $10, %eax
je LBB0_37
## %bb.36: ## in Loop: Header=BB0_29 Depth=2
movq -1616(%rbp), %rax
cmpb $0, (%rax)
jne LBB0_41
LBB0_37: ## in Loop: Header=BB0_29 Depth=2
movl -1560(%rbp), %eax
## kill: def $rax killed $eax
movl -1552(%rbp,%rax,4), %eax
movl %eax, -1644(%rbp)
movl -1556(%rbp), %eax
## kill: def $rax killed $eax
movl -1552(%rbp,%rax,4), %ecx
movl -1560(%rbp), %eax
## kill: def $rax killed $eax
movl %ecx, -1552(%rbp,%rax,4)
movl -1644(%rbp), %ecx
movl -1556(%rbp), %eax
## kill: def $rax killed $eax
movl %ecx, -1552(%rbp,%rax,4)
movl $0, -1556(%rbp)
movl $0, -1560(%rbp)
leaq -1560(%rbp), %rax
movq %rax, -1640(%rbp)
movq -1616(%rbp), %rax
movsbl (%rax), %eax
cmpl $10, %eax
je LBB0_39
## %bb.38: ## in Loop: Header=BB0_29 Depth=2
movq -1616(%rbp), %rax
cmpb $0, (%rax)
jne LBB0_40
LBB0_39: ## in Loop: Header=BB0_11 Depth=1
jmp LBB0_48
LBB0_40: ## in Loop: Header=BB0_29 Depth=2
jmp LBB0_41
LBB0_41: ## in Loop: Header=BB0_29 Depth=2
jmp LBB0_42
LBB0_42: ## in Loop: Header=BB0_29 Depth=2
jmp LBB0_43
LBB0_43: ## in Loop: Header=BB0_29 Depth=2
movq -1640(%rbp), %rax
leaq -1560(%rbp), %rcx
subq %rcx, %rax
sarq $2, %rax
cmpq $2, %rax
setl %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_45
## %bb.44:
leaq L___func__.main(%rip), %rdi
leaq L_.str.1(%rip), %rsi
leaq L_.str.7(%rip), %rcx
movl $75, %edx
callq ___assert_rtn
LBB0_45: ## in Loop: Header=BB0_29 Depth=2
jmp LBB0_46
LBB0_46: ## in Loop: Header=BB0_29 Depth=2
jmp LBB0_47
LBB0_47: ## in Loop: Header=BB0_29 Depth=2
movq -1616(%rbp), %rax
addq $1, %rax
movq %rax, -1616(%rbp)
jmp LBB0_29
LBB0_48: ## in Loop: Header=BB0_11 Depth=1
leaq -528(%rbp), %rax
movq %rax, -1656(%rbp)
movq $0, -1664(%rbp)
LBB0_49: ## Parent Loop BB0_11 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_68 Depth 3
## Child Loop BB0_72 Depth 3
movq -1664(%rbp), %rax
cmpq -1624(%rbp), %rax
jae LBB0_80
## %bb.50: ## in Loop: Header=BB0_49 Depth=2
xorps %xmm0, %xmm0
movaps %xmm0, -1584(%rbp)
movq -1664(%rbp), %rax
movl -1552(%rbp,%rax,4), %eax
## kill: def $rax killed $eax
cvtsi2sd %rax, %xmm1
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB0_52
## %bb.51: ## in Loop: Header=BB0_49 Depth=2
movl $1, %eax
movl %eax, -1704(%rbp) ## 4-byte Spill
jmp LBB0_62
LBB0_52: ## in Loop: Header=BB0_49 Depth=2
movq -1664(%rbp), %rax
movl -1552(%rbp,%rax,4), %eax
## kill: def $rax killed $eax
cvtsi2sd %rax, %xmm1
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB0_54
## %bb.53: ## in Loop: Header=BB0_49 Depth=2
movl $2, %eax
movl %eax, -1708(%rbp) ## 4-byte Spill
jmp LBB0_61
LBB0_54: ## in Loop: Header=BB0_49 Depth=2
movq -1664(%rbp), %rax
movl -1552(%rbp,%rax,4), %eax
## kill: def $rax killed $eax
cvtsi2sd %rax, %xmm1
movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB0_56
## %bb.55: ## in Loop: Header=BB0_49 Depth=2
movl $3, %eax
movl %eax, -1712(%rbp) ## 4-byte Spill
jmp LBB0_60
LBB0_56: ## in Loop: Header=BB0_49 Depth=2
movq -1664(%rbp), %rax
movl -1552(%rbp,%rax,4), %eax
## kill: def $rax killed $eax
cvtsi2sd %rax, %xmm1
movsd LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB0_58
## %bb.57: ## in Loop: Header=BB0_49 Depth=2
movl $4, %eax
movl %eax, -1716(%rbp) ## 4-byte Spill
jmp LBB0_59
LBB0_58: ## in Loop: Header=BB0_49 Depth=2
movq -1664(%rbp), %rax
movl -1552(%rbp,%rax,4), %eax
## kill: def $rax killed $eax
cvtsi2sd %rax, %xmm1
movsd LCPI0_4(%rip), %xmm0 ## xmm0 = mem[0],zero
xorl %eax, %eax
movl $5, %ecx
ucomisd %xmm1, %xmm0
cmoval %ecx, %eax
movl %eax, -1716(%rbp) ## 4-byte Spill
LBB0_59: ## in Loop: Header=BB0_49 Depth=2
movl -1716(%rbp), %eax ## 4-byte Reload
movl %eax, -1712(%rbp) ## 4-byte Spill
LBB0_60: ## in Loop: Header=BB0_49 Depth=2
movl -1712(%rbp), %eax ## 4-byte Reload
movl %eax, -1708(%rbp) ## 4-byte Spill
LBB0_61: ## in Loop: Header=BB0_49 Depth=2
movl -1708(%rbp), %eax ## 4-byte Reload
movl %eax, -1704(%rbp) ## 4-byte Spill
LBB0_62: ## in Loop: Header=BB0_49 Depth=2
movl -1704(%rbp), %eax ## 4-byte Reload
cltq
movq %rax, -1672(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq $0, -1672(%rbp)
movb %al, -1717(%rbp) ## 1-byte Spill
je LBB0_64
## %bb.63: ## in Loop: Header=BB0_49 Depth=2
cmpq $16, -1672(%rbp)
setb %al
movb %al, -1717(%rbp) ## 1-byte Spill
LBB0_64: ## in Loop: Header=BB0_49 Depth=2
movb -1717(%rbp), %al ## 1-byte Reload
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_66
## %bb.65:
leaq L___func__.main(%rip), %rdi
leaq L_.str.1(%rip), %rsi
leaq L_.str.8(%rip), %rcx
movl $94, %edx
callq ___assert_rtn
LBB0_66: ## in Loop: Header=BB0_49 Depth=2
jmp LBB0_67
LBB0_67: ## in Loop: Header=BB0_49 Depth=2
movq -1664(%rbp), %rax
movl -1552(%rbp,%rax,4), %eax
movl %eax, -1676(%rbp)
movq -1672(%rbp), %rax
movq %rax, -1688(%rbp)
LBB0_68: ## Parent Loop BB0_11 Depth=1
## Parent Loop BB0_49 Depth=2
## => This Inner Loop Header: Depth=3
movq -1688(%rbp), %rax
movq %rax, %rcx
addq $-1, %rcx
movq %rcx, -1688(%rbp)
cmpq $0, %rax
je LBB0_71
## %bb.69: ## in Loop: Header=BB0_68 Depth=3
movl -1676(%rbp), %eax
movl $10, %ecx
xorl %edx, %edx
divl %ecx
addl $48, %edx
movb %dl, %cl
movq -1688(%rbp), %rax
movb %cl, -1584(%rbp,%rax)
## %bb.70: ## in Loop: Header=BB0_68 Depth=3
movl -1676(%rbp), %eax
movl $10, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -1676(%rbp)
jmp LBB0_68
LBB0_71: ## in Loop: Header=BB0_49 Depth=2
movq $0, -1696(%rbp)
LBB0_72: ## Parent Loop BB0_11 Depth=1
## Parent Loop BB0_49 Depth=2
## => This Inner Loop Header: Depth=3
movq -1696(%rbp), %rax
cmpq -1672(%rbp), %rax
jae LBB0_78
## %bb.73: ## in Loop: Header=BB0_72 Depth=3
movq -1696(%rbp), %rax
movb -1584(%rbp,%rax), %cl
movq -1656(%rbp), %rax
movq %rax, %rdx
addq $1, %rdx
movq %rdx, -1656(%rbp)
movb %cl, (%rax)
movq -1656(%rbp), %rax
leaq -528(%rbp), %rcx
subq %rcx, %rax
cmpq $512, %rax ## imm = 0x200
setb %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_75
## %bb.74:
leaq L___func__.main(%rip), %rdi
leaq L_.str.1(%rip), %rsi
leaq L_.str.9(%rip), %rcx
movl $109, %edx
callq ___assert_rtn
LBB0_75: ## in Loop: Header=BB0_72 Depth=3
jmp LBB0_76
LBB0_76: ## in Loop: Header=BB0_72 Depth=3
jmp LBB0_77
LBB0_77: ## in Loop: Header=BB0_72 Depth=3
movq -1696(%rbp), %rax
addq $1, %rax
movq %rax, -1696(%rbp)
jmp LBB0_72
LBB0_78: ## in Loop: Header=BB0_49 Depth=2
movq -1656(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -1656(%rbp)
movb $32, (%rax)
## %bb.79: ## in Loop: Header=BB0_49 Depth=2
movq -1664(%rbp), %rax
addq $1, %rax
movq %rax, -1664(%rbp)
jmp LBB0_49
LBB0_80: ## in Loop: Header=BB0_11 Depth=1
movq -1656(%rbp), %rax
movb $0, (%rax)
leaq -528(%rbp), %rdi
callq _puts
jmp LBB0_11
LBB0_81:
movl -1588(%rbp), %eax
movl %eax, -1724(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_83
## %bb.82:
movl -1724(%rbp), %eax ## 4-byte Reload
addq $1728, %rsp ## imm = 0x6C0
popq %rbp
retq
LBB0_83:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Expecting at least one command-line argument."
L___func__.main: ## @__func__.main
.asciz "main"
L_.str.1: ## @.str.1
.asciz "90766861.c"
L_.str.2: ## @.str.2
.asciz "argc >= 2 && \"Expecting at least one command-line argument.\""
.zerofill __DATA,__bss,_main.stdoutBuffer,8192,4 ## @main.stdoutBuffer
L_.str.3: ## @.str.3
.asciz "r"
L_.str.4: ## @.str.4
.asciz "Failed to open input stream."
L_.str.5: ## @.str.5
.asciz "inputStream && \"Failed to open input stream.\""
L_.str.6: ## @.str.6
.asciz "numberCount < (sizeof numbers / sizeof *numbers)"
L_.str.7: ## @.str.7
.asciz "(n - positions) < 2"
L_.str.8: ## @.str.8
.asciz "digitCount && digitCount < (sizeof digits / sizeof *digits)"
L_.str.9: ## @.str.9
.asciz "(size_t)(out - lineBuffer) < sizeof lineBuffer"
.subsections_via_symbols
| the_stack_data/90766861.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_goertzel1D
lCPI0_0:
.quad 0xc01921fb54442d18 ; double -6.2831853071795862
lCPI0_1:
.quad 0x401921fb54442d18 ; double 6.2831853071795862
.section __TEXT,__text,regular,pure_instructions
.globl _init_goertzel1D
.p2align 2
_init_goertzel1D: ; @init_goertzel1D
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur d0, [x29, #-16]
stur w1, [x29, #-20]
stur x2, [x29, #-32]
stur w3, [x29, #-36]
ldur s1, [x29, #-20]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
str d0, [sp, #32]
ldur w8, [x29, #-36]
ldur x9, [x29, #-8]
str w8, [x9]
ldur x8, [x29, #-8]
ldrsw x9, [x8]
mov x8, #8
str x8, [sp, #16] ; 8-byte Folded Spill
mul x0, x8, x9
bl _malloc
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldur x9, [x29, #-8]
str x0, [x9, #8]
ldur x9, [x29, #-8]
ldrsw x9, [x9]
mul x0, x8, x9
bl _malloc
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldur x9, [x29, #-8]
str x0, [x9, #16]
ldur x9, [x29, #-8]
ldrsw x9, [x9]
mul x0, x8, x9
bl _malloc
ldur x8, [x29, #-8]
str x0, [x8, #24]
ldur x8, [x29, #-8]
ldrsw x9, [x8]
mov x8, #16
str x8, [sp, #24] ; 8-byte Folded Spill
mul x0, x8, x9
bl _malloc
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldur x9, [x29, #-8]
str x0, [x9, #32]
ldur x9, [x29, #-8]
ldrsw x9, [x9]
mul x0, x8, x9
bl _malloc
ldur x8, [x29, #-8]
str x0, [x8, #40]
str wzr, [sp, #40]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #40]
ldur x9, [x29, #-8]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-32]
ldrsw x9, [sp, #40]
ldr d0, [x8, x9, lsl #3]
ldur d1, [x29, #-16]
ldr d2, [sp, #32]
fdiv d1, d1, d2
fdiv d0, d0, d1
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldrsw x9, [sp, #40]
str d0, [x8, x9, lsl #3]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldrsw x9, [sp, #40]
ldr d1, [x8, x9, lsl #3]
adrp x8, lCPI0_1@PAGE
ldr d0, [x8, lCPI0_1@PAGEOFF]
fmul d0, d0, d1
ldr d1, [sp, #32]
fdiv d0, d0, d1
ldur x8, [x29, #-8]
ldr x8, [x8, #16]
ldrsw x9, [sp, #40]
str d0, [x8, x9, lsl #3]
ldur x8, [x29, #-8]
ldr x8, [x8, #16]
ldrsw x9, [sp, #40]
ldr d0, [x8, x9, lsl #3]
bl _cos
fmov d1, d0
fmov d0, #2.00000000
fmul d0, d0, d1
ldur x8, [x29, #-8]
ldr x8, [x8, #24]
ldrsw x9, [sp, #40]
str d0, [x8, x9, lsl #3]
ldur x8, [x29, #-8]
ldr x8, [x8, #16]
ldrsw x9, [sp, #40]
ldr d0, [x8, x9, lsl #3]
fneg d0, d0
bl _cos
ldur x8, [x29, #-8]
ldr x8, [x8, #32]
ldrsw x9, [sp, #40]
lsl x9, x9, #4
str d0, [x8, x9]
ldur x8, [x29, #-8]
ldr x8, [x8, #16]
ldrsw x9, [sp, #40]
ldr d0, [x8, x9, lsl #3]
fneg d0, d0
bl _sin
ldur x8, [x29, #-8]
ldr x8, [x8, #32]
ldrsw x9, [sp, #40]
add x8, x8, x9, lsl #4
str d0, [x8, #8]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldrsw x9, [sp, #40]
ldr d1, [x8, x9, lsl #3]
adrp x8, lCPI0_0@PAGE
ldr d0, [x8, lCPI0_0@PAGEOFF]
str d0, [sp, #8] ; 8-byte Folded Spill
fmul d0, d0, d1
ldr d1, [sp, #32]
fmov d2, #1.00000000
str d2, [sp] ; 8-byte Folded Spill
fsub d1, d1, d2
fmul d0, d0, d1
ldr d1, [sp, #32]
fdiv d0, d0, d1
bl _cos
ldr d2, [sp] ; 8-byte Folded Reload
fmov d1, d0
ldr d0, [sp, #8] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8, #40]
ldrsw x9, [sp, #40]
lsl x9, x9, #4
str d1, [x8, x9]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldrsw x9, [sp, #40]
ldr d1, [x8, x9, lsl #3]
fmul d0, d0, d1
ldr d1, [sp, #32]
fsub d1, d1, d2
fmul d0, d0, d1
ldr d1, [sp, #32]
fdiv d0, d0, d1
bl _sin
ldur x8, [x29, #-8]
ldr x8, [x8, #40]
ldrsw x9, [sp, #40]
add x8, x8, x9, lsl #4
str d0, [x8, #8]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #40]
add w8, w8, #1
str w8, [sp, #40]
b LBB0_1
LBB0_4:
mov w0, #0
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _free_goertzel1D ; -- Begin function free_goertzel1D
.p2align 2
_free_goertzel1D: ; @free_goertzel1D
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x0, [x8, #8]
bl _free
ldr x8, [sp, #8]
ldr x0, [x8, #16]
bl _free
ldr x8, [sp, #8]
ldr x0, [x8, #24]
bl _free
ldr x8, [sp, #8]
ldr x0, [x8, #32]
bl _free
ldr x8, [sp, #8]
ldr x0, [x8, #40]
bl _free
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _run_goertzel1D ; -- Begin function run_goertzel1D
.p2align 2
_run_goertzel1D: ; @run_goertzel1D
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
str x0, [sp, #88]
str x1, [sp, #80]
str w2, [sp, #76]
str x3, [sp, #64]
str wzr, [sp, #4]
b LBB2_1
LBB2_1: ; =>This Loop Header: Depth=1
; Child Loop BB2_3 Depth 2
ldr w8, [sp, #4]
ldr x9, [sp, #88]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_8
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
movi d0, #0000000000000000
str d0, [sp, #56]
str d0, [sp, #48]
str d0, [sp, #40]
str wzr, [sp]
b LBB2_3
LBB2_3: ; Parent Loop BB2_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp]
ldr w9, [sp, #76]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_6
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_3 Depth=2
ldr x8, [sp, #80]
ldrsw x9, [sp]
ldr d2, [x8, x9, lsl #3]
ldr x8, [sp, #88]
ldr x8, [x8, #24]
ldrsw x9, [sp, #4]
ldr d0, [x8, x9, lsl #3]
ldr d1, [sp, #48]
fmadd d0, d0, d1, d2
ldr d1, [sp, #40]
fsub d0, d0, d1
str d0, [sp, #56]
ldr d0, [sp, #48]
str d0, [sp, #40]
ldr d0, [sp, #56]
str d0, [sp, #48]
b LBB2_5
LBB2_5: ; in Loop: Header=BB2_3 Depth=2
ldr w8, [sp]
add w8, w8, #1
str w8, [sp]
b LBB2_3
LBB2_6: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #80]
ldr w9, [sp, #76]
subs w9, w9, #1
ldr d2, [x8, w9, sxtw #3]
ldr x8, [sp, #88]
ldr x8, [x8, #24]
ldrsw x9, [sp, #4]
ldr d0, [x8, x9, lsl #3]
ldr d1, [sp, #48]
fmadd d0, d0, d1, d2
ldr d1, [sp, #40]
fsub d0, d0, d1
str d0, [sp, #56]
ldr d2, [sp, #56]
ldr d0, [sp, #48]
ldr x8, [sp, #88]
ldr x8, [x8, #32]
ldrsw x9, [sp, #4]
lsl x9, x9, #4
ldr d1, [x8, x9]
fmsub d0, d0, d1, d2
str d0, [sp, #24]
ldr d0, [sp, #48]
ldr x8, [sp, #88]
ldr x8, [x8, #32]
ldrsw x9, [sp, #4]
add x8, x8, x9, lsl #4
ldr d1, [x8, #8]
fnmul d0, d0, d1
str d0, [sp, #32]
ldr d0, [sp, #24]
ldr x8, [sp, #88]
ldr x8, [x8, #40]
ldrsw x9, [sp, #4]
lsl x9, x9, #4
ldr d1, [x8, x9]
ldr d2, [sp, #32]
ldr x8, [sp, #88]
ldr x8, [x8, #40]
ldrsw x9, [sp, #4]
add x8, x8, x9, lsl #4
ldr d3, [x8, #8]
fmul d2, d2, d3
fnmsub d0, d0, d1, d2
str d0, [sp, #8]
ldr d0, [sp, #24]
ldr x8, [sp, #88]
ldr x8, [x8, #40]
ldrsw x9, [sp, #4]
add x8, x8, x9, lsl #4
ldr d1, [x8, #8]
ldr d2, [sp, #32]
ldr x8, [sp, #88]
ldr x8, [x8, #40]
ldrsw x9, [sp, #4]
lsl x9, x9, #4
ldr d3, [x8, x9]
fmul d2, d2, d3
fmadd d0, d0, d1, d2
str d0, [sp, #16]
ldr d0, [sp, #8]
ldr x8, [sp, #64]
ldrsw x9, [sp, #4]
lsl x9, x9, #4
str d0, [x8, x9]
ldr d0, [sp, #16]
ldr x8, [sp, #64]
ldrsw x9, [sp, #4]
add x8, x8, x9, lsl #4
str d0, [x8, #8]
b LBB2_7
LBB2_7: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB2_1
LBB2_8:
mov w0, #0
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _goertzel1D ; -- Begin function goertzel1D
.p2align 2
_goertzel1D: ; @goertzel1D
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
stp x29, x30, [sp, #128] ; 16-byte Folded Spill
add x29, sp, #128
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
stur d0, [x29, #-24]
stur x2, [x29, #-32]
stur w3, [x29, #-36]
stur x4, [x29, #-48]
add x8, sp, #32
str x8, [sp, #24]
ldr x0, [sp, #24]
ldur d0, [x29, #-24]
ldur w1, [x29, #-12]
ldur x2, [x29, #-32]
ldur w3, [x29, #-36]
bl _init_goertzel1D
str w0, [sp, #20]
ldr w9, [sp, #20]
mov w8, #0
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
ldr w9, [sp, #20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB3_2
LBB3_2:
ldr x0, [sp, #24]
ldur x1, [x29, #-8]
ldur w2, [x29, #-12]
ldur x3, [x29, #-48]
bl _run_goertzel1D
str w0, [sp, #20]
ldr w9, [sp, #20]
mov w8, #0
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3:
ldr w9, [sp, #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
b LBB3_4
LBB3_4:
ldr x0, [sp, #24]
bl _free_goertzel1D
str w0, [sp, #20]
ldr w9, [sp, #20]
mov w8, #0
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB3_6
b LBB3_5
LBB3_5:
ldr w9, [sp, #20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB3_6
LBB3_6:
mov w0, #0
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
add sp, sp, #144
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "ERR: goertzel1D call to init_goertzel1D = %d\n"
l_.str.1: ; @.str.1
.asciz "ERR: goertzel1D call to run_goertzel1D = %d\n"
l_.str.2: ; @.str.2
.asciz "ERR: goertzel1D call to free_goertzel1D = %d\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_goertzel1D
LCPI0_0:
.quad 0x3ff0000000000000 ## double 1
LCPI0_1:
.quad 0xc01921fb54442d18 ## double -6.2831853071795862
LCPI0_2:
.quad 0x4000000000000000 ## double 2
LCPI0_3:
.quad 0x401921fb54442d18 ## double 6.2831853071795862
.section __TEXT,__text,regular,pure_instructions
.globl _init_goertzel1D
.p2align 4, 0x90
_init_goertzel1D: ## @init_goertzel1D
.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)
movsd %xmm0, -16(%rbp)
movl %esi, -20(%rbp)
movq %rdx, -32(%rbp)
movl %ecx, -36(%rbp)
cvtsi2sdl -20(%rbp), %xmm0
movsd %xmm0, -48(%rbp)
movl -36(%rbp), %ecx
movq -8(%rbp), %rax
movl %ecx, (%rax)
movq -8(%rbp), %rax
movslq (%rax), %rdi
shlq $3, %rdi
callq _malloc
movq %rax, %rcx
movq -8(%rbp), %rax
movq %rcx, 8(%rax)
movq -8(%rbp), %rax
movslq (%rax), %rdi
shlq $3, %rdi
callq _malloc
movq %rax, %rcx
movq -8(%rbp), %rax
movq %rcx, 16(%rax)
movq -8(%rbp), %rax
movslq (%rax), %rdi
shlq $3, %rdi
callq _malloc
movq %rax, %rcx
movq -8(%rbp), %rax
movq %rcx, 24(%rax)
movq -8(%rbp), %rax
movslq (%rax), %rdi
shlq $4, %rdi
callq _malloc
movq %rax, %rcx
movq -8(%rbp), %rax
movq %rcx, 32(%rax)
movq -8(%rbp), %rax
movslq (%rax), %rdi
shlq $4, %rdi
callq _malloc
movq %rax, %rcx
movq -8(%rbp), %rax
movq %rcx, 40(%rax)
movl $0, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -40(%rbp), %eax
movq -8(%rbp), %rcx
cmpl (%rcx), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movslq -40(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movsd -16(%rbp), %xmm1 ## xmm1 = mem[0],zero
divsd -48(%rbp), %xmm1
divsd %xmm1, %xmm0
movq -8(%rbp), %rax
movq 8(%rax), %rax
movslq -40(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movslq -40(%rbp), %rcx
movsd LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd (%rax,%rcx,8), %xmm0
divsd -48(%rbp), %xmm0
movq -8(%rbp), %rax
movq 16(%rax), %rax
movslq -40(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -8(%rbp), %rax
movq 16(%rax), %rax
movslq -40(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
callq _cos
movaps %xmm0, %xmm1
movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm1, %xmm0
movq -8(%rbp), %rax
movq 24(%rax), %rax
movslq -40(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -8(%rbp), %rax
movq 16(%rax), %rax
movslq -40(%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
callq _cos
movq -8(%rbp), %rax
movq 32(%rax), %rax
movslq -40(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd %xmm0, (%rax)
movq -8(%rbp), %rax
movq 16(%rax), %rax
movslq -40(%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
callq _sin
movq -8(%rbp), %rax
movq 32(%rax), %rax
movslq -40(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd %xmm0, 8(%rax)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movslq -40(%rbp), %rcx
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd (%rax,%rcx,8), %xmm0
movsd -48(%rbp), %xmm1 ## xmm1 = mem[0],zero
movsd LCPI0_0(%rip), %xmm2 ## xmm2 = mem[0],zero
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
divsd -48(%rbp), %xmm0
callq _cos
movq -8(%rbp), %rax
movq 40(%rax), %rax
movslq -40(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd %xmm0, (%rax)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movslq -40(%rbp), %rcx
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd (%rax,%rcx,8), %xmm0
movsd -48(%rbp), %xmm1 ## xmm1 = mem[0],zero
movsd LCPI0_0(%rip), %xmm2 ## xmm2 = mem[0],zero
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
divsd -48(%rbp), %xmm0
callq _sin
movq -8(%rbp), %rax
movq 40(%rax), %rax
movslq -40(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd %xmm0, 8(%rax)
## %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:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _free_goertzel1D ## -- Begin function free_goertzel1D
.p2align 4, 0x90
_free_goertzel1D: ## @free_goertzel1D
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rdi
callq _free
movq -8(%rbp), %rax
movq 16(%rax), %rdi
callq _free
movq -8(%rbp), %rax
movq 24(%rax), %rdi
callq _free
movq -8(%rbp), %rax
movq 32(%rax), %rdi
callq _free
movq -8(%rbp), %rax
movq 40(%rax), %rdi
callq _free
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _run_goertzel1D ## -- Begin function run_goertzel1D
.p2align 4, 0x90
_run_goertzel1D: ## @run_goertzel1D
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl %edx, -20(%rbp)
movq %rcx, -32(%rbp)
movl $0, -92(%rbp)
LBB2_1: ## =>This Loop Header: Depth=1
## Child Loop BB2_3 Depth 2
movl -92(%rbp), %eax
movq -8(%rbp), %rcx
cmpl (%rcx), %eax
jge LBB2_8
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
xorps %xmm0, %xmm0
movsd %xmm0, -40(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -48(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -56(%rbp)
movl $0, -96(%rbp)
LBB2_3: ## Parent Loop BB2_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -96(%rbp), %eax
movl -20(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB2_6
## %bb.4: ## in Loop: Header=BB2_3 Depth=2
movq -16(%rbp), %rax
movslq -96(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero
movq -8(%rbp), %rax
movq 24(%rax), %rax
movslq -92(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movsd -48(%rbp), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
subsd -56(%rbp), %xmm0
movsd %xmm0, -40(%rbp)
movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -56(%rbp)
movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -48(%rbp)
## %bb.5: ## in Loop: Header=BB2_3 Depth=2
movl -96(%rbp), %eax
addl $1, %eax
movl %eax, -96(%rbp)
jmp LBB2_3
LBB2_6: ## in Loop: Header=BB2_1 Depth=1
movq -16(%rbp), %rax
movl -20(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero
movq -8(%rbp), %rax
movq 24(%rax), %rax
movslq -92(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movsd -48(%rbp), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
subsd -56(%rbp), %xmm0
movsd %xmm0, -40(%rbp)
movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero
movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -8(%rbp), %rax
movq 32(%rax), %rax
movslq -92(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm2 ## xmm2 = 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, -72(%rbp)
movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -8(%rbp), %rax
movq 32(%rax), %rax
movslq -92(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
mulsd 8(%rax), %xmm0
movq %xmm0, %rax
movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, -64(%rbp)
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -8(%rbp), %rax
movq 40(%rax), %rax
movslq -92(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm2 ## xmm2 = mem[0],zero
movsd -64(%rbp), %xmm1 ## xmm1 = mem[0],zero
movq -8(%rbp), %rax
movq 40(%rax), %rax
movslq -92(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
mulsd 8(%rax), %xmm1
movq %xmm1, %rax
movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -88(%rbp)
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -8(%rbp), %rax
movq 40(%rax), %rax
movslq -92(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd 8(%rax), %xmm2 ## xmm2 = mem[0],zero
movsd -64(%rbp), %xmm1 ## xmm1 = mem[0],zero
movq -8(%rbp), %rax
movq 40(%rax), %rax
movslq -92(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
mulsd (%rax), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -80(%rbp)
movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -32(%rbp), %rax
movslq -92(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd %xmm0, (%rax)
movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -32(%rbp), %rax
movslq -92(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movsd %xmm0, 8(%rax)
## %bb.7: ## in Loop: Header=BB2_1 Depth=1
movl -92(%rbp), %eax
addl $1, %eax
movl %eax, -92(%rbp)
jmp LBB2_1
LBB2_8:
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _goertzel1D ## -- Begin function goertzel1D
.p2align 4, 0x90
_goertzel1D: ## @goertzel1D
.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)
movl %esi, -12(%rbp)
movsd %xmm0, -24(%rbp)
movq %rdx, -32(%rbp)
movl %ecx, -36(%rbp)
movq %r8, -48(%rbp)
leaq -96(%rbp), %rax
movq %rax, -104(%rbp)
movq -104(%rbp), %rdi
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
movl -12(%rbp), %esi
movq -32(%rbp), %rdx
movl -36(%rbp), %ecx
callq _init_goertzel1D
movl %eax, -108(%rbp)
xorl %eax, %eax
cmpl -108(%rbp), %eax
je LBB3_2
## %bb.1:
movl -108(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
LBB3_2:
movq -104(%rbp), %rdi
movq -8(%rbp), %rsi
movl -12(%rbp), %edx
movq -48(%rbp), %rcx
callq _run_goertzel1D
movl %eax, -108(%rbp)
xorl %eax, %eax
cmpl -108(%rbp), %eax
je LBB3_4
## %bb.3:
movl -108(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
LBB3_4:
movq -104(%rbp), %rdi
callq _free_goertzel1D
movl %eax, -108(%rbp)
xorl %eax, %eax
cmpl -108(%rbp), %eax
je LBB3_6
## %bb.5:
movl -108(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
LBB3_6:
xorl %eax, %eax
addq $112, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "ERR: goertzel1D call to init_goertzel1D = %d\n"
L_.str.1: ## @.str.1
.asciz "ERR: goertzel1D call to run_goertzel1D = %d\n"
L_.str.2: ## @.str.2
.asciz "ERR: goertzel1D call to free_goertzel1D = %d\n"
.subsections_via_symbols
| the_stack_data/237642889.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mul8_410 ; -- Begin function mul8_410
.p2align 2
_mul8_410: ; @mul8_410
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
add x8, sp, #156
strb w0, [sp, #159]
strb w1, [sp, #158]
strh wzr, [x8]
ldrb w9, [sp, #159]
asr w9, w9, #0
and w9, w9, #0x1
strb w9, [sp, #155]
ldrb w9, [sp, #159]
asr w9, w9, #1
and w9, w9, #0x1
strb w9, [sp, #154]
ldrb w9, [sp, #159]
asr w9, w9, #2
and w9, w9, #0x1
strb w9, [sp, #153]
ldrb w9, [sp, #159]
asr w9, w9, #3
and w9, w9, #0x1
strb w9, [sp, #152]
ldrb w9, [sp, #159]
asr w9, w9, #4
and w9, w9, #0x1
strb w9, [sp, #151]
ldrb w9, [sp, #159]
asr w9, w9, #5
and w9, w9, #0x1
strb w9, [sp, #150]
ldrb w9, [sp, #159]
asr w9, w9, #6
and w9, w9, #0x1
strb w9, [sp, #149]
ldrb w9, [sp, #159]
asr w9, w9, #7
and w9, w9, #0x1
strb w9, [sp, #148]
ldrb w9, [sp, #158]
asr w9, w9, #0
and w9, w9, #0x1
strb w9, [sp, #147]
ldrb w9, [sp, #158]
asr w9, w9, #1
and w9, w9, #0x1
strb w9, [sp, #146]
ldrb w9, [sp, #158]
asr w9, w9, #2
and w9, w9, #0x1
strb w9, [sp, #145]
ldrb w9, [sp, #158]
asr w9, w9, #3
and w9, w9, #0x1
strb w9, [sp, #144]
ldrb w9, [sp, #158]
asr w9, w9, #4
and w9, w9, #0x1
strb w9, [sp, #143]
ldrb w9, [sp, #158]
asr w9, w9, #5
and w9, w9, #0x1
strb w9, [sp, #142]
ldrb w9, [sp, #158]
asr w9, w9, #6
and w9, w9, #0x1
strb w9, [sp, #141]
ldrb w9, [sp, #158]
asr w9, w9, #7
and w9, w9, #0x1
strb w9, [sp, #140]
ldrb w9, [sp, #146]
ldrb w10, [sp, #149]
and w9, w9, w10
ldrb w10, [sp, #155]
and w9, w9, w10
mvn w9, w9
strb w9, [sp, #139]
ldrb w9, [sp, #146]
ldrb w10, [sp, #149]
and w9, w9, w10
ldrb w10, [sp, #155]
and w9, w9, w10
mvn w9, w9
strb w9, [sp, #138]
ldrb w9, [sp, #144]
ldrb w10, [sp, #147]
and w9, w9, w10
ldrb w11, [sp, #144]
ldrb w10, [sp, #146]
bic w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #137]
ldrb w9, [sp, #144]
ldrb w10, [sp, #137]
orr w9, w9, w10
ldrb w10, [sp, #154]
orr w9, w9, w10
mvn w9, w9
strb w9, [sp, #136]
ldrb w9, [sp, #146]
ldrb w10, [sp, #136]
and w9, w9, w10
strb w9, [sp, #135]
ldrb w9, [sp, #138]
ldrb w10, [sp, #143]
orr w9, w9, w10
mvn w9, w9
strb w9, [sp, #134]
ldrb w9, [sp, #142]
strb w9, [sp, #133]
ldrb w9, [sp, #133]
ldrb w10, [sp, #148]
and w9, w9, w10
ldrb w10, [sp, #152]
and w9, w9, w10
mvn w9, w9
strb w9, [sp, #132]
ldrb w9, [sp, #135]
ldrb w10, [sp, #139]
orr w9, w9, w10
strb w9, [sp, #131]
ldrb w9, [sp, #138]
ldrb w10, [sp, #134]
orr w9, w9, w10
mvn w9, w9
strb w9, [sp, #130]
ldrb w9, [sp, #138]
strb w9, [sp, #129]
ldrb w9, [sp, #132]
mvn w9, w9
strb w9, [sp, #128]
ldrb w9, [sp, #132]
ldrb w10, [sp, #133]
orr w9, w9, w10
mvn w9, w9
strb w9, [sp, #127]
ldrb w9, [sp, #128]
strb w9, [sp, #126]
ldrb w9, [sp, #128]
strb w9, [sp, #125]
ldrb w9, [sp, #136]
ldrb w10, [sp, #126]
and w9, w9, w10
strb w9, [sp, #124]
ldrb w9, [sp, #129]
ldrb w10, [sp, #148]
orr w9, w9, w10
mvn w9, w9
strb w9, [sp, #123]
ldrb w9, [sp, #123]
ldrb w10, [sp, #130]
and w9, w9, w10
strb w9, [sp, #122]
ldrb w9, [sp, #124]
ldrb w10, [sp, #131]
and w9, w9, w10
ldrb w10, [sp, #122]
orr w9, w9, w10
mvn w9, w9
strb w9, [sp, #121]
ldrb w9, [sp, #127]
strb w9, [sp, #120]
ldrb w9, [sp, #120]
ldrb w10, [sp, #121]
and w9, w9, w10
ldrb w11, [sp, #120]
ldrb w10, [sp, #122]
bic w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #119]
ldrb w9, [sp, #149]
ldrb w10, [sp, #146]
and w9, w9, w10
strb w9, [sp, #118]
ldrb w9, [sp, #148]
ldrb w10, [sp, #146]
and w9, w9, w10
strb w9, [sp, #117]
ldrb w9, [sp, #135]
strb w9, [sp, #116]
ldrb w9, [sp, #125]
ldrb w10, [sp, #118]
eor w9, w9, w10
strb w9, [sp, #115]
ldrb w9, [sp, #125]
ldrb w10, [sp, #118]
and w9, w9, w10
strb w9, [sp, #114]
ldrb w9, [sp, #114]
ldrb w10, [sp, #117]
eor w9, w9, w10
strb w9, [sp, #113]
ldrb w9, [sp, #114]
ldrb w10, [sp, #117]
and w9, w9, w10
strb w9, [sp, #112]
ldrb w9, [sp, #151]
ldrb w10, [sp, #145]
and w9, w9, w10
strb w9, [sp, #111]
ldrb w9, [sp, #150]
ldrb w10, [sp, #145]
and w9, w9, w10
strb w9, [sp, #110]
ldrb w9, [sp, #149]
ldrb w10, [sp, #145]
and w9, w9, w10
strb w9, [sp, #109]
ldrb w9, [sp, #148]
ldrb w10, [sp, #145]
and w9, w9, w10
strb w9, [sp, #108]
ldrb w9, [sp, #116]
ldrb w10, [sp, #111]
orr w9, w9, w10
strb w9, [sp, #107]
ldrb w9, [sp, #116]
ldrb w10, [sp, #111]
orr w9, w9, w10
strb w9, [sp, #106]
ldrb w9, [sp, #115]
ldrb w10, [sp, #110]
orr w9, w9, w10
strb w9, [sp, #105]
ldrb w9, [sp, #113]
ldrb w10, [sp, #109]
eor w9, w9, w10
strb w9, [sp, #104]
ldrb w9, [sp, #113]
ldrb w10, [sp, #109]
and w9, w9, w10
strb w9, [sp, #103]
ldrb w9, [sp, #112]
ldrb w10, [sp, #108]
eor w9, w9, w10
ldrb w10, [sp, #103]
eor w9, w9, w10
strb w9, [sp, #102]
ldrb w9, [sp, #112]
ldrb w10, [sp, #108]
and w9, w9, w10
ldrb w10, [sp, #108]
ldrb w11, [sp, #103]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #112]
ldrb w11, [sp, #103]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #101]
ldrb w9, [sp, #152]
ldrb w10, [sp, #144]
and w9, w9, w10
strb w9, [sp, #100]
ldrb w9, [sp, #152]
ldrb w10, [sp, #144]
and w9, w9, w10
strb w9, [sp, #99]
ldrb w9, [sp, #151]
ldrb w10, [sp, #144]
and w9, w9, w10
strb w9, [sp, #98]
ldrb w9, [sp, #150]
ldrb w10, [sp, #144]
and w9, w9, w10
strb w9, [sp, #97]
ldrb w9, [sp, #149]
ldrb w10, [sp, #144]
and w9, w9, w10
strb w9, [sp, #96]
ldrb w9, [sp, #148]
ldrb w10, [sp, #144]
and w9, w9, w10
strb w9, [sp, #95]
ldrb w9, [sp, #107]
ldrb w10, [sp, #100]
and w9, w9, w10
strb w9, [sp, #94]
ldrb w9, [sp, #105]
ldrb w10, [sp, #98]
eor w9, w9, w10
strb w9, [sp, #93]
ldrb w9, [sp, #105]
ldrb w10, [sp, #98]
and w9, w9, w10
strb w9, [sp, #92]
ldrb w9, [sp, #104]
ldrb w10, [sp, #97]
eor w9, w9, w10
ldrb w10, [sp, #92]
eor w9, w9, w10
strb w9, [sp, #91]
ldrb w9, [sp, #104]
ldrb w10, [sp, #97]
and w9, w9, w10
ldrb w10, [sp, #97]
ldrb w11, [sp, #92]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #104]
ldrb w11, [sp, #92]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #90]
ldrb w9, [sp, #102]
ldrb w10, [sp, #96]
eor w9, w9, w10
ldrb w10, [sp, #90]
eor w9, w9, w10
strb w9, [sp, #89]
ldrb w9, [sp, #102]
ldrb w10, [sp, #96]
and w9, w9, w10
ldrb w10, [sp, #96]
ldrb w11, [sp, #90]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #102]
ldrb w11, [sp, #90]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #88]
ldrb w9, [sp, #101]
ldrb w10, [sp, #95]
eor w9, w9, w10
ldrb w10, [sp, #88]
eor w9, w9, w10
strb w9, [sp, #87]
ldrb w9, [sp, #101]
ldrb w10, [sp, #95]
and w9, w9, w10
ldrb w10, [sp, #95]
ldrb w11, [sp, #88]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #101]
ldrb w11, [sp, #88]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #86]
ldrb w9, [sp, #153]
ldrb w10, [sp, #143]
and w9, w9, w10
strb w9, [sp, #85]
ldrb w9, [sp, #152]
ldrb w10, [sp, #143]
and w9, w9, w10
strb w9, [sp, #84]
ldrb w9, [sp, #151]
ldrb w10, [sp, #143]
and w9, w9, w10
strb w9, [sp, #83]
ldrb w9, [sp, #150]
ldrb w10, [sp, #143]
and w9, w9, w10
strb w9, [sp, #82]
ldrb w9, [sp, #149]
ldrb w10, [sp, #143]
and w9, w9, w10
strb w9, [sp, #81]
ldrb w9, [sp, #148]
ldrb w10, [sp, #143]
and w9, w9, w10
strb w9, [sp, #80]
ldrb w9, [sp, #94]
ldrb w10, [sp, #85]
eor w9, w9, w10
strb w9, [sp, #79]
ldrb w9, [sp, #94]
ldrb w10, [sp, #85]
and w9, w9, w10
strb w9, [sp, #78]
ldrb w9, [sp, #93]
ldrb w10, [sp, #84]
eor w9, w9, w10
ldrb w10, [sp, #78]
eor w9, w9, w10
strb w9, [sp, #77]
ldrb w9, [sp, #93]
ldrb w10, [sp, #84]
and w9, w9, w10
ldrb w10, [sp, #84]
ldrb w11, [sp, #78]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #93]
ldrb w11, [sp, #78]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #76]
ldrb w9, [sp, #91]
ldrb w10, [sp, #83]
eor w9, w9, w10
ldrb w10, [sp, #76]
eor w9, w9, w10
strb w9, [sp, #75]
ldrb w9, [sp, #91]
ldrb w10, [sp, #83]
and w9, w9, w10
ldrb w10, [sp, #83]
ldrb w11, [sp, #76]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #91]
ldrb w11, [sp, #76]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #74]
ldrb w9, [sp, #89]
ldrb w10, [sp, #82]
eor w9, w9, w10
ldrb w10, [sp, #74]
eor w9, w9, w10
strb w9, [sp, #73]
ldrb w9, [sp, #89]
ldrb w10, [sp, #82]
and w9, w9, w10
ldrb w10, [sp, #82]
ldrb w11, [sp, #74]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #89]
ldrb w11, [sp, #74]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #72]
ldrb w9, [sp, #87]
ldrb w10, [sp, #81]
eor w9, w9, w10
ldrb w10, [sp, #72]
eor w9, w9, w10
strb w9, [sp, #71]
ldrb w9, [sp, #87]
ldrb w10, [sp, #81]
and w9, w9, w10
ldrb w10, [sp, #81]
ldrb w11, [sp, #72]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #87]
ldrb w11, [sp, #72]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #70]
ldrb w9, [sp, #86]
ldrb w10, [sp, #80]
eor w9, w9, w10
ldrb w10, [sp, #70]
eor w9, w9, w10
strb w9, [sp, #69]
ldrb w9, [sp, #86]
ldrb w10, [sp, #80]
and w9, w9, w10
ldrb w10, [sp, #80]
ldrb w11, [sp, #70]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #86]
ldrb w11, [sp, #70]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #68]
ldrb w9, [sp, #154]
ldrb w10, [sp, #142]
and w9, w9, w10
strb w9, [sp, #67]
ldrb w9, [sp, #153]
ldrb w10, [sp, #142]
and w9, w9, w10
strb w9, [sp, #66]
ldrb w9, [sp, #152]
ldrb w10, [sp, #142]
and w9, w9, w10
strb w9, [sp, #65]
ldrb w9, [sp, #151]
ldrb w10, [sp, #142]
and w9, w9, w10
strb w9, [sp, #64]
ldrb w9, [sp, #150]
ldrb w10, [sp, #142]
and w9, w9, w10
strb w9, [sp, #63]
ldrb w9, [sp, #149]
ldrb w10, [sp, #142]
and w9, w9, w10
strb w9, [sp, #62]
ldrb w9, [sp, #148]
ldrb w10, [sp, #142]
and w9, w9, w10
strb w9, [sp, #61]
ldrb w9, [sp, #79]
ldrb w10, [sp, #67]
orr w9, w9, w10
strb w9, [sp, #60]
ldrb w9, [sp, #77]
ldrb w10, [sp, #66]
eor w9, w9, w10
ldrb w10, [sp, #119]
eor w9, w9, w10
strb w9, [sp, #59]
ldrb w9, [sp, #77]
ldrb w10, [sp, #66]
and w9, w9, w10
ldrb w10, [sp, #66]
ldrb w11, [sp, #119]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #77]
ldrb w11, [sp, #119]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #58]
ldrb w9, [sp, #75]
ldrb w10, [sp, #65]
eor w9, w9, w10
ldrb w10, [sp, #58]
eor w9, w9, w10
strb w9, [sp, #57]
ldrb w9, [sp, #75]
ldrb w10, [sp, #65]
and w9, w9, w10
ldrb w10, [sp, #65]
ldrb w11, [sp, #58]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #75]
ldrb w11, [sp, #58]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #56]
ldrb w9, [sp, #73]
ldrb w10, [sp, #64]
eor w9, w9, w10
ldrb w10, [sp, #56]
eor w9, w9, w10
strb w9, [sp, #55]
ldrb w9, [sp, #73]
ldrb w10, [sp, #64]
and w9, w9, w10
ldrb w10, [sp, #64]
ldrb w11, [sp, #56]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #73]
ldrb w11, [sp, #56]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #54]
ldrb w9, [sp, #71]
ldrb w10, [sp, #63]
eor w9, w9, w10
ldrb w10, [sp, #54]
eor w9, w9, w10
strb w9, [sp, #53]
ldrb w9, [sp, #71]
ldrb w10, [sp, #63]
and w9, w9, w10
ldrb w10, [sp, #63]
ldrb w11, [sp, #54]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #71]
ldrb w11, [sp, #54]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #52]
ldrb w9, [sp, #69]
ldrb w10, [sp, #62]
eor w9, w9, w10
ldrb w10, [sp, #52]
eor w9, w9, w10
strb w9, [sp, #51]
ldrb w9, [sp, #69]
ldrb w10, [sp, #62]
and w9, w9, w10
ldrb w10, [sp, #62]
ldrb w11, [sp, #52]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #69]
ldrb w11, [sp, #52]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #50]
ldrb w9, [sp, #68]
ldrb w10, [sp, #61]
eor w9, w9, w10
ldrb w10, [sp, #50]
eor w9, w9, w10
strb w9, [sp, #49]
ldrb w9, [sp, #68]
ldrb w10, [sp, #61]
and w9, w9, w10
ldrb w10, [sp, #61]
ldrb w11, [sp, #50]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #68]
ldrb w11, [sp, #50]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #48]
ldrb w9, [sp, #88]
ldrb w10, [sp, #141]
and w9, w9, w10
strb w9, [sp, #47]
ldrb w9, [sp, #153]
ldrb w10, [sp, #141]
and w9, w9, w10
strb w9, [sp, #46]
ldrb w9, [sp, #152]
ldrb w10, [sp, #141]
and w9, w9, w10
strb w9, [sp, #45]
ldrb w9, [sp, #151]
ldrb w10, [sp, #141]
and w9, w9, w10
strb w9, [sp, #44]
ldrb w9, [sp, #150]
ldrb w10, [sp, #141]
and w9, w9, w10
strb w9, [sp, #43]
ldrb w9, [sp, #149]
ldrb w10, [sp, #141]
and w9, w9, w10
strb w9, [sp, #42]
ldrb w9, [sp, #148]
ldrb w10, [sp, #141]
and w9, w9, w10
strb w9, [sp, #41]
ldrb w9, [sp, #60]
ldrb w10, [sp, #57]
orr w9, w9, w10
strb w9, [sp, #40]
ldrb w9, [sp, #59]
ldrb w10, [sp, #47]
eor w9, w9, w10
strb w9, [sp, #39]
ldrb w9, [sp, #59]
ldrb w10, [sp, #47]
and w9, w9, w10
strb w9, [sp, #38]
ldrb w9, [sp, #57]
ldrb w10, [sp, #46]
eor w9, w9, w10
ldrb w10, [sp, #38]
eor w9, w9, w10
strb w9, [sp, #37]
ldrb w9, [sp, #57]
ldrb w10, [sp, #46]
and w9, w9, w10
ldrb w10, [sp, #46]
ldrb w11, [sp, #38]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #57]
ldrb w11, [sp, #38]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #36]
ldrb w9, [sp, #55]
ldrb w10, [sp, #45]
eor w9, w9, w10
ldrb w10, [sp, #36]
eor w9, w9, w10
strb w9, [sp, #35]
ldrb w9, [sp, #55]
ldrb w10, [sp, #45]
and w9, w9, w10
ldrb w10, [sp, #45]
ldrb w11, [sp, #36]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #55]
ldrb w11, [sp, #36]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #34]
ldrb w9, [sp, #53]
ldrb w10, [sp, #44]
eor w9, w9, w10
ldrb w10, [sp, #34]
eor w9, w9, w10
strb w9, [sp, #33]
ldrb w9, [sp, #53]
ldrb w10, [sp, #44]
and w9, w9, w10
ldrb w10, [sp, #44]
ldrb w11, [sp, #34]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #53]
ldrb w11, [sp, #34]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #32]
ldrb w9, [sp, #51]
ldrb w10, [sp, #43]
eor w9, w9, w10
ldrb w10, [sp, #32]
eor w9, w9, w10
strb w9, [sp, #31]
ldrb w9, [sp, #51]
ldrb w10, [sp, #43]
and w9, w9, w10
ldrb w10, [sp, #43]
ldrb w11, [sp, #32]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #51]
ldrb w11, [sp, #32]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #30]
ldrb w9, [sp, #49]
ldrb w10, [sp, #42]
eor w9, w9, w10
ldrb w10, [sp, #30]
eor w9, w9, w10
strb w9, [sp, #29]
ldrb w9, [sp, #49]
ldrb w10, [sp, #42]
and w9, w9, w10
ldrb w10, [sp, #42]
ldrb w11, [sp, #30]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #49]
ldrb w11, [sp, #30]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #28]
ldrb w9, [sp, #48]
ldrb w10, [sp, #41]
eor w9, w9, w10
ldrb w10, [sp, #28]
eor w9, w9, w10
strb w9, [sp, #27]
ldrb w9, [sp, #48]
ldrb w10, [sp, #41]
and w9, w9, w10
ldrb w10, [sp, #41]
ldrb w11, [sp, #28]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #48]
ldrb w11, [sp, #28]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #26]
ldrb w9, [sp, #155]
ldrb w10, [sp, #140]
and w9, w9, w10
strb w9, [sp, #25]
ldrb w9, [sp, #154]
ldrb w10, [sp, #140]
and w9, w9, w10
strb w9, [sp, #24]
ldrb w9, [sp, #153]
ldrb w10, [sp, #140]
and w9, w9, w10
strb w9, [sp, #23]
ldrb w9, [sp, #152]
ldrb w10, [sp, #140]
and w9, w9, w10
strb w9, [sp, #22]
ldrb w9, [sp, #151]
ldrb w10, [sp, #140]
and w9, w9, w10
strb w9, [sp, #21]
ldrb w9, [sp, #150]
ldrb w10, [sp, #140]
and w9, w9, w10
strb w9, [sp, #20]
ldrb w9, [sp, #149]
ldrb w10, [sp, #140]
and w9, w9, w10
strb w9, [sp, #19]
ldrb w9, [sp, #148]
ldrb w10, [sp, #140]
and w9, w9, w10
strb w9, [sp, #18]
ldrb w9, [sp, #39]
ldrb w10, [sp, #25]
orr w9, w9, w10
strb w9, [sp, #17]
ldrb w9, [sp, #37]
ldrb w10, [sp, #24]
eor w9, w9, w10
strb w9, [sp, #16]
ldrb w9, [sp, #37]
ldrb w10, [sp, #24]
and w9, w9, w10
strb w9, [sp, #15]
ldrb w9, [sp, #35]
ldrb w10, [sp, #23]
eor w9, w9, w10
ldrb w10, [sp, #15]
eor w9, w9, w10
strb w9, [sp, #14]
ldrb w9, [sp, #35]
ldrb w10, [sp, #23]
and w9, w9, w10
ldrb w10, [sp, #23]
ldrb w11, [sp, #15]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #35]
ldrb w11, [sp, #15]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #13]
ldrb w9, [sp, #33]
ldrb w10, [sp, #22]
eor w9, w9, w10
ldrb w10, [sp, #13]
eor w9, w9, w10
strb w9, [sp, #12]
ldrb w9, [sp, #33]
ldrb w10, [sp, #22]
and w9, w9, w10
ldrb w10, [sp, #22]
ldrb w11, [sp, #13]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #33]
ldrb w11, [sp, #13]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #11]
ldrb w9, [sp, #31]
ldrb w10, [sp, #21]
eor w9, w9, w10
ldrb w10, [sp, #11]
eor w9, w9, w10
strb w9, [sp, #10]
ldrb w9, [sp, #31]
ldrb w10, [sp, #21]
and w9, w9, w10
ldrb w10, [sp, #21]
ldrb w11, [sp, #11]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #31]
ldrb w11, [sp, #11]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #9]
ldrb w9, [sp, #29]
ldrb w10, [sp, #20]
eor w9, w9, w10
ldrb w10, [sp, #9]
eor w9, w9, w10
strb w9, [sp, #8]
ldrb w9, [sp, #29]
ldrb w10, [sp, #20]
and w9, w9, w10
ldrb w10, [sp, #20]
ldrb w11, [sp, #9]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #29]
ldrb w11, [sp, #9]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #7]
ldrb w9, [sp, #27]
ldrb w10, [sp, #19]
eor w9, w9, w10
ldrb w10, [sp, #7]
eor w9, w9, w10
strb w9, [sp, #6]
ldrb w9, [sp, #27]
ldrb w10, [sp, #19]
and w9, w9, w10
ldrb w10, [sp, #19]
ldrb w11, [sp, #7]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #27]
ldrb w11, [sp, #7]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #5]
ldrb w9, [sp, #26]
ldrb w10, [sp, #18]
eor w9, w9, w10
ldrb w10, [sp, #5]
eor w9, w9, w10
strb w9, [sp, #4]
ldrb w9, [sp, #26]
ldrb w10, [sp, #18]
and w9, w9, w10
ldrb w10, [sp, #18]
ldrb w11, [sp, #5]
and w10, w10, w11
orr w9, w9, w10
ldrb w10, [sp, #26]
ldrb w11, [sp, #5]
and w10, w10, w11
orr w9, w9, w10
strb w9, [sp, #3]
ldrb w9, [sp, #106]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10
strh w9, [x8]
ldrb w9, [sp, #130]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #1
strh w9, [x8]
ldrb w9, [sp, #124]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #2
strh w9, [x8]
ldrb w9, [sp, #40]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #3
strh w9, [x8]
ldrb w9, [sp, #99]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #4
strh w9, [x8]
ldrb w9, [sp, #17]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #5
strh w9, [x8]
ldrb w9, [sp, #40]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #6
strh w9, [x8]
ldrb w9, [sp, #17]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #7
strh w9, [x8]
ldrb w9, [sp, #16]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #8
strh w9, [x8]
ldrb w9, [sp, #14]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #9
strh w9, [x8]
ldrb w9, [sp, #12]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #10
strh w9, [x8]
ldrb w9, [sp, #10]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #11
strh w9, [x8]
ldrb w9, [sp, #8]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #12
strh w9, [x8]
ldrb w9, [sp, #6]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #13
strh w9, [x8]
ldrb w9, [sp, #4]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #14
strh w9, [x8]
ldrb w9, [sp, #3]
and w10, w9, #0x1
ldrh w9, [x8]
orr w9, w9, w10, lsl #15
strh w9, [x8]
ldrh w0, [x8]
add sp, sp, #160
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mul8_410 ## -- Begin function mul8_410
.p2align 4, 0x90
_mul8_410: ## @mul8_410
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $30, %rsp
movb %sil, %al
movb %dil, %cl
movb %cl, -1(%rbp)
movb %al, -2(%rbp)
movw $0, -4(%rbp)
movzbl -1(%rbp), %eax
sarl $0, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -5(%rbp)
movzbl -1(%rbp), %eax
sarl $1, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -6(%rbp)
movzbl -1(%rbp), %eax
sarl $2, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -7(%rbp)
movzbl -1(%rbp), %eax
sarl $3, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -8(%rbp)
movzbl -1(%rbp), %eax
sarl $4, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -9(%rbp)
movzbl -1(%rbp), %eax
sarl $5, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -10(%rbp)
movzbl -1(%rbp), %eax
sarl $6, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -11(%rbp)
movzbl -1(%rbp), %eax
sarl $7, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -12(%rbp)
movzbl -2(%rbp), %eax
sarl $0, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -13(%rbp)
movzbl -2(%rbp), %eax
sarl $1, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -14(%rbp)
movzbl -2(%rbp), %eax
sarl $2, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -15(%rbp)
movzbl -2(%rbp), %eax
sarl $3, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -16(%rbp)
movzbl -2(%rbp), %eax
sarl $4, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -17(%rbp)
movzbl -2(%rbp), %eax
sarl $5, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -18(%rbp)
movzbl -2(%rbp), %eax
sarl $6, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -19(%rbp)
movzbl -2(%rbp), %eax
sarl $7, %eax
andl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -20(%rbp)
movzbl -14(%rbp), %eax
movzbl -11(%rbp), %ecx
andl %ecx, %eax
movzbl -5(%rbp), %ecx
andl %ecx, %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -21(%rbp)
movzbl -14(%rbp), %eax
movzbl -11(%rbp), %ecx
andl %ecx, %eax
movzbl -5(%rbp), %ecx
andl %ecx, %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -22(%rbp)
movzbl -16(%rbp), %eax
movzbl -13(%rbp), %ecx
andl %ecx, %eax
movzbl -16(%rbp), %ecx
xorl $-1, %ecx
movzbl -14(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -23(%rbp)
movzbl -16(%rbp), %eax
movzbl -23(%rbp), %ecx
orl %ecx, %eax
movzbl -6(%rbp), %ecx
orl %ecx, %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -24(%rbp)
movzbl -14(%rbp), %eax
movzbl -24(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -25(%rbp)
movzbl -22(%rbp), %eax
movzbl -17(%rbp), %ecx
orl %ecx, %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -26(%rbp)
movb -18(%rbp), %al
movb %al, -27(%rbp)
movzbl -27(%rbp), %eax
movzbl -12(%rbp), %ecx
andl %ecx, %eax
movzbl -8(%rbp), %ecx
andl %ecx, %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -28(%rbp)
movzbl -25(%rbp), %eax
movzbl -21(%rbp), %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -29(%rbp)
movzbl -22(%rbp), %eax
movzbl -26(%rbp), %ecx
orl %ecx, %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -30(%rbp)
movb -22(%rbp), %al
movb %al, -31(%rbp)
movzbl -28(%rbp), %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -32(%rbp)
movzbl -28(%rbp), %eax
movzbl -27(%rbp), %ecx
orl %ecx, %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -33(%rbp)
movb -32(%rbp), %al
movb %al, -34(%rbp)
movb -32(%rbp), %al
movb %al, -35(%rbp)
movzbl -24(%rbp), %eax
movzbl -34(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -36(%rbp)
movzbl -31(%rbp), %eax
movzbl -12(%rbp), %ecx
orl %ecx, %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -37(%rbp)
movzbl -37(%rbp), %eax
movzbl -30(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -38(%rbp)
movzbl -36(%rbp), %eax
movzbl -29(%rbp), %ecx
andl %ecx, %eax
movzbl -38(%rbp), %ecx
orl %ecx, %eax
xorl $-1, %eax
## kill: def $al killed $al killed $eax
movb %al, -39(%rbp)
movb -33(%rbp), %al
movb %al, -40(%rbp)
movzbl -40(%rbp), %eax
movzbl -39(%rbp), %ecx
andl %ecx, %eax
movzbl -40(%rbp), %ecx
xorl $-1, %ecx
movzbl -38(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -41(%rbp)
movzbl -11(%rbp), %eax
movzbl -14(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -42(%rbp)
movzbl -12(%rbp), %eax
movzbl -14(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -43(%rbp)
movb -25(%rbp), %al
movb %al, -44(%rbp)
movzbl -35(%rbp), %eax
movzbl -42(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -45(%rbp)
movzbl -35(%rbp), %eax
movzbl -42(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -46(%rbp)
movzbl -46(%rbp), %eax
movzbl -43(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -47(%rbp)
movzbl -46(%rbp), %eax
movzbl -43(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -48(%rbp)
movzbl -9(%rbp), %eax
movzbl -15(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -49(%rbp)
movzbl -10(%rbp), %eax
movzbl -15(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -50(%rbp)
movzbl -11(%rbp), %eax
movzbl -15(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -51(%rbp)
movzbl -12(%rbp), %eax
movzbl -15(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -52(%rbp)
movzbl -44(%rbp), %eax
movzbl -49(%rbp), %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -53(%rbp)
movzbl -44(%rbp), %eax
movzbl -49(%rbp), %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -54(%rbp)
movzbl -45(%rbp), %eax
movzbl -50(%rbp), %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -55(%rbp)
movzbl -47(%rbp), %eax
movzbl -51(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -56(%rbp)
movzbl -47(%rbp), %eax
movzbl -51(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -57(%rbp)
movzbl -48(%rbp), %eax
movzbl -52(%rbp), %ecx
xorl %ecx, %eax
movzbl -57(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -58(%rbp)
movzbl -48(%rbp), %eax
movzbl -52(%rbp), %ecx
andl %ecx, %eax
movzbl -52(%rbp), %ecx
movzbl -57(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -48(%rbp), %ecx
movzbl -57(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -59(%rbp)
movzbl -8(%rbp), %eax
movzbl -16(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -60(%rbp)
movzbl -8(%rbp), %eax
movzbl -16(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -61(%rbp)
movzbl -9(%rbp), %eax
movzbl -16(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -62(%rbp)
movzbl -10(%rbp), %eax
movzbl -16(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -63(%rbp)
movzbl -11(%rbp), %eax
movzbl -16(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -64(%rbp)
movzbl -12(%rbp), %eax
movzbl -16(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -65(%rbp)
movzbl -53(%rbp), %eax
movzbl -60(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -66(%rbp)
movzbl -55(%rbp), %eax
movzbl -62(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -67(%rbp)
movzbl -55(%rbp), %eax
movzbl -62(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -68(%rbp)
movzbl -56(%rbp), %eax
movzbl -63(%rbp), %ecx
xorl %ecx, %eax
movzbl -68(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -69(%rbp)
movzbl -56(%rbp), %eax
movzbl -63(%rbp), %ecx
andl %ecx, %eax
movzbl -63(%rbp), %ecx
movzbl -68(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -56(%rbp), %ecx
movzbl -68(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -70(%rbp)
movzbl -58(%rbp), %eax
movzbl -64(%rbp), %ecx
xorl %ecx, %eax
movzbl -70(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -71(%rbp)
movzbl -58(%rbp), %eax
movzbl -64(%rbp), %ecx
andl %ecx, %eax
movzbl -64(%rbp), %ecx
movzbl -70(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -58(%rbp), %ecx
movzbl -70(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -72(%rbp)
movzbl -59(%rbp), %eax
movzbl -65(%rbp), %ecx
xorl %ecx, %eax
movzbl -72(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -73(%rbp)
movzbl -59(%rbp), %eax
movzbl -65(%rbp), %ecx
andl %ecx, %eax
movzbl -65(%rbp), %ecx
movzbl -72(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -59(%rbp), %ecx
movzbl -72(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -74(%rbp)
movzbl -7(%rbp), %eax
movzbl -17(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -75(%rbp)
movzbl -8(%rbp), %eax
movzbl -17(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -76(%rbp)
movzbl -9(%rbp), %eax
movzbl -17(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -77(%rbp)
movzbl -10(%rbp), %eax
movzbl -17(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -78(%rbp)
movzbl -11(%rbp), %eax
movzbl -17(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -79(%rbp)
movzbl -12(%rbp), %eax
movzbl -17(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -80(%rbp)
movzbl -66(%rbp), %eax
movzbl -75(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -81(%rbp)
movzbl -66(%rbp), %eax
movzbl -75(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -82(%rbp)
movzbl -67(%rbp), %eax
movzbl -76(%rbp), %ecx
xorl %ecx, %eax
movzbl -82(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -83(%rbp)
movzbl -67(%rbp), %eax
movzbl -76(%rbp), %ecx
andl %ecx, %eax
movzbl -76(%rbp), %ecx
movzbl -82(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -67(%rbp), %ecx
movzbl -82(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -84(%rbp)
movzbl -69(%rbp), %eax
movzbl -77(%rbp), %ecx
xorl %ecx, %eax
movzbl -84(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -85(%rbp)
movzbl -69(%rbp), %eax
movzbl -77(%rbp), %ecx
andl %ecx, %eax
movzbl -77(%rbp), %ecx
movzbl -84(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -69(%rbp), %ecx
movzbl -84(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -86(%rbp)
movzbl -71(%rbp), %eax
movzbl -78(%rbp), %ecx
xorl %ecx, %eax
movzbl -86(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -87(%rbp)
movzbl -71(%rbp), %eax
movzbl -78(%rbp), %ecx
andl %ecx, %eax
movzbl -78(%rbp), %ecx
movzbl -86(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -71(%rbp), %ecx
movzbl -86(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -88(%rbp)
movzbl -73(%rbp), %eax
movzbl -79(%rbp), %ecx
xorl %ecx, %eax
movzbl -88(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -89(%rbp)
movzbl -73(%rbp), %eax
movzbl -79(%rbp), %ecx
andl %ecx, %eax
movzbl -79(%rbp), %ecx
movzbl -88(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -73(%rbp), %ecx
movzbl -88(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -90(%rbp)
movzbl -74(%rbp), %eax
movzbl -80(%rbp), %ecx
xorl %ecx, %eax
movzbl -90(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -91(%rbp)
movzbl -74(%rbp), %eax
movzbl -80(%rbp), %ecx
andl %ecx, %eax
movzbl -80(%rbp), %ecx
movzbl -90(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -74(%rbp), %ecx
movzbl -90(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -92(%rbp)
movzbl -6(%rbp), %eax
movzbl -18(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -93(%rbp)
movzbl -7(%rbp), %eax
movzbl -18(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -94(%rbp)
movzbl -8(%rbp), %eax
movzbl -18(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -95(%rbp)
movzbl -9(%rbp), %eax
movzbl -18(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -96(%rbp)
movzbl -10(%rbp), %eax
movzbl -18(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -97(%rbp)
movzbl -11(%rbp), %eax
movzbl -18(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -98(%rbp)
movzbl -12(%rbp), %eax
movzbl -18(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -99(%rbp)
movzbl -81(%rbp), %eax
movzbl -93(%rbp), %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -100(%rbp)
movzbl -83(%rbp), %eax
movzbl -94(%rbp), %ecx
xorl %ecx, %eax
movzbl -41(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -101(%rbp)
movzbl -83(%rbp), %eax
movzbl -94(%rbp), %ecx
andl %ecx, %eax
movzbl -94(%rbp), %ecx
movzbl -41(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -83(%rbp), %ecx
movzbl -41(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -102(%rbp)
movzbl -85(%rbp), %eax
movzbl -95(%rbp), %ecx
xorl %ecx, %eax
movzbl -102(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -103(%rbp)
movzbl -85(%rbp), %eax
movzbl -95(%rbp), %ecx
andl %ecx, %eax
movzbl -95(%rbp), %ecx
movzbl -102(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -85(%rbp), %ecx
movzbl -102(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -104(%rbp)
movzbl -87(%rbp), %eax
movzbl -96(%rbp), %ecx
xorl %ecx, %eax
movzbl -104(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -105(%rbp)
movzbl -87(%rbp), %eax
movzbl -96(%rbp), %ecx
andl %ecx, %eax
movzbl -96(%rbp), %ecx
movzbl -104(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -87(%rbp), %ecx
movzbl -104(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -106(%rbp)
movzbl -89(%rbp), %eax
movzbl -97(%rbp), %ecx
xorl %ecx, %eax
movzbl -106(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -107(%rbp)
movzbl -89(%rbp), %eax
movzbl -97(%rbp), %ecx
andl %ecx, %eax
movzbl -97(%rbp), %ecx
movzbl -106(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -89(%rbp), %ecx
movzbl -106(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -108(%rbp)
movzbl -91(%rbp), %eax
movzbl -98(%rbp), %ecx
xorl %ecx, %eax
movzbl -108(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -109(%rbp)
movzbl -91(%rbp), %eax
movzbl -98(%rbp), %ecx
andl %ecx, %eax
movzbl -98(%rbp), %ecx
movzbl -108(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -91(%rbp), %ecx
movzbl -108(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -110(%rbp)
movzbl -92(%rbp), %eax
movzbl -99(%rbp), %ecx
xorl %ecx, %eax
movzbl -110(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -111(%rbp)
movzbl -92(%rbp), %eax
movzbl -99(%rbp), %ecx
andl %ecx, %eax
movzbl -99(%rbp), %ecx
movzbl -110(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -92(%rbp), %ecx
movzbl -110(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -112(%rbp)
movzbl -72(%rbp), %eax
movzbl -19(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -113(%rbp)
movzbl -7(%rbp), %eax
movzbl -19(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -114(%rbp)
movzbl -8(%rbp), %eax
movzbl -19(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -115(%rbp)
movzbl -9(%rbp), %eax
movzbl -19(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -116(%rbp)
movzbl -10(%rbp), %eax
movzbl -19(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -117(%rbp)
movzbl -11(%rbp), %eax
movzbl -19(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -118(%rbp)
movzbl -12(%rbp), %eax
movzbl -19(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -119(%rbp)
movzbl -100(%rbp), %eax
movzbl -103(%rbp), %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -120(%rbp)
movzbl -101(%rbp), %eax
movzbl -113(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -121(%rbp)
movzbl -101(%rbp), %eax
movzbl -113(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -122(%rbp)
movzbl -103(%rbp), %eax
movzbl -114(%rbp), %ecx
xorl %ecx, %eax
movzbl -122(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -123(%rbp)
movzbl -103(%rbp), %eax
movzbl -114(%rbp), %ecx
andl %ecx, %eax
movzbl -114(%rbp), %ecx
movzbl -122(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -103(%rbp), %ecx
movzbl -122(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -124(%rbp)
movzbl -105(%rbp), %eax
movzbl -115(%rbp), %ecx
xorl %ecx, %eax
movzbl -124(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -125(%rbp)
movzbl -105(%rbp), %eax
movzbl -115(%rbp), %ecx
andl %ecx, %eax
movzbl -115(%rbp), %ecx
movzbl -124(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -105(%rbp), %ecx
movzbl -124(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -126(%rbp)
movzbl -107(%rbp), %eax
movzbl -116(%rbp), %ecx
xorl %ecx, %eax
movzbl -126(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -127(%rbp)
movzbl -107(%rbp), %eax
movzbl -116(%rbp), %ecx
andl %ecx, %eax
movzbl -116(%rbp), %ecx
movzbl -126(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -107(%rbp), %ecx
movzbl -126(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -128(%rbp)
movzbl -109(%rbp), %eax
movzbl -117(%rbp), %ecx
xorl %ecx, %eax
movzbl -128(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -129(%rbp)
movzbl -109(%rbp), %eax
movzbl -117(%rbp), %ecx
andl %ecx, %eax
movzbl -117(%rbp), %ecx
movzbl -128(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -109(%rbp), %ecx
movzbl -128(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -130(%rbp)
movzbl -111(%rbp), %eax
movzbl -118(%rbp), %ecx
xorl %ecx, %eax
movzbl -130(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -131(%rbp)
movzbl -111(%rbp), %eax
movzbl -118(%rbp), %ecx
andl %ecx, %eax
movzbl -118(%rbp), %ecx
movzbl -130(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -111(%rbp), %ecx
movzbl -130(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -132(%rbp)
movzbl -112(%rbp), %eax
movzbl -119(%rbp), %ecx
xorl %ecx, %eax
movzbl -132(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -133(%rbp)
movzbl -112(%rbp), %eax
movzbl -119(%rbp), %ecx
andl %ecx, %eax
movzbl -119(%rbp), %ecx
movzbl -132(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -112(%rbp), %ecx
movzbl -132(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -134(%rbp)
movzbl -5(%rbp), %eax
movzbl -20(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -135(%rbp)
movzbl -6(%rbp), %eax
movzbl -20(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -136(%rbp)
movzbl -7(%rbp), %eax
movzbl -20(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -137(%rbp)
movzbl -8(%rbp), %eax
movzbl -20(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -138(%rbp)
movzbl -9(%rbp), %eax
movzbl -20(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -139(%rbp)
movzbl -10(%rbp), %eax
movzbl -20(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -140(%rbp)
movzbl -11(%rbp), %eax
movzbl -20(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -141(%rbp)
movzbl -12(%rbp), %eax
movzbl -20(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -142(%rbp)
movzbl -121(%rbp), %eax
movzbl -135(%rbp), %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -143(%rbp)
movzbl -123(%rbp), %eax
movzbl -136(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -144(%rbp)
movzbl -123(%rbp), %eax
movzbl -136(%rbp), %ecx
andl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -145(%rbp)
movzbl -125(%rbp), %eax
movzbl -137(%rbp), %ecx
xorl %ecx, %eax
movzbl -145(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -146(%rbp)
movzbl -125(%rbp), %eax
movzbl -137(%rbp), %ecx
andl %ecx, %eax
movzbl -137(%rbp), %ecx
movzbl -145(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -125(%rbp), %ecx
movzbl -145(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -147(%rbp)
movzbl -127(%rbp), %eax
movzbl -138(%rbp), %ecx
xorl %ecx, %eax
movzbl -147(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -148(%rbp)
movzbl -127(%rbp), %eax
movzbl -138(%rbp), %ecx
andl %ecx, %eax
movzbl -138(%rbp), %ecx
movzbl -147(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -127(%rbp), %ecx
movzbl -147(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -149(%rbp)
movzbl -129(%rbp), %eax
movzbl -139(%rbp), %ecx
xorl %ecx, %eax
movzbl -149(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -150(%rbp)
movzbl -129(%rbp), %eax
movzbl -139(%rbp), %ecx
andl %ecx, %eax
movzbl -139(%rbp), %ecx
movzbl -149(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -129(%rbp), %ecx
movzbl -149(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -151(%rbp)
movzbl -131(%rbp), %eax
movzbl -140(%rbp), %ecx
xorl %ecx, %eax
movzbl -151(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -152(%rbp)
movzbl -131(%rbp), %eax
movzbl -140(%rbp), %ecx
andl %ecx, %eax
movzbl -140(%rbp), %ecx
movzbl -151(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -131(%rbp), %ecx
movzbl -151(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -153(%rbp)
movzbl -133(%rbp), %eax
movzbl -141(%rbp), %ecx
xorl %ecx, %eax
movzbl -153(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -154(%rbp)
movzbl -133(%rbp), %eax
movzbl -141(%rbp), %ecx
andl %ecx, %eax
movzbl -141(%rbp), %ecx
movzbl -153(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -133(%rbp), %ecx
movzbl -153(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -155(%rbp)
movzbl -134(%rbp), %eax
movzbl -142(%rbp), %ecx
xorl %ecx, %eax
movzbl -155(%rbp), %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -156(%rbp)
movzbl -134(%rbp), %eax
movzbl -142(%rbp), %ecx
andl %ecx, %eax
movzbl -142(%rbp), %ecx
movzbl -155(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
movzbl -134(%rbp), %ecx
movzbl -155(%rbp), %edx
andl %edx, %ecx
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -157(%rbp)
movzbl -54(%rbp), %ecx
andl $1, %ecx
shll $0, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -30(%rbp), %ecx
andl $1, %ecx
shll $1, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -36(%rbp), %ecx
andl $1, %ecx
shll $2, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -120(%rbp), %ecx
andl $1, %ecx
shll $3, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -61(%rbp), %ecx
andl $1, %ecx
shll $4, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -143(%rbp), %ecx
andl $1, %ecx
shll $5, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -120(%rbp), %ecx
andl $1, %ecx
shll $6, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -143(%rbp), %ecx
andl $1, %ecx
shll $7, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -144(%rbp), %ecx
andl $1, %ecx
shll $8, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -146(%rbp), %ecx
andl $1, %ecx
shll $9, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -148(%rbp), %ecx
andl $1, %ecx
shll $10, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -150(%rbp), %ecx
andl $1, %ecx
shll $11, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -152(%rbp), %ecx
andl $1, %ecx
shll $12, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -154(%rbp), %ecx
andl $1, %ecx
shll $13, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -156(%rbp), %ecx
andl $1, %ecx
shll $14, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzbl -157(%rbp), %ecx
andl $1, %ecx
shll $15, %ecx
movzwl -4(%rbp), %eax
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -4(%rbp)
movzwl -4(%rbp), %eax
addq $30, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/635279.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, #48]
str w0, [sp, #44]
str x1, [sp, #32]
str wzr, [sp, #28]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr w8, [sp, #28]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #24]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #24]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_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@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldrsw x8, [sp, #28]
mov x9, #12
mul x9, x8, x9
sub x8, x29, #44
add x8, x8, x9
ldrsw x9, [sp, #24]
add x8, x8, x9, lsl #2
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_1
LBB0_8:
str wzr, [sp, #20]
b LBB0_9
LBB0_9: ; =>This Loop Header: Depth=1
; Child Loop BB0_11 Depth 2
ldr w8, [sp, #20]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB0_20
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=1
str wzr, [sp, #16]
b LBB0_11
LBB0_11: ; Parent Loop BB0_9 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #16]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB0_18
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=2
ldrsw x8, [sp, #20]
mov x9, #12
mul x9, x8, x9
sub x8, x29, #44
add x8, x8, x9
ldrsw x9, [sp, #16]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_11 Depth=2
ldrsw x8, [sp, #20]
mov x9, #12
mul x9, x8, x9
sub x8, x29, #44
add x8, x8, x9
ldrsw x9, [sp, #16]
add x9, x8, x9, lsl #2
ldr w10, [x9]
mov w8, #0
subs w8, w8, w10
str w8, [x9]
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_11 Depth=2
ldrsw x8, [sp, #20]
mov x9, #12
mul x9, x8, x9
sub x8, x29, #44
add x8, x8, x9
ldrsw x9, [sp, #16]
ldr w8, [x8, x9, lsl #2]
mov w10, #2
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_11 Depth=2
ldrsw x8, [sp, #20]
mov x9, #12
mul x9, x8, x9
sub x8, x29, #44
add x8, x8, x9
ldrsw x9, [sp, #16]
add x9, x8, x9, lsl #2
ldr w8, [x9]
mov w11, #2
sdiv w10, w8, w11
mul w10, w10, w11
subs w8, w8, w10
str w8, [x9]
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_11 Depth=2
ldrsw x8, [sp, #20]
mov x9, #12
mul x9, x8, x9
sub x8, x29, #44
add x8, x8, x9
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.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_11 Depth=2
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_11
LBB0_18: ; in Loop: Header=BB0_9 Depth=1
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_9 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_9
LBB0_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, LBB0_22
b LBB0_21
LBB0_21:
bl ___stack_chk_fail
LBB0_22:
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 "A[%d]][%d] : "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "%4d"
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 $96, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -52(%rbp)
movl %edi, -56(%rbp)
movq %rsi, -64(%rbp)
movl $0, -68(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
cmpl $3, -68(%rbp)
jge LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -72(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $3, -72(%rbp)
jge LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movl -68(%rbp), %esi
movl -72(%rbp), %edx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movslq -68(%rbp), %rax
leaq -48(%rbp), %rsi
imulq $12, %rax, %rax
addq %rax, %rsi
movslq -72(%rbp), %rax
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -72(%rbp), %eax
addl $1, %eax
movl %eax, -72(%rbp)
jmp LBB0_3
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movl -68(%rbp), %eax
addl $1, %eax
movl %eax, -68(%rbp)
jmp LBB0_1
LBB0_8:
movl $0, -76(%rbp)
LBB0_9: ## =>This Loop Header: Depth=1
## Child Loop BB0_11 Depth 2
cmpl $3, -76(%rbp)
jge LBB0_20
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movl $0, -80(%rbp)
LBB0_11: ## Parent Loop BB0_9 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $3, -80(%rbp)
jge LBB0_18
## %bb.12: ## in Loop: Header=BB0_11 Depth=2
movslq -76(%rbp), %rcx
leaq -48(%rbp), %rax
imulq $12, %rcx, %rcx
addq %rcx, %rax
movslq -80(%rbp), %rcx
cmpl $0, (%rax,%rcx,4)
jge LBB0_14
## %bb.13: ## in Loop: Header=BB0_11 Depth=2
movslq -76(%rbp), %rcx
leaq -48(%rbp), %rax
imulq $12, %rcx, %rcx
addq %rcx, %rax
movslq -80(%rbp), %rcx
imull $-1, (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
LBB0_14: ## in Loop: Header=BB0_11 Depth=2
movslq -76(%rbp), %rcx
leaq -48(%rbp), %rax
imulq $12, %rcx, %rcx
addq %rcx, %rax
movslq -80(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl $2, %ecx
cltd
idivl %ecx
cmpl $0, %edx
jne LBB0_16
## %bb.15: ## in Loop: Header=BB0_11 Depth=2
movslq -76(%rbp), %rcx
leaq -48(%rbp), %rax
imulq $12, %rcx, %rcx
addq %rcx, %rax
movq %rax, -88(%rbp) ## 8-byte Spill
movslq -80(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl $2, %esi
cltd
idivl %esi
movq -88(%rbp), %rax ## 8-byte Reload
movl %edx, (%rax,%rcx,4)
LBB0_16: ## in Loop: Header=BB0_11 Depth=2
movslq -76(%rbp), %rcx
leaq -48(%rbp), %rax
imulq $12, %rcx, %rcx
addq %rcx, %rax
movslq -80(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.17: ## in Loop: Header=BB0_11 Depth=2
movl -80(%rbp), %eax
addl $1, %eax
movl %eax, -80(%rbp)
jmp LBB0_11
LBB0_18: ## in Loop: Header=BB0_9 Depth=1
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
## %bb.19: ## in Loop: Header=BB0_9 Depth=1
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
jmp LBB0_9
LBB0_20:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_22
## %bb.21:
xorl %eax, %eax
addq $96, %rsp
popq %rbp
retq
LBB0_22:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "A[%d]][%d] : "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "%4d"
L_.str.3: ## @.str.3
.asciz "\n"
.subsections_via_symbols
| the_stack_data/22197.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _enqueue ; -- Begin function enqueue
.p2align 2
_enqueue: ; @enqueue
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #4
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
mov x0, #16
bl _malloc
str x0, [sp, #16]
ldur w8, [x29, #-4]
ldr x9, [sp, #16]
str w8, [x9]
adrp x8, _front@PAGE
ldr x8, [x8, _front@PAGEOFF]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
adrp x8, _rear@PAGE
ldr x8, [x8, _rear@PAGEOFF]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x8, [sp, #16]
adrp x9, _rear@PAGE
str x8, [x9, _rear@PAGEOFF]
adrp x9, _front@PAGE
str x8, [x9, _front@PAGEOFF]
b LBB0_4
LBB0_3:
ldr x8, [sp, #16]
adrp x9, _rear@PAGE
ldr x10, [x9, _rear@PAGEOFF]
str x8, [x10, #8]
ldr x8, [sp, #16]
str x8, [x9, _rear@PAGEOFF]
b LBB0_4
LBB0_4:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _dequeue ; -- Begin function dequeue
.p2align 2
_dequeue: ; @dequeue
.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, _front@PAGE
ldr x8, [x8, _front@PAGEOFF]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_3
b LBB1_1
LBB1_1:
adrp x8, _rear@PAGE
ldr x8, [x8, _rear@PAGEOFF]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB1_4
LBB1_3:
adrp x8, _front@PAGE
str x8, [sp, #16] ; 8-byte Folded Spill
ldr x9, [x8, _front@PAGEOFF]
stur x9, [x29, #-8]
ldr x8, [x8, _front@PAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldr x8, [x9, _front@PAGEOFF]
ldr x8, [x8, #8]
str x8, [x9, _front@PAGEOFF]
ldur x0, [x29, #-8]
bl _free
b LBB1_4
LBB1_4:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _display ; -- Begin function display
.p2align 2
_display: ; @display
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _front@PAGE
ldr x8, [x8, _front@PAGEOFF]
str x8, [sp, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #8]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB2_1
LBB2_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _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.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
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, #1
; kill: def $x8 killed $w8
str x8, [sp, #16] ; 8-byte Folded Spill
subs x8, x8, #3
cset w8, hi
tbnz w8, #0, LBB3_7
; %bb.2: ; in Loop: Header=BB3_1 Depth=1
ldr x11, [sp, #16] ; 8-byte Folded Reload
adrp x10, lJTI3_0@PAGE
add x10, x10, lJTI3_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
bl _enqueue
b LBB3_8
LBB3_4: ; in Loop: Header=BB3_1 Depth=1
bl _dequeue
b LBB3_8
LBB3_5: ; in Loop: Header=BB3_1 Depth=1
bl _display
b LBB3_8
LBB3_6: ; in Loop: Header=BB3_1 Depth=1
b LBB3_8
LBB3_7: ; in Loop: Header=BB3_1 Depth=1
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
b LBB3_8
LBB3_8: ; in Loop: Header=BB3_1 Depth=1
b LBB3_9
LBB3_9: ; in Loop: Header=BB3_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #4
cset w8, ne
tbnz w8, #0, LBB3_1
b LBB3_10
LBB3_10:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
.p2align 2
lJTI3_0:
.long LBB3_3-Ltmp0
.long LBB3_4-Ltmp0
.long LBB3_5-Ltmp0
.long LBB3_6-Ltmp0
; -- End function
.globl _front ; @front
.zerofill __DATA,__common,_front,8,3
.globl _rear ; @rear
.zerofill __DATA,__common,_rear,8,3
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz " \n Enter the element to be inserted to the Queue: "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "\n Underflow !!"
l_.str.3: ; @.str.3
.asciz "\n The deleted element is %d. "
l_.str.4: ; @.str.4
.asciz " \n The elements of the queue are : "
l_.str.5: ; @.str.5
.asciz "%d "
l_.str.6: ; @.str.6
.asciz "\n Operations to perform using Queue :"
l_.str.7: ; @.str.7
.asciz "\n \t 1.Enqueue \n \t 2.Dequeue \n \t 3.Display \n \t 4.Exit"
l_.str.8: ; @.str.8
.asciz "\n \n Enter the required option :"
l_.str.9: ; @.str.9
.asciz "/n Enter a valid option !"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _enqueue ## -- Begin function enqueue
.p2align 4, 0x90
_enqueue: ## @enqueue
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -4(%rbp), %rsi
movb $0, %al
callq _scanf
movl $16, %edi
callq _malloc
movq %rax, -16(%rbp)
movl -4(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
cmpq $0, _front(%rip)
jne LBB0_3
## %bb.1:
cmpq $0, _rear(%rip)
jne LBB0_3
## %bb.2:
movq -16(%rbp), %rax
movq %rax, _rear(%rip)
movq %rax, _front(%rip)
jmp LBB0_4
LBB0_3:
movq -16(%rbp), %rcx
movq _rear(%rip), %rax
movq %rcx, 8(%rax)
movq -16(%rbp), %rax
movq %rax, _rear(%rip)
LBB0_4:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _dequeue ## -- Begin function dequeue
.p2align 4, 0x90
_dequeue: ## @dequeue
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
cmpq $0, _front(%rip)
jne LBB1_3
## %bb.1:
cmpq $0, _rear(%rip)
jne LBB1_3
## %bb.2:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB1_4
LBB1_3:
movq _front(%rip), %rax
movq %rax, -8(%rbp)
movq _front(%rip), %rax
movl (%rax), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movq _front(%rip), %rax
movq 8(%rax), %rax
movq %rax, _front(%rip)
movq -8(%rbp), %rdi
callq _free
LBB1_4:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _display ## -- Begin function display
.p2align 4, 0x90
_display: ## @display
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq _front(%rip), %rax
movq %rax, -8(%rbp)
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
LBB2_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -8(%rbp)
je LBB2_3
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -8(%rbp), %rax
movl (%rax), %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -8(%rbp)
jmp LBB2_1
LBB2_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
LBB3_1: ## =>This Inner Loop Header: Depth=1
leaq L_.str.7(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movb %al, -17(%rbp) ## 1-byte Spill
callq _printf
## kill: def $ecx killed $eax
movb -17(%rbp), %al ## 1-byte Reload
leaq L_.str.8(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movb -17(%rbp), %al ## 1-byte Reload
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
callq _scanf
movl -8(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -16(%rbp) ## 8-byte Spill
subl $3, %eax
ja LBB3_6
## %bb.10: ## in Loop: Header=BB3_1 Depth=1
movq -16(%rbp), %rax ## 8-byte Reload
leaq LJTI3_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB3_2: ## in Loop: Header=BB3_1 Depth=1
callq _enqueue
jmp LBB3_7
LBB3_3: ## in Loop: Header=BB3_1 Depth=1
callq _dequeue
jmp LBB3_7
LBB3_4: ## in Loop: Header=BB3_1 Depth=1
callq _display
jmp LBB3_7
LBB3_5: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_7
LBB3_6: ## in Loop: Header=BB3_1 Depth=1
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
LBB3_7: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_8
LBB3_8: ## in Loop: Header=BB3_1 Depth=1
cmpl $4, -8(%rbp)
jne LBB3_1
## %bb.9:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.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
LJTI3_0:
.long L3_0_set_2
.long L3_0_set_3
.long L3_0_set_4
.long L3_0_set_5
.end_data_region
## -- End function
.globl _front ## @front
.zerofill __DATA,__common,_front,8,3
.globl _rear ## @rear
.zerofill __DATA,__common,_rear,8,3
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz " \n Enter the element to be inserted to the Queue: "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "\n Underflow !!"
L_.str.3: ## @.str.3
.asciz "\n The deleted element is %d. "
L_.str.4: ## @.str.4
.asciz " \n The elements of the queue are : "
L_.str.5: ## @.str.5
.asciz "%d "
L_.str.6: ## @.str.6
.asciz "\n Operations to perform using Queue :"
L_.str.7: ## @.str.7
.asciz "\n \t 1.Enqueue \n \t 2.Dequeue \n \t 3.Display \n \t 4.Exit"
L_.str.8: ## @.str.8
.asciz "\n \n Enter the required option :"
L_.str.9: ## @.str.9
.asciz "/n Enter a valid option !"
.subsections_via_symbols
| the_stack_data/82466.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _uncompress ; -- Begin function uncompress
.p2align 2
_uncompress: ; @uncompress
.cfi_startproc
; %bb.0:
sub sp, sp, #192
.cfi_def_cfa_offset 192
stp x29, x30, [sp, #176] ; 16-byte Folded Spill
add x29, sp, #176
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub x8, x29, #24
str x8, [sp, #8] ; 8-byte Folded Spill
str x0, [x8, #8]
str x1, [x8]
stur x2, [x29, #-32]
stur x3, [x29, #-40]
ldur x8, [x29, #-32]
str x8, [sp, #24]
ldur x8, [x29, #-40]
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #32]
ldr w8, [sp, #32]
; kill: def $x8 killed $w8
ldur x9, [x29, #-40]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #-5
stur w8, [x29, #-4]
b LBB0_13
LBB0_2:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x9, #8]
str x8, [sp, #48]
ldr x8, [x9]
ldr x8, [x8]
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #56]
ldr w8, [sp, #56]
; kill: def $x8 killed $w8
ldr x9, [x9]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
mov w8, #-5
stur w8, [x29, #-4]
b LBB0_13
LBB0_4:
add x0, sp, #24
; kill: def $x8 killed $xzr
str xzr, [sp, #88]
str xzr, [sp, #96]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #112
bl _inflateInit_
str w0, [sp, #20]
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr w8, [sp, #20]
stur w8, [x29, #-4]
b LBB0_13
LBB0_6:
add x0, sp, #24
mov w1, #4
bl _inflate
str w0, [sp, #20]
ldr w8, [sp, #20]
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_7
LBB0_7:
add x0, sp, #24
bl _inflateEnd
ldr w8, [sp, #20]
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_8
LBB0_8:
ldr w8, [sp, #20]
adds w8, w8, #5
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_9
LBB0_9:
ldr w8, [sp, #32]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
mov w8, #-3
stur w8, [x29, #-4]
b LBB0_13
LBB0_11:
ldr w8, [sp, #20]
stur w8, [x29, #-4]
b LBB0_13
LBB0_12:
ldr x9, [sp, #8] ; 8-byte Folded Reload
add x0, sp, #24
ldr x8, [sp, #64]
ldr x9, [x9]
str x8, [x9]
bl _inflateEnd
str w0, [sp, #20]
ldr w8, [sp, #20]
stur w8, [x29, #-4]
b LBB0_13
LBB0_13:
ldur w0, [x29, #-4]
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 "1.2.11"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _uncompress ## -- Begin function uncompress
.p2align 4, 0x90
_uncompress: ## @uncompress
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $160, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq %rcx, -40(%rbp)
movq -32(%rbp), %rax
movq %rax, -152(%rbp)
movq -40(%rbp), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -144(%rbp)
movl -144(%rbp), %eax
## kill: def $rax killed $eax
cmpq -40(%rbp), %rax
je LBB0_2
## %bb.1:
movl $-5, -4(%rbp)
jmp LBB0_13
LBB0_2:
movq -16(%rbp), %rax
movq %rax, -128(%rbp)
movq -24(%rbp), %rax
movq (%rax), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -120(%rbp)
movl -120(%rbp), %eax
## kill: def $rax killed $eax
movq -24(%rbp), %rcx
cmpq (%rcx), %rax
je LBB0_4
## %bb.3:
movl $-5, -4(%rbp)
jmp LBB0_13
LBB0_4:
movq $0, -88(%rbp)
movq $0, -80(%rbp)
leaq -152(%rbp), %rdi
leaq L_.str(%rip), %rsi
movl $112, %edx
callq _inflateInit_
movl %eax, -156(%rbp)
cmpl $0, -156(%rbp)
je LBB0_6
## %bb.5:
movl -156(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_13
LBB0_6:
leaq -152(%rbp), %rdi
movl $4, %esi
callq _inflate
movl %eax, -156(%rbp)
cmpl $1, -156(%rbp)
je LBB0_12
## %bb.7:
leaq -152(%rbp), %rdi
callq _inflateEnd
cmpl $2, -156(%rbp)
je LBB0_10
## %bb.8:
cmpl $-5, -156(%rbp)
jne LBB0_11
## %bb.9:
cmpl $0, -144(%rbp)
jne LBB0_11
LBB0_10:
movl $-3, -4(%rbp)
jmp LBB0_13
LBB0_11:
movl -156(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_13
LBB0_12:
movq -112(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
leaq -152(%rbp), %rdi
callq _inflateEnd
movl %eax, -156(%rbp)
movl -156(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_13:
movl -4(%rbp), %eax
addq $160, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "1.2.11"
.subsections_via_symbols
| the_stack_data/43887058.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur wzr, [x29, #-16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #8
str x8, [x9]
sub x8, x29, #12
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldur w8, [x29, #-8]
subs w8, w8, #1
; kill: def $x8 killed $w8
str x8, [sp, #32] ; 8-byte Folded Spill
subs x8, x8, #11
cset w8, hi
tbnz w8, #0, LBB0_14
; %bb.1:
ldr x11, [sp, #32] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_2:
ldur w8, [x29, #-16]
add w8, w8, #30
stur w8, [x29, #-16]
b LBB0_14
LBB0_3:
ldur w8, [x29, #-16]
add w8, w8, #31
stur w8, [x29, #-16]
b LBB0_14
LBB0_4:
ldur w8, [x29, #-16]
add w8, w8, #30
stur w8, [x29, #-16]
b LBB0_14
LBB0_5:
ldur w8, [x29, #-16]
add w8, w8, #31
stur w8, [x29, #-16]
b LBB0_14
LBB0_6:
ldur w8, [x29, #-16]
add w8, w8, #31
stur w8, [x29, #-16]
b LBB0_14
LBB0_7:
ldur w8, [x29, #-16]
add w8, w8, #30
stur w8, [x29, #-16]
b LBB0_14
LBB0_8:
ldur w8, [x29, #-16]
add w8, w8, #31
stur w8, [x29, #-16]
b LBB0_14
LBB0_9:
ldur w8, [x29, #-16]
add w8, w8, #30
stur w8, [x29, #-16]
b LBB0_14
LBB0_10:
ldur w8, [x29, #-16]
add w8, w8, #31
stur w8, [x29, #-16]
b LBB0_14
LBB0_11:
ldur w8, [x29, #-16]
add w8, w8, #28
stur w8, [x29, #-16]
b LBB0_14
LBB0_12:
ldur w8, [x29, #-16]
add w8, w8, #31
stur w8, [x29, #-16]
b LBB0_14
LBB0_13:
ldur w8, [x29, #-16]
add w8, w8, #0
stur w8, [x29, #-16]
b LBB0_14
LBB0_14:
ldur w9, [x29, #-12]
ldur w8, [x29, #-16]
add w8, w8, w9
stur w8, [x29, #-16]
ldur w8, [x29, #-16]
mov w10, #7
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
stur w8, [x29, #-20]
ldur w8, [x29, #-20]
subs w8, w8, #0
; kill: def $x8 killed $w8
str x8, [sp, #24] ; 8-byte Folded Spill
subs x8, x8, #6
cset w8, hi
tbnz w8, #0, LBB0_23
; %bb.15:
ldr x11, [sp, #24] ; 8-byte Folded Reload
adrp x10, lJTI0_1@PAGE
add x10, x10, lJTI0_1@PAGEOFF
Ltmp1:
adr x8, Ltmp1
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_16:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_23
LBB0_17:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_23
LBB0_18:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB0_23
LBB0_19:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB0_23
LBB0_20:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB0_23
LBB0_21:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB0_23
LBB0_22:
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
b LBB0_23
LBB0_23:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_13-Ltmp0
.long LBB0_12-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_10-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_8-Ltmp0
.long LBB0_7-Ltmp0
.long LBB0_6-Ltmp0
.long LBB0_5-Ltmp0
.long LBB0_4-Ltmp0
.long LBB0_3-Ltmp0
.long LBB0_2-Ltmp0
.p2align 2
lJTI0_1:
.long LBB0_16-Ltmp1
.long LBB0_17-Ltmp1
.long LBB0_18-Ltmp1
.long LBB0_19-Ltmp1
.long LBB0_20-Ltmp1
.long LBB0_21-Ltmp1
.long LBB0_22-Ltmp1
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Enter today's date: "
l_.str.1: ; @.str.1
.asciz "%d/%d"
l_.str.2: ; @.str.2
.asciz "Happy Saturday!"
l_.str.3: ; @.str.3
.asciz "Happy Sunday!"
l_.str.4: ; @.str.4
.asciz "Happy Monday!"
l_.str.5: ; @.str.5
.asciz "Happy Tuesday!"
l_.str.6: ; @.str.6
.asciz "Happy Wednesday!"
l_.str.7: ; @.str.7
.asciz "Happy Thursday!"
l_.str.8: ; @.str.8
.asciz "Happy Friday!"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
movl $0, -16(%rbp)
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movb %al, -33(%rbp) ## 1-byte Spill
callq _printf
## kill: def $ecx killed $eax
movb -33(%rbp), %al ## 1-byte Reload
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
leaq -12(%rbp), %rdx
callq _scanf
movl -8(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -32(%rbp) ## 8-byte Spill
subl $11, %eax
ja LBB0_13
## %bb.22:
movq -32(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_1:
movl -16(%rbp), %eax
addl $30, %eax
movl %eax, -16(%rbp)
jmp LBB0_13
LBB0_2:
movl -16(%rbp), %eax
addl $31, %eax
movl %eax, -16(%rbp)
jmp LBB0_13
LBB0_3:
movl -16(%rbp), %eax
addl $30, %eax
movl %eax, -16(%rbp)
jmp LBB0_13
LBB0_4:
movl -16(%rbp), %eax
addl $31, %eax
movl %eax, -16(%rbp)
jmp LBB0_13
LBB0_5:
movl -16(%rbp), %eax
addl $31, %eax
movl %eax, -16(%rbp)
jmp LBB0_13
LBB0_6:
movl -16(%rbp), %eax
addl $30, %eax
movl %eax, -16(%rbp)
jmp LBB0_13
LBB0_7:
movl -16(%rbp), %eax
addl $31, %eax
movl %eax, -16(%rbp)
jmp LBB0_13
LBB0_8:
movl -16(%rbp), %eax
addl $30, %eax
movl %eax, -16(%rbp)
jmp LBB0_13
LBB0_9:
movl -16(%rbp), %eax
addl $31, %eax
movl %eax, -16(%rbp)
jmp LBB0_13
LBB0_10:
movl -16(%rbp), %eax
addl $28, %eax
movl %eax, -16(%rbp)
jmp LBB0_13
LBB0_11:
movl -16(%rbp), %eax
addl $31, %eax
movl %eax, -16(%rbp)
jmp LBB0_13
LBB0_12:
movl -16(%rbp), %eax
addl $0, %eax
movl %eax, -16(%rbp)
LBB0_13:
movl -12(%rbp), %ecx
movl -16(%rbp), %eax
addl %ecx, %eax
movl %eax, -16(%rbp)
movslq -16(%rbp), %rcx
movl %ecx, %eax
imulq $-1840700269, %rcx, %rcx ## imm = 0x92492493
shrq $32, %rcx
## kill: def $ecx killed $ecx killed $rcx
addl %eax, %ecx
movl %ecx, %edx
shrl $31, %edx
sarl $2, %ecx
addl %edx, %ecx
movl %ecx, %edx
shll $3, %edx
subl %edx, %ecx
addl %ecx, %eax
movl %eax, -20(%rbp)
movl -20(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -48(%rbp) ## 8-byte Spill
subq $6, %rax
ja LBB0_21
## %bb.23:
movq -48(%rbp), %rax ## 8-byte Reload
leaq LJTI0_1(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_14:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_21
LBB0_15:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_21
LBB0_16:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_21
LBB0_17:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_21
LBB0_18:
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_21
LBB0_19:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_21
LBB0_20:
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
LBB0_21:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
LJTI0_0:
.long L0_0_set_12
.long L0_0_set_11
.long L0_0_set_10
.long L0_0_set_9
.long L0_0_set_8
.long L0_0_set_7
.long L0_0_set_6
.long L0_0_set_5
.long L0_0_set_4
.long L0_0_set_3
.long L0_0_set_2
.long L0_0_set_1
.set L0_1_set_14, LBB0_14-LJTI0_1
.set L0_1_set_15, LBB0_15-LJTI0_1
.set L0_1_set_16, LBB0_16-LJTI0_1
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_19, LBB0_19-LJTI0_1
.set L0_1_set_20, LBB0_20-LJTI0_1
LJTI0_1:
.long L0_1_set_14
.long L0_1_set_15
.long L0_1_set_16
.long L0_1_set_17
.long L0_1_set_18
.long L0_1_set_19
.long L0_1_set_20
.end_data_region
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter today's date: "
L_.str.1: ## @.str.1
.asciz "%d/%d"
L_.str.2: ## @.str.2
.asciz "Happy Saturday!"
L_.str.3: ## @.str.3
.asciz "Happy Sunday!"
L_.str.4: ## @.str.4
.asciz "Happy Monday!"
L_.str.5: ## @.str.5
.asciz "Happy Tuesday!"
L_.str.6: ## @.str.6
.asciz "Happy Wednesday!"
L_.str.7: ## @.str.7
.asciz "Happy Thursday!"
L_.str.8: ## @.str.8
.asciz "Happy Friday!"
.subsections_via_symbols
| the_stack_data/116268.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__const
.globl _IID_IOPCServer ; @IID_IOPCServer
.p2align 3
_IID_IOPCServer:
.quad 968964685 ; 0x39c13a4d
.short 286 ; 0x11e
.short 4560 ; 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCServerPublicGroups ; @IID_IOPCServerPublicGroups
.p2align 3
_IID_IOPCServerPublicGroups:
.quad 968964686 ; 0x39c13a4e
.short 286 ; 0x11e
.short 4560 ; 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCBrowseServerAddressSpace ; @IID_IOPCBrowseServerAddressSpace
.p2align 3
_IID_IOPCBrowseServerAddressSpace:
.quad 968964687 ; 0x39c13a4f
.short 286 ; 0x11e
.short 4560 ; 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCGroupStateMgt ; @IID_IOPCGroupStateMgt
.p2align 3
_IID_IOPCGroupStateMgt:
.quad 968964688 ; 0x39c13a50
.short 286 ; 0x11e
.short 4560 ; 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCPublicGroupStateMgt ; @IID_IOPCPublicGroupStateMgt
.p2align 3
_IID_IOPCPublicGroupStateMgt:
.quad 968964689 ; 0x39c13a51
.short 286 ; 0x11e
.short 4560 ; 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCSyncIO ; @IID_IOPCSyncIO
.p2align 3
_IID_IOPCSyncIO:
.quad 968964690 ; 0x39c13a52
.short 286 ; 0x11e
.short 4560 ; 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCAsyncIO ; @IID_IOPCAsyncIO
.p2align 3
_IID_IOPCAsyncIO:
.quad 968964691 ; 0x39c13a53
.short 286 ; 0x11e
.short 4560 ; 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCItemMgt ; @IID_IOPCItemMgt
.p2align 3
_IID_IOPCItemMgt:
.quad 968964692 ; 0x39c13a54
.short 286 ; 0x11e
.short 4560 ; 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IEnumOPCItemAttributes ; @IID_IEnumOPCItemAttributes
.p2align 3
_IID_IEnumOPCItemAttributes:
.quad 968964693 ; 0x39c13a55
.short 286 ; 0x11e
.short 4560 ; 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCDataCallback ; @IID_IOPCDataCallback
.p2align 3
_IID_IOPCDataCallback:
.quad 968964720 ; 0x39c13a70
.short 286 ; 0x11e
.short 4560 ; 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCAsyncIO2 ; @IID_IOPCAsyncIO2
.p2align 3
_IID_IOPCAsyncIO2:
.quad 968964721 ; 0x39c13a71
.short 286 ; 0x11e
.short 4560 ; 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCItemProperties ; @IID_IOPCItemProperties
.p2align 3
_IID_IOPCItemProperties:
.quad 968964722 ; 0x39c13a72
.short 286 ; 0x11e
.short 4560 ; 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _LIBID_OPCDA ; @LIBID_OPCDA
.p2align 3
_LIBID_OPCDA:
.quad 2995711410 ; 0xb28eedb2
.short 44143 ; 0xac6f
.short 4561 ; 0x11d1
.ascii "\204\325\000`\214\270\247\351"
.space 4
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__const
.globl _IID_IOPCServer ## @IID_IOPCServer
.p2align 3
_IID_IOPCServer:
.quad 968964685 ## 0x39c13a4d
.short 286 ## 0x11e
.short 4560 ## 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCServerPublicGroups ## @IID_IOPCServerPublicGroups
.p2align 3
_IID_IOPCServerPublicGroups:
.quad 968964686 ## 0x39c13a4e
.short 286 ## 0x11e
.short 4560 ## 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCBrowseServerAddressSpace ## @IID_IOPCBrowseServerAddressSpace
.p2align 3
_IID_IOPCBrowseServerAddressSpace:
.quad 968964687 ## 0x39c13a4f
.short 286 ## 0x11e
.short 4560 ## 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCGroupStateMgt ## @IID_IOPCGroupStateMgt
.p2align 3
_IID_IOPCGroupStateMgt:
.quad 968964688 ## 0x39c13a50
.short 286 ## 0x11e
.short 4560 ## 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCPublicGroupStateMgt ## @IID_IOPCPublicGroupStateMgt
.p2align 3
_IID_IOPCPublicGroupStateMgt:
.quad 968964689 ## 0x39c13a51
.short 286 ## 0x11e
.short 4560 ## 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCSyncIO ## @IID_IOPCSyncIO
.p2align 3
_IID_IOPCSyncIO:
.quad 968964690 ## 0x39c13a52
.short 286 ## 0x11e
.short 4560 ## 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCAsyncIO ## @IID_IOPCAsyncIO
.p2align 3
_IID_IOPCAsyncIO:
.quad 968964691 ## 0x39c13a53
.short 286 ## 0x11e
.short 4560 ## 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCItemMgt ## @IID_IOPCItemMgt
.p2align 3
_IID_IOPCItemMgt:
.quad 968964692 ## 0x39c13a54
.short 286 ## 0x11e
.short 4560 ## 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IEnumOPCItemAttributes ## @IID_IEnumOPCItemAttributes
.p2align 3
_IID_IEnumOPCItemAttributes:
.quad 968964693 ## 0x39c13a55
.short 286 ## 0x11e
.short 4560 ## 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCDataCallback ## @IID_IOPCDataCallback
.p2align 3
_IID_IOPCDataCallback:
.quad 968964720 ## 0x39c13a70
.short 286 ## 0x11e
.short 4560 ## 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCAsyncIO2 ## @IID_IOPCAsyncIO2
.p2align 3
_IID_IOPCAsyncIO2:
.quad 968964721 ## 0x39c13a71
.short 286 ## 0x11e
.short 4560 ## 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _IID_IOPCItemProperties ## @IID_IOPCItemProperties
.p2align 3
_IID_IOPCItemProperties:
.quad 968964722 ## 0x39c13a72
.short 286 ## 0x11e
.short 4560 ## 0x11d0
.ascii "\226u\000 \257\330\255\263"
.space 4
.globl _LIBID_OPCDA ## @LIBID_OPCDA
.p2align 3
_LIBID_OPCDA:
.quad 2995711410 ## 0xb28eedb2
.short 44143 ## 0xac6f
.short 4561 ## 0x11d1
.ascii "\204\325\000`\214\270\247\351"
.space 4
.subsections_via_symbols
| the_stack_data/156393524.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-20]
sub x8, x29, #16
str x8, [sp, #16] ; 8-byte Folded Spill
stur xzr, [x29, #-16]
mov w8, #2
stur w8, [x29, #-24]
mov w8, #1
sturb w8, [x29, #-25]
str wzr, [sp, #32]
mov x0, #0
bl _time
; kill: def $w0 killed $w0 killed $x0
bl _srand
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldur w1, [x29, #-24]
bl _cardRound
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldur w1, [x29, #-24]
bl _cardRound
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldurb w8, [x29, #-25]
tbz w8, #0, LBB0_24
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #24]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #24]
ldur w9, [x29, #-24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_23
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldrsw x9, [sp, #24]
sub x8, x29, #16
ldr w0, [x8, x9, lsl #2]
bl _checkDisqualify
tbz w0, #0, LBB0_12
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
ldur w9, [x29, #-24]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
subs w9, w8, #1
sub x8, x29, #16
ldr w0, [x8, w9, sxtw #2]
bl _checkDisqualify
tbz w0, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
sturb wzr, [x29, #-25]
b LBB0_23
LBB0_8: ; in Loop: Header=BB0_1 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.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr w8, [sp, #24]
; implicit-def: $x10
mov x10, x8
ldr w8, [sp, #24]
subs w9, w8, #1
sub x8, x29, #16
ldr w9, [x8, w9, sxtw #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
sturb wzr, [x29, #-25]
b LBB0_23
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
add w9, w8, #1
sub x8, x29, #16
ldr w0, [x8, w9, sxtw #2]
bl _checkDisqualify
tbz w0, #0, LBB0_11
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
sturb wzr, [x29, #-25]
b LBB0_23
LBB0_11: ; in Loop: Header=BB0_1 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.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr w8, [sp, #24]
add w11, w8, #2
ldr w8, [sp, #24]
add w9, w8, #1
sub x8, x29, #16
ldr w9, [x8, w9, sxtw #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.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
sturb wzr, [x29, #-25]
b LBB0_23
LBB0_12: ; in Loop: Header=BB0_3 Depth=2
ldrsw x9, [sp, #24]
sub x8, x29, #16
ldr w0, [x8, x9, lsl #2]
bl _checkWin
tbz w0, #0, LBB0_14
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
add w11, w8, #1
ldrsw x9, [sp, #24]
sub x8, x29, #16
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.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
sturb wzr, [x29, #-25]
b LBB0_23
LBB0_14: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #24]
add w11, w8, #1
ldrsw x9, [sp, #24]
sub x8, x29, #16
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.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldr w8, [sp, #24]
add w10, w8, #1
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
mov x9, sp
add x8, sp, #31
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _scanf
ldrsb w8, [sp, #31]
subs w8, w8, #121
cset w8, eq
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_3 Depth=2
ldrsb w8, [sp, #31]
subs w8, w8, #89
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_3 Depth=2
bl _givePoint
str w0, [sp, #32]
ldr w10, [sp, #32]
ldrsw x9, [sp, #24]
sub x8, x29, #16
add x9, x8, x9, lsl #2
ldr w8, [x9]
add w8, w8, w10
str w8, [x9]
b LBB0_21
LBB0_17: ; in Loop: Header=BB0_3 Depth=2
ldrsb w8, [sp, #31]
subs w8, w8, #110
cset w8, eq
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_3 Depth=2
ldrsb w8, [sp, #31]
subs w8, w8, #78
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_3 Depth=2
b LBB0_22
LBB0_20: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
sturb wzr, [x29, #-25]
b LBB0_23
LBB0_21: ; in Loop: Header=BB0_3 Depth=2
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_3
LBB0_23: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_24:
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_26
b LBB0_25
LBB0_25:
bl ___stack_chk_fail
LBB0_26:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _cardRound ; -- Begin function cardRound
.p2align 2
_cardRound: ; @cardRound
.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]
str wzr, [sp, #8]
str wzr, [sp, #4]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
bl _givePoint
str w0, [sp, #8]
ldr w10, [sp, #8]
ldr x8, [sp, #16]
ldrsw x9, [sp, #4]
add x9, x8, x9, lsl #2
ldr w8, [x9]
add w8, w8, w10
str w8, [x9]
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:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _checkDisqualify ; -- Begin function checkDisqualify
.p2align 2
_checkDisqualify: ; @checkDisqualify
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #21
cset w8, le
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #15]
b LBB2_3
LBB2_2:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #15]
b LBB2_3
LBB2_3:
ldrb w8, [sp, #15]
and w0, w8, #0x1
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _checkWin ; -- Begin function checkWin
.p2align 2
_checkWin: ; @checkWin
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #21
cset w8, ne
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #15]
b LBB3_3
LBB3_2:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #15]
b LBB3_3
LBB3_3:
ldrb w8, [sp, #15]
and w0, w8, #0x1
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _randfor2 ; -- Begin function randfor2
.p2align 2
_randfor2: ; @randfor2
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _rand
mov w9, #2
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
add w8, w8, #1
str w8, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
mov w8, #1
stur w8, [x29, #-4]
b LBB4_5
LBB4_2:
ldr w8, [sp, #8]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB4_4
b LBB4_3
LBB4_3:
mov w8, #11
stur w8, [x29, #-4]
b LBB4_5
LBB4_4:
b LBB4_5
LBB4_5:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _checkRepeat ; -- Begin function checkRepeat
.p2align 2
_checkRepeat: ; @checkRepeat
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
adrp x8, _noRepeat@GOTPAGE
ldr x8, [x8, _noRepeat@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
stur x0, [sp, #20]
str wzr, [sp, #16]
b LBB5_1
LBB5_1:
ldr w8, [sp, #16]
subs w8, w8, #30
cset w8, ge
tbnz w8, #0, LBB5_6
b LBB5_2
LBB5_2:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr w8, [sp, #20]
ldrsw x10, [sp, #16]
lsl x10, x10, #3
ldr w9, [x9, x10]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB5_5
b LBB5_3
LBB5_3:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr w8, [sp, #20]
ldrsw x10, [sp, #16]
lsl x10, x10, #3
ldr w9, [x9, x10]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB5_5
b LBB5_4
LBB5_4:
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #31]
b LBB5_6
LBB5_5:
ldr x10, [sp, #8] ; 8-byte Folded Reload
ldr w8, [sp, #20]
adrp x9, _noRepeat_counter@PAGE
ldrsw x11, [x9, _noRepeat_counter@PAGEOFF]
lsl x11, x11, #3
str w8, [x10, x11]
ldr w8, [sp, #24]
ldr w11, [x9, _noRepeat_counter@PAGEOFF]
add w11, w11, #1
add x10, x10, w11, sxtw #3
str w8, [x10, #4]
ldr w8, [x9, _noRepeat_counter@PAGEOFF]
add w8, w8, #2
str w8, [x9, _noRepeat_counter@PAGEOFF]
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #31]
b LBB5_6
LBB5_6:
ldrb w8, [sp, #31]
and w0, w8, #0x1
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _givePoint ; -- Begin function givePoint
.p2align 2
_givePoint: ; @givePoint
.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 _rand
stur w0, [x29, #-8]
mov w8, #1
stur w8, [x29, #-12]
mov w9, #4
str w9, [sp, #16]
ldur w9, [x29, #-8]
ldr w10, [sp, #16]
ldur w11, [x29, #-12]
subs w10, w10, w11
add w11, w10, #1
sdiv w10, w9, w11
mul w10, w10, w11
subs w9, w9, w10
ldur w10, [x29, #-12]
add w9, w9, w10
str w9, [sp, #8]
stur w8, [x29, #-12]
mov w8, #13
str w8, [sp, #16]
ldur w8, [x29, #-8]
ldr w9, [sp, #16]
ldur w10, [x29, #-12]
subs w9, w9, w10
add w10, w9, #1
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
ldur w9, [x29, #-12]
add w8, w8, w9
str w8, [sp, #12]
ldr x0, [sp, #8]
bl _checkRepeat
tbz w0, #0, LBB6_2
b LBB6_1
LBB6_1:
bl _givePoint
b LBB6_7
LBB6_2:
ldr w8, [sp, #12]
subs w8, w8, #11
cset w8, ge
tbnz w8, #0, LBB6_6
b LBB6_3
LBB6_3:
ldr w8, [sp, #12]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB6_5
b LBB6_4
LBB6_4:
bl _randfor2
str w0, [sp, #4]
ldr w8, [sp, #4]
stur w8, [x29, #-4]
b LBB6_7
LBB6_5:
ldr w8, [sp, #12]
stur w8, [x29, #-4]
b LBB6_7
LBB6_6:
mov w8, #10
stur w8, [x29, #-4]
b LBB6_7
LBB6_7:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _noRepeat_counter ; @noRepeat_counter
.zerofill __DATA,__common,_noRepeat_counter,4,2
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\nNo one won the game!\n"
l_.str.1: ; @.str.1
.asciz "Player %d exceeded 21 points and got disqualified!\n"
l_.str.2: ; @.str.2
.asciz "Player %d won with %d points!\n"
l_.str.3: ; @.str.3
.asciz "No one won the game!\n"
l_.str.4: ; @.str.4
.asciz "blackjack! Player %d won with %d points!\n"
l_.str.5: ; @.str.5
.asciz "\nPlayer %d -> %d points!\n"
l_.str.6: ; @.str.6
.asciz "Do you want to hit, player %d? y or n\n"
l_.str.7: ; @.str.7
.asciz " %c"
l_.str.8: ; @.str.8
.asciz "Invalid input!\n"
.comm _noRepeat,240,2 ; @noRepeat
.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, -20(%rbp)
leaq -16(%rbp), %rdi
xorl %esi, %esi
movl $8, %edx
callq _memset
movl $2, -24(%rbp)
movb $1, -25(%rbp)
movl $0, -32(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq _time
movl %eax, %edi
callq _srand
leaq -16(%rbp), %rdi
movl -24(%rbp), %esi
callq _cardRound
leaq -16(%rbp), %rdi
movl -24(%rbp), %esi
callq _cardRound
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
testb $1, -25(%rbp)
je LBB0_24
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -40(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -40(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB0_23
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movslq -40(%rbp), %rax
movl -16(%rbp,%rax,4), %edi
callq _checkDisqualify
testb $1, %al
jne LBB0_5
jmp LBB0_12
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movl -40(%rbp), %eax
movl -24(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jne LBB0_9
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
movl -40(%rbp), %eax
subl $1, %eax
cltq
movl -16(%rbp,%rax,4), %edi
callq _checkDisqualify
testb $1, %al
jne LBB0_7
jmp LBB0_8
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movb $0, -25(%rbp)
jmp LBB0_23
LBB0_8: ## 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
movl -40(%rbp), %esi
movl -40(%rbp), %eax
subl $1, %eax
cltq
movl -16(%rbp,%rax,4), %edx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movb $0, -25(%rbp)
jmp LBB0_23
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movl -40(%rbp), %eax
addl $1, %eax
cltq
movl -16(%rbp,%rax,4), %edi
callq _checkDisqualify
testb $1, %al
jne LBB0_10
jmp LBB0_11
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movb $0, -25(%rbp)
jmp LBB0_23
LBB0_11: ## 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
movl -40(%rbp), %esi
addl $2, %esi
movl -40(%rbp), %eax
addl $1, %eax
cltq
movl -16(%rbp,%rax,4), %edx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movb $0, -25(%rbp)
jmp LBB0_23
LBB0_12: ## in Loop: Header=BB0_3 Depth=2
movslq -40(%rbp), %rax
movl -16(%rbp,%rax,4), %edi
callq _checkWin
testb $1, %al
jne LBB0_13
jmp LBB0_14
LBB0_13: ## in Loop: Header=BB0_1 Depth=1
movl -40(%rbp), %esi
addl $1, %esi
movslq -40(%rbp), %rax
movl -16(%rbp,%rax,4), %edx
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movb $0, -25(%rbp)
jmp LBB0_23
LBB0_14: ## in Loop: Header=BB0_3 Depth=2
movl -40(%rbp), %esi
addl $1, %esi
movslq -40(%rbp), %rax
movl -16(%rbp,%rax,4), %edx
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movl -40(%rbp), %esi
addl $1, %esi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.7(%rip), %rdi
leaq -33(%rbp), %rsi
movb $0, %al
callq _scanf
movsbl -33(%rbp), %eax
cmpl $121, %eax
je LBB0_16
## %bb.15: ## in Loop: Header=BB0_3 Depth=2
movsbl -33(%rbp), %eax
cmpl $89, %eax
jne LBB0_17
LBB0_16: ## in Loop: Header=BB0_3 Depth=2
callq _givePoint
movl %eax, -32(%rbp)
movl -32(%rbp), %ecx
movslq -40(%rbp), %rax
addl -16(%rbp,%rax,4), %ecx
movl %ecx, -16(%rbp,%rax,4)
jmp LBB0_21
LBB0_17: ## in Loop: Header=BB0_3 Depth=2
movsbl -33(%rbp), %eax
cmpl $110, %eax
je LBB0_19
## %bb.18: ## in Loop: Header=BB0_3 Depth=2
movsbl -33(%rbp), %eax
cmpl $78, %eax
jne LBB0_20
LBB0_19: ## in Loop: Header=BB0_3 Depth=2
jmp LBB0_22
LBB0_20: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movb $0, -25(%rbp)
jmp LBB0_23
LBB0_21: ## in Loop: Header=BB0_3 Depth=2
jmp LBB0_22
LBB0_22: ## in Loop: Header=BB0_3 Depth=2
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_3
LBB0_23: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_24:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_26
## %bb.25:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
LBB0_26:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _cardRound ## -- Begin function cardRound
.p2align 4, 0x90
_cardRound: ## @cardRound
.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 $0, -24(%rbp)
movl $0, -28(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
callq _givePoint
movl %eax, -24(%rbp)
movl -24(%rbp), %edx
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
addl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB1_1
LBB1_4:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _checkDisqualify ## -- Begin function checkDisqualify
.p2align 4, 0x90
_checkDisqualify: ## @checkDisqualify
.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 $21, -8(%rbp)
jle LBB2_2
## %bb.1:
movb $1, -1(%rbp)
jmp LBB2_3
LBB2_2:
movb $0, -1(%rbp)
LBB2_3:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _checkWin ## -- Begin function checkWin
.p2align 4, 0x90
_checkWin: ## @checkWin
.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 $21, -8(%rbp)
jne LBB3_2
## %bb.1:
movb $1, -1(%rbp)
jmp LBB3_3
LBB3_2:
movb $0, -1(%rbp)
LBB3_3:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _randfor2 ## -- Begin function randfor2
.p2align 4, 0x90
_randfor2: ## @randfor2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
callq _rand
movl $2, %ecx
cltd
idivl %ecx
addl $1, %edx
movl %edx, -8(%rbp)
cmpl $1, -8(%rbp)
jne LBB4_2
## %bb.1:
movl $1, -4(%rbp)
jmp LBB4_5
LBB4_2:
cmpl $2, -8(%rbp)
jne LBB4_4
## %bb.3:
movl $11, -4(%rbp)
jmp LBB4_5
LBB4_4:
jmp LBB4_5
LBB4_5:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _checkRepeat ## -- Begin function checkRepeat
.p2align 4, 0x90
_checkRepeat: ## @checkRepeat
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -16(%rbp)
movl $0, -20(%rbp)
## %bb.1:
cmpl $30, -20(%rbp)
jge LBB5_6
## %bb.2:
movl -16(%rbp), %eax
movslq -20(%rbp), %rdx
movq _noRepeat@GOTPCREL(%rip), %rcx
cmpl (%rcx,%rdx,8), %eax
jne LBB5_5
## %bb.3:
movl -16(%rbp), %eax
movslq -20(%rbp), %rdx
movq _noRepeat@GOTPCREL(%rip), %rcx
cmpl (%rcx,%rdx,8), %eax
jne LBB5_5
## %bb.4:
movb $1, -1(%rbp)
jmp LBB5_6
LBB5_5:
movl -16(%rbp), %edx
movslq _noRepeat_counter(%rip), %rcx
movq _noRepeat@GOTPCREL(%rip), %rax
movl %edx, (%rax,%rcx,8)
movl -12(%rbp), %edx
movl _noRepeat_counter(%rip), %eax
addl $1, %eax
movslq %eax, %rcx
movq _noRepeat@GOTPCREL(%rip), %rax
movl %edx, 4(%rax,%rcx,8)
movl _noRepeat_counter(%rip), %eax
addl $2, %eax
movl %eax, _noRepeat_counter(%rip)
movb $0, -1(%rbp)
LBB5_6:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _givePoint ## -- Begin function givePoint
.p2align 4, 0x90
_givePoint: ## @givePoint
.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 _rand
movl %eax, -8(%rbp)
movl $1, -12(%rbp)
movl $4, -16(%rbp)
movl -8(%rbp), %eax
movl -16(%rbp), %ecx
subl -12(%rbp), %ecx
addl $1, %ecx
cltd
idivl %ecx
addl -12(%rbp), %edx
movl %edx, -24(%rbp)
movl $1, -12(%rbp)
movl $13, -16(%rbp)
movl -8(%rbp), %eax
movl -16(%rbp), %ecx
subl -12(%rbp), %ecx
addl $1, %ecx
cltd
idivl %ecx
addl -12(%rbp), %edx
movl %edx, -20(%rbp)
movq -24(%rbp), %rdi
callq _checkRepeat
testb $1, %al
jne LBB6_1
jmp LBB6_2
LBB6_1:
callq _givePoint
jmp LBB6_7
LBB6_2:
cmpl $11, -20(%rbp)
jge LBB6_6
## %bb.3:
cmpl $1, -20(%rbp)
jne LBB6_5
## %bb.4:
callq _randfor2
movl %eax, -28(%rbp)
movl -28(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB6_7
LBB6_5:
movl -20(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB6_7
LBB6_6:
movl $10, -4(%rbp)
LBB6_7:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _noRepeat_counter ## @noRepeat_counter
.zerofill __DATA,__common,_noRepeat_counter,4,2
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\nNo one won the game!\n"
L_.str.1: ## @.str.1
.asciz "Player %d exceeded 21 points and got disqualified!\n"
L_.str.2: ## @.str.2
.asciz "Player %d won with %d points!\n"
L_.str.3: ## @.str.3
.asciz "No one won the game!\n"
L_.str.4: ## @.str.4
.asciz "blackjack! Player %d won with %d points!\n"
L_.str.5: ## @.str.5
.asciz "\nPlayer %d -> %d points!\n"
L_.str.6: ## @.str.6
.asciz "Do you want to hit, player %d? y or n\n"
L_.str.7: ## @.str.7
.asciz " %c"
L_.str.8: ## @.str.8
.asciz "Invalid input!\n"
.comm _noRepeat,240,4 ## @noRepeat
.subsections_via_symbols
| the_stack_data/243891921.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]
ldr w8, [sp, #12]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #1
adrp x9, _a@GOTPAGE
ldr x9, [x9, _a@GOTPAGEOFF]
str w8, [x9]
b LBB0_3
LBB0_2:
adrp x9, _a@GOTPAGE
ldr x9, [x9, _a@GOTPAGEOFF]
mov w8, #2
str w8, [x9]
b LBB0_3
LBB0_3:
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _a,4,2 ; @a
.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)
cmpl $10, -4(%rbp)
jge LBB0_2
## %bb.1:
movq _a@GOTPCREL(%rip), %rax
movl $1, (%rax)
jmp LBB0_3
LBB0_2:
movq _a@GOTPCREL(%rip), %rax
movl $2, (%rax)
LBB0_3:
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _a,4,2 ## @a
.subsections_via_symbols
| the_stack_data/122057.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _rpl_malloc ; -- Begin function rpl_malloc
.p2align 2
_rpl_malloc: ; @rpl_malloc
.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:
mov x8, #1
str x8, [sp, #8]
b LBB0_2
LBB0_2:
ldr x0, [sp, #8]
bl _malloc
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 _rpl_malloc ## -- Begin function rpl_malloc
.p2align 4, 0x90
_rpl_malloc: ## @rpl_malloc
.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:
movq $1, -8(%rbp)
LBB0_2:
movq -8(%rbp), %rdi
callq _malloc
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/218892065.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
add x8, sp, #8
str x8, [sp]
; kill: def $x8 killed $xzr
str xzr, [sp, #8]
ldr x8, [sp]
ldr x0, [x8]
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
leaq -8(%rbp), %rax
movq %rax, -16(%rbp)
movq $0, -8(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/678281.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 v
lCPI0_0:
.quad 0x4059000000000000 ; double 100
.section __TEXT,__text,regular,pure_instructions
.globl _v
.p2align 2
_v: ; @v
.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 LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
adrp x9, _N@PAGE
ldr w9, [x9, _N@PAGEOFF]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #12]
adrp x8, _weights@PAGE
add x8, x8, _weights@PAGEOFF
ldrsw x8, [x8, x9, lsl #2]
ldr x9, [sp, #24]
and x9, x9, #0x1
mul x8, x8, x9
ucvtf d0, x8
fmov d1, #1.00000000
fmul d0, d0, d1
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d1, d0, d1
ldr d0, [sp, #16]
fadd d0, d0, d1
str d0, [sp, #16]
ldr x8, [sp, #24]
lsr x8, x8, #1
str x8, [sp, #24]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_1
LBB0_4:
ldr d0, [sp, #16]
ldr d1, [sp, #16]
fmul d0, d0, d1
fmov d1, #2.00000000
fdiv d0, d0, d1
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __DATA,__data
.globl _N ; @N
.p2align 2
_N:
.long 15 ; 0xf
.globl _weights ; @weights
.p2align 2
_weights:
.long 45 ; 0x2d
.long 41 ; 0x29
.long 27 ; 0x1b
.long 26 ; 0x1a
.long 25 ; 0x19
.long 21 ; 0x15
.long 13 ; 0xd
.long 13 ; 0xd
.long 12 ; 0xc
.long 12 ; 0xc
.long 11 ; 0xb
.long 11 ; 0xb
.long 10 ; 0xa
.long 10 ; 0xa
.long 10 ; 0xa
.globl _d ; @d
.p2align 3
_d:
.quad 0x3ff30b4395810625 ; double 1.19025
.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 v
LCPI0_0:
.quad 0x4000000000000000 ## double 2
LCPI0_1:
.quad 0x4059000000000000 ## double 100
LCPI0_2:
.quad 0x3ff0000000000000 ## double 1
.section __TEXT,__literal16,16byte_literals
.p2align 4
LCPI0_3:
.long 1127219200 ## 0x43300000
.long 1160773632 ## 0x45300000
.long 0 ## 0x0
.long 0 ## 0x0
LCPI0_4:
.quad 0x4330000000000000 ## double 4503599627370496
.quad 0x4530000000000000 ## double 1.9342813113834067E+25
.section __TEXT,__text,regular,pure_instructions
.globl _v
.p2align 4, 0x90
_v: ## @v
.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)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl _N(%rip), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -20(%rbp), %rcx
leaq _weights(%rip), %rax
movslq (%rax,%rcx,4), %rax
movq -8(%rbp), %rcx
## kill: def $ecx killed $ecx killed $rcx
andl $1, %ecx
## kill: def $rcx killed $ecx
imulq %rcx, %rax
movq %rax, %xmm0
movaps LCPI0_3(%rip), %xmm1 ## xmm1 = [1127219200,1160773632,0,0]
punpckldq %xmm1, %xmm0 ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd LCPI0_4(%rip), %xmm1 ## xmm1 = [4.503599627370496E+15,1.9342813113834067E+25]
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0 ## xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
addsd -16(%rbp), %xmm0
movsd %xmm0, -16(%rbp)
movq -8(%rbp), %rax
shrq $1, %rax
movq %rax, -8(%rbp)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_1
LBB0_4:
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
mulsd -16(%rbp), %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.globl _N ## @N
.p2align 2
_N:
.long 15 ## 0xf
.globl _weights ## @weights
.p2align 4
_weights:
.long 45 ## 0x2d
.long 41 ## 0x29
.long 27 ## 0x1b
.long 26 ## 0x1a
.long 25 ## 0x19
.long 21 ## 0x15
.long 13 ## 0xd
.long 13 ## 0xd
.long 12 ## 0xc
.long 12 ## 0xc
.long 11 ## 0xb
.long 11 ## 0xb
.long 10 ## 0xa
.long 10 ## 0xa
.long 10 ## 0xa
.globl _d ## @d
.p2align 3
_d:
.quad 0x3ff30b4395810625 ## double 1.19025
.subsections_via_symbols
| the_stack_data/103266316.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, #864
add x8, sp, #264
str x8, [sp, #88] ; 8-byte Folded Spill
adrp x9, ___stdoutp@GOTPAGE
ldr x9, [x9, ___stdoutp@GOTPAGEOFF]
str x9, [sp, #96] ; 8-byte Folded Spill
adrp x9, ___stderrp@GOTPAGE
ldr x9, [x9, ___stderrp@GOTPAGEOFF]
str x9, [sp, #104] ; 8-byte Folded Spill
adrp x9, _optarg@GOTPAGE
ldr x9, [x9, _optarg@GOTPAGEOFF]
str x9, [sp, #112] ; 8-byte Folded Spill
adrp x9, ___stack_chk_guard@GOTPAGE
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
ldr x9, [x9]
stur x9, [x29, #-24]
str wzr, [sp, #276]
str w0, [sp, #272]
str x1, [x8]
str wzr, [sp, #256]
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
str x8, [sp, #248]
mov w8, #8888
strh w8, [sp, #246]
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
str x8, [sp, #232]
adrp x8, l_.str.2@PAGE
add x8, x8, l_.str.2@PAGEOFF
str x8, [sp, #152]
str wzr, [sp, #124]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #88] ; 8-byte Folded Reload
ldr w0, [sp, #272]
ldr x1, [x8]
adrp x2, l_.str.3@PAGE
add x2, x2, l_.str.3@PAGEOFF
bl _getopt
str w0, [sp, #256]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #256]
subs w8, w8, #104
; kill: def $x8 killed $w8
str x8, [sp, #80] ; 8-byte Folded Spill
subs x8, x8, #11
cset w8, hi
tbnz w8, #0, LBB0_8
; %bb.3: ; in Loop: Header=BB0_1 Depth=1
ldr x11, [sp, #80] ; 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_4: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #112] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #248]
b LBB0_9
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #112] ; 8-byte Folded Reload
ldr x0, [x8]
bl _atoi
strh w0, [sp, #246]
b LBB0_9
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #112] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #152]
b LBB0_9
LBB0_7:
ldr x8, [sp, #96] ; 8-byte Folded Reload
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.5@PAGE
add x8, x8, l_.str.5@PAGEOFF
str x8, [x9]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
mov w0, #0
bl _exit
LBB0_8:
ldr x8, [sp, #104] ; 8-byte Folded Reload
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.5@PAGE
add x8, x8, l_.str.5@PAGEOFF
str x8, [x9]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_10:
add x0, sp, #176
str x0, [sp, #72] ; 8-byte Folded Spill
mov w1, #0
mov x2, #48
bl _memset
mov w8, #2
str w8, [sp, #180]
mov w8, #1
str w8, [sp, #184]
ldrh w10, [sp, #246]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
sub x0, x29, #39
str x0, [sp, #64] ; 8-byte Folded Spill
mov x3, #15
mov x1, x3
mov w2, #0
adrp x4, l_.str.6@PAGE
add x4, x4, l_.str.6@PAGEOFF
bl ___snprintf_chk
ldr x1, [sp, #64] ; 8-byte Folded Reload
ldr x2, [sp, #72] ; 8-byte Folded Reload
ldr x0, [sp, #248]
add x3, sp, #168
bl _getaddrinfo
str w0, [sp, #164]
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
ldr x8, [sp, #104] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #56] ; 8-byte Folded Spill
ldr w0, [sp, #164]
bl _gai_strerror
mov x8, x0
ldr x0, [sp, #56] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x1, l_.str.7@PAGE
add x1, x1, l_.str.7@PAGEOFF
bl _fprintf
mov w8, #1
str w8, [sp, #276]
b LBB0_24
LBB0_12:
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
ldr x8, [sp, #168]
ldr w0, [x8, #4]
ldr x8, [sp, #168]
ldr w1, [x8, #8]
ldr x8, [sp, #168]
ldr w2, [x8, #12]
bl _socket
str w0, [sp, #260]
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_14:
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
ldr w0, [sp, #260]
ldr x8, [sp, #168]
ldr x1, [x8, #32]
ldr x8, [sp, #168]
ldr w2, [x8, #16]
bl _connect
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15:
ldr w0, [sp, #260]
bl _close
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_16:
ldr x8, [sp, #168]
ldr w8, [x8, #4]
str w8, [sp, #36] ; 4-byte Folded Spill
ldr x8, [sp, #168]
ldr x0, [x8, #32]
bl _get_in_addr
mov x1, x0
ldr w0, [sp, #36] ; 4-byte Folded Reload
add x2, sp, #539
str x2, [sp, #40] ; 8-byte Folded Spill
mov w3, #46
bl _inet_ntop
ldr x8, [sp, #40] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
ldr w0, [sp, #260]
add x1, sp, #283
str x1, [sp, #48] ; 8-byte Folded Spill
mov x2, #256
mov w3, #0
bl _recv
ldr x0, [sp, #48] ; 8-byte Folded Reload
bl _atoi
ldr x8, [sp, #96] ; 8-byte Folded Reload
str w0, [sp, #140]
ldr x0, [x8]
ldr w9, [sp, #140]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.13@PAGE
add x1, x1, l_.str.13@PAGEOFF
bl _fprintf
ldr x0, [sp, #152]
adrp x1, l_.str.14@PAGE
add x1, x1, l_.str.14@PAGEOFF
bl _fopen
str x0, [sp, #128]
ldr x8, [sp, #128]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17:
ldr x8, [sp, #104] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #24] ; 8-byte Folded Spill
bl ___error
ldr w0, [x0]
bl _strerror
mov x8, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x1, l_.str.15@PAGE
add x1, x1, l_.str.15@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_18:
ldr w8, [sp, #140]
str w8, [sp, #124]
b LBB0_19
LBB0_19: ; =>This Inner Loop Header: Depth=1
ldr w0, [sp, #260]
add x1, sp, #283
mov x2, #256
mov w3, #0
bl _recv
str x0, [sp, #144]
subs x8, x0, #0
cset w8, le
mov w9, #0
str w9, [sp, #20] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_19 Depth=1
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_19 Depth=1
ldr w8, [sp, #20] ; 4-byte Folded Reload
tbz w8, #0, LBB0_23
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_19 Depth=1
ldr x2, [sp, #144]
ldr x3, [sp, #128]
add x0, sp, #283
mov x1, #1
bl _fwrite
ldr x8, [sp, #96] ; 8-byte Folded Reload
ldr x10, [sp, #144]
ldrsw x9, [sp, #124]
subs x9, x9, x10
; kill: def $w9 killed $w9 killed $x9
str w9, [sp, #124]
ldr x0, [x8]
ldr x10, [sp, #144]
ldr w9, [sp, #124]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.16@PAGE
add x1, x1, l_.str.16@PAGEOFF
bl _fprintf
b LBB0_19
LBB0_23:
ldr x0, [sp, #128]
bl _fclose
ldr w0, [sp, #260]
bl _close
str wzr, [sp, #276]
b LBB0_24
LBB0_24:
ldr w8, [sp, #276]
str w8, [sp, #16] ; 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_26
b LBB0_25
LBB0_25:
bl ___stack_chk_fail
LBB0_26:
ldr w0, [sp, #16] ; 4-byte Folded Reload
add sp, sp, #864
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_7-Ltmp0
.long LBB0_8-Ltmp0
.long LBB0_8-Ltmp0
.long LBB0_8-Ltmp0
.long LBB0_8-Ltmp0
.long LBB0_8-Ltmp0
.long LBB0_8-Ltmp0
.long LBB0_6-Ltmp0
.long LBB0_5-Ltmp0
.long LBB0_8-Ltmp0
.long LBB0_8-Ltmp0
.long LBB0_4-Ltmp0
; -- End function
.globl _get_in_addr ; -- Begin function get_in_addr
.p2align 2
_get_in_addr: ; @get_in_addr
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp]
ldr x8, [sp]
ldrb w8, [x8, #1]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr x8, [sp]
add x8, x8, #4
str x8, [sp, #8]
b LBB1_3
LBB1_2:
ldr x8, [sp]
add x8, x8, #8
str x8, [sp, #8]
b LBB1_3
LBB1_3:
ldr x0, [sp, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "localhost"
l_.str.1: ; @.str.1
.asciz "Hello World!"
l_.str.2: ; @.str.2
.asciz "foo.txt"
l_.str.3: ; @.str.3
.asciz "s:p:o:h"
l_.str.4: ; @.str.4
.asciz "%s"
l_.str.5: ; @.str.5
.asciz "usage:\n transferclient [options]\noptions:\n -s Server (Default: localhost)\n -p Port (Default: 8888)\n -o Output file (Default foo.txt)\n -h Show this help message\n"
l_.str.6: ; @.str.6
.asciz "%d"
l_.str.7: ; @.str.7
.asciz "getaddrinfo: %s\n"
l_.str.8: ; @.str.8
.asciz "getaddrinfo is executed\n"
l_.str.9: ; @.str.9
.asciz "client: socket"
l_.str.10: ; @.str.10
.asciz "socket is created\n"
l_.str.11: ; @.str.11
.asciz "client: connect"
l_.str.12: ; @.str.12
.asciz "client: connecting to %s\n"
l_.str.13: ; @.str.13
.asciz "\nFile size: %d\n"
l_.str.14: ; @.str.14
.asciz "w"
l_.str.15: ; @.str.15
.asciz "Failed to open file foo --> %s\n"
l_.str.16: ; @.str.16
.asciz "Received %d bytes and we hope: - %d bytes\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 $800, %rsp ## imm = 0x320
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -596(%rbp)
movl %edi, -600(%rbp)
movq %rsi, -608(%rbp)
movl $0, -616(%rbp)
leaq L_.str(%rip), %rax
movq %rax, -624(%rbp)
movw $8888, -626(%rbp) ## imm = 0x22B8
leaq L_.str.1(%rip), %rax
movq %rax, -640(%rbp)
leaq L_.str.2(%rip), %rax
movq %rax, -720(%rbp)
movl $0, -748(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -600(%rbp), %edi
movq -608(%rbp), %rsi
leaq L_.str.3(%rip), %rdx
callq _getopt
movl %eax, -616(%rbp)
cmpl $-1, %eax
je LBB0_9
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -616(%rbp), %eax
addl $-104, %eax
movl %eax, %ecx
movq %rcx, -760(%rbp) ## 8-byte Spill
subl $11, %eax
ja LBB0_7
## %bb.26: ## in Loop: Header=BB0_1 Depth=1
movq -760(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -624(%rbp)
jmp LBB0_8
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _atoi
## kill: def $ax killed $ax killed $eax
movw %ax, -626(%rbp)
jmp LBB0_8
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -720(%rbp)
jmp LBB0_8
LBB0_6:
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.4(%rip), %rsi
leaq L_.str.5(%rip), %rdx
xorl %eax, %eax
movl %eax, -764(%rbp) ## 4-byte Spill
callq _fprintf
movl -764(%rbp), %edi ## 4-byte Reload
callq _exit
LBB0_7:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.4(%rip), %rsi
leaq L_.str.5(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_9:
leaq -696(%rbp), %rdi
xorl %esi, %esi
movl $48, %edx
callq _memset
movl $2, -692(%rbp)
movl $1, -688(%rbp)
leaq -23(%rbp), %rdi
movzwl -626(%rbp), %r9d
movl $15, %ecx
xorl %edx, %edx
leaq L_.str.6(%rip), %r8
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
movq -624(%rbp), %rdi
leaq -23(%rbp), %rsi
leaq -696(%rbp), %rdx
leaq -704(%rbp), %rcx
callq _getaddrinfo
movl %eax, -708(%rbp)
cmpl $0, %eax
je LBB0_11
## %bb.10:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -776(%rbp) ## 8-byte Spill
movl -708(%rbp), %edi
callq _gai_strerror
movq -776(%rbp), %rdi ## 8-byte Reload
movq %rax, %rdx
leaq L_.str.7(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -596(%rbp)
jmp LBB0_23
LBB0_11:
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movq -704(%rbp), %rax
movl 4(%rax), %edi
movq -704(%rbp), %rax
movl 8(%rax), %esi
movq -704(%rbp), %rax
movl 12(%rax), %edx
callq _socket
movl %eax, -612(%rbp)
cmpl $-1, %eax
jne LBB0_13
## %bb.12:
leaq L_.str.9(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_13:
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movl -612(%rbp), %edi
movq -704(%rbp), %rax
movq 32(%rax), %rsi
movq -704(%rbp), %rax
movl 16(%rax), %edx
callq _connect
cmpl $-1, %eax
jne LBB0_15
## %bb.14:
movl -612(%rbp), %edi
callq _close
leaq L_.str.11(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_15:
movq -704(%rbp), %rax
movl 4(%rax), %eax
movl %eax, -780(%rbp) ## 4-byte Spill
movq -704(%rbp), %rax
movq 32(%rax), %rdi
callq _get_in_addr
movl -780(%rbp), %edi ## 4-byte Reload
movq %rax, %rsi
leaq -336(%rbp), %rdx
movl $46, %ecx
callq _inet_ntop
leaq -336(%rbp), %rsi
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
movl -612(%rbp), %edi
leaq -592(%rbp), %rsi
movl $256, %edx ## imm = 0x100
xorl %ecx, %ecx
callq _recv
leaq -592(%rbp), %rdi
callq _atoi
movl %eax, -732(%rbp)
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -732(%rbp), %edx
leaq L_.str.13(%rip), %rsi
movb $0, %al
callq _fprintf
movq -720(%rbp), %rdi
leaq L_.str.14(%rip), %rsi
callq _fopen
movq %rax, -744(%rbp)
cmpq $0, -744(%rbp)
jne LBB0_17
## %bb.16:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -792(%rbp) ## 8-byte Spill
callq ___error
movl (%rax), %edi
callq _strerror
movq -792(%rbp), %rdi ## 8-byte Reload
movq %rax, %rdx
leaq L_.str.15(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_17:
movl -732(%rbp), %eax
movl %eax, -748(%rbp)
LBB0_18: ## =>This Inner Loop Header: Depth=1
movl -612(%rbp), %edi
leaq -592(%rbp), %rsi
movl $256, %edx ## imm = 0x100
xorl %ecx, %ecx
callq _recv
movq %rax, %rcx
movq %rcx, -728(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq $0, %rcx
movb %al, -793(%rbp) ## 1-byte Spill
jle LBB0_20
## %bb.19: ## in Loop: Header=BB0_18 Depth=1
cmpl $0, -748(%rbp)
setg %al
movb %al, -793(%rbp) ## 1-byte Spill
LBB0_20: ## in Loop: Header=BB0_18 Depth=1
movb -793(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_21
jmp LBB0_22
LBB0_21: ## in Loop: Header=BB0_18 Depth=1
leaq -592(%rbp), %rdi
movq -728(%rbp), %rdx
movq -744(%rbp), %rcx
movl $1, %esi
callq _fwrite
movq -728(%rbp), %rcx
movslq -748(%rbp), %rax
subq %rcx, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -748(%rbp)
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -728(%rbp), %rax
movl %eax, %edx
movl -748(%rbp), %ecx
leaq L_.str.16(%rip), %rsi
movb $0, %al
callq _fprintf
jmp LBB0_18
LBB0_22:
movq -744(%rbp), %rdi
callq _fclose
movl -612(%rbp), %edi
callq _close
movl $0, -596(%rbp)
LBB0_23:
movl -596(%rbp), %eax
movl %eax, -800(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_25
## %bb.24:
movl -800(%rbp), %eax ## 4-byte Reload
addq $800, %rsp ## imm = 0x320
popq %rbp
retq
LBB0_25:
callq ___stack_chk_fail
ud2
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
.long L0_0_set_6
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_5
.long L0_0_set_4
.long L0_0_set_7
.long L0_0_set_7
.long L0_0_set_3
.end_data_region
## -- End function
.globl _get_in_addr ## -- Begin function get_in_addr
.p2align 4, 0x90
_get_in_addr: ## @get_in_addr
.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
movzbl 1(%rax), %eax
cmpl $2, %eax
jne LBB1_2
## %bb.1:
movq -16(%rbp), %rax
addq $4, %rax
movq %rax, -8(%rbp)
jmp LBB1_3
LBB1_2:
movq -16(%rbp), %rax
addq $8, %rax
movq %rax, -8(%rbp)
LBB1_3:
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "localhost"
L_.str.1: ## @.str.1
.asciz "Hello World!"
L_.str.2: ## @.str.2
.asciz "foo.txt"
L_.str.3: ## @.str.3
.asciz "s:p:o:h"
L_.str.4: ## @.str.4
.asciz "%s"
L_.str.5: ## @.str.5
.asciz "usage:\n transferclient [options]\noptions:\n -s Server (Default: localhost)\n -p Port (Default: 8888)\n -o Output file (Default foo.txt)\n -h Show this help message\n"
L_.str.6: ## @.str.6
.asciz "%d"
L_.str.7: ## @.str.7
.asciz "getaddrinfo: %s\n"
L_.str.8: ## @.str.8
.asciz "getaddrinfo is executed\n"
L_.str.9: ## @.str.9
.asciz "client: socket"
L_.str.10: ## @.str.10
.asciz "socket is created\n"
L_.str.11: ## @.str.11
.asciz "client: connect"
L_.str.12: ## @.str.12
.asciz "client: connecting to %s\n"
L_.str.13: ## @.str.13
.asciz "\nFile size: %d\n"
L_.str.14: ## @.str.14
.asciz "w"
L_.str.15: ## @.str.15
.asciz "Failed to open file foo --> %s\n"
L_.str.16: ## @.str.16
.asciz "Received %d bytes and we hope: - %d bytes\n"
.subsections_via_symbols
| the_stack_data/97525.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
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]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_7
b LBB0_1
LBB0_1:
ldur w8, [x29, #-8]
stur w8, [x29, #-16]
ldur w8, [x29, #-8]
stur w8, [x29, #-20]
b LBB0_2
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-16]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_2 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_2 Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-8]
add w8, w8, w9
stur w8, [x29, #-20]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_2 Depth=1
b LBB0_2
LBB0_6:
ldur w8, [x29, #-20]
ldur w9, [x29, #-12]
add w8, w8, w9
stur w8, [x29, #-20]
ldur w9, [x29, #-20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_13
LBB0_7:
ldur w8, [x29, #-12]
stur w8, [x29, #-16]
ldur w8, [x29, #-12]
stur w8, [x29, #-20]
b LBB0_8
LBB0_8: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-16]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_12
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_8 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
ldur w8, [x29, #-12]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_8 Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-12]
add w8, w8, w9
stur w8, [x29, #-20]
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_8 Depth=1
b LBB0_8
LBB0_12:
ldur w8, [x29, #-20]
ldur w9, [x29, #-8]
add w8, w8, w9
stur w8, [x29, #-20]
ldur w9, [x29, #-20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_13
LBB0_13:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Informe o primeiro n\303\272mero: \n"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Informe o segundo n\303\272mero: \n"
l_.str.3: ; @.str.3
.asciz "A soma dos n\303\272meros inteiros do menor para o maior \303\251 de %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
cmpl -12(%rbp), %eax
jge LBB0_7
## %bb.1:
movl -8(%rbp), %eax
movl %eax, -16(%rbp)
movl -8(%rbp), %eax
movl %eax, -20(%rbp)
LBB0_2: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB0_6
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
movl -8(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB0_5
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
movl -20(%rbp), %eax
addl -8(%rbp), %eax
movl %eax, -20(%rbp)
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
jmp LBB0_2
LBB0_6:
movl -20(%rbp), %eax
addl -12(%rbp), %eax
movl %eax, -20(%rbp)
movl -20(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_13
LBB0_7:
movl -12(%rbp), %eax
movl %eax, -16(%rbp)
movl -12(%rbp), %eax
movl %eax, -20(%rbp)
LBB0_8: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_12
## %bb.9: ## in Loop: Header=BB0_8 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_11
## %bb.10: ## in Loop: Header=BB0_8 Depth=1
movl -20(%rbp), %eax
addl -12(%rbp), %eax
movl %eax, -20(%rbp)
LBB0_11: ## in Loop: Header=BB0_8 Depth=1
jmp LBB0_8
LBB0_12:
movl -20(%rbp), %eax
addl -8(%rbp), %eax
movl %eax, -20(%rbp)
movl -20(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
LBB0_13:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Informe o primeiro n\303\272mero: \n"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Informe o segundo n\303\272mero: \n"
L_.str.3: ## @.str.3
.asciz "A soma dos n\303\272meros inteiros do menor para o maior \303\251 de %d.\n"
.subsections_via_symbols
| the_stack_data/115766480.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _create ; -- Begin function create
.p2align 2
_create: ; @create
.cfi_startproc
; %bb.0:
sub sp, sp, #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, #16
bl _malloc
adrp x8, _first@PAGE
str x0, [x8, _first@PAGEOFF]
ldur x9, [x29, #-8]
ldr w9, [x9]
ldr x10, [x8, _first@PAGEOFF]
str w9, [x10]
ldr x9, [x8, _first@PAGEOFF]
; kill: def $x10 killed $xzr
str xzr, [x9, #8]
ldr x8, [x8, _first@PAGEOFF]
str x8, [sp]
mov w8, #1
str w8, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov x0, #16
bl _malloc
str x0, [sp, #8]
ldur x8, [x29, #-8]
ldrsw x9, [sp, #16]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #8]
str w8, [x9]
ldr x8, [sp, #8]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldr x8, [sp, #8]
ldr x9, [sp]
str x8, [x9, #8]
ldr x8, [sp, #8]
str x8, [sp]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_1
LBB0_4:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _create2 ; -- Begin function create2
.p2align 2
_create2: ; @create2
.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, #16
bl _malloc
adrp x8, _second@PAGE
str x0, [x8, _second@PAGEOFF]
ldur x9, [x29, #-8]
ldr w9, [x9]
ldr x10, [x8, _second@PAGEOFF]
str w9, [x10]
ldr x9, [x8, _second@PAGEOFF]
; kill: def $x10 killed $xzr
str xzr, [x9, #8]
ldr x8, [x8, _second@PAGEOFF]
str x8, [sp]
mov w8, #1
str w8, [sp, #16]
b LBB1_1
LBB1_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, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
mov x0, #16
bl _malloc
str x0, [sp, #8]
ldur x8, [x29, #-8]
ldrsw x9, [sp, #16]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #8]
str w8, [x9]
ldr x8, [sp, #8]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldr x8, [sp, #8]
ldr x9, [sp]
str x8, [x9, #8]
ldr x8, [sp, #8]
str x8, [sp]
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:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _display ; -- Begin function display
.p2align 2
_display: ; @display
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #8]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB2_1
LBB2_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _concatenate ; -- Begin function concatenate
.p2align 2
_concatenate: ; @concatenate
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str x1, [sp]
ldr x8, [sp, #8]
adrp x9, _third@PAGE
str x8, [x9, _third@PAGEOFF]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #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
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB3_1
LBB3_3:
adrp x8, _second@PAGE
ldr x8, [x8, _second@PAGEOFF]
ldr x9, [sp, #8]
str x8, [x9, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #44]
adrp x8, l___const.main.array@PAGE
add x8, x8, l___const.main.array@PAGEOFF
ldr q0, [x8]
sub x0, x29, #32
stur q0, [x29, #-32]
ldr w8, [x8, #16]
stur w8, [x29, #-16]
mov w1, #5
str w1, [sp, #12] ; 4-byte Folded Spill
bl _create
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
adrp x8, _first@PAGE
str x8, [sp, #24] ; 8-byte Folded Spill
ldr x0, [x8, _first@PAGEOFF]
bl _display
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
bl _printf
ldr w1, [sp, #12] ; 4-byte Folded Reload
adrp x8, l___const.main.array2@PAGE
add x8, x8, l___const.main.array2@PAGEOFF
ldr q0, [x8]
add x0, sp, #48
str q0, [sp, #48]
ldr w8, [x8, #16]
str w8, [sp, #64]
bl _create2
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
adrp x8, _second@PAGE
str x8, [sp, #32] ; 8-byte Folded Spill
ldr x0, [x8, _second@PAGEOFF]
bl _display
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _printf
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [x9, _first@PAGEOFF]
ldr x1, [x8, _second@PAGEOFF]
bl _concatenate
adrp x8, _third@PAGE
ldr x0, [x8, _third@PAGEOFF]
bl _display
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_2
b LBB4_1
LBB4_1:
bl ___stack_chk_fail
LBB4_2:
mov w0, #0
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.globl _first ; @first
.zerofill __DATA,__common,_first,8,3
.globl _second ; @second
.zerofill __DATA,__common,_second,8,3
.globl _third ; @third
.zerofill __DATA,__common,_third,8,3
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d "
.section __TEXT,__const
.p2align 2 ; @__const.main.array
l___const.main.array:
.long 1 ; 0x1
.long 3 ; 0x3
.long 5 ; 0x5
.long 7 ; 0x7
.long 9 ; 0x9
.section __TEXT,__cstring,cstring_literals
l_.str.1: ; @.str.1
.asciz "First list\n"
l_.str.2: ; @.str.2
.asciz "\n"
.section __TEXT,__const
.p2align 2 ; @__const.main.array2
l___const.main.array2:
.long 2 ; 0x2
.long 4 ; 0x4
.long 6 ; 0x6
.long 8 ; 0x8
.long 10 ; 0xa
.section __TEXT,__cstring,cstring_literals
l_.str.3: ; @.str.3
.asciz "Second list:\n"
l_.str.4: ; @.str.4
.asciz "Concatenated list:\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _create ## -- Begin function create
.p2align 4, 0x90
_create: ## @create
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl $16, %edi
callq _malloc
movq %rax, _first(%rip)
movq -8(%rbp), %rax
movl (%rax), %ecx
movq _first(%rip), %rax
movl %ecx, (%rax)
movq _first(%rip), %rax
movq $0, 8(%rax)
movq _first(%rip), %rax
movq %rax, -32(%rbp)
movl $1, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $16, %edi
callq _malloc
movq %rax, -24(%rbp)
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movl (%rax,%rcx,4), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movq -24(%rbp), %rax
movq $0, 8(%rax)
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rax
movq %rax, -32(%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:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _create2 ## -- Begin function create2
.p2align 4, 0x90
_create2: ## @create2
.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 $16, %edi
callq _malloc
movq %rax, _second(%rip)
movq -8(%rbp), %rax
movl (%rax), %ecx
movq _second(%rip), %rax
movl %ecx, (%rax)
movq _second(%rip), %rax
movq $0, 8(%rax)
movq _second(%rip), %rax
movq %rax, -32(%rbp)
movl $1, -16(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl $16, %edi
callq _malloc
movq %rax, -24(%rbp)
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movl (%rax,%rcx,4), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movq -24(%rbp), %rax
movq $0, 8(%rax)
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rax
movq %rax, -32(%rbp)
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_1
LBB1_4:
addq $32, %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)
LBB2_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -8(%rbp)
je LBB2_3
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -8(%rbp), %rax
movl (%rax), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -8(%rbp)
jmp LBB2_1
LBB2_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _concatenate ## -- Begin function concatenate
.p2align 4, 0x90
_concatenate: ## @concatenate
.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, _third(%rip)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
cmpq $0, 8(%rax)
je LBB3_3
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -8(%rbp)
jmp LBB3_1
LBB3_3:
movq _second(%rip), %rcx
movq -8(%rbp), %rax
movq %rcx, 8(%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -68(%rbp)
movq l___const.main.array(%rip), %rax
movq %rax, -32(%rbp)
movq l___const.main.array+8(%rip), %rax
movq %rax, -24(%rbp)
movl l___const.main.array+16(%rip), %eax
movl %eax, -16(%rbp)
leaq -32(%rbp), %rdi
movl $5, %esi
callq _create
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq _first(%rip), %rdi
callq _display
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movq l___const.main.array2(%rip), %rax
movq %rax, -64(%rbp)
movq l___const.main.array2+8(%rip), %rax
movq %rax, -56(%rbp)
movl l___const.main.array2+16(%rip), %eax
movl %eax, -48(%rbp)
leaq -64(%rbp), %rdi
movl $5, %esi
callq _create2
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movq _second(%rip), %rdi
callq _display
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movq _first(%rip), %rdi
movq _second(%rip), %rsi
callq _concatenate
movq _third(%rip), %rdi
callq _display
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB4_2
## %bb.1:
xorl %eax, %eax
addq $80, %rsp
popq %rbp
retq
LBB4_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _first ## @first
.zerofill __DATA,__common,_first,8,3
.globl _second ## @second
.zerofill __DATA,__common,_second,8,3
.globl _third ## @third
.zerofill __DATA,__common,_third,8,3
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d "
.section __TEXT,__const
.p2align 4 ## @__const.main.array
l___const.main.array:
.long 1 ## 0x1
.long 3 ## 0x3
.long 5 ## 0x5
.long 7 ## 0x7
.long 9 ## 0x9
.section __TEXT,__cstring,cstring_literals
L_.str.1: ## @.str.1
.asciz "First list\n"
L_.str.2: ## @.str.2
.asciz "\n"
.section __TEXT,__const
.p2align 4 ## @__const.main.array2
l___const.main.array2:
.long 2 ## 0x2
.long 4 ## 0x4
.long 6 ## 0x6
.long 8 ## 0x8
.long 10 ## 0xa
.section __TEXT,__cstring,cstring_literals
L_.str.3: ## @.str.3
.asciz "Second list:\n"
L_.str.4: ## @.str.4
.asciz "Concatenated list:\n"
.subsections_via_symbols
| the_stack_data/50139017.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _PrintHello ; -- Begin function PrintHello
.p2align 2
_PrintHello: ; @PrintHello
.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
mov x0, #0
bl _pthread_exit
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
stp x29, x30, [sp, #128] ; 16-byte Folded Spill
add x29, sp, #128
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #36]
str w0, [sp, #32]
str x1, [sp, #24]
str wzr, [sp, #16]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB1_6
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr w9, [sp, #16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldrsw x9, [sp, #16]
add x8, sp, #40
add x0, x8, x9, lsl #3
ldrsw x3, [sp, #16]
mov x1, #0
adrp x2, _PrintHello@PAGE
add x2, x2, _PrintHello@PAGEOFF
bl _pthread_create
str w0, [sp, #20]
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
ldr w9, [sp, #20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov w0, #-1
bl _exit
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB1_1
LBB1_6:
str wzr, [sp, #16]
b LBB1_7
LBB1_7: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB1_10
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_7 Depth=1
ldrsw x9, [sp, #16]
add x8, sp, #40
ldr x0, [x8, x9, lsl #3]
mov x1, #0
bl _pthread_join
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_7 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB1_7
LBB1_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, LBB1_12
b LBB1_11
LBB1_11:
bl ___stack_chk_fail
LBB1_12:
mov w0, #0
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
add sp, sp, #144
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\n%d: Hello World!\n"
l_.str.1: ; @.str.1
.asciz "Creating thread %d\n"
l_.str.2: ; @.str.2
.asciz "ERROR return code from pthread_create(): %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _PrintHello ## -- Begin function PrintHello
.p2align 4, 0x90
_PrintHello: ## @PrintHello
.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
xorl %eax, %eax
movl %eax, -12(%rbp) ## 4-byte Spill
callq _printf
## kill: def $ecx killed $eax
movl -12(%rbp), %eax ## 4-byte Reload
movl %eax, %edi
callq _pthread_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 $128, %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)
movl $0, -120(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $10, -120(%rbp)
jge LBB1_6
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -120(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movslq -120(%rbp), %rax
leaq -96(%rbp), %rdi
shlq $3, %rax
addq %rax, %rdi
movslq -120(%rbp), %rcx
xorl %eax, %eax
movl %eax, %esi
leaq _PrintHello(%rip), %rdx
callq _pthread_create
movl %eax, -116(%rbp)
cmpl $0, -116(%rbp)
je LBB1_4
## %bb.3:
movl -116(%rbp), %esi
leaq L_.str.2(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $-1, %edi
callq _exit
LBB1_4: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_5
LBB1_5: ## in Loop: Header=BB1_1 Depth=1
movl -120(%rbp), %eax
addl $1, %eax
movl %eax, -120(%rbp)
jmp LBB1_1
LBB1_6:
movl $0, -120(%rbp)
LBB1_7: ## =>This Inner Loop Header: Depth=1
cmpl $10, -120(%rbp)
jge LBB1_10
## %bb.8: ## in Loop: Header=BB1_7 Depth=1
movslq -120(%rbp), %rax
movq -96(%rbp,%rax,8), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_join
## %bb.9: ## in Loop: Header=BB1_7 Depth=1
movl -120(%rbp), %eax
addl $1, %eax
movl %eax, -120(%rbp)
jmp LBB1_7
LBB1_10:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_12
## %bb.11:
xorl %eax, %eax
addq $128, %rsp
popq %rbp
retq
LBB1_12:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\n%d: Hello World!\n"
L_.str.1: ## @.str.1
.asciz "Creating thread %d\n"
L_.str.2: ## @.str.2
.asciz "ERROR return code from pthread_create(): %d\n"
.subsections_via_symbols
| the_stack_data/1219523.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _printList ; -- Begin function printList
.p2align 2
_printList: ; @printList
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
str x8, [sp, #16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr x8, [sp, #16]
ldr x8, [x8, #8]
str x8, [sp, #16]
b LBB0_1
LBB0_3:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _insertFront ; -- Begin function insertFront
.p2align 2
_insertFront: ; @insertFront
.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, #16
bl _malloc
str x0, [sp, #8]
ldur w8, [x29, #-12]
ldr x9, [sp, #8]
str w8, [x9]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldr x8, [sp, #8]
ldur x9, [x29, #-8]
str x8, [x9]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _deleteFront ; -- Begin function deleteFront
.p2align 2
_deleteFront: ; @deleteFront
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldr x8, [sp, #8]
ldr x8, [x8]
ldr x8, [x8, #8]
ldr x9, [sp, #8]
str x8, [x9]
b LBB2_2
LBB2_2:
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _insertBack ; -- Begin function insertBack
.p2align 2
_insertBack: ; @insertBack
.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, #16
bl _malloc
str x0, [sp, #8]
ldur w8, [x29, #-12]
ldr x9, [sp, #8]
str w8, [x9]
ldr x8, [sp, #8]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldur x8, [x29, #-8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
ldur x0, [x29, #-8]
ldur w1, [x29, #-12]
bl _insertFront
b LBB3_6
LBB3_2:
ldur x8, [x29, #-8]
ldr x8, [x8]
str x8, [sp]
b LBB3_3
LBB3_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB3_5
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_3 Depth=1
ldr x8, [sp]
ldr x8, [x8, #8]
str x8, [sp]
b LBB3_3
LBB3_5:
ldr x8, [sp, #8]
ldr x9, [sp]
str x8, [x9, #8]
b LBB3_6
LBB3_6:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _deleteBack ; -- Begin function deleteBack
.p2align 2
_deleteBack: ; @deleteBack
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB4_5
b LBB4_1
LBB4_1:
ldr x8, [sp, #8]
str x8, [sp]
b LBB4_2
LBB4_2: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldr x8, [x8]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB4_4
b LBB4_3
LBB4_3: ; in Loop: Header=BB4_2 Depth=1
ldr x8, [sp]
ldr x8, [x8]
add x8, x8, #8
str x8, [sp]
b LBB4_2
LBB4_4:
ldr x8, [sp]
; kill: def $x9 killed $xzr
str xzr, [x8]
b LBB4_5
LBB4_5:
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
stur w8, [x29, #-20] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
sub x0, x29, #16
str x0, [sp, #16] ; 8-byte Folded Spill
; kill: def $x8 killed $xzr
stur xzr, [x29, #-16]
mov w1, #6
bl _insertBack
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov w1, #9
str w1, [sp, #12] ; 4-byte Folded Spill
bl _insertBack
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov w1, #7
bl _insertBack
ldr w1, [sp, #12] ; 4-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _insertBack
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov w1, #8
bl _insertBack
ldr w1, [sp, #12] ; 4-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _insertBack
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _deleteBack
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _deleteBack
ldur x0, [x29, #-16]
bl _printList
ldur w0, [x29, #-20] ; 4-byte Folded Reload
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Linked list: "
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 _printList ## -- Begin function printList
.p2align 4, 0x90
_printList: ## @printList
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16(%rbp)
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movl (%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_3:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _insertFront ## -- Begin function insertFront
.p2align 4, 0x90
_insertFront: ## @insertFront
.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 $16, %edi
callq _malloc
movq %rax, -24(%rbp)
movl -12(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movq -8(%rbp), %rax
movq (%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _deleteFront ## -- Begin function deleteFront
.p2align 4, 0x90
_deleteFront: ## @deleteFront
.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, (%rax)
je LBB2_2
## %bb.1:
movq -8(%rbp), %rax
movq (%rax), %rax
movq 8(%rax), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
LBB2_2:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _insertBack ## -- Begin function insertBack
.p2align 4, 0x90
_insertBack: ## @insertBack
.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 $16, %edi
callq _malloc
movq %rax, -24(%rbp)
movl -12(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movq -24(%rbp), %rax
movq $0, 8(%rax)
movq -8(%rbp), %rax
cmpq $0, (%rax)
jne LBB3_2
## %bb.1:
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
callq _insertFront
jmp LBB3_6
LBB3_2:
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
LBB3_3: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
cmpq $0, 8(%rax)
je LBB3_5
## %bb.4: ## in Loop: Header=BB3_3 Depth=1
movq -32(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
jmp LBB3_3
LBB3_5:
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, 8(%rax)
LBB3_6:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _deleteBack ## -- Begin function deleteBack
.p2align 4, 0x90
_deleteBack: ## @deleteBack
.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, (%rax)
je LBB4_5
## %bb.1:
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
LBB4_2: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
cmpq $0, 8(%rax)
je LBB4_4
## %bb.3: ## in Loop: Header=BB4_2 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
addq $8, %rax
movq %rax, -16(%rbp)
jmp LBB4_2
LBB4_4:
movq -16(%rbp), %rax
movq $0, (%rax)
LBB4_5:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movq $0, -16(%rbp)
leaq -16(%rbp), %rdi
movl $6, %esi
callq _insertBack
leaq -16(%rbp), %rdi
movl $9, %esi
callq _insertBack
leaq -16(%rbp), %rdi
movl $7, %esi
callq _insertBack
leaq -16(%rbp), %rdi
movl $9, %esi
callq _insertBack
leaq -16(%rbp), %rdi
movl $8, %esi
callq _insertBack
leaq -16(%rbp), %rdi
movl $9, %esi
callq _insertBack
leaq -16(%rbp), %rdi
callq _deleteBack
leaq -16(%rbp), %rdi
callq _deleteBack
movq -16(%rbp), %rdi
callq _printList
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Linked list: "
L_.str.1: ## @.str.1
.asciz "%d "
L_.str.2: ## @.str.2
.asciz "\n"
.subsections_via_symbols
| the_stack_data/162641899.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _puts ; -- Begin function puts
.p2align 2
_puts: ; @puts
.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 _puts ## -- Begin function puts
.p2align 4, 0x90
_puts: ## @puts
.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/87962.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vuser_end ; -- Begin function vuser_end
.p2align 2
_vuser_end: ; @vuser_end
.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 _vuser_end ## -- Begin function vuser_end
.p2align 4, 0x90
_vuser_end: ## @vuser_end
.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/6329.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _init_search ; -- Begin function init_search
.p2align 2
_init_search: ; @init_search
.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
adrp x8, _len@PAGE
str x0, [x8, _len@PAGEOFF]
str xzr, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
subs x8, x8, #255
cset w8, hi
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _len@PAGE
ldr x8, [x8, _len@PAGEOFF]
ldr x10, [sp]
adrp x9, _table@PAGE
add x9, x9, _table@PAGEOFF
str x8, [x9, x10, lsl #3]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB0_1
LBB0_4:
str xzr, [sp]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
adrp x9, _len@PAGE
ldr x9, [x9, _len@PAGEOFF]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
adrp x8, _len@PAGE
ldr x8, [x8, _len@PAGEOFF]
ldr x9, [sp]
subs x8, x8, x9
subs x8, x8, #1
ldr x9, [sp, #8]
ldr x10, [sp]
ldrb w9, [x9, x10]
mov x10, x9
adrp x9, _table@PAGE
add x9, x9, _table@PAGEOFF
str x8, [x9, x10, lsl #3]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB0_5
LBB0_8:
ldr x8, [sp, #8]
adrp x9, _findme@PAGE
str x8, [x9, _findme@PAGEOFF]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _strsearch ; -- Begin function strsearch
.p2align 2
_strsearch: ; @strsearch
.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]
adrp x8, _len@PAGE
ldr x8, [x8, _len@PAGEOFF]
subs x8, x8, #1
str x8, [sp, #32]
ldur x0, [x29, #-16]
bl _strlen
str x0, [sp, #16]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_3 Depth 2
ldr x8, [sp, #32]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB1_13
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
b LBB1_3
LBB1_3: ; Parent Loop BB1_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #32]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, hs
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=2
ldur x8, [x29, #-16]
ldr x9, [sp, #32]
ldrb w8, [x8, x9]
mov x9, x8
adrp x8, _table@PAGE
add x8, x8, _table@PAGEOFF
ldr x8, [x8, x9, lsl #3]
stur x8, [x29, #-24]
subs x8, x8, #0
cset w8, hi
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=2
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB1_7
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_3 Depth=2
ldur x9, [x29, #-24]
ldr x8, [sp, #32]
add x8, x8, x9
str x8, [sp, #32]
b LBB1_3
LBB1_7: ; in Loop: Header=BB1_1 Depth=1
ldur x9, [x29, #-24]
mov x8, #0
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB1_12
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_1 Depth=1
adrp x8, _findme@PAGE
ldr x0, [x8, _findme@PAGEOFF]
ldur x9, [x29, #-16]
ldr x10, [sp, #32]
adrp x8, _len@PAGE
ldr x11, [x8, _len@PAGEOFF]
subs x10, x10, x11
add x10, x10, #1
add x1, x9, x10
str x1, [sp, #24]
ldr x2, [x8, _len@PAGEOFF]
bl _strncmp
mov w8, #0
subs w8, w8, w0
cset w8, ne
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
ldr x8, [sp, #24]
stur x8, [x29, #-8]
b LBB1_14
LBB1_10: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_1 Depth=1
b LBB1_12
LBB1_12: ; in Loop: Header=BB1_1 Depth=1
b LBB1_1
LBB1_13:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB1_14
LBB1_14:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_len,8,3 ; @len
.zerofill __DATA,__bss,_table,2048,3 ; @table
.zerofill __DATA,__bss,_findme,8,3 ; @findme
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _init_search ## -- Begin function init_search
.p2align 4, 0x90
_init_search: ## @init_search
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
callq _strlen
movq %rax, _len(%rip)
movq $0, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpq $255, -16(%rbp)
ja LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq _len(%rip), %rdx
movq -16(%rbp), %rcx
leaq _table(%rip), %rax
movq %rdx, (%rax,%rcx,8)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_4:
movq $0, -16(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
cmpq _len(%rip), %rax
jae LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq _len(%rip), %rdx
subq -16(%rbp), %rdx
subq $1, %rdx
movq -8(%rbp), %rax
movq -16(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq _table(%rip), %rax
movq %rdx, (%rax,%rcx,8)
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_5
LBB0_8:
movq -8(%rbp), %rax
movq %rax, _findme(%rip)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _strsearch ## -- Begin function strsearch
.p2align 4, 0x90
_strsearch: ## @strsearch
.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 _len(%rip), %rax
subq $1, %rax
movq %rax, -32(%rbp)
movq -16(%rbp), %rdi
callq _strlen
movq %rax, -48(%rbp)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_3 Depth 2
movq -32(%rbp), %rax
cmpq -48(%rbp), %rax
jae LBB1_13
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_3
LBB1_3: ## Parent Loop BB1_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -32(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq -48(%rbp), %rcx
movb %al, -49(%rbp) ## 1-byte Spill
jae LBB1_5
## %bb.4: ## in Loop: Header=BB1_3 Depth=2
movq -16(%rbp), %rax
movq -32(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq _table(%rip), %rax
movq (%rax,%rcx,8), %rax
movq %rax, -24(%rbp)
cmpq $0, %rax
seta %al
movb %al, -49(%rbp) ## 1-byte Spill
LBB1_5: ## in Loop: Header=BB1_3 Depth=2
movb -49(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB1_6
jmp LBB1_7
LBB1_6: ## in Loop: Header=BB1_3 Depth=2
movq -24(%rbp), %rax
addq -32(%rbp), %rax
movq %rax, -32(%rbp)
jmp LBB1_3
LBB1_7: ## in Loop: Header=BB1_1 Depth=1
xorl %eax, %eax
## kill: def $rax killed $eax
cmpq -24(%rbp), %rax
jne LBB1_12
## %bb.8: ## in Loop: Header=BB1_1 Depth=1
movq _findme(%rip), %rdi
movq -16(%rbp), %rsi
movq -32(%rbp), %rax
subq _len(%rip), %rax
addq $1, %rax
addq %rax, %rsi
movq %rsi, -40(%rbp)
movq _len(%rip), %rdx
callq _strncmp
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne LBB1_10
## %bb.9:
movq -40(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB1_14
LBB1_10: ## in Loop: Header=BB1_1 Depth=1
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
## %bb.11: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_12
LBB1_12: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_1
LBB1_13:
movq $0, -8(%rbp)
LBB1_14:
movq -8(%rbp), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_len,8,3 ## @len
.zerofill __DATA,__bss,_table,2048,4 ## @table
.zerofill __DATA,__bss,_findme,8,3 ## @findme
.subsections_via_symbols
| the_stack_data/1032325.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _helloworld ; -- Begin function helloworld
.p2align 2
_helloworld: ; @helloworld
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #72
bl _putchar
mov w0, #101
bl _putchar
mov w0, #10
bl _putchar
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _cat ; -- Begin function cat
.p2align 2
_cat: ; @cat
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
bl _getchar
stur w0, [x29, #-4]
ldur w8, [x29, #-4]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-4]
sxtb w0, w8
bl _putchar
b LBB1_1
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _helloworld ## -- Begin function helloworld
.p2align 4, 0x90
_helloworld: ## @helloworld
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $72, %edi
callq _putchar
movl $101, %edi
callq _putchar
movl $10, %edi
callq _putchar
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _cat ## -- Begin function cat
.p2align 4, 0x90
_cat: ## @cat
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
LBB1_1: ## =>This Inner Loop Header: Depth=1
movb $0, %al
callq _getchar
movl %eax, -4(%rbp)
cmpl $0, -4(%rbp)
jge LBB1_3
## %bb.2:
addq $16, %rsp
popq %rbp
retq
LBB1_3: ## in Loop: Header=BB1_1 Depth=1
movl -4(%rbp), %eax
## kill: def $al killed $al killed $eax
movsbl %al, %edi
callq _putchar
jmp LBB1_1
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/407229.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _allocvector ; -- Begin function allocvector
.p2align 2
_allocvector: ; @allocvector
.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 _malloc
mov x8, x0
str x8, [sp]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #2
bl _exit
LBB0_2:
ldr x0, [sp]
ldr x2, [sp, #8]
mov w1, #0
mov x3, #-1
bl ___memset_chk
ldr x0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _dallocvector ; -- Begin function dallocvector
.p2align 2
_dallocvector: ; @dallocvector
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
str x1, [sp]
ldursw x8, [x29, #-4]
lsl x0, x8, #3
bl _allocvector
ldr x8, [sp]
str x0, [x8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function sturm
lCPI2_0:
.quad 0x3cb0000000000000 ; double 2.2204460492503131E-16
.section __TEXT,__text,regular,pure_instructions
.globl _sturm
.p2align 2
_sturm: ; @sturm
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
str w0, [sp, #60]
str x1, [sp, #48]
str x2, [sp, #40]
str x3, [sp, #32]
str d0, [sp, #24]
str wzr, [sp, #16]
fmov d0, #1.00000000
str d0, [sp, #8]
str wzr, [sp, #20]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #20]
ldr w9, [sp, #60]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_9
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr d0, [sp, #8]
fcmp d0, #0.0
cset w8, eq
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #48]
ldrsw x9, [sp, #20]
ldr d0, [x8, x9, lsl #3]
ldr d1, [sp, #24]
fsub d0, d0, d1
ldr x8, [sp, #32]
ldrsw x9, [sp, #20]
ldr d1, [x8, x9, lsl #3]
ldr d2, [sp, #8]
fdiv d1, d1, d2
fsub d0, d0, d1
str d0, [sp, #8]
b LBB2_5
LBB2_4: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #48]
ldrsw x9, [sp, #20]
ldr d0, [x8, x9, lsl #3]
ldr d1, [sp, #24]
fsub d0, d0, d1
ldr x8, [sp, #40]
ldrsw x9, [sp, #20]
ldr d1, [x8, x9, lsl #3]
fabs d1, d1
adrp x8, lCPI2_0@PAGE
ldr d2, [x8, lCPI2_0@PAGEOFF]
fdiv d1, d1, d2
fsub d0, d0, d1
str d0, [sp, #8]
b LBB2_5
LBB2_5: ; in Loop: Header=BB2_1 Depth=1
ldr d0, [sp, #8]
fcmp d0, #0.0
cset w8, pl
tbnz w8, #0, LBB2_7
b LBB2_6
LBB2_6: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB2_7
LBB2_7: ; in Loop: Header=BB2_1 Depth=1
b LBB2_8
LBB2_8: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB2_1
LBB2_9:
ldr w0, [sp, #16]
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function dbisect
lCPI3_0:
.quad 0x3ff028f5c28f5c29 ; double 1.01
lCPI3_1:
.quad 0x3cc0000000000000 ; double 4.4408920985006262E-16
lCPI3_2:
.quad 0x3cb0000000000000 ; double 2.2204460492503131E-16
lCPI3_3:
.quad 0xbff028f5c28f5c29 ; double -1.01
.section __TEXT,__text,regular,pure_instructions
.globl _dbisect
.p2align 2
_dbisect: ; @dbisect
.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
ldr x8, [x29, #16]
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur w3, [x29, #-28]
stur w4, [x29, #-32]
stur w5, [x29, #-36]
stur d0, [x29, #-48]
stur x6, [x29, #-56]
stur x7, [x29, #-64]
stur x8, [x29, #-72]
ldur x8, [x29, #-16]
movi d0, #0000000000000000
str d0, [x8]
ldur x8, [x29, #-24]
str d0, [x8]
ldur x8, [x29, #-8]
ldur w9, [x29, #-28]
subs w9, w9, #1
ldr d2, [x8, w9, sxtw #3]
ldur x8, [x29, #-16]
ldur w9, [x29, #-28]
subs w9, w9, #1
ldr d0, [x8, w9, sxtw #3]
fabs d1, d0
adrp x8, lCPI3_3@PAGE
ldr d0, [x8, lCPI3_3@PAGEOFF]
fmadd d0, d0, d1, d2
str d0, [sp, #64]
ldur x8, [x29, #-8]
ldur w9, [x29, #-28]
subs w9, w9, #1
ldr d2, [x8, w9, sxtw #3]
ldur x8, [x29, #-16]
ldur w9, [x29, #-28]
subs w9, w9, #1
ldr d0, [x8, w9, sxtw #3]
fabs d1, d0
adrp x8, lCPI3_0@PAGE
ldr d0, [x8, lCPI3_0@PAGEOFF]
fmadd d0, d0, d1, d2
str d0, [sp, #56]
ldur w8, [x29, #-28]
subs w8, w8, #2
stur w8, [x29, #-76]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-76]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB3_8
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-76]
ldr d0, [x8, x9, lsl #3]
fabs d0, d0
ldur x8, [x29, #-16]
ldur w9, [x29, #-76]
add w9, w9, #1
ldr d1, [x8, w9, sxtw #3]
fabs d1, d1
fadd d1, d0, d1
adrp x8, lCPI3_0@PAGE
ldr d0, [x8, lCPI3_0@PAGEOFF]
fmul d0, d0, d1
str d0, [sp, #72]
ldur x8, [x29, #-8]
ldursw x9, [x29, #-76]
ldr d0, [x8, x9, lsl #3]
ldr d1, [sp, #72]
fadd d0, d0, d1
ldr d1, [sp, #56]
fcmp d0, d1
cset w8, le
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldur x8, [x29, #-8]
ldursw x9, [x29, #-76]
ldr d0, [x8, x9, lsl #3]
ldr d1, [sp, #72]
fadd d0, d0, d1
str d0, [sp, #56]
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_1 Depth=1
ldur x8, [x29, #-8]
ldursw x9, [x29, #-76]
ldr d0, [x8, x9, lsl #3]
ldr d1, [sp, #72]
fsub d0, d0, d1
ldr d1, [sp, #64]
fcmp d0, d1
cset w8, pl
tbnz w8, #0, LBB3_6
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_1 Depth=1
ldur x8, [x29, #-8]
ldursw x9, [x29, #-76]
ldr d0, [x8, x9, lsl #3]
ldr d1, [sp, #72]
fsub d0, d0, d1
str d0, [sp, #64]
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_1 Depth=1
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_1 Depth=1
ldur w8, [x29, #-76]
subs w8, w8, #1
stur w8, [x29, #-76]
b LBB3_1
LBB3_8:
ldr d0, [sp, #64]
ldr d1, [sp, #56]
fadd d0, d0, d1
fcmp d0, #0.0
cset w8, le
tbnz w8, #0, LBB3_10
b LBB3_9
LBB3_9:
ldr d0, [sp, #56]
str d0, [sp, #8] ; 8-byte Folded Spill
b LBB3_11
LBB3_10:
ldr d0, [sp, #64]
fneg d0, d0
str d0, [sp, #8] ; 8-byte Folded Spill
b LBB3_11
LBB3_11:
ldr d1, [sp, #8] ; 8-byte Folded Reload
adrp x8, lCPI3_2@PAGE
ldr d0, [x8, lCPI3_2@PAGEOFF]
fmul d0, d0, d1
ldur x8, [x29, #-56]
str d0, [x8]
ldur d0, [x29, #-48]
fcmp d0, #0.0
cset w8, hi
tbnz w8, #0, LBB3_13
b LBB3_12
LBB3_12:
ldur x8, [x29, #-56]
ldr d0, [x8]
stur d0, [x29, #-48]
b LBB3_13
LBB3_13:
ldur d1, [x29, #-48]
ldur x8, [x29, #-56]
ldr d2, [x8]
fmov d0, #7.00000000
fmul d2, d0, d2
fmov d0, #0.50000000
fmadd d0, d0, d1, d2
ldur x8, [x29, #-56]
str d0, [x8]
ldur w8, [x29, #-28]
add w9, w8, #1
; implicit-def: $x8
mov x8, x9
sxtw x0, w8
mov x1, #8
bl _calloc
mov x8, x0
str x8, [sp, #16]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB3_15
b LBB3_14
LBB3_14:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x1, [x8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _fputs
mov w0, #1
bl _exit
LBB3_15:
ldr d0, [sp, #56]
str d0, [sp, #24]
ldur w8, [x29, #-36]
stur w8, [x29, #-76]
b LBB3_16
LBB3_16: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-76]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB3_19
b LBB3_17
LBB3_17: ; in Loop: Header=BB3_16 Depth=1
ldr d0, [sp, #56]
ldur x8, [x29, #-72]
ldursw x9, [x29, #-76]
str d0, [x8, x9, lsl #3]
ldr d0, [sp, #64]
ldr x8, [sp, #16]
ldursw x9, [x29, #-76]
str d0, [x8, x9, lsl #3]
b LBB3_18
LBB3_18: ; in Loop: Header=BB3_16 Depth=1
ldur w8, [x29, #-76]
subs w8, w8, #1
stur w8, [x29, #-76]
b LBB3_16
LBB3_19:
ldur x8, [x29, #-64]
str wzr, [x8]
ldur w8, [x29, #-36]
str w8, [sp, #48]
b LBB3_20
LBB3_20: ; =>This Loop Header: Depth=1
; Child Loop BB3_22 Depth 2
; Child Loop BB3_30 Depth 2
ldr w8, [sp, #48]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB3_42
b LBB3_21
LBB3_21: ; in Loop: Header=BB3_20 Depth=1
ldr d0, [sp, #64]
str d0, [sp, #32]
ldr w8, [sp, #48]
stur w8, [x29, #-76]
b LBB3_22
LBB3_22: ; Parent Loop BB3_20 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-76]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB3_27
b LBB3_23
LBB3_23: ; in Loop: Header=BB3_22 Depth=2
ldr d0, [sp, #32]
ldr x8, [sp, #16]
ldursw x9, [x29, #-76]
ldr d1, [x8, x9, lsl #3]
fcmp d0, d1
cset w8, pl
tbnz w8, #0, LBB3_25
b LBB3_24
LBB3_24: ; in Loop: Header=BB3_20 Depth=1
ldr x8, [sp, #16]
ldursw x9, [x29, #-76]
ldr d0, [x8, x9, lsl #3]
str d0, [sp, #32]
b LBB3_27
LBB3_25: ; in Loop: Header=BB3_22 Depth=2
b LBB3_26
LBB3_26: ; in Loop: Header=BB3_22 Depth=2
ldur w8, [x29, #-76]
subs w8, w8, #1
stur w8, [x29, #-76]
b LBB3_22
LBB3_27: ; in Loop: Header=BB3_20 Depth=1
ldr d0, [sp, #24]
ldur x8, [x29, #-72]
ldrsw x9, [sp, #48]
ldr d1, [x8, x9, lsl #3]
fcmp d0, d1
cset w8, le
tbnz w8, #0, LBB3_29
b LBB3_28
LBB3_28: ; in Loop: Header=BB3_20 Depth=1
ldur x8, [x29, #-72]
ldrsw x9, [sp, #48]
ldr d0, [x8, x9, lsl #3]
str d0, [sp, #24]
b LBB3_29
LBB3_29: ; in Loop: Header=BB3_20 Depth=1
ldr d0, [sp, #32]
ldr d1, [sp, #24]
fadd d0, d0, d1
fmov d1, #2.00000000
fdiv d0, d0, d1
str d0, [sp, #40]
b LBB3_30
LBB3_30: ; Parent Loop BB3_20 Depth=1
; => This Inner Loop Header: Depth=2
ldr d0, [sp, #24]
ldr d1, [sp, #32]
fsub d0, d0, d1
ldr d1, [sp, #32]
fabs d1, d1
ldr d2, [sp, #24]
fabs d2, d2
fadd d2, d1, d2
ldur d3, [x29, #-48]
adrp x8, lCPI3_1@PAGE
ldr d1, [x8, lCPI3_1@PAGEOFF]
fmadd d1, d1, d2, d3
fcmp d0, d1
cset w8, le
tbnz w8, #0, LBB3_40
b LBB3_31
LBB3_31: ; in Loop: Header=BB3_30 Depth=2
ldur x8, [x29, #-64]
ldr w8, [x8]
add w8, w8, #1
ldur x9, [x29, #-64]
str w8, [x9]
ldur w0, [x29, #-28]
ldur x1, [x29, #-8]
ldur x2, [x29, #-16]
ldur x3, [x29, #-24]
ldr d0, [sp, #40]
bl _sturm
str w0, [sp, #52]
ldr w8, [sp, #52]
ldr w9, [sp, #48]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_38
b LBB3_32
LBB3_32: ; in Loop: Header=BB3_30 Depth=2
ldr w8, [sp, #52]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_34
b LBB3_33
LBB3_33: ; in Loop: Header=BB3_30 Depth=2
ldr d0, [sp, #40]
ldr x8, [sp, #16]
ldursw x9, [x29, #-32]
str d0, [x8, x9, lsl #3]
str d0, [sp, #32]
b LBB3_37
LBB3_34: ; in Loop: Header=BB3_30 Depth=2
ldr d0, [sp, #40]
ldr x8, [sp, #16]
ldr w9, [sp, #52]
add w9, w9, #1
str d0, [x8, w9, sxtw #3]
str d0, [sp, #32]
ldur x8, [x29, #-72]
ldrsw x9, [sp, #52]
ldr d0, [x8, x9, lsl #3]
ldr d1, [sp, #40]
fcmp d0, d1
cset w8, le
tbnz w8, #0, LBB3_36
b LBB3_35
LBB3_35: ; in Loop: Header=BB3_30 Depth=2
ldr d0, [sp, #40]
ldur x8, [x29, #-72]
ldrsw x9, [sp, #52]
str d0, [x8, x9, lsl #3]
b LBB3_36
LBB3_36: ; in Loop: Header=BB3_30 Depth=2
b LBB3_37
LBB3_37: ; in Loop: Header=BB3_30 Depth=2
b LBB3_39
LBB3_38: ; in Loop: Header=BB3_30 Depth=2
ldr d0, [sp, #40]
str d0, [sp, #24]
b LBB3_39
LBB3_39: ; in Loop: Header=BB3_30 Depth=2
ldr d0, [sp, #32]
ldr d1, [sp, #24]
fadd d0, d0, d1
fmov d1, #2.00000000
fdiv d0, d0, d1
str d0, [sp, #40]
b LBB3_30
LBB3_40: ; in Loop: Header=BB3_20 Depth=1
ldr d0, [sp, #32]
ldr d1, [sp, #24]
fadd d0, d0, d1
fmov d1, #2.00000000
fdiv d0, d0, d1
ldur x8, [x29, #-72]
ldrsw x9, [sp, #48]
str d0, [x8, x9, lsl #3]
b LBB3_41
LBB3_41: ; in Loop: Header=BB3_20 Depth=1
ldr w8, [sp, #48]
subs w8, w8, #1
str w8, [sp, #48]
b LBB3_20
LBB3_42:
ldr x0, [sp, #16]
bl _free
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
; -- End function
.globl _test_matrix ; -- Begin function test_matrix
.p2align 2
_test_matrix: ; @test_matrix
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #28]
str x1, [sp, #16]
str x2, [sp, #8]
str wzr, [sp, #4]
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #28]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB4_4
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldr s1, [sp, #4]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
ldr x8, [sp, #8]
ldrsw x9, [sp, #4]
str d0, [x8, x9, lsl #3]
ldr w8, [sp, #4]
add w8, w8, #1
scvtf d0, w8
ldr w8, [sp, #4]
add w8, w8, #1
scvtf d1, w8
fmul d0, d0, d1
ldr x8, [sp, #16]
ldrsw x9, [sp, #4]
str d0, [x8, x9, lsl #3]
ldr x8, [sp, #16]
ldrsw x9, [sp, #4]
ldr d0, [x8, x9, lsl #3]
ldr x8, [sp, #16]
ldrsw x9, [sp, #4]
ldr d1, [x8, x9, lsl #3]
fmul d0, d0, d1
ldr x8, [sp, #16]
ldrsw x9, [sp, #4]
str d0, [x8, x9, lsl #3]
b LBB4_3
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB4_1
LBB4_4:
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI5_0:
.quad 0x3cb0000000000000 ; double 2.2204460492503131E-16
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
mov w8, #1
stur w8, [x29, #-20]
mov w8, #500
stur w8, [x29, #-24]
adrp x8, lCPI5_0@PAGE
ldr d0, [x8, lCPI5_0@PAGEOFF]
stur d0, [x29, #-48]
ldur w0, [x29, #-24]
add x1, sp, #48
bl _dallocvector
ldur w0, [x29, #-24]
add x1, sp, #40
bl _dallocvector
ldur w0, [x29, #-24]
add x1, sp, #32
bl _dallocvector
ldur w0, [x29, #-24]
add x1, sp, #24
bl _dallocvector
stur wzr, [x29, #-36]
b LBB5_1
LBB5_1: ; =>This Loop Header: Depth=1
; Child Loop BB5_3 Depth 2
ldur w8, [x29, #-36]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_8
b LBB5_2
LBB5_2: ; in Loop: Header=BB5_1 Depth=1
ldur w0, [x29, #-24]
ldr x1, [sp, #48]
ldr x2, [sp, #40]
bl _test_matrix
stur wzr, [x29, #-32]
b LBB5_3
LBB5_3: ; Parent Loop BB5_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-32]
ldur w9, [x29, #-24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_6
b LBB5_4
LBB5_4: ; in Loop: Header=BB5_3 Depth=2
ldr x8, [sp, #40]
ldursw x9, [x29, #-32]
ldr d0, [x8, x9, lsl #3]
ldr x8, [sp, #40]
ldursw x9, [x29, #-32]
ldr d1, [x8, x9, lsl #3]
fmul d0, d0, d1
ldr x8, [sp, #32]
ldursw x9, [x29, #-32]
str d0, [x8, x9, lsl #3]
ldr x8, [sp, #24]
ldursw x9, [x29, #-32]
movi d0, #0000000000000000
str d0, [x8, x9, lsl #3]
b LBB5_5
LBB5_5: ; in Loop: Header=BB5_3 Depth=2
ldur w8, [x29, #-32]
add w8, w8, #1
stur w8, [x29, #-32]
b LBB5_3
LBB5_6: ; in Loop: Header=BB5_1 Depth=1
ldr x8, [sp, #32]
movi d0, #0000000000000000
str d0, [x8]
ldr x8, [sp, #40]
str d0, [x8]
ldr x0, [sp, #48]
ldr x1, [sp, #40]
ldr x2, [sp, #32]
ldur w3, [x29, #-24]
ldur w5, [x29, #-24]
ldur d0, [x29, #-48]
ldr x8, [sp, #24]
subs x8, x8, #8
mov x9, sp
str x8, [x9]
mov w4, #1
add x6, sp, #56
sub x7, x29, #28
bl _dbisect
b LBB5_7
LBB5_7: ; in Loop: Header=BB5_1 Depth=1
ldur w8, [x29, #-36]
add w8, w8, #1
stur w8, [x29, #-36]
b LBB5_1
LBB5_8:
mov w8, #1
stur w8, [x29, #-32]
b LBB5_9
LBB5_9: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-32]
subs w8, w8, #20
cset w8, ge
tbnz w8, #0, LBB5_12
b LBB5_10
LBB5_10: ; in Loop: Header=BB5_9 Depth=1
ldur w8, [x29, #-32]
add w10, w8, #1
ldr x8, [sp, #24]
ldursw x9, [x29, #-32]
ldr d0, [x8, x9, lsl #3]
mov x8, sp
; implicit-def: $x9
mov x9, x10
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=1
ldur w8, [x29, #-32]
add w8, w8, #1
stur w8, [x29, #-32]
b LBB5_9
LBB5_12:
ldr d0, [sp, #56]
ldur w9, [x29, #-28]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str d0, [x9]
str x8, [x9, #8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Error: couldn't allocate V in allocvector.\n"
l_.str.1: ; @.str.1
.asciz "bisect: Couldn't allocate memory for wu"
l_.str.2: ; @.str.2
.asciz "%5d %.5e\n"
l_.str.3: ; @.str.3
.asciz "eps2 = %.5e, k = %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _allocvector ## -- Begin function allocvector
.p2align 4, 0x90
_allocvector: ## @allocvector
.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 _malloc
movq %rax, -16(%rbp)
cmpq $0, %rax
jne LBB0_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $2, %edi
callq _exit
LBB0_2:
movq -16(%rbp), %rdi
movq -8(%rbp), %rdx
xorl %esi, %esi
movq $-1, %rcx
callq ___memset_chk
movq -16(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _dallocvector ## -- Begin function dallocvector
.p2align 4, 0x90
_dallocvector: ## @dallocvector
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movslq -4(%rbp), %rdi
shlq $3, %rdi
callq _allocvector
movq %rax, %rcx
movq -16(%rbp), %rax
movq %rcx, (%rax)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function sturm
LCPI2_0:
.quad 0x3ff0000000000000 ## double 1
LCPI2_1:
.quad 0x3cb0000000000000 ## double 2.2204460492503131E-16
.section __TEXT,__literal16,16byte_literals
.p2align 4
LCPI2_2:
.quad 0x7fffffffffffffff ## double NaN
.quad 0x7fffffffffffffff ## double NaN
.section __TEXT,__text,regular,pure_instructions
.globl _sturm
.p2align 4, 0x90
_sturm: ## @sturm
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movsd %xmm0, -40(%rbp)
movl $0, -48(%rbp)
movsd LCPI2_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -56(%rbp)
movl $0, -44(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB2_9
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne LBB2_3
jp LBB2_3
jmp LBB2_4
LBB2_3: ## in Loop: Header=BB2_1 Depth=1
movq -16(%rbp), %rax
movslq -44(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
subsd -40(%rbp), %xmm0
movq -32(%rbp), %rax
movslq -44(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero
divsd -56(%rbp), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, -56(%rbp)
jmp LBB2_5
LBB2_4: ## in Loop: Header=BB2_1 Depth=1
movq -16(%rbp), %rax
movslq -44(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
subsd -40(%rbp), %xmm0
movq -24(%rbp), %rax
movslq -44(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero
movaps LCPI2_2(%rip), %xmm2 ## xmm2 = [NaN,NaN]
pand %xmm2, %xmm1
movsd LCPI2_1(%rip), %xmm2 ## xmm2 = mem[0],zero
divsd %xmm2, %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, -56(%rbp)
LBB2_5: ## in Loop: Header=BB2_1 Depth=1
xorps %xmm0, %xmm0
ucomisd -56(%rbp), %xmm0
jbe LBB2_7
## %bb.6: ## in Loop: Header=BB2_1 Depth=1
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
LBB2_7: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_8
LBB2_8: ## in Loop: Header=BB2_1 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB2_1
LBB2_9:
movl -48(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function dbisect
LCPI3_0:
.quad 0x3ff028f5c28f5c29 ## double 1.01
LCPI3_2:
.quad 0xbff028f5c28f5c29 ## double -1.01
LCPI3_3:
.quad 0x3cb0000000000000 ## double 2.2204460492503131E-16
LCPI3_4:
.quad 0x3fe0000000000000 ## double 0.5
LCPI3_5:
.quad 0x401c000000000000 ## double 7
LCPI3_6:
.quad 0x4000000000000000 ## double 2
LCPI3_7:
.quad 0x3cc0000000000000 ## double 4.4408920985006262E-16
.section __TEXT,__literal16,16byte_literals
.p2align 4
LCPI3_1:
.quad 0x7fffffffffffffff ## double NaN
.quad 0x7fffffffffffffff ## double NaN
.section __TEXT,__text,regular,pure_instructions
.globl _dbisect
.p2align 4, 0x90
_dbisect: ## @dbisect
.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 32(%rbp), %rax
movq 24(%rbp), %rax
movq 16(%rbp), %rax
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movl %ecx, -28(%rbp)
movl %r8d, -32(%rbp)
movl %r9d, -36(%rbp)
movsd %xmm0, -48(%rbp)
movq -16(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -24(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -8(%rbp), %rax
movl -28(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero
movq -16(%rbp), %rax
movl -28(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movaps LCPI3_1(%rip), %xmm2 ## xmm2 = [NaN,NaN]
pand %xmm2, %xmm0
movsd LCPI3_2(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -72(%rbp)
movq -8(%rbp), %rax
movl -28(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero
movq -16(%rbp), %rax
movl -28(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movaps LCPI3_1(%rip), %xmm2 ## xmm2 = [NaN,NaN]
pand %xmm2, %xmm0
movsd LCPI3_0(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -80(%rbp)
movl -28(%rbp), %eax
subl $2, %eax
movl %eax, -52(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -52(%rbp)
jl LBB3_8
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movq -16(%rbp), %rax
movslq -52(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero
movaps LCPI3_1(%rip), %xmm0 ## xmm0 = [NaN,NaN]
pand %xmm0, %xmm1
movq -16(%rbp), %rax
movl -52(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movaps LCPI3_1(%rip), %xmm2 ## xmm2 = [NaN,NaN]
pand %xmm2, %xmm0
addsd %xmm0, %xmm1
movsd LCPI3_0(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm1, %xmm0
movsd %xmm0, -64(%rbp)
movq -8(%rbp), %rax
movslq -52(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
addsd -64(%rbp), %xmm0
ucomisd -80(%rbp), %xmm0
jbe LBB3_4
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
movq -8(%rbp), %rax
movslq -52(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
addsd -64(%rbp), %xmm0
movsd %xmm0, -80(%rbp)
LBB3_4: ## in Loop: Header=BB3_1 Depth=1
movq -8(%rbp), %rax
movslq -52(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero
subsd -64(%rbp), %xmm1
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB3_6
## %bb.5: ## in Loop: Header=BB3_1 Depth=1
movq -8(%rbp), %rax
movslq -52(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
subsd -64(%rbp), %xmm0
movsd %xmm0, -72(%rbp)
LBB3_6: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_7
LBB3_7: ## in Loop: Header=BB3_1 Depth=1
movl -52(%rbp), %eax
addl $-1, %eax
movl %eax, -52(%rbp)
jmp LBB3_1
LBB3_8:
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
addsd -80(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe LBB3_10
## %bb.9:
movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -128(%rbp) ## 8-byte Spill
jmp LBB3_11
LBB3_10:
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq %xmm0, %rax
movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, -128(%rbp) ## 8-byte Spill
LBB3_11:
movsd -128(%rbp), %xmm1 ## 8-byte Reload
## xmm1 = mem[0],zero
movsd LCPI3_3(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm1, %xmm0
movq 16(%rbp), %rax
movsd %xmm0, (%rax)
xorps %xmm0, %xmm0
ucomisd -48(%rbp), %xmm0
jb LBB3_13
## %bb.12:
movq 16(%rbp), %rax
movsd (%rax), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -48(%rbp)
LBB3_13:
movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq 16(%rbp), %rax
movsd LCPI3_5(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd (%rax), %xmm1
movsd LCPI3_4(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq 16(%rbp), %rax
movsd %xmm0, (%rax)
movl -28(%rbp), %eax
addl $1, %eax
movslq %eax, %rdi
movl $8, %esi
callq _calloc
movq %rax, -120(%rbp)
cmpq $0, %rax
jne LBB3_15
## %bb.14:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rsi
leaq L_.str.1(%rip), %rdi
callq _fputs
movl $1, %edi
callq _exit
LBB3_15:
movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -112(%rbp)
movl -36(%rbp), %eax
movl %eax, -52(%rbp)
LBB3_16: ## =>This Inner Loop Header: Depth=1
movl -52(%rbp), %eax
cmpl -32(%rbp), %eax
jl LBB3_19
## %bb.17: ## in Loop: Header=BB3_16 Depth=1
movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq 32(%rbp), %rax
movslq -52(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -120(%rbp), %rax
movslq -52(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
## %bb.18: ## in Loop: Header=BB3_16 Depth=1
movl -52(%rbp), %eax
addl $-1, %eax
movl %eax, -52(%rbp)
jmp LBB3_16
LBB3_19:
movq 24(%rbp), %rax
movl $0, (%rax)
movl -36(%rbp), %eax
movl %eax, -88(%rbp)
LBB3_20: ## =>This Loop Header: Depth=1
## Child Loop BB3_22 Depth 2
## Child Loop BB3_30 Depth 2
movl -88(%rbp), %eax
cmpl -32(%rbp), %eax
jl LBB3_42
## %bb.21: ## in Loop: Header=BB3_20 Depth=1
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -104(%rbp)
movl -88(%rbp), %eax
movl %eax, -52(%rbp)
LBB3_22: ## Parent Loop BB3_20 Depth=1
## => This Inner Loop Header: Depth=2
movl -52(%rbp), %eax
cmpl -32(%rbp), %eax
jl LBB3_27
## %bb.23: ## in Loop: Header=BB3_22 Depth=2
movsd -104(%rbp), %xmm1 ## xmm1 = mem[0],zero
movq -120(%rbp), %rax
movslq -52(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB3_25
## %bb.24: ## in Loop: Header=BB3_20 Depth=1
movq -120(%rbp), %rax
movslq -52(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -104(%rbp)
jmp LBB3_27
LBB3_25: ## in Loop: Header=BB3_22 Depth=2
jmp LBB3_26
LBB3_26: ## in Loop: Header=BB3_22 Depth=2
movl -52(%rbp), %eax
addl $-1, %eax
movl %eax, -52(%rbp)
jmp LBB3_22
LBB3_27: ## in Loop: Header=BB3_20 Depth=1
movsd -112(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq 32(%rbp), %rax
movslq -88(%rbp), %rcx
ucomisd (%rax,%rcx,8), %xmm0
jbe LBB3_29
## %bb.28: ## in Loop: Header=BB3_20 Depth=1
movq 32(%rbp), %rax
movslq -88(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -112(%rbp)
LBB3_29: ## in Loop: Header=BB3_20 Depth=1
movsd -104(%rbp), %xmm0 ## xmm0 = mem[0],zero
addsd -112(%rbp), %xmm0
movsd LCPI3_6(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movsd %xmm0, -96(%rbp)
LBB3_30: ## Parent Loop BB3_20 Depth=1
## => This Inner Loop Header: Depth=2
movsd -112(%rbp), %xmm0 ## xmm0 = mem[0],zero
subsd -104(%rbp), %xmm0
movsd -104(%rbp), %xmm1 ## xmm1 = mem[0],zero
movaps LCPI3_1(%rip), %xmm2 ## xmm2 = [NaN,NaN]
pand %xmm2, %xmm1
movsd -112(%rbp), %xmm2 ## xmm2 = mem[0],zero
movaps LCPI3_1(%rip), %xmm3 ## xmm3 = [NaN,NaN]
pand %xmm3, %xmm2
addsd %xmm2, %xmm1
movsd -48(%rbp), %xmm2 ## xmm2 = mem[0],zero
movsd LCPI3_7(%rip), %xmm3 ## xmm3 = mem[0],zero
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jbe LBB3_40
## %bb.31: ## in Loop: Header=BB3_30 Depth=2
movq 24(%rbp), %rax
movl (%rax), %ecx
addl $1, %ecx
movq 24(%rbp), %rax
movl %ecx, (%rax)
movl -28(%rbp), %edi
movq -8(%rbp), %rsi
movq -16(%rbp), %rdx
movq -24(%rbp), %rcx
movsd -96(%rbp), %xmm0 ## xmm0 = mem[0],zero
callq _sturm
movl %eax, -84(%rbp)
movl -84(%rbp), %eax
cmpl -88(%rbp), %eax
jge LBB3_38
## %bb.32: ## in Loop: Header=BB3_30 Depth=2
movl -84(%rbp), %eax
cmpl -32(%rbp), %eax
jge LBB3_34
## %bb.33: ## in Loop: Header=BB3_30 Depth=2
movsd -96(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -120(%rbp), %rax
movslq -32(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd %xmm0, -104(%rbp)
jmp LBB3_37
LBB3_34: ## in Loop: Header=BB3_30 Depth=2
movsd -96(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -120(%rbp), %rax
movl -84(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd %xmm0, -104(%rbp)
movq 32(%rbp), %rax
movslq -84(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
ucomisd -96(%rbp), %xmm0
jbe LBB3_36
## %bb.35: ## in Loop: Header=BB3_30 Depth=2
movsd -96(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq 32(%rbp), %rax
movslq -84(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
LBB3_36: ## in Loop: Header=BB3_30 Depth=2
jmp LBB3_37
LBB3_37: ## in Loop: Header=BB3_30 Depth=2
jmp LBB3_39
LBB3_38: ## in Loop: Header=BB3_30 Depth=2
movsd -96(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -112(%rbp)
LBB3_39: ## in Loop: Header=BB3_30 Depth=2
movsd -104(%rbp), %xmm0 ## xmm0 = mem[0],zero
addsd -112(%rbp), %xmm0
movsd LCPI3_6(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movsd %xmm0, -96(%rbp)
jmp LBB3_30
LBB3_40: ## in Loop: Header=BB3_20 Depth=1
movsd -104(%rbp), %xmm0 ## xmm0 = mem[0],zero
addsd -112(%rbp), %xmm0
movsd LCPI3_6(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movq 32(%rbp), %rax
movslq -88(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
## %bb.41: ## in Loop: Header=BB3_20 Depth=1
movl -88(%rbp), %eax
addl $-1, %eax
movl %eax, -88(%rbp)
jmp LBB3_20
LBB3_42:
movq -120(%rbp), %rdi
callq _free
addq $128, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test_matrix ## -- Begin function test_matrix
.p2align 4, 0x90
_test_matrix: ## @test_matrix
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movl $0, -28(%rbp)
LBB4_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB4_4
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
cvtsi2sdl -28(%rbp), %xmm0
movq -24(%rbp), %rax
movslq -28(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -28(%rbp), %eax
addl $1, %eax
cvtsi2sd %eax, %xmm0
movl -28(%rbp), %eax
addl $1, %eax
cvtsi2sd %eax, %xmm1
mulsd %xmm1, %xmm0
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
mulsd (%rax,%rcx,8), %xmm0
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
## %bb.3: ## in Loop: Header=BB4_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB4_1
LBB4_4:
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI5_0:
.quad 0x3cb0000000000000 ## double 2.2204460492503131E-16
.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 $112, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $1, -20(%rbp)
movl $500, -24(%rbp) ## imm = 0x1F4
movsd LCPI5_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -48(%rbp)
movl -24(%rbp), %edi
leaq -64(%rbp), %rsi
callq _dallocvector
movl -24(%rbp), %edi
leaq -72(%rbp), %rsi
callq _dallocvector
movl -24(%rbp), %edi
leaq -80(%rbp), %rsi
callq _dallocvector
movl -24(%rbp), %edi
leaq -88(%rbp), %rsi
callq _dallocvector
movl $0, -36(%rbp)
LBB5_1: ## =>This Loop Header: Depth=1
## Child Loop BB5_3 Depth 2
movl -36(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB5_8
## %bb.2: ## in Loop: Header=BB5_1 Depth=1
movl -24(%rbp), %edi
movq -64(%rbp), %rsi
movq -72(%rbp), %rdx
callq _test_matrix
movl $0, -32(%rbp)
LBB5_3: ## Parent Loop BB5_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -32(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB5_6
## %bb.4: ## in Loop: Header=BB5_3 Depth=2
movq -72(%rbp), %rax
movslq -32(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -72(%rbp), %rax
movslq -32(%rbp), %rcx
mulsd (%rax,%rcx,8), %xmm0
movq -80(%rbp), %rax
movslq -32(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -88(%rbp), %rax
movslq -32(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
## %bb.5: ## in Loop: Header=BB5_3 Depth=2
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB5_3
LBB5_6: ## in Loop: Header=BB5_1 Depth=1
movq -80(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -72(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq -64(%rbp), %rdi
movq -72(%rbp), %rsi
movq -80(%rbp), %rdx
movl -24(%rbp), %ecx
movl -24(%rbp), %r9d
movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -88(%rbp), %rax
addq $-8, %rax
movl $1, %r8d
leaq -56(%rbp), %r11
leaq -28(%rbp), %r10
movq %r11, (%rsp)
movq %r10, 8(%rsp)
movq %rax, 16(%rsp)
callq _dbisect
## %bb.7: ## in Loop: Header=BB5_1 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB5_1
LBB5_8:
movl $1, -32(%rbp)
LBB5_9: ## =>This Inner Loop Header: Depth=1
cmpl $20, -32(%rbp)
jge LBB5_12
## %bb.10: ## in Loop: Header=BB5_9 Depth=1
movl -32(%rbp), %esi
addl $1, %esi
movq -88(%rbp), %rax
movslq -32(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
## %bb.11: ## in Loop: Header=BB5_9 Depth=1
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB5_9
LBB5_12:
movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero
movl -28(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $1, %al
callq _printf
xorl %eax, %eax
addq $112, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Error: couldn't allocate V in allocvector.\n"
L_.str.1: ## @.str.1
.asciz "bisect: Couldn't allocate memory for wu"
L_.str.2: ## @.str.2
.asciz "%5d %.5e\n"
L_.str.3: ## @.str.3
.asciz "eps2 = %.5e, k = %d\n"
.subsections_via_symbols
| the_stack_data/147524.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, _N@GOTPAGE
ldr x8, [x8, _N@GOTPAGEOFF]
str x8, [sp, #48] ; 8-byte Folded Spill
adrp x8, _costo@GOTPAGE
ldr x8, [x8, _costo@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
adrp x8, _numeri@GOTPAGE
ldr x8, [x8, _numeri@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
adrp x8, _prezzi@GOTPAGE
ldr x8, [x8, _prezzi@GOTPAGEOFF]
str x8, [sp, #40] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fopen
stur x0, [x29, #-16]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fopen
ldr x8, [sp, #48] ; 8-byte Folded Reload
stur x0, [x29, #-24]
ldur x0, [x29, #-16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fscanf
stur wzr, [x29, #-28]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-28]
subs w8, w8, #4
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldur x0, [x29, #-16]
ldursw x10, [x29, #-28]
adrp x9, _numeriInit@GOTPAGE
ldr x9, [x9, _numeriInit@GOTPAGEOFF]
add x10, x9, x10, lsl #2
ldursw x9, [x29, #-28]
add x8, x8, x9, lsl #2
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _fscanf
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:
stur wzr, [x29, #-32]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-32]
subs w8, w8, #7
cset w8, gt
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x10, [sp, #24] ; 8-byte Folded Reload
ldursw x11, [x29, #-32]
mov w9, #0
str w9, [x10, x11, lsl #2]
ldursw x9, [x29, #-32]
add x0, x8, x9, lsl #4
adrp x1, _numeriInit@GOTPAGE
ldr x1, [x1, _numeriInit@GOTPAGEOFF]
mov x2, #16
mov x3, #-1
bl ___memcpy_chk
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-32]
add w8, w8, #1
stur w8, [x29, #-32]
b LBB0_5
LBB0_8:
mov w8, #8
stur w8, [x29, #-36]
b LBB0_9
LBB0_9: ; =>This Loop Header: Depth=1
; Child Loop BB0_11 Depth 2
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldur w8, [x29, #-36]
ldr w9, [x9]
add w9, w9, #7
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_20
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldursw x10, [x29, #-36]
mov w8, #2147483647
str w8, [x9, x10, lsl #2]
stur wzr, [x29, #-40]
b LBB0_11
LBB0_11: ; Parent Loop BB0_9 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-40]
subs w8, w8, #4
cset w8, ge
tbnz w8, #0, LBB0_18
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=2
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldur w9, [x29, #-36]
ldursw x11, [x29, #-40]
adrp x10, _mezzi@PAGE
add x10, x10, _mezzi@PAGEOFF
ldr w10, [x10, x11, lsl #2]
subs w9, w9, w10
add x8, x8, w9, sxtw #4
ldursw x9, [x29, #-40]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #1
cset w8, ge
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_11 Depth=2
b LBB0_17
LBB0_14: ; in Loop: Header=BB0_11 Depth=2
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x10, [sp, #40] ; 8-byte Folded Reload
ldur w8, [x29, #-36]
ldursw x12, [x29, #-40]
adrp x11, _mezzi@PAGE
add x11, x11, _mezzi@PAGEOFF
ldr w11, [x11, x12, lsl #2]
subs w8, w8, w11
ldr w8, [x9, w8, sxtw #2]
ldursw x11, [x29, #-40]
ldr w10, [x10, x11, lsl #2]
add w8, w8, w10
ldursw x10, [x29, #-36]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_11 Depth=2
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x11, [sp, #24] ; 8-byte Folded Reload
ldr x12, [sp, #40] ; 8-byte Folded Reload
ldur w9, [x29, #-36]
ldursw x13, [x29, #-40]
adrp x10, _mezzi@PAGE
add x10, x10, _mezzi@PAGEOFF
ldr w13, [x10, x13, lsl #2]
subs w9, w9, w13
ldr w9, [x11, w9, sxtw #2]
ldursw x13, [x29, #-40]
ldr w12, [x12, x13, lsl #2]
add w9, w9, w12
ldursw x12, [x29, #-36]
str w9, [x11, x12, lsl #2]
ldursw x11, [x29, #-36]
mov x9, x8
add x0, x9, x11, lsl #4
ldur w9, [x29, #-36]
ldursw x11, [x29, #-40]
ldr w10, [x10, x11, lsl #2]
subs w9, w9, w10
add x1, x8, w9, sxtw #4
mov x2, #16
mov x3, #-1
bl ___memcpy_chk
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldursw x9, [x29, #-36]
add x8, x8, x9, lsl #4
ldursw x9, [x29, #-40]
add x9, x8, x9, lsl #2
ldr w8, [x9]
subs w8, w8, #1
str w8, [x9]
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_11 Depth=2
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_11 Depth=2
ldur w8, [x29, #-40]
add w8, w8, #1
stur w8, [x29, #-40]
b LBB0_11
LBB0_18: ; in Loop: Header=BB0_9 Depth=1
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_9 Depth=1
ldur w8, [x29, #-36]
add w8, w8, #1
stur w8, [x29, #-36]
b LBB0_9
LBB0_20:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldur x0, [x29, #-24]
ldr w9, [x9]
add w9, w9, #7
ldr w9, [x8, w9, sxtw #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __DATA,__data
.globl _mezzi ; @mezzi
.p2align 2
_mezzi:
.long 2 ; 0x2
.long 4 ; 0x4
.long 5 ; 0x5
.long 7 ; 0x7
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "input.txt"
l_.str.1: ; @.str.1
.asciz "r"
l_.str.2: ; @.str.2
.asciz "output.txt"
l_.str.3: ; @.str.3
.asciz "w"
l_.str.4: ; @.str.4
.asciz "%d"
.comm _N,4,2 ; @N
l_.str.5: ; @.str.5
.asciz "%d %d"
.comm _numeriInit,16,2 ; @numeriInit
.comm _prezzi,16,2 ; @prezzi
.comm _costo,428,2 ; @costo
.comm _numeri,1712,2 ; @numeri
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq L_.str.1(%rip), %rsi
callq _fopen
movq %rax, -16(%rbp)
leaq L_.str.2(%rip), %rdi
leaq L_.str.3(%rip), %rsi
callq _fopen
movq %rax, -24(%rbp)
movq -16(%rbp), %rdi
leaq L_.str.4(%rip), %rsi
movq _N@GOTPCREL(%rip), %rdx
movb $0, %al
callq _fscanf
movl $0, -28(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $4, -28(%rbp)
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
movslq -28(%rbp), %rax
movq _numeriInit@GOTPCREL(%rip), %rdx
shlq $2, %rax
addq %rax, %rdx
movslq -28(%rbp), %rax
movq _prezzi@GOTPCREL(%rip), %rcx
shlq $2, %rax
addq %rax, %rcx
leaq L_.str.5(%rip), %rsi
movb $0, %al
callq _fscanf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_1
LBB0_4:
movl $0, -32(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
cmpl $7, -32(%rbp)
jg LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movslq -32(%rbp), %rcx
movq _costo@GOTPCREL(%rip), %rax
movl $0, (%rax,%rcx,4)
movslq -32(%rbp), %rax
movq _numeri@GOTPCREL(%rip), %rdi
shlq $4, %rax
addq %rax, %rdi
movq _numeriInit@GOTPCREL(%rip), %rsi
movl $16, %edx
movq $-1, %rcx
callq ___memcpy_chk
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB0_5
LBB0_8:
movl $8, -36(%rbp)
LBB0_9: ## =>This Loop Header: Depth=1
## Child Loop BB0_11 Depth 2
movl -36(%rbp), %eax
movq _N@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
addl $7, %ecx
cmpl %ecx, %eax
jg LBB0_20
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movslq -36(%rbp), %rcx
movq _costo@GOTPCREL(%rip), %rax
movl $2147483647, (%rax,%rcx,4) ## imm = 0x7FFFFFFF
movl $0, -40(%rbp)
LBB0_11: ## Parent Loop BB0_9 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $4, -40(%rbp)
jge LBB0_18
## %bb.12: ## in Loop: Header=BB0_11 Depth=2
movl -36(%rbp), %eax
movslq -40(%rbp), %rdx
leaq _mezzi(%rip), %rcx
subl (%rcx,%rdx,4), %eax
movslq %eax, %rcx
movq _numeri@GOTPCREL(%rip), %rax
shlq $4, %rcx
addq %rcx, %rax
movslq -40(%rbp), %rcx
cmpl $1, (%rax,%rcx,4)
jge LBB0_14
## %bb.13: ## in Loop: Header=BB0_11 Depth=2
jmp LBB0_17
LBB0_14: ## in Loop: Header=BB0_11 Depth=2
movl -36(%rbp), %eax
movslq -40(%rbp), %rdx
leaq _mezzi(%rip), %rcx
subl (%rcx,%rdx,4), %eax
movslq %eax, %rcx
movq _costo@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %eax
movslq -40(%rbp), %rdx
movq _prezzi@GOTPCREL(%rip), %rcx
addl (%rcx,%rdx,4), %eax
movslq -36(%rbp), %rdx
movq _costo@GOTPCREL(%rip), %rcx
cmpl (%rcx,%rdx,4), %eax
jge LBB0_16
## %bb.15: ## in Loop: Header=BB0_11 Depth=2
movl -36(%rbp), %eax
movslq -40(%rbp), %rdx
leaq _mezzi(%rip), %rcx
subl (%rcx,%rdx,4), %eax
movslq %eax, %rcx
movq _costo@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %edx
movslq -40(%rbp), %rcx
movq _prezzi@GOTPCREL(%rip), %rax
addl (%rax,%rcx,4), %edx
movslq -36(%rbp), %rcx
movq _costo@GOTPCREL(%rip), %rax
movl %edx, (%rax,%rcx,4)
movslq -36(%rbp), %rax
movq _numeri@GOTPCREL(%rip), %rdi
shlq $4, %rax
addq %rax, %rdi
movl -36(%rbp), %eax
movslq -40(%rbp), %rdx
leaq _mezzi(%rip), %rcx
subl (%rcx,%rdx,4), %eax
cltq
movq _numeri@GOTPCREL(%rip), %rsi
shlq $4, %rax
addq %rax, %rsi
movl $16, %edx
movq $-1, %rcx
callq ___memcpy_chk
movslq -36(%rbp), %rcx
movq _numeri@GOTPCREL(%rip), %rax
shlq $4, %rcx
addq %rcx, %rax
movslq -40(%rbp), %rcx
movl (%rax,%rcx,4), %edx
addl $-1, %edx
movl %edx, (%rax,%rcx,4)
LBB0_16: ## in Loop: Header=BB0_11 Depth=2
jmp LBB0_17
LBB0_17: ## in Loop: Header=BB0_11 Depth=2
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_11
LBB0_18: ## in Loop: Header=BB0_9 Depth=1
jmp LBB0_19
LBB0_19: ## in Loop: Header=BB0_9 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB0_9
LBB0_20:
movq -24(%rbp), %rdi
movq _N@GOTPCREL(%rip), %rax
movl (%rax), %eax
addl $7, %eax
movslq %eax, %rcx
movq _costo@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %edx
leaq L_.str.4(%rip), %rsi
movb $0, %al
callq _fprintf
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.globl _mezzi ## @mezzi
.p2align 4
_mezzi:
.long 2 ## 0x2
.long 4 ## 0x4
.long 5 ## 0x5
.long 7 ## 0x7
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "input.txt"
L_.str.1: ## @.str.1
.asciz "r"
L_.str.2: ## @.str.2
.asciz "output.txt"
L_.str.3: ## @.str.3
.asciz "w"
L_.str.4: ## @.str.4
.asciz "%d"
.comm _N,4,2 ## @N
L_.str.5: ## @.str.5
.asciz "%d %d"
.comm _numeriInit,16,4 ## @numeriInit
.comm _prezzi,16,4 ## @prezzi
.comm _costo,428,4 ## @costo
.comm _numeri,1712,4 ## @numeri
.subsections_via_symbols
| the_stack_data/25137610.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _makeMap ; -- Begin function makeMap
.p2align 2
_makeMap: ; @makeMap
.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 x8, [sp] ; 8-byte Folded Spill
stur w0, [x29, #-4]
stur w1, [x29, #-8]
ldur w9, [x29, #-4]
str w9, [x8]
ldur w9, [x29, #-8]
str w9, [x8, #4]
ldur w9, [x29, #-4]
ldur w10, [x29, #-8]
mul w9, w9, w10
str w9, [x8, #8]
; kill: def $x9 killed $xzr
str xzr, [x8, #16]
ldrsw x8, [x8, #8]
lsl x0, x8, #3
bl _malloc
ldr x8, [sp] ; 8-byte Folded Reload
str x0, [x8, #16]
stur wzr, [x29, #-12]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr x9, [sp] ; 8-byte Folded Reload
ldur w8, [x29, #-12]
ldr w9, [x9, #4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_11
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #16]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x9, [sp] ; 8-byte Folded Reload
ldr w8, [sp, #16]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_9
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
str wzr, [sp, #12]
ldr w8, [sp, #16]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=2
mov w8, #1
str w8, [sp, #12]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=2
ldr x11, [sp] ; 8-byte Folded Reload
ldr w8, [sp, #12]
ldr x9, [x11, #16]
ldur w10, [x29, #-12]
ldr w11, [x11]
mul w10, w10, w11
ldr w11, [sp, #16]
add w11, w10, w11
; implicit-def: $x10
mov x10, x11
sxtw x10, w10
lsl x10, x10, #3
str w8, [x9, x10]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_3
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_1
LBB0_11:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _drawMap ; -- Begin function drawMap
.p2align 2
_drawMap: ; @drawMap
.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
str x0, [sp, #24] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_3 Depth 2
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldur w8, [x29, #-4]
ldr w9, [x9, #4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_10
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
stur wzr, [x29, #-8]
b LBB1_3
LBB1_3: ; Parent Loop BB1_1 Depth=1
; => This 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_8
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=2
ldr x10, [sp, #24] ; 8-byte Folded Reload
ldr x8, [x10, #16]
ldur w9, [x29, #-4]
ldr w10, [x10]
mul w9, w9, w10
ldur w10, [x29, #-8]
add w9, w9, w10
ldr x8, [x8, w9, sxtw #3]
stur x8, [x29, #-16]
ldur w8, [x29, #-16]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=2
bl _start_color
mov w1, #1
mov x0, x1
mov w2, #7
bl _init_pair
adrp x8, _stdscr@GOTPAGE
ldr x8, [x8, _stdscr@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
ldr x0, [x8]
mov w1, #256
str w1, [sp, #12] ; 4-byte Folded Spill
mov x2, #0
str x2, [sp, #16] ; 8-byte Folded Spill
bl _wattr_on
ldur w0, [x29, #-4]
ldur w1, [x29, #-8]
adrp x2, l_.str@PAGE
add x2, x2, l_.str@PAGEOFF
bl _mvprintw
ldr x8, [sp] ; 8-byte Folded Reload
ldr w1, [sp, #12] ; 4-byte Folded Reload
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
bl _wattr_off
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_3 Depth=2
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_3 Depth=2
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB1_3
LBB1_8: ; in Loop: Header=BB1_1 Depth=1
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-4]
b LBB1_1
LBB1_10:
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 "0"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _makeMap ## -- Begin function makeMap
.p2align 4, 0x90
_makeMap: ## @makeMap
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -32(%rbp) ## 8-byte Spill
movq %rdi, %rax
movq %rax, -40(%rbp) ## 8-byte Spill
movl %esi, -4(%rbp)
movl %edx, -8(%rbp)
movl -4(%rbp), %eax
movl %eax, (%rdi)
movl -8(%rbp), %eax
movl %eax, 4(%rdi)
movl -4(%rbp), %eax
imull -8(%rbp), %eax
movl %eax, 8(%rdi)
movq $0, 16(%rdi)
movslq 8(%rdi), %rdi
shlq $3, %rdi
callq _malloc
movq -32(%rbp), %rdi ## 8-byte Reload
movq %rax, 16(%rdi)
movl $0, -12(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movq -32(%rbp), %rcx ## 8-byte Reload
movl -12(%rbp), %eax
cmpl 4(%rcx), %eax
jge LBB0_11
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -16(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -32(%rbp), %rcx ## 8-byte Reload
movl -16(%rbp), %eax
cmpl (%rcx), %eax
jge LBB0_9
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movl $0, -20(%rbp)
cmpl $0, -16(%rbp)
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
cmpl $0, -12(%rbp)
jne LBB0_7
LBB0_6: ## in Loop: Header=BB0_3 Depth=2
movl $1, -20(%rbp)
LBB0_7: ## in Loop: Header=BB0_3 Depth=2
movq -32(%rbp), %rsi ## 8-byte Reload
movl -20(%rbp), %edx
movq 16(%rsi), %rax
movl -12(%rbp), %ecx
imull (%rsi), %ecx
addl -16(%rbp), %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,8)
## %bb.8: ## in Loop: Header=BB0_3 Depth=2
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_3
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_10
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_1
LBB0_11:
movq -40(%rbp), %rax ## 8-byte Reload
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _drawMap ## -- Begin function drawMap
.p2align 4, 0x90
_drawMap: ## @drawMap
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
leaq 16(%rbp), %rax
movq %rax, -24(%rbp) ## 8-byte Spill
movl $0, -4(%rbp)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_3 Depth 2
movq -24(%rbp), %rcx ## 8-byte Reload
movl -4(%rbp), %eax
cmpl 4(%rcx), %eax
jge LBB1_10
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl $0, -8(%rbp)
LBB1_3: ## Parent Loop BB1_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -24(%rbp), %rcx ## 8-byte Reload
movl -8(%rbp), %eax
cmpl (%rcx), %eax
jge LBB1_8
## %bb.4: ## in Loop: Header=BB1_3 Depth=2
movq -24(%rbp), %rdx ## 8-byte Reload
movq 16(%rdx), %rax
movl -4(%rbp), %ecx
imull (%rdx), %ecx
addl -8(%rbp), %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -16(%rbp)
cmpl $1, -16(%rbp)
jne LBB1_6
## %bb.5: ## in Loop: Header=BB1_3 Depth=2
callq _start_color
movl $1, %esi
movl $7, %edx
movl %esi, %edi
callq _init_pair
movq _stdscr@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl $256, %esi ## imm = 0x100
xorl %eax, %eax
movl %eax, %edx
callq _wattr_on
movl -4(%rbp), %edi
movl -8(%rbp), %esi
leaq L_.str(%rip), %rdx
movb $0, %al
callq _mvprintw
movq _stdscr@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl $256, %esi ## imm = 0x100
xorl %eax, %eax
movl %eax, %edx
callq _wattr_off
LBB1_6: ## in Loop: Header=BB1_3 Depth=2
jmp LBB1_7
LBB1_7: ## in Loop: Header=BB1_3 Depth=2
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB1_3
LBB1_8: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_9
LBB1_9: ## in Loop: Header=BB1_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB1_1
LBB1_10:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "0"
.subsections_via_symbols
| the_stack_data/31388171.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
mov w8, #1
stur w8, [x29, #-24]
stur wzr, [x29, #-28]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #20
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldur w9, [x29, #-20]
ldur w8, [x29, #-28]
add w8, w8, w9
stur w8, [x29, #-28]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w0, [x29, #-28]
ldur w1, [x29, #-24]
bl _runningAverage
str d0, [sp, #24]
ldur w8, [x29, #-28]
; implicit-def: $x10
mov x10, x8
ldur w8, [x29, #-24]
; implicit-def: $x9
mov x9, x8
ldr d0, [sp, #24]
mov x8, sp
str x10, [x8]
str x9, [x8, #8]
str d0, [x8, #16]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #20
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
ldur w9, [x29, #-20]
ldur w8, [x29, #-28]
add w8, w8, w9
stur w8, [x29, #-28]
b LBB0_1
LBB0_3:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _runningAverage ; -- Begin function runningAverage
.p2align 2
_runningAverage: ; @runningAverage
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str w1, [sp, #8]
ldr s0, [sp, #12]
scvtf s0, s0
fmov s1, #1.00000000
fmul s0, s0, s1
ldr s2, [sp, #8]
scvtf s2, s2
fdiv s0, s0, s2
fmul s0, s0, s1
fcvt d0, s0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _r_avg ; -- Begin function r_avg
.p2align 2
_r_avg: ; @r_avg
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str w1, [sp, #8]
movi d0, #0000000000000000
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "enter number (-1 to quit): "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "running average is %d / %d = %.3f\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $1, -24(%rbp)
movl $0, -28(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -20(%rbp), %rsi
movb $0, %al
callq _scanf
movl -20(%rbp), %eax
addl -28(%rbp), %eax
movl %eax, -28(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $-1, -20(%rbp)
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %edi
movl -24(%rbp), %esi
callq _runningAverage
movsd %xmm0, -40(%rbp)
movl -28(%rbp), %esi
movl -24(%rbp), %edx
movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -20(%rbp), %rsi
movb $0, %al
callq _scanf
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
movl -20(%rbp), %eax
addl -28(%rbp), %eax
movl %eax, -28(%rbp)
jmp LBB0_1
LBB0_3:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function runningAverage
LCPI1_0:
.long 0x3f800000 ## float 1
.section __TEXT,__text,regular,pure_instructions
.globl _runningAverage
.p2align 4, 0x90
_runningAverage: ## @runningAverage
.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)
cvtsi2ssl -4(%rbp), %xmm0
movss LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm1, %xmm0
cvtsi2ssl -8(%rbp), %xmm1
divss %xmm1, %xmm0
movss LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _r_avg ## -- Begin function r_avg
.p2align 4, 0x90
_r_avg: ## @r_avg
.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)
xorps %xmm0, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "enter number (-1 to quit): "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "running average is %d / %d = %.3f\n"
.subsections_via_symbols
| the_stack_data/165766525.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
mov w0, #0
str wzr, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _foo,1,0 ; @foo
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $0, -4(%rbp)
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _foo,1,0 ## @foo
.subsections_via_symbols
| the_stack_data/90764657.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _strbuf ; -- Begin function strbuf
.p2align 2
_strbuf: ; @strbuf
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x0, [sp, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _strtobuf ; -- Begin function strtobuf
.p2align 2
_strtobuf: ; @strtobuf
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
str w2, [sp, #12]
str wzr, [sp, #8]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #1
str w8, [sp, #12]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB1_5
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #24]
add x9, x8, #1
str x9, [sp, #24]
ldrsb w8, [x8]
ldr x9, [sp, #16]
add x10, x9, #1
str x10, [sp, #16]
strb w8, [x9]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
b LBB1_5
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB1_1
LBB1_5:
ldr w0, [sp, #8]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _strlen ; -- Begin function strlen
.p2align 2
_strlen: ; @strlen
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str wzr, [sp, #4]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
add x9, x8, #1
str x9, [sp, #8]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB2_1
LBB2_3:
ldr w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _strfetch ; -- Begin function strfetch
.p2align 2
_strfetch: ; @strfetch
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str w1, [sp, #4]
ldr x8, [sp, #8]
ldr w9, [sp, #4]
subs w9, w9, #1
ldrsb w0, [x8, w9, sxtw]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _strstore ; -- Begin function strstore
.p2align 2
_strstore: ; @strstore
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #16]
str w1, [sp, #12]
str w2, [sp, #8]
ldr w8, [sp, #8]
ldr x9, [sp, #16]
ldr w10, [sp, #12]
subs w10, w10, #1
strb w8, [x9, w10, sxtw]
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 _strbuf ## -- Begin function strbuf
.p2align 4, 0x90
_strbuf: ## @strbuf
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _strtobuf ## -- Begin function strtobuf
.p2align 4, 0x90
_strtobuf: ## @strtobuf
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl %edx, -20(%rbp)
movl $0, -24(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
addl $-1, %eax
movl %eax, -20(%rbp)
cmpl $0, %eax
jl LBB1_5
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -8(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -8(%rbp)
movb (%rax), %al
movq -16(%rbp), %rcx
movq %rcx, %rdx
addq $1, %rdx
movq %rdx, -16(%rbp)
movb %al, (%rcx)
movsbl %al, %eax
cmpl $0, %eax
jne LBB1_4
## %bb.3:
jmp LBB1_5
LBB1_4: ## in Loop: Header=BB1_1 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB1_1
LBB1_5:
movl -24(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _strlen ## -- Begin function strlen
.p2align 4, 0x90
_strlen: ## @strlen
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl $0, -12(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -8(%rbp)
cmpb $0, (%rax)
je LBB2_3
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB2_1
LBB2_3:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _strfetch ## -- Begin function strfetch
.p2align 4, 0x90
_strfetch: ## @strfetch
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq -8(%rbp), %rax
movl -12(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _strstore ## -- Begin function strstore
.p2align 4, 0x90
_strstore: ## @strstore
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movl %edx, -24(%rbp)
movl -24(%rbp), %eax
movb %al, %dl
movq -16(%rbp), %rax
movl -20(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/13967.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _crc32c ; -- Begin function crc32c
.p2align 2
_crc32c: ; @crc32c
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
mov w8, #-1
str w8, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
subs x9, x8, #1
str x9, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
ldr x9, [sp, #24]
add x10, x9, #1
str x10, [sp, #24]
ldrb w9, [x9]
eor w8, w8, w9
and w9, w8, #0xff
adrp x8, _crc32c_table@PAGE
add x8, x8, _crc32c_table@PAGEOFF
ldr w8, [x8, w9, uxtw #2]
ldr w9, [sp, #12]
eor w8, w8, w9, lsr #8
str w8, [sp, #12]
b LBB0_1
LBB0_3:
ldr w8, [sp, #12]
mvn w0, w8
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2 ; @crc32c_table
_crc32c_table:
.long 0 ; 0x0
.long 4067132163 ; 0xf26b8303
.long 3778769143 ; 0xe13b70f7
.long 324072436 ; 0x1350f3f4
.long 3348797215 ; 0xc79a971f
.long 904991772 ; 0x35f1141c
.long 648144872 ; 0x26a1e7e8
.long 3570033899 ; 0xd4ca64eb
.long 2329499855 ; 0x8ad958cf
.long 2024987596 ; 0x78b2dbcc
.long 1809983544 ; 0x6be22838
.long 2575936315 ; 0x9989ab3b
.long 1296289744 ; 0x4d43cfd0
.long 3207089363 ; 0xbf284cd3
.long 2893594407 ; 0xac78bf27
.long 1578318884 ; 0x5e133c24
.long 274646895 ; 0x105ec76f
.long 3795141740 ; 0xe235446c
.long 4049975192 ; 0xf165b798
.long 51262619 ; 0x30e349b
.long 3619967088 ; 0xd7c45070
.long 632279923 ; 0x25afd373
.long 922689671 ; 0x36ff2087
.long 3298075524 ; 0xc494a384
.long 2592579488 ; 0x9a879fa0
.long 1760304291 ; 0x68ec1ca3
.long 2075979607 ; 0x7bbcef57
.long 2312596564 ; 0x89d76c54
.long 1562183871 ; 0x5d1d08bf
.long 2943781820 ; 0xaf768bbc
.long 3156637768 ; 0xbc267848
.long 1313733451 ; 0x4e4dfb4b
.long 549293790 ; 0x20bd8ede
.long 3537243613 ; 0xd2d60ddd
.long 3246849577 ; 0xc186fe29
.long 871202090 ; 0x33ed7d2a
.long 3878099393 ; 0xe72719c1
.long 357341890 ; 0x154c9ac2
.long 102525238 ; 0x61c6936
.long 4101499445 ; 0xf477ea35
.long 2858735121 ; 0xaa64d611
.long 1477399826 ; 0x580f5512
.long 1264559846 ; 0x4b5fa6e6
.long 3107202533 ; 0xb93425e5
.long 1845379342 ; 0x6dfe410e
.long 2677391885 ; 0x9f95c20d
.long 2361733625 ; 0x8cc531f9
.long 2125378298 ; 0x7eaeb2fa
.long 820201905 ; 0x30e349b1
.long 3263744690 ; 0xc288cab2
.long 3520608582 ; 0xd1d83946
.long 598981189 ; 0x23b3ba45
.long 4151959214 ; 0xf779deae
.long 85089709 ; 0x5125dad
.long 373468761 ; 0x1642ae59
.long 3827903834 ; 0xe4292d5a
.long 3124367742 ; 0xba3a117e
.long 1213305469 ; 0x4851927d
.long 1526817161 ; 0x5b016189
.long 2842354314 ; 0xa96ae28a
.long 2107672161 ; 0x7da08661
.long 2412447074 ; 0x8fcb0562
.long 2627466902 ; 0x9c9bf696
.long 1861252501 ; 0x6ef07595
.long 1098587580 ; 0x417b1dbc
.long 3004210879 ; 0xb3109ebf
.long 2688576843 ; 0xa0406d4b
.long 1378610760 ; 0x522bee48
.long 2262928035 ; 0x86e18aa3
.long 1955203488 ; 0x748a09a0
.long 1742404180 ; 0x67dafa54
.long 2511436119 ; 0x95b17957
.long 3416409459 ; 0xcba24573
.long 969524848 ; 0x39c9c670
.long 714683780 ; 0x2a993584
.long 3639785095 ; 0xd8f2b687
.long 205050476 ; 0xc38d26c
.long 4266873199 ; 0xfe53516f
.long 3976438427 ; 0xed03a29b
.long 526918040 ; 0x1f682198
.long 1361435347 ; 0x5125dad3
.long 2739821008 ; 0xa34e59d0
.long 2954799652 ; 0xb01eaa24
.long 1114974503 ; 0x42752927
.long 2529119692 ; 0x96bf4dcc
.long 1691668175 ; 0x64d4cecf
.long 2005155131 ; 0x77843d3b
.long 2247081528 ; 0x85efbe38
.long 3690758684 ; 0xdbfc821c
.long 697762079 ; 0x2997011f
.long 986182379 ; 0x3ac7f2eb
.long 3366744552 ; 0xc8ac71e8
.long 476452099 ; 0x1c661503
.long 3993867776 ; 0xee0d9600
.long 4250756596 ; 0xfd5d65f4
.long 255256311 ; 0xf36e6f7
.long 1640403810 ; 0x61c69362
.long 2477592673 ; 0x93ad1061
.long 2164122517 ; 0x80fde395
.long 1922457750 ; 0x72966096
.long 2791048317 ; 0xa65c047d
.long 1412925310 ; 0x5437877e
.long 1197962378 ; 0x4767748a
.long 3037525897 ; 0xb50cf789
.long 3944729517 ; 0xeb1fcbad
.long 427051182 ; 0x197448ae
.long 170179418 ; 0xa24bb5a
.long 4165941337 ; 0xf84f3859
.long 746937522 ; 0x2c855cb2
.long 3740196785 ; 0xdeeedfb1
.long 3451792453 ; 0xcdbe2c45
.long 1070968646 ; 0x3fd5af46
.long 1905808397 ; 0x7198540d
.long 2213795598 ; 0x83f3d70e
.long 2426610938 ; 0x90a324fa
.long 1657317369 ; 0x62c8a7f9
.long 3053634322 ; 0xb602c312
.long 1147748369 ; 0x44694011
.long 1463399397 ; 0x5739b3e5
.long 2773627110 ; 0xa55230e6
.long 4215344322 ; 0xfb410cc2
.long 153784257 ; 0x92a8fc1
.long 444234805 ; 0x1a7a7c35
.long 3893493558 ; 0xe811ff36
.long 1021025245 ; 0x3cdb9bdd
.long 3467647198 ; 0xceb018de
.long 3722505002 ; 0xdde0eb2a
.long 797665321 ; 0x2f8b6829
.long 2197175160 ; 0x82f63b78
.long 1889384571 ; 0x709db87b
.long 1674398607 ; 0x63cd4b8f
.long 2443626636 ; 0x91a6c88c
.long 1164749927 ; 0x456cac67
.long 3070701412 ; 0xb7072f64
.long 2757221520 ; 0xa457dc90
.long 1446797203 ; 0x563c5f93
.long 137323447 ; 0x82f63b7
.long 4198817972 ; 0xfa44e0b4
.long 3910406976 ; 0xe9141340
.long 461344835 ; 0x1b7f9043
.long 3484808360 ; 0xcfb5f4a8
.long 1037989803 ; 0x3dde77ab
.long 781091935 ; 0x2e8e845f
.long 3705997148 ; 0xdce5075c
.long 2460548119 ; 0x92a8fc17
.long 1623424788 ; 0x60c37f14
.long 1939049696 ; 0x73938ce0
.long 2180517859 ; 0x81f80fe3
.long 1429367560 ; 0x55326b08
.long 2807687179 ; 0xa759e80b
.long 3020495871 ; 0xb4091bff
.long 1180866812 ; 0x466298fc
.long 410100952 ; 0x1871a4d8
.long 3927582683 ; 0xea1a27db
.long 4182430767 ; 0xf94ad42f
.long 186734380 ; 0xb21572c
.long 3756733383 ; 0xdfeb33c7
.long 763408580 ; 0x2d80b0c4
.long 1053836080 ; 0x3ed04330
.long 3434856499 ; 0xccbbc033
.long 2722870694 ; 0xa24bb5a6
.long 1344288421 ; 0x502036a5
.long 1131464017 ; 0x4370c551
.long 2971354706 ; 0xb11b4652
.long 1708204729 ; 0x65d122b9
.long 2545590714 ; 0x97baa1ba
.long 2229949006 ; 0x84ea524e
.long 1988219213 ; 0x7681d14d
.long 680717673 ; 0x2892ed69
.long 3673779818 ; 0xdaf96e6a
.long 3383336350 ; 0xc9a99d9e
.long 1002577565 ; 0x3bc21e9d
.long 4010310262 ; 0xef087a76
.long 493091189 ; 0x1d63f975
.long 238226049 ; 0xe330a81
.long 4233660802 ; 0xfc588982
.long 2987750089 ; 0xb21572c9
.long 1082061258 ; 0x407ef1ca
.long 1395524158 ; 0x532e023e
.long 2705686845 ; 0xa145813d
.long 1972364758 ; 0x758fe5d6
.long 2279892693 ; 0x87e466d5
.long 2494862625 ; 0x94b49521
.long 1725896226 ; 0x66df1622
.long 952904198 ; 0x38cc2a06
.long 3399985413 ; 0xcaa7a905
.long 3656866545 ; 0xd9f75af1
.long 731699698 ; 0x2b9cd9f2
.long 4283874585 ; 0xff56bd19
.long 222117402 ; 0xd3d3e1a
.long 510512622 ; 0x1e6dcdee
.long 3959836397 ; 0xec064eed
.long 3280807620 ; 0xc38d26c4
.long 837199303 ; 0x31e6a5c7
.long 582374963 ; 0x22b65633
.long 3504198960 ; 0xd0ddd530
.long 68661723 ; 0x417b1db
.long 4135334616 ; 0xf67c32d8
.long 3844915500 ; 0xe52cc12c
.long 390545967 ; 0x1747422f
.long 1230274059 ; 0x49547e0b
.long 3141532936 ; 0xbb3ffd08
.long 2825850620 ; 0xa86f0efc
.long 1510247935 ; 0x5a048dff
.long 2395924756 ; 0x8ecee914
.long 2091215383 ; 0x7ca56a17
.long 1878366691 ; 0x6ff599e3
.long 2644384480 ; 0x9d9e1ae0
.long 3553878443 ; 0xd3d3e1ab
.long 565732008 ; 0x21b862a8
.long 854102364 ; 0x32e8915c
.long 3229815391 ; 0xc083125f
.long 340358836 ; 0x144976b4
.long 3861050807 ; 0xe622f5b7
.long 4117890627 ; 0xf5720643
.long 119113024 ; 0x7198540
.long 1493875044 ; 0x590ab964
.long 2875275879 ; 0xab613a67
.long 3090270611 ; 0xb831c993
.long 1247431312 ; 0x4a5a4a90
.long 2660249211 ; 0x9e902e7b
.long 1828433272 ; 0x6cfbad78
.long 2141937292 ; 0x7fab5e8c
.long 2378227087 ; 0x8dc0dd8f
.long 3811616794 ; 0xe330a81a
.long 291187481 ; 0x115b2b19
.long 34330861 ; 0x20bd8ed
.long 4032846830 ; 0xf0605bee
.long 615137029 ; 0x24aa3f05
.long 3603020806 ; 0xd6c1bc06
.long 3314634738 ; 0xc5914ff2
.long 939183345 ; 0x37faccf1
.long 1776939221 ; 0x69e9f0d5
.long 2609017814 ; 0x9b8273d6
.long 2295496738 ; 0x88d28022
.long 2058945313 ; 0x7ab90321
.long 2926798794 ; 0xae7367ca
.long 1545135305 ; 0x5c18e4c9
.long 1330124605 ; 0x4f48173d
.long 3173225534 ; 0xbd23943e
.long 4084100981 ; 0xf36e6f75
.long 17165430 ; 0x105ec76
.long 307568514 ; 0x12551f82
.long 3762199681 ; 0xe03e9c81
.long 888469610 ; 0x34f4f86a
.long 3332340585 ; 0xc69f7b69
.long 3587147933 ; 0xd5cf889d
.long 665062302 ; 0x27a40b9e
.long 2042050490 ; 0x79b737ba
.long 2346497209 ; 0x8bdcb4b9
.long 2559330125 ; 0x988c474d
.long 1793573966 ; 0x6ae7c44e
.long 3190661285 ; 0xbe2da0a5
.long 1279665062 ; 0x4c4623a6
.long 1595330642 ; 0x5f16d052
.long 2910671697 ; 0xad7d5351
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _crc32c ## -- Begin function crc32c
.p2align 4, 0x90
_crc32c: ## @crc32c
.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 $-1, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movq %rax, %rcx
addq $-1, %rcx
movq %rcx, -16(%rbp)
cmpq $0, %rax
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
movq -8(%rbp), %rcx
movq %rcx, %rdx
addq $1, %rdx
movq %rdx, -8(%rbp)
movzbl (%rcx), %ecx
xorl %ecx, %eax
andl $255, %eax
movl %eax, %eax
movl %eax, %ecx
leaq _crc32c_table(%rip), %rax
movl (%rax,%rcx,4), %eax
movl -20(%rbp), %ecx
shrl $8, %ecx
xorl %ecx, %eax
movl %eax, -20(%rbp)
jmp LBB0_1
LBB0_3:
movl -20(%rbp), %eax
xorl $-1, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 4 ## @crc32c_table
_crc32c_table:
.long 0 ## 0x0
.long 4067132163 ## 0xf26b8303
.long 3778769143 ## 0xe13b70f7
.long 324072436 ## 0x1350f3f4
.long 3348797215 ## 0xc79a971f
.long 904991772 ## 0x35f1141c
.long 648144872 ## 0x26a1e7e8
.long 3570033899 ## 0xd4ca64eb
.long 2329499855 ## 0x8ad958cf
.long 2024987596 ## 0x78b2dbcc
.long 1809983544 ## 0x6be22838
.long 2575936315 ## 0x9989ab3b
.long 1296289744 ## 0x4d43cfd0
.long 3207089363 ## 0xbf284cd3
.long 2893594407 ## 0xac78bf27
.long 1578318884 ## 0x5e133c24
.long 274646895 ## 0x105ec76f
.long 3795141740 ## 0xe235446c
.long 4049975192 ## 0xf165b798
.long 51262619 ## 0x30e349b
.long 3619967088 ## 0xd7c45070
.long 632279923 ## 0x25afd373
.long 922689671 ## 0x36ff2087
.long 3298075524 ## 0xc494a384
.long 2592579488 ## 0x9a879fa0
.long 1760304291 ## 0x68ec1ca3
.long 2075979607 ## 0x7bbcef57
.long 2312596564 ## 0x89d76c54
.long 1562183871 ## 0x5d1d08bf
.long 2943781820 ## 0xaf768bbc
.long 3156637768 ## 0xbc267848
.long 1313733451 ## 0x4e4dfb4b
.long 549293790 ## 0x20bd8ede
.long 3537243613 ## 0xd2d60ddd
.long 3246849577 ## 0xc186fe29
.long 871202090 ## 0x33ed7d2a
.long 3878099393 ## 0xe72719c1
.long 357341890 ## 0x154c9ac2
.long 102525238 ## 0x61c6936
.long 4101499445 ## 0xf477ea35
.long 2858735121 ## 0xaa64d611
.long 1477399826 ## 0x580f5512
.long 1264559846 ## 0x4b5fa6e6
.long 3107202533 ## 0xb93425e5
.long 1845379342 ## 0x6dfe410e
.long 2677391885 ## 0x9f95c20d
.long 2361733625 ## 0x8cc531f9
.long 2125378298 ## 0x7eaeb2fa
.long 820201905 ## 0x30e349b1
.long 3263744690 ## 0xc288cab2
.long 3520608582 ## 0xd1d83946
.long 598981189 ## 0x23b3ba45
.long 4151959214 ## 0xf779deae
.long 85089709 ## 0x5125dad
.long 373468761 ## 0x1642ae59
.long 3827903834 ## 0xe4292d5a
.long 3124367742 ## 0xba3a117e
.long 1213305469 ## 0x4851927d
.long 1526817161 ## 0x5b016189
.long 2842354314 ## 0xa96ae28a
.long 2107672161 ## 0x7da08661
.long 2412447074 ## 0x8fcb0562
.long 2627466902 ## 0x9c9bf696
.long 1861252501 ## 0x6ef07595
.long 1098587580 ## 0x417b1dbc
.long 3004210879 ## 0xb3109ebf
.long 2688576843 ## 0xa0406d4b
.long 1378610760 ## 0x522bee48
.long 2262928035 ## 0x86e18aa3
.long 1955203488 ## 0x748a09a0
.long 1742404180 ## 0x67dafa54
.long 2511436119 ## 0x95b17957
.long 3416409459 ## 0xcba24573
.long 969524848 ## 0x39c9c670
.long 714683780 ## 0x2a993584
.long 3639785095 ## 0xd8f2b687
.long 205050476 ## 0xc38d26c
.long 4266873199 ## 0xfe53516f
.long 3976438427 ## 0xed03a29b
.long 526918040 ## 0x1f682198
.long 1361435347 ## 0x5125dad3
.long 2739821008 ## 0xa34e59d0
.long 2954799652 ## 0xb01eaa24
.long 1114974503 ## 0x42752927
.long 2529119692 ## 0x96bf4dcc
.long 1691668175 ## 0x64d4cecf
.long 2005155131 ## 0x77843d3b
.long 2247081528 ## 0x85efbe38
.long 3690758684 ## 0xdbfc821c
.long 697762079 ## 0x2997011f
.long 986182379 ## 0x3ac7f2eb
.long 3366744552 ## 0xc8ac71e8
.long 476452099 ## 0x1c661503
.long 3993867776 ## 0xee0d9600
.long 4250756596 ## 0xfd5d65f4
.long 255256311 ## 0xf36e6f7
.long 1640403810 ## 0x61c69362
.long 2477592673 ## 0x93ad1061
.long 2164122517 ## 0x80fde395
.long 1922457750 ## 0x72966096
.long 2791048317 ## 0xa65c047d
.long 1412925310 ## 0x5437877e
.long 1197962378 ## 0x4767748a
.long 3037525897 ## 0xb50cf789
.long 3944729517 ## 0xeb1fcbad
.long 427051182 ## 0x197448ae
.long 170179418 ## 0xa24bb5a
.long 4165941337 ## 0xf84f3859
.long 746937522 ## 0x2c855cb2
.long 3740196785 ## 0xdeeedfb1
.long 3451792453 ## 0xcdbe2c45
.long 1070968646 ## 0x3fd5af46
.long 1905808397 ## 0x7198540d
.long 2213795598 ## 0x83f3d70e
.long 2426610938 ## 0x90a324fa
.long 1657317369 ## 0x62c8a7f9
.long 3053634322 ## 0xb602c312
.long 1147748369 ## 0x44694011
.long 1463399397 ## 0x5739b3e5
.long 2773627110 ## 0xa55230e6
.long 4215344322 ## 0xfb410cc2
.long 153784257 ## 0x92a8fc1
.long 444234805 ## 0x1a7a7c35
.long 3893493558 ## 0xe811ff36
.long 1021025245 ## 0x3cdb9bdd
.long 3467647198 ## 0xceb018de
.long 3722505002 ## 0xdde0eb2a
.long 797665321 ## 0x2f8b6829
.long 2197175160 ## 0x82f63b78
.long 1889384571 ## 0x709db87b
.long 1674398607 ## 0x63cd4b8f
.long 2443626636 ## 0x91a6c88c
.long 1164749927 ## 0x456cac67
.long 3070701412 ## 0xb7072f64
.long 2757221520 ## 0xa457dc90
.long 1446797203 ## 0x563c5f93
.long 137323447 ## 0x82f63b7
.long 4198817972 ## 0xfa44e0b4
.long 3910406976 ## 0xe9141340
.long 461344835 ## 0x1b7f9043
.long 3484808360 ## 0xcfb5f4a8
.long 1037989803 ## 0x3dde77ab
.long 781091935 ## 0x2e8e845f
.long 3705997148 ## 0xdce5075c
.long 2460548119 ## 0x92a8fc17
.long 1623424788 ## 0x60c37f14
.long 1939049696 ## 0x73938ce0
.long 2180517859 ## 0x81f80fe3
.long 1429367560 ## 0x55326b08
.long 2807687179 ## 0xa759e80b
.long 3020495871 ## 0xb4091bff
.long 1180866812 ## 0x466298fc
.long 410100952 ## 0x1871a4d8
.long 3927582683 ## 0xea1a27db
.long 4182430767 ## 0xf94ad42f
.long 186734380 ## 0xb21572c
.long 3756733383 ## 0xdfeb33c7
.long 763408580 ## 0x2d80b0c4
.long 1053836080 ## 0x3ed04330
.long 3434856499 ## 0xccbbc033
.long 2722870694 ## 0xa24bb5a6
.long 1344288421 ## 0x502036a5
.long 1131464017 ## 0x4370c551
.long 2971354706 ## 0xb11b4652
.long 1708204729 ## 0x65d122b9
.long 2545590714 ## 0x97baa1ba
.long 2229949006 ## 0x84ea524e
.long 1988219213 ## 0x7681d14d
.long 680717673 ## 0x2892ed69
.long 3673779818 ## 0xdaf96e6a
.long 3383336350 ## 0xc9a99d9e
.long 1002577565 ## 0x3bc21e9d
.long 4010310262 ## 0xef087a76
.long 493091189 ## 0x1d63f975
.long 238226049 ## 0xe330a81
.long 4233660802 ## 0xfc588982
.long 2987750089 ## 0xb21572c9
.long 1082061258 ## 0x407ef1ca
.long 1395524158 ## 0x532e023e
.long 2705686845 ## 0xa145813d
.long 1972364758 ## 0x758fe5d6
.long 2279892693 ## 0x87e466d5
.long 2494862625 ## 0x94b49521
.long 1725896226 ## 0x66df1622
.long 952904198 ## 0x38cc2a06
.long 3399985413 ## 0xcaa7a905
.long 3656866545 ## 0xd9f75af1
.long 731699698 ## 0x2b9cd9f2
.long 4283874585 ## 0xff56bd19
.long 222117402 ## 0xd3d3e1a
.long 510512622 ## 0x1e6dcdee
.long 3959836397 ## 0xec064eed
.long 3280807620 ## 0xc38d26c4
.long 837199303 ## 0x31e6a5c7
.long 582374963 ## 0x22b65633
.long 3504198960 ## 0xd0ddd530
.long 68661723 ## 0x417b1db
.long 4135334616 ## 0xf67c32d8
.long 3844915500 ## 0xe52cc12c
.long 390545967 ## 0x1747422f
.long 1230274059 ## 0x49547e0b
.long 3141532936 ## 0xbb3ffd08
.long 2825850620 ## 0xa86f0efc
.long 1510247935 ## 0x5a048dff
.long 2395924756 ## 0x8ecee914
.long 2091215383 ## 0x7ca56a17
.long 1878366691 ## 0x6ff599e3
.long 2644384480 ## 0x9d9e1ae0
.long 3553878443 ## 0xd3d3e1ab
.long 565732008 ## 0x21b862a8
.long 854102364 ## 0x32e8915c
.long 3229815391 ## 0xc083125f
.long 340358836 ## 0x144976b4
.long 3861050807 ## 0xe622f5b7
.long 4117890627 ## 0xf5720643
.long 119113024 ## 0x7198540
.long 1493875044 ## 0x590ab964
.long 2875275879 ## 0xab613a67
.long 3090270611 ## 0xb831c993
.long 1247431312 ## 0x4a5a4a90
.long 2660249211 ## 0x9e902e7b
.long 1828433272 ## 0x6cfbad78
.long 2141937292 ## 0x7fab5e8c
.long 2378227087 ## 0x8dc0dd8f
.long 3811616794 ## 0xe330a81a
.long 291187481 ## 0x115b2b19
.long 34330861 ## 0x20bd8ed
.long 4032846830 ## 0xf0605bee
.long 615137029 ## 0x24aa3f05
.long 3603020806 ## 0xd6c1bc06
.long 3314634738 ## 0xc5914ff2
.long 939183345 ## 0x37faccf1
.long 1776939221 ## 0x69e9f0d5
.long 2609017814 ## 0x9b8273d6
.long 2295496738 ## 0x88d28022
.long 2058945313 ## 0x7ab90321
.long 2926798794 ## 0xae7367ca
.long 1545135305 ## 0x5c18e4c9
.long 1330124605 ## 0x4f48173d
.long 3173225534 ## 0xbd23943e
.long 4084100981 ## 0xf36e6f75
.long 17165430 ## 0x105ec76
.long 307568514 ## 0x12551f82
.long 3762199681 ## 0xe03e9c81
.long 888469610 ## 0x34f4f86a
.long 3332340585 ## 0xc69f7b69
.long 3587147933 ## 0xd5cf889d
.long 665062302 ## 0x27a40b9e
.long 2042050490 ## 0x79b737ba
.long 2346497209 ## 0x8bdcb4b9
.long 2559330125 ## 0x988c474d
.long 1793573966 ## 0x6ae7c44e
.long 3190661285 ## 0xbe2da0a5
.long 1279665062 ## 0x4c4623a6
.long 1595330642 ## 0x5f16d052
.long 2910671697 ## 0xad7d5351
.subsections_via_symbols
| the_stack_data/26699929.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test127 ; -- Begin function test127
.p2align 2
_test127: ; @test127
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub x2, x29, #4
mov w1, #0
stur wzr, [x29, #-4]
adrp x0, _board_@PAGE
add x0, x0, _board_@PAGEOFF
mov w3, #8
bl _setQueen
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function setQueen
_setQueen: ; @setQueen
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur w1, [x29, #-20]
str x2, [sp, #16]
str w3, [sp, #12]
ldur w8, [x29, #-20]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr x9, [sp, #16]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
stur wzr, [x29, #-4]
b LBB1_9
LBB1_2:
str wzr, [sp, #8]
b LBB1_3
LBB1_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_8
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
mov x10, #120
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #8]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=1
ldur x0, [x29, #-16]
ldur w1, [x29, #-20]
ldr w2, [sp, #8]
ldr w4, [sp, #12]
mov w3, #1
bl _changeBoard
ldur x0, [x29, #-16]
ldur w8, [x29, #-20]
add w1, w8, #1
ldr x2, [sp, #16]
ldr w3, [sp, #12]
bl _setQueen
ldur x0, [x29, #-16]
ldur w1, [x29, #-20]
ldr w2, [sp, #8]
ldr w4, [sp, #12]
mov w3, #-1
bl _changeBoard
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_3 Depth=1
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_3 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB1_3
LBB1_8:
stur wzr, [x29, #-4]
b LBB1_9
LBB1_9:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function changeBoard
_changeBoard: ; @changeBoard
.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]
str w3, [sp, #12]
str w4, [sp, #8]
str wzr, [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, ge
tbnz w8, #0, LBB2_4
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr w10, [sp, #12]
ldr x8, [sp, #24]
ldrsw x9, [sp, #20]
mov x11, #120
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #4]
add x9, x8, x9, lsl #2
ldr w8, [x9]
add w8, w8, w10
str w8, [x9]
ldr w10, [sp, #12]
ldr x8, [sp, #24]
ldrsw x9, [sp, #4]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #16]
add x9, x8, x9, lsl #2
ldr w8, [x9]
add w8, w8, w10
str w8, [x9]
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 w8, [sp, #20]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB2_10
b LBB2_5
LBB2_5:
str wzr, [sp, #4]
b LBB2_6
LBB2_6: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #8]
ldr w10, [sp, #20]
ldr w11, [sp, #16]
subs w10, w10, w11
subs w9, w9, w10
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_9
b LBB2_7
LBB2_7: ; in Loop: Header=BB2_6 Depth=1
ldr w10, [sp, #12]
ldr x8, [sp, #24]
ldrsw x9, [sp, #4]
mov x11, #120
mul x9, x9, x11
add x11, x8, x9
ldr w8, [sp, #20]
ldr w9, [sp, #16]
subs w8, w8, w9
mov w9, #120
smaddl x8, w8, w9, x11
ldrsw x9, [sp, #4]
add x9, x8, x9, lsl #2
ldr w8, [x9]
add w8, w8, w10
str w8, [x9]
b LBB2_8
LBB2_8: ; in Loop: Header=BB2_6 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB2_6
LBB2_9:
b LBB2_15
LBB2_10:
str wzr, [sp, #4]
b LBB2_11
LBB2_11: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #8]
ldr w10, [sp, #16]
ldr w11, [sp, #20]
subs w10, w10, w11
subs w9, w9, w10
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_14
b LBB2_12
LBB2_12: ; in Loop: Header=BB2_11 Depth=1
ldr w10, [sp, #12]
ldr x8, [sp, #24]
ldrsw x9, [sp, #4]
mov x11, #120
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #4]
add x8, x8, x9, lsl #2
ldr w9, [sp, #16]
ldr w11, [sp, #20]
subs w9, w9, w11
add x9, x8, w9, sxtw #2
ldr w8, [x9]
add w8, w8, w10
str w8, [x9]
b LBB2_13
LBB2_13: ; in Loop: Header=BB2_11 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB2_11
LBB2_14:
b LBB2_15
LBB2_15:
ldr w8, [sp, #20]
ldr w9, [sp, #16]
add w8, w8, w9
ldr w9, [sp, #8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_21
b LBB2_16
LBB2_16:
str wzr, [sp, #4]
b LBB2_17
LBB2_17: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #20]
ldr w10, [sp, #16]
add w9, w9, w10
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB2_20
b LBB2_18
LBB2_18: ; in Loop: Header=BB2_17 Depth=1
ldr w10, [sp, #12]
ldr x8, [sp, #24]
ldrsw x9, [sp, #20]
mov x11, #120
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #16]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #4]
mneg x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #4]
add x9, x8, x9, lsl #2
ldr w8, [x9]
add w8, w8, w10
str w8, [x9]
b LBB2_19
LBB2_19: ; in Loop: Header=BB2_17 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB2_17
LBB2_20:
b LBB2_26
LBB2_21:
ldr w8, [sp, #20]
ldr w9, [sp, #16]
add w8, w8, w9
ldr w9, [sp, #8]
subs w8, w8, w9
add w8, w8, #1
str w8, [sp, #4]
b LBB2_22
LBB2_22: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_25
b LBB2_23
LBB2_23: ; in Loop: Header=BB2_22 Depth=1
ldr w10, [sp, #12]
ldr x8, [sp, #24]
ldrsw x9, [sp, #20]
mov x11, #120
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #16]
mul x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #4]
mneg x9, x9, x11
add x8, x8, x9
ldrsw x9, [sp, #4]
add x9, x8, x9, lsl #2
ldr w8, [x9]
add w8, w8, w10
str w8, [x9]
b LBB2_24
LBB2_24: ; in Loop: Header=BB2_22 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB2_22
LBB2_25:
b LBB2_26
LBB2_26:
mov w0, #0
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_board_,3600,2 ; @board_
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test127 ## -- Begin function test127
.p2align 4, 0x90
_test127: ## @test127
.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 _board_(%rip), %rdi
xorl %esi, %esi
leaq -4(%rbp), %rdx
movl $8, %ecx
callq _setQueen
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function setQueen
_setQueen: ## @setQueen
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movq %rdx, -32(%rbp)
movl %ecx, -36(%rbp)
movl -20(%rbp), %eax
cmpl -36(%rbp), %eax
jne LBB1_2
## %bb.1:
movq -32(%rbp), %rax
movl (%rax), %ecx
addl $1, %ecx
movl %ecx, (%rax)
movl $0, -4(%rbp)
jmp LBB1_9
LBB1_2:
movl $0, -40(%rbp)
LBB1_3: ## =>This Inner Loop Header: Depth=1
movl -40(%rbp), %eax
cmpl -36(%rbp), %eax
jge LBB1_8
## %bb.4: ## in Loop: Header=BB1_3 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
imulq $120, %rcx, %rcx
addq %rcx, %rax
movslq -40(%rbp), %rcx
cmpl $0, (%rax,%rcx,4)
jne LBB1_6
## %bb.5: ## in Loop: Header=BB1_3 Depth=1
movq -16(%rbp), %rdi
movl -20(%rbp), %esi
movl -40(%rbp), %edx
movl -36(%rbp), %r8d
movl $1, %ecx
callq _changeBoard
movq -16(%rbp), %rdi
movl -20(%rbp), %esi
addl $1, %esi
movq -32(%rbp), %rdx
movl -36(%rbp), %ecx
callq _setQueen
movq -16(%rbp), %rdi
movl -20(%rbp), %esi
movl -40(%rbp), %edx
movl -36(%rbp), %r8d
movl $4294967295, %ecx ## imm = 0xFFFFFFFF
callq _changeBoard
LBB1_6: ## in Loop: Header=BB1_3 Depth=1
jmp LBB1_7
LBB1_7: ## in Loop: Header=BB1_3 Depth=1
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB1_3
LBB1_8:
movl $0, -4(%rbp)
LBB1_9:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function changeBoard
_changeBoard: ## @changeBoard
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movl %ecx, -20(%rbp)
movl %r8d, -24(%rbp)
movl $0, -28(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB2_4
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movl -20(%rbp), %edx
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
imulq $120, %rcx, %rcx
addq %rcx, %rax
movslq -28(%rbp), %rcx
addl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
movl -20(%rbp), %edx
movq -8(%rbp), %rax
movslq -28(%rbp), %rcx
imulq $120, %rcx, %rcx
addq %rcx, %rax
movslq -16(%rbp), %rcx
addl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
## %bb.3: ## in Loop: Header=BB2_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB2_1
LBB2_4:
movl -12(%rbp), %eax
cmpl -16(%rbp), %eax
jle LBB2_10
## %bb.5:
movl $0, -28(%rbp)
LBB2_6: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
movl -24(%rbp), %ecx
movl -12(%rbp), %edx
subl -16(%rbp), %edx
subl %edx, %ecx
cmpl %ecx, %eax
jge LBB2_9
## %bb.7: ## in Loop: Header=BB2_6 Depth=1
movl -20(%rbp), %edx
movq -8(%rbp), %rax
movslq -28(%rbp), %rcx
imulq $120, %rcx, %rcx
addq %rcx, %rax
movl -12(%rbp), %ecx
subl -16(%rbp), %ecx
movslq %ecx, %rcx
imulq $120, %rcx, %rcx
addq %rcx, %rax
movslq -28(%rbp), %rcx
addl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
## %bb.8: ## in Loop: Header=BB2_6 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB2_6
LBB2_9:
jmp LBB2_15
LBB2_10:
movl $0, -28(%rbp)
LBB2_11: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
movl -24(%rbp), %ecx
movl -16(%rbp), %edx
subl -12(%rbp), %edx
subl %edx, %ecx
cmpl %ecx, %eax
jge LBB2_14
## %bb.12: ## in Loop: Header=BB2_11 Depth=1
movl -20(%rbp), %edx
movq -8(%rbp), %rax
movslq -28(%rbp), %rcx
imulq $120, %rcx, %rcx
addq %rcx, %rax
movslq -28(%rbp), %rcx
shlq $2, %rcx
addq %rcx, %rax
movl -16(%rbp), %ecx
subl -12(%rbp), %ecx
movslq %ecx, %rcx
addl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
## %bb.13: ## in Loop: Header=BB2_11 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB2_11
LBB2_14:
jmp LBB2_15
LBB2_15:
movl -12(%rbp), %eax
addl -16(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB2_21
## %bb.16:
movl $0, -28(%rbp)
LBB2_17: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
movl -12(%rbp), %ecx
addl -16(%rbp), %ecx
cmpl %ecx, %eax
jg LBB2_20
## %bb.18: ## in Loop: Header=BB2_17 Depth=1
movl -20(%rbp), %edx
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
imulq $120, %rcx, %rcx
addq %rcx, %rax
movslq -16(%rbp), %rcx
imulq $120, %rcx, %rcx
addq %rcx, %rax
movslq -28(%rbp), %rsi
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq %rsi, %rcx
imulq $120, %rcx, %rcx
addq %rcx, %rax
movslq -28(%rbp), %rcx
addl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
## %bb.19: ## in Loop: Header=BB2_17 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB2_17
LBB2_20:
jmp LBB2_26
LBB2_21:
movl -12(%rbp), %eax
addl -16(%rbp), %eax
subl -24(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
LBB2_22: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB2_25
## %bb.23: ## in Loop: Header=BB2_22 Depth=1
movl -20(%rbp), %edx
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
imulq $120, %rcx, %rcx
addq %rcx, %rax
movslq -16(%rbp), %rcx
imulq $120, %rcx, %rcx
addq %rcx, %rax
movslq -28(%rbp), %rsi
xorl %ecx, %ecx
## kill: def $rcx killed $ecx
subq %rsi, %rcx
imulq $120, %rcx, %rcx
addq %rcx, %rax
movslq -28(%rbp), %rcx
addl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
## %bb.24: ## in Loop: Header=BB2_22 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB2_22
LBB2_25:
jmp LBB2_26
LBB2_26:
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_board_,3600,4 ## @board_
.subsections_via_symbols
| the_stack_data/223001.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _h_dnnt ; -- Begin function h_dnnt
.p2align 2
_h_dnnt: ; @h_dnnt
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr d0, [x8]
fcmp d0, #0.0
cset w8, lt
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #8]
ldr d0, [x8]
fmov d1, #0.50000000
fadd d0, d0, d1
frintm d0, d0
str d0, [sp] ; 8-byte Folded Spill
b LBB0_3
LBB0_2:
ldr x8, [sp, #8]
ldr d1, [x8]
fmov d0, #0.50000000
fsub d0, d0, d1
frintm d0, d0
fneg d0, d0
str d0, [sp] ; 8-byte Folded Spill
b LBB0_3
LBB0_3:
ldr d0, [sp] ; 8-byte Folded Reload
fcvtzs w8, d0
sxth w0, w8
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
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function h_dnnt
LCPI0_0:
.quad 0x3fe0000000000000 ## double 0.5
.section __TEXT,__text,regular,pure_instructions
.globl _h_dnnt
.p2align 4, 0x90
_h_dnnt: ## @h_dnnt
.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
movsd (%rax), %xmm0 ## xmm0 = mem[0],zero
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb LBB0_2
## %bb.1:
movq -8(%rbp), %rax
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
addsd (%rax), %xmm0
roundsd $9, %xmm0, %xmm0
movsd %xmm0, -16(%rbp) ## 8-byte Spill
jmp LBB0_3
LBB0_2:
movq -8(%rbp), %rax
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
subsd (%rax), %xmm0
roundsd $9, %xmm0, %xmm0
movq %xmm0, %rax
movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, -16(%rbp) ## 8-byte Spill
LBB0_3:
movsd -16(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
cvttsd2si %xmm0, %eax
## kill: def $ax killed $ax killed $eax
cwtl
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/187642465.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _routine ; -- Begin function routine
.p2align 2
_routine: ; @routine
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
str x8, [sp, #16]
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
mov w9, #25000
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldr w8, [x8, #8]
ldr x9, [sp, #16]
ldr w9, [x9, #4]
mul w10, w8, w9
ldr x9, [sp, #16]
ldr w8, [x9]
add w8, w8, w10
str w8, [x9]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_1
LBB0_4:
ldr x8, [sp, #16]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
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, #13712
movk w9, #12, lsl #16
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #195, lsl #12 ; =798720
sub sp, sp, #1424
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #84]
str w0, [sp, #80]
str x1, [sp, #72]
mov x0, #0
bl _time
; kill: def $w0 killed $w0 killed $x0
bl _srand
str wzr, [sp, #68]
str wzr, [sp, #64]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #64]
mov w9, #34464
movk w9, #1, lsl #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
bl _rand
mov w9, #1000
str w9, [sp, #20] ; 4-byte Folded Spill
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
subs w8, w8, #500
ldrsw x10, [sp, #64]
add x9, sp, #97, lsl #12 ; =397312
add x9, x9, #2824
str x9, [sp, #24] ; 8-byte Folded Spill
str w8, [x9, x10, lsl #2]
bl _rand
ldr w10, [sp, #20] ; 4-byte Folded Reload
ldr x9, [sp, #24] ; 8-byte Folded Reload
sdiv w8, w0, w10
mul w8, w8, w10
subs w8, w0, w8
subs w10, w8, #500
ldrsw x11, [sp, #64]
add x8, sp, #136
str w10, [x8, x11, lsl #2]
ldrsw x10, [sp, #64]
ldr w8, [x8, x10, lsl #2]
ldrsw x10, [sp, #64]
ldr w9, [x9, x10, lsl #2]
mul w9, w8, w9
ldr w8, [sp, #68]
add w8, w8, w9
str w8, [sp, #68]
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #64]
add w8, w8, #1
str w8, [sp, #64]
b LBB1_1
LBB1_4:
ldr w9, [sp, #68]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov x0, #13568
movk x0, #12, lsl #16
bl _malloc
str x0, [sp, #56]
str wzr, [sp, #52]
b LBB1_5
LBB1_5: ; =>This Loop Header: Depth=1
; Child Loop BB1_7 Depth 2
ldr w8, [sp, #52]
subs w8, w8, #4
cset w8, ge
tbnz w8, #0, LBB1_12
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_5 Depth=1
ldrsw x8, [sp, #52]
mov x9, #12
mul x10, x8, x9
add x9, sp, #88
mov w8, #0
str w8, [x9, x10]
str wzr, [sp, #48]
b LBB1_7
LBB1_7: ; Parent Loop BB1_5 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #48]
mov w9, #25000
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_10
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_7 Depth=2
ldrsw x9, [sp, #48]
add x8, sp, #97, lsl #12 ; =397312
add x8, x8, #2824
ldr w12, [x8, x9, lsl #2]
ldrsw x8, [sp, #52]
mov x11, #12
mul x10, x8, x11
add x8, sp, #88
mov x9, x8
add x10, x9, x10
ldr w9, [x10, #4]
add w9, w9, w12
str w9, [x10, #4]
ldrsw x10, [sp, #48]
add x9, sp, #136
ldr w10, [x9, x10, lsl #2]
ldrsw x9, [sp, #52]
mul x9, x9, x11
add x9, x8, x9
ldr w8, [x9, #8]
add w8, w8, w10
str w8, [x9, #8]
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_7 Depth=2
ldr w8, [sp, #48]
add w8, w8, #1
str w8, [sp, #48]
b LBB1_7
LBB1_10: ; in Loop: Header=BB1_5 Depth=1
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_5 Depth=1
ldr w8, [sp, #52]
add w8, w8, #1
str w8, [sp, #52]
b LBB1_5
LBB1_12:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
str wzr, [sp, #44]
b LBB1_13
LBB1_13: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #44]
subs w8, w8, #4
cset w8, ge
tbnz w8, #0, LBB1_16
b LBB1_14
LBB1_14: ; in Loop: Header=BB1_13 Depth=1
ldr x8, [sp, #56]
ldrsw x9, [sp, #44]
add x0, x8, x9, lsl #3
ldrsw x8, [sp, #44]
mov x9, #12
mul x9, x8, x9
add x8, sp, #88
add x3, x8, x9
mov x1, #0
adrp x2, _routine@PAGE
add x2, x2, _routine@PAGEOFF
bl _pthread_create
b LBB1_15
LBB1_15: ; in Loop: Header=BB1_13 Depth=1
ldr w8, [sp, #44]
add w8, w8, #1
str w8, [sp, #44]
b LBB1_13
LBB1_16:
str wzr, [sp, #40]
b LBB1_17
LBB1_17: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #40]
subs w8, w8, #4
cset w8, ge
tbnz w8, #0, LBB1_20
b LBB1_18
LBB1_18: ; in Loop: Header=BB1_17 Depth=1
ldr x8, [sp, #56]
ldrsw x9, [sp, #40]
ldr x0, [x8, x9, lsl #3]
mov x1, #0
bl _pthread_join
b LBB1_19
LBB1_19: ; in Loop: Header=BB1_17 Depth=1
ldr w8, [sp, #40]
add w8, w8, #1
str w8, [sp, #40]
b LBB1_17
LBB1_20:
str wzr, [sp, #36]
str wzr, [sp, #32]
b LBB1_21
LBB1_21: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #32]
subs w8, w8, #4
cset w8, ge
tbnz w8, #0, LBB1_24
b LBB1_22
LBB1_22: ; in Loop: Header=BB1_21 Depth=1
ldrsw x8, [sp, #32]
mov x9, #12
mul x9, x8, x9
add x8, sp, #88
ldr w9, [x8, x9]
ldr w8, [sp, #36]
add w8, w8, w9
str w8, [sp, #36]
b LBB1_23
LBB1_23: ; in Loop: Header=BB1_21 Depth=1
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB1_21
LBB1_24:
ldr w9, [sp, #36]
; 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 x0, [sp, #56]
bl _free
; kill: def $x8 killed $xzr
str xzr, [sp, #56]
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_26
b LBB1_25
LBB1_25:
bl ___stack_chk_fail
LBB1_26:
mov w0, #0
add sp, sp, #195, lsl #12 ; =798720
add sp, sp, #1424
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 "Product: %d\n"
l_.str.1: ; @.str.1
.asciz "Ground truth dot product: %d\n"
l_.str.2: ; @.str.2
.asciz "Test with 4 threads\n"
l_.str.3: ; @.str.3
.asciz "Answer with 4 threads: %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _routine ## -- Begin function routine
.p2align 4, 0x90
_routine: ## @routine
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
movl $0, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $25000, -20(%rbp) ## imm = 0x61A8
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movl 8(%rax), %ecx
movq -16(%rbp), %rax
imull 4(%rax), %ecx
movq -16(%rbp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
## %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 -16(%rbp), %rax
movl (%rax), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
## kill: def $rax killed $eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $800128, %eax ## imm = 0xC3580
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -800068(%rbp)
movl %edi, -800072(%rbp)
movq %rsi, -800080(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq _time
movl %eax, %edi
callq _srand
movl $0, -800084(%rbp)
movl $0, -800088(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $100000, -800088(%rbp) ## imm = 0x186A0
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
callq _rand
movl $1000, %ecx ## imm = 0x3E8
cltd
idivl %ecx
subl $500, %edx ## imm = 0x1F4
movslq -800088(%rbp), %rax
movl %edx, -400016(%rbp,%rax,4)
callq _rand
movl $1000, %ecx ## imm = 0x3E8
cltd
idivl %ecx
subl $500, %edx ## imm = 0x1F4
movslq -800088(%rbp), %rax
movl %edx, -800016(%rbp,%rax,4)
movslq -800088(%rbp), %rax
movl -800016(%rbp,%rax,4), %eax
movslq -800088(%rbp), %rcx
imull -400016(%rbp,%rcx,4), %eax
addl -800084(%rbp), %eax
movl %eax, -800084(%rbp)
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -800088(%rbp), %eax
addl $1, %eax
movl %eax, -800088(%rbp)
jmp LBB1_1
LBB1_4:
movl -800084(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl $800000, %edi ## imm = 0xC3500
callq _malloc
movq %rax, -800096(%rbp)
movl $0, -800100(%rbp)
LBB1_5: ## =>This Loop Header: Depth=1
## Child Loop BB1_7 Depth 2
cmpl $4, -800100(%rbp)
jge LBB1_12
## %bb.6: ## in Loop: Header=BB1_5 Depth=1
movslq -800100(%rbp), %rcx
leaq -800064(%rbp), %rax
imulq $12, %rcx, %rcx
addq %rcx, %rax
movl $0, (%rax)
movl $0, -800104(%rbp)
LBB1_7: ## Parent Loop BB1_5 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $25000, -800104(%rbp) ## imm = 0x61A8
jge LBB1_10
## %bb.8: ## in Loop: Header=BB1_7 Depth=2
movslq -800104(%rbp), %rax
movl -400016(%rbp,%rax,4), %ecx
movslq -800100(%rbp), %rdx
leaq -800064(%rbp), %rax
imulq $12, %rdx, %rdx
addq %rdx, %rax
addl 4(%rax), %ecx
movl %ecx, 4(%rax)
movslq -800104(%rbp), %rax
movl -800016(%rbp,%rax,4), %ecx
movslq -800100(%rbp), %rdx
leaq -800064(%rbp), %rax
imulq $12, %rdx, %rdx
addq %rdx, %rax
addl 8(%rax), %ecx
movl %ecx, 8(%rax)
## %bb.9: ## in Loop: Header=BB1_7 Depth=2
movl -800104(%rbp), %eax
addl $1, %eax
movl %eax, -800104(%rbp)
jmp LBB1_7
LBB1_10: ## in Loop: Header=BB1_5 Depth=1
jmp LBB1_11
LBB1_11: ## in Loop: Header=BB1_5 Depth=1
movl -800100(%rbp), %eax
addl $1, %eax
movl %eax, -800100(%rbp)
jmp LBB1_5
LBB1_12:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -800108(%rbp)
LBB1_13: ## =>This Inner Loop Header: Depth=1
cmpl $4, -800108(%rbp)
jge LBB1_16
## %bb.14: ## in Loop: Header=BB1_13 Depth=1
movq -800096(%rbp), %rdi
movslq -800108(%rbp), %rax
shlq $3, %rax
addq %rax, %rdi
movslq -800108(%rbp), %rax
leaq -800064(%rbp), %rcx
imulq $12, %rax, %rax
addq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
leaq _routine(%rip), %rdx
callq _pthread_create
## %bb.15: ## in Loop: Header=BB1_13 Depth=1
movl -800108(%rbp), %eax
addl $1, %eax
movl %eax, -800108(%rbp)
jmp LBB1_13
LBB1_16:
movl $0, -800112(%rbp)
LBB1_17: ## =>This Inner Loop Header: Depth=1
cmpl $4, -800112(%rbp)
jge LBB1_20
## %bb.18: ## in Loop: Header=BB1_17 Depth=1
movq -800096(%rbp), %rax
movslq -800112(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_join
## %bb.19: ## in Loop: Header=BB1_17 Depth=1
movl -800112(%rbp), %eax
addl $1, %eax
movl %eax, -800112(%rbp)
jmp LBB1_17
LBB1_20:
movl $0, -800116(%rbp)
movl $0, -800120(%rbp)
LBB1_21: ## =>This Inner Loop Header: Depth=1
cmpl $4, -800120(%rbp)
jge LBB1_24
## %bb.22: ## in Loop: Header=BB1_21 Depth=1
movslq -800120(%rbp), %rcx
leaq -800064(%rbp), %rax
imulq $12, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
addl -800116(%rbp), %eax
movl %eax, -800116(%rbp)
## %bb.23: ## in Loop: Header=BB1_21 Depth=1
movl -800120(%rbp), %eax
addl $1, %eax
movl %eax, -800120(%rbp)
jmp LBB1_21
LBB1_24:
movl -800116(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movq -800096(%rbp), %rdi
callq _free
movq $0, -800096(%rbp)
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_26
## %bb.25:
xorl %eax, %eax
addq $800128, %rsp ## imm = 0xC3580
popq %rbp
retq
LBB1_26:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Product: %d\n"
L_.str.1: ## @.str.1
.asciz "Ground truth dot product: %d\n"
L_.str.2: ## @.str.2
.asciz "Test with 4 threads\n"
L_.str.3: ## @.str.3
.asciz "Answer with 4 threads: %d\n"
.subsections_via_symbols
| the_stack_data/76700359.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/243892546.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #16] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldur w8, [x29, #-8]
ldur w9, [x29, #-8]
mul w8, w8, w9
stur w8, [x29, #-12]
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr w0, [sp, #16] ; 4-byte Folded Reload
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Enter an integer: "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "The square of the number you entered is %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl -8(%rbp), %eax
imull -8(%rbp), %eax
movl %eax, -12(%rbp)
movl -12(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter an integer: "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "The square of the number you entered is %d\n"
.subsections_via_symbols
| the_stack_data/2976.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov w8, #9216
movk w8, #18804, lsl #16
fmov s0, w8
stur s0, [x29, #-8]
mov w8, #55050
movk w8, #15779, lsl #16
fmov s0, w8
stur s0, [x29, #-12]
str wzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur s0, [x29, #-8]
fcmp s0, #0.0
cset w8, le
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur s0, [x29, #-12]
fcvt d1, s0
fmov d0, #1.00000000
fadd d1, d0, d1
ldur s0, [x29, #-8]
fcvt d0, s0
fmul d0, d0, d1
fcvt s0, d0
stur s0, [x29, #-8]
ldur s0, [x29, #-8]
mov w8, #20480
movk w8, #18371, lsl #16
fmov s1, w8
fsub s0, s0, s1
stur s0, [x29, #-8]
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_1
LBB0_3:
ldr w9, [sp, #16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "After %d years, Chuckie's account is empty.\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 0x3da3d70a ## float 0.0799999982
LCPI0_1:
.long 0x49742400 ## float 1.0E+6
LCPI0_2:
.long 0x47c35000 ## float 1.0E+5
.section __TEXT,__literal8,8byte_literals
.p2align 3
LCPI0_3:
.quad 0x3ff0000000000000 ## double 1
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -8(%rbp)
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -12(%rbp)
movl $0, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movsd LCPI0_3(%rip), %xmm1 ## xmm1 = mem[0],zero
addsd %xmm0, %xmm1
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
mulsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -8(%rbp)
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
subss %xmm1, %xmm0
movss %xmm0, -8(%rbp)
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_1
LBB0_3:
movl -16(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "After %d years, Chuckie's account is empty.\n"
.subsections_via_symbols
| the_stack_data/800457.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI0_0:
.quad 0x4059000000000000 ; double 100
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
stur w8, [x29, #-36] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
str x0, [sp, #8] ; 8-byte Folded Spill
bl _scanf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #12
str x8, [x9]
bl _scanf
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #16
str x8, [x9]
bl _scanf
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #24
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
ldur d0, [x29, #-24]
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
stur d0, [x29, #-24]
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
subs w8, w8, w9
scvtf d0, w8
ldur d1, [x29, #-24]
fmul d0, d0, d1
str d0, [sp, #16] ; 8-byte Folded Spill
ldur d1, [x29, #-24]
fmov d0, #1.00000000
str d0, [sp, #24] ; 8-byte Folded Spill
fadd d0, d0, d1
ldur s2, [x29, #-16]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
bl _pow
ldr d1, [sp, #16] ; 8-byte Folded Reload
fmov d2, d0
ldr d0, [sp, #24] ; 8-byte Folded Reload
fmul d1, d1, d2
stur d1, [x29, #-32]
ldur d1, [x29, #-32]
str d1, [sp, #32] ; 8-byte Folded Spill
ldur d1, [x29, #-24]
fadd d0, d0, d1
ldur s2, [x29, #-16]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
bl _pow
ldr d2, [sp, #24] ; 8-byte Folded Reload
fmov d1, d0
ldr d0, [sp, #32] ; 8-byte Folded Reload
fsub d1, d1, d2
fdiv d0, d0, d1
stur d0, [x29, #-32]
ldur d0, [x29, #-32]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
ldur w0, [x29, #-36] ; 4-byte Folded Reload
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Enter the purchase price P: "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Enter the amount of down payment D: "
l_.str.3: ; @.str.3
.asciz "Enter the finance term (in months): "
l_.str.4: ; @.str.4
.asciz "Enter the monthly interest rate (in percent): "
l_.str.5: ; @.str.5
.asciz "%lf"
l_.str.6: ; @.str.6
.asciz "\nThe monthly payment is: %.2f"
.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 0x3ff0000000000000 ## double 1
LCPI0_1:
.quad 0x4059000000000000 ## double 100
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -16(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.5(%rip), %rdi
leaq -24(%rbp), %rsi
movb $0, %al
callq _scanf
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movsd %xmm0, -24(%rbp)
movl -8(%rbp), %eax
subl -12(%rbp), %eax
cvtsi2sd %eax, %xmm0
mulsd -24(%rbp), %xmm0
movsd %xmm0, -48(%rbp) ## 8-byte Spill
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
addsd -24(%rbp), %xmm0
cvtsi2sdl -16(%rbp), %xmm1
callq _pow
movaps %xmm0, %xmm1
movsd -48(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
mulsd %xmm1, %xmm0
movsd %xmm0, -32(%rbp)
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -40(%rbp) ## 8-byte Spill
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
addsd -24(%rbp), %xmm0
cvtsi2sdl -16(%rbp), %xmm1
callq _pow
movaps %xmm0, %xmm1
movsd -40(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
movsd LCPI0_0(%rip), %xmm2 ## xmm2 = mem[0],zero
subsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -32(%rbp)
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.6(%rip), %rdi
movb $1, %al
callq _printf
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter the purchase price P: "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Enter the amount of down payment D: "
L_.str.3: ## @.str.3
.asciz "Enter the finance term (in months): "
L_.str.4: ## @.str.4
.asciz "Enter the monthly interest rate (in percent): "
L_.str.5: ## @.str.5
.asciz "%lf"
L_.str.6: ## @.str.6
.asciz "\nThe monthly payment is: %.2f"
.subsections_via_symbols
| the_stack_data/19694.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _foo ; -- Begin function foo
.p2align 2
_foo: ; @foo
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x0, _i_tls@TLVPPAGE
ldr x0, [x0, _i_tls@TLVPPAGEOFF]
ldr x8, [x0]
blr x8
ldr w0, [x0]
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __DATA,__thread_data,thread_local_regular
.p2align 2 ; @i_tls
_i_tls$tlv$init:
.long 1 ; 0x1
.section __DATA,__thread_vars,thread_local_variables
.globl _i_tls
_i_tls:
.quad __tlv_bootstrap
.quad 0
.quad _i_tls$tlv$init
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _foo ## -- Begin function foo
.p2align 4, 0x90
_foo: ## @foo
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _i_tls@TLVP(%rip), %rdi
callq *(%rdi)
movl (%rax), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__thread_data,thread_local_regular
.p2align 2 ## @i_tls
_i_tls$tlv$init:
.long 1 ## 0x1
.section __DATA,__thread_vars,thread_local_variables
.globl _i_tls
_i_tls:
.quad __tlv_bootstrap
.quad 0
.quad _i_tls$tlv$init
.subsections_via_symbols
| the_stack_data/73518.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
; kill: def $x8 killed $xzr
str xzr, [sp, #32]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #12
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldur w8, [x29, #-12]
subs w8, w8, #0
; kill: def $x8 killed $w8
str x8, [sp, #24] ; 8-byte Folded Spill
subs x8, x8, #11
cset w8, hi
tbnz w8, #0, LBB0_15
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
ldr x11, [sp, #24] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@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 w1, [x29, #-8]
add x0, sp, #32
bl _create
b LBB0_16
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #32]
bl _traverse
b LBB0_16
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #16
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldur w1, [x29, #-16]
add x0, sp, #32
bl _insert_first
b LBB0_16
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #16
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldur w1, [x29, #-16]
add x0, sp, #32
bl _insert_last
b LBB0_16
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #32
bl _delete_first
b LBB0_16
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #32
bl _delete_last
b LBB0_16
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #32]
bl _count
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB0_16
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #32
bl _reverse
b LBB0_16
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #16
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldur w1, [x29, #-16]
add x0, sp, #32
bl _del_node
b LBB0_16
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #24
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
bl _scanf
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #20
str x8, [x9]
bl _scanf
ldur w1, [x29, #-24]
ldur w2, [x29, #-20]
add x0, sp, #32
bl _insert_before
b LBB0_16
LBB0_13: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #24
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
str x0, [sp, #8] ; 8-byte Folded Spill
bl _scanf
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #20
str x8, [x9]
bl _scanf
ldr x0, [sp, #32]
ldur w1, [x29, #-24]
ldur w2, [x29, #-20]
bl _insert_after
b LBB0_16
LBB0_14:
mov w0, #0
bl _exit
LBB0_15: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_14-Ltmp0
.long LBB0_3-Ltmp0
.long LBB0_4-Ltmp0
.long LBB0_5-Ltmp0
.long LBB0_6-Ltmp0
.long LBB0_7-Ltmp0
.long LBB0_8-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_10-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_12-Ltmp0
.long LBB0_13-Ltmp0
; -- End function
.globl _create ; -- Begin function create
.p2align 2
_create: ; @create
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
ldur x8, [x29, #-8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
b LBB1_10
LBB1_2:
mov w8, #1
str w8, [sp, #8]
b LBB1_3
LBB1_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_9
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=1
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #12
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
mov x0, #16
bl _malloc
str x0, [sp, #16]
ldr w8, [sp, #12]
ldr x9, [sp, #16]
str w8, [x9]
ldr x8, [sp, #16]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldur x8, [x29, #-8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=1
ldr x8, [sp, #16]
ldur x9, [x29, #-8]
str x8, [x9]
b LBB1_7
LBB1_6: ; in Loop: Header=BB1_3 Depth=1
ldr x8, [sp, #16]
ldr x9, [sp, #24]
str x8, [x9, #8]
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_3 Depth=1
ldr x8, [sp, #16]
str x8, [sp, #24]
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_3 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB1_3
LBB1_9:
b LBB1_10
LBB1_10:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _traverse ; -- Begin function traverse
.p2align 2
_traverse: ; @traverse
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
str x8, [sp, #16]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #16]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
ldr x8, [sp, #16]
ldr x8, [x8, #8]
str x8, [sp, #16]
b LBB2_1
LBB2_3:
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _insert_first ; -- Begin function insert_first
.p2align 2
_insert_first: ; @insert_first
.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, #16
bl _malloc
str x0, [sp, #8]
ldur w8, [x29, #-12]
ldr x9, [sp, #8]
str w8, [x9]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldr x8, [sp, #8]
ldur x9, [x29, #-8]
str x8, [x9]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _insert_last ; -- Begin function insert_last
.p2align 2
_insert_last: ; @insert_last
.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, #16
bl _malloc
str x0, [sp]
ldur w8, [x29, #-12]
ldr x9, [sp]
str w8, [x9]
ldr x8, [sp]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldur x8, [x29, #-8]
ldr x8, [x8]
str x8, [sp, #8]
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
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, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB4_1
LBB4_3:
ldr x8, [sp]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _delete_first ; -- Begin function delete_first
.p2align 2
_delete_first: ; @delete_first
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
b LBB5_3
LBB5_2:
ldur x8, [x29, #-8]
ldr x8, [x8]
str x8, [sp, #16]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x8, [x8, #8]
ldur x9, [x29, #-8]
str x8, [x9]
ldr x8, [sp, #16]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _printf
ldr x8, [sp, #16]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldr x0, [sp, #16]
bl _free
b LBB5_3
LBB5_3:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _delete_last ; -- Begin function delete_last
.p2align 2
_delete_last: ; @delete_last
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
adrp x0, l_.str.16@PAGE
add x0, x0, l_.str.16@PAGEOFF
bl _printf
b LBB6_9
LBB6_2:
ldur x8, [x29, #-8]
ldr x8, [x8]
str x8, [sp, #16]
; kill: def $x8 killed $xzr
str xzr, [sp, #8]
b LBB6_3
LBB6_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB6_5
b LBB6_4
LBB6_4: ; in Loop: Header=BB6_3 Depth=1
ldr x8, [sp, #16]
str x8, [sp, #8]
ldr x8, [sp, #16]
ldr x8, [x8, #8]
str x8, [sp, #16]
b LBB6_3
LBB6_5:
ldr x8, [sp, #16]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.17@PAGE
add x0, x0, l_.str.17@PAGEOFF
bl _printf
ldr x8, [sp, #16]
ldur x9, [x29, #-8]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB6_7
b LBB6_6
LBB6_6:
ldr x8, [sp, #16]
ldr x8, [x8, #8]
ldur x9, [x29, #-8]
str x8, [x9]
b LBB6_8
LBB6_7:
ldr x8, [sp, #16]
ldr x8, [x8, #8]
ldr x9, [sp, #8]
str x8, [x9, #8]
b LBB6_8
LBB6_8:
ldr x0, [sp, #16]
bl _free
b LBB6_9
LBB6_9:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _count ; -- Begin function count
.p2align 2
_count: ; @count
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str wzr, [sp, #20]
ldr x8, [sp, #24]
str x8, [sp, #8]
b LBB7_1
LBB7_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB7_3
b LBB7_2
LBB7_2: ; in Loop: Header=BB7_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB7_1
LBB7_3:
ldr w0, [sp, #20]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _reverse ; -- Begin function reverse
.p2align 2
_reverse: ; @reverse
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB8_2
b LBB8_1
LBB8_1:
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB8_3
b LBB8_2
LBB8_2:
adrp x0, l_.str.18@PAGE
add x0, x0, l_.str.18@PAGEOFF
bl _printf
b LBB8_7
LBB8_3:
ldur x8, [x29, #-8]
ldr x8, [x8]
str x8, [sp, #8]
; kill: def $x8 killed $xzr
str xzr, [sp, #16]
b LBB8_4
LBB8_4: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB8_6
b LBB8_5
LBB8_5: ; in Loop: Header=BB8_4 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp]
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldr x8, [sp, #8]
str x8, [sp, #16]
ldr x8, [sp]
str x8, [sp, #8]
b LBB8_4
LBB8_6:
ldr x8, [sp, #16]
ldur x9, [x29, #-8]
str x8, [x9]
b LBB8_7
LBB8_7:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _del_node ; -- Begin function del_node
.p2align 2
_del_node: ; @del_node
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
ldur x8, [x29, #-8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB9_2
b LBB9_1
LBB9_1:
adrp x0, l_.str.19@PAGE
add x0, x0, l_.str.19@PAGEOFF
bl _printf
b LBB9_13
LBB9_2:
ldur x8, [x29, #-8]
ldr x8, [x8]
str x8, [sp, #24]
b LBB9_3
LBB9_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB9_5
b LBB9_4
LBB9_4: ; in Loop: Header=BB9_3 Depth=1
ldr x8, [sp, #24]
ldr w8, [x8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ne
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB9_5
LBB9_5: ; in Loop: Header=BB9_3 Depth=1
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB9_7
b LBB9_6
LBB9_6: ; in Loop: Header=BB9_3 Depth=1
ldr x8, [sp, #24]
str x8, [sp, #16]
ldr x8, [sp, #24]
ldr x8, [x8, #8]
str x8, [sp, #24]
b LBB9_3
LBB9_7:
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB9_9
b LBB9_8
LBB9_8:
adrp x0, l_.str.20@PAGE
add x0, x0, l_.str.20@PAGEOFF
bl _printf
b LBB9_13
LBB9_9:
ldr x8, [sp, #24]
ldur x9, [x29, #-8]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB9_11
b LBB9_10
LBB9_10:
ldr x8, [sp, #24]
ldr x8, [x8, #8]
ldur x9, [x29, #-8]
str x8, [x9]
b LBB9_12
LBB9_11:
ldr x8, [sp, #24]
ldr x8, [x8, #8]
ldr x9, [sp, #16]
str x8, [x9, #8]
b LBB9_12
LBB9_12:
ldr x8, [sp, #24]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldr x0, [sp, #24]
bl _free
b LBB9_13
LBB9_13:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _insert_before ; -- Begin function insert_before
.p2align 2
_insert_before: ; @insert_before
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
stur w2, [x29, #-16]
; kill: def $x8 killed $xzr
str xzr, [sp, #24]
ldur x8, [x29, #-8]
ldr x8, [x8]
str x8, [sp, #16]
mov x0, #16
bl _malloc
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB10_2
b LBB10_1
LBB10_1:
adrp x0, l_.str.21@PAGE
add x0, x0, l_.str.21@PAGEOFF
bl _printf
b LBB10_12
LBB10_2:
ldur w8, [x29, #-16]
ldr x9, [sp, #24]
str w8, [x9]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr w8, [x8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB10_4
b LBB10_3
LBB10_3:
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [sp, #24]
str x8, [x9, #8]
ldr x8, [sp, #24]
ldur x9, [x29, #-8]
str x8, [x9]
b LBB10_12
LBB10_4:
b LBB10_5
LBB10_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB10_7
b LBB10_6
LBB10_6: ; in Loop: Header=BB10_5 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB10_7
LBB10_7: ; in Loop: Header=BB10_5 Depth=1
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB10_11
b LBB10_8
LBB10_8: ; in Loop: Header=BB10_5 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #8]
ldr w8, [x8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB10_10
b LBB10_9
LBB10_9:
ldr x8, [sp, #16]
ldr x8, [x8, #8]
ldr x9, [sp, #24]
str x8, [x9, #8]
ldr x8, [sp, #24]
ldr x9, [sp, #16]
str x8, [x9, #8]
b LBB10_12
LBB10_10: ; in Loop: Header=BB10_5 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #8]
str x8, [sp, #16]
b LBB10_5
LBB10_11:
ldr x0, [sp, #24]
bl _free
b LBB10_12
LBB10_12:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _insert_after ; -- Begin function insert_after
.p2align 2
_insert_after: ; @insert_after
.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]
; kill: def $x8 killed $xzr
str xzr, [sp, #8]
ldur x8, [x29, #-8]
str x8, [sp]
b LBB11_1
LBB11_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB11_7
b LBB11_2
LBB11_2: ; in Loop: Header=BB11_1 Depth=1
ldr x8, [sp]
ldr w8, [x8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB11_6
b LBB11_3
LBB11_3:
mov x0, #16
bl _malloc
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB11_5
b LBB11_4
LBB11_4:
adrp x0, l_.str.21@PAGE
add x0, x0, l_.str.21@PAGEOFF
bl _printf
b LBB11_5
LBB11_5:
ldr w8, [sp, #16]
ldr x9, [sp, #8]
str w8, [x9]
ldr x8, [sp]
ldr x8, [x8, #8]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldr x8, [sp, #8]
ldr x9, [sp]
str x8, [x9, #8]
b LBB11_7
LBB11_6: ; in Loop: Header=BB11_1 Depth=1
ldr x8, [sp]
ldr x8, [x8, #8]
str x8, [sp]
b LBB11_1
LBB11_7:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "1.Create\n2.Traverse\n3.Insert First\n4.Insert Last\n5.Delete First\n6.Delete Last\n7.Count\n8.Reverse\n9.Delete a node with specific element\n10.Insert a element before certain element\n11.Insert a element after certain element\n0.Exit\nYour Choice: "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "\nEnter the number of nodes: "
l_.str.3: ; @.str.3
.asciz "\nEnter the information for the node to be inserted: "
l_.str.4: ; @.str.4
.asciz "\nNumber of nodes: %d\n"
l_.str.5: ; @.str.5
.asciz "\nEnter the element of node to delete: "
l_.str.6: ; @.str.6
.asciz "\nEnter the element of node before which you want to insert: "
l_.str.7: ; @.str.7
.asciz "\nEnter the value to insert: "
l_.str.8: ; @.str.8
.asciz "\nEnter the element of node after which you want to insert: "
l_.str.9: ; @.str.9
.asciz "\nWrong input. Please try again..."
l_.str.10: ; @.str.10
.asciz "Already created"
l_.str.11: ; @.str.11
.asciz "Enter the information to be stored in a node: "
l_.str.12: ; @.str.12
.asciz "%d "
l_.str.13: ; @.str.13
.asciz "\n"
l_.str.14: ; @.str.14
.asciz "\nEmpty List...Deletion is impossible....\n"
l_.str.15: ; @.str.15
.asciz "\nInformation on deleted note is %d\n"
l_.str.16: ; @.str.16
.asciz "\nEmpty List"
l_.str.17: ; @.str.17
.asciz "\nInformation on deleted node is %d\n"
l_.str.18: ; @.str.18
.asciz "\nEither Empty List or List contains EXACTLY one node....\n"
l_.str.19: ; @.str.19
.asciz "\nEmpty List ....So deletion is impossible....\n"
l_.str.20: ; @.str.20
.asciz "\nNode to be deleted is not found...\n"
l_.str.21: ; @.str.21
.asciz "Failed to insert element. Out of memory"
.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, -32(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movb %al, -41(%rbp) ## 1-byte Spill
callq _printf
## kill: def $ecx killed $eax
movb -41(%rbp), %al ## 1-byte Reload
leaq L_.str.1(%rip), %rdi
leaq -12(%rbp), %rsi
callq _scanf
movl -12(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -40(%rbp) ## 8-byte Spill
subq $11, %rax
ja LBB0_14
## %bb.16: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_2: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl -8(%rbp), %esi
leaq -32(%rbp), %rdi
callq _create
jmp LBB0_15
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdi
callq _traverse
jmp LBB0_15
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -16(%rbp), %rsi
movb $0, %al
callq _scanf
movl -16(%rbp), %esi
leaq -32(%rbp), %rdi
callq _insert_first
jmp LBB0_15
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -16(%rbp), %rsi
movb $0, %al
callq _scanf
movl -16(%rbp), %esi
leaq -32(%rbp), %rdi
callq _insert_last
jmp LBB0_15
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
leaq -32(%rbp), %rdi
callq _delete_first
jmp LBB0_15
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
leaq -32(%rbp), %rdi
callq _delete_last
jmp LBB0_15
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdi
callq _count
movl %eax, %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_15
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
leaq -32(%rbp), %rdi
callq _reverse
jmp LBB0_15
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -16(%rbp), %rsi
movb $0, %al
callq _scanf
movl -16(%rbp), %esi
leaq -32(%rbp), %rdi
callq _del_node
jmp LBB0_15
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -24(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -20(%rbp), %rsi
movb $0, %al
callq _scanf
movl -24(%rbp), %esi
movl -20(%rbp), %edx
leaq -32(%rbp), %rdi
callq _insert_before
jmp LBB0_15
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -24(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -20(%rbp), %rsi
movb $0, %al
callq _scanf
movq -32(%rbp), %rdi
movl -24(%rbp), %esi
movl -20(%rbp), %edx
callq _insert_after
jmp LBB0_15
LBB0_13:
xorl %edi, %edi
callq _exit
LBB0_14: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
LBB0_15: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.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
LJTI0_0:
.long L0_0_set_13
.long L0_0_set_2
.long L0_0_set_3
.long L0_0_set_4
.long L0_0_set_5
.long L0_0_set_6
.long L0_0_set_7
.long L0_0_set_8
.long L0_0_set_9
.long L0_0_set_10
.long L0_0_set_11
.long L0_0_set_12
.end_data_region
## -- End function
.globl _create ## -- Begin function create
.p2align 4, 0x90
_create: ## @create
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq -8(%rbp), %rax
cmpq $0, (%rax)
je LBB1_2
## %bb.1:
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB1_10
LBB1_2:
movl $1, -40(%rbp)
LBB1_3: ## =>This Inner Loop Header: Depth=1
movl -40(%rbp), %eax
cmpl -12(%rbp), %eax
jg LBB1_9
## %bb.4: ## in Loop: Header=BB1_3 Depth=1
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -36(%rbp), %rsi
movb $0, %al
callq _scanf
movl $16, %edi
callq _malloc
movq %rax, -32(%rbp)
movl -36(%rbp), %ecx
movq -32(%rbp), %rax
movl %ecx, (%rax)
movq -32(%rbp), %rax
movq $0, 8(%rax)
movq -8(%rbp), %rax
cmpq $0, (%rax)
jne LBB1_6
## %bb.5: ## in Loop: Header=BB1_3 Depth=1
movq -32(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
jmp LBB1_7
LBB1_6: ## in Loop: Header=BB1_3 Depth=1
movq -32(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
LBB1_7: ## in Loop: Header=BB1_3 Depth=1
movq -32(%rbp), %rax
movq %rax, -24(%rbp)
## %bb.8: ## in Loop: Header=BB1_3 Depth=1
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB1_3
LBB1_9:
jmp LBB1_10
LBB1_10:
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _traverse ## -- Begin function traverse
.p2align 4, 0x90
_traverse: ## @traverse
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16(%rbp)
je LBB2_3
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -16(%rbp), %rax
movl (%rax), %esi
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -16(%rbp)
jmp LBB2_1
LBB2_3:
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _insert_first ## -- Begin function insert_first
.p2align 4, 0x90
_insert_first: ## @insert_first
.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 $16, %edi
callq _malloc
movq %rax, -24(%rbp)
movl -12(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movq -8(%rbp), %rax
movq (%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _insert_last ## -- Begin function insert_last
.p2align 4, 0x90
_insert_last: ## @insert_last
.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 $16, %edi
callq _malloc
movq %rax, -32(%rbp)
movl -12(%rbp), %ecx
movq -32(%rbp), %rax
movl %ecx, (%rax)
movq -32(%rbp), %rax
movq $0, 8(%rax)
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
LBB4_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
cmpq $0, 8(%rax)
je LBB4_3
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
jmp LBB4_1
LBB4_3:
movq -32(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _delete_first ## -- Begin function delete_first
.p2align 4, 0x90
_delete_first: ## @delete_first
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
cmpq $0, (%rax)
jne LBB5_2
## %bb.1:
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB5_3
LBB5_2:
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movq 8(%rax), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
movq -16(%rbp), %rax
movl (%rax), %esi
leaq L_.str.15(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rax
movq $0, 8(%rax)
movq -16(%rbp), %rdi
callq _free
LBB5_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _delete_last ## -- Begin function delete_last
.p2align 4, 0x90
_delete_last: ## @delete_last
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
cmpq $0, (%rax)
jne LBB6_2
## %bb.1:
leaq L_.str.16(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB6_9
LBB6_2:
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
movq $0, -24(%rbp)
LBB6_3: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
cmpq $0, 8(%rax)
je LBB6_5
## %bb.4: ## in Loop: Header=BB6_3 Depth=1
movq -16(%rbp), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -16(%rbp)
jmp LBB6_3
LBB6_5:
movq -16(%rbp), %rax
movl (%rax), %esi
leaq L_.str.17(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rax
movq -8(%rbp), %rcx
cmpq (%rcx), %rax
jne LBB6_7
## %bb.6:
movq -16(%rbp), %rax
movq 8(%rax), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
jmp LBB6_8
LBB6_7:
movq -16(%rbp), %rax
movq 8(%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
LBB6_8:
movq -16(%rbp), %rdi
callq _free
LBB6_9:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _count ## -- Begin function count
.p2align 4, 0x90
_count: ## @count
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl $0, -12(%rbp)
movq -8(%rbp), %rax
movq %rax, -24(%rbp)
LBB7_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -24(%rbp)
je LBB7_3
## %bb.2: ## in Loop: Header=BB7_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
jmp LBB7_1
LBB7_3:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _reverse ## -- Begin function reverse
.p2align 4, 0x90
_reverse: ## @reverse
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
cmpq $0, (%rax)
je LBB8_2
## %bb.1:
movq -8(%rbp), %rax
movq (%rax), %rax
cmpq $0, 8(%rax)
jne LBB8_3
LBB8_2:
leaq L_.str.18(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB8_7
LBB8_3:
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
movq $0, -16(%rbp)
LBB8_4: ## =>This Inner Loop Header: Depth=1
cmpq $0, -24(%rbp)
je LBB8_6
## %bb.5: ## in Loop: Header=BB8_4 Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rax
movq %rax, -16(%rbp)
movq -32(%rbp), %rax
movq %rax, -24(%rbp)
jmp LBB8_4
LBB8_6:
movq -16(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
LBB8_7:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _del_node ## -- Begin function del_node
.p2align 4, 0x90
_del_node: ## @del_node
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq -8(%rbp), %rax
cmpq $0, (%rax)
jne LBB9_2
## %bb.1:
leaq L_.str.19(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB9_13
LBB9_2:
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
LBB9_3: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq $0, -24(%rbp)
movb %al, -33(%rbp) ## 1-byte Spill
je LBB9_5
## %bb.4: ## in Loop: Header=BB9_3 Depth=1
movq -24(%rbp), %rax
movl (%rax), %eax
cmpl -12(%rbp), %eax
setne %al
movb %al, -33(%rbp) ## 1-byte Spill
LBB9_5: ## in Loop: Header=BB9_3 Depth=1
movb -33(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB9_6
jmp LBB9_7
LBB9_6: ## in Loop: Header=BB9_3 Depth=1
movq -24(%rbp), %rax
movq %rax, -32(%rbp)
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
jmp LBB9_3
LBB9_7:
cmpq $0, -24(%rbp)
jne LBB9_9
## %bb.8:
leaq L_.str.20(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB9_13
LBB9_9:
movq -24(%rbp), %rax
movq -8(%rbp), %rcx
cmpq (%rcx), %rax
jne LBB9_11
## %bb.10:
movq -24(%rbp), %rax
movq 8(%rax), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
jmp LBB9_12
LBB9_11:
movq -24(%rbp), %rax
movq 8(%rax), %rcx
movq -32(%rbp), %rax
movq %rcx, 8(%rax)
LBB9_12:
movq -24(%rbp), %rax
movq $0, 8(%rax)
movq -24(%rbp), %rdi
callq _free
LBB9_13:
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _insert_before ## -- Begin function insert_before
.p2align 4, 0x90
_insert_before: ## @insert_before
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movq $0, -24(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
movl $16, %edi
callq _malloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB10_2
## %bb.1:
leaq L_.str.21(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB10_12
LBB10_2:
movl -16(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movq -8(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
cmpl -12(%rbp), %eax
jne LBB10_4
## %bb.3:
movq -8(%rbp), %rax
movq (%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
jmp LBB10_12
LBB10_4:
jmp LBB10_5
LBB10_5: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq $0, -32(%rbp)
movb %al, -33(%rbp) ## 1-byte Spill
je LBB10_7
## %bb.6: ## in Loop: Header=BB10_5 Depth=1
movq -32(%rbp), %rax
cmpq $0, 8(%rax)
setne %al
movb %al, -33(%rbp) ## 1-byte Spill
LBB10_7: ## in Loop: Header=BB10_5 Depth=1
movb -33(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB10_8
jmp LBB10_11
LBB10_8: ## in Loop: Header=BB10_5 Depth=1
movq -32(%rbp), %rax
movq 8(%rax), %rax
movl (%rax), %eax
cmpl -12(%rbp), %eax
jne LBB10_10
## %bb.9:
movq -32(%rbp), %rax
movq 8(%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, 8(%rax)
jmp LBB10_12
LBB10_10: ## in Loop: Header=BB10_5 Depth=1
movq -32(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
jmp LBB10_5
LBB10_11:
movq -24(%rbp), %rdi
callq _free
LBB10_12:
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _insert_after ## -- Begin function insert_after
.p2align 4, 0x90
_insert_after: ## @insert_after
.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)
movq $0, -24(%rbp)
movq -8(%rbp), %rax
movq %rax, -32(%rbp)
LBB11_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -32(%rbp)
je LBB11_7
## %bb.2: ## in Loop: Header=BB11_1 Depth=1
movq -32(%rbp), %rax
movl (%rax), %eax
cmpl -12(%rbp), %eax
jne LBB11_6
## %bb.3:
movl $16, %edi
callq _malloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB11_5
## %bb.4:
leaq L_.str.21(%rip), %rdi
movb $0, %al
callq _printf
LBB11_5:
movl -16(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movq -32(%rbp), %rax
movq 8(%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, 8(%rax)
jmp LBB11_7
LBB11_6: ## in Loop: Header=BB11_1 Depth=1
movq -32(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
jmp LBB11_1
LBB11_7:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "1.Create\n2.Traverse\n3.Insert First\n4.Insert Last\n5.Delete First\n6.Delete Last\n7.Count\n8.Reverse\n9.Delete a node with specific element\n10.Insert a element before certain element\n11.Insert a element after certain element\n0.Exit\nYour Choice: "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "\nEnter the number of nodes: "
L_.str.3: ## @.str.3
.asciz "\nEnter the information for the node to be inserted: "
L_.str.4: ## @.str.4
.asciz "\nNumber of nodes: %d\n"
L_.str.5: ## @.str.5
.asciz "\nEnter the element of node to delete: "
L_.str.6: ## @.str.6
.asciz "\nEnter the element of node before which you want to insert: "
L_.str.7: ## @.str.7
.asciz "\nEnter the value to insert: "
L_.str.8: ## @.str.8
.asciz "\nEnter the element of node after which you want to insert: "
L_.str.9: ## @.str.9
.asciz "\nWrong input. Please try again..."
L_.str.10: ## @.str.10
.asciz "Already created"
L_.str.11: ## @.str.11
.asciz "Enter the information to be stored in a node: "
L_.str.12: ## @.str.12
.asciz "%d "
L_.str.13: ## @.str.13
.asciz "\n"
L_.str.14: ## @.str.14
.asciz "\nEmpty List...Deletion is impossible....\n"
L_.str.15: ## @.str.15
.asciz "\nInformation on deleted note is %d\n"
L_.str.16: ## @.str.16
.asciz "\nEmpty List"
L_.str.17: ## @.str.17
.asciz "\nInformation on deleted node is %d\n"
L_.str.18: ## @.str.18
.asciz "\nEither Empty List or List contains EXACTLY one node....\n"
L_.str.19: ## @.str.19
.asciz "\nEmpty List ....So deletion is impossible....\n"
L_.str.20: ## @.str.20
.asciz "\nNode to be deleted is not found...\n"
L_.str.21: ## @.str.21
.asciz "Failed to insert element. Out of memory"
.subsections_via_symbols
| the_stack_data/48574102.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 hexColor
lCPI0_0:
.quad 0x3f70000000000000 ; double 0.00390625
.section __TEXT,__text,regular,pure_instructions
.globl _hexColor
.p2align 2
_hexColor: ; @hexColor
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str w0, [sp, #44]
str x1, [sp, #32]
str x2, [sp, #24]
str x3, [sp, #16]
str x4, [sp, #8]
ldrb w8, [sp, #44]
strb w8, [sp, #5]
ldr w8, [sp, #44]
and w8, w8, #0xff00
lsr w8, w8, #8
strb w8, [sp, #6]
ldr w8, [sp, #44]
and w8, w8, #0xff0000
lsr w8, w8, #16
strb w8, [sp, #7]
ldr w8, [sp, #44]
and w8, w8, #0xff000000
lsr w8, w8, #24
strb w8, [sp, #4]
ldrb w8, [sp, #4]
ucvtf d1, w8
adrp x8, lCPI0_0@PAGE
ldr d0, [x8, lCPI0_0@PAGEOFF]
fmul d1, d0, d1
ldr x8, [sp, #32]
str d1, [x8]
ldrb w8, [sp, #7]
ucvtf d1, w8
fmul d1, d0, d1
ldr x8, [sp, #24]
str d1, [x8]
ldrb w8, [sp, #6]
ucvtf d1, w8
fmul d1, d0, d1
ldr x8, [sp, #16]
str d1, [x8]
ldrb w8, [sp, #5]
ucvtf d1, w8
fmul d0, d0, d1
ldr x8, [sp, #8]
str d0, [x8]
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, #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, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB1_2:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
mov x9, sp
sub x8, x29, #20
str x8, [x9]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _sscanf
subs w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB1_4:
ldur w0, [x29, #-20]
sub x1, x29, #32
sub x2, x29, #40
add x3, sp, #48
add x4, sp, #40
bl _hexColor
ldur d3, [x29, #-32]
ldur d2, [x29, #-40]
ldr d1, [sp, #40]
ldr d0, [sp, #48]
mov x8, sp
str d3, [x8]
str d2, [x8, #8]
str d1, [x8, #16]
str d0, [x8, #24]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov w0, #0
bl _exit
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "usage: hex2float <color>, where color is an argb hex number\n"
l_.str.1: ; @.str.1
.asciz "%x"
l_.str.2: ; @.str.2
.asciz "sscanf faild.\n"
l_.str.3: ; @.str.3
.asciz "%0.3f %0.3f %0.3f %0.3f\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 hexColor
LCPI0_0:
.quad 0x3f70000000000000 ## double 0.00390625
.section __TEXT,__text,regular,pure_instructions
.globl _hexColor
.p2align 4, 0x90
_hexColor: ## @hexColor
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movb -4(%rbp), %al
movb %al, -43(%rbp)
movb -3(%rbp), %al
movb %al, -42(%rbp)
movb -2(%rbp), %al
movb %al, -41(%rbp)
movb -1(%rbp), %al
movb %al, -44(%rbp)
movzbl -44(%rbp), %eax
cvtsi2sd %eax, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
movq -16(%rbp), %rax
movsd %xmm0, (%rax)
movzbl -41(%rbp), %eax
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
movq -24(%rbp), %rax
movsd %xmm0, (%rax)
movzbl -42(%rbp), %eax
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
movq -32(%rbp), %rax
movsd %xmm0, (%rax)
movzbl -43(%rbp), %eax
cvtsi2sd %eax, %xmm1
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm1, %xmm0
movq -40(%rbp), %rax
movsd %xmm0, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $2, -8(%rbp)
je LBB1_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB1_2:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str.1(%rip), %rsi
leaq -20(%rbp), %rdx
movb $0, %al
callq _sscanf
cmpl $1, %eax
je LBB1_4
## %bb.3:
movq ___stderrp@GOTPCREL(%rip), %rax
movq %rax, -72(%rbp) ## 8-byte Spill
movq (%rax), %rdi
leaq L_.str.2(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movb %al, -57(%rbp) ## 1-byte Spill
callq _fprintf
movq -72(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -57(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str(%rip), %rsi
callq _fprintf
movl $1, %edi
callq _exit
LBB1_4:
movl -20(%rbp), %edi
leaq -32(%rbp), %rsi
leaq -40(%rbp), %rdx
leaq -48(%rbp), %rcx
leaq -56(%rbp), %r8
callq _hexColor
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero
movsd -56(%rbp), %xmm2 ## xmm2 = mem[0],zero
movsd -48(%rbp), %xmm3 ## xmm3 = mem[0],zero
leaq L_.str.3(%rip), %rdi
movb $4, %al
callq _printf
xorl %edi, %edi
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "usage: hex2float <color>, where color is an argb hex number\n"
L_.str.1: ## @.str.1
.asciz "%x"
L_.str.2: ## @.str.2
.asciz "sscanf faild.\n"
L_.str.3: ## @.str.3
.asciz "%0.3f %0.3f %0.3f %0.3f\n"
.subsections_via_symbols
| the_stack_data/38628.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _generate ; -- Begin function generate
.p2align 2
_generate: ; @generate
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
stur x1, [x29, #-16]
str x2, [sp, #24]
ldursw x8, [x29, #-4]
lsl x0, x8, #3
bl _malloc
str x0, [sp, #8]
ldursw x8, [x29, #-4]
lsl x0, x8, #3
bl _malloc
ldr x8, [sp, #24]
str x0, [x8]
str wzr, [sp, #20]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr w8, [sp, #20]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
mov w9, #1
str w9, [sp] ; 4-byte Folded Spill
add w8, w8, #1
str w8, [sp, #4]
ldr w8, [sp, #4]
ldr x9, [sp, #24]
ldr x9, [x9]
ldrsw x10, [sp, #20]
str w8, [x9, x10, lsl #2]
ldrsw x8, [sp, #4]
lsl x0, x8, #2
bl _malloc
ldr w8, [sp] ; 4-byte Folded Reload
ldr x9, [sp, #8]
ldrsw x10, [sp, #20]
str x0, [x9, x10, lsl #3]
ldr x9, [sp, #8]
ldrsw x10, [sp, #20]
ldr x9, [x9, x10, lsl #3]
str w8, [x9]
ldr x9, [sp, #8]
ldrsw x10, [sp, #20]
ldr x9, [x9, x10, lsl #3]
ldr w10, [sp, #4]
subs w10, w10, #1
str w8, [x9, w10, sxtw #2]
str w8, [sp, #16]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #16]
ldr w9, [sp, #4]
subs w9, w9, #2
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #8]
ldr w9, [sp, #20]
subs w9, w9, #1
ldr x8, [x8, w9, sxtw #3]
ldr w9, [sp, #16]
subs w9, w9, #1
ldr w8, [x8, w9, sxtw #2]
ldr x9, [sp, #8]
ldr w10, [sp, #20]
subs w10, w10, #1
ldr x9, [x9, w10, sxtw #3]
ldrsw x10, [sp, #16]
ldr w9, [x9, x10, lsl #2]
add w8, w8, w9
ldr x9, [sp, #8]
ldrsw x10, [sp, #20]
ldr x9, [x9, x10, lsl #3]
ldrsw x10, [sp, #16]
str w8, [x9, x10, lsl #2]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_1
LBB0_8:
ldur w8, [x29, #-4]
ldur x9, [x29, #-16]
str w8, [x9]
ldr x0, [sp, #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, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #-1
bl _exit
LBB1_2:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
bl _atoi
str w0, [sp, #20]
ldr w0, [sp, #20]
sub x1, x29, #28
add x2, sp, #24
bl _generate
str x0, [sp, #8]
stur wzr, [x29, #-20]
b LBB1_3
LBB1_3: ; =>This Loop Header: Depth=1
; Child Loop BB1_5 Depth 2
ldur w8, [x29, #-20]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_10
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=1
stur wzr, [x29, #-24]
b LBB1_5
LBB1_5: ; Parent Loop BB1_3 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-24]
ldr x9, [sp, #24]
ldursw x10, [x29, #-20]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_8
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_5 Depth=2
ldr x8, [sp, #8]
ldursw x9, [x29, #-20]
ldr x8, [x8, x9, lsl #3]
ldursw x9, [x29, #-24]
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 LBB1_7
LBB1_7: ; in Loop: Header=BB1_5 Depth=2
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
b LBB1_5
LBB1_8: ; in Loop: Header=BB1_3 Depth=1
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_3 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB1_3
LBB1_10:
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Usage: ./test n\n"
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 _generate ## -- Begin function generate
.p2align 4, 0x90
_generate: ## @generate
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movslq -4(%rbp), %rdi
shlq $3, %rdi
callq _malloc
movq %rax, -40(%rbp)
movslq -4(%rbp), %rdi
shlq $3, %rdi
callq _malloc
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
movl $0, -28(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movl -28(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
movl -44(%rbp), %edx
movq -24(%rbp), %rax
movq (%rax), %rax
movslq -28(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movslq -44(%rbp), %rdi
shlq $2, %rdi
callq _malloc
movq %rax, %rdx
movq -40(%rbp), %rax
movslq -28(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -40(%rbp), %rax
movslq -28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl $1, (%rax)
movq -40(%rbp), %rax
movslq -28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -44(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movl $1, (%rax,%rcx,4)
movl $1, -32(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -32(%rbp), %eax
movl -44(%rbp), %ecx
subl $2, %ecx
cmpl %ecx, %eax
jg LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movq -40(%rbp), %rax
movl -28(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movl -32(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -40(%rbp), %rax
movl -28(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movslq -32(%rbp), %rcx
addl (%rax,%rcx,4), %edx
movq -40(%rbp), %rax
movslq -28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -32(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB0_3
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_1
LBB0_8:
movl -4(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
movq -40(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $2, -8(%rbp)
je LBB1_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $-1, %edi
callq _exit
LBB1_2:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _atoi
movl %eax, -44(%rbp)
movl -44(%rbp), %edi
leaq -28(%rbp), %rsi
leaq -40(%rbp), %rdx
callq _generate
movq %rax, -56(%rbp)
movl $0, -20(%rbp)
LBB1_3: ## =>This Loop Header: Depth=1
## Child Loop BB1_5 Depth 2
movl -20(%rbp), %eax
cmpl -44(%rbp), %eax
jge LBB1_10
## %bb.4: ## in Loop: Header=BB1_3 Depth=1
movl $0, -24(%rbp)
LBB1_5: ## Parent Loop BB1_3 Depth=1
## => This Inner Loop Header: Depth=2
movl -24(%rbp), %eax
movq -40(%rbp), %rcx
movslq -20(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge LBB1_8
## %bb.6: ## in Loop: Header=BB1_5 Depth=2
movq -56(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -24(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.7: ## in Loop: Header=BB1_5 Depth=2
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB1_5
LBB1_8: ## in Loop: Header=BB1_3 Depth=1
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.9: ## in Loop: Header=BB1_3 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB1_3
LBB1_10:
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage: ./test n\n"
L_.str.1: ## @.str.1
.asciz "%d "
L_.str.2: ## @.str.2
.asciz "\n"
.subsections_via_symbols
| the_stack_data/103265268.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, #1568
sub x8, x29, #252
str x8, [sp, #144] ; 8-byte Folded Spill
adrp x9, ___darwin_check_fd_set_overflow@GOTPAGE
ldr x9, [x9, ___darwin_check_fd_set_overflow@GOTPAGEOFF]
subs x9, x9, #0
cset w9, ne
str w9, [sp, #156] ; 4-byte Folded Spill
str wzr, [x8, #104]
str w0, [x8, #100]
stur x1, [x8, #92]
mov w9, #1
str w9, [x8, #88]
adrp x9, l_.str@PAGE
add x9, x9, l_.str@PAGEOFF
str x9, [sp, #168]
str wzr, [x8, #28]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x8, #28]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldrsw x10, [x8, #28]
sub x9, x29, #216
mov w8, #0
str w8, [x9, x10, lsl #2]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x9, #28]
add w8, w8, #1
str w8, [x9, #28]
b LBB0_1
LBB0_4:
mov w0, #2
mov w1, #1
mov w2, #0
bl _socket
ldr x8, [sp, #144] ; 8-byte Folded Reload
str w0, [x8, #84]
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_6:
ldr x8, [sp, #144] ; 8-byte Folded Reload
sub x1, x29, #252
mov w9, #2
sturb w9, [x29, #-251]
str wzr, [x8, #4]
mov w9, #31765
strh w9, [x8, #2]
ldr w0, [x8, #84]
mov w2, #16
bl _bind
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_8:
mov x9, sp
mov x8, #5500
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w0, [x8, #84]
mov w1, #10
bl _listen
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_10:
ldr x9, [sp, #144] ; 8-byte Folded Reload
mov w8, #16
str w8, [x9, #80]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _puts
b LBB0_11
LBB0_11: ; =>This Loop Header: Depth=1
; Child Loop BB0_17 Depth 2
; Child Loop BB0_42 Depth 2
; Child Loop BB0_57 Depth 2
add x0, sp, #176
str x0, [sp, #136] ; 8-byte Folded Spill
mov w1, #0
mov x2, #128
bl _memset
ldr x9, [sp, #136] ; 8-byte Folded Reload
ldr x10, [sp, #144] ; 8-byte Folded Reload
ldr w8, [sp, #156] ; 4-byte Folded Reload
ldr w11, [x10, #84]
str w11, [x10, #136]
stur x9, [x10, #124]
ldr w11, [x10, #136]
ldur x9, [x10, #124]
str w11, [x10, #212]
stur x9, [x10, #204]
tbz w8, #0, LBB0_13
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w0, [x8, #212]
ldur x1, [x8, #204]
mov w2, #0
bl ___darwin_check_fd_set_overflow
ldr x8, [sp, #144] ; 8-byte Folded Reload
str w0, [x8, #216]
b LBB0_14
LBB0_13: ; in Loop: Header=BB0_11 Depth=1
ldr x9, [sp, #144] ; 8-byte Folded Reload
mov w8, #1
str w8, [x9, #216]
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x8, #216]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_11 Depth=1
ldr x9, [sp, #144] ; 8-byte Folded Reload
ldrsw x8, [x9, #136]
mov x11, #32
udiv x10, x8, x11
mul x10, x10, x11
subs x10, x8, x10
mov x8, #1
lsl x8, x8, x10
mov x10, x8
ldur x8, [x9, #124]
ldrsw x9, [x9, #136]
udiv x9, x9, x11
add x9, x8, x9, lsl #2
ldr w8, [x9]
orr w8, w8, w10
str w8, [x9]
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w9, [x8, #84]
str w9, [x8, #16]
str wzr, [x8, #28]
b LBB0_17
LBB0_17: ; Parent Loop BB0_11 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x8, #28]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_29
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_17 Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldrsw x10, [x8, #28]
sub x9, x29, #216
ldr w9, [x9, x10, lsl #2]
str w9, [x8, #20]
ldr w8, [x8, #20]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_25
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_17 Depth=2
ldr w8, [sp, #156] ; 4-byte Folded Reload
ldr x10, [sp, #144] ; 8-byte Folded Reload
ldr w9, [x10, #20]
str w9, [x10, #120]
add x9, sp, #176
stur x9, [x10, #108]
ldr w11, [x10, #120]
ldur x9, [x10, #108]
str w11, [x10, #228]
stur x9, [x10, #220]
tbz w8, #0, LBB0_21
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_17 Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w0, [x8, #228]
ldur x1, [x8, #220]
mov w2, #0
bl ___darwin_check_fd_set_overflow
ldr x8, [sp, #144] ; 8-byte Folded Reload
str w0, [x8, #232]
b LBB0_22
LBB0_21: ; in Loop: Header=BB0_17 Depth=2
ldr x9, [sp, #144] ; 8-byte Folded Reload
mov w8, #1
str w8, [x9, #232]
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_17 Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x8, #232]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_17 Depth=2
ldr x9, [sp, #144] ; 8-byte Folded Reload
ldrsw x8, [x9, #120]
mov x11, #32
udiv x10, x8, x11
mul x10, x10, x11
subs x10, x8, x10
mov x8, #1
lsl x8, x8, x10
mov x10, x8
ldur x8, [x9, #108]
ldrsw x9, [x9, #120]
udiv x9, x9, x11
add x9, x8, x9, lsl #2
ldr w8, [x9]
orr w8, w8, w10
str w8, [x9]
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_17 Depth=2
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_17 Depth=2
ldr x9, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x9, #20]
ldr w9, [x9, #16]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_27
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_17 Depth=2
ldr x9, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x9, #20]
str w8, [x9, #16]
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_17 Depth=2
b LBB0_28
LBB0_28: ; in Loop: Header=BB0_17 Depth=2
ldr x9, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x9, #28]
add w8, w8, #1
str w8, [x9, #28]
b LBB0_17
LBB0_29: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x8, #16]
add w0, w8, #1
add x1, sp, #176
mov x4, #0
mov x2, x4
mov x3, x4
bl _select
ldr x8, [sp, #144] ; 8-byte Folded Reload
str w0, [x8, #32]
ldr w8, [x8, #32]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_32
b LBB0_30
LBB0_30: ; in Loop: Header=BB0_11 Depth=1
bl ___error
ldr w8, [x0]
subs w8, w8, #4
cset w8, eq
tbnz w8, #0, LBB0_32
b LBB0_31
LBB0_31: ; in Loop: Header=BB0_11 Depth=1
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB0_32
LBB0_32: ; in Loop: Header=BB0_11 Depth=1
ldr w8, [sp, #156] ; 4-byte Folded Reload
ldr x10, [sp, #144] ; 8-byte Folded Reload
ldr w9, [x10, #84]
str w9, [x10, #164]
add x9, sp, #176
stur x9, [x10, #156]
ldr w11, [x10, #164]
ldur x9, [x10, #156]
str w11, [x10, #180]
stur x9, [x10, #172]
tbz w8, #0, LBB0_34
b LBB0_33
LBB0_33: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w0, [x8, #180]
ldur x1, [x8, #172]
mov w2, #0
bl ___darwin_check_fd_set_overflow
ldr x8, [sp, #144] ; 8-byte Folded Reload
str w0, [x8, #184]
b LBB0_35
LBB0_34: ; in Loop: Header=BB0_11 Depth=1
ldr x9, [sp, #144] ; 8-byte Folded Reload
mov w8, #1
str w8, [x9, #184]
b LBB0_35
LBB0_35: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x8, #184]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_37
b LBB0_36
LBB0_36: ; in Loop: Header=BB0_11 Depth=1
ldr x9, [sp, #144] ; 8-byte Folded Reload
ldur x8, [x9, #156]
ldrsw x10, [x9, #164]
mov x12, #32
udiv x10, x10, x12
ldr w8, [x8, x10, lsl #2]
ldrsw x10, [x9, #164]
udiv x11, x10, x12
mul x11, x11, x12
subs x11, x10, x11
mov x10, #1
lsl x10, x10, x11
; kill: def $w10 killed $w10 killed $x10
and w8, w8, w10
str w8, [x9, #168]
b LBB0_38
LBB0_37: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #144] ; 8-byte Folded Reload
str wzr, [x8, #168]
b LBB0_38
LBB0_38: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x8, #168]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_56
b LBB0_39
LBB0_39: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w0, [x8, #84]
sub x1, x29, #252
sub x2, x29, #172
bl _accept
ldr x8, [sp, #144] ; 8-byte Folded Reload
str w0, [x8, #76]
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB0_41
b LBB0_40
LBB0_40:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB0_41: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #144] ; 8-byte Folded Reload
str wzr, [x8, #28]
b LBB0_42
LBB0_42: ; Parent Loop BB0_11 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x8, #28]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_55
b LBB0_43
LBB0_43: ; in Loop: Header=BB0_42 Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldrsw x9, [x8, #28]
sub x8, x29, #216
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_49
b LBB0_44
LBB0_44: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w10, [x8, #76]
; implicit-def: $x9
mov x9, x10
str x9, [sp, #120] ; 8-byte Folded Spill
ldr w8, [x8, #4]
mov x0, x8
bl _inet_ntoa
str x0, [sp, #128] ; 8-byte Folded Spill
b LBB0_45
LBB0_45: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldrh w0, [x8, #2]
bl __OSSwapInt16
str w0, [sp, #116] ; 4-byte Folded Spill
b LBB0_46
LBB0_46: ; in Loop: Header=BB0_11 Depth=1
ldr w10, [sp, #116] ; 4-byte Folded Reload
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x11, [sp, #120] ; 8-byte Folded Reload
mov x9, sp
str x11, [x9]
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x10
and x8, x8, #0xffff
and x8, x8, #0xffff
str x8, [x9, #16]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w9, [x8, #76]
ldrsw x11, [x8, #28]
sub x10, x29, #216
str w9, [x10, x11, lsl #2]
ldr w9, [x8, #28]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
ldr x8, [sp, #144] ; 8-byte Folded Reload
adrp x9, l_.str.10@PAGE
add x9, x9, l_.str.10@PAGEOFF
str x9, [sp, #168]
ldr w8, [x8, #76]
str w8, [sp, #100] ; 4-byte Folded Spill
ldr x8, [sp, #168]
str x8, [sp, #88] ; 8-byte Folded Spill
ldr x0, [sp, #168]
bl _strlen
ldr x1, [sp, #88] ; 8-byte Folded Reload
mov x2, x0
ldr w0, [sp, #100] ; 4-byte Folded Reload
mov w3, #0
bl _send
str x0, [sp, #104] ; 8-byte Folded Spill
ldr x0, [sp, #168]
bl _strlen
mov x8, x0
ldr x0, [sp, #104] ; 8-byte Folded Reload
subs x8, x0, x8
cset w8, eq
tbnz w8, #0, LBB0_48
b LBB0_47
LBB0_47: ; in Loop: Header=BB0_11 Depth=1
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _perror
b LBB0_48
LBB0_48: ; in Loop: Header=BB0_11 Depth=1
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _puts
b LBB0_55
LBB0_49: ; in Loop: Header=BB0_42 Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x8, #28]
subs w8, w8, #9
cset w8, ne
tbnz w8, #0, LBB0_53
b LBB0_50
LBB0_50: ; in Loop: Header=BB0_42 Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w10, [x8, #76]
; implicit-def: $x9
mov x9, x10
str x9, [sp, #56] ; 8-byte Folded Spill
ldr w8, [x8, #4]
mov x0, x8
bl _inet_ntoa
ldr x9, [sp, #56] ; 8-byte Folded Reload
mov x8, sp
str x9, [x8]
str x0, [x8, #8]
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
ldr x8, [sp, #144] ; 8-byte Folded Reload
adrp x9, l_.str.14@PAGE
add x9, x9, l_.str.14@PAGEOFF
str x9, [sp, #168]
ldr w8, [x8, #76]
str w8, [sp, #76] ; 4-byte Folded Spill
ldr x8, [sp, #168]
str x8, [sp, #64] ; 8-byte Folded Spill
ldr x0, [sp, #168]
bl _strlen
ldr x1, [sp, #64] ; 8-byte Folded Reload
mov x2, x0
ldr w0, [sp, #76] ; 4-byte Folded Reload
mov w3, #0
bl _send
str x0, [sp, #80] ; 8-byte Folded Spill
ldr x0, [sp, #168]
bl _strlen
mov x8, x0
ldr x0, [sp, #80] ; 8-byte Folded Reload
subs x8, x0, x8
cset w8, eq
tbnz w8, #0, LBB0_52
b LBB0_51
LBB0_51: ; in Loop: Header=BB0_42 Depth=2
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _perror
b LBB0_52
LBB0_52: ; in Loop: Header=BB0_42 Depth=2
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _puts
b LBB0_53
LBB0_53: ; in Loop: Header=BB0_42 Depth=2
b LBB0_54
LBB0_54: ; in Loop: Header=BB0_42 Depth=2
ldr x9, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x9, #28]
add w8, w8, #1
str w8, [x9, #28]
b LBB0_42
LBB0_55: ; in Loop: Header=BB0_11 Depth=1
b LBB0_56
LBB0_56: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #144] ; 8-byte Folded Reload
str wzr, [x8, #28]
b LBB0_57
LBB0_57: ; Parent Loop BB0_11 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x8, #28]
subs w8, w8, #10
cset w8, ge
tbnz w8, #0, LBB0_76
b LBB0_58
LBB0_58: ; in Loop: Header=BB0_57 Depth=2
ldr w8, [sp, #156] ; 4-byte Folded Reload
ldr x10, [sp, #144] ; 8-byte Folded Reload
ldrsw x11, [x10, #28]
sub x9, x29, #216
ldr w9, [x9, x11, lsl #2]
str w9, [x10, #20]
ldr w9, [x10, #20]
str w9, [x10, #148]
add x9, sp, #176
stur x9, [x10, #140]
ldr w11, [x10, #148]
ldur x9, [x10, #140]
str w11, [x10, #196]
stur x9, [x10, #188]
tbz w8, #0, LBB0_60
b LBB0_59
LBB0_59: ; in Loop: Header=BB0_57 Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w0, [x8, #196]
ldur x1, [x8, #188]
mov w2, #0
bl ___darwin_check_fd_set_overflow
ldr x8, [sp, #144] ; 8-byte Folded Reload
str w0, [x8, #200]
b LBB0_61
LBB0_60: ; in Loop: Header=BB0_57 Depth=2
ldr x9, [sp, #144] ; 8-byte Folded Reload
mov w8, #1
str w8, [x9, #200]
b LBB0_61
LBB0_61: ; in Loop: Header=BB0_57 Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x8, #200]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_63
b LBB0_62
LBB0_62: ; in Loop: Header=BB0_57 Depth=2
ldr x9, [sp, #144] ; 8-byte Folded Reload
ldur x8, [x9, #140]
ldrsw x10, [x9, #148]
mov x12, #32
udiv x10, x10, x12
ldr w8, [x8, x10, lsl #2]
ldrsw x10, [x9, #148]
udiv x11, x10, x12
mul x11, x11, x12
subs x11, x10, x11
mov x10, #1
lsl x10, x10, x11
; kill: def $w10 killed $w10 killed $x10
and w8, w8, w10
str w8, [x9, #152]
b LBB0_64
LBB0_63: ; in Loop: Header=BB0_57 Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
str wzr, [x8, #152]
b LBB0_64
LBB0_64: ; in Loop: Header=BB0_57 Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x8, #152]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_74
b LBB0_65
LBB0_65: ; in Loop: Header=BB0_57 Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w0, [x8, #20]
add x1, sp, #307
mov x2, #1025
mov w3, #0
bl _recv
ldr x10, [sp, #144] ; 8-byte Folded Reload
mov x8, x0
mov x9, x0
str w9, [x10, #24]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_69
b LBB0_66
LBB0_66: ; in Loop: Header=BB0_57 Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w0, [x8, #20]
sub x1, x29, #252
sub x2, x29, #172
bl _getpeername
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x8, #4]
mov x0, x8
bl _inet_ntoa
str x0, [sp, #48] ; 8-byte Folded Spill
b LBB0_67
LBB0_67: ; in Loop: Header=BB0_57 Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldrh w0, [x8, #2]
bl __OSSwapInt16
str w0, [sp, #44] ; 4-byte Folded Spill
b LBB0_68
LBB0_68: ; in Loop: Header=BB0_57 Depth=2
ldr w10, [sp, #44] ; 4-byte Folded Reload
ldr x8, [sp, #48] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x10
and x8, x8, #0xffff
and x8, x8, #0xffff
str x8, [x9, #8]
adrp x0, l_.str.16@PAGE
add x0, x0, l_.str.16@PAGEOFF
bl _printf
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w0, [x8, #20]
bl _close
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldrsw x10, [x8, #28]
sub x9, x29, #216
mov w8, #0
str w8, [x9, x10, lsl #2]
b LBB0_73
LBB0_69: ; in Loop: Header=BB0_57 Depth=2
ldr x9, [sp, #144] ; 8-byte Folded Reload
ldrsw x11, [x9, #24]
add x8, sp, #307
mov x10, x8
add x10, x10, x11
strb wzr, [x10]
ldr w9, [x9, #28]
; implicit-def: $x10
mov x10, 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
ldrsb w8, [sp, #307]
subs w8, w8, #48
str w8, [sp, #164]
ldrsw x9, [sp, #164]
sub x8, x29, #216
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_71
b LBB0_70
LBB0_70: ; in Loop: Header=BB0_57 Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w0, [x8, #20]
adrp x1, l_.str.18@PAGE
add x1, x1, l_.str.18@PAGEOFF
mov x2, #5
mov w3, #0
bl _send
b LBB0_72
LBB0_71: ; in Loop: Header=BB0_57 Depth=2
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w9, [x8, #28]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
add x0, sp, #163
mov w1, #0
str w1, [sp, #40] ; 4-byte Folded Spill
mov x2, #1
adrp x3, l_.str.19@PAGE
add x3, x3, l_.str.19@PAGEOFF
bl ___sprintf_chk
ldrb w8, [sp, #163]
add x0, sp, #307
str x0, [sp, #24] ; 8-byte Folded Spill
strb w8, [sp, #307]
ldrsw x9, [sp, #164]
sub x8, x29, #216
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #36] ; 4-byte Folded Spill
bl _strlen
ldr x1, [sp, #24] ; 8-byte Folded Reload
ldr w3, [sp, #40] ; 4-byte Folded Reload
mov x2, x0
ldr w0, [sp, #36] ; 4-byte Folded Reload
bl _send
ldr x8, [sp, #144] ; 8-byte Folded Reload
ldr w3, [sp, #40] ; 4-byte Folded Reload
ldr w0, [x8, #20]
adrp x1, l_.str.20@PAGE
add x1, x1, l_.str.20@PAGEOFF
mov x2, #4
bl _send
b LBB0_72
LBB0_72: ; in Loop: Header=BB0_57 Depth=2
b LBB0_73
LBB0_73: ; in Loop: Header=BB0_57 Depth=2
b LBB0_74
LBB0_74: ; in Loop: Header=BB0_57 Depth=2
b LBB0_75
LBB0_75: ; in Loop: Header=BB0_57 Depth=2
ldr x9, [sp, #144] ; 8-byte Folded Reload
ldr w8, [x9, #28]
add w8, w8, #1
str w8, [x9, #28]
b LBB0_57
LBB0_76: ; in Loop: Header=BB0_11 Depth=1
b LBB0_11
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function _OSSwapInt16
__OSSwapInt16: ; @_OSSwapInt16
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
strh w0, [sp, #14]
ldrh w9, [sp, #14]
ldrh w8, [sp, #14]
asr w8, w8, #8
orr w8, w8, w9, lsl #8
and w0, w8, #0xffff
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "ECHO kaliTEST v1.0 \r\n"
l_.str.1: ; @.str.1
.asciz "socket failed"
l_.str.2: ; @.str.2
.asciz "bind failed"
l_.str.3: ; @.str.3
.asciz "Listener on port %d \n"
l_.str.4: ; @.str.4
.asciz "listen"
l_.str.5: ; @.str.5
.asciz "Waiting for connections ..."
l_.str.6: ; @.str.6
.asciz "select error"
l_.str.7: ; @.str.7
.asciz "accept"
l_.str.8: ; @.str.8
.asciz "New connection , socket fd is %d , ip is : %s , port : %d\n"
l_.str.9: ; @.str.9
.asciz "Adding to list of sockets as %d\n"
l_.str.10: ; @.str.10
.asciz "TEST kali v1.0 \n"
l_.str.11: ; @.str.11
.asciz "send"
l_.str.12: ; @.str.12
.asciz "Welcome message sent successfully"
l_.str.13: ; @.str.13
.asciz "New socket connection (with fd %d) from %s will not be handled\n"
l_.str.14: ; @.str.14
.asciz "ERROR bussy v1.0 \n"
l_.str.15: ; @.str.15
.asciz "Refuse message sent successfully"
l_.str.16: ; @.str.16
.asciz "Host disconnected , ip %s , port %d \n"
l_.str.17: ; @.str.17
.asciz "CLIENT %d : %s \n"
.section __TEXT,__const
l_.str.18: ; @.str.18
.asciz "ERROR\000"
.section __TEXT,__cstring,cstring_literals
l_.str.19: ; @.str.19
.asciz "%d"
.section __TEXT,__const
l_.str.20: ; @.str.20
.asciz "SENT\000"
.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 $1536, %rsp ## imm = 0x600
movl $0, -132(%rbp)
movl %edi, -136(%rbp)
movq %rsi, -144(%rbp)
movl $1, -148(%rbp)
leaq L_.str(%rip), %rax
movq %rax, -1416(%rbp)
movl $0, -216(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $10, -216(%rbp)
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -216(%rbp), %rax
movl $0, -208(%rbp,%rax,4)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -216(%rbp), %eax
addl $1, %eax
movl %eax, -216(%rbp)
jmp LBB0_1
LBB0_4:
movl $2, %edi
movl $1, %esi
xorl %edx, %edx
callq _socket
movl %eax, -152(%rbp)
cmpl $0, %eax
jne LBB0_6
## %bb.5:
leaq L_.str.1(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_6:
movb $2, -247(%rbp)
movl $0, -244(%rbp)
movw $31765, -246(%rbp) ## imm = 0x7C15
movl -152(%rbp), %edi
leaq -248(%rbp), %rsi
movl $16, %edx
callq _bind
cmpl $0, %eax
jge LBB0_8
## %bb.7:
leaq L_.str.2(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_8:
leaq L_.str.3(%rip), %rdi
movl $5500, %esi ## imm = 0x157C
movb $0, %al
callq _printf
movl -152(%rbp), %edi
movl $10, %esi
callq _listen
cmpl $0, %eax
jge LBB0_10
## %bb.9:
leaq L_.str.4(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_10:
movl $16, -156(%rbp)
leaq L_.str.5(%rip), %rdi
callq _puts
LBB0_11: ## =>This Loop Header: Depth=1
## Child Loop BB0_17 Depth 2
## Child Loop BB0_42 Depth 2
## Child Loop BB0_57 Depth 2
xorps %xmm0, %xmm0
movaps %xmm0, -1440(%rbp) ## 16-byte Spill
movaps %xmm0, -1296(%rbp)
movaps %xmm0, -1312(%rbp)
movaps %xmm0, -1328(%rbp)
movaps %xmm0, -1344(%rbp)
movaps %xmm0, -1360(%rbp)
movaps %xmm0, -1376(%rbp)
movaps %xmm0, -1392(%rbp)
movaps %xmm0, -1408(%rbp)
movl -152(%rbp), %eax
movl %eax, -100(%rbp)
leaq -1408(%rbp), %rax
movq %rax, -112(%rbp)
movl -100(%rbp), %ecx
movq -112(%rbp), %rax
movl %ecx, -24(%rbp)
movq %rax, -32(%rbp)
movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax
testq %rax, %rax
je LBB0_13
jmp LBB0_12
LBB0_12: ## in Loop: Header=BB0_11 Depth=1
movl -24(%rbp), %edi
movq -32(%rbp), %rsi
xorl %edx, %edx
callq ___darwin_check_fd_set_overflow
movl %eax, -20(%rbp)
jmp LBB0_14
LBB0_13: ## in Loop: Header=BB0_11 Depth=1
movl $1, -20(%rbp)
LBB0_14: ## in Loop: Header=BB0_11 Depth=1
cmpl $0, -20(%rbp)
je LBB0_16
## %bb.15: ## in Loop: Header=BB0_11 Depth=1
movslq -100(%rbp), %rcx
andq $31, %rcx
movl $1, %eax
## kill: def $cl killed $rcx
shlq %cl, %rax
movl %eax, %edx
movq -112(%rbp), %rax
movslq -100(%rbp), %rcx
shrq $5, %rcx
orl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
LBB0_16: ## in Loop: Header=BB0_11 Depth=1
movl -152(%rbp), %eax
movl %eax, -228(%rbp)
movl $0, -216(%rbp)
LBB0_17: ## Parent Loop BB0_11 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $10, -216(%rbp)
jge LBB0_29
## %bb.18: ## in Loop: Header=BB0_17 Depth=2
movslq -216(%rbp), %rax
movl -208(%rbp,%rax,4), %eax
movl %eax, -224(%rbp)
cmpl $0, -224(%rbp)
jle LBB0_25
## %bb.19: ## in Loop: Header=BB0_17 Depth=2
movl -224(%rbp), %eax
movl %eax, -116(%rbp)
leaq -1408(%rbp), %rax
movq %rax, -128(%rbp)
movl -116(%rbp), %ecx
movq -128(%rbp), %rax
movl %ecx, -8(%rbp)
movq %rax, -16(%rbp)
movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax
testq %rax, %rax
je LBB0_21
jmp LBB0_20
LBB0_20: ## in Loop: Header=BB0_17 Depth=2
movl -8(%rbp), %edi
movq -16(%rbp), %rsi
xorl %edx, %edx
callq ___darwin_check_fd_set_overflow
movl %eax, -4(%rbp)
jmp LBB0_22
LBB0_21: ## in Loop: Header=BB0_17 Depth=2
movl $1, -4(%rbp)
LBB0_22: ## in Loop: Header=BB0_17 Depth=2
cmpl $0, -4(%rbp)
je LBB0_24
## %bb.23: ## in Loop: Header=BB0_17 Depth=2
movslq -116(%rbp), %rcx
andq $31, %rcx
movl $1, %eax
## kill: def $cl killed $rcx
shlq %cl, %rax
movl %eax, %edx
movq -128(%rbp), %rax
movslq -116(%rbp), %rcx
shrq $5, %rcx
orl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
LBB0_24: ## in Loop: Header=BB0_17 Depth=2
jmp LBB0_25
LBB0_25: ## in Loop: Header=BB0_17 Depth=2
movl -224(%rbp), %eax
cmpl -228(%rbp), %eax
jle LBB0_27
## %bb.26: ## in Loop: Header=BB0_17 Depth=2
movl -224(%rbp), %eax
movl %eax, -228(%rbp)
LBB0_27: ## in Loop: Header=BB0_17 Depth=2
jmp LBB0_28
LBB0_28: ## in Loop: Header=BB0_17 Depth=2
movl -216(%rbp), %eax
addl $1, %eax
movl %eax, -216(%rbp)
jmp LBB0_17
LBB0_29: ## in Loop: Header=BB0_11 Depth=1
movl -228(%rbp), %edi
addl $1, %edi
leaq -1408(%rbp), %rsi
xorl %eax, %eax
movl %eax, %r8d
movq %r8, %rdx
movq %r8, %rcx
callq _select$1050
movl %eax, -212(%rbp)
cmpl $0, -212(%rbp)
jge LBB0_32
## %bb.30: ## in Loop: Header=BB0_11 Depth=1
callq ___error
cmpl $4, (%rax)
je LBB0_32
## %bb.31: ## in Loop: Header=BB0_11 Depth=1
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
LBB0_32: ## in Loop: Header=BB0_11 Depth=1
movl -152(%rbp), %eax
movl %eax, -72(%rbp)
leaq -1408(%rbp), %rax
movq %rax, -80(%rbp)
movl -72(%rbp), %ecx
movq -80(%rbp), %rax
movl %ecx, -56(%rbp)
movq %rax, -64(%rbp)
movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax
testq %rax, %rax
je LBB0_34
jmp LBB0_33
LBB0_33: ## in Loop: Header=BB0_11 Depth=1
movl -56(%rbp), %edi
movq -64(%rbp), %rsi
xorl %edx, %edx
callq ___darwin_check_fd_set_overflow
movl %eax, -52(%rbp)
jmp LBB0_35
LBB0_34: ## in Loop: Header=BB0_11 Depth=1
movl $1, -52(%rbp)
LBB0_35: ## in Loop: Header=BB0_11 Depth=1
cmpl $0, -52(%rbp)
je LBB0_37
## %bb.36: ## in Loop: Header=BB0_11 Depth=1
movq -80(%rbp), %rax
movslq -72(%rbp), %rcx
shrq $5, %rcx
movl (%rax,%rcx,4), %eax
movslq -72(%rbp), %rcx
andq $31, %rcx
movl $1, %edx
## kill: def $cl killed $rcx
shlq %cl, %rdx
movq %rdx, %rcx
## kill: def $ecx killed $ecx killed $rcx
andl %ecx, %eax
movl %eax, -68(%rbp)
jmp LBB0_38
LBB0_37: ## in Loop: Header=BB0_11 Depth=1
movl $0, -68(%rbp)
LBB0_38: ## in Loop: Header=BB0_11 Depth=1
cmpl $0, -68(%rbp)
je LBB0_56
## %bb.39: ## in Loop: Header=BB0_11 Depth=1
movl -152(%rbp), %edi
leaq -248(%rbp), %rsi
leaq -156(%rbp), %rdx
callq _accept
movl %eax, -160(%rbp)
cmpl $0, %eax
jge LBB0_41
## %bb.40:
leaq L_.str.7(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB0_41: ## in Loop: Header=BB0_11 Depth=1
movl $0, -216(%rbp)
LBB0_42: ## Parent Loop BB0_11 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $10, -216(%rbp)
jge LBB0_55
## %bb.43: ## in Loop: Header=BB0_42 Depth=2
movslq -216(%rbp), %rax
cmpl $0, -208(%rbp,%rax,4)
jne LBB0_49
## %bb.44: ## in Loop: Header=BB0_11 Depth=1
movl -160(%rbp), %eax
movl %eax, -1452(%rbp) ## 4-byte Spill
movl -244(%rbp), %edi
callq _inet_ntoa
movq %rax, -1448(%rbp) ## 8-byte Spill
## %bb.45: ## in Loop: Header=BB0_11 Depth=1
movzwl -246(%rbp), %edi
callq __OSSwapInt16
movzwl %ax, %eax
movl %eax, -1456(%rbp) ## 4-byte Spill
## %bb.46: ## in Loop: Header=BB0_11 Depth=1
movq -1448(%rbp), %rdx ## 8-byte Reload
movl -1452(%rbp), %esi ## 4-byte Reload
movl -1456(%rbp), %eax ## 4-byte Reload
movzwl %ax, %ecx
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movl -160(%rbp), %ecx
movslq -216(%rbp), %rax
movl %ecx, -208(%rbp,%rax,4)
movl -216(%rbp), %esi
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.10(%rip), %rax
movq %rax, -1416(%rbp)
movl -160(%rbp), %eax
movl %eax, -1476(%rbp) ## 4-byte Spill
movq -1416(%rbp), %rax
movq %rax, -1472(%rbp) ## 8-byte Spill
movq -1416(%rbp), %rdi
callq _strlen
movl -1476(%rbp), %edi ## 4-byte Reload
movq -1472(%rbp), %rsi ## 8-byte Reload
movq %rax, %rdx
xorl %ecx, %ecx
callq _send
movq %rax, -1464(%rbp) ## 8-byte Spill
movq -1416(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -1464(%rbp), %rax ## 8-byte Reload
cmpq %rcx, %rax
je LBB0_48
## %bb.47: ## in Loop: Header=BB0_11 Depth=1
leaq L_.str.11(%rip), %rdi
callq _perror
LBB0_48: ## in Loop: Header=BB0_11 Depth=1
leaq L_.str.12(%rip), %rdi
callq _puts
jmp LBB0_55
LBB0_49: ## in Loop: Header=BB0_42 Depth=2
cmpl $9, -216(%rbp)
jne LBB0_53
## %bb.50: ## in Loop: Header=BB0_42 Depth=2
movl -160(%rbp), %eax
movl %eax, -1504(%rbp) ## 4-byte Spill
movl -244(%rbp), %edi
callq _inet_ntoa
movl -1504(%rbp), %esi ## 4-byte Reload
movq %rax, %rdx
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.14(%rip), %rax
movq %rax, -1416(%rbp)
movl -160(%rbp), %eax
movl %eax, -1500(%rbp) ## 4-byte Spill
movq -1416(%rbp), %rax
movq %rax, -1496(%rbp) ## 8-byte Spill
movq -1416(%rbp), %rdi
callq _strlen
movl -1500(%rbp), %edi ## 4-byte Reload
movq -1496(%rbp), %rsi ## 8-byte Reload
movq %rax, %rdx
xorl %ecx, %ecx
callq _send
movq %rax, -1488(%rbp) ## 8-byte Spill
movq -1416(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -1488(%rbp), %rax ## 8-byte Reload
cmpq %rcx, %rax
je LBB0_52
## %bb.51: ## in Loop: Header=BB0_42 Depth=2
leaq L_.str.11(%rip), %rdi
callq _perror
LBB0_52: ## in Loop: Header=BB0_42 Depth=2
leaq L_.str.15(%rip), %rdi
callq _puts
LBB0_53: ## in Loop: Header=BB0_42 Depth=2
jmp LBB0_54
LBB0_54: ## in Loop: Header=BB0_42 Depth=2
movl -216(%rbp), %eax
addl $1, %eax
movl %eax, -216(%rbp)
jmp LBB0_42
LBB0_55: ## in Loop: Header=BB0_11 Depth=1
jmp LBB0_56
LBB0_56: ## in Loop: Header=BB0_11 Depth=1
movl $0, -216(%rbp)
LBB0_57: ## Parent Loop BB0_11 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $10, -216(%rbp)
jge LBB0_76
## %bb.58: ## in Loop: Header=BB0_57 Depth=2
movslq -216(%rbp), %rax
movl -208(%rbp,%rax,4), %eax
movl %eax, -224(%rbp)
movl -224(%rbp), %eax
movl %eax, -88(%rbp)
leaq -1408(%rbp), %rax
movq %rax, -96(%rbp)
movl -88(%rbp), %ecx
movq -96(%rbp), %rax
movl %ecx, -40(%rbp)
movq %rax, -48(%rbp)
movq ___darwin_check_fd_set_overflow@GOTPCREL(%rip), %rax
testq %rax, %rax
je LBB0_60
jmp LBB0_59
LBB0_59: ## in Loop: Header=BB0_57 Depth=2
movl -40(%rbp), %edi
movq -48(%rbp), %rsi
xorl %edx, %edx
callq ___darwin_check_fd_set_overflow
movl %eax, -36(%rbp)
jmp LBB0_61
LBB0_60: ## in Loop: Header=BB0_57 Depth=2
movl $1, -36(%rbp)
LBB0_61: ## in Loop: Header=BB0_57 Depth=2
cmpl $0, -36(%rbp)
je LBB0_63
## %bb.62: ## in Loop: Header=BB0_57 Depth=2
movq -96(%rbp), %rax
movslq -88(%rbp), %rcx
shrq $5, %rcx
movl (%rax,%rcx,4), %eax
movslq -88(%rbp), %rcx
andq $31, %rcx
movl $1, %edx
## kill: def $cl killed $rcx
shlq %cl, %rdx
movq %rdx, %rcx
## kill: def $ecx killed $ecx killed $rcx
andl %ecx, %eax
movl %eax, -84(%rbp)
jmp LBB0_64
LBB0_63: ## in Loop: Header=BB0_57 Depth=2
movl $0, -84(%rbp)
LBB0_64: ## in Loop: Header=BB0_57 Depth=2
cmpl $0, -84(%rbp)
je LBB0_74
## %bb.65: ## in Loop: Header=BB0_57 Depth=2
movl -224(%rbp), %edi
leaq -1280(%rbp), %rsi
movl $1025, %edx ## imm = 0x401
xorl %ecx, %ecx
callq _recv
## kill: def $eax killed $eax killed $rax
movl %eax, -220(%rbp)
cmpl $0, %eax
jne LBB0_69
## %bb.66: ## in Loop: Header=BB0_57 Depth=2
movl -224(%rbp), %edi
leaq -248(%rbp), %rsi
leaq -156(%rbp), %rdx
callq _getpeername
movl -244(%rbp), %edi
callq _inet_ntoa
movq %rax, -1512(%rbp) ## 8-byte Spill
## %bb.67: ## in Loop: Header=BB0_57 Depth=2
movzwl -246(%rbp), %edi
callq __OSSwapInt16
movzwl %ax, %eax
movl %eax, -1516(%rbp) ## 4-byte Spill
## %bb.68: ## in Loop: Header=BB0_57 Depth=2
movq -1512(%rbp), %rsi ## 8-byte Reload
movl -1516(%rbp), %eax ## 4-byte Reload
movzwl %ax, %edx
leaq L_.str.16(%rip), %rdi
movb $0, %al
callq _printf
movl -224(%rbp), %edi
callq _close
movslq -216(%rbp), %rax
movl $0, -208(%rbp,%rax,4)
jmp LBB0_73
LBB0_69: ## in Loop: Header=BB0_57 Depth=2
movslq -220(%rbp), %rax
movb $0, -1280(%rbp,%rax)
movl -216(%rbp), %esi
leaq -1280(%rbp), %rdx
leaq L_.str.17(%rip), %rdi
movb $0, %al
callq _printf
movsbl -1280(%rbp), %eax
subl $48, %eax
movl %eax, -1420(%rbp)
movslq -1420(%rbp), %rax
cmpl $0, -208(%rbp,%rax,4)
jne LBB0_71
## %bb.70: ## in Loop: Header=BB0_57 Depth=2
movl -224(%rbp), %edi
leaq l_.str.18(%rip), %rsi
movl $5, %edx
xorl %ecx, %ecx
callq _send
jmp LBB0_72
LBB0_71: ## in Loop: Header=BB0_57 Depth=2
leaq -1421(%rbp), %rdi
movl -216(%rbp), %r8d
xorl %esi, %esi
movl $1, %edx
leaq L_.str.19(%rip), %rcx
movb $0, %al
callq ___sprintf_chk
movb -1421(%rbp), %al
movb %al, -1280(%rbp)
movslq -1420(%rbp), %rax
movl -208(%rbp,%rax,4), %eax
movl %eax, -1532(%rbp) ## 4-byte Spill
leaq -1280(%rbp), %rax
movq %rax, -1528(%rbp) ## 8-byte Spill
leaq -1280(%rbp), %rdi
callq _strlen
movl -1532(%rbp), %edi ## 4-byte Reload
movq -1528(%rbp), %rsi ## 8-byte Reload
movq %rax, %rdx
xorl %ecx, %ecx
callq _send
movl -224(%rbp), %edi
leaq l_.str.20(%rip), %rsi
movl $4, %edx
xorl %ecx, %ecx
callq _send
LBB0_72: ## in Loop: Header=BB0_57 Depth=2
jmp LBB0_73
LBB0_73: ## in Loop: Header=BB0_57 Depth=2
jmp LBB0_74
LBB0_74: ## in Loop: Header=BB0_57 Depth=2
jmp LBB0_75
LBB0_75: ## in Loop: Header=BB0_57 Depth=2
movl -216(%rbp), %eax
addl $1, %eax
movl %eax, -216(%rbp)
jmp LBB0_57
LBB0_76: ## in Loop: Header=BB0_11 Depth=1
jmp LBB0_11
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function _OSSwapInt16
__OSSwapInt16: ## @_OSSwapInt16
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movw %di, %ax
movw %ax, -2(%rbp)
movzwl -2(%rbp), %eax
shll $8, %eax
movzwl -2(%rbp), %ecx
sarl $8, %ecx
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movzwl %ax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "ECHO kaliTEST v1.0 \r\n"
L_.str.1: ## @.str.1
.asciz "socket failed"
L_.str.2: ## @.str.2
.asciz "bind failed"
L_.str.3: ## @.str.3
.asciz "Listener on port %d \n"
L_.str.4: ## @.str.4
.asciz "listen"
L_.str.5: ## @.str.5
.asciz "Waiting for connections ..."
L_.str.6: ## @.str.6
.asciz "select error"
L_.str.7: ## @.str.7
.asciz "accept"
L_.str.8: ## @.str.8
.asciz "New connection , socket fd is %d , ip is : %s , port : %d\n"
L_.str.9: ## @.str.9
.asciz "Adding to list of sockets as %d\n"
L_.str.10: ## @.str.10
.asciz "TEST kali v1.0 \n"
L_.str.11: ## @.str.11
.asciz "send"
L_.str.12: ## @.str.12
.asciz "Welcome message sent successfully"
L_.str.13: ## @.str.13
.asciz "New socket connection (with fd %d) from %s will not be handled\n"
L_.str.14: ## @.str.14
.asciz "ERROR bussy v1.0 \n"
L_.str.15: ## @.str.15
.asciz "Refuse message sent successfully"
L_.str.16: ## @.str.16
.asciz "Host disconnected , ip %s , port %d \n"
L_.str.17: ## @.str.17
.asciz "CLIENT %d : %s \n"
.section __TEXT,__const
l_.str.18: ## @.str.18
.asciz "ERROR\000"
.section __TEXT,__cstring,cstring_literals
L_.str.19: ## @.str.19
.asciz "%d"
.section __TEXT,__const
l_.str.20: ## @.str.20
.asciz "SENT\000"
.subsections_via_symbols
| the_stack_data/1204770.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, #2128
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
mov w8, #0
str w8, [sp, #28] ; 4-byte Folded Spill
str wzr, [sp, #64]
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
str x8, [sp, #40]
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
str x8, [sp, #32]
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
ldr x0, [sp, #40]
mov w1, #1
bl _open
ldr w1, [sp, #28] ; 4-byte Folded Reload
str w0, [sp, #60]
ldr x0, [sp, #32]
bl _open
str w0, [sp, #56]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #1095
str x8, [sp, #16] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
ldr x1, [sp, #16] ; 8-byte Folded Reload
ldr w0, [sp, #60]
mov x2, #1024
bl _write
ldr x0, [sp, #16] ; 8-byte Folded Reload
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
b LBB0_7
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w0, [sp, #56]
add x1, sp, #70
str x1, [sp, #8] ; 8-byte Folded Spill
mov x2, #1024
bl _read
ldr x0, [sp, #8] ; 8-byte Folded Reload
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
b LBB0_7
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
mov x9, sp
add x8, sp, #70
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #70
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_1
b LBB0_7
LBB0_7:
ldr w0, [sp, #60]
bl _close
ldr w0, [sp, #56]
bl _close
ldr x0, [sp, #40]
bl _unlink
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
bl ___stack_chk_fail
LBB0_9:
mov w0, #0
add sp, sp, #2128
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 "/tmp/myfifo_caller"
l_.str.1: ; @.str.1
.asciz "/tmp/myfifo_receiver"
l_.str.2: ; @.str.2
.asciz "Calling....\n"
l_.str.3: ; @.str.3
.asciz "Waiting for receiver...\n"
l_.str.4: ; @.str.4
.asciz "Caller: "
l_.str.5: ; @.str.5
.asciz "%1024[^\n]%*c"
l_.str.6: ; @.str.6
.asciz "Bye"
l_.str.7: ; @.str.7
.asciz "Received : %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 $2128, %rsp ## imm = 0x850
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -2084(%rbp)
leaq L_.str(%rip), %rax
movq %rax, -2112(%rbp)
leaq L_.str.1(%rip), %rax
movq %rax, -2120(%rbp)
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movq -2112(%rbp), %rdi
movl $1, %esi
movb $0, %al
callq _open
movl %eax, -2088(%rbp)
movq -2120(%rbp), %rdi
xorl %esi, %esi
movb $0, %al
callq _open
movl %eax, -2092(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq -1040(%rbp), %rsi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _scanf
movl -2088(%rbp), %edi
leaq -1040(%rbp), %rsi
movl $1024, %edx ## imm = 0x400
callq _write
leaq -1040(%rbp), %rdi
leaq L_.str.6(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_3
## %bb.2:
jmp LBB0_7
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movl -2092(%rbp), %edi
leaq -2080(%rbp), %rsi
movl $1024, %edx ## imm = 0x400
callq _read
leaq -2080(%rbp), %rdi
leaq L_.str.6(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_5
## %bb.4:
jmp LBB0_7
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
leaq -2080(%rbp), %rsi
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
leaq -2080(%rbp), %rdi
leaq L_.str.6(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_1
LBB0_7:
movl -2088(%rbp), %edi
callq _close
movl -2092(%rbp), %edi
callq _close
movq -2112(%rbp), %rdi
callq _unlink
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_9
## %bb.8:
xorl %eax, %eax
addq $2128, %rsp ## imm = 0x850
popq %rbp
retq
LBB0_9:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "/tmp/myfifo_caller"
L_.str.1: ## @.str.1
.asciz "/tmp/myfifo_receiver"
L_.str.2: ## @.str.2
.asciz "Calling....\n"
L_.str.3: ## @.str.3
.asciz "Waiting for receiver...\n"
L_.str.4: ## @.str.4
.asciz "Caller: "
L_.str.5: ## @.str.5
.asciz "%1024[^\n]%*c"
L_.str.6: ## @.str.6
.asciz "Bye"
L_.str.7: ## @.str.7
.asciz "Received : %s\n"
.subsections_via_symbols
| the_stack_data/26218.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _wcount ; -- Begin function wcount
.p2align 2
_wcount: ; @wcount
.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]
str wzr, [sp, #16]
str wzr, [sp, #12]
ldur x0, [x29, #-8]
mov x1, #100
bl _strnlen
mov x8, x0
stur w8, [x29, #-12]
str wzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_4 Depth 2
ldr w8, [sp, #16]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_13
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldrsw x9, [sp, #16]
ldrsb w8, [x8, x9]
subs w8, w8, #32
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_4
LBB0_4: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur x8, [x29, #-8]
ldrsw x9, [sp, #16]
ldrsb w8, [x8, x9]
subs w8, w8, #32
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=2
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_4 Depth=2
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_4
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
b LBB0_11
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldrsw x9, [sp, #16]
add x8, x8, x9
ldursb w8, [x8, #-1]
subs w8, w8, #32
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
subs w8, w8, #1
str w8, [sp, #16]
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_1
LBB0_13:
ldr w0, [sp, #12]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #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 wzr, [sp, #32]
str wzr, [sp, #28]
add x0, sp, #36
str x0, [sp, #16] ; 8-byte Folded Spill
mov x2, #100
bl _memset
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _gets
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _wcount
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur 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 "%d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _wcount ## -- Begin function wcount
.p2align 4, 0x90
_wcount: ## @wcount
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movl $0, -12(%rbp)
movl $0, -16(%rbp)
movl $0, -20(%rbp)
movq -8(%rbp), %rdi
movl $100, %esi
callq _strnlen
## kill: def $eax killed $eax killed $rax
movl %eax, -12(%rbp)
movl $0, -16(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_4 Depth 2
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB0_13
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $32, %eax
je LBB0_8
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
LBB0_4: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $32, %eax
je LBB0_7
## %bb.5: ## in Loop: Header=BB0_4 Depth=2
jmp LBB0_6
LBB0_6: ## in Loop: Header=BB0_4 Depth=2
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_4
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_11
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movsbl -1(%rax,%rcx), %eax
cmpl $32, %eax
je LBB0_10
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
addl $-1, %eax
movl %eax, -16(%rbp)
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_11
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_12
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_1
LBB0_13:
movl -20(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -116(%rbp)
movl $0, -120(%rbp)
leaq -112(%rbp), %rdi
xorl %esi, %esi
movl $100, %edx
callq _memset
leaq -112(%rbp), %rdi
callq _gets
leaq -112(%rbp), %rdi
callq _wcount
movl %eax, %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne 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 "%d"
.subsections_via_symbols
| the_stack_data/838160.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, #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
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-16]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w0, #1
ldp x29, x30, [sp, #208] ; 16-byte Folded Reload
add sp, sp, #224
ret
LBB0_2:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
mov w1, #2
bl _open
str w0, [sp, #36]
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 _perror
b LBB0_4
LBB0_4:
ldr w0, [sp, #36]
add x1, sp, #40
bl _fstat
adds w8, w0, #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
b LBB0_6
LBB0_6:
ldr x8, [sp, #136]
; kill: def $w8 killed $w8 killed $x8
stur w8, [x29, #-24]
ldursw x8, [x29, #-24]
mov x9, #4
udiv x8, x8, x9
; kill: def $w8 killed $w8 killed $x8
stur w8, [x29, #-20]
ldursw x1, [x29, #-24]
ldr w4, [sp, #36]
mov x0, #0
mov w2, #3
mov w3, #1
mov x5, #0
bl _mmap
str x0, [sp, #24]
ldr x8, [sp, #24]
adds x8, x8, #1
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _perror
b LBB0_8
LBB0_8:
ldr w0, [sp, #36]
bl _close
ldr x8, [sp, #24]
str x8, [sp, #16]
ldr x0, [sp, #16]
ldur w1, [x29, #-20]
bl _inefficientSort
mov x0, #0
bl _pthread_exit
.cfi_endproc
; -- End function
.globl _inefficientSort ; -- Begin function inefficientSort
.p2align 2
_inefficientSort: ; @inefficientSort
.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, _nthreads@GOTPAGE
ldr x8, [x8, _nthreads@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
adrp x8, _params@GOTPAGE
ldr x8, [x8, _params@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur w1, [x29, #-12]
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
bl _log10
ldr x8, [sp, #24] ; 8-byte Folded Reload
fcvtps w9, d0
str w9, [x8]
ldur w9, [x29, #-12]
ldr w10, [x8]
sdiv w9, w9, w10
stur w9, [x29, #-28]
ldrsw x8, [x8]
lsl x0, x8, #3
bl _malloc
ldr x8, [sp, #24] ; 8-byte Folded Reload
stur x0, [x29, #-24]
ldrsw x8, [x8]
lsl x0, x8, #4
bl _malloc
ldr x8, [sp, #8] ; 8-byte Folded Reload
str x0, [x8]
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
ldr x0, [x8]
mov x1, #0
str x1, [sp, #40] ; 8-byte Folded Spill
bl _setbuf
ldr x1, [sp, #40] ; 8-byte Folded Reload
adrp x0, _runningThreadsSortingME@GOTPAGE
ldr x0, [x0, _runningThreadsSortingME@GOTPAGEOFF]
bl _pthread_mutex_init
adrp x0, _sem1@GOTPAGE
ldr x0, [x0, _sem1@GOTPAGEOFF]
mov w2, #0
str w2, [sp, #20] ; 4-byte Folded Spill
mov x1, x2
bl _sem_init
ldr w2, [sp, #20] ; 4-byte Folded Reload
adrp x0, _sem2@GOTPAGE
ldr x0, [x0, _sem2@GOTPAGEOFF]
mov x1, x2
bl _sem_init
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x1, [sp, #40] ; 8-byte Folded Reload
ldr w9, [x9]
adrp x10, _runningThreadsSorting@GOTPAGE
ldr x10, [x10, _runningThreadsSorting@GOTPAGEOFF]
str w9, [x10]
ldr x0, [x8]
bl _setbuf
stur wzr, [x29, #-16]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldur w8, [x29, #-16]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_7
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x10, [sp, #8] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x11, [x10]
ldursw x12, [x29, #-16]
lsl x12, x12, #4
str x8, [x11, x12]
ldur w8, [x29, #-28]
ldur w11, [x29, #-16]
mul w8, w8, w11
ldr x10, [x10]
ldursw x11, [x29, #-16]
add x10, x10, x11, lsl #4
str w8, [x10, #8]
ldur w8, [x29, #-16]
ldr w9, [x9]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldur w8, [x29, #-12]
subs w8, w8, #1
ldr x9, [x9]
ldursw x10, [x29, #-16]
add x9, x9, x10, lsl #4
str w8, [x9, #12]
b LBB1_5
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldur w8, [x29, #-28]
ldur w10, [x29, #-16]
add w10, w10, #1
mul w8, w8, w10
subs w8, w8, #1
ldr x9, [x9]
ldursw x10, [x29, #-16]
add x9, x9, x10, lsl #4
str w8, [x9, #12]
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldur x9, [x29, #-24]
ldursw x10, [x29, #-16]
add x0, x9, x10, lsl #3
ldr x8, [x8]
ldursw x9, [x29, #-16]
add x3, x8, x9, lsl #4
mov x1, #0
adrp x2, _threadFunction@PAGE
add x2, x2, _threadFunction@PAGEOFF
bl _pthread_create
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB1_1
LBB1_7:
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _threadFunction ; -- Begin function threadFunction
.p2align 2
_threadFunction: ; @threadFunction
.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, _runningThreadsSortingME@GOTPAGE
ldr x8, [x8, _runningThreadsSortingME@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x8, _runningThreadsSorting@GOTPAGE
ldr x8, [x8, _runningThreadsSorting@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
adrp x8, _swapsCount@GOTPAGE
ldr x8, [x8, _swapsCount@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
adrp x8, _nthreads@GOTPAGE
ldr x8, [x8, _nthreads@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
stur x8, [x29, #-16]
stur wzr, [x29, #-24]
bl _pthread_self
bl _pthread_detach
b LBB2_1
LBB2_1: ; =>This Loop Header: Depth=1
; Child Loop BB2_3 Depth 2
; Child Loop BB2_9 Depth 2
; Child Loop BB2_15 Depth 2
ldur x0, [x29, #-8]
bl _bubbleSort
ldr x0, [sp, #8] ; 8-byte Folded Reload
bl _pthread_mutex_lock
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #8] ; 8-byte Folded Reload
ldr w8, [x9]
subs w8, w8, #1
str w8, [x9]
stur w8, [x29, #-28]
bl _pthread_mutex_unlock
ldur w8, [x29, #-28]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB2_13
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #24] ; 8-byte Folded Reload
str wzr, [x8]
stur wzr, [x29, #-20]
b LBB2_3
LBB2_3: ; Parent Loop BB2_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldur w8, [x29, #-20]
ldr w9, [x9]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_8
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_3 Depth=2
adrp x8, _params@GOTPAGE
ldr x8, [x8, _params@GOTPAGEOFF]
ldr x8, [x8]
ldursw x9, [x29, #-20]
add x8, x8, x9, lsl #4
ldr w8, [x8, #12]
stur w8, [x29, #-32]
ldur x8, [x29, #-16]
ldr x8, [x8]
ldursw x9, [x29, #-32]
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-16]
ldr x9, [x9]
ldur w10, [x29, #-32]
add w10, w10, #1
ldr w9, [x9, w10, sxtw #2]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB2_6
b LBB2_5
LBB2_5: ; in Loop: Header=BB2_3 Depth=2
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
ldr x8, [x8]
ldursw x10, [x29, #-32]
ldr w8, [x8, x10, lsl #2]
stur w8, [x29, #-36]
ldur x8, [x29, #-16]
ldr x8, [x8]
ldur w10, [x29, #-32]
add w10, w10, #1
ldr w8, [x8, w10, sxtw #2]
ldur x10, [x29, #-16]
ldr x10, [x10]
ldursw x11, [x29, #-32]
str w8, [x10, x11, lsl #2]
ldur w8, [x29, #-36]
ldur x10, [x29, #-16]
ldr x10, [x10]
ldur w11, [x29, #-32]
add w11, w11, #1
str w8, [x10, w11, sxtw #2]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB2_6
LBB2_6: ; in Loop: Header=BB2_3 Depth=2
b LBB2_7
LBB2_7: ; in Loop: Header=BB2_3 Depth=2
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB2_3
LBB2_8: ; in Loop: Header=BB2_1 Depth=1
stur wzr, [x29, #-20]
b LBB2_9
LBB2_9: ; Parent Loop BB2_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldur w8, [x29, #-20]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_12
b LBB2_10
LBB2_10: ; in Loop: Header=BB2_9 Depth=2
adrp x0, _sem1@GOTPAGE
ldr x0, [x0, _sem1@GOTPAGEOFF]
bl _sem_post
b LBB2_11
LBB2_11: ; in Loop: Header=BB2_9 Depth=2
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB2_9
LBB2_12: ; in Loop: Header=BB2_1 Depth=1
b LBB2_13
LBB2_13: ; in Loop: Header=BB2_1 Depth=1
adrp x0, _sem1@GOTPAGE
ldr x0, [x0, _sem1@GOTPAGEOFF]
bl _sem_wait
ldr x0, [sp, #8] ; 8-byte Folded Reload
bl _pthread_mutex_lock
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #8] ; 8-byte Folded Reload
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
stur w8, [x29, #-28]
bl _pthread_mutex_unlock
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldur w8, [x29, #-28]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB2_19
b LBB2_14
LBB2_14: ; in Loop: Header=BB2_1 Depth=1
stur wzr, [x29, #-20]
b LBB2_15
LBB2_15: ; Parent Loop BB2_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldur w8, [x29, #-20]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_18
b LBB2_16
LBB2_16: ; in Loop: Header=BB2_15 Depth=2
adrp x0, _sem2@GOTPAGE
ldr x0, [x0, _sem2@GOTPAGEOFF]
bl _sem_post
b LBB2_17
LBB2_17: ; in Loop: Header=BB2_15 Depth=2
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB2_15
LBB2_18: ; in Loop: Header=BB2_1 Depth=1
b LBB2_19
LBB2_19: ; in Loop: Header=BB2_1 Depth=1
adrp x0, _sem2@GOTPAGE
ldr x0, [x0, _sem2@GOTPAGEOFF]
bl _sem_wait
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
b LBB2_20
LBB2_20: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB2_1
b LBB2_21
LBB2_21:
mov x0, #0
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _bubbleSort ; -- Begin function bubbleSort
.p2align 2
_bubbleSort: ; @bubbleSort
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #40]
ldr x8, [sp, #40]
ldr x8, [x8]
str x8, [sp, #32]
ldr x8, [sp, #40]
ldr w8, [x8, #8]
str w8, [sp, #28]
ldr x8, [sp, #40]
ldr w8, [x8, #12]
str w8, [sp, #24]
ldr w8, [sp, #28]
str w8, [sp, #20]
b LBB3_1
LBB3_1: ; =>This Loop Header: Depth=1
; Child Loop BB3_3 Depth 2
ldr w8, [sp, #20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_10
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #28]
str w8, [sp, #16]
b LBB3_3
LBB3_3: ; Parent Loop BB3_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #16]
ldr w9, [sp, #24]
ldr w10, [sp, #20]
subs w9, w9, w10
ldr w10, [sp, #28]
add w9, w9, w10
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_8
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_3 Depth=2
ldr x8, [sp, #32]
ldrsw x9, [sp, #16]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #32]
ldr w10, [sp, #16]
add w10, w10, #1
ldr w9, [x9, w10, sxtw #2]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB3_6
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_3 Depth=2
ldr x8, [sp, #32]
ldrsw x9, [sp, #16]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #12]
ldr x8, [sp, #32]
ldr w9, [sp, #16]
add w9, w9, #1
ldr w8, [x8, w9, sxtw #2]
ldr x9, [sp, #32]
ldrsw x10, [sp, #16]
str w8, [x9, x10, lsl #2]
ldr w8, [sp, #12]
ldr x9, [sp, #32]
ldr w10, [sp, #16]
add w10, w10, #1
str w8, [x9, w10, sxtw #2]
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_3 Depth=2
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_3 Depth=2
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB3_3
LBB3_8: ; in Loop: Header=BB3_1 Depth=1
b LBB3_9
LBB3_9: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB3_1
LBB3_10:
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Syntax: %s filename\n"
l_.str.1: ; @.str.1
.asciz "open"
l_.str.2: ; @.str.2
.asciz "fstat"
l_.str.3: ; @.str.3
.asciz "mmap"
.comm _nthreads,4,2 ; @nthreads
.comm _params,8,3 ; @params
.comm _runningThreadsSortingME,64,3 ; @runningThreadsSortingME
.comm _sem1,4,2 ; @sem1
.comm _sem2,4,2 ; @sem2
.comm _runningThreadsSorting,4,2 ; @runningThreadsSorting
.comm _swapsCount,4,2 ; @swapsCount
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $192, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $2, -8(%rbp)
je LBB0_2
## %bb.1:
movq -16(%rbp), %rax
movq (%rax), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $1, %eax
addq $192, %rsp
popq %rbp
retq
LBB0_2:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
movl $2, %esi
movb $0, %al
callq _open
movl %eax, -172(%rbp)
cmpl $-1, %eax
jne LBB0_4
## %bb.3:
leaq L_.str.1(%rip), %rdi
callq _perror
LBB0_4:
movl -172(%rbp), %edi
leaq -168(%rbp), %rsi
callq _fstat$INODE64
cmpl $-1, %eax
jne LBB0_6
## %bb.5:
leaq L_.str.2(%rip), %rdi
callq _perror
LBB0_6:
movq -72(%rbp), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -24(%rbp)
movslq -24(%rbp), %rax
shrq $2, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -20(%rbp)
movslq -24(%rbp), %rsi
movl -172(%rbp), %r8d
xorl %eax, %eax
movl %eax, %r9d
movl $3, %edx
movl $1, %ecx
movq %r9, %rdi
callq _mmap
movq %rax, -184(%rbp)
movq $-1, %rax
cmpq %rax, -184(%rbp)
jne LBB0_8
## %bb.7:
leaq L_.str.3(%rip), %rdi
callq _perror
LBB0_8:
movl -172(%rbp), %edi
callq _close
movq -184(%rbp), %rax
movq %rax, -192(%rbp)
movq -192(%rbp), %rdi
movl -20(%rbp), %esi
callq _inefficientSort
xorl %eax, %eax
movl %eax, %edi
callq _pthread_exit
.cfi_endproc
## -- End function
.globl _inefficientSort ## -- Begin function inefficientSort
.p2align 4, 0x90
_inefficientSort: ## @inefficientSort
.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)
cvtsi2sdl -12(%rbp), %xmm0
callq _log10
roundsd $10, %xmm0, %xmm0
cvttsd2si %xmm0, %ecx
movq _nthreads@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movl -12(%rbp), %eax
movq _nthreads@GOTPCREL(%rip), %rcx
cltd
idivl (%rcx)
movl %eax, -28(%rbp)
movq _nthreads@GOTPCREL(%rip), %rax
movslq (%rax), %rdi
shlq $3, %rdi
callq _malloc
movq %rax, -24(%rbp)
movq _nthreads@GOTPCREL(%rip), %rax
movslq (%rax), %rdi
shlq $4, %rdi
callq _malloc
movq %rax, %rcx
movq _params@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _setbuf
movq _runningThreadsSortingME@GOTPCREL(%rip), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_mutex_init
movq _sem1@GOTPCREL(%rip), %rdi
xorl %edx, %edx
movl %edx, %esi
callq _sem_init
movq _sem2@GOTPCREL(%rip), %rdi
xorl %edx, %edx
movl %edx, %esi
callq _sem_init
movq _nthreads@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq _runningThreadsSorting@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _setbuf
movl $0, -16(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
movq _nthreads@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_7
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -8(%rbp), %rcx
movq _params@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -16(%rbp), %rdx
shlq $4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movl -28(%rbp), %ecx
imull -16(%rbp), %ecx
movq _params@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -16(%rbp), %rdx
shlq $4, %rdx
addq %rdx, %rax
movl %ecx, 8(%rax)
movl -16(%rbp), %eax
movq _nthreads@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jne LBB1_4
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -12(%rbp), %ecx
subl $1, %ecx
movq _params@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -16(%rbp), %rdx
shlq $4, %rdx
addq %rdx, %rax
movl %ecx, 12(%rax)
jmp LBB1_5
LBB1_4: ## in Loop: Header=BB1_1 Depth=1
movl -28(%rbp), %ecx
movl -16(%rbp), %eax
addl $1, %eax
imull %eax, %ecx
subl $1, %ecx
movq _params@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -16(%rbp), %rdx
shlq $4, %rdx
addq %rdx, %rax
movl %ecx, 12(%rax)
LBB1_5: ## in Loop: Header=BB1_1 Depth=1
movq -24(%rbp), %rdi
movslq -16(%rbp), %rax
shlq $3, %rax
addq %rax, %rdi
movq _params@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movslq -16(%rbp), %rax
shlq $4, %rax
addq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
leaq _threadFunction(%rip), %rdx
callq _pthread_create
## %bb.6: ## in Loop: Header=BB1_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_1
LBB1_7:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _threadFunction ## -- Begin function threadFunction
.p2align 4, 0x90
_threadFunction: ## @threadFunction
.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), %rax
movq %rax, -16(%rbp)
movl $0, -24(%rbp)
callq _pthread_self
movq %rax, %rdi
callq _pthread_detach
LBB2_1: ## =>This Loop Header: Depth=1
## Child Loop BB2_3 Depth 2
## Child Loop BB2_9 Depth 2
## Child Loop BB2_15 Depth 2
movq -8(%rbp), %rdi
callq _bubbleSort
movq _runningThreadsSortingME@GOTPCREL(%rip), %rdi
callq _pthread_mutex_lock
movq _runningThreadsSorting@GOTPCREL(%rip), %rax
movl (%rax), %eax
addl $-1, %eax
movq _runningThreadsSorting@GOTPCREL(%rip), %rcx
movl %eax, (%rcx)
movl %eax, -28(%rbp)
movq _runningThreadsSortingME@GOTPCREL(%rip), %rdi
callq _pthread_mutex_unlock
cmpl $0, -28(%rbp)
jne LBB2_13
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq _swapsCount@GOTPCREL(%rip), %rax
movl $0, (%rax)
movl $0, -20(%rbp)
LBB2_3: ## Parent Loop BB2_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -20(%rbp), %eax
movq _nthreads@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB2_8
## %bb.4: ## in Loop: Header=BB2_3 Depth=2
movq _params@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -20(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movl 12(%rax), %eax
movl %eax, -32(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movslq -32(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -16(%rbp), %rcx
movq (%rcx), %rcx
movl -32(%rbp), %edx
addl $1, %edx
movslq %edx, %rdx
cmpl (%rcx,%rdx,4), %eax
jle LBB2_6
## %bb.5: ## in Loop: Header=BB2_3 Depth=2
movq -16(%rbp), %rax
movq (%rax), %rax
movslq -32(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -36(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movl -32(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -16(%rbp), %rax
movq (%rax), %rax
movslq -32(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -36(%rbp), %edx
movq -16(%rbp), %rax
movq (%rax), %rax
movl -32(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
movq _swapsCount@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _swapsCount@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
LBB2_6: ## in Loop: Header=BB2_3 Depth=2
jmp LBB2_7
LBB2_7: ## in Loop: Header=BB2_3 Depth=2
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB2_3
LBB2_8: ## in Loop: Header=BB2_1 Depth=1
movl $0, -20(%rbp)
LBB2_9: ## Parent Loop BB2_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -20(%rbp), %eax
movq _nthreads@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB2_12
## %bb.10: ## in Loop: Header=BB2_9 Depth=2
movq _sem1@GOTPCREL(%rip), %rdi
callq _sem_post
## %bb.11: ## in Loop: Header=BB2_9 Depth=2
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB2_9
LBB2_12: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_13
LBB2_13: ## in Loop: Header=BB2_1 Depth=1
movq _sem1@GOTPCREL(%rip), %rdi
callq _sem_wait
movq _runningThreadsSortingME@GOTPCREL(%rip), %rdi
callq _pthread_mutex_lock
movq _runningThreadsSorting@GOTPCREL(%rip), %rax
movl (%rax), %eax
addl $1, %eax
movq _runningThreadsSorting@GOTPCREL(%rip), %rcx
movl %eax, (%rcx)
movl %eax, -28(%rbp)
movq _runningThreadsSortingME@GOTPCREL(%rip), %rdi
callq _pthread_mutex_unlock
movl -28(%rbp), %eax
movq _nthreads@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jne LBB2_19
## %bb.14: ## in Loop: Header=BB2_1 Depth=1
movl $0, -20(%rbp)
LBB2_15: ## Parent Loop BB2_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -20(%rbp), %eax
movq _nthreads@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB2_18
## %bb.16: ## in Loop: Header=BB2_15 Depth=2
movq _sem2@GOTPCREL(%rip), %rdi
callq _sem_post
## %bb.17: ## in Loop: Header=BB2_15 Depth=2
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB2_15
LBB2_18: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_19
LBB2_19: ## in Loop: Header=BB2_1 Depth=1
movq _sem2@GOTPCREL(%rip), %rdi
callq _sem_wait
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
## %bb.20: ## in Loop: Header=BB2_1 Depth=1
movq _swapsCount@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB2_1
## %bb.21:
xorl %eax, %eax
## kill: def $rax killed $eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _bubbleSort ## -- Begin function bubbleSort
.p2align 4, 0x90
_bubbleSort: ## @bubbleSort
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
movq -8(%rbp), %rax
movl 8(%rax), %eax
movl %eax, -20(%rbp)
movq -8(%rbp), %rax
movl 12(%rax), %eax
movl %eax, -24(%rbp)
movl -20(%rbp), %eax
movl %eax, -28(%rbp)
LBB3_1: ## =>This Loop Header: Depth=1
## Child Loop BB3_3 Depth 2
movl -28(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB3_10
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movl -20(%rbp), %eax
movl %eax, -32(%rbp)
LBB3_3: ## Parent Loop BB3_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -32(%rbp), %eax
movl -24(%rbp), %ecx
subl -28(%rbp), %ecx
addl -20(%rbp), %ecx
cmpl %ecx, %eax
jge LBB3_8
## %bb.4: ## in Loop: Header=BB3_3 Depth=2
movq -16(%rbp), %rax
movslq -32(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -16(%rbp), %rcx
movl -32(%rbp), %edx
addl $1, %edx
movslq %edx, %rdx
cmpl (%rcx,%rdx,4), %eax
jle LBB3_6
## %bb.5: ## in Loop: Header=BB3_3 Depth=2
movq -16(%rbp), %rax
movslq -32(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -36(%rbp)
movq -16(%rbp), %rax
movl -32(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -16(%rbp), %rax
movslq -32(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -36(%rbp), %edx
movq -16(%rbp), %rax
movl -32(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
LBB3_6: ## in Loop: Header=BB3_3 Depth=2
jmp LBB3_7
LBB3_7: ## in Loop: Header=BB3_3 Depth=2
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB3_3
LBB3_8: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_9
LBB3_9: ## in Loop: Header=BB3_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB3_1
LBB3_10:
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Syntax: %s filename\n"
L_.str.1: ## @.str.1
.asciz "open"
L_.str.2: ## @.str.2
.asciz "fstat"
L_.str.3: ## @.str.3
.asciz "mmap"
.comm _nthreads,4,2 ## @nthreads
.comm _params,8,3 ## @params
.comm _runningThreadsSortingME,64,3 ## @runningThreadsSortingME
.comm _sem1,4,2 ## @sem1
.comm _sem2,4,2 ## @sem2
.comm _runningThreadsSorting,4,2 ## @runningThreadsSorting
.comm _swapsCount,4,2 ## @swapsCount
.subsections_via_symbols
| the_stack_data/45449297.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _PrintVar1
and w10, w0, #0xff
adrp x9, _ret@PAGE
str x9, [sp] ; 8-byte Folded Spill
ldrb w8, [x9, _ret@PAGEOFF]
orr w8, w8, w10
strb w8, [x9, _ret@PAGEOFF]
bl _PrintVar2
ldr x9, [sp] ; 8-byte Folded Reload
and w10, w0, #0xff
ldrb w8, [x9, _ret@PAGEOFF]
orr w8, w8, w10
strb w8, [x9, _ret@PAGEOFF]
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
adrp x9, _x@PAGE
ldrb w8, [x9, _x@PAGEOFF]
add w8, w8, #1
strb w8, [x9, _x@PAGEOFF]
and w8, w8, #0xff
subs w8, w8, #10
cset w8, lt
tbnz w8, #0, LBB0_1
b LBB0_3
LBB0_3:
adrp x8, _ret@PAGE
ldrb w0, [x8, _ret@PAGEOFF]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function PrintVar1
_PrintVar1: ; @PrintVar1
.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, _x@PAGE
ldrb w9, [x8, _x@PAGEOFF]
add w9, w9, #1
sturb w9, [x29, #-1]
ldurb w11, [x29, #-1]
ldrb w10, [x8, _x@PAGEOFF]
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@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldurb w8, [x29, #-1]
subs w8, w8, #0
cset w8, eq
and w8, w8, #0x1
and w0, w8, #0xff
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function PrintVar2
_PrintVar2: ; @PrintVar2
.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, _x@PAGE
ldrb w9, [x8, _x@PAGEOFF]
add w9, w9, #1
sturb w9, [x29, #-1]
ldrb w9, [x8, _x@PAGEOFF]
add w9, w9, #1
sturb w9, [x29, #-2]
ldurb w12, [x29, #-1]
ldurb w11, [x29, #-2]
ldrb w10, [x8, _x@PAGEOFF]
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
ldurb w8, [x29, #-1]
ldurb w9, [x29, #-2]
subs w8, w8, w9
cset w8, ne
and w8, w8, #0x1
and w0, w8, #0xff
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _x ; @x
.zerofill __DATA,__common,_x,1,0
.zerofill __DATA,__bss,_ret,1,0 ; @ret
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "cx:%d x:%d\n"
l_.str.1: ; @.str.1
.asciz "cx:%d cy:%d x:%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)
LBB0_1: ## =>This Inner Loop Header: Depth=1
callq _PrintVar1
movzbl %al, %ecx
movzbl _ret(%rip), %eax
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, _ret(%rip)
callq _PrintVar2
movzbl %al, %ecx
movzbl _ret(%rip), %eax
orl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, _ret(%rip)
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movb _x(%rip), %al
addb $1, %al
movb %al, _x(%rip)
movzbl %al, %eax
cmpl $10, %eax
jl LBB0_1
## %bb.3:
movzbl _ret(%rip), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function PrintVar1
_PrintVar1: ## @PrintVar1
.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
movzbl _x(%rip), %eax
addl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -1(%rbp)
movzbl -1(%rbp), %esi
movzbl _x(%rip), %edx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movzbl -1(%rbp), %eax
cmpl $0, %eax
sete %al
andb $1, %al
movzbl %al, %eax
## kill: def $al killed $al killed $eax
movzbl %al, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function PrintVar2
_PrintVar2: ## @PrintVar2
.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
movzbl _x(%rip), %eax
addl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -1(%rbp)
movzbl _x(%rip), %eax
addl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -2(%rbp)
movzbl -1(%rbp), %esi
movzbl -2(%rbp), %edx
movzbl _x(%rip), %ecx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movzbl -1(%rbp), %eax
movzbl -2(%rbp), %ecx
cmpl %ecx, %eax
setne %al
andb $1, %al
movzbl %al, %eax
## kill: def $al killed $al killed $eax
movzbl %al, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _x ## @x
.zerofill __DATA,__common,_x,1,0
.zerofill __DATA,__bss,_ret,1,0 ## @ret
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "cx:%d x:%d\n"
L_.str.1: ## @.str.1
.asciz "cx:%d cy:%d x:%d\n"
.subsections_via_symbols
| the_stack_data/975437.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
mov w9, #16272
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #3, lsl #12 ; =12288
sub sp, sp, #3984
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
mov w8, #0
str w8, [sp, #12] ; 4-byte Folded Spill
str wzr, [sp, #68]
str w0, [sp, #64]
str x1, [sp, #56]
ldr x8, [sp, #56]
ldr x0, [x8, #8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fopen
str x0, [sp, #48]
ldr x8, [sp, #56]
ldr x0, [x8, #16]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fopen
ldr w2, [sp, #12] ; 4-byte Folded Reload
str x0, [sp, #40]
ldr x0, [sp, #48]
add x1, sp, #1, lsl #12 ; =4096
add x1, x1, #4072
mov x3, #8096
str x3, [sp, #16] ; 8-byte Folded Spill
bl _setvbuf
ldr w2, [sp, #12] ; 4-byte Folded Reload
ldr x3, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #40]
add x1, sp, #72
bl _setvbuf
mov w8, #199
strb w8, [sp, #39]
str wzr, [sp, #28]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x0, [sp, #48]
bl _fgetc
str w0, [sp, #32]
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
b LBB0_4
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #32]
and w8, w8, #0xff
ldrb w9, [sp, #39]
eor w0, w8, w9
ldr x1, [sp, #40]
bl _fputc
ldrb w8, [sp, #39]
ldr w9, [sp, #28]
mov w11, #133
sdiv w10, w9, w11
mul w10, w10, w11
subs w10, w9, w10
mov w9, #3
mul w9, w9, w10
add w8, w8, w9
and w8, w8, #0xff
strb w8, [sp, #39]
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_1
LBB0_4:
ldr x0, [sp, #40]
bl _fclose
ldr x0, [sp, #48]
bl _fclose
ldr w8, [sp, #68]
str w8, [sp, #8] ; 4-byte Folded Spill
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
bl ___stack_chk_fail
LBB0_6:
ldr w0, [sp, #8] ; 4-byte Folded Reload
add sp, sp, #3, lsl #12 ; =12288
add sp, sp, #3984
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 "rb"
l_.str.1: ; @.str.1
.asciz "wb"
.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 $16272, %eax ## imm = 0x3F90
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -16212(%rbp)
movl %edi, -16216(%rbp)
movq %rsi, -16224(%rbp)
movq -16224(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str(%rip), %rsi
callq _fopen
movq %rax, -16232(%rbp)
movq -16224(%rbp), %rax
movq 16(%rax), %rdi
leaq L_.str.1(%rip), %rsi
callq _fopen
movq %rax, -16240(%rbp)
movq -16232(%rbp), %rdi
leaq -8112(%rbp), %rsi
xorl %edx, %edx
movl $8096, %ecx ## imm = 0x1FA0
callq _setvbuf
movq -16240(%rbp), %rdi
leaq -16208(%rbp), %rsi
xorl %edx, %edx
movl $8096, %ecx ## imm = 0x1FA0
callq _setvbuf
movb $-57, -16241(%rbp)
movl $0, -16252(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16232(%rbp), %rdi
callq _fgetc
movl %eax, -16248(%rbp)
cmpl $-1, %eax
jne LBB0_3
## %bb.2:
jmp LBB0_4
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movl -16248(%rbp), %eax
## kill: def $al killed $al killed $eax
movzbl %al, %edi
movzbl -16241(%rbp), %eax
xorl %eax, %edi
movq -16240(%rbp), %rsi
callq _fputc
movzbl -16241(%rbp), %eax
movl %eax, -16256(%rbp) ## 4-byte Spill
movl -16252(%rbp), %eax
movl $133, %ecx
cltd
idivl %ecx
movl -16256(%rbp), %eax ## 4-byte Reload
imull $3, %edx, %ecx
addl %ecx, %eax
andl $255, %eax
## kill: def $al killed $al killed $eax
movb %al, -16241(%rbp)
movl -16252(%rbp), %eax
addl $1, %eax
movl %eax, -16252(%rbp)
jmp LBB0_1
LBB0_4:
movq -16240(%rbp), %rdi
callq _fclose
movq -16232(%rbp), %rdi
callq _fclose
movl -16212(%rbp), %eax
movl %eax, -16260(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_6
## %bb.5:
movl -16260(%rbp), %eax ## 4-byte Reload
addq $16272, %rsp ## imm = 0x3F90
popq %rbp
retq
LBB0_6:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "rb"
L_.str.1: ## @.str.1
.asciz "wb"
.subsections_via_symbols
| the_stack_data/144219.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ssl3_accept ; -- Begin function ssl3_accept
.p2align 2
_ssl3_accept: ; @ssl3_accept
.cfi_startproc
; %bb.0:
sub sp, sp, #336
.cfi_def_cfa_offset 336
stp x28, x27, [sp, #304] ; 16-byte Folded Spill
stp x29, x30, [sp, #320] ; 16-byte Folded Spill
add x29, sp, #320
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
stur w0, [x29, #-24]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-28]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-32]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-48]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-60]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-72]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-80]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-84]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-88]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-92]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-96]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-100]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-104]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-108]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-112]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-120]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-128]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-132]
bl ___VERIFIER_nondet_int
stur w0, [x29, #-140]
bl ___VERIFIER_nondet_int
str w0, [sp, #104]
bl ___VERIFIER_nondet_int
str w0, [sp, #100]
bl ___VERIFIER_nondet_int
str w0, [sp, #96]
bl ___VERIFIER_nondet_int
str w0, [sp, #92]
bl ___VERIFIER_nondet_int
str w0, [sp, #88]
bl ___VERIFIER_nondet_int
str w0, [sp, #84]
bl ___VERIFIER_nondet_long
str x0, [sp, #72]
bl ___VERIFIER_nondet_int
str w0, [sp, #68]
bl ___VERIFIER_nondet_int
str w0, [sp, #64]
ldur w8, [x29, #-24]
stur w8, [x29, #-36]
str wzr, [sp, #60]
bl ___VERIFIER_nondet_int
; implicit-def: $x8
mov x8, x0
sxtw x8, w8
str x8, [sp, #144]
ldr x8, [sp, #144]
str x8, [sp, #152]
str wzr, [sp, #140]
mov w8, #-1
str w8, [sp, #124]
str wzr, [sp, #112]
str wzr, [sp, #108]
ldur w8, [x29, #-28]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur w8, [x29, #-28]
str w8, [sp, #140]
b LBB0_5
LBB0_2:
ldur w8, [x29, #-100]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur w8, [x29, #-100]
str w8, [sp, #140]
b LBB0_4
LBB0_4:
b LBB0_5
LBB0_5:
ldur w8, [x29, #-32]
add w8, w8, #1
stur w8, [x29, #-32]
ldr w8, [sp, #104]
add w8, w8, #3, lsl #12 ; =12288
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_6
LBB0_6:
ldr w8, [sp, #100]
add w8, w8, #4, lsl #12 ; =16384
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
b LBB0_8
LBB0_8:
b LBB0_9
LBB0_9:
ldur w8, [x29, #-80]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
mov w8, #-1
stur w8, [x29, #-20]
b LBB0_315
LBB0_11:
b LBB0_12
LBB0_12: ; =>This Inner Loop Header: Depth=1
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
str w8, [sp, #116]
ldur w8, [x29, #-36]
mov w9, #12292
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_12 Depth=1
b LBB0_84
LBB0_15: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
subs w8, w8, #4, lsl #12 ; =16384
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_12 Depth=1
b LBB0_85
LBB0_17: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
subs w8, w8, #2, lsl #12 ; =8192
cset w8, ne
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_12 Depth=1
b LBB0_86
LBB0_19: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
subs w8, w8, #6, lsl #12 ; =24576
cset w8, ne
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_12 Depth=1
b LBB0_87
LBB0_21: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8195
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_23
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_12 Depth=1
b LBB0_88
LBB0_23: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8480
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_25
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_12 Depth=1
b LBB0_106
LBB0_25: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8481
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_27
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_12 Depth=1
b LBB0_107
LBB0_27: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8482
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_29
b LBB0_28
LBB0_28: ; in Loop: Header=BB0_12 Depth=1
b LBB0_110
LBB0_29: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8464
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_31
b LBB0_30
LBB0_30: ; in Loop: Header=BB0_12 Depth=1
b LBB0_111
LBB0_31: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8465
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_33
b LBB0_32
LBB0_32: ; in Loop: Header=BB0_12 Depth=1
b LBB0_112
LBB0_33: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8466
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_35
b LBB0_34
LBB0_34: ; in Loop: Header=BB0_12 Depth=1
b LBB0_113
LBB0_35: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8496
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_37
b LBB0_36
LBB0_36: ; in Loop: Header=BB0_12 Depth=1
b LBB0_118
LBB0_37: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8497
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_39
b LBB0_38
LBB0_38: ; in Loop: Header=BB0_12 Depth=1
b LBB0_119
LBB0_39: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8512
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_41
b LBB0_40
LBB0_40: ; in Loop: Header=BB0_12 Depth=1
b LBB0_127
LBB0_41: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8513
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_43
b LBB0_42
LBB0_42: ; in Loop: Header=BB0_12 Depth=1
b LBB0_128
LBB0_43: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8528
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_45
b LBB0_44
LBB0_44: ; in Loop: Header=BB0_12 Depth=1
b LBB0_134
LBB0_45: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8529
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_47
b LBB0_46
LBB0_46: ; in Loop: Header=BB0_12 Depth=1
b LBB0_135
LBB0_47: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8544
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_49
b LBB0_48
LBB0_48: ; in Loop: Header=BB0_12 Depth=1
b LBB0_163
LBB0_49: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8545
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_51
b LBB0_50
LBB0_50: ; in Loop: Header=BB0_12 Depth=1
b LBB0_164
LBB0_51: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8560
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_53
b LBB0_52
LBB0_52: ; in Loop: Header=BB0_12 Depth=1
b LBB0_184
LBB0_53: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8561
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_55
b LBB0_54
LBB0_54: ; in Loop: Header=BB0_12 Depth=1
b LBB0_185
LBB0_55: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8448
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_57
b LBB0_56
LBB0_56: ; in Loop: Header=BB0_12 Depth=1
b LBB0_188
LBB0_57: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8576
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_59
b LBB0_58
LBB0_58: ; in Loop: Header=BB0_12 Depth=1
b LBB0_193
LBB0_59: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8577
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_61
b LBB0_60
LBB0_60: ; in Loop: Header=BB0_12 Depth=1
b LBB0_194
LBB0_61: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8592
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_63
b LBB0_62
LBB0_62: ; in Loop: Header=BB0_12 Depth=1
b LBB0_202
LBB0_63: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8593
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_65
b LBB0_64
LBB0_64: ; in Loop: Header=BB0_12 Depth=1
b LBB0_203
LBB0_65: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8608
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_67
b LBB0_66
LBB0_66: ; in Loop: Header=BB0_12 Depth=1
b LBB0_206
LBB0_67: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8609
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_69
b LBB0_68
LBB0_68: ; in Loop: Header=BB0_12 Depth=1
b LBB0_207
LBB0_69: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8640
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_71
b LBB0_70
LBB0_70: ; in Loop: Header=BB0_12 Depth=1
b LBB0_210
LBB0_71: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8641
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_73
b LBB0_72
LBB0_72: ; in Loop: Header=BB0_12 Depth=1
b LBB0_211
LBB0_73: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8656
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_75
b LBB0_74
LBB0_74: ; in Loop: Header=BB0_12 Depth=1
b LBB0_225
LBB0_75: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8657
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_77
b LBB0_76
LBB0_76: ; in Loop: Header=BB0_12 Depth=1
b LBB0_226
LBB0_77: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8672
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_79
b LBB0_78
LBB0_78: ; in Loop: Header=BB0_12 Depth=1
b LBB0_241
LBB0_79: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
mov w9, #8673
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_81
b LBB0_80
LBB0_80: ; in Loop: Header=BB0_12 Depth=1
b LBB0_242
LBB0_81:
ldur w8, [x29, #-36]
subs w8, w8, #3
cset w8, ne
tbnz w8, #0, LBB0_83
b LBB0_82
LBB0_82:
b LBB0_256
LBB0_83:
b LBB0_261
LBB0_84: ; in Loop: Header=BB0_12 Depth=1
mov w8, #1
stur w8, [x29, #-40]
b LBB0_85
LBB0_85: ; in Loop: Header=BB0_12 Depth=1
b LBB0_86
LBB0_86: ; in Loop: Header=BB0_12 Depth=1
b LBB0_87
LBB0_87: ; in Loop: Header=BB0_12 Depth=1
b LBB0_88
LBB0_88: ; in Loop: Header=BB0_12 Depth=1
mov w8, #1
stur w8, [x29, #-44]
ldr w8, [sp, #140]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_90
b LBB0_89
LBB0_89: ; in Loop: Header=BB0_12 Depth=1
b LBB0_90
LBB0_90: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-48]
lsl w8, w8, #3
str w8, [sp, #56]
ldr w8, [sp, #56]
subs w8, w8, #3
cset w8, eq
tbnz w8, #0, LBB0_92
b LBB0_91
LBB0_91:
mov w8, #-1
stur w8, [x29, #-20]
b LBB0_315
LBB0_92: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8192
stur w8, [x29, #-52]
ldur w8, [x29, #-68]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_98
b LBB0_93
LBB0_93: ; in Loop: Header=BB0_12 Depth=1
bl ___VERIFIER_nondet_int
stur w0, [x29, #-148]
ldur w8, [x29, #-148]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_95
b LBB0_94
LBB0_94:
mov w8, #-1
str w8, [sp, #124]
b LBB0_311
LBB0_95: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #96]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_97
b LBB0_96
LBB0_96:
mov w8, #-1
str w8, [sp, #124]
b LBB0_311
LBB0_97: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-148]
stur w8, [x29, #-68]
b LBB0_98
LBB0_98: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #92]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_100
b LBB0_99
LBB0_99:
mov w8, #-1
str w8, [sp, #124]
b LBB0_311
LBB0_100: ; in Loop: Header=BB0_12 Depth=1
stur wzr, [x29, #-56]
ldur w8, [x29, #-36]
mov w9, #12292
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_104
b LBB0_101
LBB0_101: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #88]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_103
b LBB0_102
LBB0_102:
mov w8, #-1
str w8, [sp, #124]
b LBB0_311
LBB0_103: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8464
stur w8, [x29, #-36]
ldur w8, [x29, #-108]
add w8, w8, #1
stur w8, [x29, #-108]
b LBB0_105
LBB0_104: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-104]
add w8, w8, #1
stur w8, [x29, #-104]
mov w8, #8480
stur w8, [x29, #-36]
b LBB0_105
LBB0_105: ; in Loop: Header=BB0_12 Depth=1
b LBB0_262
LBB0_106: ; in Loop: Header=BB0_12 Depth=1
b LBB0_107
LBB0_107: ; in Loop: Header=BB0_12 Depth=1
stur wzr, [x29, #-76]
bl ___VERIFIER_nondet_int
str w0, [sp, #124]
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_109
b LBB0_108
LBB0_108:
b LBB0_311
LBB0_109: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8482
stur w8, [x29, #-136]
mov w8, #8448
stur w8, [x29, #-36]
stur wzr, [x29, #-56]
b LBB0_262
LBB0_110: ; in Loop: Header=BB0_12 Depth=1
mov w8, #3
stur w8, [x29, #-36]
b LBB0_262
LBB0_111: ; in Loop: Header=BB0_12 Depth=1
b LBB0_112
LBB0_112: ; in Loop: Header=BB0_12 Depth=1
b LBB0_113
LBB0_113: ; in Loop: Header=BB0_12 Depth=1
stur wzr, [x29, #-76]
bl ___VERIFIER_nondet_int
str w0, [sp, #124]
ldr w8, [sp, #60]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_115
b LBB0_114
LBB0_114: ; in Loop: Header=BB0_12 Depth=1
mov w8, #1
str w8, [sp, #60]
b LBB0_115
LBB0_115: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_117
b LBB0_116
LBB0_116:
b LBB0_311
LBB0_117: ; in Loop: Header=BB0_12 Depth=1
mov w8, #1
str w8, [sp, #108]
mov w8, #8496
stur w8, [x29, #-36]
stur wzr, [x29, #-56]
b LBB0_262
LBB0_118: ; in Loop: Header=BB0_12 Depth=1
b LBB0_119
LBB0_119: ; in Loop: Header=BB0_12 Depth=1
bl ___VERIFIER_nondet_int
str w0, [sp, #124]
ldr w8, [sp, #60]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_121
b LBB0_120
LBB0_120: ; in Loop: Header=BB0_12 Depth=1
mov w8, #2
str w8, [sp, #60]
b LBB0_121
LBB0_121: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_123
b LBB0_122
LBB0_122:
b LBB0_311
LBB0_123: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-60]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_125
b LBB0_124
LBB0_124: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8656
stur w8, [x29, #-36]
b LBB0_126
LBB0_125: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8512
stur w8, [x29, #-36]
b LBB0_126
LBB0_126: ; in Loop: Header=BB0_12 Depth=1
stur wzr, [x29, #-56]
b LBB0_262
LBB0_127: ; in Loop: Header=BB0_12 Depth=1
b LBB0_128
LBB0_128: ; in Loop: Header=BB0_12 Depth=1
ldursw x8, [x29, #-132]
str x8, [sp, #48]
ldr x8, [sp, #48]
add x8, x8, #256
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_130
b LBB0_129
LBB0_129: ; in Loop: Header=BB0_12 Depth=1
mov w8, #1
str w8, [sp, #112]
b LBB0_133
LBB0_130: ; in Loop: Header=BB0_12 Depth=1
bl ___VERIFIER_nondet_int
str w0, [sp, #124]
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_132
b LBB0_131
LBB0_131:
b LBB0_311
LBB0_132: ; in Loop: Header=BB0_12 Depth=1
b LBB0_133
LBB0_133: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8528
stur w8, [x29, #-36]
stur wzr, [x29, #-56]
b LBB0_262
LBB0_134: ; in Loop: Header=BB0_12 Depth=1
b LBB0_135
LBB0_135: ; in Loop: Header=BB0_12 Depth=1
ldursw x8, [x29, #-132]
str x8, [sp, #160]
ldursw x8, [x29, #-84]
str x8, [sp, #40]
ldr x8, [sp, #40]
add x8, x8, #512, lsl #12 ; =2097152
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_137
b LBB0_136
LBB0_136: ; in Loop: Header=BB0_12 Depth=1
mov w8, #1
stur w8, [x29, #-124]
b LBB0_138
LBB0_137: ; in Loop: Header=BB0_12 Depth=1
stur wzr, [x29, #-124]
b LBB0_138
LBB0_138: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-124]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_140
b LBB0_139
LBB0_139: ; in Loop: Header=BB0_12 Depth=1
b LBB0_151
LBB0_140: ; in Loop: Header=BB0_12 Depth=1
ldr x8, [sp, #160]
add x8, x8, #30
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_142
b LBB0_141
LBB0_141: ; in Loop: Header=BB0_12 Depth=1
b LBB0_151
LBB0_142: ; in Loop: Header=BB0_12 Depth=1
ldr x8, [sp, #160]
add x8, x8, #1
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_159
b LBB0_143
LBB0_143: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-96]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_145
b LBB0_144
LBB0_144: ; in Loop: Header=BB0_12 Depth=1
b LBB0_151
LBB0_145: ; in Loop: Header=BB0_12 Depth=1
ldursw x8, [x29, #-140]
str x8, [sp, #32]
ldr x8, [sp, #32]
add x8, x8, #2
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_156
b LBB0_146
LBB0_146: ; in Loop: Header=BB0_12 Depth=1
ldursw x8, [x29, #-140]
str x8, [sp, #24]
ldr x8, [sp, #24]
add x8, x8, #4
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_148
b LBB0_147
LBB0_147: ; in Loop: Header=BB0_12 Depth=1
mov w8, #512
str w8, [sp, #80]
b LBB0_149
LBB0_148: ; in Loop: Header=BB0_12 Depth=1
mov w8, #1024
str w8, [sp, #80]
b LBB0_149
LBB0_149: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #84]
lsl w8, w8, #3
str w8, [sp, #20]
ldr w8, [sp, #20]
ldr w9, [sp, #80]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_154
b LBB0_150
LBB0_150: ; in Loop: Header=BB0_12 Depth=1
b LBB0_151
LBB0_151: ; in Loop: Header=BB0_12 Depth=1
bl ___VERIFIER_nondet_int
str w0, [sp, #124]
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_153
b LBB0_152
LBB0_152:
b LBB0_311
LBB0_153: ; in Loop: Header=BB0_12 Depth=1
b LBB0_155
LBB0_154: ; in Loop: Header=BB0_12 Depth=1
mov w8, #1
str w8, [sp, #112]
b LBB0_155
LBB0_155: ; in Loop: Header=BB0_12 Depth=1
b LBB0_157
LBB0_156: ; in Loop: Header=BB0_12 Depth=1
mov w8, #1
str w8, [sp, #112]
b LBB0_157
LBB0_157: ; in Loop: Header=BB0_12 Depth=1
b LBB0_158
LBB0_158: ; in Loop: Header=BB0_12 Depth=1
b LBB0_160
LBB0_159: ; in Loop: Header=BB0_12 Depth=1
mov w8, #1
str w8, [sp, #112]
b LBB0_160
LBB0_160: ; in Loop: Header=BB0_12 Depth=1
b LBB0_161
LBB0_161: ; in Loop: Header=BB0_12 Depth=1
b LBB0_162
LBB0_162: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8544
stur w8, [x29, #-36]
stur wzr, [x29, #-56]
b LBB0_262
LBB0_163: ; in Loop: Header=BB0_12 Depth=1
b LBB0_164
LBB0_164: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-88]
add w8, w8, #1
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_182
b LBB0_165
LBB0_165: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-92]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_170
b LBB0_166
LBB0_166: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-88]
add w8, w8, #4
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_168
b LBB0_167
LBB0_167: ; in Loop: Header=BB0_12 Depth=1
mov w8, #1
str w8, [sp, #112]
stur wzr, [x29, #-116]
mov w8, #8560
stur w8, [x29, #-36]
b LBB0_169
LBB0_168: ; in Loop: Header=BB0_12 Depth=1
b LBB0_171
LBB0_169: ; in Loop: Header=BB0_12 Depth=1
b LBB0_181
LBB0_170: ; in Loop: Header=BB0_12 Depth=1
b LBB0_171
LBB0_171: ; in Loop: Header=BB0_12 Depth=1
ldursw x8, [x29, #-132]
str x8, [sp, #8]
ldr x8, [sp, #8]
add x8, x8, #256
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_176
b LBB0_172
LBB0_172: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-88]
add w8, w8, #2
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_174
b LBB0_173
LBB0_173: ; in Loop: Header=BB0_12 Depth=1
b LBB0_177
LBB0_174: ; in Loop: Header=BB0_12 Depth=1
mov w8, #1
str w8, [sp, #112]
stur wzr, [x29, #-116]
mov w8, #8560
stur w8, [x29, #-36]
b LBB0_175
LBB0_175: ; in Loop: Header=BB0_12 Depth=1
b LBB0_180
LBB0_176: ; in Loop: Header=BB0_12 Depth=1
b LBB0_177
LBB0_177: ; in Loop: Header=BB0_12 Depth=1
mov w8, #1
stur w8, [x29, #-116]
bl ___VERIFIER_nondet_int
str w0, [sp, #124]
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_179
b LBB0_178
LBB0_178:
b LBB0_311
LBB0_179: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8448
stur w8, [x29, #-36]
mov w8, #8576
stur w8, [x29, #-136]
stur wzr, [x29, #-56]
b LBB0_180
LBB0_180: ; in Loop: Header=BB0_12 Depth=1
b LBB0_181
LBB0_181: ; in Loop: Header=BB0_12 Depth=1
b LBB0_183
LBB0_182: ; in Loop: Header=BB0_12 Depth=1
mov w8, #1
str w8, [sp, #112]
stur wzr, [x29, #-116]
mov w8, #8560
stur w8, [x29, #-36]
b LBB0_183
LBB0_183: ; in Loop: Header=BB0_12 Depth=1
b LBB0_262
LBB0_184: ; in Loop: Header=BB0_12 Depth=1
b LBB0_185
LBB0_185: ; in Loop: Header=BB0_12 Depth=1
bl ___VERIFIER_nondet_int
str w0, [sp, #124]
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_187
b LBB0_186
LBB0_186:
b LBB0_311
LBB0_187: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8576
stur w8, [x29, #-136]
mov w8, #8448
stur w8, [x29, #-36]
stur wzr, [x29, #-56]
b LBB0_262
LBB0_188: ; in Loop: Header=BB0_12 Depth=1
ldr x8, [sp, #128]
subs x8, x8, #0
cset w8, le
tbnz w8, #0, LBB0_192
b LBB0_189
LBB0_189: ; in Loop: Header=BB0_12 Depth=1
mov w8, #2
stur w8, [x29, #-64]
ldr x8, [sp, #72]
str x8, [sp, #128]
ldr x8, [sp, #128]
subs x8, x8, #0
cset w8, gt
tbnz w8, #0, LBB0_191
b LBB0_190
LBB0_190:
mov w8, #-1
str w8, [sp, #124]
b LBB0_311
LBB0_191: ; in Loop: Header=BB0_12 Depth=1
mov w8, #1
stur w8, [x29, #-64]
b LBB0_192
LBB0_192: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-136]
stur w8, [x29, #-36]
b LBB0_262
LBB0_193: ; in Loop: Header=BB0_12 Depth=1
b LBB0_194
LBB0_194: ; in Loop: Header=BB0_12 Depth=1
bl ___VERIFIER_nondet_int
str w0, [sp, #124]
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_196
b LBB0_195
LBB0_195:
b LBB0_311
LBB0_196: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #124]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB0_198
b LBB0_197
LBB0_197: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8466
stur w8, [x29, #-36]
b LBB0_201
LBB0_198: ; in Loop: Header=BB0_12 Depth=1
bl ___VERIFIER_nondet_int
str w0, [sp, #124]
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_200
b LBB0_199
LBB0_199:
b LBB0_311
LBB0_200: ; in Loop: Header=BB0_12 Depth=1
stur wzr, [x29, #-56]
mov w8, #8592
stur w8, [x29, #-36]
b LBB0_201
LBB0_201: ; in Loop: Header=BB0_12 Depth=1
b LBB0_262
LBB0_202: ; in Loop: Header=BB0_12 Depth=1
b LBB0_203
LBB0_203: ; in Loop: Header=BB0_12 Depth=1
bl ___VERIFIER_nondet_int
str w0, [sp, #124]
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_205
b LBB0_204
LBB0_204:
b LBB0_311
LBB0_205: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8608
stur w8, [x29, #-36]
stur wzr, [x29, #-56]
b LBB0_262
LBB0_206: ; in Loop: Header=BB0_12 Depth=1
b LBB0_207
LBB0_207: ; in Loop: Header=BB0_12 Depth=1
bl ___VERIFIER_nondet_int
str w0, [sp, #124]
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_209
b LBB0_208
LBB0_208:
b LBB0_311
LBB0_209: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8640
stur w8, [x29, #-36]
stur wzr, [x29, #-56]
b LBB0_262
LBB0_210: ; in Loop: Header=BB0_12 Depth=1
b LBB0_211
LBB0_211: ; in Loop: Header=BB0_12 Depth=1
bl ___VERIFIER_nondet_int
str w0, [sp, #124]
ldr w8, [sp, #60]
subs w8, w8, #4
cset w8, ne
tbnz w8, #0, LBB0_213
b LBB0_212
LBB0_212: ; in Loop: Header=BB0_12 Depth=1
mov w8, #5
str w8, [sp, #60]
b LBB0_219
LBB0_213: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #60]
subs w8, w8, #7
cset w8, ne
tbnz w8, #0, LBB0_215
b LBB0_214
LBB0_214: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8
str w8, [sp, #60]
b LBB0_218
LBB0_215: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #60]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB0_217
b LBB0_216
LBB0_216:
b LBB0_314
LBB0_217: ; in Loop: Header=BB0_12 Depth=1
b LBB0_218
LBB0_218: ; in Loop: Header=BB0_12 Depth=1
b LBB0_219
LBB0_219: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_221
b LBB0_220
LBB0_220:
b LBB0_311
LBB0_221: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-60]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_223
b LBB0_222
LBB0_222: ; in Loop: Header=BB0_12 Depth=1
mov w8, #3
stur w8, [x29, #-36]
b LBB0_224
LBB0_223: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8656
stur w8, [x29, #-36]
b LBB0_224
LBB0_224: ; in Loop: Header=BB0_12 Depth=1
stur wzr, [x29, #-56]
b LBB0_262
LBB0_225: ; in Loop: Header=BB0_12 Depth=1
b LBB0_226
LBB0_226: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-128]
stur w8, [x29, #-144]
ldr w8, [sp, #68]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_228
b LBB0_227
LBB0_227:
mov w8, #-1
str w8, [sp, #124]
b LBB0_311
LBB0_228: ; in Loop: Header=BB0_12 Depth=1
bl ___VERIFIER_nondet_int
str w0, [sp, #124]
ldr w8, [sp, #60]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB0_230
b LBB0_229
LBB0_229: ; in Loop: Header=BB0_12 Depth=1
mov w8, #3
str w8, [sp, #60]
b LBB0_236
LBB0_230: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #60]
subs w8, w8, #5
cset w8, ne
tbnz w8, #0, LBB0_232
b LBB0_231
LBB0_231: ; in Loop: Header=BB0_12 Depth=1
mov w8, #6
str w8, [sp, #60]
b LBB0_235
LBB0_232: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #60]
subs w8, w8, #8
cset w8, ne
tbnz w8, #0, LBB0_234
b LBB0_233
LBB0_233: ; in Loop: Header=BB0_12 Depth=1
mov w8, #9
str w8, [sp, #60]
b LBB0_234
LBB0_234: ; in Loop: Header=BB0_12 Depth=1
b LBB0_235
LBB0_235: ; in Loop: Header=BB0_12 Depth=1
b LBB0_236
LBB0_236: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_238
b LBB0_237
LBB0_237:
b LBB0_311
LBB0_238: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8672
stur w8, [x29, #-36]
stur wzr, [x29, #-56]
ldr w8, [sp, #64]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_240
b LBB0_239
LBB0_239:
mov w8, #-1
str w8, [sp, #124]
b LBB0_311
LBB0_240: ; in Loop: Header=BB0_12 Depth=1
b LBB0_262
LBB0_241: ; in Loop: Header=BB0_12 Depth=1
b LBB0_242
LBB0_242: ; in Loop: Header=BB0_12 Depth=1
bl ___VERIFIER_nondet_int
str w0, [sp, #124]
ldr w8, [sp, #60]
subs w8, w8, #3
cset w8, ne
tbnz w8, #0, LBB0_244
b LBB0_243
LBB0_243: ; in Loop: Header=BB0_12 Depth=1
mov w8, #4
str w8, [sp, #60]
b LBB0_250
LBB0_244: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #60]
subs w8, w8, #6
cset w8, ne
tbnz w8, #0, LBB0_246
b LBB0_245
LBB0_245: ; in Loop: Header=BB0_12 Depth=1
mov w8, #7
str w8, [sp, #60]
b LBB0_249
LBB0_246: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #60]
subs w8, w8, #9
cset w8, ne
tbnz w8, #0, LBB0_248
b LBB0_247
LBB0_247: ; in Loop: Header=BB0_12 Depth=1
mov w8, #10
str w8, [sp, #60]
b LBB0_248
LBB0_248: ; in Loop: Header=BB0_12 Depth=1
b LBB0_249
LBB0_249: ; in Loop: Header=BB0_12 Depth=1
b LBB0_250
LBB0_250: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_252
b LBB0_251
LBB0_251:
b LBB0_311
LBB0_252: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8448
stur w8, [x29, #-36]
ldur w8, [x29, #-60]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_254
b LBB0_253
LBB0_253: ; in Loop: Header=BB0_12 Depth=1
mov w8, #8640
stur w8, [x29, #-136]
b LBB0_255
LBB0_254: ; in Loop: Header=BB0_12 Depth=1
mov w8, #3
stur w8, [x29, #-136]
b LBB0_255
LBB0_255: ; in Loop: Header=BB0_12 Depth=1
stur wzr, [x29, #-56]
b LBB0_262
LBB0_256:
stur wzr, [x29, #-68]
stur wzr, [x29, #-56]
ldr w8, [sp, #108]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_260
b LBB0_257
LBB0_257:
stur wzr, [x29, #-40]
ldur w8, [x29, #-112]
add w8, w8, #1
stur w8, [x29, #-112]
ldr w8, [sp, #140]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_259
b LBB0_258
LBB0_258:
b LBB0_259
LBB0_259:
b LBB0_260
LBB0_260:
mov w8, #1
str w8, [sp, #124]
b LBB0_311
LBB0_261:
mov w8, #-1
str w8, [sp, #124]
b LBB0_311
LBB0_262: ; in Loop: Header=BB0_12 Depth=1
b LBB0_263
LBB0_263: ; in Loop: Header=BB0_12 Depth=1
b LBB0_264
LBB0_264: ; in Loop: Header=BB0_12 Depth=1
b LBB0_265
LBB0_265: ; in Loop: Header=BB0_12 Depth=1
b LBB0_266
LBB0_266: ; in Loop: Header=BB0_12 Depth=1
b LBB0_267
LBB0_267: ; in Loop: Header=BB0_12 Depth=1
b LBB0_268
LBB0_268: ; in Loop: Header=BB0_12 Depth=1
b LBB0_269
LBB0_269: ; in Loop: Header=BB0_12 Depth=1
b LBB0_270
LBB0_270: ; in Loop: Header=BB0_12 Depth=1
b LBB0_271
LBB0_271: ; in Loop: Header=BB0_12 Depth=1
b LBB0_272
LBB0_272: ; in Loop: Header=BB0_12 Depth=1
b LBB0_273
LBB0_273: ; in Loop: Header=BB0_12 Depth=1
b LBB0_274
LBB0_274: ; in Loop: Header=BB0_12 Depth=1
b LBB0_275
LBB0_275: ; in Loop: Header=BB0_12 Depth=1
b LBB0_276
LBB0_276: ; in Loop: Header=BB0_12 Depth=1
b LBB0_277
LBB0_277: ; in Loop: Header=BB0_12 Depth=1
b LBB0_278
LBB0_278: ; in Loop: Header=BB0_12 Depth=1
b LBB0_279
LBB0_279: ; in Loop: Header=BB0_12 Depth=1
b LBB0_280
LBB0_280: ; in Loop: Header=BB0_12 Depth=1
b LBB0_281
LBB0_281: ; in Loop: Header=BB0_12 Depth=1
b LBB0_282
LBB0_282: ; in Loop: Header=BB0_12 Depth=1
b LBB0_283
LBB0_283: ; in Loop: Header=BB0_12 Depth=1
b LBB0_284
LBB0_284: ; in Loop: Header=BB0_12 Depth=1
b LBB0_285
LBB0_285: ; in Loop: Header=BB0_12 Depth=1
b LBB0_286
LBB0_286: ; in Loop: Header=BB0_12 Depth=1
b LBB0_287
LBB0_287: ; in Loop: Header=BB0_12 Depth=1
b LBB0_288
LBB0_288: ; in Loop: Header=BB0_12 Depth=1
b LBB0_289
LBB0_289: ; in Loop: Header=BB0_12 Depth=1
b LBB0_290
LBB0_290: ; in Loop: Header=BB0_12 Depth=1
b LBB0_291
LBB0_291: ; in Loop: Header=BB0_12 Depth=1
b LBB0_292
LBB0_292: ; in Loop: Header=BB0_12 Depth=1
b LBB0_293
LBB0_293: ; in Loop: Header=BB0_12 Depth=1
b LBB0_294
LBB0_294: ; in Loop: Header=BB0_12 Depth=1
b LBB0_295
LBB0_295: ; in Loop: Header=BB0_12 Depth=1
b LBB0_296
LBB0_296: ; in Loop: Header=BB0_12 Depth=1
b LBB0_297
LBB0_297: ; in Loop: Header=BB0_12 Depth=1
b LBB0_298
LBB0_298: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-120]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_310
b LBB0_299
LBB0_299: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #112]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_309
b LBB0_300
LBB0_300: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-72]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_304
b LBB0_301
LBB0_301: ; in Loop: Header=BB0_12 Depth=1
bl ___VERIFIER_nondet_int
str w0, [sp, #124]
ldr w8, [sp, #124]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB0_303
b LBB0_302
LBB0_302:
b LBB0_311
LBB0_303: ; in Loop: Header=BB0_12 Depth=1
b LBB0_304
LBB0_304: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #140]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_308
b LBB0_305
LBB0_305: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
ldr w9, [sp, #116]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_307
b LBB0_306
LBB0_306: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-36]
str w8, [sp, #120]
ldr w8, [sp, #116]
stur w8, [x29, #-36]
ldr w8, [sp, #120]
stur w8, [x29, #-36]
b LBB0_307
LBB0_307: ; in Loop: Header=BB0_12 Depth=1
b LBB0_308
LBB0_308: ; in Loop: Header=BB0_12 Depth=1
b LBB0_309
LBB0_309: ; in Loop: Header=BB0_12 Depth=1
b LBB0_310
LBB0_310: ; in Loop: Header=BB0_12 Depth=1
str wzr, [sp, #112]
b LBB0_12
LBB0_311:
ldur w8, [x29, #-32]
subs w8, w8, #1
stur w8, [x29, #-32]
ldr w8, [sp, #140]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_313
b LBB0_312
LBB0_312:
b LBB0_313
LBB0_313:
ldr w8, [sp, #124]
stur w8, [x29, #-20]
b LBB0_315
LBB0_314:
bl ___VERIFIER_error
LBB0_315:
ldur w0, [x29, #-20]
ldp x29, x30, [sp, #320] ; 16-byte Folded Reload
ldp x28, x27, [sp, #304] ; 16-byte Folded Reload
add sp, sp, #336
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov w8, #8464
str w8, [sp, #8]
ldr w0, [sp, #8]
bl _ssl3_accept
str w0, [sp, #4]
ldr w0, [sp, #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 _ssl3_accept ## -- Begin function ssl3_accept
.p2align 4, 0x90
_ssl3_accept: ## @ssl3_accept
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $304, %rsp ## imm = 0x130
movl %edi, -8(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -12(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -16(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -32(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -44(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -56(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -64(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -68(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -72(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -76(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -80(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -84(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -88(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -92(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -96(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -104(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -112(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -116(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -124(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -200(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -204(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -208(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -212(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -216(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -220(%rbp)
callq ___VERIFIER_nondet_long
movq %rax, -232(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -236(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -240(%rbp)
movl -8(%rbp), %eax
movl %eax, -20(%rbp)
movl $0, -244(%rbp)
callq ___VERIFIER_nondet_int
cltq
movq %rax, -160(%rbp)
movq -160(%rbp), %rax
movq %rax, -152(%rbp)
movl $0, -164(%rbp)
movl $-1, -180(%rbp)
movl $0, -192(%rbp)
movl $0, -196(%rbp)
cmpl $0, -12(%rbp)
je LBB0_2
## %bb.1:
movl -12(%rbp), %eax
movl %eax, -164(%rbp)
jmp LBB0_5
LBB0_2:
cmpl $0, -84(%rbp)
je LBB0_4
## %bb.3:
movl -84(%rbp), %eax
movl %eax, -164(%rbp)
LBB0_4:
jmp LBB0_5
LBB0_5:
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
movl -200(%rbp), %eax
addl $12288, %eax ## imm = 0x3000
cmpl $0, %eax
je LBB0_9
## %bb.6:
movl -204(%rbp), %eax
addl $16384, %eax ## imm = 0x4000
cmpl $0, %eax
je LBB0_8
## %bb.7:
jmp LBB0_8
LBB0_8:
jmp LBB0_9
LBB0_9:
cmpl $0, -64(%rbp)
jne LBB0_11
## %bb.10:
movl $-1, -4(%rbp)
jmp LBB0_315
LBB0_11:
jmp LBB0_12
LBB0_12: ## =>This Inner Loop Header: Depth=1
jmp LBB0_13
LBB0_13: ## in Loop: Header=BB0_12 Depth=1
movl -20(%rbp), %eax
movl %eax, -188(%rbp)
cmpl $12292, -20(%rbp) ## imm = 0x3004
jne LBB0_15
## %bb.14: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_84
LBB0_15: ## in Loop: Header=BB0_12 Depth=1
cmpl $16384, -20(%rbp) ## imm = 0x4000
jne LBB0_17
## %bb.16: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_85
LBB0_17: ## in Loop: Header=BB0_12 Depth=1
cmpl $8192, -20(%rbp) ## imm = 0x2000
jne LBB0_19
## %bb.18: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_86
LBB0_19: ## in Loop: Header=BB0_12 Depth=1
cmpl $24576, -20(%rbp) ## imm = 0x6000
jne LBB0_21
## %bb.20: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_87
LBB0_21: ## in Loop: Header=BB0_12 Depth=1
cmpl $8195, -20(%rbp) ## imm = 0x2003
jne LBB0_23
## %bb.22: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_88
LBB0_23: ## in Loop: Header=BB0_12 Depth=1
cmpl $8480, -20(%rbp) ## imm = 0x2120
jne LBB0_25
## %bb.24: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_106
LBB0_25: ## in Loop: Header=BB0_12 Depth=1
cmpl $8481, -20(%rbp) ## imm = 0x2121
jne LBB0_27
## %bb.26: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_107
LBB0_27: ## in Loop: Header=BB0_12 Depth=1
cmpl $8482, -20(%rbp) ## imm = 0x2122
jne LBB0_29
## %bb.28: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_110
LBB0_29: ## in Loop: Header=BB0_12 Depth=1
cmpl $8464, -20(%rbp) ## imm = 0x2110
jne LBB0_31
## %bb.30: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_111
LBB0_31: ## in Loop: Header=BB0_12 Depth=1
cmpl $8465, -20(%rbp) ## imm = 0x2111
jne LBB0_33
## %bb.32: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_112
LBB0_33: ## in Loop: Header=BB0_12 Depth=1
cmpl $8466, -20(%rbp) ## imm = 0x2112
jne LBB0_35
## %bb.34: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_113
LBB0_35: ## in Loop: Header=BB0_12 Depth=1
cmpl $8496, -20(%rbp) ## imm = 0x2130
jne LBB0_37
## %bb.36: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_118
LBB0_37: ## in Loop: Header=BB0_12 Depth=1
cmpl $8497, -20(%rbp) ## imm = 0x2131
jne LBB0_39
## %bb.38: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_119
LBB0_39: ## in Loop: Header=BB0_12 Depth=1
cmpl $8512, -20(%rbp) ## imm = 0x2140
jne LBB0_41
## %bb.40: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_127
LBB0_41: ## in Loop: Header=BB0_12 Depth=1
cmpl $8513, -20(%rbp) ## imm = 0x2141
jne LBB0_43
## %bb.42: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_128
LBB0_43: ## in Loop: Header=BB0_12 Depth=1
cmpl $8528, -20(%rbp) ## imm = 0x2150
jne LBB0_45
## %bb.44: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_134
LBB0_45: ## in Loop: Header=BB0_12 Depth=1
cmpl $8529, -20(%rbp) ## imm = 0x2151
jne LBB0_47
## %bb.46: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_135
LBB0_47: ## in Loop: Header=BB0_12 Depth=1
cmpl $8544, -20(%rbp) ## imm = 0x2160
jne LBB0_49
## %bb.48: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_163
LBB0_49: ## in Loop: Header=BB0_12 Depth=1
cmpl $8545, -20(%rbp) ## imm = 0x2161
jne LBB0_51
## %bb.50: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_164
LBB0_51: ## in Loop: Header=BB0_12 Depth=1
cmpl $8560, -20(%rbp) ## imm = 0x2170
jne LBB0_53
## %bb.52: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_184
LBB0_53: ## in Loop: Header=BB0_12 Depth=1
cmpl $8561, -20(%rbp) ## imm = 0x2171
jne LBB0_55
## %bb.54: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_185
LBB0_55: ## in Loop: Header=BB0_12 Depth=1
cmpl $8448, -20(%rbp) ## imm = 0x2100
jne LBB0_57
## %bb.56: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_188
LBB0_57: ## in Loop: Header=BB0_12 Depth=1
cmpl $8576, -20(%rbp) ## imm = 0x2180
jne LBB0_59
## %bb.58: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_193
LBB0_59: ## in Loop: Header=BB0_12 Depth=1
cmpl $8577, -20(%rbp) ## imm = 0x2181
jne LBB0_61
## %bb.60: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_194
LBB0_61: ## in Loop: Header=BB0_12 Depth=1
cmpl $8592, -20(%rbp) ## imm = 0x2190
jne LBB0_63
## %bb.62: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_202
LBB0_63: ## in Loop: Header=BB0_12 Depth=1
cmpl $8593, -20(%rbp) ## imm = 0x2191
jne LBB0_65
## %bb.64: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_203
LBB0_65: ## in Loop: Header=BB0_12 Depth=1
cmpl $8608, -20(%rbp) ## imm = 0x21A0
jne LBB0_67
## %bb.66: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_206
LBB0_67: ## in Loop: Header=BB0_12 Depth=1
cmpl $8609, -20(%rbp) ## imm = 0x21A1
jne LBB0_69
## %bb.68: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_207
LBB0_69: ## in Loop: Header=BB0_12 Depth=1
cmpl $8640, -20(%rbp) ## imm = 0x21C0
jne LBB0_71
## %bb.70: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_210
LBB0_71: ## in Loop: Header=BB0_12 Depth=1
cmpl $8641, -20(%rbp) ## imm = 0x21C1
jne LBB0_73
## %bb.72: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_211
LBB0_73: ## in Loop: Header=BB0_12 Depth=1
cmpl $8656, -20(%rbp) ## imm = 0x21D0
jne LBB0_75
## %bb.74: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_225
LBB0_75: ## in Loop: Header=BB0_12 Depth=1
cmpl $8657, -20(%rbp) ## imm = 0x21D1
jne LBB0_77
## %bb.76: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_226
LBB0_77: ## in Loop: Header=BB0_12 Depth=1
cmpl $8672, -20(%rbp) ## imm = 0x21E0
jne LBB0_79
## %bb.78: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_241
LBB0_79: ## in Loop: Header=BB0_12 Depth=1
cmpl $8673, -20(%rbp) ## imm = 0x21E1
jne LBB0_81
## %bb.80: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_242
LBB0_81:
cmpl $3, -20(%rbp)
jne LBB0_83
## %bb.82:
jmp LBB0_256
LBB0_83:
jmp LBB0_261
LBB0_84: ## in Loop: Header=BB0_12 Depth=1
movl $1, -24(%rbp)
LBB0_85: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_86
LBB0_86: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_87
LBB0_87: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_88
LBB0_88: ## in Loop: Header=BB0_12 Depth=1
movl $1, -28(%rbp)
cmpl $0, -164(%rbp)
je LBB0_90
## %bb.89: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_90
LBB0_90: ## in Loop: Header=BB0_12 Depth=1
movl -32(%rbp), %eax
shll $3, %eax
movl %eax, -248(%rbp)
cmpl $3, -248(%rbp)
je LBB0_92
## %bb.91:
movl $-1, -4(%rbp)
jmp LBB0_315
LBB0_92: ## in Loop: Header=BB0_12 Depth=1
movl $8192, -36(%rbp) ## imm = 0x2000
cmpl $0, -52(%rbp)
jne LBB0_98
## %bb.93: ## in Loop: Header=BB0_12 Depth=1
callq ___VERIFIER_nondet_int
movl %eax, -132(%rbp)
cmpl $0, -132(%rbp)
jne LBB0_95
## %bb.94:
movl $-1, -180(%rbp)
jmp LBB0_311
LBB0_95: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -208(%rbp)
jne LBB0_97
## %bb.96:
movl $-1, -180(%rbp)
jmp LBB0_311
LBB0_97: ## in Loop: Header=BB0_12 Depth=1
movl -132(%rbp), %eax
movl %eax, -52(%rbp)
LBB0_98: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -212(%rbp)
jne LBB0_100
## %bb.99:
movl $-1, -180(%rbp)
jmp LBB0_311
LBB0_100: ## in Loop: Header=BB0_12 Depth=1
movl $0, -40(%rbp)
cmpl $12292, -20(%rbp) ## imm = 0x3004
je LBB0_104
## %bb.101: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -216(%rbp)
jne LBB0_103
## %bb.102:
movl $-1, -180(%rbp)
jmp LBB0_311
LBB0_103: ## in Loop: Header=BB0_12 Depth=1
movl $8464, -20(%rbp) ## imm = 0x2110
movl -92(%rbp), %eax
addl $1, %eax
movl %eax, -92(%rbp)
jmp LBB0_105
LBB0_104: ## in Loop: Header=BB0_12 Depth=1
movl -88(%rbp), %eax
addl $1, %eax
movl %eax, -88(%rbp)
movl $8480, -20(%rbp) ## imm = 0x2120
LBB0_105: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_262
LBB0_106: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_107
LBB0_107: ## in Loop: Header=BB0_12 Depth=1
movl $0, -60(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -180(%rbp)
cmpl $0, -180(%rbp)
jg LBB0_109
## %bb.108:
jmp LBB0_311
LBB0_109: ## in Loop: Header=BB0_12 Depth=1
movl $8482, -120(%rbp) ## imm = 0x2122
movl $8448, -20(%rbp) ## imm = 0x2100
movl $0, -40(%rbp)
jmp LBB0_262
LBB0_110: ## in Loop: Header=BB0_12 Depth=1
movl $3, -20(%rbp)
jmp LBB0_262
LBB0_111: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_112
LBB0_112: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_113
LBB0_113: ## in Loop: Header=BB0_12 Depth=1
movl $0, -60(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -180(%rbp)
cmpl $0, -244(%rbp)
jne LBB0_115
## %bb.114: ## in Loop: Header=BB0_12 Depth=1
movl $1, -244(%rbp)
LBB0_115: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -180(%rbp)
jg LBB0_117
## %bb.116:
jmp LBB0_311
LBB0_117: ## in Loop: Header=BB0_12 Depth=1
movl $1, -196(%rbp)
movl $8496, -20(%rbp) ## imm = 0x2130
movl $0, -40(%rbp)
jmp LBB0_262
LBB0_118: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_119
LBB0_119: ## in Loop: Header=BB0_12 Depth=1
callq ___VERIFIER_nondet_int
movl %eax, -180(%rbp)
cmpl $1, -244(%rbp)
jne LBB0_121
## %bb.120: ## in Loop: Header=BB0_12 Depth=1
movl $2, -244(%rbp)
LBB0_121: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -180(%rbp)
jg LBB0_123
## %bb.122:
jmp LBB0_311
LBB0_123: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -44(%rbp)
je LBB0_125
## %bb.124: ## in Loop: Header=BB0_12 Depth=1
movl $8656, -20(%rbp) ## imm = 0x21D0
jmp LBB0_126
LBB0_125: ## in Loop: Header=BB0_12 Depth=1
movl $8512, -20(%rbp) ## imm = 0x2140
LBB0_126: ## in Loop: Header=BB0_12 Depth=1
movl $0, -40(%rbp)
jmp LBB0_262
LBB0_127: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_128
LBB0_128: ## in Loop: Header=BB0_12 Depth=1
movslq -116(%rbp), %rax
movq %rax, -256(%rbp)
movq -256(%rbp), %rax
addq $256, %rax ## imm = 0x100
cmpq $0, %rax
je LBB0_130
## %bb.129: ## in Loop: Header=BB0_12 Depth=1
movl $1, -192(%rbp)
jmp LBB0_133
LBB0_130: ## in Loop: Header=BB0_12 Depth=1
callq ___VERIFIER_nondet_int
movl %eax, -180(%rbp)
cmpl $0, -180(%rbp)
jg LBB0_132
## %bb.131:
jmp LBB0_311
LBB0_132: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_133
LBB0_133: ## in Loop: Header=BB0_12 Depth=1
movl $8528, -20(%rbp) ## imm = 0x2150
movl $0, -40(%rbp)
jmp LBB0_262
LBB0_134: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_135
LBB0_135: ## in Loop: Header=BB0_12 Depth=1
movslq -116(%rbp), %rax
movq %rax, -144(%rbp)
movslq -68(%rbp), %rax
movq %rax, -264(%rbp)
movq -264(%rbp), %rax
addq $2097152, %rax ## imm = 0x200000
cmpq $0, %rax
je LBB0_137
## %bb.136: ## in Loop: Header=BB0_12 Depth=1
movl $1, -108(%rbp)
jmp LBB0_138
LBB0_137: ## in Loop: Header=BB0_12 Depth=1
movl $0, -108(%rbp)
LBB0_138: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -108(%rbp)
je LBB0_140
## %bb.139: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_151
LBB0_140: ## in Loop: Header=BB0_12 Depth=1
movq -144(%rbp), %rax
addq $30, %rax
cmpq $0, %rax
je LBB0_142
## %bb.141: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_151
LBB0_142: ## in Loop: Header=BB0_12 Depth=1
movq -144(%rbp), %rax
addq $1, %rax
cmpq $0, %rax
je LBB0_159
## %bb.143: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -80(%rbp)
jne LBB0_145
## %bb.144: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_151
LBB0_145: ## in Loop: Header=BB0_12 Depth=1
movslq -124(%rbp), %rax
movq %rax, -272(%rbp)
movq -272(%rbp), %rax
addq $2, %rax
cmpq $0, %rax
je LBB0_156
## %bb.146: ## in Loop: Header=BB0_12 Depth=1
movslq -124(%rbp), %rax
movq %rax, -280(%rbp)
movq -280(%rbp), %rax
addq $4, %rax
cmpq $0, %rax
je LBB0_148
## %bb.147: ## in Loop: Header=BB0_12 Depth=1
movl $512, -224(%rbp) ## imm = 0x200
jmp LBB0_149
LBB0_148: ## in Loop: Header=BB0_12 Depth=1
movl $1024, -224(%rbp) ## imm = 0x400
LBB0_149: ## in Loop: Header=BB0_12 Depth=1
movl -220(%rbp), %eax
shll $3, %eax
movl %eax, -284(%rbp)
movl -284(%rbp), %eax
cmpl -224(%rbp), %eax
jle LBB0_154
## %bb.150: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_151
LBB0_151: ## in Loop: Header=BB0_12 Depth=1
callq ___VERIFIER_nondet_int
movl %eax, -180(%rbp)
cmpl $0, -180(%rbp)
jg LBB0_153
## %bb.152:
jmp LBB0_311
LBB0_153: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_155
LBB0_154: ## in Loop: Header=BB0_12 Depth=1
movl $1, -192(%rbp)
LBB0_155: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_157
LBB0_156: ## in Loop: Header=BB0_12 Depth=1
movl $1, -192(%rbp)
LBB0_157: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_158
LBB0_158: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_160
LBB0_159: ## in Loop: Header=BB0_12 Depth=1
movl $1, -192(%rbp)
LBB0_160: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_161
LBB0_161: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_162
LBB0_162: ## in Loop: Header=BB0_12 Depth=1
movl $8544, -20(%rbp) ## imm = 0x2160
movl $0, -40(%rbp)
jmp LBB0_262
LBB0_163: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_164
LBB0_164: ## in Loop: Header=BB0_12 Depth=1
movl -72(%rbp), %eax
addl $1, %eax
cmpl $0, %eax
je LBB0_182
## %bb.165: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -76(%rbp)
je LBB0_170
## %bb.166: ## in Loop: Header=BB0_12 Depth=1
movl -72(%rbp), %eax
addl $4, %eax
cmpl $0, %eax
je LBB0_168
## %bb.167: ## in Loop: Header=BB0_12 Depth=1
movl $1, -192(%rbp)
movl $0, -100(%rbp)
movl $8560, -20(%rbp) ## imm = 0x2170
jmp LBB0_169
LBB0_168: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_171
LBB0_169: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_181
LBB0_170: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_171
LBB0_171: ## in Loop: Header=BB0_12 Depth=1
movslq -116(%rbp), %rax
movq %rax, -296(%rbp)
movq -296(%rbp), %rax
addq $256, %rax ## imm = 0x100
cmpq $0, %rax
je LBB0_176
## %bb.172: ## in Loop: Header=BB0_12 Depth=1
movl -72(%rbp), %eax
addl $2, %eax
cmpl $0, %eax
je LBB0_174
## %bb.173: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_177
LBB0_174: ## in Loop: Header=BB0_12 Depth=1
movl $1, -192(%rbp)
movl $0, -100(%rbp)
movl $8560, -20(%rbp) ## imm = 0x2170
## %bb.175: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_180
LBB0_176: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_177
LBB0_177: ## in Loop: Header=BB0_12 Depth=1
movl $1, -100(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, -180(%rbp)
cmpl $0, -180(%rbp)
jg LBB0_179
## %bb.178:
jmp LBB0_311
LBB0_179: ## in Loop: Header=BB0_12 Depth=1
movl $8448, -20(%rbp) ## imm = 0x2100
movl $8576, -120(%rbp) ## imm = 0x2180
movl $0, -40(%rbp)
LBB0_180: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_181
LBB0_181: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_183
LBB0_182: ## in Loop: Header=BB0_12 Depth=1
movl $1, -192(%rbp)
movl $0, -100(%rbp)
movl $8560, -20(%rbp) ## imm = 0x2170
LBB0_183: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_262
LBB0_184: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_185
LBB0_185: ## in Loop: Header=BB0_12 Depth=1
callq ___VERIFIER_nondet_int
movl %eax, -180(%rbp)
cmpl $0, -180(%rbp)
jg LBB0_187
## %bb.186:
jmp LBB0_311
LBB0_187: ## in Loop: Header=BB0_12 Depth=1
movl $8576, -120(%rbp) ## imm = 0x2180
movl $8448, -20(%rbp) ## imm = 0x2100
movl $0, -40(%rbp)
jmp LBB0_262
LBB0_188: ## in Loop: Header=BB0_12 Depth=1
cmpq $0, -176(%rbp)
jle LBB0_192
## %bb.189: ## in Loop: Header=BB0_12 Depth=1
movl $2, -48(%rbp)
movq -232(%rbp), %rax
movq %rax, -176(%rbp)
cmpq $0, -176(%rbp)
jg LBB0_191
## %bb.190:
movl $-1, -180(%rbp)
jmp LBB0_311
LBB0_191: ## in Loop: Header=BB0_12 Depth=1
movl $1, -48(%rbp)
LBB0_192: ## in Loop: Header=BB0_12 Depth=1
movl -120(%rbp), %eax
movl %eax, -20(%rbp)
jmp LBB0_262
LBB0_193: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_194
LBB0_194: ## in Loop: Header=BB0_12 Depth=1
callq ___VERIFIER_nondet_int
movl %eax, -180(%rbp)
cmpl $0, -180(%rbp)
jg LBB0_196
## %bb.195:
jmp LBB0_311
LBB0_196: ## in Loop: Header=BB0_12 Depth=1
cmpl $2, -180(%rbp)
jne LBB0_198
## %bb.197: ## in Loop: Header=BB0_12 Depth=1
movl $8466, -20(%rbp) ## imm = 0x2112
jmp LBB0_201
LBB0_198: ## in Loop: Header=BB0_12 Depth=1
callq ___VERIFIER_nondet_int
movl %eax, -180(%rbp)
cmpl $0, -180(%rbp)
jg LBB0_200
## %bb.199:
jmp LBB0_311
LBB0_200: ## in Loop: Header=BB0_12 Depth=1
movl $0, -40(%rbp)
movl $8592, -20(%rbp) ## imm = 0x2190
LBB0_201: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_262
LBB0_202: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_203
LBB0_203: ## in Loop: Header=BB0_12 Depth=1
callq ___VERIFIER_nondet_int
movl %eax, -180(%rbp)
cmpl $0, -180(%rbp)
jg LBB0_205
## %bb.204:
jmp LBB0_311
LBB0_205: ## in Loop: Header=BB0_12 Depth=1
movl $8608, -20(%rbp) ## imm = 0x21A0
movl $0, -40(%rbp)
jmp LBB0_262
LBB0_206: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_207
LBB0_207: ## in Loop: Header=BB0_12 Depth=1
callq ___VERIFIER_nondet_int
movl %eax, -180(%rbp)
cmpl $0, -180(%rbp)
jg LBB0_209
## %bb.208:
jmp LBB0_311
LBB0_209: ## in Loop: Header=BB0_12 Depth=1
movl $8640, -20(%rbp) ## imm = 0x21C0
movl $0, -40(%rbp)
jmp LBB0_262
LBB0_210: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_211
LBB0_211: ## in Loop: Header=BB0_12 Depth=1
callq ___VERIFIER_nondet_int
movl %eax, -180(%rbp)
cmpl $4, -244(%rbp)
jne LBB0_213
## %bb.212: ## in Loop: Header=BB0_12 Depth=1
movl $5, -244(%rbp)
jmp LBB0_219
LBB0_213: ## in Loop: Header=BB0_12 Depth=1
cmpl $7, -244(%rbp)
jne LBB0_215
## %bb.214: ## in Loop: Header=BB0_12 Depth=1
movl $8, -244(%rbp)
jmp LBB0_218
LBB0_215: ## in Loop: Header=BB0_12 Depth=1
cmpl $10, -244(%rbp)
jne LBB0_217
## %bb.216:
jmp LBB0_314
LBB0_217: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_218
LBB0_218: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_219
LBB0_219: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -180(%rbp)
jg LBB0_221
## %bb.220:
jmp LBB0_311
LBB0_221: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -44(%rbp)
je LBB0_223
## %bb.222: ## in Loop: Header=BB0_12 Depth=1
movl $3, -20(%rbp)
jmp LBB0_224
LBB0_223: ## in Loop: Header=BB0_12 Depth=1
movl $8656, -20(%rbp) ## imm = 0x21D0
LBB0_224: ## in Loop: Header=BB0_12 Depth=1
movl $0, -40(%rbp)
jmp LBB0_262
LBB0_225: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_226
LBB0_226: ## in Loop: Header=BB0_12 Depth=1
movl -112(%rbp), %eax
movl %eax, -128(%rbp)
cmpl $0, -236(%rbp)
jne LBB0_228
## %bb.227:
movl $-1, -180(%rbp)
jmp LBB0_311
LBB0_228: ## in Loop: Header=BB0_12 Depth=1
callq ___VERIFIER_nondet_int
movl %eax, -180(%rbp)
cmpl $2, -244(%rbp)
jne LBB0_230
## %bb.229: ## in Loop: Header=BB0_12 Depth=1
movl $3, -244(%rbp)
jmp LBB0_236
LBB0_230: ## in Loop: Header=BB0_12 Depth=1
cmpl $5, -244(%rbp)
jne LBB0_232
## %bb.231: ## in Loop: Header=BB0_12 Depth=1
movl $6, -244(%rbp)
jmp LBB0_235
LBB0_232: ## in Loop: Header=BB0_12 Depth=1
cmpl $8, -244(%rbp)
jne LBB0_234
## %bb.233: ## in Loop: Header=BB0_12 Depth=1
movl $9, -244(%rbp)
LBB0_234: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_235
LBB0_235: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_236
LBB0_236: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -180(%rbp)
jg LBB0_238
## %bb.237:
jmp LBB0_311
LBB0_238: ## in Loop: Header=BB0_12 Depth=1
movl $8672, -20(%rbp) ## imm = 0x21E0
movl $0, -40(%rbp)
cmpl $0, -240(%rbp)
jne LBB0_240
## %bb.239:
movl $-1, -180(%rbp)
jmp LBB0_311
LBB0_240: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_262
LBB0_241: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_242
LBB0_242: ## in Loop: Header=BB0_12 Depth=1
callq ___VERIFIER_nondet_int
movl %eax, -180(%rbp)
cmpl $3, -244(%rbp)
jne LBB0_244
## %bb.243: ## in Loop: Header=BB0_12 Depth=1
movl $4, -244(%rbp)
jmp LBB0_250
LBB0_244: ## in Loop: Header=BB0_12 Depth=1
cmpl $6, -244(%rbp)
jne LBB0_246
## %bb.245: ## in Loop: Header=BB0_12 Depth=1
movl $7, -244(%rbp)
jmp LBB0_249
LBB0_246: ## in Loop: Header=BB0_12 Depth=1
cmpl $9, -244(%rbp)
jne LBB0_248
## %bb.247: ## in Loop: Header=BB0_12 Depth=1
movl $10, -244(%rbp)
LBB0_248: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_249
LBB0_249: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_250
LBB0_250: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -180(%rbp)
jg LBB0_252
## %bb.251:
jmp LBB0_311
LBB0_252: ## in Loop: Header=BB0_12 Depth=1
movl $8448, -20(%rbp) ## imm = 0x2100
cmpl $0, -44(%rbp)
je LBB0_254
## %bb.253: ## in Loop: Header=BB0_12 Depth=1
movl $8640, -120(%rbp) ## imm = 0x21C0
jmp LBB0_255
LBB0_254: ## in Loop: Header=BB0_12 Depth=1
movl $3, -120(%rbp)
LBB0_255: ## in Loop: Header=BB0_12 Depth=1
movl $0, -40(%rbp)
jmp LBB0_262
LBB0_256:
movl $0, -52(%rbp)
movl $0, -40(%rbp)
cmpl $0, -196(%rbp)
je LBB0_260
## %bb.257:
movl $0, -24(%rbp)
movl -96(%rbp), %eax
addl $1, %eax
movl %eax, -96(%rbp)
cmpl $0, -164(%rbp)
je LBB0_259
## %bb.258:
jmp LBB0_259
LBB0_259:
jmp LBB0_260
LBB0_260:
movl $1, -180(%rbp)
jmp LBB0_311
LBB0_261:
movl $-1, -180(%rbp)
jmp LBB0_311
LBB0_262: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_263
LBB0_263: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_264
LBB0_264: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_265
LBB0_265: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_266
LBB0_266: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_267
LBB0_267: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_268
LBB0_268: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_269
LBB0_269: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_270
LBB0_270: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_271
LBB0_271: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_272
LBB0_272: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_273
LBB0_273: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_274
LBB0_274: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_275
LBB0_275: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_276
LBB0_276: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_277
LBB0_277: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_278
LBB0_278: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_279
LBB0_279: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_280
LBB0_280: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_281
LBB0_281: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_282
LBB0_282: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_283
LBB0_283: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_284
LBB0_284: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_285
LBB0_285: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_286
LBB0_286: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_287
LBB0_287: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_288
LBB0_288: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_289
LBB0_289: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_290
LBB0_290: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_291
LBB0_291: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_292
LBB0_292: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_293
LBB0_293: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_294
LBB0_294: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_295
LBB0_295: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_296
LBB0_296: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_297
LBB0_297: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_298
LBB0_298: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -104(%rbp)
jne LBB0_310
## %bb.299: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -192(%rbp)
jne LBB0_309
## %bb.300: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -56(%rbp)
je LBB0_304
## %bb.301: ## in Loop: Header=BB0_12 Depth=1
callq ___VERIFIER_nondet_int
movl %eax, -180(%rbp)
cmpl $0, -180(%rbp)
jg LBB0_303
## %bb.302:
jmp LBB0_311
LBB0_303: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_304
LBB0_304: ## in Loop: Header=BB0_12 Depth=1
cmpl $0, -164(%rbp)
je LBB0_308
## %bb.305: ## in Loop: Header=BB0_12 Depth=1
movl -20(%rbp), %eax
cmpl -188(%rbp), %eax
je LBB0_307
## %bb.306: ## in Loop: Header=BB0_12 Depth=1
movl -20(%rbp), %eax
movl %eax, -184(%rbp)
movl -188(%rbp), %eax
movl %eax, -20(%rbp)
movl -184(%rbp), %eax
movl %eax, -20(%rbp)
LBB0_307: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_308
LBB0_308: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_309
LBB0_309: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_310
LBB0_310: ## in Loop: Header=BB0_12 Depth=1
movl $0, -192(%rbp)
jmp LBB0_12
LBB0_311:
movl -16(%rbp), %eax
addl $-1, %eax
movl %eax, -16(%rbp)
cmpl $0, -164(%rbp)
je LBB0_313
## %bb.312:
jmp LBB0_313
LBB0_313:
movl -180(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_315
LBB0_314:
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq ___VERIFIER_error
LBB0_315:
movl -4(%rbp), %eax
addq $304, %rsp ## imm = 0x130
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 $8464, -8(%rbp) ## imm = 0x2110
movl -8(%rbp), %edi
callq _ssl3_accept
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/36075859.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _safe_atoi ; -- Begin function safe_atoi
.p2align 2
_safe_atoi: ; @safe_atoi
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
str x1, [sp, #24]
ldur x0, [x29, #-16]
add x1, sp, #8
mov w2, #10
bl _strtol
str x0, [sp, #16]
ldur x8, [x29, #-16]
ldr x9, [sp, #8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
ldr x8, [sp, #8]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x8, [sp, #16]
ldr x9, [sp, #24]
; kill: def $w8 killed $w8 killed $x8
str w8, [x9]
stur wzr, [x29, #-4]
b LBB0_4
LBB0_3:
mov w8, #-1
stur w8, [x29, #-4]
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 _safe_malloc ; -- Begin function safe_malloc
.p2align 2
_safe_malloc: ; @safe_malloc
.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]
bl _malloc
mov x8, x0
str x8, [sp, #16]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldur x8, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB1_2:
ldr x0, [sp, #16]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
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.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
.cfi_endproc
; -- End function
.globl _bad_thing ; -- Begin function bad_thing
.p2align 2
_bad_thing: ; @bad_thing
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub sp, sp, #1392
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str w0, [sp, #92]
str w1, [sp, #88]
str w2, [sp, #84]
add x0, sp, #312
mov w1, #0
mov x2, #48
bl _memset
adrp x8, l_.str.2@PAGE
add x8, x8, l_.str.2@PAGEOFF
str x8, [sp, #312]
adrp x8, l_.str.3@PAGE
add x8, x8, l_.str.3@PAGEOFF
str x8, [sp, #320]
adrp x8, l_.str.4@PAGE
add x8, x8, l_.str.4@PAGEOFF
str x8, [sp, #328]
adrp x8, l_.str.5@PAGE
add x8, x8, l_.str.5@PAGEOFF
str x8, [sp, #336]
adrp x8, l_.str.6@PAGE
add x8, x8, l_.str.6@PAGEOFF
str x8, [sp, #344]
adrp x8, l_.str.7@PAGE
add x8, x8, l_.str.7@PAGEOFF
str x8, [sp, #352]
add x0, sp, #208
adrp x1, l___const.bad_thing.boys@PAGE
add x1, x1, l___const.bad_thing.boys@PAGEOFF
mov x2, #104
bl _memcpy
add x0, sp, #96
adrp x1, l___const.bad_thing.girls@PAGE
add x1, x1, l___const.bad_thing.girls@PAGEOFF
mov x2, #112
bl _memcpy
bl _rand
mov w9, #4
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
str w8, [sp, #80]
bl _rand
mov w9, #2
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
str w8, [sp, #76]
ldr w8, [sp, #76]
subs w8, w8, #0
cset w8, ne
and w10, w8, #0x1
mov x9, #14
mov x8, #13
ands w10, w10, #0x1
csel x8, x8, x9, ne
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #72]
bl _rand
ldr w9, [sp, #72]
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
str w8, [sp, #68]
ldr w8, [sp, #76]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
ldrsw x9, [sp, #68]
add x8, sp, #208
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #40] ; 8-byte Folded Spill
b LBB3_3
LBB3_2:
ldrsw x9, [sp, #68]
add x8, sp, #96
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #40] ; 8-byte Folded Spill
b LBB3_3
LBB3_3:
ldr x8, [sp, #40] ; 8-byte Folded Reload
str x8, [sp, #56]
add x8, sp, #360
str x8, [sp, #32] ; 8-byte Folded Spill
str x8, [sp, #48]
ldr x0, [sp, #48]
ldr w9, [sp, #92]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
mov w1, #0
str w1, [sp, #20] ; 4-byte Folded Spill
mov x2, #-1
str x2, [sp, #24] ; 8-byte Folded Spill
adrp x3, l_.str.35@PAGE
add x3, x3, l_.str.35@PAGEOFF
bl ___sprintf_chk
ldr w1, [sp, #20] ; 4-byte Folded Reload
ldr x2, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #48]
add x8, x8, w0, sxtw
str x8, [sp, #48]
ldr x0, [sp, #48]
ldrsw x9, [sp, #80]
add x8, sp, #312
ldr x3, [x8, x9, lsl #3]
ldr x10, [sp, #56]
ldr w8, [sp, #76]
subs w8, w8, #0
cset w8, ne
and w11, w8, #0x1
adrp x9, l_.str.37@PAGE
add x9, x9, l_.str.37@PAGEOFF
adrp x8, l_.str.36@PAGE
add x8, x8, l_.str.36@PAGEOFF
ands w11, w11, #0x1
csel x8, x8, x9, ne
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
bl ___sprintf_chk
ldr w1, [sp, #20] ; 4-byte Folded Reload
ldr x2, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #48]
add x8, x8, w0, sxtw
str x8, [sp, #48]
ldr x0, [sp, #48]
ldr w8, [sp, #84]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #88]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x3, l_.str.38@PAGE
add x3, x3, l_.str.38@PAGEOFF
bl ___sprintf_chk
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x9, [sp, #48]
add x9, x9, w0, sxtw
str x9, [sp, #48]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.39@PAGE
add x0, x0, l_.str.39@PAGEOFF
bl _printf
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB3_5
b LBB3_4
LBB3_4:
bl ___stack_chk_fail
LBB3_5:
add sp, sp, #1392
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _child_enter ; -- Begin function child_enter
.p2align 2
_child_enter: ; @child_enter
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
stur x8, [x29, #-16]
ldur x8, [x29, #-16]
ldr w8, [x8, #56]
str w8, [sp, #24]
ldur x8, [x29, #-16]
ldr w8, [x8, #52]
stur w8, [x29, #-20]
ldur x8, [x29, #-16]
ldr w8, [x8, #60]
str w8, [sp, #20]
ldur x8, [x29, #-8]
ldr w8, [x8, #16]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
mov x9, sp
adrp x8, l___func__.child_enter@PAGE
add x8, x8, l___func__.child_enter@PAGEOFF
str x8, [x9]
adrp x1, l_.str.40@PAGE
add x1, x1, l_.str.40@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB4_2:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldur x8, [x29, #-8]
ldr w9, [x8, #20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.41@PAGE
add x1, x1, l_.str.41@PAGEOFF
bl _fprintf
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
add x0, x8, #64
bl _pthread_mutex_lock
b LBB4_3
LBB4_3: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldr w8, [x8, #48]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB4_5
b LBB4_4
LBB4_4: ; in Loop: Header=BB4_3 Depth=1
ldur x8, [x29, #-8]
ldr x0, [x8, #8]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
add x1, x8, #64
bl _pthread_cond_wait
b LBB4_3
LBB4_5:
ldur x8, [x29, #-8]
ldr x9, [x8, #8]
ldr w8, [x9, #56]
add w8, w8, #1
str w8, [x9, #56]
ldur x8, [x29, #-8]
ldr x9, [x8, #8]
ldr w8, [x9, #48]
subs w8, w8, #1
str w8, [x9, #48]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldr w8, [x8, #48]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB4_7
b LBB4_6
LBB4_6:
ldur w8, [x29, #-20]
subs w8, w8, #1
ldr w9, [sp, #20]
mul w8, w8, w9
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB4_8
b LBB4_7
LBB4_7:
ldur x8, [x29, #-8]
ldr x0, [x8, #8]
bl _pthread_cond_broadcast
b LBB4_8
LBB4_8:
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
add x0, x8, #64
bl _pthread_mutex_unlock
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _child_exit ; -- Begin function child_exit
.p2align 2
_child_exit: ; @child_exit
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
stur x8, [x29, #-16]
ldur x8, [x29, #-16]
ldr w8, [x8, #56]
str w8, [sp, #24]
ldur x8, [x29, #-16]
ldr w8, [x8, #52]
stur w8, [x29, #-20]
ldur x8, [x29, #-16]
ldr w8, [x8, #60]
str w8, [sp, #20]
ldur x8, [x29, #-8]
ldr w8, [x8, #16]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
mov x9, sp
adrp x8, l___func__.child_exit@PAGE
add x8, x8, l___func__.child_exit@PAGEOFF
str x8, [x9]
adrp x1, l_.str.40@PAGE
add x1, x1, l_.str.40@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB5_2:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldur x8, [x29, #-8]
ldr w9, [x8, #20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.42@PAGE
add x1, x1, l_.str.42@PAGEOFF
bl _fprintf
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
add x0, x8, #64
bl _pthread_mutex_lock
ldur x8, [x29, #-8]
ldr x9, [x8, #8]
ldr w8, [x9, #56]
subs w8, w8, #1
str w8, [x9, #56]
ldur x8, [x29, #-8]
ldr x9, [x8, #8]
ldr w8, [x9, #48]
add w8, w8, #1
str w8, [x9, #48]
ldr w8, [sp, #24]
ldur w9, [x29, #-20]
subs w9, w9, #1
ldr w10, [sp, #20]
mul w9, w9, w10
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB5_4
b LBB5_3
LBB5_3:
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldr w8, [x8, #48]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB5_5
b LBB5_4
LBB5_4:
ldur x8, [x29, #-8]
ldr x0, [x8, #8]
bl _pthread_cond_broadcast
b LBB5_5
LBB5_5:
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
add x0, x8, #64
bl _pthread_mutex_unlock
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _teacher_enter ; -- Begin function teacher_enter
.p2align 2
_teacher_enter: ; @teacher_enter
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
stur x8, [x29, #-16]
ldur x8, [x29, #-16]
ldr w8, [x8, #56]
str w8, [sp, #24]
ldur x8, [x29, #-16]
ldr w8, [x8, #52]
stur w8, [x29, #-20]
ldur x8, [x29, #-16]
ldr w8, [x8, #60]
str w8, [sp, #20]
ldur x8, [x29, #-8]
ldr w8, [x8, #16]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
mov x9, sp
adrp x8, l___func__.teacher_enter@PAGE
add x8, x8, l___func__.teacher_enter@PAGEOFF
str x8, [x9]
adrp x1, l_.str.43@PAGE
add x1, x1, l_.str.43@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB6_2:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldur x8, [x29, #-8]
ldr w9, [x8, #20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.44@PAGE
add x1, x1, l_.str.44@PAGEOFF
bl _fprintf
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
add x0, x8, #64
bl _pthread_mutex_lock
ldur x8, [x29, #-8]
ldr x9, [x8, #8]
ldr w8, [x9, #52]
add w8, w8, #1
str w8, [x9, #52]
ldr w10, [sp, #20]
ldur x8, [x29, #-8]
ldr x9, [x8, #8]
ldr w8, [x9, #48]
add w8, w8, w10
str w8, [x9, #48]
ldr w8, [sp, #24]
ldur w9, [x29, #-20]
subs w9, w9, #1
ldr w10, [sp, #20]
mul w9, w9, w10
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB6_4
b LBB6_3
LBB6_3:
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldr w8, [x8, #48]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB6_5
b LBB6_4
LBB6_4:
ldur x8, [x29, #-8]
ldr x0, [x8, #8]
bl _pthread_cond_broadcast
b LBB6_5
LBB6_5:
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
add x0, x8, #64
bl _pthread_mutex_unlock
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _teacher_exit ; -- Begin function teacher_exit
.p2align 2
_teacher_exit: ; @teacher_exit
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
stur x8, [x29, #-16]
ldur x8, [x29, #-16]
ldr w8, [x8, #56]
str w8, [sp, #24]
ldur x8, [x29, #-16]
ldr w8, [x8, #52]
stur w8, [x29, #-20]
ldur x8, [x29, #-16]
ldr w8, [x8, #60]
str w8, [sp, #20]
ldur x8, [x29, #-8]
ldr w8, [x8, #16]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB7_2
b LBB7_1
LBB7_1:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
mov x9, sp
adrp x8, l___func__.teacher_exit@PAGE
add x8, x8, l___func__.teacher_exit@PAGEOFF
str x8, [x9]
adrp x1, l_.str.43@PAGE
add x1, x1, l_.str.43@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB7_2:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldur x8, [x29, #-8]
ldr w9, [x8, #20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.45@PAGE
add x1, x1, l_.str.45@PAGEOFF
bl _fprintf
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
add x0, x8, #64
bl _pthread_mutex_lock
b LBB7_3
LBB7_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #24]
ldur w9, [x29, #-20]
subs w9, w9, #1
ldr w10, [sp, #20]
mul w9, w9, w10
subs w8, w8, w9
cset w8, gt
mov w9, #1
str w9, [sp, #16] ; 4-byte Folded Spill
tbnz w8, #0, LBB7_5
b LBB7_4
LBB7_4: ; in Loop: Header=BB7_3 Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldr w8, [x8, #48]
subs w8, w8, #0
cset w8, ne
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB7_5
LBB7_5: ; in Loop: Header=BB7_3 Depth=1
ldr w8, [sp, #16] ; 4-byte Folded Reload
tbz w8, #0, LBB7_7
b LBB7_6
LBB7_6: ; in Loop: Header=BB7_3 Depth=1
ldur x8, [x29, #-8]
ldr x0, [x8, #8]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
add x1, x8, #64
bl _pthread_cond_wait
b LBB7_3
LBB7_7:
ldur x8, [x29, #-8]
ldr x9, [x8, #8]
ldr w8, [x9, #52]
subs w8, w8, #1
str w8, [x9, #52]
ldr w10, [sp, #20]
ldur x8, [x29, #-8]
ldr x9, [x8, #8]
ldr w8, [x9, #48]
subs w8, w8, w10
str w8, [x9, #48]
ldr w8, [sp, #24]
ldur w9, [x29, #-20]
subs w9, w9, #1
ldr w10, [sp, #20]
mul w9, w9, w10
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB7_9
b LBB7_8
LBB7_8:
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldr w8, [x8, #48]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB7_10
b LBB7_9
LBB7_9:
ldur x8, [x29, #-8]
ldr x0, [x8, #8]
bl _pthread_cond_broadcast
b LBB7_10
LBB7_10:
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
add x0, x8, #64
bl _pthread_mutex_unlock
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _verify ; -- Begin function verify
.p2align 2
_verify: ; @verify
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
stur x8, [x29, #-16]
ldur x8, [x29, #-16]
ldr w8, [x8, #56]
stur w8, [x29, #-24]
ldur x8, [x29, #-16]
ldr w8, [x8, #52]
stur w8, [x29, #-20]
ldur x8, [x29, #-16]
ldr w8, [x8, #60]
stur w8, [x29, #-28]
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldur x8, [x29, #-8]
ldr w8, [x8, #20]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-20]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-24]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x1, l_.str.46@PAGE
add x1, x1, l_.str.46@PAGEOFF
bl _fprintf
ldur w8, [x29, #-24]
ldur w9, [x29, #-20]
ldur w10, [x29, #-28]
mul w9, w9, w10
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB8_2
b LBB8_1
LBB8_1:
ldur x8, [x29, #-8]
ldr w0, [x8, #20]
ldur w1, [x29, #-24]
ldur w2, [x29, #-20]
bl _bad_thing
mov w0, #1
bl _exit
LBB8_2:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _thread_start_fn ; -- Begin function thread_start_fn
.p2align 2
_thread_start_fn: ; @thread_start_fn
.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, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
stur x0, [x29, #-8]
ldur x9, [x29, #-8]
stur x9, [x29, #-16]
ldr x0, [x8]
ldur x8, [x29, #-16]
ldr w8, [x8, #20]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-16]
ldr w9, [x8, #24]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.47@PAGE
add x1, x1, l_.str.47@PAGEOFF
bl _fprintf
ldur x8, [x29, #-16]
ldr w8, [x8, #16]
subs w8, w8, #0
cset w8, ne
and w10, w8, #0x1
adrp x9, l_.str.49@PAGE
add x9, x9, l_.str.49@PAGEOFF
adrp x8, l_.str.48@PAGE
add x8, x8, l_.str.48@PAGEOFF
ands w10, w10, #0x1
csel x8, x8, x9, ne
str x8, [sp, #24]
b LBB9_1
LBB9_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
ldur x8, [x29, #-16]
ldr w8, [x8, #20]
; implicit-def: $x10
mov x10, x8
ldr x8, [sp, #24]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.50@PAGE
add x1, x1, l_.str.50@PAGEOFF
bl _fprintf
ldur x8, [x29, #-16]
ldr w8, [x8, #16]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB9_3
b LBB9_2
LBB9_2: ; in Loop: Header=BB9_1 Depth=1
ldur x0, [x29, #-16]
bl _child_enter
b LBB9_4
LBB9_3: ; in Loop: Header=BB9_1 Depth=1
ldur x0, [x29, #-16]
bl _teacher_enter
b LBB9_4
LBB9_4: ; in Loop: Header=BB9_1 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
ldur x8, [x29, #-16]
ldr w8, [x8, #20]
; implicit-def: $x10
mov x10, x8
ldr x8, [sp, #24]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.51@PAGE
add x1, x1, l_.str.51@PAGEOFF
bl _fprintf
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
add x0, x8, #64
bl _pthread_mutex_lock
ldur x0, [x29, #-16]
bl _verify
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
add x0, x8, #64
bl _pthread_mutex_unlock
ldur x8, [x29, #-16]
add x0, x8, #28
bl _rand_r
mov w9, #16960
movk w9, #15, lsl #16
sdiv w8, w0, w9
mul w8, w8, w9
subs w0, w0, w8
bl _usleep
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
ldur x8, [x29, #-16]
ldr w8, [x8, #20]
; implicit-def: $x10
mov x10, x8
ldr x8, [sp, #24]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.52@PAGE
add x1, x1, l_.str.52@PAGEOFF
bl _fprintf
ldur x8, [x29, #-16]
ldr w8, [x8, #16]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB9_6
b LBB9_5
LBB9_5: ; in Loop: Header=BB9_1 Depth=1
ldur x0, [x29, #-16]
bl _child_exit
b LBB9_7
LBB9_6: ; in Loop: Header=BB9_1 Depth=1
ldur x0, [x29, #-16]
bl _teacher_exit
b LBB9_7
LBB9_7: ; in Loop: Header=BB9_1 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
ldur x8, [x29, #-16]
ldr w8, [x8, #20]
; implicit-def: $x10
mov x10, x8
ldr x8, [sp, #24]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.53@PAGE
add x1, x1, l_.str.53@PAGEOFF
bl _fprintf
ldur x8, [x29, #-16]
add x0, x8, #28
bl _rand_r
mov w9, #34464
movk w9, #1, lsl #16
sdiv w8, w0, w9
mul w8, w8, w9
subs w0, w0, w8
bl _usleep
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
add x0, x8, #64
bl _pthread_mutex_lock
ldur x0, [x29, #-16]
bl _verify
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
add x0, x8, #64
bl _pthread_mutex_unlock
b LBB9_1
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur w8, [x29, #-8]
subs w8, w8, #4
cset w8, eq
tbnz w8, #0, LBB10_2
b LBB10_1
LBB10_1:
ldur x8, [x29, #-16]
ldr x0, [x8]
bl _usage
b LBB10_2
LBB10_2:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
sub x1, x29, #28
bl _safe_atoi
subs w8, w0, #0
cset w8, lt
tbnz w8, #0, LBB10_4
b LBB10_3
LBB10_3:
ldur w8, [x29, #-28]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB10_5
b LBB10_4
LBB10_4:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [x8]
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.54@PAGE
add x1, x1, l_.str.54@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB10_5:
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
sub x1, x29, #32
bl _safe_atoi
subs w8, w0, #0
cset w8, lt
tbnz w8, #0, LBB10_8
b LBB10_6
LBB10_6:
ldur w8, [x29, #-32]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB10_8
b LBB10_7
LBB10_7:
ldur w8, [x29, #-32]
ldur w9, [x29, #-28]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB10_9
b LBB10_8
LBB10_8:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [x8]
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.55@PAGE
add x1, x1, l_.str.55@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB10_9:
ldur x8, [x29, #-16]
ldr x0, [x8, #24]
sub x1, x29, #36
bl _safe_atoi
subs w8, w0, #0
cset w8, lt
tbnz w8, #0, LBB10_11
b LBB10_10
LBB10_10:
ldur w8, [x29, #-36]
subs w8, w8, #1
cset w8, ge
tbnz w8, #0, LBB10_12
b LBB10_11
LBB10_11:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [x8]
ldur x8, [x29, #-16]
ldr x8, [x8, #24]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.56@PAGE
add x1, x1, l_.str.56@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB10_12:
mov x0, #0
str x0, [sp, #24] ; 8-byte Folded Spill
bl _time
; kill: def $w0 killed $w0 killed $x0
bl _srand
mov x0, #128
bl _safe_malloc
ldr x1, [sp, #24] ; 8-byte Folded Reload
str x0, [sp, #40]
ldr x8, [sp, #40]
str wzr, [x8, #56]
ldr x8, [sp, #40]
str wzr, [x8, #52]
ldur w8, [x29, #-36]
ldr x9, [sp, #40]
str w8, [x9, #60]
ldr x8, [sp, #40]
str wzr, [x8, #48]
ldr x8, [sp, #40]
add x0, x8, #64
bl _pthread_mutex_init
stur w0, [x29, #-24]
ldur w8, [x29, #-24]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB10_16
b LBB10_13
LBB10_13:
b LBB10_14
LBB10_14:
ldur w8, [x29, #-24]
str w8, [sp, #20] ; 4-byte Folded Spill
bl ___error
ldr w8, [sp, #20] ; 4-byte Folded Reload
str w8, [x0]
adrp x0, l_.str.57@PAGE
add x0, x0, l_.str.57@PAGEOFF
bl _perror
b LBB10_15
LBB10_15:
mov w0, #1
bl _exit
LBB10_16:
ldursw x8, [x29, #-28]
lsl x0, x8, #5
bl _safe_malloc
str x0, [sp, #48]
stur wzr, [x29, #-20]
b LBB10_17
LBB10_17: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-28]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB10_24
b LBB10_18
LBB10_18: ; in Loop: Header=BB10_17 Depth=1
ldr x8, [sp, #40]
ldr x9, [sp, #48]
ldursw x10, [x29, #-20]
add x9, x9, x10, lsl #5
str x8, [x9, #8]
ldur w8, [x29, #-20]
ldr x9, [sp, #48]
ldursw x10, [x29, #-20]
add x9, x9, x10, lsl #5
str w8, [x9, #20]
ldur w8, [x29, #-28]
ldr x9, [sp, #48]
ldursw x10, [x29, #-20]
add x9, x9, x10, lsl #5
str w8, [x9, #24]
ldur w8, [x29, #-20]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, lt
and w8, w8, #0x1
ldr x9, [sp, #48]
ldursw x10, [x29, #-20]
add x9, x9, x10, lsl #5
str w8, [x9, #16]
bl _rand
ldr x8, [sp, #48]
ldursw x9, [x29, #-20]
add x8, x8, x9, lsl #5
str w0, [x8, #28]
ldr x8, [sp, #48]
ldursw x9, [x29, #-20]
add x0, x8, x9, lsl #5
ldr x8, [sp, #48]
ldursw x9, [x29, #-20]
add x3, x8, x9, lsl #5
mov x1, #0
adrp x2, _thread_start_fn@PAGE
add x2, x2, _thread_start_fn@PAGEOFF
bl _pthread_create
stur w0, [x29, #-24]
ldur w8, [x29, #-24]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB10_22
b LBB10_19
LBB10_19:
b LBB10_20
LBB10_20:
ldur w8, [x29, #-24]
str w8, [sp, #16] ; 4-byte Folded Spill
bl ___error
ldr w8, [sp, #16] ; 4-byte Folded Reload
str w8, [x0]
adrp x0, l_.str.58@PAGE
add x0, x0, l_.str.58@PAGEOFF
bl _perror
b LBB10_21
LBB10_21:
mov w0, #1
bl _exit
LBB10_22: ; in Loop: Header=BB10_17 Depth=1
b LBB10_23
LBB10_23: ; in Loop: Header=BB10_17 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB10_17
LBB10_24:
stur wzr, [x29, #-20]
b LBB10_25
LBB10_25: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldur w9, [x29, #-28]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB10_32
b LBB10_26
LBB10_26: ; in Loop: Header=BB10_25 Depth=1
ldr x8, [sp, #48]
ldursw x9, [x29, #-20]
lsl x9, x9, #5
ldr x0, [x8, x9]
mov x1, #0
bl _pthread_join
stur w0, [x29, #-24]
ldur w8, [x29, #-24]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB10_30
b LBB10_27
LBB10_27:
b LBB10_28
LBB10_28:
ldur w8, [x29, #-24]
str w8, [sp, #12] ; 4-byte Folded Spill
bl ___error
ldr w8, [sp, #12] ; 4-byte Folded Reload
str w8, [x0]
adrp x0, l_.str.59@PAGE
add x0, x0, l_.str.59@PAGEOFF
bl _perror
b LBB10_29
LBB10_29:
mov w0, #1
bl _exit
LBB10_30: ; in Loop: Header=BB10_25 Depth=1
b LBB10_31
LBB10_31: ; in Loop: Header=BB10_25 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB10_25
LBB10_32:
adrp x0, l_.str.60@PAGE
add x0, x0, l_.str.60@PAGEOFF
bl _printf
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 "Out of memory, failed to allocate %zd bytes\n"
l_.str.1: ; @.str.1
.asciz "Usage: %s thread_count child_threads c_t_ratio\n\nExactly two argument required:\n thread_count: Total number of threads to create.\n child_threads: The number of threads simulating children.\n c_t_ratio: The allowed ratio of children to teachers.\n\n"
l_.str.2: ; @.str.2
.asciz "Little %s put %s finger in the wall outlet and got electrocuted!"
l_.str.3: ; @.str.3
.asciz "Little %s fell off the slide and broke %s head!"
l_.str.4: ; @.str.4
.asciz "Little %s was playing with matches and lit %s hair on fire!"
l_.str.5: ; @.str.5
.asciz "Little %s drank a bottle of acid with %s lunch!"
l_.str.6: ; @.str.6
.asciz "Little %s caught %s hand in the paper shredder!"
l_.str.7: ; @.str.7
.asciz "Little %s wrestled with a stray dog and it bit %s finger off!"
l_.str.8: ; @.str.8
.asciz "George"
l_.str.9: ; @.str.9
.asciz "John"
l_.str.10: ; @.str.10
.asciz "Nick"
l_.str.11: ; @.str.11
.asciz "Jim"
l_.str.12: ; @.str.12
.asciz "Constantine"
l_.str.13: ; @.str.13
.asciz "Chris"
l_.str.14: ; @.str.14
.asciz "Peter"
l_.str.15: ; @.str.15
.asciz "Paul"
l_.str.16: ; @.str.16
.asciz "Steve"
l_.str.17: ; @.str.17
.asciz "Billy"
l_.str.18: ; @.str.18
.asciz "Mike"
l_.str.19: ; @.str.19
.asciz "Vangelis"
l_.str.20: ; @.str.20
.asciz "Antony"
.section __DATA,__const
.p2align 3 ; @__const.bad_thing.boys
l___const.bad_thing.boys:
.quad l_.str.8
.quad l_.str.9
.quad l_.str.10
.quad l_.str.11
.quad l_.str.12
.quad l_.str.13
.quad l_.str.14
.quad l_.str.15
.quad l_.str.16
.quad l_.str.17
.quad l_.str.18
.quad l_.str.19
.quad l_.str.20
.section __TEXT,__cstring,cstring_literals
l_.str.21: ; @.str.21
.asciz "Maria"
l_.str.22: ; @.str.22
.asciz "Irene"
l_.str.23: ; @.str.23
.asciz "Christina"
l_.str.24: ; @.str.24
.asciz "Helena"
l_.str.25: ; @.str.25
.asciz "Georgia"
l_.str.26: ; @.str.26
.asciz "Olga"
l_.str.27: ; @.str.27
.asciz "Sophie"
l_.str.28: ; @.str.28
.asciz "Joanna"
l_.str.29: ; @.str.29
.asciz "Zoe"
l_.str.30: ; @.str.30
.asciz "Catherine"
l_.str.31: ; @.str.31
.asciz "Marina"
l_.str.32: ; @.str.32
.asciz "Stella"
l_.str.33: ; @.str.33
.asciz "Vicky"
l_.str.34: ; @.str.34
.asciz "Jenny"
.section __DATA,__const
.p2align 3 ; @__const.bad_thing.girls
l___const.bad_thing.girls:
.quad l_.str.21
.quad l_.str.22
.quad l_.str.23
.quad l_.str.24
.quad l_.str.25
.quad l_.str.26
.quad l_.str.27
.quad l_.str.28
.quad l_.str.29
.quad l_.str.30
.quad l_.str.31
.quad l_.str.32
.quad l_.str.33
.quad l_.str.34
.section __TEXT,__cstring,cstring_literals
l_.str.35: ; @.str.35
.asciz "*** Thread %d: Oh no! "
l_.str.36: ; @.str.36
.asciz "his"
l_.str.37: ; @.str.37
.asciz "her"
l_.str.38: ; @.str.38
.asciz "\n*** Why were there only %d teachers for %d children?!\n"
l_.str.39: ; @.str.39
.asciz "%s"
l_.str.40: ; @.str.40
.asciz "Internal error: %s called for a Teacher thread.\n"
l___func__.child_enter: ; @__func__.child_enter
.asciz "child_enter"
l_.str.41: ; @.str.41
.asciz "THREAD %d: CHILD ENTER\n"
l___func__.child_exit: ; @__func__.child_exit
.asciz "child_exit"
l_.str.42: ; @.str.42
.asciz "THREAD %d: CHILD EXIT\n"
l_.str.43: ; @.str.43
.asciz "Internal error: %s called for a Child thread.\n"
l___func__.teacher_enter: ; @__func__.teacher_enter
.asciz "teacher_enter"
l_.str.44: ; @.str.44
.asciz "THREAD %d: TEACHER ENTER\n"
l___func__.teacher_exit: ; @__func__.teacher_exit
.asciz "teacher_exit"
l_.str.45: ; @.str.45
.asciz "THREAD %d: TEACHER EXIT\n"
l_.str.46: ; @.str.46
.asciz " Thread %d: Teachers: %d, Children: %d\n"
l_.str.47: ; @.str.47
.asciz "Thread %d of %d. START.\n"
l_.str.48: ; @.str.48
.asciz "Child"
l_.str.49: ; @.str.49
.asciz "Teacher"
l_.str.50: ; @.str.50
.asciz "Thread %d [%s]: Entering.\n"
l_.str.51: ; @.str.51
.asciz "Thread %d [%s]: Entered.\n"
l_.str.52: ; @.str.52
.asciz "Thread %d [%s]: Exiting.\n"
l_.str.53: ; @.str.53
.asciz "Thread %d [%s]: Exited.\n"
l_.str.54: ; @.str.54
.asciz "`%s' is not valid for `thread_count'\n"
l_.str.55: ; @.str.55
.asciz "`%s' is not valid for `child_threads'\n"
l_.str.56: ; @.str.56
.asciz "`%s' is not valid for `c_t_ratio'\n"
l_.str.57: ; @.str.57
.asciz "pthread_mutex_init"
l_.str.58: ; @.str.58
.asciz "pthread_create"
l_.str.59: ; @.str.59
.asciz "pthread_join"
l_.str.60: ; @.str.60
.asciz "OK.\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _safe_atoi ## -- Begin function safe_atoi
.p2align 4, 0x90
_safe_atoi: ## @safe_atoi
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -16(%rbp), %rdi
leaq -40(%rbp), %rsi
movl $10, %edx
callq _strtol
movq %rax, -32(%rbp)
movq -16(%rbp), %rax
cmpq -40(%rbp), %rax
je LBB0_3
## %bb.1:
movq -40(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
jne LBB0_3
## %bb.2:
movq -32(%rbp), %rax
movl %eax, %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movl $0, -4(%rbp)
jmp LBB0_4
LBB0_3:
movl $-1, -4(%rbp)
LBB0_4:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _safe_malloc ## -- Begin function safe_malloc
.p2align 4, 0x90
_safe_malloc: ## @safe_malloc
.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 _malloc
movq %rax, -16(%rbp)
cmpq $0, %rax
jne LBB1_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -8(%rbp), %rdx
leaq L_.str(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB1_2:
movq -16(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.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.1(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
.cfi_endproc
## -- End function
.globl _bad_thing ## -- Begin function bad_thing
.p2align 4, 0x90
_bad_thing: ## @bad_thing
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $1376, %rsp ## imm = 0x560
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl %edi, -1316(%rbp)
movl %esi, -1320(%rbp)
movl %edx, -1324(%rbp)
leaq -1088(%rbp), %rdi
xorl %esi, %esi
movl $48, %edx
callq _memset
leaq L_.str.2(%rip), %rax
movq %rax, -1088(%rbp)
leaq L_.str.3(%rip), %rax
movq %rax, -1080(%rbp)
leaq L_.str.4(%rip), %rax
movq %rax, -1072(%rbp)
leaq L_.str.5(%rip), %rax
movq %rax, -1064(%rbp)
leaq L_.str.6(%rip), %rax
movq %rax, -1056(%rbp)
leaq L_.str.7(%rip), %rax
movq %rax, -1048(%rbp)
leaq -1200(%rbp), %rdi
leaq l___const.bad_thing.boys(%rip), %rsi
movl $104, %edx
callq _memcpy
leaq -1312(%rbp), %rdi
leaq l___const.bad_thing.girls(%rip), %rsi
movl $112, %edx
callq _memcpy
callq _rand
movl $4, %ecx
cltd
idivl %ecx
movl %edx, -1328(%rbp)
callq _rand
movl $2, %ecx
cltd
idivl %ecx
movl %edx, -1332(%rbp)
movl -1332(%rbp), %edx
movl $14, %eax
movl $13, %ecx
cmpl $0, %edx
cmovneq %rcx, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -1336(%rbp)
callq _rand
cltd
idivl -1336(%rbp)
movl %edx, -1340(%rbp)
cmpl $0, -1332(%rbp)
je LBB3_2
## %bb.1:
movslq -1340(%rbp), %rax
movq -1200(%rbp,%rax,8), %rax
movq %rax, -1368(%rbp) ## 8-byte Spill
jmp LBB3_3
LBB3_2:
movslq -1340(%rbp), %rax
movq -1312(%rbp,%rax,8), %rax
movq %rax, -1368(%rbp) ## 8-byte Spill
LBB3_3:
movq -1368(%rbp), %rax ## 8-byte Reload
movq %rax, -1352(%rbp)
leaq -1040(%rbp), %rax
movq %rax, -1360(%rbp)
movq -1360(%rbp), %rdi
movl -1316(%rbp), %r8d
xorl %esi, %esi
movq $-1, %rdx
leaq L_.str.35(%rip), %rcx
movb $0, %al
callq ___sprintf_chk
movl %eax, %ecx
movq -1360(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -1360(%rbp)
movq -1360(%rbp), %rdi
movslq -1328(%rbp), %rax
movq -1088(%rbp,%rax,8), %rcx
movq -1352(%rbp), %r8
movl -1332(%rbp), %edx
leaq L_.str.37(%rip), %r9
leaq L_.str.36(%rip), %rax
cmpl $0, %edx
cmovneq %rax, %r9
xorl %esi, %esi
movq $-1, %rdx
movb $0, %al
callq ___sprintf_chk
movl %eax, %ecx
movq -1360(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -1360(%rbp)
movq -1360(%rbp), %rdi
movl -1324(%rbp), %r8d
movl -1320(%rbp), %r9d
xorl %esi, %esi
movq $-1, %rdx
leaq L_.str.38(%rip), %rcx
movb $0, %al
callq ___sprintf_chk
movl %eax, %ecx
movq -1360(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -1360(%rbp)
leaq -1040(%rbp), %rsi
leaq L_.str.39(%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_5
## %bb.4:
addq $1376, %rsp ## imm = 0x560
popq %rbp
retq
LBB3_5:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _child_enter ## -- Begin function child_enter
.p2align 4, 0x90
_child_enter: ## @child_enter
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movl 56(%rax), %eax
movl %eax, -24(%rbp)
movq -16(%rbp), %rax
movl 52(%rax), %eax
movl %eax, -20(%rbp)
movq -16(%rbp), %rax
movl 60(%rax), %eax
movl %eax, -28(%rbp)
movq -8(%rbp), %rax
cmpl $0, 16(%rax)
jne LBB4_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.40(%rip), %rsi
leaq L___func__.child_enter(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB4_2:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -8(%rbp), %rax
movl 20(%rax), %edx
leaq L_.str.41(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rax
movq 8(%rax), %rdi
addq $64, %rdi
callq _pthread_mutex_lock
LBB4_3: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movq 8(%rax), %rax
cmpl $0, 48(%rax)
jne LBB4_5
## %bb.4: ## in Loop: Header=BB4_3 Depth=1
movq -8(%rbp), %rax
movq 8(%rax), %rdi
movq -8(%rbp), %rax
movq 8(%rax), %rsi
addq $64, %rsi
callq _pthread_cond_wait
jmp LBB4_3
LBB4_5:
movq -8(%rbp), %rax
movq 8(%rax), %rax
movl 56(%rax), %ecx
addl $1, %ecx
movl %ecx, 56(%rax)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movl 48(%rax), %ecx
addl $-1, %ecx
movl %ecx, 48(%rax)
movq -8(%rbp), %rax
movq 8(%rax), %rax
cmpl $0, 48(%rax)
jg LBB4_7
## %bb.6:
movl -20(%rbp), %eax
subl $1, %eax
imull -28(%rbp), %eax
cmpl -24(%rbp), %eax
jl LBB4_8
LBB4_7:
movq -8(%rbp), %rax
movq 8(%rax), %rdi
callq _pthread_cond_broadcast
LBB4_8:
movq -8(%rbp), %rax
movq 8(%rax), %rdi
addq $64, %rdi
callq _pthread_mutex_unlock
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _child_exit ## -- Begin function child_exit
.p2align 4, 0x90
_child_exit: ## @child_exit
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movl 56(%rax), %eax
movl %eax, -24(%rbp)
movq -16(%rbp), %rax
movl 52(%rax), %eax
movl %eax, -20(%rbp)
movq -16(%rbp), %rax
movl 60(%rax), %eax
movl %eax, -28(%rbp)
movq -8(%rbp), %rax
cmpl $0, 16(%rax)
jne LBB5_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.40(%rip), %rsi
leaq L___func__.child_exit(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB5_2:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -8(%rbp), %rax
movl 20(%rax), %edx
leaq L_.str.42(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rax
movq 8(%rax), %rdi
addq $64, %rdi
callq _pthread_mutex_lock
movq -8(%rbp), %rax
movq 8(%rax), %rax
movl 56(%rax), %ecx
addl $-1, %ecx
movl %ecx, 56(%rax)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movl 48(%rax), %ecx
addl $1, %ecx
movl %ecx, 48(%rax)
movl -24(%rbp), %eax
movl -20(%rbp), %ecx
subl $1, %ecx
imull -28(%rbp), %ecx
cmpl %ecx, %eax
jle LBB5_4
## %bb.3:
movq -8(%rbp), %rax
movq 8(%rax), %rax
cmpl $0, 48(%rax)
je LBB5_5
LBB5_4:
movq -8(%rbp), %rax
movq 8(%rax), %rdi
callq _pthread_cond_broadcast
LBB5_5:
movq -8(%rbp), %rax
movq 8(%rax), %rdi
addq $64, %rdi
callq _pthread_mutex_unlock
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _teacher_enter ## -- Begin function teacher_enter
.p2align 4, 0x90
_teacher_enter: ## @teacher_enter
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movl 56(%rax), %eax
movl %eax, -24(%rbp)
movq -16(%rbp), %rax
movl 52(%rax), %eax
movl %eax, -20(%rbp)
movq -16(%rbp), %rax
movl 60(%rax), %eax
movl %eax, -28(%rbp)
movq -8(%rbp), %rax
cmpl $0, 16(%rax)
je LBB6_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.43(%rip), %rsi
leaq L___func__.teacher_enter(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB6_2:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -8(%rbp), %rax
movl 20(%rax), %edx
leaq L_.str.44(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rax
movq 8(%rax), %rdi
addq $64, %rdi
callq _pthread_mutex_lock
movq -8(%rbp), %rax
movq 8(%rax), %rax
movl 52(%rax), %ecx
addl $1, %ecx
movl %ecx, 52(%rax)
movl -28(%rbp), %ecx
movq -8(%rbp), %rax
movq 8(%rax), %rax
addl 48(%rax), %ecx
movl %ecx, 48(%rax)
movl -24(%rbp), %eax
movl -20(%rbp), %ecx
subl $1, %ecx
imull -28(%rbp), %ecx
cmpl %ecx, %eax
jle LBB6_4
## %bb.3:
movq -8(%rbp), %rax
movq 8(%rax), %rax
cmpl $0, 48(%rax)
je LBB6_5
LBB6_4:
movq -8(%rbp), %rax
movq 8(%rax), %rdi
callq _pthread_cond_broadcast
LBB6_5:
movq -8(%rbp), %rax
movq 8(%rax), %rdi
addq $64, %rdi
callq _pthread_mutex_unlock
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _teacher_exit ## -- Begin function teacher_exit
.p2align 4, 0x90
_teacher_exit: ## @teacher_exit
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movl 56(%rax), %eax
movl %eax, -24(%rbp)
movq -16(%rbp), %rax
movl 52(%rax), %eax
movl %eax, -20(%rbp)
movq -16(%rbp), %rax
movl 60(%rax), %eax
movl %eax, -28(%rbp)
movq -8(%rbp), %rax
cmpl $0, 16(%rax)
je LBB7_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.43(%rip), %rsi
leaq L___func__.teacher_exit(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB7_2:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -8(%rbp), %rax
movl 20(%rax), %edx
leaq L_.str.45(%rip), %rsi
movb $0, %al
callq _fprintf
movq -8(%rbp), %rax
movq 8(%rax), %rdi
addq $64, %rdi
callq _pthread_mutex_lock
LBB7_3: ## =>This Inner Loop Header: Depth=1
movl -24(%rbp), %ecx
movl -20(%rbp), %edx
subl $1, %edx
imull -28(%rbp), %edx
movb $1, %al
cmpl %edx, %ecx
movb %al, -29(%rbp) ## 1-byte Spill
jg LBB7_5
## %bb.4: ## in Loop: Header=BB7_3 Depth=1
movq -8(%rbp), %rax
movq 8(%rax), %rax
cmpl $0, 48(%rax)
setne %al
movb %al, -29(%rbp) ## 1-byte Spill
LBB7_5: ## in Loop: Header=BB7_3 Depth=1
movb -29(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB7_6
jmp LBB7_7
LBB7_6: ## in Loop: Header=BB7_3 Depth=1
movq -8(%rbp), %rax
movq 8(%rax), %rdi
movq -8(%rbp), %rax
movq 8(%rax), %rsi
addq $64, %rsi
callq _pthread_cond_wait
jmp LBB7_3
LBB7_7:
movq -8(%rbp), %rax
movq 8(%rax), %rax
movl 52(%rax), %ecx
addl $-1, %ecx
movl %ecx, 52(%rax)
movl -28(%rbp), %edx
movq -8(%rbp), %rax
movq 8(%rax), %rax
movl 48(%rax), %ecx
subl %edx, %ecx
movl %ecx, 48(%rax)
movl -24(%rbp), %eax
movl -20(%rbp), %ecx
subl $1, %ecx
imull -28(%rbp), %ecx
cmpl %ecx, %eax
jle LBB7_9
## %bb.8:
movq -8(%rbp), %rax
movq 8(%rax), %rax
cmpl $0, 48(%rax)
je LBB7_10
LBB7_9:
movq -8(%rbp), %rax
movq 8(%rax), %rdi
callq _pthread_cond_broadcast
LBB7_10:
movq -8(%rbp), %rax
movq 8(%rax), %rdi
addq $64, %rdi
callq _pthread_mutex_unlock
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _verify ## -- Begin function verify
.p2align 4, 0x90
_verify: ## @verify
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movl 56(%rax), %eax
movl %eax, -24(%rbp)
movq -16(%rbp), %rax
movl 52(%rax), %eax
movl %eax, -20(%rbp)
movq -16(%rbp), %rax
movl 60(%rax), %eax
movl %eax, -28(%rbp)
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -8(%rbp), %rax
movl 20(%rax), %edx
movl -20(%rbp), %ecx
movl -24(%rbp), %r8d
leaq L_.str.46(%rip), %rsi
movb $0, %al
callq _fprintf
movl -24(%rbp), %eax
movl -20(%rbp), %ecx
imull -28(%rbp), %ecx
cmpl %ecx, %eax
jle LBB8_2
## %bb.1:
movq -8(%rbp), %rax
movl 20(%rax), %edi
movl -24(%rbp), %esi
movl -20(%rbp), %edx
callq _bad_thing
movl $1, %edi
callq _exit
LBB8_2:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _thread_start_fn ## -- Begin function thread_start_fn
.p2align 4, 0x90
_thread_start_fn: ## @thread_start_fn
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -16(%rbp), %rax
movl 20(%rax), %edx
movq -16(%rbp), %rax
movl 24(%rax), %ecx
leaq L_.str.47(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rax
movl 16(%rax), %edx
leaq L_.str.49(%rip), %rax
leaq L_.str.48(%rip), %rcx
cmpl $0, %edx
cmovneq %rcx, %rax
movq %rax, -24(%rbp)
LBB9_1: ## =>This Inner Loop Header: Depth=1
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -16(%rbp), %rax
movl 20(%rax), %edx
movq -24(%rbp), %rcx
leaq L_.str.50(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rax
cmpl $0, 16(%rax)
je LBB9_3
## %bb.2: ## in Loop: Header=BB9_1 Depth=1
movq -16(%rbp), %rdi
callq _child_enter
jmp LBB9_4
LBB9_3: ## in Loop: Header=BB9_1 Depth=1
movq -16(%rbp), %rdi
callq _teacher_enter
LBB9_4: ## in Loop: Header=BB9_1 Depth=1
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -16(%rbp), %rax
movl 20(%rax), %edx
movq -24(%rbp), %rcx
leaq L_.str.51(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rax
movq 8(%rax), %rdi
addq $64, %rdi
callq _pthread_mutex_lock
movq -16(%rbp), %rdi
callq _verify
movq -16(%rbp), %rax
movq 8(%rax), %rdi
addq $64, %rdi
callq _pthread_mutex_unlock
movq -16(%rbp), %rdi
addq $28, %rdi
callq _rand_r
movl $1000000, %ecx ## imm = 0xF4240
cltd
idivl %ecx
movl %edx, %edi
callq _usleep
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -16(%rbp), %rax
movl 20(%rax), %edx
movq -24(%rbp), %rcx
leaq L_.str.52(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rax
cmpl $0, 16(%rax)
je LBB9_6
## %bb.5: ## in Loop: Header=BB9_1 Depth=1
movq -16(%rbp), %rdi
callq _child_exit
jmp LBB9_7
LBB9_6: ## in Loop: Header=BB9_1 Depth=1
movq -16(%rbp), %rdi
callq _teacher_exit
LBB9_7: ## in Loop: Header=BB9_1 Depth=1
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -16(%rbp), %rax
movl 20(%rax), %edx
movq -24(%rbp), %rcx
leaq L_.str.53(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rdi
addq $28, %rdi
callq _rand_r
movl $100000, %ecx ## imm = 0x186A0
cltd
idivl %ecx
movl %edx, %edi
callq _usleep
movq -16(%rbp), %rax
movq 8(%rax), %rdi
addq $64, %rdi
callq _pthread_mutex_lock
movq -16(%rbp), %rdi
callq _verify
movq -16(%rbp), %rax
movq 8(%rax), %rdi
addq $64, %rdi
callq _pthread_mutex_unlock
jmp LBB9_1
.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
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $4, -8(%rbp)
je LBB10_2
## %bb.1:
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _usage
LBB10_2:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
leaq -28(%rbp), %rsi
callq _safe_atoi
cmpl $0, %eax
jl LBB10_4
## %bb.3:
cmpl $0, -28(%rbp)
jg LBB10_5
LBB10_4:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -16(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.54(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB10_5:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
leaq -32(%rbp), %rsi
callq _safe_atoi
cmpl $0, %eax
jl LBB10_8
## %bb.6:
cmpl $0, -32(%rbp)
jl LBB10_8
## %bb.7:
movl -32(%rbp), %eax
cmpl -28(%rbp), %eax
jle LBB10_9
LBB10_8:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.55(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB10_9:
movq -16(%rbp), %rax
movq 24(%rax), %rdi
leaq -36(%rbp), %rsi
callq _safe_atoi
cmpl $0, %eax
jl LBB10_11
## %bb.10:
cmpl $1, -36(%rbp)
jge LBB10_12
LBB10_11:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -16(%rbp), %rax
movq 24(%rax), %rdx
leaq L_.str.56(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB10_12:
xorl %eax, %eax
movl %eax, %edi
callq _time
movl %eax, %edi
callq _srand
movl $128, %edi
callq _safe_malloc
movq %rax, -56(%rbp)
movq -56(%rbp), %rax
movl $0, 56(%rax)
movq -56(%rbp), %rax
movl $0, 52(%rax)
movl -36(%rbp), %ecx
movq -56(%rbp), %rax
movl %ecx, 60(%rax)
movq -56(%rbp), %rax
movl $0, 48(%rax)
movq -56(%rbp), %rdi
addq $64, %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_mutex_init
movl %eax, -24(%rbp)
cmpl $0, -24(%rbp)
je LBB10_16
## %bb.13:
jmp LBB10_14
LBB10_14:
movl -24(%rbp), %eax
movl %eax, -60(%rbp) ## 4-byte Spill
callq ___error
movl -60(%rbp), %ecx ## 4-byte Reload
movl %ecx, (%rax)
leaq L_.str.57(%rip), %rdi
callq _perror
## %bb.15:
movl $1, %edi
callq _exit
LBB10_16:
movslq -28(%rbp), %rdi
shlq $5, %rdi
callq _safe_malloc
movq %rax, -48(%rbp)
movl $0, -20(%rbp)
LBB10_17: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -28(%rbp), %eax
jge LBB10_24
## %bb.18: ## in Loop: Header=BB10_17 Depth=1
movq -56(%rbp), %rcx
movq -48(%rbp), %rax
movslq -20(%rbp), %rdx
shlq $5, %rdx
addq %rdx, %rax
movq %rcx, 8(%rax)
movl -20(%rbp), %ecx
movq -48(%rbp), %rax
movslq -20(%rbp), %rdx
shlq $5, %rdx
addq %rdx, %rax
movl %ecx, 20(%rax)
movl -28(%rbp), %ecx
movq -48(%rbp), %rax
movslq -20(%rbp), %rdx
shlq $5, %rdx
addq %rdx, %rax
movl %ecx, 24(%rax)
movl -20(%rbp), %eax
cmpl -32(%rbp), %eax
setl %al
andb $1, %al
movzbl %al, %ecx
movq -48(%rbp), %rax
movslq -20(%rbp), %rdx
shlq $5, %rdx
addq %rdx, %rax
movl %ecx, 16(%rax)
callq _rand
movl %eax, %ecx
movq -48(%rbp), %rax
movslq -20(%rbp), %rdx
shlq $5, %rdx
addq %rdx, %rax
movl %ecx, 28(%rax)
movq -48(%rbp), %rdi
movslq -20(%rbp), %rax
shlq $5, %rax
addq %rax, %rdi
movq -48(%rbp), %rcx
movslq -20(%rbp), %rax
shlq $5, %rax
addq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
leaq _thread_start_fn(%rip), %rdx
callq _pthread_create
movl %eax, -24(%rbp)
cmpl $0, -24(%rbp)
je LBB10_22
## %bb.19:
jmp LBB10_20
LBB10_20:
movl -24(%rbp), %eax
movl %eax, -64(%rbp) ## 4-byte Spill
callq ___error
movl -64(%rbp), %ecx ## 4-byte Reload
movl %ecx, (%rax)
leaq L_.str.58(%rip), %rdi
callq _perror
## %bb.21:
movl $1, %edi
callq _exit
LBB10_22: ## in Loop: Header=BB10_17 Depth=1
jmp LBB10_23
LBB10_23: ## in Loop: Header=BB10_17 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB10_17
LBB10_24:
movl $0, -20(%rbp)
LBB10_25: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -28(%rbp), %eax
jge LBB10_32
## %bb.26: ## in Loop: Header=BB10_25 Depth=1
movq -48(%rbp), %rax
movslq -20(%rbp), %rcx
shlq $5, %rcx
addq %rcx, %rax
movq (%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_join
movl %eax, -24(%rbp)
cmpl $0, -24(%rbp)
je LBB10_30
## %bb.27:
jmp LBB10_28
LBB10_28:
movl -24(%rbp), %eax
movl %eax, -68(%rbp) ## 4-byte Spill
callq ___error
movl -68(%rbp), %ecx ## 4-byte Reload
movl %ecx, (%rax)
leaq L_.str.59(%rip), %rdi
callq _perror
## %bb.29:
movl $1, %edi
callq _exit
LBB10_30: ## in Loop: Header=BB10_25 Depth=1
jmp LBB10_31
LBB10_31: ## in Loop: Header=BB10_25 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB10_25
LBB10_32:
leaq L_.str.60(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Out of memory, failed to allocate %zd bytes\n"
L_.str.1: ## @.str.1
.asciz "Usage: %s thread_count child_threads c_t_ratio\n\nExactly two argument required:\n thread_count: Total number of threads to create.\n child_threads: The number of threads simulating children.\n c_t_ratio: The allowed ratio of children to teachers.\n\n"
L_.str.2: ## @.str.2
.asciz "Little %s put %s finger in the wall outlet and got electrocuted!"
L_.str.3: ## @.str.3
.asciz "Little %s fell off the slide and broke %s head!"
L_.str.4: ## @.str.4
.asciz "Little %s was playing with matches and lit %s hair on fire!"
L_.str.5: ## @.str.5
.asciz "Little %s drank a bottle of acid with %s lunch!"
L_.str.6: ## @.str.6
.asciz "Little %s caught %s hand in the paper shredder!"
L_.str.7: ## @.str.7
.asciz "Little %s wrestled with a stray dog and it bit %s finger off!"
L_.str.8: ## @.str.8
.asciz "George"
L_.str.9: ## @.str.9
.asciz "John"
L_.str.10: ## @.str.10
.asciz "Nick"
L_.str.11: ## @.str.11
.asciz "Jim"
L_.str.12: ## @.str.12
.asciz "Constantine"
L_.str.13: ## @.str.13
.asciz "Chris"
L_.str.14: ## @.str.14
.asciz "Peter"
L_.str.15: ## @.str.15
.asciz "Paul"
L_.str.16: ## @.str.16
.asciz "Steve"
L_.str.17: ## @.str.17
.asciz "Billy"
L_.str.18: ## @.str.18
.asciz "Mike"
L_.str.19: ## @.str.19
.asciz "Vangelis"
L_.str.20: ## @.str.20
.asciz "Antony"
.section __DATA,__const
.p2align 4 ## @__const.bad_thing.boys
l___const.bad_thing.boys:
.quad L_.str.8
.quad L_.str.9
.quad L_.str.10
.quad L_.str.11
.quad L_.str.12
.quad L_.str.13
.quad L_.str.14
.quad L_.str.15
.quad L_.str.16
.quad L_.str.17
.quad L_.str.18
.quad L_.str.19
.quad L_.str.20
.section __TEXT,__cstring,cstring_literals
L_.str.21: ## @.str.21
.asciz "Maria"
L_.str.22: ## @.str.22
.asciz "Irene"
L_.str.23: ## @.str.23
.asciz "Christina"
L_.str.24: ## @.str.24
.asciz "Helena"
L_.str.25: ## @.str.25
.asciz "Georgia"
L_.str.26: ## @.str.26
.asciz "Olga"
L_.str.27: ## @.str.27
.asciz "Sophie"
L_.str.28: ## @.str.28
.asciz "Joanna"
L_.str.29: ## @.str.29
.asciz "Zoe"
L_.str.30: ## @.str.30
.asciz "Catherine"
L_.str.31: ## @.str.31
.asciz "Marina"
L_.str.32: ## @.str.32
.asciz "Stella"
L_.str.33: ## @.str.33
.asciz "Vicky"
L_.str.34: ## @.str.34
.asciz "Jenny"
.section __DATA,__const
.p2align 4 ## @__const.bad_thing.girls
l___const.bad_thing.girls:
.quad L_.str.21
.quad L_.str.22
.quad L_.str.23
.quad L_.str.24
.quad L_.str.25
.quad L_.str.26
.quad L_.str.27
.quad L_.str.28
.quad L_.str.29
.quad L_.str.30
.quad L_.str.31
.quad L_.str.32
.quad L_.str.33
.quad L_.str.34
.section __TEXT,__cstring,cstring_literals
L_.str.35: ## @.str.35
.asciz "*** Thread %d: Oh no! "
L_.str.36: ## @.str.36
.asciz "his"
L_.str.37: ## @.str.37
.asciz "her"
L_.str.38: ## @.str.38
.asciz "\n*** Why were there only %d teachers for %d children?!\n"
L_.str.39: ## @.str.39
.asciz "%s"
L_.str.40: ## @.str.40
.asciz "Internal error: %s called for a Teacher thread.\n"
L___func__.child_enter: ## @__func__.child_enter
.asciz "child_enter"
L_.str.41: ## @.str.41
.asciz "THREAD %d: CHILD ENTER\n"
L___func__.child_exit: ## @__func__.child_exit
.asciz "child_exit"
L_.str.42: ## @.str.42
.asciz "THREAD %d: CHILD EXIT\n"
L_.str.43: ## @.str.43
.asciz "Internal error: %s called for a Child thread.\n"
L___func__.teacher_enter: ## @__func__.teacher_enter
.asciz "teacher_enter"
L_.str.44: ## @.str.44
.asciz "THREAD %d: TEACHER ENTER\n"
L___func__.teacher_exit: ## @__func__.teacher_exit
.asciz "teacher_exit"
L_.str.45: ## @.str.45
.asciz "THREAD %d: TEACHER EXIT\n"
L_.str.46: ## @.str.46
.asciz " Thread %d: Teachers: %d, Children: %d\n"
L_.str.47: ## @.str.47
.asciz "Thread %d of %d. START.\n"
L_.str.48: ## @.str.48
.asciz "Child"
L_.str.49: ## @.str.49
.asciz "Teacher"
L_.str.50: ## @.str.50
.asciz "Thread %d [%s]: Entering.\n"
L_.str.51: ## @.str.51
.asciz "Thread %d [%s]: Entered.\n"
L_.str.52: ## @.str.52
.asciz "Thread %d [%s]: Exiting.\n"
L_.str.53: ## @.str.53
.asciz "Thread %d [%s]: Exited.\n"
L_.str.54: ## @.str.54
.asciz "`%s' is not valid for `thread_count'\n"
L_.str.55: ## @.str.55
.asciz "`%s' is not valid for `child_threads'\n"
L_.str.56: ## @.str.56
.asciz "`%s' is not valid for `c_t_ratio'\n"
L_.str.57: ## @.str.57
.asciz "pthread_mutex_init"
L_.str.58: ## @.str.58
.asciz "pthread_create"
L_.str.59: ## @.str.59
.asciz "pthread_join"
L_.str.60: ## @.str.60
.asciz "OK.\n"
.subsections_via_symbols
| the_stack_data/28261531.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 w0, [sp, #24]
str x1, [sp, #16]
str wzr, [sp, #12]
ldrsw x9, [sp, #24]
adrp x8, _info_size@PAGE
add x8, x8, _info_size@PAGEOFF
ldrsb w9, [x8, x9]
ldr w8, [sp, #12]
add w8, w8, w9
str w8, [sp, #12]
ldr w0, [sp, #12]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __DATA,__data
_info_size: ; @info_size
.asciz "INFO:size[00004] key[__aarch64__]"
.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 $0, -20(%rbp)
movslq -8(%rbp), %rcx
leaq _info_size(%rip), %rax
movsbl (%rax,%rcx), %eax
addl -20(%rbp), %eax
movl %eax, -20(%rbp)
movl -20(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.p2align 4 ## @info_size
_info_size:
.asciz "INFO:size[00004] key[__x86_64]"
.subsections_via_symbols
| the_stack_data/90765866.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]
add x8, sp, #12
mov w9, #20
str w9, [sp, #24]
mov w9, #30
str w9, [sp, #16]
str x8, [sp]
ldr x8, [sp]
ldr w8, [x8, #12]
add w8, w8, #1
ldr w9, [sp, #16]
add w0, w8, w9
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _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 $20, -12(%rbp)
movl $30, -20(%rbp)
leaq -24(%rbp), %rax
movq %rax, -32(%rbp)
movq -32(%rbp), %rax
movl 12(%rax), %eax
addl $1, %eax
addl -20(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/97763.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #272
.cfi_def_cfa_offset 272
stp x28, x27, [sp, #240] ; 16-byte Folded Spill
stp x29, x30, [sp, #256] ; 16-byte Folded Spill
add x29, sp, #256
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #24]
str w0, [sp, #20]
str x1, [sp, #8]
add x0, sp, #40
bl _setjmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_1
LBB0_1:
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_3
b LBB0_2
LBB0_2:
bl ___stack_chk_fail
LBB0_3:
mov w0, #0
ldp x29, x30, [sp, #256] ; 16-byte Folded Reload
ldp x28, x27, [sp, #240] ; 16-byte Folded Reload
add sp, sp, #272
ret
LBB0_4:
mov w8, #1
str w8, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
mov w8, #65
strb w8, [sp, #39]
b LBB0_6
LBB0_6:
add x0, sp, #40
mov w1, #1
bl _longjmp
.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 $208, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -176(%rbp)
movl %edi, -180(%rbp)
movq %rsi, -192(%rbp)
leaq -160(%rbp), %rdi
callq _setjmp
cmpl $0, %eax
je LBB0_3
## %bb.1:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_6
## %bb.2:
xorl %eax, %eax
addq $208, %rsp
popq %rbp
retq
LBB0_3:
movl $1, -196(%rbp)
cmpl $0, -196(%rbp)
je LBB0_5
## %bb.4:
movb $65, -161(%rbp)
LBB0_5:
leaq -160(%rbp), %rdi
movl $1, %esi
callq _longjmp
LBB0_6:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/168258.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, #-28]
adrp x8, l___const.main.input@PAGE
add x8, x8, l___const.main.input@PAGEOFF
ldr x9, [x8]
sub x0, x29, #24
str x0, [sp, #24] ; 8-byte Folded Spill
stur x9, [x29, #-24]
ldr w8, [x8, #8]
stur w8, [x29, #-16]
bl _strlen
mov x8, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
; kill: def $w8 killed $w8 killed $x8
stur w8, [x29, #-32]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _strtok
str x0, [sp, #32]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
stur wzr, [x29, #-36]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-36]
ldur w9, [x29, #-32]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldur w9, [x29, #-36]
; implicit-def: $x8
mov x8, x9
ldursw x10, [x29, #-36]
sub x9, x29, #24
ldrsb w10, [x9, x10]
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldur w8, [x29, #-36]
add w8, w8, #1
stur w8, [x29, #-36]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov x0, #0
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _strtok
str x0, [sp, #32]
b LBB0_1
LBB0_7:
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_9
b LBB0_8
LBB0_8:
bl ___stack_chk_fail
LBB0_9:
mov w0, #0
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l___const.main.input: ; @__const.main.input
.asciz "aXbcYXXXdYe"
l_.str: ; @.str
.asciz "XY"
l_.str.1: ; @.str.1
.asciz "%02d %c\n"
l_.str.2: ; @.str.2
.asciz "---------------\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -24(%rbp)
movq L___const.main.input(%rip), %rax
movq %rax, -20(%rbp)
movl L___const.main.input+8(%rip), %eax
movl %eax, -12(%rbp)
leaq -20(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -28(%rbp)
leaq -20(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _strtok
movq %rax, -40(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
cmpq $0, -40(%rbp)
je LBB0_7
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -32(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -32(%rbp), %eax
cmpl -28(%rbp), %eax
jge LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movl -32(%rbp), %esi
movslq -32(%rbp), %rax
movsbl -20(%rbp,%rax), %edx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB0_3
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
movl %eax, %edi
leaq L_.str(%rip), %rsi
callq _strtok
movq %rax, -40(%rbp)
jmp LBB0_1
LBB0_7:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_9
## %bb.8:
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
LBB0_9:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L___const.main.input: ## @__const.main.input
.asciz "aXbcYXXXdYe"
L_.str: ## @.str
.asciz "XY"
L_.str.1: ## @.str.1
.asciz "%02d %c\n"
L_.str.2: ## @.str.2
.asciz "---------------\n"
.subsections_via_symbols
| the_stack_data/63652.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 0x3fc3333333333333 ; double 0.14999999999999999
.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, #24] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov x9, sp
add x8, sp, #31
str x8, [x9]
sub x8, x29, #16
str x8, [x9, #8]
sub x8, x29, #24
str x8, [x9, #16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldur d2, [x29, #-16]
ldur d0, [x29, #-24]
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fmadd d0, d0, d1, d2
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, #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 "%s %lf %lf"
l_.str.1: ; @.str.1
.asciz "TOTAL = R$ %.2lf\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 0x3fc3333333333333 ## double 0.14999999999999999
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -33(%rbp), %rsi
leaq -16(%rbp), %rdx
leaq -24(%rbp), %rcx
movb $0, %al
callq _scanf
movsd -16(%rbp), %xmm1 ## xmm1 = mem[0],zero
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_0(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %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 $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s %lf %lf"
L_.str.1: ## @.str.1
.asciz "TOTAL = R$ %.2lf\n"
.subsections_via_symbols
| the_stack_data/179829663.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sum_digits ; -- Begin function sum_digits
.p2align 2
_sum_digits: ; @sum_digits
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str wzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
mov w9, #10
sdiv w10, w8, w9
mul w10, w10, w9
subs w10, w8, w10
ldr w8, [sp, #8]
add w8, w8, w10
str w8, [sp, #8]
ldr w8, [sp, #12]
sdiv w8, w8, w9
str w8, [sp, #12]
b LBB0_1
LBB0_3:
ldr w0, [sp, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
stur w8, [x29, #-12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
str x0, [sp, #8] ; 8-byte Folded Spill
bl _scanf
ldur w0, [x29, #-8]
bl _sum_digits
mov x10, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
bl _printf
ldur w0, [x29, #-12] ; 4-byte Folded Reload
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sum_digits ## -- Begin function sum_digits
.p2align 4, 0x90
_sum_digits: ## @sum_digits
.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 $0, -4(%rbp)
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -4(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
addl -8(%rbp), %edx
movl %edx, -8(%rbp)
movl -4(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, -4(%rbp)
jmp LBB0_1
LBB0_3:
movl -8(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl -8(%rbp), %edi
callq _sum_digits
movl %eax, %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
.subsections_via_symbols
| the_stack_data/97012228.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _create_point ; -- Begin function create_point
.p2align 2
_create_point: ; @create_point
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
stur w1, [x29, #-8]
stur w2, [x29, #-12]
mov x0, #12
bl _malloc
str x0, [sp, #8]
ldur w8, [x29, #-4]
ldr x9, [sp, #8]
str w8, [x9]
ldur w8, [x29, #-8]
ldr x9, [sp, #8]
str w8, [x9, #4]
ldur w8, [x29, #-12]
ldr x9, [sp, #8]
str w8, [x9, #8]
ldr x0, [sp, #8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _print ; -- Begin function print
.p2align 2
_print: ; @print
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr w8, [x8]
; implicit-def: $x11
mov x11, x8
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-8]
ldr w9, [x8, #8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _scale ; -- Begin function scale
.p2align 2
_scale: ; @scale
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str x1, [sp]
ldr w10, [sp, #12]
ldr x9, [sp]
ldr w8, [x9]
mul w8, w8, w10
str w8, [x9]
ldr w10, [sp, #12]
ldr x9, [sp]
ldr w8, [x9, #4]
mul w8, w8, w10
str w8, [x9, #4]
ldr w10, [sp, #12]
ldr x9, [sp]
ldr w8, [x9, #8]
mul w8, w8, w10
str w8, [x9, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov w0, #123
mov w1, #456
mov w2, #789
bl _create_point
str x0, [sp, #16]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr x0, [sp, #16]
bl _print
ldr x1, [sp, #16]
mov w0, #2
bl _scale
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x0, [sp, #16]
bl _print
ldr x0, [sp, #16]
bl _free
ldr w0, [sp, #12] ; 4-byte Folded Reload
; kill: def $x8 killed $xzr
str xzr, [sp, #16]
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 "x: %d y: %d z: %d\n"
l_.str.1: ; @.str.1
.asciz "Initial state\n"
l_.str.2: ; @.str.2
.asciz "New state\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _create_point ## -- Begin function create_point
.p2align 4, 0x90
_create_point: ## @create_point
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl %edx, -12(%rbp)
movl $12, %edi
callq _malloc
movq %rax, -24(%rbp)
movl -4(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movl -8(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, 4(%rax)
movl -12(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, 8(%rax)
movq -24(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _print ## -- Begin function print
.p2align 4, 0x90
_print: ## @print
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movl (%rax), %esi
movq -8(%rbp), %rax
movl 4(%rax), %edx
movq -8(%rbp), %rax
movl 8(%rax), %ecx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _scale ## -- Begin function scale
.p2align 4, 0x90
_scale: ## @scale
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movl -4(%rbp), %ecx
movq -16(%rbp), %rax
imull (%rax), %ecx
movl %ecx, (%rax)
movl -4(%rbp), %ecx
movq -16(%rbp), %rax
imull 4(%rax), %ecx
movl %ecx, 4(%rax)
movl -4(%rbp), %ecx
movq -16(%rbp), %rax
imull 8(%rax), %ecx
movl %ecx, 8(%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $123, %edi
movl $456, %esi ## imm = 0x1C8
movl $789, %edx ## imm = 0x315
callq _create_point
movq %rax, -16(%rbp)
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rdi
callq _print
movq -16(%rbp), %rsi
movl $2, %edi
callq _scale
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rdi
callq _print
movq -16(%rbp), %rdi
callq _free
movq $0, -16(%rbp)
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "x: %d y: %d z: %d\n"
L_.str.1: ## @.str.1
.asciz "Initial state\n"
L_.str.2: ## @.str.2
.asciz "New state\n"
.subsections_via_symbols
| the_stack_data/78548.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/140926.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 x0, [sp, #8]
ldr x8, [sp, #8]
rev x8, x8
str x8, [sp]
ldr x0, [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
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
bswapq %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/36191.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur wzr, [x29, #-12]
movi d0, #0000000000000000
stur s0, [x29, #-16]
stur wzr, [x29, #-20]
str wzr, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
mov x9, sp
sub x8, x29, #5
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldursb w0, [x29, #-5]
bl _ispunct
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldursb w0, [x29, #-5]
bl _isalnum
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w9, [sp, #24]
mov w8, #1
add w9, w9, #1
str w9, [sp, #24]
stur w8, [x29, #-12]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldursb w8, [x29, #-5]
subs w8, w8, #32
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
stur wzr, [x29, #-12]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_10:
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_12
LBB0_12:
ldr w8, [sp, #24]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
movi d0, #0000000000000000
stur s0, [x29, #-16]
b LBB0_15
LBB0_14:
ldr s0, [sp, #24]
scvtf s0, s0
ldur s1, [x29, #-20]
scvtf s1, s1
fdiv s0, s0, s1
stur s0, [x29, #-16]
b LBB0_15
LBB0_15:
ldr w8, [sp, #24]
; implicit-def: $x10
mov x10, x8
ldur w8, [x29, #-20]
; implicit-def: $x9
mov x9, x8
ldur s0, [x29, #-16]
fcvt d0, s0
mov x8, sp
str x10, [x8]
str x9, [x8, #8]
str d0, [x8, #16]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%c"
l_.str.1: ; @.str.1
.asciz "\nsum_chars:%d;words:%d;avg_chars_per_word:%0.2f\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, -12(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -16(%rbp)
movl $0, -20(%rbp)
movl $0, -24(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
leaq L_.str(%rip), %rdi
leaq -5(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $-1, %eax
je LBB0_10
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movsbl -5(%rbp), %edi
callq _ispunct
cmpl $0, %eax
jne LBB0_9
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movsbl -5(%rbp), %edi
callq _isalnum
cmpl $0, %eax
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
movl $1, -12(%rbp)
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movsbl -5(%rbp), %eax
cmpl $32, %eax
jne LBB0_8
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -12(%rbp)
je LBB0_8
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
movl $0, -12(%rbp)
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_10:
cmpl $0, -12(%rbp)
je LBB0_12
## %bb.11:
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
LBB0_12:
cmpl $0, -24(%rbp)
jne LBB0_14
## %bb.13:
xorps %xmm0, %xmm0
movss %xmm0, -16(%rbp)
jmp LBB0_15
LBB0_14:
cvtsi2ssl -24(%rbp), %xmm0
cvtsi2ssl -20(%rbp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -16(%rbp)
LBB0_15:
movl -24(%rbp), %esi
movl -20(%rbp), %edx
movss -16(%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 "%c"
L_.str.1: ## @.str.1
.asciz "\nsum_chars:%d;words:%d;avg_chars_per_word:%0.2f\n"
.subsections_via_symbols
| the_stack_data/54824421.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _gasdev ; -- Begin function gasdev
.p2align 2
_gasdev: ; @gasdev
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
adrp x8, _gasdev.iset@PAGE
ldr w8, [x8, _gasdev.iset@PAGEOFF]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_1
LBB0_1:
b LBB0_2
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldur x0, [x29, #-16]
bl _ran1
fmov d1, d0
fmov d2, #-1.00000000
str d2, [sp, #16] ; 8-byte Folded Spill
fmov d0, #2.00000000
str d0, [sp, #24] ; 8-byte Folded Spill
fmadd d0, d0, d1, d2
str d0, [sp, #40]
ldur x0, [x29, #-16]
bl _ran1
ldr d2, [sp, #16] ; 8-byte Folded Reload
fmov d1, d0
ldr d0, [sp, #24] ; 8-byte Folded Reload
fmadd d0, d0, d1, d2
str d0, [sp, #32]
ldr d0, [sp, #40]
ldr d1, [sp, #40]
ldr d2, [sp, #32]
ldr d3, [sp, #32]
fmul d2, d2, d3
fmadd d0, d0, d1, d2
stur d0, [x29, #-32]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_2 Depth=1
ldur d0, [x29, #-32]
fmov d1, #1.00000000
fcmp d0, d1
cset w8, ge
mov w9, #1
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_2 Depth=1
ldur d0, [x29, #-32]
fcmp d0, #0.0
cset w8, eq
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_2 Depth=1
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbnz w8, #0, LBB0_2
b LBB0_6
LBB0_6:
ldur d0, [x29, #-32]
bl _log
fmov d1, d0
fmov d0, #-2.00000000
fmul d0, d0, d1
ldur d1, [x29, #-32]
fdiv d0, d0, d1
fsqrt d0, d0
stur d0, [x29, #-24]
ldr d0, [sp, #40]
ldur d1, [x29, #-24]
fmul d0, d0, d1
adrp x8, _gasdev.gset@PAGE
str d0, [x8, _gasdev.gset@PAGEOFF]
mov w8, #1
adrp x9, _gasdev.iset@PAGE
str w8, [x9, _gasdev.iset@PAGEOFF]
ldr d0, [sp, #32]
ldur d1, [x29, #-24]
fmul d0, d0, d1
stur d0, [x29, #-8]
b LBB0_8
LBB0_7:
adrp x8, _gasdev.iset@PAGE
str wzr, [x8, _gasdev.iset@PAGEOFF]
adrp x8, _gasdev.gset@PAGE
ldr d0, [x8, _gasdev.gset@PAGEOFF]
stur d0, [x29, #-8]
b LBB0_8
LBB0_8:
ldur d0, [x29, #-8]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_gasdev.iset,4,2 ; @gasdev.iset
.zerofill __DATA,__bss,_gasdev.gset,8,3 ; @gasdev.gset
.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 gasdev
LCPI0_0:
.quad 0xbff0000000000000 ## double -1
LCPI0_1:
.quad 0x3ff0000000000000 ## double 1
LCPI0_2:
.quad 0xc000000000000000 ## double -2
.section __TEXT,__text,regular,pure_instructions
.globl _gasdev
.p2align 4, 0x90
_gasdev: ## @gasdev
.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)
cmpl $0, _gasdev.iset(%rip)
jne LBB0_7
## %bb.1:
jmp LBB0_2
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rdi
callq _ran1
addsd %xmm0, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
addsd %xmm1, %xmm0
movsd %xmm0, -40(%rbp)
movq -16(%rbp), %rdi
callq _ran1
addsd %xmm0, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
addsd %xmm1, %xmm0
movsd %xmm0, -48(%rbp)
movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd -40(%rbp), %xmm2 ## xmm2 = mem[0],zero
movsd -48(%rbp), %xmm1 ## xmm1 = mem[0],zero
mulsd -48(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -32(%rbp)
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
movb $1, %al
movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero
ucomisd %xmm1, %xmm0
movb %al, -49(%rbp) ## 1-byte Spill
jae LBB0_5
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
sete %al
setnp %cl
andb %cl, %al
movb %al, -49(%rbp) ## 1-byte Spill
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
movb -49(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_2
## %bb.6:
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
callq _log
movaps %xmm0, %xmm1
movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm1, %xmm0
divsd -32(%rbp), %xmm0
sqrtsd %xmm0, %xmm0
movsd %xmm0, -24(%rbp)
movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero
mulsd -24(%rbp), %xmm0
movsd %xmm0, _gasdev.gset(%rip)
movl $1, _gasdev.iset(%rip)
movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero
mulsd -24(%rbp), %xmm0
movsd %xmm0, -8(%rbp)
jmp LBB0_8
LBB0_7:
movl $0, _gasdev.iset(%rip)
movsd _gasdev.gset(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -8(%rbp)
LBB0_8:
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_gasdev.iset,4,2 ## @gasdev.iset
.zerofill __DATA,__bss,_gasdev.gset,8,3 ## @gasdev.gset
.subsections_via_symbols
| the_stack_data/92325627.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur wzr, [x29, #-8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #100
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #16] ; 8-byte Folded Spill
ldur w0, [x29, #-8]
bl _fact
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@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB0_1
LBB0_4:
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "fact(%d) = %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $0, -8(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $100, -8(%rbp)
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
movl %eax, -12(%rbp) ## 4-byte Spill
movl -8(%rbp), %edi
callq _fact
movl -12(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_4:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "fact(%d) = %d\n"
.subsections_via_symbols
| the_stack_data/932885.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _merge ; -- Begin function merge
.p2align 2
_merge: ; @merge
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
str x0, [sp, #56]
str w1, [sp, #52]
str x2, [sp, #40]
str w3, [sp, #36]
ldr w8, [sp, #52]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_1
LBB0_1:
str wzr, [sp, #32]
b LBB0_2
LBB0_2: ; =>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_5
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_2 Depth=1
ldr x8, [sp, #40]
ldrsw x9, [sp, #32]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #56]
ldrsw x10, [sp, #32]
str w8, [x9, x10, lsl #2]
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_2 Depth=1
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_2
LBB0_5:
b LBB0_23
LBB0_6:
str wzr, [sp, #24]
ldr w8, [sp, #52]
str w8, [sp, #20]
str wzr, [sp, #28]
b LBB0_7
LBB0_7: ; =>This Loop Header: Depth=1
; Child Loop BB0_9 Depth 2
; Child Loop BB0_12 Depth 2
ldr w8, [sp, #28]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_22
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=1
ldr w8, [sp, #24]
str w8, [sp, #16]
b LBB0_9
LBB0_9: ; Parent Loop BB0_7 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #16]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_20
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=2
ldr x8, [sp, #40]
ldrsw x9, [sp, #28]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #56]
ldrsw x10, [sp, #16]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_16
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_7 Depth=1
ldr w8, [sp, #16]
str w8, [sp, #24]
ldr w8, [sp, #20]
str w8, [sp, #12]
b LBB0_12
LBB0_12: ; Parent Loop BB0_7 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #12]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_15
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_12 Depth=2
ldr x8, [sp, #56]
ldr w9, [sp, #12]
subs w9, w9, #1
ldr w8, [x8, w9, sxtw #2]
ldr x9, [sp, #56]
ldrsw x10, [sp, #12]
str w8, [x9, x10, lsl #2]
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_12 Depth=2
ldr w8, [sp, #12]
subs w8, w8, #1
str w8, [sp, #12]
b LBB0_12
LBB0_15: ; in Loop: Header=BB0_7 Depth=1
ldr x8, [sp, #40]
ldrsw x9, [sp, #28]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #56]
ldrsw x10, [sp, #16]
str w8, [x9, x10, lsl #2]
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_20
LBB0_16: ; in Loop: Header=BB0_9 Depth=2
ldr w8, [sp, #16]
ldr w9, [sp, #20]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_7 Depth=1
ldr x8, [sp, #40]
ldrsw x9, [sp, #28]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #56]
ldrsw x10, [sp, #20]
str w8, [x9, x10, lsl #2]
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_20
LBB0_18: ; in Loop: Header=BB0_9 Depth=2
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_9 Depth=2
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_9
LBB0_20: ; in Loop: Header=BB0_7 Depth=1
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_7 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_7
LBB0_22:
b LBB0_23
LBB0_23:
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 _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
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq %rdx, -24(%rbp)
movl %ecx, -28(%rbp)
cmpl $0, -12(%rbp)
jne LBB0_6
## %bb.1:
movl $0, -32(%rbp)
LBB0_2: ## =>This Inner Loop Header: Depth=1
movl -32(%rbp), %eax
cmpl -28(%rbp), %eax
jge LBB0_5
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movq -24(%rbp), %rax
movslq -32(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -8(%rbp), %rax
movslq -32(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB0_2
LBB0_5:
jmp LBB0_23
LBB0_6:
movl $0, -40(%rbp)
movl -12(%rbp), %eax
movl %eax, -44(%rbp)
movl $0, -36(%rbp)
LBB0_7: ## =>This Loop Header: Depth=1
## Child Loop BB0_9 Depth 2
## Child Loop BB0_12 Depth 2
movl -36(%rbp), %eax
cmpl -28(%rbp), %eax
jge LBB0_22
## %bb.8: ## in Loop: Header=BB0_7 Depth=1
movl -40(%rbp), %eax
movl %eax, -48(%rbp)
LBB0_9: ## Parent Loop BB0_7 Depth=1
## => This Inner Loop Header: Depth=2
movl -48(%rbp), %eax
cmpl -44(%rbp), %eax
jge LBB0_20
## %bb.10: ## in Loop: Header=BB0_9 Depth=2
movq -24(%rbp), %rax
movslq -36(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -8(%rbp), %rcx
movslq -48(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jg LBB0_16
## %bb.11: ## in Loop: Header=BB0_7 Depth=1
movl -48(%rbp), %eax
movl %eax, -40(%rbp)
movl -44(%rbp), %eax
movl %eax, -52(%rbp)
LBB0_12: ## Parent Loop BB0_7 Depth=1
## => This Inner Loop Header: Depth=2
movl -52(%rbp), %eax
cmpl -48(%rbp), %eax
jle LBB0_15
## %bb.13: ## in Loop: Header=BB0_12 Depth=2
movq -8(%rbp), %rax
movl -52(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -8(%rbp), %rax
movslq -52(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.14: ## in Loop: Header=BB0_12 Depth=2
movl -52(%rbp), %eax
addl $-1, %eax
movl %eax, -52(%rbp)
jmp LBB0_12
LBB0_15: ## in Loop: Header=BB0_7 Depth=1
movq -24(%rbp), %rax
movslq -36(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -8(%rbp), %rax
movslq -48(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_20
LBB0_16: ## in Loop: Header=BB0_9 Depth=2
movl -48(%rbp), %eax
movl -44(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jne LBB0_18
## %bb.17: ## in Loop: Header=BB0_7 Depth=1
movq -24(%rbp), %rax
movslq -36(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -8(%rbp), %rax
movslq -44(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_20
LBB0_18: ## in Loop: Header=BB0_9 Depth=2
jmp LBB0_19
LBB0_19: ## in Loop: Header=BB0_9 Depth=2
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
jmp LBB0_9
LBB0_20: ## in Loop: Header=BB0_7 Depth=1
jmp LBB0_21
LBB0_21: ## in Loop: Header=BB0_7 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB0_7
LBB0_22:
jmp LBB0_23
LBB0_23:
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/34511929.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _compar ; -- Begin function compar
.p2align 2
_compar: ; @compar
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #32]
str x1, [sp, #24]
ldr x8, [sp, #32]
str x8, [sp, #16]
ldr x8, [sp, #24]
str x8, [sp, #8]
ldr x8, [sp, #16]
ldr x9, [sp, #8]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #-1
str w8, [sp, #44]
b LBB0_5
LBB0_2:
ldr x8, [sp, #16]
ldr x9, [sp, #8]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
str wzr, [sp, #44]
b LBB0_5
LBB0_4:
mov w8, #1
str w8, [sp, #44]
b LBB0_5
LBB0_5:
ldr w0, [sp, #44]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI1_0:
.quad 0x4090000000000000 ; double 1024
lCPI1_1:
.quad 0x41cdcd6500000000 ; double 1.0E+9
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #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 wzr, [x29, #-4]
stur wzr, [x29, #-8]
mov w8, #134217728
stur w8, [x29, #-12]
ldursw x8, [x29, #-12]
lsl x0, x8, #3
bl _malloc
stur x0, [x29, #-24]
str wzr, [sp, #36]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_3 Depth 2
ldr w8, [sp, #36]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_8
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
str xzr, [sp, #24]
str xzr, [sp, #16]
b LBB1_3
LBB1_3: ; Parent Loop BB1_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #16]
subs x8, x8, #8
cset w8, hs
tbnz w8, #0, LBB1_6
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=2
ldr x8, [sp, #24]
lsl x8, x8, #8
str x8, [sp, #24]
bl _rand
; implicit-def: $x8
mov x8, x0
sxtw x9, w8
ldr x8, [sp, #24]
eor x8, x8, x9
str x8, [sp, #24]
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=2
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB1_3
LBB1_6: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #24]
ldur x9, [x29, #-24]
ldrsw x10, [sp, #36]
str x8, [x9, x10, lsl #3]
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB1_1
LBB1_8:
mov w0, #0
sub x1, x29, #40
bl _clock_gettime
stur w0, [x29, #-8]
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
adrp x0, l___func__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #39
adrp x3, l_.str.1@PAGE
add x3, x3, l_.str.1@PAGEOFF
bl ___assert_rtn
LBB1_10:
b LBB1_11
LBB1_11:
ldur x0, [x29, #-24]
ldursw x1, [x29, #-12]
mov x2, #8
adrp x3, _compar@PAGE
add x3, x3, _compar@PAGEOFF
bl _qsort
mov w0, #0
add x1, sp, #56
bl _clock_gettime
stur w0, [x29, #-8]
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w9, ne
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB1_13
b LBB1_12
LBB1_12:
adrp x0, l___func__.main@PAGE
add x0, x0, l___func__.main@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #42
adrp x3, l_.str.1@PAGE
add x3, x3, l_.str.1@PAGEOFF
bl ___assert_rtn
LBB1_13:
b LBB1_14
LBB1_14:
ldur d0, [x29, #-40]
scvtf d0, d0
str d0, [sp, #48]
ldur d0, [x29, #-32]
scvtf d0, d0
adrp x8, lCPI1_1@PAGE
ldr d1, [x8, lCPI1_1@PAGEOFF]
fdiv d2, d0, d1
ldr d0, [sp, #48]
fadd d0, d0, d2
str d0, [sp, #48]
ldr d0, [sp, #56]
scvtf d0, d0
str d0, [sp, #40]
ldr d0, [sp, #64]
scvtf d0, d0
fdiv d1, d0, d1
ldr d0, [sp, #40]
fadd d0, d0, d1
str d0, [sp, #40]
ldur w8, [x29, #-12]
; implicit-def: $x9
mov x9, x8
ldr d0, [sp, #40]
ldr d1, [sp, #48]
fsub 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
ldur w9, [x29, #-12]
mov w8, #8
mul w8, w8, w9
scvtf d0, w8
ldr d1, [sp, #40]
ldr d2, [sp, #48]
fsub d1, d1, d2
fdiv d0, d0, d1
adrp x8, lCPI1_0@PAGE
ldr d1, [x8, lCPI1_0@PAGEOFF]
fdiv d0, d0, d1
fdiv d0, d0, d1
mov x8, sp
str d0, [x8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l___func__.main: ; @__func__.main
.asciz "main"
l_.str: ; @.str
.asciz "24206.c"
l_.str.1: ; @.str.1
.asciz "!err"
l_.str.2: ; @.str.2
.asciz "Sorted %i elements in %f seconds\n"
l_.str.3: ; @.str.3
.asciz "%f MiB/s\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _compar ## -- Begin function compar
.p2align 4, 0x90
_compar: ## @compar
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -16(%rbp), %rax
movq %rax, -32(%rbp)
movq -24(%rbp), %rax
movq %rax, -40(%rbp)
movq -32(%rbp), %rax
cmpq -40(%rbp), %rax
jae LBB0_2
## %bb.1:
movl $-1, -4(%rbp)
jmp LBB0_5
LBB0_2:
movq -32(%rbp), %rax
cmpq -40(%rbp), %rax
jne LBB0_4
## %bb.3:
movl $0, -4(%rbp)
jmp LBB0_5
LBB0_4:
movl $1, -4(%rbp)
LBB0_5:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI1_0:
.quad 0x4090000000000000 ## double 1024
LCPI1_1:
.quad 0x41cdcd6500000000 ## double 1.0E+9
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $96, %rsp
movl $0, -4(%rbp)
movl $0, -8(%rbp)
movl $134217728, -12(%rbp) ## imm = 0x8000000
movslq -12(%rbp), %rdi
shlq $3, %rdi
callq _malloc
movq %rax, -24(%rbp)
movl $0, -76(%rbp)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_3 Depth 2
movl -76(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB1_8
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq $0, -88(%rbp)
movq $0, -96(%rbp)
LBB1_3: ## Parent Loop BB1_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpq $8, -96(%rbp)
jae LBB1_6
## %bb.4: ## in Loop: Header=BB1_3 Depth=2
movq -88(%rbp), %rax
shlq $8, %rax
movq %rax, -88(%rbp)
callq _rand
cltq
xorq -88(%rbp), %rax
movq %rax, -88(%rbp)
## %bb.5: ## in Loop: Header=BB1_3 Depth=2
movq -96(%rbp), %rax
addq $1, %rax
movq %rax, -96(%rbp)
jmp LBB1_3
LBB1_6: ## in Loop: Header=BB1_1 Depth=1
movq -88(%rbp), %rdx
movq -24(%rbp), %rax
movslq -76(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
## %bb.7: ## in Loop: Header=BB1_1 Depth=1
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
jmp LBB1_1
LBB1_8:
xorl %edi, %edi
leaq -40(%rbp), %rsi
callq _clock_gettime
movl %eax, -8(%rbp)
cmpl $0, -8(%rbp)
setne %al
xorb $-1, %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB1_10
## %bb.9:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rcx
movl $39, %edx
callq ___assert_rtn
LBB1_10:
jmp LBB1_11
LBB1_11:
movq -24(%rbp), %rdi
movslq -12(%rbp), %rsi
movl $8, %edx
leaq _compar(%rip), %rcx
callq _qsort
xorl %edi, %edi
leaq -56(%rbp), %rsi
callq _clock_gettime
movl %eax, -8(%rbp)
cmpl $0, -8(%rbp)
setne %al
xorb $-1, %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB1_13
## %bb.12:
leaq L___func__.main(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rcx
movl $42, %edx
callq ___assert_rtn
LBB1_13:
jmp LBB1_14
LBB1_14:
cvtsi2sdq -40(%rbp), %xmm0
movsd %xmm0, -64(%rbp)
cvtsi2sdq -32(%rbp), %xmm0
movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
addsd -64(%rbp), %xmm0
movsd %xmm0, -64(%rbp)
cvtsi2sdq -56(%rbp), %xmm0
movsd %xmm0, -72(%rbp)
cvtsi2sdq -48(%rbp), %xmm0
movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
addsd -72(%rbp), %xmm0
movsd %xmm0, -72(%rbp)
movl -12(%rbp), %esi
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
subsd -64(%rbp), %xmm0
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
movl -12(%rbp), %eax
shll $3, %eax
cvtsi2sd %eax, %xmm0
movsd -72(%rbp), %xmm1 ## xmm1 = mem[0],zero
subsd -64(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
leaq L_.str.3(%rip), %rdi
movb $1, %al
callq _printf
xorl %eax, %eax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L___func__.main: ## @__func__.main
.asciz "main"
L_.str: ## @.str
.asciz "24206.c"
L_.str.1: ## @.str.1
.asciz "!err"
L_.str.2: ## @.str.2
.asciz "Sorted %i elements in %f seconds\n"
L_.str.3: ## @.str.3
.asciz "%f MiB/s\n"
.subsections_via_symbols
| the_stack_data/24206.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #28] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
mov x9, sp
sub x8, x29, #20
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldur w8, [x29, #-20]
lsr w8, w8, #4
stur w8, [x29, #-24]
mov w8, #15
stur w8, [x29, #-28]
ldur w8, [x29, #-24]
ldur w9, [x29, #-28]
and w8, w8, w9
str w8, [sp, #32]
ldur w8, [x29, #-20]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #32]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
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 "%o"
l_.str.1: ; @.str.1
.asciz "%o\n%o\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
leaq L_.str(%rip), %rdi
leaq -20(%rbp), %rsi
movb $0, %al
callq _scanf
movl -20(%rbp), %eax
shrl $4, %eax
movl %eax, -24(%rbp)
movl $15, -28(%rbp)
movl -24(%rbp), %eax
andl -28(%rbp), %eax
movl %eax, -32(%rbp)
movl -20(%rbp), %esi
movl -32(%rbp), %edx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%o"
L_.str.1: ## @.str.1
.asciz "%o\n%o\n"
.subsections_via_symbols
| the_stack_data/352415.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov x9, sp
sub x8, x29, #16
str x8, [x9]
add x8, sp, #24
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
mov w8, #2
stur w8, [x29, #-20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur d0, [x29, #-16]
ldur d1, [x29, #-16]
fmul d0, d0, d1
stur d0, [x29, #-16]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_1
LBB0_4:
ldur d0, [x29, #-16]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%llf%d"
l_.str.1: ; @.str.1
.asciz "%llf"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -32(%rbp), %rsi
leaq -40(%rbp), %rdx
movb $0, %al
callq _scanf
movl $2, -36(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -36(%rbp), %eax
cmpl -40(%rbp), %eax
jg LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
fldt -32(%rbp)
fmul %st, %st(0)
fstpt -32(%rbp)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB0_1
LBB0_4:
fldt -32(%rbp)
movq %rsp, %rax
fstpt (%rax)
leaq L_.str.1(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%llf%d"
L_.str.1: ## @.str.1
.asciz "%llf"
.subsections_via_symbols
| the_stack_data/123681.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _le_S_N ; -- Begin function le_S_N
.p2align 2
_le_S_N: ; @le_S_N
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _puts
mov x9, sp
sub x8, x29, #1
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldursb w0, [x29, #-1]
bl _tolower
sturb w0, [x29, #-1]
ldursb w8, [x29, #-1]
subs w8, w8, #110
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldursb w8, [x29, #-1]
subs w8, w8, #115
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _puts
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldursb w8, [x29, #-1]
subs w8, w8, #110
cset w8, eq
mov w9, #0
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldursb w8, [x29, #-1]
subs w8, w8, #115
cset w8, ne
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8] ; 4-byte Folded Reload
tbnz w8, #0, LBB0_1
b LBB0_8
LBB0_8:
ldursb w0, [x29, #-1]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _triangulo ; -- Begin function triangulo
.p2align 2
_triangulo: ; @triangulo
.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 x0, [sp, #8]
ldr s0, [sp, #28]
ldr s1, [sp, #24]
ldr s2, [sp, #20]
fadd s1, s1, s2
fcmp s0, s1
cset w8, pl
tbnz w8, #0, LBB1_13
b LBB1_1
LBB1_1:
ldr s0, [sp, #24]
ldr s1, [sp, #28]
ldr s2, [sp, #20]
fadd s1, s1, s2
fcmp s0, s1
cset w8, pl
tbnz w8, #0, LBB1_13
b LBB1_2
LBB1_2:
ldr s0, [sp, #20]
ldr s1, [sp, #28]
ldr s2, [sp, #24]
fadd s1, s1, s2
fcmp s0, s1
cset w8, pl
tbnz w8, #0, LBB1_13
b LBB1_3
LBB1_3:
ldr s0, [sp, #28]
ldr s1, [sp, #24]
fadd s0, s0, s1
ldr s1, [sp, #20]
fadd s0, s0, s1
fmov s1, #2.00000000
fdiv s0, s0, s1
str s0, [sp]
ldr s0, [sp]
ldr s1, [sp]
ldr s2, [sp, #28]
fsub s1, s1, s2
fmul s0, s0, s1
ldr s1, [sp]
ldr s2, [sp, #24]
fsub s1, s1, s2
fmul s0, s0, s1
ldr s1, [sp]
ldr s2, [sp, #20]
fsub s1, s1, s2
fmul s0, s0, s1
fcvt d0, s0
fsqrt d0, d0
fcvt s0, d0
ldr x8, [sp, #8]
str s0, [x8]
ldr s0, [sp, #28]
ldr s1, [sp, #24]
fcmp s0, s1
cset w8, ne
tbnz w8, #0, LBB1_6
b LBB1_4
LBB1_4:
ldr s0, [sp, #24]
ldr s1, [sp, #20]
fcmp s0, s1
cset w8, ne
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5:
mov w8, #113
strb w8, [sp, #7]
b LBB1_12
LBB1_6:
ldr s0, [sp, #28]
ldr s1, [sp, #24]
fcmp s0, s1
cset w8, eq
tbnz w8, #0, LBB1_9
b LBB1_7
LBB1_7:
ldr s0, [sp, #28]
ldr s1, [sp, #20]
fcmp s0, s1
cset w8, eq
tbnz w8, #0, LBB1_9
b LBB1_8
LBB1_8:
ldr s0, [sp, #24]
ldr s1, [sp, #20]
fcmp s0, s1
cset w8, ne
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
mov w8, #105
strb w8, [sp, #7]
b LBB1_11
LBB1_10:
mov w8, #101
strb w8, [sp, #7]
b LBB1_11
LBB1_11:
b LBB1_12
LBB1_12:
b LBB1_14
LBB1_13:
mov w8, #110
strb w8, [sp, #7]
b LBB1_14
LBB1_14:
ldrsb w0, [sp, #7]
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, #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]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _puts
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
bl _scanf
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #12
str x8, [x9]
bl _scanf
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
sub x8, x29, #16
str x8, [x9]
bl _scanf
ldur s0, [x29, #-8]
ldur s1, [x29, #-12]
ldur s2, [x29, #-16]
sub x0, x29, #20
bl _triangulo
sturb w0, [x29, #-21]
ldursb w8, [x29, #-21]
subs w8, w8, #113
cset w8, ne
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldur s0, [x29, #-20]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB2_10
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldursb w8, [x29, #-21]
subs w8, w8, #105
cset w8, ne
tbnz w8, #0, LBB2_5
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_1 Depth=1
ldur s0, [x29, #-20]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB2_9
LBB2_5: ; in Loop: Header=BB2_1 Depth=1
ldursb w8, [x29, #-21]
subs w8, w8, #101
cset w8, ne
tbnz w8, #0, LBB2_7
b LBB2_6
LBB2_6: ; in Loop: Header=BB2_1 Depth=1
ldur s0, [x29, #-20]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB2_8
LBB2_7: ; in Loop: Header=BB2_1 Depth=1
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
b LBB2_8
LBB2_8: ; in Loop: Header=BB2_1 Depth=1
b LBB2_9
LBB2_9: ; in Loop: Header=BB2_1 Depth=1
b LBB2_10
LBB2_10: ; in Loop: Header=BB2_1 Depth=1
bl _le_S_N
sturb w0, [x29, #-22]
b LBB2_11
LBB2_11: ; in Loop: Header=BB2_1 Depth=1
ldursb w8, [x29, #-22]
subs w8, w8, #110
cset w8, ne
tbnz w8, #0, LBB2_1
b LBB2_12
LBB2_12:
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Mais um (S/N)?"
l_.str.1: ; @.str.1
.asciz " %c"
l_.str.2: ; @.str.2
.asciz "Opcao invalida!"
l_.str.3: ; @.str.3
.asciz "Entre com os valores dos lados do triangulo:"
l_.str.4: ; @.str.4
.asciz " %f"
l_.str.5: ; @.str.5
.asciz "O triangulo eh equilatero. Sua area eh: %f.\n"
l_.str.6: ; @.str.6
.asciz "O triangulo eh isosceles. Sua area eh: %f.\n"
l_.str.7: ; @.str.7
.asciz "O triangulo eh escaleno. Sua area eh: %f.\n"
l_.str.8: ; @.str.8
.asciz "Nao eh triangulo.\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _le_S_N ## -- Begin function le_S_N
.p2align 4, 0x90
_le_S_N: ## @le_S_N
.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
LBB0_1: ## =>This Inner Loop Header: Depth=1
leaq L_.str(%rip), %rdi
callq _puts
leaq L_.str.1(%rip), %rdi
leaq -1(%rbp), %rsi
movb $0, %al
callq _scanf
movsbl -1(%rbp), %edi
callq _tolower
## kill: def $al killed $al killed $eax
movb %al, -1(%rbp)
movsbl -1(%rbp), %eax
cmpl $110, %eax
je LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movsbl -1(%rbp), %eax
cmpl $115, %eax
je LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.2(%rip), %rdi
callq _puts
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movsbl -1(%rbp), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $110, %ecx
movb %al, -2(%rbp) ## 1-byte Spill
je LBB0_7
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
movsbl -1(%rbp), %eax
cmpl $115, %eax
setne %al
movb %al, -2(%rbp) ## 1-byte Spill
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movb -2(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_1
## %bb.8:
movsbl -1(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function triangulo
LCPI1_0:
.long 0x40000000 ## float 2
.section __TEXT,__text,regular,pure_instructions
.globl _triangulo
.p2align 4, 0x90
_triangulo: ## @triangulo
.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)
movq %rdi, -24(%rbp)
movss -4(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addss -12(%rbp), %xmm0
ucomiss %xmm1, %xmm0
jbe LBB1_13
## %bb.1:
movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addss -12(%rbp), %xmm0
ucomiss %xmm1, %xmm0
jbe LBB1_13
## %bb.2:
movss -12(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addss -8(%rbp), %xmm0
ucomiss %xmm1, %xmm0
jbe LBB1_13
## %bb.3:
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addss -8(%rbp), %xmm0
addss -12(%rbp), %xmm0
movss LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
divss %xmm1, %xmm0
movss %xmm0, -32(%rbp)
movss -32(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss -32(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
subss -4(%rbp), %xmm1
mulss %xmm1, %xmm0
movss -32(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
subss -8(%rbp), %xmm1
mulss %xmm1, %xmm0
movss -32(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
subss -12(%rbp), %xmm1
mulss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
sqrtsd %xmm0, %xmm0
cvtsd2ss %xmm0, %xmm0
movq -24(%rbp), %rax
movss %xmm0, (%rax)
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -8(%rbp), %xmm0
jne LBB1_6
jp LBB1_6
## %bb.4:
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -12(%rbp), %xmm0
jne LBB1_6
jp LBB1_6
## %bb.5:
movb $113, -25(%rbp)
jmp LBB1_12
LBB1_6:
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -8(%rbp), %xmm0
jne LBB1_7
jp LBB1_7
jmp LBB1_9
LBB1_7:
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -12(%rbp), %xmm0
jne LBB1_8
jp LBB1_8
jmp LBB1_9
LBB1_8:
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -12(%rbp), %xmm0
jne LBB1_10
jp LBB1_10
LBB1_9:
movb $105, -25(%rbp)
jmp LBB1_11
LBB1_10:
movb $101, -25(%rbp)
LBB1_11:
jmp LBB1_12
LBB1_12:
jmp LBB1_14
LBB1_13:
movb $110, -25(%rbp)
LBB1_14:
movsbl -25(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
leaq L_.str.3(%rip), %rdi
callq _puts
leaq L_.str.4(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.4(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.4(%rip), %rdi
leaq -16(%rbp), %rsi
movb $0, %al
callq _scanf
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss -12(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss -16(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero
leaq -20(%rbp), %rdi
callq _triangulo
movb %al, -21(%rbp)
movsbl -21(%rbp), %eax
cmpl $113, %eax
jne LBB2_3
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.5(%rip), %rdi
movb $1, %al
callq _printf
jmp LBB2_10
LBB2_3: ## in Loop: Header=BB2_1 Depth=1
movsbl -21(%rbp), %eax
cmpl $105, %eax
jne LBB2_5
## %bb.4: ## in Loop: Header=BB2_1 Depth=1
movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.6(%rip), %rdi
movb $1, %al
callq _printf
jmp LBB2_9
LBB2_5: ## in Loop: Header=BB2_1 Depth=1
movsbl -21(%rbp), %eax
cmpl $101, %eax
jne LBB2_7
## %bb.6: ## in Loop: Header=BB2_1 Depth=1
movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.7(%rip), %rdi
movb $1, %al
callq _printf
jmp LBB2_8
LBB2_7: ## in Loop: Header=BB2_1 Depth=1
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
LBB2_8: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_9
LBB2_9: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_10
LBB2_10: ## in Loop: Header=BB2_1 Depth=1
callq _le_S_N
movb %al, -22(%rbp)
## %bb.11: ## in Loop: Header=BB2_1 Depth=1
movsbl -22(%rbp), %eax
cmpl $110, %eax
jne LBB2_1
## %bb.12:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Mais um (S/N)?"
L_.str.1: ## @.str.1
.asciz " %c"
L_.str.2: ## @.str.2
.asciz "Opcao invalida!"
L_.str.3: ## @.str.3
.asciz "Entre com os valores dos lados do triangulo:"
L_.str.4: ## @.str.4
.asciz " %f"
L_.str.5: ## @.str.5
.asciz "O triangulo eh equilatero. Sua area eh: %f.\n"
L_.str.6: ## @.str.6
.asciz "O triangulo eh isosceles. Sua area eh: %f.\n"
L_.str.7: ## @.str.7
.asciz "O triangulo eh escaleno. Sua area eh: %f.\n"
L_.str.8: ## @.str.8
.asciz "Nao eh triangulo.\n"
.subsections_via_symbols
| the_stack_data/179829535.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/81247.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]
movi d0, #0000000000000000
str d0, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
mov x9, sp
add x8, sp, #16
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr d1, [sp, #16]
ldr d0, [sp, #8]
fadd d0, d0, d1
str d0, [sp, #8]
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
adrp x8, ___stdinp@GOTPAGE
ldr x8, [x8, ___stdinp@GOTPAGEOFF]
ldr x0, [x8]
bl _feof
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_1
b LBB0_3
LBB0_3:
ldr d0, [sp, #8]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w0, #1
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 "%LE\n"
l_.str.1: ; @.str.1
.asciz "%40.35LE\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl $0, -4(%rbp)
fldz
fstpt -48(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
leaq -32(%rbp), %rsi
callq _scanf
fldt -32(%rbp)
fldt -48(%rbp)
faddp %st, %st(1)
fstpt -48(%rbp)
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _feof
cmpl $0, %eax
setne %al
xorb $-1, %al
testb $1, %al
jne LBB0_1
## %bb.3:
fldt -48(%rbp)
movq %rsp, %rax
fstpt (%rax)
leaq L_.str.1(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $1, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%LE\n"
L_.str.1: ## @.str.1
.asciz "%40.35LE\n"
.subsections_via_symbols
| the_stack_data/43888692.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, #1
; kill: def $x8 killed $w8
str x8, [sp, #16] ; 8-byte Folded Spill
subs x8, x8, #11
cset w8, hi
tbnz w8, #0, LBB0_14
; %bb.1:
ldr x11, [sp, #16] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_2:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_15
LBB0_3:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_15
LBB0_4:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB0_15
LBB0_5:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB0_15
LBB0_6:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB0_15
LBB0_7:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB0_15
LBB0_8:
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
b LBB0_15
LBB0_9:
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
b LBB0_15
LBB0_10:
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
b LBB0_15
LBB0_11:
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
b LBB0_15
LBB0_12:
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
b LBB0_15
LBB0_13:
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
b LBB0_15
LBB0_14:
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
b LBB0_15
LBB0_15:
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_2-Ltmp0
.long LBB0_3-Ltmp0
.long LBB0_4-Ltmp0
.long LBB0_5-Ltmp0
.long LBB0_6-Ltmp0
.long LBB0_7-Ltmp0
.long LBB0_8-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_10-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_12-Ltmp0
.long LBB0_13-Ltmp0
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Enter integer value: "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "January \n"
l_.str.3: ; @.str.3
.asciz "February \n"
l_.str.4: ; @.str.4
.asciz "March \n"
l_.str.5: ; @.str.5
.asciz "April \n"
l_.str.6: ; @.str.6
.asciz "May \n"
l_.str.7: ; @.str.7
.asciz "June \n"
l_.str.8: ; @.str.8
.asciz "July \n"
l_.str.9: ; @.str.9
.asciz "August \n"
l_.str.10: ; @.str.10
.asciz "September \n"
l_.str.11: ; @.str.11
.asciz "October \n"
l_.str.12: ; @.str.12
.asciz "November \n"
l_.str.13: ; @.str.13
.asciz "December \n"
l_.str.14: ; @.str.14
.asciz "Incorrect number! \n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movb %al, -17(%rbp) ## 1-byte Spill
callq _printf
## kill: def $ecx killed $eax
movb -17(%rbp), %al ## 1-byte Reload
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
callq _scanf
movl -8(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -16(%rbp) ## 8-byte Spill
subl $11, %eax
ja LBB0_13
## %bb.15:
movq -16(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_1:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_14
LBB0_2:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_14
LBB0_3:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_14
LBB0_4:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_14
LBB0_5:
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_14
LBB0_6:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_14
LBB0_7:
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_14
LBB0_8:
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_14
LBB0_9:
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_14
LBB0_10:
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_14
LBB0_11:
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_14
LBB0_12:
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_14
LBB0_13:
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
LBB0_14:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.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
LJTI0_0:
.long L0_0_set_1
.long L0_0_set_2
.long L0_0_set_3
.long L0_0_set_4
.long L0_0_set_5
.long L0_0_set_6
.long L0_0_set_7
.long L0_0_set_8
.long L0_0_set_9
.long L0_0_set_10
.long L0_0_set_11
.long L0_0_set_12
.end_data_region
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter integer value: "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "January \n"
L_.str.3: ## @.str.3
.asciz "February \n"
L_.str.4: ## @.str.4
.asciz "March \n"
L_.str.5: ## @.str.5
.asciz "April \n"
L_.str.6: ## @.str.6
.asciz "May \n"
L_.str.7: ## @.str.7
.asciz "June \n"
L_.str.8: ## @.str.8
.asciz "July \n"
L_.str.9: ## @.str.9
.asciz "August \n"
L_.str.10: ## @.str.10
.asciz "September \n"
L_.str.11: ## @.str.11
.asciz "October \n"
L_.str.12: ## @.str.12
.asciz "November \n"
L_.str.13: ## @.str.13
.asciz "December \n"
L_.str.14: ## @.str.14
.asciz "Incorrect number! \n"
.subsections_via_symbols
| the_stack_data/14565.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 0x3fb999999999999a ; double 0.10000000000000001
lCPI0_1:
.quad 0x3fd999999999999a ; double 0.40000000000000002
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #20
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
str x0, [sp, #8] ; 8-byte Folded Spill
bl _scanf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
add x8, sp, #24
str x8, [x9]
bl _scanf
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
add x8, sp, #20
str x8, [x9]
bl _scanf
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldur s1, [x29, #-20]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
ldr s2, [sp, #24]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
fmov d2, #0.50000000
fmul d2, d1, d2
adrp x8, lCPI0_1@PAGE
ldr d1, [x8, lCPI0_1@PAGEOFF]
fmadd d2, d0, d1, d2
ldr s1, [sp, #20]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fmadd d0, d0, d1, d2
fcvt s0, d0
str s0, [sp, #16]
ldr s0, [sp, #16]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldr s0, [sp, #16]
mov w8, #1114636288
fmov s1, w8
fcmp s0, s1
cset w8, le
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB0_3
LBB0_2:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB0_3
LBB0_3:
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "arasinav puanini giriniz:"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "final puanini giriniz :"
l_.str.3: ; @.str.3
.asciz "devam puanini giriniz :"
l_.str.4: ; @.str.4
.asciz "------------------------\n"
l_.str.5: ; @.str.5
.asciz "Ortalama puaniniz %.2f :"
l_.str.6: ; @.str.6
.asciz "\n tebrikler gectiniz"
l_.str.7: ; @.str.7
.asciz "\n \303\274zg\303\274n\303\274z."
.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 0x42700000 ## float 60
.section __TEXT,__literal8,8byte_literals
.p2align 3
LCPI0_1:
.quad 0x3fb999999999999a ## double 0.10000000000000001
LCPI0_2:
.quad 0x3fd999999999999a ## double 0.40000000000000002
LCPI0_3:
.quad 0x3fe0000000000000 ## double 0.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 $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -20(%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 -24(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -28(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
cvtsi2sdl -20(%rbp), %xmm1
cvtsi2sdl -24(%rbp), %xmm0
movsd LCPI0_3(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
movsd LCPI0_2(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
cvtsi2sdl -28(%rbp), %xmm0
movsd LCPI0_1(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -32(%rbp)
movss -32(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.5(%rip), %rdi
movb $1, %al
callq _printf
movss -32(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
jbe LBB0_2
## %bb.1:
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_3
LBB0_2:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
LBB0_3:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "arasinav puanini giriniz:"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "final puanini giriniz :"
L_.str.3: ## @.str.3
.asciz "devam puanini giriniz :"
L_.str.4: ## @.str.4
.asciz "------------------------\n"
L_.str.5: ## @.str.5
.asciz "Ortalama puaniniz %.2f :"
L_.str.6: ## @.str.6
.asciz "\n tebrikler gectiniz"
L_.str.7: ## @.str.7
.asciz "\n \303\274zg\303\274n\303\274z."
.subsections_via_symbols
| the_stack_data/89782.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl ___VERIFIER_assert ; -- Begin function __VERIFIER_assert
.p2align 2
___VERIFIER_assert: ; @__VERIFIER_assert
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
ldur w8, [x29, #-4]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
b LBB0_2
LBB0_2:
bl ___VERIFIER_error
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub sp, sp, #80
adrp x8, _N@GOTPAGE
ldr x8, [x8, _N@GOTPAGEOFF]
stur x8, [x29, #-48] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-12]
bl ___VERIFIER_nondet_int
ldur x8, [x29, #-48] ; 8-byte Folded Reload
str w0, [x8]
ldr w8, [x8]
subs w8, w8, #0
cset w8, gt
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
mov w8, #1
stur w8, [x29, #-12]
b LBB1_17
LBB1_2:
ldur x8, [x29, #-48] ; 8-byte Folded Reload
ldr w8, [x8]
; kill: def $x8 killed $w8
mov x9, sp
stur x9, [x29, #-32]
lsl x9, x8, #2
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-64] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-64] ; 8-byte Folded Reload
mov x9, sp
subs x9, x9, x10
mov sp, x9
stur x9, [x29, #-56] ; 8-byte Folded Spill
stur x8, [x29, #-40]
stur wzr, [x29, #-16]
b LBB1_3
LBB1_3: ; =>This Inner Loop Header: Depth=1
ldur x9, [x29, #-48] ; 8-byte Folded Reload
ldur w8, [x29, #-16]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_9
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=1
ldur w8, [x29, #-16]
mov w10, #4
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=1
ldur x9, [x29, #-56] ; 8-byte Folded Reload
ldursw x10, [x29, #-16]
mov w8, #4
str w8, [x9, x10, lsl #2]
b LBB1_7
LBB1_6: ; in Loop: Header=BB1_3 Depth=1
ldur x9, [x29, #-56] ; 8-byte Folded Reload
ldursw x10, [x29, #-16]
mov w8, #0
str w8, [x9, x10, lsl #2]
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_3 Depth=1
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_3 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB1_3
LBB1_9:
stur wzr, [x29, #-16]
b LBB1_10
LBB1_10: ; =>This Inner Loop Header: Depth=1
ldur x9, [x29, #-48] ; 8-byte Folded Reload
ldur w8, [x29, #-16]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_16
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_10 Depth=1
ldur w8, [x29, #-16]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_13
b LBB1_12
LBB1_12: ; in Loop: Header=BB1_10 Depth=1
stur wzr, [x29, #-20]
b LBB1_14
LBB1_13: ; in Loop: Header=BB1_10 Depth=1
ldur x9, [x29, #-56] ; 8-byte Folded Reload
ldur w8, [x29, #-20]
ldursw x10, [x29, #-16]
ldr w9, [x9, x10, lsl #2]
add w8, w8, w9
stur w8, [x29, #-20]
b LBB1_14
LBB1_14: ; in Loop: Header=BB1_10 Depth=1
b LBB1_15
LBB1_15: ; in Loop: Header=BB1_10 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB1_10
LBB1_16:
ldur x9, [x29, #-48] ; 8-byte Folded Reload
ldur w8, [x29, #-20]
ldr w10, [x9]
mov w9, #4
mul w9, w9, w10
subs w8, w8, w9
cset w8, le
and w0, w8, #0x1
bl ___VERIFIER_assert
mov w8, #1
stur w8, [x29, #-12]
ldur x8, [x29, #-32]
mov sp, x8
b LBB1_17
LBB1_17:
ldur w8, [x29, #-12]
stur w8, [x29, #-68] ; 4-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_19
b LBB1_18
LBB1_18:
bl ___stack_chk_fail
LBB1_19:
ldur w0, [x29, #-68] ; 4-byte Folded Reload
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.comm _N,4,2 ; @N
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl ___VERIFIER_assert ## -- Begin function __VERIFIER_assert
.p2align 4, 0x90
___VERIFIER_assert: ## @__VERIFIER_assert
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
cmpl $0, -4(%rbp)
jne LBB0_3
## %bb.1:
jmp LBB0_2
LBB0_2:
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq ___VERIFIER_error
LBB0_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -12(%rbp)
callq ___VERIFIER_nondet_int
movl %eax, %ecx
movq _N@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _N@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jg LBB1_2
## %bb.1:
movl $1, -12(%rbp)
jmp LBB1_17
LBB1_2:
movq _N@GOTPCREL(%rip), %rax
movl (%rax), %eax
## kill: def $rax killed $eax
movq %rax, -56(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -32(%rbp)
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -56(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -48(%rbp) ## 8-byte Spill
movq %rax, -40(%rbp)
movl $0, -16(%rbp)
LBB1_3: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
movq _N@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_9
## %bb.4: ## in Loop: Header=BB1_3 Depth=1
movl -16(%rbp), %eax
movl $4, %ecx
cltd
idivl %ecx
cmpl $0, %edx
jne LBB1_6
## %bb.5: ## in Loop: Header=BB1_3 Depth=1
movq -48(%rbp), %rax ## 8-byte Reload
movslq -16(%rbp), %rcx
movl $4, (%rax,%rcx,4)
jmp LBB1_7
LBB1_6: ## in Loop: Header=BB1_3 Depth=1
movq -48(%rbp), %rax ## 8-byte Reload
movslq -16(%rbp), %rcx
movl $0, (%rax,%rcx,4)
LBB1_7: ## in Loop: Header=BB1_3 Depth=1
jmp LBB1_8
LBB1_8: ## in Loop: Header=BB1_3 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_3
LBB1_9:
movl $0, -16(%rbp)
LBB1_10: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
movq _N@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB1_16
## %bb.11: ## in Loop: Header=BB1_10 Depth=1
cmpl $0, -16(%rbp)
jne LBB1_13
## %bb.12: ## in Loop: Header=BB1_10 Depth=1
movl $0, -20(%rbp)
jmp LBB1_14
LBB1_13: ## in Loop: Header=BB1_10 Depth=1
movq -48(%rbp), %rcx ## 8-byte Reload
movl -20(%rbp), %eax
movslq -16(%rbp), %rdx
addl (%rcx,%rdx,4), %eax
movl %eax, -20(%rbp)
LBB1_14: ## in Loop: Header=BB1_10 Depth=1
jmp LBB1_15
LBB1_15: ## in Loop: Header=BB1_10 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_10
LBB1_16:
movl -20(%rbp), %eax
movq _N@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
shll $2, %ecx
cmpl %ecx, %eax
setle %al
andb $1, %al
movzbl %al, %edi
callq ___VERIFIER_assert
movl $1, -12(%rbp)
movq -32(%rbp), %rax
movq %rax, %rsp
LBB1_17:
movl -12(%rbp), %eax
movl %eax, -60(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_19
## %bb.18:
movl -60(%rbp), %eax ## 4-byte Reload
movq %rbp, %rsp
popq %rbp
retq
LBB1_19:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.comm _N,4,2 ## @N
.subsections_via_symbols
| the_stack_data/150783.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur wzr, [x29, #-8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
b LBB0_1
LBB0_3:
ldur w8, [x29, #-8]
mov w10, #10
sdiv w8, w8, w10
stur w8, [x29, #-12]
ldur w8, [x29, #-8]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #16]
ldr w8, [sp, #16]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Digite um numero: \n"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "%d%d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $0, -8(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -8(%rbp)
jne LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
jmp LBB0_1
LBB0_3:
movl -8(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, -12(%rbp)
movl -8(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %edx, -16(%rbp)
movl -16(%rbp), %esi
movl -12(%rbp), %edx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Digite um numero: \n"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "%d%d"
.subsections_via_symbols
| the_stack_data/515756.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _print_all_packages ; -- Begin function print_all_packages
.p2align 2
_print_all_packages: ; @print_all_packages
.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
str x0, [sp, #16] ; 8-byte Folded Spill
ldr x8, [x0]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
stur wzr, [x29, #-20]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldur w8, [x29, #-20]
ldr w9, [x9, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x8, [x8, #8]
ldursw x9, [x29, #-20]
mov x10, #24
mul x9, x9, x10
add x8, x8, x9
stur x8, [x29, #-8]
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
str wzr, [sp, #24]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #24]
ldur x9, [x29, #-8]
ldr w9, [x9, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldrsw x9, [sp, #24]
add x8, x8, x9, lsl #4
stur x8, [x29, #-16]
ldur x8, [x29, #-16]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_1
LBB0_8:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _send_all_acceptable_packages ; -- Begin function send_all_acceptable_packages
.p2align 2
_send_all_acceptable_packages: ; @send_all_acceptable_packages
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
stur x2, [x29, #-24]
stur w3, [x29, #-28]
stur wzr, [x29, #-32]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldursw x9, [x29, #-12]
mov x10, #24
mul x9, x9, x10
add x8, x8, x9
stur x8, [x29, #-40]
ldur x8, [x29, #-24]
ldr x8, [x8, #8]
ldursw x9, [x29, #-28]
mul x9, x9, x10
add x8, x8, x9
str x8, [sp, #48]
str wzr, [sp, #36]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
ldur x9, [x29, #-40]
ldr w9, [x9, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_7
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldur x8, [x29, #-40]
ldr x8, [x8, #8]
ldrsw x9, [sp, #36]
add x8, x8, x9, lsl #4
str x8, [sp, #40]
ldr x8, [sp, #40]
ldr w8, [x8, #8]
ldr x9, [sp, #48]
ldr w9, [x9]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB1_5
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #40]
ldr w8, [x8, #8]
ldr x9, [sp, #48]
ldr w9, [x9, #4]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-32]
add w8, w8, #1
stur w8, [x29, #-32]
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB1_1
LBB1_7:
ldur w8, [x29, #-32]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_9
b LBB1_8
LBB1_8:
b LBB1_18
LBB1_9:
ldur x8, [x29, #-40]
ldr w8, [x8, #16]
ldur w9, [x29, #-32]
subs w9, w8, w9
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
lsl x0, x8, #4
bl _malloc
str x0, [sp, #24]
ldr x8, [sp, #48]
ldr w8, [x8, #16]
ldur w9, [x29, #-32]
add w9, w8, w9
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
lsl x0, x8, #4
bl _malloc
str x0, [sp, #16]
ldr x0, [sp, #16]
ldr x8, [sp, #48]
ldr x1, [x8, #8]
ldr x8, [sp, #48]
ldrsw x8, [x8, #16]
lsl x2, x8, #4
mov x3, #-1
bl ___memcpy_chk
str wzr, [sp, #12]
ldr x8, [sp, #48]
ldr w8, [x8, #16]
str w8, [sp, #8]
str wzr, [sp, #4]
b LBB1_10
LBB1_10: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldur x9, [x29, #-40]
ldr w9, [x9, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_17
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_10 Depth=1
ldur x8, [x29, #-40]
ldr x8, [x8, #8]
ldrsw x9, [sp, #4]
add x8, x8, x9, lsl #4
str x8, [sp, #40]
ldr x8, [sp, #40]
ldr w8, [x8, #8]
ldr x9, [sp, #48]
ldr w9, [x9]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB1_14
b LBB1_12
LBB1_12: ; in Loop: Header=BB1_10 Depth=1
ldr x8, [sp, #40]
ldr w8, [x8, #8]
ldr x9, [sp, #48]
ldr w9, [x9, #4]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_14
b LBB1_13
LBB1_13: ; in Loop: Header=BB1_10 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #8]
mov x10, x9
add w10, w10, #1
str w10, [sp, #8]
ldur x10, [x29, #-40]
ldr x10, [x10, #8]
ldrsw x11, [sp, #4]
ldr q0, [x10, x11, lsl #4]
str q0, [x8, x9, lsl #4]
b LBB1_15
LBB1_14: ; in Loop: Header=BB1_10 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp, #12]
mov x10, x9
add w10, w10, #1
str w10, [sp, #12]
ldur x10, [x29, #-40]
ldr x10, [x10, #8]
ldrsw x11, [sp, #4]
ldr q0, [x10, x11, lsl #4]
str q0, [x8, x9, lsl #4]
b LBB1_15
LBB1_15: ; in Loop: Header=BB1_10 Depth=1
b LBB1_16
LBB1_16: ; in Loop: Header=BB1_10 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB1_10
LBB1_17:
ldr x8, [sp, #48]
ldr x0, [x8, #8]
bl _free
ldur x8, [x29, #-40]
ldr x0, [x8, #8]
bl _free
ldr x8, [sp, #16]
ldr x9, [sp, #48]
str x8, [x9, #8]
ldur w10, [x29, #-32]
ldr x9, [sp, #48]
ldr w8, [x9, #16]
add w8, w8, w10
str w8, [x9, #16]
ldr x8, [sp, #24]
ldur x9, [x29, #-40]
str x8, [x9, #8]
ldur w10, [x29, #-32]
ldur x9, [x29, #-40]
ldr w8, [x9, #16]
subs w8, w8, w10
str w8, [x9, #16]
b LBB1_18
LBB1_18:
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.globl _count_packages_in_town ; -- Begin function count_packages_in_town
.p2align 2
_count_packages_in_town: ; @count_packages_in_town
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str wzr, [sp, #20]
str wzr, [sp, #4]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr x9, [sp, #24]
ldr w9, [x9, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_4
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #24]
ldr x8, [x8, #8]
ldrsw x9, [sp, #4]
mov x10, #24
mul x9, x9, x10
add x8, x8, x9
str x8, [sp, #8]
ldr x8, [sp, #8]
ldr w9, [x8, #16]
ldr w8, [sp, #20]
add w8, w8, w9
str w8, [sp, #20]
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, #20]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _town_with_most_packages ; -- Begin function town_with_most_packages
.p2align 2
_town_with_most_packages: ; @town_with_most_packages
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x8, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur w1, [x29, #-12]
ldur x8, [x29, #-8]
stur x8, [x29, #-24]
ldur x0, [x29, #-24]
bl _count_packages_in_town
str w0, [sp, #28]
mov w8, #1
str w8, [sp, #20]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #20]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_6
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldur x8, [x29, #-8]
ldrsw x9, [sp, #20]
mov x10, #24
mul x9, x9, x10
add x8, x8, x9
str x8, [sp, #32]
ldr x0, [sp, #32]
bl _count_packages_in_town
str w0, [sp, #24]
ldr w8, [sp, #24]
ldr w9, [sp, #28]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #32]
stur x8, [x29, #-24]
ldr w8, [sp, #24]
str w8, [sp, #28]
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_1 Depth=1
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB3_1
LBB3_6:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldur x8, [x29, #-24]
ldr q0, [x8]
str q0, [x9]
ldr x8, [x8, #16]
str x8, [x9, #16]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _find_town ; -- Begin function find_town
.p2align 2
_find_town: ; @find_town
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur w1, [x29, #-20]
str x2, [sp, #16]
str wzr, [sp, #4]
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB4_6
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldur x8, [x29, #-16]
ldrsw x9, [sp, #4]
mov x10, #24
mul x9, x9, x10
add x8, x8, x9
str x8, [sp, #8]
ldr x0, [sp, #16]
ldr x8, [sp, #8]
ldr x1, [x8]
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_4
b LBB4_3
LBB4_3:
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB4_7
LBB4_4: ; in Loop: Header=BB4_1 Depth=1
b LBB4_5
LBB4_5: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB4_1
LBB4_6:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB4_7
LBB4_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, #240
.cfi_def_cfa_offset 240
stp x29, x30, [sp, #224] ; 16-byte Folded Spill
add x29, sp, #224
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _scanf
ldursw x9, [x29, #-8]
mov x8, #24
mul x0, x8, x9
bl _malloc
stur x0, [x29, #-16]
stur wzr, [x29, #-20]
b LBB5_1
LBB5_1: ; =>This Loop Header: Depth=1
; Child Loop BB5_3 Depth 2
; Child Loop BB5_5 Depth 3
ldur w8, [x29, #-20]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_12
b LBB5_2
LBB5_2: ; in Loop: Header=BB5_1 Depth=1
mov x0, #6
bl _malloc
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
mov x10, #24
str x10, [sp, #80] ; 8-byte Folded Spill
mul x9, x9, x10
str x0, [x8, x9]
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
mul x9, x9, x10
ldr x8, [x8, x9]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _scanf
ldr x10, [sp, #80] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
mul x9, x9, x10
add x8, x8, x9
add x8, x8, #16
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _scanf
ldr x10, [sp, #80] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [x8, #16]
mov x8, #24
mul x0, x8, x9
bl _malloc
ldr x10, [sp, #80] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
mul x9, x9, x10
add x8, x8, x9
str x0, [x8, #8]
stur wzr, [x29, #-24]
b LBB5_3
LBB5_3: ; Parent Loop BB5_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB5_5 Depth 3
ldur w8, [x29, #-24]
ldur x9, [x29, #-16]
ldursw x10, [x29, #-20]
mov x11, #24
mul x10, x10, x11
add x9, x9, x10
ldr w9, [x9, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_10
b LBB5_4
LBB5_4: ; in Loop: Header=BB5_3 Depth=2
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
mov x12, #24
str x12, [sp, #72] ; 8-byte Folded Spill
mul x9, x9, x12
add x8, x8, x9
ldr x8, [x8, #8]
ldursw x9, [x29, #-24]
mul x9, x9, x12
add x8, x8, x9
add x11, x8, #16
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
mul x9, x9, x12
add x8, x8, x9
ldr x8, [x8, #8]
ldursw x9, [x29, #-24]
mul x9, x9, x12
add x10, x8, x9
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
mul x9, x9, x12
add x8, x8, x9
ldr x8, [x8, #8]
ldursw x9, [x29, #-24]
mul x9, x9, x12
add x8, x8, x9
add x8, x8, #4
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _scanf
ldr x10, [sp, #72] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
mul x9, x9, x10
add x8, x8, x9
ldr x8, [x8, #8]
ldursw x9, [x29, #-24]
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [x8, #16]
mov x8, #16
mul x0, x8, x9
bl _malloc
ldr x10, [sp, #72] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
mul x9, x9, x10
add x8, x8, x9
ldr x8, [x8, #8]
ldursw x9, [x29, #-24]
mul x9, x9, x10
add x8, x8, x9
str x0, [x8, #8]
stur wzr, [x29, #-28]
b LBB5_5
LBB5_5: ; Parent Loop BB5_1 Depth=1
; Parent Loop BB5_3 Depth=2
; => This Inner Loop Header: Depth=3
ldur w8, [x29, #-28]
ldur x9, [x29, #-16]
ldursw x10, [x29, #-20]
mov x11, #24
mul x10, x10, x11
add x9, x9, x10
ldr x9, [x9, #8]
ldursw x10, [x29, #-24]
mul x10, x10, x11
add x9, x9, x10
ldr w9, [x9, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_8
b LBB5_6
LBB5_6: ; in Loop: Header=BB5_5 Depth=3
mov x0, #6
bl _malloc
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
mov x10, #24
str x10, [sp, #64] ; 8-byte Folded Spill
mul x9, x9, x10
add x8, x8, x9
ldr x8, [x8, #8]
ldursw x9, [x29, #-24]
mul x9, x9, x10
add x8, x8, x9
ldr x8, [x8, #8]
ldursw x9, [x29, #-28]
lsl x9, x9, #4
str x0, [x8, x9]
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
mul x9, x9, x10
add x8, x8, x9
ldr x8, [x8, #8]
ldursw x9, [x29, #-24]
mul x9, x9, x10
add x8, x8, x9
ldr x8, [x8, #8]
ldursw x9, [x29, #-28]
lsl x9, x9, #4
ldr x8, [x8, x9]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _scanf
ldr x10, [sp, #64] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
mul x9, x9, x10
add x8, x8, x9
ldr x8, [x8, #8]
ldursw x9, [x29, #-24]
mul x9, x9, x10
add x8, x8, x9
ldr x8, [x8, #8]
ldursw x9, [x29, #-28]
add x8, x8, x9, lsl #4
add x8, x8, #8
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _scanf
b LBB5_7
LBB5_7: ; in Loop: Header=BB5_5 Depth=3
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB5_5
LBB5_8: ; in Loop: Header=BB5_3 Depth=2
b LBB5_9
LBB5_9: ; in Loop: Header=BB5_3 Depth=2
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
b LBB5_3
LBB5_10: ; in Loop: Header=BB5_1 Depth=1
b LBB5_11
LBB5_11: ; in Loop: Header=BB5_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB5_1
LBB5_12:
mov x9, sp
sub x8, x29, #32
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _scanf
b LBB5_13
LBB5_13: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-32]
subs w9, w8, #1
stur w9, [x29, #-32]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB5_21
b LBB5_14
LBB5_14: ; in Loop: Header=BB5_13 Depth=1
mov x9, sp
sub x8, x29, #44
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _scanf
ldur w8, [x29, #-44]
str w8, [sp, #60] ; 4-byte Folded Spill
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB5_17
b LBB5_15
LBB5_15: ; in Loop: Header=BB5_13 Depth=1
ldr w8, [sp, #60] ; 4-byte Folded Reload
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB5_18
b LBB5_16
LBB5_16: ; in Loop: Header=BB5_13 Depth=1
ldr w8, [sp, #60] ; 4-byte Folded Reload
subs w8, w8, #3
cset w8, eq
tbnz w8, #0, LBB5_19
b LBB5_20
LBB5_17: ; in Loop: Header=BB5_13 Depth=1
mov x9, sp
sub x8, x29, #38
str x8, [sp, #48] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _scanf
ldr x2, [sp, #48] ; 8-byte Folded Reload
ldur x0, [x29, #-16]
ldur w1, [x29, #-8]
bl _find_town
stur x0, [x29, #-56]
ldur x8, [x29, #-56]
ldr q0, [x8]
sub x0, x29, #80
stur q0, [x29, #-80]
ldr x8, [x8, #16]
stur x8, [x29, #-64]
bl _print_all_packages
b LBB5_20
LBB5_18: ; in Loop: Header=BB5_13 Depth=1
mov x9, sp
sub x8, x29, #38
str x8, [sp, #32] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
str x0, [sp, #24] ; 8-byte Folded Spill
bl _scanf
ldr x2, [sp, #32] ; 8-byte Folded Reload
ldur x0, [x29, #-16]
ldur w1, [x29, #-8]
bl _find_town
stur x0, [x29, #-88]
mov x9, sp
sub x8, x29, #92
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
str x0, [sp, #40] ; 8-byte Folded Spill
bl _scanf
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
bl _scanf
ldr x2, [sp, #32] ; 8-byte Folded Reload
ldur x0, [x29, #-16]
ldur w1, [x29, #-8]
bl _find_town
mov x8, x0
ldr x0, [sp, #40] ; 8-byte Folded Reload
stur x8, [x29, #-104]
mov x9, sp
sub x8, x29, #108
str x8, [x9]
bl _scanf
ldur x0, [x29, #-88]
ldur w1, [x29, #-92]
ldur x2, [x29, #-104]
ldur w3, [x29, #-108]
bl _send_all_acceptable_packages
b LBB5_20
LBB5_19: ; in Loop: Header=BB5_13 Depth=1
ldur x0, [x29, #-16]
ldur w1, [x29, #-8]
add x8, sp, #88
bl _town_with_most_packages
ldr x8, [sp, #88]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB5_20
LBB5_20: ; in Loop: Header=BB5_13 Depth=1
b LBB5_13
LBB5_21:
mov w0, #0
ldp x29, x30, [sp, #224] ; 16-byte Folded Reload
add sp, sp, #240
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s:\n"
l_.str.1: ; @.str.1
.asciz "\t%d:\n"
l_.str.2: ; @.str.2
.asciz "\t\t%s\n"
l_.str.3: ; @.str.3
.asciz "%d"
l_.str.4: ; @.str.4
.asciz "%s"
l_.str.5: ; @.str.5
.asciz "%d%d%d"
l_.str.6: ; @.str.6
.asciz "Town with the most number of packages is %s\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _print_all_packages ## -- Begin function print_all_packages
.p2align 4, 0x90
_print_all_packages: ## @print_all_packages
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
leaq 16(%rbp), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq (%rax), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -20(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movq -32(%rbp), %rcx ## 8-byte Reload
movl -20(%rbp), %eax
cmpl 16(%rcx), %eax
jge LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax ## 8-byte Reload
movq 8(%rax), %rax
movslq -20(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq %rax, -8(%rbp)
movl -20(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -24(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -24(%rbp), %eax
movq -8(%rbp), %rcx
cmpl 16(%rcx), %eax
jge LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movq -8(%rbp), %rax
movq 8(%rax), %rax
movslq -24(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB0_3
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_1
LBB0_8:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _send_all_acceptable_packages ## -- Begin function send_all_acceptable_packages
.p2align 4, 0x90
_send_all_acceptable_packages: ## @send_all_acceptable_packages
.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 %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq %rdx, -24(%rbp)
movl %ecx, -28(%rbp)
movl $0, -32(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movslq -12(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq %rax, -40(%rbp)
movq -24(%rbp), %rax
movq 8(%rax), %rax
movslq -28(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq %rax, -48(%rbp)
movl $0, -60(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -60(%rbp), %eax
movq -40(%rbp), %rcx
cmpl 16(%rcx), %eax
jge LBB1_7
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -40(%rbp), %rax
movq 8(%rax), %rax
movslq -60(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movq %rax, -56(%rbp)
movq -56(%rbp), %rax
movl 8(%rax), %eax
movq -48(%rbp), %rcx
cmpl (%rcx), %eax
jl LBB1_5
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movq -56(%rbp), %rax
movl 8(%rax), %eax
movq -48(%rbp), %rcx
cmpl 4(%rcx), %eax
jg LBB1_5
## %bb.4: ## in Loop: Header=BB1_1 Depth=1
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
LBB1_5: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_6
LBB1_6: ## in Loop: Header=BB1_1 Depth=1
movl -60(%rbp), %eax
addl $1, %eax
movl %eax, -60(%rbp)
jmp LBB1_1
LBB1_7:
cmpl $0, -32(%rbp)
jne LBB1_9
## %bb.8:
jmp LBB1_18
LBB1_9:
movq -40(%rbp), %rax
movl 16(%rax), %eax
subl -32(%rbp), %eax
movslq %eax, %rdi
shlq $4, %rdi
callq _malloc
movq %rax, -72(%rbp)
movq -48(%rbp), %rax
movl 16(%rax), %eax
addl -32(%rbp), %eax
movslq %eax, %rdi
shlq $4, %rdi
callq _malloc
movq %rax, -80(%rbp)
movq -80(%rbp), %rdi
movq -48(%rbp), %rax
movq 8(%rax), %rsi
movq -48(%rbp), %rax
movslq 16(%rax), %rdx
shlq $4, %rdx
movq $-1, %rcx
callq ___memcpy_chk
movl $0, -84(%rbp)
movq -48(%rbp), %rax
movl 16(%rax), %eax
movl %eax, -88(%rbp)
movl $0, -92(%rbp)
LBB1_10: ## =>This Inner Loop Header: Depth=1
movl -92(%rbp), %eax
movq -40(%rbp), %rcx
cmpl 16(%rcx), %eax
jge LBB1_17
## %bb.11: ## in Loop: Header=BB1_10 Depth=1
movq -40(%rbp), %rax
movq 8(%rax), %rax
movslq -92(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movq %rax, -56(%rbp)
movq -56(%rbp), %rax
movl 8(%rax), %eax
movq -48(%rbp), %rcx
cmpl (%rcx), %eax
jl LBB1_14
## %bb.12: ## in Loop: Header=BB1_10 Depth=1
movq -56(%rbp), %rax
movl 8(%rax), %eax
movq -48(%rbp), %rcx
cmpl 4(%rcx), %eax
jg LBB1_14
## %bb.13: ## in Loop: Header=BB1_10 Depth=1
movq -80(%rbp), %rax
movl -88(%rbp), %ecx
movl %ecx, %edx
addl $1, %edx
movl %edx, -88(%rbp)
movslq %ecx, %rcx
shlq $4, %rcx
addq %rcx, %rax
movq -40(%rbp), %rcx
movq 8(%rcx), %rcx
movslq -92(%rbp), %rdx
shlq $4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 8(%rcx), %rcx
movq %rcx, 8(%rax)
jmp LBB1_15
LBB1_14: ## in Loop: Header=BB1_10 Depth=1
movq -72(%rbp), %rax
movl -84(%rbp), %ecx
movl %ecx, %edx
addl $1, %edx
movl %edx, -84(%rbp)
movslq %ecx, %rcx
shlq $4, %rcx
addq %rcx, %rax
movq -40(%rbp), %rcx
movq 8(%rcx), %rcx
movslq -92(%rbp), %rdx
shlq $4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 8(%rcx), %rcx
movq %rcx, 8(%rax)
LBB1_15: ## in Loop: Header=BB1_10 Depth=1
jmp LBB1_16
LBB1_16: ## in Loop: Header=BB1_10 Depth=1
movl -92(%rbp), %eax
addl $1, %eax
movl %eax, -92(%rbp)
jmp LBB1_10
LBB1_17:
movq -48(%rbp), %rax
movq 8(%rax), %rdi
callq _free
movq -40(%rbp), %rax
movq 8(%rax), %rdi
callq _free
movq -80(%rbp), %rcx
movq -48(%rbp), %rax
movq %rcx, 8(%rax)
movl -32(%rbp), %ecx
movq -48(%rbp), %rax
addl 16(%rax), %ecx
movl %ecx, 16(%rax)
movq -72(%rbp), %rcx
movq -40(%rbp), %rax
movq %rcx, 8(%rax)
movl -32(%rbp), %edx
movq -40(%rbp), %rax
movl 16(%rax), %ecx
subl %edx, %ecx
movl %ecx, 16(%rax)
LBB1_18:
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _count_packages_in_town ## -- Begin function count_packages_in_town
.p2align 4, 0x90
_count_packages_in_town: ## @count_packages_in_town
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl $0, -12(%rbp)
movl $0, -28(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
movq -8(%rbp), %rcx
cmpl 16(%rcx), %eax
jge LBB2_4
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -8(%rbp), %rax
movq 8(%rax), %rax
movslq -28(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movl 16(%rax), %eax
addl -12(%rbp), %eax
movl %eax, -12(%rbp)
## %bb.3: ## in Loop: Header=BB2_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB2_1
LBB2_4:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _town_with_most_packages ## -- Begin function town_with_most_packages
.p2align 4, 0x90
_town_with_most_packages: ## @town_with_most_packages
.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, -64(%rbp) ## 8-byte Spill
movq %rdi, -56(%rbp) ## 8-byte Spill
movq %rsi, -8(%rbp)
movl %edx, -12(%rbp)
movq -8(%rbp), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
callq _count_packages_in_town
movl %eax, -36(%rbp)
movl $1, -44(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB3_6
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movq -8(%rbp), %rax
movslq -44(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq %rax, -32(%rbp)
movq -32(%rbp), %rdi
callq _count_packages_in_town
movl %eax, -40(%rbp)
movl -40(%rbp), %eax
cmpl -36(%rbp), %eax
jle LBB3_4
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
movq -32(%rbp), %rax
movq %rax, -24(%rbp)
movl -40(%rbp), %eax
movl %eax, -36(%rbp)
LBB3_4: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_5
LBB3_5: ## in Loop: Header=BB3_1 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB3_1
LBB3_6:
movq -56(%rbp), %rax ## 8-byte Reload
movq -64(%rbp), %rcx ## 8-byte Reload
movq -24(%rbp), %rdx
movq (%rdx), %rsi
movq %rsi, (%rcx)
movq 8(%rdx), %rsi
movq %rsi, 8(%rcx)
movq 16(%rdx), %rdx
movq %rdx, 16(%rcx)
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _find_town ## -- Begin function find_town
.p2align 4, 0x90
_find_town: ## @find_town
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movq %rdx, -32(%rbp)
movl $0, -44(%rbp)
LBB4_1: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB4_6
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movq -16(%rbp), %rax
movslq -44(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq %rax, -40(%rbp)
movq -32(%rbp), %rdi
movq -40(%rbp), %rax
movq (%rax), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB4_4
## %bb.3:
movq -40(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB4_7
LBB4_4: ## in Loop: Header=BB4_1 Depth=1
jmp LBB4_5
LBB4_5: ## in Loop: Header=BB4_1 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB4_1
LBB4_6:
movq $0, -8(%rbp)
LBB4_7:
movq -8(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $144, %rsp
movl $0, -4(%rbp)
leaq L_.str.3(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movslq -8(%rbp), %rax
imulq $24, %rax, %rdi
callq _malloc
movq %rax, -16(%rbp)
movl $0, -20(%rbp)
LBB5_1: ## =>This Loop Header: Depth=1
## Child Loop BB5_3 Depth 2
## Child Loop BB5_5 Depth 3
movl -20(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB5_12
## %bb.2: ## in Loop: Header=BB5_1 Depth=1
movl $6, %edi
callq _malloc
movq %rax, %rcx
movq -16(%rbp), %rax
movslq -20(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rsi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _scanf
movq -16(%rbp), %rsi
movslq -20(%rbp), %rax
imulq $24, %rax, %rax
addq %rax, %rsi
addq $16, %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _scanf
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movslq 16(%rax), %rax
imulq $24, %rax, %rdi
callq _malloc
movq %rax, %rcx
movq -16(%rbp), %rax
movslq -20(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 8(%rax)
movl $0, -24(%rbp)
LBB5_3: ## Parent Loop BB5_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB5_5 Depth 3
movl -24(%rbp), %eax
movq -16(%rbp), %rcx
movslq -20(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rcx
cmpl 16(%rcx), %eax
jge LBB5_10
## %bb.4: ## in Loop: Header=BB5_3 Depth=2
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq 8(%rax), %rsi
movslq -24(%rbp), %rax
imulq $24, %rax, %rax
addq %rax, %rsi
addq $16, %rsi
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq 8(%rax), %rdx
movslq -24(%rbp), %rax
imulq $24, %rax, %rax
addq %rax, %rdx
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq 8(%rax), %rcx
movslq -24(%rbp), %rax
imulq $24, %rax, %rax
addq %rax, %rcx
addq $4, %rcx
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _scanf
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq 8(%rax), %rax
movslq -24(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movslq 16(%rax), %rdi
shlq $4, %rdi
callq _malloc
movq %rax, %rcx
movq -16(%rbp), %rax
movslq -20(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq 8(%rax), %rax
movslq -24(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 8(%rax)
movl $0, -28(%rbp)
LBB5_5: ## Parent Loop BB5_1 Depth=1
## Parent Loop BB5_3 Depth=2
## => This Inner Loop Header: Depth=3
movl -28(%rbp), %eax
movq -16(%rbp), %rcx
movslq -20(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rcx
movq 8(%rcx), %rcx
movslq -24(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rcx
cmpl 16(%rcx), %eax
jge LBB5_8
## %bb.6: ## in Loop: Header=BB5_5 Depth=3
movl $6, %edi
callq _malloc
movq %rax, %rcx
movq -16(%rbp), %rax
movslq -20(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq 8(%rax), %rax
movslq -24(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq 8(%rax), %rax
movslq -28(%rbp), %rdx
shlq $4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq 8(%rax), %rax
movslq -24(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq 8(%rax), %rax
movslq -28(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movq (%rax), %rsi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _scanf
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq 8(%rax), %rax
movslq -24(%rbp), %rcx
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq 8(%rax), %rsi
movslq -28(%rbp), %rax
shlq $4, %rax
addq %rax, %rsi
addq $8, %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.7: ## in Loop: Header=BB5_5 Depth=3
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB5_5
LBB5_8: ## in Loop: Header=BB5_3 Depth=2
jmp LBB5_9
LBB5_9: ## in Loop: Header=BB5_3 Depth=2
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB5_3
LBB5_10: ## in Loop: Header=BB5_1 Depth=1
jmp LBB5_11
LBB5_11: ## in Loop: Header=BB5_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB5_1
LBB5_12:
leaq L_.str.3(%rip), %rdi
leaq -32(%rbp), %rsi
movb $0, %al
callq _scanf
LBB5_13: ## =>This Inner Loop Header: Depth=1
movl -32(%rbp), %eax
movl %eax, %ecx
addl $-1, %ecx
movl %ecx, -32(%rbp)
cmpl $0, %eax
je LBB5_19
## %bb.14: ## in Loop: Header=BB5_13 Depth=1
leaq L_.str.3(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
leaq -44(%rbp), %rsi
callq _scanf
movl -44(%rbp), %eax
movl %eax, -116(%rbp) ## 4-byte Spill
subl $1, %eax
je LBB5_15
jmp LBB5_20
LBB5_20: ## in Loop: Header=BB5_13 Depth=1
movl -116(%rbp), %eax ## 4-byte Reload
subl $2, %eax
je LBB5_16
jmp LBB5_21
LBB5_21: ## in Loop: Header=BB5_13 Depth=1
movl -116(%rbp), %eax ## 4-byte Reload
subl $3, %eax
je LBB5_17
jmp LBB5_18
LBB5_15: ## in Loop: Header=BB5_13 Depth=1
leaq -38(%rbp), %rsi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _scanf
movq -16(%rbp), %rdi
movl -8(%rbp), %esi
leaq -38(%rbp), %rdx
callq _find_town
movq %rax, -56(%rbp)
movq -56(%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 _print_all_packages
jmp LBB5_18
LBB5_16: ## in Loop: Header=BB5_13 Depth=1
leaq -38(%rbp), %rsi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _scanf
movq -16(%rbp), %rdi
movl -8(%rbp), %esi
leaq -38(%rbp), %rdx
callq _find_town
movq %rax, -64(%rbp)
leaq L_.str.3(%rip), %rdi
leaq -68(%rbp), %rsi
movb $0, %al
callq _scanf
leaq -38(%rbp), %rsi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _scanf
movq -16(%rbp), %rdi
movl -8(%rbp), %esi
leaq -38(%rbp), %rdx
callq _find_town
movq %rax, -80(%rbp)
leaq L_.str.3(%rip), %rdi
leaq -84(%rbp), %rsi
movb $0, %al
callq _scanf
movq -64(%rbp), %rdi
movl -68(%rbp), %esi
movq -80(%rbp), %rdx
movl -84(%rbp), %ecx
callq _send_all_acceptable_packages
jmp LBB5_18
LBB5_17: ## in Loop: Header=BB5_13 Depth=1
movq -16(%rbp), %rsi
movl -8(%rbp), %edx
leaq -112(%rbp), %rdi
callq _town_with_most_packages
movq -112(%rbp), %rsi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
LBB5_18: ## in Loop: Header=BB5_13 Depth=1
jmp LBB5_13
LBB5_19:
xorl %eax, %eax
addq $144, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s:\n"
L_.str.1: ## @.str.1
.asciz "\t%d:\n"
L_.str.2: ## @.str.2
.asciz "\t\t%s\n"
L_.str.3: ## @.str.3
.asciz "%d"
L_.str.4: ## @.str.4
.asciz "%s"
L_.str.5: ## @.str.5
.asciz "%d%d%d"
L_.str.6: ## @.str.6
.asciz "Town with the most number of packages is %s\n"
.subsections_via_symbols
| the_stack_data/192346.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __DATA,__data
.globl _datatoc_common_hair_refine_vert_glsl_size ; @datatoc_common_hair_refine_vert_glsl_size
.p2align 2
_datatoc_common_hair_refine_vert_glsl_size:
.long 1458 ; 0x5b2
.globl _datatoc_common_hair_refine_vert_glsl ; @datatoc_common_hair_refine_vert_glsl
_datatoc_common_hair_refine_vert_glsl:
.asciz "\r\n/* To be compiled with common_hair_lib.glsl */\r\n\r\nout vec4 outData;\r\n\r\nvec4 get_weights_cardinal(float t)\r\n{\r\n\tfloat t2 = t * t;\r\n\tfloat t3 = t2 * t;\r\n#if defined(CARDINAL)\r\n\tfloat fc = 0.71;\r\n#else /* defined(CATMULL_ROM) */\r\n\tfloat fc = 0.5;\r\n#endif\r\n\r\n\tvec4 weights;\r\n\t/* GLSL Optimized version of key_curve_position_weights() */\r\n\tfloat fct = t * fc;\r\n\tfloat fct2 = t2 * fc;\r\n\tfloat fct3 = t3 * fc;\r\n\tweights.x = ( fct2 * 2.0 - fct3) - fct;\r\n\tweights.y = ( t3 * 2.0 - fct3) + (-t2 * 3.0 + fct2) + 1.0;\r\n\tweights.z = (-t3 * 2.0 + fct3) + ( t2 * 3.0 - (2.0 * fct2)) + fct;\r\n\tweights.w = fct3 - fct2;\r\n\treturn weights;\r\n}\r\n\r\n/* TODO(fclem): This one is buggy, find why. (it's not the optimization!!) */\r\nvec4 get_weights_bspline(float t)\r\n{\r\n\tfloat t2 = t * t;\r\n\tfloat t3 = t2 * t;\r\n\r\n\tvec4 weights;\r\n\t/* GLSL Optimized version of key_curve_position_weights() */\r\n\tweights.xz = vec2(-0.16666666, -0.5) * t3 + (0.5 * t2 + 0.5 * vec2(-t, t) + 0.16666666);\r\n\tweights.y = ( 0.5 * t3 - t2 + 0.66666666);\r\n\tweights.w = ( 0.16666666 * t3);\r\n\treturn weights;\r\n}\r\n\r\nvec4 interp_data(vec4 v0, vec4 v1, vec4 v2, vec4 v3, vec4 w)\r\n{\r\n\treturn v0 * w.x + v1 * w.y + v2 * w.z + v3 * w.w;\r\n}\r\n\r\nvoid main(void)\r\n{\r\n\tfloat interp_time;\r\n\tvec4 data0, data1, data2, data3;\r\n\thair_get_interp_attribs(data0, data1, data2, data3, interp_time);\r\n\r\n\tvec4 weights = get_weights_cardinal(interp_time);\r\n\toutData = interp_data(data0, data1, data2, data3, weights);\r\n}\r\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __DATA,__data
.globl _datatoc_common_hair_refine_vert_glsl_size ## @datatoc_common_hair_refine_vert_glsl_size
.p2align 2
_datatoc_common_hair_refine_vert_glsl_size:
.long 1458 ## 0x5b2
.globl _datatoc_common_hair_refine_vert_glsl ## @datatoc_common_hair_refine_vert_glsl
.p2align 4
_datatoc_common_hair_refine_vert_glsl:
.asciz "\r\n/* To be compiled with common_hair_lib.glsl */\r\n\r\nout vec4 outData;\r\n\r\nvec4 get_weights_cardinal(float t)\r\n{\r\n\tfloat t2 = t * t;\r\n\tfloat t3 = t2 * t;\r\n#if defined(CARDINAL)\r\n\tfloat fc = 0.71;\r\n#else /* defined(CATMULL_ROM) */\r\n\tfloat fc = 0.5;\r\n#endif\r\n\r\n\tvec4 weights;\r\n\t/* GLSL Optimized version of key_curve_position_weights() */\r\n\tfloat fct = t * fc;\r\n\tfloat fct2 = t2 * fc;\r\n\tfloat fct3 = t3 * fc;\r\n\tweights.x = ( fct2 * 2.0 - fct3) - fct;\r\n\tweights.y = ( t3 * 2.0 - fct3) + (-t2 * 3.0 + fct2) + 1.0;\r\n\tweights.z = (-t3 * 2.0 + fct3) + ( t2 * 3.0 - (2.0 * fct2)) + fct;\r\n\tweights.w = fct3 - fct2;\r\n\treturn weights;\r\n}\r\n\r\n/* TODO(fclem): This one is buggy, find why. (it's not the optimization!!) */\r\nvec4 get_weights_bspline(float t)\r\n{\r\n\tfloat t2 = t * t;\r\n\tfloat t3 = t2 * t;\r\n\r\n\tvec4 weights;\r\n\t/* GLSL Optimized version of key_curve_position_weights() */\r\n\tweights.xz = vec2(-0.16666666, -0.5) * t3 + (0.5 * t2 + 0.5 * vec2(-t, t) + 0.16666666);\r\n\tweights.y = ( 0.5 * t3 - t2 + 0.66666666);\r\n\tweights.w = ( 0.16666666 * t3);\r\n\treturn weights;\r\n}\r\n\r\nvec4 interp_data(vec4 v0, vec4 v1, vec4 v2, vec4 v3, vec4 w)\r\n{\r\n\treturn v0 * w.x + v1 * w.y + v2 * w.z + v3 * w.w;\r\n}\r\n\r\nvoid main(void)\r\n{\r\n\tfloat interp_time;\r\n\tvec4 data0, data1, data2, data3;\r\n\thair_get_interp_attribs(data0, data1, data2, data3, interp_time);\r\n\r\n\tvec4 weights = get_weights_cardinal(interp_time);\r\n\toutData = interp_data(data0, data1, data2, data3, weights);\r\n}\r\n"
.subsections_via_symbols
| the_stack_data/99461.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _strncasecmp ; -- Begin function strncasecmp
.p2align 2
_strncasecmp: ; @strncasecmp
.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]
str x2, [sp, #16]
mov w8, #1
strb w8, [sp, #15]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldrb w8, [sp, #15]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, ne
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8] ; 4-byte Folded Reload
tbz w8, #0, LBB0_8
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
add x9, x8, #1
stur x9, [x29, #-16]
ldrb w8, [x8]
strb w8, [sp, #15]
ldrb w0, [sp, #15]
bl _tolower
strb w0, [sp, #14]
ldr x8, [sp, #24]
add x9, x8, #1
str x9, [sp, #24]
ldrsb w0, [x8]
bl _tolower
strb w0, [sp, #13]
ldrb w8, [sp, #14]
ldrb w9, [sp, #13]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldrb w8, [sp, #14]
ldrb w9, [sp, #13]
subs w8, w8, w9
cset w8, gt
and w8, w8, #0x1
ldrb w9, [sp, #14]
ldrb w10, [sp, #13]
subs w9, w9, w10
cset w9, lt
and w9, w9, #0x1
subs w8, w8, w9
stur w8, [x29, #-4]
b LBB0_9
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
subs x8, x8, #1
str x8, [sp, #16]
b LBB0_1
LBB0_8:
stur wzr, [x29, #-4]
b LBB0_9
LBB0_9:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _strncasecmp ## -- Begin function strncasecmp
.p2align 4, 0x90
_strncasecmp: ## @strncasecmp
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movb $1, -33(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movzbl -33(%rbp), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, %ecx
movb %al, -36(%rbp) ## 1-byte Spill
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
cmpq $0, -32(%rbp)
setne %al
movb %al, -36(%rbp) ## 1-byte Spill
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movb -36(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_4
jmp LBB0_8
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -16(%rbp)
movb (%rax), %al
movb %al, -33(%rbp)
movzbl -33(%rbp), %edi
callq _tolower
## kill: def $al killed $al killed $eax
movb %al, -34(%rbp)
movq -24(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -24(%rbp)
movsbl (%rax), %edi
callq _tolower
## kill: def $al killed $al killed $eax
movb %al, -35(%rbp)
movzbl -34(%rbp), %eax
movzbl -35(%rbp), %ecx
cmpl %ecx, %eax
je LBB0_6
## %bb.5:
movzbl -34(%rbp), %eax
movzbl -35(%rbp), %ecx
cmpl %ecx, %eax
setg %al
andb $1, %al
movzbl %al, %eax
movzbl -34(%rbp), %ecx
movzbl -35(%rbp), %edx
cmpl %edx, %ecx
setl %cl
andb $1, %cl
movzbl %cl, %ecx
subl %ecx, %eax
movl %eax, -4(%rbp)
jmp LBB0_9
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
addq $-1, %rax
movq %rax, -32(%rbp)
jmp LBB0_1
LBB0_8:
movl $0, -4(%rbp)
LBB0_9:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/368227.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _countSegments ; -- Begin function countSegments
.p2align 2
_countSegments: ; @countSegments
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str wzr, [sp, #4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldrsb w8, [x8]
subs w8, w8, #32
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldrsb w8, [x8, #1]
subs w8, w8, #32
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldrsb w8, [x8, #1]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB0_1
LBB0_7:
ldr w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _countSegments ## -- Begin function countSegments
.p2align 4, 0x90
_countSegments: ## @countSegments
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl $0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB0_7
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movsbl (%rax), %eax
cmpl $32, %eax
je LBB0_6
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movsbl 1(%rax), %eax
cmpl $32, %eax
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movsbl 1(%rax), %eax
cmpl $0, %eax
jne LBB0_6
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
addq $1, %rax
movq %rax, -8(%rbp)
jmp LBB0_1
LBB0_7:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/787536.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _isMatch ; -- Begin function isMatch
.p2align 2
_isMatch: ; @isMatch
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #32]
str x1, [sp, #24]
ldr x8, [sp, #32]
str x8, [sp, #16]
; kill: def $x8 killed $xzr
str xzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #32]
ldrsb w8, [x8]
ldr x9, [sp, #24]
ldrsb w9, [x9]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldrsb w8, [x8]
subs w8, w8, #63
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
b LBB0_1
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldrsb w8, [x8]
subs w8, w8, #42
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
add x8, x8, #1
mov x9, x8
str x9, [sp, #24]
str x8, [sp, #8]
ldr x8, [sp, #32]
str x8, [sp, #16]
b LBB0_1
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
mov x9, x8
str x9, [sp, #16]
str x8, [sp, #32]
ldr x8, [sp, #8]
str x8, [sp, #24]
b LBB0_1
LBB0_9:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #47]
b LBB0_14
LBB0_10:
b LBB0_11
LBB0_11: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
ldrsb w8, [x8]
subs w8, w8, #42
cset w8, ne
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
b LBB0_11
LBB0_13:
ldr x8, [sp, #24]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
and w8, w8, #0x1
and w8, w8, #0x1
strb w8, [sp, #47]
b LBB0_14
LBB0_14:
ldrb w8, [sp, #47]
and w0, w8, #0x1
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]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov x0, x1
bl _isMatch
mov w8, #1
and w8, w0, w8
sturb w8, [x29, #-5]
ldurb w8, [x29, #-5]
tbz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB1_3
LBB1_2:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB1_3
LBB1_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.space 1
l_.str.1: ; @.str.1
.asciz "True\n"
l_.str.2: ; @.str.2
.asciz "False\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _isMatch ## -- Begin function isMatch
.p2align 4, 0x90
_isMatch: ## @isMatch
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -16(%rbp), %rax
movq %rax, -32(%rbp)
movq $0, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
cmpb $0, (%rax)
je LBB0_10
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %eax
movq -24(%rbp), %rcx
movsbl (%rcx), %ecx
cmpl %ecx, %eax
je LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movsbl (%rax), %eax
cmpl $63, %eax
jne LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp LBB0_1
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movsbl (%rax), %eax
cmpl $42, %eax
jne LBB0_7
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
movq %rax, -40(%rbp)
movq -16(%rbp), %rax
movq %rax, -32(%rbp)
jmp LBB0_1
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
cmpq $0, -40(%rbp)
je LBB0_9
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
movq %rax, -16(%rbp)
movq -40(%rbp), %rax
movq %rax, -24(%rbp)
jmp LBB0_1
LBB0_9:
movb $0, -1(%rbp)
jmp LBB0_14
LBB0_10:
jmp LBB0_11
LBB0_11: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movsbl (%rax), %eax
cmpl $42, %eax
jne LBB0_13
## %bb.12: ## in Loop: Header=BB0_11 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp LBB0_11
LBB0_13:
movq -24(%rbp), %rax
cmpb $0, (%rax)
setne %al
xorb $-1, %al
andb $1, %al
movb %al, -1(%rbp)
LBB0_14:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rsi
movq %rsi, %rdi
callq _isMatch
andb $1, %al
movb %al, -5(%rbp)
testb $1, -5(%rbp)
je LBB1_2
## %bb.1:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB1_3
LBB1_2:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
LBB1_3:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.space 1
L_.str.1: ## @.str.1
.asciz "True\n"
L_.str.2: ## @.str.2
.asciz "False\n"
.subsections_via_symbols
| the_stack_data/907661.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_zero ; -- Begin function test_zero
.p2align 2
_test_zero: ; @test_zero
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.globl _test_one ; -- Begin function test_one
.p2align 2
_test_one: ; @test_one
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_zero ## -- Begin function test_zero
.p2align 4, 0x90
_test_zero: ## @test_zero
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test_one ## -- Begin function test_one
.p2align 4, 0x90
_test_one: ## @test_one
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/40977.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub sp, sp, #80
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-12]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
sub sp, sp, #16
mov x9, sp
sub x8, x29, #16
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
add sp, sp, #16
ldur w8, [x29, #-16]
; kill: def $x8 killed $w8
mov x9, sp
stur x9, [x29, #-40]
lsl x9, x8, #2
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-72] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-72] ; 8-byte Folded Reload
mov x9, sp
subs x9, x9, x10
mov sp, x9
stur x9, [x29, #-64] ; 8-byte Folded Spill
stur x8, [x29, #-48]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
stur wzr, [x29, #-52]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-52]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-64] ; 8-byte Folded Reload
ldursw x9, [x29, #-52]
add x8, x8, x9, lsl #2
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
add sp, sp, #16
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-52]
add w8, w8, #1
stur w8, [x29, #-52]
b LBB0_1
LBB0_4:
ldur w8, [x29, #-16]
subs w8, w8, #2
stur w8, [x29, #-24]
b LBB0_5
LBB0_5: ; =>This Loop Header: Depth=1
; Child Loop BB0_7 Depth 2
ldur w8, [x29, #-24]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB0_14
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
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]
ldur w9, [x29, #-24]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_12
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=2
ldur x9, [x29, #-64] ; 8-byte Folded Reload
ldursw x8, [x29, #-28]
ldr w8, [x9, x8, lsl #2]
ldur w10, [x29, #-28]
add w10, w10, #1
ldr w9, [x9, w10, sxtw #2]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_7 Depth=2
ldur x9, [x29, #-64] ; 8-byte Folded Reload
ldursw x8, [x29, #-28]
ldr w8, [x9, x8, lsl #2]
stur w8, [x29, #-20]
ldur w8, [x29, #-28]
add w8, w8, #1
ldr w8, [x9, w8, sxtw #2]
ldursw x10, [x29, #-28]
str w8, [x9, x10, lsl #2]
ldur w8, [x29, #-20]
ldur w10, [x29, #-28]
add w10, w10, #1
str w8, [x9, w10, sxtw #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
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_13
LBB0_13: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-24]
subs w8, w8, #1
stur w8, [x29, #-24]
b LBB0_5
LBB0_14:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
stur wzr, [x29, #-24]
b LBB0_15
LBB0_15: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-24]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_18
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_15 Depth=1
ldur x8, [x29, #-64] ; 8-byte Folded Reload
ldursw x9, [x29, #-24]
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
add sp, sp, #16
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_15 Depth=1
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
b LBB0_15
LBB0_18:
stur wzr, [x29, #-12]
ldur x8, [x29, #-40]
mov sp, x8
ldur w8, [x29, #-12]
stur w8, [x29, #-76] ; 4-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19:
bl ___stack_chk_fail
LBB0_20:
ldur w0, [x29, #-76] ; 4-byte Folded Reload
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Enter No of elements in the array \n"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Enter the elements of array \n"
l_.str.3: ; @.str.3
.asciz "Sorted elements: "
l_.str.4: ; @.str.4
.asciz " %d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -12(%rbp)
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movb %al, -73(%rbp) ## 1-byte Spill
callq _printf
## kill: def $ecx killed $eax
movb -73(%rbp), %al ## 1-byte Reload
leaq L_.str.1(%rip), %rdi
leaq -16(%rbp), %rsi
callq _scanf
movl -16(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -72(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -40(%rbp)
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -72(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -64(%rbp) ## 8-byte Spill
movq %rax, -48(%rbp)
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -52(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -52(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -64(%rbp), %rsi ## 8-byte Reload
movslq -52(%rbp), %rax
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB0_1
LBB0_4:
movl -16(%rbp), %eax
subl $2, %eax
movl %eax, -24(%rbp)
LBB0_5: ## =>This Loop Header: Depth=1
## Child Loop BB0_7 Depth 2
cmpl $0, -24(%rbp)
jl LBB0_14
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl $0, -28(%rbp)
LBB0_7: ## Parent Loop BB0_5 Depth=1
## => This Inner Loop Header: Depth=2
movl -28(%rbp), %eax
cmpl -24(%rbp), %eax
jg LBB0_12
## %bb.8: ## in Loop: Header=BB0_7 Depth=2
movq -64(%rbp), %rcx ## 8-byte Reload
movslq -28(%rbp), %rax
movl (%rcx,%rax,4), %eax
movl -28(%rbp), %edx
addl $1, %edx
movslq %edx, %rdx
cmpl (%rcx,%rdx,4), %eax
jle LBB0_10
## %bb.9: ## in Loop: Header=BB0_7 Depth=2
movq -64(%rbp), %rax ## 8-byte Reload
movslq -28(%rbp), %rcx
movl (%rax,%rcx,4), %ecx
movl %ecx, -20(%rbp)
movl -28(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movslq -28(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -20(%rbp), %edx
movl -28(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movl %edx, (%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 -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%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 -24(%rbp), %eax
addl $-1, %eax
movl %eax, -24(%rbp)
jmp LBB0_5
LBB0_14:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -24(%rbp)
LBB0_15: ## =>This Inner Loop Header: Depth=1
movl -24(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB0_18
## %bb.16: ## in Loop: Header=BB0_15 Depth=1
movq -64(%rbp), %rax ## 8-byte Reload
movslq -24(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
## %bb.17: ## in Loop: Header=BB0_15 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB0_15
LBB0_18:
movl $0, -12(%rbp)
movq -40(%rbp), %rax
movq %rax, %rsp
movl -12(%rbp), %eax
movl %eax, -80(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_20
## %bb.19:
movl -80(%rbp), %eax ## 4-byte Reload
movq %rbp, %rsp
popq %rbp
retq
LBB0_20:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter No of elements in the array \n"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Enter the elements of array \n"
L_.str.3: ## @.str.3
.asciz "Sorted elements: "
L_.str.4: ## @.str.4
.asciz " %d"
.subsections_via_symbols
| the_stack_data/237641869.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/730938.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
str x1, [sp, #16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _getenv
bl _puts
ldr w0, [sp, #12] ; 4-byte Folded Reload
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "PWD"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
leaq L_.str(%rip), %rdi
callq _getenv
movq %rax, %rdi
callq _puts
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "PWD"
.subsections_via_symbols
| the_stack_data/9513337.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _process ; -- Begin function process
.p2align 2
_process: ; @process
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str w1, [sp, #8]
ldr w8, [sp, #12]
ldr w9, [sp, #8]
mul w8, w8, w9
str w8, [sp, #4]
ldr w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.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]
str wzr, [sp, #12]
str wzr, [sp, #8]
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, le
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
bl _atoi
str w0, [sp, #12]
b LBB1_2
LBB1_2:
ldur w8, [x29, #-8]
subs w8, w8, #3
cset w8, ne
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
ldr x8, [sp, #16]
ldr x0, [x8, #16]
bl _atoi
str w0, [sp, #8]
b LBB1_4
LBB1_4:
ldr w0, [sp, #12]
ldr w1, [sp, #8]
bl _process
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur 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 "%i\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _process ## -- Begin function process
.p2align 4, 0x90
_process: ## @process
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl -4(%rbp), %eax
imull -8(%rbp), %eax
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $0, -20(%rbp)
movl $0, -24(%rbp)
cmpl $2, -8(%rbp)
jle LBB1_2
## %bb.1:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _atoi
movl %eax, -20(%rbp)
LBB1_2:
cmpl $3, -8(%rbp)
jne LBB1_4
## %bb.3:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
callq _atoi
movl %eax, -24(%rbp)
LBB1_4:
movl -20(%rbp), %edi
movl -24(%rbp), %esi
callq _process
movl %eax, %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%i\n"
.subsections_via_symbols
| the_stack_data/680561.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/90761449.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/1212951.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov x9, sp
sub x8, x29, #6
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_13 Depth 2
ldurh w8, [x29, #-6]
mov w9, #-1
add w9, w9, w8, uxth
sturh w9, [x29, #-6]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_20
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov x9, sp
sub x8, x29, #8
str x8, [x9]
sub x8, x29, #28
mov x10, x8
str x10, [x9, #8]
sub x10, x29, #10
str x10, [x9, #16]
sub x10, x29, #27
str x10, [x9, #24]
sub x10, x29, #12
str x10, [x9, #32]
str x8, [x9, #40]
sub x8, x29, #14
str x8, [x9, #48]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldursb w8, [x29, #-27]
stur w8, [x29, #-32] ; 4-byte Folded Spill
subs w8, w8, #42
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-32] ; 4-byte Folded Reload
subs w8, w8, #43
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-32] ; 4-byte Folded Reload
subs w8, w8, #45
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_8
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldursh w8, [x29, #-10]
ldursh w9, [x29, #-14]
mul w8, w8, w9
ldursh w9, [x29, #-8]
mul w8, w8, w9
ldursh w9, [x29, #-10]
sdiv w8, w8, w9
ldursh w9, [x29, #-10]
ldursh w10, [x29, #-14]
mul w9, w9, w10
ldursh w10, [x29, #-12]
mul w9, w9, w10
ldursh w10, [x29, #-14]
sdiv w9, w9, w10
add w8, w8, w9
sturh w8, [x29, #-18]
ldursh w8, [x29, #-10]
ldursh w9, [x29, #-14]
mul w8, w8, w9
sturh w8, [x29, #-20]
b LBB0_9
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldursh w8, [x29, #-10]
ldursh w9, [x29, #-14]
mul w8, w8, w9
ldursh w9, [x29, #-8]
mul w8, w8, w9
ldursh w9, [x29, #-10]
sdiv w8, w8, w9
ldursh w9, [x29, #-10]
ldursh w10, [x29, #-14]
mul w9, w9, w10
ldursh w10, [x29, #-12]
mul w9, w9, w10
ldursh w10, [x29, #-14]
sdiv w9, w9, w10
subs w8, w8, w9
sturh w8, [x29, #-18]
ldursh w8, [x29, #-10]
ldursh w9, [x29, #-14]
mul w8, w8, w9
sturh w8, [x29, #-20]
b LBB0_9
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldursh w8, [x29, #-8]
ldursh w9, [x29, #-12]
mul w8, w8, w9
sturh w8, [x29, #-18]
ldursh w8, [x29, #-10]
ldursh w9, [x29, #-14]
mul w8, w8, w9
sturh w8, [x29, #-20]
b LBB0_9
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldursh w8, [x29, #-8]
ldursh w9, [x29, #-14]
mul w8, w8, w9
sturh w8, [x29, #-18]
ldursh w8, [x29, #-10]
ldursh w9, [x29, #-12]
mul w8, w8, w9
sturh w8, [x29, #-20]
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldursh w0, [x29, #-18]
bl _abs
stur w0, [x29, #-36] ; 4-byte Folded Spill
ldursh w0, [x29, #-20]
bl _abs
mov x8, x0
ldur w0, [x29, #-36] ; 4-byte Folded Reload
subs w8, w0, w8
cset w8, ge
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldursh w0, [x29, #-18]
bl _abs
sturh w0, [x29, #-16]
b LBB0_12
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldursh w0, [x29, #-20]
bl _abs
sturh w0, [x29, #-16]
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
ldurh w8, [x29, #-18]
sturh w8, [x29, #-22]
ldurh w8, [x29, #-20]
sturh w8, [x29, #-24]
mov w8, #2
sturh w8, [x29, #-26]
b LBB0_13
LBB0_13: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldursh w8, [x29, #-26]
ldursh w9, [x29, #-16]
mov w10, #2
sdiv w9, w9, w10
add w9, w9, #1
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_19
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=2
ldursh w8, [x29, #-22]
ldursh w10, [x29, #-26]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_13 Depth=2
ldursh w8, [x29, #-24]
ldursh w10, [x29, #-26]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_13 Depth=2
ldursh w8, [x29, #-22]
ldursh w9, [x29, #-26]
sdiv w8, w8, w9
sturh w8, [x29, #-22]
ldursh w8, [x29, #-24]
ldursh w9, [x29, #-26]
sdiv w8, w8, w9
sturh w8, [x29, #-24]
b LBB0_18
LBB0_17: ; in Loop: Header=BB0_13 Depth=2
ldurh w8, [x29, #-26]
add w8, w8, #1
sturh w8, [x29, #-26]
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_13 Depth=2
b LBB0_13
LBB0_19: ; in Loop: Header=BB0_1 Depth=1
ldursh w13, [x29, #-18]
ldursh w12, [x29, #-20]
ldursh w11, [x29, #-22]
ldursh w10, [x29, #-24]
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 x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_1
LBB0_20:
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 "%d"
l_.str.1: ; @.str.1
.asciz "%d %c %d %c %d %c %d"
l_.str.2: ; @.str.2
.asciz "%d/%d = %d/%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -6(%rbp), %rsi
movb $0, %al
callq _scanf
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_11 Depth 2
movw -6(%rbp), %ax
movw %ax, %cx
addw $-1, %cx
movw %cx, -6(%rbp)
cmpw $0, %ax
je LBB0_18
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq %rsp, %rax
leaq -14(%rbp), %rcx
movq %rcx, 8(%rax)
leaq -28(%rbp), %rdx
movq %rdx, (%rax)
leaq L_.str.1(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
leaq -8(%rbp), %rsi
leaq -10(%rbp), %rcx
leaq -27(%rbp), %r8
leaq -12(%rbp), %r9
callq _scanf
movsbl -27(%rbp), %eax
movl %eax, -32(%rbp) ## 4-byte Spill
subl $42, %eax
je LBB0_5
jmp LBB0_19
LBB0_19: ## in Loop: Header=BB0_1 Depth=1
movl -32(%rbp), %eax ## 4-byte Reload
subl $43, %eax
je LBB0_3
jmp LBB0_20
LBB0_20: ## in Loop: Header=BB0_1 Depth=1
movl -32(%rbp), %eax ## 4-byte Reload
subl $45, %eax
je LBB0_4
jmp LBB0_6
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movswl -10(%rbp), %eax
movswl -14(%rbp), %ecx
imull %ecx, %eax
movswl -8(%rbp), %ecx
imull %ecx, %eax
movswl -10(%rbp), %ecx
cltd
idivl %ecx
movl %eax, -36(%rbp) ## 4-byte Spill
movswl -10(%rbp), %eax
movswl -14(%rbp), %ecx
imull %ecx, %eax
movswl -12(%rbp), %ecx
imull %ecx, %eax
movswl -14(%rbp), %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -36(%rbp), %eax ## 4-byte Reload
addl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -18(%rbp)
movswl -10(%rbp), %eax
movswl -14(%rbp), %ecx
imull %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -20(%rbp)
jmp LBB0_7
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movswl -10(%rbp), %eax
movswl -14(%rbp), %ecx
imull %ecx, %eax
movswl -8(%rbp), %ecx
imull %ecx, %eax
movswl -10(%rbp), %ecx
cltd
idivl %ecx
movl %eax, -40(%rbp) ## 4-byte Spill
movswl -10(%rbp), %eax
movswl -14(%rbp), %ecx
imull %ecx, %eax
movswl -12(%rbp), %ecx
imull %ecx, %eax
movswl -14(%rbp), %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -40(%rbp), %eax ## 4-byte Reload
subl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -18(%rbp)
movswl -10(%rbp), %eax
movswl -14(%rbp), %ecx
imull %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -20(%rbp)
jmp LBB0_7
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movswl -8(%rbp), %eax
movswl -12(%rbp), %ecx
imull %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -18(%rbp)
movswl -10(%rbp), %eax
movswl -14(%rbp), %ecx
imull %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -20(%rbp)
jmp LBB0_7
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movswl -8(%rbp), %eax
movswl -14(%rbp), %ecx
imull %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -18(%rbp)
movswl -10(%rbp), %eax
movswl -12(%rbp), %ecx
imull %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -20(%rbp)
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movswl -18(%rbp), %edi
callq _abs
movl %eax, -44(%rbp) ## 4-byte Spill
movswl -20(%rbp), %edi
callq _abs
movl %eax, %ecx
movl -44(%rbp), %eax ## 4-byte Reload
cmpl %ecx, %eax
jge LBB0_9
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
movswl -18(%rbp), %edi
callq _abs
## kill: def $ax killed $ax killed $eax
movw %ax, -16(%rbp)
jmp LBB0_10
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movswl -20(%rbp), %edi
callq _abs
## kill: def $ax killed $ax killed $eax
movw %ax, -16(%rbp)
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movw -18(%rbp), %ax
movw %ax, -22(%rbp)
movw -20(%rbp), %ax
movw %ax, -24(%rbp)
movw $2, -26(%rbp)
LBB0_11: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movswl -26(%rbp), %eax
movl %eax, -48(%rbp) ## 4-byte Spill
movswl -16(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -48(%rbp), %eax ## 4-byte Reload
addl $1, %ecx
cmpl %ecx, %eax
jg LBB0_17
## %bb.12: ## in Loop: Header=BB0_11 Depth=2
movswl -22(%rbp), %eax
movswl -26(%rbp), %ecx
cltd
idivl %ecx
cmpl $0, %edx
jne LBB0_15
## %bb.13: ## in Loop: Header=BB0_11 Depth=2
movswl -24(%rbp), %eax
movswl -26(%rbp), %ecx
cltd
idivl %ecx
cmpl $0, %edx
jne LBB0_15
## %bb.14: ## in Loop: Header=BB0_11 Depth=2
movswl -22(%rbp), %eax
movswl -26(%rbp), %ecx
cltd
idivl %ecx
## kill: def $ax killed $ax killed $eax
movw %ax, -22(%rbp)
movswl -24(%rbp), %eax
movswl -26(%rbp), %ecx
cltd
idivl %ecx
## kill: def $ax killed $ax killed $eax
movw %ax, -24(%rbp)
jmp LBB0_16
LBB0_15: ## in Loop: Header=BB0_11 Depth=2
movw -26(%rbp), %ax
addw $1, %ax
movw %ax, -26(%rbp)
LBB0_16: ## in Loop: Header=BB0_11 Depth=2
jmp LBB0_11
LBB0_17: ## in Loop: Header=BB0_1 Depth=1
movswl -18(%rbp), %esi
movswl -20(%rbp), %edx
movswl -22(%rbp), %ecx
movswl -24(%rbp), %r8d
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_1
LBB0_18:
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
L_.str.1: ## @.str.1
.asciz "%d %c %d %c %d %c %d"
L_.str.2: ## @.str.2
.asciz "%d/%d = %d/%d\n"
.subsections_via_symbols
| the_stack_data/20450791.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]
bl _pwd
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w0, #0
bl _exit
LBB0_2:
mov w0, #1
bl _exit
.cfi_endproc
; -- End function
.globl _pwd ; -- Begin function pwd
.p2align 2
_pwd: ; @pwd
.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 x8, #1024
str x8, [sp]
ldr x0, [sp]
bl _malloc
str x0, [sp, #16]
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB1_11
LBB1_2:
b LBB1_3
LBB1_3: ; =>This Inner Loop Header: Depth=1
bl ___error
str wzr, [x0]
ldr x0, [sp, #16]
ldr x1, [sp]
bl _getcwd
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4:
ldr x8, [sp, #16]
stur x8, [x29, #-8]
b LBB1_11
LBB1_5: ; in Loop: Header=BB1_3 Depth=1
bl ___error
ldr w8, [x0]
subs w8, w8, #34
cset w8, eq
tbnz w8, #0, LBB1_7
b LBB1_6
LBB1_6:
b LBB1_10
LBB1_7: ; in Loop: Header=BB1_3 Depth=1
ldr x8, [sp]
lsl x8, x8, #1
str x8, [sp]
ldr x0, [sp, #16]
ldr x1, [sp]
bl _realloc
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_9
b LBB1_8
LBB1_8:
b LBB1_10
LBB1_9: ; in Loop: Header=BB1_3 Depth=1
ldr x8, [sp, #8]
str x8, [sp, #16]
b LBB1_3
LBB1_10:
ldr x0, [sp, #16]
bl _free
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB1_11
LBB1_11:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%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 $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
callq _pwd
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
je LBB0_2
## %bb.1:
movq -24(%rbp), %rsi
leaq L_.str(%rip), %rdi
xorl %eax, %eax
movl %eax, -28(%rbp) ## 4-byte Spill
callq _printf
movl -28(%rbp), %edi ## 4-byte Reload
callq _exit
LBB0_2:
movl $1, %edi
callq _exit
.cfi_endproc
## -- End function
.globl _pwd ## -- Begin function pwd
.p2align 4, 0x90
_pwd: ## @pwd
.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 $1024, -32(%rbp) ## imm = 0x400
movq -32(%rbp), %rdi
callq _malloc
movq %rax, -16(%rbp)
cmpq $0, -16(%rbp)
jne LBB1_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB1_11
LBB1_2:
jmp LBB1_3
LBB1_3: ## =>This Inner Loop Header: Depth=1
callq ___error
movl $0, (%rax)
movq -16(%rbp), %rdi
movq -32(%rbp), %rsi
callq _getcwd
cmpq $0, %rax
je LBB1_5
## %bb.4:
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB1_11
LBB1_5: ## in Loop: Header=BB1_3 Depth=1
callq ___error
cmpl $34, (%rax)
je LBB1_7
## %bb.6:
jmp LBB1_10
LBB1_7: ## in Loop: Header=BB1_3 Depth=1
movq -32(%rbp), %rax
shlq $1, %rax
movq %rax, -32(%rbp)
movq -16(%rbp), %rdi
movq -32(%rbp), %rsi
callq _realloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB1_9
## %bb.8:
jmp LBB1_10
LBB1_9: ## in Loop: Header=BB1_3 Depth=1
movq -24(%rbp), %rax
movq %rax, -16(%rbp)
jmp LBB1_3
LBB1_10:
movq -16(%rbp), %rdi
callq _free
movq $0, -8(%rbp)
LBB1_11:
movq -8(%rbp), %rax
addq $32, %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/184518713.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, #5
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldursb w8, [x29, #-5]
stur w8, [x29, #-12] ; 4-byte Folded Spill
subs w8, w8, #65
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_1
LBB0_1:
ldur w8, [x29, #-12] ; 4-byte Folded Reload
subs w8, w8, #66
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_2
LBB0_2:
ldur w8, [x29, #-12] ; 4-byte Folded Reload
subs w8, w8, #67
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_3
LBB0_3:
ldur w8, [x29, #-12] ; 4-byte Folded Reload
subs w8, w8, #97
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4:
ldur w8, [x29, #-12] ; 4-byte Folded Reload
subs w8, w8, #98
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_5
LBB0_5:
ldur w8, [x29, #-12] ; 4-byte Folded Reload
subs w8, w8, #99
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_9
LBB0_6:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_10
LBB0_7:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_10
LBB0_8:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB0_10
LBB0_9:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB0_10
LBB0_10:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _system
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 "Please input a grade:(A or a)"
l_.str.1: ; @.str.1
.asciz "%c"
l_.str.2: ; @.str.2
.asciz "Excellent!\n"
l_.str.3: ; @.str.3
.asciz "Good!\n"
l_.str.4: ; @.str.4
.asciz "Be study hard!\n"
l_.str.5: ; @.str.5
.asciz "Fail\n"
l_.str.6: ; @.str.6
.asciz "pause"
.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
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movb %al, -13(%rbp) ## 1-byte Spill
callq _printf
## kill: def $ecx killed $eax
movb -13(%rbp), %al ## 1-byte Reload
leaq L_.str.1(%rip), %rdi
leaq -5(%rbp), %rsi
callq _scanf
movsbl -5(%rbp), %eax
movl %eax, -12(%rbp) ## 4-byte Spill
subl $65, %eax
je LBB0_1
jmp LBB0_6
LBB0_6:
movl -12(%rbp), %eax ## 4-byte Reload
subl $66, %eax
je LBB0_2
jmp LBB0_7
LBB0_7:
movl -12(%rbp), %eax ## 4-byte Reload
subl $67, %eax
je LBB0_3
jmp LBB0_8
LBB0_8:
movl -12(%rbp), %eax ## 4-byte Reload
subl $97, %eax
je LBB0_1
jmp LBB0_9
LBB0_9:
movl -12(%rbp), %eax ## 4-byte Reload
subl $98, %eax
je LBB0_2
jmp LBB0_10
LBB0_10:
movl -12(%rbp), %eax ## 4-byte Reload
subl $99, %eax
je LBB0_3
jmp LBB0_4
LBB0_1:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_5
LBB0_2:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_5
LBB0_3:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_5
LBB0_4:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
LBB0_5:
leaq L_.str.6(%rip), %rdi
callq _system
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Please input a grade:(A or a)"
L_.str.1: ## @.str.1
.asciz "%c"
L_.str.2: ## @.str.2
.asciz "Excellent!\n"
L_.str.3: ## @.str.3
.asciz "Good!\n"
L_.str.4: ## @.str.4
.asciz "Be study hard!\n"
L_.str.5: ## @.str.5
.asciz "Fail\n"
L_.str.6: ## @.str.6
.asciz "pause"
.subsections_via_symbols
| the_stack_data/124304.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, #480
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #68]
str w0, [sp, #64]
str x1, [sp, #56]
movi d0, #0000000000000000
str s0, [sp, #40]
str s0, [sp, #36]
mov x9, sp
add x8, sp, #52
str x8, [x9]
add x8, sp, #48
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
str wzr, [sp, #32]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr w8, [sp, #32]
ldr w9, [sp, #52]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #28]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #28]
ldr w9, [sp, #48]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #32]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #28]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldrsw x8, [sp, #32]
mov x9, #40
mul x9, x8, x9
add x8, sp, #72
add x8, x8, x9
ldrsw x9, [sp, #28]
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
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_1
LBB0_8:
str wzr, [sp, #24]
b LBB0_9
LBB0_9: ; =>This Loop Header: Depth=1
; Child Loop BB0_11 Depth 2
ldr w8, [sp, #24]
ldr w9, [sp, #52]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_18
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=1
str wzr, [sp, #20]
b LBB0_11
LBB0_11: ; Parent Loop BB0_9 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #20]
ldr w9, [sp, #48]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_16
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=2
ldr w8, [sp, #24]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_11 Depth=2
ldr s0, [sp, #36]
fmov s1, #1.00000000
fadd s0, s0, s1
str s0, [sp, #36]
ldrsw x8, [sp, #24]
mov x9, #40
mul x9, x8, x9
add x8, sp, #72
add x8, x8, x9
ldrsw x9, [sp, #20]
ldr s0, [x8, x9, lsl #2]
scvtf s1, s0
ldr s0, [sp, #40]
fadd s0, s0, s1
str s0, [sp, #40]
ldr s0, [sp, #40]
ldr s1, [sp, #36]
fdiv s0, s0, s1
str s0, [sp, #44]
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_11 Depth=2
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_11 Depth=2
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_11
LBB0_16: ; in Loop: Header=BB0_9 Depth=1
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_9 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_9
LBB0_18:
ldr s0, [sp, #40]
fcvt d1, s0
ldr s0, [sp, #44]
fcvt d0, s0
mov x8, sp
str d1, [x8]
str d0, [x8, #8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19:
bl ___stack_chk_fail
LBB0_20:
mov w0, #0
add sp, sp, #480
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d %d"
l_.str.1: ; @.str.1
.asciz "A[%d][%d] : "
l_.str.2: ; @.str.2
.asciz "%d"
l_.str.3: ; @.str.3
.asciz "Sum : %.0f, Avg : %.2f"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function main
LCPI0_0:
.long 0x3f800000 ## float 1
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $480, %rsp ## imm = 0x1E0
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -420(%rbp)
movl %edi, -424(%rbp)
movq %rsi, -432(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -448(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -452(%rbp)
leaq L_.str(%rip), %rdi
leaq -436(%rbp), %rsi
leaq -440(%rbp), %rdx
movb $0, %al
callq _scanf
movl $0, -456(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movl -456(%rbp), %eax
cmpl -436(%rbp), %eax
jge LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -460(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -460(%rbp), %eax
cmpl -440(%rbp), %eax
jge LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movl -456(%rbp), %esi
movl -460(%rbp), %edx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movslq -456(%rbp), %rax
leaq -416(%rbp), %rsi
imulq $40, %rax, %rax
addq %rax, %rsi
movslq -460(%rbp), %rax
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -460(%rbp), %eax
addl $1, %eax
movl %eax, -460(%rbp)
jmp LBB0_3
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movl -456(%rbp), %eax
addl $1, %eax
movl %eax, -456(%rbp)
jmp LBB0_1
LBB0_8:
movl $0, -464(%rbp)
LBB0_9: ## =>This Loop Header: Depth=1
## Child Loop BB0_11 Depth 2
movl -464(%rbp), %eax
cmpl -436(%rbp), %eax
jge LBB0_18
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movl $0, -468(%rbp)
LBB0_11: ## Parent Loop BB0_9 Depth=1
## => This Inner Loop Header: Depth=2
movl -468(%rbp), %eax
cmpl -440(%rbp), %eax
jge LBB0_16
## %bb.12: ## in Loop: Header=BB0_11 Depth=2
movl -464(%rbp), %eax
cmpl -468(%rbp), %eax
jge LBB0_14
## %bb.13: ## in Loop: Header=BB0_11 Depth=2
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addss -452(%rbp), %xmm0
movss %xmm0, -452(%rbp)
movslq -464(%rbp), %rcx
leaq -416(%rbp), %rax
imulq $40, %rcx, %rcx
addq %rcx, %rax
movslq -468(%rbp), %rcx
cvtsi2ssl (%rax,%rcx,4), %xmm0
addss -448(%rbp), %xmm0
movss %xmm0, -448(%rbp)
movss -448(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
divss -452(%rbp), %xmm0
movss %xmm0, -444(%rbp)
LBB0_14: ## in Loop: Header=BB0_11 Depth=2
jmp LBB0_15
LBB0_15: ## in Loop: Header=BB0_11 Depth=2
movl -468(%rbp), %eax
addl $1, %eax
movl %eax, -468(%rbp)
jmp LBB0_11
LBB0_16: ## in Loop: Header=BB0_9 Depth=1
jmp LBB0_17
LBB0_17: ## in Loop: Header=BB0_9 Depth=1
movl -464(%rbp), %eax
addl $1, %eax
movl %eax, -464(%rbp)
jmp LBB0_9
LBB0_18:
movss -448(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movss -444(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
leaq L_.str.3(%rip), %rdi
movb $2, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_20
## %bb.19:
xorl %eax, %eax
addq $480, %rsp ## imm = 0x1E0
popq %rbp
retq
LBB0_20:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d %d"
L_.str.1: ## @.str.1
.asciz "A[%d][%d] : "
L_.str.2: ## @.str.2
.asciz "%d"
L_.str.3: ## @.str.3
.asciz "Sum : %.0f, Avg : %.2f"
.subsections_via_symbols
| the_stack_data/165765294.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/148577757.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test1 ; -- Begin function test1
.p2align 2
_test1: ; @test1
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _returns_23
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
; kill: def $x8 killed $xzr
str xzr, [sp, #8]
b LBB0_3
LBB0_2:
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
str x8, [sp, #8]
b LBB0_3
LBB0_3:
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _test2 ; -- Begin function test2
.p2align 2
_test2: ; @test2
.cfi_startproc
; %bb.0:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
ret
.cfi_endproc
; -- End function
.globl _test3 ; -- Begin function test3
.p2align 2
_test3: ; @test3
.cfi_startproc
; %bb.0:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function returns_23
_returns_23: ; @returns_23
.cfi_startproc
; %bb.0:
mov w0, #23
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "hi there"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test1 ## -- Begin function test1
.p2align 4, 0x90
_test1: ## @test1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
callq _returns_23
cmpl $0, %eax
je LBB0_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB0_3
LBB0_2:
leaq L_.str(%rip), %rax
movq %rax, -8(%rbp)
LBB0_3:
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test2 ## -- Begin function test2
.p2align 4, 0x90
_test2: ## @test2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test3 ## -- Begin function test3
.p2align 4, 0x90
_test3: ## @test3
.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), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function returns_23
_returns_23: ## @returns_23
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $23, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "hi there"
.subsections_via_symbols
| the_stack_data/178264950.c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.