arm
stringlengths 122
134M
| x86
stringlengths 122
134M
| filename
stringlengths 18
26
|
---|---|---|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _short_delay ; -- Begin function short_delay
.p2align 2
_short_delay: ; @short_delay
.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, #8]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB0_1
LBB0_4:
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _threadFunction_1 ; -- Begin function threadFunction_1
.p2align 2
_threadFunction_1: ; @threadFunction_1
.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]
str x8, [sp]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldr w8, [x8]
mov w9, #2147483647
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
mov w0, #10
bl _short_delay
ldr x9, [sp]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB1_1
LBB1_3:
ldr x0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _threadFunction_2 ; -- Begin function threadFunction_2
.p2align 2
_threadFunction_2: ; @threadFunction_2
.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]
str x8, [sp]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldr w8, [x8]
mov w9, #2147483647
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
mov w0, #10
bl _short_delay
ldr x9, [sp]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB2_1
LBB2_3:
ldr x0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
sub x3, x29, #8
stur wzr, [x29, #-8]
stur wzr, [x29, #-12]
stur wzr, [x29, #-16]
sub x0, x29, #24
mov x1, #0
adrp x2, _threadFunction_1@PAGE
add x2, x2, _threadFunction_1@PAGEOFF
bl _pthread_create
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-4]
b LBB3_8
LBB3_2:
add x0, sp, #32
mov x1, #0
adrp x2, _threadFunction_2@PAGE
add x2, x2, _threadFunction_2@PAGEOFF
sub x3, x29, #12
bl _pthread_create
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-4]
b LBB3_8
LBB3_4:
mov w8, #10
str w8, [sp, #28]
b LBB3_5
LBB3_5: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-16]
subs w8, w8, #10
cset w8, eq
tbnz w8, #0, LBB3_7
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_5 Depth=1
ldur w8, [x29, #-8]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-12]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w0, #100
bl _usleep
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB3_5
LBB3_7:
ldur x0, [x29, #-24]
bl _pthread_cancel
ldr x0, [sp, #32]
bl _pthread_cancel
ldur w8, [x29, #-8]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-12]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
stur wzr, [x29, #-4]
b LBB3_8
LBB3_8:
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 "Failed to create the thread\n"
l_.str.1: ; @.str.1
.asciz "The value of x_1=%d, x_2=%d and y=%d \n"
l_.str.2: ; @.str.2
.asciz "Final: x_1=%d, x_2=%d, y=%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _short_delay ## -- Begin function short_delay
.p2align 4, 0x90
_short_delay: ## @short_delay
.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
movl -8(%rbp), %eax
cmpl -4(%rbp), %eax
je LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_3
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_4:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _threadFunction_1 ## -- Begin function threadFunction_1
.p2align 4, 0x90
_threadFunction_1: ## @threadFunction_1
.cfi_startproc
## %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)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
cmpl $2147483647, (%rax) ## imm = 0x7FFFFFFF
jge LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl $10, %edi
callq _short_delay
movq -16(%rbp), %rax
movl (%rax), %ecx
addl $1, %ecx
movl %ecx, (%rax)
jmp LBB1_1
LBB1_3:
movq -16(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _threadFunction_2 ## -- Begin function threadFunction_2
.p2align 4, 0x90
_threadFunction_2: ## @threadFunction_2
.cfi_startproc
## %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
movq -16(%rbp), %rax
cmpl $2147483647, (%rax) ## imm = 0x7FFFFFFF
jge LBB2_3
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movl $10, %edi
callq _short_delay
movq -16(%rbp), %rax
movl (%rax), %ecx
addl $1, %ecx
movl %ecx, (%rax)
jmp LBB2_1
LBB2_3:
movq -16(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
movl $0, -8(%rbp)
movl $0, -12(%rbp)
movl $0, -16(%rbp)
leaq -8(%rbp), %rcx
leaq -24(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq _threadFunction_1(%rip), %rdx
callq _pthread_create
cmpl $0, %eax
je LBB3_2
## %bb.1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -4(%rbp)
jmp LBB3_8
LBB3_2:
leaq -12(%rbp), %rcx
leaq -32(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq _threadFunction_2(%rip), %rdx
callq _pthread_create
cmpl $0, %eax
je LBB3_4
## %bb.3:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -4(%rbp)
jmp LBB3_8
LBB3_4:
movl $10, -36(%rbp)
LBB3_5: ## =>This Inner Loop Header: Depth=1
cmpl $10, -16(%rbp)
je LBB3_7
## %bb.6: ## in Loop: Header=BB3_5 Depth=1
movl -8(%rbp), %esi
movl -12(%rbp), %edx
movl -16(%rbp), %ecx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl $100, %edi
callq _usleep
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB3_5
LBB3_7:
movq -24(%rbp), %rdi
callq _pthread_cancel
movq -32(%rbp), %rdi
callq _pthread_cancel
movl -8(%rbp), %esi
movl -12(%rbp), %edx
movl -16(%rbp), %ecx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -4(%rbp)
LBB3_8:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Failed to create the thread\n"
L_.str.1: ## @.str.1
.asciz "The value of x_1=%d, x_2=%d and y=%d \n"
L_.str.2: ## @.str.2
.asciz "Final: x_1=%d, x_2=%d, y=%d\n"
.subsections_via_symbols
| the_stack_data/113361.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _factorial ; -- Begin function factorial
.p2align 2
_factorial: ; @factorial
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-12]
ldur w8, [x29, #-12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov x8, #1
stur x8, [x29, #-8]
b LBB0_3
LBB0_2:
ldursw x8, [x29, #-12]
str x8, [sp, #8] ; 8-byte Folded Spill
ldur w8, [x29, #-12]
subs w0, w8, #1
bl _factorial
ldr x8, [sp, #8] ; 8-byte Folded Reload
mul x8, x8, x0
stur x8, [x29, #-8]
b LBB0_3
LBB0_3:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _iterative_factorial ; -- Begin function iterative_factorial
.p2align 2
_iterative_factorial: ; @iterative_factorial
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
mov w8, #1
str w8, [sp, #8]
mov x8, #1
str x8, [sp]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldrsw x9, [sp, #8]
ldr x8, [sp]
mul x8, x8, x9
str x8, [sp]
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB1_1
LBB1_3:
ldr x0, [sp]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _tail_fact ; -- Begin function tail_fact
.p2align 2
_tail_fact: ; @tail_fact
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-12]
stur w1, [x29, #-16]
str x2, [sp, #24]
ldur w8, [x29, #-16]
str w8, [sp, #20]
ldr x8, [sp, #24]
str x8, [sp, #8]
ldr w8, [sp, #20]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldrsw x9, [sp, #20]
ldr x8, [sp, #8]
mul x8, x8, x9
str x8, [sp, #8]
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
ldur w0, [x29, #-12]
ldr w1, [sp, #20]
ldr x2, [sp, #8]
bl _tail_fact
stur x0, [x29, #-8]
b LBB2_3
LBB2_2:
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB2_3
LBB2_3:
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, #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]
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 w0, [x29, #-8]
bl _factorial
stur x0, [x29, #-16]
ldur w0, [x29, #-8]
bl _iterative_factorial
stur x0, [x29, #-24]
ldur w0, [x29, #-8]
mov w1, #1
mov x2, #1
bl _tail_fact
str x0, [sp, #32]
ldur w8, [x29, #-8]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-16]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
bl _printf
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldur w8, [x29, #-8]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-24]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
bl _printf
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldur w8, [x29, #-8]
; implicit-def: $x10
mov x10, x8
ldr x8, [sp, #32]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
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 "Insert the number you want to evaluate the factorial of: "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "The factorial of %d is %ld\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _factorial ## -- Begin function factorial
.p2align 4, 0x90
_factorial: ## @factorial
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -12(%rbp)
cmpl $0, -12(%rbp)
jne LBB0_2
## %bb.1:
movq $1, -8(%rbp)
jmp LBB0_3
LBB0_2:
movslq -12(%rbp), %rax
movq %rax, -24(%rbp) ## 8-byte Spill
movl -12(%rbp), %edi
subl $1, %edi
callq _factorial
movq %rax, %rcx
movq -24(%rbp), %rax ## 8-byte Reload
imulq %rcx, %rax
movq %rax, -8(%rbp)
LBB0_3:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _iterative_factorial ## -- Begin function iterative_factorial
.p2align 4, 0x90
_iterative_factorial: ## @iterative_factorial
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl $1, -8(%rbp)
movq $1, -16(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -8(%rbp), %eax
cmpl -4(%rbp), %eax
jg LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movslq -8(%rbp), %rax
imulq -16(%rbp), %rax
movq %rax, -16(%rbp)
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB1_1
LBB1_3:
movq -16(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _tail_fact ## -- Begin function tail_fact
.p2align 4, 0x90
_tail_fact: ## @tail_fact
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl %edi, -12(%rbp)
movl %esi, -16(%rbp)
movq %rdx, -24(%rbp)
movl -16(%rbp), %eax
movl %eax, -28(%rbp)
movq -24(%rbp), %rax
movq %rax, -40(%rbp)
movl -28(%rbp), %eax
cmpl -12(%rbp), %eax
jg LBB2_2
## %bb.1:
movslq -28(%rbp), %rax
imulq -40(%rbp), %rax
movq %rax, -40(%rbp)
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
movl -12(%rbp), %edi
movl -28(%rbp), %esi
movq -40(%rbp), %rdx
callq _tail_fact
movq %rax, -8(%rbp)
jmp LBB2_3
LBB2_2:
movq -40(%rbp), %rax
movq %rax, -8(%rbp)
LBB2_3:
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 $32, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl -8(%rbp), %edi
callq _factorial
movq %rax, -16(%rbp)
movl -8(%rbp), %edi
callq _iterative_factorial
movq %rax, -24(%rbp)
movl -8(%rbp), %edi
movl $1, %esi
movl $1, %edx
callq _tail_fact
movq %rax, -32(%rbp)
movl -8(%rbp), %esi
movq -16(%rbp), %rdx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
movq -24(%rbp), %rdx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
movq -32(%rbp), %rdx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Insert the number you want to evaluate the factorial of: "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "The factorial of %d is %ld\n"
.subsections_via_symbols
| the_stack_data/1028251.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "hello"
.section __DATA,__data
.globl _b ; @b
.p2align 3
_b:
.quad l_.str
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "hello"
.section __DATA,__data
.globl _b ## @b
.p2align 3
_b:
.quad L_.str
.subsections_via_symbols
| the_stack_data/9511580.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_swap ; -- Begin function ft_swap
.p2align 2
_ft_swap: ; @ft_swap
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
ldr x8, [sp, #24]
ldr w8, [x8]
str w8, [sp, #12]
ldr x8, [sp, #16]
ldr w8, [x8]
ldr x9, [sp, #24]
str w8, [x9]
ldr w8, [sp, #12]
ldr x9, [sp, #16]
str w8, [x9]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_swap ## -- Begin function ft_swap
.p2align 4, 0x90
_ft_swap: ## @ft_swap
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rax
movl (%rax), %eax
movl %eax, -20(%rbp)
movq -16(%rbp), %rax
movl (%rax), %ecx
movq -8(%rbp), %rax
movl %ecx, (%rax)
movl -20(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/117327123.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _init ; -- Begin function init
.p2align 2
_init: ; @init
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x9, [sp, #8]
mov w8, #-1
str w8, [x9, #40]
ldr x9, [sp, #8]
str w8, [x9, #44]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _insertbeg ; -- Begin function insertbeg
.p2align 2
_insertbeg: ; @insertbeg
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str w1, [sp, #4]
ldr x8, [sp, #8]
ldr w8, [x8, #40]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr x8, [sp, #8]
str wzr, [x8, #44]
ldr x8, [sp, #8]
str wzr, [x8, #40]
ldr w8, [sp, #4]
ldr x9, [sp, #8]
str w8, [x9]
b LBB1_6
LBB1_2:
ldr x8, [sp, #8]
ldr w8, [x8, #40]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
ldr x9, [sp, #8]
mov w8, #9
str w8, [x9, #40]
b LBB1_5
LBB1_4:
ldr x9, [sp, #8]
ldr w8, [x9, #40]
subs w8, w8, #1
str w8, [x9, #40]
ldr w8, [sp, #4]
ldr x9, [sp, #8]
ldr x10, [sp, #8]
ldrsw x10, [x10, #40]
str w8, [x9, x10, lsl #2]
b LBB1_5
LBB1_5:
b LBB1_6
LBB1_6:
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _insertend ; -- Begin function insertend
.p2align 2
_insertend: ; @insertend
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str w1, [sp, #4]
ldr x8, [sp, #8]
ldr w8, [x8, #44]
subs w8, w8, #9
cset w8, ne
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB2_5
LBB2_2:
ldr x9, [sp, #8]
ldr w8, [x9, #44]
add w8, w8, #1
str w8, [x9, #44]
ldr w8, [sp, #4]
ldr x9, [sp, #8]
ldr x10, [sp, #8]
ldrsw x10, [x10, #44]
str w8, [x9, x10, lsl #2]
ldr x8, [sp, #8]
ldr w8, [x8, #40]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3:
ldr x8, [sp, #8]
str wzr, [x8, #40]
b LBB2_4
LBB2_4:
b LBB2_5
LBB2_5:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _deletebeg ; -- Begin function deletebeg
.p2align 2
_deletebeg: ; @deletebeg
.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 w8, [x8, #40]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB3_9
LBB3_2:
ldr x8, [sp, #8]
ldr x9, [sp, #8]
ldrsw x9, [x9, #40]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #4]
ldr x8, [sp, #8]
ldr w8, [x8, #40]
ldr x9, [sp, #8]
ldr w9, [x9, #44]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3:
ldr x9, [sp, #8]
mov w8, #-1
str w8, [x9, #44]
ldr x9, [sp, #8]
str w8, [x9, #40]
b LBB3_8
LBB3_4:
ldr x8, [sp, #8]
ldr w8, [x8, #40]
subs w8, w8, #9
cset w8, ne
tbnz w8, #0, LBB3_6
b LBB3_5
LBB3_5:
ldr x8, [sp, #8]
str wzr, [x8, #40]
b LBB3_7
LBB3_6:
ldr x9, [sp, #8]
ldr w8, [x9, #40]
add w8, w8, #1
str w8, [x9, #40]
b LBB3_7
LBB3_7:
b LBB3_8
LBB3_8:
b LBB3_9
LBB3_9:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _deleteend ; -- Begin function deleteend
.p2align 2
_deleteend: ; @deleteend
.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 w8, [x8, #40]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB4_9
LBB4_2:
ldr x8, [sp, #8]
ldr w8, [x8, #40]
ldr x9, [sp, #8]
ldr w9, [x9, #44]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB4_4
b LBB4_3
LBB4_3:
ldr x9, [sp, #8]
mov w8, #-1
str w8, [x9, #44]
ldr x9, [sp, #8]
str w8, [x9, #40]
b LBB4_8
LBB4_4:
ldr x8, [sp, #8]
ldr w8, [x8, #44]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB4_6
b LBB4_5
LBB4_5:
ldr x9, [sp, #8]
mov w8, #9
str w8, [x9, #44]
b LBB4_7
LBB4_6:
ldr x9, [sp, #8]
ldr w8, [x9, #44]
subs w8, w8, #1
str w8, [x9, #44]
b LBB4_7
LBB4_7:
b LBB4_8
LBB4_8:
b LBB4_9
LBB4_9:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _display ; -- Begin function display
.p2align 2
_display: ; @display
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr w8, [x8, #40]
stur w8, [x29, #-12]
b LBB5_1
LBB5_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
ldur x9, [x29, #-8]
ldr w9, [x9, #44]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB5_4
b LBB5_2
LBB5_2: ; in Loop: Header=BB5_1 Depth=1
ldur x8, [x29, #-8]
ldursw x9, [x29, #-12]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB5_3
LBB5_3: ; in Loop: Header=BB5_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB5_1
LBB5_4:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
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, #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, #8] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
add x0, sp, #12
str x0, [sp] ; 8-byte Folded Spill
bl _init
ldr x0, [sp] ; 8-byte Folded Reload
mov w1, #10
bl _insertbeg
ldr x0, [sp] ; 8-byte Folded Reload
mov w1, #20
bl _insertbeg
ldr x0, [sp] ; 8-byte Folded Reload
mov w1, #30
bl _insertend
ldr x0, [sp] ; 8-byte Folded Reload
mov w1, #40
bl _insertend
ldr x0, [sp] ; 8-byte Folded Reload
bl _display
ldr x0, [sp] ; 8-byte Folded Reload
bl _deletebeg
ldr x0, [sp] ; 8-byte Folded Reload
bl _deleteend
ldr x0, [sp] ; 8-byte Folded Reload
bl _display
ldr w0, [sp, #8] ; 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 "overflow\n"
l_.str.1: ; @.str.1
.asciz "underflow\n"
l_.str.2: ; @.str.2
.asciz "underflow"
l_.str.3: ; @.str.3
.asciz "%d\t"
l_.str.4: ; @.str.4
.asciz "\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _init ## -- Begin function init
.p2align 4, 0x90
_init: ## @init
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movl $-1, 40(%rax)
movq -8(%rbp), %rax
movl $-1, 44(%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _insertbeg ## -- Begin function insertbeg
.p2align 4, 0x90
_insertbeg: ## @insertbeg
.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
cmpl $-1, 40(%rax)
jne LBB1_2
## %bb.1:
movq -8(%rbp), %rax
movl $0, 44(%rax)
movq -8(%rbp), %rax
movl $0, 40(%rax)
movl -12(%rbp), %ecx
movq -8(%rbp), %rax
movl %ecx, (%rax)
jmp LBB1_6
LBB1_2:
movq -8(%rbp), %rax
cmpl $0, 40(%rax)
jne LBB1_4
## %bb.3:
movq -8(%rbp), %rax
movl $9, 40(%rax)
jmp LBB1_5
LBB1_4:
movq -8(%rbp), %rax
movl 40(%rax), %ecx
addl $-1, %ecx
movl %ecx, 40(%rax)
movl -12(%rbp), %edx
movq -8(%rbp), %rax
movq -8(%rbp), %rcx
movslq 40(%rcx), %rcx
movl %edx, (%rax,%rcx,4)
LBB1_5:
jmp LBB1_6
LBB1_6:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _insertend ## -- Begin function insertend
.p2align 4, 0x90
_insertend: ## @insertend
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq -8(%rbp), %rax
cmpl $9, 44(%rax)
jne LBB2_2
## %bb.1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB2_5
LBB2_2:
movq -8(%rbp), %rax
movl 44(%rax), %ecx
addl $1, %ecx
movl %ecx, 44(%rax)
movl -12(%rbp), %edx
movq -8(%rbp), %rax
movq -8(%rbp), %rcx
movslq 44(%rcx), %rcx
movl %edx, (%rax,%rcx,4)
movq -8(%rbp), %rax
cmpl $-1, 40(%rax)
jne LBB2_4
## %bb.3:
movq -8(%rbp), %rax
movl $0, 40(%rax)
LBB2_4:
jmp LBB2_5
LBB2_5:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _deletebeg ## -- Begin function deletebeg
.p2align 4, 0x90
_deletebeg: ## @deletebeg
.cfi_startproc
## %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
cmpl $-1, 40(%rax)
jne LBB3_2
## %bb.1:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB3_9
LBB3_2:
movq -8(%rbp), %rax
movq -8(%rbp), %rcx
movslq 40(%rcx), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -12(%rbp)
movq -8(%rbp), %rax
movl 40(%rax), %eax
movq -8(%rbp), %rcx
cmpl 44(%rcx), %eax
jne LBB3_4
## %bb.3:
movq -8(%rbp), %rax
movl $-1, 44(%rax)
movq -8(%rbp), %rax
movl $-1, 40(%rax)
jmp LBB3_8
LBB3_4:
movq -8(%rbp), %rax
cmpl $9, 40(%rax)
jne LBB3_6
## %bb.5:
movq -8(%rbp), %rax
movl $0, 40(%rax)
jmp LBB3_7
LBB3_6:
movq -8(%rbp), %rax
movl 40(%rax), %ecx
addl $1, %ecx
movl %ecx, 40(%rax)
LBB3_7:
jmp LBB3_8
LBB3_8:
jmp LBB3_9
LBB3_9:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _deleteend ## -- Begin function deleteend
.p2align 4, 0x90
_deleteend: ## @deleteend
.cfi_startproc
## %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
cmpl $-1, 40(%rax)
jne LBB4_2
## %bb.1:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB4_9
LBB4_2:
movq -8(%rbp), %rax
movl 40(%rax), %eax
movq -8(%rbp), %rcx
cmpl 44(%rcx), %eax
jne LBB4_4
## %bb.3:
movq -8(%rbp), %rax
movl $-1, 44(%rax)
movq -8(%rbp), %rax
movl $-1, 40(%rax)
jmp LBB4_8
LBB4_4:
movq -8(%rbp), %rax
cmpl $0, 44(%rax)
jne LBB4_6
## %bb.5:
movq -8(%rbp), %rax
movl $9, 44(%rax)
jmp LBB4_7
LBB4_6:
movq -8(%rbp), %rax
movl 44(%rax), %ecx
addl $-1, %ecx
movl %ecx, 44(%rax)
LBB4_7:
jmp LBB4_8
LBB4_8:
jmp LBB4_9
LBB4_9:
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 %rdi, -8(%rbp)
movq -8(%rbp), %rax
movl 40(%rax), %eax
movl %eax, -12(%rbp)
LBB5_1: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
movq -8(%rbp), %rcx
cmpl 44(%rcx), %eax
jg LBB5_4
## %bb.2: ## in Loop: Header=BB5_1 Depth=1
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB5_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB5_1
LBB5_4:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl $0, -4(%rbp)
leaq -56(%rbp), %rdi
callq _init
leaq -56(%rbp), %rdi
movl $10, %esi
callq _insertbeg
leaq -56(%rbp), %rdi
movl $20, %esi
callq _insertbeg
leaq -56(%rbp), %rdi
movl $30, %esi
callq _insertend
leaq -56(%rbp), %rdi
movl $40, %esi
callq _insertend
leaq -56(%rbp), %rdi
callq _display
leaq -56(%rbp), %rdi
callq _deletebeg
leaq -56(%rbp), %rdi
callq _deleteend
leaq -56(%rbp), %rdi
callq _display
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "overflow\n"
L_.str.1: ## @.str.1
.asciz "underflow\n"
L_.str.2: ## @.str.2
.asciz "underflow"
L_.str.3: ## @.str.3
.asciz "%d\t"
L_.str.4: ## @.str.4
.asciz "\n"
.subsections_via_symbols
| the_stack_data/28425.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]
adrp x8, _a@PAGE
ldr d0, [x8, _a@PAGEOFF]
adrp x8, _b@PAGE
ldr d1, [x8, _b@PAGEOFF]
fadd d0, d0, d1
adrp x8, _c@GOTPAGE
ldr x8, [x8, _c@GOTPAGEOFF]
str d0, [x8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.section __DATA,__data
.globl _a ; @a
.p2align 3
_a:
.quad 0x7ff0000000000000 ; double +Inf
.globl _b ; @b
.p2align 3
_b:
.quad 0x7ff8000000000000 ; double NaN
.comm _c,8,3 ; @c
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $0, -4(%rbp)
movsd _a(%rip), %xmm0 ## xmm0 = mem[0],zero
addsd _b(%rip), %xmm0
movq _c@GOTPCREL(%rip), %rax
movsd %xmm0, (%rax)
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.globl _a ## @a
.p2align 3
_a:
.quad 0x7ff0000000000000 ## double +Inf
.globl _b ## @b
.p2align 3
_b:
.quad 0x7ff8000000000000 ## double NaN
.comm _c,8,3 ## @c
.subsections_via_symbols
| the_stack_data/878054.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
stur w8, [x29, #-12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov w8, #100
stur w8, [x29, #-8]
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldur 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 "10\354\247\204\354\210\230\353\241\234 \354\266\234\353\240\245 : %d\n"
l_.str.1: ; @.str.1
.asciz "8\354\247\204\354\210\230\353\241\234 \354\266\234\353\240\245 : %o\n"
l_.str.2: ; @.str.2
.asciz "16\354\247\204\354\210\230\353\241\234 \354\266\234\353\240\245 : %x\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 $100, -8(%rbp)
movl -8(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %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 "10\354\247\204\354\210\230\353\241\234 \354\266\234\353\240\245 : %d\n"
L_.str.1: ## @.str.1
.asciz "8\354\247\204\354\210\230\353\241\234 \354\266\234\353\240\245 : %o\n"
L_.str.2: ## @.str.2
.asciz "16\354\247\204\354\210\230\353\241\234 \354\266\234\353\240\245 : %x\n"
.subsections_via_symbols
| the_stack_data/381508.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _createnode ; -- Begin function createnode
.p2align 2
_createnode: ; @createnode
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, #2056
bl _malloc
str x0, [sp, #8]
str wzr, [sp, #4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
subs w8, w8, #256
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #8]
ldrsw x10, [sp, #4]
mov x8, #0
str x8, [x9, x10, lsl #3]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_1
LBB0_4:
ldr x8, [sp, #8]
strb wzr, [x8, #2048]
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _trieinsert ; -- Begin function trieinsert
.p2align 2
_trieinsert: ; @trieinsert
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
str x1, [sp, #24]
ldur x8, [x29, #-16]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
bl _createnode
ldur x8, [x29, #-16]
str x0, [x8]
b LBB1_2
LBB1_2:
ldr x8, [sp, #24]
str x8, [sp, #16]
ldur x8, [x29, #-16]
ldr x8, [x8]
str x8, [sp, #8]
ldr x0, [sp, #24]
bl _strlen
mov x8, x0
str w8, [sp, #4]
str wzr, [sp]
b LBB1_3
LBB1_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp]
ldr w9, [sp, #4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_8
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=1
ldr x8, [sp, #8]
ldr x9, [sp, #16]
ldrsw x10, [sp]
ldrb w9, [x9, x10]
; kill: def $x9 killed $w9
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=1
bl _createnode
ldr x8, [sp, #8]
ldr x9, [sp, #16]
ldrsw x10, [sp]
ldrb w9, [x9, x10]
; kill: def $x9 killed $w9
str x0, [x8, x9, lsl #3]
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_3 Depth=1
ldr x8, [sp, #8]
ldr x9, [sp, #16]
ldrsw x10, [sp]
ldrb w9, [x9, x10]
; kill: def $x9 killed $w9
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #8]
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_3 Depth=1
ldr w8, [sp]
add w8, w8, #1
str w8, [sp]
b LBB1_3
LBB1_8:
ldr x8, [sp, #8]
ldrb w8, [x8, #2048]
tbz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB1_11
LBB1_10:
ldr x9, [sp, #8]
mov w8, #1
strb w8, [x9, #2048]
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB1_11
LBB1_11:
ldurb w8, [x29, #-1]
and w0, w8, #0x1
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _printtrie_rec ; -- Begin function printtrie_rec
.p2align 2
_printtrie_rec: ; @printtrie_rec
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub sp, sp, #80
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur w2, [x29, #-28]
ldur w8, [x29, #-28]
add w8, w8, #2
; kill: def $x8 killed $w8
mov x9, sp
stur x9, [x29, #-40]
lsr x9, x8, #0
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-72] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-72] ; 8-byte Folded Reload
mov x9, sp
subs x0, x9, x10
mov sp, x0
stur x0, [x29, #-64] ; 8-byte Folded Spill
stur x8, [x29, #-48]
ldur x1, [x29, #-24]
ldursw x2, [x29, #-28]
mov x3, #-1
bl ___memcpy_chk
ldur x8, [x29, #-64] ; 8-byte Folded Reload
ldur w9, [x29, #-28]
add w9, w9, #1
add x8, x8, w9, sxtw
strb wzr, [x8]
ldur x8, [x29, #-16]
ldrb w8, [x8, #2048]
tbz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldur x8, [x29, #-24]
sub sp, sp, #16
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
add sp, sp, #16
b LBB2_2
LBB2_2:
stur wzr, [x29, #-52]
b LBB2_3
LBB2_3: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-52]
subs w8, w8, #256
cset w8, ge
tbnz w8, #0, LBB2_8
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_3 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-52]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_6
b LBB2_5
LBB2_5: ; in Loop: Header=BB2_3 Depth=1
ldur x1, [x29, #-64] ; 8-byte Folded Reload
ldur w8, [x29, #-52]
ldursw x9, [x29, #-28]
strb w8, [x1, x9]
ldur x8, [x29, #-16]
ldursw x9, [x29, #-52]
ldr x0, [x8, x9, lsl #3]
ldur w8, [x29, #-28]
add w2, w8, #1
bl _printtrie_rec
b LBB2_6
LBB2_6: ; in Loop: Header=BB2_3 Depth=1
b LBB2_7
LBB2_7: ; in Loop: Header=BB2_3 Depth=1
ldur w8, [x29, #-52]
add w8, w8, #1
stur w8, [x29, #-52]
b LBB2_3
LBB2_8:
ldur x8, [x29, #-40]
stur x8, [x29, #-80] ; 8-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB2_10
b LBB2_9
LBB2_9:
bl ___stack_chk_fail
LBB2_10:
ldur x8, [x29, #-80] ; 8-byte Folded Reload
mov sp, x8
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _printtrie ; -- Begin function printtrie
.p2align 2
_printtrie: ; @printtrie
.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, LBB3_2
b LBB3_1
LBB3_1:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB3_3
LBB3_2:
ldr x0, [sp, #8]
mov x1, #0
mov w2, #0
bl _printtrie_rec
b LBB3_3
LBB3_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
add x0, sp, #16
str x0, [sp] ; 8-byte Folded Spill
; kill: def $x8 killed $xzr
str xzr, [sp, #16]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _trieinsert
ldr x0, [sp] ; 8-byte Folded Reload
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _trieinsert
ldr x0, [sp] ; 8-byte Folded Reload
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _trieinsert
ldr x0, [sp] ; 8-byte Folded Reload
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _trieinsert
ldr x0, [sp] ; 8-byte Folded Reload
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _trieinsert
ldr x0, [sp, #16]
bl _printtrie
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 "Word: %s\n"
l_.str.1: ; @.str.1
.asciz "Trie is empty!\n"
l_.str.2: ; @.str.2
.asciz "KIT"
l_.str.3: ; @.str.3
.asciz "CATTLE"
l_.str.4: ; @.str.4
.asciz "KIN"
l_.str.5: ; @.str.5
.asciz "CAT"
l_.str.6: ; @.str.6
.asciz "HAPPY"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _createnode ## -- Begin function createnode
.p2align 4, 0x90
_createnode: ## @createnode
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $2056, %edi ## imm = 0x808
callq _malloc
movq %rax, -8(%rbp)
movl $0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $256, -12(%rbp) ## imm = 0x100
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movq $0, (%rax,%rcx,8)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_1
LBB0_4:
movq -8(%rbp), %rax
movb $0, 2048(%rax)
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _trieinsert ## -- Begin function trieinsert
.p2align 4, 0x90
_trieinsert: ## @trieinsert
.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), %rax
cmpq $0, (%rax)
jne LBB1_2
## %bb.1:
callq _createnode
movq %rax, %rcx
movq -16(%rbp), %rax
movq %rcx, (%rax)
LBB1_2:
movq -24(%rbp), %rax
movq %rax, -32(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -40(%rbp)
movq -24(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -44(%rbp)
movl $0, -48(%rbp)
LBB1_3: ## =>This Inner Loop Header: Depth=1
movl -48(%rbp), %eax
cmpl -44(%rbp), %eax
jge LBB1_8
## %bb.4: ## in Loop: Header=BB1_3 Depth=1
movq -40(%rbp), %rax
movq -32(%rbp), %rcx
movslq -48(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
## kill: def $rcx killed $ecx
cmpq $0, (%rax,%rcx,8)
jne LBB1_6
## %bb.5: ## in Loop: Header=BB1_3 Depth=1
callq _createnode
movq %rax, %rdx
movq -40(%rbp), %rax
movq -32(%rbp), %rcx
movslq -48(%rbp), %rsi
movzbl (%rcx,%rsi), %ecx
## kill: def $rcx killed $ecx
movq %rdx, (%rax,%rcx,8)
LBB1_6: ## in Loop: Header=BB1_3 Depth=1
movq -40(%rbp), %rax
movq -32(%rbp), %rcx
movslq -48(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
## kill: def $rcx killed $ecx
movq (%rax,%rcx,8), %rax
movq %rax, -40(%rbp)
## %bb.7: ## in Loop: Header=BB1_3 Depth=1
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
jmp LBB1_3
LBB1_8:
movq -40(%rbp), %rax
testb $1, 2048(%rax)
je LBB1_10
## %bb.9:
movb $0, -1(%rbp)
jmp LBB1_11
LBB1_10:
movq -40(%rbp), %rax
movb $1, 2048(%rax)
movb $1, -1(%rbp)
LBB1_11:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _printtrie_rec ## -- Begin function printtrie_rec
.p2align 4, 0x90
_printtrie_rec: ## @printtrie_rec
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movl %edx, -28(%rbp)
movl -28(%rbp), %eax
addl $2, %eax
## kill: def $rax killed $eax
movq %rax, -72(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -40(%rbp)
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -72(%rbp), %rax ## 8-byte Reload
movq %rsp, %rdi
movq %rdi, -64(%rbp) ## 8-byte Spill
movq %rax, -48(%rbp)
movq -24(%rbp), %rsi
movslq -28(%rbp), %rdx
movq $-1, %rcx
callq ___memcpy_chk
## kill: def $rcx killed $rax
movq -64(%rbp), %rax ## 8-byte Reload
movl -28(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movb $0, (%rax,%rcx)
movq -16(%rbp), %rax
testb $1, 2048(%rax)
je LBB2_2
## %bb.1:
movq -24(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
LBB2_2:
movl $0, -52(%rbp)
LBB2_3: ## =>This Inner Loop Header: Depth=1
cmpl $256, -52(%rbp) ## imm = 0x100
jge LBB2_8
## %bb.4: ## in Loop: Header=BB2_3 Depth=1
movq -16(%rbp), %rax
movslq -52(%rbp), %rcx
cmpq $0, (%rax,%rcx,8)
je LBB2_6
## %bb.5: ## in Loop: Header=BB2_3 Depth=1
movq -64(%rbp), %rsi ## 8-byte Reload
movl -52(%rbp), %eax
movb %al, %cl
movslq -28(%rbp), %rax
movb %cl, (%rsi,%rax)
movq -16(%rbp), %rax
movslq -52(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movl -28(%rbp), %edx
addl $1, %edx
callq _printtrie_rec
LBB2_6: ## in Loop: Header=BB2_3 Depth=1
jmp LBB2_7
LBB2_7: ## in Loop: Header=BB2_3 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB2_3
LBB2_8:
movq -40(%rbp), %rax
movq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB2_10
## %bb.9:
movq %rbp, %rsp
popq %rbp
retq
LBB2_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _printtrie ## -- Begin function printtrie
.p2align 4, 0x90
_printtrie: ## @printtrie
.cfi_startproc
## %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 LBB3_2
## %bb.1:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB3_3
LBB3_2:
movq -8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq _printtrie_rec
LBB3_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movq $0, -16(%rbp)
leaq -16(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _trieinsert
leaq -16(%rbp), %rdi
leaq L_.str.3(%rip), %rsi
callq _trieinsert
leaq -16(%rbp), %rdi
leaq L_.str.4(%rip), %rsi
callq _trieinsert
leaq -16(%rbp), %rdi
leaq L_.str.5(%rip), %rsi
callq _trieinsert
leaq -16(%rbp), %rdi
leaq L_.str.6(%rip), %rsi
callq _trieinsert
movq -16(%rbp), %rdi
callq _printtrie
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Word: %s\n"
L_.str.1: ## @.str.1
.asciz "Trie is empty!\n"
L_.str.2: ## @.str.2
.asciz "KIT"
L_.str.3: ## @.str.3
.asciz "CATTLE"
L_.str.4: ## @.str.4
.asciz "KIN"
L_.str.5: ## @.str.5
.asciz "CAT"
L_.str.6: ## @.str.6
.asciz "HAPPY"
.subsections_via_symbols
| the_stack_data/134427.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _climbStairs ; -- Begin function climbStairs
.p2align 2
_climbStairs: ; @climbStairs
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str w0, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #2
cset w8, gt
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w8, [sp, #8]
stur w8, [x29, #-4]
b LBB0_3
LBB0_2:
ldr w8, [sp, #8]
subs w0, w8, #1
bl _climbStairs
str w0, [sp, #4] ; 4-byte Folded Spill
ldr w8, [sp, #8]
subs w0, w8, #2
bl _climbStairs
mov x8, x0
ldr w0, [sp, #4] ; 4-byte Folded Reload
add w8, w0, w8
stur w8, [x29, #-4]
b LBB0_3
LBB0_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _climbStairs ## -- Begin function climbStairs
.p2align 4, 0x90
_climbStairs: ## @climbStairs
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -8(%rbp)
cmpl $2, -8(%rbp)
jg LBB0_2
## %bb.1:
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_3
LBB0_2:
movl -8(%rbp), %edi
subl $1, %edi
callq _climbStairs
movl %eax, -12(%rbp) ## 4-byte Spill
movl -8(%rbp), %edi
subl $2, %edi
callq _climbStairs
movl %eax, %ecx
movl -12(%rbp), %eax ## 4-byte Reload
addl %ecx, %eax
movl %eax, -4(%rbp)
LBB0_3:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/48508.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _abs ; -- Begin function abs
.p2align 2
_abs: ; @abs
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w9, [sp, #8]
mov w8, #0
subs w8, w8, w9
str w8, [sp, #12]
b LBB0_3
LBB0_2:
ldr w8, [sp, #8]
str w8, [sp, #12]
b LBB0_3
LBB0_3:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _abs ## -- Begin function abs
.p2align 4, 0x90
_abs: ## @abs
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -8(%rbp)
cmpl $0, -8(%rbp)
jge LBB0_2
## %bb.1:
xorl %eax, %eax
subl -8(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_3
LBB0_2:
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_3:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/48574952.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:
ret
.cfi_endproc
; -- End function
.globl _bar ; -- Begin function bar
.p2align 2
_bar: ; @bar
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _foo
bl _foo
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _foo ## -- Begin function foo
.p2align 4, 0x90
_foo: ## @foo
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _bar ## -- Begin function bar
.p2align 4, 0x90
_bar: ## @bar
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _foo
callq _foo
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/145693.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _handler ; -- Begin function handler
.p2align 2
_handler: ; @handler
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
ldur w9, [x29, #-4]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-20]
str w0, [sp, #24]
str x1, [sp, #16]
mov w0, #13
adrp x1, _handler@PAGE
add x1, x1, _handler@PAGEOFF
bl _signal
sub x0, x29, #16
bl _pipe
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB1_3
b LBB1_1
LBB1_1:
b LBB1_2
LBB1_2:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB1_3:
bl _fork
str w0, [sp, #12]
ldr w8, [sp, #12]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB1_6
b LBB1_4
LBB1_4:
b LBB1_5
LBB1_5:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _perror
mov w0, #1
bl _exit
LBB1_6:
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_8
b LBB1_7
LBB1_7:
ldur w0, [x29, #-16]
bl _close
mov w0, #0
bl _exit
LBB1_8:
ldur w0, [x29, #-16]
bl _close
mov w0, #1
bl _sleep
ldur w0, [x29, #-12]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
mov x2, #5
bl _write
mov x8, x0
str w8, [sp, #8]
ldr w8, [sp, #8]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB1_10
b LBB1_9
LBB1_9:
bl ___error
ldr w0, [x0]
bl _strerror
mov x8, sp
str x0, [x8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB1_10
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, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "recv sig=%d\n"
l_.str.1: ; @.str.1
.asciz "pipe error"
l_.str.2: ; @.str.2
.asciz "fork error"
l_.str.3: ; @.str.3
.asciz "hello"
l_.str.4: ; @.str.4
.asciz "err=%s\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _handler ## -- Begin function handler
.p2align 4, 0x90
_handler: ## @handler
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movl -4(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -20(%rbp)
movl %edi, -24(%rbp)
movq %rsi, -32(%rbp)
movl $13, %edi
leaq _handler(%rip), %rsi
callq _signal
leaq -16(%rbp), %rdi
callq _pipe
cmpl $-1, %eax
jne LBB1_3
## %bb.1:
jmp LBB1_2
LBB1_2:
leaq L_.str.1(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB1_3:
callq _fork
movl %eax, -36(%rbp)
cmpl $-1, -36(%rbp)
jne LBB1_6
## %bb.4:
jmp LBB1_5
LBB1_5:
leaq L_.str.2(%rip), %rdi
callq _perror
movl $1, %edi
callq _exit
LBB1_6:
cmpl $0, -36(%rbp)
jne LBB1_8
## %bb.7:
movl -16(%rbp), %edi
callq _close
xorl %edi, %edi
callq _exit
LBB1_8:
movl -16(%rbp), %edi
callq _close
movl $1, %edi
callq _sleep
movl -12(%rbp), %edi
leaq L_.str.3(%rip), %rsi
movl $5, %edx
callq _write
## kill: def $eax killed $eax killed $rax
movl %eax, -40(%rbp)
cmpl $-1, -40(%rbp)
jne LBB1_10
## %bb.9:
callq ___error
movl (%rax), %edi
callq _strerror
movq %rax, %rsi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
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 $48, %rsp
popq %rbp
retq
LBB1_12:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "recv sig=%d\n"
L_.str.1: ## @.str.1
.asciz "pipe error"
L_.str.2: ## @.str.2
.asciz "fork error"
L_.str.3: ## @.str.3
.asciz "hello"
L_.str.4: ## @.str.4
.asciz "err=%s\n"
.subsections_via_symbols
| the_stack_data/35971.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _f ; -- Begin function f
.p2align 2
_f: ; @f
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
b LBB0_11
LBB0_2:
; kill: def $x8 killed $xzr
str xzr, [sp, #16]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldr d0, [x8]
fcmp d0, #0.0
cset w8, pl
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-8]
str x8, [sp, #16]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
stur x8, [x29, #-8]
b LBB0_3
LBB0_9:
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldr x8, [sp, #16]
ldr x8, [x8, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
ldr x8, [sp, #16]
ldr x0, [x8, #8]
bl _free
ldr x8, [sp, #8]
ldr x9, [sp, #16]
str x8, [x9, #8]
b LBB0_11
LBB0_11:
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, #288
.cfi_def_cfa_offset 288
stp x28, x27, [sp, #256] ; 16-byte Folded Spill
stp x29, x30, [sp, #272] ; 16-byte Folded Spill
add x29, sp, #272
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub x8, x29, #128
adrp x9, ___stack_chk_guard@GOTPAGE
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
ldr x9, [x9]
stur x9, [x29, #-24]
stur wzr, [x29, #-132]
adrp x9, l___const.main.a1@PAGE
add x9, x9, l___const.main.a1@PAGEOFF
ldr q0, [x9]
add x9, sp, #112
str q0, [sp, #112]
add x10, sp, #96
fmov d0, #1.00000000
str d0, [sp, #96]
str x9, [sp, #104]
add x9, sp, #80
fmov d1, #-1.00000000
str d1, [sp, #80]
str x10, [sp, #88]
add x10, sp, #64
str d1, [sp, #64]
str x9, [sp, #72]
add x9, sp, #48
str d0, [sp, #48]
str x10, [sp, #56]
add x10, sp, #32
str x10, [sp, #16] ; 8-byte Folded Spill
str d0, [sp, #32]
str x9, [sp, #40]
ldr q0, [sp, #112]
sub x0, x29, #128
stur q0, [x29, #-128]
ldr q0, [sp, #96]
str q0, [x8, #16]
ldr q0, [sp, #80]
str q0, [x8, #32]
ldr q0, [sp, #64]
str q0, [x8, #48]
ldr q0, [sp, #48]
str q0, [x8, #64]
ldr q0, [sp, #32]
str q0, [x8, #80]
bl _f
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x8, [sp, #24]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #24]
ldr d0, [x8]
mov x8, sp
str d0, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr x8, [sp, #24]
ldr x8, [x8, #8]
str x8, [sp, #24]
b LBB1_1
LBB1_3:
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4:
bl ___stack_chk_fail
LBB1_5:
mov w0, #0
ldp x29, x30, [sp, #272] ; 16-byte Folded Reload
ldp x28, x27, [sp, #256] ; 16-byte Folded Reload
add sp, sp, #288
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal16,16byte_literals
.p2align 3 ; @__const.main.a1
l___const.main.a1:
.quad 0x3ff0000000000000 ; double 1
.quad 0
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%f\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _f ## -- Begin function f
.p2align 4, 0x90
_f: ## @f
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
cmpq $0, -8(%rbp)
jne LBB0_2
## %bb.1:
jmp LBB0_11
LBB0_2:
movq $0, -16(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
cmpq $0, -8(%rbp)
je LBB0_9
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -8(%rbp), %rax
cmpq $0, 8(%rax)
je LBB0_8
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movq -8(%rbp), %rax
movq 8(%rax), %rax
xorps %xmm0, %xmm0
ucomisd (%rax), %xmm0
jbe LBB0_7
## %bb.6: ## in Loop: Header=BB0_3 Depth=1
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
LBB0_7: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_8
LBB0_8: ## in Loop: Header=BB0_3 Depth=1
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -8(%rbp)
jmp LBB0_3
LBB0_9:
cmpq $0, -16(%rbp)
je LBB0_11
## %bb.10:
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _free
movq -24(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
LBB0_11:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI1_0:
.quad 0x3ff0000000000000 ## double 1
LCPI1_1:
.quad 0xbff0000000000000 ## 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 $224, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -116(%rbp)
movq L___const.main.a1(%rip), %rax
movq %rax, -136(%rbp)
movq L___const.main.a1+8(%rip), %rax
movq %rax, -128(%rbp)
movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -152(%rbp)
leaq -136(%rbp), %rax
movq %rax, -144(%rbp)
movsd LCPI1_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -168(%rbp)
leaq -152(%rbp), %rax
movq %rax, -160(%rbp)
movsd LCPI1_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -184(%rbp)
leaq -168(%rbp), %rax
movq %rax, -176(%rbp)
movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -200(%rbp)
leaq -184(%rbp), %rax
movq %rax, -192(%rbp)
movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -216(%rbp)
leaq -200(%rbp), %rax
movq %rax, -208(%rbp)
movq -136(%rbp), %rax
movq %rax, -112(%rbp)
movq -128(%rbp), %rax
movq %rax, -104(%rbp)
movq -152(%rbp), %rax
movq %rax, -96(%rbp)
movq -144(%rbp), %rax
movq %rax, -88(%rbp)
movq -168(%rbp), %rax
movq %rax, -80(%rbp)
movq -160(%rbp), %rax
movq %rax, -72(%rbp)
movq -184(%rbp), %rax
movq %rax, -64(%rbp)
movq -176(%rbp), %rax
movq %rax, -56(%rbp)
movq -200(%rbp), %rax
movq %rax, -48(%rbp)
movq -192(%rbp), %rax
movq %rax, -40(%rbp)
movq -216(%rbp), %rax
movq %rax, -32(%rbp)
movq -208(%rbp), %rax
movq %rax, -24(%rbp)
leaq -112(%rbp), %rdi
callq _f
leaq -216(%rbp), %rax
movq %rax, -224(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -224(%rbp)
je LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -224(%rbp), %rax
movsd (%rax), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str(%rip), %rdi
movb $1, %al
callq _printf
movq -224(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -224(%rbp)
jmp LBB1_1
LBB1_3:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_5
## %bb.4:
xorl %eax, %eax
addq $224, %rsp
popq %rbp
retq
LBB1_5:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__literal16,16byte_literals
.p2align 3 ## @__const.main.a1
L___const.main.a1:
.quad 0x3ff0000000000000 ## double 1
.quad 0
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%f\n"
.subsections_via_symbols
| the_stack_data/587276.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _exists ; -- Begin function exists
.p2align 2
_exists: ; @exists
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
ldr x0, [sp, #16]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fopen
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 x0, [sp, #8]
bl _fclose
mov w8, #1
stur w8, [x29, #-4]
b LBB0_3
LBB0_2:
stur wzr, [x29, #-4]
b LBB0_3
LBB0_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _bytecount ; -- Begin function bytecount
.p2align 2
_bytecount: ; @bytecount
.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 _ftell
mov x8, x0
str w8, [sp, #4]
ldr x0, [sp, #8]
mov x1, #0
mov w2, #2
bl _fseek
ldr x0, [sp, #8]
bl _ftell
mov x8, x0
str w8, [sp]
ldr x0, [sp, #8]
ldrsw x1, [sp, #4]
mov w2, #0
bl _fseek
ldr w0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #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]
; kill: def $x8 killed $xzr
stur xzr, [x29, #-24]
stur xzr, [x29, #-32]
mov x8, #10485760
stur x8, [x29, #-40]
ldur w8, [x29, #-8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldur x8, [x29, #-16]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-4]
b LBB2_70
LBB2_2:
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, lt
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3:
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
stur x8, [x29, #-24]
b LBB2_4
LBB2_4:
ldur w8, [x29, #-8]
subs w8, w8, #3
cset w8, lt
tbnz w8, #0, LBB2_6
b LBB2_5
LBB2_5:
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
stur x8, [x29, #-32]
b LBB2_6
LBB2_6:
ldur w8, [x29, #-8]
subs w8, w8, #4
cset w8, lt
tbnz w8, #0, LBB2_10
b LBB2_7
LBB2_7:
ldur x8, [x29, #-16]
ldr x0, [x8, #24]
bl _atol
bl _labs
stur x0, [x29, #-40]
ldur x8, [x29, #-40]
subs x8, x8, #3
cset w8, ge
tbnz w8, #0, LBB2_9
b LBB2_8
LBB2_8:
stur xzr, [x29, #-40]
b LBB2_9
LBB2_9:
b LBB2_10
LBB2_10:
ldur x0, [x29, #-24]
bl _exists
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB2_12
b LBB2_11
LBB2_11:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _perror
mov w8, #1
stur w8, [x29, #-4]
b LBB2_70
LBB2_12:
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_15
b LBB2_13
LBB2_13:
ldur x0, [x29, #-32]
bl _exists
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB2_15
b LBB2_14
LBB2_14:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldur x8, [x29, #-32]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-4]
b LBB2_70
LBB2_15:
ldur x0, [x29, #-24]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fopen
stur x0, [x29, #-48]
ldur x8, [x29, #-48]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_17
b LBB2_16
LBB2_16:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _perror
mov w8, #1
stur w8, [x29, #-4]
b LBB2_70
LBB2_17:
ldur x0, [x29, #-48]
bl _bytecount
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB2_19
b LBB2_18
LBB2_18:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _fprintf
ldur x0, [x29, #-48]
bl _fclose
mov w8, #1
stur w8, [x29, #-4]
b LBB2_70
LBB2_19:
; kill: def $x8 killed $xzr
str xzr, [sp, #56]
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_23
b LBB2_20
LBB2_20:
ldur x0, [x29, #-32]
adrp x1, l_.str.7@PAGE
add x1, x1, l_.str.7@PAGEOFF
bl _fopen
str x0, [sp, #56]
ldr x8, [sp, #56]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_22
b LBB2_21
LBB2_21:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _perror
ldur x0, [x29, #-48]
bl _fclose
mov w8, #1
stur w8, [x29, #-4]
b LBB2_70
LBB2_22:
b LBB2_24
LBB2_23:
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x8, [x8]
str x8, [sp, #56]
b LBB2_24
LBB2_24:
; kill: def $x8 killed $xzr
str xzr, [sp, #48]
str xzr, [sp, #40]
ldur x8, [x29, #-40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_32
b LBB2_25
LBB2_25:
ldur x8, [x29, #-40]
str x8, [sp, #32]
b LBB2_26
LBB2_26: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, le
tbnz w8, #0, LBB2_31
b LBB2_27
LBB2_27: ; in Loop: Header=BB2_26 Depth=1
ldr x8, [sp, #32]
mov x10, #3
sdiv x9, x8, x10
mul x9, x9, x10
subs x8, x8, x9
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_29
b LBB2_28
LBB2_28:
ldr x8, [sp, #32]
str x8, [sp, #40]
b LBB2_31
LBB2_29: ; in Loop: Header=BB2_26 Depth=1
b LBB2_30
LBB2_30: ; in Loop: Header=BB2_26 Depth=1
ldr x8, [sp, #32]
subs x8, x8, #1
str x8, [sp, #32]
b LBB2_26
LBB2_31:
ldr x0, [sp, #40]
mov x1, #1
bl _calloc
str x0, [sp, #48]
b LBB2_32
LBB2_32:
str xzr, [sp, #24]
ldur x0, [x29, #-48]
bl _fgetc
strb w0, [sp, #23]
b LBB2_33
LBB2_33: ; =>This Loop Header: Depth=1
; Child Loop BB2_40 Depth 2
ldrsb w8, [sp, #23]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB2_49
b LBB2_34
LBB2_34: ; in Loop: Header=BB2_33 Depth=1
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_36
b LBB2_35
LBB2_35: ; in Loop: Header=BB2_33 Depth=1
ldr x8, [sp, #48]
ldr x9, [sp, #24]
mov x10, #3
mul x9, x9, x10
add x0, x8, x9
ldrsb w10, [sp, #23]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
mov w1, #0
mov x2, #-1
adrp x3, l_.str.8@PAGE
add x3, x3, l_.str.8@PAGEOFF
bl ___sprintf_chk
b LBB2_37
LBB2_36: ; in Loop: Header=BB2_33 Depth=1
ldr x0, [sp, #56]
ldrsb w10, [sp, #23]
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x1, l_.str.9@PAGE
add x1, x1, l_.str.9@PAGEOFF
bl _fprintf
b LBB2_37
LBB2_37: ; in Loop: Header=BB2_33 Depth=1
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_48
b LBB2_38
LBB2_38: ; in Loop: Header=BB2_33 Depth=1
ldr x8, [sp, #24]
ldr x9, [sp, #40]
subs x9, x9, #1
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB2_46
b LBB2_39
LBB2_39: ; in Loop: Header=BB2_33 Depth=1
str xzr, [sp, #24]
mov w8, #2
str w8, [sp, #16]
b LBB2_40
LBB2_40: ; Parent Loop BB2_33 Depth=1
; => This Inner Loop Header: Depth=2
ldrsw x8, [sp, #16]
ldr x9, [sp, #40]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB2_45
b LBB2_41
LBB2_41: ; in Loop: Header=BB2_40 Depth=2
ldr x8, [sp, #48]
ldrsw x9, [sp, #16]
ldrsb w8, [x8, x9]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB2_43
b LBB2_42
LBB2_42: ; in Loop: Header=BB2_40 Depth=2
ldr x8, [sp, #48]
ldrsw x9, [sp, #16]
add x9, x8, x9
mov w8, #32
strb w8, [x9]
b LBB2_43
LBB2_43: ; in Loop: Header=BB2_40 Depth=2
b LBB2_44
LBB2_44: ; in Loop: Header=BB2_40 Depth=2
ldr w8, [sp, #16]
add w8, w8, #3
str w8, [sp, #16]
b LBB2_40
LBB2_45: ; in Loop: Header=BB2_33 Depth=1
ldr x0, [sp, #48]
ldr x2, [sp, #40]
ldr x3, [sp, #56]
mov x1, #1
bl _fwrite
b LBB2_47
LBB2_46: ; in Loop: Header=BB2_33 Depth=1
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
b LBB2_47
LBB2_47: ; in Loop: Header=BB2_33 Depth=1
b LBB2_48
LBB2_48: ; in Loop: Header=BB2_33 Depth=1
ldur x0, [x29, #-48]
bl _fgetc
strb w0, [sp, #23]
b LBB2_33
LBB2_49:
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_58
b LBB2_50
LBB2_50:
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_58
b LBB2_51
LBB2_51:
mov w8, #2
str w8, [sp, #12]
b LBB2_52
LBB2_52: ; =>This Inner Loop Header: Depth=1
ldrsw x8, [sp, #12]
ldr x9, [sp, #40]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB2_57
b LBB2_53
LBB2_53: ; in Loop: Header=BB2_52 Depth=1
ldr x8, [sp, #48]
ldrsw x9, [sp, #12]
ldrsb w8, [x8, x9]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB2_55
b LBB2_54
LBB2_54: ; in Loop: Header=BB2_52 Depth=1
ldr x8, [sp, #48]
ldrsw x9, [sp, #12]
add x9, x8, x9
mov w8, #32
strb w8, [x9]
b LBB2_55
LBB2_55: ; in Loop: Header=BB2_52 Depth=1
b LBB2_56
LBB2_56: ; in Loop: Header=BB2_52 Depth=1
ldr w8, [sp, #12]
add w8, w8, #3
str w8, [sp, #12]
b LBB2_52
LBB2_57:
ldr x0, [sp, #48]
ldr x8, [sp, #24]
mov x9, #3
mul x2, x8, x9
ldr x3, [sp, #56]
mov x1, #1
bl _fwrite
b LBB2_58
LBB2_58:
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_60
b LBB2_59
LBB2_59:
ldr x0, [sp, #48]
bl _free
b LBB2_60
LBB2_60:
ldur x0, [x29, #-48]
bl _ferror
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB2_64
b LBB2_61
LBB2_61:
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _perror
ldur x0, [x29, #-48]
bl _fclose
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_63
b LBB2_62
LBB2_62:
ldr x0, [sp, #56]
bl _fclose
b LBB2_63
LBB2_63:
mov w8, #1
stur w8, [x29, #-4]
b LBB2_70
LBB2_64:
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_67
b LBB2_65
LBB2_65:
ldr x0, [sp, #56]
bl _ferror
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB2_67
b LBB2_66
LBB2_66:
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _perror
ldur x0, [x29, #-48]
bl _fclose
ldr x0, [sp, #56]
bl _fclose
mov w8, #1
stur w8, [x29, #-4]
b LBB2_70
LBB2_67:
ldur x0, [x29, #-48]
bl _fclose
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_69
b LBB2_68
LBB2_68:
ldr x0, [sp, #56]
bl _fclose
b LBB2_69
LBB2_69:
stur wzr, [x29, #-4]
b LBB2_70
LBB2_70:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "r"
l_.str.1: ; @.str.1
.asciz "Usage: %s <source> [dest] [max buffer]\n"
l_.str.2: ; @.str.2
.asciz "Error"
l_.str.3: ; @.str.3
.asciz "Error: destination file already exists: %s\n"
l_.str.4: ; @.str.4
.asciz "rb"
l_.str.5: ; @.str.5
.asciz "Failed to open file"
l_.str.6: ; @.str.6
.asciz "Error: input file is empty.\n"
l_.str.7: ; @.str.7
.asciz "wb"
l_.str.8: ; @.str.8
.asciz "%02hhX"
l_.str.9: ; @.str.9
.asciz "%02hhX "
l_.str.10: ; @.str.10
.asciz "File read failed"
l_.str.11: ; @.str.11
.asciz "File write failed"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _exists ## -- Begin function exists
.p2align 4, 0x90
_exists: ## @exists
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _fopen
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
je LBB0_2
## %bb.1:
movq -24(%rbp), %rdi
callq _fclose
movl $1, -4(%rbp)
jmp LBB0_3
LBB0_2:
movl $0, -4(%rbp)
LBB0_3:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _bytecount ## -- Begin function bytecount
.p2align 4, 0x90
_bytecount: ## @bytecount
.cfi_startproc
## %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 _ftell
## kill: def $eax killed $eax killed $rax
movl %eax, -12(%rbp)
movq -8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $2, %edx
callq _fseek
movq -8(%rbp), %rdi
callq _ftell
## kill: def $eax killed $eax killed $rax
movl %eax, -16(%rbp)
movq -8(%rbp), %rdi
movslq -12(%rbp), %rsi
xorl %edx, %edx
callq _fseek
movl -16(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $112, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movq $0, -24(%rbp)
movq $0, -32(%rbp)
movq $10485760, -40(%rbp) ## imm = 0xA00000
cmpl $1, -8(%rbp)
jne LBB2_2
## %bb.1:
movq -16(%rbp), %rax
movq (%rax), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -4(%rbp)
jmp LBB2_70
LBB2_2:
cmpl $2, -8(%rbp)
jl LBB2_4
## %bb.3:
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
LBB2_4:
cmpl $3, -8(%rbp)
jl LBB2_6
## %bb.5:
movq -16(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -32(%rbp)
LBB2_6:
cmpl $4, -8(%rbp)
jl LBB2_10
## %bb.7:
movq -16(%rbp), %rax
movq 24(%rax), %rdi
callq _atol
movq %rax, %rdi
callq _labs
movq %rax, -40(%rbp)
cmpq $3, -40(%rbp)
jge LBB2_9
## %bb.8:
movq $0, -40(%rbp)
LBB2_9:
jmp LBB2_10
LBB2_10:
movq -24(%rbp), %rdi
callq _exists
cmpl $0, %eax
jne LBB2_12
## %bb.11:
leaq L_.str.2(%rip), %rdi
callq _perror
movl $1, -4(%rbp)
jmp LBB2_70
LBB2_12:
cmpq $0, -32(%rbp)
je LBB2_15
## %bb.13:
movq -32(%rbp), %rdi
callq _exists
cmpl $0, %eax
je LBB2_15
## %bb.14:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -32(%rbp), %rdx
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -4(%rbp)
jmp LBB2_70
LBB2_15:
movq -24(%rbp), %rdi
leaq L_.str.4(%rip), %rsi
callq _fopen
movq %rax, -48(%rbp)
cmpq $0, -48(%rbp)
jne LBB2_17
## %bb.16:
leaq L_.str.5(%rip), %rdi
callq _perror
movl $1, -4(%rbp)
jmp LBB2_70
LBB2_17:
movq -48(%rbp), %rdi
callq _bytecount
cmpl $0, %eax
jne LBB2_19
## %bb.18:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.6(%rip), %rsi
movb $0, %al
callq _fprintf
movq -48(%rbp), %rdi
callq _fclose
movl $1, -4(%rbp)
jmp LBB2_70
LBB2_19:
movq $0, -56(%rbp)
cmpq $0, -32(%rbp)
je LBB2_23
## %bb.20:
movq -32(%rbp), %rdi
leaq L_.str.7(%rip), %rsi
callq _fopen
movq %rax, -56(%rbp)
cmpq $0, -56(%rbp)
jne LBB2_22
## %bb.21:
leaq L_.str.5(%rip), %rdi
callq _perror
movq -48(%rbp), %rdi
callq _fclose
movl $1, -4(%rbp)
jmp LBB2_70
LBB2_22:
jmp LBB2_24
LBB2_23:
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -56(%rbp)
LBB2_24:
movq $0, -64(%rbp)
movq $0, -72(%rbp)
cmpq $0, -40(%rbp)
je LBB2_32
## %bb.25:
movq -40(%rbp), %rax
movq %rax, -80(%rbp)
LBB2_26: ## =>This Inner Loop Header: Depth=1
cmpq $0, -80(%rbp)
jle LBB2_31
## %bb.27: ## in Loop: Header=BB2_26 Depth=1
movq -80(%rbp), %rax
movl $3, %ecx
cqto
idivq %rcx
cmpq $0, %rdx
jne LBB2_29
## %bb.28:
movq -80(%rbp), %rax
movq %rax, -72(%rbp)
jmp LBB2_31
LBB2_29: ## in Loop: Header=BB2_26 Depth=1
jmp LBB2_30
LBB2_30: ## in Loop: Header=BB2_26 Depth=1
movq -80(%rbp), %rax
addq $-1, %rax
movq %rax, -80(%rbp)
jmp LBB2_26
LBB2_31:
movq -72(%rbp), %rdi
movl $1, %esi
callq _calloc
movq %rax, -64(%rbp)
LBB2_32:
movq $0, -88(%rbp)
movq -48(%rbp), %rdi
callq _fgetc
## kill: def $al killed $al killed $eax
movb %al, -89(%rbp)
LBB2_33: ## =>This Loop Header: Depth=1
## Child Loop BB2_40 Depth 2
movsbl -89(%rbp), %eax
cmpl $-1, %eax
je LBB2_49
## %bb.34: ## in Loop: Header=BB2_33 Depth=1
cmpq $0, -72(%rbp)
je LBB2_36
## %bb.35: ## in Loop: Header=BB2_33 Depth=1
movq -64(%rbp), %rdi
imulq $3, -88(%rbp), %rax
addq %rax, %rdi
movsbl -89(%rbp), %r8d
xorl %esi, %esi
movq $-1, %rdx
leaq L_.str.8(%rip), %rcx
movb $0, %al
callq ___sprintf_chk
jmp LBB2_37
LBB2_36: ## in Loop: Header=BB2_33 Depth=1
movq -56(%rbp), %rdi
movsbl -89(%rbp), %edx
leaq L_.str.9(%rip), %rsi
movb $0, %al
callq _fprintf
LBB2_37: ## in Loop: Header=BB2_33 Depth=1
cmpq $0, -72(%rbp)
je LBB2_48
## %bb.38: ## in Loop: Header=BB2_33 Depth=1
movq -88(%rbp), %rax
movq -72(%rbp), %rcx
subq $1, %rcx
cmpq %rcx, %rax
jne LBB2_46
## %bb.39: ## in Loop: Header=BB2_33 Depth=1
movq $0, -88(%rbp)
movl $2, -96(%rbp)
LBB2_40: ## Parent Loop BB2_33 Depth=1
## => This Inner Loop Header: Depth=2
movslq -96(%rbp), %rax
cmpq -72(%rbp), %rax
jge LBB2_45
## %bb.41: ## in Loop: Header=BB2_40 Depth=2
movq -64(%rbp), %rax
movslq -96(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0, %eax
jne LBB2_43
## %bb.42: ## in Loop: Header=BB2_40 Depth=2
movq -64(%rbp), %rax
movslq -96(%rbp), %rcx
movb $32, (%rax,%rcx)
LBB2_43: ## in Loop: Header=BB2_40 Depth=2
jmp LBB2_44
LBB2_44: ## in Loop: Header=BB2_40 Depth=2
movl -96(%rbp), %eax
addl $3, %eax
movl %eax, -96(%rbp)
jmp LBB2_40
LBB2_45: ## in Loop: Header=BB2_33 Depth=1
movq -64(%rbp), %rdi
movq -72(%rbp), %rdx
movq -56(%rbp), %rcx
movl $1, %esi
callq _fwrite
jmp LBB2_47
LBB2_46: ## in Loop: Header=BB2_33 Depth=1
movq -88(%rbp), %rax
addq $1, %rax
movq %rax, -88(%rbp)
LBB2_47: ## in Loop: Header=BB2_33 Depth=1
jmp LBB2_48
LBB2_48: ## in Loop: Header=BB2_33 Depth=1
movq -48(%rbp), %rdi
callq _fgetc
## kill: def $al killed $al killed $eax
movb %al, -89(%rbp)
jmp LBB2_33
LBB2_49:
cmpq $0, -72(%rbp)
je LBB2_58
## %bb.50:
cmpq $0, -88(%rbp)
je LBB2_58
## %bb.51:
movl $2, -100(%rbp)
LBB2_52: ## =>This Inner Loop Header: Depth=1
movslq -100(%rbp), %rax
cmpq -72(%rbp), %rax
jge LBB2_57
## %bb.53: ## in Loop: Header=BB2_52 Depth=1
movq -64(%rbp), %rax
movslq -100(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0, %eax
jne LBB2_55
## %bb.54: ## in Loop: Header=BB2_52 Depth=1
movq -64(%rbp), %rax
movslq -100(%rbp), %rcx
movb $32, (%rax,%rcx)
LBB2_55: ## in Loop: Header=BB2_52 Depth=1
jmp LBB2_56
LBB2_56: ## in Loop: Header=BB2_52 Depth=1
movl -100(%rbp), %eax
addl $3, %eax
movl %eax, -100(%rbp)
jmp LBB2_52
LBB2_57:
movq -64(%rbp), %rdi
imulq $3, -88(%rbp), %rdx
movq -56(%rbp), %rcx
movl $1, %esi
callq _fwrite
LBB2_58:
cmpq $0, -64(%rbp)
je LBB2_60
## %bb.59:
movq -64(%rbp), %rdi
callq _free
LBB2_60:
movq -48(%rbp), %rdi
callq _ferror
cmpl $0, %eax
je LBB2_64
## %bb.61:
leaq L_.str.10(%rip), %rdi
callq _perror
movq -48(%rbp), %rdi
callq _fclose
cmpq $0, -32(%rbp)
je LBB2_63
## %bb.62:
movq -56(%rbp), %rdi
callq _fclose
LBB2_63:
movl $1, -4(%rbp)
jmp LBB2_70
LBB2_64:
cmpq $0, -32(%rbp)
je LBB2_67
## %bb.65:
movq -56(%rbp), %rdi
callq _ferror
cmpl $0, %eax
je LBB2_67
## %bb.66:
leaq L_.str.11(%rip), %rdi
callq _perror
movq -48(%rbp), %rdi
callq _fclose
movq -56(%rbp), %rdi
callq _fclose
movl $1, -4(%rbp)
jmp LBB2_70
LBB2_67:
movq -48(%rbp), %rdi
callq _fclose
cmpq $0, -32(%rbp)
je LBB2_69
## %bb.68:
movq -56(%rbp), %rdi
callq _fclose
LBB2_69:
movl $0, -4(%rbp)
LBB2_70:
movl -4(%rbp), %eax
addq $112, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "r"
L_.str.1: ## @.str.1
.asciz "Usage: %s <source> [dest] [max buffer]\n"
L_.str.2: ## @.str.2
.asciz "Error"
L_.str.3: ## @.str.3
.asciz "Error: destination file already exists: %s\n"
L_.str.4: ## @.str.4
.asciz "rb"
L_.str.5: ## @.str.5
.asciz "Failed to open file"
L_.str.6: ## @.str.6
.asciz "Error: input file is empty.\n"
L_.str.7: ## @.str.7
.asciz "wb"
L_.str.8: ## @.str.8
.asciz "%02hhX"
L_.str.9: ## @.str.9
.asciz "%02hhX "
L_.str.10: ## @.str.10
.asciz "File read failed"
L_.str.11: ## @.str.11
.asciz "File write failed"
.subsections_via_symbols
| the_stack_data/200143778.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/36075832.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fib ; -- Begin function fib
.p2align 2
_fib: ; @fib
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str w0, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, gt
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w8, [sp, #8]
stur w8, [x29, #-4]
b LBB0_3
LBB0_2:
ldr w8, [sp, #8]
subs w0, w8, #1
bl _fib
str w0, [sp, #4] ; 4-byte Folded Spill
ldr w8, [sp, #8]
subs w0, w8, #2
bl _fib
mov x8, x0
ldr w0, [sp, #4] ; 4-byte Folded Reload
add w8, w0, w8
stur w8, [x29, #-4]
b LBB0_3
LBB0_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #16] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldur w0, [x29, #-8]
bl _fib
stur w0, [x29, #-12]
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr w0, [sp, #16] ; 4-byte Folded Reload
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
l_.str.1: ; @.str.1
.asciz "fib number is %d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fib ## -- Begin function fib
.p2align 4, 0x90
_fib: ## @fib
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -8(%rbp)
cmpl $1, -8(%rbp)
jg LBB0_2
## %bb.1:
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_3
LBB0_2:
movl -8(%rbp), %edi
subl $1, %edi
callq _fib
movl %eax, -12(%rbp) ## 4-byte Spill
movl -8(%rbp), %edi
subl $2, %edi
callq _fib
movl %eax, %ecx
movl -12(%rbp), %eax ## 4-byte Reload
addl %ecx, %eax
movl %eax, -4(%rbp)
LBB0_3:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl -8(%rbp), %edi
callq _fib
movl %eax, -12(%rbp)
movl -12(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
L_.str.1: ## @.str.1
.asciz "fib number is %d"
.subsections_via_symbols
| the_stack_data/879297.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]
sub x8, x29, #8
str x8, [sp, #16] ; 8-byte Folded Spill
stur wzr, [x29, #-8]
stur wzr, [x29, #-12]
stur wzr, [x29, #-16]
mov w8, #-1
stur w8, [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
bl _scanf
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
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 w8, [x29, #-12]
ldur w9, [x29, #-16]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
stur w8, [x29, #-20]
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_1
LBB0_5:
ldur w8, [x29, #-20]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
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_7
LBB0_7:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Inserire numero di interi: \n"
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Inserire %d interi: \n"
l_.str.3: ; @.str.3
.asciz "%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl $0, -8(%rbp)
movl $0, -12(%rbp)
movl $0, -16(%rbp)
movl $-1, -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
movl -8(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_5
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.1(%rip), %rdi
leaq -16(%rbp), %rsi
movb $0, %al
callq _scanf
movl -12(%rbp), %eax
cmpl -16(%rbp), %eax
je LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
movl %eax, -20(%rbp)
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_1
LBB0_5:
cmpl $-1, -20(%rbp)
je LBB0_7
## %bb.6:
movl -20(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
LBB0_7:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Inserire numero di interi: \n"
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Inserire %d interi: \n"
L_.str.3: ## @.str.3
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/32949467.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _initStack ; -- Begin function initStack
.p2align 2
_initStack: ; @initStack
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, #68
bl _malloc
str x0, [sp, #8]
ldr x9, [sp, #8]
mov w8, #-1
str w8, [x9, #64]
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _isEmpty ; -- Begin function isEmpty
.p2align 2
_isEmpty: ; @isEmpty
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr w8, [x8, #64]
adds w8, w8, #1
cset w8, eq
and w0, w8, #0x1
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _isFull ; -- Begin function isFull
.p2align 2
_isFull: ; @isFull
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr w8, [x8, #64]
subs w8, w8, #15
cset w8, eq
and w0, w8, #0x1
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _push ; -- Begin function push
.p2align 2
_push: ; @push
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
str w1, [sp, #12]
ldr x0, [sp, #16]
bl _isFull
tbz w0, #0, LBB3_2
b LBB3_1
LBB3_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB3_3
LBB3_2:
ldr w9, [sp, #12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr x9, [sp, #16]
ldr w8, [x9, #64]
add w8, w8, #1
str w8, [x9, #64]
ldr w8, [sp, #12]
ldr x9, [sp, #16]
ldr x10, [sp, #16]
ldrsw x10, [x10, #64]
str w8, [x9, x10, lsl #2]
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB3_3
LBB3_3:
ldurb w8, [x29, #-1]
and w0, w8, #0x1
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _pop ; -- Begin function pop
.p2align 2
_pop: ; @pop
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
str x1, [sp, #8]
ldr x0, [sp, #16]
bl _isEmpty
tbz w0, #0, LBB4_2
b LBB4_1
LBB4_1:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB4_3
LBB4_2:
ldr x8, [sp, #16]
ldr x9, [sp, #16]
ldrsw x9, [x9, #64]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #8]
str w8, [x9]
ldr x9, [sp, #16]
ldr w8, [x9, #64]
subs w8, w8, #1
str w8, [x9, #64]
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB4_3
LBB4_3:
ldurb w8, [x29, #-1]
and w0, w8, #0x1
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
bl _initStack
str x0, [sp, #16]
str wzr, [sp, #12]
b LBB5_1
LBB5_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #12
cset w8, ge
tbnz w8, #0, LBB5_4
b LBB5_2
LBB5_2: ; in Loop: Header=BB5_1 Depth=1
ldr x0, [sp, #16]
ldr w8, [sp, #12]
add w8, w8, #1
mov w9, #10
mul w1, w8, w9
bl _push
b LBB5_3
LBB5_3: ; in Loop: Header=BB5_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB5_1
LBB5_4:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
str wzr, [sp, #12]
b LBB5_5
LBB5_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #20
cset w8, ge
tbnz w8, #0, LBB5_10
b LBB5_6
LBB5_6: ; in Loop: Header=BB5_5 Depth=1
ldr x0, [sp, #16]
add x1, sp, #8
bl _pop
tbz w0, #0, LBB5_8
b LBB5_7
LBB5_7: ; in Loop: Header=BB5_5 Depth=1
ldr w9, [sp, #8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB5_8
LBB5_8: ; in Loop: Header=BB5_5 Depth=1
b LBB5_9
LBB5_9: ; in Loop: Header=BB5_5 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB5_5
LBB5_10:
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "The stack is full. Push failed.\n"
l_.str.1: ; @.str.1
.asciz "Push value %d\n"
l_.str.2: ; @.str.2
.asciz "The stack is empty. Pop failed.\n"
l_.str.3: ; @.str.3
.asciz "\n*****************************\n"
l_.str.4: ; @.str.4
.asciz "Pop value: %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _initStack ## -- Begin function initStack
.p2align 4, 0x90
_initStack: ## @initStack
.cfi_startproc
## %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 $68, %edi
callq _malloc
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
movl $-1, 64(%rax)
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _isEmpty ## -- Begin function isEmpty
.p2align 4, 0x90
_isEmpty: ## @isEmpty
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
cmpl $-1, 64(%rax)
sete %al
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _isFull ## -- Begin function isFull
.p2align 4, 0x90
_isFull: ## @isFull
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
cmpl $15, 64(%rax)
sete %al
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _push ## -- Begin function push
.p2align 4, 0x90
_push: ## @push
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movq -16(%rbp), %rdi
callq _isFull
testb $1, %al
jne LBB3_1
jmp LBB3_2
LBB3_1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movb $0, -1(%rbp)
jmp LBB3_3
LBB3_2:
movl -20(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rax
movl 64(%rax), %ecx
addl $1, %ecx
movl %ecx, 64(%rax)
movl -20(%rbp), %edx
movq -16(%rbp), %rax
movq -16(%rbp), %rcx
movslq 64(%rcx), %rcx
movl %edx, (%rax,%rcx,4)
movb $1, -1(%rbp)
LBB3_3:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _pop ## -- Begin function pop
.p2align 4, 0x90
_pop: ## @pop
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -16(%rbp), %rdi
callq _isEmpty
testb $1, %al
jne LBB4_1
jmp LBB4_2
LBB4_1:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movb $0, -1(%rbp)
jmp LBB4_3
LBB4_2:
movq -16(%rbp), %rax
movq -16(%rbp), %rcx
movslq 64(%rcx), %rcx
movl (%rax,%rcx,4), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movq -16(%rbp), %rax
movl 64(%rax), %ecx
subl $1, %ecx
movl %ecx, 64(%rax)
movb $1, -1(%rbp)
LBB4_3:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
callq _initStack
movq %rax, -16(%rbp)
movl $0, -20(%rbp)
LBB5_1: ## =>This Inner Loop Header: Depth=1
cmpl $12, -20(%rbp)
jge LBB5_4
## %bb.2: ## in Loop: Header=BB5_1 Depth=1
movq -16(%rbp), %rdi
movl -20(%rbp), %eax
addl $1, %eax
imull $10, %eax, %esi
callq _push
## %bb.3: ## in Loop: Header=BB5_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB5_1
LBB5_4:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -20(%rbp)
LBB5_5: ## =>This Inner Loop Header: Depth=1
cmpl $20, -20(%rbp)
jge LBB5_10
## %bb.6: ## in Loop: Header=BB5_5 Depth=1
movq -16(%rbp), %rdi
leaq -24(%rbp), %rsi
callq _pop
testb $1, %al
jne LBB5_7
jmp LBB5_8
LBB5_7: ## in Loop: Header=BB5_5 Depth=1
movl -24(%rbp), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
LBB5_8: ## in Loop: Header=BB5_5 Depth=1
jmp LBB5_9
LBB5_9: ## in Loop: Header=BB5_5 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB5_5
LBB5_10:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "The stack is full. Push failed.\n"
L_.str.1: ## @.str.1
.asciz "Push value %d\n"
L_.str.2: ## @.str.2
.asciz "The stack is empty. Pop failed.\n"
L_.str.3: ## @.str.3
.asciz "\n*****************************\n"
L_.str.4: ## @.str.4
.asciz "Pop value: %d\n"
.subsections_via_symbols
| the_stack_data/911047.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _f ; -- Begin function f
.p2align 2
_f: ; @f
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp]
ldr x8, [sp]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
str xzr, [sp, #8]
b LBB0_5
LBB0_2:
ldr x8, [sp]
mov x10, #2
sdiv x9, x8, x10
mul x9, x9, x10
subs x8, x8, x9
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp]
mov x9, #2
sdiv x0, x8, x9
bl _f
mov x8, #10
mul x8, x0, x8
add x8, x8, #0
str x8, [sp, #8]
b LBB0_5
LBB0_4:
ldr x8, [sp]
mov x9, #2
sdiv x0, x8, x9
bl _f
mov x8, #10
mul x8, x0, x8
add x8, x8, #1
str x8, [sp, #8]
b LBB0_5
LBB0_5:
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, #35000
bl _f
mov x8, sp
str x0, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
str x0, [sp, #8] ; 8-byte Folded Spill
bl _printf
mov x0, #128
bl _f
mov x8, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
bl _printf
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _f ## -- Begin function f
.p2align 4, 0x90
_f: ## @f
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -16(%rbp)
cmpq $0, -16(%rbp)
jne LBB0_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB0_5
LBB0_2:
movq -16(%rbp), %rax
movl $2, %ecx
cqto
idivq %rcx
cmpq $0, %rdx
jne LBB0_4
## %bb.3:
movq -16(%rbp), %rax
movl $2, %ecx
cqto
idivq %rcx
movq %rax, %rdi
callq _f
imulq $10, %rax, %rax
addq $0, %rax
movq %rax, -8(%rbp)
jmp LBB0_5
LBB0_4:
movq -16(%rbp), %rax
movl $2, %ecx
cqto
idivq %rcx
movq %rax, %rdi
callq _f
imulq $10, %rax, %rax
addq $1, %rax
movq %rax, -8(%rbp)
LBB0_5:
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $35000, %edi ## imm = 0x88B8
callq _f
movq %rax, %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $128, %edi
callq _f
movq %rax, %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/11074895.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]
sub x8, x29, #8
mov w9, #7
stur w9, [x29, #-8]
sub x9, x29, #12
mov w10, #33
stur w10, [x29, #-12]
mov w10, #77
stur w10, [x29, #-16]
stur x9, [x29, #-32]
stur x8, [x29, #-40]
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
stur x8, [x29, #-48]
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
stur x8, [x29, #-56]
ldur w8, [x29, #-8]
stur w8, [x29, #-60]
ldur w8, [x29, #-12]
stur w8, [x29, #-64]
ldur w8, [x29, #-60]
ldur w9, [x29, #-64]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur w8, [x29, #-60]
str w8, [sp, #44] ; 4-byte Folded Spill
b LBB0_3
LBB0_2:
ldur w8, [x29, #-64]
str w8, [sp, #44] ; 4-byte Folded Spill
b LBB0_3
LBB0_3:
ldr w8, [sp, #44] ; 4-byte Folded Reload
stur w8, [x29, #-68]
ldursw x8, [x29, #-68]
stur x8, [x29, #-24]
ldur x8, [x29, #-24]
mov x10, x8
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldur x8, [x29, #-48]
stur x8, [x29, #-80]
ldur x8, [x29, #-56]
stur x8, [x29, #-88]
ldur x8, [x29, #-80]
ldur x9, [x29, #-88]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldur x8, [x29, #-80]
str x8, [sp, #32] ; 8-byte Folded Spill
b LBB0_6
LBB0_5:
ldur x8, [x29, #-88]
str x8, [sp, #32] ; 8-byte Folded Spill
b LBB0_6
LBB0_6:
ldr x8, [sp, #32] ; 8-byte Folded Reload
stur x8, [x29, #-96]
ldur x8, [x29, #-96]
stur x8, [x29, #-24]
ldur x8, [x29, #-24]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldur w8, [x29, #-8]
stur w8, [x29, #-100]
ldur w8, [x29, #-12]
str w8, [sp, #104]
ldur w8, [x29, #-16]
str w8, [sp, #100]
ldur w8, [x29, #-8]
str w8, [sp, #88]
ldur w8, [x29, #-12]
str w8, [sp, #84]
ldr w8, [sp, #88]
ldr w9, [sp, #84]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldr w8, [sp, #88]
str w8, [sp, #28] ; 4-byte Folded Spill
b LBB0_9
LBB0_8:
ldr w8, [sp, #84]
str w8, [sp, #28] ; 4-byte Folded Spill
b LBB0_9
LBB0_9:
ldr w8, [sp, #28] ; 4-byte Folded Reload
str w8, [sp, #80]
ldr w8, [sp, #80]
str w8, [sp, #92]
ldur w8, [x29, #-16]
str w8, [sp, #76]
ldr w8, [sp, #92]
ldr w9, [sp, #76]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldr w8, [sp, #92]
str w8, [sp, #24] ; 4-byte Folded Spill
b LBB0_12
LBB0_11:
ldr w8, [sp, #76]
str w8, [sp, #24] ; 4-byte Folded Spill
b LBB0_12
LBB0_12:
ldr w8, [sp, #24] ; 4-byte Folded Reload
str w8, [sp, #72]
ldr w8, [sp, #72]
str w8, [sp, #96]
ldrsw x8, [sp, #96]
stur x8, [x29, #-24]
ldur x8, [x29, #-24]
mov x10, x8
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldur x8, [x29, #-32]
str x8, [sp, #64]
ldur x8, [x29, #-40]
str x8, [sp, #56]
ldr x8, [sp, #64]
ldr x9, [sp, #56]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
ldr x8, [sp, #64]
str x8, [sp, #16] ; 8-byte Folded Spill
b LBB0_15
LBB0_14:
ldr x8, [sp, #56]
str x8, [sp, #16] ; 8-byte Folded Spill
b LBB0_15
LBB0_15:
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x8, [sp, #48]
ldr x8, [sp, #48]
stur x8, [x29, #-24]
ldur x8, [x29, #-24]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov w0, #0
ldp x29, x30, [sp, #208] ; 16-byte Folded Reload
add sp, sp, #224
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "David"
l_.str.1: ; @.str.1
.asciz "Nico"
l_.str.2: ; @.str.2
.asciz "max_val = %d\n"
l_.str.3: ; @.str.3
.asciz "max_val = %s\n"
l_.str.4: ; @.str.4
.asciz "max_val = 0x%x\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $192, %rsp
movl $0, -4(%rbp)
movl $7, -8(%rbp)
movl $33, -12(%rbp)
movl $77, -16(%rbp)
leaq -12(%rbp), %rax
movq %rax, -32(%rbp)
leaq -8(%rbp), %rax
movq %rax, -40(%rbp)
leaq L_.str(%rip), %rax
movq %rax, -48(%rbp)
leaq L_.str.1(%rip), %rax
movq %rax, -56(%rbp)
movl -8(%rbp), %eax
movl %eax, -60(%rbp)
movl -12(%rbp), %eax
movl %eax, -64(%rbp)
movl -60(%rbp), %eax
cmpl -64(%rbp), %eax
jle LBB0_2
## %bb.1:
movl -60(%rbp), %eax
movl %eax, -164(%rbp) ## 4-byte Spill
jmp LBB0_3
LBB0_2:
movl -64(%rbp), %eax
movl %eax, -164(%rbp) ## 4-byte Spill
LBB0_3:
movl -164(%rbp), %eax ## 4-byte Reload
movl %eax, -68(%rbp)
movslq -68(%rbp), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movl %eax, %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movq -48(%rbp), %rax
movq %rax, -80(%rbp)
movq -56(%rbp), %rax
movq %rax, -88(%rbp)
movq -80(%rbp), %rax
cmpq -88(%rbp), %rax
jbe LBB0_5
## %bb.4:
movq -80(%rbp), %rax
movq %rax, -176(%rbp) ## 8-byte Spill
jmp LBB0_6
LBB0_5:
movq -88(%rbp), %rax
movq %rax, -176(%rbp) ## 8-byte Spill
LBB0_6:
movq -176(%rbp), %rax ## 8-byte Reload
movq %rax, -96(%rbp)
movq -96(%rbp), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %eax
movl %eax, -100(%rbp)
movl -12(%rbp), %eax
movl %eax, -104(%rbp)
movl -16(%rbp), %eax
movl %eax, -108(%rbp)
movl -8(%rbp), %eax
movl %eax, -120(%rbp)
movl -12(%rbp), %eax
movl %eax, -124(%rbp)
movl -120(%rbp), %eax
cmpl -124(%rbp), %eax
jle LBB0_8
## %bb.7:
movl -120(%rbp), %eax
movl %eax, -180(%rbp) ## 4-byte Spill
jmp LBB0_9
LBB0_8:
movl -124(%rbp), %eax
movl %eax, -180(%rbp) ## 4-byte Spill
LBB0_9:
movl -180(%rbp), %eax ## 4-byte Reload
movl %eax, -128(%rbp)
movl -128(%rbp), %eax
movl %eax, -116(%rbp)
movl -16(%rbp), %eax
movl %eax, -132(%rbp)
movl -116(%rbp), %eax
cmpl -132(%rbp), %eax
jle LBB0_11
## %bb.10:
movl -116(%rbp), %eax
movl %eax, -184(%rbp) ## 4-byte Spill
jmp LBB0_12
LBB0_11:
movl -132(%rbp), %eax
movl %eax, -184(%rbp) ## 4-byte Spill
LBB0_12:
movl -184(%rbp), %eax ## 4-byte Reload
movl %eax, -136(%rbp)
movl -136(%rbp), %eax
movl %eax, -112(%rbp)
movslq -112(%rbp), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movl %eax, %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movq -32(%rbp), %rax
movq %rax, -144(%rbp)
movq -40(%rbp), %rax
movq %rax, -152(%rbp)
movq -144(%rbp), %rax
cmpq -152(%rbp), %rax
jbe LBB0_14
## %bb.13:
movq -144(%rbp), %rax
movq %rax, -192(%rbp) ## 8-byte Spill
jmp LBB0_15
LBB0_14:
movq -152(%rbp), %rax
movq %rax, -192(%rbp) ## 8-byte Spill
LBB0_15:
movq -192(%rbp), %rax ## 8-byte Reload
movq %rax, -160(%rbp)
movq -160(%rbp), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rsi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $192, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "David"
L_.str.1: ## @.str.1
.asciz "Nico"
L_.str.2: ## @.str.2
.asciz "max_val = %d\n"
L_.str.3: ## @.str.3
.asciz "max_val = %s\n"
L_.str.4: ## @.str.4
.asciz "max_val = 0x%x\n"
.subsections_via_symbols
| the_stack_data/231392991.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, #1200
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #36]
str wzr, [sp, #28]
movi d0, #0000000000000000
str d0, [sp, #8]
mov x9, sp
add x8, sp, #35
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
str wzr, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr w8, [sp, #24]
subs w8, w8, #12
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #20]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #20]
subs w8, w8, #12
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldrsw x8, [sp, #24]
mov x9, #96
mul x9, x8, x9
add x8, sp, #40
add x8, x8, x9
ldrsw x9, [sp, #20]
add x8, x8, x9, lsl #3
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
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]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB0_16
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_11
LBB0_11: ; Parent Loop BB0_9 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #20]
ldr w10, [sp, #28]
mov w9, #11
subs w9, w9, w10
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_14
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=2
ldrsw x8, [sp, #24]
mov x9, #96
mul x9, x8, x9
add x8, sp, #40
add x8, x8, x9
ldrsw x9, [sp, #20]
ldr d0, [x8, x9, lsl #3]
ldr d1, [sp, #8]
fadd d0, d0, d1
str d0, [sp, #8]
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_11 Depth=2
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_11
LBB0_14: ; in Loop: Header=BB0_9 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_9 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_9
LBB0_16:
ldrsb w8, [sp, #35]
subs w8, w8, #77
cset w8, ne
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17:
ldr d0, [sp, #8]
fmov d1, #30.00000000
fdiv d0, d0, d1
str d0, [sp, #8]
b LBB0_18
LBB0_18:
ldr d0, [sp, #8]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@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, #1200
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 "%c"
l_.str.1: ; @.str.1
.asciz "%lf"
l_.str.2: ; @.str.2
.asciz "%.1lf\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 0x403e000000000000 ## double 30
.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 $1200, %rsp ## imm = 0x4B0
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -1172(%rbp)
movl $0, -1180(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -1200(%rbp)
leaq -1173(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _scanf
movl $0, -1184(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
cmpl $12, -1184(%rbp)
jge LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -1188(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $12, -1188(%rbp)
jge LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movslq -1184(%rbp), %rax
leaq -1168(%rbp), %rsi
imulq $96, %rax, %rax
addq %rax, %rsi
movslq -1188(%rbp), %rax
shlq $3, %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 -1188(%rbp), %eax
addl $1, %eax
movl %eax, -1188(%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 -1184(%rbp), %eax
addl $1, %eax
movl %eax, -1184(%rbp)
jmp LBB0_1
LBB0_8:
movl $0, -1184(%rbp)
LBB0_9: ## =>This Loop Header: Depth=1
## Child Loop BB0_11 Depth 2
cmpl $5, -1184(%rbp)
jge LBB0_16
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movl -1184(%rbp), %eax
addl $1, %eax
movl %eax, -1188(%rbp)
LBB0_11: ## Parent Loop BB0_9 Depth=1
## => This Inner Loop Header: Depth=2
movl -1188(%rbp), %eax
movl $11, %ecx
subl -1180(%rbp), %ecx
cmpl %ecx, %eax
jge LBB0_14
## %bb.12: ## in Loop: Header=BB0_11 Depth=2
movslq -1184(%rbp), %rcx
leaq -1168(%rbp), %rax
imulq $96, %rcx, %rcx
addq %rcx, %rax
movslq -1188(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
addsd -1200(%rbp), %xmm0
movsd %xmm0, -1200(%rbp)
## %bb.13: ## in Loop: Header=BB0_11 Depth=2
movl -1188(%rbp), %eax
addl $1, %eax
movl %eax, -1188(%rbp)
jmp LBB0_11
LBB0_14: ## in Loop: Header=BB0_9 Depth=1
movl -1180(%rbp), %eax
addl $1, %eax
movl %eax, -1180(%rbp)
## %bb.15: ## in Loop: Header=BB0_9 Depth=1
movl -1184(%rbp), %eax
addl $1, %eax
movl %eax, -1184(%rbp)
jmp LBB0_9
LBB0_16:
movsbl -1173(%rbp), %eax
cmpl $77, %eax
jne LBB0_18
## %bb.17:
movsd -1200(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movsd %xmm0, -1200(%rbp)
LBB0_18:
movsd -1200(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_20
## %bb.19:
xorl %eax, %eax
addq $1200, %rsp ## imm = 0x4B0
popq %rbp
retq
LBB0_20:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%c"
L_.str.1: ## @.str.1
.asciz "%lf"
L_.str.2: ## @.str.2
.asciz "%.1lf\n"
.subsections_via_symbols
| the_stack_data/51699705.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/27433.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _uniquePaths ; -- Begin function uniquePaths
.p2align 2
_uniquePaths: ; @uniquePaths
.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]
ldursw x9, [x29, #-4]
mov x8, #4
mul x0, x8, x9
bl _malloc
str x0, [sp, #16]
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #16]
ldrsw x10, [sp, #12]
mov w8, #1
str w8, [x9, x10, lsl #2]
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:
mov w8, #1
str w8, [sp, #8]
b LBB0_5
LBB0_5: ; =>This Loop Header: Depth=1
; Child Loop BB0_7 Depth 2
ldr w8, [sp, #8]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_12
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
mov w8, #1
str w8, [sp, #4]
b LBB0_7
LBB0_7: ; Parent Loop BB0_5 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #4]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=2
ldr x8, [sp, #16]
ldr w9, [sp, #4]
subs w9, w9, #1
ldr w10, [x8, w9, sxtw #2]
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 LBB0_9
LBB0_9: ; in Loop: Header=BB0_7 Depth=2
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_7
LBB0_10: ; in Loop: Header=BB0_5 Depth=1
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB0_5
LBB0_12:
ldr x8, [sp, #16]
ldur w9, [x29, #-4]
subs w9, w9, #1
ldr w8, [x8, w9, sxtw #2]
str w8, [sp]
ldr x0, [sp, #16]
bl _free
ldr w0, [sp]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #8] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov w0, #3
mov w1, #7
bl _uniquePaths
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _uniquePaths ## -- Begin function uniquePaths
.p2align 4, 0x90
_uniquePaths: ## @uniquePaths
.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)
movslq -4(%rbp), %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -16(%rbp)
movl $0, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movl $1, (%rax,%rcx,4)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_1
LBB0_4:
movl $1, -24(%rbp)
LBB0_5: ## =>This Loop Header: Depth=1
## Child Loop BB0_7 Depth 2
movl -24(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_12
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl $1, -28(%rbp)
LBB0_7: ## Parent Loop BB0_5 Depth=1
## => This Inner Loop Header: Depth=2
movl -28(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB0_10
## %bb.8: ## in Loop: Header=BB0_7 Depth=2
movq -16(%rbp), %rax
movl -28(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
addl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
## %bb.9: ## in Loop: Header=BB0_7 Depth=2
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_7
LBB0_10: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_11
LBB0_11: ## in Loop: Header=BB0_5 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB0_5
LBB0_12:
movq -16(%rbp), %rax
movl -4(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -32(%rbp)
movq -16(%rbp), %rdi
callq _free
movl -32(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $3, %edi
movl $7, %esi
callq _uniquePaths
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\n"
.subsections_via_symbols
| the_stack_data/22013648.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
str wzr, [sp, #20]
mov w8, #1
str w8, [sp, #16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #20
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_2 Depth 2
str wzr, [sp, #20]
mov w8, #1
str w8, [sp, #24]
b LBB0_2
LBB0_2: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #24]
subs w8, w8, #20
cset w8, gt
tbnz w8, #0, LBB0_7
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_2 Depth=2
ldur w8, [x29, #-20]
ldr w10, [sp, #24]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_7
LBB0_5: ; in Loop: Header=BB0_2 Depth=2
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_2 Depth=2
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_2
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_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
b LBB0_10
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #10
stur w8, [x29, #-20]
b LBB0_1
LBB0_10:
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Enter the no:"
l_.str.1: ; @.str.1
.asciz "%d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $0, -28(%rbp)
movl $1, -32(%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
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_2 Depth 2
movl $0, -28(%rbp)
movl $1, -24(%rbp)
LBB0_2: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $20, -24(%rbp)
jg LBB0_7
## %bb.3: ## in Loop: Header=BB0_2 Depth=2
movl -20(%rbp), %eax
cltd
idivl -24(%rbp)
cmpl $0, %edx
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_7
LBB0_5: ## in Loop: Header=BB0_2 Depth=2
jmp LBB0_6
LBB0_6: ## in Loop: Header=BB0_2 Depth=2
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB0_2
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -28(%rbp)
jne LBB0_9
## %bb.8:
movl -20(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_10
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $10, %eax
movl %eax, -20(%rbp)
jmp LBB0_1
LBB0_10:
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter the no:"
L_.str.1: ## @.str.1
.asciz "%d"
.subsections_via_symbols
| the_stack_data/57949094.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.private_extern _X ; @X
.section __DATA,__data
.globl _X
.p2align 2
_X:
.long 123 ; 0x7b
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.private_extern _X ## @X
.section __DATA,__data
.globl _X
.p2align 2
_X:
.long 123 ## 0x7b
.subsections_via_symbols
| the_stack_data/1241590.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
stur w8, [x29, #-12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov w8, #1
stur w8, [x29, #-8]
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur w0, [x29, #-8]
bl _increment
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
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
.globl _increment ; -- Begin function increment
.p2align 2
_increment: ; @increment
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
ldur w9, [x29, #-4]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldur w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-4]
ldur w9, [x29, #-4]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Valor de \"number\" en main() antes de incrementar = %d\n"
l_.str.1: ; @.str.1
.asciz "Valor de \"number\" en main() despues de incrementar = %d\n"
l_.str.2: ; @.str.2
.asciz "Valor de \"number\" en increment() antes de incrementar = %d\n"
l_.str.3: ; @.str.3
.asciz "Valor de \"number\" en increment() despues de incrementar = %d\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $1, -8(%rbp)
movl -8(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %edi
callq _increment
movl -8(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _increment ## -- Begin function increment
.p2align 4, 0x90
_increment: ## @increment
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movl -4(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
movl -4(%rbp), %esi
leaq L_.str.3(%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 "Valor de \"number\" en main() antes de incrementar = %d\n"
L_.str.1: ## @.str.1
.asciz "Valor de \"number\" en main() despues de incrementar = %d\n"
L_.str.2: ## @.str.2
.asciz "Valor de \"number\" en increment() antes de incrementar = %d\n"
L_.str.3: ## @.str.3
.asciz "Valor de \"number\" en increment() despues de incrementar = %d\n"
.subsections_via_symbols
| the_stack_data/68887437.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/1139811.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-52]
stur w0, [x29, #-56]
stur x1, [x29, #-64]
ldur w8, [x29, #-56]
subs w8, w8, #4
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #1
stur w8, [x29, #-52]
b LBB0_12
LBB0_2:
ldur x8, [x29, #-64]
ldr x0, [x8, #8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fopen
str x0, [sp, #72]
ldr x8, [sp, #72]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
mov w8, #1
stur w8, [x29, #-52]
b LBB0_12
LBB0_4:
ldur x8, [x29, #-64]
ldr x0, [x8, #16]
bl _atoi
str w0, [sp, #52]
ldur x8, [x29, #-64]
ldr x0, [x8, #24]
bl _atoi
str w0, [sp, #48]
movi d0, #0000000000000000
str d0, [sp, #64]
str wzr, [sp, #56]
str wzr, [sp, #60]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x0, [sp, #72]
sub x13, x29, #48
add x12, x13, #8
add x11, x13, #16
add x10, x13, #24
add x8, x13, #32
mov x9, sp
str x13, [x9]
str x12, [x9, #8]
str x11, [x9, #16]
str x10, [x9, #24]
str x8, [x9, #32]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fscanf
subs w8, w0, #5
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #60]
add w8, w8, #1
str w8, [sp, #60]
ldr w8, [sp, #60]
ldr w9, [sp, #48]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
b LBB0_11
LBB0_8: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #60]
ldr w9, [sp, #52]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_5 Depth=1
ldur d1, [x29, #-16]
ldr d0, [sp, #64]
fadd d0, d0, d1
str d0, [sp, #64]
ldr w8, [sp, #56]
add w8, w8, #1
str w8, [sp, #56]
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_5 Depth=1
b LBB0_5
LBB0_11:
ldr x0, [sp, #72]
bl _fclose
ldr d0, [sp, #64]
ldr s2, [sp, #56]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
fdiv d0, d0, d1
mov x8, sp
str d0, [x8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
stur wzr, [x29, #-52]
b LBB0_12
LBB0_12:
ldur w8, [x29, #-52]
str w8, [sp, #44] ; 4-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
bl ___stack_chk_fail
LBB0_14:
ldr w0, [sp, #44] ; 4-byte Folded Reload
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 "r"
l_.str.1: ; @.str.1
.asciz "%lf%lf%lf%lf%lf"
l_.str.2: ; @.str.2
.asciz "Mean load=%lf\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $112, %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)
cmpl $4, -56(%rbp)
je LBB0_2
## %bb.1:
movl $1, -52(%rbp)
jmp LBB0_12
LBB0_2:
movq -64(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str(%rip), %rsi
callq _fopen
movq %rax, -72(%rbp)
cmpq $0, -72(%rbp)
jne LBB0_4
## %bb.3:
movl $1, -52(%rbp)
jmp LBB0_12
LBB0_4:
movq -64(%rbp), %rax
movq 16(%rax), %rdi
callq _atoi
movl %eax, -92(%rbp)
movq -64(%rbp), %rax
movq 24(%rax), %rdi
callq _atoi
movl %eax, -96(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -80(%rbp)
movl $0, -88(%rbp)
movl $0, -84(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movq -72(%rbp), %rdi
leaq -48(%rbp), %rdx
leaq -48(%rbp), %rcx
addq $8, %rcx
leaq -48(%rbp), %r8
addq $16, %r8
leaq -48(%rbp), %r9
addq $24, %r9
leaq -48(%rbp), %rax
addq $32, %rax
leaq L_.str.1(%rip), %rsi
movq %rax, (%rsp)
movb $0, %al
callq _fscanf
cmpl $5, %eax
jne LBB0_11
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl -84(%rbp), %eax
addl $1, %eax
movl %eax, -84(%rbp)
movl -84(%rbp), %eax
cmpl -96(%rbp), %eax
jle LBB0_8
## %bb.7:
jmp LBB0_11
LBB0_8: ## in Loop: Header=BB0_5 Depth=1
movl -84(%rbp), %eax
cmpl -92(%rbp), %eax
jl LBB0_10
## %bb.9: ## in Loop: Header=BB0_5 Depth=1
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
addsd -80(%rbp), %xmm0
movsd %xmm0, -80(%rbp)
movl -88(%rbp), %eax
addl $1, %eax
movl %eax, -88(%rbp)
LBB0_10: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_5
LBB0_11:
movq -72(%rbp), %rdi
callq _fclose
movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero
cvtsi2sdl -88(%rbp), %xmm1
divsd %xmm1, %xmm0
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
movl $0, -52(%rbp)
LBB0_12:
movl -52(%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_14
## %bb.13:
movl -100(%rbp), %eax ## 4-byte Reload
addq $112, %rsp
popq %rbp
retq
LBB0_14:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "r"
L_.str.1: ## @.str.1
.asciz "%lf%lf%lf%lf%lf"
L_.str.2: ## @.str.2
.asciz "Mean load=%lf\n"
.subsections_via_symbols
| the_stack_data/129973.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _traverse ; -- Begin function traverse
.p2align 2
_traverse: ; @traverse
.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, _head@GOTPAGE
ldr x8, [x8, _head@GOTPAGEOFF]
ldr x8, [x8]
str x8, [sp, #8]
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, #8]
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, #8]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB0_1
LBB0_3:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _insert_end ; -- Begin function insert_end
.p2align 2
_insert_end: ; @insert_end
.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, _head@GOTPAGE
ldr x8, [x8, _head@GOTPAGEOFF]
ldr x8, [x8]
str x8, [sp, #8]
mov x0, #16
bl _malloc
str x0, [sp, #16]
ldur w8, [x29, #-4]
ldr x9, [sp, #16]
str w8, [x9]
ldr x8, [sp, #16]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr x8, [sp, #16]
adrp x9, _head@GOTPAGE
ldr x9, [x9, _head@GOTPAGEOFF]
str x8, [x9]
b LBB1_6
LBB1_2:
b LBB1_3
LBB1_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB1_3
LBB1_5:
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9, #8]
b LBB1_6
LBB1_6:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x8, _head@GOTPAGE
ldr x8, [x8, _head@GOTPAGEOFF]
; kill: def $x9 killed $xzr
str xzr, [x8]
mov w0, #2
bl _insert_end
mov w0, #4
bl _insert_end
mov w0, #6
bl _insert_end
mov w0, #5
bl _insert_end
bl _traverse
ldr w0, [sp] ; 4-byte Folded Reload
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _head,8,3 ; @head
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "list is: \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 _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 _head@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -8(%rbp)
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movl (%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -8(%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 _insert_end ## -- Begin function insert_end
.p2align 4, 0x90
_insert_end: ## @insert_end
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl %edi, -4(%rbp)
movq _head@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
movl $16, %edi
callq _malloc
movq %rax, -16(%rbp)
movl -4(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
movq -16(%rbp), %rax
movq $0, 8(%rax)
cmpq $0, -24(%rbp)
jne LBB1_2
## %bb.1:
movq -16(%rbp), %rcx
movq _head@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
jmp LBB1_6
LBB1_2:
jmp LBB1_3
LBB1_3: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
cmpq $0, 8(%rax)
je LBB1_5
## %bb.4: ## in Loop: Header=BB1_3 Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
jmp LBB1_3
LBB1_5:
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
LBB1_6:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movq _head@GOTPCREL(%rip), %rax
movq $0, (%rax)
movl $2, %edi
callq _insert_end
movl $4, %edi
callq _insert_end
movl $6, %edi
callq _insert_end
movl $5, %edi
callq _insert_end
callq _traverse
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _head,8,3 ## @head
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "list is: \n"
L_.str.1: ## @.str.1
.asciz " %d"
L_.str.2: ## @.str.2
.asciz "\n"
.subsections_via_symbols
| the_stack_data/181391846.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ctime_r ; -- Begin function ctime_r
.p2align 2
_ctime_r: ; @ctime_r
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
add x1, sp, #8
str x1, [sp] ; 8-byte Folded Spill
bl _localtime_r
ldr x0, [sp] ; 8-byte Folded Reload
ldur x1, [x29, #-16]
bl _asctime_r
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ctime_r ## -- Begin function ctime_r
.p2align 4, 0x90
_ctime_r: ## @ctime_r
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
leaq -72(%rbp), %rsi
callq _localtime_r
movq -16(%rbp), %rsi
leaq -72(%rbp), %rdi
callq _asctime_r
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/546887.c |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
- Downloads last month
- 1